@eclipse-glsp-examples/workflow-server-bundled 2.2.0-next.93 → 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 +1294 -427
- package/wf-glsp-server-node.js.map +1 -1
package/wf-glsp-server-node.js
CHANGED
|
@@ -313,7 +313,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
313
313
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
314
314
|
exports.CreateDecisionNodeHandler = void 0;
|
|
315
315
|
/********************************************************************************
|
|
316
|
-
* Copyright (c) 2022-
|
|
316
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
317
317
|
*
|
|
318
318
|
* This program and the accompanying materials are made available under the
|
|
319
319
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -573,7 +573,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
573
573
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
574
574
|
exports.CreateMergeNodeHandler = void 0;
|
|
575
575
|
/********************************************************************************
|
|
576
|
-
* Copyright (c) 2022-
|
|
576
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
577
577
|
*
|
|
578
578
|
* This program and the accompanying materials are made available under the
|
|
579
579
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1902,7 +1902,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
1902
1902
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1903
1903
|
exports.createDefaultEdgeTypeHint = exports.createDefaultShapeTypeHint = exports.WorkflowDiagramConfiguration = void 0;
|
|
1904
1904
|
/********************************************************************************
|
|
1905
|
-
* Copyright (c) 2022-
|
|
1905
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
1906
1906
|
*
|
|
1907
1907
|
* This program and the accompanying materials are made available under the
|
|
1908
1908
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -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
|
|
@@ -2312,7 +2312,7 @@ exports.WorkflowPopupFactory = WorkflowPopupFactory = __decorate([
|
|
|
2312
2312
|
|
|
2313
2313
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2314
2314
|
/********************************************************************************
|
|
2315
|
-
* Copyright (c) 2022-
|
|
2315
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
2316
2316
|
*
|
|
2317
2317
|
* This program and the accompanying materials are made available under the
|
|
2318
2318
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -4704,69 +4704,6 @@ var DeleteMarkersAction;
|
|
|
4704
4704
|
})(DeleteMarkersAction || (exports.DeleteMarkersAction = DeleteMarkersAction = {}));
|
|
4705
4705
|
|
|
4706
4706
|
|
|
4707
|
-
/***/ }),
|
|
4708
|
-
|
|
4709
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/index.js":
|
|
4710
|
-
/*!******************************************************************************!*\
|
|
4711
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/index.js ***!
|
|
4712
|
-
\******************************************************************************/
|
|
4713
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4714
|
-
|
|
4715
|
-
"use strict";
|
|
4716
|
-
|
|
4717
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4718
|
-
if (k2 === undefined) k2 = k;
|
|
4719
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4720
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
4721
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
4722
|
-
}
|
|
4723
|
-
Object.defineProperty(o, k2, desc);
|
|
4724
|
-
}) : (function(o, m, k, k2) {
|
|
4725
|
-
if (k2 === undefined) k2 = k;
|
|
4726
|
-
o[k2] = m[k];
|
|
4727
|
-
}));
|
|
4728
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
4729
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4730
|
-
};
|
|
4731
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4732
|
-
/********************************************************************************
|
|
4733
|
-
* Copyright (c) 2021-2023 STMicroelectronics and others.
|
|
4734
|
-
*
|
|
4735
|
-
* This program and the accompanying materials are made available under the
|
|
4736
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
4737
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
4738
|
-
*
|
|
4739
|
-
* This Source Code may also be made available under the following Secondary
|
|
4740
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
4741
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
4742
|
-
* with the GNU Classpath Exception which is available at
|
|
4743
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
4744
|
-
*
|
|
4745
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
4746
|
-
********************************************************************************/
|
|
4747
|
-
__exportStar(__webpack_require__(/*! ./base-protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/base-protocol.js"), exports);
|
|
4748
|
-
__exportStar(__webpack_require__(/*! ./client-notification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/client-notification.js"), exports);
|
|
4749
|
-
__exportStar(__webpack_require__(/*! ./clipboard */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/clipboard.js"), exports);
|
|
4750
|
-
__exportStar(__webpack_require__(/*! ./contexts */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/contexts.js"), exports);
|
|
4751
|
-
__exportStar(__webpack_require__(/*! ./edge-modification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/edge-modification.js"), exports);
|
|
4752
|
-
__exportStar(__webpack_require__(/*! ./element-creation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-creation.js"), exports);
|
|
4753
|
-
__exportStar(__webpack_require__(/*! ./element-hover */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-hover.js"), exports);
|
|
4754
|
-
__exportStar(__webpack_require__(/*! ./element-navigation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-navigation.js"), exports);
|
|
4755
|
-
__exportStar(__webpack_require__(/*! ./element-selection */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-selection.js"), exports);
|
|
4756
|
-
__exportStar(__webpack_require__(/*! ./element-text-editing */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-text-editing.js"), exports);
|
|
4757
|
-
__exportStar(__webpack_require__(/*! ./element-type-hints */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-type-hints.js"), exports);
|
|
4758
|
-
__exportStar(__webpack_require__(/*! ./element-validation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-validation.js"), exports);
|
|
4759
|
-
__exportStar(__webpack_require__(/*! ./model-data */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-data.js"), exports);
|
|
4760
|
-
__exportStar(__webpack_require__(/*! ./model-edit-mode */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-edit-mode.js"), exports);
|
|
4761
|
-
__exportStar(__webpack_require__(/*! ./model-layout */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-layout.js"), exports);
|
|
4762
|
-
__exportStar(__webpack_require__(/*! ./model-saving */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-saving.js"), exports);
|
|
4763
|
-
__exportStar(__webpack_require__(/*! ./node-modification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/node-modification.js"), exports);
|
|
4764
|
-
__exportStar(__webpack_require__(/*! ./tool-palette */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/tool-palette.js"), exports);
|
|
4765
|
-
__exportStar(__webpack_require__(/*! ./types */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/types.js"), exports);
|
|
4766
|
-
__exportStar(__webpack_require__(/*! ./undo-redo */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/undo-redo.js"), exports);
|
|
4767
|
-
__exportStar(__webpack_require__(/*! ./viewport */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/viewport.js"), exports);
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
4707
|
/***/ }),
|
|
4771
4708
|
|
|
4772
4709
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-data.js":
|
|
@@ -5485,7 +5422,7 @@ exports.BaseGLSPClient = BaseGLSPClient;
|
|
|
5485
5422
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5486
5423
|
exports.GLSPClient = exports.ClientState = exports.ApplicationIdProvider = void 0;
|
|
5487
5424
|
/********************************************************************************
|
|
5488
|
-
* Copyright (c) 2020-
|
|
5425
|
+
* Copyright (c) 2020-2024 EclipseSource and others.
|
|
5489
5426
|
*
|
|
5490
5427
|
* This program and the accompanying materials are made available under the
|
|
5491
5428
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -5563,7 +5500,7 @@ var GLSPClient;
|
|
|
5563
5500
|
"use strict";
|
|
5564
5501
|
|
|
5565
5502
|
/********************************************************************************
|
|
5566
|
-
* Copyright (c) 2022-
|
|
5503
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
5567
5504
|
*
|
|
5568
5505
|
* This program and the accompanying materials are made available under the
|
|
5569
5506
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -5584,53 +5521,6 @@ exports.GLSPServerListener = Symbol('GLSPServerListener');
|
|
|
5584
5521
|
exports.GLSPClientProxy = Symbol('GLSPClientProxy');
|
|
5585
5522
|
|
|
5586
5523
|
|
|
5587
|
-
/***/ }),
|
|
5588
|
-
|
|
5589
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/index.js":
|
|
5590
|
-
/*!*************************************************************************************!*\
|
|
5591
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/index.js ***!
|
|
5592
|
-
\*************************************************************************************/
|
|
5593
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5594
|
-
|
|
5595
|
-
"use strict";
|
|
5596
|
-
|
|
5597
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5598
|
-
if (k2 === undefined) k2 = k;
|
|
5599
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5600
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5601
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
5602
|
-
}
|
|
5603
|
-
Object.defineProperty(o, k2, desc);
|
|
5604
|
-
}) : (function(o, m, k, k2) {
|
|
5605
|
-
if (k2 === undefined) k2 = k;
|
|
5606
|
-
o[k2] = m[k];
|
|
5607
|
-
}));
|
|
5608
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
5609
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5610
|
-
};
|
|
5611
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5612
|
-
/********************************************************************************
|
|
5613
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
5614
|
-
*
|
|
5615
|
-
* This program and the accompanying materials are made available under the
|
|
5616
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
5617
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
5618
|
-
*
|
|
5619
|
-
* This Source Code may also be made available under the following Secondary
|
|
5620
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
5621
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
5622
|
-
* with the GNU Classpath Exception which is available at
|
|
5623
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
5624
|
-
*
|
|
5625
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
5626
|
-
********************************************************************************/
|
|
5627
|
-
__exportStar(__webpack_require__(/*! ./base-glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/base-glsp-client.js"), exports);
|
|
5628
|
-
__exportStar(__webpack_require__(/*! ./glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/glsp-client.js"), exports);
|
|
5629
|
-
__exportStar(__webpack_require__(/*! ./glsp-server */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/glsp-server.js"), exports);
|
|
5630
|
-
__exportStar(__webpack_require__(/*! ./jsonrpc */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/index.js"), exports);
|
|
5631
|
-
__exportStar(__webpack_require__(/*! ./types */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/types.js"), exports);
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
5524
|
/***/ }),
|
|
5635
5525
|
|
|
5636
5526
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/base-jsonrpc-glsp-client.js":
|
|
@@ -5650,7 +5540,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5650
5540
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5651
5541
|
exports.JsonrpcClientProxy = exports.BaseJsonrpcGLSPClient = void 0;
|
|
5652
5542
|
/********************************************************************************
|
|
5653
|
-
* Copyright (c) 2019-
|
|
5543
|
+
* Copyright (c) 2019-2024 EclipseSource and others.
|
|
5654
5544
|
*
|
|
5655
5545
|
* This program and the accompanying materials are made available under the
|
|
5656
5546
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -5907,53 +5797,6 @@ function configureClientConnection(clientConnection, glspServer) {
|
|
|
5907
5797
|
exports.configureClientConnection = configureClientConnection;
|
|
5908
5798
|
|
|
5909
5799
|
|
|
5910
|
-
/***/ }),
|
|
5911
|
-
|
|
5912
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/index.js":
|
|
5913
|
-
/*!*********************************************************************************************!*\
|
|
5914
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/index.js ***!
|
|
5915
|
-
\*********************************************************************************************/
|
|
5916
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5917
|
-
|
|
5918
|
-
"use strict";
|
|
5919
|
-
|
|
5920
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5921
|
-
if (k2 === undefined) k2 = k;
|
|
5922
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5923
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5924
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
5925
|
-
}
|
|
5926
|
-
Object.defineProperty(o, k2, desc);
|
|
5927
|
-
}) : (function(o, m, k, k2) {
|
|
5928
|
-
if (k2 === undefined) k2 = k;
|
|
5929
|
-
o[k2] = m[k];
|
|
5930
|
-
}));
|
|
5931
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
5932
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5933
|
-
};
|
|
5934
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5935
|
-
/********************************************************************************
|
|
5936
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
5937
|
-
*
|
|
5938
|
-
* This program and the accompanying materials are made available under the
|
|
5939
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
5940
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
5941
|
-
*
|
|
5942
|
-
* This Source Code may also be made available under the following Secondary
|
|
5943
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
5944
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
5945
|
-
* with the GNU Classpath Exception which is available at
|
|
5946
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
5947
|
-
*
|
|
5948
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
5949
|
-
********************************************************************************/
|
|
5950
|
-
__exportStar(__webpack_require__(/*! ./base-jsonrpc-glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/base-jsonrpc-glsp-client.js"), exports);
|
|
5951
|
-
__exportStar(__webpack_require__(/*! ./glsp-jsonrpc-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/glsp-jsonrpc-client.js"), exports);
|
|
5952
|
-
__exportStar(__webpack_require__(/*! ./glsp-jsonrpc-server */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/glsp-jsonrpc-server.js"), exports);
|
|
5953
|
-
__exportStar(__webpack_require__(/*! ./websocket-connection */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/websocket-connection.js"), exports);
|
|
5954
|
-
__exportStar(__webpack_require__(/*! ./ws-connection-provider */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/ws-connection-provider.js"), exports);
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
5800
|
/***/ }),
|
|
5958
5801
|
|
|
5959
5802
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/websocket-connection.js":
|
|
@@ -6121,6 +5964,53 @@ function listen(webSocket, onConnection, logger) {
|
|
|
6121
5964
|
exports.listen = listen;
|
|
6122
5965
|
|
|
6123
5966
|
|
|
5967
|
+
/***/ }),
|
|
5968
|
+
|
|
5969
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/worker-connection-provider.js":
|
|
5970
|
+
/*!******************************************************************************************************************!*\
|
|
5971
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/worker-connection-provider.js ***!
|
|
5972
|
+
\******************************************************************************************************************/
|
|
5973
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5974
|
+
|
|
5975
|
+
"use strict";
|
|
5976
|
+
|
|
5977
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5978
|
+
exports.GLSPWebWorkerProvider = void 0;
|
|
5979
|
+
/********************************************************************************
|
|
5980
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
5981
|
+
*
|
|
5982
|
+
* This program and the accompanying materials are made available under the
|
|
5983
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
5984
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
5985
|
+
*
|
|
5986
|
+
* This Source Code may also be made available under the following Secondary
|
|
5987
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
5988
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
5989
|
+
* with the GNU Classpath Exception which is available at
|
|
5990
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
5991
|
+
*
|
|
5992
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
5993
|
+
********************************************************************************/
|
|
5994
|
+
const browser_1 = __webpack_require__(/*! vscode-jsonrpc/browser */ "../../node_modules/vscode-jsonrpc/browser.js");
|
|
5995
|
+
class GLSPWebWorkerProvider {
|
|
5996
|
+
constructor(url) {
|
|
5997
|
+
this.url = url;
|
|
5998
|
+
}
|
|
5999
|
+
createWebWorker(url) {
|
|
6000
|
+
return new Worker(url);
|
|
6001
|
+
}
|
|
6002
|
+
listen(handler) {
|
|
6003
|
+
var _a, _b;
|
|
6004
|
+
this.worker = this.createWebWorker(this.url);
|
|
6005
|
+
const wwConnection = (0, browser_1.createMessageConnection)(new browser_1.BrowserMessageReader(this.worker), new browser_1.BrowserMessageWriter(this.worker));
|
|
6006
|
+
(_a = handler.logger) === null || _a === void 0 ? void 0 : _a.warn('GLSPWebWorkerProvider Initializing!');
|
|
6007
|
+
(_b = handler.onConnection) === null || _b === void 0 ? void 0 : _b.call(handler, wwConnection);
|
|
6008
|
+
return wwConnection;
|
|
6009
|
+
}
|
|
6010
|
+
}
|
|
6011
|
+
exports.GLSPWebWorkerProvider = GLSPWebWorkerProvider;
|
|
6012
|
+
|
|
6013
|
+
|
|
6124
6014
|
/***/ }),
|
|
6125
6015
|
|
|
6126
6016
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/ws-connection-provider.js":
|
|
@@ -6227,7 +6117,7 @@ exports.GLSPWebSocketProvider = GLSPWebSocketProvider;
|
|
|
6227
6117
|
"use strict";
|
|
6228
6118
|
|
|
6229
6119
|
/********************************************************************************
|
|
6230
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
6120
|
+
* Copyright (c) 2023-2024 EclipseSource and others.
|
|
6231
6121
|
*
|
|
6232
6122
|
* This program and the accompanying materials are made available under the
|
|
6233
6123
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -6271,7 +6161,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
6271
6161
|
********************************************************************************/
|
|
6272
6162
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6273
6163
|
exports.resolveContainerConfiguration = exports.initializeContainer = void 0;
|
|
6274
|
-
const
|
|
6164
|
+
const array_util_1 = __webpack_require__(/*! ../utils/array-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/array-util.js");
|
|
6165
|
+
const type_util_1 = __webpack_require__(/*! ../utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
6166
|
+
const feature_module_1 = __webpack_require__(/*! ./feature-module */ "../../node_modules/@eclipse-glsp/protocol/lib/di/feature-module.js");
|
|
6275
6167
|
/**
|
|
6276
6168
|
* Initializes a container with the given {@link ContainerConfiguration}. The container configuration
|
|
6277
6169
|
* consists of the set of {@link ContainerModule}s that should be loaded in the container.
|
|
@@ -6290,25 +6182,57 @@ exports.initializeContainer = initializeContainer;
|
|
|
6290
6182
|
/**
|
|
6291
6183
|
* Processes the given container configurations and returns the corresponding set of {@link ContainerModule}s.
|
|
6292
6184
|
* Container configurations are processed in the order they are passed. If a module is configured to be removed
|
|
6293
|
-
* it can be added again in a later configuration.
|
|
6294
|
-
*
|
|
6185
|
+
* it can be added again in a later configuration. This also means in case of `replace` configurations that affect the same feature id
|
|
6186
|
+
* the last configuration wins.
|
|
6187
|
+
* @param containerConfigurations The container configurations to resolve
|
|
6188
|
+
* @throws An error if featureModule ids are not unique in the resolved module array
|
|
6295
6189
|
* @returns an Array of resolved container modules
|
|
6296
6190
|
*/
|
|
6297
6191
|
function resolveContainerConfiguration(...containerConfigurations) {
|
|
6298
6192
|
const modules = [];
|
|
6299
6193
|
containerConfigurations.forEach(config => {
|
|
6300
6194
|
if (isContainerModule(config)) {
|
|
6301
|
-
(0,
|
|
6195
|
+
(0, array_util_1.distinctAdd)(modules, config);
|
|
6302
6196
|
}
|
|
6303
6197
|
else {
|
|
6304
6198
|
if (config.remove) {
|
|
6305
|
-
(0,
|
|
6199
|
+
(0, array_util_1.remove)(modules, ...(0, array_util_1.asArray)(config.remove));
|
|
6306
6200
|
}
|
|
6307
6201
|
if (config.add) {
|
|
6308
|
-
(0,
|
|
6202
|
+
(0, array_util_1.distinctAdd)(modules, ...(0, array_util_1.asArray)(config.add));
|
|
6203
|
+
}
|
|
6204
|
+
if (config.replace) {
|
|
6205
|
+
(0, array_util_1.asArray)(config.replace).forEach(replace => {
|
|
6206
|
+
const existingIndex = modules.findIndex(m => m instanceof feature_module_1.FeatureModule && m.featureId === replace.featureId);
|
|
6207
|
+
if (existingIndex >= 0) {
|
|
6208
|
+
modules[existingIndex] = replace;
|
|
6209
|
+
}
|
|
6210
|
+
else {
|
|
6211
|
+
console.warn(`Could not find module to replace with feature id ${replace.featureId.toString()}.` +
|
|
6212
|
+
'Adding replacement module to the end of the resolved configurations.');
|
|
6213
|
+
(0, array_util_1.distinctAdd)(modules, replace);
|
|
6214
|
+
}
|
|
6215
|
+
});
|
|
6216
|
+
}
|
|
6217
|
+
}
|
|
6218
|
+
});
|
|
6219
|
+
// Check for duplicate feature ids in resolved modules
|
|
6220
|
+
const featureIds = new Set();
|
|
6221
|
+
const duplicates = [];
|
|
6222
|
+
modules.forEach(module => {
|
|
6223
|
+
if (module instanceof feature_module_1.FeatureModule) {
|
|
6224
|
+
if (featureIds.has(module.featureId)) {
|
|
6225
|
+
duplicates.push(module);
|
|
6226
|
+
}
|
|
6227
|
+
else {
|
|
6228
|
+
featureIds.add(module.featureId);
|
|
6309
6229
|
}
|
|
6310
6230
|
}
|
|
6311
6231
|
});
|
|
6232
|
+
if (duplicates.length > 0) {
|
|
6233
|
+
const culprits = duplicates.map(m => m.featureId.toString()).join(', ');
|
|
6234
|
+
throw new Error(`Could not resolve container configuration. Non-unique feature ids found in container configuration: ${culprits}`);
|
|
6235
|
+
}
|
|
6312
6236
|
return modules;
|
|
6313
6237
|
}
|
|
6314
6238
|
exports.resolveContainerConfiguration = resolveContainerConfiguration;
|
|
@@ -6318,7 +6242,7 @@ exports.resolveContainerConfiguration = resolveContainerConfiguration;
|
|
|
6318
6242
|
* => use a simple typeguard instead.
|
|
6319
6243
|
*/
|
|
6320
6244
|
function isContainerModule(config) {
|
|
6321
|
-
return (0,
|
|
6245
|
+
return (0, type_util_1.hasNumberProp)(config, 'id') && (0, type_util_1.hasFunctionProp)(config, 'registry');
|
|
6322
6246
|
}
|
|
6323
6247
|
|
|
6324
6248
|
|
|
@@ -6350,7 +6274,7 @@ function isContainerModule(config) {
|
|
|
6350
6274
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6351
6275
|
exports.FeatureModule = void 0;
|
|
6352
6276
|
const inversify_1 = __webpack_require__(/*! inversify */ "../../node_modules/inversify/es/inversify.js");
|
|
6353
|
-
const
|
|
6277
|
+
const array_util_1 = __webpack_require__(/*! ../utils/array-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/array-util.js");
|
|
6354
6278
|
/**
|
|
6355
6279
|
* A `FeatureModule` is a specialized {@link ContainerModule} that can declare dependencies to other {@link FeatureModule}.
|
|
6356
6280
|
* A feature module will only be loaded into a container if all of its required modules haven been loaded before. T
|
|
@@ -6363,6 +6287,7 @@ class FeatureModule extends inversify_1.ContainerModule {
|
|
|
6363
6287
|
super((bind, unbind, isBound, ...rest) => {
|
|
6364
6288
|
if (this.configure(bind, isBound)) {
|
|
6365
6289
|
registry(bind, unbind, isBound, ...rest);
|
|
6290
|
+
this.debugLog(`Loading of feature module with id '${this.featureId.toString()}' completed`);
|
|
6366
6291
|
}
|
|
6367
6292
|
});
|
|
6368
6293
|
this.featureId = (_a = options.featureId) !== null && _a !== void 0 ? _a : this.createFeatureId();
|
|
@@ -6379,25 +6304,54 @@ class FeatureModule extends inversify_1.ContainerModule {
|
|
|
6379
6304
|
* @returns `true` if all requirements are met and the module is loaded. `false` otherwise
|
|
6380
6305
|
*/
|
|
6381
6306
|
configure(bind, isBound) {
|
|
6307
|
+
this.debugLog(`Trying to load feature module with id '${this.featureId.toString()}'`);
|
|
6308
|
+
if (this.isLoaded({ isBound })) {
|
|
6309
|
+
const message = `Could not load feature module. Another module with id '${this.featureId.toString()}' is already loaded`;
|
|
6310
|
+
this.debugLog(message);
|
|
6311
|
+
throw new Error(message);
|
|
6312
|
+
}
|
|
6382
6313
|
if (this.checkRequirements(isBound)) {
|
|
6314
|
+
this.debugLog(`Requirements are met, continue loading of feature module with id '${this.featureId.toString()}'`);
|
|
6383
6315
|
bind(this.featureId).toConstantValue(this.featureId);
|
|
6384
6316
|
return true;
|
|
6385
6317
|
}
|
|
6386
6318
|
return false;
|
|
6387
6319
|
}
|
|
6320
|
+
debugLog(message, ...optionalParams) {
|
|
6321
|
+
if (FeatureModule.DEBUG_LOG_ENABLED) {
|
|
6322
|
+
console.log(message, ...optionalParams);
|
|
6323
|
+
}
|
|
6324
|
+
}
|
|
6388
6325
|
/**
|
|
6389
6326
|
* Checks if all required {@link FeatureModule}s are already loaded/bound in the container.
|
|
6390
6327
|
* @param isBound The `isBound` property of the module callback. Used to check the required modules.
|
|
6391
6328
|
* @returns `true` if all requirements are met, `false` otherwise
|
|
6392
6329
|
*/
|
|
6393
6330
|
checkRequirements(isBound) {
|
|
6394
|
-
|
|
6331
|
+
var _a;
|
|
6332
|
+
const requires = (0, array_util_1.asArray)((_a = this.requires) !== null && _a !== void 0 ? _a : []);
|
|
6333
|
+
if (requires.length === 0) {
|
|
6334
|
+
return true;
|
|
6335
|
+
}
|
|
6336
|
+
const missing = requires.filter(module => !module.isLoaded({ isBound }));
|
|
6337
|
+
if (missing.length > 0) {
|
|
6338
|
+
this.debugLog(
|
|
6339
|
+
// eslint-disable-next-line max-len
|
|
6340
|
+
`Could not load feature module. Required modules are not loaded. Feature ids: ${missing.map(m => m.featureId.toString()).join(', ')}`);
|
|
6341
|
+
return false;
|
|
6342
|
+
}
|
|
6343
|
+
return true;
|
|
6395
6344
|
}
|
|
6396
6345
|
isLoaded(context) {
|
|
6397
6346
|
return context.isBound(this.featureId);
|
|
6398
6347
|
}
|
|
6399
6348
|
}
|
|
6400
6349
|
exports.FeatureModule = FeatureModule;
|
|
6350
|
+
/**
|
|
6351
|
+
* Global flag to enable/disable additional debug log output when loading feature modules
|
|
6352
|
+
* Default is `false`.
|
|
6353
|
+
*/
|
|
6354
|
+
FeatureModule.DEBUG_LOG_ENABLED = false;
|
|
6401
6355
|
|
|
6402
6356
|
|
|
6403
6357
|
/***/ }),
|
|
@@ -6646,7 +6600,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
6646
6600
|
};
|
|
6647
6601
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6648
6602
|
/********************************************************************************
|
|
6649
|
-
* Copyright (c)
|
|
6603
|
+
* Copyright (c) 2024 EclipseSource and others.
|
|
6650
6604
|
*
|
|
6651
6605
|
* This program and the accompanying materials are made available under the
|
|
6652
6606
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -6660,15 +6614,52 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
6660
6614
|
*
|
|
6661
6615
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
6662
6616
|
********************************************************************************/
|
|
6663
|
-
__exportStar(__webpack_require__(/*! ./action-protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/
|
|
6664
|
-
__exportStar(__webpack_require__(/*! ./client-
|
|
6665
|
-
__exportStar(__webpack_require__(/*! ./
|
|
6617
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/base-protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/base-protocol.js"), exports);
|
|
6618
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/client-notification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/client-notification.js"), exports);
|
|
6619
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/clipboard */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/clipboard.js"), exports);
|
|
6620
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/contexts */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/contexts.js"), exports);
|
|
6621
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/edge-modification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/edge-modification.js"), exports);
|
|
6622
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-creation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-creation.js"), exports);
|
|
6623
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-hover */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-hover.js"), exports);
|
|
6624
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-navigation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-navigation.js"), exports);
|
|
6625
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-selection */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-selection.js"), exports);
|
|
6626
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-text-editing */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-text-editing.js"), exports);
|
|
6627
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-type-hints */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-type-hints.js"), exports);
|
|
6628
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/element-validation */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/element-validation.js"), exports);
|
|
6629
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/model-data */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-data.js"), exports);
|
|
6630
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/model-edit-mode */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-edit-mode.js"), exports);
|
|
6631
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/model-layout */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-layout.js"), exports);
|
|
6632
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/model-saving */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/model-saving.js"), exports);
|
|
6633
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/node-modification */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/node-modification.js"), exports);
|
|
6634
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/tool-palette */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/tool-palette.js"), exports);
|
|
6635
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/types */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/types.js"), exports);
|
|
6636
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/undo-redo */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/undo-redo.js"), exports);
|
|
6637
|
+
__exportStar(__webpack_require__(/*! ./action-protocol/viewport */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/viewport.js"), exports);
|
|
6638
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/base-glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/base-glsp-client.js"), exports);
|
|
6639
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/glsp-client.js"), exports);
|
|
6640
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/glsp-server */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/glsp-server.js"), exports);
|
|
6641
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/base-jsonrpc-glsp-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/base-jsonrpc-glsp-client.js"), exports);
|
|
6642
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/glsp-jsonrpc-client */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/glsp-jsonrpc-client.js"), exports);
|
|
6643
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/glsp-jsonrpc-server */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/glsp-jsonrpc-server.js"), exports);
|
|
6644
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/websocket-connection */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/websocket-connection.js"), exports);
|
|
6645
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/worker-connection-provider */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/worker-connection-provider.js"), exports);
|
|
6646
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/ws-connection-provider */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/ws-connection-provider.js"), exports);
|
|
6647
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/types */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/types.js"), exports);
|
|
6648
|
+
__exportStar(__webpack_require__(/*! ./model/default-types */ "../../node_modules/@eclipse-glsp/protocol/lib/model/default-types.js"), exports);
|
|
6649
|
+
__exportStar(__webpack_require__(/*! ./model/model-schema */ "../../node_modules/@eclipse-glsp/protocol/lib/model/model-schema.js"), exports);
|
|
6666
6650
|
__exportStar(__webpack_require__(/*! ./re-exports */ "../../node_modules/@eclipse-glsp/protocol/lib/re-exports.js"), exports);
|
|
6667
6651
|
__exportStar(__webpack_require__(/*! ./sprotty-actions */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-actions.js"), exports);
|
|
6668
6652
|
__exportStar(__webpack_require__(/*! ./sprotty-geometry-bounds */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-bounds.js"), exports);
|
|
6669
6653
|
__exportStar(__webpack_require__(/*! ./sprotty-geometry-dimension */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-dimension.js"), exports);
|
|
6670
6654
|
__exportStar(__webpack_require__(/*! ./sprotty-geometry-point */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-point.js"), exports);
|
|
6671
|
-
__exportStar(__webpack_require__(/*! ./utils */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/
|
|
6655
|
+
__exportStar(__webpack_require__(/*! ./utils/array-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/array-util.js"), exports);
|
|
6656
|
+
__exportStar(__webpack_require__(/*! ./utils/disposable */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/disposable.js"), exports);
|
|
6657
|
+
__exportStar(__webpack_require__(/*! ./utils/event */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/event.js"), exports);
|
|
6658
|
+
__exportStar(__webpack_require__(/*! ./utils/geometry-movement */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-movement.js"), exports);
|
|
6659
|
+
__exportStar(__webpack_require__(/*! ./utils/geometry-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-util.js"), exports);
|
|
6660
|
+
__exportStar(__webpack_require__(/*! ./utils/geometry-vector */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-vector.js"), exports);
|
|
6661
|
+
__exportStar(__webpack_require__(/*! ./utils/math-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/math-util.js"), exports);
|
|
6662
|
+
__exportStar(__webpack_require__(/*! ./utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js"), exports);
|
|
6672
6663
|
|
|
6673
6664
|
|
|
6674
6665
|
/***/ }),
|
|
@@ -6732,50 +6723,6 @@ var DefaultTypes;
|
|
|
6732
6723
|
})(DefaultTypes || (exports.DefaultTypes = DefaultTypes = {}));
|
|
6733
6724
|
|
|
6734
6725
|
|
|
6735
|
-
/***/ }),
|
|
6736
|
-
|
|
6737
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/model/index.js":
|
|
6738
|
-
/*!********************************************************************!*\
|
|
6739
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/lib/model/index.js ***!
|
|
6740
|
-
\********************************************************************/
|
|
6741
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6742
|
-
|
|
6743
|
-
"use strict";
|
|
6744
|
-
|
|
6745
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6746
|
-
if (k2 === undefined) k2 = k;
|
|
6747
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6748
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6749
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6750
|
-
}
|
|
6751
|
-
Object.defineProperty(o, k2, desc);
|
|
6752
|
-
}) : (function(o, m, k, k2) {
|
|
6753
|
-
if (k2 === undefined) k2 = k;
|
|
6754
|
-
o[k2] = m[k];
|
|
6755
|
-
}));
|
|
6756
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
6757
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
6758
|
-
};
|
|
6759
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6760
|
-
/********************************************************************************
|
|
6761
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
6762
|
-
*
|
|
6763
|
-
* This program and the accompanying materials are made available under the
|
|
6764
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6765
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
6766
|
-
*
|
|
6767
|
-
* This Source Code may also be made available under the following Secondary
|
|
6768
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
6769
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
6770
|
-
* with the GNU Classpath Exception which is available at
|
|
6771
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
6772
|
-
*
|
|
6773
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
6774
|
-
********************************************************************************/
|
|
6775
|
-
__exportStar(__webpack_require__(/*! ./default-types */ "../../node_modules/@eclipse-glsp/protocol/lib/model/default-types.js"), exports);
|
|
6776
|
-
__exportStar(__webpack_require__(/*! ./model-schema */ "../../node_modules/@eclipse-glsp/protocol/lib/model/model-schema.js"), exports);
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
6726
|
/***/ }),
|
|
6780
6727
|
|
|
6781
6728
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/model/model-schema.js":
|
|
@@ -6827,7 +6774,25 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
6827
6774
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
6828
6775
|
};
|
|
6829
6776
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6830
|
-
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; } }));
|
|
6831
6796
|
__exportStar(__webpack_require__(/*! sprotty-protocol/lib/utils/async */ "../../node_modules/sprotty-protocol/lib/utils/async.js"), exports);
|
|
6832
6797
|
__exportStar(__webpack_require__(/*! sprotty-protocol/lib/utils/geometry */ "../../node_modules/sprotty-protocol/lib/utils/geometry.js"), exports);
|
|
6833
6798
|
__exportStar(__webpack_require__(/*! sprotty-protocol/lib/utils/json */ "../../node_modules/sprotty-protocol/lib/utils/json.js"), exports);
|
|
@@ -6931,6 +6896,21 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
6931
6896
|
exports.Bounds = void 0;
|
|
6932
6897
|
const geometry_1 = __webpack_require__(/*! sprotty-protocol/lib/utils/geometry */ "../../node_modules/sprotty-protocol/lib/utils/geometry.js");
|
|
6933
6898
|
Object.defineProperty(exports, "Bounds", ({ enumerable: true, get: function () { return geometry_1.Bounds; } }));
|
|
6899
|
+
const sprotty_geometry_dimension_1 = __webpack_require__(/*! ./sprotty-geometry-dimension */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-dimension.js");
|
|
6900
|
+
const sprotty_geometry_point_1 = __webpack_require__(/*! ./sprotty-geometry-point */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-point.js");
|
|
6901
|
+
const type_util_1 = __webpack_require__(/*! ./utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
6902
|
+
geometry_1.Bounds.ZERO = Object.freeze({
|
|
6903
|
+
x: 0,
|
|
6904
|
+
y: 0,
|
|
6905
|
+
width: 0,
|
|
6906
|
+
height: 0
|
|
6907
|
+
});
|
|
6908
|
+
geometry_1.Bounds.is = (bounds) => type_util_1.AnyObject.is(bounds) &&
|
|
6909
|
+
(0, type_util_1.hasNumberProp)(bounds, 'x') &&
|
|
6910
|
+
(0, type_util_1.hasNumberProp)(bounds, 'y') &&
|
|
6911
|
+
(0, type_util_1.hasNumberProp)(bounds, 'width') &&
|
|
6912
|
+
(0, type_util_1.hasNumberProp)(bounds, 'height');
|
|
6913
|
+
geometry_1.Bounds.isValid = (bounds) => bounds !== undefined && sprotty_geometry_dimension_1.Dimension.isValid(bounds) && sprotty_geometry_point_1.Point.isValid(bounds);
|
|
6934
6914
|
geometry_1.Bounds.encompasses = (outer, inner) => geometry_1.Bounds.includes(outer, geometry_1.Bounds.topLeft(inner)) && geometry_1.Bounds.includes(outer, geometry_1.Bounds.bottomRight(inner));
|
|
6935
6915
|
geometry_1.Bounds.overlap = (one, other, touch) => {
|
|
6936
6916
|
const oneTopLeft = geometry_1.Bounds.topLeft(one);
|
|
@@ -6947,7 +6927,7 @@ geometry_1.Bounds.overlap = (one, other, touch) => {
|
|
|
6947
6927
|
oneBottomRight.y > otherTopLeft.y &&
|
|
6948
6928
|
otherBottomRight.y > oneTopLeft.y;
|
|
6949
6929
|
};
|
|
6950
|
-
geometry_1.Bounds.equals = (left, right) =>
|
|
6930
|
+
geometry_1.Bounds.equals = (left, right, eps) => sprotty_geometry_point_1.Point.equals(left, right, eps) && sprotty_geometry_dimension_1.Dimension.equals(left, right, eps);
|
|
6951
6931
|
geometry_1.Bounds.left = (bounds) => bounds.x;
|
|
6952
6932
|
geometry_1.Bounds.centerX = (bounds) => bounds.x + (bounds.width >= 0 ? bounds.width * 0.5 : 0);
|
|
6953
6933
|
geometry_1.Bounds.right = (bounds) => bounds.x + bounds.width;
|
|
@@ -6970,6 +6950,10 @@ geometry_1.Bounds.isBefore = (leftBounds, rightBounds) => geometry_1.Bounds.left
|
|
|
6970
6950
|
geometry_1.Bounds.isAfter = (leftBounds, rightBounds) => geometry_1.Bounds.left(leftBounds) >= geometry_1.Bounds.left(rightBounds);
|
|
6971
6951
|
geometry_1.Bounds.sortBy = (rankFunc, ...bounds) => bounds.sort((left, right) => rankFunc(left) - rankFunc(right));
|
|
6972
6952
|
geometry_1.Bounds.from = (topLeft, bottomRight) => (Object.assign(Object.assign({}, topLeft), { width: bottomRight.x - topLeft.x, height: bottomRight.y - topLeft.y }));
|
|
6953
|
+
geometry_1.Bounds.position = geometry_1.Bounds.topLeft;
|
|
6954
|
+
geometry_1.Bounds.dimension = (bounds) => ({ width: bounds.width, height: bounds.height });
|
|
6955
|
+
geometry_1.Bounds.move = geometry_1.Bounds.translate;
|
|
6956
|
+
geometry_1.Bounds.resize = (bounds, delta) => (Object.assign(Object.assign({}, bounds), { width: bounds.width + delta.width, height: bounds.height + delta.height }));
|
|
6973
6957
|
|
|
6974
6958
|
|
|
6975
6959
|
/***/ }),
|
|
@@ -7002,13 +6986,22 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
7002
6986
|
exports.Dimension = void 0;
|
|
7003
6987
|
const geometry_1 = __webpack_require__(/*! sprotty-protocol/lib/utils/geometry */ "../../node_modules/sprotty-protocol/lib/utils/geometry.js");
|
|
7004
6988
|
Object.defineProperty(exports, "Dimension", ({ enumerable: true, get: function () { return geometry_1.Dimension; } }));
|
|
6989
|
+
const math_util_1 = __webpack_require__(/*! ./utils/math-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/math-util.js");
|
|
6990
|
+
const type_util_1 = __webpack_require__(/*! ./utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
6991
|
+
geometry_1.Dimension.ZERO = Object.freeze({
|
|
6992
|
+
width: 0,
|
|
6993
|
+
height: 0
|
|
6994
|
+
});
|
|
6995
|
+
geometry_1.Dimension.is = (dimension) => type_util_1.AnyObject.is(dimension) && (0, type_util_1.hasNumberProp)(dimension, 'width') && (0, type_util_1.hasNumberProp)(dimension, 'height');
|
|
7005
6996
|
geometry_1.Dimension.center = (d) => ({ x: d.width * 0.5, y: d.height * 0.5 });
|
|
7006
6997
|
geometry_1.Dimension.add = (d, a) => ({ width: d.width + a.width, height: d.height + a.height });
|
|
7007
6998
|
geometry_1.Dimension.subtract = (d, a) => ({ width: d.width - a.width, height: d.height - a.height });
|
|
7008
6999
|
geometry_1.Dimension.multiplyMeasure = (d, m) => ({ width: d.width * m, height: d.height * m });
|
|
7009
7000
|
geometry_1.Dimension.divideMeasure = (d, m) => ({ width: d.width / m, height: d.height / m });
|
|
7010
7001
|
geometry_1.Dimension.map = (dimension, callbackfn) => (Object.assign(Object.assign({}, dimension), { width: callbackfn(dimension.width, 'width'), height: callbackfn(dimension.height, 'height') }));
|
|
7011
|
-
geometry_1.Dimension.equals = (left, right) => left.width
|
|
7002
|
+
geometry_1.Dimension.equals = (left, right, eps) => (0, math_util_1.equalUpTo)(left.width, right.width, eps) && (0, math_util_1.equalUpTo)(left.height, right.height, eps);
|
|
7003
|
+
geometry_1.Dimension.fromPoint = (point) => ({ width: point.x, height: point.y });
|
|
7004
|
+
geometry_1.Dimension.area = (dimension) => dimension.width * dimension.height;
|
|
7012
7005
|
|
|
7013
7006
|
|
|
7014
7007
|
/***/ }),
|
|
@@ -7041,8 +7034,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
7041
7034
|
exports.Point = void 0;
|
|
7042
7035
|
const geometry_1 = __webpack_require__(/*! sprotty-protocol/lib/utils/geometry */ "../../node_modules/sprotty-protocol/lib/utils/geometry.js");
|
|
7043
7036
|
Object.defineProperty(exports, "Point", ({ enumerable: true, get: function () { return geometry_1.Point; } }));
|
|
7044
|
-
const
|
|
7045
|
-
|
|
7037
|
+
const geometry_vector_1 = __webpack_require__(/*! ./utils/geometry-vector */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-vector.js");
|
|
7038
|
+
const math_util_1 = __webpack_require__(/*! ./utils/math-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/math-util.js");
|
|
7039
|
+
const type_util_1 = __webpack_require__(/*! ./utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
7040
|
+
geometry_1.Point.is = (point) => type_util_1.AnyObject.is(point) && (0, type_util_1.hasNumberProp)(point, 'x') && (0, type_util_1.hasNumberProp)(point, 'y');
|
|
7046
7041
|
geometry_1.Point.isOrigin = (point) => geometry_1.Point.equals(point, geometry_1.Point.ORIGIN);
|
|
7047
7042
|
geometry_1.Point.isValid = (point) => point !== undefined && !isNaN(point.x) && !isNaN(point.y);
|
|
7048
7043
|
geometry_1.Point.abs = (point) => geometry_1.Point.map(point, Math.abs);
|
|
@@ -7063,14 +7058,15 @@ geometry_1.Point.snapToGrid = (point, grid, gridOrigin) => {
|
|
|
7063
7058
|
geometry_1.Point.vector = (from, to) => geometry_1.Point.subtract(to, from);
|
|
7064
7059
|
geometry_1.Point.move = (from, to) => {
|
|
7065
7060
|
const vector = geometry_1.Point.vector(from, to);
|
|
7066
|
-
const direction =
|
|
7061
|
+
const direction = geometry_vector_1.Vector.direction(vector);
|
|
7067
7062
|
return { from, to, vector, direction };
|
|
7068
7063
|
};
|
|
7069
7064
|
geometry_1.Point.moveTowards = (from, vector) => {
|
|
7070
7065
|
const to = geometry_1.Point.add(from, vector);
|
|
7071
|
-
const dir =
|
|
7066
|
+
const dir = geometry_vector_1.Vector.direction(vector);
|
|
7072
7067
|
return { from, to, vector, direction: dir };
|
|
7073
7068
|
};
|
|
7069
|
+
geometry_1.Point.equals = (one, other, eps) => (0, math_util_1.equalUpTo)(one.x, other.x, eps) && (0, math_util_1.equalUpTo)(one.y, other.y, eps);
|
|
7074
7070
|
|
|
7075
7071
|
|
|
7076
7072
|
/***/ }),
|
|
@@ -7417,7 +7413,7 @@ exports.Emitter = Emitter;
|
|
|
7417
7413
|
********************************************************************************/
|
|
7418
7414
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7419
7415
|
exports.Movement = void 0;
|
|
7420
|
-
const
|
|
7416
|
+
const sprotty_geometry_point_1 = __webpack_require__(/*! ../sprotty-geometry-point */ "../../node_modules/@eclipse-glsp/protocol/lib/sprotty-geometry-point.js");
|
|
7421
7417
|
const geometry_vector_1 = __webpack_require__(/*! ./geometry-vector */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-vector.js");
|
|
7422
7418
|
const type_util_1 = __webpack_require__(/*! ./type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
7423
7419
|
/**
|
|
@@ -7430,8 +7426,8 @@ var Movement;
|
|
|
7430
7426
|
* The zero movement. It has from and to set to the origin and the vector set to zero.
|
|
7431
7427
|
*/
|
|
7432
7428
|
Movement.ZERO = Object.freeze({
|
|
7433
|
-
from:
|
|
7434
|
-
to:
|
|
7429
|
+
from: sprotty_geometry_point_1.Point.ORIGIN,
|
|
7430
|
+
to: sprotty_geometry_point_1.Point.ORIGIN,
|
|
7435
7431
|
vector: geometry_vector_1.Vector.ZERO,
|
|
7436
7432
|
direction: []
|
|
7437
7433
|
});
|
|
@@ -7443,9 +7439,9 @@ var Movement;
|
|
|
7443
7439
|
function is(obj) {
|
|
7444
7440
|
return (type_util_1.AnyObject.is(obj) &&
|
|
7445
7441
|
(0, type_util_1.hasObjectProp)(obj, 'from') &&
|
|
7446
|
-
|
|
7442
|
+
sprotty_geometry_point_1.Point.is(obj.from) &&
|
|
7447
7443
|
(0, type_util_1.hasObjectProp)(obj, 'to') &&
|
|
7448
|
-
|
|
7444
|
+
sprotty_geometry_point_1.Point.is(obj.to) &&
|
|
7449
7445
|
(0, type_util_1.hasObjectProp)(obj, 'vector') &&
|
|
7450
7446
|
geometry_vector_1.Vector.is(obj.to) &&
|
|
7451
7447
|
(0, type_util_1.hasObjectProp)(obj, 'direction'));
|
|
@@ -7476,7 +7472,7 @@ var Movement;
|
|
|
7476
7472
|
* @returns true if the movements are equal, false otherwise
|
|
7477
7473
|
*/
|
|
7478
7474
|
function equals(left, right) {
|
|
7479
|
-
return
|
|
7475
|
+
return sprotty_geometry_point_1.Point.equals(left.from, right.from) && sprotty_geometry_point_1.Point.equals(left.to, right.to) && geometry_vector_1.Vector.equals(left.vector, right.vector);
|
|
7480
7476
|
}
|
|
7481
7477
|
Movement.equals = equals;
|
|
7482
7478
|
})(Movement || (exports.Movement = Movement = {}));
|
|
@@ -7759,31 +7755,16 @@ var Vector;
|
|
|
7759
7755
|
|
|
7760
7756
|
/***/ }),
|
|
7761
7757
|
|
|
7762
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/utils/
|
|
7763
|
-
|
|
7764
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/lib/utils/
|
|
7765
|
-
|
|
7766
|
-
/***/ (
|
|
7758
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/utils/math-util.js":
|
|
7759
|
+
/*!************************************************************************!*\
|
|
7760
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/lib/utils/math-util.js ***!
|
|
7761
|
+
\************************************************************************/
|
|
7762
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
7767
7763
|
|
|
7768
7764
|
"use strict";
|
|
7769
7765
|
|
|
7770
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7771
|
-
if (k2 === undefined) k2 = k;
|
|
7772
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7773
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7774
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7775
|
-
}
|
|
7776
|
-
Object.defineProperty(o, k2, desc);
|
|
7777
|
-
}) : (function(o, m, k, k2) {
|
|
7778
|
-
if (k2 === undefined) k2 = k;
|
|
7779
|
-
o[k2] = m[k];
|
|
7780
|
-
}));
|
|
7781
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
7782
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
7783
|
-
};
|
|
7784
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7785
7766
|
/********************************************************************************
|
|
7786
|
-
* Copyright (c)
|
|
7767
|
+
* Copyright (c) 2024 Axon Ivy AG and others.
|
|
7787
7768
|
*
|
|
7788
7769
|
* This program and the accompanying materials are made available under the
|
|
7789
7770
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -7797,13 +7778,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
7797
7778
|
*
|
|
7798
7779
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
7799
7780
|
********************************************************************************/
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
__exportStar(__webpack_require__(/*! ./type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js"), exports);
|
|
7781
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7782
|
+
exports.equalUpTo = void 0;
|
|
7783
|
+
function equalUpTo(one, other, epsilon = Number.EPSILON) {
|
|
7784
|
+
return Math.abs(one - other) <= epsilon;
|
|
7785
|
+
}
|
|
7786
|
+
exports.equalUpTo = equalUpTo;
|
|
7807
7787
|
|
|
7808
7788
|
|
|
7809
7789
|
/***/ }),
|
|
@@ -7832,7 +7812,7 @@ __exportStar(__webpack_require__(/*! ./type-util */ "../../node_modules/@eclipse
|
|
|
7832
7812
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
7833
7813
|
********************************************************************************/
|
|
7834
7814
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7835
|
-
exports.hasArrayProp = exports.hasFunctionProp = exports.hasObjectProp = exports.hasNumberProp = exports.hasBooleanProp = exports.hasStringProp = exports.call = exports.toTypeGuard = exports.AnyObject = void 0;
|
|
7815
|
+
exports.hasArrayProp = exports.hasFunctionProp = exports.hasObjectProp = exports.hasNumberProp = exports.hasBooleanProp = exports.hasStringProp = exports.call = exports.toTypeGuard = exports.typeGuard = exports.AnyObject = void 0;
|
|
7836
7816
|
var AnyObject;
|
|
7837
7817
|
(function (AnyObject) {
|
|
7838
7818
|
/**
|
|
@@ -7846,6 +7826,11 @@ var AnyObject;
|
|
|
7846
7826
|
}
|
|
7847
7827
|
AnyObject.is = is;
|
|
7848
7828
|
})(AnyObject || (exports.AnyObject = AnyObject = {}));
|
|
7829
|
+
/** Utility function to combine two type guards */
|
|
7830
|
+
function typeGuard(one, other) {
|
|
7831
|
+
return (element) => one(element) && other(element);
|
|
7832
|
+
}
|
|
7833
|
+
exports.typeGuard = typeGuard;
|
|
7849
7834
|
/**
|
|
7850
7835
|
* Utility function that create a typeguard function for a given class constructor.
|
|
7851
7836
|
* Essentially this wraps an instance of check as typeguard function.
|
|
@@ -7936,60 +7921,73 @@ exports.hasArrayProp = hasArrayProp;
|
|
|
7936
7921
|
|
|
7937
7922
|
/***/ }),
|
|
7938
7923
|
|
|
7939
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/
|
|
7940
|
-
|
|
7941
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/
|
|
7942
|
-
|
|
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
|
+
\******************************************************************************************/
|
|
7943
7928
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7944
7929
|
|
|
7945
7930
|
"use strict";
|
|
7946
7931
|
__webpack_require__.r(__webpack_exports__);
|
|
7947
7932
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7948
|
-
/* 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"])
|
|
7949
7947
|
/* harmony export */ });
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
*/
|
|
7954
|
-
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
|
+
|
|
7955
7972
|
|
|
7956
|
-
for (var i = 0; i < 256; ++i) {
|
|
7957
|
-
byteToHex[i] = (i + 0x100).toString(16).substr(1);
|
|
7958
|
-
}
|
|
7959
7973
|
|
|
7960
|
-
function bytesToUuid(buf, offset) {
|
|
7961
|
-
var i = offset || 0;
|
|
7962
|
-
var bth = byteToHex; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
|
|
7963
7974
|
|
|
7964
|
-
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('');
|
|
7965
|
-
}
|
|
7966
7975
|
|
|
7967
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (bytesToUuid);
|
|
7968
7976
|
|
|
7969
7977
|
/***/ }),
|
|
7970
7978
|
|
|
7971
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/
|
|
7972
|
-
|
|
7973
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/
|
|
7974
|
-
|
|
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
|
+
\****************************************************************************************/
|
|
7975
7983
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7976
7984
|
|
|
7977
7985
|
"use strict";
|
|
7978
7986
|
__webpack_require__.r(__webpack_exports__);
|
|
7979
7987
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7980
|
-
/* harmony export */
|
|
7981
|
-
/* harmony export */ v3: () => (/* reexport safe */ _v3_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
7982
|
-
/* harmony export */ v4: () => (/* reexport safe */ _v4_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
7983
|
-
/* harmony export */ v5: () => (/* reexport safe */ _v5_js__WEBPACK_IMPORTED_MODULE_3__["default"])
|
|
7988
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
7984
7989
|
/* harmony export */ });
|
|
7985
|
-
/* harmony
|
|
7986
|
-
/* 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");
|
|
7987
|
-
/* 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");
|
|
7988
|
-
/* 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");
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7990
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ('ffffffff-ffff-ffff-ffff-ffffffffffff');
|
|
7993
7991
|
|
|
7994
7992
|
/***/ }),
|
|
7995
7993
|
|
|
@@ -8004,9 +8002,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8004
8002
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8005
8003
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8006
8004
|
/* harmony export */ });
|
|
8007
|
-
/* harmony import */ var
|
|
8008
|
-
/* harmony import */ var
|
|
8009
|
-
|
|
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__);
|
|
8010
8007
|
|
|
8011
8008
|
function md5(bytes) {
|
|
8012
8009
|
if (Array.isArray(bytes)) {
|
|
@@ -8014,11 +8011,111 @@ function md5(bytes) {
|
|
|
8014
8011
|
} else if (typeof bytes === 'string') {
|
|
8015
8012
|
bytes = Buffer.from(bytes, 'utf8');
|
|
8016
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
|
+
/***/ }),
|
|
8017
8019
|
|
|
8018
|
-
|
|
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;
|
|
8088
|
+
|
|
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;
|
|
8019
8102
|
}
|
|
8103
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parse);
|
|
8020
8104
|
|
|
8021
|
-
|
|
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);
|
|
8022
8119
|
|
|
8023
8120
|
/***/ }),
|
|
8024
8121
|
|
|
@@ -8033,11 +8130,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8033
8130
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8034
8131
|
/* harmony export */ "default": () => (/* binding */ rng)
|
|
8035
8132
|
/* harmony export */ });
|
|
8036
|
-
/* harmony import */ var
|
|
8037
|
-
/* 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__);
|
|
8038
8135
|
|
|
8136
|
+
const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
|
|
8137
|
+
let poolPtr = rnds8Pool.length;
|
|
8039
8138
|
function rng() {
|
|
8040
|
-
|
|
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);
|
|
8041
8144
|
}
|
|
8042
8145
|
|
|
8043
8146
|
/***/ }),
|
|
@@ -8053,9 +8156,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8053
8156
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8054
8157
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8055
8158
|
/* harmony export */ });
|
|
8056
|
-
/* harmony import */ var
|
|
8057
|
-
/* harmony import */ var
|
|
8058
|
-
|
|
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__);
|
|
8059
8161
|
|
|
8060
8162
|
function sha1(bytes) {
|
|
8061
8163
|
if (Array.isArray(bytes)) {
|
|
@@ -8063,14 +8165,59 @@ function sha1(bytes) {
|
|
|
8063
8165
|
} else if (typeof bytes === 'string') {
|
|
8064
8166
|
bytes = Buffer.from(bytes, 'utf8');
|
|
8065
8167
|
}
|
|
8066
|
-
|
|
8067
|
-
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();
|
|
8068
8169
|
}
|
|
8069
|
-
|
|
8070
8170
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (sha1);
|
|
8071
8171
|
|
|
8072
8172
|
/***/ }),
|
|
8073
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
|
+
|
|
8074
8221
|
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v1.js":
|
|
8075
8222
|
/*!***************************************************************************************!*\
|
|
8076
8223
|
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/esm-node/v1.js ***!
|
|
@@ -8083,102 +8230,168 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8083
8230
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8084
8231
|
/* harmony export */ });
|
|
8085
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");
|
|
8086
|
-
/* 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
|
+
|
|
8235
|
+
|
|
8087
8236
|
|
|
8088
|
-
|
|
8237
|
+
// **`v1()` - Generate time-based UUID**
|
|
8089
8238
|
//
|
|
8090
8239
|
// Inspired by https://github.com/LiosK/UUID.js
|
|
8091
8240
|
// and http://docs.python.org/library/uuid.html
|
|
8092
8241
|
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
var _clockseq; // Previous uuid creation time
|
|
8242
|
+
let _nodeId;
|
|
8243
|
+
let _clockseq;
|
|
8096
8244
|
|
|
8245
|
+
// Previous uuid creation time
|
|
8246
|
+
let _lastMSecs = 0;
|
|
8247
|
+
let _lastNSecs = 0;
|
|
8097
8248
|
|
|
8098
|
-
|
|
8099
|
-
var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
|
|
8100
|
-
|
|
8249
|
+
// See https://github.com/uuidjs/uuid for API details
|
|
8101
8250
|
function v1(options, buf, offset) {
|
|
8102
|
-
|
|
8103
|
-
|
|
8251
|
+
let i = buf && offset || 0;
|
|
8252
|
+
const b = buf || new Array(16);
|
|
8104
8253
|
options = options || {};
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
8108
|
-
//
|
|
8254
|
+
let node = options.node;
|
|
8255
|
+
let clockseq = options.clockseq;
|
|
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
|
+
}
|
|
8109
8266
|
|
|
8267
|
+
// Handle cases where we need entropy. We do this lazily to minimize issues
|
|
8268
|
+
// related to insufficient system entropy. See #189
|
|
8110
8269
|
if (node == null || clockseq == null) {
|
|
8111
|
-
|
|
8270
|
+
const seedBytes = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
8112
8271
|
|
|
8272
|
+
// Randomize node
|
|
8113
8273
|
if (node == null) {
|
|
8114
|
-
|
|
8115
|
-
|
|
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
|
+
}
|
|
8116
8283
|
}
|
|
8117
8284
|
|
|
8285
|
+
// Randomize clockseq
|
|
8118
8286
|
if (clockseq == null) {
|
|
8119
8287
|
// Per 4.2.2, randomize (14 bit) clockseq
|
|
8120
|
-
clockseq =
|
|
8288
|
+
clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
|
|
8289
|
+
if (_clockseq === undefined && !options._v6) {
|
|
8290
|
+
_clockseq = clockseq;
|
|
8291
|
+
}
|
|
8121
8292
|
}
|
|
8122
|
-
}
|
|
8123
|
-
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
|
|
8124
|
-
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
|
8125
|
-
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
|
8293
|
+
}
|
|
8126
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();
|
|
8127
8300
|
|
|
8128
|
-
|
|
8301
|
+
// Per 4.2.1.2, use count of uuid's generated during the current clock
|
|
8129
8302
|
// cycle to simulate higher resolution clock
|
|
8303
|
+
let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
|
|
8130
8304
|
|
|
8131
|
-
|
|
8132
|
-
|
|
8133
|
-
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;
|
|
8134
8307
|
|
|
8308
|
+
// Per 4.2.1.2, Bump clockseq on clock regression
|
|
8135
8309
|
if (dt < 0 && options.clockseq === undefined) {
|
|
8136
8310
|
clockseq = clockseq + 1 & 0x3fff;
|
|
8137
|
-
}
|
|
8138
|
-
// time interval
|
|
8139
|
-
|
|
8311
|
+
}
|
|
8140
8312
|
|
|
8313
|
+
// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
|
8314
|
+
// time interval
|
|
8141
8315
|
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
|
|
8142
8316
|
nsecs = 0;
|
|
8143
|
-
}
|
|
8144
|
-
|
|
8317
|
+
}
|
|
8145
8318
|
|
|
8319
|
+
// Per 4.2.1.2 Throw error if too many uuids are requested
|
|
8146
8320
|
if (nsecs >= 10000) {
|
|
8147
8321
|
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
8148
8322
|
}
|
|
8149
|
-
|
|
8150
8323
|
_lastMSecs = msecs;
|
|
8151
8324
|
_lastNSecs = nsecs;
|
|
8152
|
-
_clockseq = clockseq;
|
|
8325
|
+
_clockseq = clockseq;
|
|
8153
8326
|
|
|
8154
|
-
|
|
8327
|
+
// Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
|
8328
|
+
msecs += 12219292800000;
|
|
8155
8329
|
|
|
8156
|
-
|
|
8330
|
+
// `time_low`
|
|
8331
|
+
const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
8157
8332
|
b[i++] = tl >>> 24 & 0xff;
|
|
8158
8333
|
b[i++] = tl >>> 16 & 0xff;
|
|
8159
8334
|
b[i++] = tl >>> 8 & 0xff;
|
|
8160
|
-
b[i++] = tl & 0xff;
|
|
8335
|
+
b[i++] = tl & 0xff;
|
|
8161
8336
|
|
|
8162
|
-
|
|
8337
|
+
// `time_mid`
|
|
8338
|
+
const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
|
|
8163
8339
|
b[i++] = tmh >>> 8 & 0xff;
|
|
8164
|
-
b[i++] = tmh & 0xff;
|
|
8340
|
+
b[i++] = tmh & 0xff;
|
|
8165
8341
|
|
|
8342
|
+
// `time_high_and_version`
|
|
8166
8343
|
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
|
|
8344
|
+
b[i++] = tmh >>> 16 & 0xff;
|
|
8167
8345
|
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
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;
|
|
8171
8348
|
|
|
8172
|
-
|
|
8349
|
+
// `clock_seq_low`
|
|
8350
|
+
b[i++] = clockseq & 0xff;
|
|
8173
8351
|
|
|
8174
|
-
|
|
8352
|
+
// `node`
|
|
8353
|
+
for (let n = 0; n < 6; ++n) {
|
|
8175
8354
|
b[i + n] = node[n];
|
|
8176
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
|
+
/***/ }),
|
|
8177
8361
|
|
|
8178
|
-
|
|
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");
|
|
8375
|
+
|
|
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;
|
|
8179
8389
|
}
|
|
8180
8390
|
|
|
8181
|
-
|
|
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
|
+
}
|
|
8182
8395
|
|
|
8183
8396
|
/***/ }),
|
|
8184
8397
|
|
|
@@ -8213,61 +8426,61 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8213
8426
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8214
8427
|
/* harmony export */ DNS: () => (/* binding */ DNS),
|
|
8215
8428
|
/* harmony export */ URL: () => (/* binding */ URL),
|
|
8216
|
-
/* harmony export */ "default": () => (/*
|
|
8429
|
+
/* harmony export */ "default": () => (/* binding */ v35)
|
|
8217
8430
|
/* harmony export */ });
|
|
8218
|
-
/* harmony import */ var
|
|
8219
|
-
|
|
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");
|
|
8220
8433
|
|
|
8221
|
-
function uuidToBytes(uuid) {
|
|
8222
|
-
// Note: We assume we're being passed a valid uuid string
|
|
8223
|
-
var bytes = [];
|
|
8224
|
-
uuid.replace(/[a-fA-F0-9]{2}/g, function (hex) {
|
|
8225
|
-
bytes.push(parseInt(hex, 16));
|
|
8226
|
-
});
|
|
8227
|
-
return bytes;
|
|
8228
|
-
}
|
|
8229
8434
|
|
|
8230
8435
|
function stringToBytes(str) {
|
|
8231
8436
|
str = unescape(encodeURIComponent(str)); // UTF8 escape
|
|
8232
8437
|
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
bytes[i] = str.charCodeAt(i);
|
|
8438
|
+
const bytes = [];
|
|
8439
|
+
for (let i = 0; i < str.length; ++i) {
|
|
8440
|
+
bytes.push(str.charCodeAt(i));
|
|
8237
8441
|
}
|
|
8238
|
-
|
|
8239
8442
|
return bytes;
|
|
8240
8443
|
}
|
|
8241
|
-
|
|
8242
8444
|
const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
8243
8445
|
const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
var
|
|
8247
|
-
if (typeof value
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
if (
|
|
8251
|
-
|
|
8252
|
-
|
|
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);
|
|
8253
8466
|
bytes[6] = bytes[6] & 0x0f | version;
|
|
8254
8467
|
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
8255
|
-
|
|
8256
8468
|
if (buf) {
|
|
8257
|
-
|
|
8258
|
-
|
|
8469
|
+
offset = offset || 0;
|
|
8470
|
+
for (let i = 0; i < 16; ++i) {
|
|
8471
|
+
buf[offset + i] = bytes[i];
|
|
8259
8472
|
}
|
|
8473
|
+
return buf;
|
|
8260
8474
|
}
|
|
8475
|
+
return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.unsafeStringify)(bytes);
|
|
8476
|
+
}
|
|
8261
8477
|
|
|
8262
|
-
|
|
8263
|
-
}; // Function#name is not settable on some platforms (#270)
|
|
8264
|
-
|
|
8265
|
-
|
|
8478
|
+
// Function#name is not settable on some platforms (#270)
|
|
8266
8479
|
try {
|
|
8267
8480
|
generateUUID.name = name;
|
|
8268
|
-
} catch (err) {}
|
|
8269
|
-
|
|
8481
|
+
} catch (err) {}
|
|
8270
8482
|
|
|
8483
|
+
// For CommonJS default export support
|
|
8271
8484
|
generateUUID.DNS = DNS;
|
|
8272
8485
|
generateUUID.URL = URL;
|
|
8273
8486
|
return generateUUID;
|
|
@@ -8286,34 +8499,33 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8286
8499
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8287
8500
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8288
8501
|
/* harmony export */ });
|
|
8289
|
-
/* harmony import */ var
|
|
8290
|
-
/* 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");
|
|
8291
8505
|
|
|
8292
8506
|
|
|
8293
8507
|
|
|
8294
8508
|
function v4(options, buf, offset) {
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
if (typeof options == 'string') {
|
|
8298
|
-
buf = options === 'binary' ? new Array(16) : null;
|
|
8299
|
-
options = null;
|
|
8509
|
+
if (_native_js__WEBPACK_IMPORTED_MODULE_0__["default"].randomUUID && !buf && !options) {
|
|
8510
|
+
return _native_js__WEBPACK_IMPORTED_MODULE_0__["default"].randomUUID();
|
|
8300
8511
|
}
|
|
8301
|
-
|
|
8302
8512
|
options = options || {};
|
|
8303
|
-
|
|
8513
|
+
const rnds = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_1__["default"])();
|
|
8304
8514
|
|
|
8515
|
+
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
8305
8516
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
8306
|
-
rnds[8] = rnds[8] & 0x3f | 0x80;
|
|
8517
|
+
rnds[8] = rnds[8] & 0x3f | 0x80;
|
|
8307
8518
|
|
|
8519
|
+
// Copy bytes to buffer, if provided
|
|
8308
8520
|
if (buf) {
|
|
8309
|
-
|
|
8310
|
-
|
|
8521
|
+
offset = offset || 0;
|
|
8522
|
+
for (let i = 0; i < 16; ++i) {
|
|
8523
|
+
buf[offset + i] = rnds[i];
|
|
8311
8524
|
}
|
|
8525
|
+
return buf;
|
|
8312
8526
|
}
|
|
8313
|
-
|
|
8314
|
-
return buf || (0,_bytesToUuid_js__WEBPACK_IMPORTED_MODULE_1__["default"])(rnds);
|
|
8527
|
+
return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_2__.unsafeStringify)(rnds);
|
|
8315
8528
|
}
|
|
8316
|
-
|
|
8317
8529
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v4);
|
|
8318
8530
|
|
|
8319
8531
|
/***/ }),
|
|
@@ -8338,6 +8550,296 @@ const v5 = (0,_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v5', 0x50, _sha1
|
|
|
8338
8550
|
|
|
8339
8551
|
/***/ }),
|
|
8340
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
|
+
|
|
8341
8843
|
/***/ "../../node_modules/async/asyncify.js":
|
|
8342
8844
|
/*!********************************************!*\
|
|
8343
8845
|
!*** ../../node_modules/async/asyncify.js ***!
|
|
@@ -29411,6 +29913,75 @@ module.exports = function isArrayish(obj) {
|
|
|
29411
29913
|
};
|
|
29412
29914
|
|
|
29413
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
|
+
|
|
29414
29985
|
/***/ }),
|
|
29415
29986
|
|
|
29416
29987
|
/***/ "../../node_modules/sprotty-protocol/lib/actions.js":
|
|
@@ -29807,12 +30378,13 @@ var MoveAction;
|
|
|
29807
30378
|
(function (MoveAction) {
|
|
29808
30379
|
MoveAction.KIND = 'move';
|
|
29809
30380
|
function create(moves, options = {}) {
|
|
29810
|
-
var _a, _b;
|
|
30381
|
+
var _a, _b, _c;
|
|
29811
30382
|
return {
|
|
29812
30383
|
kind: MoveAction.KIND,
|
|
29813
30384
|
moves,
|
|
29814
30385
|
animate: (_a = options.animate) !== null && _a !== void 0 ? _a : true,
|
|
29815
|
-
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
|
|
29816
30388
|
};
|
|
29817
30389
|
}
|
|
29818
30390
|
MoveAction.create = create;
|
|
@@ -30026,14 +30598,14 @@ class DiagramServer {
|
|
|
30026
30598
|
}
|
|
30027
30599
|
}
|
|
30028
30600
|
handleAction(action) {
|
|
30029
|
-
var _a;
|
|
30601
|
+
var _a, _b;
|
|
30030
30602
|
// Find a matching action handler in the registry
|
|
30031
30603
|
const handlers = (_a = this.actionHandlerRegistry) === null || _a === void 0 ? void 0 : _a.getHandler(action.kind);
|
|
30032
30604
|
if (handlers && handlers.length === 1) {
|
|
30033
|
-
return handlers[0](action, this.state, this);
|
|
30605
|
+
return (_b = handlers[0](action, this.state, this)) !== null && _b !== void 0 ? _b : Promise.resolve();
|
|
30034
30606
|
}
|
|
30035
30607
|
else if (handlers && handlers.length > 1) {
|
|
30036
|
-
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(); }));
|
|
30037
30609
|
}
|
|
30038
30610
|
// If no handler is registered, call one of the default handling methods
|
|
30039
30611
|
switch (action.kind) {
|
|
@@ -30203,6 +30775,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
30203
30775
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
30204
30776
|
};
|
|
30205
30777
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
30778
|
+
__exportStar(__webpack_require__(/*! ./action-handler */ "../../node_modules/sprotty-protocol/lib/action-handler.js"), exports);
|
|
30206
30779
|
__exportStar(__webpack_require__(/*! ./actions */ "../../node_modules/sprotty-protocol/lib/actions.js"), exports);
|
|
30207
30780
|
__exportStar(__webpack_require__(/*! ./diagram-server */ "../../node_modules/sprotty-protocol/lib/diagram-server.js"), exports);
|
|
30208
30781
|
__exportStar(__webpack_require__(/*! ./diagram-services */ "../../node_modules/sprotty-protocol/lib/diagram-services.js"), exports);
|
|
@@ -30225,7 +30798,7 @@ __exportStar(__webpack_require__(/*! ./utils/object */ "../../node_modules/sprot
|
|
|
30225
30798
|
"use strict";
|
|
30226
30799
|
|
|
30227
30800
|
/********************************************************************************
|
|
30228
|
-
* Copyright (c) 2021 TypeFox and others.
|
|
30801
|
+
* Copyright (c) 2021-2023 TypeFox and others.
|
|
30229
30802
|
*
|
|
30230
30803
|
* This program and the accompanying materials are made available under the
|
|
30231
30804
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -30250,6 +30823,7 @@ function isZoomable(element) {
|
|
|
30250
30823
|
return (0, object_1.hasOwnProperty)(element, 'zoom');
|
|
30251
30824
|
}
|
|
30252
30825
|
exports.isZoomable = isZoomable;
|
|
30826
|
+
;
|
|
30253
30827
|
|
|
30254
30828
|
|
|
30255
30829
|
/***/ }),
|
|
@@ -30459,6 +31033,16 @@ var Point;
|
|
|
30459
31033
|
return Math.max(Math.abs(b.x - a.x), Math.abs(b.y - a.y));
|
|
30460
31034
|
}
|
|
30461
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;
|
|
30462
31046
|
})(Point || (exports.Point = Point = {}));
|
|
30463
31047
|
/**
|
|
30464
31048
|
* Computes the angle in radians of the given point to the x-axis of the coordinate system.
|
|
@@ -30737,13 +31321,15 @@ exports.getSubType = getSubType;
|
|
|
30737
31321
|
* `SModelIndex` might be more effective.
|
|
30738
31322
|
*/
|
|
30739
31323
|
function findElement(parent, elementId) {
|
|
30740
|
-
if (parent.id === elementId)
|
|
31324
|
+
if (parent.id === elementId) {
|
|
30741
31325
|
return parent;
|
|
30742
|
-
|
|
31326
|
+
}
|
|
31327
|
+
if (parent.children) {
|
|
30743
31328
|
for (const child of parent.children) {
|
|
30744
31329
|
const result = findElement(child, elementId);
|
|
30745
|
-
if (result !== undefined)
|
|
31330
|
+
if (result !== undefined) {
|
|
30746
31331
|
return result;
|
|
31332
|
+
}
|
|
30747
31333
|
}
|
|
30748
31334
|
}
|
|
30749
31335
|
return undefined;
|
|
@@ -30772,6 +31358,7 @@ class SModelIndex {
|
|
|
30772
31358
|
this.id2parent.set(child.id, element);
|
|
30773
31359
|
}
|
|
30774
31360
|
}
|
|
31361
|
+
return this;
|
|
30775
31362
|
}
|
|
30776
31363
|
remove(element) {
|
|
30777
31364
|
this.id2element.delete(element.id);
|
|
@@ -30781,6 +31368,7 @@ class SModelIndex {
|
|
|
30781
31368
|
this.remove(child);
|
|
30782
31369
|
}
|
|
30783
31370
|
}
|
|
31371
|
+
return this;
|
|
30784
31372
|
}
|
|
30785
31373
|
contains(element) {
|
|
30786
31374
|
return this.id2element.has(element.id);
|
|
@@ -31856,6 +32444,277 @@ function v4(options, buf, offset) {
|
|
|
31856
32444
|
module.exports = v4;
|
|
31857
32445
|
|
|
31858
32446
|
|
|
32447
|
+
/***/ }),
|
|
32448
|
+
|
|
32449
|
+
/***/ "../../node_modules/vscode-jsonrpc/browser.js":
|
|
32450
|
+
/*!****************************************************!*\
|
|
32451
|
+
!*** ../../node_modules/vscode-jsonrpc/browser.js ***!
|
|
32452
|
+
\****************************************************/
|
|
32453
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
32454
|
+
|
|
32455
|
+
"use strict";
|
|
32456
|
+
/* --------------------------------------------------------------------------------------------
|
|
32457
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
32458
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
32459
|
+
* ----------------------------------------------------------------------------------------- */
|
|
32460
|
+
|
|
32461
|
+
|
|
32462
|
+
module.exports = __webpack_require__(/*! ./lib/browser/main */ "../../node_modules/vscode-jsonrpc/lib/browser/main.js");
|
|
32463
|
+
|
|
32464
|
+
/***/ }),
|
|
32465
|
+
|
|
32466
|
+
/***/ "../../node_modules/vscode-jsonrpc/lib/browser/main.js":
|
|
32467
|
+
/*!*************************************************************!*\
|
|
32468
|
+
!*** ../../node_modules/vscode-jsonrpc/lib/browser/main.js ***!
|
|
32469
|
+
\*************************************************************/
|
|
32470
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
32471
|
+
|
|
32472
|
+
"use strict";
|
|
32473
|
+
|
|
32474
|
+
/* --------------------------------------------------------------------------------------------
|
|
32475
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
32476
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
32477
|
+
* ------------------------------------------------------------------------------------------ */
|
|
32478
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
32479
|
+
if (k2 === undefined) k2 = k;
|
|
32480
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
32481
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
32482
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
32483
|
+
}
|
|
32484
|
+
Object.defineProperty(o, k2, desc);
|
|
32485
|
+
}) : (function(o, m, k, k2) {
|
|
32486
|
+
if (k2 === undefined) k2 = k;
|
|
32487
|
+
o[k2] = m[k];
|
|
32488
|
+
}));
|
|
32489
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
32490
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
32491
|
+
};
|
|
32492
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
32493
|
+
exports.createMessageConnection = exports.BrowserMessageWriter = exports.BrowserMessageReader = void 0;
|
|
32494
|
+
const ril_1 = __webpack_require__(/*! ./ril */ "../../node_modules/vscode-jsonrpc/lib/browser/ril.js");
|
|
32495
|
+
// Install the browser runtime abstract.
|
|
32496
|
+
ril_1.default.install();
|
|
32497
|
+
const api_1 = __webpack_require__(/*! ../common/api */ "../../node_modules/vscode-jsonrpc/lib/common/api.js");
|
|
32498
|
+
__exportStar(__webpack_require__(/*! ../common/api */ "../../node_modules/vscode-jsonrpc/lib/common/api.js"), exports);
|
|
32499
|
+
class BrowserMessageReader extends api_1.AbstractMessageReader {
|
|
32500
|
+
constructor(port) {
|
|
32501
|
+
super();
|
|
32502
|
+
this._onData = new api_1.Emitter();
|
|
32503
|
+
this._messageListener = (event) => {
|
|
32504
|
+
this._onData.fire(event.data);
|
|
32505
|
+
};
|
|
32506
|
+
port.addEventListener('error', (event) => this.fireError(event));
|
|
32507
|
+
port.onmessage = this._messageListener;
|
|
32508
|
+
}
|
|
32509
|
+
listen(callback) {
|
|
32510
|
+
return this._onData.event(callback);
|
|
32511
|
+
}
|
|
32512
|
+
}
|
|
32513
|
+
exports.BrowserMessageReader = BrowserMessageReader;
|
|
32514
|
+
class BrowserMessageWriter extends api_1.AbstractMessageWriter {
|
|
32515
|
+
constructor(port) {
|
|
32516
|
+
super();
|
|
32517
|
+
this.port = port;
|
|
32518
|
+
this.errorCount = 0;
|
|
32519
|
+
port.addEventListener('error', (event) => this.fireError(event));
|
|
32520
|
+
}
|
|
32521
|
+
write(msg) {
|
|
32522
|
+
try {
|
|
32523
|
+
this.port.postMessage(msg);
|
|
32524
|
+
return Promise.resolve();
|
|
32525
|
+
}
|
|
32526
|
+
catch (error) {
|
|
32527
|
+
this.handleError(error, msg);
|
|
32528
|
+
return Promise.reject(error);
|
|
32529
|
+
}
|
|
32530
|
+
}
|
|
32531
|
+
handleError(error, msg) {
|
|
32532
|
+
this.errorCount++;
|
|
32533
|
+
this.fireError(error, msg, this.errorCount);
|
|
32534
|
+
}
|
|
32535
|
+
end() {
|
|
32536
|
+
}
|
|
32537
|
+
}
|
|
32538
|
+
exports.BrowserMessageWriter = BrowserMessageWriter;
|
|
32539
|
+
function createMessageConnection(reader, writer, logger, options) {
|
|
32540
|
+
if (logger === undefined) {
|
|
32541
|
+
logger = api_1.NullLogger;
|
|
32542
|
+
}
|
|
32543
|
+
if (api_1.ConnectionStrategy.is(options)) {
|
|
32544
|
+
options = { connectionStrategy: options };
|
|
32545
|
+
}
|
|
32546
|
+
return (0, api_1.createMessageConnection)(reader, writer, logger, options);
|
|
32547
|
+
}
|
|
32548
|
+
exports.createMessageConnection = createMessageConnection;
|
|
32549
|
+
|
|
32550
|
+
|
|
32551
|
+
/***/ }),
|
|
32552
|
+
|
|
32553
|
+
/***/ "../../node_modules/vscode-jsonrpc/lib/browser/ril.js":
|
|
32554
|
+
/*!************************************************************!*\
|
|
32555
|
+
!*** ../../node_modules/vscode-jsonrpc/lib/browser/ril.js ***!
|
|
32556
|
+
\************************************************************/
|
|
32557
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
32558
|
+
|
|
32559
|
+
"use strict";
|
|
32560
|
+
|
|
32561
|
+
/* --------------------------------------------------------------------------------------------
|
|
32562
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
32563
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
32564
|
+
* ------------------------------------------------------------------------------------------ */
|
|
32565
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
32566
|
+
const api_1 = __webpack_require__(/*! ../common/api */ "../../node_modules/vscode-jsonrpc/lib/common/api.js");
|
|
32567
|
+
class MessageBuffer extends api_1.AbstractMessageBuffer {
|
|
32568
|
+
constructor(encoding = 'utf-8') {
|
|
32569
|
+
super(encoding);
|
|
32570
|
+
this.asciiDecoder = new TextDecoder('ascii');
|
|
32571
|
+
}
|
|
32572
|
+
emptyBuffer() {
|
|
32573
|
+
return MessageBuffer.emptyBuffer;
|
|
32574
|
+
}
|
|
32575
|
+
fromString(value, _encoding) {
|
|
32576
|
+
return (new TextEncoder()).encode(value);
|
|
32577
|
+
}
|
|
32578
|
+
toString(value, encoding) {
|
|
32579
|
+
if (encoding === 'ascii') {
|
|
32580
|
+
return this.asciiDecoder.decode(value);
|
|
32581
|
+
}
|
|
32582
|
+
else {
|
|
32583
|
+
return (new TextDecoder(encoding)).decode(value);
|
|
32584
|
+
}
|
|
32585
|
+
}
|
|
32586
|
+
asNative(buffer, length) {
|
|
32587
|
+
if (length === undefined) {
|
|
32588
|
+
return buffer;
|
|
32589
|
+
}
|
|
32590
|
+
else {
|
|
32591
|
+
return buffer.slice(0, length);
|
|
32592
|
+
}
|
|
32593
|
+
}
|
|
32594
|
+
allocNative(length) {
|
|
32595
|
+
return new Uint8Array(length);
|
|
32596
|
+
}
|
|
32597
|
+
}
|
|
32598
|
+
MessageBuffer.emptyBuffer = new Uint8Array(0);
|
|
32599
|
+
class ReadableStreamWrapper {
|
|
32600
|
+
constructor(socket) {
|
|
32601
|
+
this.socket = socket;
|
|
32602
|
+
this._onData = new api_1.Emitter();
|
|
32603
|
+
this._messageListener = (event) => {
|
|
32604
|
+
const blob = event.data;
|
|
32605
|
+
blob.arrayBuffer().then((buffer) => {
|
|
32606
|
+
this._onData.fire(new Uint8Array(buffer));
|
|
32607
|
+
}, () => {
|
|
32608
|
+
(0, api_1.RAL)().console.error(`Converting blob to array buffer failed.`);
|
|
32609
|
+
});
|
|
32610
|
+
};
|
|
32611
|
+
this.socket.addEventListener('message', this._messageListener);
|
|
32612
|
+
}
|
|
32613
|
+
onClose(listener) {
|
|
32614
|
+
this.socket.addEventListener('close', listener);
|
|
32615
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('close', listener));
|
|
32616
|
+
}
|
|
32617
|
+
onError(listener) {
|
|
32618
|
+
this.socket.addEventListener('error', listener);
|
|
32619
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('error', listener));
|
|
32620
|
+
}
|
|
32621
|
+
onEnd(listener) {
|
|
32622
|
+
this.socket.addEventListener('end', listener);
|
|
32623
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('end', listener));
|
|
32624
|
+
}
|
|
32625
|
+
onData(listener) {
|
|
32626
|
+
return this._onData.event(listener);
|
|
32627
|
+
}
|
|
32628
|
+
}
|
|
32629
|
+
class WritableStreamWrapper {
|
|
32630
|
+
constructor(socket) {
|
|
32631
|
+
this.socket = socket;
|
|
32632
|
+
}
|
|
32633
|
+
onClose(listener) {
|
|
32634
|
+
this.socket.addEventListener('close', listener);
|
|
32635
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('close', listener));
|
|
32636
|
+
}
|
|
32637
|
+
onError(listener) {
|
|
32638
|
+
this.socket.addEventListener('error', listener);
|
|
32639
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('error', listener));
|
|
32640
|
+
}
|
|
32641
|
+
onEnd(listener) {
|
|
32642
|
+
this.socket.addEventListener('end', listener);
|
|
32643
|
+
return api_1.Disposable.create(() => this.socket.removeEventListener('end', listener));
|
|
32644
|
+
}
|
|
32645
|
+
write(data, encoding) {
|
|
32646
|
+
if (typeof data === 'string') {
|
|
32647
|
+
if (encoding !== undefined && encoding !== 'utf-8') {
|
|
32648
|
+
throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${encoding}`);
|
|
32649
|
+
}
|
|
32650
|
+
this.socket.send(data);
|
|
32651
|
+
}
|
|
32652
|
+
else {
|
|
32653
|
+
this.socket.send(data);
|
|
32654
|
+
}
|
|
32655
|
+
return Promise.resolve();
|
|
32656
|
+
}
|
|
32657
|
+
end() {
|
|
32658
|
+
this.socket.close();
|
|
32659
|
+
}
|
|
32660
|
+
}
|
|
32661
|
+
const _textEncoder = new TextEncoder();
|
|
32662
|
+
const _ril = Object.freeze({
|
|
32663
|
+
messageBuffer: Object.freeze({
|
|
32664
|
+
create: (encoding) => new MessageBuffer(encoding)
|
|
32665
|
+
}),
|
|
32666
|
+
applicationJson: Object.freeze({
|
|
32667
|
+
encoder: Object.freeze({
|
|
32668
|
+
name: 'application/json',
|
|
32669
|
+
encode: (msg, options) => {
|
|
32670
|
+
if (options.charset !== 'utf-8') {
|
|
32671
|
+
throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${options.charset}`);
|
|
32672
|
+
}
|
|
32673
|
+
return Promise.resolve(_textEncoder.encode(JSON.stringify(msg, undefined, 0)));
|
|
32674
|
+
}
|
|
32675
|
+
}),
|
|
32676
|
+
decoder: Object.freeze({
|
|
32677
|
+
name: 'application/json',
|
|
32678
|
+
decode: (buffer, options) => {
|
|
32679
|
+
if (!(buffer instanceof Uint8Array)) {
|
|
32680
|
+
throw new Error(`In a Browser environments only Uint8Arrays are supported.`);
|
|
32681
|
+
}
|
|
32682
|
+
return Promise.resolve(JSON.parse(new TextDecoder(options.charset).decode(buffer)));
|
|
32683
|
+
}
|
|
32684
|
+
})
|
|
32685
|
+
}),
|
|
32686
|
+
stream: Object.freeze({
|
|
32687
|
+
asReadableStream: (socket) => new ReadableStreamWrapper(socket),
|
|
32688
|
+
asWritableStream: (socket) => new WritableStreamWrapper(socket)
|
|
32689
|
+
}),
|
|
32690
|
+
console: console,
|
|
32691
|
+
timer: Object.freeze({
|
|
32692
|
+
setTimeout(callback, ms, ...args) {
|
|
32693
|
+
const handle = setTimeout(callback, ms, ...args);
|
|
32694
|
+
return { dispose: () => clearTimeout(handle) };
|
|
32695
|
+
},
|
|
32696
|
+
setImmediate(callback, ...args) {
|
|
32697
|
+
const handle = setTimeout(callback, 0, ...args);
|
|
32698
|
+
return { dispose: () => clearTimeout(handle) };
|
|
32699
|
+
},
|
|
32700
|
+
setInterval(callback, ms, ...args) {
|
|
32701
|
+
const handle = setInterval(callback, ms, ...args);
|
|
32702
|
+
return { dispose: () => clearInterval(handle) };
|
|
32703
|
+
},
|
|
32704
|
+
})
|
|
32705
|
+
});
|
|
32706
|
+
function RIL() {
|
|
32707
|
+
return _ril;
|
|
32708
|
+
}
|
|
32709
|
+
(function (RIL) {
|
|
32710
|
+
function install() {
|
|
32711
|
+
api_1.RAL.install(_ril);
|
|
32712
|
+
}
|
|
32713
|
+
RIL.install = install;
|
|
32714
|
+
})(RIL || (RIL = {}));
|
|
32715
|
+
exports["default"] = RIL;
|
|
32716
|
+
|
|
32717
|
+
|
|
31859
32718
|
/***/ }),
|
|
31860
32719
|
|
|
31861
32720
|
/***/ "../../node_modules/vscode-jsonrpc/lib/common/api.js":
|
|
@@ -44508,9 +45367,9 @@ exports.GHtmlRootBuilder = GHtmlRootBuilder;
|
|
|
44508
45367
|
"use strict";
|
|
44509
45368
|
|
|
44510
45369
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
44511
|
-
exports.GIssueMarkerBuilder = exports.GIssueMarker =
|
|
45370
|
+
exports.GIssueMarkerBuilder = exports.GIssueMarker = void 0;
|
|
44512
45371
|
/********************************************************************************
|
|
44513
|
-
* Copyright (c) 2022 STMicroelectronics and others.
|
|
45372
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
44514
45373
|
*
|
|
44515
45374
|
* This program and the accompanying materials are made available under the
|
|
44516
45375
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -44526,9 +45385,6 @@ exports.GIssueMarkerBuilder = exports.GIssueMarker = exports.GIssue = void 0;
|
|
|
44526
45385
|
********************************************************************************/
|
|
44527
45386
|
const protocol_1 = __webpack_require__(/*! @eclipse-glsp/protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/index.js");
|
|
44528
45387
|
const gshape_element_1 = __webpack_require__(/*! ./gshape-element */ "../../packages/graph/lib/gshape-element.js");
|
|
44529
|
-
class GIssue {
|
|
44530
|
-
}
|
|
44531
|
-
exports.GIssue = GIssue;
|
|
44532
45388
|
class GIssueMarker extends gshape_element_1.GShapeElement {
|
|
44533
45389
|
constructor() {
|
|
44534
45390
|
super(...arguments);
|
|
@@ -46001,7 +46857,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
46001
46857
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
46002
46858
|
exports.respond = exports.DefaultActionDispatcher = exports.ActionDispatcher = void 0;
|
|
46003
46859
|
/********************************************************************************
|
|
46004
|
-
* Copyright (c) 2022-
|
|
46860
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
46005
46861
|
*
|
|
46006
46862
|
* This program and the accompanying materials are made available under the
|
|
46007
46863
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -46048,7 +46904,7 @@ let DefaultActionDispatcher = class DefaultActionDispatcher {
|
|
|
46048
46904
|
const response = await this.executeHandler(handler, action);
|
|
46049
46905
|
responses.push(...response);
|
|
46050
46906
|
}
|
|
46051
|
-
if (protocol_1.UpdateModelAction.is(action)
|
|
46907
|
+
if (this.postUpdateQueue.length > 0 && (protocol_1.UpdateModelAction.is(action) || protocol_1.SetModelAction.is(action))) {
|
|
46052
46908
|
responses.push(...this.postUpdateQueue);
|
|
46053
46909
|
this.postUpdateQueue = [];
|
|
46054
46910
|
}
|
|
@@ -49127,7 +49983,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
49127
49983
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
49128
49984
|
exports.RequestModelActionHandler = void 0;
|
|
49129
49985
|
/********************************************************************************
|
|
49130
|
-
* Copyright (c) 2022-
|
|
49986
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
49131
49987
|
*
|
|
49132
49988
|
* This program and the accompanying materials are made available under the
|
|
49133
49989
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -54276,6 +55132,17 @@ module.exports = require("net");
|
|
|
54276
55132
|
|
|
54277
55133
|
/***/ }),
|
|
54278
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
|
+
|
|
54279
55146
|
/***/ "os":
|
|
54280
55147
|
/*!*********************!*\
|
|
54281
55148
|
!*** external "os" ***!
|