@itwin/ecschema-rpcinterface-tests 3.4.0-dev.1 → 3.4.0-dev.10
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 +1316 -416
- 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 +17 -18
|
@@ -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) {
|
|
@@ -19015,6 +19015,570 @@ Emitter.prototype.hasListeners = function(event){
|
|
|
19015
19015
|
};
|
|
19016
19016
|
|
|
19017
19017
|
|
|
19018
|
+
/***/ }),
|
|
19019
|
+
|
|
19020
|
+
/***/ "../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js":
|
|
19021
|
+
/*!****************************************************************************************************************!*\
|
|
19022
|
+
!*** ../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js ***!
|
|
19023
|
+
\****************************************************************************************************************/
|
|
19024
|
+
/***/ (function(module, exports) {
|
|
19025
|
+
|
|
19026
|
+
var global = typeof self !== 'undefined' ? self : this;
|
|
19027
|
+
var __self__ = (function () {
|
|
19028
|
+
function F() {
|
|
19029
|
+
this.fetch = false;
|
|
19030
|
+
this.DOMException = global.DOMException
|
|
19031
|
+
}
|
|
19032
|
+
F.prototype = global;
|
|
19033
|
+
return new F();
|
|
19034
|
+
})();
|
|
19035
|
+
(function(self) {
|
|
19036
|
+
|
|
19037
|
+
var irrelevant = (function (exports) {
|
|
19038
|
+
|
|
19039
|
+
var support = {
|
|
19040
|
+
searchParams: 'URLSearchParams' in self,
|
|
19041
|
+
iterable: 'Symbol' in self && 'iterator' in Symbol,
|
|
19042
|
+
blob:
|
|
19043
|
+
'FileReader' in self &&
|
|
19044
|
+
'Blob' in self &&
|
|
19045
|
+
(function() {
|
|
19046
|
+
try {
|
|
19047
|
+
new Blob();
|
|
19048
|
+
return true
|
|
19049
|
+
} catch (e) {
|
|
19050
|
+
return false
|
|
19051
|
+
}
|
|
19052
|
+
})(),
|
|
19053
|
+
formData: 'FormData' in self,
|
|
19054
|
+
arrayBuffer: 'ArrayBuffer' in self
|
|
19055
|
+
};
|
|
19056
|
+
|
|
19057
|
+
function isDataView(obj) {
|
|
19058
|
+
return obj && DataView.prototype.isPrototypeOf(obj)
|
|
19059
|
+
}
|
|
19060
|
+
|
|
19061
|
+
if (support.arrayBuffer) {
|
|
19062
|
+
var viewClasses = [
|
|
19063
|
+
'[object Int8Array]',
|
|
19064
|
+
'[object Uint8Array]',
|
|
19065
|
+
'[object Uint8ClampedArray]',
|
|
19066
|
+
'[object Int16Array]',
|
|
19067
|
+
'[object Uint16Array]',
|
|
19068
|
+
'[object Int32Array]',
|
|
19069
|
+
'[object Uint32Array]',
|
|
19070
|
+
'[object Float32Array]',
|
|
19071
|
+
'[object Float64Array]'
|
|
19072
|
+
];
|
|
19073
|
+
|
|
19074
|
+
var isArrayBufferView =
|
|
19075
|
+
ArrayBuffer.isView ||
|
|
19076
|
+
function(obj) {
|
|
19077
|
+
return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1
|
|
19078
|
+
};
|
|
19079
|
+
}
|
|
19080
|
+
|
|
19081
|
+
function normalizeName(name) {
|
|
19082
|
+
if (typeof name !== 'string') {
|
|
19083
|
+
name = String(name);
|
|
19084
|
+
}
|
|
19085
|
+
if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name)) {
|
|
19086
|
+
throw new TypeError('Invalid character in header field name')
|
|
19087
|
+
}
|
|
19088
|
+
return name.toLowerCase()
|
|
19089
|
+
}
|
|
19090
|
+
|
|
19091
|
+
function normalizeValue(value) {
|
|
19092
|
+
if (typeof value !== 'string') {
|
|
19093
|
+
value = String(value);
|
|
19094
|
+
}
|
|
19095
|
+
return value
|
|
19096
|
+
}
|
|
19097
|
+
|
|
19098
|
+
// Build a destructive iterator for the value list
|
|
19099
|
+
function iteratorFor(items) {
|
|
19100
|
+
var iterator = {
|
|
19101
|
+
next: function() {
|
|
19102
|
+
var value = items.shift();
|
|
19103
|
+
return {done: value === undefined, value: value}
|
|
19104
|
+
}
|
|
19105
|
+
};
|
|
19106
|
+
|
|
19107
|
+
if (support.iterable) {
|
|
19108
|
+
iterator[Symbol.iterator] = function() {
|
|
19109
|
+
return iterator
|
|
19110
|
+
};
|
|
19111
|
+
}
|
|
19112
|
+
|
|
19113
|
+
return iterator
|
|
19114
|
+
}
|
|
19115
|
+
|
|
19116
|
+
function Headers(headers) {
|
|
19117
|
+
this.map = {};
|
|
19118
|
+
|
|
19119
|
+
if (headers instanceof Headers) {
|
|
19120
|
+
headers.forEach(function(value, name) {
|
|
19121
|
+
this.append(name, value);
|
|
19122
|
+
}, this);
|
|
19123
|
+
} else if (Array.isArray(headers)) {
|
|
19124
|
+
headers.forEach(function(header) {
|
|
19125
|
+
this.append(header[0], header[1]);
|
|
19126
|
+
}, this);
|
|
19127
|
+
} else if (headers) {
|
|
19128
|
+
Object.getOwnPropertyNames(headers).forEach(function(name) {
|
|
19129
|
+
this.append(name, headers[name]);
|
|
19130
|
+
}, this);
|
|
19131
|
+
}
|
|
19132
|
+
}
|
|
19133
|
+
|
|
19134
|
+
Headers.prototype.append = function(name, value) {
|
|
19135
|
+
name = normalizeName(name);
|
|
19136
|
+
value = normalizeValue(value);
|
|
19137
|
+
var oldValue = this.map[name];
|
|
19138
|
+
this.map[name] = oldValue ? oldValue + ', ' + value : value;
|
|
19139
|
+
};
|
|
19140
|
+
|
|
19141
|
+
Headers.prototype['delete'] = function(name) {
|
|
19142
|
+
delete this.map[normalizeName(name)];
|
|
19143
|
+
};
|
|
19144
|
+
|
|
19145
|
+
Headers.prototype.get = function(name) {
|
|
19146
|
+
name = normalizeName(name);
|
|
19147
|
+
return this.has(name) ? this.map[name] : null
|
|
19148
|
+
};
|
|
19149
|
+
|
|
19150
|
+
Headers.prototype.has = function(name) {
|
|
19151
|
+
return this.map.hasOwnProperty(normalizeName(name))
|
|
19152
|
+
};
|
|
19153
|
+
|
|
19154
|
+
Headers.prototype.set = function(name, value) {
|
|
19155
|
+
this.map[normalizeName(name)] = normalizeValue(value);
|
|
19156
|
+
};
|
|
19157
|
+
|
|
19158
|
+
Headers.prototype.forEach = function(callback, thisArg) {
|
|
19159
|
+
for (var name in this.map) {
|
|
19160
|
+
if (this.map.hasOwnProperty(name)) {
|
|
19161
|
+
callback.call(thisArg, this.map[name], name, this);
|
|
19162
|
+
}
|
|
19163
|
+
}
|
|
19164
|
+
};
|
|
19165
|
+
|
|
19166
|
+
Headers.prototype.keys = function() {
|
|
19167
|
+
var items = [];
|
|
19168
|
+
this.forEach(function(value, name) {
|
|
19169
|
+
items.push(name);
|
|
19170
|
+
});
|
|
19171
|
+
return iteratorFor(items)
|
|
19172
|
+
};
|
|
19173
|
+
|
|
19174
|
+
Headers.prototype.values = function() {
|
|
19175
|
+
var items = [];
|
|
19176
|
+
this.forEach(function(value) {
|
|
19177
|
+
items.push(value);
|
|
19178
|
+
});
|
|
19179
|
+
return iteratorFor(items)
|
|
19180
|
+
};
|
|
19181
|
+
|
|
19182
|
+
Headers.prototype.entries = function() {
|
|
19183
|
+
var items = [];
|
|
19184
|
+
this.forEach(function(value, name) {
|
|
19185
|
+
items.push([name, value]);
|
|
19186
|
+
});
|
|
19187
|
+
return iteratorFor(items)
|
|
19188
|
+
};
|
|
19189
|
+
|
|
19190
|
+
if (support.iterable) {
|
|
19191
|
+
Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
|
|
19192
|
+
}
|
|
19193
|
+
|
|
19194
|
+
function consumed(body) {
|
|
19195
|
+
if (body.bodyUsed) {
|
|
19196
|
+
return Promise.reject(new TypeError('Already read'))
|
|
19197
|
+
}
|
|
19198
|
+
body.bodyUsed = true;
|
|
19199
|
+
}
|
|
19200
|
+
|
|
19201
|
+
function fileReaderReady(reader) {
|
|
19202
|
+
return new Promise(function(resolve, reject) {
|
|
19203
|
+
reader.onload = function() {
|
|
19204
|
+
resolve(reader.result);
|
|
19205
|
+
};
|
|
19206
|
+
reader.onerror = function() {
|
|
19207
|
+
reject(reader.error);
|
|
19208
|
+
};
|
|
19209
|
+
})
|
|
19210
|
+
}
|
|
19211
|
+
|
|
19212
|
+
function readBlobAsArrayBuffer(blob) {
|
|
19213
|
+
var reader = new FileReader();
|
|
19214
|
+
var promise = fileReaderReady(reader);
|
|
19215
|
+
reader.readAsArrayBuffer(blob);
|
|
19216
|
+
return promise
|
|
19217
|
+
}
|
|
19218
|
+
|
|
19219
|
+
function readBlobAsText(blob) {
|
|
19220
|
+
var reader = new FileReader();
|
|
19221
|
+
var promise = fileReaderReady(reader);
|
|
19222
|
+
reader.readAsText(blob);
|
|
19223
|
+
return promise
|
|
19224
|
+
}
|
|
19225
|
+
|
|
19226
|
+
function readArrayBufferAsText(buf) {
|
|
19227
|
+
var view = new Uint8Array(buf);
|
|
19228
|
+
var chars = new Array(view.length);
|
|
19229
|
+
|
|
19230
|
+
for (var i = 0; i < view.length; i++) {
|
|
19231
|
+
chars[i] = String.fromCharCode(view[i]);
|
|
19232
|
+
}
|
|
19233
|
+
return chars.join('')
|
|
19234
|
+
}
|
|
19235
|
+
|
|
19236
|
+
function bufferClone(buf) {
|
|
19237
|
+
if (buf.slice) {
|
|
19238
|
+
return buf.slice(0)
|
|
19239
|
+
} else {
|
|
19240
|
+
var view = new Uint8Array(buf.byteLength);
|
|
19241
|
+
view.set(new Uint8Array(buf));
|
|
19242
|
+
return view.buffer
|
|
19243
|
+
}
|
|
19244
|
+
}
|
|
19245
|
+
|
|
19246
|
+
function Body() {
|
|
19247
|
+
this.bodyUsed = false;
|
|
19248
|
+
|
|
19249
|
+
this._initBody = function(body) {
|
|
19250
|
+
this._bodyInit = body;
|
|
19251
|
+
if (!body) {
|
|
19252
|
+
this._bodyText = '';
|
|
19253
|
+
} else if (typeof body === 'string') {
|
|
19254
|
+
this._bodyText = body;
|
|
19255
|
+
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
|
|
19256
|
+
this._bodyBlob = body;
|
|
19257
|
+
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
|
|
19258
|
+
this._bodyFormData = body;
|
|
19259
|
+
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
19260
|
+
this._bodyText = body.toString();
|
|
19261
|
+
} else if (support.arrayBuffer && support.blob && isDataView(body)) {
|
|
19262
|
+
this._bodyArrayBuffer = bufferClone(body.buffer);
|
|
19263
|
+
// IE 10-11 can't handle a DataView body.
|
|
19264
|
+
this._bodyInit = new Blob([this._bodyArrayBuffer]);
|
|
19265
|
+
} else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
|
|
19266
|
+
this._bodyArrayBuffer = bufferClone(body);
|
|
19267
|
+
} else {
|
|
19268
|
+
this._bodyText = body = Object.prototype.toString.call(body);
|
|
19269
|
+
}
|
|
19270
|
+
|
|
19271
|
+
if (!this.headers.get('content-type')) {
|
|
19272
|
+
if (typeof body === 'string') {
|
|
19273
|
+
this.headers.set('content-type', 'text/plain;charset=UTF-8');
|
|
19274
|
+
} else if (this._bodyBlob && this._bodyBlob.type) {
|
|
19275
|
+
this.headers.set('content-type', this._bodyBlob.type);
|
|
19276
|
+
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
19277
|
+
this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
|
|
19278
|
+
}
|
|
19279
|
+
}
|
|
19280
|
+
};
|
|
19281
|
+
|
|
19282
|
+
if (support.blob) {
|
|
19283
|
+
this.blob = function() {
|
|
19284
|
+
var rejected = consumed(this);
|
|
19285
|
+
if (rejected) {
|
|
19286
|
+
return rejected
|
|
19287
|
+
}
|
|
19288
|
+
|
|
19289
|
+
if (this._bodyBlob) {
|
|
19290
|
+
return Promise.resolve(this._bodyBlob)
|
|
19291
|
+
} else if (this._bodyArrayBuffer) {
|
|
19292
|
+
return Promise.resolve(new Blob([this._bodyArrayBuffer]))
|
|
19293
|
+
} else if (this._bodyFormData) {
|
|
19294
|
+
throw new Error('could not read FormData body as blob')
|
|
19295
|
+
} else {
|
|
19296
|
+
return Promise.resolve(new Blob([this._bodyText]))
|
|
19297
|
+
}
|
|
19298
|
+
};
|
|
19299
|
+
|
|
19300
|
+
this.arrayBuffer = function() {
|
|
19301
|
+
if (this._bodyArrayBuffer) {
|
|
19302
|
+
return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
|
|
19303
|
+
} else {
|
|
19304
|
+
return this.blob().then(readBlobAsArrayBuffer)
|
|
19305
|
+
}
|
|
19306
|
+
};
|
|
19307
|
+
}
|
|
19308
|
+
|
|
19309
|
+
this.text = function() {
|
|
19310
|
+
var rejected = consumed(this);
|
|
19311
|
+
if (rejected) {
|
|
19312
|
+
return rejected
|
|
19313
|
+
}
|
|
19314
|
+
|
|
19315
|
+
if (this._bodyBlob) {
|
|
19316
|
+
return readBlobAsText(this._bodyBlob)
|
|
19317
|
+
} else if (this._bodyArrayBuffer) {
|
|
19318
|
+
return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
|
|
19319
|
+
} else if (this._bodyFormData) {
|
|
19320
|
+
throw new Error('could not read FormData body as text')
|
|
19321
|
+
} else {
|
|
19322
|
+
return Promise.resolve(this._bodyText)
|
|
19323
|
+
}
|
|
19324
|
+
};
|
|
19325
|
+
|
|
19326
|
+
if (support.formData) {
|
|
19327
|
+
this.formData = function() {
|
|
19328
|
+
return this.text().then(decode)
|
|
19329
|
+
};
|
|
19330
|
+
}
|
|
19331
|
+
|
|
19332
|
+
this.json = function() {
|
|
19333
|
+
return this.text().then(JSON.parse)
|
|
19334
|
+
};
|
|
19335
|
+
|
|
19336
|
+
return this
|
|
19337
|
+
}
|
|
19338
|
+
|
|
19339
|
+
// HTTP methods whose capitalization should be normalized
|
|
19340
|
+
var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
|
|
19341
|
+
|
|
19342
|
+
function normalizeMethod(method) {
|
|
19343
|
+
var upcased = method.toUpperCase();
|
|
19344
|
+
return methods.indexOf(upcased) > -1 ? upcased : method
|
|
19345
|
+
}
|
|
19346
|
+
|
|
19347
|
+
function Request(input, options) {
|
|
19348
|
+
options = options || {};
|
|
19349
|
+
var body = options.body;
|
|
19350
|
+
|
|
19351
|
+
if (input instanceof Request) {
|
|
19352
|
+
if (input.bodyUsed) {
|
|
19353
|
+
throw new TypeError('Already read')
|
|
19354
|
+
}
|
|
19355
|
+
this.url = input.url;
|
|
19356
|
+
this.credentials = input.credentials;
|
|
19357
|
+
if (!options.headers) {
|
|
19358
|
+
this.headers = new Headers(input.headers);
|
|
19359
|
+
}
|
|
19360
|
+
this.method = input.method;
|
|
19361
|
+
this.mode = input.mode;
|
|
19362
|
+
this.signal = input.signal;
|
|
19363
|
+
if (!body && input._bodyInit != null) {
|
|
19364
|
+
body = input._bodyInit;
|
|
19365
|
+
input.bodyUsed = true;
|
|
19366
|
+
}
|
|
19367
|
+
} else {
|
|
19368
|
+
this.url = String(input);
|
|
19369
|
+
}
|
|
19370
|
+
|
|
19371
|
+
this.credentials = options.credentials || this.credentials || 'same-origin';
|
|
19372
|
+
if (options.headers || !this.headers) {
|
|
19373
|
+
this.headers = new Headers(options.headers);
|
|
19374
|
+
}
|
|
19375
|
+
this.method = normalizeMethod(options.method || this.method || 'GET');
|
|
19376
|
+
this.mode = options.mode || this.mode || null;
|
|
19377
|
+
this.signal = options.signal || this.signal;
|
|
19378
|
+
this.referrer = null;
|
|
19379
|
+
|
|
19380
|
+
if ((this.method === 'GET' || this.method === 'HEAD') && body) {
|
|
19381
|
+
throw new TypeError('Body not allowed for GET or HEAD requests')
|
|
19382
|
+
}
|
|
19383
|
+
this._initBody(body);
|
|
19384
|
+
}
|
|
19385
|
+
|
|
19386
|
+
Request.prototype.clone = function() {
|
|
19387
|
+
return new Request(this, {body: this._bodyInit})
|
|
19388
|
+
};
|
|
19389
|
+
|
|
19390
|
+
function decode(body) {
|
|
19391
|
+
var form = new FormData();
|
|
19392
|
+
body
|
|
19393
|
+
.trim()
|
|
19394
|
+
.split('&')
|
|
19395
|
+
.forEach(function(bytes) {
|
|
19396
|
+
if (bytes) {
|
|
19397
|
+
var split = bytes.split('=');
|
|
19398
|
+
var name = split.shift().replace(/\+/g, ' ');
|
|
19399
|
+
var value = split.join('=').replace(/\+/g, ' ');
|
|
19400
|
+
form.append(decodeURIComponent(name), decodeURIComponent(value));
|
|
19401
|
+
}
|
|
19402
|
+
});
|
|
19403
|
+
return form
|
|
19404
|
+
}
|
|
19405
|
+
|
|
19406
|
+
function parseHeaders(rawHeaders) {
|
|
19407
|
+
var headers = new Headers();
|
|
19408
|
+
// Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
|
|
19409
|
+
// https://tools.ietf.org/html/rfc7230#section-3.2
|
|
19410
|
+
var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
|
|
19411
|
+
preProcessedHeaders.split(/\r?\n/).forEach(function(line) {
|
|
19412
|
+
var parts = line.split(':');
|
|
19413
|
+
var key = parts.shift().trim();
|
|
19414
|
+
if (key) {
|
|
19415
|
+
var value = parts.join(':').trim();
|
|
19416
|
+
headers.append(key, value);
|
|
19417
|
+
}
|
|
19418
|
+
});
|
|
19419
|
+
return headers
|
|
19420
|
+
}
|
|
19421
|
+
|
|
19422
|
+
Body.call(Request.prototype);
|
|
19423
|
+
|
|
19424
|
+
function Response(bodyInit, options) {
|
|
19425
|
+
if (!options) {
|
|
19426
|
+
options = {};
|
|
19427
|
+
}
|
|
19428
|
+
|
|
19429
|
+
this.type = 'default';
|
|
19430
|
+
this.status = options.status === undefined ? 200 : options.status;
|
|
19431
|
+
this.ok = this.status >= 200 && this.status < 300;
|
|
19432
|
+
this.statusText = 'statusText' in options ? options.statusText : 'OK';
|
|
19433
|
+
this.headers = new Headers(options.headers);
|
|
19434
|
+
this.url = options.url || '';
|
|
19435
|
+
this._initBody(bodyInit);
|
|
19436
|
+
}
|
|
19437
|
+
|
|
19438
|
+
Body.call(Response.prototype);
|
|
19439
|
+
|
|
19440
|
+
Response.prototype.clone = function() {
|
|
19441
|
+
return new Response(this._bodyInit, {
|
|
19442
|
+
status: this.status,
|
|
19443
|
+
statusText: this.statusText,
|
|
19444
|
+
headers: new Headers(this.headers),
|
|
19445
|
+
url: this.url
|
|
19446
|
+
})
|
|
19447
|
+
};
|
|
19448
|
+
|
|
19449
|
+
Response.error = function() {
|
|
19450
|
+
var response = new Response(null, {status: 0, statusText: ''});
|
|
19451
|
+
response.type = 'error';
|
|
19452
|
+
return response
|
|
19453
|
+
};
|
|
19454
|
+
|
|
19455
|
+
var redirectStatuses = [301, 302, 303, 307, 308];
|
|
19456
|
+
|
|
19457
|
+
Response.redirect = function(url, status) {
|
|
19458
|
+
if (redirectStatuses.indexOf(status) === -1) {
|
|
19459
|
+
throw new RangeError('Invalid status code')
|
|
19460
|
+
}
|
|
19461
|
+
|
|
19462
|
+
return new Response(null, {status: status, headers: {location: url}})
|
|
19463
|
+
};
|
|
19464
|
+
|
|
19465
|
+
exports.DOMException = self.DOMException;
|
|
19466
|
+
try {
|
|
19467
|
+
new exports.DOMException();
|
|
19468
|
+
} catch (err) {
|
|
19469
|
+
exports.DOMException = function(message, name) {
|
|
19470
|
+
this.message = message;
|
|
19471
|
+
this.name = name;
|
|
19472
|
+
var error = Error(message);
|
|
19473
|
+
this.stack = error.stack;
|
|
19474
|
+
};
|
|
19475
|
+
exports.DOMException.prototype = Object.create(Error.prototype);
|
|
19476
|
+
exports.DOMException.prototype.constructor = exports.DOMException;
|
|
19477
|
+
}
|
|
19478
|
+
|
|
19479
|
+
function fetch(input, init) {
|
|
19480
|
+
return new Promise(function(resolve, reject) {
|
|
19481
|
+
var request = new Request(input, init);
|
|
19482
|
+
|
|
19483
|
+
if (request.signal && request.signal.aborted) {
|
|
19484
|
+
return reject(new exports.DOMException('Aborted', 'AbortError'))
|
|
19485
|
+
}
|
|
19486
|
+
|
|
19487
|
+
var xhr = new XMLHttpRequest();
|
|
19488
|
+
|
|
19489
|
+
function abortXhr() {
|
|
19490
|
+
xhr.abort();
|
|
19491
|
+
}
|
|
19492
|
+
|
|
19493
|
+
xhr.onload = function() {
|
|
19494
|
+
var options = {
|
|
19495
|
+
status: xhr.status,
|
|
19496
|
+
statusText: xhr.statusText,
|
|
19497
|
+
headers: parseHeaders(xhr.getAllResponseHeaders() || '')
|
|
19498
|
+
};
|
|
19499
|
+
options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');
|
|
19500
|
+
var body = 'response' in xhr ? xhr.response : xhr.responseText;
|
|
19501
|
+
resolve(new Response(body, options));
|
|
19502
|
+
};
|
|
19503
|
+
|
|
19504
|
+
xhr.onerror = function() {
|
|
19505
|
+
reject(new TypeError('Network request failed'));
|
|
19506
|
+
};
|
|
19507
|
+
|
|
19508
|
+
xhr.ontimeout = function() {
|
|
19509
|
+
reject(new TypeError('Network request failed'));
|
|
19510
|
+
};
|
|
19511
|
+
|
|
19512
|
+
xhr.onabort = function() {
|
|
19513
|
+
reject(new exports.DOMException('Aborted', 'AbortError'));
|
|
19514
|
+
};
|
|
19515
|
+
|
|
19516
|
+
xhr.open(request.method, request.url, true);
|
|
19517
|
+
|
|
19518
|
+
if (request.credentials === 'include') {
|
|
19519
|
+
xhr.withCredentials = true;
|
|
19520
|
+
} else if (request.credentials === 'omit') {
|
|
19521
|
+
xhr.withCredentials = false;
|
|
19522
|
+
}
|
|
19523
|
+
|
|
19524
|
+
if ('responseType' in xhr && support.blob) {
|
|
19525
|
+
xhr.responseType = 'blob';
|
|
19526
|
+
}
|
|
19527
|
+
|
|
19528
|
+
request.headers.forEach(function(value, name) {
|
|
19529
|
+
xhr.setRequestHeader(name, value);
|
|
19530
|
+
});
|
|
19531
|
+
|
|
19532
|
+
if (request.signal) {
|
|
19533
|
+
request.signal.addEventListener('abort', abortXhr);
|
|
19534
|
+
|
|
19535
|
+
xhr.onreadystatechange = function() {
|
|
19536
|
+
// DONE (success or failure)
|
|
19537
|
+
if (xhr.readyState === 4) {
|
|
19538
|
+
request.signal.removeEventListener('abort', abortXhr);
|
|
19539
|
+
}
|
|
19540
|
+
};
|
|
19541
|
+
}
|
|
19542
|
+
|
|
19543
|
+
xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);
|
|
19544
|
+
})
|
|
19545
|
+
}
|
|
19546
|
+
|
|
19547
|
+
fetch.polyfill = true;
|
|
19548
|
+
|
|
19549
|
+
if (!self.fetch) {
|
|
19550
|
+
self.fetch = fetch;
|
|
19551
|
+
self.Headers = Headers;
|
|
19552
|
+
self.Request = Request;
|
|
19553
|
+
self.Response = Response;
|
|
19554
|
+
}
|
|
19555
|
+
|
|
19556
|
+
exports.Headers = Headers;
|
|
19557
|
+
exports.Request = Request;
|
|
19558
|
+
exports.Response = Response;
|
|
19559
|
+
exports.fetch = fetch;
|
|
19560
|
+
|
|
19561
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
19562
|
+
|
|
19563
|
+
return exports;
|
|
19564
|
+
|
|
19565
|
+
})({});
|
|
19566
|
+
})(__self__);
|
|
19567
|
+
__self__.fetch.ponyfill = true;
|
|
19568
|
+
// Remove "polyfill" property added by whatwg-fetch
|
|
19569
|
+
delete __self__.fetch.polyfill;
|
|
19570
|
+
// Choose between native implementation (global) or custom implementation (__self__)
|
|
19571
|
+
// var ctx = global.fetch ? global : __self__;
|
|
19572
|
+
var ctx = __self__; // this line disable service worker support temporarily
|
|
19573
|
+
exports = ctx.fetch // To enable: import fetch from 'cross-fetch'
|
|
19574
|
+
exports["default"] = ctx.fetch // For TypeScript consumers without esModuleInterop.
|
|
19575
|
+
exports.fetch = ctx.fetch // To enable: import {fetch} from 'cross-fetch'
|
|
19576
|
+
exports.Headers = ctx.Headers
|
|
19577
|
+
exports.Request = ctx.Request
|
|
19578
|
+
exports.Response = ctx.Response
|
|
19579
|
+
module.exports = exports
|
|
19580
|
+
|
|
19581
|
+
|
|
19018
19582
|
/***/ }),
|
|
19019
19583
|
|
|
19020
19584
|
/***/ "../../common/temp/node_modules/.pnpm/deep-assign@2.0.0/node_modules/deep-assign/index.js":
|
|
@@ -20910,8 +21474,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20910
21474
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20911
21475
|
/* harmony export */ "default": () => (/* binding */ Browser)
|
|
20912
21476
|
/* harmony export */ });
|
|
20913
|
-
/* 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.
|
|
20914
|
-
/* 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.
|
|
21477
|
+
/* 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");
|
|
21478
|
+
/* 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");
|
|
20915
21479
|
|
|
20916
21480
|
|
|
20917
21481
|
|
|
@@ -21334,235 +21898,6 @@ Browser.type = 'languageDetector';
|
|
|
21334
21898
|
|
|
21335
21899
|
|
|
21336
21900
|
|
|
21337
|
-
/***/ }),
|
|
21338
|
-
|
|
21339
|
-
/***/ "../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js":
|
|
21340
|
-
/*!*************************************************************************************************************************************!*\
|
|
21341
|
-
!*** ../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js ***!
|
|
21342
|
-
\*************************************************************************************************************************************/
|
|
21343
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
21344
|
-
|
|
21345
|
-
"use strict";
|
|
21346
|
-
__webpack_require__.r(__webpack_exports__);
|
|
21347
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21348
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
21349
|
-
/* harmony export */ });
|
|
21350
|
-
/* 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");
|
|
21351
|
-
/* 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");
|
|
21352
|
-
/* 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");
|
|
21353
|
-
/* 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");
|
|
21354
|
-
|
|
21355
|
-
|
|
21356
|
-
|
|
21357
|
-
|
|
21358
|
-
|
|
21359
|
-
var arr = [];
|
|
21360
|
-
var each = arr.forEach;
|
|
21361
|
-
var slice = arr.slice;
|
|
21362
|
-
function defaults(obj) {
|
|
21363
|
-
each.call(slice.call(arguments, 1), function (source) {
|
|
21364
|
-
if (source) {
|
|
21365
|
-
for (var prop in source) {
|
|
21366
|
-
if (obj[prop] === undefined) obj[prop] = source[prop];
|
|
21367
|
-
}
|
|
21368
|
-
}
|
|
21369
|
-
});
|
|
21370
|
-
return obj;
|
|
21371
|
-
}
|
|
21372
|
-
|
|
21373
|
-
function addQueryString(url, params) {
|
|
21374
|
-
if (params && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(params) === 'object') {
|
|
21375
|
-
var queryString = '',
|
|
21376
|
-
e = encodeURIComponent; // Must encode data
|
|
21377
|
-
|
|
21378
|
-
for (var paramName in params) {
|
|
21379
|
-
queryString += '&' + e(paramName) + '=' + e(params[paramName]);
|
|
21380
|
-
}
|
|
21381
|
-
|
|
21382
|
-
if (!queryString) {
|
|
21383
|
-
return url;
|
|
21384
|
-
}
|
|
21385
|
-
|
|
21386
|
-
url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
|
|
21387
|
-
}
|
|
21388
|
-
|
|
21389
|
-
return url;
|
|
21390
|
-
} // https://gist.github.com/Xeoncross/7663273
|
|
21391
|
-
|
|
21392
|
-
|
|
21393
|
-
function ajax(url, options, callback, data, cache) {
|
|
21394
|
-
if (data && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(data) === 'object') {
|
|
21395
|
-
if (!cache) {
|
|
21396
|
-
data['_t'] = new Date();
|
|
21397
|
-
} // URL encoded form data must be in querystring format
|
|
21398
|
-
|
|
21399
|
-
|
|
21400
|
-
data = addQueryString('', data).slice(1);
|
|
21401
|
-
}
|
|
21402
|
-
|
|
21403
|
-
if (options.queryStringParams) {
|
|
21404
|
-
url = addQueryString(url, options.queryStringParams);
|
|
21405
|
-
}
|
|
21406
|
-
|
|
21407
|
-
try {
|
|
21408
|
-
var x;
|
|
21409
|
-
|
|
21410
|
-
if (XMLHttpRequest) {
|
|
21411
|
-
x = new XMLHttpRequest();
|
|
21412
|
-
} else {
|
|
21413
|
-
x = new ActiveXObject('MSXML2.XMLHTTP.3.0');
|
|
21414
|
-
}
|
|
21415
|
-
|
|
21416
|
-
x.open(data ? 'POST' : 'GET', url, 1);
|
|
21417
|
-
|
|
21418
|
-
if (!options.crossDomain) {
|
|
21419
|
-
x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
|
21420
|
-
}
|
|
21421
|
-
|
|
21422
|
-
x.withCredentials = !!options.withCredentials;
|
|
21423
|
-
|
|
21424
|
-
if (data) {
|
|
21425
|
-
x.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
|
21426
|
-
}
|
|
21427
|
-
|
|
21428
|
-
if (x.overrideMimeType) {
|
|
21429
|
-
x.overrideMimeType("application/json");
|
|
21430
|
-
}
|
|
21431
|
-
|
|
21432
|
-
var h = options.customHeaders;
|
|
21433
|
-
h = typeof h === 'function' ? h() : h;
|
|
21434
|
-
|
|
21435
|
-
if (h) {
|
|
21436
|
-
for (var i in h) {
|
|
21437
|
-
x.setRequestHeader(i, h[i]);
|
|
21438
|
-
}
|
|
21439
|
-
}
|
|
21440
|
-
|
|
21441
|
-
x.onreadystatechange = function () {
|
|
21442
|
-
x.readyState > 3 && callback && callback(x.responseText, x);
|
|
21443
|
-
};
|
|
21444
|
-
|
|
21445
|
-
x.send(data);
|
|
21446
|
-
} catch (e) {
|
|
21447
|
-
console && console.log(e);
|
|
21448
|
-
}
|
|
21449
|
-
}
|
|
21450
|
-
|
|
21451
|
-
function getDefaults() {
|
|
21452
|
-
return {
|
|
21453
|
-
loadPath: '/locales/{{lng}}/{{ns}}.json',
|
|
21454
|
-
addPath: '/locales/add/{{lng}}/{{ns}}',
|
|
21455
|
-
allowMultiLoading: false,
|
|
21456
|
-
parse: JSON.parse,
|
|
21457
|
-
parsePayload: function parsePayload(namespace, key, fallbackValue) {
|
|
21458
|
-
return (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, key, fallbackValue || '');
|
|
21459
|
-
},
|
|
21460
|
-
crossDomain: false,
|
|
21461
|
-
ajax: ajax
|
|
21462
|
-
};
|
|
21463
|
-
}
|
|
21464
|
-
|
|
21465
|
-
var Backend =
|
|
21466
|
-
/*#__PURE__*/
|
|
21467
|
-
function () {
|
|
21468
|
-
function Backend(services) {
|
|
21469
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
21470
|
-
|
|
21471
|
-
(0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, Backend);
|
|
21472
|
-
|
|
21473
|
-
this.init(services, options);
|
|
21474
|
-
this.type = 'backend';
|
|
21475
|
-
}
|
|
21476
|
-
|
|
21477
|
-
(0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(Backend, [{
|
|
21478
|
-
key: "init",
|
|
21479
|
-
value: function init(services) {
|
|
21480
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
21481
|
-
this.services = services;
|
|
21482
|
-
this.options = defaults(options, this.options || {}, getDefaults());
|
|
21483
|
-
}
|
|
21484
|
-
}, {
|
|
21485
|
-
key: "readMulti",
|
|
21486
|
-
value: function readMulti(languages, namespaces, callback) {
|
|
21487
|
-
var loadPath = this.options.loadPath;
|
|
21488
|
-
|
|
21489
|
-
if (typeof this.options.loadPath === 'function') {
|
|
21490
|
-
loadPath = this.options.loadPath(languages, namespaces);
|
|
21491
|
-
}
|
|
21492
|
-
|
|
21493
|
-
var url = this.services.interpolator.interpolate(loadPath, {
|
|
21494
|
-
lng: languages.join('+'),
|
|
21495
|
-
ns: namespaces.join('+')
|
|
21496
|
-
});
|
|
21497
|
-
this.loadUrl(url, callback);
|
|
21498
|
-
}
|
|
21499
|
-
}, {
|
|
21500
|
-
key: "read",
|
|
21501
|
-
value: function read(language, namespace, callback) {
|
|
21502
|
-
var loadPath = this.options.loadPath;
|
|
21503
|
-
|
|
21504
|
-
if (typeof this.options.loadPath === 'function') {
|
|
21505
|
-
loadPath = this.options.loadPath([language], [namespace]);
|
|
21506
|
-
}
|
|
21507
|
-
|
|
21508
|
-
var url = this.services.interpolator.interpolate(loadPath, {
|
|
21509
|
-
lng: language,
|
|
21510
|
-
ns: namespace
|
|
21511
|
-
});
|
|
21512
|
-
this.loadUrl(url, callback);
|
|
21513
|
-
}
|
|
21514
|
-
}, {
|
|
21515
|
-
key: "loadUrl",
|
|
21516
|
-
value: function loadUrl(url, callback) {
|
|
21517
|
-
var _this = this;
|
|
21518
|
-
|
|
21519
|
-
this.options.ajax(url, this.options, function (data, xhr) {
|
|
21520
|
-
if (xhr.status >= 500 && xhr.status < 600) return callback('failed loading ' + url, true
|
|
21521
|
-
/* retry */
|
|
21522
|
-
);
|
|
21523
|
-
if (xhr.status >= 400 && xhr.status < 500) return callback('failed loading ' + url, false
|
|
21524
|
-
/* no retry */
|
|
21525
|
-
);
|
|
21526
|
-
var ret, err;
|
|
21527
|
-
|
|
21528
|
-
try {
|
|
21529
|
-
ret = _this.options.parse(data, url);
|
|
21530
|
-
} catch (e) {
|
|
21531
|
-
err = 'failed parsing ' + url + ' to json';
|
|
21532
|
-
}
|
|
21533
|
-
|
|
21534
|
-
if (err) return callback(err, false);
|
|
21535
|
-
callback(null, ret);
|
|
21536
|
-
});
|
|
21537
|
-
}
|
|
21538
|
-
}, {
|
|
21539
|
-
key: "create",
|
|
21540
|
-
value: function create(languages, namespace, key, fallbackValue) {
|
|
21541
|
-
var _this2 = this;
|
|
21542
|
-
|
|
21543
|
-
if (typeof languages === 'string') languages = [languages];
|
|
21544
|
-
var payload = this.options.parsePayload(namespace, key, fallbackValue);
|
|
21545
|
-
languages.forEach(function (lng) {
|
|
21546
|
-
var url = _this2.services.interpolator.interpolate(_this2.options.addPath, {
|
|
21547
|
-
lng: lng,
|
|
21548
|
-
ns: namespace
|
|
21549
|
-
});
|
|
21550
|
-
|
|
21551
|
-
_this2.options.ajax(url, _this2.options, function (data, xhr) {//const statusCode = xhr.status.toString();
|
|
21552
|
-
// TODO: if statusCode === 4xx do log
|
|
21553
|
-
}, payload);
|
|
21554
|
-
});
|
|
21555
|
-
}
|
|
21556
|
-
}]);
|
|
21557
|
-
|
|
21558
|
-
return Backend;
|
|
21559
|
-
}();
|
|
21560
|
-
|
|
21561
|
-
Backend.type = 'backend';
|
|
21562
|
-
|
|
21563
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
|
|
21564
|
-
|
|
21565
|
-
|
|
21566
21901
|
/***/ }),
|
|
21567
21902
|
|
|
21568
21903
|
/***/ "../../common/temp/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js":
|
|
@@ -61778,20 +62113,20 @@ var AmbientOcclusion;
|
|
|
61778
62113
|
static fromJSON(json) { return undefined !== json ? new Settings(json) : this.defaults; }
|
|
61779
62114
|
toJSON() {
|
|
61780
62115
|
return {
|
|
61781
|
-
bias: this.bias,
|
|
61782
|
-
zLengthCap: this.zLengthCap,
|
|
61783
|
-
maxDistance: this.maxDistance,
|
|
61784
|
-
intensity: this.intensity,
|
|
61785
|
-
texelStepSize: this.texelStepSize,
|
|
61786
|
-
blurDelta: this.blurDelta,
|
|
61787
|
-
blurSigma: this.blurSigma,
|
|
61788
|
-
blurTexelStepSize: this.blurTexelStepSize,
|
|
62116
|
+
bias: this.bias !== Settings._defaultBias ? this.bias : undefined,
|
|
62117
|
+
zLengthCap: this.zLengthCap !== Settings._defaultZLengthCap ? this.zLengthCap : undefined,
|
|
62118
|
+
maxDistance: this.maxDistance !== Settings._defaultMaxDistance ? this.maxDistance : undefined,
|
|
62119
|
+
intensity: this.intensity !== Settings._defaultIntensity ? this.intensity : undefined,
|
|
62120
|
+
texelStepSize: this.texelStepSize !== Settings._defaultTexelStepSize ? this.texelStepSize : undefined,
|
|
62121
|
+
blurDelta: this.blurDelta !== Settings._defaultBlurDelta ? this.blurDelta : undefined,
|
|
62122
|
+
blurSigma: this.blurSigma !== Settings._defaultBlurSigma ? this.blurSigma : undefined,
|
|
62123
|
+
blurTexelStepSize: this.blurTexelStepSize !== Settings._defaultBlurTexelStepSize ? this.blurTexelStepSize : undefined,
|
|
61789
62124
|
};
|
|
61790
62125
|
}
|
|
61791
62126
|
}
|
|
61792
62127
|
Settings._defaultBias = 0.25;
|
|
61793
62128
|
Settings._defaultZLengthCap = 0.0025;
|
|
61794
|
-
Settings._defaultMaxDistance =
|
|
62129
|
+
Settings._defaultMaxDistance = 10000.0;
|
|
61795
62130
|
Settings._defaultIntensity = 1.0;
|
|
61796
62131
|
Settings._defaultTexelStepSize = 1;
|
|
61797
62132
|
Settings._defaultBlurDelta = 1.0;
|
|
@@ -68596,13 +68931,12 @@ var Gradient;
|
|
|
68596
68931
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== imageBuffer);
|
|
68597
68932
|
return imageBuffer;
|
|
68598
68933
|
}
|
|
68599
|
-
/** Applies this gradient's settings to produce a bitmap image.
|
|
68934
|
+
/** Applies this gradient's settings to produce a bitmap image.
|
|
68935
|
+
* @param width Width of the image
|
|
68936
|
+
* @param height Height of the image
|
|
68937
|
+
* @returns Bitmap image of the specified dimensions. For thematic gradients with a width > 1, pixels in each column will be identical.
|
|
68938
|
+
*/
|
|
68600
68939
|
getImage(width, height) {
|
|
68601
|
-
if (this.mode === Mode.Thematic) {
|
|
68602
|
-
// Allow caller to pass in height but not width. Thematic gradients are always one-dimensional.
|
|
68603
|
-
// NB: The height used to be hardcoded to 8192 here. Now we will let the render system decide.
|
|
68604
|
-
width = 1; // Force width to 1 for thematic gradients.
|
|
68605
|
-
}
|
|
68606
68940
|
const thisAngle = (this.angle === undefined) ? 0 : this.angle.radians;
|
|
68607
68941
|
const cosA = Math.cos(thisAngle);
|
|
68608
68942
|
const sinA = Math.sin(thisAngle);
|
|
@@ -68715,25 +69049,20 @@ var Gradient;
|
|
|
68715
69049
|
for (let j = 0; j < height; j++) {
|
|
68716
69050
|
let f = 1 - j / height;
|
|
68717
69051
|
let color;
|
|
68718
|
-
|
|
68719
|
-
|
|
68720
|
-
|
|
68721
|
-
|
|
68722
|
-
|
|
68723
|
-
|
|
68724
|
-
|
|
68725
|
-
|
|
68726
|
-
case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.Stepped: {
|
|
68727
|
-
if (settings.stepCount > 1) {
|
|
68728
|
-
const fStep = Math.floor(f * settings.stepCount - 0.00001) / (settings.stepCount - 1);
|
|
68729
|
-
color = this.mapColor(fStep);
|
|
68730
|
-
}
|
|
68731
|
-
break;
|
|
69052
|
+
f = (f - _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.margin) / (_ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.contentRange);
|
|
69053
|
+
switch (settings.mode) {
|
|
69054
|
+
case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.SteppedWithDelimiter:
|
|
69055
|
+
case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.IsoLines:
|
|
69056
|
+
case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.Stepped: {
|
|
69057
|
+
if (settings.stepCount > 1) {
|
|
69058
|
+
const fStep = Math.floor(f * settings.stepCount - 0.00001) / (settings.stepCount - 1);
|
|
69059
|
+
color = this.mapColor(fStep);
|
|
68732
69060
|
}
|
|
68733
|
-
|
|
68734
|
-
color = this.mapColor(f);
|
|
68735
|
-
break;
|
|
69061
|
+
break;
|
|
68736
69062
|
}
|
|
69063
|
+
case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.Smooth:
|
|
69064
|
+
color = this.mapColor(f);
|
|
69065
|
+
break;
|
|
68737
69066
|
}
|
|
68738
69067
|
for (let i = 0; i < width; i++) {
|
|
68739
69068
|
image[currentIdx--] = color.getAlpha();
|
|
@@ -86460,6 +86789,7 @@ class IpcWebSocketBackend extends IpcWebSocket {
|
|
|
86460
86789
|
constructor() {
|
|
86461
86790
|
super();
|
|
86462
86791
|
this._handlers = new Map();
|
|
86792
|
+
this._processingQueue = [];
|
|
86463
86793
|
IpcWebSocket.receivers.add(async (e, m) => this.dispatch(e, m));
|
|
86464
86794
|
}
|
|
86465
86795
|
send(channel, ...data) {
|
|
@@ -86473,22 +86803,35 @@ class IpcWebSocketBackend extends IpcWebSocket {
|
|
|
86473
86803
|
};
|
|
86474
86804
|
}
|
|
86475
86805
|
async dispatch(_evt, message) {
|
|
86476
|
-
if (message.type !== IpcWebSocketMessageType.Invoke
|
|
86806
|
+
if (message.type !== IpcWebSocketMessageType.Invoke)
|
|
86477
86807
|
return;
|
|
86478
|
-
|
|
86479
|
-
|
|
86808
|
+
this._processingQueue.push(message);
|
|
86809
|
+
await this.processMessages();
|
|
86810
|
+
}
|
|
86811
|
+
async processMessages() {
|
|
86812
|
+
if (this._processing || !this._processingQueue.length) {
|
|
86480
86813
|
return;
|
|
86481
|
-
|
|
86482
|
-
|
|
86483
|
-
|
|
86484
|
-
|
|
86485
|
-
|
|
86486
|
-
|
|
86487
|
-
|
|
86488
|
-
|
|
86489
|
-
|
|
86490
|
-
|
|
86491
|
-
|
|
86814
|
+
}
|
|
86815
|
+
const message = this._processingQueue.shift();
|
|
86816
|
+
if (message && message.method) {
|
|
86817
|
+
const handler = this._handlers.get(message.channel);
|
|
86818
|
+
if (handler) {
|
|
86819
|
+
this._processing = message;
|
|
86820
|
+
let args = message.data;
|
|
86821
|
+
if (typeof (args) === "undefined")
|
|
86822
|
+
args = [];
|
|
86823
|
+
const response = await handler({}, message.method, ...args);
|
|
86824
|
+
IpcWebSocket.transport.send({
|
|
86825
|
+
type: IpcWebSocketMessageType.Response,
|
|
86826
|
+
channel: message.channel,
|
|
86827
|
+
response: message.request,
|
|
86828
|
+
data: response,
|
|
86829
|
+
sequence: -1,
|
|
86830
|
+
});
|
|
86831
|
+
this._processing = undefined;
|
|
86832
|
+
}
|
|
86833
|
+
}
|
|
86834
|
+
await this.processMessages();
|
|
86492
86835
|
}
|
|
86493
86836
|
}
|
|
86494
86837
|
|
|
@@ -86783,6 +87126,7 @@ class IModelReadRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_2__.
|
|
|
86783
87126
|
===========================================================================================*/
|
|
86784
87127
|
async getConnectionProps(_iModelToken) { return this.forward(arguments); }
|
|
86785
87128
|
async queryRows(_iModelToken, _request) { return this.forward(arguments); }
|
|
87129
|
+
async querySubCategories(_iModelToken, _categoryIds) { return this.forward(arguments); }
|
|
86786
87130
|
async queryBlob(_iModelToken, _request) { return this.forward(arguments); }
|
|
86787
87131
|
async getModelProps(_iModelToken, _modelIds) { return this.forward(arguments); }
|
|
86788
87132
|
async queryModelRanges(_iModelToken, _modelIds) { return this.forward(arguments); }
|
|
@@ -86820,6 +87164,9 @@ IModelReadRpcInterface.interfaceVersion = "3.2.0";
|
|
|
86820
87164
|
__decorate([
|
|
86821
87165
|
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
|
|
86822
87166
|
], IModelReadRpcInterface.prototype, "getConnectionProps", null);
|
|
87167
|
+
__decorate([
|
|
87168
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
|
|
87169
|
+
], IModelReadRpcInterface.prototype, "querySubCategories", null);
|
|
86823
87170
|
__decorate([
|
|
86824
87171
|
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
|
|
86825
87172
|
], IModelReadRpcInterface.prototype, "getModelProps", null);
|
|
@@ -112693,6 +113040,15 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
112693
113040
|
};
|
|
112694
113041
|
return new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ECSqlReader(executor, ecsql, params, config);
|
|
112695
113042
|
}
|
|
113043
|
+
/**
|
|
113044
|
+
* queries the BisCore.SubCategory table for the entries that are children of the passed categoryIds
|
|
113045
|
+
* @param compressedCategoryIds compressed category Ids
|
|
113046
|
+
* @returns array of SubCategoryResultRow
|
|
113047
|
+
* @internal
|
|
113048
|
+
*/
|
|
113049
|
+
async querySubCategories(compressedCategoryIds) {
|
|
113050
|
+
return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).querySubCategories(this.getRpcProps(), compressedCategoryIds);
|
|
113051
|
+
}
|
|
112696
113052
|
/** Execute a query and stream its results
|
|
112697
113053
|
* 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.
|
|
112698
113054
|
* [ECSQL row]($docs/learning/ECSQLRowFormat).
|
|
@@ -115887,29 +116243,73 @@ class PerModelCategoryVisibilityOverrides extends _itwin_core_bentley__WEBPACK_I
|
|
|
115887
116243
|
else
|
|
115888
116244
|
return PerModelCategoryVisibility.Override.None;
|
|
115889
116245
|
}
|
|
115890
|
-
|
|
116246
|
+
/**
|
|
116247
|
+
* set the overrides for multiple perModelCategoryVisibility props, loading categoryIds from the iModel if necessary.
|
|
116248
|
+
* @see [[PerModelCategoryVisibility]]
|
|
116249
|
+
* @param perModelCategoryVisibility array of model category visibility overrides @see [[PerModelCategoryVisibility.Props]]
|
|
116250
|
+
* @param iModel Optional param iModel. If no iModel is provided, then the iModel associated with the viewport (used to construct this class) is used.
|
|
116251
|
+
* 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
|
|
116252
|
+
* is populated as opposed to the iModel associated with the viewport which may or may not be an empty iModel.
|
|
116253
|
+
* @returns a promise that resolves once the overrides have been applied.
|
|
116254
|
+
*/
|
|
116255
|
+
async setOverrides(perModelCategoryVisibility, iModel) {
|
|
116256
|
+
let anyChanged = false;
|
|
116257
|
+
const catIdsToLoad = [];
|
|
116258
|
+
const iModelToUse = iModel ? iModel : this._vp.iModel;
|
|
116259
|
+
for (const override of perModelCategoryVisibility) {
|
|
116260
|
+
const modelId = override.modelId;
|
|
116261
|
+
// The caller may pass a single categoryId as a string, if we don't convert this to an array we will iterate
|
|
116262
|
+
// over each individual character of that string, which is not the desired behavior.
|
|
116263
|
+
const categoryIds = typeof override.categoryIds === "string" ? [override.categoryIds] : override.categoryIds;
|
|
116264
|
+
const visOverride = override.visOverride;
|
|
116265
|
+
for (const categoryId of categoryIds) {
|
|
116266
|
+
if (this.findAndUpdateOverrideInArray(modelId, categoryId, visOverride)) {
|
|
116267
|
+
anyChanged = true;
|
|
116268
|
+
if (PerModelCategoryVisibility.Override.None !== visOverride) {
|
|
116269
|
+
catIdsToLoad.push(categoryId);
|
|
116270
|
+
}
|
|
116271
|
+
}
|
|
116272
|
+
}
|
|
116273
|
+
}
|
|
116274
|
+
if (anyChanged) {
|
|
116275
|
+
this._vp.setViewedCategoriesPerModelChanged();
|
|
116276
|
+
if (catIdsToLoad.length !== 0) {
|
|
116277
|
+
this._vp.subcategories.push(iModelToUse.subcategories, catIdsToLoad, () => this._vp.setViewedCategoriesPerModelChanged());
|
|
116278
|
+
}
|
|
116279
|
+
}
|
|
116280
|
+
return;
|
|
116281
|
+
}
|
|
116282
|
+
/** Find and update the override in the array of overrides. If override not found, adds it to the array.
|
|
116283
|
+
* If the array was changed, returns true. */
|
|
116284
|
+
findAndUpdateOverrideInArray(modelId, categoryId, override) {
|
|
115891
116285
|
const ovr = this._scratch;
|
|
116286
|
+
ovr.reset(modelId, categoryId, false);
|
|
116287
|
+
let changed = false;
|
|
116288
|
+
const index = this.indexOf(ovr);
|
|
116289
|
+
if (-1 === index) {
|
|
116290
|
+
if (PerModelCategoryVisibility.Override.None !== override) {
|
|
116291
|
+
this.insert(new PerModelCategoryVisibilityOverride(modelId, categoryId, PerModelCategoryVisibility.Override.Show === override));
|
|
116292
|
+
changed = true;
|
|
116293
|
+
}
|
|
116294
|
+
}
|
|
116295
|
+
else {
|
|
116296
|
+
if (PerModelCategoryVisibility.Override.None === override) {
|
|
116297
|
+
this._array.splice(index, 1);
|
|
116298
|
+
changed = true;
|
|
116299
|
+
}
|
|
116300
|
+
else if (this._array[index].visible !== (PerModelCategoryVisibility.Override.Show === override)) {
|
|
116301
|
+
this._array[index].visible = (PerModelCategoryVisibility.Override.Show === override);
|
|
116302
|
+
changed = true;
|
|
116303
|
+
}
|
|
116304
|
+
}
|
|
116305
|
+
return changed;
|
|
116306
|
+
}
|
|
116307
|
+
setOverride(modelIds, categoryIds, override) {
|
|
115892
116308
|
let changed = false;
|
|
115893
116309
|
for (const modelId of _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.iterable(modelIds)) {
|
|
115894
116310
|
for (const categoryId of _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.iterable(categoryIds)) {
|
|
115895
|
-
|
|
115896
|
-
|
|
115897
|
-
if (-1 === index) {
|
|
115898
|
-
if (PerModelCategoryVisibility.Override.None !== override) {
|
|
115899
|
-
this.insert(new PerModelCategoryVisibilityOverride(modelId, categoryId, PerModelCategoryVisibility.Override.Show === override));
|
|
115900
|
-
changed = true;
|
|
115901
|
-
}
|
|
115902
|
-
}
|
|
115903
|
-
else {
|
|
115904
|
-
if (PerModelCategoryVisibility.Override.None === override) {
|
|
115905
|
-
this._array.splice(index, 1);
|
|
115906
|
-
changed = true;
|
|
115907
|
-
}
|
|
115908
|
-
else if (this._array[index].visible !== (PerModelCategoryVisibility.Override.Show === override)) {
|
|
115909
|
-
this._array[index].visible = (PerModelCategoryVisibility.Override.Show === override);
|
|
115910
|
-
changed = true;
|
|
115911
|
-
}
|
|
115912
|
-
}
|
|
116311
|
+
if (this.findAndUpdateOverrideInArray(modelId, categoryId, override))
|
|
116312
|
+
changed = true;
|
|
115913
116313
|
}
|
|
115914
116314
|
}
|
|
115915
116315
|
if (changed) {
|
|
@@ -118529,29 +118929,6 @@ class SubCategoriesCache {
|
|
|
118529
118929
|
cancel: () => request.cancel(),
|
|
118530
118930
|
};
|
|
118531
118931
|
}
|
|
118532
|
-
/**
|
|
118533
|
-
* Populates the notLoadedCategoryIds property of the HydrateViewStateRequestProps.
|
|
118534
|
-
* notLoadedCategoryIds is a subset of categoryIds, filtering out any ids which already have an entry in the cache.
|
|
118535
|
-
*/
|
|
118536
|
-
preload(options, categoryIds) {
|
|
118537
|
-
const missing = this.getMissing(categoryIds);
|
|
118538
|
-
if (undefined === missing)
|
|
118539
|
-
return;
|
|
118540
|
-
this._missingAtTimeOfPreload = missing;
|
|
118541
|
-
options.notLoadedCategoryIds = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.sortAndCompress(missing);
|
|
118542
|
-
}
|
|
118543
|
-
/**
|
|
118544
|
-
* Populates the SubCategoriesCache using the categoryIdsResult of the HydrateViewStateResponseProps
|
|
118545
|
-
*/
|
|
118546
|
-
postload(options) {
|
|
118547
|
-
if (options.categoryIdsResult === undefined)
|
|
118548
|
-
return;
|
|
118549
|
-
// missingAtTimeOfPreload shouldn't be undefined if options.categoryIdsResult is defined... but just to be safe we'll check
|
|
118550
|
-
const missing = this._missingAtTimeOfPreload === undefined ? new Set() : this._missingAtTimeOfPreload;
|
|
118551
|
-
this.processResults(options.categoryIdsResult, missing);
|
|
118552
|
-
// clear missing
|
|
118553
|
-
this._missingAtTimeOfPreload = undefined;
|
|
118554
|
-
}
|
|
118555
118932
|
/** Given categoryIds, return which of these are not cached. */
|
|
118556
118933
|
getMissing(categoryIds) {
|
|
118557
118934
|
let missing;
|
|
@@ -118633,38 +119010,38 @@ class SubCategoriesCache {
|
|
|
118633
119010
|
(function (SubCategoriesCache) {
|
|
118634
119011
|
class Request {
|
|
118635
119012
|
constructor(categoryIds, imodel, maxCategoriesPerQuery = 200) {
|
|
118636
|
-
this.
|
|
119013
|
+
this._categoryIds = [];
|
|
118637
119014
|
this._result = [];
|
|
118638
119015
|
this._canceled = false;
|
|
118639
|
-
this.
|
|
119016
|
+
this._curCategoryIdsIndex = 0;
|
|
118640
119017
|
this._imodel = imodel;
|
|
118641
119018
|
const catIds = [...categoryIds];
|
|
119019
|
+
_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.
|
|
118642
119020
|
while (catIds.length !== 0) {
|
|
118643
119021
|
const end = (catIds.length > maxCategoriesPerQuery) ? maxCategoriesPerQuery : catIds.length;
|
|
118644
|
-
const
|
|
118645
|
-
this.
|
|
119022
|
+
const compressedIds = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.compressArray(catIds.splice(0, end));
|
|
119023
|
+
this._categoryIds.push(compressedIds);
|
|
118646
119024
|
}
|
|
118647
119025
|
}
|
|
118648
119026
|
get wasCanceled() { return this._canceled || this._imodel.isClosed; }
|
|
118649
119027
|
cancel() { this._canceled = true; }
|
|
118650
119028
|
async dispatch() {
|
|
118651
|
-
if (this.wasCanceled || this.
|
|
119029
|
+
if (this.wasCanceled || this._curCategoryIdsIndex >= this._categoryIds.length) // handle case of empty category Id set...
|
|
118652
119030
|
return undefined;
|
|
118653
119031
|
try {
|
|
118654
|
-
const
|
|
118655
|
-
|
|
118656
|
-
|
|
118657
|
-
|
|
118658
|
-
|
|
118659
|
-
}
|
|
119032
|
+
const catIds = this._categoryIds[this._curCategoryIdsIndex];
|
|
119033
|
+
const result = await this._imodel.querySubCategories(catIds);
|
|
119034
|
+
this._result.push(...result);
|
|
119035
|
+
if (this.wasCanceled)
|
|
119036
|
+
return undefined;
|
|
118660
119037
|
}
|
|
118661
119038
|
catch {
|
|
118662
119039
|
// ###TODO: detect cases in which retry is warranted
|
|
118663
119040
|
// Note that currently, if we succeed in obtaining some pages of results and fail to retrieve another page, we will end up processing the
|
|
118664
119041
|
// incomplete results. Since we're not retrying, that's the best we can do.
|
|
118665
119042
|
}
|
|
118666
|
-
// Finished with current
|
|
118667
|
-
if (++this.
|
|
119043
|
+
// Finished with current batch of categoryIds. Dispatch the next batch if one exists.
|
|
119044
|
+
if (++this._curCategoryIdsIndex < this._categoryIds.length) {
|
|
118668
119045
|
if (this.wasCanceled)
|
|
118669
119046
|
return undefined;
|
|
118670
119047
|
else
|
|
@@ -118739,7 +119116,7 @@ class SubCategoriesCache {
|
|
|
118739
119116
|
this._request.promise.then((completed) => {
|
|
118740
119117
|
if (this._disposed)
|
|
118741
119118
|
return;
|
|
118742
|
-
// Invoke all the functions which were awaiting this set of
|
|
119119
|
+
// Invoke all the functions which were awaiting this set of IModelConnection.Categories.
|
|
118743
119120
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== this._current);
|
|
118744
119121
|
if (completed)
|
|
118745
119122
|
for (const func of this._current.funcs)
|
|
@@ -121312,7 +121689,6 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
121312
121689
|
const acsId = this.getAuxiliaryCoordinateSystemId();
|
|
121313
121690
|
if (_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.isValid(acsId))
|
|
121314
121691
|
hydrateRequest.acsId = acsId;
|
|
121315
|
-
this.iModel.subcategories.preload(hydrateRequest, this.categorySelector.categories);
|
|
121316
121692
|
}
|
|
121317
121693
|
/** Asynchronously load any required data for this ViewState from the backend.
|
|
121318
121694
|
* FINAL, No subclass should override load. If additional load behavior is needed, see preload and postload.
|
|
@@ -121327,15 +121703,16 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
121327
121703
|
const hydrateRequest = {};
|
|
121328
121704
|
this.preload(hydrateRequest);
|
|
121329
121705
|
const promises = [
|
|
121330
|
-
_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.IModelReadRpcInterface.getClientForRouting(this.iModel.routingContext.token).hydrateViewState(this.iModel.getRpcProps(), hydrateRequest)
|
|
121706
|
+
_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.IModelReadRpcInterface.getClientForRouting(this.iModel.routingContext.token).hydrateViewState(this.iModel.getRpcProps(), hydrateRequest).
|
|
121707
|
+
then(async (hydrateResponse) => this.postload(hydrateResponse)),
|
|
121331
121708
|
this.displayStyle.load(),
|
|
121332
121709
|
];
|
|
121333
|
-
const
|
|
121334
|
-
|
|
121335
|
-
|
|
121710
|
+
const subcategories = this.iModel.subcategories.load(this.categorySelector.categories);
|
|
121711
|
+
if (undefined !== subcategories)
|
|
121712
|
+
promises.push(subcategories.promise.then((_) => { }));
|
|
121713
|
+
await Promise.all(promises);
|
|
121336
121714
|
}
|
|
121337
121715
|
async postload(hydrateResponse) {
|
|
121338
|
-
this.iModel.subcategories.postload(hydrateResponse);
|
|
121339
121716
|
if (hydrateResponse.acsElementProps)
|
|
121340
121717
|
this._auxCoordSystem = _AuxCoordSys__WEBPACK_IMPORTED_MODULE_3__.AuxCoordSystemState.fromProps(hydrateResponse.acsElementProps, this.iModel);
|
|
121341
121718
|
}
|
|
@@ -156985,7 +157362,7 @@ const computeAmbientOcclusion = `
|
|
|
156985
157362
|
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.
|
|
156986
157363
|
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.
|
|
156987
157364
|
float intensity = u_hbaoSettings.z; // Raise the final occlusion to the power of this value. Larger values make the ambient shadows darker.
|
|
156988
|
-
float texelStepSize = u_hbaoSettings.w; // Indicates the distance to step toward the next texel sample in the current direction.
|
|
157365
|
+
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.
|
|
156989
157366
|
|
|
156990
157367
|
float tOcclusion = 0.0;
|
|
156991
157368
|
|
|
@@ -157030,6 +157407,9 @@ const computeAmbientOcclusion = `
|
|
|
157030
157407
|
tOcclusion += curOcclusion;
|
|
157031
157408
|
}
|
|
157032
157409
|
|
|
157410
|
+
float distanceFadeFactor = kFrustumType_Perspective == u_frustum.z ? 1.0 - pow(clamp(nonLinearDepth / u_maxDistance, 0.0, 1.0), 4.0) : 1.0;
|
|
157411
|
+
tOcclusion *= distanceFadeFactor;
|
|
157412
|
+
|
|
157033
157413
|
tOcclusion /= 4.0;
|
|
157034
157414
|
tOcclusion = 1.0 - clamp(tOcclusion, 0.0, 1.0);
|
|
157035
157415
|
tOcclusion = pow(tOcclusion, intensity);
|
|
@@ -197362,17 +197742,17 @@ class BSplineCurve3dBase extends _curve_CurvePrimitive__WEBPACK_IMPORTED_MODULE_
|
|
|
197362
197742
|
* @returns Returns a CurveLocationDetail structure that holds the details of the close point.
|
|
197363
197743
|
*/
|
|
197364
197744
|
closestPoint(spacePoint, _extend) {
|
|
197745
|
+
// seed at start point -- final point comes with final bezier perpendicular step.
|
|
197365
197746
|
const point = this.fractionToPoint(0);
|
|
197366
197747
|
const result = _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.createCurveFractionPointDistance(this, 0.0, point, point.distance(spacePoint));
|
|
197367
|
-
this.fractionToPoint(1.0, point);
|
|
197368
|
-
result.updateIfCloserCurveFractionPointDistance(this, 1.0, point, spacePoint.distance(point));
|
|
197369
197748
|
let span;
|
|
197370
197749
|
const numSpans = this.numSpan;
|
|
197371
197750
|
for (let i = 0; i < numSpans; i++) {
|
|
197372
197751
|
if (this._bcurve.knots.isIndexOfRealSpan(i)) {
|
|
197373
197752
|
span = this.getSaturatedBezierSpan3dOr3dH(i, true, span);
|
|
197374
197753
|
if (span) {
|
|
197375
|
-
if
|
|
197754
|
+
// umm ... if the bspline is discontinuous, both ends should be tested. Ignore that possibility ...
|
|
197755
|
+
if (span.updateClosestPointByTruePerpendicular(spacePoint, result, false, true)) {
|
|
197376
197756
|
// the detail records the span bezier -- promote it to the parent curve . ..
|
|
197377
197757
|
result.curve = this;
|
|
197378
197758
|
result.fraction = span.fractionToParentFraction(result.fraction);
|
|
@@ -200822,7 +201202,7 @@ class BezierCurve3dH extends _BezierCurveBase__WEBPACK_IMPORTED_MODULE_0__.Bezie
|
|
|
200822
201202
|
* @param detail pre-allocated detail to record (evolving) closest point.
|
|
200823
201203
|
* @returns true if an updated occurred, false if either (a) no perpendicular projections or (b) perpendiculars were not closer.
|
|
200824
201204
|
*/
|
|
200825
|
-
updateClosestPointByTruePerpendicular(spacePoint, detail) {
|
|
201205
|
+
updateClosestPointByTruePerpendicular(spacePoint, detail, testAt0 = false, testAt1 = false) {
|
|
200826
201206
|
let numUpdates = 0;
|
|
200827
201207
|
let roots;
|
|
200828
201208
|
if (this.isUnitWeight()) {
|
|
@@ -200874,8 +201254,17 @@ class BezierCurve3dH extends _BezierCurveBase__WEBPACK_IMPORTED_MODULE_0__.Bezie
|
|
|
200874
201254
|
numUpdates += detail.updateIfCloserCurveFractionPointDistance(this, fraction, xyz, a) ? 1 : 0;
|
|
200875
201255
|
}
|
|
200876
201256
|
}
|
|
201257
|
+
if (testAt0)
|
|
201258
|
+
numUpdates += this.updateDetailAtFraction(detail, 0.0, spacePoint) ? 1 : 0;
|
|
201259
|
+
if (testAt1)
|
|
201260
|
+
numUpdates += this.updateDetailAtFraction(detail, 1.0, spacePoint) ? 1 : 0;
|
|
200877
201261
|
return numUpdates > 0;
|
|
200878
201262
|
}
|
|
201263
|
+
updateDetailAtFraction(detail, fraction, spacePoint) {
|
|
201264
|
+
const xyz = this.fractionToPoint(fraction);
|
|
201265
|
+
const a = xyz.distance(spacePoint);
|
|
201266
|
+
return detail.updateIfCloserCurveFractionPointDistance(this, fraction, xyz, a);
|
|
201267
|
+
}
|
|
200879
201268
|
/** Extend `rangeToExtend`, using candidate extrema at
|
|
200880
201269
|
* * both end points
|
|
200881
201270
|
* * any internal extrema in x,y,z
|
|
@@ -209572,6 +209961,7 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
|
|
|
209572
209961
|
const chainFraction = this.chainDistanceToChainFraction(chainDistance);
|
|
209573
209962
|
const chainDetail = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_7__.CurveLocationDetail.createCurveFractionPoint(this, chainFraction, childDetail.point);
|
|
209574
209963
|
chainDetail.childDetail = childDetail;
|
|
209964
|
+
chainDetail.a = childDetail.a;
|
|
209575
209965
|
return chainDetail;
|
|
209576
209966
|
}
|
|
209577
209967
|
return undefined;
|
|
@@ -252841,7 +253231,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
252841
253231
|
* * Circular or elliptical pipe cross sections can be specified by supplying either a radius, a pair of semi-axis lengths, or a full Arc3d.
|
|
252842
253232
|
* * For semi-axis length input, x corresponds to an ellipse local axis nominally situated parallel to the xy-plane.
|
|
252843
253233
|
* * The center of Arc3d input is translated to the centerline start point to act as initial cross section.
|
|
252844
|
-
* @param centerline centerline of pipe
|
|
253234
|
+
* @param centerline centerline of pipe. If curved, it will be stroked using the builder's StrokeOptions.
|
|
252845
253235
|
* @param sectionData circle radius, ellipse semi-axis lengths, or full Arc3d
|
|
252846
253236
|
* @param numFacetAround how many equal parameter-space chords around each section
|
|
252847
253237
|
*/
|
|
@@ -252860,7 +253250,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
252860
253250
|
}
|
|
252861
253251
|
else if (centerline instanceof _curve_GeometryQuery__WEBPACK_IMPORTED_MODULE_32__.GeometryQuery) {
|
|
252862
253252
|
const linestring = _curve_LineString3d__WEBPACK_IMPORTED_MODULE_11__.LineString3d.create();
|
|
252863
|
-
centerline.emitStrokes(linestring);
|
|
253253
|
+
centerline.emitStrokes(linestring, this._options);
|
|
252864
253254
|
this.addMiteredPipesFromPoints(linestring.packedPoints, sectionData, numFacetAround);
|
|
252865
253255
|
}
|
|
252866
253256
|
}
|
|
@@ -263904,6 +264294,26 @@ class Sample {
|
|
|
263904
264294
|
}
|
|
263905
264295
|
return result;
|
|
263906
264296
|
}
|
|
264297
|
+
/** Create various orders of non-rational B-spline curves with helical poles */
|
|
264298
|
+
static createBsplineCurveHelices(radius, height, numTurns, numSamplesPerTurn) {
|
|
264299
|
+
const pts = [];
|
|
264300
|
+
const zDelta = (height / numTurns) / numSamplesPerTurn;
|
|
264301
|
+
const aDelta = 2 * Math.PI / numSamplesPerTurn;
|
|
264302
|
+
for (let iTurn = 0; iTurn < numTurns; ++iTurn) {
|
|
264303
|
+
for (let iSample = 0; iSample < numSamplesPerTurn; iSample++) {
|
|
264304
|
+
pts.push(_geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(radius * Math.cos(iSample * aDelta), radius * Math.sin(iSample * aDelta), pts.length * zDelta));
|
|
264305
|
+
}
|
|
264306
|
+
}
|
|
264307
|
+
const result = [];
|
|
264308
|
+
for (const order of [2, 3, 4, 9, 16, 25]) {
|
|
264309
|
+
if (order > pts.length)
|
|
264310
|
+
continue;
|
|
264311
|
+
const curve = _bspline_BSplineCurve__WEBPACK_IMPORTED_MODULE_9__.BSplineCurve3d.createUniformKnots(pts, order);
|
|
264312
|
+
if (curve !== undefined)
|
|
264313
|
+
result.push(curve);
|
|
264314
|
+
}
|
|
264315
|
+
return result;
|
|
264316
|
+
}
|
|
263907
264317
|
/** Create weighted bsplines for circular arcs.
|
|
263908
264318
|
*/
|
|
263909
264319
|
static createBspline3dHArcs() {
|
|
@@ -274879,9 +275289,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
274879
275289
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
274880
275290
|
/* harmony export */ "ITwinLocalization": () => (/* binding */ ITwinLocalization)
|
|
274881
275291
|
/* harmony export */ });
|
|
274882
|
-
/* harmony import */ var i18next__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.
|
|
275292
|
+
/* harmony import */ var i18next__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js");
|
|
274883
275293
|
/* harmony import */ var i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.4/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js");
|
|
274884
|
-
/* harmony import */ var
|
|
275294
|
+
/* harmony import */ var i18next_http_backend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js");
|
|
274885
275295
|
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
274886
275296
|
/*---------------------------------------------------------------------------------------------
|
|
274887
275297
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -274917,13 +275327,14 @@ class ITwinLocalization {
|
|
|
274917
275327
|
this._initOptions = {
|
|
274918
275328
|
interpolation: { escapeValue: true },
|
|
274919
275329
|
fallbackLng: "en",
|
|
275330
|
+
maxRetries: 1,
|
|
274920
275331
|
backend: this._backendOptions,
|
|
274921
275332
|
detection: this._detectionOptions,
|
|
274922
275333
|
...options === null || options === void 0 ? void 0 : options.initOptions,
|
|
274923
275334
|
};
|
|
274924
275335
|
this.i18next
|
|
274925
275336
|
.use((_b = options === null || options === void 0 ? void 0 : options.detectorPlugin) !== null && _b !== void 0 ? _b : i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__["default"])
|
|
274926
|
-
.use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c :
|
|
275337
|
+
.use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c : i18next_http_backend__WEBPACK_IMPORTED_MODULE_2__["default"])
|
|
274927
275338
|
.use(TranslationLogger);
|
|
274928
275339
|
}
|
|
274929
275340
|
async initialize(namespaces) {
|
|
@@ -275044,10 +275455,10 @@ class ITwinLocalization {
|
|
|
275044
275455
|
if (!err)
|
|
275045
275456
|
return resolve();
|
|
275046
275457
|
// Here we got a non-null err object.
|
|
275047
|
-
// This method is called when the system has attempted to load the resources for the
|
|
275048
|
-
//
|
|
275049
|
-
//
|
|
275050
|
-
// might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible
|
|
275458
|
+
// This method is called when the system has attempted to load the resources for the namespaces for each possible locale.
|
|
275459
|
+
// For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.
|
|
275460
|
+
// Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.
|
|
275461
|
+
// There might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible locale.
|
|
275051
275462
|
let locales = this.getLanguageList().map((thisLocale) => `/${thisLocale}/`);
|
|
275052
275463
|
try {
|
|
275053
275464
|
for (const thisError of err) {
|
|
@@ -300394,6 +300805,31 @@ var WidgetState;
|
|
|
300394
300805
|
|
|
300395
300806
|
/* (ignored) */
|
|
300396
300807
|
|
|
300808
|
+
/***/ }),
|
|
300809
|
+
|
|
300810
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs":
|
|
300811
|
+
/*!**************************************************************************************************************************!*\
|
|
300812
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs ***!
|
|
300813
|
+
\**************************************************************************************************************************/
|
|
300814
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
300815
|
+
|
|
300816
|
+
var fetchApi
|
|
300817
|
+
if (typeof fetch === 'function') {
|
|
300818
|
+
if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.fetch) {
|
|
300819
|
+
fetchApi = __webpack_require__.g.fetch
|
|
300820
|
+
} else if (typeof window !== 'undefined' && window.fetch) {
|
|
300821
|
+
fetchApi = window.fetch
|
|
300822
|
+
}
|
|
300823
|
+
}
|
|
300824
|
+
|
|
300825
|
+
if ( true && (typeof window === 'undefined' || typeof window.document === 'undefined')) {
|
|
300826
|
+
var f = fetchApi || __webpack_require__(/*! cross-fetch */ "../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js")
|
|
300827
|
+
if (f.default) f = f.default
|
|
300828
|
+
exports["default"] = f
|
|
300829
|
+
module.exports = exports.default
|
|
300830
|
+
}
|
|
300831
|
+
|
|
300832
|
+
|
|
300397
300833
|
/***/ }),
|
|
300398
300834
|
|
|
300399
300835
|
/***/ "../../common/temp/node_modules/.pnpm/flatbuffers@1.12.0/node_modules/flatbuffers/js/flatbuffers.mjs":
|
|
@@ -302001,9 +302437,9 @@ const gBase64 = {
|
|
|
302001
302437
|
|
|
302002
302438
|
/***/ }),
|
|
302003
302439
|
|
|
302004
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302440
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
|
|
302005
302441
|
/*!******************************************************************************************************************************!*\
|
|
302006
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302442
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
|
|
302007
302443
|
\******************************************************************************************************************************/
|
|
302008
302444
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302009
302445
|
|
|
@@ -302024,9 +302460,9 @@ function _arrayLikeToArray(arr, len) {
|
|
|
302024
302460
|
|
|
302025
302461
|
/***/ }),
|
|
302026
302462
|
|
|
302027
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302463
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":
|
|
302028
302464
|
/*!****************************************************************************************************************************!*\
|
|
302029
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302465
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***!
|
|
302030
302466
|
\****************************************************************************************************************************/
|
|
302031
302467
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302032
302468
|
|
|
@@ -302041,9 +302477,9 @@ function _arrayWithHoles(arr) {
|
|
|
302041
302477
|
|
|
302042
302478
|
/***/ }),
|
|
302043
302479
|
|
|
302044
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302480
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
|
|
302045
302481
|
/*!***********************************************************************************************************************************!*\
|
|
302046
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302482
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
|
|
302047
302483
|
\***********************************************************************************************************************************/
|
|
302048
302484
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302049
302485
|
|
|
@@ -302062,9 +302498,9 @@ function _assertThisInitialized(self) {
|
|
|
302062
302498
|
|
|
302063
302499
|
/***/ }),
|
|
302064
302500
|
|
|
302065
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302501
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
|
|
302066
302502
|
/*!****************************************************************************************************************************!*\
|
|
302067
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302503
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
|
|
302068
302504
|
\****************************************************************************************************************************/
|
|
302069
302505
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302070
302506
|
|
|
@@ -302081,9 +302517,9 @@ function _classCallCheck(instance, Constructor) {
|
|
|
302081
302517
|
|
|
302082
302518
|
/***/ }),
|
|
302083
302519
|
|
|
302084
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302520
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/createClass.js":
|
|
302085
302521
|
/*!*************************************************************************************************************************!*\
|
|
302086
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302522
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
|
|
302087
302523
|
\*************************************************************************************************************************/
|
|
302088
302524
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302089
302525
|
|
|
@@ -302113,9 +302549,9 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
302113
302549
|
|
|
302114
302550
|
/***/ }),
|
|
302115
302551
|
|
|
302116
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302552
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/defineProperty.js":
|
|
302117
302553
|
/*!****************************************************************************************************************************!*\
|
|
302118
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302554
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
|
|
302119
302555
|
\****************************************************************************************************************************/
|
|
302120
302556
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302121
302557
|
|
|
@@ -302141,9 +302577,9 @@ function _defineProperty(obj, key, value) {
|
|
|
302141
302577
|
|
|
302142
302578
|
/***/ }),
|
|
302143
302579
|
|
|
302144
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302580
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js":
|
|
302145
302581
|
/*!****************************************************************************************************************************!*\
|
|
302146
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302582
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***!
|
|
302147
302583
|
\****************************************************************************************************************************/
|
|
302148
302584
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302149
302585
|
|
|
@@ -302161,9 +302597,9 @@ function _getPrototypeOf(o) {
|
|
|
302161
302597
|
|
|
302162
302598
|
/***/ }),
|
|
302163
302599
|
|
|
302164
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302600
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/inherits.js":
|
|
302165
302601
|
/*!**********************************************************************************************************************!*\
|
|
302166
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302602
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/inherits.js ***!
|
|
302167
302603
|
\**********************************************************************************************************************/
|
|
302168
302604
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302169
302605
|
|
|
@@ -302172,7 +302608,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302172
302608
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302173
302609
|
/* harmony export */ "default": () => (/* binding */ _inherits)
|
|
302174
302610
|
/* harmony export */ });
|
|
302175
|
-
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302611
|
+
/* 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");
|
|
302176
302612
|
|
|
302177
302613
|
function _inherits(subClass, superClass) {
|
|
302178
302614
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -302194,9 +302630,9 @@ function _inherits(subClass, superClass) {
|
|
|
302194
302630
|
|
|
302195
302631
|
/***/ }),
|
|
302196
302632
|
|
|
302197
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302633
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/iterableToArray.js":
|
|
302198
302634
|
/*!*****************************************************************************************************************************!*\
|
|
302199
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302635
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
|
|
302200
302636
|
\*****************************************************************************************************************************/
|
|
302201
302637
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302202
302638
|
|
|
@@ -302211,9 +302647,9 @@ function _iterableToArray(iter) {
|
|
|
302211
302647
|
|
|
302212
302648
|
/***/ }),
|
|
302213
302649
|
|
|
302214
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302650
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":
|
|
302215
302651
|
/*!*****************************************************************************************************************************!*\
|
|
302216
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302652
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***!
|
|
302217
302653
|
\*****************************************************************************************************************************/
|
|
302218
302654
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302219
302655
|
|
|
@@ -302228,9 +302664,9 @@ function _nonIterableRest() {
|
|
|
302228
302664
|
|
|
302229
302665
|
/***/ }),
|
|
302230
302666
|
|
|
302231
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302667
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js":
|
|
302232
302668
|
/*!***************************************************************************************************************************************!*\
|
|
302233
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302669
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***!
|
|
302234
302670
|
\***************************************************************************************************************************************/
|
|
302235
302671
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302236
302672
|
|
|
@@ -302239,8 +302675,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302239
302675
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302240
302676
|
/* harmony export */ "default": () => (/* binding */ _possibleConstructorReturn)
|
|
302241
302677
|
/* harmony export */ });
|
|
302242
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302243
|
-
/* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302678
|
+
/* 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");
|
|
302679
|
+
/* 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");
|
|
302244
302680
|
|
|
302245
302681
|
|
|
302246
302682
|
function _possibleConstructorReturn(self, call) {
|
|
@@ -302255,9 +302691,9 @@ function _possibleConstructorReturn(self, call) {
|
|
|
302255
302691
|
|
|
302256
302692
|
/***/ }),
|
|
302257
302693
|
|
|
302258
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302694
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":
|
|
302259
302695
|
/*!****************************************************************************************************************************!*\
|
|
302260
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302696
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
|
|
302261
302697
|
\****************************************************************************************************************************/
|
|
302262
302698
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302263
302699
|
|
|
@@ -302276,9 +302712,9 @@ function _setPrototypeOf(o, p) {
|
|
|
302276
302712
|
|
|
302277
302713
|
/***/ }),
|
|
302278
302714
|
|
|
302279
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302715
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/toArray.js":
|
|
302280
302716
|
/*!*********************************************************************************************************************!*\
|
|
302281
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302717
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/toArray.js ***!
|
|
302282
302718
|
\*********************************************************************************************************************/
|
|
302283
302719
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302284
302720
|
|
|
@@ -302287,10 +302723,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302287
302723
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302288
302724
|
/* harmony export */ "default": () => (/* binding */ _toArray)
|
|
302289
302725
|
/* harmony export */ });
|
|
302290
|
-
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302291
|
-
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302292
|
-
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302293
|
-
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302726
|
+
/* 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");
|
|
302727
|
+
/* 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");
|
|
302728
|
+
/* 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");
|
|
302729
|
+
/* 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");
|
|
302294
302730
|
|
|
302295
302731
|
|
|
302296
302732
|
|
|
@@ -302301,9 +302737,9 @@ function _toArray(arr) {
|
|
|
302301
302737
|
|
|
302302
302738
|
/***/ }),
|
|
302303
302739
|
|
|
302304
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302740
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/typeof.js":
|
|
302305
302741
|
/*!********************************************************************************************************************!*\
|
|
302306
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302742
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
|
|
302307
302743
|
\********************************************************************************************************************/
|
|
302308
302744
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302309
302745
|
|
|
@@ -302324,9 +302760,9 @@ function _typeof(obj) {
|
|
|
302324
302760
|
|
|
302325
302761
|
/***/ }),
|
|
302326
302762
|
|
|
302327
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302763
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":
|
|
302328
302764
|
/*!****************************************************************************************************************************************!*\
|
|
302329
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302765
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
|
|
302330
302766
|
\****************************************************************************************************************************************/
|
|
302331
302767
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302332
302768
|
|
|
@@ -302335,7 +302771,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302335
302771
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302336
302772
|
/* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
|
|
302337
302773
|
/* harmony export */ });
|
|
302338
|
-
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302774
|
+
/* 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");
|
|
302339
302775
|
|
|
302340
302776
|
function _unsupportedIterableToArray(o, minLen) {
|
|
302341
302777
|
if (!o) return;
|
|
@@ -302348,10 +302784,442 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
302348
302784
|
|
|
302349
302785
|
/***/ }),
|
|
302350
302786
|
|
|
302351
|
-
/***/ "../../common/temp/node_modules/.pnpm/i18next@
|
|
302352
|
-
|
|
302353
|
-
!*** ../../common/temp/node_modules/.pnpm/i18next@
|
|
302354
|
-
|
|
302787
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js":
|
|
302788
|
+
/*!**********************************************************************************************************************!*\
|
|
302789
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js ***!
|
|
302790
|
+
\**********************************************************************************************************************/
|
|
302791
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302792
|
+
|
|
302793
|
+
"use strict";
|
|
302794
|
+
__webpack_require__.r(__webpack_exports__);
|
|
302795
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302796
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
302797
|
+
/* harmony export */ });
|
|
302798
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js");
|
|
302799
|
+
/* harmony import */ var _request_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./request.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js");
|
|
302800
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
302801
|
+
|
|
302802
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
302803
|
+
|
|
302804
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
302805
|
+
|
|
302806
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
302807
|
+
|
|
302808
|
+
|
|
302809
|
+
|
|
302810
|
+
|
|
302811
|
+
var getDefaults = function getDefaults() {
|
|
302812
|
+
return {
|
|
302813
|
+
loadPath: '/locales/{{lng}}/{{ns}}.json',
|
|
302814
|
+
addPath: '/locales/add/{{lng}}/{{ns}}',
|
|
302815
|
+
allowMultiLoading: false,
|
|
302816
|
+
parse: function parse(data) {
|
|
302817
|
+
return JSON.parse(data);
|
|
302818
|
+
},
|
|
302819
|
+
stringify: JSON.stringify,
|
|
302820
|
+
parsePayload: function parsePayload(namespace, key, fallbackValue) {
|
|
302821
|
+
return _defineProperty({}, key, fallbackValue || '');
|
|
302822
|
+
},
|
|
302823
|
+
request: _request_js__WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
302824
|
+
reloadInterval: typeof window !== 'undefined' ? false : 60 * 60 * 1000,
|
|
302825
|
+
customHeaders: {},
|
|
302826
|
+
queryStringParams: {},
|
|
302827
|
+
crossDomain: false,
|
|
302828
|
+
withCredentials: false,
|
|
302829
|
+
overrideMimeType: false,
|
|
302830
|
+
requestOptions: {
|
|
302831
|
+
mode: 'cors',
|
|
302832
|
+
credentials: 'same-origin',
|
|
302833
|
+
cache: 'default'
|
|
302834
|
+
}
|
|
302835
|
+
};
|
|
302836
|
+
};
|
|
302837
|
+
|
|
302838
|
+
var Backend = function () {
|
|
302839
|
+
function Backend(services) {
|
|
302840
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
302841
|
+
var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
302842
|
+
|
|
302843
|
+
_classCallCheck(this, Backend);
|
|
302844
|
+
|
|
302845
|
+
this.services = services;
|
|
302846
|
+
this.options = options;
|
|
302847
|
+
this.allOptions = allOptions;
|
|
302848
|
+
this.type = 'backend';
|
|
302849
|
+
this.init(services, options, allOptions);
|
|
302850
|
+
}
|
|
302851
|
+
|
|
302852
|
+
_createClass(Backend, [{
|
|
302853
|
+
key: "init",
|
|
302854
|
+
value: function init(services) {
|
|
302855
|
+
var _this = this;
|
|
302856
|
+
|
|
302857
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
302858
|
+
var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
302859
|
+
this.services = services;
|
|
302860
|
+
this.options = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)(options, this.options || {}, getDefaults());
|
|
302861
|
+
this.allOptions = allOptions;
|
|
302862
|
+
|
|
302863
|
+
if (this.services && this.options.reloadInterval) {
|
|
302864
|
+
setInterval(function () {
|
|
302865
|
+
return _this.reload();
|
|
302866
|
+
}, this.options.reloadInterval);
|
|
302867
|
+
}
|
|
302868
|
+
}
|
|
302869
|
+
}, {
|
|
302870
|
+
key: "readMulti",
|
|
302871
|
+
value: function readMulti(languages, namespaces, callback) {
|
|
302872
|
+
this._readAny(languages, languages, namespaces, namespaces, callback);
|
|
302873
|
+
}
|
|
302874
|
+
}, {
|
|
302875
|
+
key: "read",
|
|
302876
|
+
value: function read(language, namespace, callback) {
|
|
302877
|
+
this._readAny([language], language, [namespace], namespace, callback);
|
|
302878
|
+
}
|
|
302879
|
+
}, {
|
|
302880
|
+
key: "_readAny",
|
|
302881
|
+
value: function _readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {
|
|
302882
|
+
var _this2 = this;
|
|
302883
|
+
|
|
302884
|
+
var loadPath = this.options.loadPath;
|
|
302885
|
+
|
|
302886
|
+
if (typeof this.options.loadPath === 'function') {
|
|
302887
|
+
loadPath = this.options.loadPath(languages, namespaces);
|
|
302888
|
+
}
|
|
302889
|
+
|
|
302890
|
+
loadPath = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.makePromise)(loadPath);
|
|
302891
|
+
loadPath.then(function (resolvedLoadPath) {
|
|
302892
|
+
if (!resolvedLoadPath) return callback(null, {});
|
|
302893
|
+
|
|
302894
|
+
var url = _this2.services.interpolator.interpolate(resolvedLoadPath, {
|
|
302895
|
+
lng: languages.join('+'),
|
|
302896
|
+
ns: namespaces.join('+')
|
|
302897
|
+
});
|
|
302898
|
+
|
|
302899
|
+
_this2.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);
|
|
302900
|
+
});
|
|
302901
|
+
}
|
|
302902
|
+
}, {
|
|
302903
|
+
key: "loadUrl",
|
|
302904
|
+
value: function loadUrl(url, callback, languages, namespaces) {
|
|
302905
|
+
var _this3 = this;
|
|
302906
|
+
|
|
302907
|
+
this.options.request(this.options, url, undefined, function (err, res) {
|
|
302908
|
+
if (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback('failed loading ' + url + '; status code: ' + res.status, true);
|
|
302909
|
+
if (res && res.status >= 400 && res.status < 500) return callback('failed loading ' + url + '; status code: ' + res.status, false);
|
|
302910
|
+
if (!res && err && err.message && err.message.indexOf('Failed to fetch') > -1) return callback('failed loading ' + url + ': ' + err.message, true);
|
|
302911
|
+
if (err) return callback(err, false);
|
|
302912
|
+
var ret, parseErr;
|
|
302913
|
+
|
|
302914
|
+
try {
|
|
302915
|
+
if (typeof res.data === 'string') {
|
|
302916
|
+
ret = _this3.options.parse(res.data, languages, namespaces);
|
|
302917
|
+
} else {
|
|
302918
|
+
ret = res.data;
|
|
302919
|
+
}
|
|
302920
|
+
} catch (e) {
|
|
302921
|
+
parseErr = 'failed parsing ' + url + ' to json';
|
|
302922
|
+
}
|
|
302923
|
+
|
|
302924
|
+
if (parseErr) return callback(parseErr, false);
|
|
302925
|
+
callback(null, ret);
|
|
302926
|
+
});
|
|
302927
|
+
}
|
|
302928
|
+
}, {
|
|
302929
|
+
key: "create",
|
|
302930
|
+
value: function create(languages, namespace, key, fallbackValue, callback) {
|
|
302931
|
+
var _this4 = this;
|
|
302932
|
+
|
|
302933
|
+
if (!this.options.addPath) return;
|
|
302934
|
+
if (typeof languages === 'string') languages = [languages];
|
|
302935
|
+
var payload = this.options.parsePayload(namespace, key, fallbackValue);
|
|
302936
|
+
var finished = 0;
|
|
302937
|
+
var dataArray = [];
|
|
302938
|
+
var resArray = [];
|
|
302939
|
+
languages.forEach(function (lng) {
|
|
302940
|
+
var addPath = _this4.options.addPath;
|
|
302941
|
+
|
|
302942
|
+
if (typeof _this4.options.addPath === 'function') {
|
|
302943
|
+
addPath = _this4.options.addPath(lng, namespace);
|
|
302944
|
+
}
|
|
302945
|
+
|
|
302946
|
+
var url = _this4.services.interpolator.interpolate(addPath, {
|
|
302947
|
+
lng: lng,
|
|
302948
|
+
ns: namespace
|
|
302949
|
+
});
|
|
302950
|
+
|
|
302951
|
+
_this4.options.request(_this4.options, url, payload, function (data, res) {
|
|
302952
|
+
finished += 1;
|
|
302953
|
+
dataArray.push(data);
|
|
302954
|
+
resArray.push(res);
|
|
302955
|
+
|
|
302956
|
+
if (finished === languages.length) {
|
|
302957
|
+
if (callback) callback(dataArray, resArray);
|
|
302958
|
+
}
|
|
302959
|
+
});
|
|
302960
|
+
});
|
|
302961
|
+
}
|
|
302962
|
+
}, {
|
|
302963
|
+
key: "reload",
|
|
302964
|
+
value: function reload() {
|
|
302965
|
+
var _this5 = this;
|
|
302966
|
+
|
|
302967
|
+
var _this$services = this.services,
|
|
302968
|
+
backendConnector = _this$services.backendConnector,
|
|
302969
|
+
languageUtils = _this$services.languageUtils,
|
|
302970
|
+
logger = _this$services.logger;
|
|
302971
|
+
var currentLanguage = backendConnector.language;
|
|
302972
|
+
if (currentLanguage && currentLanguage.toLowerCase() === 'cimode') return;
|
|
302973
|
+
var toLoad = [];
|
|
302974
|
+
|
|
302975
|
+
var append = function append(lng) {
|
|
302976
|
+
var lngs = languageUtils.toResolveHierarchy(lng);
|
|
302977
|
+
lngs.forEach(function (l) {
|
|
302978
|
+
if (toLoad.indexOf(l) < 0) toLoad.push(l);
|
|
302979
|
+
});
|
|
302980
|
+
};
|
|
302981
|
+
|
|
302982
|
+
append(currentLanguage);
|
|
302983
|
+
if (this.allOptions.preload) this.allOptions.preload.forEach(function (l) {
|
|
302984
|
+
return append(l);
|
|
302985
|
+
});
|
|
302986
|
+
toLoad.forEach(function (lng) {
|
|
302987
|
+
_this5.allOptions.ns.forEach(function (ns) {
|
|
302988
|
+
backendConnector.read(lng, ns, 'read', null, null, function (err, data) {
|
|
302989
|
+
if (err) logger.warn("loading namespace ".concat(ns, " for language ").concat(lng, " failed"), err);
|
|
302990
|
+
if (!err && data) logger.log("loaded namespace ".concat(ns, " for language ").concat(lng), data);
|
|
302991
|
+
backendConnector.loaded("".concat(lng, "|").concat(ns), err, data);
|
|
302992
|
+
});
|
|
302993
|
+
});
|
|
302994
|
+
});
|
|
302995
|
+
}
|
|
302996
|
+
}]);
|
|
302997
|
+
|
|
302998
|
+
return Backend;
|
|
302999
|
+
}();
|
|
303000
|
+
|
|
303001
|
+
Backend.type = 'backend';
|
|
303002
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
|
|
303003
|
+
|
|
303004
|
+
/***/ }),
|
|
303005
|
+
|
|
303006
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js":
|
|
303007
|
+
/*!************************************************************************************************************************!*\
|
|
303008
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js ***!
|
|
303009
|
+
\************************************************************************************************************************/
|
|
303010
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
303011
|
+
|
|
303012
|
+
"use strict";
|
|
303013
|
+
var _getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache;
|
|
303014
|
+
__webpack_require__.r(__webpack_exports__);
|
|
303015
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
303016
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
303017
|
+
/* harmony export */ });
|
|
303018
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js");
|
|
303019
|
+
/* harmony import */ var _getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getFetch.cjs */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs");
|
|
303020
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
303021
|
+
|
|
303022
|
+
|
|
303023
|
+
|
|
303024
|
+
var fetchApi;
|
|
303025
|
+
|
|
303026
|
+
if (typeof fetch === 'function') {
|
|
303027
|
+
if (typeof global !== 'undefined' && global.fetch) {
|
|
303028
|
+
fetchApi = global.fetch;
|
|
303029
|
+
} else if (typeof window !== 'undefined' && window.fetch) {
|
|
303030
|
+
fetchApi = window.fetch;
|
|
303031
|
+
}
|
|
303032
|
+
}
|
|
303033
|
+
|
|
303034
|
+
var XmlHttpRequestApi;
|
|
303035
|
+
|
|
303036
|
+
if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)()) {
|
|
303037
|
+
if (typeof global !== 'undefined' && global.XMLHttpRequest) {
|
|
303038
|
+
XmlHttpRequestApi = global.XMLHttpRequest;
|
|
303039
|
+
} else if (typeof window !== 'undefined' && window.XMLHttpRequest) {
|
|
303040
|
+
XmlHttpRequestApi = window.XMLHttpRequest;
|
|
303041
|
+
}
|
|
303042
|
+
}
|
|
303043
|
+
|
|
303044
|
+
var ActiveXObjectApi;
|
|
303045
|
+
|
|
303046
|
+
if (typeof ActiveXObject === 'function') {
|
|
303047
|
+
if (typeof global !== 'undefined' && global.ActiveXObject) {
|
|
303048
|
+
ActiveXObjectApi = global.ActiveXObject;
|
|
303049
|
+
} else if (typeof window !== 'undefined' && window.ActiveXObject) {
|
|
303050
|
+
ActiveXObjectApi = window.ActiveXObject;
|
|
303051
|
+
}
|
|
303052
|
+
}
|
|
303053
|
+
|
|
303054
|
+
if (!fetchApi && /*#__PURE__*/ (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__, 2))) && !XmlHttpRequestApi && !ActiveXObjectApi) fetchApi = _getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__ || /*#__PURE__*/ (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__, 2)));
|
|
303055
|
+
if (typeof fetchApi !== 'function') fetchApi = undefined;
|
|
303056
|
+
|
|
303057
|
+
var addQueryString = function addQueryString(url, params) {
|
|
303058
|
+
if (params && _typeof(params) === 'object') {
|
|
303059
|
+
var queryString = '';
|
|
303060
|
+
|
|
303061
|
+
for (var paramName in params) {
|
|
303062
|
+
queryString += '&' + encodeURIComponent(paramName) + '=' + encodeURIComponent(params[paramName]);
|
|
303063
|
+
}
|
|
303064
|
+
|
|
303065
|
+
if (!queryString) return url;
|
|
303066
|
+
url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
|
|
303067
|
+
}
|
|
303068
|
+
|
|
303069
|
+
return url;
|
|
303070
|
+
};
|
|
303071
|
+
|
|
303072
|
+
var requestWithFetch = function requestWithFetch(options, url, payload, callback) {
|
|
303073
|
+
if (options.queryStringParams) {
|
|
303074
|
+
url = addQueryString(url, options.queryStringParams);
|
|
303075
|
+
}
|
|
303076
|
+
|
|
303077
|
+
var headers = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)({}, typeof options.customHeaders === 'function' ? options.customHeaders() : options.customHeaders);
|
|
303078
|
+
if (payload) headers['Content-Type'] = 'application/json';
|
|
303079
|
+
fetchApi(url, (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)({
|
|
303080
|
+
method: payload ? 'POST' : 'GET',
|
|
303081
|
+
body: payload ? options.stringify(payload) : undefined,
|
|
303082
|
+
headers: headers
|
|
303083
|
+
}, typeof options.requestOptions === 'function' ? options.requestOptions(payload) : options.requestOptions)).then(function (response) {
|
|
303084
|
+
if (!response.ok) return callback(response.statusText || 'Error', {
|
|
303085
|
+
status: response.status
|
|
303086
|
+
});
|
|
303087
|
+
response.text().then(function (data) {
|
|
303088
|
+
callback(null, {
|
|
303089
|
+
status: response.status,
|
|
303090
|
+
data: data
|
|
303091
|
+
});
|
|
303092
|
+
}).catch(callback);
|
|
303093
|
+
}).catch(callback);
|
|
303094
|
+
};
|
|
303095
|
+
|
|
303096
|
+
var requestWithXmlHttpRequest = function requestWithXmlHttpRequest(options, url, payload, callback) {
|
|
303097
|
+
if (payload && _typeof(payload) === 'object') {
|
|
303098
|
+
payload = addQueryString('', payload).slice(1);
|
|
303099
|
+
}
|
|
303100
|
+
|
|
303101
|
+
if (options.queryStringParams) {
|
|
303102
|
+
url = addQueryString(url, options.queryStringParams);
|
|
303103
|
+
}
|
|
303104
|
+
|
|
303105
|
+
try {
|
|
303106
|
+
var x;
|
|
303107
|
+
|
|
303108
|
+
if (XmlHttpRequestApi) {
|
|
303109
|
+
x = new XmlHttpRequestApi();
|
|
303110
|
+
} else {
|
|
303111
|
+
x = new ActiveXObjectApi('MSXML2.XMLHTTP.3.0');
|
|
303112
|
+
}
|
|
303113
|
+
|
|
303114
|
+
x.open(payload ? 'POST' : 'GET', url, 1);
|
|
303115
|
+
|
|
303116
|
+
if (!options.crossDomain) {
|
|
303117
|
+
x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
|
303118
|
+
}
|
|
303119
|
+
|
|
303120
|
+
x.withCredentials = !!options.withCredentials;
|
|
303121
|
+
|
|
303122
|
+
if (payload) {
|
|
303123
|
+
x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
303124
|
+
}
|
|
303125
|
+
|
|
303126
|
+
if (x.overrideMimeType) {
|
|
303127
|
+
x.overrideMimeType('application/json');
|
|
303128
|
+
}
|
|
303129
|
+
|
|
303130
|
+
var h = options.customHeaders;
|
|
303131
|
+
h = typeof h === 'function' ? h() : h;
|
|
303132
|
+
|
|
303133
|
+
if (h) {
|
|
303134
|
+
for (var i in h) {
|
|
303135
|
+
x.setRequestHeader(i, h[i]);
|
|
303136
|
+
}
|
|
303137
|
+
}
|
|
303138
|
+
|
|
303139
|
+
x.onreadystatechange = function () {
|
|
303140
|
+
x.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {
|
|
303141
|
+
status: x.status,
|
|
303142
|
+
data: x.responseText
|
|
303143
|
+
});
|
|
303144
|
+
};
|
|
303145
|
+
|
|
303146
|
+
x.send(payload);
|
|
303147
|
+
} catch (e) {
|
|
303148
|
+
console && console.log(e);
|
|
303149
|
+
}
|
|
303150
|
+
};
|
|
303151
|
+
|
|
303152
|
+
var request = function request(options, url, payload, callback) {
|
|
303153
|
+
if (typeof payload === 'function') {
|
|
303154
|
+
callback = payload;
|
|
303155
|
+
payload = undefined;
|
|
303156
|
+
}
|
|
303157
|
+
|
|
303158
|
+
callback = callback || function () {};
|
|
303159
|
+
|
|
303160
|
+
if (fetchApi) {
|
|
303161
|
+
return requestWithFetch(options, url, payload, callback);
|
|
303162
|
+
}
|
|
303163
|
+
|
|
303164
|
+
if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)() || typeof ActiveXObject === 'function') {
|
|
303165
|
+
return requestWithXmlHttpRequest(options, url, payload, callback);
|
|
303166
|
+
}
|
|
303167
|
+
};
|
|
303168
|
+
|
|
303169
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (request);
|
|
303170
|
+
|
|
303171
|
+
/***/ }),
|
|
303172
|
+
|
|
303173
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js":
|
|
303174
|
+
/*!**********************************************************************************************************************!*\
|
|
303175
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js ***!
|
|
303176
|
+
\**********************************************************************************************************************/
|
|
303177
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
303178
|
+
|
|
303179
|
+
"use strict";
|
|
303180
|
+
__webpack_require__.r(__webpack_exports__);
|
|
303181
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
303182
|
+
/* harmony export */ "defaults": () => (/* binding */ defaults),
|
|
303183
|
+
/* harmony export */ "hasXMLHttpRequest": () => (/* binding */ hasXMLHttpRequest),
|
|
303184
|
+
/* harmony export */ "makePromise": () => (/* binding */ makePromise)
|
|
303185
|
+
/* harmony export */ });
|
|
303186
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
303187
|
+
|
|
303188
|
+
var arr = [];
|
|
303189
|
+
var each = arr.forEach;
|
|
303190
|
+
var slice = arr.slice;
|
|
303191
|
+
function defaults(obj) {
|
|
303192
|
+
each.call(slice.call(arguments, 1), function (source) {
|
|
303193
|
+
if (source) {
|
|
303194
|
+
for (var prop in source) {
|
|
303195
|
+
if (obj[prop] === undefined) obj[prop] = source[prop];
|
|
303196
|
+
}
|
|
303197
|
+
}
|
|
303198
|
+
});
|
|
303199
|
+
return obj;
|
|
303200
|
+
}
|
|
303201
|
+
function hasXMLHttpRequest() {
|
|
303202
|
+
return typeof XMLHttpRequest === 'function' || (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof(XMLHttpRequest)) === 'object';
|
|
303203
|
+
}
|
|
303204
|
+
|
|
303205
|
+
function isPromise(maybePromise) {
|
|
303206
|
+
return !!maybePromise && typeof maybePromise.then === 'function';
|
|
303207
|
+
}
|
|
303208
|
+
|
|
303209
|
+
function makePromise(maybePromise) {
|
|
303210
|
+
if (isPromise(maybePromise)) {
|
|
303211
|
+
return maybePromise;
|
|
303212
|
+
}
|
|
303213
|
+
|
|
303214
|
+
return Promise.resolve(maybePromise);
|
|
303215
|
+
}
|
|
303216
|
+
|
|
303217
|
+
/***/ }),
|
|
303218
|
+
|
|
303219
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js":
|
|
303220
|
+
/*!****************************************************************************************************!*\
|
|
303221
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js ***!
|
|
303222
|
+
\****************************************************************************************************/
|
|
302355
303223
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302356
303224
|
|
|
302357
303225
|
"use strict";
|
|
@@ -302372,15 +303240,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302372
303240
|
/* harmony export */ "t": () => (/* binding */ t),
|
|
302373
303241
|
/* harmony export */ "use": () => (/* binding */ use)
|
|
302374
303242
|
/* harmony export */ });
|
|
302375
|
-
/* 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.
|
|
302376
|
-
/* 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.
|
|
302377
|
-
/* 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.
|
|
302378
|
-
/* 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.
|
|
302379
|
-
/* 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.
|
|
302380
|
-
/* 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.
|
|
302381
|
-
/* 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.
|
|
302382
|
-
/* 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.
|
|
302383
|
-
/* 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.
|
|
303243
|
+
/* 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");
|
|
303244
|
+
/* 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");
|
|
303245
|
+
/* 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");
|
|
303246
|
+
/* 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");
|
|
303247
|
+
/* 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");
|
|
303248
|
+
/* 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");
|
|
303249
|
+
/* 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");
|
|
303250
|
+
/* 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");
|
|
303251
|
+
/* 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");
|
|
302384
303252
|
|
|
302385
303253
|
|
|
302386
303254
|
|
|
@@ -304252,6 +305120,8 @@ var Connector = function (_EventEmitter) {
|
|
|
304252
305120
|
_this.waitingReads = [];
|
|
304253
305121
|
_this.maxParallelReads = options.maxParallelReads || 10;
|
|
304254
305122
|
_this.readingCalls = 0;
|
|
305123
|
+
_this.maxRetries = options.maxRetries >= 0 ? options.maxRetries : 5;
|
|
305124
|
+
_this.retryTimeout = options.retryTimeout >= 1 ? options.retryTimeout : 350;
|
|
304255
305125
|
_this.state = {};
|
|
304256
305126
|
_this.queue = [];
|
|
304257
305127
|
|
|
@@ -304358,7 +305228,7 @@ var Connector = function (_EventEmitter) {
|
|
|
304358
305228
|
var _this3 = this;
|
|
304359
305229
|
|
|
304360
305230
|
var tried = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
304361
|
-
var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] :
|
|
305231
|
+
var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : this.retryTimeout;
|
|
304362
305232
|
var callback = arguments.length > 5 ? arguments[5] : undefined;
|
|
304363
305233
|
if (!lng.length) return callback(null, {});
|
|
304364
305234
|
|
|
@@ -304376,13 +305246,6 @@ var Connector = function (_EventEmitter) {
|
|
|
304376
305246
|
|
|
304377
305247
|
this.readingCalls++;
|
|
304378
305248
|
return this.backend[fcName](lng, ns, function (err, data) {
|
|
304379
|
-
if (err && data && tried < 5) {
|
|
304380
|
-
setTimeout(function () {
|
|
304381
|
-
_this3.read.call(_this3, lng, ns, fcName, tried + 1, wait * 2, callback);
|
|
304382
|
-
}, wait);
|
|
304383
|
-
return;
|
|
304384
|
-
}
|
|
304385
|
-
|
|
304386
305249
|
_this3.readingCalls--;
|
|
304387
305250
|
|
|
304388
305251
|
if (_this3.waitingReads.length > 0) {
|
|
@@ -304391,6 +305254,13 @@ var Connector = function (_EventEmitter) {
|
|
|
304391
305254
|
_this3.read(next.lng, next.ns, next.fcName, next.tried, next.wait, next.callback);
|
|
304392
305255
|
}
|
|
304393
305256
|
|
|
305257
|
+
if (err && data && tried < _this3.maxRetries) {
|
|
305258
|
+
setTimeout(function () {
|
|
305259
|
+
_this3.read.call(_this3, lng, ns, fcName, tried + 1, wait * 2, callback);
|
|
305260
|
+
}, wait);
|
|
305261
|
+
return;
|
|
305262
|
+
}
|
|
305263
|
+
|
|
304394
305264
|
callback(err, data);
|
|
304395
305265
|
});
|
|
304396
305266
|
}
|
|
@@ -305206,7 +306076,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
305206
306076
|
/***/ ((module) => {
|
|
305207
306077
|
|
|
305208
306078
|
"use strict";
|
|
305209
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.
|
|
306079
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.10","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"tsc 1>&2 --outDir lib/cjs","build:esm":"tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.4.0-dev.10","@itwin/core-bentley":"workspace:^3.4.0-dev.10","@itwin/core-common":"workspace:^3.4.0-dev.10","@itwin/core-geometry":"workspace:^3.4.0-dev.10","@itwin/core-orbitgt":"workspace:^3.4.0-dev.10","@itwin/core-quantity":"workspace:^3.4.0-dev.10","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.10"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"16.11.7","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.1","semver":"^7.3.5","superagent":"7.1.3","wms-capabilities":"0.4.0","xml-js":"~1.6.11"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
|
|
305210
306080
|
|
|
305211
306081
|
/***/ })
|
|
305212
306082
|
|
|
@@ -305255,6 +306125,36 @@ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev
|
|
|
305255
306125
|
/******/ };
|
|
305256
306126
|
/******/ })();
|
|
305257
306127
|
/******/
|
|
306128
|
+
/******/ /* webpack/runtime/create fake namespace object */
|
|
306129
|
+
/******/ (() => {
|
|
306130
|
+
/******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
|
|
306131
|
+
/******/ var leafPrototypes;
|
|
306132
|
+
/******/ // create a fake namespace object
|
|
306133
|
+
/******/ // mode & 1: value is a module id, require it
|
|
306134
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
306135
|
+
/******/ // mode & 4: return value when already ns object
|
|
306136
|
+
/******/ // mode & 16: return value when it's Promise-like
|
|
306137
|
+
/******/ // mode & 8|1: behave like require
|
|
306138
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
306139
|
+
/******/ if(mode & 1) value = this(value);
|
|
306140
|
+
/******/ if(mode & 8) return value;
|
|
306141
|
+
/******/ if(typeof value === 'object' && value) {
|
|
306142
|
+
/******/ if((mode & 4) && value.__esModule) return value;
|
|
306143
|
+
/******/ if((mode & 16) && typeof value.then === 'function') return value;
|
|
306144
|
+
/******/ }
|
|
306145
|
+
/******/ var ns = Object.create(null);
|
|
306146
|
+
/******/ __webpack_require__.r(ns);
|
|
306147
|
+
/******/ var def = {};
|
|
306148
|
+
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
306149
|
+
/******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
306150
|
+
/******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
|
|
306151
|
+
/******/ }
|
|
306152
|
+
/******/ def['default'] = () => (value);
|
|
306153
|
+
/******/ __webpack_require__.d(ns, def);
|
|
306154
|
+
/******/ return ns;
|
|
306155
|
+
/******/ };
|
|
306156
|
+
/******/ })();
|
|
306157
|
+
/******/
|
|
305258
306158
|
/******/ /* webpack/runtime/define property getters */
|
|
305259
306159
|
/******/ (() => {
|
|
305260
306160
|
/******/ // define getter functions for harmony exports
|