@eclipse-glsp-examples/workflow-server-bundled 2.2.0-next.94 → 2.2.0-next.95
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/package.json +2 -2
- package/wf-glsp-server-node.js +793 -164
- package/wf-glsp-server-node.js.map +1 -1
package/wf-glsp-server-node.js
CHANGED
|
@@ -2255,7 +2255,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
2255
2255
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2256
2256
|
exports.WorkflowPopupFactory = void 0;
|
|
2257
2257
|
/********************************************************************************
|
|
2258
|
-
* Copyright (c) 2022-
|
|
2258
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
2259
2259
|
*
|
|
2260
2260
|
* This program and the accompanying materials are made available under the
|
|
2261
2261
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -6230,7 +6230,7 @@ function resolveContainerConfiguration(...containerConfigurations) {
|
|
|
6230
6230
|
}
|
|
6231
6231
|
});
|
|
6232
6232
|
if (duplicates.length > 0) {
|
|
6233
|
-
const culprits = duplicates.map(m => m.featureId).join(', ');
|
|
6233
|
+
const culprits = duplicates.map(m => m.featureId.toString()).join(', ');
|
|
6234
6234
|
throw new Error(`Could not resolve container configuration. Non-unique feature ids found in container configuration: ${culprits}`);
|
|
6235
6235
|
}
|
|
6236
6236
|
return modules;
|
|
@@ -6774,7 +6774,25 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
6774
6774
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
6775
6775
|
};
|
|
6776
6776
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6777
|
-
exports.getSubType = exports.getBasicType = exports.findElement = exports.cloneModel = exports.applyBounds = void 0;
|
|
6777
|
+
exports.getSubType = exports.getBasicType = exports.findElement = exports.cloneModel = exports.applyBounds = exports.isZoomable = exports.isScrollable = void 0;
|
|
6778
|
+
/********************************************************************************
|
|
6779
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
6780
|
+
*
|
|
6781
|
+
* This program and the accompanying materials are made available under the
|
|
6782
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6783
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
6784
|
+
*
|
|
6785
|
+
* This Source Code may also be made available under the following Secondary
|
|
6786
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
6787
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
6788
|
+
* with the GNU Classpath Exception which is available at
|
|
6789
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
6790
|
+
*
|
|
6791
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
6792
|
+
********************************************************************************/
|
|
6793
|
+
var model_1 = __webpack_require__(/*! sprotty-protocol/lib/model */ "../../node_modules/sprotty-protocol/lib/model.js");
|
|
6794
|
+
Object.defineProperty(exports, "isScrollable", ({ enumerable: true, get: function () { return model_1.isScrollable; } }));
|
|
6795
|
+
Object.defineProperty(exports, "isZoomable", ({ enumerable: true, get: function () { return model_1.isZoomable; } }));
|
|
6778
6796
|
__exportStar(__webpack_require__(/*! sprotty-protocol/lib/utils/async */ "../../node_modules/sprotty-protocol/lib/utils/async.js"), exports);
|
|
6779
6797
|
__exportStar(__webpack_require__(/*! sprotty-protocol/lib/utils/geometry */ "../../node_modules/sprotty-protocol/lib/utils/geometry.js"), exports);
|
|
6780
6798
|
__exportStar(__webpack_require__(/*! sprotty-protocol/lib/utils/json */ "../../node_modules/sprotty-protocol/lib/utils/json.js"), exports);
|
|
@@ -7903,60 +7921,73 @@ exports.hasArrayProp = hasArrayProp;
|
|
|
7903
7921
|
|
|
7904
7922
|
/***/ }),
|
|
7905
7923
|
|
|
7906
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/
|
|
7907
|
-
|
|
7908
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/
|
|
7909
|
-
|
|
7924
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/index.js":
|
|
7925
|
+
/*!******************************************************************************************!*\
|
|
7926
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/index.js ***!
|
|
7927
|
+
\******************************************************************************************/
|
|
7910
7928
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7911
7929
|
|
|
7912
7930
|
"use strict";
|
|
7913
7931
|
__webpack_require__.r(__webpack_exports__);
|
|
7914
7932
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7915
|
-
/* harmony export */
|
|
7933
|
+
/* harmony export */ MAX: () => (/* reexport safe */ _max_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
7934
|
+
/* harmony export */ NIL: () => (/* reexport safe */ _nil_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
7935
|
+
/* harmony export */ parse: () => (/* reexport safe */ _parse_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
7936
|
+
/* harmony export */ stringify: () => (/* reexport safe */ _stringify_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
7937
|
+
/* harmony export */ v1: () => (/* reexport safe */ _v1_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
7938
|
+
/* harmony export */ v1ToV6: () => (/* reexport safe */ _v1ToV6_js__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
7939
|
+
/* harmony export */ v3: () => (/* reexport safe */ _v3_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
7940
|
+
/* harmony export */ v4: () => (/* reexport safe */ _v4_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
7941
|
+
/* harmony export */ v5: () => (/* reexport safe */ _v5_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
7942
|
+
/* harmony export */ v6: () => (/* reexport safe */ _v6_js__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
7943
|
+
/* harmony export */ v6ToV1: () => (/* reexport safe */ _v6ToV1_js__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
7944
|
+
/* harmony export */ v7: () => (/* reexport safe */ _v7_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
7945
|
+
/* harmony export */ validate: () => (/* reexport safe */ _validate_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
7946
|
+
/* harmony export */ version: () => (/* reexport safe */ _version_js__WEBPACK_IMPORTED_MODULE_13__["default"])
|
|
7916
7947
|
/* harmony export */ });
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
*/
|
|
7921
|
-
var
|
|
7948
|
+
/* harmony import */ var _max_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./max.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/max.js");
|
|
7949
|
+
/* harmony import */ var _nil_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./nil.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/nil.js");
|
|
7950
|
+
/* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./parse.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/parse.js");
|
|
7951
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/stringify.js");
|
|
7952
|
+
/* harmony import */ var _v1_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./v1.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v1.js");
|
|
7953
|
+
/* harmony import */ var _v1ToV6_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./v1ToV6.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v1ToV6.js");
|
|
7954
|
+
/* harmony import */ var _v3_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./v3.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v3.js");
|
|
7955
|
+
/* harmony import */ var _v4_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./v4.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v4.js");
|
|
7956
|
+
/* harmony import */ var _v5_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./v5.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v5.js");
|
|
7957
|
+
/* harmony import */ var _v6_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./v6.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v6.js");
|
|
7958
|
+
/* harmony import */ var _v6ToV1_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./v6ToV1.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v6ToV1.js");
|
|
7959
|
+
/* harmony import */ var _v7_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./v7.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v7.js");
|
|
7960
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./validate.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/validate.js");
|
|
7961
|
+
/* harmony import */ var _version_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./version.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/version.js");
|
|
7962
|
+
|
|
7963
|
+
|
|
7964
|
+
|
|
7965
|
+
|
|
7966
|
+
|
|
7967
|
+
|
|
7968
|
+
|
|
7969
|
+
|
|
7970
|
+
|
|
7971
|
+
|
|
7922
7972
|
|
|
7923
|
-
for (var i = 0; i < 256; ++i) {
|
|
7924
|
-
byteToHex[i] = (i + 0x100).toString(16).substr(1);
|
|
7925
|
-
}
|
|
7926
7973
|
|
|
7927
|
-
function bytesToUuid(buf, offset) {
|
|
7928
|
-
var i = offset || 0;
|
|
7929
|
-
var bth = byteToHex; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
|
|
7930
7974
|
|
|
7931
|
-
return [bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]]].join('');
|
|
7932
|
-
}
|
|
7933
7975
|
|
|
7934
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (bytesToUuid);
|
|
7935
7976
|
|
|
7936
7977
|
/***/ }),
|
|
7937
7978
|
|
|
7938
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/
|
|
7939
|
-
|
|
7940
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/
|
|
7941
|
-
|
|
7979
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/max.js":
|
|
7980
|
+
/*!****************************************************************************************!*\
|
|
7981
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/max.js ***!
|
|
7982
|
+
\****************************************************************************************/
|
|
7942
7983
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7943
7984
|
|
|
7944
7985
|
"use strict";
|
|
7945
7986
|
__webpack_require__.r(__webpack_exports__);
|
|
7946
7987
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7947
|
-
/* harmony export */
|
|
7948
|
-
/* harmony export */ v3: () => (/* reexport safe */ _v3_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
7949
|
-
/* harmony export */ v4: () => (/* reexport safe */ _v4_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
7950
|
-
/* harmony export */ v5: () => (/* reexport safe */ _v5_js__WEBPACK_IMPORTED_MODULE_3__["default"])
|
|
7988
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
7951
7989
|
/* harmony export */ });
|
|
7952
|
-
/* harmony
|
|
7953
|
-
/* harmony import */ var _v3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./v3.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v3.js");
|
|
7954
|
-
/* harmony import */ var _v4_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./v4.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v4.js");
|
|
7955
|
-
/* harmony import */ var _v5_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./v5.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v5.js");
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7990
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ('ffffffff-ffff-ffff-ffff-ffffffffffff');
|
|
7960
7991
|
|
|
7961
7992
|
/***/ }),
|
|
7962
7993
|
|
|
@@ -7971,9 +8002,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7971
8002
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7972
8003
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
7973
8004
|
/* harmony export */ });
|
|
7974
|
-
/* harmony import */ var
|
|
7975
|
-
/* harmony import */ var
|
|
7976
|
-
|
|
8005
|
+
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:crypto */ "node:crypto");
|
|
8006
|
+
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_crypto__WEBPACK_IMPORTED_MODULE_0__);
|
|
7977
8007
|
|
|
7978
8008
|
function md5(bytes) {
|
|
7979
8009
|
if (Array.isArray(bytes)) {
|
|
@@ -7981,11 +8011,111 @@ function md5(bytes) {
|
|
|
7981
8011
|
} else if (typeof bytes === 'string') {
|
|
7982
8012
|
bytes = Buffer.from(bytes, 'utf8');
|
|
7983
8013
|
}
|
|
8014
|
+
return node_crypto__WEBPACK_IMPORTED_MODULE_0___default().createHash('md5').update(bytes).digest();
|
|
8015
|
+
}
|
|
8016
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (md5);
|
|
8017
|
+
|
|
8018
|
+
/***/ }),
|
|
8019
|
+
|
|
8020
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/native.js":
|
|
8021
|
+
/*!*******************************************************************************************!*\
|
|
8022
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/native.js ***!
|
|
8023
|
+
\*******************************************************************************************/
|
|
8024
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8025
|
+
|
|
8026
|
+
"use strict";
|
|
8027
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8028
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8029
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8030
|
+
/* harmony export */ });
|
|
8031
|
+
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:crypto */ "node:crypto");
|
|
8032
|
+
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_crypto__WEBPACK_IMPORTED_MODULE_0__);
|
|
8033
|
+
|
|
8034
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
8035
|
+
randomUUID: (node_crypto__WEBPACK_IMPORTED_MODULE_0___default().randomUUID)
|
|
8036
|
+
});
|
|
8037
|
+
|
|
8038
|
+
/***/ }),
|
|
8039
|
+
|
|
8040
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/nil.js":
|
|
8041
|
+
/*!****************************************************************************************!*\
|
|
8042
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/nil.js ***!
|
|
8043
|
+
\****************************************************************************************/
|
|
8044
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8045
|
+
|
|
8046
|
+
"use strict";
|
|
8047
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8048
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8049
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8050
|
+
/* harmony export */ });
|
|
8051
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ('00000000-0000-0000-0000-000000000000');
|
|
8052
|
+
|
|
8053
|
+
/***/ }),
|
|
8054
|
+
|
|
8055
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/parse.js":
|
|
8056
|
+
/*!******************************************************************************************!*\
|
|
8057
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/parse.js ***!
|
|
8058
|
+
\******************************************************************************************/
|
|
8059
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8060
|
+
|
|
8061
|
+
"use strict";
|
|
8062
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8063
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8064
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8065
|
+
/* harmony export */ });
|
|
8066
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/validate.js");
|
|
8067
|
+
|
|
8068
|
+
function parse(uuid) {
|
|
8069
|
+
if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
|
|
8070
|
+
throw TypeError('Invalid UUID');
|
|
8071
|
+
}
|
|
8072
|
+
let v;
|
|
8073
|
+
const arr = new Uint8Array(16);
|
|
8074
|
+
|
|
8075
|
+
// Parse ########-....-....-....-............
|
|
8076
|
+
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
8077
|
+
arr[1] = v >>> 16 & 0xff;
|
|
8078
|
+
arr[2] = v >>> 8 & 0xff;
|
|
8079
|
+
arr[3] = v & 0xff;
|
|
8080
|
+
|
|
8081
|
+
// Parse ........-####-....-....-............
|
|
8082
|
+
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
|
8083
|
+
arr[5] = v & 0xff;
|
|
8084
|
+
|
|
8085
|
+
// Parse ........-....-####-....-............
|
|
8086
|
+
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
|
8087
|
+
arr[7] = v & 0xff;
|
|
7984
8088
|
|
|
7985
|
-
|
|
8089
|
+
// Parse ........-....-....-####-............
|
|
8090
|
+
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
|
8091
|
+
arr[9] = v & 0xff;
|
|
8092
|
+
|
|
8093
|
+
// Parse ........-....-....-....-############
|
|
8094
|
+
// (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
|
|
8095
|
+
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
|
|
8096
|
+
arr[11] = v / 0x100000000 & 0xff;
|
|
8097
|
+
arr[12] = v >>> 24 & 0xff;
|
|
8098
|
+
arr[13] = v >>> 16 & 0xff;
|
|
8099
|
+
arr[14] = v >>> 8 & 0xff;
|
|
8100
|
+
arr[15] = v & 0xff;
|
|
8101
|
+
return arr;
|
|
7986
8102
|
}
|
|
8103
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parse);
|
|
7987
8104
|
|
|
7988
|
-
|
|
8105
|
+
/***/ }),
|
|
8106
|
+
|
|
8107
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/regex.js":
|
|
8108
|
+
/*!******************************************************************************************!*\
|
|
8109
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/regex.js ***!
|
|
8110
|
+
\******************************************************************************************/
|
|
8111
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8112
|
+
|
|
8113
|
+
"use strict";
|
|
8114
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8115
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8116
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8117
|
+
/* harmony export */ });
|
|
8118
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i);
|
|
7989
8119
|
|
|
7990
8120
|
/***/ }),
|
|
7991
8121
|
|
|
@@ -8000,11 +8130,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8000
8130
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8001
8131
|
/* harmony export */ "default": () => (/* binding */ rng)
|
|
8002
8132
|
/* harmony export */ });
|
|
8003
|
-
/* harmony import */ var
|
|
8004
|
-
/* harmony import */ var
|
|
8133
|
+
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:crypto */ "node:crypto");
|
|
8134
|
+
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_crypto__WEBPACK_IMPORTED_MODULE_0__);
|
|
8005
8135
|
|
|
8136
|
+
const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
|
|
8137
|
+
let poolPtr = rnds8Pool.length;
|
|
8006
8138
|
function rng() {
|
|
8007
|
-
|
|
8139
|
+
if (poolPtr > rnds8Pool.length - 16) {
|
|
8140
|
+
node_crypto__WEBPACK_IMPORTED_MODULE_0___default().randomFillSync(rnds8Pool);
|
|
8141
|
+
poolPtr = 0;
|
|
8142
|
+
}
|
|
8143
|
+
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
8008
8144
|
}
|
|
8009
8145
|
|
|
8010
8146
|
/***/ }),
|
|
@@ -8020,9 +8156,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8020
8156
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8021
8157
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8022
8158
|
/* harmony export */ });
|
|
8023
|
-
/* harmony import */ var
|
|
8024
|
-
/* harmony import */ var
|
|
8025
|
-
|
|
8159
|
+
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node:crypto */ "node:crypto");
|
|
8160
|
+
/* harmony import */ var node_crypto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_crypto__WEBPACK_IMPORTED_MODULE_0__);
|
|
8026
8161
|
|
|
8027
8162
|
function sha1(bytes) {
|
|
8028
8163
|
if (Array.isArray(bytes)) {
|
|
@@ -8030,14 +8165,59 @@ function sha1(bytes) {
|
|
|
8030
8165
|
} else if (typeof bytes === 'string') {
|
|
8031
8166
|
bytes = Buffer.from(bytes, 'utf8');
|
|
8032
8167
|
}
|
|
8033
|
-
|
|
8034
|
-
return crypto__WEBPACK_IMPORTED_MODULE_0___default().createHash('sha1').update(bytes).digest();
|
|
8168
|
+
return node_crypto__WEBPACK_IMPORTED_MODULE_0___default().createHash('sha1').update(bytes).digest();
|
|
8035
8169
|
}
|
|
8036
|
-
|
|
8037
8170
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (sha1);
|
|
8038
8171
|
|
|
8039
8172
|
/***/ }),
|
|
8040
8173
|
|
|
8174
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/stringify.js":
|
|
8175
|
+
/*!**********************************************************************************************!*\
|
|
8176
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/stringify.js ***!
|
|
8177
|
+
\**********************************************************************************************/
|
|
8178
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8179
|
+
|
|
8180
|
+
"use strict";
|
|
8181
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8182
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8183
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
8184
|
+
/* harmony export */ unsafeStringify: () => (/* binding */ unsafeStringify)
|
|
8185
|
+
/* harmony export */ });
|
|
8186
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/validate.js");
|
|
8187
|
+
|
|
8188
|
+
|
|
8189
|
+
/**
|
|
8190
|
+
* Convert array of 16 byte values to UUID string format of the form:
|
|
8191
|
+
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
8192
|
+
*/
|
|
8193
|
+
const byteToHex = [];
|
|
8194
|
+
for (let i = 0; i < 256; ++i) {
|
|
8195
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
8196
|
+
}
|
|
8197
|
+
function unsafeStringify(arr, offset = 0) {
|
|
8198
|
+
// Note: Be careful editing this code! It's been tuned for performance
|
|
8199
|
+
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
8200
|
+
//
|
|
8201
|
+
// Note to future-self: No, you can't remove the `toLowerCase()` call.
|
|
8202
|
+
// REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351
|
|
8203
|
+
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();
|
|
8204
|
+
}
|
|
8205
|
+
function stringify(arr, offset = 0) {
|
|
8206
|
+
const uuid = unsafeStringify(arr, offset);
|
|
8207
|
+
// Consistency check for valid UUID. If this throws, it's likely due to one
|
|
8208
|
+
// of the following:
|
|
8209
|
+
// - One or more input array values don't map to a hex octet (leading to
|
|
8210
|
+
// "undefined" in the uuid)
|
|
8211
|
+
// - Invalid input values for the RFC `version` or `variant` fields
|
|
8212
|
+
if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
|
|
8213
|
+
throw TypeError('Stringified UUID is invalid');
|
|
8214
|
+
}
|
|
8215
|
+
return uuid;
|
|
8216
|
+
}
|
|
8217
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (stringify);
|
|
8218
|
+
|
|
8219
|
+
/***/ }),
|
|
8220
|
+
|
|
8041
8221
|
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v1.js":
|
|
8042
8222
|
/*!***************************************************************************************!*\
|
|
8043
8223
|
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v1.js ***!
|
|
@@ -8050,102 +8230,168 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8050
8230
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8051
8231
|
/* harmony export */ });
|
|
8052
8232
|
/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/rng.js");
|
|
8053
|
-
/* harmony import */ var
|
|
8233
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/stringify.js");
|
|
8234
|
+
|
|
8054
8235
|
|
|
8055
|
-
|
|
8236
|
+
|
|
8237
|
+
// **`v1()` - Generate time-based UUID**
|
|
8056
8238
|
//
|
|
8057
8239
|
// Inspired by https://github.com/LiosK/UUID.js
|
|
8058
8240
|
// and http://docs.python.org/library/uuid.html
|
|
8059
8241
|
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
var _clockseq; // Previous uuid creation time
|
|
8063
|
-
|
|
8242
|
+
let _nodeId;
|
|
8243
|
+
let _clockseq;
|
|
8064
8244
|
|
|
8065
|
-
|
|
8066
|
-
|
|
8245
|
+
// Previous uuid creation time
|
|
8246
|
+
let _lastMSecs = 0;
|
|
8247
|
+
let _lastNSecs = 0;
|
|
8067
8248
|
|
|
8249
|
+
// See https://github.com/uuidjs/uuid for API details
|
|
8068
8250
|
function v1(options, buf, offset) {
|
|
8069
|
-
|
|
8070
|
-
|
|
8251
|
+
let i = buf && offset || 0;
|
|
8252
|
+
const b = buf || new Array(16);
|
|
8071
8253
|
options = options || {};
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
// specified. We do this lazily to minimize issues related to insufficient
|
|
8075
|
-
// system entropy. See #189
|
|
8254
|
+
let node = options.node;
|
|
8255
|
+
let clockseq = options.clockseq;
|
|
8076
8256
|
|
|
8257
|
+
// v1 only: Use cached `node` and `clockseq` values
|
|
8258
|
+
if (!options._v6) {
|
|
8259
|
+
if (!node) {
|
|
8260
|
+
node = _nodeId;
|
|
8261
|
+
}
|
|
8262
|
+
if (clockseq == null) {
|
|
8263
|
+
clockseq = _clockseq;
|
|
8264
|
+
}
|
|
8265
|
+
}
|
|
8266
|
+
|
|
8267
|
+
// Handle cases where we need entropy. We do this lazily to minimize issues
|
|
8268
|
+
// related to insufficient system entropy. See #189
|
|
8077
8269
|
if (node == null || clockseq == null) {
|
|
8078
|
-
|
|
8270
|
+
const seedBytes = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
8079
8271
|
|
|
8272
|
+
// Randomize node
|
|
8080
8273
|
if (node == null) {
|
|
8081
|
-
|
|
8082
|
-
|
|
8274
|
+
node = [seedBytes[0], seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
|
|
8275
|
+
|
|
8276
|
+
// v1 only: cache node value for reuse
|
|
8277
|
+
if (!_nodeId && !options._v6) {
|
|
8278
|
+
// per RFC4122 4.5: Set MAC multicast bit (v1 only)
|
|
8279
|
+
node[0] |= 0x01; // Set multicast bit
|
|
8280
|
+
|
|
8281
|
+
_nodeId = node;
|
|
8282
|
+
}
|
|
8083
8283
|
}
|
|
8084
8284
|
|
|
8285
|
+
// Randomize clockseq
|
|
8085
8286
|
if (clockseq == null) {
|
|
8086
8287
|
// Per 4.2.2, randomize (14 bit) clockseq
|
|
8087
|
-
clockseq =
|
|
8288
|
+
clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
|
|
8289
|
+
if (_clockseq === undefined && !options._v6) {
|
|
8290
|
+
_clockseq = clockseq;
|
|
8291
|
+
}
|
|
8088
8292
|
}
|
|
8089
|
-
}
|
|
8090
|
-
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
|
|
8091
|
-
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
|
8092
|
-
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
|
8293
|
+
}
|
|
8093
8294
|
|
|
8295
|
+
// v1 & v6 timestamps are 100 nano-second units since the Gregorian epoch,
|
|
8296
|
+
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so time is
|
|
8297
|
+
// handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
|
8298
|
+
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
|
8299
|
+
let msecs = options.msecs !== undefined ? options.msecs : Date.now();
|
|
8094
8300
|
|
|
8095
|
-
|
|
8301
|
+
// Per 4.2.1.2, use count of uuid's generated during the current clock
|
|
8096
8302
|
// cycle to simulate higher resolution clock
|
|
8303
|
+
let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
|
|
8097
8304
|
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
|
|
8305
|
+
// Time since last uuid creation (in msecs)
|
|
8306
|
+
const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000;
|
|
8101
8307
|
|
|
8308
|
+
// Per 4.2.1.2, Bump clockseq on clock regression
|
|
8102
8309
|
if (dt < 0 && options.clockseq === undefined) {
|
|
8103
8310
|
clockseq = clockseq + 1 & 0x3fff;
|
|
8104
|
-
}
|
|
8105
|
-
// time interval
|
|
8106
|
-
|
|
8311
|
+
}
|
|
8107
8312
|
|
|
8313
|
+
// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
|
8314
|
+
// time interval
|
|
8108
8315
|
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
|
|
8109
8316
|
nsecs = 0;
|
|
8110
|
-
}
|
|
8111
|
-
|
|
8317
|
+
}
|
|
8112
8318
|
|
|
8319
|
+
// Per 4.2.1.2 Throw error if too many uuids are requested
|
|
8113
8320
|
if (nsecs >= 10000) {
|
|
8114
8321
|
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
8115
8322
|
}
|
|
8116
|
-
|
|
8117
8323
|
_lastMSecs = msecs;
|
|
8118
8324
|
_lastNSecs = nsecs;
|
|
8119
|
-
_clockseq = clockseq;
|
|
8325
|
+
_clockseq = clockseq;
|
|
8120
8326
|
|
|
8121
|
-
|
|
8327
|
+
// Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
|
8328
|
+
msecs += 12219292800000;
|
|
8122
8329
|
|
|
8123
|
-
|
|
8330
|
+
// `time_low`
|
|
8331
|
+
const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
8124
8332
|
b[i++] = tl >>> 24 & 0xff;
|
|
8125
8333
|
b[i++] = tl >>> 16 & 0xff;
|
|
8126
8334
|
b[i++] = tl >>> 8 & 0xff;
|
|
8127
|
-
b[i++] = tl & 0xff;
|
|
8335
|
+
b[i++] = tl & 0xff;
|
|
8128
8336
|
|
|
8129
|
-
|
|
8337
|
+
// `time_mid`
|
|
8338
|
+
const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
|
|
8130
8339
|
b[i++] = tmh >>> 8 & 0xff;
|
|
8131
|
-
b[i++] = tmh & 0xff;
|
|
8340
|
+
b[i++] = tmh & 0xff;
|
|
8132
8341
|
|
|
8342
|
+
// `time_high_and_version`
|
|
8133
8343
|
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
|
|
8344
|
+
b[i++] = tmh >>> 16 & 0xff;
|
|
8134
8345
|
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
|
|
8346
|
+
// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
|
8347
|
+
b[i++] = clockseq >>> 8 | 0x80;
|
|
8138
8348
|
|
|
8139
|
-
|
|
8349
|
+
// `clock_seq_low`
|
|
8350
|
+
b[i++] = clockseq & 0xff;
|
|
8140
8351
|
|
|
8141
|
-
|
|
8352
|
+
// `node`
|
|
8353
|
+
for (let n = 0; n < 6; ++n) {
|
|
8142
8354
|
b[i + n] = node[n];
|
|
8143
8355
|
}
|
|
8356
|
+
return buf || (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.unsafeStringify)(b);
|
|
8357
|
+
}
|
|
8358
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v1);
|
|
8359
|
+
|
|
8360
|
+
/***/ }),
|
|
8361
|
+
|
|
8362
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v1ToV6.js":
|
|
8363
|
+
/*!*******************************************************************************************!*\
|
|
8364
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v1ToV6.js ***!
|
|
8365
|
+
\*******************************************************************************************/
|
|
8366
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8367
|
+
|
|
8368
|
+
"use strict";
|
|
8369
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8370
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8371
|
+
/* harmony export */ "default": () => (/* binding */ v1ToV6)
|
|
8372
|
+
/* harmony export */ });
|
|
8373
|
+
/* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./parse.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/parse.js");
|
|
8374
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/stringify.js");
|
|
8144
8375
|
|
|
8145
|
-
|
|
8376
|
+
|
|
8377
|
+
|
|
8378
|
+
/**
|
|
8379
|
+
* Convert a v1 UUID to a v6 UUID
|
|
8380
|
+
*
|
|
8381
|
+
* @param {string|Uint8Array} uuid - The v1 UUID to convert to v6
|
|
8382
|
+
* @returns {string|Uint8Array} The v6 UUID as the same type as the `uuid` arg
|
|
8383
|
+
* (string or Uint8Array)
|
|
8384
|
+
*/
|
|
8385
|
+
function v1ToV6(uuid) {
|
|
8386
|
+
const v1Bytes = typeof uuid === 'string' ? (0,_parse_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid) : uuid;
|
|
8387
|
+
const v6Bytes = _v1ToV6(v1Bytes);
|
|
8388
|
+
return typeof uuid === 'string' ? (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.unsafeStringify)(v6Bytes) : v6Bytes;
|
|
8146
8389
|
}
|
|
8147
8390
|
|
|
8148
|
-
|
|
8391
|
+
// Do the field transformation needed for v1 -> v6
|
|
8392
|
+
function _v1ToV6(v1Bytes, randomize = false) {
|
|
8393
|
+
return Uint8Array.of((v1Bytes[6] & 0x0f) << 4 | v1Bytes[7] >> 4 & 0x0f, (v1Bytes[7] & 0x0f) << 4 | (v1Bytes[4] & 0xf0) >> 4, (v1Bytes[4] & 0x0f) << 4 | (v1Bytes[5] & 0xf0) >> 4, (v1Bytes[5] & 0x0f) << 4 | (v1Bytes[0] & 0xf0) >> 4, (v1Bytes[0] & 0x0f) << 4 | (v1Bytes[1] & 0xf0) >> 4, (v1Bytes[1] & 0x0f) << 4 | (v1Bytes[2] & 0xf0) >> 4, 0x60 | v1Bytes[2] & 0x0f, v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]);
|
|
8394
|
+
}
|
|
8149
8395
|
|
|
8150
8396
|
/***/ }),
|
|
8151
8397
|
|
|
@@ -8180,61 +8426,61 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8180
8426
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8181
8427
|
/* harmony export */ DNS: () => (/* binding */ DNS),
|
|
8182
8428
|
/* harmony export */ URL: () => (/* binding */ URL),
|
|
8183
|
-
/* harmony export */ "default": () => (/*
|
|
8429
|
+
/* harmony export */ "default": () => (/* binding */ v35)
|
|
8184
8430
|
/* harmony export */ });
|
|
8185
|
-
/* harmony import */ var
|
|
8431
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/stringify.js");
|
|
8432
|
+
/* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./parse.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/parse.js");
|
|
8186
8433
|
|
|
8187
8434
|
|
|
8188
|
-
function uuidToBytes(uuid) {
|
|
8189
|
-
// Note: We assume we're being passed a valid uuid string
|
|
8190
|
-
var bytes = [];
|
|
8191
|
-
uuid.replace(/[a-fA-F0-9]{2}/g, function (hex) {
|
|
8192
|
-
bytes.push(parseInt(hex, 16));
|
|
8193
|
-
});
|
|
8194
|
-
return bytes;
|
|
8195
|
-
}
|
|
8196
|
-
|
|
8197
8435
|
function stringToBytes(str) {
|
|
8198
8436
|
str = unescape(encodeURIComponent(str)); // UTF8 escape
|
|
8199
8437
|
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
bytes[i] = str.charCodeAt(i);
|
|
8438
|
+
const bytes = [];
|
|
8439
|
+
for (let i = 0; i < str.length; ++i) {
|
|
8440
|
+
bytes.push(str.charCodeAt(i));
|
|
8204
8441
|
}
|
|
8205
|
-
|
|
8206
8442
|
return bytes;
|
|
8207
8443
|
}
|
|
8208
|
-
|
|
8209
8444
|
const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
8210
8445
|
const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
var
|
|
8214
|
-
if (typeof value
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
if (
|
|
8218
|
-
|
|
8219
|
-
|
|
8446
|
+
function v35(name, version, hashfunc) {
|
|
8447
|
+
function generateUUID(value, namespace, buf, offset) {
|
|
8448
|
+
var _namespace;
|
|
8449
|
+
if (typeof value === 'string') {
|
|
8450
|
+
value = stringToBytes(value);
|
|
8451
|
+
}
|
|
8452
|
+
if (typeof namespace === 'string') {
|
|
8453
|
+
namespace = (0,_parse_js__WEBPACK_IMPORTED_MODULE_0__["default"])(namespace);
|
|
8454
|
+
}
|
|
8455
|
+
if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
|
|
8456
|
+
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
8457
|
+
}
|
|
8458
|
+
|
|
8459
|
+
// Compute hash of namespace and value, Per 4.3
|
|
8460
|
+
// Future: Use spread syntax when supported on all platforms, e.g. `bytes =
|
|
8461
|
+
// hashfunc([...namespace, ... value])`
|
|
8462
|
+
let bytes = new Uint8Array(16 + value.length);
|
|
8463
|
+
bytes.set(namespace);
|
|
8464
|
+
bytes.set(value, namespace.length);
|
|
8465
|
+
bytes = hashfunc(bytes);
|
|
8220
8466
|
bytes[6] = bytes[6] & 0x0f | version;
|
|
8221
8467
|
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
8222
|
-
|
|
8223
8468
|
if (buf) {
|
|
8224
|
-
|
|
8225
|
-
|
|
8469
|
+
offset = offset || 0;
|
|
8470
|
+
for (let i = 0; i < 16; ++i) {
|
|
8471
|
+
buf[offset + i] = bytes[i];
|
|
8226
8472
|
}
|
|
8473
|
+
return buf;
|
|
8227
8474
|
}
|
|
8475
|
+
return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.unsafeStringify)(bytes);
|
|
8476
|
+
}
|
|
8228
8477
|
|
|
8229
|
-
|
|
8230
|
-
}; // Function#name is not settable on some platforms (#270)
|
|
8231
|
-
|
|
8232
|
-
|
|
8478
|
+
// Function#name is not settable on some platforms (#270)
|
|
8233
8479
|
try {
|
|
8234
8480
|
generateUUID.name = name;
|
|
8235
|
-
} catch (err) {}
|
|
8236
|
-
|
|
8481
|
+
} catch (err) {}
|
|
8237
8482
|
|
|
8483
|
+
// For CommonJS default export support
|
|
8238
8484
|
generateUUID.DNS = DNS;
|
|
8239
8485
|
generateUUID.URL = URL;
|
|
8240
8486
|
return generateUUID;
|
|
@@ -8253,34 +8499,33 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8253
8499
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8254
8500
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8255
8501
|
/* harmony export */ });
|
|
8256
|
-
/* harmony import */ var
|
|
8257
|
-
/* harmony import */ var
|
|
8502
|
+
/* harmony import */ var _native_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./native.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/native.js");
|
|
8503
|
+
/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./rng.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/rng.js");
|
|
8504
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/stringify.js");
|
|
8258
8505
|
|
|
8259
8506
|
|
|
8260
8507
|
|
|
8261
8508
|
function v4(options, buf, offset) {
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
if (typeof options == 'string') {
|
|
8265
|
-
buf = options === 'binary' ? new Array(16) : null;
|
|
8266
|
-
options = null;
|
|
8509
|
+
if (_native_js__WEBPACK_IMPORTED_MODULE_0__["default"].randomUUID && !buf && !options) {
|
|
8510
|
+
return _native_js__WEBPACK_IMPORTED_MODULE_0__["default"].randomUUID();
|
|
8267
8511
|
}
|
|
8268
|
-
|
|
8269
8512
|
options = options || {};
|
|
8270
|
-
|
|
8513
|
+
const rnds = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_1__["default"])();
|
|
8271
8514
|
|
|
8515
|
+
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
8272
8516
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
8273
|
-
rnds[8] = rnds[8] & 0x3f | 0x80;
|
|
8517
|
+
rnds[8] = rnds[8] & 0x3f | 0x80;
|
|
8274
8518
|
|
|
8519
|
+
// Copy bytes to buffer, if provided
|
|
8275
8520
|
if (buf) {
|
|
8276
|
-
|
|
8277
|
-
|
|
8521
|
+
offset = offset || 0;
|
|
8522
|
+
for (let i = 0; i < 16; ++i) {
|
|
8523
|
+
buf[offset + i] = rnds[i];
|
|
8278
8524
|
}
|
|
8525
|
+
return buf;
|
|
8279
8526
|
}
|
|
8280
|
-
|
|
8281
|
-
return buf || (0,_bytesToUuid_js__WEBPACK_IMPORTED_MODULE_1__["default"])(rnds);
|
|
8527
|
+
return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_2__.unsafeStringify)(rnds);
|
|
8282
8528
|
}
|
|
8283
|
-
|
|
8284
8529
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v4);
|
|
8285
8530
|
|
|
8286
8531
|
/***/ }),
|
|
@@ -8305,6 +8550,296 @@ const v5 = (0,_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v5', 0x50, _sha1
|
|
|
8305
8550
|
|
|
8306
8551
|
/***/ }),
|
|
8307
8552
|
|
|
8553
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v6.js":
|
|
8554
|
+
/*!***************************************************************************************!*\
|
|
8555
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v6.js ***!
|
|
8556
|
+
\***************************************************************************************/
|
|
8557
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8558
|
+
|
|
8559
|
+
"use strict";
|
|
8560
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8561
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8562
|
+
/* harmony export */ "default": () => (/* binding */ v6)
|
|
8563
|
+
/* harmony export */ });
|
|
8564
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/stringify.js");
|
|
8565
|
+
/* harmony import */ var _v1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v1.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v1.js");
|
|
8566
|
+
/* harmony import */ var _v1ToV6_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./v1ToV6.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v1ToV6.js");
|
|
8567
|
+
|
|
8568
|
+
|
|
8569
|
+
|
|
8570
|
+
|
|
8571
|
+
/**
|
|
8572
|
+
*
|
|
8573
|
+
* @param {object} options
|
|
8574
|
+
* @param {Uint8Array=} buf
|
|
8575
|
+
* @param {number=} offset
|
|
8576
|
+
* @returns
|
|
8577
|
+
*/
|
|
8578
|
+
function v6(options = {}, buf, offset = 0) {
|
|
8579
|
+
// v6 is v1 with different field layout, so we start with a v1 UUID, albeit
|
|
8580
|
+
// with slightly different behavior around how the clock_seq and node fields
|
|
8581
|
+
// are randomized, which is why we call v1 with _v6: true.
|
|
8582
|
+
let bytes = (0,_v1_js__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
8583
|
+
...options,
|
|
8584
|
+
_v6: true
|
|
8585
|
+
}, new Uint8Array(16));
|
|
8586
|
+
|
|
8587
|
+
// Reorder the fields to v6 layout.
|
|
8588
|
+
bytes = (0,_v1ToV6_js__WEBPACK_IMPORTED_MODULE_1__["default"])(bytes);
|
|
8589
|
+
|
|
8590
|
+
// Return as a byte array if requested
|
|
8591
|
+
if (buf) {
|
|
8592
|
+
for (let i = 0; i < 16; i++) {
|
|
8593
|
+
buf[offset + i] = bytes[i];
|
|
8594
|
+
}
|
|
8595
|
+
return buf;
|
|
8596
|
+
}
|
|
8597
|
+
return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_2__.unsafeStringify)(bytes);
|
|
8598
|
+
}
|
|
8599
|
+
|
|
8600
|
+
/***/ }),
|
|
8601
|
+
|
|
8602
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v6ToV1.js":
|
|
8603
|
+
/*!*******************************************************************************************!*\
|
|
8604
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v6ToV1.js ***!
|
|
8605
|
+
\*******************************************************************************************/
|
|
8606
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8607
|
+
|
|
8608
|
+
"use strict";
|
|
8609
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8610
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8611
|
+
/* harmony export */ "default": () => (/* binding */ v6ToV1)
|
|
8612
|
+
/* harmony export */ });
|
|
8613
|
+
/* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./parse.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/parse.js");
|
|
8614
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/stringify.js");
|
|
8615
|
+
|
|
8616
|
+
|
|
8617
|
+
|
|
8618
|
+
/**
|
|
8619
|
+
* Convert a v6 UUID to a v1 UUID
|
|
8620
|
+
*
|
|
8621
|
+
* @param {string|Uint8Array} uuid - The v6 UUID to convert to v6
|
|
8622
|
+
* @returns {string|Uint8Array} The v1 UUID as the same type as the `uuid` arg
|
|
8623
|
+
* (string or Uint8Array)
|
|
8624
|
+
*/
|
|
8625
|
+
function v6ToV1(uuid) {
|
|
8626
|
+
const v6Bytes = typeof uuid === 'string' ? (0,_parse_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid) : uuid;
|
|
8627
|
+
const v1Bytes = _v6ToV1(v6Bytes);
|
|
8628
|
+
return typeof uuid === 'string' ? (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.unsafeStringify)(v1Bytes) : v1Bytes;
|
|
8629
|
+
}
|
|
8630
|
+
|
|
8631
|
+
// Do the field transformation needed for v6 -> v1
|
|
8632
|
+
function _v6ToV1(v6Bytes) {
|
|
8633
|
+
return Uint8Array.of((v6Bytes[3] & 0x0f) << 4 | v6Bytes[4] >> 4 & 0x0f, (v6Bytes[4] & 0x0f) << 4 | (v6Bytes[5] & 0xf0) >> 4, (v6Bytes[5] & 0x0f) << 4 | v6Bytes[6] & 0x0f, v6Bytes[7], (v6Bytes[1] & 0x0f) << 4 | (v6Bytes[2] & 0xf0) >> 4, (v6Bytes[2] & 0x0f) << 4 | (v6Bytes[3] & 0xf0) >> 4, 0x10 | (v6Bytes[0] & 0xf0) >> 4, (v6Bytes[0] & 0x0f) << 4 | (v6Bytes[1] & 0xf0) >> 4, v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]);
|
|
8634
|
+
}
|
|
8635
|
+
|
|
8636
|
+
/***/ }),
|
|
8637
|
+
|
|
8638
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v7.js":
|
|
8639
|
+
/*!***************************************************************************************!*\
|
|
8640
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v7.js ***!
|
|
8641
|
+
\***************************************************************************************/
|
|
8642
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8643
|
+
|
|
8644
|
+
"use strict";
|
|
8645
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8646
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8647
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8648
|
+
/* harmony export */ });
|
|
8649
|
+
/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/rng.js");
|
|
8650
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/stringify.js");
|
|
8651
|
+
|
|
8652
|
+
|
|
8653
|
+
|
|
8654
|
+
/**
|
|
8655
|
+
* UUID V7 - Unix Epoch time-based UUID
|
|
8656
|
+
*
|
|
8657
|
+
* The IETF has published RFC9562, introducing 3 new UUID versions (6,7,8). This
|
|
8658
|
+
* implementation of V7 is based on the accepted, though not yet approved,
|
|
8659
|
+
* revisions.
|
|
8660
|
+
*
|
|
8661
|
+
* RFC 9562:https://www.rfc-editor.org/rfc/rfc9562.html Universally Unique
|
|
8662
|
+
* IDentifiers (UUIDs)
|
|
8663
|
+
|
|
8664
|
+
*
|
|
8665
|
+
* Sample V7 value:
|
|
8666
|
+
* https://www.rfc-editor.org/rfc/rfc9562.html#name-example-of-a-uuidv7-value
|
|
8667
|
+
*
|
|
8668
|
+
* Monotonic Bit Layout: RFC rfc9562.6.2 Method 1, Dedicated Counter Bits ref:
|
|
8669
|
+
* https://www.rfc-editor.org/rfc/rfc9562.html#section-6.2-5.1
|
|
8670
|
+
*
|
|
8671
|
+
* 0 1 2 3 0 1 2 3 4 5 6
|
|
8672
|
+
* 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
|
8673
|
+
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
8674
|
+
* | unix_ts_ms |
|
|
8675
|
+
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
8676
|
+
* | unix_ts_ms | ver | seq_hi |
|
|
8677
|
+
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
8678
|
+
* |var| seq_low | rand |
|
|
8679
|
+
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
8680
|
+
* | rand |
|
|
8681
|
+
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
8682
|
+
*
|
|
8683
|
+
* seq is a 31 bit serialized counter; comprised of 12 bit seq_hi and 19 bit
|
|
8684
|
+
* seq_low, and randomly initialized upon timestamp change. 31 bit counter size
|
|
8685
|
+
* was selected as any bitwise operations in node are done as _signed_ 32 bit
|
|
8686
|
+
* ints. we exclude the sign bit.
|
|
8687
|
+
*/
|
|
8688
|
+
|
|
8689
|
+
let _seqLow = null;
|
|
8690
|
+
let _seqHigh = null;
|
|
8691
|
+
let _msecs = 0;
|
|
8692
|
+
function v7(options, buf, offset) {
|
|
8693
|
+
options = options || {};
|
|
8694
|
+
|
|
8695
|
+
// initialize buffer and pointer
|
|
8696
|
+
let i = buf && offset || 0;
|
|
8697
|
+
const b = buf || new Uint8Array(16);
|
|
8698
|
+
|
|
8699
|
+
// rnds is Uint8Array(16) filled with random bytes
|
|
8700
|
+
const rnds = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
8701
|
+
|
|
8702
|
+
// milliseconds since unix epoch, 1970-01-01 00:00
|
|
8703
|
+
const msecs = options.msecs !== undefined ? options.msecs : Date.now();
|
|
8704
|
+
|
|
8705
|
+
// seq is user provided 31 bit counter
|
|
8706
|
+
let seq = options.seq !== undefined ? options.seq : null;
|
|
8707
|
+
|
|
8708
|
+
// initialize local seq high/low parts
|
|
8709
|
+
let seqHigh = _seqHigh;
|
|
8710
|
+
let seqLow = _seqLow;
|
|
8711
|
+
|
|
8712
|
+
// check if clock has advanced and user has not provided msecs
|
|
8713
|
+
if (msecs > _msecs && options.msecs === undefined) {
|
|
8714
|
+
_msecs = msecs;
|
|
8715
|
+
|
|
8716
|
+
// unless user provided seq, reset seq parts
|
|
8717
|
+
if (seq !== null) {
|
|
8718
|
+
seqHigh = null;
|
|
8719
|
+
seqLow = null;
|
|
8720
|
+
}
|
|
8721
|
+
}
|
|
8722
|
+
|
|
8723
|
+
// if we have a user provided seq
|
|
8724
|
+
if (seq !== null) {
|
|
8725
|
+
// trim provided seq to 31 bits of value, avoiding overflow
|
|
8726
|
+
if (seq > 0x7fffffff) {
|
|
8727
|
+
seq = 0x7fffffff;
|
|
8728
|
+
}
|
|
8729
|
+
|
|
8730
|
+
// split provided seq into high/low parts
|
|
8731
|
+
seqHigh = seq >>> 19 & 0xfff;
|
|
8732
|
+
seqLow = seq & 0x7ffff;
|
|
8733
|
+
}
|
|
8734
|
+
|
|
8735
|
+
// randomly initialize seq
|
|
8736
|
+
if (seqHigh === null || seqLow === null) {
|
|
8737
|
+
seqHigh = rnds[6] & 0x7f;
|
|
8738
|
+
seqHigh = seqHigh << 8 | rnds[7];
|
|
8739
|
+
seqLow = rnds[8] & 0x3f; // pad for var
|
|
8740
|
+
seqLow = seqLow << 8 | rnds[9];
|
|
8741
|
+
seqLow = seqLow << 5 | rnds[10] >>> 3;
|
|
8742
|
+
}
|
|
8743
|
+
|
|
8744
|
+
// increment seq if within msecs window
|
|
8745
|
+
if (msecs + 10000 > _msecs && seq === null) {
|
|
8746
|
+
if (++seqLow > 0x7ffff) {
|
|
8747
|
+
seqLow = 0;
|
|
8748
|
+
if (++seqHigh > 0xfff) {
|
|
8749
|
+
seqHigh = 0;
|
|
8750
|
+
|
|
8751
|
+
// increment internal _msecs. this allows us to continue incrementing
|
|
8752
|
+
// while staying monotonic. Note, once we hit 10k milliseconds beyond system
|
|
8753
|
+
// clock, we will reset breaking monotonicity (after (2^31)*10000 generations)
|
|
8754
|
+
_msecs++;
|
|
8755
|
+
}
|
|
8756
|
+
}
|
|
8757
|
+
} else {
|
|
8758
|
+
// resetting; we have advanced more than
|
|
8759
|
+
// 10k milliseconds beyond system clock
|
|
8760
|
+
_msecs = msecs;
|
|
8761
|
+
}
|
|
8762
|
+
_seqHigh = seqHigh;
|
|
8763
|
+
_seqLow = seqLow;
|
|
8764
|
+
|
|
8765
|
+
// [bytes 0-5] 48 bits of local timestamp
|
|
8766
|
+
b[i++] = _msecs / 0x10000000000 & 0xff;
|
|
8767
|
+
b[i++] = _msecs / 0x100000000 & 0xff;
|
|
8768
|
+
b[i++] = _msecs / 0x1000000 & 0xff;
|
|
8769
|
+
b[i++] = _msecs / 0x10000 & 0xff;
|
|
8770
|
+
b[i++] = _msecs / 0x100 & 0xff;
|
|
8771
|
+
b[i++] = _msecs & 0xff;
|
|
8772
|
+
|
|
8773
|
+
// [byte 6] - set 4 bits of version (7) with first 4 bits seq_hi
|
|
8774
|
+
b[i++] = seqHigh >>> 4 & 0x0f | 0x70;
|
|
8775
|
+
|
|
8776
|
+
// [byte 7] remaining 8 bits of seq_hi
|
|
8777
|
+
b[i++] = seqHigh & 0xff;
|
|
8778
|
+
|
|
8779
|
+
// [byte 8] - variant (2 bits), first 6 bits seq_low
|
|
8780
|
+
b[i++] = seqLow >>> 13 & 0x3f | 0x80;
|
|
8781
|
+
|
|
8782
|
+
// [byte 9] 8 bits seq_low
|
|
8783
|
+
b[i++] = seqLow >>> 5 & 0xff;
|
|
8784
|
+
|
|
8785
|
+
// [byte 10] remaining 5 bits seq_low, 3 bits random
|
|
8786
|
+
b[i++] = seqLow << 3 & 0xff | rnds[10] & 0x07;
|
|
8787
|
+
|
|
8788
|
+
// [bytes 11-15] always random
|
|
8789
|
+
b[i++] = rnds[11];
|
|
8790
|
+
b[i++] = rnds[12];
|
|
8791
|
+
b[i++] = rnds[13];
|
|
8792
|
+
b[i++] = rnds[14];
|
|
8793
|
+
b[i++] = rnds[15];
|
|
8794
|
+
return buf || (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.unsafeStringify)(b);
|
|
8795
|
+
}
|
|
8796
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v7);
|
|
8797
|
+
|
|
8798
|
+
/***/ }),
|
|
8799
|
+
|
|
8800
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/validate.js":
|
|
8801
|
+
/*!*********************************************************************************************!*\
|
|
8802
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/validate.js ***!
|
|
8803
|
+
\*********************************************************************************************/
|
|
8804
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8805
|
+
|
|
8806
|
+
"use strict";
|
|
8807
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8808
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8809
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8810
|
+
/* harmony export */ });
|
|
8811
|
+
/* harmony import */ var _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/regex.js");
|
|
8812
|
+
|
|
8813
|
+
function validate(uuid) {
|
|
8814
|
+
return typeof uuid === 'string' && _regex_js__WEBPACK_IMPORTED_MODULE_0__["default"].test(uuid);
|
|
8815
|
+
}
|
|
8816
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validate);
|
|
8817
|
+
|
|
8818
|
+
/***/ }),
|
|
8819
|
+
|
|
8820
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/version.js":
|
|
8821
|
+
/*!********************************************************************************************!*\
|
|
8822
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/version.js ***!
|
|
8823
|
+
\********************************************************************************************/
|
|
8824
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8825
|
+
|
|
8826
|
+
"use strict";
|
|
8827
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8828
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8829
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8830
|
+
/* harmony export */ });
|
|
8831
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/validate.js");
|
|
8832
|
+
|
|
8833
|
+
function version(uuid) {
|
|
8834
|
+
if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
|
|
8835
|
+
throw TypeError('Invalid UUID');
|
|
8836
|
+
}
|
|
8837
|
+
return parseInt(uuid.slice(14, 15), 16);
|
|
8838
|
+
}
|
|
8839
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (version);
|
|
8840
|
+
|
|
8841
|
+
/***/ }),
|
|
8842
|
+
|
|
8308
8843
|
/***/ "../../node_modules/async/asyncify.js":
|
|
8309
8844
|
/*!********************************************!*\
|
|
8310
8845
|
!*** ../../node_modules/async/asyncify.js ***!
|
|
@@ -29378,6 +29913,75 @@ module.exports = function isArrayish(obj) {
|
|
|
29378
29913
|
};
|
|
29379
29914
|
|
|
29380
29915
|
|
|
29916
|
+
/***/ }),
|
|
29917
|
+
|
|
29918
|
+
/***/ "../../node_modules/sprotty-protocol/lib/action-handler.js":
|
|
29919
|
+
/*!*****************************************************************!*\
|
|
29920
|
+
!*** ../../node_modules/sprotty-protocol/lib/action-handler.js ***!
|
|
29921
|
+
\*****************************************************************/
|
|
29922
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
29923
|
+
|
|
29924
|
+
"use strict";
|
|
29925
|
+
|
|
29926
|
+
/********************************************************************************
|
|
29927
|
+
* Copyright (c) 2021 TypeFox and others.
|
|
29928
|
+
*
|
|
29929
|
+
* This program and the accompanying materials are made available under the
|
|
29930
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
29931
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
29932
|
+
*
|
|
29933
|
+
* This Source Code may also be made available under the following Secondary
|
|
29934
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
29935
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
29936
|
+
* with the GNU Classpath Exception which is available at
|
|
29937
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
29938
|
+
*
|
|
29939
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
29940
|
+
********************************************************************************/
|
|
29941
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
29942
|
+
exports.ServerActionHandlerRegistry = void 0;
|
|
29943
|
+
/**
|
|
29944
|
+
* Use this service to register handlers to specific actions. The `DiagramServer` queries this registry
|
|
29945
|
+
* when an action is received from the client, and falls back to the built-in behavior if no handlers
|
|
29946
|
+
* are found.
|
|
29947
|
+
*/
|
|
29948
|
+
class ServerActionHandlerRegistry {
|
|
29949
|
+
constructor() {
|
|
29950
|
+
this.handlers = new Map();
|
|
29951
|
+
}
|
|
29952
|
+
/**
|
|
29953
|
+
* Returns the action handlers for the given action kind, or `undefined` if there are none.
|
|
29954
|
+
*/
|
|
29955
|
+
getHandler(kind) {
|
|
29956
|
+
return this.handlers.get(kind);
|
|
29957
|
+
}
|
|
29958
|
+
/**
|
|
29959
|
+
* Add an action handler to be called when an action of the specified kind is received.
|
|
29960
|
+
*/
|
|
29961
|
+
onAction(kind, handler) {
|
|
29962
|
+
if (this.handlers.has(kind)) {
|
|
29963
|
+
this.handlers.get(kind).push(handler);
|
|
29964
|
+
}
|
|
29965
|
+
else {
|
|
29966
|
+
this.handlers.set(kind, [handler]);
|
|
29967
|
+
}
|
|
29968
|
+
}
|
|
29969
|
+
/**
|
|
29970
|
+
* Remove an action handler that was previously added with `onAction`.
|
|
29971
|
+
*/
|
|
29972
|
+
removeActionHandler(kind, handler) {
|
|
29973
|
+
const list = this.handlers.get(kind);
|
|
29974
|
+
if (list) {
|
|
29975
|
+
const index = list.indexOf(handler);
|
|
29976
|
+
if (index >= 0) {
|
|
29977
|
+
list.splice(index, 1);
|
|
29978
|
+
}
|
|
29979
|
+
}
|
|
29980
|
+
}
|
|
29981
|
+
}
|
|
29982
|
+
exports.ServerActionHandlerRegistry = ServerActionHandlerRegistry;
|
|
29983
|
+
|
|
29984
|
+
|
|
29381
29985
|
/***/ }),
|
|
29382
29986
|
|
|
29383
29987
|
/***/ "../../node_modules/sprotty-protocol/lib/actions.js":
|
|
@@ -29774,12 +30378,13 @@ var MoveAction;
|
|
|
29774
30378
|
(function (MoveAction) {
|
|
29775
30379
|
MoveAction.KIND = 'move';
|
|
29776
30380
|
function create(moves, options = {}) {
|
|
29777
|
-
var _a, _b;
|
|
30381
|
+
var _a, _b, _c;
|
|
29778
30382
|
return {
|
|
29779
30383
|
kind: MoveAction.KIND,
|
|
29780
30384
|
moves,
|
|
29781
30385
|
animate: (_a = options.animate) !== null && _a !== void 0 ? _a : true,
|
|
29782
|
-
finished: (_b = options.finished) !== null && _b !== void 0 ? _b : false
|
|
30386
|
+
finished: (_b = options.finished) !== null && _b !== void 0 ? _b : false,
|
|
30387
|
+
stoppable: (_c = options.stoppable) !== null && _c !== void 0 ? _c : false
|
|
29783
30388
|
};
|
|
29784
30389
|
}
|
|
29785
30390
|
MoveAction.create = create;
|
|
@@ -29993,14 +30598,14 @@ class DiagramServer {
|
|
|
29993
30598
|
}
|
|
29994
30599
|
}
|
|
29995
30600
|
handleAction(action) {
|
|
29996
|
-
var _a;
|
|
30601
|
+
var _a, _b;
|
|
29997
30602
|
// Find a matching action handler in the registry
|
|
29998
30603
|
const handlers = (_a = this.actionHandlerRegistry) === null || _a === void 0 ? void 0 : _a.getHandler(action.kind);
|
|
29999
30604
|
if (handlers && handlers.length === 1) {
|
|
30000
|
-
return handlers[0](action, this.state, this);
|
|
30605
|
+
return (_b = handlers[0](action, this.state, this)) !== null && _b !== void 0 ? _b : Promise.resolve();
|
|
30001
30606
|
}
|
|
30002
30607
|
else if (handlers && handlers.length > 1) {
|
|
30003
|
-
return Promise.all(handlers.map(h => h(action, this.state, this)));
|
|
30608
|
+
return Promise.all(handlers.map(h => { var _a; return (_a = h(action, this.state, this)) !== null && _a !== void 0 ? _a : Promise.resolve(); }));
|
|
30004
30609
|
}
|
|
30005
30610
|
// If no handler is registered, call one of the default handling methods
|
|
30006
30611
|
switch (action.kind) {
|
|
@@ -30170,6 +30775,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
30170
30775
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
30171
30776
|
};
|
|
30172
30777
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
30778
|
+
__exportStar(__webpack_require__(/*! ./action-handler */ "../../node_modules/sprotty-protocol/lib/action-handler.js"), exports);
|
|
30173
30779
|
__exportStar(__webpack_require__(/*! ./actions */ "../../node_modules/sprotty-protocol/lib/actions.js"), exports);
|
|
30174
30780
|
__exportStar(__webpack_require__(/*! ./diagram-server */ "../../node_modules/sprotty-protocol/lib/diagram-server.js"), exports);
|
|
30175
30781
|
__exportStar(__webpack_require__(/*! ./diagram-services */ "../../node_modules/sprotty-protocol/lib/diagram-services.js"), exports);
|
|
@@ -30192,7 +30798,7 @@ __exportStar(__webpack_require__(/*! ./utils/object */ "../../node_modules/sprot
|
|
|
30192
30798
|
"use strict";
|
|
30193
30799
|
|
|
30194
30800
|
/********************************************************************************
|
|
30195
|
-
* Copyright (c) 2021 TypeFox and others.
|
|
30801
|
+
* Copyright (c) 2021-2023 TypeFox and others.
|
|
30196
30802
|
*
|
|
30197
30803
|
* This program and the accompanying materials are made available under the
|
|
30198
30804
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -30217,6 +30823,7 @@ function isZoomable(element) {
|
|
|
30217
30823
|
return (0, object_1.hasOwnProperty)(element, 'zoom');
|
|
30218
30824
|
}
|
|
30219
30825
|
exports.isZoomable = isZoomable;
|
|
30826
|
+
;
|
|
30220
30827
|
|
|
30221
30828
|
|
|
30222
30829
|
/***/ }),
|
|
@@ -30426,6 +31033,16 @@ var Point;
|
|
|
30426
31033
|
return Math.max(Math.abs(b.x - a.x), Math.abs(b.y - a.y));
|
|
30427
31034
|
}
|
|
30428
31035
|
Point.maxDistance = maxDistance;
|
|
31036
|
+
/**
|
|
31037
|
+
* Returns the dot product of two points.
|
|
31038
|
+
* @param {Point} a - First point
|
|
31039
|
+
* @param {Point} b - Second point
|
|
31040
|
+
* @returns {number} The dot product
|
|
31041
|
+
*/
|
|
31042
|
+
function dotProduct(a, b) {
|
|
31043
|
+
return a.x * b.x + a.y * b.y;
|
|
31044
|
+
}
|
|
31045
|
+
Point.dotProduct = dotProduct;
|
|
30429
31046
|
})(Point || (exports.Point = Point = {}));
|
|
30430
31047
|
/**
|
|
30431
31048
|
* Computes the angle in radians of the given point to the x-axis of the coordinate system.
|
|
@@ -30704,13 +31321,15 @@ exports.getSubType = getSubType;
|
|
|
30704
31321
|
* `SModelIndex` might be more effective.
|
|
30705
31322
|
*/
|
|
30706
31323
|
function findElement(parent, elementId) {
|
|
30707
|
-
if (parent.id === elementId)
|
|
31324
|
+
if (parent.id === elementId) {
|
|
30708
31325
|
return parent;
|
|
30709
|
-
|
|
31326
|
+
}
|
|
31327
|
+
if (parent.children) {
|
|
30710
31328
|
for (const child of parent.children) {
|
|
30711
31329
|
const result = findElement(child, elementId);
|
|
30712
|
-
if (result !== undefined)
|
|
31330
|
+
if (result !== undefined) {
|
|
30713
31331
|
return result;
|
|
31332
|
+
}
|
|
30714
31333
|
}
|
|
30715
31334
|
}
|
|
30716
31335
|
return undefined;
|
|
@@ -30739,6 +31358,7 @@ class SModelIndex {
|
|
|
30739
31358
|
this.id2parent.set(child.id, element);
|
|
30740
31359
|
}
|
|
30741
31360
|
}
|
|
31361
|
+
return this;
|
|
30742
31362
|
}
|
|
30743
31363
|
remove(element) {
|
|
30744
31364
|
this.id2element.delete(element.id);
|
|
@@ -30748,6 +31368,7 @@ class SModelIndex {
|
|
|
30748
31368
|
this.remove(child);
|
|
30749
31369
|
}
|
|
30750
31370
|
}
|
|
31371
|
+
return this;
|
|
30751
31372
|
}
|
|
30752
31373
|
contains(element) {
|
|
30753
31374
|
return this.id2element.has(element.id);
|
|
@@ -44746,9 +45367,9 @@ exports.GHtmlRootBuilder = GHtmlRootBuilder;
|
|
|
44746
45367
|
"use strict";
|
|
44747
45368
|
|
|
44748
45369
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
44749
|
-
exports.GIssueMarkerBuilder = exports.GIssueMarker =
|
|
45370
|
+
exports.GIssueMarkerBuilder = exports.GIssueMarker = void 0;
|
|
44750
45371
|
/********************************************************************************
|
|
44751
|
-
* Copyright (c) 2022 STMicroelectronics and others.
|
|
45372
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
44752
45373
|
*
|
|
44753
45374
|
* This program and the accompanying materials are made available under the
|
|
44754
45375
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -44764,9 +45385,6 @@ exports.GIssueMarkerBuilder = exports.GIssueMarker = exports.GIssue = void 0;
|
|
|
44764
45385
|
********************************************************************************/
|
|
44765
45386
|
const protocol_1 = __webpack_require__(/*! @eclipse-glsp/protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/index.js");
|
|
44766
45387
|
const gshape_element_1 = __webpack_require__(/*! ./gshape-element */ "../../packages/graph/lib/gshape-element.js");
|
|
44767
|
-
class GIssue {
|
|
44768
|
-
}
|
|
44769
|
-
exports.GIssue = GIssue;
|
|
44770
45388
|
class GIssueMarker extends gshape_element_1.GShapeElement {
|
|
44771
45389
|
constructor() {
|
|
44772
45390
|
super(...arguments);
|
|
@@ -46239,7 +46857,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
46239
46857
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
46240
46858
|
exports.respond = exports.DefaultActionDispatcher = exports.ActionDispatcher = void 0;
|
|
46241
46859
|
/********************************************************************************
|
|
46242
|
-
* Copyright (c) 2022-
|
|
46860
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
46243
46861
|
*
|
|
46244
46862
|
* This program and the accompanying materials are made available under the
|
|
46245
46863
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -46286,7 +46904,7 @@ let DefaultActionDispatcher = class DefaultActionDispatcher {
|
|
|
46286
46904
|
const response = await this.executeHandler(handler, action);
|
|
46287
46905
|
responses.push(...response);
|
|
46288
46906
|
}
|
|
46289
|
-
if (protocol_1.UpdateModelAction.is(action)
|
|
46907
|
+
if (this.postUpdateQueue.length > 0 && (protocol_1.UpdateModelAction.is(action) || protocol_1.SetModelAction.is(action))) {
|
|
46290
46908
|
responses.push(...this.postUpdateQueue);
|
|
46291
46909
|
this.postUpdateQueue = [];
|
|
46292
46910
|
}
|
|
@@ -49365,7 +49983,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
49365
49983
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
49366
49984
|
exports.RequestModelActionHandler = void 0;
|
|
49367
49985
|
/********************************************************************************
|
|
49368
|
-
* Copyright (c) 2022-
|
|
49986
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
49369
49987
|
*
|
|
49370
49988
|
* This program and the accompanying materials are made available under the
|
|
49371
49989
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -54514,6 +55132,17 @@ module.exports = require("net");
|
|
|
54514
55132
|
|
|
54515
55133
|
/***/ }),
|
|
54516
55134
|
|
|
55135
|
+
/***/ "node:crypto":
|
|
55136
|
+
/*!******************************!*\
|
|
55137
|
+
!*** external "node:crypto" ***!
|
|
55138
|
+
\******************************/
|
|
55139
|
+
/***/ ((module) => {
|
|
55140
|
+
|
|
55141
|
+
"use strict";
|
|
55142
|
+
module.exports = require("node:crypto");
|
|
55143
|
+
|
|
55144
|
+
/***/ }),
|
|
55145
|
+
|
|
54517
55146
|
/***/ "os":
|
|
54518
55147
|
/*!*********************!*\
|
|
54519
55148
|
!*** external "os" ***!
|