@itwin/rpcinterface-full-stack-tests 3.4.0-dev.0 → 3.4.0-dev.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dist/_c41d.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +1326 -407
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_5_node_modules_loaders_gl_draco_di-e0b0bc.bundled-tests.js +5 -5
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_5_node_modules_loaders_gl_draco_di-e0b0bc.bundled-tests.js.map +1 -1
- package/package.json +15 -16
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
|
|
22
22
|
/***/ }),
|
|
23
23
|
|
|
24
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.
|
|
24
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.6/node_modules/@itwin/certa/lib/utils/CallbackUtils.js":
|
|
25
25
|
/*!********************************************************************************************************************!*\
|
|
26
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.
|
|
26
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.6/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.
|
|
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");
|
|
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) {
|
|
@@ -19352,6 +19352,570 @@ Emitter.prototype.hasListeners = function(event){
|
|
|
19352
19352
|
};
|
|
19353
19353
|
|
|
19354
19354
|
|
|
19355
|
+
/***/ }),
|
|
19356
|
+
|
|
19357
|
+
/***/ "../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js":
|
|
19358
|
+
/*!****************************************************************************************************************!*\
|
|
19359
|
+
!*** ../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js ***!
|
|
19360
|
+
\****************************************************************************************************************/
|
|
19361
|
+
/***/ (function(module, exports) {
|
|
19362
|
+
|
|
19363
|
+
var global = typeof self !== 'undefined' ? self : this;
|
|
19364
|
+
var __self__ = (function () {
|
|
19365
|
+
function F() {
|
|
19366
|
+
this.fetch = false;
|
|
19367
|
+
this.DOMException = global.DOMException
|
|
19368
|
+
}
|
|
19369
|
+
F.prototype = global;
|
|
19370
|
+
return new F();
|
|
19371
|
+
})();
|
|
19372
|
+
(function(self) {
|
|
19373
|
+
|
|
19374
|
+
var irrelevant = (function (exports) {
|
|
19375
|
+
|
|
19376
|
+
var support = {
|
|
19377
|
+
searchParams: 'URLSearchParams' in self,
|
|
19378
|
+
iterable: 'Symbol' in self && 'iterator' in Symbol,
|
|
19379
|
+
blob:
|
|
19380
|
+
'FileReader' in self &&
|
|
19381
|
+
'Blob' in self &&
|
|
19382
|
+
(function() {
|
|
19383
|
+
try {
|
|
19384
|
+
new Blob();
|
|
19385
|
+
return true
|
|
19386
|
+
} catch (e) {
|
|
19387
|
+
return false
|
|
19388
|
+
}
|
|
19389
|
+
})(),
|
|
19390
|
+
formData: 'FormData' in self,
|
|
19391
|
+
arrayBuffer: 'ArrayBuffer' in self
|
|
19392
|
+
};
|
|
19393
|
+
|
|
19394
|
+
function isDataView(obj) {
|
|
19395
|
+
return obj && DataView.prototype.isPrototypeOf(obj)
|
|
19396
|
+
}
|
|
19397
|
+
|
|
19398
|
+
if (support.arrayBuffer) {
|
|
19399
|
+
var viewClasses = [
|
|
19400
|
+
'[object Int8Array]',
|
|
19401
|
+
'[object Uint8Array]',
|
|
19402
|
+
'[object Uint8ClampedArray]',
|
|
19403
|
+
'[object Int16Array]',
|
|
19404
|
+
'[object Uint16Array]',
|
|
19405
|
+
'[object Int32Array]',
|
|
19406
|
+
'[object Uint32Array]',
|
|
19407
|
+
'[object Float32Array]',
|
|
19408
|
+
'[object Float64Array]'
|
|
19409
|
+
];
|
|
19410
|
+
|
|
19411
|
+
var isArrayBufferView =
|
|
19412
|
+
ArrayBuffer.isView ||
|
|
19413
|
+
function(obj) {
|
|
19414
|
+
return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1
|
|
19415
|
+
};
|
|
19416
|
+
}
|
|
19417
|
+
|
|
19418
|
+
function normalizeName(name) {
|
|
19419
|
+
if (typeof name !== 'string') {
|
|
19420
|
+
name = String(name);
|
|
19421
|
+
}
|
|
19422
|
+
if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name)) {
|
|
19423
|
+
throw new TypeError('Invalid character in header field name')
|
|
19424
|
+
}
|
|
19425
|
+
return name.toLowerCase()
|
|
19426
|
+
}
|
|
19427
|
+
|
|
19428
|
+
function normalizeValue(value) {
|
|
19429
|
+
if (typeof value !== 'string') {
|
|
19430
|
+
value = String(value);
|
|
19431
|
+
}
|
|
19432
|
+
return value
|
|
19433
|
+
}
|
|
19434
|
+
|
|
19435
|
+
// Build a destructive iterator for the value list
|
|
19436
|
+
function iteratorFor(items) {
|
|
19437
|
+
var iterator = {
|
|
19438
|
+
next: function() {
|
|
19439
|
+
var value = items.shift();
|
|
19440
|
+
return {done: value === undefined, value: value}
|
|
19441
|
+
}
|
|
19442
|
+
};
|
|
19443
|
+
|
|
19444
|
+
if (support.iterable) {
|
|
19445
|
+
iterator[Symbol.iterator] = function() {
|
|
19446
|
+
return iterator
|
|
19447
|
+
};
|
|
19448
|
+
}
|
|
19449
|
+
|
|
19450
|
+
return iterator
|
|
19451
|
+
}
|
|
19452
|
+
|
|
19453
|
+
function Headers(headers) {
|
|
19454
|
+
this.map = {};
|
|
19455
|
+
|
|
19456
|
+
if (headers instanceof Headers) {
|
|
19457
|
+
headers.forEach(function(value, name) {
|
|
19458
|
+
this.append(name, value);
|
|
19459
|
+
}, this);
|
|
19460
|
+
} else if (Array.isArray(headers)) {
|
|
19461
|
+
headers.forEach(function(header) {
|
|
19462
|
+
this.append(header[0], header[1]);
|
|
19463
|
+
}, this);
|
|
19464
|
+
} else if (headers) {
|
|
19465
|
+
Object.getOwnPropertyNames(headers).forEach(function(name) {
|
|
19466
|
+
this.append(name, headers[name]);
|
|
19467
|
+
}, this);
|
|
19468
|
+
}
|
|
19469
|
+
}
|
|
19470
|
+
|
|
19471
|
+
Headers.prototype.append = function(name, value) {
|
|
19472
|
+
name = normalizeName(name);
|
|
19473
|
+
value = normalizeValue(value);
|
|
19474
|
+
var oldValue = this.map[name];
|
|
19475
|
+
this.map[name] = oldValue ? oldValue + ', ' + value : value;
|
|
19476
|
+
};
|
|
19477
|
+
|
|
19478
|
+
Headers.prototype['delete'] = function(name) {
|
|
19479
|
+
delete this.map[normalizeName(name)];
|
|
19480
|
+
};
|
|
19481
|
+
|
|
19482
|
+
Headers.prototype.get = function(name) {
|
|
19483
|
+
name = normalizeName(name);
|
|
19484
|
+
return this.has(name) ? this.map[name] : null
|
|
19485
|
+
};
|
|
19486
|
+
|
|
19487
|
+
Headers.prototype.has = function(name) {
|
|
19488
|
+
return this.map.hasOwnProperty(normalizeName(name))
|
|
19489
|
+
};
|
|
19490
|
+
|
|
19491
|
+
Headers.prototype.set = function(name, value) {
|
|
19492
|
+
this.map[normalizeName(name)] = normalizeValue(value);
|
|
19493
|
+
};
|
|
19494
|
+
|
|
19495
|
+
Headers.prototype.forEach = function(callback, thisArg) {
|
|
19496
|
+
for (var name in this.map) {
|
|
19497
|
+
if (this.map.hasOwnProperty(name)) {
|
|
19498
|
+
callback.call(thisArg, this.map[name], name, this);
|
|
19499
|
+
}
|
|
19500
|
+
}
|
|
19501
|
+
};
|
|
19502
|
+
|
|
19503
|
+
Headers.prototype.keys = function() {
|
|
19504
|
+
var items = [];
|
|
19505
|
+
this.forEach(function(value, name) {
|
|
19506
|
+
items.push(name);
|
|
19507
|
+
});
|
|
19508
|
+
return iteratorFor(items)
|
|
19509
|
+
};
|
|
19510
|
+
|
|
19511
|
+
Headers.prototype.values = function() {
|
|
19512
|
+
var items = [];
|
|
19513
|
+
this.forEach(function(value) {
|
|
19514
|
+
items.push(value);
|
|
19515
|
+
});
|
|
19516
|
+
return iteratorFor(items)
|
|
19517
|
+
};
|
|
19518
|
+
|
|
19519
|
+
Headers.prototype.entries = function() {
|
|
19520
|
+
var items = [];
|
|
19521
|
+
this.forEach(function(value, name) {
|
|
19522
|
+
items.push([name, value]);
|
|
19523
|
+
});
|
|
19524
|
+
return iteratorFor(items)
|
|
19525
|
+
};
|
|
19526
|
+
|
|
19527
|
+
if (support.iterable) {
|
|
19528
|
+
Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
|
|
19529
|
+
}
|
|
19530
|
+
|
|
19531
|
+
function consumed(body) {
|
|
19532
|
+
if (body.bodyUsed) {
|
|
19533
|
+
return Promise.reject(new TypeError('Already read'))
|
|
19534
|
+
}
|
|
19535
|
+
body.bodyUsed = true;
|
|
19536
|
+
}
|
|
19537
|
+
|
|
19538
|
+
function fileReaderReady(reader) {
|
|
19539
|
+
return new Promise(function(resolve, reject) {
|
|
19540
|
+
reader.onload = function() {
|
|
19541
|
+
resolve(reader.result);
|
|
19542
|
+
};
|
|
19543
|
+
reader.onerror = function() {
|
|
19544
|
+
reject(reader.error);
|
|
19545
|
+
};
|
|
19546
|
+
})
|
|
19547
|
+
}
|
|
19548
|
+
|
|
19549
|
+
function readBlobAsArrayBuffer(blob) {
|
|
19550
|
+
var reader = new FileReader();
|
|
19551
|
+
var promise = fileReaderReady(reader);
|
|
19552
|
+
reader.readAsArrayBuffer(blob);
|
|
19553
|
+
return promise
|
|
19554
|
+
}
|
|
19555
|
+
|
|
19556
|
+
function readBlobAsText(blob) {
|
|
19557
|
+
var reader = new FileReader();
|
|
19558
|
+
var promise = fileReaderReady(reader);
|
|
19559
|
+
reader.readAsText(blob);
|
|
19560
|
+
return promise
|
|
19561
|
+
}
|
|
19562
|
+
|
|
19563
|
+
function readArrayBufferAsText(buf) {
|
|
19564
|
+
var view = new Uint8Array(buf);
|
|
19565
|
+
var chars = new Array(view.length);
|
|
19566
|
+
|
|
19567
|
+
for (var i = 0; i < view.length; i++) {
|
|
19568
|
+
chars[i] = String.fromCharCode(view[i]);
|
|
19569
|
+
}
|
|
19570
|
+
return chars.join('')
|
|
19571
|
+
}
|
|
19572
|
+
|
|
19573
|
+
function bufferClone(buf) {
|
|
19574
|
+
if (buf.slice) {
|
|
19575
|
+
return buf.slice(0)
|
|
19576
|
+
} else {
|
|
19577
|
+
var view = new Uint8Array(buf.byteLength);
|
|
19578
|
+
view.set(new Uint8Array(buf));
|
|
19579
|
+
return view.buffer
|
|
19580
|
+
}
|
|
19581
|
+
}
|
|
19582
|
+
|
|
19583
|
+
function Body() {
|
|
19584
|
+
this.bodyUsed = false;
|
|
19585
|
+
|
|
19586
|
+
this._initBody = function(body) {
|
|
19587
|
+
this._bodyInit = body;
|
|
19588
|
+
if (!body) {
|
|
19589
|
+
this._bodyText = '';
|
|
19590
|
+
} else if (typeof body === 'string') {
|
|
19591
|
+
this._bodyText = body;
|
|
19592
|
+
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
|
|
19593
|
+
this._bodyBlob = body;
|
|
19594
|
+
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
|
|
19595
|
+
this._bodyFormData = body;
|
|
19596
|
+
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
19597
|
+
this._bodyText = body.toString();
|
|
19598
|
+
} else if (support.arrayBuffer && support.blob && isDataView(body)) {
|
|
19599
|
+
this._bodyArrayBuffer = bufferClone(body.buffer);
|
|
19600
|
+
// IE 10-11 can't handle a DataView body.
|
|
19601
|
+
this._bodyInit = new Blob([this._bodyArrayBuffer]);
|
|
19602
|
+
} else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
|
|
19603
|
+
this._bodyArrayBuffer = bufferClone(body);
|
|
19604
|
+
} else {
|
|
19605
|
+
this._bodyText = body = Object.prototype.toString.call(body);
|
|
19606
|
+
}
|
|
19607
|
+
|
|
19608
|
+
if (!this.headers.get('content-type')) {
|
|
19609
|
+
if (typeof body === 'string') {
|
|
19610
|
+
this.headers.set('content-type', 'text/plain;charset=UTF-8');
|
|
19611
|
+
} else if (this._bodyBlob && this._bodyBlob.type) {
|
|
19612
|
+
this.headers.set('content-type', this._bodyBlob.type);
|
|
19613
|
+
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
19614
|
+
this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
|
|
19615
|
+
}
|
|
19616
|
+
}
|
|
19617
|
+
};
|
|
19618
|
+
|
|
19619
|
+
if (support.blob) {
|
|
19620
|
+
this.blob = function() {
|
|
19621
|
+
var rejected = consumed(this);
|
|
19622
|
+
if (rejected) {
|
|
19623
|
+
return rejected
|
|
19624
|
+
}
|
|
19625
|
+
|
|
19626
|
+
if (this._bodyBlob) {
|
|
19627
|
+
return Promise.resolve(this._bodyBlob)
|
|
19628
|
+
} else if (this._bodyArrayBuffer) {
|
|
19629
|
+
return Promise.resolve(new Blob([this._bodyArrayBuffer]))
|
|
19630
|
+
} else if (this._bodyFormData) {
|
|
19631
|
+
throw new Error('could not read FormData body as blob')
|
|
19632
|
+
} else {
|
|
19633
|
+
return Promise.resolve(new Blob([this._bodyText]))
|
|
19634
|
+
}
|
|
19635
|
+
};
|
|
19636
|
+
|
|
19637
|
+
this.arrayBuffer = function() {
|
|
19638
|
+
if (this._bodyArrayBuffer) {
|
|
19639
|
+
return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
|
|
19640
|
+
} else {
|
|
19641
|
+
return this.blob().then(readBlobAsArrayBuffer)
|
|
19642
|
+
}
|
|
19643
|
+
};
|
|
19644
|
+
}
|
|
19645
|
+
|
|
19646
|
+
this.text = function() {
|
|
19647
|
+
var rejected = consumed(this);
|
|
19648
|
+
if (rejected) {
|
|
19649
|
+
return rejected
|
|
19650
|
+
}
|
|
19651
|
+
|
|
19652
|
+
if (this._bodyBlob) {
|
|
19653
|
+
return readBlobAsText(this._bodyBlob)
|
|
19654
|
+
} else if (this._bodyArrayBuffer) {
|
|
19655
|
+
return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
|
|
19656
|
+
} else if (this._bodyFormData) {
|
|
19657
|
+
throw new Error('could not read FormData body as text')
|
|
19658
|
+
} else {
|
|
19659
|
+
return Promise.resolve(this._bodyText)
|
|
19660
|
+
}
|
|
19661
|
+
};
|
|
19662
|
+
|
|
19663
|
+
if (support.formData) {
|
|
19664
|
+
this.formData = function() {
|
|
19665
|
+
return this.text().then(decode)
|
|
19666
|
+
};
|
|
19667
|
+
}
|
|
19668
|
+
|
|
19669
|
+
this.json = function() {
|
|
19670
|
+
return this.text().then(JSON.parse)
|
|
19671
|
+
};
|
|
19672
|
+
|
|
19673
|
+
return this
|
|
19674
|
+
}
|
|
19675
|
+
|
|
19676
|
+
// HTTP methods whose capitalization should be normalized
|
|
19677
|
+
var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
|
|
19678
|
+
|
|
19679
|
+
function normalizeMethod(method) {
|
|
19680
|
+
var upcased = method.toUpperCase();
|
|
19681
|
+
return methods.indexOf(upcased) > -1 ? upcased : method
|
|
19682
|
+
}
|
|
19683
|
+
|
|
19684
|
+
function Request(input, options) {
|
|
19685
|
+
options = options || {};
|
|
19686
|
+
var body = options.body;
|
|
19687
|
+
|
|
19688
|
+
if (input instanceof Request) {
|
|
19689
|
+
if (input.bodyUsed) {
|
|
19690
|
+
throw new TypeError('Already read')
|
|
19691
|
+
}
|
|
19692
|
+
this.url = input.url;
|
|
19693
|
+
this.credentials = input.credentials;
|
|
19694
|
+
if (!options.headers) {
|
|
19695
|
+
this.headers = new Headers(input.headers);
|
|
19696
|
+
}
|
|
19697
|
+
this.method = input.method;
|
|
19698
|
+
this.mode = input.mode;
|
|
19699
|
+
this.signal = input.signal;
|
|
19700
|
+
if (!body && input._bodyInit != null) {
|
|
19701
|
+
body = input._bodyInit;
|
|
19702
|
+
input.bodyUsed = true;
|
|
19703
|
+
}
|
|
19704
|
+
} else {
|
|
19705
|
+
this.url = String(input);
|
|
19706
|
+
}
|
|
19707
|
+
|
|
19708
|
+
this.credentials = options.credentials || this.credentials || 'same-origin';
|
|
19709
|
+
if (options.headers || !this.headers) {
|
|
19710
|
+
this.headers = new Headers(options.headers);
|
|
19711
|
+
}
|
|
19712
|
+
this.method = normalizeMethod(options.method || this.method || 'GET');
|
|
19713
|
+
this.mode = options.mode || this.mode || null;
|
|
19714
|
+
this.signal = options.signal || this.signal;
|
|
19715
|
+
this.referrer = null;
|
|
19716
|
+
|
|
19717
|
+
if ((this.method === 'GET' || this.method === 'HEAD') && body) {
|
|
19718
|
+
throw new TypeError('Body not allowed for GET or HEAD requests')
|
|
19719
|
+
}
|
|
19720
|
+
this._initBody(body);
|
|
19721
|
+
}
|
|
19722
|
+
|
|
19723
|
+
Request.prototype.clone = function() {
|
|
19724
|
+
return new Request(this, {body: this._bodyInit})
|
|
19725
|
+
};
|
|
19726
|
+
|
|
19727
|
+
function decode(body) {
|
|
19728
|
+
var form = new FormData();
|
|
19729
|
+
body
|
|
19730
|
+
.trim()
|
|
19731
|
+
.split('&')
|
|
19732
|
+
.forEach(function(bytes) {
|
|
19733
|
+
if (bytes) {
|
|
19734
|
+
var split = bytes.split('=');
|
|
19735
|
+
var name = split.shift().replace(/\+/g, ' ');
|
|
19736
|
+
var value = split.join('=').replace(/\+/g, ' ');
|
|
19737
|
+
form.append(decodeURIComponent(name), decodeURIComponent(value));
|
|
19738
|
+
}
|
|
19739
|
+
});
|
|
19740
|
+
return form
|
|
19741
|
+
}
|
|
19742
|
+
|
|
19743
|
+
function parseHeaders(rawHeaders) {
|
|
19744
|
+
var headers = new Headers();
|
|
19745
|
+
// Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
|
|
19746
|
+
// https://tools.ietf.org/html/rfc7230#section-3.2
|
|
19747
|
+
var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
|
|
19748
|
+
preProcessedHeaders.split(/\r?\n/).forEach(function(line) {
|
|
19749
|
+
var parts = line.split(':');
|
|
19750
|
+
var key = parts.shift().trim();
|
|
19751
|
+
if (key) {
|
|
19752
|
+
var value = parts.join(':').trim();
|
|
19753
|
+
headers.append(key, value);
|
|
19754
|
+
}
|
|
19755
|
+
});
|
|
19756
|
+
return headers
|
|
19757
|
+
}
|
|
19758
|
+
|
|
19759
|
+
Body.call(Request.prototype);
|
|
19760
|
+
|
|
19761
|
+
function Response(bodyInit, options) {
|
|
19762
|
+
if (!options) {
|
|
19763
|
+
options = {};
|
|
19764
|
+
}
|
|
19765
|
+
|
|
19766
|
+
this.type = 'default';
|
|
19767
|
+
this.status = options.status === undefined ? 200 : options.status;
|
|
19768
|
+
this.ok = this.status >= 200 && this.status < 300;
|
|
19769
|
+
this.statusText = 'statusText' in options ? options.statusText : 'OK';
|
|
19770
|
+
this.headers = new Headers(options.headers);
|
|
19771
|
+
this.url = options.url || '';
|
|
19772
|
+
this._initBody(bodyInit);
|
|
19773
|
+
}
|
|
19774
|
+
|
|
19775
|
+
Body.call(Response.prototype);
|
|
19776
|
+
|
|
19777
|
+
Response.prototype.clone = function() {
|
|
19778
|
+
return new Response(this._bodyInit, {
|
|
19779
|
+
status: this.status,
|
|
19780
|
+
statusText: this.statusText,
|
|
19781
|
+
headers: new Headers(this.headers),
|
|
19782
|
+
url: this.url
|
|
19783
|
+
})
|
|
19784
|
+
};
|
|
19785
|
+
|
|
19786
|
+
Response.error = function() {
|
|
19787
|
+
var response = new Response(null, {status: 0, statusText: ''});
|
|
19788
|
+
response.type = 'error';
|
|
19789
|
+
return response
|
|
19790
|
+
};
|
|
19791
|
+
|
|
19792
|
+
var redirectStatuses = [301, 302, 303, 307, 308];
|
|
19793
|
+
|
|
19794
|
+
Response.redirect = function(url, status) {
|
|
19795
|
+
if (redirectStatuses.indexOf(status) === -1) {
|
|
19796
|
+
throw new RangeError('Invalid status code')
|
|
19797
|
+
}
|
|
19798
|
+
|
|
19799
|
+
return new Response(null, {status: status, headers: {location: url}})
|
|
19800
|
+
};
|
|
19801
|
+
|
|
19802
|
+
exports.DOMException = self.DOMException;
|
|
19803
|
+
try {
|
|
19804
|
+
new exports.DOMException();
|
|
19805
|
+
} catch (err) {
|
|
19806
|
+
exports.DOMException = function(message, name) {
|
|
19807
|
+
this.message = message;
|
|
19808
|
+
this.name = name;
|
|
19809
|
+
var error = Error(message);
|
|
19810
|
+
this.stack = error.stack;
|
|
19811
|
+
};
|
|
19812
|
+
exports.DOMException.prototype = Object.create(Error.prototype);
|
|
19813
|
+
exports.DOMException.prototype.constructor = exports.DOMException;
|
|
19814
|
+
}
|
|
19815
|
+
|
|
19816
|
+
function fetch(input, init) {
|
|
19817
|
+
return new Promise(function(resolve, reject) {
|
|
19818
|
+
var request = new Request(input, init);
|
|
19819
|
+
|
|
19820
|
+
if (request.signal && request.signal.aborted) {
|
|
19821
|
+
return reject(new exports.DOMException('Aborted', 'AbortError'))
|
|
19822
|
+
}
|
|
19823
|
+
|
|
19824
|
+
var xhr = new XMLHttpRequest();
|
|
19825
|
+
|
|
19826
|
+
function abortXhr() {
|
|
19827
|
+
xhr.abort();
|
|
19828
|
+
}
|
|
19829
|
+
|
|
19830
|
+
xhr.onload = function() {
|
|
19831
|
+
var options = {
|
|
19832
|
+
status: xhr.status,
|
|
19833
|
+
statusText: xhr.statusText,
|
|
19834
|
+
headers: parseHeaders(xhr.getAllResponseHeaders() || '')
|
|
19835
|
+
};
|
|
19836
|
+
options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');
|
|
19837
|
+
var body = 'response' in xhr ? xhr.response : xhr.responseText;
|
|
19838
|
+
resolve(new Response(body, options));
|
|
19839
|
+
};
|
|
19840
|
+
|
|
19841
|
+
xhr.onerror = function() {
|
|
19842
|
+
reject(new TypeError('Network request failed'));
|
|
19843
|
+
};
|
|
19844
|
+
|
|
19845
|
+
xhr.ontimeout = function() {
|
|
19846
|
+
reject(new TypeError('Network request failed'));
|
|
19847
|
+
};
|
|
19848
|
+
|
|
19849
|
+
xhr.onabort = function() {
|
|
19850
|
+
reject(new exports.DOMException('Aborted', 'AbortError'));
|
|
19851
|
+
};
|
|
19852
|
+
|
|
19853
|
+
xhr.open(request.method, request.url, true);
|
|
19854
|
+
|
|
19855
|
+
if (request.credentials === 'include') {
|
|
19856
|
+
xhr.withCredentials = true;
|
|
19857
|
+
} else if (request.credentials === 'omit') {
|
|
19858
|
+
xhr.withCredentials = false;
|
|
19859
|
+
}
|
|
19860
|
+
|
|
19861
|
+
if ('responseType' in xhr && support.blob) {
|
|
19862
|
+
xhr.responseType = 'blob';
|
|
19863
|
+
}
|
|
19864
|
+
|
|
19865
|
+
request.headers.forEach(function(value, name) {
|
|
19866
|
+
xhr.setRequestHeader(name, value);
|
|
19867
|
+
});
|
|
19868
|
+
|
|
19869
|
+
if (request.signal) {
|
|
19870
|
+
request.signal.addEventListener('abort', abortXhr);
|
|
19871
|
+
|
|
19872
|
+
xhr.onreadystatechange = function() {
|
|
19873
|
+
// DONE (success or failure)
|
|
19874
|
+
if (xhr.readyState === 4) {
|
|
19875
|
+
request.signal.removeEventListener('abort', abortXhr);
|
|
19876
|
+
}
|
|
19877
|
+
};
|
|
19878
|
+
}
|
|
19879
|
+
|
|
19880
|
+
xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);
|
|
19881
|
+
})
|
|
19882
|
+
}
|
|
19883
|
+
|
|
19884
|
+
fetch.polyfill = true;
|
|
19885
|
+
|
|
19886
|
+
if (!self.fetch) {
|
|
19887
|
+
self.fetch = fetch;
|
|
19888
|
+
self.Headers = Headers;
|
|
19889
|
+
self.Request = Request;
|
|
19890
|
+
self.Response = Response;
|
|
19891
|
+
}
|
|
19892
|
+
|
|
19893
|
+
exports.Headers = Headers;
|
|
19894
|
+
exports.Request = Request;
|
|
19895
|
+
exports.Response = Response;
|
|
19896
|
+
exports.fetch = fetch;
|
|
19897
|
+
|
|
19898
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
19899
|
+
|
|
19900
|
+
return exports;
|
|
19901
|
+
|
|
19902
|
+
})({});
|
|
19903
|
+
})(__self__);
|
|
19904
|
+
__self__.fetch.ponyfill = true;
|
|
19905
|
+
// Remove "polyfill" property added by whatwg-fetch
|
|
19906
|
+
delete __self__.fetch.polyfill;
|
|
19907
|
+
// Choose between native implementation (global) or custom implementation (__self__)
|
|
19908
|
+
// var ctx = global.fetch ? global : __self__;
|
|
19909
|
+
var ctx = __self__; // this line disable service worker support temporarily
|
|
19910
|
+
exports = ctx.fetch // To enable: import fetch from 'cross-fetch'
|
|
19911
|
+
exports["default"] = ctx.fetch // For TypeScript consumers without esModuleInterop.
|
|
19912
|
+
exports.fetch = ctx.fetch // To enable: import {fetch} from 'cross-fetch'
|
|
19913
|
+
exports.Headers = ctx.Headers
|
|
19914
|
+
exports.Request = ctx.Request
|
|
19915
|
+
exports.Response = ctx.Response
|
|
19916
|
+
module.exports = exports
|
|
19917
|
+
|
|
19918
|
+
|
|
19355
19919
|
/***/ }),
|
|
19356
19920
|
|
|
19357
19921
|
/***/ "../../common/temp/node_modules/.pnpm/deep-assign@2.0.0/node_modules/deep-assign/index.js":
|
|
@@ -21247,8 +21811,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21247
21811
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21248
21812
|
/* harmony export */ "default": () => (/* binding */ Browser)
|
|
21249
21813
|
/* harmony export */ });
|
|
21250
|
-
/* 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.
|
|
21251
|
-
/* 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.
|
|
21814
|
+
/* 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");
|
|
21815
|
+
/* 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");
|
|
21252
21816
|
|
|
21253
21817
|
|
|
21254
21818
|
|
|
@@ -21671,235 +22235,6 @@ Browser.type = 'languageDetector';
|
|
|
21671
22235
|
|
|
21672
22236
|
|
|
21673
22237
|
|
|
21674
|
-
/***/ }),
|
|
21675
|
-
|
|
21676
|
-
/***/ "../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js":
|
|
21677
|
-
/*!*************************************************************************************************************************************!*\
|
|
21678
|
-
!*** ../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js ***!
|
|
21679
|
-
\*************************************************************************************************************************************/
|
|
21680
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
21681
|
-
|
|
21682
|
-
"use strict";
|
|
21683
|
-
__webpack_require__.r(__webpack_exports__);
|
|
21684
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21685
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
21686
|
-
/* harmony export */ });
|
|
21687
|
-
/* 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.6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
21688
|
-
/* 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.6/node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
21689
|
-
/* 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.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
21690
|
-
/* 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.6/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
21691
|
-
|
|
21692
|
-
|
|
21693
|
-
|
|
21694
|
-
|
|
21695
|
-
|
|
21696
|
-
var arr = [];
|
|
21697
|
-
var each = arr.forEach;
|
|
21698
|
-
var slice = arr.slice;
|
|
21699
|
-
function defaults(obj) {
|
|
21700
|
-
each.call(slice.call(arguments, 1), function (source) {
|
|
21701
|
-
if (source) {
|
|
21702
|
-
for (var prop in source) {
|
|
21703
|
-
if (obj[prop] === undefined) obj[prop] = source[prop];
|
|
21704
|
-
}
|
|
21705
|
-
}
|
|
21706
|
-
});
|
|
21707
|
-
return obj;
|
|
21708
|
-
}
|
|
21709
|
-
|
|
21710
|
-
function addQueryString(url, params) {
|
|
21711
|
-
if (params && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(params) === 'object') {
|
|
21712
|
-
var queryString = '',
|
|
21713
|
-
e = encodeURIComponent; // Must encode data
|
|
21714
|
-
|
|
21715
|
-
for (var paramName in params) {
|
|
21716
|
-
queryString += '&' + e(paramName) + '=' + e(params[paramName]);
|
|
21717
|
-
}
|
|
21718
|
-
|
|
21719
|
-
if (!queryString) {
|
|
21720
|
-
return url;
|
|
21721
|
-
}
|
|
21722
|
-
|
|
21723
|
-
url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
|
|
21724
|
-
}
|
|
21725
|
-
|
|
21726
|
-
return url;
|
|
21727
|
-
} // https://gist.github.com/Xeoncross/7663273
|
|
21728
|
-
|
|
21729
|
-
|
|
21730
|
-
function ajax(url, options, callback, data, cache) {
|
|
21731
|
-
if (data && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(data) === 'object') {
|
|
21732
|
-
if (!cache) {
|
|
21733
|
-
data['_t'] = new Date();
|
|
21734
|
-
} // URL encoded form data must be in querystring format
|
|
21735
|
-
|
|
21736
|
-
|
|
21737
|
-
data = addQueryString('', data).slice(1);
|
|
21738
|
-
}
|
|
21739
|
-
|
|
21740
|
-
if (options.queryStringParams) {
|
|
21741
|
-
url = addQueryString(url, options.queryStringParams);
|
|
21742
|
-
}
|
|
21743
|
-
|
|
21744
|
-
try {
|
|
21745
|
-
var x;
|
|
21746
|
-
|
|
21747
|
-
if (XMLHttpRequest) {
|
|
21748
|
-
x = new XMLHttpRequest();
|
|
21749
|
-
} else {
|
|
21750
|
-
x = new ActiveXObject('MSXML2.XMLHTTP.3.0');
|
|
21751
|
-
}
|
|
21752
|
-
|
|
21753
|
-
x.open(data ? 'POST' : 'GET', url, 1);
|
|
21754
|
-
|
|
21755
|
-
if (!options.crossDomain) {
|
|
21756
|
-
x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
|
21757
|
-
}
|
|
21758
|
-
|
|
21759
|
-
x.withCredentials = !!options.withCredentials;
|
|
21760
|
-
|
|
21761
|
-
if (data) {
|
|
21762
|
-
x.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
|
21763
|
-
}
|
|
21764
|
-
|
|
21765
|
-
if (x.overrideMimeType) {
|
|
21766
|
-
x.overrideMimeType("application/json");
|
|
21767
|
-
}
|
|
21768
|
-
|
|
21769
|
-
var h = options.customHeaders;
|
|
21770
|
-
h = typeof h === 'function' ? h() : h;
|
|
21771
|
-
|
|
21772
|
-
if (h) {
|
|
21773
|
-
for (var i in h) {
|
|
21774
|
-
x.setRequestHeader(i, h[i]);
|
|
21775
|
-
}
|
|
21776
|
-
}
|
|
21777
|
-
|
|
21778
|
-
x.onreadystatechange = function () {
|
|
21779
|
-
x.readyState > 3 && callback && callback(x.responseText, x);
|
|
21780
|
-
};
|
|
21781
|
-
|
|
21782
|
-
x.send(data);
|
|
21783
|
-
} catch (e) {
|
|
21784
|
-
console && console.log(e);
|
|
21785
|
-
}
|
|
21786
|
-
}
|
|
21787
|
-
|
|
21788
|
-
function getDefaults() {
|
|
21789
|
-
return {
|
|
21790
|
-
loadPath: '/locales/{{lng}}/{{ns}}.json',
|
|
21791
|
-
addPath: '/locales/add/{{lng}}/{{ns}}',
|
|
21792
|
-
allowMultiLoading: false,
|
|
21793
|
-
parse: JSON.parse,
|
|
21794
|
-
parsePayload: function parsePayload(namespace, key, fallbackValue) {
|
|
21795
|
-
return (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, key, fallbackValue || '');
|
|
21796
|
-
},
|
|
21797
|
-
crossDomain: false,
|
|
21798
|
-
ajax: ajax
|
|
21799
|
-
};
|
|
21800
|
-
}
|
|
21801
|
-
|
|
21802
|
-
var Backend =
|
|
21803
|
-
/*#__PURE__*/
|
|
21804
|
-
function () {
|
|
21805
|
-
function Backend(services) {
|
|
21806
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
21807
|
-
|
|
21808
|
-
(0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, Backend);
|
|
21809
|
-
|
|
21810
|
-
this.init(services, options);
|
|
21811
|
-
this.type = 'backend';
|
|
21812
|
-
}
|
|
21813
|
-
|
|
21814
|
-
(0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(Backend, [{
|
|
21815
|
-
key: "init",
|
|
21816
|
-
value: function init(services) {
|
|
21817
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
21818
|
-
this.services = services;
|
|
21819
|
-
this.options = defaults(options, this.options || {}, getDefaults());
|
|
21820
|
-
}
|
|
21821
|
-
}, {
|
|
21822
|
-
key: "readMulti",
|
|
21823
|
-
value: function readMulti(languages, namespaces, callback) {
|
|
21824
|
-
var loadPath = this.options.loadPath;
|
|
21825
|
-
|
|
21826
|
-
if (typeof this.options.loadPath === 'function') {
|
|
21827
|
-
loadPath = this.options.loadPath(languages, namespaces);
|
|
21828
|
-
}
|
|
21829
|
-
|
|
21830
|
-
var url = this.services.interpolator.interpolate(loadPath, {
|
|
21831
|
-
lng: languages.join('+'),
|
|
21832
|
-
ns: namespaces.join('+')
|
|
21833
|
-
});
|
|
21834
|
-
this.loadUrl(url, callback);
|
|
21835
|
-
}
|
|
21836
|
-
}, {
|
|
21837
|
-
key: "read",
|
|
21838
|
-
value: function read(language, namespace, callback) {
|
|
21839
|
-
var loadPath = this.options.loadPath;
|
|
21840
|
-
|
|
21841
|
-
if (typeof this.options.loadPath === 'function') {
|
|
21842
|
-
loadPath = this.options.loadPath([language], [namespace]);
|
|
21843
|
-
}
|
|
21844
|
-
|
|
21845
|
-
var url = this.services.interpolator.interpolate(loadPath, {
|
|
21846
|
-
lng: language,
|
|
21847
|
-
ns: namespace
|
|
21848
|
-
});
|
|
21849
|
-
this.loadUrl(url, callback);
|
|
21850
|
-
}
|
|
21851
|
-
}, {
|
|
21852
|
-
key: "loadUrl",
|
|
21853
|
-
value: function loadUrl(url, callback) {
|
|
21854
|
-
var _this = this;
|
|
21855
|
-
|
|
21856
|
-
this.options.ajax(url, this.options, function (data, xhr) {
|
|
21857
|
-
if (xhr.status >= 500 && xhr.status < 600) return callback('failed loading ' + url, true
|
|
21858
|
-
/* retry */
|
|
21859
|
-
);
|
|
21860
|
-
if (xhr.status >= 400 && xhr.status < 500) return callback('failed loading ' + url, false
|
|
21861
|
-
/* no retry */
|
|
21862
|
-
);
|
|
21863
|
-
var ret, err;
|
|
21864
|
-
|
|
21865
|
-
try {
|
|
21866
|
-
ret = _this.options.parse(data, url);
|
|
21867
|
-
} catch (e) {
|
|
21868
|
-
err = 'failed parsing ' + url + ' to json';
|
|
21869
|
-
}
|
|
21870
|
-
|
|
21871
|
-
if (err) return callback(err, false);
|
|
21872
|
-
callback(null, ret);
|
|
21873
|
-
});
|
|
21874
|
-
}
|
|
21875
|
-
}, {
|
|
21876
|
-
key: "create",
|
|
21877
|
-
value: function create(languages, namespace, key, fallbackValue) {
|
|
21878
|
-
var _this2 = this;
|
|
21879
|
-
|
|
21880
|
-
if (typeof languages === 'string') languages = [languages];
|
|
21881
|
-
var payload = this.options.parsePayload(namespace, key, fallbackValue);
|
|
21882
|
-
languages.forEach(function (lng) {
|
|
21883
|
-
var url = _this2.services.interpolator.interpolate(_this2.options.addPath, {
|
|
21884
|
-
lng: lng,
|
|
21885
|
-
ns: namespace
|
|
21886
|
-
});
|
|
21887
|
-
|
|
21888
|
-
_this2.options.ajax(url, _this2.options, function (data, xhr) {//const statusCode = xhr.status.toString();
|
|
21889
|
-
// TODO: if statusCode === 4xx do log
|
|
21890
|
-
}, payload);
|
|
21891
|
-
});
|
|
21892
|
-
}
|
|
21893
|
-
}]);
|
|
21894
|
-
|
|
21895
|
-
return Backend;
|
|
21896
|
-
}();
|
|
21897
|
-
|
|
21898
|
-
Backend.type = 'backend';
|
|
21899
|
-
|
|
21900
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
|
|
21901
|
-
|
|
21902
|
-
|
|
21903
22238
|
/***/ }),
|
|
21904
22239
|
|
|
21905
22240
|
/***/ "../../common/temp/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js":
|
|
@@ -62115,20 +62450,20 @@ var AmbientOcclusion;
|
|
|
62115
62450
|
static fromJSON(json) { return undefined !== json ? new Settings(json) : this.defaults; }
|
|
62116
62451
|
toJSON() {
|
|
62117
62452
|
return {
|
|
62118
|
-
bias: this.bias,
|
|
62119
|
-
zLengthCap: this.zLengthCap,
|
|
62120
|
-
maxDistance: this.maxDistance,
|
|
62121
|
-
intensity: this.intensity,
|
|
62122
|
-
texelStepSize: this.texelStepSize,
|
|
62123
|
-
blurDelta: this.blurDelta,
|
|
62124
|
-
blurSigma: this.blurSigma,
|
|
62125
|
-
blurTexelStepSize: this.blurTexelStepSize,
|
|
62453
|
+
bias: this.bias !== Settings._defaultBias ? this.bias : undefined,
|
|
62454
|
+
zLengthCap: this.zLengthCap !== Settings._defaultZLengthCap ? this.zLengthCap : undefined,
|
|
62455
|
+
maxDistance: this.maxDistance !== Settings._defaultMaxDistance ? this.maxDistance : undefined,
|
|
62456
|
+
intensity: this.intensity !== Settings._defaultIntensity ? this.intensity : undefined,
|
|
62457
|
+
texelStepSize: this.texelStepSize !== Settings._defaultTexelStepSize ? this.texelStepSize : undefined,
|
|
62458
|
+
blurDelta: this.blurDelta !== Settings._defaultBlurDelta ? this.blurDelta : undefined,
|
|
62459
|
+
blurSigma: this.blurSigma !== Settings._defaultBlurSigma ? this.blurSigma : undefined,
|
|
62460
|
+
blurTexelStepSize: this.blurTexelStepSize !== Settings._defaultBlurTexelStepSize ? this.blurTexelStepSize : undefined,
|
|
62126
62461
|
};
|
|
62127
62462
|
}
|
|
62128
62463
|
}
|
|
62129
62464
|
Settings._defaultBias = 0.25;
|
|
62130
62465
|
Settings._defaultZLengthCap = 0.0025;
|
|
62131
|
-
Settings._defaultMaxDistance =
|
|
62466
|
+
Settings._defaultMaxDistance = 10000.0;
|
|
62132
62467
|
Settings._defaultIntensity = 1.0;
|
|
62133
62468
|
Settings._defaultTexelStepSize = 1;
|
|
62134
62469
|
Settings._defaultBlurDelta = 1.0;
|
|
@@ -68933,13 +69268,21 @@ var Gradient;
|
|
|
68933
69268
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== imageBuffer);
|
|
68934
69269
|
return imageBuffer;
|
|
68935
69270
|
}
|
|
68936
|
-
/**
|
|
69271
|
+
/** Produces a bitmap image from this gradient.
|
|
69272
|
+
* @param width Width of the image
|
|
69273
|
+
* @param height Height of the image
|
|
69274
|
+
* @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.
|
|
69275
|
+
* @see [[produceImage]] for more customization.
|
|
69276
|
+
*/
|
|
68937
69277
|
getImage(width, height) {
|
|
68938
|
-
if (this.mode === Mode.Thematic)
|
|
68939
|
-
|
|
68940
|
-
|
|
68941
|
-
|
|
68942
|
-
|
|
69278
|
+
if (this.mode === Mode.Thematic)
|
|
69279
|
+
width = 1;
|
|
69280
|
+
return this.produceImage({ width, height, includeThematicMargin: true });
|
|
69281
|
+
}
|
|
69282
|
+
/** Produces a bitmap image from this gradient. */
|
|
69283
|
+
produceImage(args) {
|
|
69284
|
+
var _a;
|
|
69285
|
+
const { width, height, includeThematicMargin } = { ...args };
|
|
68943
69286
|
const thisAngle = (this.angle === undefined) ? 0 : this.angle.radians;
|
|
68944
69287
|
const cosA = Math.cos(thisAngle);
|
|
68945
69288
|
const sinA = Math.sin(thisAngle);
|
|
@@ -69045,14 +69388,11 @@ var Gradient;
|
|
|
69045
69388
|
break;
|
|
69046
69389
|
}
|
|
69047
69390
|
case Mode.Thematic: {
|
|
69048
|
-
|
|
69049
|
-
if (settings === undefined) {
|
|
69050
|
-
settings = _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.defaults;
|
|
69051
|
-
}
|
|
69391
|
+
const settings = (_a = this.thematicSettings) !== null && _a !== void 0 ? _a : _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.defaults;
|
|
69052
69392
|
for (let j = 0; j < height; j++) {
|
|
69053
69393
|
let f = 1 - j / height;
|
|
69054
69394
|
let color;
|
|
69055
|
-
if (f < _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.margin || f > _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.contentMax) {
|
|
69395
|
+
if (includeThematicMargin && (f < _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.margin || f > _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.contentMax)) {
|
|
69056
69396
|
color = settings.marginColor;
|
|
69057
69397
|
}
|
|
69058
69398
|
else {
|
|
@@ -86797,6 +87137,7 @@ class IpcWebSocketBackend extends IpcWebSocket {
|
|
|
86797
87137
|
constructor() {
|
|
86798
87138
|
super();
|
|
86799
87139
|
this._handlers = new Map();
|
|
87140
|
+
this._processingQueue = [];
|
|
86800
87141
|
IpcWebSocket.receivers.add(async (e, m) => this.dispatch(e, m));
|
|
86801
87142
|
}
|
|
86802
87143
|
send(channel, ...data) {
|
|
@@ -86810,22 +87151,35 @@ class IpcWebSocketBackend extends IpcWebSocket {
|
|
|
86810
87151
|
};
|
|
86811
87152
|
}
|
|
86812
87153
|
async dispatch(_evt, message) {
|
|
86813
|
-
if (message.type !== IpcWebSocketMessageType.Invoke
|
|
87154
|
+
if (message.type !== IpcWebSocketMessageType.Invoke)
|
|
86814
87155
|
return;
|
|
86815
|
-
|
|
86816
|
-
|
|
87156
|
+
this._processingQueue.push(message);
|
|
87157
|
+
await this.processMessages();
|
|
87158
|
+
}
|
|
87159
|
+
async processMessages() {
|
|
87160
|
+
if (this._processing || !this._processingQueue.length) {
|
|
86817
87161
|
return;
|
|
86818
|
-
|
|
86819
|
-
|
|
86820
|
-
|
|
86821
|
-
|
|
86822
|
-
|
|
86823
|
-
|
|
86824
|
-
|
|
86825
|
-
|
|
86826
|
-
|
|
86827
|
-
|
|
86828
|
-
|
|
87162
|
+
}
|
|
87163
|
+
const message = this._processingQueue.shift();
|
|
87164
|
+
if (message && message.method) {
|
|
87165
|
+
const handler = this._handlers.get(message.channel);
|
|
87166
|
+
if (handler) {
|
|
87167
|
+
this._processing = message;
|
|
87168
|
+
let args = message.data;
|
|
87169
|
+
if (typeof (args) === "undefined")
|
|
87170
|
+
args = [];
|
|
87171
|
+
const response = await handler({}, message.method, ...args);
|
|
87172
|
+
IpcWebSocket.transport.send({
|
|
87173
|
+
type: IpcWebSocketMessageType.Response,
|
|
87174
|
+
channel: message.channel,
|
|
87175
|
+
response: message.request,
|
|
87176
|
+
data: response,
|
|
87177
|
+
sequence: -1,
|
|
87178
|
+
});
|
|
87179
|
+
this._processing = undefined;
|
|
87180
|
+
}
|
|
87181
|
+
}
|
|
87182
|
+
await this.processMessages();
|
|
86829
87183
|
}
|
|
86830
87184
|
}
|
|
86831
87185
|
|
|
@@ -87120,6 +87474,7 @@ class IModelReadRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_2__.
|
|
|
87120
87474
|
===========================================================================================*/
|
|
87121
87475
|
async getConnectionProps(_iModelToken) { return this.forward(arguments); }
|
|
87122
87476
|
async queryRows(_iModelToken, _request) { return this.forward(arguments); }
|
|
87477
|
+
async querySubCategories(_iModelToken, _categoryIds) { return this.forward(arguments); }
|
|
87123
87478
|
async queryBlob(_iModelToken, _request) { return this.forward(arguments); }
|
|
87124
87479
|
async getModelProps(_iModelToken, _modelIds) { return this.forward(arguments); }
|
|
87125
87480
|
async queryModelRanges(_iModelToken, _modelIds) { return this.forward(arguments); }
|
|
@@ -87157,6 +87512,9 @@ IModelReadRpcInterface.interfaceVersion = "3.2.0";
|
|
|
87157
87512
|
__decorate([
|
|
87158
87513
|
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
|
|
87159
87514
|
], IModelReadRpcInterface.prototype, "getConnectionProps", null);
|
|
87515
|
+
__decorate([
|
|
87516
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
|
|
87517
|
+
], IModelReadRpcInterface.prototype, "querySubCategories", null);
|
|
87160
87518
|
__decorate([
|
|
87161
87519
|
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
|
|
87162
87520
|
], IModelReadRpcInterface.prototype, "getModelProps", null);
|
|
@@ -103475,6 +103833,15 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
103475
103833
|
};
|
|
103476
103834
|
return new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ECSqlReader(executor, ecsql, params, config);
|
|
103477
103835
|
}
|
|
103836
|
+
/**
|
|
103837
|
+
* queries the BisCore.SubCategory table for the entries that are children of the passed categoryIds
|
|
103838
|
+
* @param compressedCategoryIds compressed category Ids
|
|
103839
|
+
* @returns array of SubCategoryResultRow
|
|
103840
|
+
* @internal
|
|
103841
|
+
*/
|
|
103842
|
+
async querySubCategories(compressedCategoryIds) {
|
|
103843
|
+
return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).querySubCategories(this.getRpcProps(), compressedCategoryIds);
|
|
103844
|
+
}
|
|
103478
103845
|
/** Execute a query and stream its results
|
|
103479
103846
|
* The result of the query is async iterator over the rows. The iterator will get next page automatically once rows in current page has been read.
|
|
103480
103847
|
* [ECSQL row]($docs/learning/ECSQLRowFormat).
|
|
@@ -106669,29 +107036,73 @@ class PerModelCategoryVisibilityOverrides extends _itwin_core_bentley__WEBPACK_I
|
|
|
106669
107036
|
else
|
|
106670
107037
|
return PerModelCategoryVisibility.Override.None;
|
|
106671
107038
|
}
|
|
106672
|
-
|
|
107039
|
+
/**
|
|
107040
|
+
* set the overrides for multiple perModelCategoryVisibility props, loading categoryIds from the iModel if necessary.
|
|
107041
|
+
* @see [[PerModelCategoryVisibility]]
|
|
107042
|
+
* @param perModelCategoryVisibility array of model category visibility overrides @see [[PerModelCategoryVisibility.Props]]
|
|
107043
|
+
* @param iModel Optional param iModel. If no iModel is provided, then the iModel associated with the viewport (used to construct this class) is used.
|
|
107044
|
+
* This optional iModel param is useful for apps which may show multiple iModels at once. Passing in an iModel ensures that the subcategories cache for the provided iModel
|
|
107045
|
+
* is populated as opposed to the iModel associated with the viewport which may or may not be an empty iModel.
|
|
107046
|
+
* @returns a promise that resolves once the overrides have been applied.
|
|
107047
|
+
*/
|
|
107048
|
+
async setOverrides(perModelCategoryVisibility, iModel) {
|
|
107049
|
+
let anyChanged = false;
|
|
107050
|
+
const catIdsToLoad = [];
|
|
107051
|
+
const iModelToUse = iModel ? iModel : this._vp.iModel;
|
|
107052
|
+
for (const override of perModelCategoryVisibility) {
|
|
107053
|
+
const modelId = override.modelId;
|
|
107054
|
+
// The caller may pass a single categoryId as a string, if we don't convert this to an array we will iterate
|
|
107055
|
+
// over each individual character of that string, which is not the desired behavior.
|
|
107056
|
+
const categoryIds = typeof override.categoryIds === "string" ? [override.categoryIds] : override.categoryIds;
|
|
107057
|
+
const visOverride = override.visOverride;
|
|
107058
|
+
for (const categoryId of categoryIds) {
|
|
107059
|
+
if (this.findAndUpdateOverrideInArray(modelId, categoryId, visOverride)) {
|
|
107060
|
+
anyChanged = true;
|
|
107061
|
+
if (PerModelCategoryVisibility.Override.None !== visOverride) {
|
|
107062
|
+
catIdsToLoad.push(categoryId);
|
|
107063
|
+
}
|
|
107064
|
+
}
|
|
107065
|
+
}
|
|
107066
|
+
}
|
|
107067
|
+
if (anyChanged) {
|
|
107068
|
+
this._vp.setViewedCategoriesPerModelChanged();
|
|
107069
|
+
if (catIdsToLoad.length !== 0) {
|
|
107070
|
+
this._vp.subcategories.push(iModelToUse.subcategories, catIdsToLoad, () => this._vp.setViewedCategoriesPerModelChanged());
|
|
107071
|
+
}
|
|
107072
|
+
}
|
|
107073
|
+
return;
|
|
107074
|
+
}
|
|
107075
|
+
/** Find and update the override in the array of overrides. If override not found, adds it to the array.
|
|
107076
|
+
* If the array was changed, returns true. */
|
|
107077
|
+
findAndUpdateOverrideInArray(modelId, categoryId, override) {
|
|
106673
107078
|
const ovr = this._scratch;
|
|
107079
|
+
ovr.reset(modelId, categoryId, false);
|
|
107080
|
+
let changed = false;
|
|
107081
|
+
const index = this.indexOf(ovr);
|
|
107082
|
+
if (-1 === index) {
|
|
107083
|
+
if (PerModelCategoryVisibility.Override.None !== override) {
|
|
107084
|
+
this.insert(new PerModelCategoryVisibilityOverride(modelId, categoryId, PerModelCategoryVisibility.Override.Show === override));
|
|
107085
|
+
changed = true;
|
|
107086
|
+
}
|
|
107087
|
+
}
|
|
107088
|
+
else {
|
|
107089
|
+
if (PerModelCategoryVisibility.Override.None === override) {
|
|
107090
|
+
this._array.splice(index, 1);
|
|
107091
|
+
changed = true;
|
|
107092
|
+
}
|
|
107093
|
+
else if (this._array[index].visible !== (PerModelCategoryVisibility.Override.Show === override)) {
|
|
107094
|
+
this._array[index].visible = (PerModelCategoryVisibility.Override.Show === override);
|
|
107095
|
+
changed = true;
|
|
107096
|
+
}
|
|
107097
|
+
}
|
|
107098
|
+
return changed;
|
|
107099
|
+
}
|
|
107100
|
+
setOverride(modelIds, categoryIds, override) {
|
|
106674
107101
|
let changed = false;
|
|
106675
107102
|
for (const modelId of _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.iterable(modelIds)) {
|
|
106676
107103
|
for (const categoryId of _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.iterable(categoryIds)) {
|
|
106677
|
-
|
|
106678
|
-
|
|
106679
|
-
if (-1 === index) {
|
|
106680
|
-
if (PerModelCategoryVisibility.Override.None !== override) {
|
|
106681
|
-
this.insert(new PerModelCategoryVisibilityOverride(modelId, categoryId, PerModelCategoryVisibility.Override.Show === override));
|
|
106682
|
-
changed = true;
|
|
106683
|
-
}
|
|
106684
|
-
}
|
|
106685
|
-
else {
|
|
106686
|
-
if (PerModelCategoryVisibility.Override.None === override) {
|
|
106687
|
-
this._array.splice(index, 1);
|
|
106688
|
-
changed = true;
|
|
106689
|
-
}
|
|
106690
|
-
else if (this._array[index].visible !== (PerModelCategoryVisibility.Override.Show === override)) {
|
|
106691
|
-
this._array[index].visible = (PerModelCategoryVisibility.Override.Show === override);
|
|
106692
|
-
changed = true;
|
|
106693
|
-
}
|
|
106694
|
-
}
|
|
107104
|
+
if (this.findAndUpdateOverrideInArray(modelId, categoryId, override))
|
|
107105
|
+
changed = true;
|
|
106695
107106
|
}
|
|
106696
107107
|
}
|
|
106697
107108
|
if (changed) {
|
|
@@ -109311,29 +109722,6 @@ class SubCategoriesCache {
|
|
|
109311
109722
|
cancel: () => request.cancel(),
|
|
109312
109723
|
};
|
|
109313
109724
|
}
|
|
109314
|
-
/**
|
|
109315
|
-
* Populates the notLoadedCategoryIds property of the HydrateViewStateRequestProps.
|
|
109316
|
-
* notLoadedCategoryIds is a subset of categoryIds, filtering out any ids which already have an entry in the cache.
|
|
109317
|
-
*/
|
|
109318
|
-
preload(options, categoryIds) {
|
|
109319
|
-
const missing = this.getMissing(categoryIds);
|
|
109320
|
-
if (undefined === missing)
|
|
109321
|
-
return;
|
|
109322
|
-
this._missingAtTimeOfPreload = missing;
|
|
109323
|
-
options.notLoadedCategoryIds = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.sortAndCompress(missing);
|
|
109324
|
-
}
|
|
109325
|
-
/**
|
|
109326
|
-
* Populates the SubCategoriesCache using the categoryIdsResult of the HydrateViewStateResponseProps
|
|
109327
|
-
*/
|
|
109328
|
-
postload(options) {
|
|
109329
|
-
if (options.categoryIdsResult === undefined)
|
|
109330
|
-
return;
|
|
109331
|
-
// missingAtTimeOfPreload shouldn't be undefined if options.categoryIdsResult is defined... but just to be safe we'll check
|
|
109332
|
-
const missing = this._missingAtTimeOfPreload === undefined ? new Set() : this._missingAtTimeOfPreload;
|
|
109333
|
-
this.processResults(options.categoryIdsResult, missing);
|
|
109334
|
-
// clear missing
|
|
109335
|
-
this._missingAtTimeOfPreload = undefined;
|
|
109336
|
-
}
|
|
109337
109725
|
/** Given categoryIds, return which of these are not cached. */
|
|
109338
109726
|
getMissing(categoryIds) {
|
|
109339
109727
|
let missing;
|
|
@@ -109415,38 +109803,38 @@ class SubCategoriesCache {
|
|
|
109415
109803
|
(function (SubCategoriesCache) {
|
|
109416
109804
|
class Request {
|
|
109417
109805
|
constructor(categoryIds, imodel, maxCategoriesPerQuery = 200) {
|
|
109418
|
-
this.
|
|
109806
|
+
this._categoryIds = [];
|
|
109419
109807
|
this._result = [];
|
|
109420
109808
|
this._canceled = false;
|
|
109421
|
-
this.
|
|
109809
|
+
this._curCategoryIdsIndex = 0;
|
|
109422
109810
|
this._imodel = imodel;
|
|
109423
109811
|
const catIds = [...categoryIds];
|
|
109812
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.OrderedId64Iterable.sortArray(catIds); // sort categories, so that given the same set of categoryIds we will always create the same batches.
|
|
109424
109813
|
while (catIds.length !== 0) {
|
|
109425
109814
|
const end = (catIds.length > maxCategoriesPerQuery) ? maxCategoriesPerQuery : catIds.length;
|
|
109426
|
-
const
|
|
109427
|
-
this.
|
|
109815
|
+
const compressedIds = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.compressArray(catIds.splice(0, end));
|
|
109816
|
+
this._categoryIds.push(compressedIds);
|
|
109428
109817
|
}
|
|
109429
109818
|
}
|
|
109430
109819
|
get wasCanceled() { return this._canceled || this._imodel.isClosed; }
|
|
109431
109820
|
cancel() { this._canceled = true; }
|
|
109432
109821
|
async dispatch() {
|
|
109433
|
-
if (this.wasCanceled || this.
|
|
109822
|
+
if (this.wasCanceled || this._curCategoryIdsIndex >= this._categoryIds.length) // handle case of empty category Id set...
|
|
109434
109823
|
return undefined;
|
|
109435
109824
|
try {
|
|
109436
|
-
const
|
|
109437
|
-
|
|
109438
|
-
|
|
109439
|
-
|
|
109440
|
-
|
|
109441
|
-
}
|
|
109825
|
+
const catIds = this._categoryIds[this._curCategoryIdsIndex];
|
|
109826
|
+
const result = await this._imodel.querySubCategories(catIds);
|
|
109827
|
+
this._result.push(...result);
|
|
109828
|
+
if (this.wasCanceled)
|
|
109829
|
+
return undefined;
|
|
109442
109830
|
}
|
|
109443
109831
|
catch {
|
|
109444
109832
|
// ###TODO: detect cases in which retry is warranted
|
|
109445
109833
|
// Note that currently, if we succeed in obtaining some pages of results and fail to retrieve another page, we will end up processing the
|
|
109446
109834
|
// incomplete results. Since we're not retrying, that's the best we can do.
|
|
109447
109835
|
}
|
|
109448
|
-
// Finished with current
|
|
109449
|
-
if (++this.
|
|
109836
|
+
// Finished with current batch of categoryIds. Dispatch the next batch if one exists.
|
|
109837
|
+
if (++this._curCategoryIdsIndex < this._categoryIds.length) {
|
|
109450
109838
|
if (this.wasCanceled)
|
|
109451
109839
|
return undefined;
|
|
109452
109840
|
else
|
|
@@ -109521,7 +109909,7 @@ class SubCategoriesCache {
|
|
|
109521
109909
|
this._request.promise.then((completed) => {
|
|
109522
109910
|
if (this._disposed)
|
|
109523
109911
|
return;
|
|
109524
|
-
// Invoke all the functions which were awaiting this set of
|
|
109912
|
+
// Invoke all the functions which were awaiting this set of IModelConnection.Categories.
|
|
109525
109913
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== this._current);
|
|
109526
109914
|
if (completed)
|
|
109527
109915
|
for (const func of this._current.funcs)
|
|
@@ -112094,7 +112482,6 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
112094
112482
|
const acsId = this.getAuxiliaryCoordinateSystemId();
|
|
112095
112483
|
if (_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.isValid(acsId))
|
|
112096
112484
|
hydrateRequest.acsId = acsId;
|
|
112097
|
-
this.iModel.subcategories.preload(hydrateRequest, this.categorySelector.categories);
|
|
112098
112485
|
}
|
|
112099
112486
|
/** Asynchronously load any required data for this ViewState from the backend.
|
|
112100
112487
|
* FINAL, No subclass should override load. If additional load behavior is needed, see preload and postload.
|
|
@@ -112109,15 +112496,16 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
112109
112496
|
const hydrateRequest = {};
|
|
112110
112497
|
this.preload(hydrateRequest);
|
|
112111
112498
|
const promises = [
|
|
112112
|
-
_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.IModelReadRpcInterface.getClientForRouting(this.iModel.routingContext.token).hydrateViewState(this.iModel.getRpcProps(), hydrateRequest)
|
|
112499
|
+
_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.IModelReadRpcInterface.getClientForRouting(this.iModel.routingContext.token).hydrateViewState(this.iModel.getRpcProps(), hydrateRequest).
|
|
112500
|
+
then(async (hydrateResponse) => this.postload(hydrateResponse)),
|
|
112113
112501
|
this.displayStyle.load(),
|
|
112114
112502
|
];
|
|
112115
|
-
const
|
|
112116
|
-
|
|
112117
|
-
|
|
112503
|
+
const subcategories = this.iModel.subcategories.load(this.categorySelector.categories);
|
|
112504
|
+
if (undefined !== subcategories)
|
|
112505
|
+
promises.push(subcategories.promise.then((_) => { }));
|
|
112506
|
+
await Promise.all(promises);
|
|
112118
112507
|
}
|
|
112119
112508
|
async postload(hydrateResponse) {
|
|
112120
|
-
this.iModel.subcategories.postload(hydrateResponse);
|
|
112121
112509
|
if (hydrateResponse.acsElementProps)
|
|
112122
112510
|
this._auxCoordSystem = _AuxCoordSys__WEBPACK_IMPORTED_MODULE_3__.AuxCoordSystemState.fromProps(hydrateResponse.acsElementProps, this.iModel);
|
|
112123
112511
|
}
|
|
@@ -143485,7 +143873,15 @@ class System extends _RenderSystem__WEBPACK_IMPORTED_MODULE_7__.RenderSystem {
|
|
|
143485
143873
|
}
|
|
143486
143874
|
/** Attempt to create a texture using gradient symbology. */
|
|
143487
143875
|
getGradientTexture(symb, iModel) {
|
|
143488
|
-
|
|
143876
|
+
let width = 0x100;
|
|
143877
|
+
let height = 0x100;
|
|
143878
|
+
if (symb.mode === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.Gradient.Mode.Thematic) {
|
|
143879
|
+
// Pixels in each row are identical, no point in having width > 1.
|
|
143880
|
+
width = 1;
|
|
143881
|
+
// We want maximum height to minimize bleeding of margin color.
|
|
143882
|
+
height = this.maxTextureSize;
|
|
143883
|
+
}
|
|
143884
|
+
const source = symb.produceImage({ width, height, includeThematicMargin: true });
|
|
143489
143885
|
return this.createTexture({
|
|
143490
143886
|
image: {
|
|
143491
143887
|
source,
|
|
@@ -147767,7 +148163,7 @@ const computeAmbientOcclusion = `
|
|
|
147767
148163
|
float bias = u_hbaoSettings.x; // Represents an angle in radians. If the dot product between the normal of the sample and the vector to the camera is less than this value, sampling stops in the current direction. This is used to remove shadows from near planar edges.
|
|
147768
148164
|
float zLengthCap = u_hbaoSettings.y; // If the distance in linear Z from the current sample to first sample is greater than this value, sampling stops in the current direction.
|
|
147769
148165
|
float intensity = u_hbaoSettings.z; // Raise the final occlusion to the power of this value. Larger values make the ambient shadows darker.
|
|
147770
|
-
float texelStepSize = u_hbaoSettings.w; // Indicates the distance to step toward the next texel sample in the current direction.
|
|
148166
|
+
float texelStepSize = clamp(u_hbaoSettings.w * linearDepth, 1.0, u_hbaoSettings.w); // Indicates the distance to step toward the next texel sample in the current direction.
|
|
147771
148167
|
|
|
147772
148168
|
float tOcclusion = 0.0;
|
|
147773
148169
|
|
|
@@ -147812,6 +148208,9 @@ const computeAmbientOcclusion = `
|
|
|
147812
148208
|
tOcclusion += curOcclusion;
|
|
147813
148209
|
}
|
|
147814
148210
|
|
|
148211
|
+
float distanceFadeFactor = kFrustumType_Perspective == u_frustum.z ? 1.0 - pow(clamp(nonLinearDepth / u_maxDistance, 0.0, 1.0), 4.0) : 1.0;
|
|
148212
|
+
tOcclusion *= distanceFadeFactor;
|
|
148213
|
+
|
|
147815
148214
|
tOcclusion /= 4.0;
|
|
147816
148215
|
tOcclusion = 1.0 - clamp(tOcclusion, 0.0, 1.0);
|
|
147817
148216
|
tOcclusion = pow(tOcclusion, intensity);
|
|
@@ -188144,17 +188543,17 @@ class BSplineCurve3dBase extends _curve_CurvePrimitive__WEBPACK_IMPORTED_MODULE_
|
|
|
188144
188543
|
* @returns Returns a CurveLocationDetail structure that holds the details of the close point.
|
|
188145
188544
|
*/
|
|
188146
188545
|
closestPoint(spacePoint, _extend) {
|
|
188546
|
+
// seed at start point -- final point comes with final bezier perpendicular step.
|
|
188147
188547
|
const point = this.fractionToPoint(0);
|
|
188148
188548
|
const result = _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.createCurveFractionPointDistance(this, 0.0, point, point.distance(spacePoint));
|
|
188149
|
-
this.fractionToPoint(1.0, point);
|
|
188150
|
-
result.updateIfCloserCurveFractionPointDistance(this, 1.0, point, spacePoint.distance(point));
|
|
188151
188549
|
let span;
|
|
188152
188550
|
const numSpans = this.numSpan;
|
|
188153
188551
|
for (let i = 0; i < numSpans; i++) {
|
|
188154
188552
|
if (this._bcurve.knots.isIndexOfRealSpan(i)) {
|
|
188155
188553
|
span = this.getSaturatedBezierSpan3dOr3dH(i, true, span);
|
|
188156
188554
|
if (span) {
|
|
188157
|
-
if
|
|
188555
|
+
// umm ... if the bspline is discontinuous, both ends should be tested. Ignore that possibility ...
|
|
188556
|
+
if (span.updateClosestPointByTruePerpendicular(spacePoint, result, false, true)) {
|
|
188158
188557
|
// the detail records the span bezier -- promote it to the parent curve . ..
|
|
188159
188558
|
result.curve = this;
|
|
188160
188559
|
result.fraction = span.fractionToParentFraction(result.fraction);
|
|
@@ -191604,7 +192003,7 @@ class BezierCurve3dH extends _BezierCurveBase__WEBPACK_IMPORTED_MODULE_0__.Bezie
|
|
|
191604
192003
|
* @param detail pre-allocated detail to record (evolving) closest point.
|
|
191605
192004
|
* @returns true if an updated occurred, false if either (a) no perpendicular projections or (b) perpendiculars were not closer.
|
|
191606
192005
|
*/
|
|
191607
|
-
updateClosestPointByTruePerpendicular(spacePoint, detail) {
|
|
192006
|
+
updateClosestPointByTruePerpendicular(spacePoint, detail, testAt0 = false, testAt1 = false) {
|
|
191608
192007
|
let numUpdates = 0;
|
|
191609
192008
|
let roots;
|
|
191610
192009
|
if (this.isUnitWeight()) {
|
|
@@ -191656,8 +192055,17 @@ class BezierCurve3dH extends _BezierCurveBase__WEBPACK_IMPORTED_MODULE_0__.Bezie
|
|
|
191656
192055
|
numUpdates += detail.updateIfCloserCurveFractionPointDistance(this, fraction, xyz, a) ? 1 : 0;
|
|
191657
192056
|
}
|
|
191658
192057
|
}
|
|
192058
|
+
if (testAt0)
|
|
192059
|
+
numUpdates += this.updateDetailAtFraction(detail, 0.0, spacePoint) ? 1 : 0;
|
|
192060
|
+
if (testAt1)
|
|
192061
|
+
numUpdates += this.updateDetailAtFraction(detail, 1.0, spacePoint) ? 1 : 0;
|
|
191659
192062
|
return numUpdates > 0;
|
|
191660
192063
|
}
|
|
192064
|
+
updateDetailAtFraction(detail, fraction, spacePoint) {
|
|
192065
|
+
const xyz = this.fractionToPoint(fraction);
|
|
192066
|
+
const a = xyz.distance(spacePoint);
|
|
192067
|
+
return detail.updateIfCloserCurveFractionPointDistance(this, fraction, xyz, a);
|
|
192068
|
+
}
|
|
191661
192069
|
/** Extend `rangeToExtend`, using candidate extrema at
|
|
191662
192070
|
* * both end points
|
|
191663
192071
|
* * any internal extrema in x,y,z
|
|
@@ -200354,6 +200762,7 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
|
|
|
200354
200762
|
const chainFraction = this.chainDistanceToChainFraction(chainDistance);
|
|
200355
200763
|
const chainDetail = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_7__.CurveLocationDetail.createCurveFractionPoint(this, chainFraction, childDetail.point);
|
|
200356
200764
|
chainDetail.childDetail = childDetail;
|
|
200765
|
+
chainDetail.a = childDetail.a;
|
|
200357
200766
|
return chainDetail;
|
|
200358
200767
|
}
|
|
200359
200768
|
return undefined;
|
|
@@ -230416,7 +230825,7 @@ class Ray3d {
|
|
|
230416
230825
|
result.direction.setStartEnd(origin, target);
|
|
230417
230826
|
return result;
|
|
230418
230827
|
}
|
|
230419
|
-
return new Ray3d(origin, _Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Vector3d.createStartEnd(origin, target));
|
|
230828
|
+
return new Ray3d(origin.clone(), _Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Vector3d.createStartEnd(origin, target));
|
|
230420
230829
|
}
|
|
230421
230830
|
/** Return a reference to the ray's origin. */
|
|
230422
230831
|
getOriginRef() { return this.origin; }
|
|
@@ -243623,7 +244032,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
243623
244032
|
* * Circular or elliptical pipe cross sections can be specified by supplying either a radius, a pair of semi-axis lengths, or a full Arc3d.
|
|
243624
244033
|
* * For semi-axis length input, x corresponds to an ellipse local axis nominally situated parallel to the xy-plane.
|
|
243625
244034
|
* * The center of Arc3d input is translated to the centerline start point to act as initial cross section.
|
|
243626
|
-
* @param centerline centerline of pipe
|
|
244035
|
+
* @param centerline centerline of pipe. If curved, it will be stroked using the builder's StrokeOptions.
|
|
243627
244036
|
* @param sectionData circle radius, ellipse semi-axis lengths, or full Arc3d
|
|
243628
244037
|
* @param numFacetAround how many equal parameter-space chords around each section
|
|
243629
244038
|
*/
|
|
@@ -243642,7 +244051,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
243642
244051
|
}
|
|
243643
244052
|
else if (centerline instanceof _curve_GeometryQuery__WEBPACK_IMPORTED_MODULE_32__.GeometryQuery) {
|
|
243644
244053
|
const linestring = _curve_LineString3d__WEBPACK_IMPORTED_MODULE_11__.LineString3d.create();
|
|
243645
|
-
centerline.emitStrokes(linestring);
|
|
244054
|
+
centerline.emitStrokes(linestring, this._options);
|
|
243646
244055
|
this.addMiteredPipesFromPoints(linestring.packedPoints, sectionData, numFacetAround);
|
|
243647
244056
|
}
|
|
243648
244057
|
}
|
|
@@ -254686,6 +255095,26 @@ class Sample {
|
|
|
254686
255095
|
}
|
|
254687
255096
|
return result;
|
|
254688
255097
|
}
|
|
255098
|
+
/** Create various orders of non-rational B-spline curves with helical poles */
|
|
255099
|
+
static createBsplineCurveHelices(radius, height, numTurns, numSamplesPerTurn) {
|
|
255100
|
+
const pts = [];
|
|
255101
|
+
const zDelta = (height / numTurns) / numSamplesPerTurn;
|
|
255102
|
+
const aDelta = 2 * Math.PI / numSamplesPerTurn;
|
|
255103
|
+
for (let iTurn = 0; iTurn < numTurns; ++iTurn) {
|
|
255104
|
+
for (let iSample = 0; iSample < numSamplesPerTurn; iSample++) {
|
|
255105
|
+
pts.push(_geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(radius * Math.cos(iSample * aDelta), radius * Math.sin(iSample * aDelta), pts.length * zDelta));
|
|
255106
|
+
}
|
|
255107
|
+
}
|
|
255108
|
+
const result = [];
|
|
255109
|
+
for (const order of [2, 3, 4, 9, 16, 25]) {
|
|
255110
|
+
if (order > pts.length)
|
|
255111
|
+
continue;
|
|
255112
|
+
const curve = _bspline_BSplineCurve__WEBPACK_IMPORTED_MODULE_9__.BSplineCurve3d.createUniformKnots(pts, order);
|
|
255113
|
+
if (curve !== undefined)
|
|
255114
|
+
result.push(curve);
|
|
255115
|
+
}
|
|
255116
|
+
return result;
|
|
255117
|
+
}
|
|
254689
255118
|
/** Create weighted bsplines for circular arcs.
|
|
254690
255119
|
*/
|
|
254691
255120
|
static createBspline3dHArcs() {
|
|
@@ -265661,9 +266090,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
265661
266090
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
265662
266091
|
/* harmony export */ "ITwinLocalization": () => (/* binding */ ITwinLocalization)
|
|
265663
266092
|
/* harmony export */ });
|
|
265664
|
-
/* harmony import */ var i18next__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.
|
|
266093
|
+
/* 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");
|
|
265665
266094
|
/* 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");
|
|
265666
|
-
/* harmony import */ var
|
|
266095
|
+
/* 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");
|
|
265667
266096
|
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
265668
266097
|
/*---------------------------------------------------------------------------------------------
|
|
265669
266098
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -265699,13 +266128,14 @@ class ITwinLocalization {
|
|
|
265699
266128
|
this._initOptions = {
|
|
265700
266129
|
interpolation: { escapeValue: true },
|
|
265701
266130
|
fallbackLng: "en",
|
|
266131
|
+
maxRetries: 1,
|
|
265702
266132
|
backend: this._backendOptions,
|
|
265703
266133
|
detection: this._detectionOptions,
|
|
265704
266134
|
...options === null || options === void 0 ? void 0 : options.initOptions,
|
|
265705
266135
|
};
|
|
265706
266136
|
this.i18next
|
|
265707
266137
|
.use((_b = options === null || options === void 0 ? void 0 : options.detectorPlugin) !== null && _b !== void 0 ? _b : i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__["default"])
|
|
265708
|
-
.use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c :
|
|
266138
|
+
.use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c : i18next_http_backend__WEBPACK_IMPORTED_MODULE_2__["default"])
|
|
265709
266139
|
.use(TranslationLogger);
|
|
265710
266140
|
}
|
|
265711
266141
|
async initialize(namespaces) {
|
|
@@ -265826,10 +266256,10 @@ class ITwinLocalization {
|
|
|
265826
266256
|
if (!err)
|
|
265827
266257
|
return resolve();
|
|
265828
266258
|
// Here we got a non-null err object.
|
|
265829
|
-
// This method is called when the system has attempted to load the resources for the
|
|
265830
|
-
//
|
|
265831
|
-
//
|
|
265832
|
-
// might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible
|
|
266259
|
+
// This method is called when the system has attempted to load the resources for the namespaces for each possible locale.
|
|
266260
|
+
// For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.
|
|
266261
|
+
// Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.
|
|
266262
|
+
// 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.
|
|
265833
266263
|
let locales = this.getLanguageList().map((thisLocale) => `/${thisLocale}/`);
|
|
265834
266264
|
try {
|
|
265835
266265
|
for (const thisError of err) {
|
|
@@ -287059,7 +287489,7 @@ class TestContext {
|
|
|
287059
287489
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
287060
287490
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
|
|
287061
287491
|
await core_frontend_1.NoRenderApp.startup({
|
|
287062
|
-
applicationVersion: "3.4.0-dev.
|
|
287492
|
+
applicationVersion: "3.4.0-dev.12",
|
|
287063
287493
|
applicationId: this.settings.gprid,
|
|
287064
287494
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
287065
287495
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -300704,6 +301134,31 @@ var WidgetState;
|
|
|
300704
301134
|
|
|
300705
301135
|
/* (ignored) */
|
|
300706
301136
|
|
|
301137
|
+
/***/ }),
|
|
301138
|
+
|
|
301139
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs":
|
|
301140
|
+
/*!**************************************************************************************************************************!*\
|
|
301141
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs ***!
|
|
301142
|
+
\**************************************************************************************************************************/
|
|
301143
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
301144
|
+
|
|
301145
|
+
var fetchApi
|
|
301146
|
+
if (typeof fetch === 'function') {
|
|
301147
|
+
if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.fetch) {
|
|
301148
|
+
fetchApi = __webpack_require__.g.fetch
|
|
301149
|
+
} else if (typeof window !== 'undefined' && window.fetch) {
|
|
301150
|
+
fetchApi = window.fetch
|
|
301151
|
+
}
|
|
301152
|
+
}
|
|
301153
|
+
|
|
301154
|
+
if ( true && (typeof window === 'undefined' || typeof window.document === 'undefined')) {
|
|
301155
|
+
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")
|
|
301156
|
+
if (f.default) f = f.default
|
|
301157
|
+
exports["default"] = f
|
|
301158
|
+
module.exports = exports.default
|
|
301159
|
+
}
|
|
301160
|
+
|
|
301161
|
+
|
|
300707
301162
|
/***/ }),
|
|
300708
301163
|
|
|
300709
301164
|
/***/ "../../common/temp/node_modules/.pnpm/flatbuffers@1.12.0/node_modules/flatbuffers/js/flatbuffers.mjs":
|
|
@@ -302311,9 +302766,9 @@ const gBase64 = {
|
|
|
302311
302766
|
|
|
302312
302767
|
/***/ }),
|
|
302313
302768
|
|
|
302314
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302769
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
|
|
302315
302770
|
/*!******************************************************************************************************************************!*\
|
|
302316
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302771
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
|
|
302317
302772
|
\******************************************************************************************************************************/
|
|
302318
302773
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302319
302774
|
|
|
@@ -302334,9 +302789,9 @@ function _arrayLikeToArray(arr, len) {
|
|
|
302334
302789
|
|
|
302335
302790
|
/***/ }),
|
|
302336
302791
|
|
|
302337
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302792
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":
|
|
302338
302793
|
/*!****************************************************************************************************************************!*\
|
|
302339
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302794
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***!
|
|
302340
302795
|
\****************************************************************************************************************************/
|
|
302341
302796
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302342
302797
|
|
|
@@ -302351,9 +302806,9 @@ function _arrayWithHoles(arr) {
|
|
|
302351
302806
|
|
|
302352
302807
|
/***/ }),
|
|
302353
302808
|
|
|
302354
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302809
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
|
|
302355
302810
|
/*!***********************************************************************************************************************************!*\
|
|
302356
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302811
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
|
|
302357
302812
|
\***********************************************************************************************************************************/
|
|
302358
302813
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302359
302814
|
|
|
@@ -302372,9 +302827,9 @@ function _assertThisInitialized(self) {
|
|
|
302372
302827
|
|
|
302373
302828
|
/***/ }),
|
|
302374
302829
|
|
|
302375
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302830
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
|
|
302376
302831
|
/*!****************************************************************************************************************************!*\
|
|
302377
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302832
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
|
|
302378
302833
|
\****************************************************************************************************************************/
|
|
302379
302834
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302380
302835
|
|
|
@@ -302391,9 +302846,9 @@ function _classCallCheck(instance, Constructor) {
|
|
|
302391
302846
|
|
|
302392
302847
|
/***/ }),
|
|
302393
302848
|
|
|
302394
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302849
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/createClass.js":
|
|
302395
302850
|
/*!*************************************************************************************************************************!*\
|
|
302396
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302851
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
|
|
302397
302852
|
\*************************************************************************************************************************/
|
|
302398
302853
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302399
302854
|
|
|
@@ -302423,9 +302878,9 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
302423
302878
|
|
|
302424
302879
|
/***/ }),
|
|
302425
302880
|
|
|
302426
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302881
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/defineProperty.js":
|
|
302427
302882
|
/*!****************************************************************************************************************************!*\
|
|
302428
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302883
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
|
|
302429
302884
|
\****************************************************************************************************************************/
|
|
302430
302885
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302431
302886
|
|
|
@@ -302451,9 +302906,9 @@ function _defineProperty(obj, key, value) {
|
|
|
302451
302906
|
|
|
302452
302907
|
/***/ }),
|
|
302453
302908
|
|
|
302454
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302909
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js":
|
|
302455
302910
|
/*!****************************************************************************************************************************!*\
|
|
302456
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302911
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***!
|
|
302457
302912
|
\****************************************************************************************************************************/
|
|
302458
302913
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302459
302914
|
|
|
@@ -302471,9 +302926,9 @@ function _getPrototypeOf(o) {
|
|
|
302471
302926
|
|
|
302472
302927
|
/***/ }),
|
|
302473
302928
|
|
|
302474
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302929
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/inherits.js":
|
|
302475
302930
|
/*!**********************************************************************************************************************!*\
|
|
302476
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302931
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/inherits.js ***!
|
|
302477
302932
|
\**********************************************************************************************************************/
|
|
302478
302933
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302479
302934
|
|
|
@@ -302482,7 +302937,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302482
302937
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302483
302938
|
/* harmony export */ "default": () => (/* binding */ _inherits)
|
|
302484
302939
|
/* harmony export */ });
|
|
302485
|
-
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302940
|
+
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");
|
|
302486
302941
|
|
|
302487
302942
|
function _inherits(subClass, superClass) {
|
|
302488
302943
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -302504,9 +302959,9 @@ function _inherits(subClass, superClass) {
|
|
|
302504
302959
|
|
|
302505
302960
|
/***/ }),
|
|
302506
302961
|
|
|
302507
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302962
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/iterableToArray.js":
|
|
302508
302963
|
/*!*****************************************************************************************************************************!*\
|
|
302509
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302964
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
|
|
302510
302965
|
\*****************************************************************************************************************************/
|
|
302511
302966
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302512
302967
|
|
|
@@ -302521,9 +302976,9 @@ function _iterableToArray(iter) {
|
|
|
302521
302976
|
|
|
302522
302977
|
/***/ }),
|
|
302523
302978
|
|
|
302524
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302979
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":
|
|
302525
302980
|
/*!*****************************************************************************************************************************!*\
|
|
302526
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302981
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***!
|
|
302527
302982
|
\*****************************************************************************************************************************/
|
|
302528
302983
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302529
302984
|
|
|
@@ -302538,9 +302993,9 @@ function _nonIterableRest() {
|
|
|
302538
302993
|
|
|
302539
302994
|
/***/ }),
|
|
302540
302995
|
|
|
302541
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302996
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js":
|
|
302542
302997
|
/*!***************************************************************************************************************************************!*\
|
|
302543
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302998
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***!
|
|
302544
302999
|
\***************************************************************************************************************************************/
|
|
302545
303000
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302546
303001
|
|
|
@@ -302549,8 +303004,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302549
303004
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302550
303005
|
/* harmony export */ "default": () => (/* binding */ _possibleConstructorReturn)
|
|
302551
303006
|
/* harmony export */ });
|
|
302552
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302553
|
-
/* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
303007
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
303008
|
+
/* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
302554
303009
|
|
|
302555
303010
|
|
|
302556
303011
|
function _possibleConstructorReturn(self, call) {
|
|
@@ -302565,9 +303020,9 @@ function _possibleConstructorReturn(self, call) {
|
|
|
302565
303020
|
|
|
302566
303021
|
/***/ }),
|
|
302567
303022
|
|
|
302568
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
303023
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":
|
|
302569
303024
|
/*!****************************************************************************************************************************!*\
|
|
302570
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
303025
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
|
|
302571
303026
|
\****************************************************************************************************************************/
|
|
302572
303027
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302573
303028
|
|
|
@@ -302586,9 +303041,9 @@ function _setPrototypeOf(o, p) {
|
|
|
302586
303041
|
|
|
302587
303042
|
/***/ }),
|
|
302588
303043
|
|
|
302589
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
303044
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/toArray.js":
|
|
302590
303045
|
/*!*********************************************************************************************************************!*\
|
|
302591
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
303046
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/toArray.js ***!
|
|
302592
303047
|
\*********************************************************************************************************************/
|
|
302593
303048
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302594
303049
|
|
|
@@ -302597,10 +303052,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302597
303052
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302598
303053
|
/* harmony export */ "default": () => (/* binding */ _toArray)
|
|
302599
303054
|
/* harmony export */ });
|
|
302600
|
-
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302601
|
-
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302602
|
-
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302603
|
-
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
303055
|
+
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");
|
|
303056
|
+
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/iterableToArray.js");
|
|
303057
|
+
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");
|
|
303058
|
+
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");
|
|
302604
303059
|
|
|
302605
303060
|
|
|
302606
303061
|
|
|
@@ -302611,9 +303066,9 @@ function _toArray(arr) {
|
|
|
302611
303066
|
|
|
302612
303067
|
/***/ }),
|
|
302613
303068
|
|
|
302614
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
303069
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/typeof.js":
|
|
302615
303070
|
/*!********************************************************************************************************************!*\
|
|
302616
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
303071
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
|
|
302617
303072
|
\********************************************************************************************************************/
|
|
302618
303073
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302619
303074
|
|
|
@@ -302634,9 +303089,9 @@ function _typeof(obj) {
|
|
|
302634
303089
|
|
|
302635
303090
|
/***/ }),
|
|
302636
303091
|
|
|
302637
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
303092
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":
|
|
302638
303093
|
/*!****************************************************************************************************************************************!*\
|
|
302639
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
303094
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
|
|
302640
303095
|
\****************************************************************************************************************************************/
|
|
302641
303096
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302642
303097
|
|
|
@@ -302645,7 +303100,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302645
303100
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302646
303101
|
/* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
|
|
302647
303102
|
/* harmony export */ });
|
|
302648
|
-
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
303103
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");
|
|
302649
303104
|
|
|
302650
303105
|
function _unsupportedIterableToArray(o, minLen) {
|
|
302651
303106
|
if (!o) return;
|
|
@@ -302658,10 +303113,442 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
302658
303113
|
|
|
302659
303114
|
/***/ }),
|
|
302660
303115
|
|
|
302661
|
-
/***/ "../../common/temp/node_modules/.pnpm/i18next@
|
|
302662
|
-
|
|
302663
|
-
!*** ../../common/temp/node_modules/.pnpm/i18next@
|
|
302664
|
-
|
|
303116
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js":
|
|
303117
|
+
/*!**********************************************************************************************************************!*\
|
|
303118
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js ***!
|
|
303119
|
+
\**********************************************************************************************************************/
|
|
303120
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
303121
|
+
|
|
303122
|
+
"use strict";
|
|
303123
|
+
__webpack_require__.r(__webpack_exports__);
|
|
303124
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
303125
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
303126
|
+
/* harmony export */ });
|
|
303127
|
+
/* 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");
|
|
303128
|
+
/* 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");
|
|
303129
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
303130
|
+
|
|
303131
|
+
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); } }
|
|
303132
|
+
|
|
303133
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
303134
|
+
|
|
303135
|
+
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; }
|
|
303136
|
+
|
|
303137
|
+
|
|
303138
|
+
|
|
303139
|
+
|
|
303140
|
+
var getDefaults = function getDefaults() {
|
|
303141
|
+
return {
|
|
303142
|
+
loadPath: '/locales/{{lng}}/{{ns}}.json',
|
|
303143
|
+
addPath: '/locales/add/{{lng}}/{{ns}}',
|
|
303144
|
+
allowMultiLoading: false,
|
|
303145
|
+
parse: function parse(data) {
|
|
303146
|
+
return JSON.parse(data);
|
|
303147
|
+
},
|
|
303148
|
+
stringify: JSON.stringify,
|
|
303149
|
+
parsePayload: function parsePayload(namespace, key, fallbackValue) {
|
|
303150
|
+
return _defineProperty({}, key, fallbackValue || '');
|
|
303151
|
+
},
|
|
303152
|
+
request: _request_js__WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
303153
|
+
reloadInterval: typeof window !== 'undefined' ? false : 60 * 60 * 1000,
|
|
303154
|
+
customHeaders: {},
|
|
303155
|
+
queryStringParams: {},
|
|
303156
|
+
crossDomain: false,
|
|
303157
|
+
withCredentials: false,
|
|
303158
|
+
overrideMimeType: false,
|
|
303159
|
+
requestOptions: {
|
|
303160
|
+
mode: 'cors',
|
|
303161
|
+
credentials: 'same-origin',
|
|
303162
|
+
cache: 'default'
|
|
303163
|
+
}
|
|
303164
|
+
};
|
|
303165
|
+
};
|
|
303166
|
+
|
|
303167
|
+
var Backend = function () {
|
|
303168
|
+
function Backend(services) {
|
|
303169
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
303170
|
+
var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
303171
|
+
|
|
303172
|
+
_classCallCheck(this, Backend);
|
|
303173
|
+
|
|
303174
|
+
this.services = services;
|
|
303175
|
+
this.options = options;
|
|
303176
|
+
this.allOptions = allOptions;
|
|
303177
|
+
this.type = 'backend';
|
|
303178
|
+
this.init(services, options, allOptions);
|
|
303179
|
+
}
|
|
303180
|
+
|
|
303181
|
+
_createClass(Backend, [{
|
|
303182
|
+
key: "init",
|
|
303183
|
+
value: function init(services) {
|
|
303184
|
+
var _this = this;
|
|
303185
|
+
|
|
303186
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
303187
|
+
var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
303188
|
+
this.services = services;
|
|
303189
|
+
this.options = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)(options, this.options || {}, getDefaults());
|
|
303190
|
+
this.allOptions = allOptions;
|
|
303191
|
+
|
|
303192
|
+
if (this.services && this.options.reloadInterval) {
|
|
303193
|
+
setInterval(function () {
|
|
303194
|
+
return _this.reload();
|
|
303195
|
+
}, this.options.reloadInterval);
|
|
303196
|
+
}
|
|
303197
|
+
}
|
|
303198
|
+
}, {
|
|
303199
|
+
key: "readMulti",
|
|
303200
|
+
value: function readMulti(languages, namespaces, callback) {
|
|
303201
|
+
this._readAny(languages, languages, namespaces, namespaces, callback);
|
|
303202
|
+
}
|
|
303203
|
+
}, {
|
|
303204
|
+
key: "read",
|
|
303205
|
+
value: function read(language, namespace, callback) {
|
|
303206
|
+
this._readAny([language], language, [namespace], namespace, callback);
|
|
303207
|
+
}
|
|
303208
|
+
}, {
|
|
303209
|
+
key: "_readAny",
|
|
303210
|
+
value: function _readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {
|
|
303211
|
+
var _this2 = this;
|
|
303212
|
+
|
|
303213
|
+
var loadPath = this.options.loadPath;
|
|
303214
|
+
|
|
303215
|
+
if (typeof this.options.loadPath === 'function') {
|
|
303216
|
+
loadPath = this.options.loadPath(languages, namespaces);
|
|
303217
|
+
}
|
|
303218
|
+
|
|
303219
|
+
loadPath = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.makePromise)(loadPath);
|
|
303220
|
+
loadPath.then(function (resolvedLoadPath) {
|
|
303221
|
+
if (!resolvedLoadPath) return callback(null, {});
|
|
303222
|
+
|
|
303223
|
+
var url = _this2.services.interpolator.interpolate(resolvedLoadPath, {
|
|
303224
|
+
lng: languages.join('+'),
|
|
303225
|
+
ns: namespaces.join('+')
|
|
303226
|
+
});
|
|
303227
|
+
|
|
303228
|
+
_this2.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);
|
|
303229
|
+
});
|
|
303230
|
+
}
|
|
303231
|
+
}, {
|
|
303232
|
+
key: "loadUrl",
|
|
303233
|
+
value: function loadUrl(url, callback, languages, namespaces) {
|
|
303234
|
+
var _this3 = this;
|
|
303235
|
+
|
|
303236
|
+
this.options.request(this.options, url, undefined, function (err, res) {
|
|
303237
|
+
if (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback('failed loading ' + url + '; status code: ' + res.status, true);
|
|
303238
|
+
if (res && res.status >= 400 && res.status < 500) return callback('failed loading ' + url + '; status code: ' + res.status, false);
|
|
303239
|
+
if (!res && err && err.message && err.message.indexOf('Failed to fetch') > -1) return callback('failed loading ' + url + ': ' + err.message, true);
|
|
303240
|
+
if (err) return callback(err, false);
|
|
303241
|
+
var ret, parseErr;
|
|
303242
|
+
|
|
303243
|
+
try {
|
|
303244
|
+
if (typeof res.data === 'string') {
|
|
303245
|
+
ret = _this3.options.parse(res.data, languages, namespaces);
|
|
303246
|
+
} else {
|
|
303247
|
+
ret = res.data;
|
|
303248
|
+
}
|
|
303249
|
+
} catch (e) {
|
|
303250
|
+
parseErr = 'failed parsing ' + url + ' to json';
|
|
303251
|
+
}
|
|
303252
|
+
|
|
303253
|
+
if (parseErr) return callback(parseErr, false);
|
|
303254
|
+
callback(null, ret);
|
|
303255
|
+
});
|
|
303256
|
+
}
|
|
303257
|
+
}, {
|
|
303258
|
+
key: "create",
|
|
303259
|
+
value: function create(languages, namespace, key, fallbackValue, callback) {
|
|
303260
|
+
var _this4 = this;
|
|
303261
|
+
|
|
303262
|
+
if (!this.options.addPath) return;
|
|
303263
|
+
if (typeof languages === 'string') languages = [languages];
|
|
303264
|
+
var payload = this.options.parsePayload(namespace, key, fallbackValue);
|
|
303265
|
+
var finished = 0;
|
|
303266
|
+
var dataArray = [];
|
|
303267
|
+
var resArray = [];
|
|
303268
|
+
languages.forEach(function (lng) {
|
|
303269
|
+
var addPath = _this4.options.addPath;
|
|
303270
|
+
|
|
303271
|
+
if (typeof _this4.options.addPath === 'function') {
|
|
303272
|
+
addPath = _this4.options.addPath(lng, namespace);
|
|
303273
|
+
}
|
|
303274
|
+
|
|
303275
|
+
var url = _this4.services.interpolator.interpolate(addPath, {
|
|
303276
|
+
lng: lng,
|
|
303277
|
+
ns: namespace
|
|
303278
|
+
});
|
|
303279
|
+
|
|
303280
|
+
_this4.options.request(_this4.options, url, payload, function (data, res) {
|
|
303281
|
+
finished += 1;
|
|
303282
|
+
dataArray.push(data);
|
|
303283
|
+
resArray.push(res);
|
|
303284
|
+
|
|
303285
|
+
if (finished === languages.length) {
|
|
303286
|
+
if (callback) callback(dataArray, resArray);
|
|
303287
|
+
}
|
|
303288
|
+
});
|
|
303289
|
+
});
|
|
303290
|
+
}
|
|
303291
|
+
}, {
|
|
303292
|
+
key: "reload",
|
|
303293
|
+
value: function reload() {
|
|
303294
|
+
var _this5 = this;
|
|
303295
|
+
|
|
303296
|
+
var _this$services = this.services,
|
|
303297
|
+
backendConnector = _this$services.backendConnector,
|
|
303298
|
+
languageUtils = _this$services.languageUtils,
|
|
303299
|
+
logger = _this$services.logger;
|
|
303300
|
+
var currentLanguage = backendConnector.language;
|
|
303301
|
+
if (currentLanguage && currentLanguage.toLowerCase() === 'cimode') return;
|
|
303302
|
+
var toLoad = [];
|
|
303303
|
+
|
|
303304
|
+
var append = function append(lng) {
|
|
303305
|
+
var lngs = languageUtils.toResolveHierarchy(lng);
|
|
303306
|
+
lngs.forEach(function (l) {
|
|
303307
|
+
if (toLoad.indexOf(l) < 0) toLoad.push(l);
|
|
303308
|
+
});
|
|
303309
|
+
};
|
|
303310
|
+
|
|
303311
|
+
append(currentLanguage);
|
|
303312
|
+
if (this.allOptions.preload) this.allOptions.preload.forEach(function (l) {
|
|
303313
|
+
return append(l);
|
|
303314
|
+
});
|
|
303315
|
+
toLoad.forEach(function (lng) {
|
|
303316
|
+
_this5.allOptions.ns.forEach(function (ns) {
|
|
303317
|
+
backendConnector.read(lng, ns, 'read', null, null, function (err, data) {
|
|
303318
|
+
if (err) logger.warn("loading namespace ".concat(ns, " for language ").concat(lng, " failed"), err);
|
|
303319
|
+
if (!err && data) logger.log("loaded namespace ".concat(ns, " for language ").concat(lng), data);
|
|
303320
|
+
backendConnector.loaded("".concat(lng, "|").concat(ns), err, data);
|
|
303321
|
+
});
|
|
303322
|
+
});
|
|
303323
|
+
});
|
|
303324
|
+
}
|
|
303325
|
+
}]);
|
|
303326
|
+
|
|
303327
|
+
return Backend;
|
|
303328
|
+
}();
|
|
303329
|
+
|
|
303330
|
+
Backend.type = 'backend';
|
|
303331
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
|
|
303332
|
+
|
|
303333
|
+
/***/ }),
|
|
303334
|
+
|
|
303335
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js":
|
|
303336
|
+
/*!************************************************************************************************************************!*\
|
|
303337
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js ***!
|
|
303338
|
+
\************************************************************************************************************************/
|
|
303339
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
303340
|
+
|
|
303341
|
+
"use strict";
|
|
303342
|
+
var _getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache;
|
|
303343
|
+
__webpack_require__.r(__webpack_exports__);
|
|
303344
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
303345
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
303346
|
+
/* harmony export */ });
|
|
303347
|
+
/* 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");
|
|
303348
|
+
/* 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");
|
|
303349
|
+
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); }
|
|
303350
|
+
|
|
303351
|
+
|
|
303352
|
+
|
|
303353
|
+
var fetchApi;
|
|
303354
|
+
|
|
303355
|
+
if (typeof fetch === 'function') {
|
|
303356
|
+
if (typeof global !== 'undefined' && global.fetch) {
|
|
303357
|
+
fetchApi = global.fetch;
|
|
303358
|
+
} else if (typeof window !== 'undefined' && window.fetch) {
|
|
303359
|
+
fetchApi = window.fetch;
|
|
303360
|
+
}
|
|
303361
|
+
}
|
|
303362
|
+
|
|
303363
|
+
var XmlHttpRequestApi;
|
|
303364
|
+
|
|
303365
|
+
if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)()) {
|
|
303366
|
+
if (typeof global !== 'undefined' && global.XMLHttpRequest) {
|
|
303367
|
+
XmlHttpRequestApi = global.XMLHttpRequest;
|
|
303368
|
+
} else if (typeof window !== 'undefined' && window.XMLHttpRequest) {
|
|
303369
|
+
XmlHttpRequestApi = window.XMLHttpRequest;
|
|
303370
|
+
}
|
|
303371
|
+
}
|
|
303372
|
+
|
|
303373
|
+
var ActiveXObjectApi;
|
|
303374
|
+
|
|
303375
|
+
if (typeof ActiveXObject === 'function') {
|
|
303376
|
+
if (typeof global !== 'undefined' && global.ActiveXObject) {
|
|
303377
|
+
ActiveXObjectApi = global.ActiveXObject;
|
|
303378
|
+
} else if (typeof window !== 'undefined' && window.ActiveXObject) {
|
|
303379
|
+
ActiveXObjectApi = window.ActiveXObject;
|
|
303380
|
+
}
|
|
303381
|
+
}
|
|
303382
|
+
|
|
303383
|
+
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)));
|
|
303384
|
+
if (typeof fetchApi !== 'function') fetchApi = undefined;
|
|
303385
|
+
|
|
303386
|
+
var addQueryString = function addQueryString(url, params) {
|
|
303387
|
+
if (params && _typeof(params) === 'object') {
|
|
303388
|
+
var queryString = '';
|
|
303389
|
+
|
|
303390
|
+
for (var paramName in params) {
|
|
303391
|
+
queryString += '&' + encodeURIComponent(paramName) + '=' + encodeURIComponent(params[paramName]);
|
|
303392
|
+
}
|
|
303393
|
+
|
|
303394
|
+
if (!queryString) return url;
|
|
303395
|
+
url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
|
|
303396
|
+
}
|
|
303397
|
+
|
|
303398
|
+
return url;
|
|
303399
|
+
};
|
|
303400
|
+
|
|
303401
|
+
var requestWithFetch = function requestWithFetch(options, url, payload, callback) {
|
|
303402
|
+
if (options.queryStringParams) {
|
|
303403
|
+
url = addQueryString(url, options.queryStringParams);
|
|
303404
|
+
}
|
|
303405
|
+
|
|
303406
|
+
var headers = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)({}, typeof options.customHeaders === 'function' ? options.customHeaders() : options.customHeaders);
|
|
303407
|
+
if (payload) headers['Content-Type'] = 'application/json';
|
|
303408
|
+
fetchApi(url, (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)({
|
|
303409
|
+
method: payload ? 'POST' : 'GET',
|
|
303410
|
+
body: payload ? options.stringify(payload) : undefined,
|
|
303411
|
+
headers: headers
|
|
303412
|
+
}, typeof options.requestOptions === 'function' ? options.requestOptions(payload) : options.requestOptions)).then(function (response) {
|
|
303413
|
+
if (!response.ok) return callback(response.statusText || 'Error', {
|
|
303414
|
+
status: response.status
|
|
303415
|
+
});
|
|
303416
|
+
response.text().then(function (data) {
|
|
303417
|
+
callback(null, {
|
|
303418
|
+
status: response.status,
|
|
303419
|
+
data: data
|
|
303420
|
+
});
|
|
303421
|
+
}).catch(callback);
|
|
303422
|
+
}).catch(callback);
|
|
303423
|
+
};
|
|
303424
|
+
|
|
303425
|
+
var requestWithXmlHttpRequest = function requestWithXmlHttpRequest(options, url, payload, callback) {
|
|
303426
|
+
if (payload && _typeof(payload) === 'object') {
|
|
303427
|
+
payload = addQueryString('', payload).slice(1);
|
|
303428
|
+
}
|
|
303429
|
+
|
|
303430
|
+
if (options.queryStringParams) {
|
|
303431
|
+
url = addQueryString(url, options.queryStringParams);
|
|
303432
|
+
}
|
|
303433
|
+
|
|
303434
|
+
try {
|
|
303435
|
+
var x;
|
|
303436
|
+
|
|
303437
|
+
if (XmlHttpRequestApi) {
|
|
303438
|
+
x = new XmlHttpRequestApi();
|
|
303439
|
+
} else {
|
|
303440
|
+
x = new ActiveXObjectApi('MSXML2.XMLHTTP.3.0');
|
|
303441
|
+
}
|
|
303442
|
+
|
|
303443
|
+
x.open(payload ? 'POST' : 'GET', url, 1);
|
|
303444
|
+
|
|
303445
|
+
if (!options.crossDomain) {
|
|
303446
|
+
x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
|
303447
|
+
}
|
|
303448
|
+
|
|
303449
|
+
x.withCredentials = !!options.withCredentials;
|
|
303450
|
+
|
|
303451
|
+
if (payload) {
|
|
303452
|
+
x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
303453
|
+
}
|
|
303454
|
+
|
|
303455
|
+
if (x.overrideMimeType) {
|
|
303456
|
+
x.overrideMimeType('application/json');
|
|
303457
|
+
}
|
|
303458
|
+
|
|
303459
|
+
var h = options.customHeaders;
|
|
303460
|
+
h = typeof h === 'function' ? h() : h;
|
|
303461
|
+
|
|
303462
|
+
if (h) {
|
|
303463
|
+
for (var i in h) {
|
|
303464
|
+
x.setRequestHeader(i, h[i]);
|
|
303465
|
+
}
|
|
303466
|
+
}
|
|
303467
|
+
|
|
303468
|
+
x.onreadystatechange = function () {
|
|
303469
|
+
x.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {
|
|
303470
|
+
status: x.status,
|
|
303471
|
+
data: x.responseText
|
|
303472
|
+
});
|
|
303473
|
+
};
|
|
303474
|
+
|
|
303475
|
+
x.send(payload);
|
|
303476
|
+
} catch (e) {
|
|
303477
|
+
console && console.log(e);
|
|
303478
|
+
}
|
|
303479
|
+
};
|
|
303480
|
+
|
|
303481
|
+
var request = function request(options, url, payload, callback) {
|
|
303482
|
+
if (typeof payload === 'function') {
|
|
303483
|
+
callback = payload;
|
|
303484
|
+
payload = undefined;
|
|
303485
|
+
}
|
|
303486
|
+
|
|
303487
|
+
callback = callback || function () {};
|
|
303488
|
+
|
|
303489
|
+
if (fetchApi) {
|
|
303490
|
+
return requestWithFetch(options, url, payload, callback);
|
|
303491
|
+
}
|
|
303492
|
+
|
|
303493
|
+
if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)() || typeof ActiveXObject === 'function') {
|
|
303494
|
+
return requestWithXmlHttpRequest(options, url, payload, callback);
|
|
303495
|
+
}
|
|
303496
|
+
};
|
|
303497
|
+
|
|
303498
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (request);
|
|
303499
|
+
|
|
303500
|
+
/***/ }),
|
|
303501
|
+
|
|
303502
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js":
|
|
303503
|
+
/*!**********************************************************************************************************************!*\
|
|
303504
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js ***!
|
|
303505
|
+
\**********************************************************************************************************************/
|
|
303506
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
303507
|
+
|
|
303508
|
+
"use strict";
|
|
303509
|
+
__webpack_require__.r(__webpack_exports__);
|
|
303510
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
303511
|
+
/* harmony export */ "defaults": () => (/* binding */ defaults),
|
|
303512
|
+
/* harmony export */ "hasXMLHttpRequest": () => (/* binding */ hasXMLHttpRequest),
|
|
303513
|
+
/* harmony export */ "makePromise": () => (/* binding */ makePromise)
|
|
303514
|
+
/* harmony export */ });
|
|
303515
|
+
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); }
|
|
303516
|
+
|
|
303517
|
+
var arr = [];
|
|
303518
|
+
var each = arr.forEach;
|
|
303519
|
+
var slice = arr.slice;
|
|
303520
|
+
function defaults(obj) {
|
|
303521
|
+
each.call(slice.call(arguments, 1), function (source) {
|
|
303522
|
+
if (source) {
|
|
303523
|
+
for (var prop in source) {
|
|
303524
|
+
if (obj[prop] === undefined) obj[prop] = source[prop];
|
|
303525
|
+
}
|
|
303526
|
+
}
|
|
303527
|
+
});
|
|
303528
|
+
return obj;
|
|
303529
|
+
}
|
|
303530
|
+
function hasXMLHttpRequest() {
|
|
303531
|
+
return typeof XMLHttpRequest === 'function' || (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof(XMLHttpRequest)) === 'object';
|
|
303532
|
+
}
|
|
303533
|
+
|
|
303534
|
+
function isPromise(maybePromise) {
|
|
303535
|
+
return !!maybePromise && typeof maybePromise.then === 'function';
|
|
303536
|
+
}
|
|
303537
|
+
|
|
303538
|
+
function makePromise(maybePromise) {
|
|
303539
|
+
if (isPromise(maybePromise)) {
|
|
303540
|
+
return maybePromise;
|
|
303541
|
+
}
|
|
303542
|
+
|
|
303543
|
+
return Promise.resolve(maybePromise);
|
|
303544
|
+
}
|
|
303545
|
+
|
|
303546
|
+
/***/ }),
|
|
303547
|
+
|
|
303548
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js":
|
|
303549
|
+
/*!****************************************************************************************************!*\
|
|
303550
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js ***!
|
|
303551
|
+
\****************************************************************************************************/
|
|
302665
303552
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302666
303553
|
|
|
302667
303554
|
"use strict";
|
|
@@ -302682,15 +303569,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302682
303569
|
/* harmony export */ "t": () => (/* binding */ t),
|
|
302683
303570
|
/* harmony export */ "use": () => (/* binding */ use)
|
|
302684
303571
|
/* harmony export */ });
|
|
302685
|
-
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302686
|
-
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302687
|
-
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302688
|
-
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302689
|
-
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302690
|
-
/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302691
|
-
/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302692
|
-
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302693
|
-
/* harmony import */ var _babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
303572
|
+
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __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");
|
|
303573
|
+
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __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");
|
|
303574
|
+
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __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");
|
|
303575
|
+
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
303576
|
+
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
303577
|
+
/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
|
|
303578
|
+
/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
|
|
303579
|
+
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __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");
|
|
303580
|
+
/* harmony import */ var _babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/toArray.js");
|
|
302694
303581
|
|
|
302695
303582
|
|
|
302696
303583
|
|
|
@@ -304562,6 +305449,8 @@ var Connector = function (_EventEmitter) {
|
|
|
304562
305449
|
_this.waitingReads = [];
|
|
304563
305450
|
_this.maxParallelReads = options.maxParallelReads || 10;
|
|
304564
305451
|
_this.readingCalls = 0;
|
|
305452
|
+
_this.maxRetries = options.maxRetries >= 0 ? options.maxRetries : 5;
|
|
305453
|
+
_this.retryTimeout = options.retryTimeout >= 1 ? options.retryTimeout : 350;
|
|
304565
305454
|
_this.state = {};
|
|
304566
305455
|
_this.queue = [];
|
|
304567
305456
|
|
|
@@ -304668,7 +305557,7 @@ var Connector = function (_EventEmitter) {
|
|
|
304668
305557
|
var _this3 = this;
|
|
304669
305558
|
|
|
304670
305559
|
var tried = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
304671
|
-
var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] :
|
|
305560
|
+
var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : this.retryTimeout;
|
|
304672
305561
|
var callback = arguments.length > 5 ? arguments[5] : undefined;
|
|
304673
305562
|
if (!lng.length) return callback(null, {});
|
|
304674
305563
|
|
|
@@ -304686,13 +305575,6 @@ var Connector = function (_EventEmitter) {
|
|
|
304686
305575
|
|
|
304687
305576
|
this.readingCalls++;
|
|
304688
305577
|
return this.backend[fcName](lng, ns, function (err, data) {
|
|
304689
|
-
if (err && data && tried < 5) {
|
|
304690
|
-
setTimeout(function () {
|
|
304691
|
-
_this3.read.call(_this3, lng, ns, fcName, tried + 1, wait * 2, callback);
|
|
304692
|
-
}, wait);
|
|
304693
|
-
return;
|
|
304694
|
-
}
|
|
304695
|
-
|
|
304696
305578
|
_this3.readingCalls--;
|
|
304697
305579
|
|
|
304698
305580
|
if (_this3.waitingReads.length > 0) {
|
|
@@ -304701,6 +305583,13 @@ var Connector = function (_EventEmitter) {
|
|
|
304701
305583
|
_this3.read(next.lng, next.ns, next.fcName, next.tried, next.wait, next.callback);
|
|
304702
305584
|
}
|
|
304703
305585
|
|
|
305586
|
+
if (err && data && tried < _this3.maxRetries) {
|
|
305587
|
+
setTimeout(function () {
|
|
305588
|
+
_this3.read.call(_this3, lng, ns, fcName, tried + 1, wait * 2, callback);
|
|
305589
|
+
}, wait);
|
|
305590
|
+
return;
|
|
305591
|
+
}
|
|
305592
|
+
|
|
304704
305593
|
callback(err, data);
|
|
304705
305594
|
});
|
|
304706
305595
|
}
|
|
@@ -305516,7 +306405,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
305516
306405
|
/***/ ((module) => {
|
|
305517
306406
|
|
|
305518
306407
|
"use strict";
|
|
305519
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.
|
|
306408
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.12","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.12","@itwin/core-bentley":"workspace:^3.4.0-dev.12","@itwin/core-common":"workspace:^3.4.0-dev.12","@itwin/core-geometry":"workspace:^3.4.0-dev.12","@itwin/core-orbitgt":"workspace:^3.4.0-dev.12","@itwin/core-quantity":"workspace:^3.4.0-dev.12","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.12"},"//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"}}]}}');
|
|
305520
306409
|
|
|
305521
306410
|
/***/ }),
|
|
305522
306411
|
|
|
@@ -305576,6 +306465,36 @@ module.exports = JSON.parse('{"$schema":"../../../node_modules/@itwin/presentati
|
|
|
305576
306465
|
/******/ };
|
|
305577
306466
|
/******/ })();
|
|
305578
306467
|
/******/
|
|
306468
|
+
/******/ /* webpack/runtime/create fake namespace object */
|
|
306469
|
+
/******/ (() => {
|
|
306470
|
+
/******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
|
|
306471
|
+
/******/ var leafPrototypes;
|
|
306472
|
+
/******/ // create a fake namespace object
|
|
306473
|
+
/******/ // mode & 1: value is a module id, require it
|
|
306474
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
306475
|
+
/******/ // mode & 4: return value when already ns object
|
|
306476
|
+
/******/ // mode & 16: return value when it's Promise-like
|
|
306477
|
+
/******/ // mode & 8|1: behave like require
|
|
306478
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
306479
|
+
/******/ if(mode & 1) value = this(value);
|
|
306480
|
+
/******/ if(mode & 8) return value;
|
|
306481
|
+
/******/ if(typeof value === 'object' && value) {
|
|
306482
|
+
/******/ if((mode & 4) && value.__esModule) return value;
|
|
306483
|
+
/******/ if((mode & 16) && typeof value.then === 'function') return value;
|
|
306484
|
+
/******/ }
|
|
306485
|
+
/******/ var ns = Object.create(null);
|
|
306486
|
+
/******/ __webpack_require__.r(ns);
|
|
306487
|
+
/******/ var def = {};
|
|
306488
|
+
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
306489
|
+
/******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
306490
|
+
/******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
|
|
306491
|
+
/******/ }
|
|
306492
|
+
/******/ def['default'] = () => (value);
|
|
306493
|
+
/******/ __webpack_require__.d(ns, def);
|
|
306494
|
+
/******/ return ns;
|
|
306495
|
+
/******/ };
|
|
306496
|
+
/******/ })();
|
|
306497
|
+
/******/
|
|
305579
306498
|
/******/ /* webpack/runtime/define property getters */
|
|
305580
306499
|
/******/ (() => {
|
|
305581
306500
|
/******/ // define getter functions for harmony exports
|