@eclipse-glsp-examples/workflow-server-bundled-web 2.7.0-next.7 → 2.7.0-next.9
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-webworker.js +1492 -1503
- package/wf-glsp-server-webworker.js.map +1 -1
|
@@ -81,7 +81,7 @@ exports.WorkflowMockModelStorage = WorkflowMockModelStorage = __decorate([
|
|
|
81
81
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
82
82
|
exports.CategoryNodeBuilder = exports.Category = exports.WeightedEdgeBuilder = exports.WeightedEdge = exports.TaskNodeBuilder = exports.TaskNode = exports.ActivityNodeBuilder = exports.ActivityNode = void 0;
|
|
83
83
|
/********************************************************************************
|
|
84
|
-
* Copyright (c) 2022-
|
|
84
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
85
85
|
*
|
|
86
86
|
* This program and the accompanying materials are made available under the
|
|
87
87
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -143,7 +143,7 @@ class TaskNodeBuilder extends server_1.GNodeBuilder {
|
|
|
143
143
|
createCompartmentHeader() {
|
|
144
144
|
return new server_1.GLabelBuilder(server_1.GLabel)
|
|
145
145
|
.type(model_types_1.ModelTypes.LABEL_HEADING)
|
|
146
|
-
.id(this.proxy.id + '
|
|
146
|
+
.id(this.proxy.id + '_label')
|
|
147
147
|
.text(this.proxy.name)
|
|
148
148
|
.build();
|
|
149
149
|
}
|
|
@@ -200,7 +200,7 @@ class CategoryNodeBuilder extends ActivityNodeBuilder {
|
|
|
200
200
|
createCompartmentHeader() {
|
|
201
201
|
return new server_1.GLabelBuilder(server_1.GLabel)
|
|
202
202
|
.type(model_types_1.ModelTypes.LABEL_HEADING)
|
|
203
|
-
.id(this.proxy.id + '
|
|
203
|
+
.id(this.proxy.id + '_label')
|
|
204
204
|
.text(this.proxy.name)
|
|
205
205
|
.build();
|
|
206
206
|
}
|
|
@@ -2112,7 +2112,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
2112
2112
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2113
2113
|
exports.WorkflowDiagramModule = exports.WorkflowServerModule = void 0;
|
|
2114
2114
|
/********************************************************************************
|
|
2115
|
-
* Copyright (c) 2022-
|
|
2115
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
2116
2116
|
*
|
|
2117
2117
|
* This program and the accompanying materials are made available under the
|
|
2118
2118
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -2153,8 +2153,8 @@ const workflow_edge_creation_checker_1 = __webpack_require__(/*! ./workflow-edge
|
|
|
2153
2153
|
const workflow_glsp_server_1 = __webpack_require__(/*! ./workflow-glsp-server */ "./lib/common/workflow-glsp-server.js");
|
|
2154
2154
|
const workflow_popup_factory_1 = __webpack_require__(/*! ./workflow-popup-factory */ "./lib/common/workflow-popup-factory.js");
|
|
2155
2155
|
let WorkflowServerModule = class WorkflowServerModule extends server_1.ServerModule {
|
|
2156
|
-
|
|
2157
|
-
|
|
2156
|
+
configureGLSPServerInitializers(binding) {
|
|
2157
|
+
binding.add(workflow_glsp_server_1.CustomArgsInitContribution);
|
|
2158
2158
|
}
|
|
2159
2159
|
};
|
|
2160
2160
|
exports.WorkflowServerModule = WorkflowServerModule;
|
|
@@ -2283,9 +2283,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
2283
2283
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2284
2284
|
};
|
|
2285
2285
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2286
|
-
exports.
|
|
2286
|
+
exports.CustomArgsInitContribution = void 0;
|
|
2287
2287
|
/********************************************************************************
|
|
2288
|
-
* Copyright (c) 2022-
|
|
2288
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
2289
2289
|
*
|
|
2290
2290
|
* This program and the accompanying materials are made available under the
|
|
2291
2291
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -2301,30 +2301,29 @@ exports.WorkflowGLSPServer = void 0;
|
|
|
2301
2301
|
********************************************************************************/
|
|
2302
2302
|
const server_1 = __webpack_require__(/*! @eclipse-glsp/server */ "../../packages/server/lib/browser/index.js");
|
|
2303
2303
|
const inversify_1 = __webpack_require__(/*! inversify */ "../../node_modules/inversify/lib/cjs/index.js");
|
|
2304
|
-
let
|
|
2304
|
+
let CustomArgsInitContribution = class CustomArgsInitContribution {
|
|
2305
2305
|
constructor() {
|
|
2306
|
-
super(...arguments);
|
|
2307
2306
|
this.MESSAGE_KEY = 'message';
|
|
2308
2307
|
this.TIMESTAMP_KEY = 'timestamp';
|
|
2309
2308
|
}
|
|
2310
|
-
|
|
2311
|
-
if (!args) {
|
|
2309
|
+
initializeServer(server, params, result) {
|
|
2310
|
+
if (!params.args) {
|
|
2312
2311
|
return result;
|
|
2313
2312
|
}
|
|
2314
|
-
const timestamp = server_1.ArgsUtil.get(args, this.TIMESTAMP_KEY);
|
|
2315
|
-
const message = server_1.ArgsUtil.get(args, this.MESSAGE_KEY);
|
|
2316
|
-
this.logger.
|
|
2313
|
+
const timestamp = server_1.ArgsUtil.get(params.args, this.TIMESTAMP_KEY);
|
|
2314
|
+
const message = server_1.ArgsUtil.get(params.args, this.MESSAGE_KEY);
|
|
2315
|
+
this.logger.info(`${timestamp}: ${message}`);
|
|
2317
2316
|
return result;
|
|
2318
2317
|
}
|
|
2319
2318
|
};
|
|
2320
|
-
exports.
|
|
2319
|
+
exports.CustomArgsInitContribution = CustomArgsInitContribution;
|
|
2321
2320
|
__decorate([
|
|
2322
2321
|
(0, inversify_1.inject)(server_1.Logger),
|
|
2323
2322
|
__metadata("design:type", server_1.Logger)
|
|
2324
|
-
],
|
|
2325
|
-
exports.
|
|
2323
|
+
], CustomArgsInitContribution.prototype, "logger", void 0);
|
|
2324
|
+
exports.CustomArgsInitContribution = CustomArgsInitContribution = __decorate([
|
|
2326
2325
|
(0, inversify_1.injectable)()
|
|
2327
|
-
],
|
|
2326
|
+
], CustomArgsInitContribution);
|
|
2328
2327
|
|
|
2329
2328
|
|
|
2330
2329
|
/***/ }),
|
|
@@ -3912,7 +3911,7 @@ var TriggerLayoutAction;
|
|
|
3912
3911
|
"use strict";
|
|
3913
3912
|
|
|
3914
3913
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3915
|
-
exports.ExportSvgAction = exports.RequestExportSvgAction = exports.SetDirtyStateAction = exports.SaveModelAction = void 0;
|
|
3914
|
+
exports.ExportResultAction = exports.RequestExportAction = exports.ExportSvgAction = exports.RequestExportSvgAction = exports.SetDirtyStateAction = exports.SaveModelAction = void 0;
|
|
3916
3915
|
const type_util_1 = __webpack_require__(/*! ../utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
3917
3916
|
const base_protocol_1 = __webpack_require__(/*! ./base-protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/base-protocol.js");
|
|
3918
3917
|
var SaveModelAction;
|
|
@@ -3979,6 +3978,45 @@ var ExportSvgAction;
|
|
|
3979
3978
|
}
|
|
3980
3979
|
ExportSvgAction.create = create;
|
|
3981
3980
|
})(ExportSvgAction || (exports.ExportSvgAction = ExportSvgAction = {}));
|
|
3981
|
+
var RequestExportAction;
|
|
3982
|
+
(function (RequestExportAction) {
|
|
3983
|
+
RequestExportAction.KIND = 'requestExport';
|
|
3984
|
+
function is(object) {
|
|
3985
|
+
return base_protocol_1.RequestAction.hasKind(object, RequestExportAction.KIND) && (0, type_util_1.hasStringProp)(object, 'format');
|
|
3986
|
+
}
|
|
3987
|
+
RequestExportAction.is = is;
|
|
3988
|
+
function create(format, options = {}) {
|
|
3989
|
+
return {
|
|
3990
|
+
kind: RequestExportAction.KIND,
|
|
3991
|
+
format,
|
|
3992
|
+
requestId: '',
|
|
3993
|
+
...options
|
|
3994
|
+
};
|
|
3995
|
+
}
|
|
3996
|
+
RequestExportAction.create = create;
|
|
3997
|
+
})(RequestExportAction || (exports.RequestExportAction = RequestExportAction = {}));
|
|
3998
|
+
var ExportResultAction;
|
|
3999
|
+
(function (ExportResultAction) {
|
|
4000
|
+
ExportResultAction.KIND = 'exportResult';
|
|
4001
|
+
function is(object) {
|
|
4002
|
+
return (base_protocol_1.Action.hasKind(object, ExportResultAction.KIND) &&
|
|
4003
|
+
(0, type_util_1.hasStringProp)(object, 'format') &&
|
|
4004
|
+
(0, type_util_1.hasStringProp)(object, 'data') &&
|
|
4005
|
+
(0, type_util_1.hasStringProp)(object, 'mimeType') &&
|
|
4006
|
+
(0, type_util_1.hasStringProp)(object, 'encoding'));
|
|
4007
|
+
}
|
|
4008
|
+
ExportResultAction.is = is;
|
|
4009
|
+
function create(format, data, options) {
|
|
4010
|
+
return {
|
|
4011
|
+
kind: ExportResultAction.KIND,
|
|
4012
|
+
format,
|
|
4013
|
+
data,
|
|
4014
|
+
responseId: '',
|
|
4015
|
+
...options
|
|
4016
|
+
};
|
|
4017
|
+
}
|
|
4018
|
+
ExportResultAction.create = create;
|
|
4019
|
+
})(ExportResultAction || (exports.ExportResultAction = ExportResultAction = {}));
|
|
3982
4020
|
|
|
3983
4021
|
|
|
3984
4022
|
/***/ }),
|
|
@@ -4244,7 +4282,7 @@ var RedoAction;
|
|
|
4244
4282
|
"use strict";
|
|
4245
4283
|
|
|
4246
4284
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4247
|
-
exports.MoveViewportAction = exports.FitToScreenAction = exports.CenterAction = void 0;
|
|
4285
|
+
exports.MoveViewportAction = exports.OriginViewportAction = exports.FitToScreenAction = exports.CenterAction = void 0;
|
|
4248
4286
|
const type_util_1 = __webpack_require__(/*! ../utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
4249
4287
|
const base_protocol_1 = __webpack_require__(/*! ./base-protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/base-protocol.js");
|
|
4250
4288
|
var CenterAction;
|
|
@@ -4282,6 +4320,22 @@ var FitToScreenAction;
|
|
|
4282
4320
|
}
|
|
4283
4321
|
FitToScreenAction.create = create;
|
|
4284
4322
|
})(FitToScreenAction || (exports.FitToScreenAction = FitToScreenAction = {}));
|
|
4323
|
+
var OriginViewportAction;
|
|
4324
|
+
(function (OriginViewportAction) {
|
|
4325
|
+
OriginViewportAction.KIND = 'originViewport';
|
|
4326
|
+
function is(object) {
|
|
4327
|
+
return base_protocol_1.Action.hasKind(object, OriginViewportAction.KIND) && (0, type_util_1.hasBooleanProp)(object, 'animate');
|
|
4328
|
+
}
|
|
4329
|
+
OriginViewportAction.is = is;
|
|
4330
|
+
function create(options = {}) {
|
|
4331
|
+
return {
|
|
4332
|
+
kind: OriginViewportAction.KIND,
|
|
4333
|
+
animate: true,
|
|
4334
|
+
...options
|
|
4335
|
+
};
|
|
4336
|
+
}
|
|
4337
|
+
OriginViewportAction.create = create;
|
|
4338
|
+
})(OriginViewportAction || (exports.OriginViewportAction = OriginViewportAction = {}));
|
|
4285
4339
|
var MoveViewportAction;
|
|
4286
4340
|
(function (MoveViewportAction) {
|
|
4287
4341
|
MoveViewportAction.KIND = 'moveViewport';
|
|
@@ -4307,7 +4361,7 @@ var MoveViewportAction;
|
|
|
4307
4361
|
"use strict";
|
|
4308
4362
|
|
|
4309
4363
|
/********************************************************************************
|
|
4310
|
-
* Copyright (c) 2023-
|
|
4364
|
+
* Copyright (c) 2023-2026 EclipseSource and others.
|
|
4311
4365
|
*
|
|
4312
4366
|
* This program and the accompanying materials are made available under the
|
|
4313
4367
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -4439,7 +4493,8 @@ class BaseGLSPClient {
|
|
|
4439
4493
|
disposeClientSession(params) {
|
|
4440
4494
|
return this.checkedServer.disposeClientSession(params);
|
|
4441
4495
|
}
|
|
4442
|
-
shutdownServer() {
|
|
4496
|
+
async shutdownServer() {
|
|
4497
|
+
// Fire-and-forget at the proxy boundary; subclasses with a flushable send override.
|
|
4443
4498
|
this.checkedServer.shutdown();
|
|
4444
4499
|
}
|
|
4445
4500
|
async stop() {
|
|
@@ -4524,7 +4579,7 @@ exports.GLSPClient = exports.ClientState = exports.ApplicationIdProvider = void
|
|
|
4524
4579
|
*
|
|
4525
4580
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
4526
4581
|
********************************************************************************/
|
|
4527
|
-
const uuid_1 = __webpack_require__(/*! uuid */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/
|
|
4582
|
+
const uuid_1 = __webpack_require__(/*! uuid */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/index.js");
|
|
4528
4583
|
const type_util_1 = __webpack_require__(/*! ../utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
4529
4584
|
class ApplicationIdProvider {
|
|
4530
4585
|
static get() {
|
|
@@ -4587,7 +4642,7 @@ var GLSPClient;
|
|
|
4587
4642
|
"use strict";
|
|
4588
4643
|
|
|
4589
4644
|
/********************************************************************************
|
|
4590
|
-
* Copyright (c) 2022-
|
|
4645
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
4591
4646
|
*
|
|
4592
4647
|
* This program and the accompanying materials are made available under the
|
|
4593
4648
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -4602,9 +4657,10 @@ var GLSPClient;
|
|
|
4602
4657
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
4603
4658
|
********************************************************************************/
|
|
4604
4659
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4605
|
-
exports.GLSPClientProxy = exports.GLSPServerListener = exports.GLSPServer = void 0;
|
|
4660
|
+
exports.GLSPClientProxy = exports.GLSPServerInitializer = exports.GLSPServerListener = exports.GLSPServer = void 0;
|
|
4606
4661
|
exports.GLSPServer = Symbol('GLSPServer');
|
|
4607
4662
|
exports.GLSPServerListener = Symbol('GLSPServerListener');
|
|
4663
|
+
exports.GLSPServerInitializer = Symbol('GLSPServerInitializer');
|
|
4608
4664
|
exports.GLSPClientProxy = Symbol('GLSPClientProxy');
|
|
4609
4665
|
|
|
4610
4666
|
|
|
@@ -4621,7 +4677,7 @@ exports.GLSPClientProxy = Symbol('GLSPClientProxy');
|
|
|
4621
4677
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4622
4678
|
exports.JsonrpcClientProxy = exports.BaseJsonrpcGLSPClient = void 0;
|
|
4623
4679
|
/********************************************************************************
|
|
4624
|
-
* Copyright (c) 2019-
|
|
4680
|
+
* Copyright (c) 2019-2026 EclipseSource and others.
|
|
4625
4681
|
*
|
|
4626
4682
|
* This program and the accompanying materials are made available under the
|
|
4627
4683
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -4726,8 +4782,9 @@ class BaseJsonrpcGLSPClient {
|
|
|
4726
4782
|
sendActionMessage(message) {
|
|
4727
4783
|
this.checkedConnection.sendNotification(glsp_jsonrpc_client_1.JsonrpcGLSPClient.ActionMessageNotification, message);
|
|
4728
4784
|
}
|
|
4729
|
-
shutdownServer() {
|
|
4730
|
-
|
|
4785
|
+
async shutdownServer() {
|
|
4786
|
+
// Await the send so callers can dispose the connection without racing the wire flush.
|
|
4787
|
+
await this.checkedConnection.sendNotification(glsp_jsonrpc_client_1.JsonrpcGLSPClient.ShutdownNotification);
|
|
4731
4788
|
}
|
|
4732
4789
|
stop() {
|
|
4733
4790
|
if (!this.connectionPromise) {
|
|
@@ -5215,6 +5272,91 @@ class GLSPWebSocketProvider {
|
|
|
5215
5272
|
exports.GLSPWebSocketProvider = GLSPWebSocketProvider;
|
|
5216
5273
|
|
|
5217
5274
|
|
|
5275
|
+
/***/ }),
|
|
5276
|
+
|
|
5277
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/mcp.js":
|
|
5278
|
+
/*!***********************************************************************************!*\
|
|
5279
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/mcp.js ***!
|
|
5280
|
+
\***********************************************************************************/
|
|
5281
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5282
|
+
|
|
5283
|
+
"use strict";
|
|
5284
|
+
|
|
5285
|
+
/********************************************************************************
|
|
5286
|
+
* Copyright (c) 2025-2026 EclipseSource and others.
|
|
5287
|
+
*
|
|
5288
|
+
* This program and the accompanying materials are made available under the
|
|
5289
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
5290
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
5291
|
+
*
|
|
5292
|
+
* This Source Code may also be made available under the following Secondary
|
|
5293
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
5294
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
5295
|
+
* with the GNU Classpath Exception which is available at
|
|
5296
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
5297
|
+
*
|
|
5298
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
5299
|
+
********************************************************************************/
|
|
5300
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5301
|
+
exports.McpInitializeResult = exports.McpServerResult = exports.McpInitializeParameters = void 0;
|
|
5302
|
+
const type_util_1 = __webpack_require__(/*! ../utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
5303
|
+
var McpInitializeParameters;
|
|
5304
|
+
(function (McpInitializeParameters) {
|
|
5305
|
+
/**
|
|
5306
|
+
* Type guard that also doubles as the **opt-in check**: returns `true` iff `params.mcpServer`
|
|
5307
|
+
* is defined (regardless of its content). Server-side code uses this to decide whether to
|
|
5308
|
+
* start the MCP HTTP server at all. See {@link McpInitializeParameters.mcpServer} for the
|
|
5309
|
+
* opt-in semantics.
|
|
5310
|
+
*/
|
|
5311
|
+
function is(params) {
|
|
5312
|
+
return type_util_1.AnyObject.is(params) && (0, type_util_1.hasObjectProp)(params, 'mcpServer');
|
|
5313
|
+
}
|
|
5314
|
+
McpInitializeParameters.is = is;
|
|
5315
|
+
/**
|
|
5316
|
+
* Returns the {@link McpServerConfiguration} from the given initialize parameters, or
|
|
5317
|
+
* `undefined` if MCP is not opted in (i.e., `mcpServer` is missing). A return value of `{}`
|
|
5318
|
+
* (an empty object) means "MCP is enabled, use all defaults" — distinct from `undefined`
|
|
5319
|
+
* which means "MCP is not enabled."
|
|
5320
|
+
*/
|
|
5321
|
+
function getServerConfig(params) {
|
|
5322
|
+
return is(params) ? params.mcpServer : undefined;
|
|
5323
|
+
}
|
|
5324
|
+
McpInitializeParameters.getServerConfig = getServerConfig;
|
|
5325
|
+
})(McpInitializeParameters || (exports.McpInitializeParameters = McpInitializeParameters = {}));
|
|
5326
|
+
var McpServerResult;
|
|
5327
|
+
(function (McpServerResult) {
|
|
5328
|
+
/** True when the candidate is shaped like {@link McpServerResult}. */
|
|
5329
|
+
function is(candidate) {
|
|
5330
|
+
return type_util_1.AnyObject.is(candidate) && (0, type_util_1.hasStringProp)(candidate, 'name') && (0, type_util_1.hasStringProp)(candidate, 'url');
|
|
5331
|
+
}
|
|
5332
|
+
McpServerResult.is = is;
|
|
5333
|
+
})(McpServerResult || (exports.McpServerResult = McpServerResult = {}));
|
|
5334
|
+
var McpInitializeResult;
|
|
5335
|
+
(function (McpInitializeResult) {
|
|
5336
|
+
/** Narrows to `McpInitializeResult` (i.e., asserts `mcpServer` is populated and well-shaped). */
|
|
5337
|
+
function is(result) {
|
|
5338
|
+
return type_util_1.AnyObject.is(result) && (0, type_util_1.hasObjectProp)(result, 'mcpServer') && McpServerResult.is(result.mcpServer);
|
|
5339
|
+
}
|
|
5340
|
+
McpInitializeResult.is = is;
|
|
5341
|
+
/** Returns the {@link McpServerResult} from the given initialize result, or `undefined` if MCP is not announced. */
|
|
5342
|
+
function getServer(result) {
|
|
5343
|
+
return is(result) ? result.mcpServer : undefined;
|
|
5344
|
+
}
|
|
5345
|
+
McpInitializeResult.getServer = getServer;
|
|
5346
|
+
/**
|
|
5347
|
+
* Attaches an {@link McpServerResult} announcement to a base {@link InitializeResult},
|
|
5348
|
+
* returning the augmented {@link McpInitializeResult}. Server-side handshake code uses this
|
|
5349
|
+
* instead of an in-place cast to keep the mutation typed.
|
|
5350
|
+
*/
|
|
5351
|
+
function attachServer(result, server) {
|
|
5352
|
+
const augmented = result;
|
|
5353
|
+
augmented.mcpServer = server;
|
|
5354
|
+
return augmented;
|
|
5355
|
+
}
|
|
5356
|
+
McpInitializeResult.attachServer = attachServer;
|
|
5357
|
+
})(McpInitializeResult || (exports.McpInitializeResult = McpInitializeResult = {}));
|
|
5358
|
+
|
|
5359
|
+
|
|
5218
5360
|
/***/ }),
|
|
5219
5361
|
|
|
5220
5362
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/types.js":
|
|
@@ -5723,7 +5865,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
5723
5865
|
};
|
|
5724
5866
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5725
5867
|
/********************************************************************************
|
|
5726
|
-
* Copyright (c) 2024-
|
|
5868
|
+
* Copyright (c) 2024-2026 EclipseSource and others.
|
|
5727
5869
|
*
|
|
5728
5870
|
* This program and the accompanying materials are made available under the
|
|
5729
5871
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -5767,6 +5909,7 @@ __exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/glsp-jsonr
|
|
|
5767
5909
|
__exportStar(__webpack_require__(/*! ./client-server-protocol/jsonrpc/websocket-connection */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/jsonrpc/websocket-connection.js"), exports);
|
|
5768
5910
|
__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);
|
|
5769
5911
|
__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);
|
|
5912
|
+
__exportStar(__webpack_require__(/*! ./client-server-protocol/mcp */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/mcp.js"), exports);
|
|
5770
5913
|
__exportStar(__webpack_require__(/*! ./client-server-protocol/types */ "../../node_modules/@eclipse-glsp/protocol/lib/client-server-protocol/types.js"), exports);
|
|
5771
5914
|
__exportStar(__webpack_require__(/*! ./model/default-types */ "../../node_modules/@eclipse-glsp/protocol/lib/model/default-types.js"), exports);
|
|
5772
5915
|
__exportStar(__webpack_require__(/*! ./model/model-schema */ "../../node_modules/@eclipse-glsp/protocol/lib/model/model-schema.js"), exports);
|
|
@@ -5778,6 +5921,7 @@ __exportStar(__webpack_require__(/*! ./sprotty-geometry-point */ "../../node_mod
|
|
|
5778
5921
|
__exportStar(__webpack_require__(/*! ./utils/array-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/array-util.js"), exports);
|
|
5779
5922
|
__exportStar(__webpack_require__(/*! ./utils/disposable */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/disposable.js"), exports);
|
|
5780
5923
|
__exportStar(__webpack_require__(/*! ./utils/event */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/event.js"), exports);
|
|
5924
|
+
__exportStar(__webpack_require__(/*! ./utils/function-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/function-util.js"), exports);
|
|
5781
5925
|
__exportStar(__webpack_require__(/*! ./utils/geometry-movement */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-movement.js"), exports);
|
|
5782
5926
|
__exportStar(__webpack_require__(/*! ./utils/geometry-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-util.js"), exports);
|
|
5783
5927
|
__exportStar(__webpack_require__(/*! ./utils/geometry-vector */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-vector.js"), exports);
|
|
@@ -6221,7 +6365,7 @@ geometry_1.Point.isAxisAligned = (a, b, eps = math_util_1.ALMOST_EQUAL_EPSILON)
|
|
|
6221
6365
|
"use strict";
|
|
6222
6366
|
|
|
6223
6367
|
/********************************************************************************
|
|
6224
|
-
* Copyright (c) 2019-
|
|
6368
|
+
* Copyright (c) 2019-2026 EclipseSource and others.
|
|
6225
6369
|
*
|
|
6226
6370
|
* This program and the accompanying materials are made available under the
|
|
6227
6371
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -6250,6 +6394,7 @@ exports.isStringArray = isStringArray;
|
|
|
6250
6394
|
exports.isArrayMatching = isArrayMatching;
|
|
6251
6395
|
exports.partition = partition;
|
|
6252
6396
|
exports.arrayOf = arrayOf;
|
|
6397
|
+
exports.groupBy = groupBy;
|
|
6253
6398
|
function first(array, n) {
|
|
6254
6399
|
if (n) {
|
|
6255
6400
|
return array.filter((_, index) => index < n);
|
|
@@ -6392,6 +6537,23 @@ function partition(source, matchGuard) {
|
|
|
6392
6537
|
function arrayOf(...values) {
|
|
6393
6538
|
return values.filter(element => element !== undefined);
|
|
6394
6539
|
}
|
|
6540
|
+
function groupBy(array, keyFn, sorted) {
|
|
6541
|
+
const grouped = new Map();
|
|
6542
|
+
for (const item of array) {
|
|
6543
|
+
const key = keyFn(item);
|
|
6544
|
+
const values = grouped.get(key);
|
|
6545
|
+
if (values) {
|
|
6546
|
+
values.push(item);
|
|
6547
|
+
}
|
|
6548
|
+
else {
|
|
6549
|
+
grouped.set(key, [item]);
|
|
6550
|
+
}
|
|
6551
|
+
}
|
|
6552
|
+
if (sorted) {
|
|
6553
|
+
return new Map([...grouped.entries()].sort());
|
|
6554
|
+
}
|
|
6555
|
+
return grouped;
|
|
6556
|
+
}
|
|
6395
6557
|
|
|
6396
6558
|
|
|
6397
6559
|
/***/ }),
|
|
@@ -6575,6 +6737,77 @@ class Emitter extends jsonrpc.Emitter {
|
|
|
6575
6737
|
exports.Emitter = Emitter;
|
|
6576
6738
|
|
|
6577
6739
|
|
|
6740
|
+
/***/ }),
|
|
6741
|
+
|
|
6742
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/utils/function-util.js":
|
|
6743
|
+
/*!****************************************************************************!*\
|
|
6744
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/lib/utils/function-util.js ***!
|
|
6745
|
+
\****************************************************************************/
|
|
6746
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
6747
|
+
|
|
6748
|
+
"use strict";
|
|
6749
|
+
|
|
6750
|
+
/********************************************************************************
|
|
6751
|
+
* Copyright (c) 2026 EclipseSource and others.
|
|
6752
|
+
*
|
|
6753
|
+
* This program and the accompanying materials are made available under the
|
|
6754
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6755
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
6756
|
+
*
|
|
6757
|
+
* This Source Code may also be made available under the following Secondary
|
|
6758
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
6759
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
6760
|
+
* with the GNU Classpath Exception which is available at
|
|
6761
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
6762
|
+
*
|
|
6763
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
6764
|
+
********************************************************************************/
|
|
6765
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6766
|
+
exports.debounce = debounce;
|
|
6767
|
+
/**
|
|
6768
|
+
* Minimal lodash-compatible debounce. See {@link DebouncedFunc} for intentional differences from `lodash.debounce`.
|
|
6769
|
+
*/
|
|
6770
|
+
function debounce(func, wait, options = {}) {
|
|
6771
|
+
var _a, _b;
|
|
6772
|
+
let timeout;
|
|
6773
|
+
let lastArgs;
|
|
6774
|
+
let lastThis;
|
|
6775
|
+
let hasPendingCall = false;
|
|
6776
|
+
const leading = (_a = options.leading) !== null && _a !== void 0 ? _a : false;
|
|
6777
|
+
const trailing = (_b = options.trailing) !== null && _b !== void 0 ? _b : true;
|
|
6778
|
+
const debounced = function (...args) {
|
|
6779
|
+
const shouldCallLeading = leading && timeout === undefined;
|
|
6780
|
+
lastArgs = args;
|
|
6781
|
+
lastThis = this;
|
|
6782
|
+
hasPendingCall = true;
|
|
6783
|
+
if (shouldCallLeading) {
|
|
6784
|
+
func.apply(lastThis, lastArgs);
|
|
6785
|
+
hasPendingCall = false;
|
|
6786
|
+
}
|
|
6787
|
+
if (timeout !== undefined) {
|
|
6788
|
+
clearTimeout(timeout);
|
|
6789
|
+
}
|
|
6790
|
+
timeout = setTimeout(() => {
|
|
6791
|
+
timeout = undefined;
|
|
6792
|
+
if (trailing && hasPendingCall && lastArgs !== undefined) {
|
|
6793
|
+
func.apply(lastThis, lastArgs);
|
|
6794
|
+
hasPendingCall = false;
|
|
6795
|
+
}
|
|
6796
|
+
}, wait);
|
|
6797
|
+
};
|
|
6798
|
+
debounced.cancel = () => {
|
|
6799
|
+
if (timeout !== undefined) {
|
|
6800
|
+
clearTimeout(timeout);
|
|
6801
|
+
timeout = undefined;
|
|
6802
|
+
}
|
|
6803
|
+
lastArgs = undefined;
|
|
6804
|
+
lastThis = undefined;
|
|
6805
|
+
hasPendingCall = false;
|
|
6806
|
+
};
|
|
6807
|
+
return debounced;
|
|
6808
|
+
}
|
|
6809
|
+
|
|
6810
|
+
|
|
6578
6811
|
/***/ }),
|
|
6579
6812
|
|
|
6580
6813
|
/***/ "../../node_modules/@eclipse-glsp/protocol/lib/utils/geometry-movement.js":
|
|
@@ -7150,1437 +7383,184 @@ function hasArrayProp(object, propertyKey, optional = false) {
|
|
|
7150
7383
|
|
|
7151
7384
|
/***/ }),
|
|
7152
7385
|
|
|
7153
|
-
/***/ "../../node_modules
|
|
7154
|
-
|
|
7155
|
-
!*** ../../node_modules
|
|
7156
|
-
|
|
7157
|
-
/***/ ((
|
|
7158
|
-
|
|
7159
|
-
"use strict";
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
7163
|
-
value: true
|
|
7164
|
-
}));
|
|
7165
|
-
Object.defineProperty(exports, "MAX", ({
|
|
7166
|
-
enumerable: true,
|
|
7167
|
-
get: function get() {
|
|
7168
|
-
return _max.default;
|
|
7169
|
-
}
|
|
7170
|
-
}));
|
|
7171
|
-
Object.defineProperty(exports, "NIL", ({
|
|
7172
|
-
enumerable: true,
|
|
7173
|
-
get: function get() {
|
|
7174
|
-
return _nil.default;
|
|
7175
|
-
}
|
|
7176
|
-
}));
|
|
7177
|
-
Object.defineProperty(exports, "parse", ({
|
|
7178
|
-
enumerable: true,
|
|
7179
|
-
get: function get() {
|
|
7180
|
-
return _parse.default;
|
|
7181
|
-
}
|
|
7182
|
-
}));
|
|
7183
|
-
Object.defineProperty(exports, "stringify", ({
|
|
7184
|
-
enumerable: true,
|
|
7185
|
-
get: function get() {
|
|
7186
|
-
return _stringify.default;
|
|
7187
|
-
}
|
|
7188
|
-
}));
|
|
7189
|
-
Object.defineProperty(exports, "v1", ({
|
|
7190
|
-
enumerable: true,
|
|
7191
|
-
get: function get() {
|
|
7192
|
-
return _v.default;
|
|
7193
|
-
}
|
|
7194
|
-
}));
|
|
7195
|
-
Object.defineProperty(exports, "v1ToV6", ({
|
|
7196
|
-
enumerable: true,
|
|
7197
|
-
get: function get() {
|
|
7198
|
-
return _v1ToV.default;
|
|
7199
|
-
}
|
|
7200
|
-
}));
|
|
7201
|
-
Object.defineProperty(exports, "v3", ({
|
|
7202
|
-
enumerable: true,
|
|
7203
|
-
get: function get() {
|
|
7204
|
-
return _v2.default;
|
|
7205
|
-
}
|
|
7206
|
-
}));
|
|
7207
|
-
Object.defineProperty(exports, "v4", ({
|
|
7208
|
-
enumerable: true,
|
|
7209
|
-
get: function get() {
|
|
7210
|
-
return _v3.default;
|
|
7211
|
-
}
|
|
7212
|
-
}));
|
|
7213
|
-
Object.defineProperty(exports, "v5", ({
|
|
7214
|
-
enumerable: true,
|
|
7215
|
-
get: function get() {
|
|
7216
|
-
return _v4.default;
|
|
7217
|
-
}
|
|
7218
|
-
}));
|
|
7219
|
-
Object.defineProperty(exports, "v6", ({
|
|
7220
|
-
enumerable: true,
|
|
7221
|
-
get: function get() {
|
|
7222
|
-
return _v5.default;
|
|
7223
|
-
}
|
|
7224
|
-
}));
|
|
7225
|
-
Object.defineProperty(exports, "v6ToV1", ({
|
|
7226
|
-
enumerable: true,
|
|
7227
|
-
get: function get() {
|
|
7228
|
-
return _v6ToV.default;
|
|
7229
|
-
}
|
|
7230
|
-
}));
|
|
7231
|
-
Object.defineProperty(exports, "v7", ({
|
|
7232
|
-
enumerable: true,
|
|
7233
|
-
get: function get() {
|
|
7234
|
-
return _v6.default;
|
|
7235
|
-
}
|
|
7236
|
-
}));
|
|
7237
|
-
Object.defineProperty(exports, "validate", ({
|
|
7238
|
-
enumerable: true,
|
|
7239
|
-
get: function get() {
|
|
7240
|
-
return _validate.default;
|
|
7241
|
-
}
|
|
7242
|
-
}));
|
|
7243
|
-
Object.defineProperty(exports, "version", ({
|
|
7244
|
-
enumerable: true,
|
|
7245
|
-
get: function get() {
|
|
7246
|
-
return _version.default;
|
|
7247
|
-
}
|
|
7248
|
-
}));
|
|
7249
|
-
var _max = _interopRequireDefault(__webpack_require__(/*! ./max.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/max.js"));
|
|
7250
|
-
var _nil = _interopRequireDefault(__webpack_require__(/*! ./nil.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/nil.js"));
|
|
7251
|
-
var _parse = _interopRequireDefault(__webpack_require__(/*! ./parse.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/parse.js"));
|
|
7252
|
-
var _stringify = _interopRequireDefault(__webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/stringify.js"));
|
|
7253
|
-
var _v = _interopRequireDefault(__webpack_require__(/*! ./v1.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v1.js"));
|
|
7254
|
-
var _v1ToV = _interopRequireDefault(__webpack_require__(/*! ./v1ToV6.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v1ToV6.js"));
|
|
7255
|
-
var _v2 = _interopRequireDefault(__webpack_require__(/*! ./v3.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v3.js"));
|
|
7256
|
-
var _v3 = _interopRequireDefault(__webpack_require__(/*! ./v4.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v4.js"));
|
|
7257
|
-
var _v4 = _interopRequireDefault(__webpack_require__(/*! ./v5.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v5.js"));
|
|
7258
|
-
var _v5 = _interopRequireDefault(__webpack_require__(/*! ./v6.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v6.js"));
|
|
7259
|
-
var _v6ToV = _interopRequireDefault(__webpack_require__(/*! ./v6ToV1.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v6ToV1.js"));
|
|
7260
|
-
var _v6 = _interopRequireDefault(__webpack_require__(/*! ./v7.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v7.js"));
|
|
7261
|
-
var _validate = _interopRequireDefault(__webpack_require__(/*! ./validate.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/validate.js"));
|
|
7262
|
-
var _version = _interopRequireDefault(__webpack_require__(/*! ./version.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/version.js"));
|
|
7263
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7264
|
-
|
|
7265
|
-
/***/ }),
|
|
7266
|
-
|
|
7267
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/max.js":
|
|
7268
|
-
/*!************************************************************************************************!*\
|
|
7269
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/max.js ***!
|
|
7270
|
-
\************************************************************************************************/
|
|
7271
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
7272
|
-
|
|
7273
|
-
"use strict";
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
7277
|
-
value: true
|
|
7278
|
-
}));
|
|
7279
|
-
exports["default"] = void 0;
|
|
7280
|
-
var _default = exports["default"] = 'ffffffff-ffff-ffff-ffff-ffffffffffff';
|
|
7281
|
-
|
|
7282
|
-
/***/ }),
|
|
7283
|
-
|
|
7284
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/md5.js":
|
|
7285
|
-
/*!************************************************************************************************!*\
|
|
7286
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/md5.js ***!
|
|
7287
|
-
\************************************************************************************************/
|
|
7288
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
7386
|
+
/***/ "../../node_modules/elkjs/lib/elk.bundled.js":
|
|
7387
|
+
/*!***************************************************!*\
|
|
7388
|
+
!*** ../../node_modules/elkjs/lib/elk.bundled.js ***!
|
|
7389
|
+
\***************************************************/
|
|
7390
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7289
7391
|
|
|
7392
|
+
(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=undefined;if(!f&&c)return require(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=undefined,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
|
7290
7393
|
"use strict";
|
|
7291
7394
|
|
|
7292
|
-
|
|
7293
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
7395
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7294
7396
|
value: true
|
|
7295
|
-
})
|
|
7397
|
+
});
|
|
7296
7398
|
exports["default"] = void 0;
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
*
|
|
7399
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
7400
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
7401
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
7402
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
7403
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7404
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7405
|
+
/*******************************************************************************
|
|
7406
|
+
* Copyright (c) 2017 Kiel University and others.
|
|
7305
7407
|
*
|
|
7306
|
-
*
|
|
7307
|
-
*
|
|
7408
|
+
* This program and the accompanying materials are made
|
|
7409
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
7410
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7308
7411
|
*
|
|
7309
|
-
*
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7412
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
7413
|
+
*******************************************************************************/
|
|
7414
|
+
var ELK = exports["default"] = /*#__PURE__*/function () {
|
|
7415
|
+
function ELK() {
|
|
7416
|
+
var _this = this;
|
|
7417
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
7418
|
+
_ref$defaultLayoutOpt = _ref.defaultLayoutOptions,
|
|
7419
|
+
defaultLayoutOptions = _ref$defaultLayoutOpt === void 0 ? {} : _ref$defaultLayoutOpt,
|
|
7420
|
+
_ref$algorithms = _ref.algorithms,
|
|
7421
|
+
algorithms = _ref$algorithms === void 0 ? ['layered', 'stress', 'mrtree', 'radial', 'force', 'disco', 'sporeOverlap', 'sporeCompaction', 'rectpacking'] : _ref$algorithms,
|
|
7422
|
+
workerFactory = _ref.workerFactory,
|
|
7423
|
+
workerUrl = _ref.workerUrl;
|
|
7424
|
+
_classCallCheck(this, ELK);
|
|
7425
|
+
this.defaultLayoutOptions = defaultLayoutOptions;
|
|
7426
|
+
this.initialized = false;
|
|
7320
7427
|
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7428
|
+
// check valid worker construction possible
|
|
7429
|
+
if (typeof workerUrl === 'undefined' && typeof workerFactory === 'undefined') {
|
|
7430
|
+
throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");
|
|
7324
7431
|
}
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
*/
|
|
7332
|
-
function md5ToHexEncodedArray(input) {
|
|
7333
|
-
var output = [];
|
|
7334
|
-
var length32 = input.length * 32;
|
|
7335
|
-
var hexTab = '0123456789abcdef';
|
|
7336
|
-
for (var i = 0; i < length32; i += 8) {
|
|
7337
|
-
var x = input[i >> 5] >>> i % 32 & 0xff;
|
|
7338
|
-
var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
|
|
7339
|
-
output.push(hex);
|
|
7340
|
-
}
|
|
7341
|
-
return output;
|
|
7342
|
-
}
|
|
7343
|
-
|
|
7344
|
-
/**
|
|
7345
|
-
* Calculate output length with padding and bit length
|
|
7346
|
-
*/
|
|
7347
|
-
function getOutputLength(inputLength8) {
|
|
7348
|
-
return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
|
|
7349
|
-
}
|
|
7350
|
-
|
|
7351
|
-
/*
|
|
7352
|
-
* Calculate the MD5 of an array of little-endian words, and a bit length.
|
|
7353
|
-
*/
|
|
7354
|
-
function wordsToMd5(x, len) {
|
|
7355
|
-
/* append padding */
|
|
7356
|
-
x[len >> 5] |= 0x80 << len % 32;
|
|
7357
|
-
x[getOutputLength(len) - 1] = len;
|
|
7358
|
-
var a = 1732584193;
|
|
7359
|
-
var b = -271733879;
|
|
7360
|
-
var c = -1732584194;
|
|
7361
|
-
var d = 271733878;
|
|
7362
|
-
for (var i = 0; i < x.length; i += 16) {
|
|
7363
|
-
var olda = a;
|
|
7364
|
-
var oldb = b;
|
|
7365
|
-
var oldc = c;
|
|
7366
|
-
var oldd = d;
|
|
7367
|
-
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
7368
|
-
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
7369
|
-
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
7370
|
-
b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
|
|
7371
|
-
a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
|
|
7372
|
-
d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
|
|
7373
|
-
c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
|
|
7374
|
-
b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
|
|
7375
|
-
a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
|
|
7376
|
-
d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
|
|
7377
|
-
c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
|
|
7378
|
-
b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
|
|
7379
|
-
a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
|
|
7380
|
-
d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
|
|
7381
|
-
c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
|
|
7382
|
-
b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
|
|
7383
|
-
a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
|
|
7384
|
-
d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
|
|
7385
|
-
c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
|
|
7386
|
-
b = md5gg(b, c, d, a, x[i], 20, -373897302);
|
|
7387
|
-
a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
|
|
7388
|
-
d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
|
|
7389
|
-
c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
|
|
7390
|
-
b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
|
|
7391
|
-
a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
|
|
7392
|
-
d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
|
|
7393
|
-
c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
|
|
7394
|
-
b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
|
|
7395
|
-
a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
|
|
7396
|
-
d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
|
|
7397
|
-
c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
|
|
7398
|
-
b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
|
|
7399
|
-
a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
|
|
7400
|
-
d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
|
|
7401
|
-
c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
|
|
7402
|
-
b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
|
|
7403
|
-
a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
|
|
7404
|
-
d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
|
|
7405
|
-
c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
|
|
7406
|
-
b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
|
|
7407
|
-
a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
|
|
7408
|
-
d = md5hh(d, a, b, c, x[i], 11, -358537222);
|
|
7409
|
-
c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
|
|
7410
|
-
b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
|
|
7411
|
-
a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
|
|
7412
|
-
d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
|
|
7413
|
-
c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
|
|
7414
|
-
b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
|
|
7415
|
-
a = md5ii(a, b, c, d, x[i], 6, -198630844);
|
|
7416
|
-
d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
|
|
7417
|
-
c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
|
|
7418
|
-
b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
|
|
7419
|
-
a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
|
|
7420
|
-
d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
|
|
7421
|
-
c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
|
|
7422
|
-
b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
|
|
7423
|
-
a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
|
|
7424
|
-
d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
|
|
7425
|
-
c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
|
|
7426
|
-
b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
|
|
7427
|
-
a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
|
|
7428
|
-
d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
|
|
7429
|
-
c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
|
|
7430
|
-
b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
|
|
7431
|
-
a = safeAdd(a, olda);
|
|
7432
|
-
b = safeAdd(b, oldb);
|
|
7433
|
-
c = safeAdd(c, oldc);
|
|
7434
|
-
d = safeAdd(d, oldd);
|
|
7435
|
-
}
|
|
7436
|
-
return [a, b, c, d];
|
|
7437
|
-
}
|
|
7438
|
-
|
|
7439
|
-
/*
|
|
7440
|
-
* Convert an array bytes to an array of little-endian words
|
|
7441
|
-
* Characters >255 have their high-byte silently ignored.
|
|
7442
|
-
*/
|
|
7443
|
-
function bytesToWords(input) {
|
|
7444
|
-
if (input.length === 0) {
|
|
7445
|
-
return [];
|
|
7446
|
-
}
|
|
7447
|
-
var length8 = input.length * 8;
|
|
7448
|
-
var output = new Uint32Array(getOutputLength(length8));
|
|
7449
|
-
for (var i = 0; i < length8; i += 8) {
|
|
7450
|
-
output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
|
|
7451
|
-
}
|
|
7452
|
-
return output;
|
|
7453
|
-
}
|
|
7454
|
-
|
|
7455
|
-
/*
|
|
7456
|
-
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
|
|
7457
|
-
* to work around bugs in some JS interpreters.
|
|
7458
|
-
*/
|
|
7459
|
-
function safeAdd(x, y) {
|
|
7460
|
-
var lsw = (x & 0xffff) + (y & 0xffff);
|
|
7461
|
-
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
7462
|
-
return msw << 16 | lsw & 0xffff;
|
|
7463
|
-
}
|
|
7464
|
-
|
|
7465
|
-
/*
|
|
7466
|
-
* Bitwise rotate a 32-bit number to the left.
|
|
7467
|
-
*/
|
|
7468
|
-
function bitRotateLeft(num, cnt) {
|
|
7469
|
-
return num << cnt | num >>> 32 - cnt;
|
|
7470
|
-
}
|
|
7471
|
-
|
|
7472
|
-
/*
|
|
7473
|
-
* These functions implement the four basic operations the algorithm uses.
|
|
7474
|
-
*/
|
|
7475
|
-
function md5cmn(q, a, b, x, s, t) {
|
|
7476
|
-
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
|
7477
|
-
}
|
|
7478
|
-
function md5ff(a, b, c, d, x, s, t) {
|
|
7479
|
-
return md5cmn(b & c | ~b & d, a, b, x, s, t);
|
|
7480
|
-
}
|
|
7481
|
-
function md5gg(a, b, c, d, x, s, t) {
|
|
7482
|
-
return md5cmn(b & d | c & ~d, a, b, x, s, t);
|
|
7483
|
-
}
|
|
7484
|
-
function md5hh(a, b, c, d, x, s, t) {
|
|
7485
|
-
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
|
7486
|
-
}
|
|
7487
|
-
function md5ii(a, b, c, d, x, s, t) {
|
|
7488
|
-
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
7489
|
-
}
|
|
7490
|
-
var _default = exports["default"] = md5;
|
|
7491
|
-
|
|
7492
|
-
/***/ }),
|
|
7493
|
-
|
|
7494
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/native.js":
|
|
7495
|
-
/*!***************************************************************************************************!*\
|
|
7496
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/native.js ***!
|
|
7497
|
-
\***************************************************************************************************/
|
|
7498
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
7499
|
-
|
|
7500
|
-
"use strict";
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
7504
|
-
value: true
|
|
7505
|
-
}));
|
|
7506
|
-
exports["default"] = void 0;
|
|
7507
|
-
var randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
7508
|
-
var _default = exports["default"] = {
|
|
7509
|
-
randomUUID
|
|
7510
|
-
};
|
|
7511
|
-
|
|
7512
|
-
/***/ }),
|
|
7513
|
-
|
|
7514
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/nil.js":
|
|
7515
|
-
/*!************************************************************************************************!*\
|
|
7516
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/nil.js ***!
|
|
7517
|
-
\************************************************************************************************/
|
|
7518
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
7519
|
-
|
|
7520
|
-
"use strict";
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
7524
|
-
value: true
|
|
7525
|
-
}));
|
|
7526
|
-
exports["default"] = void 0;
|
|
7527
|
-
var _default = exports["default"] = '00000000-0000-0000-0000-000000000000';
|
|
7528
|
-
|
|
7529
|
-
/***/ }),
|
|
7530
|
-
|
|
7531
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/parse.js":
|
|
7532
|
-
/*!**************************************************************************************************!*\
|
|
7533
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/parse.js ***!
|
|
7534
|
-
\**************************************************************************************************/
|
|
7535
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7536
|
-
|
|
7537
|
-
"use strict";
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
7541
|
-
value: true
|
|
7542
|
-
}));
|
|
7543
|
-
exports["default"] = void 0;
|
|
7544
|
-
var _validate = _interopRequireDefault(__webpack_require__(/*! ./validate.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/validate.js"));
|
|
7545
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7546
|
-
function parse(uuid) {
|
|
7547
|
-
if (!(0, _validate.default)(uuid)) {
|
|
7548
|
-
throw TypeError('Invalid UUID');
|
|
7549
|
-
}
|
|
7550
|
-
var v;
|
|
7551
|
-
var arr = new Uint8Array(16);
|
|
7552
|
-
|
|
7553
|
-
// Parse ########-....-....-....-............
|
|
7554
|
-
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
7555
|
-
arr[1] = v >>> 16 & 0xff;
|
|
7556
|
-
arr[2] = v >>> 8 & 0xff;
|
|
7557
|
-
arr[3] = v & 0xff;
|
|
7558
|
-
|
|
7559
|
-
// Parse ........-####-....-....-............
|
|
7560
|
-
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
|
7561
|
-
arr[5] = v & 0xff;
|
|
7562
|
-
|
|
7563
|
-
// Parse ........-....-####-....-............
|
|
7564
|
-
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
|
7565
|
-
arr[7] = v & 0xff;
|
|
7566
|
-
|
|
7567
|
-
// Parse ........-....-....-####-............
|
|
7568
|
-
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
|
7569
|
-
arr[9] = v & 0xff;
|
|
7570
|
-
|
|
7571
|
-
// Parse ........-....-....-....-############
|
|
7572
|
-
// (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
|
|
7573
|
-
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
|
|
7574
|
-
arr[11] = v / 0x100000000 & 0xff;
|
|
7575
|
-
arr[12] = v >>> 24 & 0xff;
|
|
7576
|
-
arr[13] = v >>> 16 & 0xff;
|
|
7577
|
-
arr[14] = v >>> 8 & 0xff;
|
|
7578
|
-
arr[15] = v & 0xff;
|
|
7579
|
-
return arr;
|
|
7580
|
-
}
|
|
7581
|
-
var _default = exports["default"] = parse;
|
|
7582
|
-
|
|
7583
|
-
/***/ }),
|
|
7584
|
-
|
|
7585
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/regex.js":
|
|
7586
|
-
/*!**************************************************************************************************!*\
|
|
7587
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/regex.js ***!
|
|
7588
|
-
\**************************************************************************************************/
|
|
7589
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
7590
|
-
|
|
7591
|
-
"use strict";
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
7595
|
-
value: true
|
|
7596
|
-
}));
|
|
7597
|
-
exports["default"] = void 0;
|
|
7598
|
-
var _default = exports["default"] = /^(?:[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;
|
|
7599
|
-
|
|
7600
|
-
/***/ }),
|
|
7601
|
-
|
|
7602
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/rng.js":
|
|
7603
|
-
/*!************************************************************************************************!*\
|
|
7604
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/rng.js ***!
|
|
7605
|
-
\************************************************************************************************/
|
|
7606
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
7607
|
-
|
|
7608
|
-
"use strict";
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
7612
|
-
value: true
|
|
7613
|
-
}));
|
|
7614
|
-
exports["default"] = rng;
|
|
7615
|
-
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
7616
|
-
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
7617
|
-
// generators (like Math.random()).
|
|
7618
|
-
|
|
7619
|
-
var getRandomValues;
|
|
7620
|
-
var rnds8 = new Uint8Array(16);
|
|
7621
|
-
function rng() {
|
|
7622
|
-
// lazy load so that environments that need to polyfill have a chance to do so
|
|
7623
|
-
if (!getRandomValues) {
|
|
7624
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
7625
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
7626
|
-
if (!getRandomValues) {
|
|
7627
|
-
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
7432
|
+
var factory = workerFactory;
|
|
7433
|
+
if (typeof workerUrl !== 'undefined' && typeof workerFactory === 'undefined') {
|
|
7434
|
+
// use default Web Worker
|
|
7435
|
+
factory = function factory(url) {
|
|
7436
|
+
return new Worker(url);
|
|
7437
|
+
};
|
|
7628
7438
|
}
|
|
7629
|
-
}
|
|
7630
|
-
return getRandomValues(rnds8);
|
|
7631
|
-
}
|
|
7632
|
-
|
|
7633
|
-
/***/ }),
|
|
7634
|
-
|
|
7635
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/sha1.js":
|
|
7636
|
-
/*!*************************************************************************************************!*\
|
|
7637
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/sha1.js ***!
|
|
7638
|
-
\*************************************************************************************************/
|
|
7639
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
7640
|
-
|
|
7641
|
-
"use strict";
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
7645
|
-
value: true
|
|
7646
|
-
}));
|
|
7647
|
-
exports["default"] = void 0;
|
|
7648
|
-
// Adapted from Chris Veness' SHA1 code at
|
|
7649
|
-
// http://www.movable-type.co.uk/scripts/sha1.html
|
|
7650
|
-
function f(s, x, y, z) {
|
|
7651
|
-
switch (s) {
|
|
7652
|
-
case 0:
|
|
7653
|
-
return x & y ^ ~x & z;
|
|
7654
|
-
case 1:
|
|
7655
|
-
return x ^ y ^ z;
|
|
7656
|
-
case 2:
|
|
7657
|
-
return x & y ^ x & z ^ y & z;
|
|
7658
|
-
case 3:
|
|
7659
|
-
return x ^ y ^ z;
|
|
7660
|
-
}
|
|
7661
|
-
}
|
|
7662
|
-
function ROTL(x, n) {
|
|
7663
|
-
return x << n | x >>> 32 - n;
|
|
7664
|
-
}
|
|
7665
|
-
function sha1(bytes) {
|
|
7666
|
-
var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
|
|
7667
|
-
var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
|
|
7668
|
-
if (typeof bytes === 'string') {
|
|
7669
|
-
var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
7670
|
-
|
|
7671
|
-
bytes = [];
|
|
7672
|
-
for (var i = 0; i < msg.length; ++i) {
|
|
7673
|
-
bytes.push(msg.charCodeAt(i));
|
|
7674
|
-
}
|
|
7675
|
-
} else if (!Array.isArray(bytes)) {
|
|
7676
|
-
// Convert Array-like to Array
|
|
7677
|
-
bytes = Array.prototype.slice.call(bytes);
|
|
7678
|
-
}
|
|
7679
|
-
bytes.push(0x80);
|
|
7680
|
-
var l = bytes.length / 4 + 2;
|
|
7681
|
-
var N = Math.ceil(l / 16);
|
|
7682
|
-
var M = new Array(N);
|
|
7683
|
-
for (var _i = 0; _i < N; ++_i) {
|
|
7684
|
-
var arr = new Uint32Array(16);
|
|
7685
|
-
for (var j = 0; j < 16; ++j) {
|
|
7686
|
-
arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3];
|
|
7687
|
-
}
|
|
7688
|
-
M[_i] = arr;
|
|
7689
|
-
}
|
|
7690
|
-
M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
|
|
7691
|
-
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
7692
|
-
M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
|
|
7693
|
-
for (var _i2 = 0; _i2 < N; ++_i2) {
|
|
7694
|
-
var W = new Uint32Array(80);
|
|
7695
|
-
for (var t = 0; t < 16; ++t) {
|
|
7696
|
-
W[t] = M[_i2][t];
|
|
7697
|
-
}
|
|
7698
|
-
for (var _t = 16; _t < 80; ++_t) {
|
|
7699
|
-
W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);
|
|
7700
|
-
}
|
|
7701
|
-
var a = H[0];
|
|
7702
|
-
var b = H[1];
|
|
7703
|
-
var c = H[2];
|
|
7704
|
-
var d = H[3];
|
|
7705
|
-
var e = H[4];
|
|
7706
|
-
for (var _t2 = 0; _t2 < 80; ++_t2) {
|
|
7707
|
-
var s = Math.floor(_t2 / 20);
|
|
7708
|
-
var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;
|
|
7709
|
-
e = d;
|
|
7710
|
-
d = c;
|
|
7711
|
-
c = ROTL(b, 30) >>> 0;
|
|
7712
|
-
b = a;
|
|
7713
|
-
a = T;
|
|
7714
|
-
}
|
|
7715
|
-
H[0] = H[0] + a >>> 0;
|
|
7716
|
-
H[1] = H[1] + b >>> 0;
|
|
7717
|
-
H[2] = H[2] + c >>> 0;
|
|
7718
|
-
H[3] = H[3] + d >>> 0;
|
|
7719
|
-
H[4] = H[4] + e >>> 0;
|
|
7720
|
-
}
|
|
7721
|
-
return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff];
|
|
7722
|
-
}
|
|
7723
|
-
var _default = exports["default"] = sha1;
|
|
7724
7439
|
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
\******************************************************************************************************/
|
|
7731
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7732
|
-
|
|
7733
|
-
"use strict";
|
|
7440
|
+
// create the worker
|
|
7441
|
+
var worker = factory(workerUrl);
|
|
7442
|
+
if (typeof worker.postMessage !== 'function') {
|
|
7443
|
+
throw new TypeError("Created worker does not provide" + " the required 'postMessage' function.");
|
|
7444
|
+
}
|
|
7734
7445
|
|
|
7446
|
+
// wrap the worker to return promises
|
|
7447
|
+
this.worker = new PromisedWorker(worker);
|
|
7735
7448
|
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
/**
|
|
7744
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
|
7745
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
7746
|
-
*/
|
|
7747
|
-
var byteToHex = [];
|
|
7748
|
-
for (var i = 0; i < 256; ++i) {
|
|
7749
|
-
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
7750
|
-
}
|
|
7751
|
-
function unsafeStringify(arr, offset = 0) {
|
|
7752
|
-
// Note: Be careful editing this code! It's been tuned for performance
|
|
7753
|
-
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
7754
|
-
//
|
|
7755
|
-
// Note to future-self: No, you can't remove the `toLowerCase()` call.
|
|
7756
|
-
// REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351
|
|
7757
|
-
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();
|
|
7758
|
-
}
|
|
7759
|
-
function stringify(arr, offset = 0) {
|
|
7760
|
-
var uuid = unsafeStringify(arr, offset);
|
|
7761
|
-
// Consistency check for valid UUID. If this throws, it's likely due to one
|
|
7762
|
-
// of the following:
|
|
7763
|
-
// - One or more input array values don't map to a hex octet (leading to
|
|
7764
|
-
// "undefined" in the uuid)
|
|
7765
|
-
// - Invalid input values for the RFC `version` or `variant` fields
|
|
7766
|
-
if (!(0, _validate.default)(uuid)) {
|
|
7767
|
-
throw TypeError('Stringified UUID is invalid');
|
|
7449
|
+
// initially register algorithms
|
|
7450
|
+
this.worker.postMessage({
|
|
7451
|
+
cmd: 'register',
|
|
7452
|
+
algorithms: algorithms
|
|
7453
|
+
}).then(function (r) {
|
|
7454
|
+
return _this.initialized = true;
|
|
7455
|
+
})["catch"](console.err);
|
|
7768
7456
|
}
|
|
7769
|
-
return
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
if (!options._v6) {
|
|
7813
|
-
if (!node) {
|
|
7814
|
-
node = _nodeId;
|
|
7457
|
+
return _createClass(ELK, [{
|
|
7458
|
+
key: "layout",
|
|
7459
|
+
value: function layout(graph) {
|
|
7460
|
+
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
7461
|
+
_ref2$layoutOptions = _ref2.layoutOptions,
|
|
7462
|
+
layoutOptions = _ref2$layoutOptions === void 0 ? this.defaultLayoutOptions : _ref2$layoutOptions,
|
|
7463
|
+
_ref2$logging = _ref2.logging,
|
|
7464
|
+
logging = _ref2$logging === void 0 ? false : _ref2$logging,
|
|
7465
|
+
_ref2$measureExecutio = _ref2.measureExecutionTime,
|
|
7466
|
+
measureExecutionTime = _ref2$measureExecutio === void 0 ? false : _ref2$measureExecutio;
|
|
7467
|
+
if (!graph) {
|
|
7468
|
+
return Promise.reject(new Error("Missing mandatory parameter 'graph'."));
|
|
7469
|
+
}
|
|
7470
|
+
return this.worker.postMessage({
|
|
7471
|
+
cmd: 'layout',
|
|
7472
|
+
graph: graph,
|
|
7473
|
+
layoutOptions: layoutOptions,
|
|
7474
|
+
options: {
|
|
7475
|
+
logging: logging,
|
|
7476
|
+
measureExecutionTime: measureExecutionTime
|
|
7477
|
+
}
|
|
7478
|
+
});
|
|
7479
|
+
}
|
|
7480
|
+
}, {
|
|
7481
|
+
key: "knownLayoutAlgorithms",
|
|
7482
|
+
value: function knownLayoutAlgorithms() {
|
|
7483
|
+
return this.worker.postMessage({
|
|
7484
|
+
cmd: 'algorithms'
|
|
7485
|
+
});
|
|
7486
|
+
}
|
|
7487
|
+
}, {
|
|
7488
|
+
key: "knownLayoutOptions",
|
|
7489
|
+
value: function knownLayoutOptions() {
|
|
7490
|
+
return this.worker.postMessage({
|
|
7491
|
+
cmd: 'options'
|
|
7492
|
+
});
|
|
7493
|
+
}
|
|
7494
|
+
}, {
|
|
7495
|
+
key: "knownLayoutCategories",
|
|
7496
|
+
value: function knownLayoutCategories() {
|
|
7497
|
+
return this.worker.postMessage({
|
|
7498
|
+
cmd: 'categories'
|
|
7499
|
+
});
|
|
7815
7500
|
}
|
|
7816
|
-
|
|
7817
|
-
|
|
7501
|
+
}, {
|
|
7502
|
+
key: "terminateWorker",
|
|
7503
|
+
value: function terminateWorker() {
|
|
7504
|
+
if (this.worker) this.worker.terminate();
|
|
7505
|
+
}
|
|
7506
|
+
}]);
|
|
7507
|
+
}();
|
|
7508
|
+
var PromisedWorker = /*#__PURE__*/function () {
|
|
7509
|
+
function PromisedWorker(worker) {
|
|
7510
|
+
var _this2 = this;
|
|
7511
|
+
_classCallCheck(this, PromisedWorker);
|
|
7512
|
+
if (worker === undefined) {
|
|
7513
|
+
throw new Error("Missing mandatory parameter 'worker'.");
|
|
7818
7514
|
}
|
|
7515
|
+
this.resolvers = {};
|
|
7516
|
+
this.worker = worker;
|
|
7517
|
+
this.worker.onmessage = function (answer) {
|
|
7518
|
+
// why is this necessary?
|
|
7519
|
+
setTimeout(function () {
|
|
7520
|
+
_this2.receive(_this2, answer);
|
|
7521
|
+
}, 0);
|
|
7522
|
+
};
|
|
7819
7523
|
}
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7524
|
+
return _createClass(PromisedWorker, [{
|
|
7525
|
+
key: "postMessage",
|
|
7526
|
+
value: function postMessage(msg) {
|
|
7527
|
+
var id = this.id || 0;
|
|
7528
|
+
this.id = id + 1;
|
|
7529
|
+
msg.id = id;
|
|
7530
|
+
var self = this;
|
|
7531
|
+
return new Promise(function (resolve, reject) {
|
|
7532
|
+
// prepare the resolver
|
|
7533
|
+
self.resolvers[id] = function (err, res) {
|
|
7534
|
+
if (err) {
|
|
7535
|
+
self.convertGwtStyleError(err);
|
|
7536
|
+
reject(err);
|
|
7537
|
+
} else {
|
|
7538
|
+
resolve(res);
|
|
7539
|
+
}
|
|
7540
|
+
};
|
|
7541
|
+
// post the message
|
|
7542
|
+
self.worker.postMessage(msg);
|
|
7543
|
+
});
|
|
7544
|
+
}
|
|
7545
|
+
}, {
|
|
7546
|
+
key: "receive",
|
|
7547
|
+
value: function receive(self, answer) {
|
|
7548
|
+
var json = answer.data;
|
|
7549
|
+
var resolver = self.resolvers[json.id];
|
|
7550
|
+
if (resolver) {
|
|
7551
|
+
delete self.resolvers[json.id];
|
|
7552
|
+
if (json.error) {
|
|
7553
|
+
resolver(json.error);
|
|
7554
|
+
} else {
|
|
7555
|
+
resolver(null, json.data);
|
|
7556
|
+
}
|
|
7836
7557
|
}
|
|
7837
7558
|
}
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
if (_clockseq === undefined && !options._v6) {
|
|
7844
|
-
_clockseq = clockseq;
|
|
7845
|
-
}
|
|
7846
|
-
}
|
|
7847
|
-
}
|
|
7848
|
-
|
|
7849
|
-
// v1 & v6 timestamps are 100 nano-second units since the Gregorian epoch,
|
|
7850
|
-
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so time is
|
|
7851
|
-
// handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
|
7852
|
-
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
|
7853
|
-
var msecs = options.msecs !== undefined ? options.msecs : Date.now();
|
|
7854
|
-
|
|
7855
|
-
// Per 4.2.1.2, use count of uuid's generated during the current clock
|
|
7856
|
-
// cycle to simulate higher resolution clock
|
|
7857
|
-
var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
|
|
7858
|
-
|
|
7859
|
-
// Time since last uuid creation (in msecs)
|
|
7860
|
-
var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000;
|
|
7861
|
-
|
|
7862
|
-
// Per 4.2.1.2, Bump clockseq on clock regression
|
|
7863
|
-
if (dt < 0 && options.clockseq === undefined) {
|
|
7864
|
-
clockseq = clockseq + 1 & 0x3fff;
|
|
7865
|
-
}
|
|
7866
|
-
|
|
7867
|
-
// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
|
7868
|
-
// time interval
|
|
7869
|
-
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
|
|
7870
|
-
nsecs = 0;
|
|
7871
|
-
}
|
|
7872
|
-
|
|
7873
|
-
// Per 4.2.1.2 Throw error if too many uuids are requested
|
|
7874
|
-
if (nsecs >= 10000) {
|
|
7875
|
-
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
7876
|
-
}
|
|
7877
|
-
_lastMSecs = msecs;
|
|
7878
|
-
_lastNSecs = nsecs;
|
|
7879
|
-
_clockseq = clockseq;
|
|
7880
|
-
|
|
7881
|
-
// Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
|
7882
|
-
msecs += 12219292800000;
|
|
7883
|
-
|
|
7884
|
-
// `time_low`
|
|
7885
|
-
var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
7886
|
-
b[i++] = tl >>> 24 & 0xff;
|
|
7887
|
-
b[i++] = tl >>> 16 & 0xff;
|
|
7888
|
-
b[i++] = tl >>> 8 & 0xff;
|
|
7889
|
-
b[i++] = tl & 0xff;
|
|
7890
|
-
|
|
7891
|
-
// `time_mid`
|
|
7892
|
-
var tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
|
|
7893
|
-
b[i++] = tmh >>> 8 & 0xff;
|
|
7894
|
-
b[i++] = tmh & 0xff;
|
|
7895
|
-
|
|
7896
|
-
// `time_high_and_version`
|
|
7897
|
-
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
|
|
7898
|
-
b[i++] = tmh >>> 16 & 0xff;
|
|
7899
|
-
|
|
7900
|
-
// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
|
7901
|
-
b[i++] = clockseq >>> 8 | 0x80;
|
|
7902
|
-
|
|
7903
|
-
// `clock_seq_low`
|
|
7904
|
-
b[i++] = clockseq & 0xff;
|
|
7905
|
-
|
|
7906
|
-
// `node`
|
|
7907
|
-
for (var n = 0; n < 6; ++n) {
|
|
7908
|
-
b[i + n] = node[n];
|
|
7909
|
-
}
|
|
7910
|
-
return buf || (0, _stringify.unsafeStringify)(b);
|
|
7911
|
-
}
|
|
7912
|
-
var _default = exports["default"] = v1;
|
|
7913
|
-
|
|
7914
|
-
/***/ }),
|
|
7915
|
-
|
|
7916
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v1ToV6.js":
|
|
7917
|
-
/*!***************************************************************************************************!*\
|
|
7918
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v1ToV6.js ***!
|
|
7919
|
-
\***************************************************************************************************/
|
|
7920
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7921
|
-
|
|
7922
|
-
"use strict";
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
7926
|
-
value: true
|
|
7927
|
-
}));
|
|
7928
|
-
exports["default"] = v1ToV6;
|
|
7929
|
-
var _parse = _interopRequireDefault(__webpack_require__(/*! ./parse.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/parse.js"));
|
|
7930
|
-
var _stringify = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/stringify.js");
|
|
7931
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7932
|
-
/**
|
|
7933
|
-
* Convert a v1 UUID to a v6 UUID
|
|
7934
|
-
*
|
|
7935
|
-
* @param {string|Uint8Array} uuid - The v1 UUID to convert to v6
|
|
7936
|
-
* @returns {string|Uint8Array} The v6 UUID as the same type as the `uuid` arg
|
|
7937
|
-
* (string or Uint8Array)
|
|
7938
|
-
*/
|
|
7939
|
-
function v1ToV6(uuid) {
|
|
7940
|
-
var v1Bytes = typeof uuid === 'string' ? (0, _parse.default)(uuid) : uuid;
|
|
7941
|
-
var v6Bytes = _v1ToV6(v1Bytes);
|
|
7942
|
-
return typeof uuid === 'string' ? (0, _stringify.unsafeStringify)(v6Bytes) : v6Bytes;
|
|
7943
|
-
}
|
|
7944
|
-
|
|
7945
|
-
// Do the field transformation needed for v1 -> v6
|
|
7946
|
-
function _v1ToV6(v1Bytes, randomize = false) {
|
|
7947
|
-
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]);
|
|
7948
|
-
}
|
|
7949
|
-
|
|
7950
|
-
/***/ }),
|
|
7951
|
-
|
|
7952
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v3.js":
|
|
7953
|
-
/*!***********************************************************************************************!*\
|
|
7954
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v3.js ***!
|
|
7955
|
-
\***********************************************************************************************/
|
|
7956
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7957
|
-
|
|
7958
|
-
"use strict";
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
7962
|
-
value: true
|
|
7963
|
-
}));
|
|
7964
|
-
exports["default"] = void 0;
|
|
7965
|
-
var _v = _interopRequireDefault(__webpack_require__(/*! ./v35.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v35.js"));
|
|
7966
|
-
var _md = _interopRequireDefault(__webpack_require__(/*! ./md5.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/md5.js"));
|
|
7967
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7968
|
-
var v3 = (0, _v.default)('v3', 0x30, _md.default);
|
|
7969
|
-
var _default = exports["default"] = v3;
|
|
7970
|
-
|
|
7971
|
-
/***/ }),
|
|
7972
|
-
|
|
7973
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v35.js":
|
|
7974
|
-
/*!************************************************************************************************!*\
|
|
7975
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v35.js ***!
|
|
7976
|
-
\************************************************************************************************/
|
|
7977
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7978
|
-
|
|
7979
|
-
"use strict";
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
7983
|
-
value: true
|
|
7984
|
-
}));
|
|
7985
|
-
exports.URL = exports.DNS = void 0;
|
|
7986
|
-
exports["default"] = v35;
|
|
7987
|
-
var _stringify = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/stringify.js");
|
|
7988
|
-
var _parse = _interopRequireDefault(__webpack_require__(/*! ./parse.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/parse.js"));
|
|
7989
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7990
|
-
function stringToBytes(str) {
|
|
7991
|
-
str = unescape(encodeURIComponent(str)); // UTF8 escape
|
|
7992
|
-
|
|
7993
|
-
var bytes = [];
|
|
7994
|
-
for (var i = 0; i < str.length; ++i) {
|
|
7995
|
-
bytes.push(str.charCodeAt(i));
|
|
7996
|
-
}
|
|
7997
|
-
return bytes;
|
|
7998
|
-
}
|
|
7999
|
-
var DNS = exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
8000
|
-
var URL = exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
8001
|
-
function v35(name, version, hashfunc) {
|
|
8002
|
-
function generateUUID(value, namespace, buf, offset) {
|
|
8003
|
-
var _namespace;
|
|
8004
|
-
if (typeof value === 'string') {
|
|
8005
|
-
value = stringToBytes(value);
|
|
8006
|
-
}
|
|
8007
|
-
if (typeof namespace === 'string') {
|
|
8008
|
-
namespace = (0, _parse.default)(namespace);
|
|
8009
|
-
}
|
|
8010
|
-
if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
|
|
8011
|
-
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
8012
|
-
}
|
|
8013
|
-
|
|
8014
|
-
// Compute hash of namespace and value, Per 4.3
|
|
8015
|
-
// Future: Use spread syntax when supported on all platforms, e.g. `bytes =
|
|
8016
|
-
// hashfunc([...namespace, ... value])`
|
|
8017
|
-
var bytes = new Uint8Array(16 + value.length);
|
|
8018
|
-
bytes.set(namespace);
|
|
8019
|
-
bytes.set(value, namespace.length);
|
|
8020
|
-
bytes = hashfunc(bytes);
|
|
8021
|
-
bytes[6] = bytes[6] & 0x0f | version;
|
|
8022
|
-
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
8023
|
-
if (buf) {
|
|
8024
|
-
offset = offset || 0;
|
|
8025
|
-
for (var i = 0; i < 16; ++i) {
|
|
8026
|
-
buf[offset + i] = bytes[i];
|
|
8027
|
-
}
|
|
8028
|
-
return buf;
|
|
8029
|
-
}
|
|
8030
|
-
return (0, _stringify.unsafeStringify)(bytes);
|
|
8031
|
-
}
|
|
8032
|
-
|
|
8033
|
-
// Function#name is not settable on some platforms (#270)
|
|
8034
|
-
try {
|
|
8035
|
-
generateUUID.name = name;
|
|
8036
|
-
} catch (err) {}
|
|
8037
|
-
|
|
8038
|
-
// For CommonJS default export support
|
|
8039
|
-
generateUUID.DNS = DNS;
|
|
8040
|
-
generateUUID.URL = URL;
|
|
8041
|
-
return generateUUID;
|
|
8042
|
-
}
|
|
8043
|
-
|
|
8044
|
-
/***/ }),
|
|
8045
|
-
|
|
8046
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v4.js":
|
|
8047
|
-
/*!***********************************************************************************************!*\
|
|
8048
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v4.js ***!
|
|
8049
|
-
\***********************************************************************************************/
|
|
8050
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
8051
|
-
|
|
8052
|
-
"use strict";
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
8056
|
-
value: true
|
|
8057
|
-
}));
|
|
8058
|
-
exports["default"] = void 0;
|
|
8059
|
-
var _native = _interopRequireDefault(__webpack_require__(/*! ./native.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/native.js"));
|
|
8060
|
-
var _rng = _interopRequireDefault(__webpack_require__(/*! ./rng.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/rng.js"));
|
|
8061
|
-
var _stringify = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/stringify.js");
|
|
8062
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8063
|
-
function v4(options, buf, offset) {
|
|
8064
|
-
if (_native.default.randomUUID && !buf && !options) {
|
|
8065
|
-
return _native.default.randomUUID();
|
|
8066
|
-
}
|
|
8067
|
-
options = options || {};
|
|
8068
|
-
var rnds = options.random || (options.rng || _rng.default)();
|
|
8069
|
-
|
|
8070
|
-
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
8071
|
-
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
8072
|
-
rnds[8] = rnds[8] & 0x3f | 0x80;
|
|
8073
|
-
|
|
8074
|
-
// Copy bytes to buffer, if provided
|
|
8075
|
-
if (buf) {
|
|
8076
|
-
offset = offset || 0;
|
|
8077
|
-
for (var i = 0; i < 16; ++i) {
|
|
8078
|
-
buf[offset + i] = rnds[i];
|
|
8079
|
-
}
|
|
8080
|
-
return buf;
|
|
8081
|
-
}
|
|
8082
|
-
return (0, _stringify.unsafeStringify)(rnds);
|
|
8083
|
-
}
|
|
8084
|
-
var _default = exports["default"] = v4;
|
|
8085
|
-
|
|
8086
|
-
/***/ }),
|
|
8087
|
-
|
|
8088
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v5.js":
|
|
8089
|
-
/*!***********************************************************************************************!*\
|
|
8090
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v5.js ***!
|
|
8091
|
-
\***********************************************************************************************/
|
|
8092
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
8093
|
-
|
|
8094
|
-
"use strict";
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
8098
|
-
value: true
|
|
8099
|
-
}));
|
|
8100
|
-
exports["default"] = void 0;
|
|
8101
|
-
var _v = _interopRequireDefault(__webpack_require__(/*! ./v35.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v35.js"));
|
|
8102
|
-
var _sha = _interopRequireDefault(__webpack_require__(/*! ./sha1.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/sha1.js"));
|
|
8103
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8104
|
-
var v5 = (0, _v.default)('v5', 0x50, _sha.default);
|
|
8105
|
-
var _default = exports["default"] = v5;
|
|
8106
|
-
|
|
8107
|
-
/***/ }),
|
|
8108
|
-
|
|
8109
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v6.js":
|
|
8110
|
-
/*!***********************************************************************************************!*\
|
|
8111
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v6.js ***!
|
|
8112
|
-
\***********************************************************************************************/
|
|
8113
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
8114
|
-
|
|
8115
|
-
"use strict";
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
8119
|
-
value: true
|
|
8120
|
-
}));
|
|
8121
|
-
exports["default"] = v6;
|
|
8122
|
-
var _stringify = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/stringify.js");
|
|
8123
|
-
var _v = _interopRequireDefault(__webpack_require__(/*! ./v1.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v1.js"));
|
|
8124
|
-
var _v1ToV = _interopRequireDefault(__webpack_require__(/*! ./v1ToV6.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v1ToV6.js"));
|
|
8125
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8126
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8127
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8128
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
8129
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
8130
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8131
|
-
/**
|
|
8132
|
-
*
|
|
8133
|
-
* @param {object} options
|
|
8134
|
-
* @param {Uint8Array=} buf
|
|
8135
|
-
* @param {number=} offset
|
|
8136
|
-
* @returns
|
|
8137
|
-
*/
|
|
8138
|
-
function v6(options = {}, buf, offset = 0) {
|
|
8139
|
-
// v6 is v1 with different field layout, so we start with a v1 UUID, albeit
|
|
8140
|
-
// with slightly different behavior around how the clock_seq and node fields
|
|
8141
|
-
// are randomized, which is why we call v1 with _v6: true.
|
|
8142
|
-
var bytes = (0, _v.default)(_objectSpread(_objectSpread({}, options), {}, {
|
|
8143
|
-
_v6: true
|
|
8144
|
-
}), new Uint8Array(16));
|
|
8145
|
-
|
|
8146
|
-
// Reorder the fields to v6 layout.
|
|
8147
|
-
bytes = (0, _v1ToV.default)(bytes);
|
|
8148
|
-
|
|
8149
|
-
// Return as a byte array if requested
|
|
8150
|
-
if (buf) {
|
|
8151
|
-
for (var i = 0; i < 16; i++) {
|
|
8152
|
-
buf[offset + i] = bytes[i];
|
|
8153
|
-
}
|
|
8154
|
-
return buf;
|
|
8155
|
-
}
|
|
8156
|
-
return (0, _stringify.unsafeStringify)(bytes);
|
|
8157
|
-
}
|
|
8158
|
-
|
|
8159
|
-
/***/ }),
|
|
8160
|
-
|
|
8161
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v6ToV1.js":
|
|
8162
|
-
/*!***************************************************************************************************!*\
|
|
8163
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v6ToV1.js ***!
|
|
8164
|
-
\***************************************************************************************************/
|
|
8165
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
8166
|
-
|
|
8167
|
-
"use strict";
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
8171
|
-
value: true
|
|
8172
|
-
}));
|
|
8173
|
-
exports["default"] = v6ToV1;
|
|
8174
|
-
var _parse = _interopRequireDefault(__webpack_require__(/*! ./parse.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/parse.js"));
|
|
8175
|
-
var _stringify = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/stringify.js");
|
|
8176
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8177
|
-
/**
|
|
8178
|
-
* Convert a v6 UUID to a v1 UUID
|
|
8179
|
-
*
|
|
8180
|
-
* @param {string|Uint8Array} uuid - The v6 UUID to convert to v6
|
|
8181
|
-
* @returns {string|Uint8Array} The v1 UUID as the same type as the `uuid` arg
|
|
8182
|
-
* (string or Uint8Array)
|
|
8183
|
-
*/
|
|
8184
|
-
function v6ToV1(uuid) {
|
|
8185
|
-
var v6Bytes = typeof uuid === 'string' ? (0, _parse.default)(uuid) : uuid;
|
|
8186
|
-
var v1Bytes = _v6ToV1(v6Bytes);
|
|
8187
|
-
return typeof uuid === 'string' ? (0, _stringify.unsafeStringify)(v1Bytes) : v1Bytes;
|
|
8188
|
-
}
|
|
8189
|
-
|
|
8190
|
-
// Do the field transformation needed for v6 -> v1
|
|
8191
|
-
function _v6ToV1(v6Bytes) {
|
|
8192
|
-
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]);
|
|
8193
|
-
}
|
|
8194
|
-
|
|
8195
|
-
/***/ }),
|
|
8196
|
-
|
|
8197
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v7.js":
|
|
8198
|
-
/*!***********************************************************************************************!*\
|
|
8199
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/v7.js ***!
|
|
8200
|
-
\***********************************************************************************************/
|
|
8201
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
8202
|
-
|
|
8203
|
-
"use strict";
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
8207
|
-
value: true
|
|
8208
|
-
}));
|
|
8209
|
-
exports["default"] = void 0;
|
|
8210
|
-
var _rng = _interopRequireDefault(__webpack_require__(/*! ./rng.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/rng.js"));
|
|
8211
|
-
var _stringify = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/stringify.js");
|
|
8212
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8213
|
-
/**
|
|
8214
|
-
* UUID V7 - Unix Epoch time-based UUID
|
|
8215
|
-
*
|
|
8216
|
-
* The IETF has published RFC9562, introducing 3 new UUID versions (6,7,8). This
|
|
8217
|
-
* implementation of V7 is based on the accepted, though not yet approved,
|
|
8218
|
-
* revisions.
|
|
8219
|
-
*
|
|
8220
|
-
* RFC 9562:https://www.rfc-editor.org/rfc/rfc9562.html Universally Unique
|
|
8221
|
-
* IDentifiers (UUIDs)
|
|
8222
|
-
|
|
8223
|
-
*
|
|
8224
|
-
* Sample V7 value:
|
|
8225
|
-
* https://www.rfc-editor.org/rfc/rfc9562.html#name-example-of-a-uuidv7-value
|
|
8226
|
-
*
|
|
8227
|
-
* Monotonic Bit Layout: RFC rfc9562.6.2 Method 1, Dedicated Counter Bits ref:
|
|
8228
|
-
* https://www.rfc-editor.org/rfc/rfc9562.html#section-6.2-5.1
|
|
8229
|
-
*
|
|
8230
|
-
* 0 1 2 3 0 1 2 3 4 5 6
|
|
8231
|
-
* 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
|
|
8232
|
-
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
8233
|
-
* | unix_ts_ms |
|
|
8234
|
-
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
8235
|
-
* | unix_ts_ms | ver | seq_hi |
|
|
8236
|
-
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
8237
|
-
* |var| seq_low | rand |
|
|
8238
|
-
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
8239
|
-
* | rand |
|
|
8240
|
-
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
8241
|
-
*
|
|
8242
|
-
* seq is a 31 bit serialized counter; comprised of 12 bit seq_hi and 19 bit
|
|
8243
|
-
* seq_low, and randomly initialized upon timestamp change. 31 bit counter size
|
|
8244
|
-
* was selected as any bitwise operations in node are done as _signed_ 32 bit
|
|
8245
|
-
* ints. we exclude the sign bit.
|
|
8246
|
-
*/
|
|
8247
|
-
|
|
8248
|
-
var _seqLow = null;
|
|
8249
|
-
var _seqHigh = null;
|
|
8250
|
-
var _msecs = 0;
|
|
8251
|
-
function v7(options, buf, offset) {
|
|
8252
|
-
options = options || {};
|
|
8253
|
-
|
|
8254
|
-
// initialize buffer and pointer
|
|
8255
|
-
var i = buf && offset || 0;
|
|
8256
|
-
var b = buf || new Uint8Array(16);
|
|
8257
|
-
|
|
8258
|
-
// rnds is Uint8Array(16) filled with random bytes
|
|
8259
|
-
var rnds = options.random || (options.rng || _rng.default)();
|
|
8260
|
-
|
|
8261
|
-
// milliseconds since unix epoch, 1970-01-01 00:00
|
|
8262
|
-
var msecs = options.msecs !== undefined ? options.msecs : Date.now();
|
|
8263
|
-
|
|
8264
|
-
// seq is user provided 31 bit counter
|
|
8265
|
-
var seq = options.seq !== undefined ? options.seq : null;
|
|
8266
|
-
|
|
8267
|
-
// initialize local seq high/low parts
|
|
8268
|
-
var seqHigh = _seqHigh;
|
|
8269
|
-
var seqLow = _seqLow;
|
|
8270
|
-
|
|
8271
|
-
// check if clock has advanced and user has not provided msecs
|
|
8272
|
-
if (msecs > _msecs && options.msecs === undefined) {
|
|
8273
|
-
_msecs = msecs;
|
|
8274
|
-
|
|
8275
|
-
// unless user provided seq, reset seq parts
|
|
8276
|
-
if (seq !== null) {
|
|
8277
|
-
seqHigh = null;
|
|
8278
|
-
seqLow = null;
|
|
8279
|
-
}
|
|
8280
|
-
}
|
|
8281
|
-
|
|
8282
|
-
// if we have a user provided seq
|
|
8283
|
-
if (seq !== null) {
|
|
8284
|
-
// trim provided seq to 31 bits of value, avoiding overflow
|
|
8285
|
-
if (seq > 0x7fffffff) {
|
|
8286
|
-
seq = 0x7fffffff;
|
|
8287
|
-
}
|
|
8288
|
-
|
|
8289
|
-
// split provided seq into high/low parts
|
|
8290
|
-
seqHigh = seq >>> 19 & 0xfff;
|
|
8291
|
-
seqLow = seq & 0x7ffff;
|
|
8292
|
-
}
|
|
8293
|
-
|
|
8294
|
-
// randomly initialize seq
|
|
8295
|
-
if (seqHigh === null || seqLow === null) {
|
|
8296
|
-
seqHigh = rnds[6] & 0x7f;
|
|
8297
|
-
seqHigh = seqHigh << 8 | rnds[7];
|
|
8298
|
-
seqLow = rnds[8] & 0x3f; // pad for var
|
|
8299
|
-
seqLow = seqLow << 8 | rnds[9];
|
|
8300
|
-
seqLow = seqLow << 5 | rnds[10] >>> 3;
|
|
8301
|
-
}
|
|
8302
|
-
|
|
8303
|
-
// increment seq if within msecs window
|
|
8304
|
-
if (msecs + 10000 > _msecs && seq === null) {
|
|
8305
|
-
if (++seqLow > 0x7ffff) {
|
|
8306
|
-
seqLow = 0;
|
|
8307
|
-
if (++seqHigh > 0xfff) {
|
|
8308
|
-
seqHigh = 0;
|
|
8309
|
-
|
|
8310
|
-
// increment internal _msecs. this allows us to continue incrementing
|
|
8311
|
-
// while staying monotonic. Note, once we hit 10k milliseconds beyond system
|
|
8312
|
-
// clock, we will reset breaking monotonicity (after (2^31)*10000 generations)
|
|
8313
|
-
_msecs++;
|
|
8314
|
-
}
|
|
8315
|
-
}
|
|
8316
|
-
} else {
|
|
8317
|
-
// resetting; we have advanced more than
|
|
8318
|
-
// 10k milliseconds beyond system clock
|
|
8319
|
-
_msecs = msecs;
|
|
8320
|
-
}
|
|
8321
|
-
_seqHigh = seqHigh;
|
|
8322
|
-
_seqLow = seqLow;
|
|
8323
|
-
|
|
8324
|
-
// [bytes 0-5] 48 bits of local timestamp
|
|
8325
|
-
b[i++] = _msecs / 0x10000000000 & 0xff;
|
|
8326
|
-
b[i++] = _msecs / 0x100000000 & 0xff;
|
|
8327
|
-
b[i++] = _msecs / 0x1000000 & 0xff;
|
|
8328
|
-
b[i++] = _msecs / 0x10000 & 0xff;
|
|
8329
|
-
b[i++] = _msecs / 0x100 & 0xff;
|
|
8330
|
-
b[i++] = _msecs & 0xff;
|
|
8331
|
-
|
|
8332
|
-
// [byte 6] - set 4 bits of version (7) with first 4 bits seq_hi
|
|
8333
|
-
b[i++] = seqHigh >>> 4 & 0x0f | 0x70;
|
|
8334
|
-
|
|
8335
|
-
// [byte 7] remaining 8 bits of seq_hi
|
|
8336
|
-
b[i++] = seqHigh & 0xff;
|
|
8337
|
-
|
|
8338
|
-
// [byte 8] - variant (2 bits), first 6 bits seq_low
|
|
8339
|
-
b[i++] = seqLow >>> 13 & 0x3f | 0x80;
|
|
8340
|
-
|
|
8341
|
-
// [byte 9] 8 bits seq_low
|
|
8342
|
-
b[i++] = seqLow >>> 5 & 0xff;
|
|
8343
|
-
|
|
8344
|
-
// [byte 10] remaining 5 bits seq_low, 3 bits random
|
|
8345
|
-
b[i++] = seqLow << 3 & 0xff | rnds[10] & 0x07;
|
|
8346
|
-
|
|
8347
|
-
// [bytes 11-15] always random
|
|
8348
|
-
b[i++] = rnds[11];
|
|
8349
|
-
b[i++] = rnds[12];
|
|
8350
|
-
b[i++] = rnds[13];
|
|
8351
|
-
b[i++] = rnds[14];
|
|
8352
|
-
b[i++] = rnds[15];
|
|
8353
|
-
return buf || (0, _stringify.unsafeStringify)(b);
|
|
8354
|
-
}
|
|
8355
|
-
var _default = exports["default"] = v7;
|
|
8356
|
-
|
|
8357
|
-
/***/ }),
|
|
8358
|
-
|
|
8359
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/validate.js":
|
|
8360
|
-
/*!*****************************************************************************************************!*\
|
|
8361
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/validate.js ***!
|
|
8362
|
-
\*****************************************************************************************************/
|
|
8363
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
8364
|
-
|
|
8365
|
-
"use strict";
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
8369
|
-
value: true
|
|
8370
|
-
}));
|
|
8371
|
-
exports["default"] = void 0;
|
|
8372
|
-
var _regex = _interopRequireDefault(__webpack_require__(/*! ./regex.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/regex.js"));
|
|
8373
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8374
|
-
function validate(uuid) {
|
|
8375
|
-
return typeof uuid === 'string' && _regex.default.test(uuid);
|
|
8376
|
-
}
|
|
8377
|
-
var _default = exports["default"] = validate;
|
|
8378
|
-
|
|
8379
|
-
/***/ }),
|
|
8380
|
-
|
|
8381
|
-
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/version.js":
|
|
8382
|
-
/*!****************************************************************************************************!*\
|
|
8383
|
-
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/version.js ***!
|
|
8384
|
-
\****************************************************************************************************/
|
|
8385
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
8386
|
-
|
|
8387
|
-
"use strict";
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
8391
|
-
value: true
|
|
8392
|
-
}));
|
|
8393
|
-
exports["default"] = void 0;
|
|
8394
|
-
var _validate = _interopRequireDefault(__webpack_require__(/*! ./validate.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/commonjs-browser/validate.js"));
|
|
8395
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8396
|
-
function version(uuid) {
|
|
8397
|
-
if (!(0, _validate.default)(uuid)) {
|
|
8398
|
-
throw TypeError('Invalid UUID');
|
|
8399
|
-
}
|
|
8400
|
-
return parseInt(uuid.slice(14, 15), 16);
|
|
8401
|
-
}
|
|
8402
|
-
var _default = exports["default"] = version;
|
|
8403
|
-
|
|
8404
|
-
/***/ }),
|
|
8405
|
-
|
|
8406
|
-
/***/ "../../node_modules/elkjs/lib/elk.bundled.js":
|
|
8407
|
-
/*!***************************************************!*\
|
|
8408
|
-
!*** ../../node_modules/elkjs/lib/elk.bundled.js ***!
|
|
8409
|
-
\***************************************************/
|
|
8410
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8411
|
-
|
|
8412
|
-
(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=undefined;if(!f&&c)return require(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=undefined,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
|
8413
|
-
"use strict";
|
|
8414
|
-
|
|
8415
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8416
|
-
value: true
|
|
8417
|
-
});
|
|
8418
|
-
exports["default"] = void 0;
|
|
8419
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8420
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
8421
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
8422
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
8423
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8424
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8425
|
-
/*******************************************************************************
|
|
8426
|
-
* Copyright (c) 2017 Kiel University and others.
|
|
8427
|
-
*
|
|
8428
|
-
* This program and the accompanying materials are made
|
|
8429
|
-
* available under the terms of the Eclipse Public License 2.0
|
|
8430
|
-
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
8431
|
-
*
|
|
8432
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
8433
|
-
*******************************************************************************/
|
|
8434
|
-
var ELK = exports["default"] = /*#__PURE__*/function () {
|
|
8435
|
-
function ELK() {
|
|
8436
|
-
var _this = this;
|
|
8437
|
-
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
8438
|
-
_ref$defaultLayoutOpt = _ref.defaultLayoutOptions,
|
|
8439
|
-
defaultLayoutOptions = _ref$defaultLayoutOpt === void 0 ? {} : _ref$defaultLayoutOpt,
|
|
8440
|
-
_ref$algorithms = _ref.algorithms,
|
|
8441
|
-
algorithms = _ref$algorithms === void 0 ? ['layered', 'stress', 'mrtree', 'radial', 'force', 'disco', 'sporeOverlap', 'sporeCompaction', 'rectpacking'] : _ref$algorithms,
|
|
8442
|
-
workerFactory = _ref.workerFactory,
|
|
8443
|
-
workerUrl = _ref.workerUrl;
|
|
8444
|
-
_classCallCheck(this, ELK);
|
|
8445
|
-
this.defaultLayoutOptions = defaultLayoutOptions;
|
|
8446
|
-
this.initialized = false;
|
|
8447
|
-
|
|
8448
|
-
// check valid worker construction possible
|
|
8449
|
-
if (typeof workerUrl === 'undefined' && typeof workerFactory === 'undefined') {
|
|
8450
|
-
throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");
|
|
8451
|
-
}
|
|
8452
|
-
var factory = workerFactory;
|
|
8453
|
-
if (typeof workerUrl !== 'undefined' && typeof workerFactory === 'undefined') {
|
|
8454
|
-
// use default Web Worker
|
|
8455
|
-
factory = function factory(url) {
|
|
8456
|
-
return new Worker(url);
|
|
8457
|
-
};
|
|
8458
|
-
}
|
|
8459
|
-
|
|
8460
|
-
// create the worker
|
|
8461
|
-
var worker = factory(workerUrl);
|
|
8462
|
-
if (typeof worker.postMessage !== 'function') {
|
|
8463
|
-
throw new TypeError("Created worker does not provide" + " the required 'postMessage' function.");
|
|
8464
|
-
}
|
|
8465
|
-
|
|
8466
|
-
// wrap the worker to return promises
|
|
8467
|
-
this.worker = new PromisedWorker(worker);
|
|
8468
|
-
|
|
8469
|
-
// initially register algorithms
|
|
8470
|
-
this.worker.postMessage({
|
|
8471
|
-
cmd: 'register',
|
|
8472
|
-
algorithms: algorithms
|
|
8473
|
-
}).then(function (r) {
|
|
8474
|
-
return _this.initialized = true;
|
|
8475
|
-
})["catch"](console.err);
|
|
8476
|
-
}
|
|
8477
|
-
return _createClass(ELK, [{
|
|
8478
|
-
key: "layout",
|
|
8479
|
-
value: function layout(graph) {
|
|
8480
|
-
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
8481
|
-
_ref2$layoutOptions = _ref2.layoutOptions,
|
|
8482
|
-
layoutOptions = _ref2$layoutOptions === void 0 ? this.defaultLayoutOptions : _ref2$layoutOptions,
|
|
8483
|
-
_ref2$logging = _ref2.logging,
|
|
8484
|
-
logging = _ref2$logging === void 0 ? false : _ref2$logging,
|
|
8485
|
-
_ref2$measureExecutio = _ref2.measureExecutionTime,
|
|
8486
|
-
measureExecutionTime = _ref2$measureExecutio === void 0 ? false : _ref2$measureExecutio;
|
|
8487
|
-
if (!graph) {
|
|
8488
|
-
return Promise.reject(new Error("Missing mandatory parameter 'graph'."));
|
|
8489
|
-
}
|
|
8490
|
-
return this.worker.postMessage({
|
|
8491
|
-
cmd: 'layout',
|
|
8492
|
-
graph: graph,
|
|
8493
|
-
layoutOptions: layoutOptions,
|
|
8494
|
-
options: {
|
|
8495
|
-
logging: logging,
|
|
8496
|
-
measureExecutionTime: measureExecutionTime
|
|
8497
|
-
}
|
|
8498
|
-
});
|
|
8499
|
-
}
|
|
8500
|
-
}, {
|
|
8501
|
-
key: "knownLayoutAlgorithms",
|
|
8502
|
-
value: function knownLayoutAlgorithms() {
|
|
8503
|
-
return this.worker.postMessage({
|
|
8504
|
-
cmd: 'algorithms'
|
|
8505
|
-
});
|
|
8506
|
-
}
|
|
8507
|
-
}, {
|
|
8508
|
-
key: "knownLayoutOptions",
|
|
8509
|
-
value: function knownLayoutOptions() {
|
|
8510
|
-
return this.worker.postMessage({
|
|
8511
|
-
cmd: 'options'
|
|
8512
|
-
});
|
|
8513
|
-
}
|
|
8514
|
-
}, {
|
|
8515
|
-
key: "knownLayoutCategories",
|
|
8516
|
-
value: function knownLayoutCategories() {
|
|
8517
|
-
return this.worker.postMessage({
|
|
8518
|
-
cmd: 'categories'
|
|
8519
|
-
});
|
|
8520
|
-
}
|
|
8521
|
-
}, {
|
|
8522
|
-
key: "terminateWorker",
|
|
8523
|
-
value: function terminateWorker() {
|
|
8524
|
-
if (this.worker) this.worker.terminate();
|
|
8525
|
-
}
|
|
8526
|
-
}]);
|
|
8527
|
-
}();
|
|
8528
|
-
var PromisedWorker = /*#__PURE__*/function () {
|
|
8529
|
-
function PromisedWorker(worker) {
|
|
8530
|
-
var _this2 = this;
|
|
8531
|
-
_classCallCheck(this, PromisedWorker);
|
|
8532
|
-
if (worker === undefined) {
|
|
8533
|
-
throw new Error("Missing mandatory parameter 'worker'.");
|
|
8534
|
-
}
|
|
8535
|
-
this.resolvers = {};
|
|
8536
|
-
this.worker = worker;
|
|
8537
|
-
this.worker.onmessage = function (answer) {
|
|
8538
|
-
// why is this necessary?
|
|
8539
|
-
setTimeout(function () {
|
|
8540
|
-
_this2.receive(_this2, answer);
|
|
8541
|
-
}, 0);
|
|
8542
|
-
};
|
|
8543
|
-
}
|
|
8544
|
-
return _createClass(PromisedWorker, [{
|
|
8545
|
-
key: "postMessage",
|
|
8546
|
-
value: function postMessage(msg) {
|
|
8547
|
-
var id = this.id || 0;
|
|
8548
|
-
this.id = id + 1;
|
|
8549
|
-
msg.id = id;
|
|
8550
|
-
var self = this;
|
|
8551
|
-
return new Promise(function (resolve, reject) {
|
|
8552
|
-
// prepare the resolver
|
|
8553
|
-
self.resolvers[id] = function (err, res) {
|
|
8554
|
-
if (err) {
|
|
8555
|
-
self.convertGwtStyleError(err);
|
|
8556
|
-
reject(err);
|
|
8557
|
-
} else {
|
|
8558
|
-
resolve(res);
|
|
8559
|
-
}
|
|
8560
|
-
};
|
|
8561
|
-
// post the message
|
|
8562
|
-
self.worker.postMessage(msg);
|
|
8563
|
-
});
|
|
8564
|
-
}
|
|
8565
|
-
}, {
|
|
8566
|
-
key: "receive",
|
|
8567
|
-
value: function receive(self, answer) {
|
|
8568
|
-
var json = answer.data;
|
|
8569
|
-
var resolver = self.resolvers[json.id];
|
|
8570
|
-
if (resolver) {
|
|
8571
|
-
delete self.resolvers[json.id];
|
|
8572
|
-
if (json.error) {
|
|
8573
|
-
resolver(json.error);
|
|
8574
|
-
} else {
|
|
8575
|
-
resolver(null, json.data);
|
|
8576
|
-
}
|
|
8577
|
-
}
|
|
8578
|
-
}
|
|
8579
|
-
}, {
|
|
8580
|
-
key: "terminate",
|
|
8581
|
-
value: function terminate() {
|
|
8582
|
-
if (this.worker) {
|
|
8583
|
-
this.worker.terminate();
|
|
7559
|
+
}, {
|
|
7560
|
+
key: "terminate",
|
|
7561
|
+
value: function terminate() {
|
|
7562
|
+
if (this.worker) {
|
|
7563
|
+
this.worker.terminate();
|
|
8584
7564
|
}
|
|
8585
7565
|
}
|
|
8586
7566
|
}, {
|
|
@@ -38499,7 +37479,7 @@ var GEdgeLayoutableBuilder;
|
|
|
38499
37479
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
38500
37480
|
exports.GEdgeBuilder = exports.GEdge = void 0;
|
|
38501
37481
|
/********************************************************************************
|
|
38502
|
-
* Copyright (c) 2022 STMicroelectronics and others.
|
|
37482
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
38503
37483
|
*
|
|
38504
37484
|
* This program and the accompanying materials are made available under the
|
|
38505
37485
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -38527,8 +37507,9 @@ class GEdge extends gmodel_element_1.GModelElement {
|
|
|
38527
37507
|
}
|
|
38528
37508
|
exports.GEdge = GEdge;
|
|
38529
37509
|
(function (GEdge) {
|
|
37510
|
+
/** @deprecated Use `object instanceof GEdge` directly — this guard adds no value over the language operator. */
|
|
38530
37511
|
function is(object) {
|
|
38531
|
-
return GEdge
|
|
37512
|
+
return object instanceof GEdge;
|
|
38532
37513
|
}
|
|
38533
37514
|
GEdge.is = is;
|
|
38534
37515
|
})(GEdge || (exports.GEdge = GEdge = {}));
|
|
@@ -39562,14 +38543,24 @@ __exportStar(__webpack_require__(/*! ./gshaped-prerendered-element */ "../../pac
|
|
|
39562
38543
|
/*!**************************************************!*\
|
|
39563
38544
|
!*** ../../packages/layout-elk/lib/di.config.js ***!
|
|
39564
38545
|
\**************************************************/
|
|
39565
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
38546
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
39566
38547
|
|
|
39567
38548
|
"use strict";
|
|
39568
38549
|
|
|
38550
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
38551
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
38552
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
38553
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
38554
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
38555
|
+
};
|
|
38556
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
38557
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
38558
|
+
};
|
|
39569
38559
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
38560
|
+
exports.ElkLayoutModule = void 0;
|
|
39570
38561
|
exports.configureELKLayoutModule = configureELKLayoutModule;
|
|
39571
38562
|
/********************************************************************************
|
|
39572
|
-
* Copyright (c) 2022-
|
|
38563
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
39573
38564
|
*
|
|
39574
38565
|
* This program and the accompanying materials are made available under the
|
|
39575
38566
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -39590,57 +38581,67 @@ const element_filter_1 = __webpack_require__(/*! ./element-filter */ "../../pack
|
|
|
39590
38581
|
const glsp_elk_layout_engine_1 = __webpack_require__(/*! ./glsp-elk-layout-engine */ "../../packages/layout-elk/lib/glsp-elk-layout-engine.js");
|
|
39591
38582
|
const layout_configurator_1 = __webpack_require__(/*! ./layout-configurator */ "../../packages/layout-elk/lib/layout-configurator.js");
|
|
39592
38583
|
/**
|
|
39593
|
-
*
|
|
39594
|
-
* implementation. A set of configuration options is provided to enable easy customization. In most cases at least
|
|
39595
|
-
* the custom {@link layoutConfigurator} binding should be provided (in addition to the required `algorithms' property) via these options.
|
|
38584
|
+
* DI module that provides the bindings needed to use the {@link GlspElkLayoutEngine} in a node GLSP server.
|
|
39596
38585
|
*
|
|
39597
|
-
*
|
|
38586
|
+
* Subclass and override the `bindXxx()` hooks to customize individual bindings — e.g. to swap the
|
|
38587
|
+
* layout configurator or element filter without re-implementing the whole module. The module is
|
|
38588
|
+
* only meaningful in combination with a `GLSPDiagramModule`.
|
|
39598
38589
|
*
|
|
39599
|
-
*
|
|
39600
|
-
* - {@link
|
|
39601
|
-
* - {@link
|
|
39602
|
-
* - {@link LayoutEngine}
|
|
38590
|
+
* Bindings provided:
|
|
38591
|
+
* - {@link ElementFilter}
|
|
38592
|
+
* - {@link LayoutConfigurator}
|
|
39603
38593
|
* - {@link ElkFactory}
|
|
39604
|
-
*
|
|
39605
|
-
* @
|
|
39606
|
-
* @returns A DI module that can be loaded as additional module when configuring a diagram module for a GLSP server.
|
|
38594
|
+
* - {@link GlspElkLayoutEngine} + {@link LayoutEngine} (toService)
|
|
38595
|
+
* - Fallback bindings for {@link Logger} and {@link LoggerFactory} if absent.
|
|
39607
38596
|
*/
|
|
39608
|
-
|
|
39609
|
-
|
|
39610
|
-
|
|
39611
|
-
|
|
39612
|
-
|
|
39613
|
-
|
|
39614
|
-
|
|
39615
|
-
|
|
39616
|
-
|
|
39617
|
-
|
|
39618
|
-
|
|
39619
|
-
else {
|
|
39620
|
-
bind(layout_configurator_1.LayoutConfigurator)
|
|
39621
|
-
.toDynamicValue(context => new layout_configurator_1.FallbackLayoutConfigurator(options.algorithms, options.defaultLayoutOptions))
|
|
39622
|
-
.inSingletonScope();
|
|
39623
|
-
}
|
|
39624
|
-
const elkFactory = () => new elk_bundled_1.default({
|
|
39625
|
-
algorithms: options.algorithms,
|
|
39626
|
-
defaultLayoutOptions: options.defaultLayoutOptions,
|
|
39627
|
-
// The node implementation relied on elkjs' `FakeWorker` to set the `workerFactory`.
|
|
39628
|
-
// However, since the required file is dynamically loaded and not available in a web-worker context,
|
|
39629
|
-
// it needs to be mocked manually.
|
|
39630
|
-
workerFactory: options.isWebWorker ? () => ({ postMessage: () => { } }) : undefined
|
|
39631
|
-
});
|
|
39632
|
-
bind(glsp_elk_layout_engine_1.ElkFactory).toConstantValue(elkFactory);
|
|
39633
|
-
bind(glsp_elk_layout_engine_1.GlspElkLayoutEngine)
|
|
39634
|
-
.toDynamicValue(context => {
|
|
39635
|
-
const container = context.container;
|
|
39636
|
-
const factory = container.get(glsp_elk_layout_engine_1.ElkFactory);
|
|
39637
|
-
const filter = container.get(element_filter_1.ElementFilter);
|
|
39638
|
-
const configurator = container.get(layout_configurator_1.LayoutConfigurator);
|
|
39639
|
-
const modelState = container.get(server_1.ModelState);
|
|
39640
|
-
return new glsp_elk_layout_engine_1.GlspElkLayoutEngine(factory, filter, configurator, modelState);
|
|
39641
|
-
})
|
|
39642
|
-
.inSingletonScope();
|
|
38597
|
+
let ElkLayoutModule = class ElkLayoutModule extends server_1.GLSPModule {
|
|
38598
|
+
constructor(options) {
|
|
38599
|
+
super();
|
|
38600
|
+
this.options = options;
|
|
38601
|
+
}
|
|
38602
|
+
configure(bind, unbind, isBound, rebind) {
|
|
38603
|
+
const context = { bind, unbind, isBound, rebind };
|
|
38604
|
+
(0, server_1.applyBindingTarget)(context, element_filter_1.ElementFilter, this.bindElementFilter()).inSingletonScope();
|
|
38605
|
+
(0, server_1.applyBindingTarget)(context, layout_configurator_1.LayoutConfigurator, this.bindLayoutConfigurator()).inSingletonScope();
|
|
38606
|
+
(0, server_1.applyBindingTarget)(context, glsp_elk_layout_engine_1.ElkFactory, this.bindElkFactory());
|
|
38607
|
+
(0, server_1.applyBindingTarget)(context, glsp_elk_layout_engine_1.GlspElkLayoutEngine, this.bindGlspElkLayoutEngine()).inSingletonScope();
|
|
39643
38608
|
bind(server_1.LayoutEngine).toService(glsp_elk_layout_engine_1.GlspElkLayoutEngine);
|
|
38609
|
+
this.bindLoggerFallbacks(bind, isBound);
|
|
38610
|
+
}
|
|
38611
|
+
bindElementFilter() {
|
|
38612
|
+
var _a;
|
|
38613
|
+
return (_a = this.options.elementFilter) !== null && _a !== void 0 ? _a : element_filter_1.DefaultElementFilter;
|
|
38614
|
+
}
|
|
38615
|
+
bindLayoutConfigurator() {
|
|
38616
|
+
if (this.options.layoutConfigurator) {
|
|
38617
|
+
return this.options.layoutConfigurator;
|
|
38618
|
+
}
|
|
38619
|
+
return { dynamicValue: () => new layout_configurator_1.FallbackLayoutConfigurator(this.options.algorithms, this.options.defaultLayoutOptions) };
|
|
38620
|
+
}
|
|
38621
|
+
bindElkFactory() {
|
|
38622
|
+
const { algorithms, defaultLayoutOptions, isWebWorker } = this.options;
|
|
38623
|
+
const factory = () => new elk_bundled_1.default({
|
|
38624
|
+
algorithms,
|
|
38625
|
+
defaultLayoutOptions,
|
|
38626
|
+
// The node implementation relies on elkjs' `FakeWorker` to set the `workerFactory`. The required file is
|
|
38627
|
+
// dynamically loaded and not available in a web-worker context, so it has to be mocked manually there.
|
|
38628
|
+
workerFactory: isWebWorker ? () => ({ postMessage: () => { } }) : undefined
|
|
38629
|
+
});
|
|
38630
|
+
return { constantValue: factory };
|
|
38631
|
+
}
|
|
38632
|
+
bindGlspElkLayoutEngine() {
|
|
38633
|
+
return {
|
|
38634
|
+
dynamicValue: ctx => {
|
|
38635
|
+
const factory = ctx.container.get(glsp_elk_layout_engine_1.ElkFactory);
|
|
38636
|
+
const filter = ctx.container.get(element_filter_1.ElementFilter);
|
|
38637
|
+
const configurator = ctx.container.get(layout_configurator_1.LayoutConfigurator);
|
|
38638
|
+
const modelState = ctx.container.get(server_1.ModelState);
|
|
38639
|
+
return new glsp_elk_layout_engine_1.GlspElkLayoutEngine(factory, filter, configurator, modelState);
|
|
38640
|
+
}
|
|
38641
|
+
};
|
|
38642
|
+
}
|
|
38643
|
+
/** Provide fallbacks so the module works standalone in tests/specs that don't preconfigure logging. */
|
|
38644
|
+
bindLoggerFallbacks(bind, isBound) {
|
|
39644
38645
|
if (!isBound(server_1.Logger)) {
|
|
39645
38646
|
bind(server_1.Logger).to(server_1.NullLogger).inSingletonScope();
|
|
39646
38647
|
}
|
|
@@ -39651,7 +38652,19 @@ function configureELKLayoutModule(options) {
|
|
|
39651
38652
|
return logger;
|
|
39652
38653
|
});
|
|
39653
38654
|
}
|
|
39654
|
-
}
|
|
38655
|
+
}
|
|
38656
|
+
};
|
|
38657
|
+
exports.ElkLayoutModule = ElkLayoutModule;
|
|
38658
|
+
exports.ElkLayoutModule = ElkLayoutModule = __decorate([
|
|
38659
|
+
(0, inversify_1.injectable)(),
|
|
38660
|
+
__metadata("design:paramtypes", [Object])
|
|
38661
|
+
], ElkLayoutModule);
|
|
38662
|
+
/**
|
|
38663
|
+
* Utility wrapper around {@link ElkLayoutModule} for the common case where no override is needed.
|
|
38664
|
+
* Prefer subclassing {@link ElkLayoutModule} when individual bindings need to be customized.
|
|
38665
|
+
*/
|
|
38666
|
+
function configureELKLayoutModule(options) {
|
|
38667
|
+
return new ElkLayoutModule(options);
|
|
39655
38668
|
}
|
|
39656
38669
|
|
|
39657
38670
|
|
|
@@ -40633,6 +39646,12 @@ let DefaultActionDispatcher = DefaultActionDispatcher_1 = class DefaultActionDis
|
|
|
40633
39646
|
const handledOnClient = this.clientActionForwarder.handle(action);
|
|
40634
39647
|
const actionHandlers = this.actionHandlerRegistry.get(action.kind);
|
|
40635
39648
|
if (!handledOnClient && actionHandlers.length === 0) {
|
|
39649
|
+
// Stale response (e.g. late `RejectAction`) for a pending request that's already
|
|
39650
|
+
// gone — protocol signal, not a handler invocation; drop silently.
|
|
39651
|
+
if (protocol_1.ResponseAction.is(action)) {
|
|
39652
|
+
this.logger.debug(`Stale response '${action.kind}' (responseId='${action.responseId}') has no handler; dropping.`);
|
|
39653
|
+
return;
|
|
39654
|
+
}
|
|
40636
39655
|
throw new glsp_server_error_1.GLSPServerError(`No handler registered for action kind: ${action.kind}`);
|
|
40637
39656
|
}
|
|
40638
39657
|
const responses = [];
|
|
@@ -41092,7 +40111,7 @@ let DefaultGlobalActionProvider = class DefaultGlobalActionProvider {
|
|
|
41092
40111
|
createDiagramContainer(serverContainer, modules) {
|
|
41093
40112
|
const container = serverContainer.createChild();
|
|
41094
40113
|
const clientSessionModule = (0, client_session_module_1.createClientSessionModule)({
|
|
41095
|
-
clientId:
|
|
40114
|
+
clientId: client_session_module_1.TEMPORARY_CLIENT_ID,
|
|
41096
40115
|
glspClient: { process: () => { } },
|
|
41097
40116
|
clientActionKinds: []
|
|
41098
40117
|
});
|
|
@@ -41677,9 +40696,10 @@ function isConstructor(object) {
|
|
|
41677
40696
|
"use strict";
|
|
41678
40697
|
|
|
41679
40698
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
40699
|
+
exports.TEMPORARY_CLIENT_ID = void 0;
|
|
41680
40700
|
exports.createClientSessionModule = createClientSessionModule;
|
|
41681
40701
|
/********************************************************************************
|
|
41682
|
-
* Copyright (c) 2022-
|
|
40702
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
41683
40703
|
*
|
|
41684
40704
|
* This program and the accompanying materials are made available under the
|
|
41685
40705
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -41697,6 +40717,13 @@ const protocol_1 = __webpack_require__(/*! @eclipse-glsp/protocol */ "../../node
|
|
|
41697
40717
|
const di_1 = __webpack_require__(/*! @eclipse-glsp/protocol/lib/di */ "../../node_modules/@eclipse-glsp/protocol/lib/di/index.js");
|
|
41698
40718
|
const inversify_1 = __webpack_require__(/*! inversify */ "../../node_modules/inversify/lib/cjs/index.js");
|
|
41699
40719
|
const service_identifiers_1 = __webpack_require__(/*! ./service-identifiers */ "../../packages/server/lib/common/di/service-identifiers.js");
|
|
40720
|
+
/**
|
|
40721
|
+
* Synthetic `ClientId` used by framework probes that load diagram modules onto a throwaway
|
|
40722
|
+
* container — e.g. {@link DefaultGlobalActionProvider} scraping action-kind metadata at server
|
|
40723
|
+
* startup. Adopters can detect this id in their `ClientSessionInitializer`s to suppress
|
|
40724
|
+
* setup-time diagnostics that don't apply when no real GLSP client is connected.
|
|
40725
|
+
*/
|
|
40726
|
+
exports.TEMPORARY_CLIENT_ID = 'tempId';
|
|
41700
40727
|
/**
|
|
41701
40728
|
* Creates the DI module that binds client session specific configuration
|
|
41702
40729
|
*/
|
|
@@ -42146,7 +41173,7 @@ exports.InstanceMultiBinding = InstanceMultiBinding;
|
|
|
42146
41173
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
42147
41174
|
exports.ServerModule = void 0;
|
|
42148
41175
|
/********************************************************************************
|
|
42149
|
-
* Copyright (c) 2022-
|
|
41176
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
42150
41177
|
*
|
|
42151
41178
|
* This program and the accompanying materials are made available under the
|
|
42152
41179
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -42218,6 +41245,7 @@ class ServerModule extends glsp_module_1.GLSPModule {
|
|
|
42218
41245
|
(0, binding_target_1.applyBindingTarget)(context, client_session_factory_1.ClientSessionFactory, this.bindClientSessionFactory()).inSingletonScope();
|
|
42219
41246
|
(0, binding_target_1.applyBindingTarget)(context, client_session_manager_1.ClientSessionManager, this.bindClientSessionManager()).inSingletonScope();
|
|
42220
41247
|
this.configureMultiBinding(new multi_binding_1.MultiBinding(protocol_1.GLSPServerListener), binding => this.configureGLSPServerListeners(binding));
|
|
41248
|
+
this.configureMultiBinding(new multi_binding_1.MultiBinding(protocol_1.GLSPServerInitializer), binding => this.configureGLSPServerInitializers(binding));
|
|
42221
41249
|
(0, binding_target_1.applyBindingTarget)(context, global_action_provider_1.GlobalActionProvider, this.bindGlobalActionProvider()).inSingletonScope();
|
|
42222
41250
|
if (!isBound(service_identifiers_1.InjectionContainer)) {
|
|
42223
41251
|
(0, binding_target_1.applyBindingTarget)(context, service_identifiers_1.InjectionContainer, this.bindInjectionContainer());
|
|
@@ -42244,6 +41272,9 @@ class ServerModule extends glsp_module_1.GLSPModule {
|
|
|
42244
41272
|
configureGLSPServerListeners(binding) {
|
|
42245
41273
|
binding.add({ service: client_session_manager_1.ClientSessionManager });
|
|
42246
41274
|
}
|
|
41275
|
+
configureGLSPServerInitializers(binding) {
|
|
41276
|
+
// Can be overridden to add contributions
|
|
41277
|
+
}
|
|
42247
41278
|
}
|
|
42248
41279
|
exports.ServerModule = ServerModule;
|
|
42249
41280
|
ServerModule.DIAGRAM_MODULES = 'Diagram_Modules';
|
|
@@ -46213,7 +45244,7 @@ exports.GLSPServerLauncher = GLSPServerLauncher = __decorate([
|
|
|
46213
45244
|
"use strict";
|
|
46214
45245
|
|
|
46215
45246
|
/********************************************************************************
|
|
46216
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
45247
|
+
* Copyright (c) 2023-2026 EclipseSource and others.
|
|
46217
45248
|
*
|
|
46218
45249
|
* This program and the accompanying materials are made available under the
|
|
46219
45250
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -46277,6 +45308,9 @@ let JsonRpcGLSPServerLauncher = class JsonRpcGLSPServerLauncher extends glsp_ser
|
|
|
46277
45308
|
configureClientConnection(serverInstance) {
|
|
46278
45309
|
(0, protocol_1.configureClientConnection)(serverInstance.clientConnection, serverInstance.server);
|
|
46279
45310
|
serverInstance.clientConnection.onNotification(protocol_1.JsonrpcGLSPClient.ShutdownNotification, () => this.disposeServerInstance(serverInstance));
|
|
45311
|
+
// A connection may be unceremoniously be closed (e.g., closing/reloading the browser) in which
|
|
45312
|
+
// case the server must still be disposed
|
|
45313
|
+
serverInstance.clientConnection.onClose(() => this.disposeServerInstance(serverInstance));
|
|
46280
45314
|
this.logger.info('Starting GLSP server connection');
|
|
46281
45315
|
}
|
|
46282
45316
|
createClientProxy(serverInstance) {
|
|
@@ -46379,9 +45413,9 @@ exports.CompoundOperationHandler = CompoundOperationHandler = __decorate([
|
|
|
46379
45413
|
"use strict";
|
|
46380
45414
|
|
|
46381
45415
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
46382
|
-
exports.CreateOperationHandler = void 0;
|
|
45416
|
+
exports.CreateOperationHandler = exports.CreateNodeOperationHandler = exports.CreateEdgeOperationHandler = void 0;
|
|
46383
45417
|
/********************************************************************************
|
|
46384
|
-
* Copyright (c) 2022-
|
|
45418
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
46385
45419
|
*
|
|
46386
45420
|
* This program and the accompanying materials are made available under the
|
|
46387
45421
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -46397,6 +45431,20 @@ exports.CreateOperationHandler = void 0;
|
|
|
46397
45431
|
********************************************************************************/
|
|
46398
45432
|
const protocol_1 = __webpack_require__(/*! @eclipse-glsp/protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/index.js");
|
|
46399
45433
|
const operation_handler_1 = __webpack_require__(/*! ./operation-handler */ "../../packages/server/lib/common/operations/operation-handler.js");
|
|
45434
|
+
var CreateEdgeOperationHandler;
|
|
45435
|
+
(function (CreateEdgeOperationHandler) {
|
|
45436
|
+
function is(object) {
|
|
45437
|
+
return CreateOperationHandler.is(object) && object.operationType === protocol_1.CreateEdgeOperation.KIND;
|
|
45438
|
+
}
|
|
45439
|
+
CreateEdgeOperationHandler.is = is;
|
|
45440
|
+
})(CreateEdgeOperationHandler || (exports.CreateEdgeOperationHandler = CreateEdgeOperationHandler = {}));
|
|
45441
|
+
var CreateNodeOperationHandler;
|
|
45442
|
+
(function (CreateNodeOperationHandler) {
|
|
45443
|
+
function is(object) {
|
|
45444
|
+
return CreateOperationHandler.is(object) && object.operationType === protocol_1.CreateNodeOperation.KIND;
|
|
45445
|
+
}
|
|
45446
|
+
CreateNodeOperationHandler.is = is;
|
|
45447
|
+
})(CreateNodeOperationHandler || (exports.CreateNodeOperationHandler = CreateNodeOperationHandler = {}));
|
|
46400
45448
|
var CreateOperationHandler;
|
|
46401
45449
|
(function (CreateOperationHandler) {
|
|
46402
45450
|
function is(object) {
|
|
@@ -46918,7 +45966,8 @@ const glsp_server_error_1 = __webpack_require__(/*! ../utils/glsp-server-error *
|
|
|
46918
45966
|
const logger_1 = __webpack_require__(/*! ../utils/logger */ "../../packages/server/lib/common/utils/logger.js");
|
|
46919
45967
|
const client_action_1 = __webpack_require__(/*! ./client-action */ "../../packages/server/lib/common/protocol/client-action.js");
|
|
46920
45968
|
let DefaultGLSPServer = DefaultGLSPServer_1 = class DefaultGLSPServer {
|
|
46921
|
-
constructor(serverListeners = []) {
|
|
45969
|
+
constructor(serverListeners = [], initializers = []) {
|
|
45970
|
+
this.initializers = initializers;
|
|
46922
45971
|
this.serverListeners = [];
|
|
46923
45972
|
this.clientSessions = new Map();
|
|
46924
45973
|
serverListeners.forEach(listener => this.addListener(listener));
|
|
@@ -46949,11 +45998,29 @@ let DefaultGLSPServer = DefaultGLSPServer_1 = class DefaultGLSPServer {
|
|
|
46949
45998
|
const serverActions = {};
|
|
46950
45999
|
this.actionProvider.actionKinds.forEach((kinds, diagramType) => (serverActions[diagramType] = kinds));
|
|
46951
46000
|
let result = { protocolVersion: DefaultGLSPServer_1.PROTOCOL_VERSION, serverActions };
|
|
46001
|
+
result = await this.initializeServer(params, result);
|
|
46002
|
+
// keep for backwards compatibility
|
|
46003
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
46952
46004
|
result = await this.handleInitializeArgs(result, params.args);
|
|
46953
46005
|
this.getListenersToNotify('serverInitialized').forEach((listener) => listener.serverInitialized(this));
|
|
46954
46006
|
this.initializeResult = result;
|
|
46955
46007
|
return result;
|
|
46956
46008
|
}
|
|
46009
|
+
async initializeServer(params, result) {
|
|
46010
|
+
for (const initializer of this.initializers) {
|
|
46011
|
+
try {
|
|
46012
|
+
result = await initializer.initializeServer(this, params, result);
|
|
46013
|
+
}
|
|
46014
|
+
catch (error) {
|
|
46015
|
+
this.logger.error(`Error during server initialization from ${initializer.constructor.name}:`, error);
|
|
46016
|
+
throw error;
|
|
46017
|
+
}
|
|
46018
|
+
}
|
|
46019
|
+
return result;
|
|
46020
|
+
}
|
|
46021
|
+
/**
|
|
46022
|
+
* @deprecated Register a `GLSPServerInitializer` instead.
|
|
46023
|
+
*/
|
|
46957
46024
|
handleInitializeArgs(result, args) {
|
|
46958
46025
|
return result;
|
|
46959
46026
|
}
|
|
@@ -47086,7 +46153,9 @@ exports.DefaultGLSPServer = DefaultGLSPServer = DefaultGLSPServer_1 = __decorate
|
|
|
47086
46153
|
(0, inversify_1.injectable)(),
|
|
47087
46154
|
__param(0, (0, inversify_1.multiInject)(protocol_1.GLSPServerListener)),
|
|
47088
46155
|
__param(0, (0, inversify_1.optional)()),
|
|
47089
|
-
|
|
46156
|
+
__param(1, (0, inversify_1.multiInject)(protocol_1.GLSPServerInitializer)),
|
|
46157
|
+
__param(1, (0, inversify_1.optional)()),
|
|
46158
|
+
__metadata("design:paramtypes", [Array, Array])
|
|
47090
46159
|
], DefaultGLSPServer);
|
|
47091
46160
|
|
|
47092
46161
|
|
|
@@ -47264,7 +46333,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
47264
46333
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
47265
46334
|
exports.DefaultClientSessionManager = exports.ClientSessionManager = void 0;
|
|
47266
46335
|
/********************************************************************************
|
|
47267
|
-
* Copyright (c) 2022-
|
|
46336
|
+
* Copyright (c) 2022-2026 STMicroelectronics and others.
|
|
47268
46337
|
*
|
|
47269
46338
|
* This program and the accompanying materials are made available under the
|
|
47270
46339
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -47313,6 +46382,9 @@ let DefaultClientSessionManager = class DefaultClientSessionManager {
|
|
|
47313
46382
|
getSession(clientSessionId) {
|
|
47314
46383
|
return this.clientSessions.get(clientSessionId);
|
|
47315
46384
|
}
|
|
46385
|
+
getSessions() {
|
|
46386
|
+
return Array.from(this.clientSessions.values());
|
|
46387
|
+
}
|
|
47316
46388
|
getSessionsByType(diagramType) {
|
|
47317
46389
|
return Array.from(this.clientSessions.values()).filter(session => session.diagramType === diagramType);
|
|
47318
46390
|
}
|
|
@@ -55104,6 +54176,923 @@ var PatchError = /** @class */ (function (_super) {
|
|
|
55104
54176
|
|
|
55105
54177
|
|
|
55106
54178
|
|
|
54179
|
+
/***/ }),
|
|
54180
|
+
|
|
54181
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/index.js":
|
|
54182
|
+
/*!*********************************************************************************!*\
|
|
54183
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/index.js ***!
|
|
54184
|
+
\*********************************************************************************/
|
|
54185
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54186
|
+
|
|
54187
|
+
"use strict";
|
|
54188
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54189
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54190
|
+
/* harmony export */ MAX: () => (/* reexport safe */ _max_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
54191
|
+
/* harmony export */ NIL: () => (/* reexport safe */ _nil_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
54192
|
+
/* harmony export */ parse: () => (/* reexport safe */ _parse_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
54193
|
+
/* harmony export */ stringify: () => (/* reexport safe */ _stringify_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
54194
|
+
/* harmony export */ v1: () => (/* reexport safe */ _v1_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
54195
|
+
/* harmony export */ v1ToV6: () => (/* reexport safe */ _v1ToV6_js__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
54196
|
+
/* harmony export */ v3: () => (/* reexport safe */ _v3_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
54197
|
+
/* harmony export */ v4: () => (/* reexport safe */ _v4_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
54198
|
+
/* harmony export */ v5: () => (/* reexport safe */ _v5_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
54199
|
+
/* harmony export */ v6: () => (/* reexport safe */ _v6_js__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
54200
|
+
/* harmony export */ v6ToV1: () => (/* reexport safe */ _v6ToV1_js__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
54201
|
+
/* harmony export */ v7: () => (/* reexport safe */ _v7_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
54202
|
+
/* harmony export */ validate: () => (/* reexport safe */ _validate_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
54203
|
+
/* harmony export */ version: () => (/* reexport safe */ _version_js__WEBPACK_IMPORTED_MODULE_13__["default"])
|
|
54204
|
+
/* harmony export */ });
|
|
54205
|
+
/* harmony import */ var _max_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./max.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/max.js");
|
|
54206
|
+
/* harmony import */ var _nil_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./nil.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/nil.js");
|
|
54207
|
+
/* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./parse.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/parse.js");
|
|
54208
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/stringify.js");
|
|
54209
|
+
/* harmony import */ var _v1_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./v1.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v1.js");
|
|
54210
|
+
/* harmony import */ var _v1ToV6_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./v1ToV6.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v1ToV6.js");
|
|
54211
|
+
/* harmony import */ var _v3_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./v3.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v3.js");
|
|
54212
|
+
/* harmony import */ var _v4_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./v4.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v4.js");
|
|
54213
|
+
/* harmony import */ var _v5_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./v5.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v5.js");
|
|
54214
|
+
/* harmony import */ var _v6_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./v6.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v6.js");
|
|
54215
|
+
/* harmony import */ var _v6ToV1_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./v6ToV1.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v6ToV1.js");
|
|
54216
|
+
/* harmony import */ var _v7_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./v7.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v7.js");
|
|
54217
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./validate.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/validate.js");
|
|
54218
|
+
/* harmony import */ var _version_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./version.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/version.js");
|
|
54219
|
+
|
|
54220
|
+
|
|
54221
|
+
|
|
54222
|
+
|
|
54223
|
+
|
|
54224
|
+
|
|
54225
|
+
|
|
54226
|
+
|
|
54227
|
+
|
|
54228
|
+
|
|
54229
|
+
|
|
54230
|
+
|
|
54231
|
+
|
|
54232
|
+
|
|
54233
|
+
|
|
54234
|
+
|
|
54235
|
+
/***/ }),
|
|
54236
|
+
|
|
54237
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/max.js":
|
|
54238
|
+
/*!*******************************************************************************!*\
|
|
54239
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/max.js ***!
|
|
54240
|
+
\*******************************************************************************/
|
|
54241
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54242
|
+
|
|
54243
|
+
"use strict";
|
|
54244
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54245
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54246
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
54247
|
+
/* harmony export */ });
|
|
54248
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ('ffffffff-ffff-ffff-ffff-ffffffffffff');
|
|
54249
|
+
|
|
54250
|
+
|
|
54251
|
+
/***/ }),
|
|
54252
|
+
|
|
54253
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/md5.js":
|
|
54254
|
+
/*!*******************************************************************************!*\
|
|
54255
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/md5.js ***!
|
|
54256
|
+
\*******************************************************************************/
|
|
54257
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54258
|
+
|
|
54259
|
+
"use strict";
|
|
54260
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54261
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54262
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
54263
|
+
/* harmony export */ });
|
|
54264
|
+
function md5(bytes) {
|
|
54265
|
+
const words = uint8ToUint32(bytes);
|
|
54266
|
+
const md5Bytes = wordsToMd5(words, bytes.length * 8);
|
|
54267
|
+
return uint32ToUint8(md5Bytes);
|
|
54268
|
+
}
|
|
54269
|
+
function uint32ToUint8(input) {
|
|
54270
|
+
const bytes = new Uint8Array(input.length * 4);
|
|
54271
|
+
for (let i = 0; i < input.length * 4; i++) {
|
|
54272
|
+
bytes[i] = (input[i >> 2] >>> ((i % 4) * 8)) & 0xff;
|
|
54273
|
+
}
|
|
54274
|
+
return bytes;
|
|
54275
|
+
}
|
|
54276
|
+
function getOutputLength(inputLength8) {
|
|
54277
|
+
return (((inputLength8 + 64) >>> 9) << 4) + 14 + 1;
|
|
54278
|
+
}
|
|
54279
|
+
function wordsToMd5(x, len) {
|
|
54280
|
+
const xpad = new Uint32Array(getOutputLength(len)).fill(0);
|
|
54281
|
+
xpad.set(x);
|
|
54282
|
+
xpad[len >> 5] |= 0x80 << (len % 32);
|
|
54283
|
+
xpad[xpad.length - 1] = len;
|
|
54284
|
+
x = xpad;
|
|
54285
|
+
let a = 1732584193;
|
|
54286
|
+
let b = -271733879;
|
|
54287
|
+
let c = -1732584194;
|
|
54288
|
+
let d = 271733878;
|
|
54289
|
+
for (let i = 0; i < x.length; i += 16) {
|
|
54290
|
+
const olda = a;
|
|
54291
|
+
const oldb = b;
|
|
54292
|
+
const oldc = c;
|
|
54293
|
+
const oldd = d;
|
|
54294
|
+
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
54295
|
+
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
54296
|
+
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
54297
|
+
b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
|
|
54298
|
+
a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
|
|
54299
|
+
d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
|
|
54300
|
+
c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
|
|
54301
|
+
b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
|
|
54302
|
+
a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
|
|
54303
|
+
d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
|
|
54304
|
+
c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
|
|
54305
|
+
b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
|
|
54306
|
+
a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
|
|
54307
|
+
d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
|
|
54308
|
+
c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
|
|
54309
|
+
b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
|
|
54310
|
+
a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
|
|
54311
|
+
d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
|
|
54312
|
+
c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
|
|
54313
|
+
b = md5gg(b, c, d, a, x[i], 20, -373897302);
|
|
54314
|
+
a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
|
|
54315
|
+
d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
|
|
54316
|
+
c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
|
|
54317
|
+
b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
|
|
54318
|
+
a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
|
|
54319
|
+
d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
|
|
54320
|
+
c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
|
|
54321
|
+
b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
|
|
54322
|
+
a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
|
|
54323
|
+
d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
|
|
54324
|
+
c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
|
|
54325
|
+
b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
|
|
54326
|
+
a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
|
|
54327
|
+
d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
|
|
54328
|
+
c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
|
|
54329
|
+
b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
|
|
54330
|
+
a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
|
|
54331
|
+
d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
|
|
54332
|
+
c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
|
|
54333
|
+
b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
|
|
54334
|
+
a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
|
|
54335
|
+
d = md5hh(d, a, b, c, x[i], 11, -358537222);
|
|
54336
|
+
c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
|
|
54337
|
+
b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
|
|
54338
|
+
a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
|
|
54339
|
+
d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
|
|
54340
|
+
c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
|
|
54341
|
+
b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
|
|
54342
|
+
a = md5ii(a, b, c, d, x[i], 6, -198630844);
|
|
54343
|
+
d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
|
|
54344
|
+
c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
|
|
54345
|
+
b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
|
|
54346
|
+
a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
|
|
54347
|
+
d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
|
|
54348
|
+
c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
|
|
54349
|
+
b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
|
|
54350
|
+
a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
|
|
54351
|
+
d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
|
|
54352
|
+
c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
|
|
54353
|
+
b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
|
|
54354
|
+
a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
|
|
54355
|
+
d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
|
|
54356
|
+
c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
|
|
54357
|
+
b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
|
|
54358
|
+
a = safeAdd(a, olda);
|
|
54359
|
+
b = safeAdd(b, oldb);
|
|
54360
|
+
c = safeAdd(c, oldc);
|
|
54361
|
+
d = safeAdd(d, oldd);
|
|
54362
|
+
}
|
|
54363
|
+
return Uint32Array.of(a, b, c, d);
|
|
54364
|
+
}
|
|
54365
|
+
function uint8ToUint32(input) {
|
|
54366
|
+
if (input.length === 0) {
|
|
54367
|
+
return new Uint32Array();
|
|
54368
|
+
}
|
|
54369
|
+
const output = new Uint32Array(getOutputLength(input.length * 8)).fill(0);
|
|
54370
|
+
for (let i = 0; i < input.length; i++) {
|
|
54371
|
+
output[i >> 2] |= (input[i] & 0xff) << ((i % 4) * 8);
|
|
54372
|
+
}
|
|
54373
|
+
return output;
|
|
54374
|
+
}
|
|
54375
|
+
function safeAdd(x, y) {
|
|
54376
|
+
const lsw = (x & 0xffff) + (y & 0xffff);
|
|
54377
|
+
const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
54378
|
+
return (msw << 16) | (lsw & 0xffff);
|
|
54379
|
+
}
|
|
54380
|
+
function bitRotateLeft(num, cnt) {
|
|
54381
|
+
return (num << cnt) | (num >>> (32 - cnt));
|
|
54382
|
+
}
|
|
54383
|
+
function md5cmn(q, a, b, x, s, t) {
|
|
54384
|
+
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
|
54385
|
+
}
|
|
54386
|
+
function md5ff(a, b, c, d, x, s, t) {
|
|
54387
|
+
return md5cmn((b & c) | (~b & d), a, b, x, s, t);
|
|
54388
|
+
}
|
|
54389
|
+
function md5gg(a, b, c, d, x, s, t) {
|
|
54390
|
+
return md5cmn((b & d) | (c & ~d), a, b, x, s, t);
|
|
54391
|
+
}
|
|
54392
|
+
function md5hh(a, b, c, d, x, s, t) {
|
|
54393
|
+
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
|
54394
|
+
}
|
|
54395
|
+
function md5ii(a, b, c, d, x, s, t) {
|
|
54396
|
+
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
54397
|
+
}
|
|
54398
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (md5);
|
|
54399
|
+
|
|
54400
|
+
|
|
54401
|
+
/***/ }),
|
|
54402
|
+
|
|
54403
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/nil.js":
|
|
54404
|
+
/*!*******************************************************************************!*\
|
|
54405
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/nil.js ***!
|
|
54406
|
+
\*******************************************************************************/
|
|
54407
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54408
|
+
|
|
54409
|
+
"use strict";
|
|
54410
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54411
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54412
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
54413
|
+
/* harmony export */ });
|
|
54414
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ('00000000-0000-0000-0000-000000000000');
|
|
54415
|
+
|
|
54416
|
+
|
|
54417
|
+
/***/ }),
|
|
54418
|
+
|
|
54419
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/parse.js":
|
|
54420
|
+
/*!*********************************************************************************!*\
|
|
54421
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/parse.js ***!
|
|
54422
|
+
\*********************************************************************************/
|
|
54423
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54424
|
+
|
|
54425
|
+
"use strict";
|
|
54426
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54427
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54428
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
54429
|
+
/* harmony export */ });
|
|
54430
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/validate.js");
|
|
54431
|
+
|
|
54432
|
+
function parse(uuid) {
|
|
54433
|
+
if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
|
|
54434
|
+
throw TypeError('Invalid UUID');
|
|
54435
|
+
}
|
|
54436
|
+
let v;
|
|
54437
|
+
return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff);
|
|
54438
|
+
}
|
|
54439
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parse);
|
|
54440
|
+
|
|
54441
|
+
|
|
54442
|
+
/***/ }),
|
|
54443
|
+
|
|
54444
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/regex.js":
|
|
54445
|
+
/*!*********************************************************************************!*\
|
|
54446
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/regex.js ***!
|
|
54447
|
+
\*********************************************************************************/
|
|
54448
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54449
|
+
|
|
54450
|
+
"use strict";
|
|
54451
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54452
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54453
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
54454
|
+
/* harmony export */ });
|
|
54455
|
+
/* 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);
|
|
54456
|
+
|
|
54457
|
+
|
|
54458
|
+
/***/ }),
|
|
54459
|
+
|
|
54460
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/rng.js":
|
|
54461
|
+
/*!*******************************************************************************!*\
|
|
54462
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/rng.js ***!
|
|
54463
|
+
\*******************************************************************************/
|
|
54464
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54465
|
+
|
|
54466
|
+
"use strict";
|
|
54467
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54468
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54469
|
+
/* harmony export */ "default": () => (/* binding */ rng)
|
|
54470
|
+
/* harmony export */ });
|
|
54471
|
+
const rnds8 = new Uint8Array(16);
|
|
54472
|
+
function rng() {
|
|
54473
|
+
return crypto.getRandomValues(rnds8);
|
|
54474
|
+
}
|
|
54475
|
+
|
|
54476
|
+
|
|
54477
|
+
/***/ }),
|
|
54478
|
+
|
|
54479
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/sha1.js":
|
|
54480
|
+
/*!********************************************************************************!*\
|
|
54481
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/sha1.js ***!
|
|
54482
|
+
\********************************************************************************/
|
|
54483
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54484
|
+
|
|
54485
|
+
"use strict";
|
|
54486
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54487
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54488
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
54489
|
+
/* harmony export */ });
|
|
54490
|
+
function f(s, x, y, z) {
|
|
54491
|
+
switch (s) {
|
|
54492
|
+
case 0:
|
|
54493
|
+
return (x & y) ^ (~x & z);
|
|
54494
|
+
case 1:
|
|
54495
|
+
return x ^ y ^ z;
|
|
54496
|
+
case 2:
|
|
54497
|
+
return (x & y) ^ (x & z) ^ (y & z);
|
|
54498
|
+
case 3:
|
|
54499
|
+
return x ^ y ^ z;
|
|
54500
|
+
}
|
|
54501
|
+
}
|
|
54502
|
+
function ROTL(x, n) {
|
|
54503
|
+
return (x << n) | (x >>> (32 - n));
|
|
54504
|
+
}
|
|
54505
|
+
function sha1(bytes) {
|
|
54506
|
+
const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
|
|
54507
|
+
const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
|
|
54508
|
+
const newBytes = new Uint8Array(bytes.length + 1);
|
|
54509
|
+
newBytes.set(bytes);
|
|
54510
|
+
newBytes[bytes.length] = 0x80;
|
|
54511
|
+
bytes = newBytes;
|
|
54512
|
+
const l = bytes.length / 4 + 2;
|
|
54513
|
+
const N = Math.ceil(l / 16);
|
|
54514
|
+
const M = new Array(N);
|
|
54515
|
+
for (let i = 0; i < N; ++i) {
|
|
54516
|
+
const arr = new Uint32Array(16);
|
|
54517
|
+
for (let j = 0; j < 16; ++j) {
|
|
54518
|
+
arr[j] =
|
|
54519
|
+
(bytes[i * 64 + j * 4] << 24) |
|
|
54520
|
+
(bytes[i * 64 + j * 4 + 1] << 16) |
|
|
54521
|
+
(bytes[i * 64 + j * 4 + 2] << 8) |
|
|
54522
|
+
bytes[i * 64 + j * 4 + 3];
|
|
54523
|
+
}
|
|
54524
|
+
M[i] = arr;
|
|
54525
|
+
}
|
|
54526
|
+
M[N - 1][14] = ((bytes.length - 1) * 8) / 2 ** 32;
|
|
54527
|
+
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
54528
|
+
M[N - 1][15] = ((bytes.length - 1) * 8) & 0xffffffff;
|
|
54529
|
+
for (let i = 0; i < N; ++i) {
|
|
54530
|
+
const W = new Uint32Array(80);
|
|
54531
|
+
for (let t = 0; t < 16; ++t) {
|
|
54532
|
+
W[t] = M[i][t];
|
|
54533
|
+
}
|
|
54534
|
+
for (let t = 16; t < 80; ++t) {
|
|
54535
|
+
W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
|
|
54536
|
+
}
|
|
54537
|
+
let a = H[0];
|
|
54538
|
+
let b = H[1];
|
|
54539
|
+
let c = H[2];
|
|
54540
|
+
let d = H[3];
|
|
54541
|
+
let e = H[4];
|
|
54542
|
+
for (let t = 0; t < 80; ++t) {
|
|
54543
|
+
const s = Math.floor(t / 20);
|
|
54544
|
+
const T = (ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t]) >>> 0;
|
|
54545
|
+
e = d;
|
|
54546
|
+
d = c;
|
|
54547
|
+
c = ROTL(b, 30) >>> 0;
|
|
54548
|
+
b = a;
|
|
54549
|
+
a = T;
|
|
54550
|
+
}
|
|
54551
|
+
H[0] = (H[0] + a) >>> 0;
|
|
54552
|
+
H[1] = (H[1] + b) >>> 0;
|
|
54553
|
+
H[2] = (H[2] + c) >>> 0;
|
|
54554
|
+
H[3] = (H[3] + d) >>> 0;
|
|
54555
|
+
H[4] = (H[4] + e) >>> 0;
|
|
54556
|
+
}
|
|
54557
|
+
return Uint8Array.of(H[0] >> 24, H[0] >> 16, H[0] >> 8, H[0], H[1] >> 24, H[1] >> 16, H[1] >> 8, H[1], H[2] >> 24, H[2] >> 16, H[2] >> 8, H[2], H[3] >> 24, H[3] >> 16, H[3] >> 8, H[3], H[4] >> 24, H[4] >> 16, H[4] >> 8, H[4]);
|
|
54558
|
+
}
|
|
54559
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (sha1);
|
|
54560
|
+
|
|
54561
|
+
|
|
54562
|
+
/***/ }),
|
|
54563
|
+
|
|
54564
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/stringify.js":
|
|
54565
|
+
/*!*************************************************************************************!*\
|
|
54566
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/stringify.js ***!
|
|
54567
|
+
\*************************************************************************************/
|
|
54568
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54569
|
+
|
|
54570
|
+
"use strict";
|
|
54571
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54572
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54573
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
54574
|
+
/* harmony export */ unsafeStringify: () => (/* binding */ unsafeStringify)
|
|
54575
|
+
/* harmony export */ });
|
|
54576
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/validate.js");
|
|
54577
|
+
|
|
54578
|
+
const byteToHex = [];
|
|
54579
|
+
for (let i = 0; i < 256; ++i) {
|
|
54580
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
54581
|
+
}
|
|
54582
|
+
function unsafeStringify(arr, offset = 0) {
|
|
54583
|
+
return (byteToHex[arr[offset + 0]] +
|
|
54584
|
+
byteToHex[arr[offset + 1]] +
|
|
54585
|
+
byteToHex[arr[offset + 2]] +
|
|
54586
|
+
byteToHex[arr[offset + 3]] +
|
|
54587
|
+
'-' +
|
|
54588
|
+
byteToHex[arr[offset + 4]] +
|
|
54589
|
+
byteToHex[arr[offset + 5]] +
|
|
54590
|
+
'-' +
|
|
54591
|
+
byteToHex[arr[offset + 6]] +
|
|
54592
|
+
byteToHex[arr[offset + 7]] +
|
|
54593
|
+
'-' +
|
|
54594
|
+
byteToHex[arr[offset + 8]] +
|
|
54595
|
+
byteToHex[arr[offset + 9]] +
|
|
54596
|
+
'-' +
|
|
54597
|
+
byteToHex[arr[offset + 10]] +
|
|
54598
|
+
byteToHex[arr[offset + 11]] +
|
|
54599
|
+
byteToHex[arr[offset + 12]] +
|
|
54600
|
+
byteToHex[arr[offset + 13]] +
|
|
54601
|
+
byteToHex[arr[offset + 14]] +
|
|
54602
|
+
byteToHex[arr[offset + 15]]).toLowerCase();
|
|
54603
|
+
}
|
|
54604
|
+
function stringify(arr, offset = 0) {
|
|
54605
|
+
const uuid = unsafeStringify(arr, offset);
|
|
54606
|
+
if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
|
|
54607
|
+
throw TypeError('Stringified UUID is invalid');
|
|
54608
|
+
}
|
|
54609
|
+
return uuid;
|
|
54610
|
+
}
|
|
54611
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (stringify);
|
|
54612
|
+
|
|
54613
|
+
|
|
54614
|
+
/***/ }),
|
|
54615
|
+
|
|
54616
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v1.js":
|
|
54617
|
+
/*!******************************************************************************!*\
|
|
54618
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v1.js ***!
|
|
54619
|
+
\******************************************************************************/
|
|
54620
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54621
|
+
|
|
54622
|
+
"use strict";
|
|
54623
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54624
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54625
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
54626
|
+
/* harmony export */ updateV1State: () => (/* binding */ updateV1State)
|
|
54627
|
+
/* harmony export */ });
|
|
54628
|
+
/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/rng.js");
|
|
54629
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/stringify.js");
|
|
54630
|
+
|
|
54631
|
+
|
|
54632
|
+
const _state = {};
|
|
54633
|
+
function v1(options, buf, offset) {
|
|
54634
|
+
let bytes;
|
|
54635
|
+
const isV6 = options?._v6 ?? false;
|
|
54636
|
+
if (options) {
|
|
54637
|
+
const optionsKeys = Object.keys(options);
|
|
54638
|
+
if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') {
|
|
54639
|
+
options = undefined;
|
|
54640
|
+
}
|
|
54641
|
+
}
|
|
54642
|
+
if (options) {
|
|
54643
|
+
bytes = v1Bytes(options.random ?? options.rng?.() ?? (0,_rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset);
|
|
54644
|
+
}
|
|
54645
|
+
else {
|
|
54646
|
+
const now = Date.now();
|
|
54647
|
+
const rnds = (0,_rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
54648
|
+
updateV1State(_state, now, rnds);
|
|
54649
|
+
bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset);
|
|
54650
|
+
}
|
|
54651
|
+
return buf ?? (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.unsafeStringify)(bytes);
|
|
54652
|
+
}
|
|
54653
|
+
function updateV1State(state, now, rnds) {
|
|
54654
|
+
state.msecs ??= -Infinity;
|
|
54655
|
+
state.nsecs ??= 0;
|
|
54656
|
+
if (now === state.msecs) {
|
|
54657
|
+
state.nsecs++;
|
|
54658
|
+
if (state.nsecs >= 10000) {
|
|
54659
|
+
state.node = undefined;
|
|
54660
|
+
state.nsecs = 0;
|
|
54661
|
+
}
|
|
54662
|
+
}
|
|
54663
|
+
else if (now > state.msecs) {
|
|
54664
|
+
state.nsecs = 0;
|
|
54665
|
+
}
|
|
54666
|
+
else if (now < state.msecs) {
|
|
54667
|
+
state.node = undefined;
|
|
54668
|
+
}
|
|
54669
|
+
if (!state.node) {
|
|
54670
|
+
state.node = rnds.slice(10, 16);
|
|
54671
|
+
state.node[0] |= 0x01;
|
|
54672
|
+
state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff;
|
|
54673
|
+
}
|
|
54674
|
+
state.msecs = now;
|
|
54675
|
+
return state;
|
|
54676
|
+
}
|
|
54677
|
+
function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) {
|
|
54678
|
+
if (rnds.length < 16) {
|
|
54679
|
+
throw new Error('Random bytes length must be >= 16');
|
|
54680
|
+
}
|
|
54681
|
+
if (!buf) {
|
|
54682
|
+
buf = new Uint8Array(16);
|
|
54683
|
+
offset = 0;
|
|
54684
|
+
}
|
|
54685
|
+
else {
|
|
54686
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
54687
|
+
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
54688
|
+
}
|
|
54689
|
+
}
|
|
54690
|
+
msecs ??= Date.now();
|
|
54691
|
+
nsecs ??= 0;
|
|
54692
|
+
clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff;
|
|
54693
|
+
node ??= rnds.slice(10, 16);
|
|
54694
|
+
msecs += 12219292800000;
|
|
54695
|
+
const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
54696
|
+
buf[offset++] = (tl >>> 24) & 0xff;
|
|
54697
|
+
buf[offset++] = (tl >>> 16) & 0xff;
|
|
54698
|
+
buf[offset++] = (tl >>> 8) & 0xff;
|
|
54699
|
+
buf[offset++] = tl & 0xff;
|
|
54700
|
+
const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff;
|
|
54701
|
+
buf[offset++] = (tmh >>> 8) & 0xff;
|
|
54702
|
+
buf[offset++] = tmh & 0xff;
|
|
54703
|
+
buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10;
|
|
54704
|
+
buf[offset++] = (tmh >>> 16) & 0xff;
|
|
54705
|
+
buf[offset++] = (clockseq >>> 8) | 0x80;
|
|
54706
|
+
buf[offset++] = clockseq & 0xff;
|
|
54707
|
+
for (let n = 0; n < 6; ++n) {
|
|
54708
|
+
buf[offset++] = node[n];
|
|
54709
|
+
}
|
|
54710
|
+
return buf;
|
|
54711
|
+
}
|
|
54712
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v1);
|
|
54713
|
+
|
|
54714
|
+
|
|
54715
|
+
/***/ }),
|
|
54716
|
+
|
|
54717
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v1ToV6.js":
|
|
54718
|
+
/*!**********************************************************************************!*\
|
|
54719
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v1ToV6.js ***!
|
|
54720
|
+
\**********************************************************************************/
|
|
54721
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54722
|
+
|
|
54723
|
+
"use strict";
|
|
54724
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54725
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54726
|
+
/* harmony export */ "default": () => (/* binding */ v1ToV6)
|
|
54727
|
+
/* harmony export */ });
|
|
54728
|
+
/* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./parse.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/parse.js");
|
|
54729
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/stringify.js");
|
|
54730
|
+
|
|
54731
|
+
|
|
54732
|
+
function v1ToV6(uuid) {
|
|
54733
|
+
const v1Bytes = typeof uuid === 'string' ? (0,_parse_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid) : uuid;
|
|
54734
|
+
const v6Bytes = _v1ToV6(v1Bytes);
|
|
54735
|
+
return typeof uuid === 'string' ? (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.unsafeStringify)(v6Bytes) : v6Bytes;
|
|
54736
|
+
}
|
|
54737
|
+
function _v1ToV6(v1Bytes) {
|
|
54738
|
+
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]);
|
|
54739
|
+
}
|
|
54740
|
+
|
|
54741
|
+
|
|
54742
|
+
/***/ }),
|
|
54743
|
+
|
|
54744
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v3.js":
|
|
54745
|
+
/*!******************************************************************************!*\
|
|
54746
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v3.js ***!
|
|
54747
|
+
\******************************************************************************/
|
|
54748
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54749
|
+
|
|
54750
|
+
"use strict";
|
|
54751
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54752
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54753
|
+
/* harmony export */ DNS: () => (/* reexport safe */ _v35_js__WEBPACK_IMPORTED_MODULE_0__.DNS),
|
|
54754
|
+
/* harmony export */ URL: () => (/* reexport safe */ _v35_js__WEBPACK_IMPORTED_MODULE_0__.URL),
|
|
54755
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
54756
|
+
/* harmony export */ });
|
|
54757
|
+
/* harmony import */ var _md5_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./md5.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/md5.js");
|
|
54758
|
+
/* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v35.js");
|
|
54759
|
+
|
|
54760
|
+
|
|
54761
|
+
|
|
54762
|
+
function v3(value, namespace, buf, offset) {
|
|
54763
|
+
return (0,_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])(0x30, _md5_js__WEBPACK_IMPORTED_MODULE_1__["default"], value, namespace, buf, offset);
|
|
54764
|
+
}
|
|
54765
|
+
v3.DNS = _v35_js__WEBPACK_IMPORTED_MODULE_0__.DNS;
|
|
54766
|
+
v3.URL = _v35_js__WEBPACK_IMPORTED_MODULE_0__.URL;
|
|
54767
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v3);
|
|
54768
|
+
|
|
54769
|
+
|
|
54770
|
+
/***/ }),
|
|
54771
|
+
|
|
54772
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v35.js":
|
|
54773
|
+
/*!*******************************************************************************!*\
|
|
54774
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v35.js ***!
|
|
54775
|
+
\*******************************************************************************/
|
|
54776
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54777
|
+
|
|
54778
|
+
"use strict";
|
|
54779
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54780
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54781
|
+
/* harmony export */ DNS: () => (/* binding */ DNS),
|
|
54782
|
+
/* harmony export */ URL: () => (/* binding */ URL),
|
|
54783
|
+
/* harmony export */ "default": () => (/* binding */ v35),
|
|
54784
|
+
/* harmony export */ stringToBytes: () => (/* binding */ stringToBytes)
|
|
54785
|
+
/* harmony export */ });
|
|
54786
|
+
/* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./parse.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/parse.js");
|
|
54787
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/stringify.js");
|
|
54788
|
+
|
|
54789
|
+
|
|
54790
|
+
function stringToBytes(str) {
|
|
54791
|
+
str = unescape(encodeURIComponent(str));
|
|
54792
|
+
const bytes = new Uint8Array(str.length);
|
|
54793
|
+
for (let i = 0; i < str.length; ++i) {
|
|
54794
|
+
bytes[i] = str.charCodeAt(i);
|
|
54795
|
+
}
|
|
54796
|
+
return bytes;
|
|
54797
|
+
}
|
|
54798
|
+
const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
54799
|
+
const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
54800
|
+
function v35(version, hash, value, namespace, buf, offset) {
|
|
54801
|
+
const valueBytes = typeof value === 'string' ? stringToBytes(value) : value;
|
|
54802
|
+
const namespaceBytes = typeof namespace === 'string' ? (0,_parse_js__WEBPACK_IMPORTED_MODULE_0__["default"])(namespace) : namespace;
|
|
54803
|
+
if (typeof namespace === 'string') {
|
|
54804
|
+
namespace = (0,_parse_js__WEBPACK_IMPORTED_MODULE_0__["default"])(namespace);
|
|
54805
|
+
}
|
|
54806
|
+
if (namespace?.length !== 16) {
|
|
54807
|
+
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
54808
|
+
}
|
|
54809
|
+
let bytes = new Uint8Array(16 + valueBytes.length);
|
|
54810
|
+
bytes.set(namespaceBytes);
|
|
54811
|
+
bytes.set(valueBytes, namespaceBytes.length);
|
|
54812
|
+
bytes = hash(bytes);
|
|
54813
|
+
bytes[6] = (bytes[6] & 0x0f) | version;
|
|
54814
|
+
bytes[8] = (bytes[8] & 0x3f) | 0x80;
|
|
54815
|
+
if (buf) {
|
|
54816
|
+
offset ??= 0;
|
|
54817
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
54818
|
+
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
54819
|
+
}
|
|
54820
|
+
for (let i = 0; i < 16; ++i) {
|
|
54821
|
+
buf[offset + i] = bytes[i];
|
|
54822
|
+
}
|
|
54823
|
+
return buf;
|
|
54824
|
+
}
|
|
54825
|
+
return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.unsafeStringify)(bytes);
|
|
54826
|
+
}
|
|
54827
|
+
|
|
54828
|
+
|
|
54829
|
+
/***/ }),
|
|
54830
|
+
|
|
54831
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v4.js":
|
|
54832
|
+
/*!******************************************************************************!*\
|
|
54833
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v4.js ***!
|
|
54834
|
+
\******************************************************************************/
|
|
54835
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54836
|
+
|
|
54837
|
+
"use strict";
|
|
54838
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54839
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54840
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
54841
|
+
/* harmony export */ });
|
|
54842
|
+
/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/rng.js");
|
|
54843
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/stringify.js");
|
|
54844
|
+
|
|
54845
|
+
|
|
54846
|
+
function v4(options, buf, offset) {
|
|
54847
|
+
if (!buf && !options && crypto.randomUUID) {
|
|
54848
|
+
return crypto.randomUUID();
|
|
54849
|
+
}
|
|
54850
|
+
return _v4(options, buf, offset);
|
|
54851
|
+
}
|
|
54852
|
+
function _v4(options, buf, offset) {
|
|
54853
|
+
options = options || {};
|
|
54854
|
+
const rnds = options.random ?? options.rng?.() ?? (0,_rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
54855
|
+
if (rnds.length < 16) {
|
|
54856
|
+
throw new Error('Random bytes length must be >= 16');
|
|
54857
|
+
}
|
|
54858
|
+
rnds[6] = (rnds[6] & 0x0f) | 0x40;
|
|
54859
|
+
rnds[8] = (rnds[8] & 0x3f) | 0x80;
|
|
54860
|
+
if (buf) {
|
|
54861
|
+
offset = offset || 0;
|
|
54862
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
54863
|
+
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
54864
|
+
}
|
|
54865
|
+
for (let i = 0; i < 16; ++i) {
|
|
54866
|
+
buf[offset + i] = rnds[i];
|
|
54867
|
+
}
|
|
54868
|
+
return buf;
|
|
54869
|
+
}
|
|
54870
|
+
return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.unsafeStringify)(rnds);
|
|
54871
|
+
}
|
|
54872
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v4);
|
|
54873
|
+
|
|
54874
|
+
|
|
54875
|
+
/***/ }),
|
|
54876
|
+
|
|
54877
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v5.js":
|
|
54878
|
+
/*!******************************************************************************!*\
|
|
54879
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v5.js ***!
|
|
54880
|
+
\******************************************************************************/
|
|
54881
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54882
|
+
|
|
54883
|
+
"use strict";
|
|
54884
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54885
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54886
|
+
/* harmony export */ DNS: () => (/* reexport safe */ _v35_js__WEBPACK_IMPORTED_MODULE_0__.DNS),
|
|
54887
|
+
/* harmony export */ URL: () => (/* reexport safe */ _v35_js__WEBPACK_IMPORTED_MODULE_0__.URL),
|
|
54888
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
54889
|
+
/* harmony export */ });
|
|
54890
|
+
/* harmony import */ var _sha1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sha1.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/sha1.js");
|
|
54891
|
+
/* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v35.js");
|
|
54892
|
+
|
|
54893
|
+
|
|
54894
|
+
|
|
54895
|
+
function v5(value, namespace, buf, offset) {
|
|
54896
|
+
return (0,_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])(0x50, _sha1_js__WEBPACK_IMPORTED_MODULE_1__["default"], value, namespace, buf, offset);
|
|
54897
|
+
}
|
|
54898
|
+
v5.DNS = _v35_js__WEBPACK_IMPORTED_MODULE_0__.DNS;
|
|
54899
|
+
v5.URL = _v35_js__WEBPACK_IMPORTED_MODULE_0__.URL;
|
|
54900
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v5);
|
|
54901
|
+
|
|
54902
|
+
|
|
54903
|
+
/***/ }),
|
|
54904
|
+
|
|
54905
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v6.js":
|
|
54906
|
+
/*!******************************************************************************!*\
|
|
54907
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v6.js ***!
|
|
54908
|
+
\******************************************************************************/
|
|
54909
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54910
|
+
|
|
54911
|
+
"use strict";
|
|
54912
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54913
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54914
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
54915
|
+
/* harmony export */ });
|
|
54916
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/stringify.js");
|
|
54917
|
+
/* harmony import */ var _v1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v1.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v1.js");
|
|
54918
|
+
/* harmony import */ var _v1ToV6_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./v1ToV6.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v1ToV6.js");
|
|
54919
|
+
|
|
54920
|
+
|
|
54921
|
+
|
|
54922
|
+
function v6(options, buf, offset) {
|
|
54923
|
+
options ??= {};
|
|
54924
|
+
offset ??= 0;
|
|
54925
|
+
let bytes = (0,_v1_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ ...options, _v6: true }, new Uint8Array(16));
|
|
54926
|
+
bytes = (0,_v1ToV6_js__WEBPACK_IMPORTED_MODULE_1__["default"])(bytes);
|
|
54927
|
+
if (buf) {
|
|
54928
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
54929
|
+
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
54930
|
+
}
|
|
54931
|
+
for (let i = 0; i < 16; i++) {
|
|
54932
|
+
buf[offset + i] = bytes[i];
|
|
54933
|
+
}
|
|
54934
|
+
return buf;
|
|
54935
|
+
}
|
|
54936
|
+
return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_2__.unsafeStringify)(bytes);
|
|
54937
|
+
}
|
|
54938
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v6);
|
|
54939
|
+
|
|
54940
|
+
|
|
54941
|
+
/***/ }),
|
|
54942
|
+
|
|
54943
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v6ToV1.js":
|
|
54944
|
+
/*!**********************************************************************************!*\
|
|
54945
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v6ToV1.js ***!
|
|
54946
|
+
\**********************************************************************************/
|
|
54947
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54948
|
+
|
|
54949
|
+
"use strict";
|
|
54950
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54951
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54952
|
+
/* harmony export */ "default": () => (/* binding */ v6ToV1)
|
|
54953
|
+
/* harmony export */ });
|
|
54954
|
+
/* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./parse.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/parse.js");
|
|
54955
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/stringify.js");
|
|
54956
|
+
|
|
54957
|
+
|
|
54958
|
+
function v6ToV1(uuid) {
|
|
54959
|
+
const v6Bytes = typeof uuid === 'string' ? (0,_parse_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid) : uuid;
|
|
54960
|
+
const v1Bytes = _v6ToV1(v6Bytes);
|
|
54961
|
+
return typeof uuid === 'string' ? (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.unsafeStringify)(v1Bytes) : v1Bytes;
|
|
54962
|
+
}
|
|
54963
|
+
function _v6ToV1(v6Bytes) {
|
|
54964
|
+
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]);
|
|
54965
|
+
}
|
|
54966
|
+
|
|
54967
|
+
|
|
54968
|
+
/***/ }),
|
|
54969
|
+
|
|
54970
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v7.js":
|
|
54971
|
+
/*!******************************************************************************!*\
|
|
54972
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/v7.js ***!
|
|
54973
|
+
\******************************************************************************/
|
|
54974
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
54975
|
+
|
|
54976
|
+
"use strict";
|
|
54977
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54978
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54979
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
54980
|
+
/* harmony export */ updateV7State: () => (/* binding */ updateV7State)
|
|
54981
|
+
/* harmony export */ });
|
|
54982
|
+
/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/rng.js");
|
|
54983
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/stringify.js");
|
|
54984
|
+
|
|
54985
|
+
|
|
54986
|
+
const _state = {};
|
|
54987
|
+
function v7(options, buf, offset) {
|
|
54988
|
+
let bytes;
|
|
54989
|
+
if (options) {
|
|
54990
|
+
bytes = v7Bytes(options.random ?? options.rng?.() ?? (0,_rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])(), options.msecs, options.seq, buf, offset);
|
|
54991
|
+
}
|
|
54992
|
+
else {
|
|
54993
|
+
const now = Date.now();
|
|
54994
|
+
const rnds = (0,_rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
54995
|
+
updateV7State(_state, now, rnds);
|
|
54996
|
+
bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset);
|
|
54997
|
+
}
|
|
54998
|
+
return buf ?? (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.unsafeStringify)(bytes);
|
|
54999
|
+
}
|
|
55000
|
+
function updateV7State(state, now, rnds) {
|
|
55001
|
+
state.msecs ??= -Infinity;
|
|
55002
|
+
state.seq ??= 0;
|
|
55003
|
+
if (now > state.msecs) {
|
|
55004
|
+
state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9];
|
|
55005
|
+
state.msecs = now;
|
|
55006
|
+
}
|
|
55007
|
+
else {
|
|
55008
|
+
state.seq = (state.seq + 1) | 0;
|
|
55009
|
+
if (state.seq === 0) {
|
|
55010
|
+
state.msecs++;
|
|
55011
|
+
}
|
|
55012
|
+
}
|
|
55013
|
+
return state;
|
|
55014
|
+
}
|
|
55015
|
+
function v7Bytes(rnds, msecs, seq, buf, offset = 0) {
|
|
55016
|
+
if (rnds.length < 16) {
|
|
55017
|
+
throw new Error('Random bytes length must be >= 16');
|
|
55018
|
+
}
|
|
55019
|
+
if (!buf) {
|
|
55020
|
+
buf = new Uint8Array(16);
|
|
55021
|
+
offset = 0;
|
|
55022
|
+
}
|
|
55023
|
+
else {
|
|
55024
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
55025
|
+
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
55026
|
+
}
|
|
55027
|
+
}
|
|
55028
|
+
msecs ??= Date.now();
|
|
55029
|
+
seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9];
|
|
55030
|
+
buf[offset++] = (msecs / 0x10000000000) & 0xff;
|
|
55031
|
+
buf[offset++] = (msecs / 0x100000000) & 0xff;
|
|
55032
|
+
buf[offset++] = (msecs / 0x1000000) & 0xff;
|
|
55033
|
+
buf[offset++] = (msecs / 0x10000) & 0xff;
|
|
55034
|
+
buf[offset++] = (msecs / 0x100) & 0xff;
|
|
55035
|
+
buf[offset++] = msecs & 0xff;
|
|
55036
|
+
buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f);
|
|
55037
|
+
buf[offset++] = (seq >>> 20) & 0xff;
|
|
55038
|
+
buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f);
|
|
55039
|
+
buf[offset++] = (seq >>> 6) & 0xff;
|
|
55040
|
+
buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03);
|
|
55041
|
+
buf[offset++] = rnds[11];
|
|
55042
|
+
buf[offset++] = rnds[12];
|
|
55043
|
+
buf[offset++] = rnds[13];
|
|
55044
|
+
buf[offset++] = rnds[14];
|
|
55045
|
+
buf[offset++] = rnds[15];
|
|
55046
|
+
return buf;
|
|
55047
|
+
}
|
|
55048
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v7);
|
|
55049
|
+
|
|
55050
|
+
|
|
55051
|
+
/***/ }),
|
|
55052
|
+
|
|
55053
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/validate.js":
|
|
55054
|
+
/*!************************************************************************************!*\
|
|
55055
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/validate.js ***!
|
|
55056
|
+
\************************************************************************************/
|
|
55057
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
55058
|
+
|
|
55059
|
+
"use strict";
|
|
55060
|
+
__webpack_require__.r(__webpack_exports__);
|
|
55061
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
55062
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
55063
|
+
/* harmony export */ });
|
|
55064
|
+
/* harmony import */ var _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/regex.js");
|
|
55065
|
+
|
|
55066
|
+
function validate(uuid) {
|
|
55067
|
+
return typeof uuid === 'string' && _regex_js__WEBPACK_IMPORTED_MODULE_0__["default"].test(uuid);
|
|
55068
|
+
}
|
|
55069
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validate);
|
|
55070
|
+
|
|
55071
|
+
|
|
55072
|
+
/***/ }),
|
|
55073
|
+
|
|
55074
|
+
/***/ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/version.js":
|
|
55075
|
+
/*!***********************************************************************************!*\
|
|
55076
|
+
!*** ../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/version.js ***!
|
|
55077
|
+
\***********************************************************************************/
|
|
55078
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
55079
|
+
|
|
55080
|
+
"use strict";
|
|
55081
|
+
__webpack_require__.r(__webpack_exports__);
|
|
55082
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
55083
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
55084
|
+
/* harmony export */ });
|
|
55085
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../../node_modules/@eclipse-glsp/protocol/node_modules/uuid/dist/validate.js");
|
|
55086
|
+
|
|
55087
|
+
function version(uuid) {
|
|
55088
|
+
if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
|
|
55089
|
+
throw TypeError('Invalid UUID');
|
|
55090
|
+
}
|
|
55091
|
+
return parseInt(uuid.slice(14, 15), 16);
|
|
55092
|
+
}
|
|
55093
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (version);
|
|
55094
|
+
|
|
55095
|
+
|
|
55107
55096
|
/***/ }),
|
|
55108
55097
|
|
|
55109
55098
|
/***/ "./lib/browser/example1.json":
|