@kontent-ai/delivery-sdk 12.1.0 → 12.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles/kontent-delivery.umd.js +450 -287
- package/dist/bundles/kontent-delivery.umd.js.map +1 -1
- package/dist/bundles/kontent-delivery.umd.min.js +1 -1
- package/dist/bundles/kontent-delivery.umd.min.js.map +1 -1
- package/dist/bundles/report.json +1 -1
- package/dist/bundles/report.min.json +1 -1
- package/dist/bundles/stats.json +1497 -1940
- package/dist/bundles/stats.min.json +3054 -5085
- package/dist/cjs/mappers/element.mapper.js +18 -4
- package/dist/cjs/mappers/element.mapper.js.map +1 -1
- package/dist/cjs/resolvers/rich-text/async/async-rich-text-html-resolver.d.ts +1 -1
- package/dist/cjs/resolvers/rich-text/sync/rich-text-html-resolver.d.ts +1 -1
- package/dist/cjs/resolvers/rich-text/sync/rich-text-json-resolver.d.ts +1 -1
- package/dist/cjs/resolvers/rich-text/sync/rich-text-object-resolver.d.ts +1 -1
- package/dist/cjs/sdk-info.generated.js +1 -1
- package/dist/es6/mappers/element.mapper.js +18 -4
- package/dist/es6/mappers/element.mapper.js.map +1 -1
- package/dist/es6/resolvers/rich-text/async/async-rich-text-html-resolver.d.ts +1 -1
- package/dist/es6/resolvers/rich-text/sync/rich-text-html-resolver.d.ts +1 -1
- package/dist/es6/resolvers/rich-text/sync/rich-text-json-resolver.d.ts +1 -1
- package/dist/es6/resolvers/rich-text/sync/rich-text-object-resolver.d.ts +1 -1
- package/dist/es6/sdk-info.generated.js +1 -1
- package/dist/esnext/mappers/element.mapper.js +18 -4
- package/dist/esnext/mappers/element.mapper.js.map +1 -1
- package/dist/esnext/resolvers/rich-text/async/async-rich-text-html-resolver.d.ts +1 -1
- package/dist/esnext/resolvers/rich-text/sync/rich-text-html-resolver.d.ts +1 -1
- package/dist/esnext/resolvers/rich-text/sync/rich-text-json-resolver.d.ts +1 -1
- package/dist/esnext/resolvers/rich-text/sync/rich-text-object-resolver.d.ts +1 -1
- package/dist/esnext/sdk-info.generated.js +1 -1
- package/lib/mappers/element.mapper.ts +24 -4
- package/lib/sdk-info.generated.ts +1 -1
- package/package.json +13 -13
|
@@ -4491,10 +4491,24 @@ class ElementMapper {
|
|
|
4491
4491
|
return this.mapUnknowElement(data.elementWrapper);
|
|
4492
4492
|
}
|
|
4493
4493
|
mapRichTextElement(elementWrapper, processedItems, processingStartedForCodenames, preparedItems) {
|
|
4494
|
-
// get all linked items nested in rich text
|
|
4495
|
-
const richTextLinkedItems = [];
|
|
4496
4494
|
const rawElement = elementWrapper.rawElement;
|
|
4497
|
-
|
|
4495
|
+
// get all linked items and linked items codenames nested in rich text
|
|
4496
|
+
const richTextLinkedItems = [];
|
|
4497
|
+
const richTextLinkedItemsCodenames = [];
|
|
4498
|
+
// The Kontent Delivery API is not guaranteed to return rich-text modular_content array items in the same order in which they appear inside the `value` property.
|
|
4499
|
+
// We extract the modular_content codenames in the rich-text value and sort the raw modular_content based on that order instead.
|
|
4500
|
+
const rawModularContentCodenamesMatches = rawElement.value.matchAll(/<object[^>]+data-codename=\"(?<codename>[a-z0-9_]*)\".*?>/g);
|
|
4501
|
+
const rawModularContentCodenamesSorted = Array.from(rawModularContentCodenamesMatches).reduce((acc, match) => {
|
|
4502
|
+
if (match.groups && match.groups.codename) {
|
|
4503
|
+
acc.push(match.groups.codename);
|
|
4504
|
+
}
|
|
4505
|
+
return acc;
|
|
4506
|
+
}, []);
|
|
4507
|
+
const rawModularContentCodenames = [...rawElement.modular_content].sort(function (a, b) {
|
|
4508
|
+
return rawModularContentCodenamesSorted.indexOf(a) - rawModularContentCodenamesSorted.indexOf(b);
|
|
4509
|
+
});
|
|
4510
|
+
for (const codename of rawModularContentCodenames) {
|
|
4511
|
+
richTextLinkedItemsCodenames.push(codename);
|
|
4498
4512
|
// get linked item and check if it exists (it might not be included in response due to 'Depth' parameter)
|
|
4499
4513
|
const preparedData = preparedItems[codename];
|
|
4500
4514
|
// first try to get existing item
|
|
@@ -4530,7 +4544,7 @@ class ElementMapper {
|
|
|
4530
4544
|
const richTextHtml = this.getRichTextHtml(rawElement.value, richTextImagesResult.imageUrlRecords);
|
|
4531
4545
|
return {
|
|
4532
4546
|
images: images,
|
|
4533
|
-
linkedItemCodenames:
|
|
4547
|
+
linkedItemCodenames: richTextLinkedItemsCodenames,
|
|
4534
4548
|
linkedItems: richTextLinkedItems,
|
|
4535
4549
|
links: links,
|
|
4536
4550
|
name: rawElement.name,
|
|
@@ -7854,7 +7868,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
7854
7868
|
exports.sdkInfo = void 0;
|
|
7855
7869
|
exports.sdkInfo = {
|
|
7856
7870
|
host: 'npmjs.com',
|
|
7857
|
-
version: '12.
|
|
7871
|
+
version: '12.2.0',
|
|
7858
7872
|
name: '@kontent-ai/delivery-sdk'
|
|
7859
7873
|
};
|
|
7860
7874
|
|
|
@@ -8529,7 +8543,7 @@ exports.deliveryUrlHelper = new DeliveryUrlHelper();
|
|
|
8529
8543
|
|
|
8530
8544
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8531
8545
|
exports.guidHelper = exports.GuidHelper = void 0;
|
|
8532
|
-
const uuid_1 = __webpack_require__(/*! uuid */ "./node_modules/uuid/dist/
|
|
8546
|
+
const uuid_1 = __webpack_require__(/*! uuid */ "./node_modules/uuid/dist/commonjs-browser/index.js");
|
|
8533
8547
|
class GuidHelper {
|
|
8534
8548
|
genereateGuid() {
|
|
8535
8549
|
return (0, uuid_1.v4)();
|
|
@@ -9488,57 +9502,109 @@ module.exports = Url;
|
|
|
9488
9502
|
|
|
9489
9503
|
/***/ }),
|
|
9490
9504
|
|
|
9491
|
-
/***/ "./node_modules/uuid/dist/
|
|
9492
|
-
|
|
9493
|
-
!*** ./node_modules/uuid/dist/
|
|
9494
|
-
|
|
9495
|
-
/***/ ((__unused_webpack_module,
|
|
9505
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/index.js":
|
|
9506
|
+
/*!**********************************************************!*\
|
|
9507
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/index.js ***!
|
|
9508
|
+
\**********************************************************/
|
|
9509
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
9496
9510
|
|
|
9497
9511
|
"use strict";
|
|
9498
|
-
__webpack_require__.r(__webpack_exports__);
|
|
9499
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9500
|
-
/* harmony export */ "NIL": () => (/* reexport safe */ _nil_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
9501
|
-
/* harmony export */ "parse": () => (/* reexport safe */ _parse_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
9502
|
-
/* harmony export */ "stringify": () => (/* reexport safe */ _stringify_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
9503
|
-
/* harmony export */ "v1": () => (/* reexport safe */ _v1_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
9504
|
-
/* harmony export */ "v3": () => (/* reexport safe */ _v3_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
9505
|
-
/* harmony export */ "v4": () => (/* reexport safe */ _v4_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
9506
|
-
/* harmony export */ "v5": () => (/* reexport safe */ _v5_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
9507
|
-
/* harmony export */ "validate": () => (/* reexport safe */ _validate_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
9508
|
-
/* harmony export */ "version": () => (/* reexport safe */ _version_js__WEBPACK_IMPORTED_MODULE_5__["default"])
|
|
9509
|
-
/* harmony export */ });
|
|
9510
|
-
/* harmony import */ var _v1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v1.js */ "./node_modules/uuid/dist/esm-browser/v1.js");
|
|
9511
|
-
/* harmony import */ var _v3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./v3.js */ "./node_modules/uuid/dist/esm-browser/v3.js");
|
|
9512
|
-
/* harmony import */ var _v4_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./v4.js */ "./node_modules/uuid/dist/esm-browser/v4.js");
|
|
9513
|
-
/* harmony import */ var _v5_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./v5.js */ "./node_modules/uuid/dist/esm-browser/v5.js");
|
|
9514
|
-
/* harmony import */ var _nil_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nil.js */ "./node_modules/uuid/dist/esm-browser/nil.js");
|
|
9515
|
-
/* harmony import */ var _version_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./version.js */ "./node_modules/uuid/dist/esm-browser/version.js");
|
|
9516
|
-
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
|
|
9517
|
-
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
|
|
9518
|
-
/* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/esm-browser/parse.js");
|
|
9519
9512
|
|
|
9520
9513
|
|
|
9514
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
9515
|
+
value: true
|
|
9516
|
+
}));
|
|
9517
|
+
Object.defineProperty(exports, "NIL", ({
|
|
9518
|
+
enumerable: true,
|
|
9519
|
+
get: function get() {
|
|
9520
|
+
return _nil.default;
|
|
9521
|
+
}
|
|
9522
|
+
}));
|
|
9523
|
+
Object.defineProperty(exports, "parse", ({
|
|
9524
|
+
enumerable: true,
|
|
9525
|
+
get: function get() {
|
|
9526
|
+
return _parse.default;
|
|
9527
|
+
}
|
|
9528
|
+
}));
|
|
9529
|
+
Object.defineProperty(exports, "stringify", ({
|
|
9530
|
+
enumerable: true,
|
|
9531
|
+
get: function get() {
|
|
9532
|
+
return _stringify.default;
|
|
9533
|
+
}
|
|
9534
|
+
}));
|
|
9535
|
+
Object.defineProperty(exports, "v1", ({
|
|
9536
|
+
enumerable: true,
|
|
9537
|
+
get: function get() {
|
|
9538
|
+
return _v.default;
|
|
9539
|
+
}
|
|
9540
|
+
}));
|
|
9541
|
+
Object.defineProperty(exports, "v3", ({
|
|
9542
|
+
enumerable: true,
|
|
9543
|
+
get: function get() {
|
|
9544
|
+
return _v2.default;
|
|
9545
|
+
}
|
|
9546
|
+
}));
|
|
9547
|
+
Object.defineProperty(exports, "v4", ({
|
|
9548
|
+
enumerable: true,
|
|
9549
|
+
get: function get() {
|
|
9550
|
+
return _v3.default;
|
|
9551
|
+
}
|
|
9552
|
+
}));
|
|
9553
|
+
Object.defineProperty(exports, "v5", ({
|
|
9554
|
+
enumerable: true,
|
|
9555
|
+
get: function get() {
|
|
9556
|
+
return _v4.default;
|
|
9557
|
+
}
|
|
9558
|
+
}));
|
|
9559
|
+
Object.defineProperty(exports, "validate", ({
|
|
9560
|
+
enumerable: true,
|
|
9561
|
+
get: function get() {
|
|
9562
|
+
return _validate.default;
|
|
9563
|
+
}
|
|
9564
|
+
}));
|
|
9565
|
+
Object.defineProperty(exports, "version", ({
|
|
9566
|
+
enumerable: true,
|
|
9567
|
+
get: function get() {
|
|
9568
|
+
return _version.default;
|
|
9569
|
+
}
|
|
9570
|
+
}));
|
|
9571
|
+
|
|
9572
|
+
var _v = _interopRequireDefault(__webpack_require__(/*! ./v1.js */ "./node_modules/uuid/dist/commonjs-browser/v1.js"));
|
|
9521
9573
|
|
|
9574
|
+
var _v2 = _interopRequireDefault(__webpack_require__(/*! ./v3.js */ "./node_modules/uuid/dist/commonjs-browser/v3.js"));
|
|
9522
9575
|
|
|
9576
|
+
var _v3 = _interopRequireDefault(__webpack_require__(/*! ./v4.js */ "./node_modules/uuid/dist/commonjs-browser/v4.js"));
|
|
9523
9577
|
|
|
9578
|
+
var _v4 = _interopRequireDefault(__webpack_require__(/*! ./v5.js */ "./node_modules/uuid/dist/commonjs-browser/v5.js"));
|
|
9524
9579
|
|
|
9580
|
+
var _nil = _interopRequireDefault(__webpack_require__(/*! ./nil.js */ "./node_modules/uuid/dist/commonjs-browser/nil.js"));
|
|
9525
9581
|
|
|
9582
|
+
var _version = _interopRequireDefault(__webpack_require__(/*! ./version.js */ "./node_modules/uuid/dist/commonjs-browser/version.js"));
|
|
9526
9583
|
|
|
9584
|
+
var _validate = _interopRequireDefault(__webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/commonjs-browser/validate.js"));
|
|
9527
9585
|
|
|
9586
|
+
var _stringify = _interopRequireDefault(__webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/commonjs-browser/stringify.js"));
|
|
9587
|
+
|
|
9588
|
+
var _parse = _interopRequireDefault(__webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/commonjs-browser/parse.js"));
|
|
9589
|
+
|
|
9590
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9528
9591
|
|
|
9529
9592
|
/***/ }),
|
|
9530
9593
|
|
|
9531
|
-
/***/ "./node_modules/uuid/dist/
|
|
9532
|
-
|
|
9533
|
-
!*** ./node_modules/uuid/dist/
|
|
9534
|
-
|
|
9535
|
-
/***/ ((__unused_webpack_module,
|
|
9594
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/md5.js":
|
|
9595
|
+
/*!********************************************************!*\
|
|
9596
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/md5.js ***!
|
|
9597
|
+
\********************************************************/
|
|
9598
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
9536
9599
|
|
|
9537
9600
|
"use strict";
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9601
|
+
|
|
9602
|
+
|
|
9603
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
9604
|
+
value: true
|
|
9605
|
+
}));
|
|
9606
|
+
exports["default"] = void 0;
|
|
9607
|
+
|
|
9542
9608
|
/*
|
|
9543
9609
|
* Browser-compatible JavaScript MD5
|
|
9544
9610
|
*
|
|
@@ -9561,11 +9627,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9561
9627
|
*/
|
|
9562
9628
|
function md5(bytes) {
|
|
9563
9629
|
if (typeof bytes === 'string') {
|
|
9564
|
-
|
|
9630
|
+
const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
9565
9631
|
|
|
9566
9632
|
bytes = new Uint8Array(msg.length);
|
|
9567
9633
|
|
|
9568
|
-
for (
|
|
9634
|
+
for (let i = 0; i < msg.length; ++i) {
|
|
9569
9635
|
bytes[i] = msg.charCodeAt(i);
|
|
9570
9636
|
}
|
|
9571
9637
|
}
|
|
@@ -9578,13 +9644,13 @@ function md5(bytes) {
|
|
|
9578
9644
|
|
|
9579
9645
|
|
|
9580
9646
|
function md5ToHexEncodedArray(input) {
|
|
9581
|
-
|
|
9582
|
-
|
|
9583
|
-
|
|
9647
|
+
const output = [];
|
|
9648
|
+
const length32 = input.length * 32;
|
|
9649
|
+
const hexTab = '0123456789abcdef';
|
|
9584
9650
|
|
|
9585
|
-
for (
|
|
9586
|
-
|
|
9587
|
-
|
|
9651
|
+
for (let i = 0; i < length32; i += 8) {
|
|
9652
|
+
const x = input[i >> 5] >>> i % 32 & 0xff;
|
|
9653
|
+
const hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
|
|
9588
9654
|
output.push(hex);
|
|
9589
9655
|
}
|
|
9590
9656
|
|
|
@@ -9607,16 +9673,16 @@ function wordsToMd5(x, len) {
|
|
|
9607
9673
|
/* append padding */
|
|
9608
9674
|
x[len >> 5] |= 0x80 << len % 32;
|
|
9609
9675
|
x[getOutputLength(len) - 1] = len;
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
for (
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9676
|
+
let a = 1732584193;
|
|
9677
|
+
let b = -271733879;
|
|
9678
|
+
let c = -1732584194;
|
|
9679
|
+
let d = 271733878;
|
|
9680
|
+
|
|
9681
|
+
for (let i = 0; i < x.length; i += 16) {
|
|
9682
|
+
const olda = a;
|
|
9683
|
+
const oldb = b;
|
|
9684
|
+
const oldc = c;
|
|
9685
|
+
const oldd = d;
|
|
9620
9686
|
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
9621
9687
|
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
9622
9688
|
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
@@ -9700,10 +9766,10 @@ function bytesToWords(input) {
|
|
|
9700
9766
|
return [];
|
|
9701
9767
|
}
|
|
9702
9768
|
|
|
9703
|
-
|
|
9704
|
-
|
|
9769
|
+
const length8 = input.length * 8;
|
|
9770
|
+
const output = new Uint32Array(getOutputLength(length8));
|
|
9705
9771
|
|
|
9706
|
-
for (
|
|
9772
|
+
for (let i = 0; i < length8; i += 8) {
|
|
9707
9773
|
output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
|
|
9708
9774
|
}
|
|
9709
9775
|
|
|
@@ -9716,8 +9782,8 @@ function bytesToWords(input) {
|
|
|
9716
9782
|
|
|
9717
9783
|
|
|
9718
9784
|
function safeAdd(x, y) {
|
|
9719
|
-
|
|
9720
|
-
|
|
9785
|
+
const lsw = (x & 0xffff) + (y & 0xffff);
|
|
9786
|
+
const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
9721
9787
|
return msw << 16 | lsw & 0xffff;
|
|
9722
9788
|
}
|
|
9723
9789
|
/*
|
|
@@ -9753,46 +9819,75 @@ function md5ii(a, b, c, d, x, s, t) {
|
|
|
9753
9819
|
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
9754
9820
|
}
|
|
9755
9821
|
|
|
9756
|
-
|
|
9822
|
+
var _default = md5;
|
|
9823
|
+
exports["default"] = _default;
|
|
9757
9824
|
|
|
9758
9825
|
/***/ }),
|
|
9759
9826
|
|
|
9760
|
-
/***/ "./node_modules/uuid/dist/
|
|
9761
|
-
|
|
9762
|
-
!*** ./node_modules/uuid/dist/
|
|
9763
|
-
|
|
9764
|
-
/***/ ((__unused_webpack_module,
|
|
9827
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/native.js":
|
|
9828
|
+
/*!***********************************************************!*\
|
|
9829
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/native.js ***!
|
|
9830
|
+
\***********************************************************/
|
|
9831
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
9765
9832
|
|
|
9766
9833
|
"use strict";
|
|
9767
|
-
|
|
9768
|
-
|
|
9769
|
-
|
|
9770
|
-
|
|
9771
|
-
|
|
9834
|
+
|
|
9835
|
+
|
|
9836
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
9837
|
+
value: true
|
|
9838
|
+
}));
|
|
9839
|
+
exports["default"] = void 0;
|
|
9840
|
+
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
9841
|
+
var _default = {
|
|
9842
|
+
randomUUID
|
|
9843
|
+
};
|
|
9844
|
+
exports["default"] = _default;
|
|
9772
9845
|
|
|
9773
9846
|
/***/ }),
|
|
9774
9847
|
|
|
9775
|
-
/***/ "./node_modules/uuid/dist/
|
|
9776
|
-
|
|
9777
|
-
!*** ./node_modules/uuid/dist/
|
|
9778
|
-
|
|
9779
|
-
/***/ ((__unused_webpack_module,
|
|
9848
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/nil.js":
|
|
9849
|
+
/*!********************************************************!*\
|
|
9850
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/nil.js ***!
|
|
9851
|
+
\********************************************************/
|
|
9852
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
9780
9853
|
|
|
9781
9854
|
"use strict";
|
|
9782
|
-
__webpack_require__.r(__webpack_exports__);
|
|
9783
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9784
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
9785
|
-
/* harmony export */ });
|
|
9786
|
-
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
|
|
9787
9855
|
|
|
9788
9856
|
|
|
9857
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
9858
|
+
value: true
|
|
9859
|
+
}));
|
|
9860
|
+
exports["default"] = void 0;
|
|
9861
|
+
var _default = '00000000-0000-0000-0000-000000000000';
|
|
9862
|
+
exports["default"] = _default;
|
|
9863
|
+
|
|
9864
|
+
/***/ }),
|
|
9865
|
+
|
|
9866
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/parse.js":
|
|
9867
|
+
/*!**********************************************************!*\
|
|
9868
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/parse.js ***!
|
|
9869
|
+
\**********************************************************/
|
|
9870
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
9871
|
+
|
|
9872
|
+
"use strict";
|
|
9873
|
+
|
|
9874
|
+
|
|
9875
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
9876
|
+
value: true
|
|
9877
|
+
}));
|
|
9878
|
+
exports["default"] = void 0;
|
|
9879
|
+
|
|
9880
|
+
var _validate = _interopRequireDefault(__webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/commonjs-browser/validate.js"));
|
|
9881
|
+
|
|
9882
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9883
|
+
|
|
9789
9884
|
function parse(uuid) {
|
|
9790
|
-
if (!(0,
|
|
9885
|
+
if (!(0, _validate.default)(uuid)) {
|
|
9791
9886
|
throw TypeError('Invalid UUID');
|
|
9792
9887
|
}
|
|
9793
9888
|
|
|
9794
|
-
|
|
9795
|
-
|
|
9889
|
+
let v;
|
|
9890
|
+
const arr = new Uint8Array(16); // Parse ########-....-....-....-............
|
|
9796
9891
|
|
|
9797
9892
|
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
9798
9893
|
arr[1] = v >>> 16 & 0xff;
|
|
@@ -9818,47 +9913,53 @@ function parse(uuid) {
|
|
|
9818
9913
|
return arr;
|
|
9819
9914
|
}
|
|
9820
9915
|
|
|
9821
|
-
|
|
9916
|
+
var _default = parse;
|
|
9917
|
+
exports["default"] = _default;
|
|
9822
9918
|
|
|
9823
9919
|
/***/ }),
|
|
9824
9920
|
|
|
9825
|
-
/***/ "./node_modules/uuid/dist/
|
|
9826
|
-
|
|
9827
|
-
!*** ./node_modules/uuid/dist/
|
|
9828
|
-
|
|
9829
|
-
/***/ ((__unused_webpack_module,
|
|
9921
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/regex.js":
|
|
9922
|
+
/*!**********************************************************!*\
|
|
9923
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/regex.js ***!
|
|
9924
|
+
\**********************************************************/
|
|
9925
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
9830
9926
|
|
|
9831
9927
|
"use strict";
|
|
9832
|
-
|
|
9833
|
-
|
|
9834
|
-
|
|
9835
|
-
|
|
9836
|
-
|
|
9928
|
+
|
|
9929
|
+
|
|
9930
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
9931
|
+
value: true
|
|
9932
|
+
}));
|
|
9933
|
+
exports["default"] = void 0;
|
|
9934
|
+
var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
9935
|
+
exports["default"] = _default;
|
|
9837
9936
|
|
|
9838
9937
|
/***/ }),
|
|
9839
9938
|
|
|
9840
|
-
/***/ "./node_modules/uuid/dist/
|
|
9841
|
-
|
|
9842
|
-
!*** ./node_modules/uuid/dist/
|
|
9843
|
-
|
|
9844
|
-
/***/ ((__unused_webpack_module,
|
|
9939
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/rng.js":
|
|
9940
|
+
/*!********************************************************!*\
|
|
9941
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/rng.js ***!
|
|
9942
|
+
\********************************************************/
|
|
9943
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
9845
9944
|
|
|
9846
9945
|
"use strict";
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9946
|
+
|
|
9947
|
+
|
|
9948
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
9949
|
+
value: true
|
|
9950
|
+
}));
|
|
9951
|
+
exports["default"] = rng;
|
|
9851
9952
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
9852
9953
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
9853
9954
|
// generators (like Math.random()).
|
|
9854
|
-
|
|
9855
|
-
|
|
9955
|
+
let getRandomValues;
|
|
9956
|
+
const rnds8 = new Uint8Array(16);
|
|
9957
|
+
|
|
9856
9958
|
function rng() {
|
|
9857
9959
|
// lazy load so that environments that need to polyfill have a chance to do so
|
|
9858
9960
|
if (!getRandomValues) {
|
|
9859
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
9860
|
-
|
|
9861
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
9961
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
9962
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
9862
9963
|
|
|
9863
9964
|
if (!getRandomValues) {
|
|
9864
9965
|
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
@@ -9870,17 +9971,20 @@ function rng() {
|
|
|
9870
9971
|
|
|
9871
9972
|
/***/ }),
|
|
9872
9973
|
|
|
9873
|
-
/***/ "./node_modules/uuid/dist/
|
|
9874
|
-
|
|
9875
|
-
!*** ./node_modules/uuid/dist/
|
|
9876
|
-
|
|
9877
|
-
/***/ ((__unused_webpack_module,
|
|
9974
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/sha1.js":
|
|
9975
|
+
/*!*********************************************************!*\
|
|
9976
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/sha1.js ***!
|
|
9977
|
+
\*********************************************************/
|
|
9978
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
9878
9979
|
|
|
9879
9980
|
"use strict";
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
|
|
9981
|
+
|
|
9982
|
+
|
|
9983
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
9984
|
+
value: true
|
|
9985
|
+
}));
|
|
9986
|
+
exports["default"] = void 0;
|
|
9987
|
+
|
|
9884
9988
|
// Adapted from Chris Veness' SHA1 code at
|
|
9885
9989
|
// http://www.movable-type.co.uk/scripts/sha1.html
|
|
9886
9990
|
function f(s, x, y, z) {
|
|
@@ -9904,15 +10008,15 @@ function ROTL(x, n) {
|
|
|
9904
10008
|
}
|
|
9905
10009
|
|
|
9906
10010
|
function sha1(bytes) {
|
|
9907
|
-
|
|
9908
|
-
|
|
10011
|
+
const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
|
|
10012
|
+
const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
|
|
9909
10013
|
|
|
9910
10014
|
if (typeof bytes === 'string') {
|
|
9911
|
-
|
|
10015
|
+
const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
9912
10016
|
|
|
9913
10017
|
bytes = [];
|
|
9914
10018
|
|
|
9915
|
-
for (
|
|
10019
|
+
for (let i = 0; i < msg.length; ++i) {
|
|
9916
10020
|
bytes.push(msg.charCodeAt(i));
|
|
9917
10021
|
}
|
|
9918
10022
|
} else if (!Array.isArray(bytes)) {
|
|
@@ -9921,44 +10025,44 @@ function sha1(bytes) {
|
|
|
9921
10025
|
}
|
|
9922
10026
|
|
|
9923
10027
|
bytes.push(0x80);
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
10028
|
+
const l = bytes.length / 4 + 2;
|
|
10029
|
+
const N = Math.ceil(l / 16);
|
|
10030
|
+
const M = new Array(N);
|
|
9927
10031
|
|
|
9928
|
-
for (
|
|
9929
|
-
|
|
10032
|
+
for (let i = 0; i < N; ++i) {
|
|
10033
|
+
const arr = new Uint32Array(16);
|
|
9930
10034
|
|
|
9931
|
-
for (
|
|
9932
|
-
arr[j] = bytes[
|
|
10035
|
+
for (let j = 0; j < 16; ++j) {
|
|
10036
|
+
arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3];
|
|
9933
10037
|
}
|
|
9934
10038
|
|
|
9935
|
-
M[
|
|
10039
|
+
M[i] = arr;
|
|
9936
10040
|
}
|
|
9937
10041
|
|
|
9938
10042
|
M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
|
|
9939
10043
|
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
9940
10044
|
M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
|
|
9941
10045
|
|
|
9942
|
-
for (
|
|
9943
|
-
|
|
10046
|
+
for (let i = 0; i < N; ++i) {
|
|
10047
|
+
const W = new Uint32Array(80);
|
|
9944
10048
|
|
|
9945
|
-
for (
|
|
9946
|
-
W[t] = M[
|
|
10049
|
+
for (let t = 0; t < 16; ++t) {
|
|
10050
|
+
W[t] = M[i][t];
|
|
9947
10051
|
}
|
|
9948
10052
|
|
|
9949
|
-
for (
|
|
9950
|
-
W[
|
|
10053
|
+
for (let t = 16; t < 80; ++t) {
|
|
10054
|
+
W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
|
|
9951
10055
|
}
|
|
9952
10056
|
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
|
|
9956
|
-
|
|
9957
|
-
|
|
10057
|
+
let a = H[0];
|
|
10058
|
+
let b = H[1];
|
|
10059
|
+
let c = H[2];
|
|
10060
|
+
let d = H[3];
|
|
10061
|
+
let e = H[4];
|
|
9958
10062
|
|
|
9959
|
-
for (
|
|
9960
|
-
|
|
9961
|
-
|
|
10063
|
+
for (let t = 0; t < 80; ++t) {
|
|
10064
|
+
const s = Math.floor(t / 20);
|
|
10065
|
+
const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0;
|
|
9962
10066
|
e = d;
|
|
9963
10067
|
d = c;
|
|
9964
10068
|
c = ROTL(b, 30) >>> 0;
|
|
@@ -9976,93 +10080,108 @@ function sha1(bytes) {
|
|
|
9976
10080
|
return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff];
|
|
9977
10081
|
}
|
|
9978
10082
|
|
|
9979
|
-
|
|
10083
|
+
var _default = sha1;
|
|
10084
|
+
exports["default"] = _default;
|
|
9980
10085
|
|
|
9981
10086
|
/***/ }),
|
|
9982
10087
|
|
|
9983
|
-
/***/ "./node_modules/uuid/dist/
|
|
9984
|
-
|
|
9985
|
-
!*** ./node_modules/uuid/dist/
|
|
9986
|
-
|
|
9987
|
-
/***/ ((__unused_webpack_module,
|
|
10088
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/stringify.js":
|
|
10089
|
+
/*!**************************************************************!*\
|
|
10090
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/stringify.js ***!
|
|
10091
|
+
\**************************************************************/
|
|
10092
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
9988
10093
|
|
|
9989
10094
|
"use strict";
|
|
9990
|
-
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
10095
|
+
|
|
10096
|
+
|
|
10097
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
10098
|
+
value: true
|
|
10099
|
+
}));
|
|
10100
|
+
exports["default"] = void 0;
|
|
10101
|
+
exports.unsafeStringify = unsafeStringify;
|
|
10102
|
+
|
|
10103
|
+
var _validate = _interopRequireDefault(__webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/commonjs-browser/validate.js"));
|
|
10104
|
+
|
|
10105
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9995
10106
|
|
|
9996
10107
|
/**
|
|
9997
10108
|
* Convert array of 16 byte values to UUID string format of the form:
|
|
9998
10109
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
9999
10110
|
*/
|
|
10111
|
+
const byteToHex = [];
|
|
10000
10112
|
|
|
10001
|
-
|
|
10002
|
-
|
|
10003
|
-
for (var i = 0; i < 256; ++i) {
|
|
10004
|
-
byteToHex.push((i + 0x100).toString(16).substr(1));
|
|
10113
|
+
for (let i = 0; i < 256; ++i) {
|
|
10114
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
10005
10115
|
}
|
|
10006
10116
|
|
|
10007
|
-
function
|
|
10008
|
-
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
10117
|
+
function unsafeStringify(arr, offset = 0) {
|
|
10009
10118
|
// Note: Be careful editing this code! It's been tuned for performance
|
|
10010
10119
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
10011
|
-
|
|
10120
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
10121
|
+
}
|
|
10122
|
+
|
|
10123
|
+
function stringify(arr, offset = 0) {
|
|
10124
|
+
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
|
10012
10125
|
// of the following:
|
|
10013
10126
|
// - One or more input array values don't map to a hex octet (leading to
|
|
10014
10127
|
// "undefined" in the uuid)
|
|
10015
10128
|
// - Invalid input values for the RFC `version` or `variant` fields
|
|
10016
10129
|
|
|
10017
|
-
if (!(0,
|
|
10130
|
+
if (!(0, _validate.default)(uuid)) {
|
|
10018
10131
|
throw TypeError('Stringified UUID is invalid');
|
|
10019
10132
|
}
|
|
10020
10133
|
|
|
10021
10134
|
return uuid;
|
|
10022
10135
|
}
|
|
10023
10136
|
|
|
10024
|
-
|
|
10137
|
+
var _default = stringify;
|
|
10138
|
+
exports["default"] = _default;
|
|
10025
10139
|
|
|
10026
10140
|
/***/ }),
|
|
10027
10141
|
|
|
10028
|
-
/***/ "./node_modules/uuid/dist/
|
|
10029
|
-
|
|
10030
|
-
!*** ./node_modules/uuid/dist/
|
|
10031
|
-
|
|
10032
|
-
/***/ ((__unused_webpack_module,
|
|
10142
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/v1.js":
|
|
10143
|
+
/*!*******************************************************!*\
|
|
10144
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/v1.js ***!
|
|
10145
|
+
\*******************************************************/
|
|
10146
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
10033
10147
|
|
|
10034
10148
|
"use strict";
|
|
10035
|
-
__webpack_require__.r(__webpack_exports__);
|
|
10036
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10037
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
10038
|
-
/* harmony export */ });
|
|
10039
|
-
/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/esm-browser/rng.js");
|
|
10040
|
-
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
|
|
10041
10149
|
|
|
10042
|
-
|
|
10150
|
+
|
|
10151
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
10152
|
+
value: true
|
|
10153
|
+
}));
|
|
10154
|
+
exports["default"] = void 0;
|
|
10155
|
+
|
|
10156
|
+
var _rng = _interopRequireDefault(__webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/commonjs-browser/rng.js"));
|
|
10157
|
+
|
|
10158
|
+
var _stringify = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/commonjs-browser/stringify.js");
|
|
10159
|
+
|
|
10160
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10161
|
+
|
|
10162
|
+
// **`v1()` - Generate time-based UUID**
|
|
10043
10163
|
//
|
|
10044
10164
|
// Inspired by https://github.com/LiosK/UUID.js
|
|
10045
10165
|
// and http://docs.python.org/library/uuid.html
|
|
10166
|
+
let _nodeId;
|
|
10046
10167
|
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
var _clockseq; // Previous uuid creation time
|
|
10168
|
+
let _clockseq; // Previous uuid creation time
|
|
10050
10169
|
|
|
10051
10170
|
|
|
10052
|
-
|
|
10053
|
-
|
|
10171
|
+
let _lastMSecs = 0;
|
|
10172
|
+
let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
|
|
10054
10173
|
|
|
10055
10174
|
function v1(options, buf, offset) {
|
|
10056
|
-
|
|
10057
|
-
|
|
10175
|
+
let i = buf && offset || 0;
|
|
10176
|
+
const b = buf || new Array(16);
|
|
10058
10177
|
options = options || {};
|
|
10059
|
-
|
|
10060
|
-
|
|
10178
|
+
let node = options.node || _nodeId;
|
|
10179
|
+
let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
|
|
10061
10180
|
// specified. We do this lazily to minimize issues related to insufficient
|
|
10062
10181
|
// system entropy. See #189
|
|
10063
10182
|
|
|
10064
10183
|
if (node == null || clockseq == null) {
|
|
10065
|
-
|
|
10184
|
+
const seedBytes = options.random || (options.rng || _rng.default)();
|
|
10066
10185
|
|
|
10067
10186
|
if (node == null) {
|
|
10068
10187
|
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
|
|
@@ -10079,12 +10198,12 @@ function v1(options, buf, offset) {
|
|
|
10079
10198
|
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
|
10080
10199
|
|
|
10081
10200
|
|
|
10082
|
-
|
|
10201
|
+
let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
|
|
10083
10202
|
// cycle to simulate higher resolution clock
|
|
10084
10203
|
|
|
10085
|
-
|
|
10204
|
+
let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
|
|
10086
10205
|
|
|
10087
|
-
|
|
10206
|
+
const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
|
|
10088
10207
|
|
|
10089
10208
|
if (dt < 0 && options.clockseq === undefined) {
|
|
10090
10209
|
clockseq = clockseq + 1 & 0x3fff;
|
|
@@ -10107,13 +10226,13 @@ function v1(options, buf, offset) {
|
|
|
10107
10226
|
|
|
10108
10227
|
msecs += 12219292800000; // `time_low`
|
|
10109
10228
|
|
|
10110
|
-
|
|
10229
|
+
const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
10111
10230
|
b[i++] = tl >>> 24 & 0xff;
|
|
10112
10231
|
b[i++] = tl >>> 16 & 0xff;
|
|
10113
10232
|
b[i++] = tl >>> 8 & 0xff;
|
|
10114
10233
|
b[i++] = tl & 0xff; // `time_mid`
|
|
10115
10234
|
|
|
10116
|
-
|
|
10235
|
+
const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
|
|
10117
10236
|
b[i++] = tmh >>> 8 & 0xff;
|
|
10118
10237
|
b[i++] = tmh & 0xff; // `time_high_and_version`
|
|
10119
10238
|
|
|
@@ -10125,87 +10244,102 @@ function v1(options, buf, offset) {
|
|
|
10125
10244
|
|
|
10126
10245
|
b[i++] = clockseq & 0xff; // `node`
|
|
10127
10246
|
|
|
10128
|
-
for (
|
|
10247
|
+
for (let n = 0; n < 6; ++n) {
|
|
10129
10248
|
b[i + n] = node[n];
|
|
10130
10249
|
}
|
|
10131
10250
|
|
|
10132
|
-
return buf || (0,
|
|
10251
|
+
return buf || (0, _stringify.unsafeStringify)(b);
|
|
10133
10252
|
}
|
|
10134
10253
|
|
|
10135
|
-
|
|
10254
|
+
var _default = v1;
|
|
10255
|
+
exports["default"] = _default;
|
|
10136
10256
|
|
|
10137
10257
|
/***/ }),
|
|
10138
10258
|
|
|
10139
|
-
/***/ "./node_modules/uuid/dist/
|
|
10140
|
-
|
|
10141
|
-
!*** ./node_modules/uuid/dist/
|
|
10142
|
-
|
|
10143
|
-
/***/ ((__unused_webpack_module,
|
|
10259
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/v3.js":
|
|
10260
|
+
/*!*******************************************************!*\
|
|
10261
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/v3.js ***!
|
|
10262
|
+
\*******************************************************/
|
|
10263
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
10144
10264
|
|
|
10145
10265
|
"use strict";
|
|
10146
|
-
__webpack_require__.r(__webpack_exports__);
|
|
10147
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10148
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
10149
|
-
/* harmony export */ });
|
|
10150
|
-
/* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/esm-browser/v35.js");
|
|
10151
|
-
/* harmony import */ var _md5_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./md5.js */ "./node_modules/uuid/dist/esm-browser/md5.js");
|
|
10152
10266
|
|
|
10153
10267
|
|
|
10154
|
-
|
|
10155
|
-
|
|
10268
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
10269
|
+
value: true
|
|
10270
|
+
}));
|
|
10271
|
+
exports["default"] = void 0;
|
|
10272
|
+
|
|
10273
|
+
var _v = _interopRequireDefault(__webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/commonjs-browser/v35.js"));
|
|
10274
|
+
|
|
10275
|
+
var _md = _interopRequireDefault(__webpack_require__(/*! ./md5.js */ "./node_modules/uuid/dist/commonjs-browser/md5.js"));
|
|
10276
|
+
|
|
10277
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10278
|
+
|
|
10279
|
+
const v3 = (0, _v.default)('v3', 0x30, _md.default);
|
|
10280
|
+
var _default = v3;
|
|
10281
|
+
exports["default"] = _default;
|
|
10156
10282
|
|
|
10157
10283
|
/***/ }),
|
|
10158
10284
|
|
|
10159
|
-
/***/ "./node_modules/uuid/dist/
|
|
10160
|
-
|
|
10161
|
-
!*** ./node_modules/uuid/dist/
|
|
10162
|
-
|
|
10163
|
-
/***/ ((__unused_webpack_module,
|
|
10285
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/v35.js":
|
|
10286
|
+
/*!********************************************************!*\
|
|
10287
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/v35.js ***!
|
|
10288
|
+
\********************************************************/
|
|
10289
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
10164
10290
|
|
|
10165
10291
|
"use strict";
|
|
10166
|
-
__webpack_require__.r(__webpack_exports__);
|
|
10167
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10168
|
-
/* harmony export */ "DNS": () => (/* binding */ DNS),
|
|
10169
|
-
/* harmony export */ "URL": () => (/* binding */ URL),
|
|
10170
|
-
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
10171
|
-
/* harmony export */ });
|
|
10172
|
-
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
|
|
10173
|
-
/* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/esm-browser/parse.js");
|
|
10174
10292
|
|
|
10175
10293
|
|
|
10294
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
10295
|
+
value: true
|
|
10296
|
+
}));
|
|
10297
|
+
exports.URL = exports.DNS = void 0;
|
|
10298
|
+
exports["default"] = v35;
|
|
10299
|
+
|
|
10300
|
+
var _stringify = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/commonjs-browser/stringify.js");
|
|
10301
|
+
|
|
10302
|
+
var _parse = _interopRequireDefault(__webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/commonjs-browser/parse.js"));
|
|
10303
|
+
|
|
10304
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10176
10305
|
|
|
10177
10306
|
function stringToBytes(str) {
|
|
10178
10307
|
str = unescape(encodeURIComponent(str)); // UTF8 escape
|
|
10179
10308
|
|
|
10180
|
-
|
|
10309
|
+
const bytes = [];
|
|
10181
10310
|
|
|
10182
|
-
for (
|
|
10311
|
+
for (let i = 0; i < str.length; ++i) {
|
|
10183
10312
|
bytes.push(str.charCodeAt(i));
|
|
10184
10313
|
}
|
|
10185
10314
|
|
|
10186
10315
|
return bytes;
|
|
10187
10316
|
}
|
|
10188
10317
|
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
|
|
10318
|
+
const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
10319
|
+
exports.DNS = DNS;
|
|
10320
|
+
const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
10321
|
+
exports.URL = URL;
|
|
10322
|
+
|
|
10323
|
+
function v35(name, version, hashfunc) {
|
|
10192
10324
|
function generateUUID(value, namespace, buf, offset) {
|
|
10325
|
+
var _namespace;
|
|
10326
|
+
|
|
10193
10327
|
if (typeof value === 'string') {
|
|
10194
10328
|
value = stringToBytes(value);
|
|
10195
10329
|
}
|
|
10196
10330
|
|
|
10197
10331
|
if (typeof namespace === 'string') {
|
|
10198
|
-
namespace = (0,
|
|
10332
|
+
namespace = (0, _parse.default)(namespace);
|
|
10199
10333
|
}
|
|
10200
10334
|
|
|
10201
|
-
if (namespace.length !== 16) {
|
|
10335
|
+
if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
|
|
10202
10336
|
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
10203
10337
|
} // Compute hash of namespace and value, Per 4.3
|
|
10204
10338
|
// Future: Use spread syntax when supported on all platforms, e.g. `bytes =
|
|
10205
10339
|
// hashfunc([...namespace, ... value])`
|
|
10206
10340
|
|
|
10207
10341
|
|
|
10208
|
-
|
|
10342
|
+
let bytes = new Uint8Array(16 + value.length);
|
|
10209
10343
|
bytes.set(namespace);
|
|
10210
10344
|
bytes.set(value, namespace.length);
|
|
10211
10345
|
bytes = hashfunc(bytes);
|
|
@@ -10215,14 +10349,14 @@ var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
|
10215
10349
|
if (buf) {
|
|
10216
10350
|
offset = offset || 0;
|
|
10217
10351
|
|
|
10218
|
-
for (
|
|
10352
|
+
for (let i = 0; i < 16; ++i) {
|
|
10219
10353
|
buf[offset + i] = bytes[i];
|
|
10220
10354
|
}
|
|
10221
10355
|
|
|
10222
10356
|
return buf;
|
|
10223
10357
|
}
|
|
10224
10358
|
|
|
10225
|
-
return (0,
|
|
10359
|
+
return (0, _stringify.unsafeStringify)(bytes);
|
|
10226
10360
|
} // Function#name is not settable on some platforms (#270)
|
|
10227
10361
|
|
|
10228
10362
|
|
|
@@ -10238,25 +10372,37 @@ var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
|
10238
10372
|
|
|
10239
10373
|
/***/ }),
|
|
10240
10374
|
|
|
10241
|
-
/***/ "./node_modules/uuid/dist/
|
|
10242
|
-
|
|
10243
|
-
!*** ./node_modules/uuid/dist/
|
|
10244
|
-
|
|
10245
|
-
/***/ ((__unused_webpack_module,
|
|
10375
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/v4.js":
|
|
10376
|
+
/*!*******************************************************!*\
|
|
10377
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/v4.js ***!
|
|
10378
|
+
\*******************************************************/
|
|
10379
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
10246
10380
|
|
|
10247
10381
|
"use strict";
|
|
10248
|
-
__webpack_require__.r(__webpack_exports__);
|
|
10249
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10250
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
10251
|
-
/* harmony export */ });
|
|
10252
|
-
/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/esm-browser/rng.js");
|
|
10253
|
-
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
|
|
10254
10382
|
|
|
10255
10383
|
|
|
10384
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
10385
|
+
value: true
|
|
10386
|
+
}));
|
|
10387
|
+
exports["default"] = void 0;
|
|
10388
|
+
|
|
10389
|
+
var _native = _interopRequireDefault(__webpack_require__(/*! ./native.js */ "./node_modules/uuid/dist/commonjs-browser/native.js"));
|
|
10390
|
+
|
|
10391
|
+
var _rng = _interopRequireDefault(__webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/commonjs-browser/rng.js"));
|
|
10392
|
+
|
|
10393
|
+
var _stringify = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/commonjs-browser/stringify.js");
|
|
10394
|
+
|
|
10395
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10256
10396
|
|
|
10257
10397
|
function v4(options, buf, offset) {
|
|
10398
|
+
if (_native.default.randomUUID && !buf && !options) {
|
|
10399
|
+
return _native.default.randomUUID();
|
|
10400
|
+
}
|
|
10401
|
+
|
|
10258
10402
|
options = options || {};
|
|
10259
|
-
|
|
10403
|
+
|
|
10404
|
+
const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
10405
|
+
|
|
10260
10406
|
|
|
10261
10407
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
10262
10408
|
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
@@ -10264,85 +10410,102 @@ function v4(options, buf, offset) {
|
|
|
10264
10410
|
if (buf) {
|
|
10265
10411
|
offset = offset || 0;
|
|
10266
10412
|
|
|
10267
|
-
for (
|
|
10413
|
+
for (let i = 0; i < 16; ++i) {
|
|
10268
10414
|
buf[offset + i] = rnds[i];
|
|
10269
10415
|
}
|
|
10270
10416
|
|
|
10271
10417
|
return buf;
|
|
10272
10418
|
}
|
|
10273
10419
|
|
|
10274
|
-
return (0,
|
|
10420
|
+
return (0, _stringify.unsafeStringify)(rnds);
|
|
10275
10421
|
}
|
|
10276
10422
|
|
|
10277
|
-
|
|
10423
|
+
var _default = v4;
|
|
10424
|
+
exports["default"] = _default;
|
|
10278
10425
|
|
|
10279
10426
|
/***/ }),
|
|
10280
10427
|
|
|
10281
|
-
/***/ "./node_modules/uuid/dist/
|
|
10282
|
-
|
|
10283
|
-
!*** ./node_modules/uuid/dist/
|
|
10284
|
-
|
|
10285
|
-
/***/ ((__unused_webpack_module,
|
|
10428
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/v5.js":
|
|
10429
|
+
/*!*******************************************************!*\
|
|
10430
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/v5.js ***!
|
|
10431
|
+
\*******************************************************/
|
|
10432
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
10286
10433
|
|
|
10287
10434
|
"use strict";
|
|
10288
|
-
__webpack_require__.r(__webpack_exports__);
|
|
10289
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10290
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
10291
|
-
/* harmony export */ });
|
|
10292
|
-
/* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/esm-browser/v35.js");
|
|
10293
|
-
/* harmony import */ var _sha1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sha1.js */ "./node_modules/uuid/dist/esm-browser/sha1.js");
|
|
10294
10435
|
|
|
10295
10436
|
|
|
10296
|
-
|
|
10297
|
-
|
|
10437
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
10438
|
+
value: true
|
|
10439
|
+
}));
|
|
10440
|
+
exports["default"] = void 0;
|
|
10441
|
+
|
|
10442
|
+
var _v = _interopRequireDefault(__webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/commonjs-browser/v35.js"));
|
|
10443
|
+
|
|
10444
|
+
var _sha = _interopRequireDefault(__webpack_require__(/*! ./sha1.js */ "./node_modules/uuid/dist/commonjs-browser/sha1.js"));
|
|
10445
|
+
|
|
10446
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10447
|
+
|
|
10448
|
+
const v5 = (0, _v.default)('v5', 0x50, _sha.default);
|
|
10449
|
+
var _default = v5;
|
|
10450
|
+
exports["default"] = _default;
|
|
10298
10451
|
|
|
10299
10452
|
/***/ }),
|
|
10300
10453
|
|
|
10301
|
-
/***/ "./node_modules/uuid/dist/
|
|
10302
|
-
|
|
10303
|
-
!*** ./node_modules/uuid/dist/
|
|
10304
|
-
|
|
10305
|
-
/***/ ((__unused_webpack_module,
|
|
10454
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/validate.js":
|
|
10455
|
+
/*!*************************************************************!*\
|
|
10456
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/validate.js ***!
|
|
10457
|
+
\*************************************************************/
|
|
10458
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
10306
10459
|
|
|
10307
10460
|
"use strict";
|
|
10308
|
-
__webpack_require__.r(__webpack_exports__);
|
|
10309
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10310
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
10311
|
-
/* harmony export */ });
|
|
10312
|
-
/* harmony import */ var _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ "./node_modules/uuid/dist/esm-browser/regex.js");
|
|
10313
10461
|
|
|
10314
10462
|
|
|
10463
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
10464
|
+
value: true
|
|
10465
|
+
}));
|
|
10466
|
+
exports["default"] = void 0;
|
|
10467
|
+
|
|
10468
|
+
var _regex = _interopRequireDefault(__webpack_require__(/*! ./regex.js */ "./node_modules/uuid/dist/commonjs-browser/regex.js"));
|
|
10469
|
+
|
|
10470
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10471
|
+
|
|
10315
10472
|
function validate(uuid) {
|
|
10316
|
-
return typeof uuid === 'string' &&
|
|
10473
|
+
return typeof uuid === 'string' && _regex.default.test(uuid);
|
|
10317
10474
|
}
|
|
10318
10475
|
|
|
10319
|
-
|
|
10476
|
+
var _default = validate;
|
|
10477
|
+
exports["default"] = _default;
|
|
10320
10478
|
|
|
10321
10479
|
/***/ }),
|
|
10322
10480
|
|
|
10323
|
-
/***/ "./node_modules/uuid/dist/
|
|
10324
|
-
|
|
10325
|
-
!*** ./node_modules/uuid/dist/
|
|
10326
|
-
|
|
10327
|
-
/***/ ((__unused_webpack_module,
|
|
10481
|
+
/***/ "./node_modules/uuid/dist/commonjs-browser/version.js":
|
|
10482
|
+
/*!************************************************************!*\
|
|
10483
|
+
!*** ./node_modules/uuid/dist/commonjs-browser/version.js ***!
|
|
10484
|
+
\************************************************************/
|
|
10485
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
10328
10486
|
|
|
10329
10487
|
"use strict";
|
|
10330
|
-
__webpack_require__.r(__webpack_exports__);
|
|
10331
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10332
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
10333
|
-
/* harmony export */ });
|
|
10334
|
-
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
|
|
10335
10488
|
|
|
10336
10489
|
|
|
10490
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
10491
|
+
value: true
|
|
10492
|
+
}));
|
|
10493
|
+
exports["default"] = void 0;
|
|
10494
|
+
|
|
10495
|
+
var _validate = _interopRequireDefault(__webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/commonjs-browser/validate.js"));
|
|
10496
|
+
|
|
10497
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10498
|
+
|
|
10337
10499
|
function version(uuid) {
|
|
10338
|
-
if (!(0,
|
|
10500
|
+
if (!(0, _validate.default)(uuid)) {
|
|
10339
10501
|
throw TypeError('Invalid UUID');
|
|
10340
10502
|
}
|
|
10341
10503
|
|
|
10342
|
-
return parseInt(uuid.
|
|
10504
|
+
return parseInt(uuid.slice(14, 15), 16);
|
|
10343
10505
|
}
|
|
10344
10506
|
|
|
10345
|
-
|
|
10507
|
+
var _default = version;
|
|
10508
|
+
exports["default"] = _default;
|
|
10346
10509
|
|
|
10347
10510
|
/***/ })
|
|
10348
10511
|
|