@itwin/core-i18n 3.5.0-dev.8 → 3.5.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.
@@ -127,20 +127,20 @@ AssertionError.prototype.toJSON = function (stack) {
127
127
 
128
128
  /***/ }),
129
129
 
130
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/index.js":
130
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js":
131
131
  /*!**********************************************************************************!*\
132
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/index.js ***!
132
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js ***!
133
133
  \**********************************************************************************/
134
134
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
135
135
 
136
- module.exports = __webpack_require__(/*! ./lib/chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js");
136
+ module.exports = __webpack_require__(/*! ./lib/chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
137
137
 
138
138
 
139
139
  /***/ }),
140
140
 
141
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js":
141
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js":
142
142
  /*!*************************************************************************************!*\
143
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js ***!
143
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js ***!
144
144
  \*************************************************************************************/
145
145
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
146
146
 
@@ -168,7 +168,7 @@ exports.AssertionError = __webpack_require__(/*! assertion-error */ "../../commo
168
168
  * Utils for plugins (not exported)
169
169
  */
170
170
 
171
- var util = __webpack_require__(/*! ./chai/utils */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/index.js");
171
+ var util = __webpack_require__(/*! ./chai/utils */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/index.js");
172
172
 
173
173
  /**
174
174
  * # .use(function)
@@ -199,50 +199,50 @@ exports.util = util;
199
199
  * Configuration
200
200
  */
201
201
 
202
- var config = __webpack_require__(/*! ./chai/config */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js");
202
+ var config = __webpack_require__(/*! ./chai/config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
203
203
  exports.config = config;
204
204
 
205
205
  /*!
206
206
  * Primary `Assertion` prototype
207
207
  */
208
208
 
209
- var assertion = __webpack_require__(/*! ./chai/assertion */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/assertion.js");
209
+ var assertion = __webpack_require__(/*! ./chai/assertion */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/assertion.js");
210
210
  exports.use(assertion);
211
211
 
212
212
  /*!
213
213
  * Core Assertions
214
214
  */
215
215
 
216
- var core = __webpack_require__(/*! ./chai/core/assertions */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/core/assertions.js");
216
+ var core = __webpack_require__(/*! ./chai/core/assertions */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/core/assertions.js");
217
217
  exports.use(core);
218
218
 
219
219
  /*!
220
220
  * Expect interface
221
221
  */
222
222
 
223
- var expect = __webpack_require__(/*! ./chai/interface/expect */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/expect.js");
223
+ var expect = __webpack_require__(/*! ./chai/interface/expect */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/expect.js");
224
224
  exports.use(expect);
225
225
 
226
226
  /*!
227
227
  * Should interface
228
228
  */
229
229
 
230
- var should = __webpack_require__(/*! ./chai/interface/should */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/should.js");
230
+ var should = __webpack_require__(/*! ./chai/interface/should */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/should.js");
231
231
  exports.use(should);
232
232
 
233
233
  /*!
234
234
  * Assert interface
235
235
  */
236
236
 
237
- var assert = __webpack_require__(/*! ./chai/interface/assert */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/assert.js");
237
+ var assert = __webpack_require__(/*! ./chai/interface/assert */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/assert.js");
238
238
  exports.use(assert);
239
239
 
240
240
 
241
241
  /***/ }),
242
242
 
243
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/assertion.js":
243
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/assertion.js":
244
244
  /*!***********************************************************************************************!*\
245
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/assertion.js ***!
245
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/assertion.js ***!
246
246
  \***********************************************************************************************/
247
247
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
248
248
 
@@ -253,7 +253,7 @@ exports.use(assert);
253
253
  * MIT Licensed
254
254
  */
255
255
 
256
- var config = __webpack_require__(/*! ./config */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js");
256
+ var config = __webpack_require__(/*! ./config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
257
257
 
258
258
  module.exports = function (_chai, util) {
259
259
  /*!
@@ -425,9 +425,9 @@ module.exports = function (_chai, util) {
425
425
 
426
426
  /***/ }),
427
427
 
428
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js":
428
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js":
429
429
  /*!********************************************************************************************!*\
430
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js ***!
430
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js ***!
431
431
  \********************************************************************************************/
432
432
  /***/ ((module) => {
433
433
 
@@ -529,9 +529,9 @@ module.exports = {
529
529
 
530
530
  /***/ }),
531
531
 
532
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/core/assertions.js":
532
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/core/assertions.js":
533
533
  /*!*****************************************************************************************************!*\
534
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/core/assertions.js ***!
534
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/core/assertions.js ***!
535
535
  \*****************************************************************************************************/
536
536
  /***/ ((module) => {
537
537
 
@@ -4392,9 +4392,9 @@ module.exports = function (chai, _) {
4392
4392
 
4393
4393
  /***/ }),
4394
4394
 
4395
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/assert.js":
4395
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/assert.js":
4396
4396
  /*!******************************************************************************************************!*\
4397
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/assert.js ***!
4397
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/assert.js ***!
4398
4398
  \******************************************************************************************************/
4399
4399
  /***/ ((module) => {
4400
4400
 
@@ -7515,9 +7515,9 @@ module.exports = function (chai, util) {
7515
7515
 
7516
7516
  /***/ }),
7517
7517
 
7518
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/expect.js":
7518
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/expect.js":
7519
7519
  /*!******************************************************************************************************!*\
7520
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/expect.js ***!
7520
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/expect.js ***!
7521
7521
  \******************************************************************************************************/
7522
7522
  /***/ ((module) => {
7523
7523
 
@@ -7572,9 +7572,9 @@ module.exports = function (chai, util) {
7572
7572
 
7573
7573
  /***/ }),
7574
7574
 
7575
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/should.js":
7575
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/should.js":
7576
7576
  /*!******************************************************************************************************!*\
7577
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/should.js ***!
7577
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/should.js ***!
7578
7578
  \******************************************************************************************************/
7579
7579
  /***/ ((module) => {
7580
7580
 
@@ -7801,9 +7801,9 @@ module.exports = function (chai, util) {
7801
7801
 
7802
7802
  /***/ }),
7803
7803
 
7804
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addChainableMethod.js":
7804
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addChainableMethod.js":
7805
7805
  /*!**************************************************************************************************************!*\
7806
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addChainableMethod.js ***!
7806
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addChainableMethod.js ***!
7807
7807
  \**************************************************************************************************************/
7808
7808
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7809
7809
 
@@ -7817,11 +7817,11 @@ module.exports = function (chai, util) {
7817
7817
  * Module dependencies
7818
7818
  */
7819
7819
 
7820
- var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addLengthGuard.js");
7821
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js");
7822
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
7823
- var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/proxify.js");
7824
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js");
7820
+ var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js");
7821
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
7822
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
7823
+ var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js");
7824
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
7825
7825
 
7826
7826
  /*!
7827
7827
  * Module variables
@@ -7963,9 +7963,9 @@ module.exports = function addChainableMethod(ctx, name, method, chainingBehavior
7963
7963
 
7964
7964
  /***/ }),
7965
7965
 
7966
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addLengthGuard.js":
7966
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js":
7967
7967
  /*!**********************************************************************************************************!*\
7968
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addLengthGuard.js ***!
7968
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js ***!
7969
7969
  \**********************************************************************************************************/
7970
7970
  /***/ ((module) => {
7971
7971
 
@@ -8033,9 +8033,9 @@ module.exports = function addLengthGuard (fn, assertionName, isChainable) {
8033
8033
 
8034
8034
  /***/ }),
8035
8035
 
8036
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addMethod.js":
8036
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addMethod.js":
8037
8037
  /*!*****************************************************************************************************!*\
8038
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addMethod.js ***!
8038
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addMethod.js ***!
8039
8039
  \*****************************************************************************************************/
8040
8040
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8041
8041
 
@@ -8045,11 +8045,11 @@ module.exports = function addLengthGuard (fn, assertionName, isChainable) {
8045
8045
  * MIT Licensed
8046
8046
  */
8047
8047
 
8048
- var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addLengthGuard.js");
8049
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js");
8050
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
8051
- var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/proxify.js");
8052
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js");
8048
+ var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js");
8049
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
8050
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
8051
+ var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js");
8052
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
8053
8053
 
8054
8054
  /**
8055
8055
  * ### .addMethod(ctx, name, method)
@@ -8111,9 +8111,9 @@ module.exports = function addMethod(ctx, name, method) {
8111
8111
 
8112
8112
  /***/ }),
8113
8113
 
8114
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addProperty.js":
8114
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addProperty.js":
8115
8115
  /*!*******************************************************************************************************!*\
8116
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addProperty.js ***!
8116
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addProperty.js ***!
8117
8117
  \*******************************************************************************************************/
8118
8118
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8119
8119
 
@@ -8123,10 +8123,10 @@ module.exports = function addMethod(ctx, name, method) {
8123
8123
  * MIT Licensed
8124
8124
  */
8125
8125
 
8126
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js");
8127
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
8128
- var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
8129
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js");
8126
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
8127
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
8128
+ var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
8129
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
8130
8130
 
8131
8131
  /**
8132
8132
  * ### .addProperty(ctx, name, getter)
@@ -8193,9 +8193,9 @@ module.exports = function addProperty(ctx, name, getter) {
8193
8193
 
8194
8194
  /***/ }),
8195
8195
 
8196
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/compareByInspect.js":
8196
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/compareByInspect.js":
8197
8197
  /*!************************************************************************************************************!*\
8198
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/compareByInspect.js ***!
8198
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/compareByInspect.js ***!
8199
8199
  \************************************************************************************************************/
8200
8200
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8201
8201
 
@@ -8209,7 +8209,7 @@ module.exports = function addProperty(ctx, name, getter) {
8209
8209
  * Module dependencies
8210
8210
  */
8211
8211
 
8212
- var inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/inspect.js");
8212
+ var inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js");
8213
8213
 
8214
8214
  /**
8215
8215
  * ### .compareByInspect(mixed, mixed)
@@ -8234,9 +8234,9 @@ module.exports = function compareByInspect(a, b) {
8234
8234
 
8235
8235
  /***/ }),
8236
8236
 
8237
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/expectTypes.js":
8237
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/expectTypes.js":
8238
8238
  /*!*******************************************************************************************************!*\
8239
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/expectTypes.js ***!
8239
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/expectTypes.js ***!
8240
8240
  \*******************************************************************************************************/
8241
8241
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8242
8242
 
@@ -8261,7 +8261,7 @@ module.exports = function compareByInspect(a, b) {
8261
8261
  */
8262
8262
 
8263
8263
  var AssertionError = __webpack_require__(/*! assertion-error */ "../../common/temp/node_modules/.pnpm/assertion-error@1.1.0/node_modules/assertion-error/index.js");
8264
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
8264
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
8265
8265
  var type = __webpack_require__(/*! type-detect */ "../../common/temp/node_modules/.pnpm/type-detect@4.0.8/node_modules/type-detect/type-detect.js");
8266
8266
 
8267
8267
  module.exports = function expectTypes(obj, types) {
@@ -8295,9 +8295,9 @@ module.exports = function expectTypes(obj, types) {
8295
8295
 
8296
8296
  /***/ }),
8297
8297
 
8298
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js":
8298
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js":
8299
8299
  /*!************************************************************************************************!*\
8300
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js ***!
8300
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js ***!
8301
8301
  \************************************************************************************************/
8302
8302
  /***/ ((module) => {
8303
8303
 
@@ -8338,9 +8338,9 @@ module.exports = function flag(obj, key, value) {
8338
8338
 
8339
8339
  /***/ }),
8340
8340
 
8341
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getActual.js":
8341
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getActual.js":
8342
8342
  /*!*****************************************************************************************************!*\
8343
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getActual.js ***!
8343
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getActual.js ***!
8344
8344
  \*****************************************************************************************************/
8345
8345
  /***/ ((module) => {
8346
8346
 
@@ -8368,9 +8368,9 @@ module.exports = function getActual(obj, args) {
8368
8368
 
8369
8369
  /***/ }),
8370
8370
 
8371
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getMessage.js":
8371
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getMessage.js":
8372
8372
  /*!******************************************************************************************************!*\
8373
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getMessage.js ***!
8373
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getMessage.js ***!
8374
8374
  \******************************************************************************************************/
8375
8375
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8376
8376
 
@@ -8384,9 +8384,9 @@ module.exports = function getActual(obj, args) {
8384
8384
  * Module dependencies
8385
8385
  */
8386
8386
 
8387
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js")
8388
- , getActual = __webpack_require__(/*! ./getActual */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getActual.js")
8389
- , objDisplay = __webpack_require__(/*! ./objDisplay */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/objDisplay.js");
8387
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js")
8388
+ , getActual = __webpack_require__(/*! ./getActual */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getActual.js")
8389
+ , objDisplay = __webpack_require__(/*! ./objDisplay */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/objDisplay.js");
8390
8390
 
8391
8391
  /**
8392
8392
  * ### .getMessage(object, message, negateMessage)
@@ -8428,15 +8428,15 @@ module.exports = function getMessage(obj, args) {
8428
8428
 
8429
8429
  /***/ }),
8430
8430
 
8431
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOperator.js":
8431
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOperator.js":
8432
8432
  /*!*******************************************************************************************************!*\
8433
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOperator.js ***!
8433
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOperator.js ***!
8434
8434
  \*******************************************************************************************************/
8435
8435
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8436
8436
 
8437
8437
  var type = __webpack_require__(/*! type-detect */ "../../common/temp/node_modules/.pnpm/type-detect@4.0.8/node_modules/type-detect/type-detect.js");
8438
8438
 
8439
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
8439
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
8440
8440
 
8441
8441
  function isObjectType(obj) {
8442
8442
  var objectType = type(obj);
@@ -8493,9 +8493,9 @@ module.exports = function getOperator(obj, args) {
8493
8493
 
8494
8494
  /***/ }),
8495
8495
 
8496
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js":
8496
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js":
8497
8497
  /*!**********************************************************************************************************************!*\
8498
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js ***!
8498
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js ***!
8499
8499
  \**********************************************************************************************************************/
8500
8500
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8501
8501
 
@@ -8509,7 +8509,7 @@ module.exports = function getOperator(obj, args) {
8509
8509
  * Module dependencies
8510
8510
  */
8511
8511
 
8512
- var getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js");
8512
+ var getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js");
8513
8513
 
8514
8514
  /**
8515
8515
  * ### .getOwnEnumerableProperties(object)
@@ -8532,9 +8532,9 @@ module.exports = function getOwnEnumerableProperties(obj) {
8532
8532
 
8533
8533
  /***/ }),
8534
8534
 
8535
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js":
8535
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js":
8536
8536
  /*!***************************************************************************************************************************!*\
8537
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js ***!
8537
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js ***!
8538
8538
  \***************************************************************************************************************************/
8539
8539
  /***/ ((module) => {
8540
8540
 
@@ -8569,9 +8569,9 @@ module.exports = function getOwnEnumerablePropertySymbols(obj) {
8569
8569
 
8570
8570
  /***/ }),
8571
8571
 
8572
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getProperties.js":
8572
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getProperties.js":
8573
8573
  /*!*********************************************************************************************************!*\
8574
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getProperties.js ***!
8574
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getProperties.js ***!
8575
8575
  \*********************************************************************************************************/
8576
8576
  /***/ ((module) => {
8577
8577
 
@@ -8615,9 +8615,9 @@ module.exports = function getProperties(object) {
8615
8615
 
8616
8616
  /***/ }),
8617
8617
 
8618
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/index.js":
8618
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/index.js":
8619
8619
  /*!*************************************************************************************************!*\
8620
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/index.js ***!
8620
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/index.js ***!
8621
8621
  \*************************************************************************************************/
8622
8622
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8623
8623
 
@@ -8637,7 +8637,7 @@ var pathval = __webpack_require__(/*! pathval */ "../../common/temp/node_modules
8637
8637
  * test utility
8638
8638
  */
8639
8639
 
8640
- exports.test = __webpack_require__(/*! ./test */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/test.js");
8640
+ exports.test = __webpack_require__(/*! ./test */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/test.js");
8641
8641
 
8642
8642
  /*!
8643
8643
  * type utility
@@ -8648,49 +8648,49 @@ exports.type = __webpack_require__(/*! type-detect */ "../../common/temp/node_mo
8648
8648
  /*!
8649
8649
  * expectTypes utility
8650
8650
  */
8651
- exports.expectTypes = __webpack_require__(/*! ./expectTypes */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/expectTypes.js");
8651
+ exports.expectTypes = __webpack_require__(/*! ./expectTypes */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/expectTypes.js");
8652
8652
 
8653
8653
  /*!
8654
8654
  * message utility
8655
8655
  */
8656
8656
 
8657
- exports.getMessage = __webpack_require__(/*! ./getMessage */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getMessage.js");
8657
+ exports.getMessage = __webpack_require__(/*! ./getMessage */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getMessage.js");
8658
8658
 
8659
8659
  /*!
8660
8660
  * actual utility
8661
8661
  */
8662
8662
 
8663
- exports.getActual = __webpack_require__(/*! ./getActual */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getActual.js");
8663
+ exports.getActual = __webpack_require__(/*! ./getActual */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getActual.js");
8664
8664
 
8665
8665
  /*!
8666
8666
  * Inspect util
8667
8667
  */
8668
8668
 
8669
- exports.inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/inspect.js");
8669
+ exports.inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js");
8670
8670
 
8671
8671
  /*!
8672
8672
  * Object Display util
8673
8673
  */
8674
8674
 
8675
- exports.objDisplay = __webpack_require__(/*! ./objDisplay */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/objDisplay.js");
8675
+ exports.objDisplay = __webpack_require__(/*! ./objDisplay */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/objDisplay.js");
8676
8676
 
8677
8677
  /*!
8678
8678
  * Flag utility
8679
8679
  */
8680
8680
 
8681
- exports.flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
8681
+ exports.flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
8682
8682
 
8683
8683
  /*!
8684
8684
  * Flag transferring utility
8685
8685
  */
8686
8686
 
8687
- exports.transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js");
8687
+ exports.transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
8688
8688
 
8689
8689
  /*!
8690
8690
  * Deep equal utility
8691
8691
  */
8692
8692
 
8693
- exports.eql = __webpack_require__(/*! deep-eql */ "../../common/temp/node_modules/.pnpm/deep-eql@3.0.1/node_modules/deep-eql/index.js");
8693
+ exports.eql = __webpack_require__(/*! deep-eql */ "../../common/temp/node_modules/.pnpm/deep-eql@4.1.3/node_modules/deep-eql/index.js");
8694
8694
 
8695
8695
  /*!
8696
8696
  * Deep path info
@@ -8714,55 +8714,55 @@ exports.getName = __webpack_require__(/*! get-func-name */ "../../common/temp/no
8714
8714
  * add Property
8715
8715
  */
8716
8716
 
8717
- exports.addProperty = __webpack_require__(/*! ./addProperty */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addProperty.js");
8717
+ exports.addProperty = __webpack_require__(/*! ./addProperty */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addProperty.js");
8718
8718
 
8719
8719
  /*!
8720
8720
  * add Method
8721
8721
  */
8722
8722
 
8723
- exports.addMethod = __webpack_require__(/*! ./addMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addMethod.js");
8723
+ exports.addMethod = __webpack_require__(/*! ./addMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addMethod.js");
8724
8724
 
8725
8725
  /*!
8726
8726
  * overwrite Property
8727
8727
  */
8728
8728
 
8729
- exports.overwriteProperty = __webpack_require__(/*! ./overwriteProperty */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteProperty.js");
8729
+ exports.overwriteProperty = __webpack_require__(/*! ./overwriteProperty */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteProperty.js");
8730
8730
 
8731
8731
  /*!
8732
8732
  * overwrite Method
8733
8733
  */
8734
8734
 
8735
- exports.overwriteMethod = __webpack_require__(/*! ./overwriteMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteMethod.js");
8735
+ exports.overwriteMethod = __webpack_require__(/*! ./overwriteMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteMethod.js");
8736
8736
 
8737
8737
  /*!
8738
8738
  * Add a chainable method
8739
8739
  */
8740
8740
 
8741
- exports.addChainableMethod = __webpack_require__(/*! ./addChainableMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addChainableMethod.js");
8741
+ exports.addChainableMethod = __webpack_require__(/*! ./addChainableMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addChainableMethod.js");
8742
8742
 
8743
8743
  /*!
8744
8744
  * Overwrite chainable method
8745
8745
  */
8746
8746
 
8747
- exports.overwriteChainableMethod = __webpack_require__(/*! ./overwriteChainableMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js");
8747
+ exports.overwriteChainableMethod = __webpack_require__(/*! ./overwriteChainableMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js");
8748
8748
 
8749
8749
  /*!
8750
8750
  * Compare by inspect method
8751
8751
  */
8752
8752
 
8753
- exports.compareByInspect = __webpack_require__(/*! ./compareByInspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/compareByInspect.js");
8753
+ exports.compareByInspect = __webpack_require__(/*! ./compareByInspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/compareByInspect.js");
8754
8754
 
8755
8755
  /*!
8756
8756
  * Get own enumerable property symbols method
8757
8757
  */
8758
8758
 
8759
- exports.getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js");
8759
+ exports.getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js");
8760
8760
 
8761
8761
  /*!
8762
8762
  * Get own enumerable properties method
8763
8763
  */
8764
8764
 
8765
- exports.getOwnEnumerableProperties = __webpack_require__(/*! ./getOwnEnumerableProperties */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js");
8765
+ exports.getOwnEnumerableProperties = __webpack_require__(/*! ./getOwnEnumerableProperties */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js");
8766
8766
 
8767
8767
  /*!
8768
8768
  * Checks error against a given set of criteria
@@ -8774,37 +8774,37 @@ exports.checkError = __webpack_require__(/*! check-error */ "../../common/temp/n
8774
8774
  * Proxify util
8775
8775
  */
8776
8776
 
8777
- exports.proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/proxify.js");
8777
+ exports.proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js");
8778
8778
 
8779
8779
  /*!
8780
8780
  * addLengthGuard util
8781
8781
  */
8782
8782
 
8783
- exports.addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addLengthGuard.js");
8783
+ exports.addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js");
8784
8784
 
8785
8785
  /*!
8786
8786
  * isProxyEnabled helper
8787
8787
  */
8788
8788
 
8789
- exports.isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
8789
+ exports.isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
8790
8790
 
8791
8791
  /*!
8792
8792
  * isNaN method
8793
8793
  */
8794
8794
 
8795
- exports.isNaN = __webpack_require__(/*! ./isNaN */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isNaN.js");
8795
+ exports.isNaN = __webpack_require__(/*! ./isNaN */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isNaN.js");
8796
8796
 
8797
8797
  /*!
8798
8798
  * getOperator method
8799
8799
  */
8800
8800
 
8801
- exports.getOperator = __webpack_require__(/*! ./getOperator */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOperator.js");
8801
+ exports.getOperator = __webpack_require__(/*! ./getOperator */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOperator.js");
8802
8802
 
8803
8803
  /***/ }),
8804
8804
 
8805
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/inspect.js":
8805
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js":
8806
8806
  /*!***************************************************************************************************!*\
8807
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/inspect.js ***!
8807
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js ***!
8808
8808
  \***************************************************************************************************/
8809
8809
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8810
8810
 
@@ -8812,8 +8812,8 @@ exports.getOperator = __webpack_require__(/*! ./getOperator */ "../../common/tem
8812
8812
  // https://github.com/joyent/node/blob/f8c335d0caf47f16d31413f89aa28eda3878e3aa/lib/util.js
8813
8813
 
8814
8814
  var getName = __webpack_require__(/*! get-func-name */ "../../common/temp/node_modules/.pnpm/get-func-name@2.0.0/node_modules/get-func-name/index.js");
8815
- var loupe = __webpack_require__(/*! loupe */ "../../common/temp/node_modules/.pnpm/loupe@2.3.4/node_modules/loupe/loupe.js");
8816
- var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js");
8815
+ var loupe = __webpack_require__(/*! loupe */ "../../common/temp/node_modules/.pnpm/loupe@2.3.6/node_modules/loupe/loupe.js");
8816
+ var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
8817
8817
 
8818
8818
  module.exports = inspect;
8819
8819
 
@@ -8845,9 +8845,9 @@ function inspect(obj, showHidden, depth, colors) {
8845
8845
 
8846
8846
  /***/ }),
8847
8847
 
8848
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isNaN.js":
8848
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isNaN.js":
8849
8849
  /*!*************************************************************************************************!*\
8850
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isNaN.js ***!
8850
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isNaN.js ***!
8851
8851
  \*************************************************************************************************/
8852
8852
  /***/ ((module) => {
8853
8853
 
@@ -8881,13 +8881,13 @@ module.exports = Number.isNaN || isNaN;
8881
8881
 
8882
8882
  /***/ }),
8883
8883
 
8884
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isProxyEnabled.js":
8884
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js":
8885
8885
  /*!**********************************************************************************************************!*\
8886
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isProxyEnabled.js ***!
8886
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js ***!
8887
8887
  \**********************************************************************************************************/
8888
8888
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8889
8889
 
8890
- var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js");
8890
+ var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
8891
8891
 
8892
8892
  /*!
8893
8893
  * Chai - isProxyEnabled helper
@@ -8915,9 +8915,9 @@ module.exports = function isProxyEnabled() {
8915
8915
 
8916
8916
  /***/ }),
8917
8917
 
8918
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/objDisplay.js":
8918
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/objDisplay.js":
8919
8919
  /*!******************************************************************************************************!*\
8920
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/objDisplay.js ***!
8920
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/objDisplay.js ***!
8921
8921
  \******************************************************************************************************/
8922
8922
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8923
8923
 
@@ -8931,8 +8931,8 @@ module.exports = function isProxyEnabled() {
8931
8931
  * Module dependencies
8932
8932
  */
8933
8933
 
8934
- var inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/inspect.js");
8935
- var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js");
8934
+ var inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js");
8935
+ var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
8936
8936
 
8937
8937
  /**
8938
8938
  * ### .objDisplay(object)
@@ -8975,9 +8975,9 @@ module.exports = function objDisplay(obj) {
8975
8975
 
8976
8976
  /***/ }),
8977
8977
 
8978
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js":
8978
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js":
8979
8979
  /*!********************************************************************************************************************!*\
8980
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js ***!
8980
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js ***!
8981
8981
  \********************************************************************************************************************/
8982
8982
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8983
8983
 
@@ -8987,8 +8987,8 @@ module.exports = function objDisplay(obj) {
8987
8987
  * MIT Licensed
8988
8988
  */
8989
8989
 
8990
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js");
8991
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js");
8990
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
8991
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
8992
8992
 
8993
8993
  /**
8994
8994
  * ### .overwriteChainableMethod(ctx, name, method, chainingBehavior)
@@ -9054,9 +9054,9 @@ module.exports = function overwriteChainableMethod(ctx, name, method, chainingBe
9054
9054
 
9055
9055
  /***/ }),
9056
9056
 
9057
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteMethod.js":
9057
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteMethod.js":
9058
9058
  /*!***********************************************************************************************************!*\
9059
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteMethod.js ***!
9059
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteMethod.js ***!
9060
9060
  \***********************************************************************************************************/
9061
9061
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9062
9062
 
@@ -9066,11 +9066,11 @@ module.exports = function overwriteChainableMethod(ctx, name, method, chainingBe
9066
9066
  * MIT Licensed
9067
9067
  */
9068
9068
 
9069
- var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addLengthGuard.js");
9070
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js");
9071
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
9072
- var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/proxify.js");
9073
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js");
9069
+ var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js");
9070
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
9071
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
9072
+ var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js");
9073
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
9074
9074
 
9075
9075
  /**
9076
9076
  * ### .overwriteMethod(ctx, name, fn)
@@ -9156,9 +9156,9 @@ module.exports = function overwriteMethod(ctx, name, method) {
9156
9156
 
9157
9157
  /***/ }),
9158
9158
 
9159
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteProperty.js":
9159
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteProperty.js":
9160
9160
  /*!*************************************************************************************************************!*\
9161
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteProperty.js ***!
9161
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteProperty.js ***!
9162
9162
  \*************************************************************************************************************/
9163
9163
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9164
9164
 
@@ -9168,10 +9168,10 @@ module.exports = function overwriteMethod(ctx, name, method) {
9168
9168
  * MIT Licensed
9169
9169
  */
9170
9170
 
9171
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js");
9172
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
9173
- var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
9174
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js");
9171
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
9172
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
9173
+ var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
9174
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
9175
9175
 
9176
9176
  /**
9177
9177
  * ### .overwriteProperty(ctx, name, fn)
@@ -9258,16 +9258,16 @@ module.exports = function overwriteProperty(ctx, name, getter) {
9258
9258
 
9259
9259
  /***/ }),
9260
9260
 
9261
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/proxify.js":
9261
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js":
9262
9262
  /*!***************************************************************************************************!*\
9263
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/proxify.js ***!
9263
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js ***!
9264
9264
  \***************************************************************************************************/
9265
9265
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9266
9266
 
9267
- var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js");
9268
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
9269
- var getProperties = __webpack_require__(/*! ./getProperties */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getProperties.js");
9270
- var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
9267
+ var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
9268
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
9269
+ var getProperties = __webpack_require__(/*! ./getProperties */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getProperties.js");
9270
+ var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
9271
9271
 
9272
9272
  /*!
9273
9273
  * Chai - proxify utility
@@ -9415,9 +9415,9 @@ function stringDistanceCapped(strA, strB, cap) {
9415
9415
 
9416
9416
  /***/ }),
9417
9417
 
9418
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/test.js":
9418
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/test.js":
9419
9419
  /*!************************************************************************************************!*\
9420
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/test.js ***!
9420
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/test.js ***!
9421
9421
  \************************************************************************************************/
9422
9422
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9423
9423
 
@@ -9431,7 +9431,7 @@ function stringDistanceCapped(strA, strB, cap) {
9431
9431
  * Module dependencies
9432
9432
  */
9433
9433
 
9434
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
9434
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
9435
9435
 
9436
9436
  /**
9437
9437
  * ### .test(object, expression)
@@ -9453,9 +9453,9 @@ module.exports = function test(obj, args) {
9453
9453
 
9454
9454
  /***/ }),
9455
9455
 
9456
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js":
9456
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js":
9457
9457
  /*!*********************************************************************************************************!*\
9458
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js ***!
9458
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js ***!
9459
9459
  \*********************************************************************************************************/
9460
9460
  /***/ ((module) => {
9461
9461
 
@@ -10255,9 +10255,9 @@ module.exports = exports
10255
10255
 
10256
10256
  /***/ }),
10257
10257
 
10258
- /***/ "../../common/temp/node_modules/.pnpm/deep-eql@3.0.1/node_modules/deep-eql/index.js":
10258
+ /***/ "../../common/temp/node_modules/.pnpm/deep-eql@4.1.3/node_modules/deep-eql/index.js":
10259
10259
  /*!******************************************************************************************!*\
10260
- !*** ../../common/temp/node_modules/.pnpm/deep-eql@3.0.1/node_modules/deep-eql/index.js ***!
10260
+ !*** ../../common/temp/node_modules/.pnpm/deep-eql@4.1.3/node_modules/deep-eql/index.js ***!
10261
10261
  \******************************************************************************************/
10262
10262
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10263
10263
 
@@ -10276,10 +10276,10 @@ function FakeMap() {
10276
10276
  }
10277
10277
 
10278
10278
  FakeMap.prototype = {
10279
- get: function getMap(key) {
10279
+ get: function get(key) {
10280
10280
  return key[this._key];
10281
10281
  },
10282
- set: function setMap(key, value) {
10282
+ set: function set(key, value) {
10283
10283
  if (Object.isExtensible(key)) {
10284
10284
  Object.defineProperty(key, this._key, {
10285
10285
  value: value,
@@ -10471,8 +10471,9 @@ function extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandTyp
10471
10471
  case 'function':
10472
10472
  case 'WeakMap':
10473
10473
  case 'WeakSet':
10474
- case 'Error':
10475
10474
  return leftHandOperand === rightHandOperand;
10475
+ case 'Error':
10476
+ return keysEqual(leftHandOperand, rightHandOperand, [ 'name', 'message', 'code' ], options);
10476
10477
  case 'Arguments':
10477
10478
  case 'Int8Array':
10478
10479
  case 'Uint8Array':
@@ -10497,6 +10498,19 @@ function extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandTyp
10497
10498
  return entriesEqual(leftHandOperand, rightHandOperand, options);
10498
10499
  case 'Map':
10499
10500
  return entriesEqual(leftHandOperand, rightHandOperand, options);
10501
+ case 'Temporal.PlainDate':
10502
+ case 'Temporal.PlainTime':
10503
+ case 'Temporal.PlainDateTime':
10504
+ case 'Temporal.Instant':
10505
+ case 'Temporal.ZonedDateTime':
10506
+ case 'Temporal.PlainYearMonth':
10507
+ case 'Temporal.PlainMonthDay':
10508
+ return leftHandOperand.equals(rightHandOperand);
10509
+ case 'Temporal.Duration':
10510
+ return leftHandOperand.total('nanoseconds') === rightHandOperand.total('nanoseconds');
10511
+ case 'Temporal.TimeZone':
10512
+ case 'Temporal.Calendar':
10513
+ return leftHandOperand.toString() === rightHandOperand.toString();
10500
10514
  default:
10501
10515
  return objectEqual(leftHandOperand, rightHandOperand, options);
10502
10516
  }
@@ -10642,6 +10656,18 @@ function getEnumerableKeys(target) {
10642
10656
  return keys;
10643
10657
  }
10644
10658
 
10659
+ function getEnumerableSymbols(target) {
10660
+ var keys = [];
10661
+ var allKeys = Object.getOwnPropertySymbols(target);
10662
+ for (var i = 0; i < allKeys.length; i += 1) {
10663
+ var key = allKeys[i];
10664
+ if (Object.getOwnPropertyDescriptor(target, key).enumerable) {
10665
+ keys.push(key);
10666
+ }
10667
+ }
10668
+ return keys;
10669
+ }
10670
+
10645
10671
  /*!
10646
10672
  * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
10647
10673
  * each key. If any value of the given key is not equal, the function will return false (early).
@@ -10674,14 +10700,16 @@ function keysEqual(leftHandOperand, rightHandOperand, keys, options) {
10674
10700
  * @param {Object} [options] (Optional)
10675
10701
  * @return {Boolean} result
10676
10702
  */
10677
-
10678
10703
  function objectEqual(leftHandOperand, rightHandOperand, options) {
10679
10704
  var leftHandKeys = getEnumerableKeys(leftHandOperand);
10680
10705
  var rightHandKeys = getEnumerableKeys(rightHandOperand);
10706
+ var leftHandSymbols = getEnumerableSymbols(leftHandOperand);
10707
+ var rightHandSymbols = getEnumerableSymbols(rightHandOperand);
10708
+ leftHandKeys = leftHandKeys.concat(leftHandSymbols);
10709
+ rightHandKeys = rightHandKeys.concat(rightHandSymbols);
10710
+
10681
10711
  if (leftHandKeys.length && leftHandKeys.length === rightHandKeys.length) {
10682
- leftHandKeys.sort();
10683
- rightHandKeys.sort();
10684
- if (iterableEqual(leftHandKeys, rightHandKeys) === false) {
10712
+ if (iterableEqual(mapSymbols(leftHandKeys).sort(), mapSymbols(rightHandKeys).sort()) === false) {
10685
10713
  return false;
10686
10714
  }
10687
10715
  return keysEqual(leftHandOperand, rightHandOperand, leftHandKeys, options);
@@ -10718,6 +10746,16 @@ function isPrimitive(value) {
10718
10746
  return value === null || typeof value !== 'object';
10719
10747
  }
10720
10748
 
10749
+ function mapSymbols(arr) {
10750
+ return arr.map(function mapSymbol(entry) {
10751
+ if (typeof entry === 'symbol') {
10752
+ return entry.toString();
10753
+ }
10754
+
10755
+ return entry;
10756
+ });
10757
+ }
10758
+
10721
10759
 
10722
10760
  /***/ }),
10723
10761
 
@@ -10776,21 +10814,22 @@ module.exports = getFuncName;
10776
10814
 
10777
10815
  /***/ }),
10778
10816
 
10779
- /***/ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.5/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js":
10817
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.8/node_modules/i18next-browser-languagedetector/dist/cjs/i18nextBrowserLanguageDetector.js":
10780
10818
  /*!****************************************************************************************************************************************************************************!*\
10781
- !*** ../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.5/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js ***!
10819
+ !*** ../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.8/node_modules/i18next-browser-languagedetector/dist/cjs/i18nextBrowserLanguageDetector.js ***!
10782
10820
  \****************************************************************************************************************************************************************************/
10783
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10821
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10784
10822
 
10785
10823
  "use strict";
10786
- __webpack_require__.r(__webpack_exports__);
10787
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10788
- /* harmony export */ "default": () => (/* binding */ Browser)
10789
- /* harmony export */ });
10790
- /* 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.19.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
10791
- /* 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.19.0/node_modules/@babel/runtime/helpers/esm/createClass.js");
10792
10824
 
10793
10825
 
10826
+ var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/classCallCheck.js");
10827
+ var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/createClass.js");
10828
+
10829
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10830
+
10831
+ var _classCallCheck__default = /*#__PURE__*/_interopDefaultLegacy(_classCallCheck);
10832
+ var _createClass__default = /*#__PURE__*/_interopDefaultLegacy(_createClass);
10794
10833
 
10795
10834
  var arr = [];
10796
10835
  var each = arr.forEach;
@@ -11134,14 +11173,14 @@ var Browser = /*#__PURE__*/function () {
11134
11173
  function Browser(services) {
11135
11174
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11136
11175
 
11137
- (0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, Browser);
11176
+ _classCallCheck__default["default"](this, Browser);
11138
11177
 
11139
11178
  this.type = 'languageDetector';
11140
11179
  this.detectors = {};
11141
11180
  this.init(services, options);
11142
11181
  }
11143
11182
 
11144
- (0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(Browser, [{
11183
+ _createClass__default["default"](Browser, [{
11145
11184
  key: "init",
11146
11185
  value: function init(services) {
11147
11186
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -11203,29 +11242,29 @@ var Browser = /*#__PURE__*/function () {
11203
11242
 
11204
11243
  Browser.type = 'languageDetector';
11205
11244
 
11206
-
11245
+ module.exports = Browser;
11207
11246
 
11208
11247
 
11209
11248
  /***/ }),
11210
11249
 
11211
- /***/ "../../common/temp/node_modules/.pnpm/i18next@21.9.2/node_modules/i18next/dist/cjs/i18next.js":
11212
- /*!****************************************************************************************************!*\
11213
- !*** ../../common/temp/node_modules/.pnpm/i18next@21.9.2/node_modules/i18next/dist/cjs/i18next.js ***!
11214
- \****************************************************************************************************/
11250
+ /***/ "../../common/temp/node_modules/.pnpm/i18next@21.10.0/node_modules/i18next/dist/cjs/i18next.js":
11251
+ /*!*****************************************************************************************************!*\
11252
+ !*** ../../common/temp/node_modules/.pnpm/i18next@21.10.0/node_modules/i18next/dist/cjs/i18next.js ***!
11253
+ \*****************************************************************************************************/
11215
11254
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
11216
11255
 
11217
11256
  "use strict";
11218
11257
 
11219
11258
 
11220
- var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/typeof.js");
11221
- var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/classCallCheck.js");
11222
- var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/createClass.js");
11223
- var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
11224
- var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/inherits.js");
11225
- var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js");
11226
- var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/getPrototypeOf.js");
11227
- var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/defineProperty.js");
11228
- var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/toArray.js");
11259
+ var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/typeof.js");
11260
+ var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/classCallCheck.js");
11261
+ var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/createClass.js");
11262
+ var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
11263
+ var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/inherits.js");
11264
+ var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js");
11265
+ var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/getPrototypeOf.js");
11266
+ var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/defineProperty.js");
11267
+ var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toArray.js");
11229
11268
 
11230
11269
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11231
11270
 
@@ -12989,6 +13028,21 @@ function parseFormatStr(formatStr) {
12989
13028
  };
12990
13029
  }
12991
13030
 
13031
+ function createCachedFormatter(fn) {
13032
+ var cache = {};
13033
+ return function invokeFormatter(val, lng, options) {
13034
+ var key = lng + JSON.stringify(options);
13035
+ var formatter = cache[key];
13036
+
13037
+ if (!formatter) {
13038
+ formatter = fn(lng, options);
13039
+ cache[key] = formatter;
13040
+ }
13041
+
13042
+ return formatter(val);
13043
+ };
13044
+ }
13045
+
12992
13046
  var Formatter = function () {
12993
13047
  function Formatter() {
12994
13048
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -12998,23 +13052,38 @@ var Formatter = function () {
12998
13052
  this.logger = baseLogger.create('formatter');
12999
13053
  this.options = options;
13000
13054
  this.formats = {
13001
- number: function number(val, lng, options) {
13002
- return new Intl.NumberFormat(lng, options).format(val);
13003
- },
13004
- currency: function currency(val, lng, options) {
13005
- return new Intl.NumberFormat(lng, _objectSpread$4(_objectSpread$4({}, options), {}, {
13055
+ number: createCachedFormatter(function (lng, options) {
13056
+ var formatter = new Intl.NumberFormat(lng, options);
13057
+ return function (val) {
13058
+ return formatter.format(val);
13059
+ };
13060
+ }),
13061
+ currency: createCachedFormatter(function (lng, options) {
13062
+ var formatter = new Intl.NumberFormat(lng, _objectSpread$4(_objectSpread$4({}, options), {}, {
13006
13063
  style: 'currency'
13007
- })).format(val);
13008
- },
13009
- datetime: function datetime(val, lng, options) {
13010
- return new Intl.DateTimeFormat(lng, _objectSpread$4({}, options)).format(val);
13011
- },
13012
- relativetime: function relativetime(val, lng, options) {
13013
- return new Intl.RelativeTimeFormat(lng, _objectSpread$4({}, options)).format(val, options.range || 'day');
13014
- },
13015
- list: function list(val, lng, options) {
13016
- return new Intl.ListFormat(lng, _objectSpread$4({}, options)).format(val);
13017
- }
13064
+ }));
13065
+ return function (val) {
13066
+ return formatter.format(val);
13067
+ };
13068
+ }),
13069
+ datetime: createCachedFormatter(function (lng, options) {
13070
+ var formatter = new Intl.DateTimeFormat(lng, _objectSpread$4({}, options));
13071
+ return function (val) {
13072
+ return formatter.format(val);
13073
+ };
13074
+ }),
13075
+ relativetime: createCachedFormatter(function (lng, options) {
13076
+ var formatter = new Intl.RelativeTimeFormat(lng, _objectSpread$4({}, options));
13077
+ return function (val) {
13078
+ return formatter.format(val, options.range || 'day');
13079
+ };
13080
+ }),
13081
+ list: createCachedFormatter(function (lng, options) {
13082
+ var formatter = new Intl.ListFormat(lng, _objectSpread$4({}, options));
13083
+ return function (val) {
13084
+ return formatter.format(val);
13085
+ };
13086
+ })
13018
13087
  };
13019
13088
  this.init(options);
13020
13089
  }
@@ -13033,6 +13102,11 @@ var Formatter = function () {
13033
13102
  value: function add(name, fc) {
13034
13103
  this.formats[name.toLowerCase().trim()] = fc;
13035
13104
  }
13105
+ }, {
13106
+ key: "addCached",
13107
+ value: function addCached(name, fc) {
13108
+ this.formats[name.toLowerCase().trim()] = createCachedFormatter(fc);
13109
+ }
13036
13110
  }, {
13037
13111
  key: "format",
13038
13112
  value: function format(value, _format, lng, options) {
@@ -14040,9 +14114,9 @@ module.exports = instance;
14040
14114
 
14041
14115
  /***/ }),
14042
14116
 
14043
- /***/ "../../common/temp/node_modules/.pnpm/loupe@2.3.4/node_modules/loupe/loupe.js":
14117
+ /***/ "../../common/temp/node_modules/.pnpm/loupe@2.3.6/node_modules/loupe/loupe.js":
14044
14118
  /*!************************************************************************************!*\
14045
- !*** ../../common/temp/node_modules/.pnpm/loupe@2.3.4/node_modules/loupe/loupe.js ***!
14119
+ !*** ../../common/temp/node_modules/.pnpm/loupe@2.3.6/node_modules/loupe/loupe.js ***!
14046
14120
  \************************************************************************************/
14047
14121
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
14048
14122
 
@@ -14426,9 +14500,15 @@ module.exports = instance;
14426
14500
  }
14427
14501
 
14428
14502
  function inspectDate(dateObject, options) {
14429
- // If we need to - truncate the time portion, but never the date
14430
- var split = dateObject.toJSON().split('T');
14431
- var date = split[0];
14503
+ var stringRepresentation = dateObject.toJSON();
14504
+
14505
+ if (stringRepresentation === null) {
14506
+ return 'Invalid Date';
14507
+ }
14508
+
14509
+ var split = stringRepresentation.split('T');
14510
+ var date = split[0]; // If we need to - truncate the time portion, but never the date
14511
+
14432
14512
  return options.stylize("".concat(date, "T").concat(truncate(split[1], options.truncate - date.length - 1)), 'date');
14433
14513
  }
14434
14514
 
@@ -14718,14 +14798,39 @@ module.exports = instance;
14718
14798
 
14719
14799
  try {
14720
14800
  // eslint-disable-next-line global-require
14721
- var nodeUtil = __webpack_require__(/*! util */ "?1806");
14801
+ var nodeUtil = __webpack_require__(/*! util */ "?1120");
14722
14802
 
14723
14803
  nodeInspect = nodeUtil.inspect ? nodeUtil.inspect.custom : false;
14724
14804
  } catch (noNodeInspect) {
14725
14805
  nodeInspect = false;
14726
14806
  }
14727
14807
 
14728
- var constructorMap = new WeakMap();
14808
+ function FakeMap() {
14809
+ // eslint-disable-next-line prefer-template
14810
+ this.key = 'chai/loupe__' + Math.random() + Date.now();
14811
+ }
14812
+
14813
+ FakeMap.prototype = {
14814
+ // eslint-disable-next-line object-shorthand
14815
+ get: function get(key) {
14816
+ return key[this.key];
14817
+ },
14818
+ // eslint-disable-next-line object-shorthand
14819
+ has: function has(key) {
14820
+ return this.key in key;
14821
+ },
14822
+ // eslint-disable-next-line object-shorthand
14823
+ set: function set(key, value) {
14824
+ if (Object.isExtensible(key)) {
14825
+ Object.defineProperty(key, this.key, {
14826
+ // eslint-disable-next-line object-shorthand
14827
+ value: value,
14828
+ configurable: true
14829
+ });
14830
+ }
14831
+ }
14832
+ };
14833
+ var constructorMap = new (typeof WeakMap === 'function' ? WeakMap : FakeMap)();
14729
14834
  var stringTagMap = {};
14730
14835
  var baseTypesMap = {
14731
14836
  undefined: function undefined$1(value, options) {
@@ -14875,7 +14980,7 @@ module.exports = instance;
14875
14980
  return false;
14876
14981
  }
14877
14982
 
14878
- constructorMap.add(constructor, inspector);
14983
+ constructorMap.set(constructor, inspector);
14879
14984
  return true;
14880
14985
  }
14881
14986
  function registerStringTag(stringTag, inspector) {
@@ -16308,6 +16413,8 @@ var ChangeSetStatus;
16308
16413
  ChangeSetStatus[ChangeSetStatus["CannotMergeIntoMaster"] = 90136] = "CannotMergeIntoMaster";
16309
16414
  /** Cannot merge changes into a DgnDb that has reversed change sets. */
16310
16415
  ChangeSetStatus[ChangeSetStatus["CannotMergeIntoReversed"] = 90137] = "CannotMergeIntoReversed";
16416
+ /** ChangeSet(s) download was cancelled. */
16417
+ ChangeSetStatus[ChangeSetStatus["DownloadCancelled"] = 90138] = "DownloadCancelled";
16311
16418
  })(ChangeSetStatus || (ChangeSetStatus = {}));
16312
16419
  /** Return codes for methods which perform repository management operations
16313
16420
  * @beta Should these be internal?
@@ -16673,6 +16780,7 @@ class BentleyError extends Error {
16673
16780
  case ChangeSetStatus.CannotMergeIntoReadonly: return "Cannot merge changes into a Readonly DgnDb";
16674
16781
  case ChangeSetStatus.CannotMergeIntoMaster: return "Cannot merge changes into a Master DgnDb";
16675
16782
  case ChangeSetStatus.CannotMergeIntoReversed: return "Cannot merge changes into a DgnDb that has reversed change sets";
16783
+ case ChangeSetStatus.DownloadCancelled: return "ChangeSet(s) download was cancelled.";
16676
16784
  case RepositoryStatus.ServerUnavailable: return "ServerUnavailable";
16677
16785
  case RepositoryStatus.LockAlreadyHeld: return "LockAlreadyHeld";
16678
16786
  case RepositoryStatus.SyncError: return "SyncError";
@@ -16927,15 +17035,25 @@ class ByteStream {
16927
17035
  return new ByteStream(buffer, subView); // eslint-disable-line deprecation/deprecation
16928
17036
  }
16929
17037
  /** The number of bytes in this stream */
16930
- get length() { return this._view.byteLength; }
17038
+ get length() {
17039
+ return this._view.byteLength;
17040
+ }
17041
+ /** The number of bytes remaining to be read, from [[curPos]] to the end of the stream. */
17042
+ get remainingLength() {
17043
+ return this.length - this.curPos;
17044
+ }
16931
17045
  /** Returns true if the current read position has been advanced past the end of the stream. This generally indicates that an attempt was made to read more data than is available.
16932
17046
  * @see [[isAtTheEnd]]
16933
17047
  */
16934
- get isPastTheEnd() { return this.curPos > this.length; }
17048
+ get isPastTheEnd() {
17049
+ return this.curPos > this.length;
17050
+ }
16935
17051
  /** Returns true if the current read position has advanced precisely to the end of the stream, indicating all of the data has been consumed.
16936
17052
  * @see [[isPastTheEnd]].
16937
17053
  */
16938
- get isAtTheEnd() { return this.curPos === this.length; }
17054
+ get isAtTheEnd() {
17055
+ return this.curPos === this.length;
17056
+ }
16939
17057
  /** The current read position as an index into the stream of bytes. */
16940
17058
  get curPos() { return this._curPos; }
16941
17059
  set curPos(pos) {
@@ -19267,13 +19385,17 @@ class Logger {
19267
19385
  }
19268
19386
  /** Set the least severe level at which messages should be displayed by default. Call setLevel to override this default setting for specific categories. */
19269
19387
  static setLevelDefault(minLevel) {
19270
- Logger._minLevel = minLevel;
19388
+ var _a;
19389
+ this._minLevel = minLevel;
19390
+ (_a = this.logLevelChangedFn) === null || _a === void 0 ? void 0 : _a.call(this);
19271
19391
  }
19272
19392
  /** Set the minimum logging level for the specified category. The minimum level is least severe level at which messages in the
19273
19393
  * specified category should be displayed.
19274
19394
  */
19275
19395
  static setLevel(category, minLevel) {
19396
+ var _a;
19276
19397
  Logger._categoryFilter.set(category, minLevel);
19398
+ (_a = this.logLevelChangedFn) === null || _a === void 0 ? void 0 : _a.call(this);
19277
19399
  }
19278
19400
  /** Interpret a string as the name of a LogLevel */
19279
19401
  static parseLogLevel(str) {
@@ -19409,8 +19531,8 @@ class Logger {
19409
19531
  Logger._logTrace(category, message, metaData);
19410
19532
  }
19411
19533
  }
19412
- Logger._categoryFilter = new Map();
19413
- Logger._minLevel = undefined;
19534
+ Logger._categoryFilter = new Map(); // do not change the name of this member, it is referenced directly from node addon
19535
+ Logger._minLevel = undefined; // do not change the name of this member, it is referenced directly from node addon
19414
19536
  /** Should the call stack be included when an exception is logged? */
19415
19537
  Logger.logExceptionCallstacks = false;
19416
19538
  /** All static metadata is combined with per-call metadata and stringified in every log message.
@@ -21435,6 +21557,119 @@ class Tracing {
21435
21557
  }
21436
21558
 
21437
21559
 
21560
+ /***/ }),
21561
+
21562
+ /***/ "../bentley/lib/esm/TupleKeyedMap.js":
21563
+ /*!*******************************************!*\
21564
+ !*** ../bentley/lib/esm/TupleKeyedMap.js ***!
21565
+ \*******************************************/
21566
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
21567
+
21568
+ "use strict";
21569
+ __webpack_require__.r(__webpack_exports__);
21570
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21571
+ /* harmony export */ "TupleKeyedMap": () => (/* binding */ TupleKeyedMap)
21572
+ /* harmony export */ });
21573
+ /*---------------------------------------------------------------------------------------------
21574
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
21575
+ * See LICENSE.md in the project root for license terms and full copyright notice.
21576
+ *--------------------------------------------------------------------------------------------*/
21577
+ /** @packageDocumentation
21578
+ * @module Collections
21579
+ */
21580
+ /** A map similar to the standard JavaScript Map collection except that the keys must be a tuple
21581
+ * (javascript array), and two keys are considered equal if their elements in order are strict-equal,
21582
+ * and the tuples have the same amount of elements
21583
+ *
21584
+ * This means you can use array literals to key data in Maps that would otherwise be reference-compared
21585
+ * if using JavaScript's built in Map
21586
+ *
21587
+ * Note that JavaScript's Map type, unlike this one that uses strict equality, uses instead
21588
+ * SameValueZero equality comparison
21589
+ * @see https://262.ecma-international.org/6.0/#sec-samevaluezero
21590
+ *
21591
+ * ```js
21592
+ * const map = new TupleKeyedMap([[1,"y"], "value"]);
21593
+ * const value = map.get([1, "y"]); // a normal map would identify these keys as different because they are independent objects
21594
+ * ```
21595
+ *
21596
+ * It is implemented by each index of the tuple key being used as a singular key into a submap
21597
+ * @note this only implements a subset of the Map interface
21598
+ * @public
21599
+ */
21600
+ class TupleKeyedMap {
21601
+ // argument types match those of Map
21602
+ constructor(entries) {
21603
+ this._map = new Map();
21604
+ this._size = 0;
21605
+ if (entries)
21606
+ for (const [k, v] of entries) {
21607
+ this.set(k, v);
21608
+ }
21609
+ }
21610
+ clear() {
21611
+ return this._map.clear();
21612
+ }
21613
+ makeKeyError() {
21614
+ return Error("A Bad key was used, it didn't match the key type of the the map.");
21615
+ }
21616
+ get(key) {
21617
+ let cursor = this._map;
21618
+ for (const subkey of key) {
21619
+ if (!(cursor instanceof Map))
21620
+ throw this.makeKeyError();
21621
+ cursor = cursor.get(subkey);
21622
+ if (cursor === undefined)
21623
+ return undefined;
21624
+ }
21625
+ if (cursor instanceof Map)
21626
+ throw this.makeKeyError();
21627
+ return cursor;
21628
+ }
21629
+ has(key) {
21630
+ return this.get(key) !== undefined;
21631
+ }
21632
+ set(key, value) {
21633
+ let cursor = this._map;
21634
+ for (let i = 0; i < key.length - 1; ++i) {
21635
+ const subkey = key[i];
21636
+ let next = cursor.get(subkey);
21637
+ if (next === undefined) {
21638
+ next = new Map();
21639
+ cursor.set(subkey, next);
21640
+ }
21641
+ cursor = next;
21642
+ }
21643
+ const finalSubkey = key[key.length - 1];
21644
+ if (!(cursor instanceof Map))
21645
+ throw this.makeKeyError();
21646
+ cursor.set(finalSubkey, value);
21647
+ this._size++;
21648
+ return this;
21649
+ }
21650
+ *[Symbol.iterator]() {
21651
+ function* impl(map, keyPrefix) {
21652
+ for (const [k, v] of map) {
21653
+ const nextKey = [...keyPrefix, k];
21654
+ if (v instanceof Map) {
21655
+ yield* impl(v, nextKey);
21656
+ }
21657
+ else {
21658
+ yield [nextKey, v];
21659
+ }
21660
+ }
21661
+ }
21662
+ yield* impl(this._map, []);
21663
+ }
21664
+ get size() {
21665
+ return this._size;
21666
+ }
21667
+ get [Symbol.toStringTag]() {
21668
+ return this.constructor.name;
21669
+ }
21670
+ }
21671
+
21672
+
21438
21673
  /***/ }),
21439
21674
 
21440
21675
  /***/ "../bentley/lib/esm/TypedArrayBuilder.js":
@@ -21673,7 +21908,8 @@ UnexpectedErrors._handler = _a.errorLog; // default to error logging
21673
21908
  __webpack_require__.r(__webpack_exports__);
21674
21909
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21675
21910
  /* harmony export */ "asInstanceOf": () => (/* binding */ asInstanceOf),
21676
- /* harmony export */ "isInstanceOf": () => (/* binding */ isInstanceOf)
21911
+ /* harmony export */ "isInstanceOf": () => (/* binding */ isInstanceOf),
21912
+ /* harmony export */ "omit": () => (/* binding */ omit)
21677
21913
  /* harmony export */ });
21678
21914
  /*---------------------------------------------------------------------------------------------
21679
21915
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
@@ -21696,6 +21932,19 @@ function isInstanceOf(obj, constructor) {
21696
21932
  function asInstanceOf(obj, constructor) {
21697
21933
  return isInstanceOf(obj, constructor) ? obj : undefined;
21698
21934
  }
21935
+ /** A runtime property omitter, makes a shallow copy of the given object without the specified properties
21936
+ * Compatible with the typescript `Omit` mapped type:
21937
+ * ```js
21938
+ * const testvar: Omit<{x: string, y: object}, "y"> = omit({x: "hello", y: {}}, ["y"]);
21939
+ * ```
21940
+ * @public
21941
+ */
21942
+ function omit(t, keys) {
21943
+ const clone = { ...t };
21944
+ for (const key of keys)
21945
+ delete clone[key];
21946
+ return clone;
21947
+ }
21699
21948
 
21700
21949
 
21701
21950
  /***/ }),
@@ -21811,14 +22060,15 @@ __webpack_require__.r(__webpack_exports__);
21811
22060
  /* harmony export */ "SuccessCategory": () => (/* reexport safe */ _StatusCategory__WEBPACK_IMPORTED_MODULE_6__.SuccessCategory),
21812
22061
  /* harmony export */ "Tracing": () => (/* reexport safe */ _Tracing__WEBPACK_IMPORTED_MODULE_30__.Tracing),
21813
22062
  /* harmony export */ "TransientIdSequence": () => (/* reexport safe */ _Id__WEBPACK_IMPORTED_MODULE_14__.TransientIdSequence),
21814
- /* harmony export */ "TypedArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.TypedArrayBuilder),
21815
- /* harmony export */ "Uint16ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.Uint16ArrayBuilder),
21816
- /* harmony export */ "Uint32ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.Uint32ArrayBuilder),
21817
- /* harmony export */ "Uint8ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.Uint8ArrayBuilder),
21818
- /* harmony export */ "UnexpectedErrors": () => (/* reexport safe */ _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_32__.UnexpectedErrors),
21819
- /* harmony export */ "YieldManager": () => (/* reexport safe */ _YieldManager__WEBPACK_IMPORTED_MODULE_34__.YieldManager),
22063
+ /* harmony export */ "TupleKeyedMap": () => (/* reexport safe */ _TupleKeyedMap__WEBPACK_IMPORTED_MODULE_31__.TupleKeyedMap),
22064
+ /* harmony export */ "TypedArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.TypedArrayBuilder),
22065
+ /* harmony export */ "Uint16ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.Uint16ArrayBuilder),
22066
+ /* harmony export */ "Uint32ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.Uint32ArrayBuilder),
22067
+ /* harmony export */ "Uint8ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.Uint8ArrayBuilder),
22068
+ /* harmony export */ "UnexpectedErrors": () => (/* reexport safe */ _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_33__.UnexpectedErrors),
22069
+ /* harmony export */ "YieldManager": () => (/* reexport safe */ _YieldManager__WEBPACK_IMPORTED_MODULE_35__.YieldManager),
21820
22070
  /* harmony export */ "areEqualPossiblyUndefined": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_10__.areEqualPossiblyUndefined),
21821
- /* harmony export */ "asInstanceOf": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.asInstanceOf),
22071
+ /* harmony export */ "asInstanceOf": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_34__.asInstanceOf),
21822
22072
  /* harmony export */ "assert": () => (/* reexport safe */ _Assert__WEBPACK_IMPORTED_MODULE_1__.assert),
21823
22073
  /* harmony export */ "base64StringToUint8Array": () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_28__.base64StringToUint8Array),
21824
22074
  /* harmony export */ "compareBooleans": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_10__.compareBooleans),
@@ -21832,10 +22082,11 @@ __webpack_require__.r(__webpack_exports__);
21832
22082
  /* harmony export */ "dispose": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_13__.dispose),
21833
22083
  /* harmony export */ "disposeArray": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_13__.disposeArray),
21834
22084
  /* harmony export */ "isIDisposable": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_13__.isIDisposable),
21835
- /* harmony export */ "isInstanceOf": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.isInstanceOf),
22085
+ /* harmony export */ "isInstanceOf": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_34__.isInstanceOf),
21836
22086
  /* harmony export */ "isProperSubclassOf": () => (/* reexport safe */ _ClassUtils__WEBPACK_IMPORTED_MODULE_9__.isProperSubclassOf),
21837
22087
  /* harmony export */ "isSubclassOf": () => (/* reexport safe */ _ClassUtils__WEBPACK_IMPORTED_MODULE_9__.isSubclassOf),
21838
22088
  /* harmony export */ "lowerBound": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_27__.lowerBound),
22089
+ /* harmony export */ "omit": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_34__.omit),
21839
22090
  /* harmony export */ "partitionArray": () => (/* reexport safe */ _partitionArray__WEBPACK_IMPORTED_MODULE_24__.partitionArray),
21840
22091
  /* harmony export */ "shallowClone": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_27__.shallowClone),
21841
22092
  /* harmony export */ "using": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_13__.using),
@@ -21873,10 +22124,11 @@ __webpack_require__.r(__webpack_exports__);
21873
22124
  /* harmony import */ var _StringUtils__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./StringUtils */ "../bentley/lib/esm/StringUtils.js");
21874
22125
  /* harmony import */ var _Time__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./Time */ "../bentley/lib/esm/Time.js");
21875
22126
  /* harmony import */ var _Tracing__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./Tracing */ "../bentley/lib/esm/Tracing.js");
21876
- /* harmony import */ var _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./TypedArrayBuilder */ "../bentley/lib/esm/TypedArrayBuilder.js");
21877
- /* harmony import */ var _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./UnexpectedErrors */ "../bentley/lib/esm/UnexpectedErrors.js");
21878
- /* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./UtilityTypes */ "../bentley/lib/esm/UtilityTypes.js");
21879
- /* harmony import */ var _YieldManager__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./YieldManager */ "../bentley/lib/esm/YieldManager.js");
22127
+ /* harmony import */ var _TupleKeyedMap__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./TupleKeyedMap */ "../bentley/lib/esm/TupleKeyedMap.js");
22128
+ /* harmony import */ var _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./TypedArrayBuilder */ "../bentley/lib/esm/TypedArrayBuilder.js");
22129
+ /* harmony import */ var _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./UnexpectedErrors */ "../bentley/lib/esm/UnexpectedErrors.js");
22130
+ /* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./UtilityTypes */ "../bentley/lib/esm/UtilityTypes.js");
22131
+ /* harmony import */ var _YieldManager__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./YieldManager */ "../bentley/lib/esm/YieldManager.js");
21880
22132
  /*---------------------------------------------------------------------------------------------
21881
22133
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
21882
22134
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -21914,6 +22166,7 @@ __webpack_require__.r(__webpack_exports__);
21914
22166
 
21915
22167
 
21916
22168
 
22169
+
21917
22170
 
21918
22171
 
21919
22172
  /** @docs-package-description
@@ -22033,9 +22286,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
22033
22286
  };
22034
22287
  Object.defineProperty(exports, "__esModule", ({ value: true }));
22035
22288
  exports.ITwinLocalization = void 0;
22036
- const i18next_1 = __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.2/node_modules/i18next/dist/cjs/i18next.js"));
22037
- const i18next_browser_languagedetector_1 = __importDefault(__webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.5/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js"));
22038
- const i18next_http_backend_1 = __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"));
22289
+ const i18next_1 = __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.10.0/node_modules/i18next/dist/cjs/i18next.js"));
22290
+ const i18next_browser_languagedetector_1 = __importDefault(__webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.8/node_modules/i18next-browser-languagedetector/dist/cjs/i18nextBrowserLanguageDetector.js"));
22291
+ const i18next_http_backend_1 = __importDefault(__webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/index.js"));
22039
22292
  const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../bentley/lib/esm/core-bentley.js");
22040
22293
  const DEFAULT_MAX_RETRIES = 1; // a low number prevents wasted time and potential timeouts when requesting localization files throws an error
22041
22294
  /** Supplies localizations for iTwin.js
@@ -22134,7 +22387,8 @@ class ITwinLocalization {
22134
22387
  }
22135
22388
  return value;
22136
22389
  }
22137
- /** Similar to `getLocalizedString` but the namespace is a separate param and the key does not include the namespace.
22390
+ /** Similar to `getLocalizedString` but the default namespace is a separate parameter and the key does not need
22391
+ * to include a namespace. If a key includes a namespace, that namespace will be used for interpolating that key.
22138
22392
  * @param namespace - the namespace that identifies the particular localization file that contains the property.
22139
22393
  * @param key - the key that matches a property in the JSON localization file.
22140
22394
  * @returns The string corresponding to the first key that resolves.
@@ -22164,6 +22418,10 @@ class ITwinLocalization {
22164
22418
  if ((options === null || options === void 0 ? void 0 : options.returnDetails) || (options === null || options === void 0 ? void 0 : options.returnObjects)) {
22165
22419
  throw new Error("Translation key must map to a string, but the given options will result in an object");
22166
22420
  }
22421
+ options = {
22422
+ ...options,
22423
+ ns: namespace, // ensure namespace argument is used
22424
+ };
22167
22425
  const en = this.i18next.getFixedT("en", namespace);
22168
22426
  const str = en(key, options);
22169
22427
  if (typeof str !== "string")
@@ -22250,7 +22508,7 @@ TranslationLogger.type = "logger";
22250
22508
 
22251
22509
  /***/ }),
22252
22510
 
22253
- /***/ "?1806":
22511
+ /***/ "?1120":
22254
22512
  /*!**********************!*\
22255
22513
  !*** util (ignored) ***!
22256
22514
  \**********************/
@@ -22260,43 +22518,39 @@ TranslationLogger.type = "logger";
22260
22518
 
22261
22519
  /***/ }),
22262
22520
 
22263
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
22521
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
22264
22522
  /*!**************************************************************************************************************************!*\
22265
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
22523
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
22266
22524
  \**************************************************************************************************************************/
22267
22525
  /***/ ((module) => {
22268
22526
 
22269
22527
  function _arrayLikeToArray(arr, len) {
22270
22528
  if (len == null || len > arr.length) len = arr.length;
22271
-
22272
22529
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
22273
22530
  arr2[i] = arr[i];
22274
22531
  }
22275
-
22276
22532
  return arr2;
22277
22533
  }
22278
-
22279
22534
  module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
22280
22535
 
22281
22536
  /***/ }),
22282
22537
 
22283
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/arrayWithHoles.js":
22538
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/arrayWithHoles.js":
22284
22539
  /*!************************************************************************************************************************!*\
22285
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
22540
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
22286
22541
  \************************************************************************************************************************/
22287
22542
  /***/ ((module) => {
22288
22543
 
22289
22544
  function _arrayWithHoles(arr) {
22290
22545
  if (Array.isArray(arr)) return arr;
22291
22546
  }
22292
-
22293
22547
  module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
22294
22548
 
22295
22549
  /***/ }),
22296
22550
 
22297
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js":
22551
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/assertThisInitialized.js":
22298
22552
  /*!*******************************************************************************************************************************!*\
22299
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
22553
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
22300
22554
  \*******************************************************************************************************************************/
22301
22555
  /***/ ((module) => {
22302
22556
 
@@ -22304,17 +22558,15 @@ function _assertThisInitialized(self) {
22304
22558
  if (self === void 0) {
22305
22559
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
22306
22560
  }
22307
-
22308
22561
  return self;
22309
22562
  }
22310
-
22311
22563
  module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
22312
22564
 
22313
22565
  /***/ }),
22314
22566
 
22315
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/classCallCheck.js":
22567
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/classCallCheck.js":
22316
22568
  /*!************************************************************************************************************************!*\
22317
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/classCallCheck.js ***!
22569
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/classCallCheck.js ***!
22318
22570
  \************************************************************************************************************************/
22319
22571
  /***/ ((module) => {
22320
22572
 
@@ -22323,27 +22575,26 @@ function _classCallCheck(instance, Constructor) {
22323
22575
  throw new TypeError("Cannot call a class as a function");
22324
22576
  }
22325
22577
  }
22326
-
22327
22578
  module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
22328
22579
 
22329
22580
  /***/ }),
22330
22581
 
22331
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/createClass.js":
22582
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/createClass.js":
22332
22583
  /*!*********************************************************************************************************************!*\
22333
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/createClass.js ***!
22584
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/createClass.js ***!
22334
22585
  \*********************************************************************************************************************/
22335
- /***/ ((module) => {
22586
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22336
22587
 
22588
+ var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toPropertyKey.js");
22337
22589
  function _defineProperties(target, props) {
22338
22590
  for (var i = 0; i < props.length; i++) {
22339
22591
  var descriptor = props[i];
22340
22592
  descriptor.enumerable = descriptor.enumerable || false;
22341
22593
  descriptor.configurable = true;
22342
22594
  if ("value" in descriptor) descriptor.writable = true;
22343
- Object.defineProperty(target, descriptor.key, descriptor);
22595
+ Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
22344
22596
  }
22345
22597
  }
22346
-
22347
22598
  function _createClass(Constructor, protoProps, staticProps) {
22348
22599
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
22349
22600
  if (staticProps) _defineProperties(Constructor, staticProps);
@@ -22352,18 +22603,19 @@ function _createClass(Constructor, protoProps, staticProps) {
22352
22603
  });
22353
22604
  return Constructor;
22354
22605
  }
22355
-
22356
22606
  module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
22357
22607
 
22358
22608
  /***/ }),
22359
22609
 
22360
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/defineProperty.js":
22610
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/defineProperty.js":
22361
22611
  /*!************************************************************************************************************************!*\
22362
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/defineProperty.js ***!
22612
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/defineProperty.js ***!
22363
22613
  \************************************************************************************************************************/
22364
- /***/ ((module) => {
22614
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22365
22615
 
22616
+ var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toPropertyKey.js");
22366
22617
  function _defineProperty(obj, key, value) {
22618
+ key = toPropertyKey(key);
22367
22619
  if (key in obj) {
22368
22620
  Object.defineProperty(obj, key, {
22369
22621
  value: value,
@@ -22374,17 +22626,15 @@ function _defineProperty(obj, key, value) {
22374
22626
  } else {
22375
22627
  obj[key] = value;
22376
22628
  }
22377
-
22378
22629
  return obj;
22379
22630
  }
22380
-
22381
22631
  module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
22382
22632
 
22383
22633
  /***/ }),
22384
22634
 
22385
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/getPrototypeOf.js":
22635
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/getPrototypeOf.js":
22386
22636
  /*!************************************************************************************************************************!*\
22387
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
22637
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
22388
22638
  \************************************************************************************************************************/
22389
22639
  /***/ ((module) => {
22390
22640
 
@@ -22394,24 +22644,21 @@ function _getPrototypeOf(o) {
22394
22644
  }, module.exports.__esModule = true, module.exports["default"] = module.exports;
22395
22645
  return _getPrototypeOf(o);
22396
22646
  }
22397
-
22398
22647
  module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
22399
22648
 
22400
22649
  /***/ }),
22401
22650
 
22402
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/inherits.js":
22651
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/inherits.js":
22403
22652
  /*!******************************************************************************************************************!*\
22404
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/inherits.js ***!
22653
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/inherits.js ***!
22405
22654
  \******************************************************************************************************************/
22406
22655
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22407
22656
 
22408
- var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/setPrototypeOf.js");
22409
-
22657
+ var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/setPrototypeOf.js");
22410
22658
  function _inherits(subClass, superClass) {
22411
22659
  if (typeof superClass !== "function" && superClass !== null) {
22412
22660
  throw new TypeError("Super expression must either be null or a function");
22413
22661
  }
22414
-
22415
22662
  subClass.prototype = Object.create(superClass && superClass.prototype, {
22416
22663
  constructor: {
22417
22664
  value: subClass,
@@ -22424,66 +22671,59 @@ function _inherits(subClass, superClass) {
22424
22671
  });
22425
22672
  if (superClass) setPrototypeOf(subClass, superClass);
22426
22673
  }
22427
-
22428
22674
  module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
22429
22675
 
22430
22676
  /***/ }),
22431
22677
 
22432
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/iterableToArray.js":
22678
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/iterableToArray.js":
22433
22679
  /*!*************************************************************************************************************************!*\
22434
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/iterableToArray.js ***!
22680
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/iterableToArray.js ***!
22435
22681
  \*************************************************************************************************************************/
22436
22682
  /***/ ((module) => {
22437
22683
 
22438
22684
  function _iterableToArray(iter) {
22439
22685
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
22440
22686
  }
22441
-
22442
22687
  module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
22443
22688
 
22444
22689
  /***/ }),
22445
22690
 
22446
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/nonIterableRest.js":
22691
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/nonIterableRest.js":
22447
22692
  /*!*************************************************************************************************************************!*\
22448
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
22693
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
22449
22694
  \*************************************************************************************************************************/
22450
22695
  /***/ ((module) => {
22451
22696
 
22452
22697
  function _nonIterableRest() {
22453
22698
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22454
22699
  }
22455
-
22456
22700
  module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
22457
22701
 
22458
22702
  /***/ }),
22459
22703
 
22460
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
22704
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
22461
22705
  /*!***********************************************************************************************************************************!*\
22462
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
22706
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
22463
22707
  \***********************************************************************************************************************************/
22464
22708
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22465
22709
 
22466
- var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
22467
-
22468
- var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
22469
-
22710
+ var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
22711
+ var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
22470
22712
  function _possibleConstructorReturn(self, call) {
22471
22713
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
22472
22714
  return call;
22473
22715
  } else if (call !== void 0) {
22474
22716
  throw new TypeError("Derived constructors may only return object or undefined");
22475
22717
  }
22476
-
22477
22718
  return assertThisInitialized(self);
22478
22719
  }
22479
-
22480
22720
  module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
22481
22721
 
22482
22722
  /***/ }),
22483
22723
 
22484
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/setPrototypeOf.js":
22724
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/setPrototypeOf.js":
22485
22725
  /*!************************************************************************************************************************!*\
22486
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
22726
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
22487
22727
  \************************************************************************************************************************/
22488
22728
  /***/ ((module) => {
22489
22729
 
@@ -22494,36 +22734,67 @@ function _setPrototypeOf(o, p) {
22494
22734
  }, module.exports.__esModule = true, module.exports["default"] = module.exports;
22495
22735
  return _setPrototypeOf(o, p);
22496
22736
  }
22497
-
22498
22737
  module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
22499
22738
 
22500
22739
  /***/ }),
22501
22740
 
22502
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/toArray.js":
22741
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toArray.js":
22503
22742
  /*!*****************************************************************************************************************!*\
22504
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/toArray.js ***!
22743
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toArray.js ***!
22505
22744
  \*****************************************************************************************************************/
22506
22745
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22507
22746
 
22508
- var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/arrayWithHoles.js");
22509
-
22510
- var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/iterableToArray.js");
22747
+ var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/arrayWithHoles.js");
22748
+ var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/iterableToArray.js");
22749
+ var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
22750
+ var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/nonIterableRest.js");
22751
+ function _toArray(arr) {
22752
+ return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
22753
+ }
22754
+ module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
22511
22755
 
22512
- var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
22756
+ /***/ }),
22513
22757
 
22514
- var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/nonIterableRest.js");
22758
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toPrimitive.js":
22759
+ /*!*********************************************************************************************************************!*\
22760
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toPrimitive.js ***!
22761
+ \*********************************************************************************************************************/
22762
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22515
22763
 
22516
- function _toArray(arr) {
22517
- return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
22764
+ var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
22765
+ function _toPrimitive(input, hint) {
22766
+ if (_typeof(input) !== "object" || input === null) return input;
22767
+ var prim = input[Symbol.toPrimitive];
22768
+ if (prim !== undefined) {
22769
+ var res = prim.call(input, hint || "default");
22770
+ if (_typeof(res) !== "object") return res;
22771
+ throw new TypeError("@@toPrimitive must return a primitive value.");
22772
+ }
22773
+ return (hint === "string" ? String : Number)(input);
22518
22774
  }
22775
+ module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
22519
22776
 
22520
- module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
22777
+ /***/ }),
22778
+
22779
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toPropertyKey.js":
22780
+ /*!***********************************************************************************************************************!*\
22781
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
22782
+ \***********************************************************************************************************************/
22783
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22784
+
22785
+ var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
22786
+ var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toPrimitive.js");
22787
+ function _toPropertyKey(arg) {
22788
+ var key = toPrimitive(arg, "string");
22789
+ return _typeof(key) === "symbol" ? key : String(key);
22790
+ }
22791
+ module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
22521
22792
 
22522
22793
  /***/ }),
22523
22794
 
22524
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/typeof.js":
22795
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/typeof.js":
22525
22796
  /*!****************************************************************************************************************!*\
22526
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/typeof.js ***!
22797
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/typeof.js ***!
22527
22798
  \****************************************************************************************************************/
22528
22799
  /***/ ((module) => {
22529
22800
 
@@ -22536,19 +22807,17 @@ function _typeof(obj) {
22536
22807
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
22537
22808
  }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
22538
22809
  }
22539
-
22540
22810
  module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
22541
22811
 
22542
22812
  /***/ }),
22543
22813
 
22544
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
22814
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
22545
22815
  /*!************************************************************************************************************************************!*\
22546
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
22816
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
22547
22817
  \************************************************************************************************************************************/
22548
22818
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22549
22819
 
22550
- var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
22551
-
22820
+ var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
22552
22821
  function _unsupportedIterableToArray(o, minLen) {
22553
22822
  if (!o) return;
22554
22823
  if (typeof o === "string") return arrayLikeToArray(o, minLen);
@@ -22557,14 +22826,13 @@ function _unsupportedIterableToArray(o, minLen) {
22557
22826
  if (n === "Map" || n === "Set") return Array.from(o);
22558
22827
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
22559
22828
  }
22560
-
22561
22829
  module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
22562
22830
 
22563
22831
  /***/ }),
22564
22832
 
22565
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/getFetch.js":
22833
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/getFetch.js":
22566
22834
  /*!*************************************************************************************************************************!*\
22567
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/getFetch.js ***!
22835
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/getFetch.js ***!
22568
22836
  \*************************************************************************************************************************/
22569
22837
  /***/ ((module, exports, __webpack_require__) => {
22570
22838
 
@@ -22589,9 +22857,9 @@ if ( true && (typeof window === 'undefined' || typeof window.document === 'undef
22589
22857
 
22590
22858
  /***/ }),
22591
22859
 
22592
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/index.js":
22860
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/index.js":
22593
22861
  /*!**********************************************************************************************************************!*\
22594
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/index.js ***!
22862
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/index.js ***!
22595
22863
  \**********************************************************************************************************************/
22596
22864
  /***/ ((module, exports, __webpack_require__) => {
22597
22865
 
@@ -22602,21 +22870,13 @@ Object.defineProperty(exports, "__esModule", ({
22602
22870
  value: true
22603
22871
  }));
22604
22872
  exports["default"] = void 0;
22605
-
22606
- var _utils = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/utils.js");
22607
-
22608
- var _request = _interopRequireDefault(__webpack_require__(/*! ./request.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/request.js"));
22609
-
22873
+ var _utils = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/utils.js");
22874
+ var _request = _interopRequireDefault(__webpack_require__(/*! ./request.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/request.js"));
22610
22875
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22611
-
22612
22876
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
22613
-
22614
22877
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
22615
-
22616
22878
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
22617
-
22618
22879
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
22619
-
22620
22880
  var getDefaults = function getDefaults() {
22621
22881
  return {
22622
22882
  loadPath: '/locales/{{lng}}/{{ns}}.json',
@@ -22643,32 +22903,26 @@ var getDefaults = function getDefaults() {
22643
22903
  }
22644
22904
  };
22645
22905
  };
22646
-
22647
22906
  var Backend = function () {
22648
22907
  function Backend(services) {
22649
22908
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
22650
22909
  var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
22651
-
22652
22910
  _classCallCheck(this, Backend);
22653
-
22654
22911
  this.services = services;
22655
22912
  this.options = options;
22656
22913
  this.allOptions = allOptions;
22657
22914
  this.type = 'backend';
22658
22915
  this.init(services, options, allOptions);
22659
22916
  }
22660
-
22661
22917
  _createClass(Backend, [{
22662
22918
  key: "init",
22663
22919
  value: function init(services) {
22664
22920
  var _this = this;
22665
-
22666
22921
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
22667
22922
  var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
22668
22923
  this.services = services;
22669
22924
  this.options = (0, _utils.defaults)(options, this.options || {}, getDefaults());
22670
22925
  this.allOptions = allOptions;
22671
-
22672
22926
  if (this.services && this.options.reloadInterval) {
22673
22927
  setInterval(function () {
22674
22928
  return _this.reload();
@@ -22689,22 +22943,17 @@ var Backend = function () {
22689
22943
  key: "_readAny",
22690
22944
  value: function _readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {
22691
22945
  var _this2 = this;
22692
-
22693
22946
  var loadPath = this.options.loadPath;
22694
-
22695
22947
  if (typeof this.options.loadPath === 'function') {
22696
22948
  loadPath = this.options.loadPath(languages, namespaces);
22697
22949
  }
22698
-
22699
22950
  loadPath = (0, _utils.makePromise)(loadPath);
22700
22951
  loadPath.then(function (resolvedLoadPath) {
22701
22952
  if (!resolvedLoadPath) return callback(null, {});
22702
-
22703
22953
  var url = _this2.services.interpolator.interpolate(resolvedLoadPath, {
22704
22954
  lng: languages.join('+'),
22705
22955
  ns: namespaces.join('+')
22706
22956
  });
22707
-
22708
22957
  _this2.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);
22709
22958
  });
22710
22959
  }
@@ -22712,14 +22961,12 @@ var Backend = function () {
22712
22961
  key: "loadUrl",
22713
22962
  value: function loadUrl(url, callback, languages, namespaces) {
22714
22963
  var _this3 = this;
22715
-
22716
22964
  this.options.request(this.options, url, undefined, function (err, res) {
22717
22965
  if (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback('failed loading ' + url + '; status code: ' + res.status, true);
22718
22966
  if (res && res.status >= 400 && res.status < 500) return callback('failed loading ' + url + '; status code: ' + res.status, false);
22719
22967
  if (!res && err && err.message && err.message.indexOf('Failed to fetch') > -1) return callback('failed loading ' + url + ': ' + err.message, true);
22720
22968
  if (err) return callback(err, false);
22721
22969
  var ret, parseErr;
22722
-
22723
22970
  try {
22724
22971
  if (typeof res.data === 'string') {
22725
22972
  ret = _this3.options.parse(res.data, languages, namespaces);
@@ -22729,7 +22976,6 @@ var Backend = function () {
22729
22976
  } catch (e) {
22730
22977
  parseErr = 'failed parsing ' + url + ' to json';
22731
22978
  }
22732
-
22733
22979
  if (parseErr) return callback(parseErr, false);
22734
22980
  callback(null, ret);
22735
22981
  });
@@ -22738,7 +22984,6 @@ var Backend = function () {
22738
22984
  key: "create",
22739
22985
  value: function create(languages, namespace, key, fallbackValue, callback) {
22740
22986
  var _this4 = this;
22741
-
22742
22987
  if (!this.options.addPath) return;
22743
22988
  if (typeof languages === 'string') languages = [languages];
22744
22989
  var payload = this.options.parsePayload(namespace, key, fallbackValue);
@@ -22747,21 +22992,17 @@ var Backend = function () {
22747
22992
  var resArray = [];
22748
22993
  languages.forEach(function (lng) {
22749
22994
  var addPath = _this4.options.addPath;
22750
-
22751
22995
  if (typeof _this4.options.addPath === 'function') {
22752
22996
  addPath = _this4.options.addPath(lng, namespace);
22753
22997
  }
22754
-
22755
22998
  var url = _this4.services.interpolator.interpolate(addPath, {
22756
22999
  lng: lng,
22757
23000
  ns: namespace
22758
23001
  });
22759
-
22760
23002
  _this4.options.request(_this4.options, url, payload, function (data, res) {
22761
23003
  finished += 1;
22762
23004
  dataArray.push(data);
22763
23005
  resArray.push(res);
22764
-
22765
23006
  if (finished === languages.length) {
22766
23007
  if (callback) callback(dataArray, resArray);
22767
23008
  }
@@ -22772,22 +23013,20 @@ var Backend = function () {
22772
23013
  key: "reload",
22773
23014
  value: function reload() {
22774
23015
  var _this5 = this;
22775
-
22776
23016
  var _this$services = this.services,
22777
- backendConnector = _this$services.backendConnector,
22778
- languageUtils = _this$services.languageUtils,
22779
- logger = _this$services.logger;
23017
+ backendConnector = _this$services.backendConnector,
23018
+ languageUtils = _this$services.languageUtils,
23019
+ logger = _this$services.logger;
22780
23020
  var currentLanguage = backendConnector.language;
22781
23021
  if (currentLanguage && currentLanguage.toLowerCase() === 'cimode') return;
22782
- var toLoad = [];
22783
23022
 
23023
+ var toLoad = [];
22784
23024
  var append = function append(lng) {
22785
23025
  var lngs = languageUtils.toResolveHierarchy(lng);
22786
23026
  lngs.forEach(function (l) {
22787
23027
  if (toLoad.indexOf(l) < 0) toLoad.push(l);
22788
23028
  });
22789
23029
  };
22790
-
22791
23030
  append(currentLanguage);
22792
23031
  if (this.allOptions.preload) this.allOptions.preload.forEach(function (l) {
22793
23032
  return append(l);
@@ -22803,10 +23042,8 @@ var Backend = function () {
22803
23042
  });
22804
23043
  }
22805
23044
  }]);
22806
-
22807
23045
  return Backend;
22808
23046
  }();
22809
-
22810
23047
  Backend.type = 'backend';
22811
23048
  var _default = Backend;
22812
23049
  exports["default"] = _default;
@@ -22814,9 +23051,9 @@ module.exports = exports.default;
22814
23051
 
22815
23052
  /***/ }),
22816
23053
 
22817
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/request.js":
23054
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/request.js":
22818
23055
  /*!************************************************************************************************************************!*\
22819
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/request.js ***!
23056
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/request.js ***!
22820
23057
  \************************************************************************************************************************/
22821
23058
  /***/ ((module, exports, __webpack_require__) => {
22822
23059
 
@@ -22827,19 +23064,12 @@ Object.defineProperty(exports, "__esModule", ({
22827
23064
  value: true
22828
23065
  }));
22829
23066
  exports["default"] = void 0;
22830
-
22831
- var _utils = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/utils.js");
22832
-
22833
- var fetchNode = _interopRequireWildcard(__webpack_require__(/*! ./getFetch.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/getFetch.js"));
22834
-
23067
+ var _utils = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/utils.js");
23068
+ var fetchNode = _interopRequireWildcard(__webpack_require__(/*! ./getFetch.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/getFetch.js"));
22835
23069
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
22836
-
22837
23070
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
22838
-
22839
23071
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
22840
-
22841
23072
  var fetchApi;
22842
-
22843
23073
  if (typeof fetch === 'function') {
22844
23074
  if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.fetch) {
22845
23075
  fetchApi = __webpack_require__.g.fetch;
@@ -22849,9 +23079,7 @@ if (typeof fetch === 'function') {
22849
23079
  fetchApi = fetch;
22850
23080
  }
22851
23081
  }
22852
-
22853
23082
  var XmlHttpRequestApi;
22854
-
22855
23083
  if ((0, _utils.hasXMLHttpRequest)()) {
22856
23084
  if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.XMLHttpRequest) {
22857
23085
  XmlHttpRequestApi = __webpack_require__.g.XMLHttpRequest;
@@ -22859,9 +23087,7 @@ if ((0, _utils.hasXMLHttpRequest)()) {
22859
23087
  XmlHttpRequestApi = window.XMLHttpRequest;
22860
23088
  }
22861
23089
  }
22862
-
22863
23090
  var ActiveXObjectApi;
22864
-
22865
23091
  if (typeof ActiveXObject === 'function') {
22866
23092
  if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.ActiveXObject) {
22867
23093
  ActiveXObjectApi = __webpack_require__.g.ActiveXObject;
@@ -22869,25 +23095,19 @@ if (typeof ActiveXObject === 'function') {
22869
23095
  ActiveXObjectApi = window.ActiveXObject;
22870
23096
  }
22871
23097
  }
22872
-
22873
23098
  if (!fetchApi && fetchNode && !XmlHttpRequestApi && !ActiveXObjectApi) fetchApi = fetchNode.default || fetchNode;
22874
23099
  if (typeof fetchApi !== 'function') fetchApi = undefined;
22875
-
22876
23100
  var addQueryString = function addQueryString(url, params) {
22877
23101
  if (params && _typeof(params) === 'object') {
22878
23102
  var queryString = '';
22879
-
22880
23103
  for (var paramName in params) {
22881
23104
  queryString += '&' + encodeURIComponent(paramName) + '=' + encodeURIComponent(params[paramName]);
22882
23105
  }
22883
-
22884
23106
  if (!queryString) return url;
22885
23107
  url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
22886
23108
  }
22887
-
22888
23109
  return url;
22889
23110
  };
22890
-
22891
23111
  var fetchIt = function fetchIt(url, fetchOptions, callback) {
22892
23112
  fetchApi(url, fetchOptions).then(function (response) {
22893
23113
  if (!response.ok) return callback(response.statusText || 'Error', {
@@ -22901,14 +23121,12 @@ var fetchIt = function fetchIt(url, fetchOptions, callback) {
22901
23121
  }).catch(callback);
22902
23122
  }).catch(callback);
22903
23123
  };
22904
-
22905
23124
  var omitFetchOptions = false;
22906
23125
 
22907
23126
  var requestWithFetch = function requestWithFetch(options, url, payload, callback) {
22908
23127
  if (options.queryStringParams) {
22909
23128
  url = addQueryString(url, options.queryStringParams);
22910
23129
  }
22911
-
22912
23130
  var headers = (0, _utils.defaults)({}, typeof options.customHeaders === 'function' ? options.customHeaders() : options.customHeaders);
22913
23131
  if (payload) headers['Content-Type'] = 'application/json';
22914
23132
  var reqOptions = typeof options.requestOptions === 'function' ? options.requestOptions(payload) : options.requestOptions;
@@ -22917,14 +23135,12 @@ var requestWithFetch = function requestWithFetch(options, url, payload, callback
22917
23135
  body: payload ? options.stringify(payload) : undefined,
22918
23136
  headers: headers
22919
23137
  }, omitFetchOptions ? {} : reqOptions);
22920
-
22921
23138
  try {
22922
23139
  fetchIt(url, fetchOptions, callback);
22923
23140
  } catch (e) {
22924
23141
  if (!reqOptions || Object.keys(reqOptions).length === 0 || !e.message || e.message.indexOf('not implemented') < 0) {
22925
23142
  return callback(e);
22926
23143
  }
22927
-
22928
23144
  try {
22929
23145
  Object.keys(reqOptions).forEach(function (opt) {
22930
23146
  delete fetchOptions[opt];
@@ -22941,86 +23157,68 @@ var requestWithXmlHttpRequest = function requestWithXmlHttpRequest(options, url,
22941
23157
  if (payload && _typeof(payload) === 'object') {
22942
23158
  payload = addQueryString('', payload).slice(1);
22943
23159
  }
22944
-
22945
23160
  if (options.queryStringParams) {
22946
23161
  url = addQueryString(url, options.queryStringParams);
22947
23162
  }
22948
-
22949
23163
  try {
22950
23164
  var x;
22951
-
22952
23165
  if (XmlHttpRequestApi) {
22953
23166
  x = new XmlHttpRequestApi();
22954
23167
  } else {
22955
23168
  x = new ActiveXObjectApi('MSXML2.XMLHTTP.3.0');
22956
23169
  }
22957
-
22958
23170
  x.open(payload ? 'POST' : 'GET', url, 1);
22959
-
22960
23171
  if (!options.crossDomain) {
22961
23172
  x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
22962
23173
  }
22963
-
22964
23174
  x.withCredentials = !!options.withCredentials;
22965
-
22966
23175
  if (payload) {
22967
23176
  x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
22968
23177
  }
22969
-
22970
23178
  if (x.overrideMimeType) {
22971
23179
  x.overrideMimeType('application/json');
22972
23180
  }
22973
-
22974
23181
  var h = options.customHeaders;
22975
23182
  h = typeof h === 'function' ? h() : h;
22976
-
22977
23183
  if (h) {
22978
23184
  for (var i in h) {
22979
23185
  x.setRequestHeader(i, h[i]);
22980
23186
  }
22981
23187
  }
22982
-
22983
23188
  x.onreadystatechange = function () {
22984
23189
  x.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {
22985
23190
  status: x.status,
22986
23191
  data: x.responseText
22987
23192
  });
22988
23193
  };
22989
-
22990
23194
  x.send(payload);
22991
23195
  } catch (e) {
22992
23196
  console && console.log(e);
22993
23197
  }
22994
23198
  };
22995
-
22996
23199
  var request = function request(options, url, payload, callback) {
22997
23200
  if (typeof payload === 'function') {
22998
23201
  callback = payload;
22999
23202
  payload = undefined;
23000
23203
  }
23001
-
23002
23204
  callback = callback || function () {};
23003
-
23004
23205
  if (fetchApi) {
23005
23206
  return requestWithFetch(options, url, payload, callback);
23006
23207
  }
23007
-
23008
23208
  if ((0, _utils.hasXMLHttpRequest)() || typeof ActiveXObject === 'function') {
23009
23209
  return requestWithXmlHttpRequest(options, url, payload, callback);
23010
23210
  }
23011
-
23012
23211
  callback(new Error('No fetch and no xhr implementation found!'));
23013
23212
  };
23014
-
23015
23213
  var _default = request;
23016
23214
  exports["default"] = _default;
23017
23215
  module.exports = exports.default;
23018
23216
 
23019
23217
  /***/ }),
23020
23218
 
23021
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/utils.js":
23219
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/utils.js":
23022
23220
  /*!**********************************************************************************************************************!*\
23023
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/utils.js ***!
23221
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/utils.js ***!
23024
23222
  \**********************************************************************************************************************/
23025
23223
  /***/ ((__unused_webpack_module, exports) => {
23026
23224
 
@@ -23033,13 +23231,10 @@ Object.defineProperty(exports, "__esModule", ({
23033
23231
  exports.defaults = defaults;
23034
23232
  exports.hasXMLHttpRequest = hasXMLHttpRequest;
23035
23233
  exports.makePromise = makePromise;
23036
-
23037
23234
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
23038
-
23039
23235
  var arr = [];
23040
23236
  var each = arr.forEach;
23041
23237
  var slice = arr.slice;
23042
-
23043
23238
  function defaults(obj) {
23044
23239
  each.call(slice.call(arguments, 1), function (source) {
23045
23240
  if (source) {
@@ -23050,7 +23245,6 @@ function defaults(obj) {
23050
23245
  });
23051
23246
  return obj;
23052
23247
  }
23053
-
23054
23248
  function hasXMLHttpRequest() {
23055
23249
  return typeof XMLHttpRequest === 'function' || (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof(XMLHttpRequest)) === 'object';
23056
23250
  }
@@ -23063,62 +23257,10 @@ function makePromise(maybePromise) {
23063
23257
  if (isPromise(maybePromise)) {
23064
23258
  return maybePromise;
23065
23259
  }
23066
-
23067
23260
  return Promise.resolve(maybePromise);
23068
23261
  }
23069
23262
 
23070
- /***/ }),
23071
-
23072
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
23073
- /*!****************************************************************************************************************************!*\
23074
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
23075
- \****************************************************************************************************************************/
23076
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
23077
-
23078
- "use strict";
23079
- __webpack_require__.r(__webpack_exports__);
23080
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23081
- /* harmony export */ "default": () => (/* binding */ _classCallCheck)
23082
- /* harmony export */ });
23083
- function _classCallCheck(instance, Constructor) {
23084
- if (!(instance instanceof Constructor)) {
23085
- throw new TypeError("Cannot call a class as a function");
23086
- }
23087
- }
23088
-
23089
- /***/ }),
23090
-
23091
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/createClass.js":
23092
- /*!*************************************************************************************************************************!*\
23093
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
23094
- \*************************************************************************************************************************/
23095
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
23096
-
23097
- "use strict";
23098
- __webpack_require__.r(__webpack_exports__);
23099
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23100
- /* harmony export */ "default": () => (/* binding */ _createClass)
23101
- /* harmony export */ });
23102
- function _defineProperties(target, props) {
23103
- for (var i = 0; i < props.length; i++) {
23104
- var descriptor = props[i];
23105
- descriptor.enumerable = descriptor.enumerable || false;
23106
- descriptor.configurable = true;
23107
- if ("value" in descriptor) descriptor.writable = true;
23108
- Object.defineProperty(target, descriptor.key, descriptor);
23109
- }
23110
- }
23111
-
23112
- function _createClass(Constructor, protoProps, staticProps) {
23113
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
23114
- if (staticProps) _defineProperties(Constructor, staticProps);
23115
- Object.defineProperty(Constructor, "prototype", {
23116
- writable: false
23117
- });
23118
- return Constructor;
23119
- }
23120
-
23121
- /***/ })
23263
+ /***/ })
23122
23264
 
23123
23265
  /******/ });
23124
23266
  /************************************************************************/
@@ -23202,13 +23344,84 @@ var exports = __webpack_exports__;
23202
23344
  * See LICENSE.md in the project root for license terms and full copyright notice.
23203
23345
  *--------------------------------------------------------------------------------------------*/
23204
23346
  Object.defineProperty(exports, "__esModule", ({ value: true }));
23205
- const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/index.js");
23347
+ const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
23206
23348
  const ITwinLocalization_1 = __webpack_require__(/*! ../ITwinLocalization */ "./lib/cjs/ITwinLocalization.js");
23207
23349
  describe("ITwinLocalization", () => {
23208
23350
  let localization;
23351
+ let germanLocalization;
23352
+ describe("#constructor", () => {
23353
+ let itwinLocalization;
23354
+ it("set default namespace", async () => {
23355
+ itwinLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { defaultNS: "Default" } });
23356
+ await itwinLocalization.initialize([]);
23357
+ chai_1.assert.equal(itwinLocalization.i18next.options.defaultNS, "Default");
23358
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("FirstTrivial"), "First level string (default)");
23359
+ });
23360
+ it("set default language as english", async () => {
23361
+ itwinLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { defaultNS: "Default", lng: "en" } });
23362
+ await itwinLocalization.initialize([]);
23363
+ chai_1.assert.equal(itwinLocalization.i18next.options.lng, "en");
23364
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("FirstTrivial"), "First level string (default)");
23365
+ });
23366
+ it("set default language as NOT english", async () => {
23367
+ itwinLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { defaultNS: "Default", lng: "de" } });
23368
+ await itwinLocalization.initialize([]);
23369
+ chai_1.assert.equal(itwinLocalization.i18next.options.lng, "de");
23370
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("FirstTrivial"), "First level string (default german)");
23371
+ });
23372
+ it("set fallback language as NOT english", async () => {
23373
+ itwinLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { defaultNS: "Default", fallbackLng: "de" } });
23374
+ await itwinLocalization.initialize([]);
23375
+ chai_1.assert.equal(itwinLocalization.i18next.options.fallbackLng, "de");
23376
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("OnlyGerman"), "Hallo");
23377
+ });
23378
+ });
23209
23379
  describe("#initialize", () => {
23210
- describe("with default namespace provided in constructor", () => {
23211
- let itwinLocalization;
23380
+ let itwinLocalization;
23381
+ it("cannot fetch from unregistered namespaces", async () => {
23382
+ localization = new ITwinLocalization_1.ITwinLocalization();
23383
+ await localization.initialize([]);
23384
+ chai_1.assert.equal(localization.getEnglishString("Default", "FirstTrivial"), "FirstTrivial");
23385
+ chai_1.assert.equal(localization.getLocalizedString("Test:FirstTrivial"), "FirstTrivial");
23386
+ });
23387
+ describe("with no default namespace predefined", () => {
23388
+ before(() => {
23389
+ itwinLocalization = new ITwinLocalization_1.ITwinLocalization();
23390
+ });
23391
+ it("no default namespace set when initialized with empty array", async () => {
23392
+ await itwinLocalization.initialize([]);
23393
+ chai_1.assert.equal(itwinLocalization.i18next.options.defaultNS, undefined);
23394
+ });
23395
+ it("initialize with single namespace", async () => {
23396
+ var _a;
23397
+ await itwinLocalization.initialize(["Test"]);
23398
+ chai_1.assert.equal(itwinLocalization.i18next.options.defaultNS, "Test");
23399
+ chai_1.assert.isTrue((_a = itwinLocalization.i18next.options.ns) === null || _a === void 0 ? void 0 : _a.includes("Test"));
23400
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("Test:FirstTrivial"), "First level string (test)");
23401
+ });
23402
+ it("initialize with two namespaces recognizes both namespaces", async () => {
23403
+ var _a, _b;
23404
+ await itwinLocalization.initialize(["Default", "Test"]);
23405
+ chai_1.assert.isTrue((_a = itwinLocalization.i18next.options.ns) === null || _a === void 0 ? void 0 : _a.includes("Default"));
23406
+ chai_1.assert.isTrue((_b = itwinLocalization.i18next.options.ns) === null || _b === void 0 ? void 0 : _b.includes("Test"));
23407
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("Default:FirstTrivial"), "First level string (default)");
23408
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("Test:FirstTrivial"), "First level string (test)");
23409
+ });
23410
+ it("initialize with two namespaces sets first as default", async () => {
23411
+ await itwinLocalization.initialize(["Default", "Test"]);
23412
+ chai_1.assert.equal(itwinLocalization.i18next.options.defaultNS, "Default");
23413
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("FirstTrivial"), "First level string (default)");
23414
+ });
23415
+ it("initialize with duplicate namespace values does not break anything", async () => {
23416
+ var _a;
23417
+ await itwinLocalization.initialize(["Default", "Default"]);
23418
+ chai_1.assert.equal(itwinLocalization.i18next.options.defaultNS, "Default");
23419
+ chai_1.assert.isTrue((_a = itwinLocalization.i18next.options.ns) === null || _a === void 0 ? void 0 : _a.includes("Default"));
23420
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("FirstTrivial"), "First level string (default)");
23421
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("Default:FirstTrivial"), "First level string (default)");
23422
+ });
23423
+ });
23424
+ describe("with default namespace", () => {
23212
23425
  before(() => {
23213
23426
  itwinLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { defaultNS: "Default" } });
23214
23427
  });
@@ -23240,6 +23453,93 @@ describe("ITwinLocalization", () => {
23240
23453
  });
23241
23454
  });
23242
23455
  });
23456
+ describe("#getLocalizedKeys", () => {
23457
+ before(async () => {
23458
+ localization = new ITwinLocalization_1.ITwinLocalization();
23459
+ await localization.initialize(["Default", "Test"]);
23460
+ germanLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { lng: "de" } });
23461
+ await germanLocalization.initialize(["Default", "Test"]);
23462
+ });
23463
+ it("no substitution", () => {
23464
+ chai_1.assert.equal(localization.getLocalizedKeys("MyString"), "MyString");
23465
+ });
23466
+ describe("Default Namespace", () => {
23467
+ it("first level string", () => {
23468
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{FirstTrivial}"), "hi First level string (default)");
23469
+ chai_1.assert.equal(germanLocalization.getLocalizedKeys("hi %{FirstTrivial}"), "hi First level string (default german)");
23470
+ });
23471
+ it("second level string", () => {
23472
+ chai_1.assert.equal(localization.getLocalizedKeys("%{SecondTrivial.Test1}"), "Second level string 1 (default)");
23473
+ chai_1.assert.equal(localization.getLocalizedKeys("bye %{SecondTrivial.Test2}"), "bye Second level string 2 (default)");
23474
+ chai_1.assert.equal(germanLocalization.getLocalizedKeys("%{SecondTrivial.Test1}"), "Second level string 1 (default german)");
23475
+ chai_1.assert.equal(germanLocalization.getLocalizedKeys("bye %{SecondTrivial.Test2}"), "bye Second level string 2 (default german)");
23476
+ });
23477
+ it("first level string with keys", () => {
23478
+ chai_1.assert.equal(localization.getLocalizedKeys("%{FirstSubstitution1}"), "First level {{str}} (default)");
23479
+ chai_1.assert.equal(localization.getLocalizedKeys("bye %{FirstSubstitution2}"), "bye First level {{str1}} and {{str2}} (default)");
23480
+ chai_1.assert.equal(germanLocalization.getLocalizedKeys("%{FirstSubstitution1}"), "First level {{str}} (default german)");
23481
+ chai_1.assert.equal(germanLocalization.getLocalizedKeys("bye %{FirstSubstitution2}"), "bye First level {{str1}} and {{str2}} (default german)");
23482
+ });
23483
+ it("second level string with keys", () => {
23484
+ chai_1.assert.equal(localization.getLocalizedKeys("%{SecondSubstitution.Test1}"), "Substitute {{varA}} and {{varB}} (default)");
23485
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{SecondSubstitution.Test2}"), "hi Reverse substitute {{varB}} and {{varA}} (default)");
23486
+ chai_1.assert.equal(germanLocalization.getLocalizedKeys("%{SecondSubstitution.Test1}"), "Substitute {{varA}} and {{varB}} (default german)");
23487
+ chai_1.assert.equal(germanLocalization.getLocalizedKeys("hi %{SecondSubstitution.Test2}"), "hi Reverse substitute {{varB}} and {{varA}} (default german)");
23488
+ });
23489
+ it("first level missing key doesn't find a value", () => {
23490
+ chai_1.assert.equal(localization.getLocalizedKeys("no %{MissingKeyString}"), "no MissingKeyString");
23491
+ chai_1.assert.equal(localization.getLocalizedKeys("no %{MissingKeyString}"), "no MissingKeyString");
23492
+ });
23493
+ it("second level missing key doesn't find a value", () => {
23494
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{SecondTrivial.MissingString}"), "hi SecondTrivial.MissingString");
23495
+ chai_1.assert.equal(localization.getLocalizedKeys("%{MissingKeyObject.MissingString}"), "MissingKeyObject.MissingString");
23496
+ });
23497
+ });
23498
+ describe("Given Namespace", () => {
23499
+ it("first level string", () => {
23500
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{Default:FirstTrivial}"), "hi First level string (default)");
23501
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{Test:FirstTrivial}"), "hi First level string (test)");
23502
+ });
23503
+ it("second level string", () => {
23504
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Default:SecondTrivial.Test1}"), "Second level string 1 (default)");
23505
+ chai_1.assert.equal(localization.getLocalizedKeys("bye %{Default:SecondTrivial.Test2}"), "bye Second level string 2 (default)");
23506
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Test:SecondTrivial.Test1}"), "Second level string 1 (test)");
23507
+ chai_1.assert.equal(localization.getLocalizedKeys("bye %{Test:SecondTrivial.Test2}"), "bye Second level string 2 (test)");
23508
+ });
23509
+ it("first level string with keys", () => {
23510
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Default:FirstSubstitution1}"), "First level {{str}} (default)");
23511
+ chai_1.assert.equal(localization.getLocalizedKeys("bye %{Default:FirstSubstitution2}"), "bye First level {{str1}} and {{str2}} (default)");
23512
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Test:FirstSubstitution1}"), "First level {{str}} (test)");
23513
+ chai_1.assert.equal(localization.getLocalizedKeys("bye %{Test:FirstSubstitution2}"), "bye First level {{str1}} and {{str2}} (test)");
23514
+ });
23515
+ it("second level string with keys", () => {
23516
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Default:SecondSubstitution.Test1}"), "Substitute {{varA}} and {{varB}} (default)");
23517
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{Default:SecondSubstitution.Test2}"), "hi Reverse substitute {{varB}} and {{varA}} (default)");
23518
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Test:SecondSubstitution.Test1}"), "Substitute {{varA}} and {{varB}} (test)");
23519
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{Test:SecondSubstitution.Test2}"), "hi Reverse substitute {{varB}} and {{varA}} (test)");
23520
+ });
23521
+ it("first level missing key doesn't find a value", () => {
23522
+ chai_1.assert.equal(localization.getLocalizedKeys("no %{Default:MissingKeyString}"), "no MissingKeyString");
23523
+ chai_1.assert.equal(localization.getLocalizedKeys("no %{Test:MissingKeyString}"), "no MissingKeyString");
23524
+ });
23525
+ it("second level missing key doesn't find a value", () => {
23526
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{Default:SecondTrivial.MissingString}"), "hi SecondTrivial.MissingString");
23527
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Default:MissingKeyObject.MissingString}"), "MissingKeyObject.MissingString");
23528
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{Test:SecondTrivial.MissingString}"), "hi SecondTrivial.MissingString");
23529
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Test:MissingKeyObject.MissingString}"), "MissingKeyObject.MissingString");
23530
+ });
23531
+ });
23532
+ describe("Nonexisting Namespace", () => {
23533
+ it("first level fails", () => {
23534
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Nonexisting:FirstTrivial}"), "FirstTrivial");
23535
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Nonexisting:MissingKeyString}"), "MissingKeyString");
23536
+ });
23537
+ it("second level fails", () => {
23538
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Nonexisting:SecondTrivial.Test1}"), "SecondTrivial.Test1");
23539
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Nonexisting:Missing.String}"), "Missing.String");
23540
+ });
23541
+ });
23542
+ });
23243
23543
  // The goal is not to test i18next's interpolation,
23244
23544
  // but just to have some simple tests to make sure the
23245
23545
  // basics work through the ITwinLocalization class.
@@ -23248,30 +23548,106 @@ describe("ITwinLocalization", () => {
23248
23548
  before(async () => {
23249
23549
  localization = new ITwinLocalization_1.ITwinLocalization();
23250
23550
  await localization.initialize(["Default", "Test"]);
23551
+ germanLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { lng: "de" } });
23552
+ await germanLocalization.initialize(["Default", "Test"]);
23251
23553
  });
23252
23554
  describe("Default Namespace", () => {
23253
23555
  it("first level with no substitution", () => {
23254
23556
  chai_1.assert.equal(localization.getLocalizedString("FirstTrivial"), "First level string (default)");
23255
23557
  });
23558
+ it("first level with no substitution with fallback keys", () => {
23559
+ chai_1.assert.equal(localization.getLocalizedString(["FirstTrivial", "NotExist"]), "First level string (default)");
23560
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "FirstTrivial"]), "First level string (default)");
23561
+ });
23562
+ it("more than two fallback keys succeeds", () => {
23563
+ chai_1.assert.equal(localization.getLocalizedString(["FirstTrivial", "NotExist1", "NotExist2"]), "First level string (default)");
23564
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist1", "FirstTrivial", "NotExist2"]), "First level string (default)");
23565
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist1", "NotExist2", "FirstTrivial"]), "First level string (default)");
23566
+ chai_1.assert.equal(localization.getLocalizedString(["1", "2", "3", "4", "5", "FirstTrivial"]), "First level string (default)");
23567
+ });
23256
23568
  it("second level with no substitution", () => {
23257
23569
  chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test1"), "Second level string 1 (default)");
23258
23570
  chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test2"), "Second level string 2 (default)");
23259
23571
  });
23572
+ it("second level with no substitution with fallback keys", () => {
23573
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "SecondTrivial.Test1"]), "Second level string 1 (default)");
23574
+ chai_1.assert.equal(localization.getLocalizedString(["SecondTrivial.Test2", "NotExist"]), "Second level string 2 (default)");
23575
+ });
23260
23576
  it("first level with substitution", () => {
23261
23577
  chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23262
23578
  chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (default)");
23263
23579
  chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default)");
23264
23580
  });
23581
+ it("first level with substitution with fallback keys", () => {
23582
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "FirstSubstitution1"], { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23583
+ chai_1.assert.equal(localization.getLocalizedString(["FirstSubstitution1", "NotExist"], { str: "CUSTOM2" }), "First level CUSTOM2 (default)");
23584
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "FirstSubstitution2"], { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default)");
23585
+ });
23265
23586
  it("second level with substitution", () => {
23266
23587
  chai_1.assert.equal(localization.getLocalizedString("SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23267
23588
  chai_1.assert.equal(localization.getLocalizedString("SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default)");
23268
23589
  });
23590
+ it("second level with substitution with fallback keys", () => {
23591
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "SecondSubstitution.Test1"], { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23592
+ chai_1.assert.equal(localization.getLocalizedString(["SecondSubstitution.Test2", "NotExist"], { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default)");
23593
+ });
23269
23594
  it("first level missing key doesn't find a value", () => {
23270
23595
  chai_1.assert.equal(localization.getLocalizedString("MissingKeyString"), "MissingKeyString");
23271
23596
  });
23597
+ it("first level missing all keys doesn't find a value", () => {
23598
+ chai_1.assert.equal(localization.getLocalizedString(["MissingKeyString", "MissingString2"]), "MissingString2");
23599
+ });
23272
23600
  it("second level missing key doesn't find a value", () => {
23273
23601
  chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.MissingString"), "SecondTrivial.MissingString");
23274
- chai_1.assert.equal(localization.getLocalizedString("MissingKeyObject.MissingString"), "MissingKeyObject.MissingString");
23602
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "MissingKeyObject.MissingString"]), "MissingKeyObject.MissingString");
23603
+ });
23604
+ it("read from en-US fallback", () => {
23605
+ chai_1.assert.equal(localization.getLocalizedString("OnlyEnglishUS"), "HelloUS");
23606
+ });
23607
+ });
23608
+ describe("Default Namespace (German)", () => {
23609
+ it("first level with no substitution", () => {
23610
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstTrivial"), "First level string (default german)");
23611
+ });
23612
+ it("first level with no substitution with fallback keys", () => {
23613
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["FirstTrivial", "NotExist"]), "First level string (default german)");
23614
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["NotExist", "FirstTrivial"]), "First level string (default german)");
23615
+ });
23616
+ it("second level with no substitution", () => {
23617
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.Test1"), "Second level string 1 (default german)");
23618
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.Test2"), "Second level string 2 (default german)");
23619
+ });
23620
+ it("second level with no substitution with fallback keys", () => {
23621
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["NotExist", "SecondTrivial.Test1"]), "Second level string 1 (default german)");
23622
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["SecondTrivial.Test2", "NotExist"]), "Second level string 2 (default german)");
23623
+ });
23624
+ it("first level with substitution", () => {
23625
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (default german)");
23626
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (default german)");
23627
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default german)");
23628
+ });
23629
+ it("first level with substitution with fallback keys", () => {
23630
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["NotExist", "FirstSubstitution1"], { str: "CUSTOM1" }), "First level CUSTOM1 (default german)");
23631
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["FirstSubstitution1", "NotExist"], { str: "CUSTOM2" }), "First level CUSTOM2 (default german)");
23632
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["NotExist", "FirstSubstitution2"], { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default german)");
23633
+ });
23634
+ it("second level with substitution", () => {
23635
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default german)");
23636
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default german)");
23637
+ });
23638
+ it("second level with substitution with fallback keys", () => {
23639
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["NotExist", "SecondSubstitution.Test1"], { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default german)");
23640
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["SecondSubstitution.Test2", "NotExist"], { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default german)");
23641
+ });
23642
+ it("first level missing key doesn't find a value", () => {
23643
+ chai_1.assert.equal(germanLocalization.getLocalizedString("MissingKeyString"), "MissingKeyString");
23644
+ });
23645
+ it("first level missing all keys doesn't find a value", () => {
23646
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["MissingKeyString", "MissingString2"]), "MissingString2");
23647
+ });
23648
+ it("second level missing key doesn't find a value", () => {
23649
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.MissingString"), "SecondTrivial.MissingString");
23650
+ chai_1.assert.equal(germanLocalization.getLocalizedString("MissingKeyObject.MissingString"), "MissingKeyObject.MissingString");
23275
23651
  });
23276
23652
  });
23277
23653
  describe("Given Namespace", () => {
@@ -23279,12 +23655,20 @@ describe("ITwinLocalization", () => {
23279
23655
  chai_1.assert.equal(localization.getLocalizedString("Default:FirstTrivial"), "First level string (default)");
23280
23656
  chai_1.assert.equal(localization.getLocalizedString("Test:FirstTrivial"), "First level string (test)");
23281
23657
  });
23658
+ it("first level with no substitution with fallback keys", () => {
23659
+ chai_1.assert.equal(localization.getLocalizedString(["Default:FirstTrivial", "Not:NotExist"]), "First level string (default)");
23660
+ chai_1.assert.equal(localization.getLocalizedString(["Default:NotExist", "Test:FirstTrivial"]), "First level string (test)");
23661
+ });
23282
23662
  it("second level with no substitution", () => {
23283
23663
  chai_1.assert.equal(localization.getLocalizedString("Default:SecondTrivial.Test1"), "Second level string 1 (default)");
23284
23664
  chai_1.assert.equal(localization.getLocalizedString("Default:SecondTrivial.Test2"), "Second level string 2 (default)");
23285
23665
  chai_1.assert.equal(localization.getLocalizedString("Test:SecondTrivial.Test1"), "Second level string 1 (test)");
23286
23666
  chai_1.assert.equal(localization.getLocalizedString("Test:SecondTrivial.Test2"), "Second level string 2 (test)");
23287
23667
  });
23668
+ it("second level with no substitution with fallback keys", () => {
23669
+ chai_1.assert.equal(localization.getLocalizedString(["Test:NotExist", "Default:SecondTrivial.Test1"]), "Second level string 1 (default)");
23670
+ chai_1.assert.equal(localization.getLocalizedString(["Test:SecondTrivial.Test2", "NotExist"]), "Second level string 2 (test)");
23671
+ });
23288
23672
  it("first level with substitution", () => {
23289
23673
  chai_1.assert.equal(localization.getLocalizedString("Default:FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23290
23674
  chai_1.assert.equal(localization.getLocalizedString("Default:FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (default)");
@@ -23293,12 +23677,21 @@ describe("ITwinLocalization", () => {
23293
23677
  chai_1.assert.equal(localization.getLocalizedString("Test:FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (test)");
23294
23678
  chai_1.assert.equal(localization.getLocalizedString("Test:FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (test)");
23295
23679
  });
23680
+ it("first level with substitution with fallback keys", () => {
23681
+ chai_1.assert.equal(localization.getLocalizedString(["Test:NotExist", "Default:FirstSubstitution1"], { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23682
+ chai_1.assert.equal(localization.getLocalizedString(["Test:FirstSubstitution1", "Default:NotExist"], { str: "CUSTOM2" }), "First level CUSTOM2 (test)");
23683
+ chai_1.assert.equal(localization.getLocalizedString(["Test:NotExist", "Default:FirstSubstitution2"], { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default)");
23684
+ });
23296
23685
  it("second level with substitution", () => {
23297
23686
  chai_1.assert.equal(localization.getLocalizedString("Default:SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23298
23687
  chai_1.assert.equal(localization.getLocalizedString("Default:SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default)");
23299
23688
  chai_1.assert.equal(localization.getLocalizedString("Test:SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (test)");
23300
23689
  chai_1.assert.equal(localization.getLocalizedString("Test:SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
23301
23690
  });
23691
+ it("second level with substitution with fallback keys", () => {
23692
+ chai_1.assert.equal(localization.getLocalizedString(["Test:NotExist", "Default:SecondSubstitution.Test1"], { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23693
+ chai_1.assert.equal(localization.getLocalizedString(["Test:SecondSubstitution.Test2", "Default:NotExist"], { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
23694
+ });
23302
23695
  it("first level missing key doesn't find a value", () => {
23303
23696
  chai_1.assert.equal(localization.getLocalizedString("Default:MissingKeyString"), "MissingKeyString");
23304
23697
  chai_1.assert.equal(localization.getLocalizedString("Test:MissingKeyString"), "MissingKeyString");
@@ -23307,6 +23700,43 @@ describe("ITwinLocalization", () => {
23307
23700
  chai_1.assert.equal(localization.getLocalizedString("Test:SecondTrivial.MissingString"), "SecondTrivial.MissingString");
23308
23701
  chai_1.assert.equal(localization.getLocalizedString("Test:MissingKeyObject.MissingString"), "MissingKeyObject.MissingString");
23309
23702
  });
23703
+ it("read from en-US fallback", () => {
23704
+ chai_1.assert.equal(localization.getLocalizedString("Default:OnlyEnglishUS"), "HelloUS");
23705
+ });
23706
+ });
23707
+ describe("Given Namespace (German)", () => {
23708
+ it("first level with no substitution", () => {
23709
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:FirstTrivial"), "First level string (default german)");
23710
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:FirstTrivial"), "First level string (german)");
23711
+ });
23712
+ it("second level with no substitution", () => {
23713
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:SecondTrivial.Test1"), "Second level string 1 (default german)");
23714
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:SecondTrivial.Test2"), "Second level string 2 (default german)");
23715
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:SecondTrivial.Test1"), "Second level string 1 (german)");
23716
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:SecondTrivial.Test2"), "Second level string 2 (german)");
23717
+ });
23718
+ it("first level with substitution", () => {
23719
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (default german)");
23720
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (default german)");
23721
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default german)");
23722
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (german)");
23723
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (german)");
23724
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (german)");
23725
+ });
23726
+ it("second level with substitution", () => {
23727
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default german)");
23728
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default german)");
23729
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (german)");
23730
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (german)");
23731
+ });
23732
+ it("first level missing key doesn't find a value", () => {
23733
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:MissingKeyString"), "MissingKeyString");
23734
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:MissingKeyString"), "MissingKeyString");
23735
+ });
23736
+ it("second level missing key doesn't find a value", () => {
23737
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:SecondTrivial.MissingString"), "SecondTrivial.MissingString");
23738
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:MissingKeyObject.MissingString"), "MissingKeyObject.MissingString");
23739
+ });
23310
23740
  });
23311
23741
  describe("Nonexisting Namespace", () => {
23312
23742
  it("first level fails", () => {
@@ -23317,8 +23747,464 @@ describe("ITwinLocalization", () => {
23317
23747
  chai_1.assert.equal(localization.getLocalizedString("Nonexisting:SecondTrivial.Test1"), "SecondTrivial.Test1");
23318
23748
  chai_1.assert.equal(localization.getLocalizedString("Nonexisting:Missing.String"), "Missing.String");
23319
23749
  });
23750
+ it("fallback key fails", () => {
23751
+ chai_1.assert.equal(localization.getLocalizedString(["Nonexisting:FirstTrivial", "NotExist"]), "NotExist");
23752
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "Nonexisting:Missing.String"]), "Missing.String");
23753
+ });
23754
+ });
23755
+ // Test a few options to make sure they get passed through correctly
23756
+ describe("With Options", () => {
23757
+ it("returnDetails throws error", () => {
23758
+ chai_1.assert.throws(() => {
23759
+ localization.getLocalizedString("X", { returnDetails: true });
23760
+ }, "Translation key must map to a string, but the given options will result in an object");
23761
+ });
23762
+ it("returnObjects throws error", () => {
23763
+ chai_1.assert.throws(() => {
23764
+ localization.getLocalizedString("X", { returnObjects: true });
23765
+ }, "Translation key must map to a string, but the given options will result in an object");
23766
+ });
23767
+ it("returnDetails and returnObjects throws error", () => {
23768
+ chai_1.assert.throws(() => {
23769
+ localization.getLocalizedString("X", { returnDetails: true, returnObjects: true });
23770
+ }, "Translation key must map to a string, but the given options will result in an object");
23771
+ });
23772
+ it("default value", () => {
23773
+ chai_1.assert.equal(localization.getLocalizedString("Missing", { defaultValue: "default" }), "default");
23774
+ });
23775
+ it("override fallback language", () => {
23776
+ // Doesn't fallback to English
23777
+ chai_1.assert.equal(germanLocalization.getLocalizedString("OnlyEnglish", { fallbackLng: "de" }), "OnlyEnglish");
23778
+ });
23779
+ it("set namespace", () => {
23780
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial", { ns: "Test" }), "First level string (test)");
23781
+ chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution1", { str: "CUSTOM1", ns: "Test" }), "First level CUSTOM1 (test)");
23782
+ });
23783
+ });
23784
+ });
23785
+ describe("#getLocalizedString with namespace passed in as an option", () => {
23786
+ before(async () => {
23787
+ localization = new ITwinLocalization_1.ITwinLocalization();
23788
+ await localization.initialize(["Default", "Test"]);
23789
+ germanLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { lng: "de" } });
23790
+ await germanLocalization.initialize(["Default", "Test"]);
23791
+ });
23792
+ describe("Keys Without Namespaces", () => {
23793
+ it("first level with no substitution", () => {
23794
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial", { ns: "Default" }), "First level string (default)");
23795
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial", { ns: "Test" }), "First level string (test)");
23796
+ });
23797
+ it("first level with no substitution with fallback keys", () => {
23798
+ chai_1.assert.equal(localization.getLocalizedString(["FirstTrivial", "NotExist"], { ns: "Default" }), "First level string (default)");
23799
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "FirstTrivial"], { ns: "Test" }), "First level string (test)");
23800
+ });
23801
+ it("second level with no substitution", () => {
23802
+ chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test1", { ns: "Default" }), "Second level string 1 (default)");
23803
+ chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test2", { ns: "Default" }), "Second level string 2 (default)");
23804
+ chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test1", { ns: "Test" }), "Second level string 1 (test)");
23805
+ chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test2", { ns: "Test" }), "Second level string 2 (test)");
23806
+ });
23807
+ it("second level with no substitution with fallback keys", () => {
23808
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "SecondTrivial.Test1"], { ns: "Default" }), "Second level string 1 (default)");
23809
+ chai_1.assert.equal(localization.getLocalizedString(["SecondTrivial.Test2", "NotExist"], { ns: "Test" }), "Second level string 2 (test)");
23810
+ });
23811
+ it("first level with substitution", () => {
23812
+ chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution1", { ns: "Default", str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23813
+ chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution1", { ns: "Default", str: "CUSTOM2" }), "First level CUSTOM2 (default)");
23814
+ chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution2", { ns: "Default", str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default)");
23815
+ chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution1", { ns: "Test", str: "CUSTOM1" }), "First level CUSTOM1 (test)");
23816
+ chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution1", { ns: "Test", str: "CUSTOM2" }), "First level CUSTOM2 (test)");
23817
+ chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution2", { ns: "Test", str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (test)");
23818
+ });
23819
+ it("first level with substitution with fallback keys", () => {
23820
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "FirstSubstitution1"], { ns: "Default", str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23821
+ chai_1.assert.equal(localization.getLocalizedString(["FirstSubstitution1", "NotExist"], { ns: "Test", str: "CUSTOM2" }), "First level CUSTOM2 (test)");
23822
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "FirstSubstitution2"], { ns: "Test", str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (test)");
23823
+ });
23824
+ it("second level with substitution", () => {
23825
+ chai_1.assert.equal(localization.getLocalizedString("SecondSubstitution.Test1", { ns: "Default", varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23826
+ chai_1.assert.equal(localization.getLocalizedString("SecondSubstitution.Test2", { ns: "Default", varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default)");
23827
+ chai_1.assert.equal(localization.getLocalizedString("SecondSubstitution.Test1", { ns: "Test", varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (test)");
23828
+ chai_1.assert.equal(localization.getLocalizedString("SecondSubstitution.Test2", { ns: "Test", varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
23829
+ });
23830
+ it("second level with substitution with fallback keys", () => {
23831
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "SecondSubstitution.Test1"], { ns: "Default", varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23832
+ chai_1.assert.equal(localization.getLocalizedString(["SecondSubstitution.Test2", "NotExist"], { ns: "Test", varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
23833
+ });
23834
+ it("first level missing key doesn't find a value", () => {
23835
+ chai_1.assert.equal(localization.getLocalizedString("MissingKeyString", { ns: "Default" }), "MissingKeyString");
23836
+ chai_1.assert.equal(localization.getLocalizedString("MissingKeyString", { ns: "Test" }), "MissingKeyString");
23837
+ });
23838
+ it("second level missing key doesn't find a value", () => {
23839
+ chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.MissingString", { ns: "Test" }), "SecondTrivial.MissingString");
23840
+ chai_1.assert.equal(localization.getLocalizedString("MissingKeyObject.MissingString", { ns: "Test" }), "MissingKeyObject.MissingString");
23841
+ });
23842
+ });
23843
+ describe("Keys Without Namespaces (German)", () => {
23844
+ it("first level with no substitution", () => {
23845
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstTrivial", { ns: "Default" }), "First level string (default german)");
23846
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstTrivial", { ns: "Test" }), "First level string (german)");
23847
+ });
23848
+ it("second level with no substitution", () => {
23849
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.Test1", { ns: "Default" }), "Second level string 1 (default german)");
23850
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.Test2", { ns: "Default" }), "Second level string 2 (default german)");
23851
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.Test1", { ns: "Test" }), "Second level string 1 (german)");
23852
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.Test2", { ns: "Test" }), "Second level string 2 (german)");
23853
+ });
23854
+ it("first level with substitution", () => {
23855
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution1", { ns: "Default", str: "CUSTOM1" }), "First level CUSTOM1 (default german)");
23856
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution1", { ns: "Default", str: "CUSTOM2" }), "First level CUSTOM2 (default german)");
23857
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution2", { ns: "Default", str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default german)");
23858
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution1", { ns: "Test", str: "CUSTOM1" }), "First level CUSTOM1 (german)");
23859
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution1", { ns: "Test", str: "CUSTOM2" }), "First level CUSTOM2 (german)");
23860
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution2", { ns: "Test", str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (german)");
23861
+ });
23862
+ it("second level with substitution", () => {
23863
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondSubstitution.Test1", { ns: "Default", varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default german)");
23864
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondSubstitution.Test2", { ns: "Default", varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default german)");
23865
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondSubstitution.Test1", { ns: "Test", varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (german)");
23866
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondSubstitution.Test2", { ns: "Test", varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (german)");
23867
+ });
23868
+ it("first level missing key doesn't find a value", () => {
23869
+ chai_1.assert.equal(germanLocalization.getLocalizedString("MissingKeyString", { ns: "Default" }), "MissingKeyString");
23870
+ chai_1.assert.equal(germanLocalization.getLocalizedString("MissingKeyString", { ns: "Test" }), "MissingKeyString");
23871
+ });
23872
+ it("second level missing key doesn't find a value", () => {
23873
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.MissingString", { ns: "Test" }), "SecondTrivial.MissingString");
23874
+ chai_1.assert.equal(germanLocalization.getLocalizedString("MissingKeyObject.MissingString", { ns: "Test" }), "MissingKeyObject.MissingString");
23875
+ });
23876
+ });
23877
+ describe("Keys With Namespaces", () => {
23878
+ it("key with same namespace works", () => {
23879
+ chai_1.assert.equal(localization.getLocalizedString("Default:FirstTrivial", { ns: "Default" }), "First level string (default)");
23880
+ chai_1.assert.equal(localization.getLocalizedString("Test:SecondTrivial.Test1", { ns: "Test" }), "Second level string 1 (test)");
23881
+ });
23882
+ it("key with different namespace overrides given namespace", () => {
23883
+ chai_1.assert.equal(localization.getLocalizedString("Test:FirstTrivial", { ns: "Default" }), "First level string (test)");
23884
+ chai_1.assert.equal(localization.getLocalizedString("Default:FirstTrivial", { ns: "Test" }), "First level string (default)");
23885
+ });
23886
+ it("key with same namespace works with fallback keys", () => {
23887
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist:FirstTrivial", "Default:FirstTrivial"], { ns: "Default" }), "First level string (default)");
23888
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist:FirstTrivial", "Test:FirstTrivial"], { ns: "Test" }), "First level string (test)");
23889
+ });
23890
+ it("key with different namespace overrides given namespace with fallback keys", () => {
23891
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist:FirstTrivial", "Test:FirstTrivial"], { ns: "Default" }), "First level string (test)");
23892
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist:FirstTrivial", "Default:FirstTrivial"], { ns: "Test" }), "First level string (default)");
23893
+ });
23894
+ it("missing key does not find a value", () => {
23895
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:MissingKeyString", { ns: "Default" }), "MissingKeyString");
23896
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["Missing1", "MissingKeyObject.MissingString"], { ns: "Test" }), "MissingKeyObject.MissingString");
23897
+ });
23898
+ });
23899
+ describe("Nonexisting Namespace", () => {
23900
+ it("first level fails", () => {
23901
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial", { ns: "Nonexisting" }), "FirstTrivial");
23902
+ chai_1.assert.equal(localization.getLocalizedString("MissingKeyString", { ns: "Nonexisting" }), "MissingKeyString");
23903
+ });
23904
+ it("second level fails", () => {
23905
+ chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test1", { ns: "Nonexisting" }), "SecondTrivial.Test1");
23906
+ chai_1.assert.equal(localization.getLocalizedString("Missing.String", { ns: "Nonexisting" }), "Missing.String");
23907
+ });
23908
+ it("empty string namespace falls back to default namespace", () => {
23909
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial", { ns: "" }), "First level string (default)");
23910
+ chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test1", { ns: "" }), "Second level string 1 (default)");
23911
+ });
23912
+ it("fallback key fails", () => {
23913
+ chai_1.assert.equal(localization.getLocalizedString(["FirstTrivial", "NotExist"], { ns: "Nonexisting" }), "NotExist");
23914
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "Missing.String"], { ns: "Nonexisting" }), "Missing.String");
23915
+ });
23916
+ it("use key with valid namespace instead", () => {
23917
+ chai_1.assert.equal(localization.getLocalizedString("Default:FirstTrivial", { ns: "Nonexisting" }), "First level string (default)");
23918
+ chai_1.assert.equal(localization.getLocalizedString("Test:FirstTrivial", { ns: "Nonexisting" }), "First level string (test)");
23919
+ });
23920
+ it("providing key with invalid namespace fails", () => {
23921
+ chai_1.assert.equal(localization.getLocalizedString("Nonexisting2:FirstTrivial", { ns: "Nonexisting1" }), "FirstTrivial");
23922
+ });
23923
+ });
23924
+ // Test a few options to make sure they get passed through correctly
23925
+ describe("With Options", () => {
23926
+ it("returnDetails throws error", () => {
23927
+ chai_1.assert.throws(() => {
23928
+ localization.getLocalizedString("X", { ns: "Default", returnDetails: true });
23929
+ }, "Translation key must map to a string, but the given options will result in an object");
23930
+ });
23931
+ it("returnObjects throws error", () => {
23932
+ chai_1.assert.throws(() => {
23933
+ localization.getLocalizedString("X", { ns: "Default", returnObjects: true });
23934
+ }, "Translation key must map to a string, but the given options will result in an object");
23935
+ });
23936
+ it("returnDetails and returnObjects throws error", () => {
23937
+ chai_1.assert.throws(() => {
23938
+ localization.getLocalizedString("X", { ns: "Default", returnDetails: true, returnObjects: true });
23939
+ }, "Translation key must map to a string, but the given options will result in an object");
23940
+ });
23941
+ it("default value", () => {
23942
+ chai_1.assert.equal(localization.getLocalizedString("Missing", { ns: "Default", defaultValue: "default" }), "default");
23943
+ });
23944
+ it("override fallback language", () => {
23945
+ // Doesn't fallback to English
23946
+ chai_1.assert.equal(germanLocalization.getLocalizedString("OnlyEnglish", { ns: "Default", fallbackLng: "de" }), "OnlyEnglish");
23947
+ });
23948
+ });
23949
+ });
23950
+ describe("#getEnglishString", () => {
23951
+ before(async () => {
23952
+ localization = new ITwinLocalization_1.ITwinLocalization();
23953
+ await localization.initialize(["Default", "Test"]);
23954
+ germanLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { lng: "de" } });
23955
+ await germanLocalization.initialize(["Default", "Test"]);
23956
+ });
23957
+ describe("Given Namespace", () => {
23958
+ it("first level with no substitution", () => {
23959
+ chai_1.assert.equal(localization.getEnglishString("Default", "FirstTrivial"), "First level string (default)");
23960
+ chai_1.assert.equal(localization.getEnglishString("Test", "FirstTrivial"), "First level string (test)");
23961
+ });
23962
+ it("first level with no substitution with fallback keys", () => {
23963
+ chai_1.assert.equal(localization.getEnglishString("Default", ["FirstTrivial", "NotExist"]), "First level string (default)");
23964
+ chai_1.assert.equal(localization.getEnglishString("Test", ["NotExist", "FirstTrivial"]), "First level string (test)");
23965
+ });
23966
+ it("second level with no substitution", () => {
23967
+ chai_1.assert.equal(localization.getEnglishString("Default", "SecondTrivial.Test1"), "Second level string 1 (default)");
23968
+ chai_1.assert.equal(localization.getEnglishString("Default", "SecondTrivial.Test2"), "Second level string 2 (default)");
23969
+ chai_1.assert.equal(localization.getEnglishString("Test", "SecondTrivial.Test1"), "Second level string 1 (test)");
23970
+ chai_1.assert.equal(localization.getEnglishString("Test", "SecondTrivial.Test2"), "Second level string 2 (test)");
23971
+ });
23972
+ it("second level with no substitution with fallback keys", () => {
23973
+ chai_1.assert.equal(localization.getEnglishString("Default", ["NotExist", "SecondTrivial.Test1"]), "Second level string 1 (default)");
23974
+ chai_1.assert.equal(localization.getEnglishString("Test", ["SecondTrivial.Test2", "NotExist"]), "Second level string 2 (test)");
23975
+ });
23976
+ it("first level with substitution", () => {
23977
+ chai_1.assert.equal(localization.getEnglishString("Default", "FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23978
+ chai_1.assert.equal(localization.getEnglishString("Default", "FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (default)");
23979
+ chai_1.assert.equal(localization.getEnglishString("Default", "FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default)");
23980
+ chai_1.assert.equal(localization.getEnglishString("Test", "FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (test)");
23981
+ chai_1.assert.equal(localization.getEnglishString("Test", "FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (test)");
23982
+ chai_1.assert.equal(localization.getEnglishString("Test", "FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (test)");
23983
+ });
23984
+ it("first level with substitution with fallback keys", () => {
23985
+ chai_1.assert.equal(localization.getEnglishString("Default", ["NotExist", "FirstSubstitution1"], { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23986
+ chai_1.assert.equal(localization.getEnglishString("Test", ["FirstSubstitution1", "NotExist"], { str: "CUSTOM2" }), "First level CUSTOM2 (test)");
23987
+ chai_1.assert.equal(localization.getEnglishString("Test", ["NotExist", "FirstSubstitution2"], { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (test)");
23988
+ });
23989
+ it("second level with substitution", () => {
23990
+ chai_1.assert.equal(localization.getEnglishString("Default", "SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23991
+ chai_1.assert.equal(localization.getEnglishString("Default", "SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default)");
23992
+ chai_1.assert.equal(localization.getEnglishString("Test", "SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (test)");
23993
+ chai_1.assert.equal(localization.getEnglishString("Test", "SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
23994
+ });
23995
+ it("second level with substitution with fallback keys", () => {
23996
+ chai_1.assert.equal(localization.getEnglishString("Default", ["NotExist", "SecondSubstitution.Test1"], { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23997
+ chai_1.assert.equal(localization.getEnglishString("Test", ["SecondSubstitution.Test2", "NotExist"], { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
23998
+ });
23999
+ it("first level missing key doesn't find a value", () => {
24000
+ chai_1.assert.equal(localization.getEnglishString("Default", "MissingKeyString"), "MissingKeyString");
24001
+ chai_1.assert.equal(localization.getEnglishString("Test", "MissingKeyString"), "MissingKeyString");
24002
+ });
24003
+ it("second level missing key doesn't find a value", () => {
24004
+ chai_1.assert.equal(localization.getEnglishString("Test", "SecondTrivial.MissingString"), "SecondTrivial.MissingString");
24005
+ chai_1.assert.equal(localization.getEnglishString("Test", "MissingKeyObject.MissingString"), "MissingKeyObject.MissingString");
24006
+ });
24007
+ });
24008
+ describe("Given Namespace with German default language returns English strings", () => {
24009
+ it("first level with no substitution", () => {
24010
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "FirstTrivial"), "First level string (default)");
24011
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "FirstTrivial"), "First level string (test)");
24012
+ });
24013
+ it("first level with no substitution with fallback keys", () => {
24014
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", ["FirstTrivial", "NotExist"]), "First level string (default)");
24015
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", ["NotExist", "FirstTrivial"]), "First level string (test)");
24016
+ });
24017
+ it("second level with no substitution", () => {
24018
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "SecondTrivial.Test1"), "Second level string 1 (default)");
24019
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "SecondTrivial.Test2"), "Second level string 2 (default)");
24020
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "SecondTrivial.Test1"), "Second level string 1 (test)");
24021
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "SecondTrivial.Test2"), "Second level string 2 (test)");
24022
+ });
24023
+ it("second level with no substitution with fallback keys", () => {
24024
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", ["NotExist", "SecondTrivial.Test1"]), "Second level string 1 (default)");
24025
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", ["SecondTrivial.Test2", "NotExist"]), "Second level string 2 (test)");
24026
+ });
24027
+ it("first level with substitution", () => {
24028
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
24029
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (default)");
24030
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default)");
24031
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (test)");
24032
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (test)");
24033
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (test)");
24034
+ });
24035
+ it("first level with substitution with fallback keys", () => {
24036
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", ["NotExist", "FirstSubstitution1"], { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
24037
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", ["FirstSubstitution1", "NotExist"], { str: "CUSTOM2" }), "First level CUSTOM2 (test)");
24038
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", ["NotExist", "FirstSubstitution2"], { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (test)");
24039
+ });
24040
+ it("second level with substitution", () => {
24041
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
24042
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default)");
24043
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (test)");
24044
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
24045
+ });
24046
+ it("second level with substitution with fallback keys", () => {
24047
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", ["NotExist", "SecondSubstitution.Test1"], { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
24048
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", ["SecondSubstitution.Test2", "NotExist"], { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
24049
+ });
24050
+ it("first level missing key doesn't find a value", () => {
24051
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "MissingKeyString"), "MissingKeyString");
24052
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "MissingKeyString"), "MissingKeyString");
24053
+ });
24054
+ it("second level missing key doesn't find a value", () => {
24055
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "SecondTrivial.MissingString"), "SecondTrivial.MissingString");
24056
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "MissingKeyObject.MissingString"), "MissingKeyObject.MissingString");
24057
+ });
24058
+ });
24059
+ describe("Nonexisting Namespace", () => {
24060
+ it("first level fails", () => {
24061
+ chai_1.assert.equal(localization.getEnglishString("Nonexisting", "FirstTrivial"), "FirstTrivial");
24062
+ chai_1.assert.equal(localization.getEnglishString("Nonexisting", "MissingKeyString"), "MissingKeyString");
24063
+ });
24064
+ it("second level fails", () => {
24065
+ chai_1.assert.equal(localization.getEnglishString("Nonexisting", "SecondTrivial.Test1"), "SecondTrivial.Test1");
24066
+ chai_1.assert.equal(localization.getEnglishString("Nonexisting", "Missing.String"), "Missing.String");
24067
+ });
24068
+ it("empty string namespace is treated as default namespace", () => {
24069
+ chai_1.assert.equal(localization.getEnglishString("", "FirstTrivial"), "First level string (default)");
24070
+ chai_1.assert.equal(localization.getEnglishString("", "SecondTrivial.Test1"), "Second level string 1 (default)");
24071
+ });
24072
+ });
24073
+ // Test a few options to make sure they get passed through correctly
24074
+ describe("With Options", () => {
24075
+ it("returnDetails throws error", () => {
24076
+ chai_1.assert.throws(() => {
24077
+ localization.getEnglishString("Default", "X", { returnDetails: true });
24078
+ }, "Translation key must map to a string, but the given options will result in an object");
24079
+ });
24080
+ it("returnObjects throws error", () => {
24081
+ chai_1.assert.throws(() => {
24082
+ localization.getEnglishString("Default", "X", { returnObjects: true });
24083
+ }, "Translation key must map to a string, but the given options will result in an object");
24084
+ });
24085
+ it("returnDetails and returnObjects throws error", () => {
24086
+ chai_1.assert.throws(() => {
24087
+ localization.getEnglishString("Default", "X", { returnDetails: true, returnObjects: true });
24088
+ }, "Translation key must map to a string, but the given options will result in an object");
24089
+ });
24090
+ it("default value", () => {
24091
+ chai_1.assert.equal(localization.getEnglishString("Default", "Missing", { defaultValue: "default" }), "default");
24092
+ });
24093
+ it("english takes priority over fallback language", () => {
24094
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "OnlyEnglish", { fallbackLng: "de" }), "Hello");
24095
+ });
24096
+ // White box test
24097
+ it("given namespace overrides namespace translation option", () => {
24098
+ chai_1.assert.equal(localization.getEnglishString("Default", "FirstTrivial", { ns: "Test" }), "First level string (default)");
24099
+ chai_1.assert.equal(localization.getEnglishString("Default", "FirstSubstitution1", { str: "CUSTOM1", ns: "Test" }), "First level CUSTOM1 (default)");
24100
+ });
24101
+ });
24102
+ });
24103
+ // Returned promises never have anything of substance, being only empty or resolving to null...
24104
+ // describe("#getNamespacePromise", () => {
24105
+ // });
24106
+ describe("#getLanguageList", () => {
24107
+ let languages;
24108
+ it("english language list includes en and en-US", async () => {
24109
+ localization = new ITwinLocalization_1.ITwinLocalization();
24110
+ await localization.initialize([]);
24111
+ languages = localization.getLanguageList();
24112
+ chai_1.assert.isTrue(languages.includes("en-US"));
24113
+ chai_1.assert.isTrue(languages.includes("en"));
24114
+ });
24115
+ it("when non-english language is set as default, that language and english are included in langauge list", async () => {
24116
+ germanLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { lng: "de" } });
24117
+ await germanLocalization.initialize([]);
24118
+ languages = germanLocalization.getLanguageList();
24119
+ chai_1.assert.isTrue(languages.includes("en"));
24120
+ chai_1.assert.isTrue(languages.includes("de"));
24121
+ });
24122
+ });
24123
+ describe("#changeLanguage", () => {
24124
+ it("change from english to another language", async () => {
24125
+ localization = new ITwinLocalization_1.ITwinLocalization();
24126
+ await localization.initialize(["Default"]);
24127
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial"), "First level string (default)"); // english
24128
+ await localization.changeLanguage("de");
24129
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial"), "First level string (default german)"); // german
24130
+ });
24131
+ it("change from another language to english", async () => {
24132
+ localization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { lng: "de" } });
24133
+ await localization.initialize(["Default"]);
24134
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial"), "First level string (default german)"); // german
24135
+ await localization.changeLanguage("en");
24136
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial"), "First level string (default)"); // english
24137
+ });
24138
+ });
24139
+ describe("#registerNamespace", () => {
24140
+ let itwinLocalization;
24141
+ beforeEach(async () => {
24142
+ itwinLocalization = new ITwinLocalization_1.ITwinLocalization();
24143
+ });
24144
+ it("can read from namespace after it is registered", async () => {
24145
+ await itwinLocalization.initialize([]);
24146
+ await itwinLocalization.registerNamespace("Test");
24147
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("Test"));
24148
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("Test:FirstTrivial"), "First level string (test)");
24149
+ });
24150
+ it("zero initial, register one", async () => {
24151
+ await itwinLocalization.initialize([]);
24152
+ await itwinLocalization.registerNamespace("test1");
24153
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test1"));
24154
+ });
24155
+ it("zero initial, register two", async () => {
24156
+ await itwinLocalization.initialize([]);
24157
+ await itwinLocalization.registerNamespace("test1");
24158
+ await itwinLocalization.registerNamespace("test2");
24159
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test1"));
24160
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test2"));
24161
+ });
24162
+ it("one initial, register one", async () => {
24163
+ await itwinLocalization.initialize(["initial1"]);
24164
+ await itwinLocalization.registerNamespace("test1");
24165
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test1"));
24166
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("initial1"));
24167
+ });
24168
+ it("one initial, register two", async () => {
24169
+ await itwinLocalization.initialize(["initial1"]);
24170
+ await itwinLocalization.registerNamespace("test1");
24171
+ await itwinLocalization.registerNamespace("test2");
24172
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test1"));
24173
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test2"));
24174
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("initial1"));
24175
+ });
24176
+ it("two initial, register one", async () => {
24177
+ await itwinLocalization.initialize(["initial1", "initial2"]);
24178
+ await itwinLocalization.registerNamespace("test1");
24179
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test1"));
24180
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("initial1"));
24181
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("initial2"));
24182
+ });
24183
+ it("two initial, register two", async () => {
24184
+ await itwinLocalization.initialize(["initial1", "initial2"]);
24185
+ await itwinLocalization.registerNamespace("test1");
24186
+ await itwinLocalization.registerNamespace("test2");
24187
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test1"));
24188
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("initial1"));
24189
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("initial2"));
24190
+ });
24191
+ it("register duplicate namespaces", async () => {
24192
+ await itwinLocalization.initialize([]);
24193
+ await itwinLocalization.registerNamespace("Test");
24194
+ await itwinLocalization.registerNamespace("Test");
24195
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("Test"));
24196
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("Test:FirstTrivial"), "First level string (test)");
24197
+ });
24198
+ it("register duplicate namespace of initial namespace doesn't break anything", async () => {
24199
+ await itwinLocalization.initialize(["Test"]);
24200
+ await itwinLocalization.registerNamespace("Test");
24201
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("Test"));
24202
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("Test:FirstTrivial"), "First level string (test)");
23320
24203
  });
23321
24204
  });
24205
+ // unregisterNamespace() isn't used and basically does nothing
24206
+ // describe("#unregisterNamespace", () => {
24207
+ // });
23322
24208
  });
23323
24209
 
23324
24210
  })();