@itwin/ecschema-rpcinterface-tests 3.4.0-dev.10 → 3.4.0-dev.15

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.
@@ -21,9 +21,9 @@
21
21
 
22
22
  /***/ }),
23
23
 
24
- /***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.6/node_modules/@itwin/certa/lib/utils/CallbackUtils.js":
24
+ /***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.8/node_modules/@itwin/certa/lib/utils/CallbackUtils.js":
25
25
  /*!********************************************************************************************************************!*\
26
- !*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.6/node_modules/@itwin/certa/lib/utils/CallbackUtils.js ***!
26
+ !*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.8/node_modules/@itwin/certa/lib/utils/CallbackUtils.js ***!
27
27
  \********************************************************************************************************************/
28
28
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
29
29
 
@@ -2296,7 +2296,7 @@ exports.getAccessTokenFromBackend = exports.getTokenCallbackName = void 0;
2296
2296
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2297
2297
  * See LICENSE.md in the project root for license terms and full copyright notice.
2298
2298
  *--------------------------------------------------------------------------------------------*/
2299
- const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.6/node_modules/@itwin/certa/lib/utils/CallbackUtils.js");
2299
+ const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.8/node_modules/@itwin/certa/lib/utils/CallbackUtils.js");
2300
2300
  // Shared by both the frontend and backend side of the tests
2301
2301
  exports.getTokenCallbackName = "getToken";
2302
2302
  async function getAccessTokenFromBackend(user, oidcConfig) {
@@ -19015,570 +19015,6 @@ Emitter.prototype.hasListeners = function(event){
19015
19015
  };
19016
19016
 
19017
19017
 
19018
- /***/ }),
19019
-
19020
- /***/ "../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js":
19021
- /*!****************************************************************************************************************!*\
19022
- !*** ../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js ***!
19023
- \****************************************************************************************************************/
19024
- /***/ (function(module, exports) {
19025
-
19026
- var global = typeof self !== 'undefined' ? self : this;
19027
- var __self__ = (function () {
19028
- function F() {
19029
- this.fetch = false;
19030
- this.DOMException = global.DOMException
19031
- }
19032
- F.prototype = global;
19033
- return new F();
19034
- })();
19035
- (function(self) {
19036
-
19037
- var irrelevant = (function (exports) {
19038
-
19039
- var support = {
19040
- searchParams: 'URLSearchParams' in self,
19041
- iterable: 'Symbol' in self && 'iterator' in Symbol,
19042
- blob:
19043
- 'FileReader' in self &&
19044
- 'Blob' in self &&
19045
- (function() {
19046
- try {
19047
- new Blob();
19048
- return true
19049
- } catch (e) {
19050
- return false
19051
- }
19052
- })(),
19053
- formData: 'FormData' in self,
19054
- arrayBuffer: 'ArrayBuffer' in self
19055
- };
19056
-
19057
- function isDataView(obj) {
19058
- return obj && DataView.prototype.isPrototypeOf(obj)
19059
- }
19060
-
19061
- if (support.arrayBuffer) {
19062
- var viewClasses = [
19063
- '[object Int8Array]',
19064
- '[object Uint8Array]',
19065
- '[object Uint8ClampedArray]',
19066
- '[object Int16Array]',
19067
- '[object Uint16Array]',
19068
- '[object Int32Array]',
19069
- '[object Uint32Array]',
19070
- '[object Float32Array]',
19071
- '[object Float64Array]'
19072
- ];
19073
-
19074
- var isArrayBufferView =
19075
- ArrayBuffer.isView ||
19076
- function(obj) {
19077
- return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1
19078
- };
19079
- }
19080
-
19081
- function normalizeName(name) {
19082
- if (typeof name !== 'string') {
19083
- name = String(name);
19084
- }
19085
- if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name)) {
19086
- throw new TypeError('Invalid character in header field name')
19087
- }
19088
- return name.toLowerCase()
19089
- }
19090
-
19091
- function normalizeValue(value) {
19092
- if (typeof value !== 'string') {
19093
- value = String(value);
19094
- }
19095
- return value
19096
- }
19097
-
19098
- // Build a destructive iterator for the value list
19099
- function iteratorFor(items) {
19100
- var iterator = {
19101
- next: function() {
19102
- var value = items.shift();
19103
- return {done: value === undefined, value: value}
19104
- }
19105
- };
19106
-
19107
- if (support.iterable) {
19108
- iterator[Symbol.iterator] = function() {
19109
- return iterator
19110
- };
19111
- }
19112
-
19113
- return iterator
19114
- }
19115
-
19116
- function Headers(headers) {
19117
- this.map = {};
19118
-
19119
- if (headers instanceof Headers) {
19120
- headers.forEach(function(value, name) {
19121
- this.append(name, value);
19122
- }, this);
19123
- } else if (Array.isArray(headers)) {
19124
- headers.forEach(function(header) {
19125
- this.append(header[0], header[1]);
19126
- }, this);
19127
- } else if (headers) {
19128
- Object.getOwnPropertyNames(headers).forEach(function(name) {
19129
- this.append(name, headers[name]);
19130
- }, this);
19131
- }
19132
- }
19133
-
19134
- Headers.prototype.append = function(name, value) {
19135
- name = normalizeName(name);
19136
- value = normalizeValue(value);
19137
- var oldValue = this.map[name];
19138
- this.map[name] = oldValue ? oldValue + ', ' + value : value;
19139
- };
19140
-
19141
- Headers.prototype['delete'] = function(name) {
19142
- delete this.map[normalizeName(name)];
19143
- };
19144
-
19145
- Headers.prototype.get = function(name) {
19146
- name = normalizeName(name);
19147
- return this.has(name) ? this.map[name] : null
19148
- };
19149
-
19150
- Headers.prototype.has = function(name) {
19151
- return this.map.hasOwnProperty(normalizeName(name))
19152
- };
19153
-
19154
- Headers.prototype.set = function(name, value) {
19155
- this.map[normalizeName(name)] = normalizeValue(value);
19156
- };
19157
-
19158
- Headers.prototype.forEach = function(callback, thisArg) {
19159
- for (var name in this.map) {
19160
- if (this.map.hasOwnProperty(name)) {
19161
- callback.call(thisArg, this.map[name], name, this);
19162
- }
19163
- }
19164
- };
19165
-
19166
- Headers.prototype.keys = function() {
19167
- var items = [];
19168
- this.forEach(function(value, name) {
19169
- items.push(name);
19170
- });
19171
- return iteratorFor(items)
19172
- };
19173
-
19174
- Headers.prototype.values = function() {
19175
- var items = [];
19176
- this.forEach(function(value) {
19177
- items.push(value);
19178
- });
19179
- return iteratorFor(items)
19180
- };
19181
-
19182
- Headers.prototype.entries = function() {
19183
- var items = [];
19184
- this.forEach(function(value, name) {
19185
- items.push([name, value]);
19186
- });
19187
- return iteratorFor(items)
19188
- };
19189
-
19190
- if (support.iterable) {
19191
- Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
19192
- }
19193
-
19194
- function consumed(body) {
19195
- if (body.bodyUsed) {
19196
- return Promise.reject(new TypeError('Already read'))
19197
- }
19198
- body.bodyUsed = true;
19199
- }
19200
-
19201
- function fileReaderReady(reader) {
19202
- return new Promise(function(resolve, reject) {
19203
- reader.onload = function() {
19204
- resolve(reader.result);
19205
- };
19206
- reader.onerror = function() {
19207
- reject(reader.error);
19208
- };
19209
- })
19210
- }
19211
-
19212
- function readBlobAsArrayBuffer(blob) {
19213
- var reader = new FileReader();
19214
- var promise = fileReaderReady(reader);
19215
- reader.readAsArrayBuffer(blob);
19216
- return promise
19217
- }
19218
-
19219
- function readBlobAsText(blob) {
19220
- var reader = new FileReader();
19221
- var promise = fileReaderReady(reader);
19222
- reader.readAsText(blob);
19223
- return promise
19224
- }
19225
-
19226
- function readArrayBufferAsText(buf) {
19227
- var view = new Uint8Array(buf);
19228
- var chars = new Array(view.length);
19229
-
19230
- for (var i = 0; i < view.length; i++) {
19231
- chars[i] = String.fromCharCode(view[i]);
19232
- }
19233
- return chars.join('')
19234
- }
19235
-
19236
- function bufferClone(buf) {
19237
- if (buf.slice) {
19238
- return buf.slice(0)
19239
- } else {
19240
- var view = new Uint8Array(buf.byteLength);
19241
- view.set(new Uint8Array(buf));
19242
- return view.buffer
19243
- }
19244
- }
19245
-
19246
- function Body() {
19247
- this.bodyUsed = false;
19248
-
19249
- this._initBody = function(body) {
19250
- this._bodyInit = body;
19251
- if (!body) {
19252
- this._bodyText = '';
19253
- } else if (typeof body === 'string') {
19254
- this._bodyText = body;
19255
- } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
19256
- this._bodyBlob = body;
19257
- } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
19258
- this._bodyFormData = body;
19259
- } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
19260
- this._bodyText = body.toString();
19261
- } else if (support.arrayBuffer && support.blob && isDataView(body)) {
19262
- this._bodyArrayBuffer = bufferClone(body.buffer);
19263
- // IE 10-11 can't handle a DataView body.
19264
- this._bodyInit = new Blob([this._bodyArrayBuffer]);
19265
- } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
19266
- this._bodyArrayBuffer = bufferClone(body);
19267
- } else {
19268
- this._bodyText = body = Object.prototype.toString.call(body);
19269
- }
19270
-
19271
- if (!this.headers.get('content-type')) {
19272
- if (typeof body === 'string') {
19273
- this.headers.set('content-type', 'text/plain;charset=UTF-8');
19274
- } else if (this._bodyBlob && this._bodyBlob.type) {
19275
- this.headers.set('content-type', this._bodyBlob.type);
19276
- } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
19277
- this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
19278
- }
19279
- }
19280
- };
19281
-
19282
- if (support.blob) {
19283
- this.blob = function() {
19284
- var rejected = consumed(this);
19285
- if (rejected) {
19286
- return rejected
19287
- }
19288
-
19289
- if (this._bodyBlob) {
19290
- return Promise.resolve(this._bodyBlob)
19291
- } else if (this._bodyArrayBuffer) {
19292
- return Promise.resolve(new Blob([this._bodyArrayBuffer]))
19293
- } else if (this._bodyFormData) {
19294
- throw new Error('could not read FormData body as blob')
19295
- } else {
19296
- return Promise.resolve(new Blob([this._bodyText]))
19297
- }
19298
- };
19299
-
19300
- this.arrayBuffer = function() {
19301
- if (this._bodyArrayBuffer) {
19302
- return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
19303
- } else {
19304
- return this.blob().then(readBlobAsArrayBuffer)
19305
- }
19306
- };
19307
- }
19308
-
19309
- this.text = function() {
19310
- var rejected = consumed(this);
19311
- if (rejected) {
19312
- return rejected
19313
- }
19314
-
19315
- if (this._bodyBlob) {
19316
- return readBlobAsText(this._bodyBlob)
19317
- } else if (this._bodyArrayBuffer) {
19318
- return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
19319
- } else if (this._bodyFormData) {
19320
- throw new Error('could not read FormData body as text')
19321
- } else {
19322
- return Promise.resolve(this._bodyText)
19323
- }
19324
- };
19325
-
19326
- if (support.formData) {
19327
- this.formData = function() {
19328
- return this.text().then(decode)
19329
- };
19330
- }
19331
-
19332
- this.json = function() {
19333
- return this.text().then(JSON.parse)
19334
- };
19335
-
19336
- return this
19337
- }
19338
-
19339
- // HTTP methods whose capitalization should be normalized
19340
- var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
19341
-
19342
- function normalizeMethod(method) {
19343
- var upcased = method.toUpperCase();
19344
- return methods.indexOf(upcased) > -1 ? upcased : method
19345
- }
19346
-
19347
- function Request(input, options) {
19348
- options = options || {};
19349
- var body = options.body;
19350
-
19351
- if (input instanceof Request) {
19352
- if (input.bodyUsed) {
19353
- throw new TypeError('Already read')
19354
- }
19355
- this.url = input.url;
19356
- this.credentials = input.credentials;
19357
- if (!options.headers) {
19358
- this.headers = new Headers(input.headers);
19359
- }
19360
- this.method = input.method;
19361
- this.mode = input.mode;
19362
- this.signal = input.signal;
19363
- if (!body && input._bodyInit != null) {
19364
- body = input._bodyInit;
19365
- input.bodyUsed = true;
19366
- }
19367
- } else {
19368
- this.url = String(input);
19369
- }
19370
-
19371
- this.credentials = options.credentials || this.credentials || 'same-origin';
19372
- if (options.headers || !this.headers) {
19373
- this.headers = new Headers(options.headers);
19374
- }
19375
- this.method = normalizeMethod(options.method || this.method || 'GET');
19376
- this.mode = options.mode || this.mode || null;
19377
- this.signal = options.signal || this.signal;
19378
- this.referrer = null;
19379
-
19380
- if ((this.method === 'GET' || this.method === 'HEAD') && body) {
19381
- throw new TypeError('Body not allowed for GET or HEAD requests')
19382
- }
19383
- this._initBody(body);
19384
- }
19385
-
19386
- Request.prototype.clone = function() {
19387
- return new Request(this, {body: this._bodyInit})
19388
- };
19389
-
19390
- function decode(body) {
19391
- var form = new FormData();
19392
- body
19393
- .trim()
19394
- .split('&')
19395
- .forEach(function(bytes) {
19396
- if (bytes) {
19397
- var split = bytes.split('=');
19398
- var name = split.shift().replace(/\+/g, ' ');
19399
- var value = split.join('=').replace(/\+/g, ' ');
19400
- form.append(decodeURIComponent(name), decodeURIComponent(value));
19401
- }
19402
- });
19403
- return form
19404
- }
19405
-
19406
- function parseHeaders(rawHeaders) {
19407
- var headers = new Headers();
19408
- // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
19409
- // https://tools.ietf.org/html/rfc7230#section-3.2
19410
- var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
19411
- preProcessedHeaders.split(/\r?\n/).forEach(function(line) {
19412
- var parts = line.split(':');
19413
- var key = parts.shift().trim();
19414
- if (key) {
19415
- var value = parts.join(':').trim();
19416
- headers.append(key, value);
19417
- }
19418
- });
19419
- return headers
19420
- }
19421
-
19422
- Body.call(Request.prototype);
19423
-
19424
- function Response(bodyInit, options) {
19425
- if (!options) {
19426
- options = {};
19427
- }
19428
-
19429
- this.type = 'default';
19430
- this.status = options.status === undefined ? 200 : options.status;
19431
- this.ok = this.status >= 200 && this.status < 300;
19432
- this.statusText = 'statusText' in options ? options.statusText : 'OK';
19433
- this.headers = new Headers(options.headers);
19434
- this.url = options.url || '';
19435
- this._initBody(bodyInit);
19436
- }
19437
-
19438
- Body.call(Response.prototype);
19439
-
19440
- Response.prototype.clone = function() {
19441
- return new Response(this._bodyInit, {
19442
- status: this.status,
19443
- statusText: this.statusText,
19444
- headers: new Headers(this.headers),
19445
- url: this.url
19446
- })
19447
- };
19448
-
19449
- Response.error = function() {
19450
- var response = new Response(null, {status: 0, statusText: ''});
19451
- response.type = 'error';
19452
- return response
19453
- };
19454
-
19455
- var redirectStatuses = [301, 302, 303, 307, 308];
19456
-
19457
- Response.redirect = function(url, status) {
19458
- if (redirectStatuses.indexOf(status) === -1) {
19459
- throw new RangeError('Invalid status code')
19460
- }
19461
-
19462
- return new Response(null, {status: status, headers: {location: url}})
19463
- };
19464
-
19465
- exports.DOMException = self.DOMException;
19466
- try {
19467
- new exports.DOMException();
19468
- } catch (err) {
19469
- exports.DOMException = function(message, name) {
19470
- this.message = message;
19471
- this.name = name;
19472
- var error = Error(message);
19473
- this.stack = error.stack;
19474
- };
19475
- exports.DOMException.prototype = Object.create(Error.prototype);
19476
- exports.DOMException.prototype.constructor = exports.DOMException;
19477
- }
19478
-
19479
- function fetch(input, init) {
19480
- return new Promise(function(resolve, reject) {
19481
- var request = new Request(input, init);
19482
-
19483
- if (request.signal && request.signal.aborted) {
19484
- return reject(new exports.DOMException('Aborted', 'AbortError'))
19485
- }
19486
-
19487
- var xhr = new XMLHttpRequest();
19488
-
19489
- function abortXhr() {
19490
- xhr.abort();
19491
- }
19492
-
19493
- xhr.onload = function() {
19494
- var options = {
19495
- status: xhr.status,
19496
- statusText: xhr.statusText,
19497
- headers: parseHeaders(xhr.getAllResponseHeaders() || '')
19498
- };
19499
- options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');
19500
- var body = 'response' in xhr ? xhr.response : xhr.responseText;
19501
- resolve(new Response(body, options));
19502
- };
19503
-
19504
- xhr.onerror = function() {
19505
- reject(new TypeError('Network request failed'));
19506
- };
19507
-
19508
- xhr.ontimeout = function() {
19509
- reject(new TypeError('Network request failed'));
19510
- };
19511
-
19512
- xhr.onabort = function() {
19513
- reject(new exports.DOMException('Aborted', 'AbortError'));
19514
- };
19515
-
19516
- xhr.open(request.method, request.url, true);
19517
-
19518
- if (request.credentials === 'include') {
19519
- xhr.withCredentials = true;
19520
- } else if (request.credentials === 'omit') {
19521
- xhr.withCredentials = false;
19522
- }
19523
-
19524
- if ('responseType' in xhr && support.blob) {
19525
- xhr.responseType = 'blob';
19526
- }
19527
-
19528
- request.headers.forEach(function(value, name) {
19529
- xhr.setRequestHeader(name, value);
19530
- });
19531
-
19532
- if (request.signal) {
19533
- request.signal.addEventListener('abort', abortXhr);
19534
-
19535
- xhr.onreadystatechange = function() {
19536
- // DONE (success or failure)
19537
- if (xhr.readyState === 4) {
19538
- request.signal.removeEventListener('abort', abortXhr);
19539
- }
19540
- };
19541
- }
19542
-
19543
- xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);
19544
- })
19545
- }
19546
-
19547
- fetch.polyfill = true;
19548
-
19549
- if (!self.fetch) {
19550
- self.fetch = fetch;
19551
- self.Headers = Headers;
19552
- self.Request = Request;
19553
- self.Response = Response;
19554
- }
19555
-
19556
- exports.Headers = Headers;
19557
- exports.Request = Request;
19558
- exports.Response = Response;
19559
- exports.fetch = fetch;
19560
-
19561
- Object.defineProperty(exports, '__esModule', { value: true });
19562
-
19563
- return exports;
19564
-
19565
- })({});
19566
- })(__self__);
19567
- __self__.fetch.ponyfill = true;
19568
- // Remove "polyfill" property added by whatwg-fetch
19569
- delete __self__.fetch.polyfill;
19570
- // Choose between native implementation (global) or custom implementation (__self__)
19571
- // var ctx = global.fetch ? global : __self__;
19572
- var ctx = __self__; // this line disable service worker support temporarily
19573
- exports = ctx.fetch // To enable: import fetch from 'cross-fetch'
19574
- exports["default"] = ctx.fetch // For TypeScript consumers without esModuleInterop.
19575
- exports.fetch = ctx.fetch // To enable: import {fetch} from 'cross-fetch'
19576
- exports.Headers = ctx.Headers
19577
- exports.Request = ctx.Request
19578
- exports.Response = ctx.Response
19579
- module.exports = exports
19580
-
19581
-
19582
19018
  /***/ }),
19583
19019
 
19584
19020
  /***/ "../../common/temp/node_modules/.pnpm/deep-assign@2.0.0/node_modules/deep-assign/index.js":
@@ -21463,9 +20899,9 @@ module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
21463
20899
 
21464
20900
  /***/ }),
21465
20901
 
21466
- /***/ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.4/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js":
20902
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.5/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js":
21467
20903
  /*!****************************************************************************************************************************************************************************!*\
21468
- !*** ../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.4/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js ***!
20904
+ !*** ../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.5/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js ***!
21469
20905
  \****************************************************************************************************************************************************************************/
21470
20906
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
21471
20907
 
@@ -21500,12 +20936,12 @@ var serializeCookie = function serializeCookie(name, val, options) {
21500
20936
  var opt = options || {};
21501
20937
  opt.path = opt.path || '/';
21502
20938
  var value = encodeURIComponent(val);
21503
- var str = name + '=' + value;
20939
+ var str = "".concat(name, "=").concat(value);
21504
20940
 
21505
20941
  if (opt.maxAge > 0) {
21506
20942
  var maxAge = opt.maxAge - 0;
21507
- if (isNaN(maxAge)) throw new Error('maxAge should be a Number');
21508
- str += '; Max-Age=' + Math.floor(maxAge);
20943
+ if (Number.isNaN(maxAge)) throw new Error('maxAge should be a Number');
20944
+ str += "; Max-Age=".concat(Math.floor(maxAge));
21509
20945
  }
21510
20946
 
21511
20947
  if (opt.domain) {
@@ -21513,7 +20949,7 @@ var serializeCookie = function serializeCookie(name, val, options) {
21513
20949
  throw new TypeError('option domain is invalid');
21514
20950
  }
21515
20951
 
21516
- str += '; Domain=' + opt.domain;
20952
+ str += "; Domain=".concat(opt.domain);
21517
20953
  }
21518
20954
 
21519
20955
  if (opt.path) {
@@ -21521,7 +20957,7 @@ var serializeCookie = function serializeCookie(name, val, options) {
21521
20957
  throw new TypeError('option path is invalid');
21522
20958
  }
21523
20959
 
21524
- str += '; Path=' + opt.path;
20960
+ str += "; Path=".concat(opt.path);
21525
20961
  }
21526
20962
 
21527
20963
  if (opt.expires) {
@@ -21529,7 +20965,7 @@ var serializeCookie = function serializeCookie(name, val, options) {
21529
20965
  throw new TypeError('option expires is invalid');
21530
20966
  }
21531
20967
 
21532
- str += '; Expires=' + opt.expires.toUTCString();
20968
+ str += "; Expires=".concat(opt.expires.toUTCString());
21533
20969
  }
21534
20970
 
21535
20971
  if (opt.httpOnly) str += '; HttpOnly';
@@ -21579,7 +21015,7 @@ var cookie = {
21579
21015
  document.cookie = serializeCookie(name, encodeURIComponent(value), cookieOptions);
21580
21016
  },
21581
21017
  read: function read(name) {
21582
- var nameEQ = name + '=';
21018
+ var nameEQ = "".concat(name, "=");
21583
21019
  var ca = document.cookie.split(';');
21584
21020
 
21585
21021
  for (var i = 0; i < ca.length; i++) {
@@ -21789,21 +21225,16 @@ var path = {
21789
21225
  var subdomain = {
21790
21226
  name: 'subdomain',
21791
21227
  lookup: function lookup(options) {
21792
- var found;
21228
+ // If given get the subdomain index else 1
21229
+ var lookupFromSubdomainIndex = typeof options.lookupFromSubdomainIndex === 'number' ? options.lookupFromSubdomainIndex + 1 : 1; // get all matches if window.location. is existing
21230
+ // first item of match is the match itself and the second is the first group macht which sould be the first subdomain match
21231
+ // is the hostname no public domain get the or option of localhost
21793
21232
 
21794
- if (typeof window !== 'undefined') {
21795
- var language = window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);
21233
+ var language = typeof window !== 'undefined' && window.location && window.location.hostname && window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i); // if there is no match (null) return undefined
21796
21234
 
21797
- if (language instanceof Array) {
21798
- if (typeof options.lookupFromSubdomainIndex === 'number') {
21799
- found = language[options.lookupFromSubdomainIndex].replace('http://', '').replace('https://', '').replace('.', '');
21800
- } else {
21801
- found = language[0].replace('http://', '').replace('https://', '').replace('.', '');
21802
- }
21803
- }
21804
- }
21235
+ if (!language) return undefined; // return the given group match
21805
21236
 
21806
- return found;
21237
+ return language[lookupFromSubdomainIndex];
21807
21238
  }
21808
21239
  };
21809
21240
 
@@ -21816,8 +21247,8 @@ function getDefaults() {
21816
21247
  lookupSessionStorage: 'i18nextLng',
21817
21248
  // cache user language
21818
21249
  caches: ['localStorage'],
21819
- excludeCacheFor: ['cimode'] //cookieMinutes: 10,
21820
- //cookieDomain: 'myDomain'
21250
+ excludeCacheFor: ['cimode'] // cookieMinutes: 10,
21251
+ // cookieDomain: 'myDomain'
21821
21252
 
21822
21253
  };
21823
21254
  }
@@ -21898,6 +21329,235 @@ Browser.type = 'languageDetector';
21898
21329
 
21899
21330
 
21900
21331
 
21332
+ /***/ }),
21333
+
21334
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js":
21335
+ /*!*************************************************************************************************************************************!*\
21336
+ !*** ../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js ***!
21337
+ \*************************************************************************************************************************************/
21338
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
21339
+
21340
+ "use strict";
21341
+ __webpack_require__.r(__webpack_exports__);
21342
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21343
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
21344
+ /* harmony export */ });
21345
+ /* 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.18.9/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
21346
+ /* 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.18.9/node_modules/@babel/runtime/helpers/esm/createClass.js");
21347
+ /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/defineProperty.js");
21348
+ /* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/typeof.js");
21349
+
21350
+
21351
+
21352
+
21353
+
21354
+ var arr = [];
21355
+ var each = arr.forEach;
21356
+ var slice = arr.slice;
21357
+ function defaults(obj) {
21358
+ each.call(slice.call(arguments, 1), function (source) {
21359
+ if (source) {
21360
+ for (var prop in source) {
21361
+ if (obj[prop] === undefined) obj[prop] = source[prop];
21362
+ }
21363
+ }
21364
+ });
21365
+ return obj;
21366
+ }
21367
+
21368
+ function addQueryString(url, params) {
21369
+ if (params && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(params) === 'object') {
21370
+ var queryString = '',
21371
+ e = encodeURIComponent; // Must encode data
21372
+
21373
+ for (var paramName in params) {
21374
+ queryString += '&' + e(paramName) + '=' + e(params[paramName]);
21375
+ }
21376
+
21377
+ if (!queryString) {
21378
+ return url;
21379
+ }
21380
+
21381
+ url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
21382
+ }
21383
+
21384
+ return url;
21385
+ } // https://gist.github.com/Xeoncross/7663273
21386
+
21387
+
21388
+ function ajax(url, options, callback, data, cache) {
21389
+ if (data && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(data) === 'object') {
21390
+ if (!cache) {
21391
+ data['_t'] = new Date();
21392
+ } // URL encoded form data must be in querystring format
21393
+
21394
+
21395
+ data = addQueryString('', data).slice(1);
21396
+ }
21397
+
21398
+ if (options.queryStringParams) {
21399
+ url = addQueryString(url, options.queryStringParams);
21400
+ }
21401
+
21402
+ try {
21403
+ var x;
21404
+
21405
+ if (XMLHttpRequest) {
21406
+ x = new XMLHttpRequest();
21407
+ } else {
21408
+ x = new ActiveXObject('MSXML2.XMLHTTP.3.0');
21409
+ }
21410
+
21411
+ x.open(data ? 'POST' : 'GET', url, 1);
21412
+
21413
+ if (!options.crossDomain) {
21414
+ x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
21415
+ }
21416
+
21417
+ x.withCredentials = !!options.withCredentials;
21418
+
21419
+ if (data) {
21420
+ x.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
21421
+ }
21422
+
21423
+ if (x.overrideMimeType) {
21424
+ x.overrideMimeType("application/json");
21425
+ }
21426
+
21427
+ var h = options.customHeaders;
21428
+ h = typeof h === 'function' ? h() : h;
21429
+
21430
+ if (h) {
21431
+ for (var i in h) {
21432
+ x.setRequestHeader(i, h[i]);
21433
+ }
21434
+ }
21435
+
21436
+ x.onreadystatechange = function () {
21437
+ x.readyState > 3 && callback && callback(x.responseText, x);
21438
+ };
21439
+
21440
+ x.send(data);
21441
+ } catch (e) {
21442
+ console && console.log(e);
21443
+ }
21444
+ }
21445
+
21446
+ function getDefaults() {
21447
+ return {
21448
+ loadPath: '/locales/{{lng}}/{{ns}}.json',
21449
+ addPath: '/locales/add/{{lng}}/{{ns}}',
21450
+ allowMultiLoading: false,
21451
+ parse: JSON.parse,
21452
+ parsePayload: function parsePayload(namespace, key, fallbackValue) {
21453
+ return (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, key, fallbackValue || '');
21454
+ },
21455
+ crossDomain: false,
21456
+ ajax: ajax
21457
+ };
21458
+ }
21459
+
21460
+ var Backend =
21461
+ /*#__PURE__*/
21462
+ function () {
21463
+ function Backend(services) {
21464
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
21465
+
21466
+ (0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, Backend);
21467
+
21468
+ this.init(services, options);
21469
+ this.type = 'backend';
21470
+ }
21471
+
21472
+ (0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(Backend, [{
21473
+ key: "init",
21474
+ value: function init(services) {
21475
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
21476
+ this.services = services;
21477
+ this.options = defaults(options, this.options || {}, getDefaults());
21478
+ }
21479
+ }, {
21480
+ key: "readMulti",
21481
+ value: function readMulti(languages, namespaces, callback) {
21482
+ var loadPath = this.options.loadPath;
21483
+
21484
+ if (typeof this.options.loadPath === 'function') {
21485
+ loadPath = this.options.loadPath(languages, namespaces);
21486
+ }
21487
+
21488
+ var url = this.services.interpolator.interpolate(loadPath, {
21489
+ lng: languages.join('+'),
21490
+ ns: namespaces.join('+')
21491
+ });
21492
+ this.loadUrl(url, callback);
21493
+ }
21494
+ }, {
21495
+ key: "read",
21496
+ value: function read(language, namespace, callback) {
21497
+ var loadPath = this.options.loadPath;
21498
+
21499
+ if (typeof this.options.loadPath === 'function') {
21500
+ loadPath = this.options.loadPath([language], [namespace]);
21501
+ }
21502
+
21503
+ var url = this.services.interpolator.interpolate(loadPath, {
21504
+ lng: language,
21505
+ ns: namespace
21506
+ });
21507
+ this.loadUrl(url, callback);
21508
+ }
21509
+ }, {
21510
+ key: "loadUrl",
21511
+ value: function loadUrl(url, callback) {
21512
+ var _this = this;
21513
+
21514
+ this.options.ajax(url, this.options, function (data, xhr) {
21515
+ if (xhr.status >= 500 && xhr.status < 600) return callback('failed loading ' + url, true
21516
+ /* retry */
21517
+ );
21518
+ if (xhr.status >= 400 && xhr.status < 500) return callback('failed loading ' + url, false
21519
+ /* no retry */
21520
+ );
21521
+ var ret, err;
21522
+
21523
+ try {
21524
+ ret = _this.options.parse(data, url);
21525
+ } catch (e) {
21526
+ err = 'failed parsing ' + url + ' to json';
21527
+ }
21528
+
21529
+ if (err) return callback(err, false);
21530
+ callback(null, ret);
21531
+ });
21532
+ }
21533
+ }, {
21534
+ key: "create",
21535
+ value: function create(languages, namespace, key, fallbackValue) {
21536
+ var _this2 = this;
21537
+
21538
+ if (typeof languages === 'string') languages = [languages];
21539
+ var payload = this.options.parsePayload(namespace, key, fallbackValue);
21540
+ languages.forEach(function (lng) {
21541
+ var url = _this2.services.interpolator.interpolate(_this2.options.addPath, {
21542
+ lng: lng,
21543
+ ns: namespace
21544
+ });
21545
+
21546
+ _this2.options.ajax(url, _this2.options, function (data, xhr) {//const statusCode = xhr.status.toString();
21547
+ // TODO: if statusCode === 4xx do log
21548
+ }, payload);
21549
+ });
21550
+ }
21551
+ }]);
21552
+
21553
+ return Backend;
21554
+ }();
21555
+
21556
+ Backend.type = 'backend';
21557
+
21558
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
21559
+
21560
+
21901
21561
  /***/ }),
21902
21562
 
21903
21563
  /***/ "../../common/temp/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js":
@@ -61495,7 +61155,7 @@ class StopWatch {
61495
61155
  get current() { return BeDuration.fromMilliseconds(BeTimePoint.now().milliseconds - (!!this._start ? this._start.milliseconds : 0)); }
61496
61156
  /** Get the elapsed time, in seconds, since start() on a running timer. */
61497
61157
  get currentSeconds() { return this.current.seconds; }
61498
- /** Get the elapsed time between start() and stop() on this timer. */
61158
+ /** Get the elapsed time between start() and stop() on this timer in milliseconds. */
61499
61159
  get elapsed() { return BeDuration.fromMilliseconds((!!this._stop ? this._stop.milliseconds : BeTimePoint.now().milliseconds) - (!!this._start ? this._start.milliseconds : 0)); }
61500
61160
  /** Get the elapsed time, in seconds, between start() and stop() on this timer. */
61501
61161
  get elapsedSeconds() { return this.elapsed.seconds; }
@@ -63280,7 +62940,8 @@ __webpack_require__.r(__webpack_exports__);
63280
62940
  * @module Codes
63281
62941
  */
63282
62942
 
63283
- /** A three-part structure containing information about the [Code]($docs/bis/guide/fundamentals/codes) of an Element
62943
+ /**
62944
+ * A three-part structure containing information about the [Code]($docs/bis/guide/fundamentals/codes) of an Element
63284
62945
  * @public
63285
62946
  */
63286
62947
  class Code {
@@ -68931,12 +68592,21 @@ var Gradient;
68931
68592
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== imageBuffer);
68932
68593
  return imageBuffer;
68933
68594
  }
68934
- /** Applies this gradient's settings to produce a bitmap image.
68595
+ /** Produces a bitmap image from this gradient.
68935
68596
  * @param width Width of the image
68936
68597
  * @param height Height of the image
68937
- * @returns Bitmap image of the specified dimensions. For thematic gradients with a width > 1, pixels in each column will be identical.
68598
+ * @note If this gradient uses [[Gradient.Mode.Thematic]], then the width of the image will be 1 and the margin color will be included in the top and bottom rows.
68599
+ * @see [[produceImage]] for more customization.
68938
68600
  */
68939
68601
  getImage(width, height) {
68602
+ if (this.mode === Mode.Thematic)
68603
+ width = 1;
68604
+ return this.produceImage({ width, height, includeThematicMargin: true });
68605
+ }
68606
+ /** Produces a bitmap image from this gradient. */
68607
+ produceImage(args) {
68608
+ var _a;
68609
+ const { width, height, includeThematicMargin } = { ...args };
68940
68610
  const thisAngle = (this.angle === undefined) ? 0 : this.angle.radians;
68941
68611
  const cosA = Math.cos(thisAngle);
68942
68612
  const sinA = Math.sin(thisAngle);
@@ -69042,27 +68712,29 @@ var Gradient;
69042
68712
  break;
69043
68713
  }
69044
68714
  case Mode.Thematic: {
69045
- let settings = this.thematicSettings;
69046
- if (settings === undefined) {
69047
- settings = _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.defaults;
69048
- }
68715
+ const settings = (_a = this.thematicSettings) !== null && _a !== void 0 ? _a : _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.defaults;
69049
68716
  for (let j = 0; j < height; j++) {
69050
68717
  let f = 1 - j / height;
69051
68718
  let color;
69052
- f = (f - _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.margin) / (_ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.contentRange);
69053
- switch (settings.mode) {
69054
- case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.SteppedWithDelimiter:
69055
- case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.IsoLines:
69056
- case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.Stepped: {
69057
- if (settings.stepCount > 1) {
69058
- const fStep = Math.floor(f * settings.stepCount - 0.00001) / (settings.stepCount - 1);
69059
- color = this.mapColor(fStep);
68719
+ if (includeThematicMargin && (f < _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.margin || f > _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.contentMax)) {
68720
+ color = settings.marginColor;
68721
+ }
68722
+ else {
68723
+ f = (f - _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.margin) / (_ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.contentRange);
68724
+ switch (settings.mode) {
68725
+ case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.SteppedWithDelimiter:
68726
+ case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.IsoLines:
68727
+ case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.Stepped: {
68728
+ if (settings.stepCount > 1) {
68729
+ const fStep = Math.floor(f * settings.stepCount - 0.00001) / (settings.stepCount - 1);
68730
+ color = this.mapColor(fStep);
68731
+ }
68732
+ break;
69060
68733
  }
69061
- break;
68734
+ case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.Smooth:
68735
+ color = this.mapColor(f);
68736
+ break;
69062
68737
  }
69063
- case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.Smooth:
69064
- color = this.mapColor(f);
69065
- break;
69066
68738
  }
69067
68739
  for (let i = 0; i < width; i++) {
69068
68740
  image[currentIdx--] = color.getAlpha();
@@ -89935,6 +89607,9 @@ class BentleyCloudRpcProtocol extends _WebAppRpcProtocol__WEBPACK_IMPORTED_MODUL
89935
89607
  const components = url.pathname.split("/").filter((x) => x); // filter out empty segments
89936
89608
  const operationComponent = components.slice(-1)[0];
89937
89609
  const encodedRequest = url.searchParams.get("parameters") || "";
89610
+ // The encodedRequest should be base64 - fail now if any other characters detected.
89611
+ if (/[^A-z0-9=+\/]/.test(encodedRequest))
89612
+ throw new _IModelError__WEBPACK_IMPORTED_MODULE_1__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, `Invalid request: Malformed URL parameters detected.`);
89938
89613
  const firstHyphen = operationComponent.indexOf("-");
89939
89614
  const lastHyphen = operationComponent.lastIndexOf("-");
89940
89615
  const interfaceDefinition = operationComponent.slice(0, firstHyphen);
@@ -90326,11 +90001,13 @@ __webpack_require__.r(__webpack_exports__);
90326
90001
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
90327
90002
  /* harmony export */ "WebAppRpcProtocol": () => (/* binding */ WebAppRpcProtocol)
90328
90003
  /* harmony export */ });
90329
- /* harmony import */ var _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/RpcConstants */ "../../core/common/lib/esm/rpc/core/RpcConstants.js");
90330
- /* harmony import */ var _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/RpcProtocol */ "../../core/common/lib/esm/rpc/core/RpcProtocol.js");
90331
- /* harmony import */ var _OpenAPI__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OpenAPI */ "../../core/common/lib/esm/rpc/web/OpenAPI.js");
90332
- /* harmony import */ var _WebAppRpcLogging__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./WebAppRpcLogging */ "../../core/common/lib/esm/rpc/web/WebAppRpcLogging.js");
90333
- /* harmony import */ var _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./WebAppRpcRequest */ "../../core/common/lib/esm/rpc/web/WebAppRpcRequest.js");
90004
+ /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
90005
+ /* harmony import */ var _CommonLoggerCategory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../CommonLoggerCategory */ "../../core/common/lib/esm/CommonLoggerCategory.js");
90006
+ /* harmony import */ var _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/RpcConstants */ "../../core/common/lib/esm/rpc/core/RpcConstants.js");
90007
+ /* harmony import */ var _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/RpcProtocol */ "../../core/common/lib/esm/rpc/core/RpcProtocol.js");
90008
+ /* harmony import */ var _OpenAPI__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./OpenAPI */ "../../core/common/lib/esm/rpc/web/OpenAPI.js");
90009
+ /* harmony import */ var _WebAppRpcLogging__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./WebAppRpcLogging */ "../../core/common/lib/esm/rpc/web/WebAppRpcLogging.js");
90010
+ /* harmony import */ var _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./WebAppRpcRequest */ "../../core/common/lib/esm/rpc/web/WebAppRpcRequest.js");
90334
90011
  /*---------------------------------------------------------------------------------------------
90335
90012
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
90336
90013
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -90343,10 +90020,12 @@ __webpack_require__.r(__webpack_exports__);
90343
90020
 
90344
90021
 
90345
90022
 
90023
+
90024
+
90346
90025
  /** The HTTP application protocol.
90347
90026
  * @internal
90348
90027
  */
90349
- class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.RpcProtocol {
90028
+ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_3__.RpcProtocol {
90350
90029
  /** Constructs an HTTP protocol. */
90351
90030
  constructor(configuration) {
90352
90031
  super(configuration);
@@ -90354,9 +90033,9 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
90354
90033
  /** An optional prefix for RPC operation URI paths. */
90355
90034
  this.pathPrefix = "";
90356
90035
  /** The RPC request class for this protocol. */
90357
- this.requestType = _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_4__.WebAppRpcRequest;
90036
+ this.requestType = _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__.WebAppRpcRequest;
90358
90037
  this.supportsStatusCategory = true;
90359
- this.events.addListener(_WebAppRpcLogging__WEBPACK_IMPORTED_MODULE_3__.WebAppRpcLogging.logProtocolEvent);
90038
+ this.events.addListener(_WebAppRpcLogging__WEBPACK_IMPORTED_MODULE_5__.WebAppRpcLogging.logProtocolEvent);
90360
90039
  }
90361
90040
  /** Convenience handler for an RPC operation get request for an HTTP server. */
90362
90041
  async handleOperationGetRequest(req, res) {
@@ -90364,9 +90043,19 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
90364
90043
  }
90365
90044
  /** Convenience handler for an RPC operation post request for an HTTP server. */
90366
90045
  async handleOperationPostRequest(req, res) {
90367
- const request = await _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_4__.WebAppRpcRequest.parseRequest(this, req);
90046
+ let request;
90047
+ try {
90048
+ request = await _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__.WebAppRpcRequest.parseRequest(this, req);
90049
+ }
90050
+ catch (error) {
90051
+ const message = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMessage(error);
90052
+ _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logError(_CommonLoggerCategory__WEBPACK_IMPORTED_MODULE_1__.CommonLoggerCategory.RpcInterfaceBackend, `Failed to parse request: ${message}`, _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMetadata(error));
90053
+ res.status(400);
90054
+ res.send(JSON.stringify({ message, isError: true }));
90055
+ return;
90056
+ }
90368
90057
  const fulfillment = await this.fulfill(request);
90369
- await _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_4__.WebAppRpcRequest.sendResponse(this, request, fulfillment, req, res);
90058
+ await _WebAppRpcRequest__WEBPACK_IMPORTED_MODULE_6__.WebAppRpcRequest.sendResponse(this, request, fulfillment, req, res);
90370
90059
  }
90371
90060
  /** Convenience handler for an OpenAPI description request for an HTTP server. */
90372
90061
  handleOpenApiDescriptionRequest(_req, res) {
@@ -90376,45 +90065,45 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
90376
90065
  /** Converts an HTTP content type value to an RPC content type value. */
90377
90066
  static computeContentType(httpType) {
90378
90067
  if (!httpType)
90379
- return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcContentType.Unknown;
90380
- if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.WEB_RPC_CONSTANTS.ANY_TEXT) === 0) {
90381
- return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcContentType.Text;
90068
+ return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Unknown;
90069
+ if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.WEB_RPC_CONSTANTS.ANY_TEXT) === 0) {
90070
+ return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Text;
90382
90071
  }
90383
- else if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.WEB_RPC_CONSTANTS.BINARY) === 0) {
90384
- return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcContentType.Binary;
90072
+ else if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.WEB_RPC_CONSTANTS.BINARY) === 0) {
90073
+ return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Binary;
90385
90074
  }
90386
- else if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.WEB_RPC_CONSTANTS.MULTIPART) === 0) {
90387
- return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcContentType.Multipart;
90075
+ else if (httpType.indexOf(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.WEB_RPC_CONSTANTS.MULTIPART) === 0) {
90076
+ return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Multipart;
90388
90077
  }
90389
90078
  else {
90390
- return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcContentType.Unknown;
90079
+ return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcContentType.Unknown;
90391
90080
  }
90392
90081
  }
90393
90082
  /** Supplies the status corresponding to a protocol-specific code value. */
90394
90083
  getStatus(code) {
90395
90084
  switch (code) {
90396
- case 404: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.NotFound;
90397
- case 202: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.Pending;
90398
- case 200: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.Resolved;
90399
- case 500: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.Rejected;
90400
- case 204: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.NoContent;
90401
- case 502: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.BadGateway;
90402
- case 503: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.ServiceUnavailable;
90403
- case 504: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.GatewayTimeout;
90404
- default: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.Unknown;
90085
+ case 404: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NotFound;
90086
+ case 202: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Pending;
90087
+ case 200: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Resolved;
90088
+ case 500: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Rejected;
90089
+ case 204: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NoContent;
90090
+ case 502: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.BadGateway;
90091
+ case 503: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.ServiceUnavailable;
90092
+ case 504: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.GatewayTimeout;
90093
+ default: return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Unknown;
90405
90094
  }
90406
90095
  }
90407
90096
  /** Supplies the protocol-specific code corresponding to a status value. */
90408
90097
  getCode(status) {
90409
90098
  switch (status) {
90410
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.NotFound: return 404;
90411
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.Pending: return 202;
90412
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.Resolved: return 200;
90413
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.Rejected: return 500;
90414
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.NoContent: return 204;
90415
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.BadGateway: return 502;
90416
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.ServiceUnavailable: return 503;
90417
- case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcRequestStatus.GatewayTimeout: return 504;
90099
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NotFound: return 404;
90100
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Pending: return 202;
90101
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Resolved: return 200;
90102
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.Rejected: return 500;
90103
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.NoContent: return 204;
90104
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.BadGateway: return 502;
90105
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.ServiceUnavailable: return 503;
90106
+ case _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcRequestStatus.GatewayTimeout: return 504;
90418
90107
  default: return 501;
90419
90108
  }
90420
90109
  }
@@ -90425,7 +90114,7 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_1__.R
90425
90114
  /** An OpenAPI-compatible description of this protocol.
90426
90115
  * @internal
90427
90116
  */
90428
- get openAPIDescription() { return new _OpenAPI__WEBPACK_IMPORTED_MODULE_2__.RpcOpenAPIDescription(this); }
90117
+ get openAPIDescription() { return new _OpenAPI__WEBPACK_IMPORTED_MODULE_4__.RpcOpenAPIDescription(this); }
90429
90118
  }
90430
90119
 
90431
90120
 
@@ -90526,7 +90215,7 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_6__.Rpc
90526
90215
  }
90527
90216
  }
90528
90217
  if (!request.id) {
90529
- throw new _IModelError__WEBPACK_IMPORTED_MODULE_2__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, `Invalid request.`);
90218
+ throw new _IModelError__WEBPACK_IMPORTED_MODULE_2__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, `Invalid request: Missing required activity ID.`);
90530
90219
  }
90531
90220
  return request;
90532
90221
  }
@@ -146200,8 +145889,6 @@ class RealityMeshGeometry extends _CachedGeometry__WEBPACK_IMPORTED_MODULE_7__.I
146200
145889
  }
146201
145890
  get techniqueId() { return 7 /* RealityMesh */; }
146202
145891
  getPass(target) {
146203
- if (target.isDrawingShadowMap)
146204
- return "none";
146205
145892
  if (this._baseIsTransparent || (target.wantThematicDisplay && target.uniforms.thematic.wantIsoLines))
146206
145893
  return "translucent";
146207
145894
  return "opaque";
@@ -151815,6 +151502,7 @@ class SolarShadowMap {
151815
151502
  this.onGraphicsChanged(this._graphics);
151816
151503
  }
151817
151504
  update(context) {
151505
+ var _a;
151818
151506
  this._isReady = false;
151819
151507
  this.clearGraphics(false);
151820
151508
  if (undefined === context || !context.viewport.view.isSpatialView()) {
@@ -151824,9 +151512,7 @@ class SolarShadowMap {
151824
151512
  }
151825
151513
  const view = context.viewport.view;
151826
151514
  const style = view.getDisplayStyle3d();
151827
- let sunDirection = style.sunDirection;
151828
- if (undefined === sunDirection)
151829
- sunDirection = defaultSunDirection;
151515
+ const sunDirection = (_a = style.sunDirection) !== null && _a !== void 0 ? _a : defaultSunDirection;
151830
151516
  const minimumHorizonDirection = -.01;
151831
151517
  if (sunDirection.z > minimumHorizonDirection) {
151832
151518
  this.notifyGraphicsChanged();
@@ -151848,8 +151534,21 @@ class SolarShadowMap {
151848
151534
  // Limit the map to only displayed models.
151849
151535
  const viewTileRange = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.createNull();
151850
151536
  view.forEachTileTreeRef((ref) => {
151851
- if (ref.castsShadows)
151852
- ref.accumulateTransformedRange(viewTileRange, worldToMap, undefined);
151537
+ if (ref.castsShadows) {
151538
+ if (ref.isGlobal) {
151539
+ // A shadow-casting tile tree that spans the globe. Limit its range to the viewed extents.
151540
+ for (const p3 of viewFrustum.points) {
151541
+ const p4 = worldToMap.multiplyPoint3d(p3, 1);
151542
+ if (p4.w > 0.0001)
151543
+ viewTileRange.extendXYZW(p4.x, p4.y, p4.z, p4.w);
151544
+ else
151545
+ viewTileRange.high.z = Math.max(1.0, viewTileRange.high.z); // behind eye plane.
151546
+ }
151547
+ }
151548
+ else {
151549
+ ref.accumulateTransformedRange(viewTileRange, worldToMap, undefined);
151550
+ }
151551
+ }
151853
151552
  });
151854
151553
  if (!viewTileRange.isNull)
151855
151554
  viewTileRange.clone(shadowRange);
@@ -153080,7 +152779,15 @@ class System extends _RenderSystem__WEBPACK_IMPORTED_MODULE_7__.RenderSystem {
153080
152779
  }
153081
152780
  /** Attempt to create a texture using gradient symbology. */
153082
152781
  getGradientTexture(symb, iModel) {
153083
- const source = symb.getImage(0x100, 0x100);
152782
+ let width = 0x100;
152783
+ let height = 0x100;
152784
+ if (symb.mode === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.Gradient.Mode.Thematic) {
152785
+ // Pixels in each row are identical, no point in having width > 1.
152786
+ width = 1;
152787
+ // We want maximum height to minimize bleeding of margin color.
152788
+ height = this.maxTextureSize;
152789
+ }
152790
+ const source = symb.produceImage({ width, height, includeThematicMargin: true });
153084
152791
  return this.createTexture({
153085
152792
  image: {
153086
152793
  source,
@@ -167315,7 +167022,7 @@ class GltfReader {
167315
167022
  if (dracoMeshes.length === 0)
167316
167023
  return;
167317
167024
  try {
167318
- const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_5_node_modules_loaders_gl_draco_di-e0b0bc"), __webpack_require__.e("_c41d")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.2.5/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
167025
+ const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_7_node_modules_loaders_gl_draco_di-a586d9"), __webpack_require__.e("_c5fe")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.2.7/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
167319
167026
  await Promise.all(dracoMeshes.map(async (x) => this.decodeDracoMesh(x, dracoLoader)));
167320
167027
  }
167321
167028
  catch (err) {
@@ -170442,7 +170149,7 @@ function readPnts(stream, dataOffset, pnts) {
170442
170149
  async function decodeDracoPointCloud(buf) {
170443
170150
  var _a, _b, _c, _d, _e, _f;
170444
170151
  try {
170445
- const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_5_node_modules_loaders_gl_draco_di-e0b0bc"), __webpack_require__.e("_c41d")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.2.5/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
170152
+ const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_7_node_modules_loaders_gl_draco_di-a586d9"), __webpack_require__.e("_c5fe")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.2.7/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
170446
170153
  const mesh = await dracoLoader.parse(buf, {});
170447
170154
  if (mesh.topology !== "point-list")
170448
170155
  return undefined;
@@ -172627,6 +172334,7 @@ class RealityTileTree extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTree {
172627
172334
  const preloadDebugBuilder = (debugControl && debugControl.displayRealityTilePreload) ? args.context.createSceneGraphicBuilder() : undefined;
172628
172335
  const graphicTypeBranches = new Map();
172629
172336
  const selectedTiles = this.selectRealityTiles(args, displayedTileDescendants, preloadDebugBuilder);
172337
+ args.processSelectedTiles(selectedTiles);
172630
172338
  let sortIndices;
172631
172339
  if (!this.parentsAndChildrenExclusive) {
172632
172340
  sortIndices = selectedTiles.map((_x, i) => i);
@@ -176887,28 +176595,6 @@ class ArcGisUtilities {
176887
176595
  return undefined;
176888
176596
  }
176889
176597
  }
176890
- static async getFootprintJson(url, credentials) {
176891
- const cached = ArcGisUtilities._footprintCache.get(url);
176892
- if (cached !== undefined)
176893
- return cached;
176894
- try {
176895
- const tmpUrl = new URL(url);
176896
- tmpUrl.searchParams.append("f", "json");
176897
- tmpUrl.searchParams.append("option", "footprints");
176898
- tmpUrl.searchParams.append("outSR", "4326");
176899
- const accessClient = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.mapLayerFormatRegistry.getAccessClient("ArcGIS");
176900
- if (accessClient) {
176901
- await ArcGisUtilities.appendSecurityToken(tmpUrl, accessClient, { mapLayerUrl: new URL(url), userName: credentials === null || credentials === void 0 ? void 0 : credentials.user, password: credentials === null || credentials === void 0 ? void 0 : credentials.password });
176902
- }
176903
- const json = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_1__.getJson)(tmpUrl.toString());
176904
- ArcGisUtilities._footprintCache.set(url, json);
176905
- return json;
176906
- }
176907
- catch (_error) {
176908
- ArcGisUtilities._footprintCache.set(url, undefined);
176909
- return undefined;
176910
- }
176911
- }
176912
176598
  // return the appended access token if available.
176913
176599
  static async appendSecurityToken(url, accessClient, accessTokenParams) {
176914
176600
  // Append security token if available
@@ -176925,7 +176611,6 @@ class ArcGisUtilities {
176925
176611
  }
176926
176612
  }
176927
176613
  ArcGisUtilities._serviceCache = new Map();
176928
- ArcGisUtilities._footprintCache = new Map();
176929
176614
 
176930
176615
 
176931
176616
  /***/ }),
@@ -177804,18 +177489,9 @@ class ArcGISMapLayerImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_4
177804
177489
  if (this._usesCachedTiles && this._tileMapSupported) {
177805
177490
  this._tileMap = new _internal__WEBPACK_IMPORTED_MODULE_4__.ArcGISTileMap(this._settings.url, (_d = (_c = json.tileInfo) === null || _c === void 0 ? void 0 : _c.lods) === null || _d === void 0 ? void 0 : _d.length);
177806
177491
  }
177807
- const footprintJson = await _internal__WEBPACK_IMPORTED_MODULE_4__.ArcGisUtilities.getFootprintJson(this._settings.url, this.getRequestAuthorization());
177808
- if (undefined !== footprintJson && undefined !== footprintJson.featureCollection && Array.isArray(footprintJson.featureCollection.layers)) {
177809
- for (const layer of footprintJson.featureCollection.layers) {
177810
- if (layer.layerDefinition && layer.layerDefinition.extent) {
177811
- this.cartoRange = _internal__WEBPACK_IMPORTED_MODULE_4__.MapCartoRectangle.createFromDegrees(layer.layerDefinition.extent.xmin, layer.layerDefinition.extent.ymin, layer.layerDefinition.extent.xmax, layer.layerDefinition.extent.ymax);
177812
- break;
177813
- }
177814
- }
177815
- }
177816
- // Sometimes footprint request doesnt work, fallback to dataset fullextent
177817
- if (this.cartoRange === undefined && json.fullExtent) {
177818
- if (json.fullExtent.spatialReference.latestWkid === 3857) {
177492
+ // Read range using fullextent from service metadata
177493
+ if (json.fullExtent) {
177494
+ if (json.fullExtent.spatialReference.latestWkid === 3857 || json.fullExtent.spatialReference.wkid === 102100) {
177819
177495
  const range3857 = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_6__.Range2d.createFrom({
177820
177496
  low: { x: json.fullExtent.xmin, y: json.fullExtent.ymin },
177821
177497
  high: { x: json.fullExtent.xmax, y: json.fullExtent.ymax }
@@ -275289,9 +274965,9 @@ __webpack_require__.r(__webpack_exports__);
275289
274965
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
275290
274966
  /* harmony export */ "ITwinLocalization": () => (/* binding */ ITwinLocalization)
275291
274967
  /* harmony export */ });
275292
- /* harmony import */ var i18next__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js");
275293
- /* harmony import */ var i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.4/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js");
275294
- /* harmony import */ var i18next_http_backend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js");
274968
+ /* harmony import */ var i18next__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.1/node_modules/i18next/dist/esm/i18next.js");
274969
+ /* harmony import */ var i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__ = __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");
274970
+ /* harmony import */ var i18next_xhr_backend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! i18next-xhr-backend */ "../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js");
275295
274971
  /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
275296
274972
  /*---------------------------------------------------------------------------------------------
275297
274973
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
@@ -275327,14 +275003,13 @@ class ITwinLocalization {
275327
275003
  this._initOptions = {
275328
275004
  interpolation: { escapeValue: true },
275329
275005
  fallbackLng: "en",
275330
- maxRetries: 1,
275331
275006
  backend: this._backendOptions,
275332
275007
  detection: this._detectionOptions,
275333
275008
  ...options === null || options === void 0 ? void 0 : options.initOptions,
275334
275009
  };
275335
275010
  this.i18next
275336
275011
  .use((_b = options === null || options === void 0 ? void 0 : options.detectorPlugin) !== null && _b !== void 0 ? _b : i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__["default"])
275337
- .use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c : i18next_http_backend__WEBPACK_IMPORTED_MODULE_2__["default"])
275012
+ .use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c : i18next_xhr_backend__WEBPACK_IMPORTED_MODULE_2__["default"])
275338
275013
  .use(TranslationLogger);
275339
275014
  }
275340
275015
  async initialize(namespaces) {
@@ -275455,10 +275130,10 @@ class ITwinLocalization {
275455
275130
  if (!err)
275456
275131
  return resolve();
275457
275132
  // Here we got a non-null err object.
275458
- // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.
275459
- // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.
275460
- // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.
275461
- // There might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible locale.
275133
+ // This method is called when the system has attempted to load the resources for the namespace for each
275134
+ // possible locale. For example 'fr-ca' might be the most specific local, in which case 'fr' ) and 'en are fallback locales.
275135
+ // using i18next-xhr-backend, err will be an array of strings that includes the namespace it tried to read and the locale. There
275136
+ // might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible language.
275462
275137
  let locales = this.getLanguageList().map((thisLocale) => `/${thisLocale}/`);
275463
275138
  try {
275464
275139
  for (const thisError of err) {
@@ -300805,31 +300480,6 @@ var WidgetState;
300805
300480
 
300806
300481
  /* (ignored) */
300807
300482
 
300808
- /***/ }),
300809
-
300810
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs":
300811
- /*!**************************************************************************************************************************!*\
300812
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs ***!
300813
- \**************************************************************************************************************************/
300814
- /***/ ((module, exports, __webpack_require__) => {
300815
-
300816
- var fetchApi
300817
- if (typeof fetch === 'function') {
300818
- if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.fetch) {
300819
- fetchApi = __webpack_require__.g.fetch
300820
- } else if (typeof window !== 'undefined' && window.fetch) {
300821
- fetchApi = window.fetch
300822
- }
300823
- }
300824
-
300825
- if ( true && (typeof window === 'undefined' || typeof window.document === 'undefined')) {
300826
- var f = fetchApi || __webpack_require__(/*! cross-fetch */ "../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js")
300827
- if (f.default) f = f.default
300828
- exports["default"] = f
300829
- module.exports = exports.default
300830
- }
300831
-
300832
-
300833
300483
  /***/ }),
300834
300484
 
300835
300485
  /***/ "../../common/temp/node_modules/.pnpm/flatbuffers@1.12.0/node_modules/flatbuffers/js/flatbuffers.mjs":
@@ -302784,441 +302434,9 @@ function _unsupportedIterableToArray(o, minLen) {
302784
302434
 
302785
302435
  /***/ }),
302786
302436
 
302787
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js":
302788
- /*!**********************************************************************************************************************!*\
302789
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js ***!
302790
- \**********************************************************************************************************************/
302791
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302792
-
302793
- "use strict";
302794
- __webpack_require__.r(__webpack_exports__);
302795
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
302796
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
302797
- /* harmony export */ });
302798
- /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js");
302799
- /* harmony import */ var _request_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./request.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js");
302800
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
302801
-
302802
- 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); } }
302803
-
302804
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
302805
-
302806
- 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; }
302807
-
302808
-
302809
-
302810
-
302811
- var getDefaults = function getDefaults() {
302812
- return {
302813
- loadPath: '/locales/{{lng}}/{{ns}}.json',
302814
- addPath: '/locales/add/{{lng}}/{{ns}}',
302815
- allowMultiLoading: false,
302816
- parse: function parse(data) {
302817
- return JSON.parse(data);
302818
- },
302819
- stringify: JSON.stringify,
302820
- parsePayload: function parsePayload(namespace, key, fallbackValue) {
302821
- return _defineProperty({}, key, fallbackValue || '');
302822
- },
302823
- request: _request_js__WEBPACK_IMPORTED_MODULE_1__["default"],
302824
- reloadInterval: typeof window !== 'undefined' ? false : 60 * 60 * 1000,
302825
- customHeaders: {},
302826
- queryStringParams: {},
302827
- crossDomain: false,
302828
- withCredentials: false,
302829
- overrideMimeType: false,
302830
- requestOptions: {
302831
- mode: 'cors',
302832
- credentials: 'same-origin',
302833
- cache: 'default'
302834
- }
302835
- };
302836
- };
302837
-
302838
- var Backend = function () {
302839
- function Backend(services) {
302840
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
302841
- var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
302842
-
302843
- _classCallCheck(this, Backend);
302844
-
302845
- this.services = services;
302846
- this.options = options;
302847
- this.allOptions = allOptions;
302848
- this.type = 'backend';
302849
- this.init(services, options, allOptions);
302850
- }
302851
-
302852
- _createClass(Backend, [{
302853
- key: "init",
302854
- value: function init(services) {
302855
- var _this = this;
302856
-
302857
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
302858
- var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
302859
- this.services = services;
302860
- this.options = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)(options, this.options || {}, getDefaults());
302861
- this.allOptions = allOptions;
302862
-
302863
- if (this.services && this.options.reloadInterval) {
302864
- setInterval(function () {
302865
- return _this.reload();
302866
- }, this.options.reloadInterval);
302867
- }
302868
- }
302869
- }, {
302870
- key: "readMulti",
302871
- value: function readMulti(languages, namespaces, callback) {
302872
- this._readAny(languages, languages, namespaces, namespaces, callback);
302873
- }
302874
- }, {
302875
- key: "read",
302876
- value: function read(language, namespace, callback) {
302877
- this._readAny([language], language, [namespace], namespace, callback);
302878
- }
302879
- }, {
302880
- key: "_readAny",
302881
- value: function _readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {
302882
- var _this2 = this;
302883
-
302884
- var loadPath = this.options.loadPath;
302885
-
302886
- if (typeof this.options.loadPath === 'function') {
302887
- loadPath = this.options.loadPath(languages, namespaces);
302888
- }
302889
-
302890
- loadPath = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.makePromise)(loadPath);
302891
- loadPath.then(function (resolvedLoadPath) {
302892
- if (!resolvedLoadPath) return callback(null, {});
302893
-
302894
- var url = _this2.services.interpolator.interpolate(resolvedLoadPath, {
302895
- lng: languages.join('+'),
302896
- ns: namespaces.join('+')
302897
- });
302898
-
302899
- _this2.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);
302900
- });
302901
- }
302902
- }, {
302903
- key: "loadUrl",
302904
- value: function loadUrl(url, callback, languages, namespaces) {
302905
- var _this3 = this;
302906
-
302907
- this.options.request(this.options, url, undefined, function (err, res) {
302908
- if (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback('failed loading ' + url + '; status code: ' + res.status, true);
302909
- if (res && res.status >= 400 && res.status < 500) return callback('failed loading ' + url + '; status code: ' + res.status, false);
302910
- if (!res && err && err.message && err.message.indexOf('Failed to fetch') > -1) return callback('failed loading ' + url + ': ' + err.message, true);
302911
- if (err) return callback(err, false);
302912
- var ret, parseErr;
302913
-
302914
- try {
302915
- if (typeof res.data === 'string') {
302916
- ret = _this3.options.parse(res.data, languages, namespaces);
302917
- } else {
302918
- ret = res.data;
302919
- }
302920
- } catch (e) {
302921
- parseErr = 'failed parsing ' + url + ' to json';
302922
- }
302923
-
302924
- if (parseErr) return callback(parseErr, false);
302925
- callback(null, ret);
302926
- });
302927
- }
302928
- }, {
302929
- key: "create",
302930
- value: function create(languages, namespace, key, fallbackValue, callback) {
302931
- var _this4 = this;
302932
-
302933
- if (!this.options.addPath) return;
302934
- if (typeof languages === 'string') languages = [languages];
302935
- var payload = this.options.parsePayload(namespace, key, fallbackValue);
302936
- var finished = 0;
302937
- var dataArray = [];
302938
- var resArray = [];
302939
- languages.forEach(function (lng) {
302940
- var addPath = _this4.options.addPath;
302941
-
302942
- if (typeof _this4.options.addPath === 'function') {
302943
- addPath = _this4.options.addPath(lng, namespace);
302944
- }
302945
-
302946
- var url = _this4.services.interpolator.interpolate(addPath, {
302947
- lng: lng,
302948
- ns: namespace
302949
- });
302950
-
302951
- _this4.options.request(_this4.options, url, payload, function (data, res) {
302952
- finished += 1;
302953
- dataArray.push(data);
302954
- resArray.push(res);
302955
-
302956
- if (finished === languages.length) {
302957
- if (callback) callback(dataArray, resArray);
302958
- }
302959
- });
302960
- });
302961
- }
302962
- }, {
302963
- key: "reload",
302964
- value: function reload() {
302965
- var _this5 = this;
302966
-
302967
- var _this$services = this.services,
302968
- backendConnector = _this$services.backendConnector,
302969
- languageUtils = _this$services.languageUtils,
302970
- logger = _this$services.logger;
302971
- var currentLanguage = backendConnector.language;
302972
- if (currentLanguage && currentLanguage.toLowerCase() === 'cimode') return;
302973
- var toLoad = [];
302974
-
302975
- var append = function append(lng) {
302976
- var lngs = languageUtils.toResolveHierarchy(lng);
302977
- lngs.forEach(function (l) {
302978
- if (toLoad.indexOf(l) < 0) toLoad.push(l);
302979
- });
302980
- };
302981
-
302982
- append(currentLanguage);
302983
- if (this.allOptions.preload) this.allOptions.preload.forEach(function (l) {
302984
- return append(l);
302985
- });
302986
- toLoad.forEach(function (lng) {
302987
- _this5.allOptions.ns.forEach(function (ns) {
302988
- backendConnector.read(lng, ns, 'read', null, null, function (err, data) {
302989
- if (err) logger.warn("loading namespace ".concat(ns, " for language ").concat(lng, " failed"), err);
302990
- if (!err && data) logger.log("loaded namespace ".concat(ns, " for language ").concat(lng), data);
302991
- backendConnector.loaded("".concat(lng, "|").concat(ns), err, data);
302992
- });
302993
- });
302994
- });
302995
- }
302996
- }]);
302997
-
302998
- return Backend;
302999
- }();
303000
-
303001
- Backend.type = 'backend';
303002
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
303003
-
303004
- /***/ }),
303005
-
303006
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js":
303007
- /*!************************************************************************************************************************!*\
303008
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js ***!
303009
- \************************************************************************************************************************/
303010
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
303011
-
303012
- "use strict";
303013
- var _getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache;
303014
- __webpack_require__.r(__webpack_exports__);
303015
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
303016
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
303017
- /* harmony export */ });
303018
- /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js");
303019
- /* harmony import */ var _getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getFetch.cjs */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs");
303020
- 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); }
303021
-
303022
-
303023
-
303024
- var fetchApi;
303025
-
303026
- if (typeof fetch === 'function') {
303027
- if (typeof global !== 'undefined' && global.fetch) {
303028
- fetchApi = global.fetch;
303029
- } else if (typeof window !== 'undefined' && window.fetch) {
303030
- fetchApi = window.fetch;
303031
- }
303032
- }
303033
-
303034
- var XmlHttpRequestApi;
303035
-
303036
- if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)()) {
303037
- if (typeof global !== 'undefined' && global.XMLHttpRequest) {
303038
- XmlHttpRequestApi = global.XMLHttpRequest;
303039
- } else if (typeof window !== 'undefined' && window.XMLHttpRequest) {
303040
- XmlHttpRequestApi = window.XMLHttpRequest;
303041
- }
303042
- }
303043
-
303044
- var ActiveXObjectApi;
303045
-
303046
- if (typeof ActiveXObject === 'function') {
303047
- if (typeof global !== 'undefined' && global.ActiveXObject) {
303048
- ActiveXObjectApi = global.ActiveXObject;
303049
- } else if (typeof window !== 'undefined' && window.ActiveXObject) {
303050
- ActiveXObjectApi = window.ActiveXObject;
303051
- }
303052
- }
303053
-
303054
- if (!fetchApi && /*#__PURE__*/ (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__, 2))) && !XmlHttpRequestApi && !ActiveXObjectApi) fetchApi = _getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__ || /*#__PURE__*/ (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__, 2)));
303055
- if (typeof fetchApi !== 'function') fetchApi = undefined;
303056
-
303057
- var addQueryString = function addQueryString(url, params) {
303058
- if (params && _typeof(params) === 'object') {
303059
- var queryString = '';
303060
-
303061
- for (var paramName in params) {
303062
- queryString += '&' + encodeURIComponent(paramName) + '=' + encodeURIComponent(params[paramName]);
303063
- }
303064
-
303065
- if (!queryString) return url;
303066
- url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
303067
- }
303068
-
303069
- return url;
303070
- };
303071
-
303072
- var requestWithFetch = function requestWithFetch(options, url, payload, callback) {
303073
- if (options.queryStringParams) {
303074
- url = addQueryString(url, options.queryStringParams);
303075
- }
303076
-
303077
- var headers = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)({}, typeof options.customHeaders === 'function' ? options.customHeaders() : options.customHeaders);
303078
- if (payload) headers['Content-Type'] = 'application/json';
303079
- fetchApi(url, (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)({
303080
- method: payload ? 'POST' : 'GET',
303081
- body: payload ? options.stringify(payload) : undefined,
303082
- headers: headers
303083
- }, typeof options.requestOptions === 'function' ? options.requestOptions(payload) : options.requestOptions)).then(function (response) {
303084
- if (!response.ok) return callback(response.statusText || 'Error', {
303085
- status: response.status
303086
- });
303087
- response.text().then(function (data) {
303088
- callback(null, {
303089
- status: response.status,
303090
- data: data
303091
- });
303092
- }).catch(callback);
303093
- }).catch(callback);
303094
- };
303095
-
303096
- var requestWithXmlHttpRequest = function requestWithXmlHttpRequest(options, url, payload, callback) {
303097
- if (payload && _typeof(payload) === 'object') {
303098
- payload = addQueryString('', payload).slice(1);
303099
- }
303100
-
303101
- if (options.queryStringParams) {
303102
- url = addQueryString(url, options.queryStringParams);
303103
- }
303104
-
303105
- try {
303106
- var x;
303107
-
303108
- if (XmlHttpRequestApi) {
303109
- x = new XmlHttpRequestApi();
303110
- } else {
303111
- x = new ActiveXObjectApi('MSXML2.XMLHTTP.3.0');
303112
- }
303113
-
303114
- x.open(payload ? 'POST' : 'GET', url, 1);
303115
-
303116
- if (!options.crossDomain) {
303117
- x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
303118
- }
303119
-
303120
- x.withCredentials = !!options.withCredentials;
303121
-
303122
- if (payload) {
303123
- x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
303124
- }
303125
-
303126
- if (x.overrideMimeType) {
303127
- x.overrideMimeType('application/json');
303128
- }
303129
-
303130
- var h = options.customHeaders;
303131
- h = typeof h === 'function' ? h() : h;
303132
-
303133
- if (h) {
303134
- for (var i in h) {
303135
- x.setRequestHeader(i, h[i]);
303136
- }
303137
- }
303138
-
303139
- x.onreadystatechange = function () {
303140
- x.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {
303141
- status: x.status,
303142
- data: x.responseText
303143
- });
303144
- };
303145
-
303146
- x.send(payload);
303147
- } catch (e) {
303148
- console && console.log(e);
303149
- }
303150
- };
303151
-
303152
- var request = function request(options, url, payload, callback) {
303153
- if (typeof payload === 'function') {
303154
- callback = payload;
303155
- payload = undefined;
303156
- }
303157
-
303158
- callback = callback || function () {};
303159
-
303160
- if (fetchApi) {
303161
- return requestWithFetch(options, url, payload, callback);
303162
- }
303163
-
303164
- if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)() || typeof ActiveXObject === 'function') {
303165
- return requestWithXmlHttpRequest(options, url, payload, callback);
303166
- }
303167
- };
303168
-
303169
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (request);
303170
-
303171
- /***/ }),
303172
-
303173
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js":
303174
- /*!**********************************************************************************************************************!*\
303175
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js ***!
303176
- \**********************************************************************************************************************/
303177
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
303178
-
303179
- "use strict";
303180
- __webpack_require__.r(__webpack_exports__);
303181
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
303182
- /* harmony export */ "defaults": () => (/* binding */ defaults),
303183
- /* harmony export */ "hasXMLHttpRequest": () => (/* binding */ hasXMLHttpRequest),
303184
- /* harmony export */ "makePromise": () => (/* binding */ makePromise)
303185
- /* harmony export */ });
303186
- 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); }
303187
-
303188
- var arr = [];
303189
- var each = arr.forEach;
303190
- var slice = arr.slice;
303191
- function defaults(obj) {
303192
- each.call(slice.call(arguments, 1), function (source) {
303193
- if (source) {
303194
- for (var prop in source) {
303195
- if (obj[prop] === undefined) obj[prop] = source[prop];
303196
- }
303197
- }
303198
- });
303199
- return obj;
303200
- }
303201
- function hasXMLHttpRequest() {
303202
- return typeof XMLHttpRequest === 'function' || (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof(XMLHttpRequest)) === 'object';
303203
- }
303204
-
303205
- function isPromise(maybePromise) {
303206
- return !!maybePromise && typeof maybePromise.then === 'function';
303207
- }
303208
-
303209
- function makePromise(maybePromise) {
303210
- if (isPromise(maybePromise)) {
303211
- return maybePromise;
303212
- }
303213
-
303214
- return Promise.resolve(maybePromise);
303215
- }
303216
-
303217
- /***/ }),
303218
-
303219
- /***/ "../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js":
302437
+ /***/ "../../common/temp/node_modules/.pnpm/i18next@21.9.1/node_modules/i18next/dist/esm/i18next.js":
303220
302438
  /*!****************************************************************************************************!*\
303221
- !*** ../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js ***!
302439
+ !*** ../../common/temp/node_modules/.pnpm/i18next@21.9.1/node_modules/i18next/dist/esm/i18next.js ***!
303222
302440
  \****************************************************************************************************/
303223
302441
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
303224
302442
 
@@ -305496,7 +304714,7 @@ var I18n = function (_EventEmitter) {
305496
304714
  options = {};
305497
304715
  }
305498
304716
 
305499
- if (!options.defaultNS && options.ns) {
304717
+ if (!options.defaultNS && options.defaultNS !== false && options.ns) {
305500
304718
  if (typeof options.ns === 'string') {
305501
304719
  options.defaultNS = options.ns;
305502
304720
  } else if (options.ns.indexOf('translation') < 0) {
@@ -306076,7 +305294,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
306076
305294
  /***/ ((module) => {
306077
305295
 
306078
305296
  "use strict";
306079
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.10","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"tsc 1>&2 --outDir lib/cjs","build:esm":"tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.4.0-dev.10","@itwin/core-bentley":"workspace:^3.4.0-dev.10","@itwin/core-common":"workspace:^3.4.0-dev.10","@itwin/core-geometry":"workspace:^3.4.0-dev.10","@itwin/core-orbitgt":"workspace:^3.4.0-dev.10","@itwin/core-quantity":"workspace:^3.4.0-dev.10","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.10"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"16.11.7","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.1","semver":"^7.3.5","superagent":"7.1.3","wms-capabilities":"0.4.0","xml-js":"~1.6.11"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
305297
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.15","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"tsc 1>&2 --outDir lib/cjs","build:esm":"tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.4.0-dev.15","@itwin/core-bentley":"workspace:^3.4.0-dev.15","@itwin/core-common":"workspace:^3.4.0-dev.15","@itwin/core-geometry":"workspace:^3.4.0-dev.15","@itwin/core-orbitgt":"workspace:^3.4.0-dev.15","@itwin/core-quantity":"workspace:^3.4.0-dev.15","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.15"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"16.11.7","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.1","semver":"^7.3.5","superagent":"7.1.3","wms-capabilities":"0.4.0","xml-js":"~1.6.11"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
306080
305298
 
306081
305299
  /***/ })
306082
305300
 
@@ -306125,36 +305343,6 @@ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev
306125
305343
  /******/ };
306126
305344
  /******/ })();
306127
305345
  /******/
306128
- /******/ /* webpack/runtime/create fake namespace object */
306129
- /******/ (() => {
306130
- /******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
306131
- /******/ var leafPrototypes;
306132
- /******/ // create a fake namespace object
306133
- /******/ // mode & 1: value is a module id, require it
306134
- /******/ // mode & 2: merge all properties of value into the ns
306135
- /******/ // mode & 4: return value when already ns object
306136
- /******/ // mode & 16: return value when it's Promise-like
306137
- /******/ // mode & 8|1: behave like require
306138
- /******/ __webpack_require__.t = function(value, mode) {
306139
- /******/ if(mode & 1) value = this(value);
306140
- /******/ if(mode & 8) return value;
306141
- /******/ if(typeof value === 'object' && value) {
306142
- /******/ if((mode & 4) && value.__esModule) return value;
306143
- /******/ if((mode & 16) && typeof value.then === 'function') return value;
306144
- /******/ }
306145
- /******/ var ns = Object.create(null);
306146
- /******/ __webpack_require__.r(ns);
306147
- /******/ var def = {};
306148
- /******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
306149
- /******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
306150
- /******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
306151
- /******/ }
306152
- /******/ def['default'] = () => (value);
306153
- /******/ __webpack_require__.d(ns, def);
306154
- /******/ return ns;
306155
- /******/ };
306156
- /******/ })();
306157
- /******/
306158
305346
  /******/ /* webpack/runtime/define property getters */
306159
305347
  /******/ (() => {
306160
305348
  /******/ // define getter functions for harmony exports