ato-water-lib 0.0.33 → 0.0.36
Sign up to get free protection for your applications and to get access to all the features.
- package/ng-package.json +11 -0
- package/package.json +3 -22
- package/src/lib/ato-water-lib.component.spec.ts +23 -0
- package/src/lib/ato-water-lib.component.ts +15 -0
- package/src/lib/ato-water-lib.module.ts +31 -0
- package/src/lib/ato-water-lib.service.spec.ts +16 -0
- package/src/lib/ato-water-lib.service.ts +9 -0
- package/src/lib/components/asset-flow/asset-flow.component.html +21 -0
- package/src/lib/components/asset-flow/asset-flow.component.scss +4 -0
- package/src/lib/components/asset-flow/asset-flow.component.spec.ts +23 -0
- package/src/lib/components/asset-flow/asset-flow.component.ts +137 -0
- package/src/lib/components/asset-params-view/asset-params-view.component.html +85 -0
- package/src/lib/components/asset-params-view/asset-params-view.component.scss +37 -0
- package/src/lib/components/asset-params-view/asset-params-view.component.spec.ts +23 -0
- package/src/lib/components/asset-params-view/asset-params-view.component.ts +16 -0
- package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.css +0 -0
- package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.html +25 -0
- package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.ts +69 -0
- package/src/lib/constants/applicable-prefixes-const.ts +452 -0
- package/src/lib/constants/base64.const.ts +5 -0
- package/src/lib/constants/components-group-const.ts +1637 -0
- package/src/lib/constants/icon-base64.const.ts +3 -0
- package/src/lib/constants/icon-svg.const.ts +8 -0
- package/src/lib/constants/key.const.ts +5 -0
- package/src/lib/constants/plant.constant.ts +52 -0
- package/src/lib/constants/value.const.ts +822 -0
- package/src/lib/directive/ato-loading.directive.ts +55 -0
- package/src/lib/directive/ng-var.directive.ts +28 -0
- package/src/lib/models/default-gojs-editor.model.ts +4906 -0
- package/{lib/models/gojs-data.model.d.ts → src/lib/models/gojs-data.model.ts} +3 -3
- package/src/lib/models/gojs-editor.model.ts +1901 -0
- package/src/lib/services/utils/utils.service.ts +141 -0
- package/{public-api.d.ts → src/public-api.ts} +10 -0
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2020/ato-water-lib.mjs +0 -5
- package/esm2020/lib/ato-water-lib.component.mjs +0 -19
- package/esm2020/lib/ato-water-lib.module.mjs +0 -49
- package/esm2020/lib/ato-water-lib.service.mjs +0 -14
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +0 -121
- package/esm2020/lib/components/asset-params-view/asset-params-view.component.mjs +0 -26
- package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +0 -54
- package/esm2020/lib/constants/applicable-prefixes-const.mjs +0 -441
- package/esm2020/lib/constants/base64.const.mjs +0 -5
- package/esm2020/lib/constants/components-group-const.mjs +0 -1476
- package/esm2020/lib/constants/icon-base64.const.mjs +0 -4
- package/esm2020/lib/constants/key.const.mjs +0 -4
- package/esm2020/lib/constants/plant.constant.mjs +0 -51
- package/esm2020/lib/constants/value.const.mjs +0 -782
- package/esm2020/lib/directive/ato-loading.directive.mjs +0 -55
- package/esm2020/lib/directive/ng-var.directive.mjs +0 -31
- package/esm2020/lib/models/default-gojs-editor.model.mjs +0 -3227
- package/esm2020/lib/models/gojs-data.model.mjs +0 -6
- package/esm2020/lib/models/gojs-editor.model.mjs +0 -1754
- package/esm2020/lib/services/utils/utils.service.mjs +0 -133
- package/esm2020/public-api.mjs +0 -15
- package/fesm2015/ato-water-lib.mjs +0 -8018
- package/fesm2015/ato-water-lib.mjs.map +0 -1
- package/fesm2020/ato-water-lib.mjs +0 -8205
- package/fesm2020/ato-water-lib.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/ato-water-lib.component.d.ts +0 -5
- package/lib/ato-water-lib.module.d.ts +0 -13
- package/lib/ato-water-lib.service.d.ts +0 -6
- package/lib/components/asset-flow/asset-flow.component.d.ts +0 -1336
- package/lib/components/asset-params-view/asset-params-view.component.d.ts +0 -10
- package/lib/components/flow-diagram-lib/flow-diagram-lib.component.d.ts +0 -16
- package/lib/constants/applicable-prefixes-const.d.ts +0 -162
- package/lib/constants/base64.const.d.ts +0 -3
- package/lib/constants/components-group-const.d.ts +0 -1561
- package/lib/constants/icon-base64.const.d.ts +0 -3
- package/lib/constants/key.const.d.ts +0 -1
- package/lib/constants/plant.constant.d.ts +0 -7
- package/lib/constants/value.const.d.ts +0 -71
- package/lib/directive/ato-loading.directive.d.ts +0 -14
- package/lib/directive/ng-var.directive.d.ts +0 -12
- package/lib/models/default-gojs-editor.model.d.ts +0 -197
- package/lib/models/gojs-editor.model.d.ts +0 -436
- package/lib/services/utils/utils.service.d.ts +0 -24
@@ -1,3227 +0,0 @@
|
|
1
|
-
import { Directive, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
2
|
-
import { AtoGojsEditorModel } from './gojs-editor.model';
|
3
|
-
import * as go from 'gojs';
|
4
|
-
import _ from 'lodash';
|
5
|
-
import moment from 'moment';
|
6
|
-
import { GO_LICENSE_KEY } from '../constants/key.const';
|
7
|
-
import { Subject } from 'rxjs';
|
8
|
-
import { UtilsService } from '../services/utils/utils.service';
|
9
|
-
import { ATO_ENUM_FLOW_DIRECTION, ATO_ECOMPONENT_PLANT_TYPE, NO_DATA, TEXT_UNKNOWN, VALUE_NA, } from '../constants/value.const';
|
10
|
-
import { ATO_EPlantType } from '../constants/plant.constant';
|
11
|
-
import { Subscription } from 'rxjs';
|
12
|
-
import { ICONS_BASE64 } from '../constants/icon-base64.const';
|
13
|
-
import * as i0 from "@angular/core";
|
14
|
-
const ICON_ALERT = '/assets/images/icons/Station.svg';
|
15
|
-
const ARROW = '/assets/images/icons/arrow.svg';
|
16
|
-
const ARROW_GRAY = '/assets/images/icons/arrow-gray.svg';
|
17
|
-
const RO_LINE_DIRTY = '/assets/images/icons/ro_line_dirty.svg';
|
18
|
-
const OUTFLOW_LINE_DIRTY = '/assets/images/icons/outflow_line_dirty.png';
|
19
|
-
export class AtoDefaultGojsEditor {
|
20
|
-
checkLinkCondition(fromNode, fromPort, toNode, toPort, link) {
|
21
|
-
if (this.linkValidation) {
|
22
|
-
return this.linkValidation(fromNode, fromPort, toNode, toPort, link);
|
23
|
-
}
|
24
|
-
return true; // Mặc định cho trường hợp không có hàm linkValidation được truyền vào
|
25
|
-
}
|
26
|
-
set initialOptions(v) {
|
27
|
-
this._initialOptions = _.merge(this._initialOptions, v);
|
28
|
-
// _.extend(v, this._initialOptions);
|
29
|
-
}
|
30
|
-
get initialOptions() {
|
31
|
-
return this._initialOptions;
|
32
|
-
}
|
33
|
-
set editor(v) {
|
34
|
-
this._editor = v;
|
35
|
-
if (v) {
|
36
|
-
setTimeout(() => {
|
37
|
-
this.initDiagram();
|
38
|
-
}, 100);
|
39
|
-
}
|
40
|
-
}
|
41
|
-
get editor() {
|
42
|
-
return this._editor;
|
43
|
-
}
|
44
|
-
constructor(_elRef) {
|
45
|
-
this._elRef = _elRef;
|
46
|
-
this.actions = [];
|
47
|
-
this.actionMenuId = 'actionMenuId';
|
48
|
-
this.myDiagramDiv = this.constructor.name + '-' + moment().valueOf();
|
49
|
-
this.$ = go.GraphObject.make;
|
50
|
-
this._initialOptions = {
|
51
|
-
'toolManager.hoverDelay': 200,
|
52
|
-
// 'draggingTool.isEnabled': false,
|
53
|
-
// initialAutoScale: go.Diagram.UniformToFill,
|
54
|
-
// autoScrollRegion: AtoGojsEditorModel.GRID_SIZE * 5,
|
55
|
-
layout: this.$(go.LayeredDigraphLayout, { direction: 0 }),
|
56
|
-
initialContentAlignment: go.Spot.Center,
|
57
|
-
initialAutoScale: go.Diagram.Uniform,
|
58
|
-
// contentAlignment: go.Spot.Center,
|
59
|
-
// this.$(go.ForceDirectedLayout),
|
60
|
-
'undoManager.isEnabled': true,
|
61
|
-
// "animationManager.isInitial": false,
|
62
|
-
// "animationManager.isEnabled": false,
|
63
|
-
// "draggingTool.isGridSnapEnabled": true
|
64
|
-
dragSelectingTool: this.$(go.DragSelectingTool, { isPartialInclusion: true, delay: 50 }, {
|
65
|
-
box: this.$(go.Part, // replace the magenta box with a red one
|
66
|
-
{ layerName: 'Tool', selectable: false }, this.$(go.Shape, {
|
67
|
-
name: 'SHAPE',
|
68
|
-
fill: 'rgba(255,0,0,0)',
|
69
|
-
stroke: '#E95F47',
|
70
|
-
strokeWidth: 2,
|
71
|
-
})),
|
72
|
-
}),
|
73
|
-
'linkingTool.linkValidation': this.checkLinkCondition.bind(this),
|
74
|
-
'draggingTool.doMouseMove': function () {
|
75
|
-
// do the standard behavior by calling the super method
|
76
|
-
go.DraggingTool.prototype.doMouseMove.call(this);
|
77
|
-
// if dragging-out from the diagram is not allowed, and
|
78
|
-
// if mouse is outside of viewport
|
79
|
-
if (!this.diagram.allowDragOut &&
|
80
|
-
!this.diagram.viewportBounds.containsPoint(this.diagram.lastInput.documentPoint)) {
|
81
|
-
this.diagram.ensureBounds();
|
82
|
-
const vp = this.diagram.lastInput.viewPoint;
|
83
|
-
const dp = this.diagram.position.copy();
|
84
|
-
if (vp.x < 0)
|
85
|
-
dp.x -= 10;
|
86
|
-
else if (vp.x > 0)
|
87
|
-
dp.x += 10;
|
88
|
-
if (vp.y < 0)
|
89
|
-
dp.y -= 10;
|
90
|
-
else if (vp.y > 0)
|
91
|
-
dp.y += 10;
|
92
|
-
this.diagram.position = dp; // scroll in the direction of the mouse
|
93
|
-
}
|
94
|
-
},
|
95
|
-
// LayoutCompleted: () => {
|
96
|
-
// this.myDiagram.zoomToFit();
|
97
|
-
// this.defaultScaleZoomToFit = this.myDiagram.scale;
|
98
|
-
// if (!this.initialOptions.isReadOnly) {
|
99
|
-
// const sizeMargin = AtoGojsEditorModel.GRID_SIZE * 15;
|
100
|
-
// this.myDiagram.padding = new go.Margin(sizeMargin);
|
101
|
-
// }
|
102
|
-
// },
|
103
|
-
};
|
104
|
-
this.isShowNodeInfo = false;
|
105
|
-
this.onModelChangeListenerEvent = new EventEmitter();
|
106
|
-
this.onClickInfoButton = new EventEmitter();
|
107
|
-
this.onOpenWizard = new EventEmitter();
|
108
|
-
this.onOpenDetail = new EventEmitter();
|
109
|
-
this.onOpenAssetParameter = new EventEmitter();
|
110
|
-
this.onOpenInsightMapping = new EventEmitter();
|
111
|
-
this.onHoverInfoButton = new EventEmitter();
|
112
|
-
this.onHoverAlert = new EventEmitter();
|
113
|
-
this.onDoubleClickNode = new EventEmitter();
|
114
|
-
this.onOpenChangeIcon = new EventEmitter();
|
115
|
-
// Click component
|
116
|
-
this.onClickCompoent = new EventEmitter();
|
117
|
-
this.callbackImageTopology = new EventEmitter();
|
118
|
-
// Click param on ParamTable
|
119
|
-
this.onClikParamOfTable = new EventEmitter();
|
120
|
-
// Delete Node
|
121
|
-
this.onDeleteNode = new EventEmitter();
|
122
|
-
this.onUndo = new EventEmitter();
|
123
|
-
// Rename
|
124
|
-
this.onRename = new EventEmitter();
|
125
|
-
this.committedTransactionSubject = new Subject();
|
126
|
-
// AddSub and UnSub
|
127
|
-
this._subscriptionList = new Subscription();
|
128
|
-
go.Diagram.licenseKey = GO_LICENSE_KEY;
|
129
|
-
}
|
130
|
-
ngOnDestroy() {
|
131
|
-
this.unsubscribeAll();
|
132
|
-
this.stopAnimation();
|
133
|
-
// this.myDiagram?.clear();
|
134
|
-
if (!!this.myDiagram?.div) {
|
135
|
-
this.myDiagram.div = null;
|
136
|
-
}
|
137
|
-
if (this.myDiagram) {
|
138
|
-
this.myDiagram.clear();
|
139
|
-
}
|
140
|
-
if (this.myDiagram != null && this.myDiagram.nodeTemplateMap != null) {
|
141
|
-
this.myDiagram.nodeTemplateMap.clear();
|
142
|
-
}
|
143
|
-
if (this.myDiagram != null && this.myDiagram.groupTemplateMap != null) {
|
144
|
-
this.myDiagram.groupTemplateMap.clear();
|
145
|
-
}
|
146
|
-
if (this.myDiagram != null && this.myDiagram.linkTemplate != null) {
|
147
|
-
for (var key in this.myDiagram.linkTemplateMap.toArray()) {
|
148
|
-
this.myDiagram.linkTemplateMap.remove(key);
|
149
|
-
}
|
150
|
-
}
|
151
|
-
this.myDiagram = null;
|
152
|
-
}
|
153
|
-
addOrRemoveCompoentTemplate() {
|
154
|
-
// Add Node and Node Group
|
155
|
-
_.forEach(this.editor.data?.nodeDataArray, (node) => {
|
156
|
-
this.addTemplate(node);
|
157
|
-
});
|
158
|
-
// Remove Node and Node Group
|
159
|
-
_.forEach(this.myDiagram.nodeTemplateMap?.Hb, (temp) => {
|
160
|
-
if (temp?.key && !this.editor.data?.nodeDataArray?.some((node) => node?.type === temp?.key)) {
|
161
|
-
this.myDiagram.nodeTemplateMap.remove(temp?.key);
|
162
|
-
}
|
163
|
-
});
|
164
|
-
_.forEach(this.myDiagram.groupTemplateMap?.Hb, (temp) => {
|
165
|
-
if (temp?.key && !this.editor.data?.nodeDataArray?.some((node) => node?.type === temp?.key)) {
|
166
|
-
this.myDiagram.groupTemplateMap.remove(temp?.key);
|
167
|
-
}
|
168
|
-
});
|
169
|
-
}
|
170
|
-
addTemplate(node) {
|
171
|
-
this.addNodeTemplate(node);
|
172
|
-
this.addGroupTemplate(node);
|
173
|
-
}
|
174
|
-
addGroupTemplate(node) {
|
175
|
-
if (this.myDiagram.groupTemplateMap?.Hb?.[node?.type] || !node?.isGroup) {
|
176
|
-
return;
|
177
|
-
}
|
178
|
-
// Group
|
179
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT) {
|
180
|
-
this.makeGroupROPlantTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
181
|
-
return;
|
182
|
-
}
|
183
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.BOILER) {
|
184
|
-
this.makeGroupBoilerTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
185
|
-
return;
|
186
|
-
}
|
187
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER) {
|
188
|
-
this.makeGroupCoolingTowerTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
189
|
-
return;
|
190
|
-
}
|
191
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.ZONE) {
|
192
|
-
this.makeGroupZoneTemplate();
|
193
|
-
return;
|
194
|
-
}
|
195
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL && node?.isGroup) {
|
196
|
-
this.groupPlantCellTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
197
|
-
return;
|
198
|
-
}
|
199
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL_INPUT_GROUP) {
|
200
|
-
this.groupPCInputOrOutTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name, new go.Margin(0, 50, 0, 0));
|
201
|
-
return;
|
202
|
-
}
|
203
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL_OUTPUT_GROUP) {
|
204
|
-
this.groupPCInputOrOutTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name, new go.Margin(0, 0, 0, 50));
|
205
|
-
return;
|
206
|
-
}
|
207
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.GROUP_BASIC_COMPONENT) {
|
208
|
-
this.makeGroupBasicComponent(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
209
|
-
return;
|
210
|
-
}
|
211
|
-
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
212
|
-
}
|
213
|
-
addNodeTemplate(node) {
|
214
|
-
if (this.myDiagram.nodeTemplateMap?.Hb[node?.type] || node?.isGroup) {
|
215
|
-
return;
|
216
|
-
}
|
217
|
-
// Not Group
|
218
|
-
// Component Water Normal
|
219
|
-
if (AtoGojsEditorModel.TYPE_TEMPLATE_WATER_NORMAL?.includes(node?.type) && !node?.isGroup) {
|
220
|
-
this.makeEntityTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon ?? '', AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name ?? '');
|
221
|
-
}
|
222
|
-
// Component Water Withdraw Or Discharge
|
223
|
-
if (AtoGojsEditorModel.TYPE_TEMPLATE_WATER_WITHDRAW_OR_DISCHARGE?.includes(node?.type) && !node?.isGroup) {
|
224
|
-
this.makeEntityWithdrawOrDischarge(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon ?? '', AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name ?? '');
|
225
|
-
}
|
226
|
-
// Component Energy Normal
|
227
|
-
if ((AtoGojsEditorModel.TYPE_TEMPLATE_ELECTRICITY?.includes(node?.type) ||
|
228
|
-
AtoGojsEditorModel.TYPE_TEMPLATE_NATURAL_GAS?.includes(node?.type) ||
|
229
|
-
AtoGojsEditorModel.TYPE_TEMPLATE_FUEL?.includes(node?.type) ||
|
230
|
-
AtoGojsEditorModel.TYPE_TEMPLATE_STEAM?.includes(node?.type)) &&
|
231
|
-
!node?.isGroup) {
|
232
|
-
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon ?? '', AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name ?? '');
|
233
|
-
}
|
234
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE) {
|
235
|
-
this.makeImageTemplate();
|
236
|
-
}
|
237
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE) {
|
238
|
-
this.makeParamTable();
|
239
|
-
}
|
240
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.MASS_BALANCE) {
|
241
|
-
this.makeMassBalance();
|
242
|
-
}
|
243
|
-
// Text Node
|
244
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
|
245
|
-
this.makeTextTemplate();
|
246
|
-
}
|
247
|
-
// Value Node
|
248
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_NODE) {
|
249
|
-
this.makeValueNodeTemplate();
|
250
|
-
}
|
251
|
-
// Value Node
|
252
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY) {
|
253
|
-
this.makeEmptyNodeTemplate();
|
254
|
-
}
|
255
|
-
// Value Label
|
256
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL) {
|
257
|
-
this.makeValueLabelTemplate();
|
258
|
-
}
|
259
|
-
// Label
|
260
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL) {
|
261
|
-
this.makeTextLabelTemplate();
|
262
|
-
}
|
263
|
-
// Zone item
|
264
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.ZONE_ENERGY_ITEM) {
|
265
|
-
this.makeZoneItemTemplate();
|
266
|
-
}
|
267
|
-
// data box
|
268
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX) {
|
269
|
-
this.makeDataBoxTemplate();
|
270
|
-
}
|
271
|
-
// Special template
|
272
|
-
if (AtoGojsEditorModel.TYPE_TEMPLATE_SPECIAL?.includes(node?.type)) {
|
273
|
-
this.makeSpecialTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
274
|
-
}
|
275
|
-
// Plant Cell
|
276
|
-
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL && !node?.isGroup) {
|
277
|
-
this.plantCellTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
278
|
-
}
|
279
|
-
}
|
280
|
-
initDiagram() {
|
281
|
-
if (!!this.myDiagram?.div) {
|
282
|
-
// this.myDiagram.div = null;
|
283
|
-
if (this.initialOptions?.grid) {
|
284
|
-
this.myDiagram['grid'] = this.initialOptions?.grid;
|
285
|
-
}
|
286
|
-
else {
|
287
|
-
this.myDiagram['grid'] = this.$(go.Panel, 'Grid');
|
288
|
-
}
|
289
|
-
if (this.initialOptions?.LayoutCompleted) {
|
290
|
-
this.myDiagram.addDiagramListener('LayoutCompleted', this.initialOptions?.LayoutCompleted);
|
291
|
-
}
|
292
|
-
if (this.initialOptions?.LinkReshaped) {
|
293
|
-
this.myDiagram.addDiagramListener('LinkReshaped', this.initialOptions?.LinkReshaped);
|
294
|
-
}
|
295
|
-
if (this.initialOptions?.SelectionMoved) {
|
296
|
-
this.myDiagram.addDiagramListener('SelectionMoved', this.initialOptions?.SelectionMoved);
|
297
|
-
}
|
298
|
-
if (this.initialOptions?.ChangedSelection) {
|
299
|
-
this.myDiagram.addDiagramListener('ChangedSelection', this.initialOptions?.ChangedSelection);
|
300
|
-
}
|
301
|
-
this.myDiagram.dragSelectingTool = this.initialOptions?.dragSelectingTool;
|
302
|
-
this.myDiagram.toolManager.draggingTool.isGridSnapEnabled =
|
303
|
-
this.initialOptions?.['draggingTool.isGridSnapEnabled'] ?? false;
|
304
|
-
if (this.myDiagram.toolManager && this.myDiagram.toolManager.draggingTool) {
|
305
|
-
if (this.initialOptions?.['draggingTool.gridSnapCellSize']) {
|
306
|
-
this.myDiagram.toolManager.draggingTool.gridSnapCellSize =
|
307
|
-
this.initialOptions?.['draggingTool.gridSnapCellSize'];
|
308
|
-
}
|
309
|
-
// if (this.initialOptions?.['draggingTool.isGridSnapEnabled']) {
|
310
|
-
// this.myDiagram.toolManager.draggingTool.isGridSnapEnabled =
|
311
|
-
// this.initialOptions?.['draggingTool.isGridSnapEnabled'];
|
312
|
-
// }
|
313
|
-
if (this.initialOptions?.['draggingTool.doMouseMove']) {
|
314
|
-
this.myDiagram.toolManager.draggingTool.doMouseMove =
|
315
|
-
this.initialOptions?.['draggingTool.doMouseMove'];
|
316
|
-
}
|
317
|
-
if (this.initialOptions?.['linkingTool.linkValidation']) {
|
318
|
-
this.myDiagram.toolManager.linkingTool.linkValidation =
|
319
|
-
this.initialOptions?.['linkingTool.linkValidation'];
|
320
|
-
}
|
321
|
-
}
|
322
|
-
this.myDiagram.contentAlignment = this.initialOptions?.contentAlignment ?? go.Spot.Center;
|
323
|
-
this.myDiagram.layout = this.initialOptions?.layout;
|
324
|
-
// this.myDiagram.minViewportBounds = new go.Rect(0, 0, 1200, 1200);
|
325
|
-
if (!!this.editor?.data) {
|
326
|
-
this.addOrRemoveCompoentTemplate();
|
327
|
-
this.myDiagram.model = go.Model.fromJson(this.editor.data);
|
328
|
-
}
|
329
|
-
return;
|
330
|
-
}
|
331
|
-
if (this.animationInterval) {
|
332
|
-
clearInterval(this.animationInterval);
|
333
|
-
}
|
334
|
-
const diagramDiv = this._elRef.nativeElement.querySelector(`#${this.myDiagramDiv}`);
|
335
|
-
this.myDiagram = this.$(go.Diagram, diagramDiv, this.initialOptions);
|
336
|
-
// this.myDiagram.initialPosition = new go.Point(0, 0);
|
337
|
-
this.addOrRemoveCompoentTemplate();
|
338
|
-
this.makeLinkTemplate();
|
339
|
-
// animation
|
340
|
-
this.startAnimation();
|
341
|
-
setTimeout(() => {
|
342
|
-
const self = this;
|
343
|
-
// if (!this.isAddedModelChangedListeners) {
|
344
|
-
this.isAddedModelChangedListeners = true;
|
345
|
-
this.myDiagram.addModelChangedListener(function (e) {
|
346
|
-
if (e.change === go.ChangedEvent.Remove && e.propertyName === 'nodeDataArray') {
|
347
|
-
const data = e.oldValue;
|
348
|
-
self.onDeleteNode.emit(data);
|
349
|
-
}
|
350
|
-
if (e.isTransactionFinished) {
|
351
|
-
self.committedTransactionSubject?.next(e);
|
352
|
-
}
|
353
|
-
});
|
354
|
-
this.myDiagram.commandHandler.undo = function () {
|
355
|
-
self.onUndo.emit();
|
356
|
-
};
|
357
|
-
});
|
358
|
-
if (!!this.editor) {
|
359
|
-
this.myDiagram.model = go.Model.fromJson(this.editor.data);
|
360
|
-
}
|
361
|
-
}
|
362
|
-
initGroupTemplateEnergy() {
|
363
|
-
// for water
|
364
|
-
const { STORAGE, WATER_TREATMENT, DEMIN_WATER_TREATMENT,
|
365
|
-
// RO_WATER_TREATMENT,
|
366
|
-
PROCESS, WASTEWATER_TREATMENT, DAF_WASTEWATER_TREATMENT, ETP_WASTEWATER_TREATMENT, MBR_WASTEWATER_TREATMENT, ZLD_WASTEWATER_TREATMENT, COOLING_TOWER, BOILER, OTHER, LANDSCAPING_IRRIGATION, } = AtoGojsEditorModel.ENUM_TEMPLATES;
|
367
|
-
const waterGroups = [
|
368
|
-
STORAGE,
|
369
|
-
WATER_TREATMENT,
|
370
|
-
DEMIN_WATER_TREATMENT,
|
371
|
-
// RO_WATER_TREATMENT,
|
372
|
-
PROCESS,
|
373
|
-
WASTEWATER_TREATMENT,
|
374
|
-
DAF_WASTEWATER_TREATMENT,
|
375
|
-
ETP_WASTEWATER_TREATMENT,
|
376
|
-
MBR_WASTEWATER_TREATMENT,
|
377
|
-
ZLD_WASTEWATER_TREATMENT,
|
378
|
-
COOLING_TOWER,
|
379
|
-
BOILER,
|
380
|
-
OTHER,
|
381
|
-
LANDSCAPING_IRRIGATION,
|
382
|
-
];
|
383
|
-
waterGroups.map((e) => {
|
384
|
-
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
385
|
-
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
386
|
-
}
|
387
|
-
});
|
388
|
-
// electrical
|
389
|
-
this.initElectricGroupTemplate();
|
390
|
-
// Fuel
|
391
|
-
this.initFuelGroupTemplate();
|
392
|
-
// Gas
|
393
|
-
this.initGasGroupTemplate();
|
394
|
-
}
|
395
|
-
initElectricDiagram() {
|
396
|
-
const { GRID, DIESEL_GENERATORS, BATTERY_ENERGY_STORAGE, LIGHTING_SYSTEMS, LIGHTINGS, ELECTRIC_METERS, TRANSFORMERS, ELECTRIC_FLYWHEEL_ENERGY_STORAGE, PUMPED_HYDRO_STORAGE, THERMAL_ENERGY_STORAGE, SUPER_CAPACITOR_ENERGY_STORAGE, SWITCH_GEARS, PROCESS_CONTROL_AUTOMATION_SYSTEMS, PROCESS_EQUIPMENT_MACHINES, OFFICE_EQUIPMENT, POWER_DISTRIBUTION_CONTROL_SYSTEMS, POWER_DISTRIBUTION_SYSTEMS, NATURAL_GAS_GENERATORS, MOTOR_CONTROLS, VARIABLE_FREQUENCY_DRIVERS, ELECTRIC_HVAC, COMPRESSED_AIR_SYSTEMS, REFRIGERATION_COOLING_SYSTEMS, MATERIAL_HANDLING_EQUIPMENT, WIND_POWER, ELECTRIC_INDUSTRIAL_MOTORS, GROUNDING, } = AtoGojsEditorModel.ENUM_TEMPLATES;
|
397
|
-
const ListItemsCreateEntityTemplate = [
|
398
|
-
GRID,
|
399
|
-
DIESEL_GENERATORS,
|
400
|
-
BATTERY_ENERGY_STORAGE,
|
401
|
-
LIGHTING_SYSTEMS,
|
402
|
-
LIGHTINGS,
|
403
|
-
ELECTRIC_METERS,
|
404
|
-
TRANSFORMERS,
|
405
|
-
ELECTRIC_FLYWHEEL_ENERGY_STORAGE,
|
406
|
-
PUMPED_HYDRO_STORAGE,
|
407
|
-
THERMAL_ENERGY_STORAGE,
|
408
|
-
SUPER_CAPACITOR_ENERGY_STORAGE,
|
409
|
-
SWITCH_GEARS,
|
410
|
-
PROCESS_CONTROL_AUTOMATION_SYSTEMS,
|
411
|
-
PROCESS_EQUIPMENT_MACHINES,
|
412
|
-
OFFICE_EQUIPMENT,
|
413
|
-
POWER_DISTRIBUTION_CONTROL_SYSTEMS,
|
414
|
-
POWER_DISTRIBUTION_SYSTEMS,
|
415
|
-
NATURAL_GAS_GENERATORS,
|
416
|
-
MOTOR_CONTROLS,
|
417
|
-
VARIABLE_FREQUENCY_DRIVERS,
|
418
|
-
ELECTRIC_HVAC,
|
419
|
-
COMPRESSED_AIR_SYSTEMS,
|
420
|
-
REFRIGERATION_COOLING_SYSTEMS,
|
421
|
-
MATERIAL_HANDLING_EQUIPMENT,
|
422
|
-
WIND_POWER,
|
423
|
-
ELECTRIC_INDUSTRIAL_MOTORS,
|
424
|
-
GROUNDING,
|
425
|
-
];
|
426
|
-
ListItemsCreateEntityTemplate.map((e) => {
|
427
|
-
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
428
|
-
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
429
|
-
}
|
430
|
-
});
|
431
|
-
}
|
432
|
-
initElectricGroupTemplate() {
|
433
|
-
const listItems = [
|
434
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE],
|
435
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.TRANSFORMERS],
|
436
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_METERS],
|
437
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.LIGHTINGS],
|
438
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS],
|
439
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.SWITCH_GEARS],
|
440
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_INDUSTRIAL_MOTORS],
|
441
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GROUNDING],
|
442
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.MOTOR_CONTROLS],
|
443
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.LIGHTING_SYSTEMS],
|
444
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_HVAC],
|
445
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.REFRIGERATION_COOLING_SYSTEMS],
|
446
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_CONTROL_AUTOMATION_SYSTEMS],
|
447
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.OFFICE_EQUIPMENT],
|
448
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_AIR_SYSTEMS],
|
449
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES],
|
450
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT],
|
451
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS],
|
452
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BATTERIES],
|
453
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.VARIABLE_FREQUENCY_DRIVERS],
|
454
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE],
|
455
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE],
|
456
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.THERMAL_ENERGY_STORAGE],
|
457
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.SUPER_CAPACITOR_ENERGY_STORAGE],
|
458
|
-
];
|
459
|
-
listItems.forEach((e) => {
|
460
|
-
this.makeGroupTemplate(e?.icon, e.name);
|
461
|
-
});
|
462
|
-
}
|
463
|
-
initFuelGroupTemplate() {
|
464
|
-
const listItems = [
|
465
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.DIESEL_FUELS],
|
466
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GASON_LINES],
|
467
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BIODIESELS],
|
468
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.KEROSENSE],
|
469
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PROPANES],
|
470
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.TANKER_TRUCKS],
|
471
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PIPELINE],
|
472
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_BOILERS],
|
473
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GENERATORS],
|
474
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_FURNACES],
|
475
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_OVENS],
|
476
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_VEHICLES_AND_EQUIPMENT],
|
477
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_METERS],
|
478
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS],
|
479
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS],
|
480
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_HVAC],
|
481
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS],
|
482
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS],
|
483
|
-
];
|
484
|
-
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].name);
|
485
|
-
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].name);
|
486
|
-
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].name);
|
487
|
-
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].name);
|
488
|
-
listItems.forEach((e) => {
|
489
|
-
this.makeGroupTemplate(e?.icon, e.name);
|
490
|
-
});
|
491
|
-
}
|
492
|
-
initGasGroupTemplate() {
|
493
|
-
const listItems = [
|
494
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PIPELINE],
|
495
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BOILERS_AND_HEATERS],
|
496
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FURNACES],
|
497
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.POWER_GENERATION],
|
498
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COGENERATION],
|
499
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMBINED_CYCLE_POWER_PLANTS],
|
500
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FOR_VEHICLES_AND_EQUIPMENT],
|
501
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GAS_METERS],
|
502
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BURNERS],
|
503
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FLUE_GAS_ANALYZERS],
|
504
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMBUSTION_CONTROL_SYSTEMS],
|
505
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GAS_STORAGE_TANKS],
|
506
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GAS_PRESSURE_REGULATORS],
|
507
|
-
];
|
508
|
-
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].name);
|
509
|
-
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].name);
|
510
|
-
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].name);
|
511
|
-
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].name);
|
512
|
-
listItems.forEach((e) => {
|
513
|
-
this.makeGroupTemplate(e?.icon, e.name);
|
514
|
-
});
|
515
|
-
}
|
516
|
-
initGasDiagram() {
|
517
|
-
const { NATURAL_GAS_PIPELINES, LIQUEFIED_NATURAL_GAS, COMPRESSED_NATURAL_GAS_PIPELINE, COMPRESSED_NATURAL_GAS_PRODUCTION, BOILERS_AND_HEATERS, FURNACES, POWER_GENERATION, COGENERATION, COMBINED_CYCLE_POWER_PLANTS, FUEL_FOR_VEHICLES_AND_EQUIPMENT, GAS_METERS, BURNERS, FLUE_GAS_ANALYZERS, COMBUSTION_CONTROL_SYSTEMS, GAS_STORAGE_TANKS, GAS_PRESSURE_REGULATORS, NATURAL_GAS, } = AtoGojsEditorModel.ENUM_TEMPLATES;
|
518
|
-
const ListItemsCreateEntityTemplate = [
|
519
|
-
NATURAL_GAS_PIPELINES,
|
520
|
-
LIQUEFIED_NATURAL_GAS,
|
521
|
-
COMPRESSED_NATURAL_GAS_PIPELINE,
|
522
|
-
COMPRESSED_NATURAL_GAS_PRODUCTION,
|
523
|
-
BOILERS_AND_HEATERS,
|
524
|
-
FURNACES,
|
525
|
-
POWER_GENERATION,
|
526
|
-
COGENERATION,
|
527
|
-
COMBINED_CYCLE_POWER_PLANTS,
|
528
|
-
FUEL_FOR_VEHICLES_AND_EQUIPMENT,
|
529
|
-
GAS_METERS,
|
530
|
-
BURNERS,
|
531
|
-
FLUE_GAS_ANALYZERS,
|
532
|
-
COMBUSTION_CONTROL_SYSTEMS,
|
533
|
-
GAS_STORAGE_TANKS,
|
534
|
-
GAS_PRESSURE_REGULATORS,
|
535
|
-
NATURAL_GAS,
|
536
|
-
];
|
537
|
-
ListItemsCreateEntityTemplate.map((e) => {
|
538
|
-
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
539
|
-
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
540
|
-
}
|
541
|
-
});
|
542
|
-
}
|
543
|
-
initFuelDiagram() {
|
544
|
-
const { DIESEL_FUELS, GASON_LINES, BIODIESELS, KEROSENSE, PROPANES, TANKER_TRUCKS, PIPELINE, INDUSTRIAL_BOILERS, GENERATORS, INDUSTRIAL_FURNACES, INDUSTRIAL_OVENS, INDUSTRIAL_VEHICLES_AND_EQUIPMENT, FUEL_METERS, FUEL_DISPENSERS, FUEL_STRORAGE_TANKS, FUEL_FILTRATIONS, FUEL_MANAGEMENTS, FUELS, } = AtoGojsEditorModel.ENUM_TEMPLATES;
|
545
|
-
const ListItemsCreateEntityTemplate = [
|
546
|
-
DIESEL_FUELS,
|
547
|
-
GASON_LINES,
|
548
|
-
BIODIESELS,
|
549
|
-
KEROSENSE,
|
550
|
-
PROPANES,
|
551
|
-
TANKER_TRUCKS,
|
552
|
-
PIPELINE,
|
553
|
-
INDUSTRIAL_BOILERS,
|
554
|
-
GENERATORS,
|
555
|
-
INDUSTRIAL_FURNACES,
|
556
|
-
INDUSTRIAL_OVENS,
|
557
|
-
INDUSTRIAL_VEHICLES_AND_EQUIPMENT,
|
558
|
-
FUEL_METERS,
|
559
|
-
FUEL_DISPENSERS,
|
560
|
-
FUEL_STRORAGE_TANKS,
|
561
|
-
FUEL_FILTRATIONS,
|
562
|
-
FUEL_MANAGEMENTS,
|
563
|
-
FUELS,
|
564
|
-
];
|
565
|
-
ListItemsCreateEntityTemplate.map((e) => {
|
566
|
-
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
567
|
-
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
568
|
-
}
|
569
|
-
});
|
570
|
-
}
|
571
|
-
initSolarDiagram() {
|
572
|
-
const { SOLAR_POWER, POWER_CONDITIONING_UNIT, BATTERIES: BATTERY, INVERTERS: INVERTER, } = AtoGojsEditorModel.ENUM_TEMPLATES;
|
573
|
-
const ListItemsCreateEntityTemplate = [SOLAR_POWER, POWER_CONDITIONING_UNIT, BATTERY, INVERTER];
|
574
|
-
ListItemsCreateEntityTemplate.map((e) => {
|
575
|
-
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
576
|
-
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
577
|
-
}
|
578
|
-
});
|
579
|
-
}
|
580
|
-
initSteamDiagram() {
|
581
|
-
const { VALUES, STEAM_TRAPS, PRESSURE_REGULATORS, SAFETY_VALUES_AND_EQUIPMENT, CONDENSATE_RETURN_SYSTEM, DEAERATORS, FEEDWATER_PUMPS, BLOWDOWN_TANKS, EXPANSION_TANKS, HEAT_EXCHANGERS, TURBINES, } = AtoGojsEditorModel.ENUM_TEMPLATES;
|
582
|
-
const ListItemsCreateEntityTemplate = [
|
583
|
-
VALUES,
|
584
|
-
STEAM_TRAPS,
|
585
|
-
PRESSURE_REGULATORS,
|
586
|
-
SAFETY_VALUES_AND_EQUIPMENT,
|
587
|
-
CONDENSATE_RETURN_SYSTEM,
|
588
|
-
DEAERATORS,
|
589
|
-
FEEDWATER_PUMPS,
|
590
|
-
BLOWDOWN_TANKS,
|
591
|
-
EXPANSION_TANKS,
|
592
|
-
HEAT_EXCHANGERS,
|
593
|
-
TURBINES,
|
594
|
-
];
|
595
|
-
ListItemsCreateEntityTemplate.map((e) => {
|
596
|
-
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
597
|
-
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
598
|
-
}
|
599
|
-
});
|
600
|
-
}
|
601
|
-
onModelChangeListener(e) {
|
602
|
-
// this.onModelChangeListenerEvent.emit(e);
|
603
|
-
}
|
604
|
-
makeLinkTemplate() {
|
605
|
-
const elements = [];
|
606
|
-
// line
|
607
|
-
elements.push(this.$(go.Shape, {
|
608
|
-
isPanelMain: true,
|
609
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
610
|
-
strokeWidth: AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.SIMPLE]?.strokeWidth,
|
611
|
-
// strokeWidth: 0,
|
612
|
-
}, new go.Binding('stroke', 'color'), new go.Binding('selectable', 'selectable'), new go.Binding('strokeWidth', 'type', (x) => AtoGojsEditorModel.LINK_TEMPLATES[x]?.strokeWidth)));
|
613
|
-
// animation
|
614
|
-
elements.push(this.$(go.Shape, {
|
615
|
-
...AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION]?.animation,
|
616
|
-
visible: true,
|
617
|
-
fill: 'transparent',
|
618
|
-
}));
|
619
|
-
elements.push(this.$(go.Panel, 'Top', {
|
620
|
-
height: 38,
|
621
|
-
// maxSize: new go.Size(NaN, 36),
|
622
|
-
// width: 100,
|
623
|
-
// minSize: new go.Size(100, 5), // Đặt kích thước tối thiểu là 100x50
|
624
|
-
background: 'transparent',
|
625
|
-
// layerName: 'BackgroundLayer',
|
626
|
-
// alignment: go.Spot.Top,
|
627
|
-
// alignmentFocus: go.Spot.Left,
|
628
|
-
// margin: new go.Margin(0, 0, 50, 0),
|
629
|
-
// selectable: false,
|
630
|
-
}, new go.Binding('visible', 'textComponent', (x) => {
|
631
|
-
return x ? true : false;
|
632
|
-
}),
|
633
|
-
// this.$(go.Shape, {
|
634
|
-
// height: 30,
|
635
|
-
// background: 'transparent',
|
636
|
-
// fill: 'transparent',
|
637
|
-
// // visible: false,
|
638
|
-
// }),
|
639
|
-
this.$(go.TextBlock, {
|
640
|
-
// margin: new go.Margin(0, 0, 50, 0),
|
641
|
-
stroke: '#444444',
|
642
|
-
font: 'normal 10pt Arial',
|
643
|
-
textAlign: 'left',
|
644
|
-
background: 'transparent',
|
645
|
-
// editable: false,
|
646
|
-
// alignment: go.Spot.Center, // Đảm bảo văn bản nằm ở trung tâm của nút
|
647
|
-
// alignmentFocus: go.Spot.Center, // Đảm bảo văn bản không bị dịch chuyển ra khỏi trung tâm
|
648
|
-
wrap: go.TextBlock.WrapFit,
|
649
|
-
// selectable: true,
|
650
|
-
overflow: go.TextBlock.OverflowEllipsis,
|
651
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
652
|
-
margin: 4,
|
653
|
-
}, new go.Binding('text', 'textComponent'))),
|
654
|
-
}, new go.Binding('text', 'textComponent'), new go.Binding('background', 'textComponent', (x) => (x ? 'white' : 'transparent')))));
|
655
|
-
// arrow
|
656
|
-
elements.push(this.$(go.Shape, // the "from" arrowhead
|
657
|
-
{ ...AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.SIMPLE]?.arrow }, new go.Binding('visible', 'type', (x) => ![
|
658
|
-
AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION,
|
659
|
-
AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE,
|
660
|
-
AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_HIDDEN,
|
661
|
-
].includes(x)), new go.Binding('fill', 'color'), new go.Binding('stroke', 'color')));
|
662
|
-
// TODO fix link cannot selected inside group template
|
663
|
-
this.myDiagram.linkTemplate = this.$(go.Link, go.Link.Orthogonal, {
|
664
|
-
// layerName: 'Background', // link cannot select inside group template
|
665
|
-
// curviness: 20,
|
666
|
-
// corner: 5,
|
667
|
-
routing: go.Link.AvoidsNodes,
|
668
|
-
reshapable: true,
|
669
|
-
resegmentable: true,
|
670
|
-
relinkableFrom: true,
|
671
|
-
relinkableTo: true,
|
672
|
-
selectable: true,
|
673
|
-
toShortLength: AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.SIMPLE].toShortLength, // assume arrowhead at "to" end, need to avoid bad appearance when path is thick
|
674
|
-
}, new go.Binding('layerName', '', (data) => {
|
675
|
-
return data?.textComponent ? 'Background' : '';
|
676
|
-
}), new go.Binding('zOrder', 'type', (x) => (x === AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION ? 11 : 10)), new go.Binding('toShortLength', 'type', (x) => AtoGojsEditorModel.LINK_TEMPLATES[x].toShortLength || 0), new go.Binding('selectable', 'selectable'), new go.Binding('visible', 'visible'),
|
677
|
-
// make sure links come in from the proper direction and go out appropriately
|
678
|
-
...elements);
|
679
|
-
}
|
680
|
-
makeValueNodeTemplate(size = { w: 82, h: 36 }) {
|
681
|
-
const self = this;
|
682
|
-
const node = this.$(go.Node, 'Spot', {}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { minSize: new go.Size(size.w, size.h) }, this.$(go.Shape, 'Rectangle', {
|
683
|
-
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
684
|
-
stroke: 'transparent',
|
685
|
-
}), this.$(go.Panel, 'Horizontal', this.$(go.TextBlock, {
|
686
|
-
row: 2,
|
687
|
-
font: 'bold 14px Arial',
|
688
|
-
textAlign: 'center',
|
689
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
690
|
-
}, new go.Binding('editable', 'isEditable'), new go.Binding('text', 'shortenedNumber').makeTwoWay(), new go.Binding('stroke', 'color'), new go.Binding('margin', 'isFormat', (x) => x ? new go.Margin(5, 0, 5, 5) : new go.Margin(5, 5, 5, 5)), new go.Binding('visible', '', function (data) {
|
691
|
-
return data.value !== VALUE_NA;
|
692
|
-
})),
|
693
|
-
// Icon Err when lack of value
|
694
|
-
this.$(go.TextBlock, {
|
695
|
-
margin: new go.Margin(10, 10, 10, 10),
|
696
|
-
text: VALUE_NA,
|
697
|
-
textAlign: 'center',
|
698
|
-
font: 'bold 10pt sans-serif',
|
699
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.SALMON,
|
700
|
-
wrap: go.TextBlock.WrapFit,
|
701
|
-
editable: false,
|
702
|
-
isMultiline: false,
|
703
|
-
}, new go.Binding('visible', '', function (data) {
|
704
|
-
return data.value === VALUE_NA;
|
705
|
-
})))));
|
706
|
-
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_NODE, node);
|
707
|
-
}
|
708
|
-
makeEmptyNodeTemplate(size = { w: 0, h: 0 }) {
|
709
|
-
const node = this.$(go.Node, 'Spot', {}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify));
|
710
|
-
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY, node);
|
711
|
-
}
|
712
|
-
makeValueLabelTemplate(size = { w: 82, h: 36 }) {
|
713
|
-
const node = this.$(go.Node, 'Auto', {
|
714
|
-
movable: false,
|
715
|
-
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { minSize: new go.Size(size.w, size.h) }, this.$(go.Panel, 'Horizontal', {
|
716
|
-
margin: new go.Margin(0, 10, 0, 10),
|
717
|
-
}, this.$(go.TextBlock, {
|
718
|
-
margin: new go.Margin(0, 5, 10, 0),
|
719
|
-
textAlign: 'center',
|
720
|
-
font: 'bold 15px sans-serif',
|
721
|
-
wrap: go.TextBlock.WrapFit,
|
722
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
723
|
-
minSize: new go.Size(150, 30), // Set the width of the text block
|
724
|
-
}, new go.Binding('stroke', 'color'), new go.Binding('text', 'data', (x) => {
|
725
|
-
if (typeof x?.quantity !== 'number') {
|
726
|
-
return '';
|
727
|
-
}
|
728
|
-
const formatted = UtilsService.convertPrefixesData({
|
729
|
-
value: x?.quantity,
|
730
|
-
unit: UtilsService.convertSpecialUnit(x?.unit),
|
731
|
-
});
|
732
|
-
let retValue = formatted.shortenedNumber +
|
733
|
-
' ' +
|
734
|
-
formatted.unitPrefixes +
|
735
|
-
UtilsService.convertSpecialUnit(x?.unit) ?? '';
|
736
|
-
if (x?.percent) {
|
737
|
-
retValue += ` (${x?.percent}%)`;
|
738
|
-
}
|
739
|
-
return retValue;
|
740
|
-
}), new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number')))));
|
741
|
-
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL, node);
|
742
|
-
}
|
743
|
-
makeTextLabelTemplate(size = { w: NaN, h: 20 }) {
|
744
|
-
const node = this.$(go.Node, 'Auto', {
|
745
|
-
movable: false,
|
746
|
-
isSelected: false,
|
747
|
-
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', this.$(go.Panel, 'Horizontal', this.$(go.TextBlock, {
|
748
|
-
margin: new go.Margin(0, 5, 10, 0),
|
749
|
-
textAlign: 'center',
|
750
|
-
font: 'bold 16px Arial',
|
751
|
-
wrap: go.TextBlock.WrapFit,
|
752
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
753
|
-
}, new go.Binding('stroke', 'color'), new go.Binding('text', 'name'), new go.Binding('visible', 'visible')))));
|
754
|
-
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL, node);
|
755
|
-
}
|
756
|
-
makeTextTemplate(size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 2 }) {
|
757
|
-
const self = this;
|
758
|
-
const contextMenu = this.$(go.Adornment, 'Vertical', this.$('ContextMenuButton', this.$(go.TextBlock, 'Option 1'), {
|
759
|
-
click: function (e, obj) {
|
760
|
-
alert('Option 1 clicked!');
|
761
|
-
},
|
762
|
-
}), this.$('ContextMenuButton', this.$(go.TextBlock, 'Option 2'), {
|
763
|
-
click: function (e, obj) {
|
764
|
-
alert('Option 2 clicked!');
|
765
|
-
},
|
766
|
-
}));
|
767
|
-
const node = this.$(go.Node, 'Spot', {
|
768
|
-
// fromSpot: go.Spot.RightSide,
|
769
|
-
// toSpot: go.Spot.LeftSide,
|
770
|
-
locationSpot: go.Spot.Center,
|
771
|
-
// selectionChanged: (e) => {
|
772
|
-
// if (e?.data.onSelected) {
|
773
|
-
// e?.data.onSelected(e?.data);
|
774
|
-
// }
|
775
|
-
// },
|
776
|
-
// mouseHover: (e, obj) => {
|
777
|
-
// const node = obj.part;
|
778
|
-
// if ((obj as any).part?.ob?.value === VALUE_NA) {
|
779
|
-
// self.onHoverInfoButton.emit({
|
780
|
-
// left: e?.['Wr']?.x + 8,
|
781
|
-
// top: e?.['Wr']?.y,
|
782
|
-
// node: node,
|
783
|
-
// });
|
784
|
-
// }
|
785
|
-
// },
|
786
|
-
// mouseLeave: (e, obj) => {
|
787
|
-
// if ((obj as any).part?.ob?.value === VALUE_NA) {
|
788
|
-
// self.onHoverInfoButton.emit(null);
|
789
|
-
// }
|
790
|
-
// },
|
791
|
-
click: (e, obj) => {
|
792
|
-
const node = obj.part;
|
793
|
-
if (node?.ob?.isTypeInflowOfPlantCell) {
|
794
|
-
// obj?.data?.onSelected(node?.ob?.nodePlantCellParent);
|
795
|
-
// self.onClickCompoent.emit({
|
796
|
-
// left: e?.['Wr']?.x,
|
797
|
-
// top: e?.['Wr']?.y,
|
798
|
-
// node: {
|
799
|
-
// ob: node?.ob?.nodePlantCellParent,
|
800
|
-
// },
|
801
|
-
// component: node?.ob?.nodePlantCellParent,
|
802
|
-
// });
|
803
|
-
return;
|
804
|
-
}
|
805
|
-
if (this._initialOptions?.isReadOnly) {
|
806
|
-
this.isShowNodeInfo
|
807
|
-
? self.onClickInfoButton.emit({
|
808
|
-
left: e?.['Wr']?.x,
|
809
|
-
top: e?.['Wr']?.y,
|
810
|
-
node: node,
|
811
|
-
})
|
812
|
-
: null;
|
813
|
-
}
|
814
|
-
},
|
815
|
-
doubleClick: (e, obj) => {
|
816
|
-
const node = obj.part;
|
817
|
-
if (node?.ob?.isTypeInflowOfPlantCell && !this._initialOptions?.isReadOnly) {
|
818
|
-
// obj?.data?.onSelected(node?.ob?.nodePlantCellParent);
|
819
|
-
// this.isShowNodeInfo
|
820
|
-
// ? self.onDoubleClickNode.emit({
|
821
|
-
// left: e?.['Wr']?.x,
|
822
|
-
// top: e?.['Wr']?.y,
|
823
|
-
// node: {
|
824
|
-
// ob: node?.ob?.nodePlantCellParent,
|
825
|
-
// },
|
826
|
-
// })
|
827
|
-
// : null;
|
828
|
-
return;
|
829
|
-
}
|
830
|
-
if (!this._initialOptions?.isReadOnly) {
|
831
|
-
this.isShowNodeInfo
|
832
|
-
? self.onClickInfoButton.emit({
|
833
|
-
left: e?.['Wr']?.x,
|
834
|
-
top: e?.['Wr']?.y,
|
835
|
-
node: node,
|
836
|
-
})
|
837
|
-
: null;
|
838
|
-
}
|
839
|
-
},
|
840
|
-
selectionAdornmentTemplate: this.$(go.Adornment, 'Spot', this.$(go.Panel, 'Auto',
|
841
|
-
// { height: 62 },
|
842
|
-
this.$(go.Shape, { fill: null, stroke: 'dodgerblue', strokeWidth: 4 }), this.$(go.Placeholder,
|
843
|
-
// { padding: new go.Margin(8, 3, 0, 3) },
|
844
|
-
new go.Binding('padding', '', (x) => {
|
845
|
-
return x?.isTypeInflowOfPlantCell
|
846
|
-
? x?.flowOfPlantCell === ATO_ENUM_FLOW_DIRECTION.INFLOW
|
847
|
-
? new go.Margin(0, 0, 0, 20)
|
848
|
-
: new go.Margin(0, 20, 0, 0)
|
849
|
-
: null;
|
850
|
-
})),
|
851
|
-
// this.$(go.Placeholder, { padding: 3 }),
|
852
|
-
new go.Binding('height', '', (x) => {
|
853
|
-
return x?.isTypeInflowOfPlantCell ? x?.height + 10 : null;
|
854
|
-
}), new go.Binding('width', '', (x) => {
|
855
|
-
return x?.isTypeInflowOfPlantCell ? x?.width + 12 : null;
|
856
|
-
})), this.$(go.Panel, 'Horizontal', { alignment: go.Spot.TopRight, alignmentFocus: go.Spot.Bottom },
|
857
|
-
// more
|
858
|
-
!this._initialOptions.isReadOnly
|
859
|
-
? this.generateActionGroup([
|
860
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
|
861
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.INSIGHT,
|
862
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
863
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
864
|
-
])
|
865
|
-
: {})),
|
866
|
-
}, new go.Binding('fromSpot', 'fromSpot'), new go.Binding('toSpot', 'toSpot'), new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
867
|
-
// new go.Binding('alignment', 'alignment', function(loc) {
|
868
|
-
// return new go.Spot(0, 0, loc.x, 0);
|
869
|
-
// }).ofObject(),
|
870
|
-
this.$(go.Panel, 'Auto', {
|
871
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
872
|
-
margin: 2,
|
873
|
-
}, new go.Binding('text', '', function (data) {
|
874
|
-
if (!self._initialOptions.isReadOnly) {
|
875
|
-
return data?.name ?? VALUE_NA;
|
876
|
-
}
|
877
|
-
if (data?.value === VALUE_NA || _.isNil(data?.value)) {
|
878
|
-
return NO_DATA;
|
879
|
-
// return TEXT_UNKNOWN;
|
880
|
-
}
|
881
|
-
return _.round(data?.value, 2).toFixed(2);
|
882
|
-
}).makeTwoWay())),
|
883
|
-
}, this.$(go.Panel, 'Table', this.arrowForPlantCell(size, ATO_ENUM_FLOW_DIRECTION.OUTFLOW), this.$(go.Panel, 'Auto',
|
884
|
-
// { width: size.w, height: size.h },
|
885
|
-
{
|
886
|
-
// minSize: new go.Size(size.w, size.h),
|
887
|
-
// maxSize: new go.Size(size.w, size.h),
|
888
|
-
desiredSize: new go.Size(size.w, size.h),
|
889
|
-
column: 1,
|
890
|
-
row: 2,
|
891
|
-
}, new go.Binding('width', 'width'), new go.Binding('height', 'height'), this.$(go.Shape, 'RoundedRectangle', {
|
892
|
-
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
893
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
894
|
-
name: 'textNodeShape',
|
895
|
-
}, new go.Binding('fill', 'fill'), new go.Binding('stroke', 'stroke')), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', { alignment: go.Spot.Center },
|
896
|
-
// Alert
|
897
|
-
this.$(go.Panel, 'Auto', {
|
898
|
-
margin: new go.Margin(0, 0, 0, 5),
|
899
|
-
visible: false,
|
900
|
-
}, new go.Binding('visible', 'recommendation'), this.$(go.Shape, 'Circle', {
|
901
|
-
fill: '#E95F47',
|
902
|
-
stroke: '#E95F47',
|
903
|
-
width: 15,
|
904
|
-
height: 15,
|
905
|
-
}), this.$(go.TextBlock, {
|
906
|
-
text: '\uf649',
|
907
|
-
margin: new go.Margin(1.5, 0, 0, 0),
|
908
|
-
font: '8px "Font Awesome 6 Pro"',
|
909
|
-
stroke: '#fff',
|
910
|
-
})), this._initialOptions.isReadOnly
|
911
|
-
? this.$(go.Panel, 'Position', {
|
912
|
-
width: 18,
|
913
|
-
height: 15,
|
914
|
-
visible: false,
|
915
|
-
alignment: go.Spot.Center,
|
916
|
-
margin: new go.Margin(0, 0, 0, 5),
|
917
|
-
mouseEnter: (e, obj) => {
|
918
|
-
self.onHoverAlert.emit({
|
919
|
-
left: e?.['Wr']?.x + 8,
|
920
|
-
top: e?.['Wr']?.y,
|
921
|
-
messageAlert: obj.part?.ob?.messageAlert,
|
922
|
-
});
|
923
|
-
},
|
924
|
-
mouseLeave: (e, obj) => {
|
925
|
-
self.onHoverAlert.emit(null);
|
926
|
-
},
|
927
|
-
}, new go.Binding('visible', 'alert'), this.$(go.Picture, ICON_ALERT, {
|
928
|
-
alignment: go.Spot.Center,
|
929
|
-
maxSize: new go.Size(30, 30),
|
930
|
-
imageStretch: go.GraphObject.Uniform,
|
931
|
-
}))
|
932
|
-
: ''), this.$(go.Panel, 'Auto', this.$(go.TextBlock, {
|
933
|
-
name: 'textBlockValue',
|
934
|
-
row: 2,
|
935
|
-
editable: false,
|
936
|
-
desiredSize: new go.Size(size.w - 8, 18),
|
937
|
-
font: 'bold 22px Arial',
|
938
|
-
textAlign: 'center',
|
939
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
940
|
-
overflow: go.TextBlock.OverflowEllipsis,
|
941
|
-
},
|
942
|
-
// new go.Binding('editable', 'isEditable'),
|
943
|
-
new go.Binding('angle', 'angle'), new go.Binding('margin', '', (data) => {
|
944
|
-
if (data?.alert) {
|
945
|
-
return new go.Margin(0, 0, 0, 0);
|
946
|
-
}
|
947
|
-
return new go.Margin(0, 0, 0, 0);
|
948
|
-
}), new go.Binding('stroke', 'color'), new go.Binding('text', '', function (data) {
|
949
|
-
return self.getTextDataBox(data);
|
950
|
-
}).makeTwoWay(), new go.Binding('visible', '', (data) => !data?.isHiddenValue)))), this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false)), this.arrowForPlantCell(size, ATO_ENUM_FLOW_DIRECTION.INFLOW))));
|
951
|
-
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE, node);
|
952
|
-
}
|
953
|
-
arrowForPlantCell(size, flowDirection) {
|
954
|
-
return this.$(go.Panel, 'Table', {
|
955
|
-
height: size.h,
|
956
|
-
}, new go.Binding('height', 'height'), new go.Binding('visible', '', (data) => data?.flowOfPlantCell === flowDirection), {
|
957
|
-
column: flowDirection === ATO_ENUM_FLOW_DIRECTION.OUTFLOW ? 0 : 2,
|
958
|
-
row: 2,
|
959
|
-
}, new go.Binding('itemArray', 'dataLinkArray'), {
|
960
|
-
itemTemplate: this.$(go.Panel, new go.Binding('row', 'indexRow'),
|
961
|
-
// new go.Binding('height', 'height'),
|
962
|
-
this.$(go.Picture, ARROW, {
|
963
|
-
alignment: go.Spot.Center,
|
964
|
-
maxSize: new go.Size(20, 40),
|
965
|
-
// imageStretch: go.GraphObject.Uniform,
|
966
|
-
}, new go.Binding('source', '', (data, panel) => {
|
967
|
-
// panel.part?.data?.id
|
968
|
-
return data?.isCreated ? panel?.$p : ARROW_GRAY;
|
969
|
-
}))),
|
970
|
-
});
|
971
|
-
}
|
972
|
-
getTextDataBox(data) {
|
973
|
-
if (data?.value === VALUE_NA) {
|
974
|
-
return TEXT_UNKNOWN;
|
975
|
-
}
|
976
|
-
return `${data?.shortenedNumber}${data?.unitPrefixes ? ' ' + data?.unitPrefixes : ''}`;
|
977
|
-
}
|
978
|
-
makeDataBoxTemplate(size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
|
979
|
-
const self = this;
|
980
|
-
let node = this.$(go.Node, 'Spot', {
|
981
|
-
locationSpot: go.Spot.Center,
|
982
|
-
mouseOver: function (e, obj) { },
|
983
|
-
click: (e, obj) => {
|
984
|
-
if (obj?.data?.onSelected) {
|
985
|
-
obj?.data?.onSelected(obj?.data);
|
986
|
-
}
|
987
|
-
},
|
988
|
-
selectionChanged: (e) => {
|
989
|
-
if (!e.isSelected && e?.data?.onSelected) {
|
990
|
-
e?.data?.onSelected(null);
|
991
|
-
}
|
992
|
-
},
|
993
|
-
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', this.$(go.Panel, 'Table', {
|
994
|
-
mouseHover: (e, obj) => {
|
995
|
-
if (obj.part?.ob?.value === VALUE_NA) {
|
996
|
-
self.onHoverInfoButton.emit({
|
997
|
-
left: e?.['Wr']?.x + 8,
|
998
|
-
top: e?.['Wr']?.y,
|
999
|
-
node: node,
|
1000
|
-
});
|
1001
|
-
}
|
1002
|
-
},
|
1003
|
-
mouseLeave: (e, obj) => {
|
1004
|
-
if (obj.part?.ob?.value === VALUE_NA) {
|
1005
|
-
self.onHoverInfoButton.emit(null);
|
1006
|
-
}
|
1007
|
-
},
|
1008
|
-
}, this.$(go.Panel, 'Auto', { row: 0, stretch: go.GraphObject.Horizontal }, this.$(go.Shape, 'Rectangle', {
|
1009
|
-
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
1010
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
1011
|
-
}, new go.Binding('fill', 'color')), this.$(go.TextBlock, {
|
1012
|
-
row: 0,
|
1013
|
-
margin: new go.Margin(10, 10, 5, 10),
|
1014
|
-
maxSize: new go.Size(size.w, NaN),
|
1015
|
-
stroke: 'white',
|
1016
|
-
font: 'normal 10pt Arial',
|
1017
|
-
textAlign: 'center',
|
1018
|
-
spacingBelow: 5,
|
1019
|
-
}, new go.Binding('text', 'name').makeTwoWay())), this.$(go.Panel, 'Auto', { row: 1, stretch: go.GraphObject.Horizontal }, this.$(go.Shape, 'Rectangle', {
|
1020
|
-
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
1021
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
1022
|
-
}), this.$(go.Panel, 'Horizontal', this.$(go.TextBlock, {
|
1023
|
-
row: 2,
|
1024
|
-
// editable: true,
|
1025
|
-
// maxSize: new go.Size(size.w - 10, 40),
|
1026
|
-
// minSize: new go.Size(size.w - 10, size.h),
|
1027
|
-
margin: new go.Margin(5, 0, 5, 5),
|
1028
|
-
font: 'bold 12pt Arial',
|
1029
|
-
textAlign: 'center',
|
1030
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
1031
|
-
}, new go.Binding('editable', 'isEditable'), new go.Binding('text', 'shortenedNumber').makeTwoWay(), new go.Binding('stroke', 'color'), new go.Binding('visible', '', function (data) {
|
1032
|
-
return data.value !== VALUE_NA;
|
1033
|
-
})), this.$(go.TextBlock, {
|
1034
|
-
row: 2,
|
1035
|
-
// editable: true,
|
1036
|
-
// maxSize: new go.Size(size.w - 10, 40),
|
1037
|
-
// minSize: new go.Size(size.w - 10, size.h),
|
1038
|
-
margin: new go.Margin(5, 5, 5, 0),
|
1039
|
-
font: 'bold 12pt Arial',
|
1040
|
-
textAlign: 'center',
|
1041
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
1042
|
-
}, new go.Binding('visible', '', function (data) {
|
1043
|
-
return data.value !== VALUE_NA;
|
1044
|
-
}), new go.Binding('text', 'unitPrefixes'), new go.Binding('stroke', 'color')),
|
1045
|
-
// Icon Err when lack of value
|
1046
|
-
this.$(go.TextBlock, {
|
1047
|
-
margin: new go.Margin(10, 10, 10, 10),
|
1048
|
-
text: VALUE_NA,
|
1049
|
-
textAlign: 'center',
|
1050
|
-
font: 'bold 10pt sans-serif',
|
1051
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.SALMON,
|
1052
|
-
wrap: go.TextBlock.WrapFit,
|
1053
|
-
editable: false,
|
1054
|
-
isMultiline: false,
|
1055
|
-
}, new go.Binding('visible', '', function (data) {
|
1056
|
-
return data.value === VALUE_NA;
|
1057
|
-
})))))), this.$(go.Panel, 'Vertical', {
|
1058
|
-
alignment: go.Spot.Left,
|
1059
|
-
alignmentFocus: new go.Spot(0, 0.5, 8, 0),
|
1060
|
-
}), this.$(go.Panel, 'Vertical', {
|
1061
|
-
alignment: go.Spot.Right,
|
1062
|
-
alignmentFocus: new go.Spot(1, 0.5, -8, 0),
|
1063
|
-
}),
|
1064
|
-
// four named ports, one on each side:
|
1065
|
-
this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
|
1066
|
-
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX, node);
|
1067
|
-
}
|
1068
|
-
showPoint(loc) {
|
1069
|
-
const docLoc = this.myDiagram.transformDocToView(loc);
|
1070
|
-
}
|
1071
|
-
makeEntityTemplate(icon, title, size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
|
1072
|
-
const self = this;
|
1073
|
-
let node = this.$(go.Node, 'Spot', {
|
1074
|
-
locationSpot: go.Spot.Center,
|
1075
|
-
mouseOver: function (e, obj) {
|
1076
|
-
// self.showPoint(obj?.part?.location);
|
1077
|
-
},
|
1078
|
-
click: (e, obj) => {
|
1079
|
-
if (obj?.data?.onSelected) {
|
1080
|
-
obj?.data?.onSelected(obj?.data);
|
1081
|
-
self.onClickCompoent.emit({
|
1082
|
-
left: e?.['Wr']?.x,
|
1083
|
-
top: e?.['Wr']?.y,
|
1084
|
-
node: node,
|
1085
|
-
component: obj?.data,
|
1086
|
-
});
|
1087
|
-
}
|
1088
|
-
},
|
1089
|
-
selectionChanged: (e) => {
|
1090
|
-
if (!e.isSelected && e?.data?.onSelected) {
|
1091
|
-
e?.data?.onSelected(null);
|
1092
|
-
}
|
1093
|
-
},
|
1094
|
-
selectionAdornmentTemplate: this._initialOptions.isReadOnly
|
1095
|
-
? null
|
1096
|
-
: this.$(go.Adornment, 'Spot', {
|
1097
|
-
shadowVisible: true,
|
1098
|
-
shadowBlur: 6,
|
1099
|
-
shadowOffset: new go.Point(0, 2),
|
1100
|
-
shadowColor: '#00000029',
|
1101
|
-
}, this.$(go.Panel, 'Auto', this.$(go.Shape, { fill: null, stroke: 'dodgerblue', strokeWidth: 4 }), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', {
|
1102
|
-
alignment: go.Spot.TopRight,
|
1103
|
-
alignmentFocus: go.Spot.Bottom,
|
1104
|
-
background: 'white',
|
1105
|
-
},
|
1106
|
-
// more
|
1107
|
-
!this._initialOptions.isReadOnly
|
1108
|
-
? this.generateActionGroup([
|
1109
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT].name,
|
1110
|
-
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER]
|
1111
|
-
.name,
|
1112
|
-
].includes(title)
|
1113
|
-
? [
|
1114
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
|
1115
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS,
|
1116
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.ASSET_PARAMETERS,
|
1117
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
1118
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
1119
|
-
]
|
1120
|
-
: [
|
1121
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
|
1122
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS,
|
1123
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
1124
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
1125
|
-
])
|
1126
|
-
: {})),
|
1127
|
-
},
|
1128
|
-
// new go.Binding('location', 'loc', go.Point.parse),
|
1129
|
-
new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'RoundedRectangle', {
|
1130
|
-
fill: 'white',
|
1131
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
1132
|
-
strokeWidth: 1,
|
1133
|
-
// strokeDashArray: [5, 5],
|
1134
|
-
}), this.$(go.Panel, 'Table', this.$(go.Picture, icon, {
|
1135
|
-
row: 1,
|
1136
|
-
alignment: go.Spot.Center,
|
1137
|
-
desiredSize: new go.Size(size.w - 20, size.h - 50),
|
1138
|
-
// maxSize: new go.Size(60, 60),
|
1139
|
-
imageStretch: go.GraphObject.Uniform,
|
1140
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
1141
|
-
margin: 4,
|
1142
|
-
text: title,
|
1143
|
-
})),
|
1144
|
-
}), this.$(go.TextBlock, {
|
1145
|
-
row: 2,
|
1146
|
-
margin: new go.Margin(10, 0, 3, 0),
|
1147
|
-
editable: true,
|
1148
|
-
desiredSize: new go.Size(size.w - 20, 15),
|
1149
|
-
stroke: '#000D42',
|
1150
|
-
font: 'bold 10pt Arial',
|
1151
|
-
textAlign: 'center',
|
1152
|
-
// wrap: go.TextBlock.None,
|
1153
|
-
overflow: go.TextBlock.OverflowEllipsis,
|
1154
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name'))),
|
1155
|
-
}, new go.Binding('text', 'name').makeTwoWay(), new go.Binding('editable', '', (data) => {
|
1156
|
-
return !(AtoGojsEditorModel.TYPE_COMPONENT_WATER?.includes(data?.systemType) &&
|
1157
|
-
data?.topologyType !== ATO_ECOMPONENT_PLANT_TYPE.WATER &&
|
1158
|
-
data?.topologyType !== ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL);
|
1159
|
-
})))), this.$(go.Panel, 'Vertical', {
|
1160
|
-
alignment: go.Spot.Left,
|
1161
|
-
alignmentFocus: new go.Spot(0, 0.5, 8, 0),
|
1162
|
-
}), this.$(go.Panel, 'Vertical', {
|
1163
|
-
alignment: go.Spot.Right,
|
1164
|
-
alignmentFocus: new go.Spot(1, 0.5, -8, 0),
|
1165
|
-
}), this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
|
1166
|
-
this.myDiagram.nodeTemplateMap.set(title, node);
|
1167
|
-
}
|
1168
|
-
makeEntityTemplateEnergy(icon, title, size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
|
1169
|
-
const self = this;
|
1170
|
-
let node = this.$(go.Node, 'Spot', {
|
1171
|
-
locationSpot: go.Spot.Center,
|
1172
|
-
mouseOver: function (e, obj) {
|
1173
|
-
// self.showPoint(obj?.part?.location);
|
1174
|
-
},
|
1175
|
-
click: (e, obj) => {
|
1176
|
-
if (obj?.data?.onSelected) {
|
1177
|
-
obj?.data?.onSelected(obj?.data);
|
1178
|
-
}
|
1179
|
-
},
|
1180
|
-
selectionChanged: (e) => {
|
1181
|
-
if (!e.isSelected && e?.data?.onSelected) {
|
1182
|
-
e?.data?.onSelected(null);
|
1183
|
-
}
|
1184
|
-
},
|
1185
|
-
selectionAdornmentTemplate: this._initialOptions.isReadOnly
|
1186
|
-
? null
|
1187
|
-
: this.$(go.Adornment, 'Spot', {
|
1188
|
-
shadowVisible: true,
|
1189
|
-
shadowBlur: 6,
|
1190
|
-
shadowOffset: new go.Point(0, 2),
|
1191
|
-
shadowColor: '#00000029',
|
1192
|
-
}, this.$(go.Panel, 'Auto', this.$(go.Shape, { fill: null, stroke: 'dodgerblue', strokeWidth: 4 }), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', {
|
1193
|
-
alignment: go.Spot.TopRight,
|
1194
|
-
alignmentFocus: go.Spot.Bottom,
|
1195
|
-
background: 'white',
|
1196
|
-
},
|
1197
|
-
// more
|
1198
|
-
this.generateActionGroup([
|
1199
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
|
1200
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS,
|
1201
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
1202
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
1203
|
-
]))),
|
1204
|
-
}, new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'RoundedRectangle', {
|
1205
|
-
fill: 'white',
|
1206
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
1207
|
-
// strokeDashArray: [5, 5],
|
1208
|
-
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
|
1209
|
-
row: 0,
|
1210
|
-
margin: new go.Margin(3, 3, 10, 3),
|
1211
|
-
maxSize: new go.Size(size.w - 20, 15),
|
1212
|
-
stroke: '#444444',
|
1213
|
-
font: 'normal 10pt Arial',
|
1214
|
-
textAlign: 'center',
|
1215
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
1216
|
-
margin: 4,
|
1217
|
-
text: title,
|
1218
|
-
})),
|
1219
|
-
}), this.$(go.Picture, icon, {
|
1220
|
-
row: 1,
|
1221
|
-
alignment: go.Spot.Center,
|
1222
|
-
desiredSize: new go.Size(size.w - 20, size.h - 65),
|
1223
|
-
imageStretch: go.GraphObject.Uniform,
|
1224
|
-
}), this.$(go.TextBlock, {
|
1225
|
-
row: 2,
|
1226
|
-
margin: new go.Margin(10, 3, 3, 3),
|
1227
|
-
editable: true,
|
1228
|
-
maxSize: new go.Size(size.w - 20, 15),
|
1229
|
-
stroke: '#2C2C2C',
|
1230
|
-
font: 'bold 10pt Arial',
|
1231
|
-
textAlign: 'center',
|
1232
|
-
// wrap: go.TextBlock.None,
|
1233
|
-
overflow: go.TextBlock.OverflowEllipsis,
|
1234
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
1235
|
-
margin: 4,
|
1236
|
-
}, new go.Binding('text', 'name').makeTwoWay())),
|
1237
|
-
}, new go.Binding('text', 'name').makeTwoWay()))), this.$(go.Panel, 'Vertical', {
|
1238
|
-
alignment: go.Spot.Left,
|
1239
|
-
alignmentFocus: new go.Spot(0, 0.5, 8, 0),
|
1240
|
-
}), this.$(go.Panel, 'Vertical', {
|
1241
|
-
alignment: go.Spot.Right,
|
1242
|
-
alignmentFocus: new go.Spot(1, 0.5, -8, 0),
|
1243
|
-
}),
|
1244
|
-
// four named ports, one on each side:
|
1245
|
-
this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
|
1246
|
-
this.myDiagram.nodeTemplateMap.set(title, node);
|
1247
|
-
}
|
1248
|
-
// Plant Cell
|
1249
|
-
plantCellTemplate(icon, title, size = { w: 260, h: AtoGojsEditorModel.PLANT_CELL_HEIGHT }) {
|
1250
|
-
const self = this;
|
1251
|
-
let node = this.$(go.Group, 'Spot', {
|
1252
|
-
locationSpot: go.Spot.Center,
|
1253
|
-
mouseOver: function (e, obj) {
|
1254
|
-
// self.showPoint(obj?.part?.location);
|
1255
|
-
},
|
1256
|
-
mouseEnter: (e, obj) => {
|
1257
|
-
// self.onHoverAlert.emit({
|
1258
|
-
// left: e?.['Wr']?.x + 8,
|
1259
|
-
// top: e?.['Wr']?.y,
|
1260
|
-
// messageAlert: (obj as any).part?.ob?.messageAlert,
|
1261
|
-
// });
|
1262
|
-
const node = obj.part;
|
1263
|
-
self.onHoverInfoButton.emit({
|
1264
|
-
left: e?.['Wr']?.x + 8,
|
1265
|
-
top: e?.['Wr']?.y,
|
1266
|
-
node: node,
|
1267
|
-
});
|
1268
|
-
let shape = node?.findObject('SHAPE_KEY'); // Thay 'SHAPE_KEY' bằng khóa bạn đặt cho hình Shape
|
1269
|
-
// debugger;
|
1270
|
-
if (shape) {
|
1271
|
-
shape.stroke = 'blue'; // Thay đổi màu stroke thành blue
|
1272
|
-
}
|
1273
|
-
},
|
1274
|
-
mouseLeave: (e, obj) => {
|
1275
|
-
self.onHoverInfoButton.emit(null);
|
1276
|
-
// self.onHoverAlert.emit(null);
|
1277
|
-
},
|
1278
|
-
click: (e, obj) => {
|
1279
|
-
if (obj?.data?.onSelected) {
|
1280
|
-
obj?.data?.onSelected(obj?.data);
|
1281
|
-
self.onClickCompoent.emit({
|
1282
|
-
left: e?.['Wr']?.x,
|
1283
|
-
top: e?.['Wr']?.y,
|
1284
|
-
node: node,
|
1285
|
-
component: obj?.data,
|
1286
|
-
});
|
1287
|
-
}
|
1288
|
-
},
|
1289
|
-
doubleClick: (e, obj) => {
|
1290
|
-
if (!this._initialOptions?.isReadOnly) {
|
1291
|
-
const node = obj.part;
|
1292
|
-
this.isShowNodeInfo
|
1293
|
-
? self.onDoubleClickNode.emit({
|
1294
|
-
left: e?.['Wr']?.x,
|
1295
|
-
top: e?.['Wr']?.y,
|
1296
|
-
node: node,
|
1297
|
-
})
|
1298
|
-
: null;
|
1299
|
-
}
|
1300
|
-
},
|
1301
|
-
// Todo
|
1302
|
-
selectionChanged: (e) => {
|
1303
|
-
if (!e.isSelected && e?.data?.onSelected) {
|
1304
|
-
e?.data?.onSelected(null);
|
1305
|
-
}
|
1306
|
-
},
|
1307
|
-
selectionAdornmentTemplate: this._initialOptions.isReadOnly
|
1308
|
-
? null
|
1309
|
-
: this.$(go.Adornment, 'Spot', {
|
1310
|
-
shadowVisible: true,
|
1311
|
-
shadowBlur: 6,
|
1312
|
-
shadowOffset: new go.Point(0, 2),
|
1313
|
-
shadowColor: '#00000029',
|
1314
|
-
}, this.$(go.Panel, 'Auto', { width: 170 }, this.$(go.Shape, { fill: null, stroke: 'dodgerblue', strokeWidth: 4 }), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', { alignment: go.Spot.TopRight, alignmentFocus: go.Spot.Bottom },
|
1315
|
-
// more
|
1316
|
-
this.generateActionGroup([
|
1317
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
|
1318
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.CHANGE_ICON,
|
1319
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.ONLY_DETAILS,
|
1320
|
-
// DefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
1321
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
1322
|
-
]))),
|
1323
|
-
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h },
|
1324
|
-
// this.$(go.Shape, 'RoundedRectangle', {
|
1325
|
-
// fill: 'white',
|
1326
|
-
// stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
1327
|
-
// // strokeDashArray: [5, 5],
|
1328
|
-
// }),
|
1329
|
-
// this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0), visible: false }),
|
1330
|
-
this.$(go.Panel, 'Auto', {
|
1331
|
-
alignmentFocus: go.Spot.Center,
|
1332
|
-
margin: new go.Margin(0, 50, 0, 50),
|
1333
|
-
}, this.$(go.Shape, 'RoundedRectangle', {
|
1334
|
-
fill: 'white',
|
1335
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
1336
|
-
strokeDashArray: [5, 5],
|
1337
|
-
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
|
1338
|
-
row: 0,
|
1339
|
-
margin: new go.Margin(3, 0, 10, 0),
|
1340
|
-
desiredSize: new go.Size(size.w - 20, 15),
|
1341
|
-
stroke: '#444444',
|
1342
|
-
font: 'normal 10pt Arial',
|
1343
|
-
textAlign: 'center',
|
1344
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
1345
|
-
margin: 4,
|
1346
|
-
text: title,
|
1347
|
-
})),
|
1348
|
-
}), this.$(go.Picture, icon, {
|
1349
|
-
row: 1,
|
1350
|
-
alignment: go.Spot.Center,
|
1351
|
-
desiredSize: new go.Size(size.w - 20, size.h - 65),
|
1352
|
-
imageStretch: go.GraphObject.Uniform,
|
1353
|
-
}, new go.Binding('source', 'pathImage', (x) => x ?? AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL].icon)), this.$(go.TextBlock, {
|
1354
|
-
row: 2,
|
1355
|
-
margin: new go.Margin(10, 0, 3, 0),
|
1356
|
-
editable: true,
|
1357
|
-
desiredSize: new go.Size(size.w - 20, 15),
|
1358
|
-
stroke: '#2C2C2C',
|
1359
|
-
font: 'bold 10pt Arial',
|
1360
|
-
textAlign: 'center',
|
1361
|
-
// wrap: go.TextBlock.None,
|
1362
|
-
overflow: go.TextBlock.OverflowEllipsis,
|
1363
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
1364
|
-
margin: 4,
|
1365
|
-
}, new go.Binding('text', 'name').makeTwoWay())),
|
1366
|
-
}, new go.Binding('text', 'name').makeTwoWay())))), this.$(go.Panel, 'Vertical', {
|
1367
|
-
alignment: go.Spot.Left,
|
1368
|
-
alignmentFocus: new go.Spot(0, 0.5, 8, 0),
|
1369
|
-
}), this.$(go.Panel, 'Vertical', {
|
1370
|
-
alignment: go.Spot.Right,
|
1371
|
-
alignmentFocus: new go.Spot(1, 0.5, -8, 0),
|
1372
|
-
}));
|
1373
|
-
this.myDiagram.nodeTemplateMap.set(title, node);
|
1374
|
-
}
|
1375
|
-
makeEntityWithdrawOrDischarge(icon, title, size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
|
1376
|
-
const self = this;
|
1377
|
-
let node = this.$(go.Node, 'Spot', {
|
1378
|
-
locationSpot: go.Spot.Center,
|
1379
|
-
mouseOver: function (e, obj) {
|
1380
|
-
// self.showPoint(obj?.part?.location);
|
1381
|
-
},
|
1382
|
-
click: (e, obj) => {
|
1383
|
-
if (obj?.data?.onSelected) {
|
1384
|
-
obj?.data?.onSelected(obj?.data);
|
1385
|
-
}
|
1386
|
-
},
|
1387
|
-
selectionChanged: (e) => {
|
1388
|
-
if (!e.isSelected && e?.data?.onSelected) {
|
1389
|
-
e?.data?.onSelected(null);
|
1390
|
-
}
|
1391
|
-
},
|
1392
|
-
selectionAdornmentTemplate: this._initialOptions.isReadOnly
|
1393
|
-
? null
|
1394
|
-
: this.$(go.Adornment, 'Spot', this.$(go.Panel, 'Auto', this.$(go.Shape, { fill: null, stroke: 'dodgerblue', strokeWidth: 4 }), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', { alignment: go.Spot.TopRight, alignmentFocus: go.Spot.Bottom }, this.generateActionGroup([
|
1395
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
|
1396
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS,
|
1397
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
1398
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
1399
|
-
]))),
|
1400
|
-
},
|
1401
|
-
// new go.Binding('location', 'loc', go.Point.parse),
|
1402
|
-
new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'RoundedRectangle', {
|
1403
|
-
fill: 'white',
|
1404
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
1405
|
-
// strokeDashArray: [5, 5],
|
1406
|
-
}), this.$(go.Panel, 'Table',
|
1407
|
-
// this.$(go.TextBlock, title, {
|
1408
|
-
// row: 0,
|
1409
|
-
// margin: new go.Margin(3, 3, 10, 3),
|
1410
|
-
// maxSize: new go.Size(size.w - 20, NaN),
|
1411
|
-
// stroke: '#444444',
|
1412
|
-
// font: 'normal 10pt Arial',
|
1413
|
-
// textAlign: 'center',
|
1414
|
-
// }),
|
1415
|
-
this.$(go.Picture, icon, {
|
1416
|
-
row: 1,
|
1417
|
-
alignment: go.Spot.Center,
|
1418
|
-
desiredSize: new go.Size(size.w - 20, size.h - 50),
|
1419
|
-
imageStretch: go.GraphObject.Uniform,
|
1420
|
-
}), this.$(go.TextBlock, {
|
1421
|
-
row: 2,
|
1422
|
-
margin: new go.Margin(10, 0, 3, 0),
|
1423
|
-
editable: true,
|
1424
|
-
desiredSize: new go.Size(size.w - 20, 15),
|
1425
|
-
stroke: '#000D42',
|
1426
|
-
font: 'bold 10pt Arial',
|
1427
|
-
textAlign: 'center',
|
1428
|
-
// wrap: go.TextBlock.None,
|
1429
|
-
overflow: go.TextBlock.OverflowEllipsis,
|
1430
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
1431
|
-
margin: 4,
|
1432
|
-
}, new go.Binding('text', 'name').makeTwoWay())),
|
1433
|
-
}, new go.Binding('text', 'name').makeTwoWay()))), this.$(go.Panel, 'Vertical', {
|
1434
|
-
alignment: go.Spot.Left,
|
1435
|
-
alignmentFocus: new go.Spot(0, 0.5, 8, 0),
|
1436
|
-
}), this.$(go.Panel, 'Vertical', {
|
1437
|
-
alignment: go.Spot.Right,
|
1438
|
-
alignmentFocus: new go.Spot(1, 0.5, -8, 0),
|
1439
|
-
}),
|
1440
|
-
// four named ports, one on each side:
|
1441
|
-
this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
|
1442
|
-
this.myDiagram.nodeTemplateMap.set(title, node);
|
1443
|
-
}
|
1444
|
-
editTextGroupZone(e, button) {
|
1445
|
-
const nodeGroup = button.part.adornedPart;
|
1446
|
-
const diagram = nodeGroup.diagram;
|
1447
|
-
e.diagram.commandHandler.editTextBlock(nodeGroup.findObject('TEXTBLOCK'));
|
1448
|
-
}
|
1449
|
-
editText(e, button) {
|
1450
|
-
const node = button.part.adornedPart;
|
1451
|
-
e.diagram.commandHandler.editTextBlock(node.findObject('TEXTBLOCK'));
|
1452
|
-
}
|
1453
|
-
async dragNewNode(e, button) {
|
1454
|
-
const tool = e.diagram.toolManager.draggingTool;
|
1455
|
-
if (tool.isBeyondDragSize()) {
|
1456
|
-
const data = button._dragData;
|
1457
|
-
if (!data)
|
1458
|
-
return;
|
1459
|
-
e.diagram.startTransaction('button drag'); // see doDeactivate, below
|
1460
|
-
const fromnode = button.part.adornedPart;
|
1461
|
-
const diagram = fromnode.diagram;
|
1462
|
-
const model = diagram.model;
|
1463
|
-
const nodedata = { ...model.copyNodeData(data), key: UtilsService.generateUUID() };
|
1464
|
-
model.addNodeData(nodedata);
|
1465
|
-
const newnode = diagram.findNodeForData(nodedata);
|
1466
|
-
const linkdata = model.copyLinkData({});
|
1467
|
-
model.setFromKeyForLinkData(linkdata, model.getKeyForNodeData(fromnode.data));
|
1468
|
-
model.setToKeyForLinkData(linkdata, model.getKeyForNodeData(newnode.data));
|
1469
|
-
model.addLinkData(linkdata);
|
1470
|
-
diagram.select(newnode);
|
1471
|
-
// this.createNodeAndLink(data, button.part.adornedPart);
|
1472
|
-
newnode.location = e.diagram.lastInput.documentPoint;
|
1473
|
-
// don't commitTransaction here, but in tool.doDeactivate, after drag operation finished
|
1474
|
-
// set tool.currentPart to a selected movable Part and then activate the DraggingTool
|
1475
|
-
tool.currentPart = newnode;
|
1476
|
-
e.diagram.currentTool = tool;
|
1477
|
-
tool.doActivate();
|
1478
|
-
}
|
1479
|
-
}
|
1480
|
-
addItemOnGroupZone(e, button) {
|
1481
|
-
const data = button._dragData;
|
1482
|
-
if (!data)
|
1483
|
-
return;
|
1484
|
-
e.diagram.startTransaction('Add Item On Group Zone');
|
1485
|
-
const fromnode = button.part.adornedPart;
|
1486
|
-
const dragData = button._dragData;
|
1487
|
-
const diagram = fromnode.diagram;
|
1488
|
-
const model = diagram.model;
|
1489
|
-
const nodedata = model.copyNodeData(dragData);
|
1490
|
-
model.addNodeData({
|
1491
|
-
...nodedata,
|
1492
|
-
type: 'SubSystem',
|
1493
|
-
name: '[Title...]',
|
1494
|
-
nameItem: '[Name...]',
|
1495
|
-
group: fromnode?.ob?.key,
|
1496
|
-
});
|
1497
|
-
e.diagram.commitTransaction('Add Item On Group Zone');
|
1498
|
-
// const newnode = diagram.findNodeForData(nodedata);
|
1499
|
-
// const linkdata = model.copyLinkData({});
|
1500
|
-
// model.setFromKeyForLinkData(linkdata, model.getKeyForNodeData(fromnode.data));
|
1501
|
-
// model.setToKeyForLinkData(linkdata, model.getKeyForNodeData(newnode.data));
|
1502
|
-
// model.addLinkData(linkdata);
|
1503
|
-
// diagram.select(newnode);
|
1504
|
-
// newnode.location = new go.Point(fromnode.location.x + 200, fromnode.location.y);
|
1505
|
-
// e.diagram.commitTransaction('Create Node and Link');
|
1506
|
-
}
|
1507
|
-
generateActionGroup(actions) {
|
1508
|
-
const self = this;
|
1509
|
-
return this.$('Button', {
|
1510
|
-
click: function (e, obj) {
|
1511
|
-
self.openActionMenu();
|
1512
|
-
const filteredActions = _.filter(obj.part?.['ob']?.actions ?? actions, (action) => {
|
1513
|
-
// Filter Insight button
|
1514
|
-
if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.INSIGHT) {
|
1515
|
-
return !!obj.part?.['ob']?.id;
|
1516
|
-
}
|
1517
|
-
if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME &&
|
1518
|
-
obj.part?.['ob']?.type !== AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE &&
|
1519
|
-
AtoGojsEditorModel.TYPE_COMPONENT_WATER?.includes(obj.part?.['ob']?.systemType) &&
|
1520
|
-
obj.part?.['ob']?.topologyType !== ATO_ECOMPONENT_PLANT_TYPE.WATER &&
|
1521
|
-
obj.part?.['ob']?.topologyType !== ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL) {
|
1522
|
-
return false;
|
1523
|
-
}
|
1524
|
-
if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW &&
|
1525
|
-
self.plantSatus === ATO_EPlantType.BASIC_PLANT &&
|
1526
|
-
obj.part?.data?.type === AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
|
1527
|
-
return false;
|
1528
|
-
}
|
1529
|
-
return true;
|
1530
|
-
}).map((e) => {
|
1531
|
-
if (ATO_ECOMPONENT_PLANT_TYPE.STEAM === obj.part?.['ob']?.topologyType &&
|
1532
|
-
e === AtoDefaultGojsEditor.ENUM_ACTIONS.INSIGHT) {
|
1533
|
-
return AtoDefaultGojsEditor.ENUM_ACTIONS.DATA_MAPPING;
|
1534
|
-
}
|
1535
|
-
if (e === AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS &&
|
1536
|
-
obj?.part?.['ob']?.systemType === AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER) {
|
1537
|
-
return AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD;
|
1538
|
-
}
|
1539
|
-
return e;
|
1540
|
-
});
|
1541
|
-
self.actions = filteredActions.map((action) => {
|
1542
|
-
let onClickFn = () => { };
|
1543
|
-
switch (action) {
|
1544
|
-
case AtoDefaultGojsEditor.ENUM_ACTIONS.INSIGHT:
|
1545
|
-
case AtoDefaultGojsEditor.ENUM_ACTIONS.DATA_MAPPING:
|
1546
|
-
onClickFn = () => {
|
1547
|
-
self.onOpenInsightMapping.emit({
|
1548
|
-
node: obj.part,
|
1549
|
-
});
|
1550
|
-
};
|
1551
|
-
break;
|
1552
|
-
case AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS:
|
1553
|
-
case AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS:
|
1554
|
-
case AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD:
|
1555
|
-
onClickFn = () => {
|
1556
|
-
self.onOpenDetail.emit({
|
1557
|
-
node: obj.part,
|
1558
|
-
});
|
1559
|
-
};
|
1560
|
-
break;
|
1561
|
-
case AtoDefaultGojsEditor.ENUM_ACTIONS.ONLY_DETAILS:
|
1562
|
-
onClickFn = () => {
|
1563
|
-
self.onOpenDetail.emit({
|
1564
|
-
node: obj.part,
|
1565
|
-
});
|
1566
|
-
};
|
1567
|
-
break;
|
1568
|
-
case AtoDefaultGojsEditor.ENUM_ACTIONS.ASSET_PARAMETERS:
|
1569
|
-
onClickFn = () => {
|
1570
|
-
self.onOpenAssetParameter.emit({
|
1571
|
-
node: obj.part,
|
1572
|
-
});
|
1573
|
-
};
|
1574
|
-
break;
|
1575
|
-
case AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME:
|
1576
|
-
onClickFn = () => {
|
1577
|
-
if (obj.part?.data?.type === AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
|
1578
|
-
self.onRename.emit({
|
1579
|
-
left: e?.['Wr']?.x - 50,
|
1580
|
-
top: e?.['Wr']?.y,
|
1581
|
-
...obj.part?.data,
|
1582
|
-
});
|
1583
|
-
// LayoutService.setToolTipComponentDataStatic({
|
1584
|
-
// component: RenameBoxComponent,
|
1585
|
-
// data: {
|
1586
|
-
// left: e?.['Wr']?.x - 50,
|
1587
|
-
// top: e?.['Wr']?.y,
|
1588
|
-
// ...obj.part?.data,
|
1589
|
-
// },
|
1590
|
-
// });
|
1591
|
-
}
|
1592
|
-
else {
|
1593
|
-
self.editText(e, obj);
|
1594
|
-
}
|
1595
|
-
};
|
1596
|
-
break;
|
1597
|
-
case AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW:
|
1598
|
-
onClickFn = () => {
|
1599
|
-
self.clickNewNode(e, _.merge(obj, {
|
1600
|
-
actionMove: self.dragNewNode,
|
1601
|
-
_dragData: {
|
1602
|
-
...{
|
1603
|
-
type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
|
1604
|
-
name: `${AtoGojsEditorModel.ACTION_RIGHT_MENU_GROUP.DATA_BOX}_${moment().valueOf()}`,
|
1605
|
-
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
1606
|
-
},
|
1607
|
-
...self.setProFOrNewNode(self)
|
1608
|
-
},
|
1609
|
-
}));
|
1610
|
-
};
|
1611
|
-
break;
|
1612
|
-
case AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE:
|
1613
|
-
onClickFn = () => {
|
1614
|
-
self.deleteNode(e);
|
1615
|
-
};
|
1616
|
-
break;
|
1617
|
-
case AtoDefaultGojsEditor.ENUM_ACTIONS.CHANGE_ICON:
|
1618
|
-
onClickFn = () => {
|
1619
|
-
self.onOpenChangeIcon.emit({
|
1620
|
-
node: obj.part,
|
1621
|
-
});
|
1622
|
-
};
|
1623
|
-
break;
|
1624
|
-
}
|
1625
|
-
return {
|
1626
|
-
...AtoDefaultGojsEditor.ACTIONS[action],
|
1627
|
-
onClick: () => {
|
1628
|
-
onClickFn();
|
1629
|
-
},
|
1630
|
-
};
|
1631
|
-
});
|
1632
|
-
},
|
1633
|
-
'ButtonBorder.strokeWidth': 0,
|
1634
|
-
'ButtonBorder.fill': 'white',
|
1635
|
-
},
|
1636
|
-
// new go.Binding('visible', 'isNotDragNewNode', (x) => !x),
|
1637
|
-
// new go.Binding('visible', 'isNotDelete', (x) => !x),
|
1638
|
-
new go.Binding('visible', 'isNotAction', (x) => !x), this.$(go.TextBlock, {
|
1639
|
-
margin: 4,
|
1640
|
-
text: '\ue489',
|
1641
|
-
font: '20px "Font Awesome 6 Pro"',
|
1642
|
-
cursor: 'pointer',
|
1643
|
-
}));
|
1644
|
-
}
|
1645
|
-
async setProFOrNewNode(self) {
|
1646
|
-
if (self.plantSatus === ATO_EPlantType.BASIC_PLANT) {
|
1647
|
-
return {
|
1648
|
-
movable: false,
|
1649
|
-
isNotAllowConnect: true,
|
1650
|
-
};
|
1651
|
-
}
|
1652
|
-
return {};
|
1653
|
-
}
|
1654
|
-
async clickNewNode(e, button) {
|
1655
|
-
const data = button._dragData;
|
1656
|
-
if (!data)
|
1657
|
-
return;
|
1658
|
-
e.diagram.startTransaction('Create Node and Link');
|
1659
|
-
const fromnode = button.part.adornedPart;
|
1660
|
-
// this.createNodeAndLink(button._dragData, fromnode);
|
1661
|
-
const dragData = button._dragData;
|
1662
|
-
const diagram = fromnode.diagram;
|
1663
|
-
const model = diagram.model;
|
1664
|
-
const nodedata = { ...model.copyNodeData(dragData), key: UtilsService.generateUUID() };
|
1665
|
-
model.addNodeData({
|
1666
|
-
...nodedata,
|
1667
|
-
isEditable: true,
|
1668
|
-
shortenedNumber: 0,
|
1669
|
-
isFormat: false,
|
1670
|
-
dataCollectionMethod: AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL,
|
1671
|
-
color: AtoGojsEditorModel.COLOR_COLLECTION_METHOD[AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL].color,
|
1672
|
-
group: fromnode?.ob?.group,
|
1673
|
-
value: 0,
|
1674
|
-
});
|
1675
|
-
const newnode = diagram.findNodeForData(nodedata);
|
1676
|
-
const linkdata = model.copyLinkData({});
|
1677
|
-
model.setFromKeyForLinkData(linkdata, model.getKeyForNodeData(fromnode.data));
|
1678
|
-
model.setToKeyForLinkData(linkdata, model.getKeyForNodeData(newnode.data));
|
1679
|
-
model.addLinkData(linkdata);
|
1680
|
-
diagram.select(newnode);
|
1681
|
-
if (nodedata?.movable !== undefined && nodedata?.movable !== null) {
|
1682
|
-
newnode.movable = nodedata?.movable;
|
1683
|
-
}
|
1684
|
-
newnode.location = new go.Point(fromnode.location.x + 160, fromnode.location.y + this.findLocYFromnode(fromnode) * AtoDefaultGojsEditor.DISTANCE_2_OUTPUT);
|
1685
|
-
e.diagram.commitTransaction('Create Node and Link');
|
1686
|
-
}
|
1687
|
-
findLocYFromnode(fromnode) {
|
1688
|
-
// Find location auto right
|
1689
|
-
const locYFromnode = fromnode.data?.loc?.split(' ')?.[1];
|
1690
|
-
const locYAlreadyExist = [];
|
1691
|
-
fromnode.findLinksOutOf().each(function (link) {
|
1692
|
-
const targetNode = link.toNode;
|
1693
|
-
if (targetNode) {
|
1694
|
-
locYAlreadyExist.push(targetNode.data?.loc?.split(' ')?.[1] - locYFromnode);
|
1695
|
-
}
|
1696
|
-
});
|
1697
|
-
let i = 0;
|
1698
|
-
while (this.isEmptyYLoc(locYAlreadyExist, i) === null && i < 100) {
|
1699
|
-
i++;
|
1700
|
-
}
|
1701
|
-
return this.isEmptyYLoc(locYAlreadyExist, i);
|
1702
|
-
}
|
1703
|
-
isEmptyYLoc(locYAlreadyExist, i) {
|
1704
|
-
if (!_.some(locYAlreadyExist, (x) => x < i * AtoDefaultGojsEditor.DISTANCE_2_OUTPUT + AtoDefaultGojsEditor.DISTANCE_2_OUTPUT / 2 &&
|
1705
|
-
x > i * AtoDefaultGojsEditor.DISTANCE_2_OUTPUT - AtoDefaultGojsEditor.DISTANCE_2_OUTPUT / 2)) {
|
1706
|
-
return i;
|
1707
|
-
}
|
1708
|
-
if (!_.some(locYAlreadyExist, (x) => x < -i * AtoDefaultGojsEditor.DISTANCE_2_OUTPUT + AtoDefaultGojsEditor.DISTANCE_2_OUTPUT / 2 &&
|
1709
|
-
x > -i * AtoDefaultGojsEditor.DISTANCE_2_OUTPUT - AtoDefaultGojsEditor.DISTANCE_2_OUTPUT / 2)) {
|
1710
|
-
return -i;
|
1711
|
-
}
|
1712
|
-
return null;
|
1713
|
-
}
|
1714
|
-
createNewNode(newnode) {
|
1715
|
-
this.addTemplate(newnode);
|
1716
|
-
this.myDiagram.startTransaction('add group node');
|
1717
|
-
this.myDiagram.model.addNodeData(newnode);
|
1718
|
-
this.myDiagram.commitTransaction('add group node');
|
1719
|
-
}
|
1720
|
-
deleteNode(e) {
|
1721
|
-
e.diagram.startTransaction('Delete group node');
|
1722
|
-
e.diagram.removeParts(e.diagram.selection);
|
1723
|
-
e.diagram.commitTransaction('Delete group node');
|
1724
|
-
}
|
1725
|
-
deleteNodeOnDiagram(e) {
|
1726
|
-
e.startTransaction('Delete group node');
|
1727
|
-
e.removeParts(e.selection);
|
1728
|
-
e.commitTransaction('Delete group node');
|
1729
|
-
}
|
1730
|
-
insightNode(e) { }
|
1731
|
-
drawLink(e, button) {
|
1732
|
-
const node = button.part.adornedPart;
|
1733
|
-
const tool = e.diagram.toolManager.linkingTool;
|
1734
|
-
tool.startObject = node.port;
|
1735
|
-
e.diagram.currentTool = tool;
|
1736
|
-
tool.doActivate();
|
1737
|
-
}
|
1738
|
-
makePortGroup(name, align, spot, output, input) {
|
1739
|
-
const horizontal = align.equals(go.Spot.Top) || align.equals(go.Spot.Bottom);
|
1740
|
-
return this.$(go.Panel, 'Table', {
|
1741
|
-
background: '#919CA5',
|
1742
|
-
width: 40,
|
1743
|
-
height: 40,
|
1744
|
-
alignment: align,
|
1745
|
-
stretch: horizontal ? go.GraphObject.Horizontal : go.GraphObject.Vertical,
|
1746
|
-
portId: name,
|
1747
|
-
fromSpot: spot,
|
1748
|
-
fromLinkable: output,
|
1749
|
-
toSpot: spot,
|
1750
|
-
toLinkable: input,
|
1751
|
-
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
1752
|
-
alignmentFocus: go.Spot.Center, // tập trung vào trung tâm của Panel
|
1753
|
-
// mouseEnter: this._initialOptions.isReadOnly
|
1754
|
-
// ? null
|
1755
|
-
// : (e, panel) => {
|
1756
|
-
// const textBlock = (panel as any)?.findObject('textBlock') as go.TextBlock | null;
|
1757
|
-
// if (textBlock) {
|
1758
|
-
// // && output
|
1759
|
-
// textBlock.visible = true;
|
1760
|
-
// switch (name) {
|
1761
|
-
// case 'B':
|
1762
|
-
// case 'R': {
|
1763
|
-
// panel.background = 'rgb(243 144 171)';
|
1764
|
-
// break;
|
1765
|
-
// }
|
1766
|
-
// case 'T':
|
1767
|
-
// case 'L': {
|
1768
|
-
// panel.background = 'rgb(103,151,207)';
|
1769
|
-
// break;
|
1770
|
-
// }
|
1771
|
-
// default: {
|
1772
|
-
// panel.background = 'rgb(243 144 171)';
|
1773
|
-
// }
|
1774
|
-
// }
|
1775
|
-
// }
|
1776
|
-
// },
|
1777
|
-
// mouseLeave: this._initialOptions.isReadOnly
|
1778
|
-
// ? null
|
1779
|
-
// : (e, panel) => {
|
1780
|
-
// const textBlock = (panel as any).findObject('textBlock') as go.TextBlock | null;
|
1781
|
-
// if (textBlock) {
|
1782
|
-
// textBlock.visible = false; // Ẩn TextBlock khi rời khỏi Panel
|
1783
|
-
// }
|
1784
|
-
// panel.background = 'transparent';
|
1785
|
-
// },
|
1786
|
-
}, this.$(go.Shape, 'Ellipse', {
|
1787
|
-
fill: 'white',
|
1788
|
-
strokeWidth: 2,
|
1789
|
-
stroke: '#919CA5',
|
1790
|
-
width: 40,
|
1791
|
-
height: 40, // Match the panel's height
|
1792
|
-
}));
|
1793
|
-
}
|
1794
|
-
makePort(name, align, spot, output, input) {
|
1795
|
-
// if (this._initialOptions.isReadOnly) {
|
1796
|
-
// return {};
|
1797
|
-
// }
|
1798
|
-
const horizontal = align.equals(go.Spot.Top) || align.equals(go.Spot.Bottom);
|
1799
|
-
// const vertical = align.equals(go.Spot.Left) || align.equals(go.Spot.Right);
|
1800
|
-
// the port is basically just a transparent rectangle that stretches along the side of the node,
|
1801
|
-
// and becomes colored when the mouse passes over it
|
1802
|
-
return this.$(go.Panel, 'Table', {
|
1803
|
-
background: 'transparent',
|
1804
|
-
width: horizontal ? NaN : 8,
|
1805
|
-
height: !horizontal ? NaN : 8,
|
1806
|
-
alignment: align,
|
1807
|
-
stretch: horizontal ? go.GraphObject.Horizontal : go.GraphObject.Vertical,
|
1808
|
-
portId: name,
|
1809
|
-
fromSpot: spot,
|
1810
|
-
fromLinkable: output,
|
1811
|
-
toSpot: spot,
|
1812
|
-
toLinkable: input,
|
1813
|
-
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
1814
|
-
alignmentFocus: go.Spot.Center,
|
1815
|
-
mouseEnter: this._initialOptions.isReadOnly
|
1816
|
-
? null
|
1817
|
-
: (e, panel) => {
|
1818
|
-
const textBlock = panel?.findObject('textBlock');
|
1819
|
-
if (textBlock) {
|
1820
|
-
// && output
|
1821
|
-
textBlock.visible = true;
|
1822
|
-
switch (name) {
|
1823
|
-
case 'B':
|
1824
|
-
case 'R': {
|
1825
|
-
panel.background = 'rgb(243 144 171)';
|
1826
|
-
break;
|
1827
|
-
}
|
1828
|
-
case 'T':
|
1829
|
-
case 'L': {
|
1830
|
-
panel.background = 'rgb(103,151,207)';
|
1831
|
-
break;
|
1832
|
-
}
|
1833
|
-
default: {
|
1834
|
-
panel.background = 'rgb(243 144 171)';
|
1835
|
-
}
|
1836
|
-
}
|
1837
|
-
}
|
1838
|
-
},
|
1839
|
-
mouseLeave: this._initialOptions.isReadOnly
|
1840
|
-
? null
|
1841
|
-
: (e, panel) => {
|
1842
|
-
const textBlock = panel.findObject('textBlock');
|
1843
|
-
if (textBlock) {
|
1844
|
-
textBlock.visible = false; // Ẩn TextBlock khi rời khỏi Panel
|
1845
|
-
}
|
1846
|
-
panel.background = 'transparent';
|
1847
|
-
},
|
1848
|
-
}, new go.Binding('visible', '', function (data) {
|
1849
|
-
if (data?.isNotAllowConnect) {
|
1850
|
-
return false;
|
1851
|
-
}
|
1852
|
-
if (data?.selectable === false && !data?.isAllowConnect) {
|
1853
|
-
return false;
|
1854
|
-
}
|
1855
|
-
if (data?.flowOfPlantCell) {
|
1856
|
-
if (data?.flowOfPlantCell === ATO_ENUM_FLOW_DIRECTION.INFLOW && name === 'L') {
|
1857
|
-
return true;
|
1858
|
-
}
|
1859
|
-
if (data?.flowOfPlantCell === ATO_ENUM_FLOW_DIRECTION.OUTFLOW && name === 'R') {
|
1860
|
-
return true;
|
1861
|
-
}
|
1862
|
-
return false;
|
1863
|
-
}
|
1864
|
-
switch (name) {
|
1865
|
-
case 'B':
|
1866
|
-
case 'R': {
|
1867
|
-
return !data?.isNotSelectOutput;
|
1868
|
-
}
|
1869
|
-
case 'T':
|
1870
|
-
case 'L': {
|
1871
|
-
return !data?.isNotSelectInput;
|
1872
|
-
}
|
1873
|
-
default: {
|
1874
|
-
return true;
|
1875
|
-
}
|
1876
|
-
}
|
1877
|
-
}), this.$(go.TextBlock, {
|
1878
|
-
name: 'textBlock',
|
1879
|
-
margin: 4,
|
1880
|
-
text: '\uf0da',
|
1881
|
-
font: '900 12px "Font Awesome 6 Pro"',
|
1882
|
-
stroke: 'white',
|
1883
|
-
cursor: 'pointer',
|
1884
|
-
visible: false,
|
1885
|
-
}, new go.Binding('text', 'name', (_) => {
|
1886
|
-
switch (name) {
|
1887
|
-
case 'T':
|
1888
|
-
case 'B': {
|
1889
|
-
return '\uf0d7';
|
1890
|
-
}
|
1891
|
-
case 'L':
|
1892
|
-
case 'R': {
|
1893
|
-
return '\uf0da';
|
1894
|
-
}
|
1895
|
-
default: {
|
1896
|
-
return '\uf0d7';
|
1897
|
-
}
|
1898
|
-
}
|
1899
|
-
})));
|
1900
|
-
// return this.$(go.Shape, {
|
1901
|
-
// fill: 'transparent', // changed to a color in the mouseEnter event handler
|
1902
|
-
// strokeWidth: 0, // no stroke
|
1903
|
-
// width: horizontal ? NaN : 8, // if not stretching horizontally, just 8 wide
|
1904
|
-
// height: !horizontal ? NaN : 8, // if not stretching vertically, just 8 tall
|
1905
|
-
// alignment: align, // align the port on the main Shape
|
1906
|
-
// stretch: horizontal ? go.GraphObject.Horizontal : go.GraphObject.Vertical,
|
1907
|
-
// portId: name, // declare this object to be a "port"
|
1908
|
-
// fromSpot: spot, // declare where links may connect at this port
|
1909
|
-
// fromLinkable: output, // declare whether the user may draw links from here
|
1910
|
-
// toSpot: spot, // declare where links may connect at this port
|
1911
|
-
// toLinkable: input, // declare whether the user may draw links to here
|
1912
|
-
// cursor: 'pointer', // show a different cursor to indicate potential link point
|
1913
|
-
// mouseEnter: (e, port) => {
|
1914
|
-
// // the PORT argument will be this Shape
|
1915
|
-
// if (!e.diagram.isReadOnly && output) {
|
1916
|
-
// port.fill = 'rgba(255,0,255,0.5)'
|
1917
|
-
// };
|
1918
|
-
// },
|
1919
|
-
// mouseLeave: (e, port) => {
|
1920
|
-
// return (port.fill = 'transparent');
|
1921
|
-
// },
|
1922
|
-
// });
|
1923
|
-
}
|
1924
|
-
makeGroupBasicComponent(icon, title, size = { w: 80, h: 80 }) {
|
1925
|
-
let node = this.$(go.Group, 'Spot', {
|
1926
|
-
// layout: this.$(go.LayeredDigraphLayout, { direction: 0 }),
|
1927
|
-
alignment: go.Spot.Center,
|
1928
|
-
layout: this.$(go.Layout),
|
1929
|
-
movable: false,
|
1930
|
-
selectable: false,
|
1931
|
-
// movable: true,
|
1932
|
-
// selectable: true,
|
1933
|
-
dragComputation: (node, pt, gridpt) => {
|
1934
|
-
pt.x =
|
1935
|
-
Math.round(pt.x / AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH) *
|
1936
|
-
AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH;
|
1937
|
-
pt.y =
|
1938
|
-
Math.round(pt.y / AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT) *
|
1939
|
-
AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT;
|
1940
|
-
return pt;
|
1941
|
-
},
|
1942
|
-
}, {
|
1943
|
-
// minSize: new go.Size(AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH, AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT),
|
1944
|
-
minSize: new go.Size(1, 1),
|
1945
|
-
maxSize: new go.Size(1, 1),
|
1946
|
-
// minSize: new go.Size(100, 100),
|
1947
|
-
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', {
|
1948
|
-
fill: 'transparent',
|
1949
|
-
stroke: 'transparent',
|
1950
|
-
// stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
1951
|
-
strokeWidth: 2,
|
1952
|
-
// strokeDashArray: [5, 5],
|
1953
|
-
})));
|
1954
|
-
this.myDiagram.groupTemplateMap.set(title, node);
|
1955
|
-
}
|
1956
|
-
makeGroupTemplate(icon, title, size = { w: 80, h: 80 }) {
|
1957
|
-
let node = this.$(go.Group, 'Spot', {
|
1958
|
-
// // layout: this.$(go.ForceDirectedLayout , {
|
1959
|
-
// // direction: 0,
|
1960
|
-
// // setsPortSpots: false,
|
1961
|
-
// // }),
|
1962
|
-
// layout: this.$(go.LayeredDigraphLayout, {
|
1963
|
-
// direction: 0,
|
1964
|
-
// setsPortSpots: false,
|
1965
|
-
// }),
|
1966
|
-
layout: this.$(go.Layout),
|
1967
|
-
// // // adornment when a group is selected
|
1968
|
-
// // // selectionAdornmentTemplate: this.$(
|
1969
|
-
// // // go.Adornment,
|
1970
|
-
// // // 'Auto',
|
1971
|
-
// // // this.$(go.Shape, 'Rectangle', { fill: null, stroke: 'dodgerblue', strokeWidth: 8 }),
|
1972
|
-
// // // this.$(go.Placeholder),
|
1973
|
-
// // // ),
|
1974
|
-
},
|
1975
|
-
// new go.Binding('layout', 'layout', (x) =>
|
1976
|
-
// {
|
1977
|
-
// return this.$(go.ForceDirectedLayout , {
|
1978
|
-
// direction: 0,
|
1979
|
-
// setsPortSpots: false,
|
1980
|
-
// });
|
1981
|
-
// }
|
1982
|
-
// ),
|
1983
|
-
{
|
1984
|
-
minSize: new go.Size(400, 400),
|
1985
|
-
},
|
1986
|
-
// new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
1987
|
-
this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', {
|
1988
|
-
fill: 'transparent',
|
1989
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
1990
|
-
strokeWidth: 2,
|
1991
|
-
// strokeDashArray: [5, 5],
|
1992
|
-
}), this.$(go.Placeholder, { padding: new go.Margin(60, 20, 20, 20) })),
|
1993
|
-
// this.$(
|
1994
|
-
// go.Panel,
|
1995
|
-
// 'Table',
|
1996
|
-
// {
|
1997
|
-
// alignment: go.Spot.TopLeft,
|
1998
|
-
// alignmentFocus: new go.Spot(0, 0, -10, -10),
|
1999
|
-
// },
|
2000
|
-
// this.$(go.TextBlock, title, {
|
2001
|
-
// row: 0,
|
2002
|
-
// margin: new go.Margin(3, 3, 5, 3),
|
2003
|
-
// maxSize: new go.Size(size.w - 20, NaN),
|
2004
|
-
// stroke: '#444444',
|
2005
|
-
// font: 'normal 8pt Arial',
|
2006
|
-
// textAlign: 'center',
|
2007
|
-
// }),
|
2008
|
-
// this.$(go.Picture, icon, {
|
2009
|
-
// row: 1,
|
2010
|
-
// alignment: go.Spot.Center,
|
2011
|
-
// maxSize: new go.Size(40, 40),
|
2012
|
-
// imageStretch: go.GraphObject.Uniform,
|
2013
|
-
// }),
|
2014
|
-
// this.$(
|
2015
|
-
// go.TextBlock,
|
2016
|
-
// {
|
2017
|
-
// row: 2,
|
2018
|
-
// margin: new go.Margin(10, 3, 3, 3),
|
2019
|
-
// editable: true,
|
2020
|
-
// maxSize: new go.Size(size.w - 20, 40),
|
2021
|
-
// stroke: '#000D42',
|
2022
|
-
// font: 'bold 8pt Arial',
|
2023
|
-
// textAlign: 'center',
|
2024
|
-
// wrap: go.TextBlock.None,
|
2025
|
-
// overflow: go.TextBlock.OverflowEllipsis,
|
2026
|
-
// },
|
2027
|
-
// new go.Binding('text', 'name').makeTwoWay(),
|
2028
|
-
// {
|
2029
|
-
// // define a tooltip for each node that displays the color as text
|
2030
|
-
// toolTip: this.$('ToolTip', this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name'))), // end of Adornment
|
2031
|
-
// },
|
2032
|
-
// ),
|
2033
|
-
// // new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
2034
|
-
// ),
|
2035
|
-
this.$(go.Panel, 'Table', {
|
2036
|
-
alignment: go.Spot.TopLeft,
|
2037
|
-
alignmentFocus: new go.Spot(0, 0, -10, -10),
|
2038
|
-
// padding: new go.Margin(0, 0, 50, 0),
|
2039
|
-
}, this.$(go.Panel, 'Horizontal', {
|
2040
|
-
row: 0,
|
2041
|
-
alignment: go.Spot.Left,
|
2042
|
-
}, this.$(go.Picture, icon, {
|
2043
|
-
row: 0,
|
2044
|
-
// alignment: go.Spot.Center,
|
2045
|
-
alignment: go.Spot.Left,
|
2046
|
-
maxSize: new go.Size(40, 40),
|
2047
|
-
imageStretch: go.GraphObject.Uniform,
|
2048
|
-
}), this.$(go.Panel, 'Table', {
|
2049
|
-
column: 1,
|
2050
|
-
defaultAlignment: go.Spot.Left,
|
2051
|
-
alignmentFocus: new go.Spot(0, 0, 0, 20),
|
2052
|
-
}, this.$(go.TextBlock, title, {
|
2053
|
-
row: 0,
|
2054
|
-
margin: new go.Margin(3, 3, 5, 10),
|
2055
|
-
// maxSize: new go.Size(size.w - 20, NaN),
|
2056
|
-
stroke: '#444444',
|
2057
|
-
font: 'normal 10pt Arial',
|
2058
|
-
textAlign: 'center',
|
2059
|
-
alignment: go.Spot.Left,
|
2060
|
-
}), this.$(go.TextBlock, {
|
2061
|
-
row: 1,
|
2062
|
-
margin: new go.Margin(0, 3, 3, 10),
|
2063
|
-
editable: true,
|
2064
|
-
// maxSize: new go.Size(size.w - 20, 40),
|
2065
|
-
stroke: '#000D42',
|
2066
|
-
font: 'bold 10pt Arial',
|
2067
|
-
textAlign: 'center',
|
2068
|
-
wrap: go.TextBlock.None,
|
2069
|
-
overflow: go.TextBlock.OverflowEllipsis,
|
2070
|
-
}, new go.Binding('text', 'name').makeTwoWay(), {
|
2071
|
-
// define a tooltip for each node that displays the color as text
|
2072
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name'))), // end of Adornment
|
2073
|
-
})))));
|
2074
|
-
this.myDiagram.groupTemplateMap.set(title, node);
|
2075
|
-
}
|
2076
|
-
makeImageTemplate() {
|
2077
|
-
const node = this.$(go.Node, 'Spot', {
|
2078
|
-
zOrder: 1,
|
2079
|
-
}, new go.Binding('selectable', 'selectable'), this.$(go.Panel, 'Horizontal', {
|
2080
|
-
row: 0,
|
2081
|
-
alignment: go.Spot.Left,
|
2082
|
-
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Picture, AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH, {
|
2083
|
-
alignment: go.Spot.Center,
|
2084
|
-
// maxSize: new go.Size(500, 500),
|
2085
|
-
// imageStretch: go.GraphObject.Uniform,
|
2086
|
-
// margin: new go.Margin(130, 0, 0, 0),
|
2087
|
-
}, new go.Binding('margin', 'margin'), new go.Binding('width', 'width'), new go.Binding('height', 'height'), new go.Binding('source', '', (data) => {
|
2088
|
-
return data?.source ? data?.source : AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH;
|
2089
|
-
}))));
|
2090
|
-
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE, node);
|
2091
|
-
}
|
2092
|
-
makeParamTable() {
|
2093
|
-
const self = this;
|
2094
|
-
const node = this.$(go.Part, 'Vertical',
|
2095
|
-
// this.$(go.Shape, { fill: '#E6F0F7', stroke: '#0063A9', strokeWidth: 3, geometryString: 'M 5 0 L 95 0 Q 100 0 100 5 L 100 95 Q 100 100 95 100 L 5 100 Q 0 100 0 95 L 0 5 Q 0 0 5 0' }),
|
2096
|
-
{
|
2097
|
-
zOrder: 2,
|
2098
|
-
// padding: new go.Margin(0, 0, 0, 200),
|
2099
|
-
}, new go.Binding('padding', 'padding'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('visible', '', (data) => {
|
2100
|
-
return typeof data?.visible === 'boolean' ? data?.visible : true;
|
2101
|
-
}),
|
2102
|
-
// Header
|
2103
|
-
this.$(go.Panel, 'Auto', {
|
2104
|
-
stretch: go.GraphObject.Fill,
|
2105
|
-
minSize: new go.Size(150, 27),
|
2106
|
-
margin: new go.Margin(0, 0, -6, 0),
|
2107
|
-
}, new go.Binding('visible', '', (data) => !!data?.title), this.$(go.Shape, 'RoundedRectangle', {
|
2108
|
-
parameter1: 5,
|
2109
|
-
}, new go.Binding('fill', '', (data) => {
|
2110
|
-
return data?.color;
|
2111
|
-
}), new go.Binding('stroke', '', (data) => {
|
2112
|
-
return data?.color;
|
2113
|
-
})), this.$(go.TextBlock, {
|
2114
|
-
stroke: 'white',
|
2115
|
-
margin: new go.Margin(0, 0, 0, 5),
|
2116
|
-
stretch: go.GraphObject.Fill,
|
2117
|
-
alignment: go.Spot.Left,
|
2118
|
-
verticalAlignment: go.Spot.Center,
|
2119
|
-
font: '14px sans-serif',
|
2120
|
-
}, new go.Binding('text', 'title'))), this.$(go.Shape, 'Rectangle', {
|
2121
|
-
height: 6,
|
2122
|
-
margin: new go.Margin(0, 0, -6, 0),
|
2123
|
-
stretch: go.GraphObject.Fill,
|
2124
|
-
}, new go.Binding('fill', '', (data) => {
|
2125
|
-
return data?.color;
|
2126
|
-
}), new go.Binding('stroke', '', (data) => {
|
2127
|
-
return data?.color;
|
2128
|
-
}), new go.Binding('visible', '', (data) => !!data?.title)), this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', { fill: '#E6F0F7', stroke: '#0063A9', strokeWidth: 4, parameter1: 5 }, new go.Binding('fill', 'bgColor'), new go.Binding('stroke', 'borderTable')), this.$(go.Panel, 'Table',
|
2129
|
-
// Set defaults for all rows and columns:
|
2130
|
-
{
|
2131
|
-
padding: 1.5,
|
2132
|
-
defaultRowSeparatorStroke: '#0062A9',
|
2133
|
-
defaultColumnSeparatorStroke: '#0062A9',
|
2134
|
-
defaultSeparatorPadding: new go.Margin(5, 10, 5, 10),
|
2135
|
-
}, new go.Binding('defaultRowSeparatorStroke', 'borderTable'), new go.Binding('defaultColumnSeparatorStroke', 'borderTable'),
|
2136
|
-
// this.$(
|
2137
|
-
// go.Panel,
|
2138
|
-
// 'TableRow',
|
2139
|
-
// { row: 0 },
|
2140
|
-
// this.$(go.TextBlock, 'row 1 col 1', { column: 0, margin: 2 }),
|
2141
|
-
// this.$(go.TextBlock, 'row 1 col 2', { column: 1, margin: 2 }),
|
2142
|
-
// ),
|
2143
|
-
// this.$(
|
2144
|
-
// go.Panel,
|
2145
|
-
// 'TableRow',
|
2146
|
-
// { row: 1 },
|
2147
|
-
// this.$(go.TextBlock, 'row 2 col 1', { column: 0, margin: 2 }),
|
2148
|
-
// this.$(go.TextBlock, 'row 2 col 2', { column: 1, margin: 2 }),
|
2149
|
-
// ),
|
2150
|
-
new go.Binding('itemArray', 'dataTable'), {
|
2151
|
-
// itemTemplate: this.$(
|
2152
|
-
// go.Panel,
|
2153
|
-
// new go.Binding('row', 'indexRow'),
|
2154
|
-
// // new go.Binding('height', 'height'),
|
2155
|
-
// this.$(
|
2156
|
-
// go.Picture,
|
2157
|
-
// ARROW,
|
2158
|
-
// {
|
2159
|
-
// alignment: go.Spot.Center,
|
2160
|
-
// maxSize: new go.Size(20, 40),
|
2161
|
-
// // imageStretch: go.GraphObject.Uniform,
|
2162
|
-
// },
|
2163
|
-
// new go.Binding('source', '', (data, panel) => {
|
2164
|
-
// // panel.part?.data?.id
|
2165
|
-
// return data?.isCreated ? panel?.$p : ARROW_GRAY;
|
2166
|
-
// }),
|
2167
|
-
// ),
|
2168
|
-
// ),
|
2169
|
-
itemTemplate: this.$(go.Panel, 'TableRow', {
|
2170
|
-
cursor: 'pointer',
|
2171
|
-
click: (e, obj) => {
|
2172
|
-
if (obj.panel.part.data?.dataTable[obj.row]?.isEditable === false) {
|
2173
|
-
return;
|
2174
|
-
}
|
2175
|
-
self.onClikParamOfTable.emit({
|
2176
|
-
...obj.panel.part.data?.dataTable[obj.row],
|
2177
|
-
});
|
2178
|
-
},
|
2179
|
-
background: 'transparent',
|
2180
|
-
}, this.$(go.TextBlock, '', { column: 0, margin: 2, textAlign: 'left', alignment: go.Spot.Left }, new go.Binding('text', '', (data, panel) => {
|
2181
|
-
return data?.name;
|
2182
|
-
})), this.$(go.Panel, 'Table', {
|
2183
|
-
column: 1,
|
2184
|
-
margin: 2,
|
2185
|
-
padding: 0,
|
2186
|
-
defaultSeparatorPadding: new go.Margin(0, 0, 0, 0),
|
2187
|
-
stretch: go.GraphObject.Fill,
|
2188
|
-
}, new go.Binding('minSize', '', (data, panel) => {
|
2189
|
-
// return panel.part?.data?.minSizeValue;
|
2190
|
-
return new go.Size(panel.part?.data?.minSizeValue?.width, NaN);
|
2191
|
-
}), this.$(go.TextBlock, '', {
|
2192
|
-
column: 0,
|
2193
|
-
margin: 0,
|
2194
|
-
alignment: go.Spot.Left,
|
2195
|
-
overflow: go.TextBlock.OverflowEllipsis,
|
2196
|
-
cursor: 'pointer',
|
2197
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
2198
|
-
margin: 4,
|
2199
|
-
}, new go.Binding('text', '', (data, panel) => {
|
2200
|
-
return `${!!this._initialOptions.isReadOnly
|
2201
|
-
? `${data?.tagName || ''} `
|
2202
|
-
: ''}${data?.value}`;
|
2203
|
-
}), new go.Binding('visible', '', (data) => {
|
2204
|
-
if (!!this._initialOptions.isReadOnly && data?.tagName) {
|
2205
|
-
return true;
|
2206
|
-
}
|
2207
|
-
return !!data?.value;
|
2208
|
-
}))),
|
2209
|
-
}, new go.Binding('text', '', (data, panel) => {
|
2210
|
-
return data?.value;
|
2211
|
-
}), new go.Binding('stroke', '', (data) => {
|
2212
|
-
if (!this._initialOptions.isReadOnly) {
|
2213
|
-
return;
|
2214
|
-
}
|
2215
|
-
return data.color;
|
2216
|
-
}), new go.Binding('maxSize', '', (data) => {
|
2217
|
-
return new go.Size(data?.maxSizeValue || 190, 14);
|
2218
|
-
})), this.$(go.Picture, {
|
2219
|
-
alignment: go.Spot.Right,
|
2220
|
-
column: 1,
|
2221
|
-
margin: new go.Margin(0, 0, 0, 5),
|
2222
|
-
source: ICONS_BASE64["uf044"],
|
2223
|
-
cursor: 'pointer',
|
2224
|
-
visible: false,
|
2225
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
2226
|
-
margin: 4,
|
2227
|
-
}, new go.Binding('text', '', (data, panel) => {
|
2228
|
-
return data?.toolTipAction;
|
2229
|
-
})), new go.Binding('visible', '', (data) => !!data?.toolTipAction)),
|
2230
|
-
height: 14,
|
2231
|
-
width: 14,
|
2232
|
-
}, new go.Binding('visible', '', (data, panel) => {
|
2233
|
-
return !this._initialOptions.isReadOnly;
|
2234
|
-
}), new go.Binding('opacity', '', (data, panel) => {
|
2235
|
-
return data?.isEditable === false ? 0.6 : 1;
|
2236
|
-
})))),
|
2237
|
-
})));
|
2238
|
-
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, node);
|
2239
|
-
}
|
2240
|
-
makeMassBalance() {
|
2241
|
-
const self = this;
|
2242
|
-
const node = this.$(go.Part, 'Auto', {}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('selectable', 'selectable'), this.$(go.Panel, 'Horizontal',
|
2243
|
-
// Set defaults for all rows and columns:
|
2244
|
-
{
|
2245
|
-
padding: 4,
|
2246
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
2247
|
-
margin: 4,
|
2248
|
-
maxSize: new go.Size(450, 30),
|
2249
|
-
}, new go.Binding('text', 'tooltip'))),
|
2250
|
-
visible: this._initialOptions.isReadOnly,
|
2251
|
-
}, this.$(go.TextBlock, '', {
|
2252
|
-
margin: new go.Margin(0, 5, 0, 0),
|
2253
|
-
text: 'Mass Balance:',
|
2254
|
-
}, new go.Binding('font', 'font')), this.$(go.TextBlock, '', {
|
2255
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.ALIZARIN,
|
2256
|
-
}, new go.Binding('font', 'font'), new go.Binding('stroke', 'colorValue'), new go.Binding('text', '', (data, panel) => {
|
2257
|
-
return data?.value;
|
2258
|
-
}))));
|
2259
|
-
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.MASS_BALANCE, node);
|
2260
|
-
}
|
2261
|
-
makeGroupROPlantTemplate(icon, title, size = { w: 80, h: 80 }) {
|
2262
|
-
let node = this.$(go.Group, 'Spot', {
|
2263
|
-
layout: this.$(go.Layout),
|
2264
|
-
}, {
|
2265
|
-
// minSize: new go.Size(NaN, 600),
|
2266
|
-
}, new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Table', this.$(go.Panel, 'Auto', {
|
2267
|
-
row: 0,
|
2268
|
-
padding: new go.Margin(0, 0, 0, 0),
|
2269
|
-
}, this.$(go.Shape, 'RoundedRectangle', {
|
2270
|
-
name: 'SHAPE_KEY',
|
2271
|
-
fill: '#FCFCFD',
|
2272
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
2273
|
-
strokeWidth: 2,
|
2274
|
-
// strokeDashArray: [5, 5],
|
2275
|
-
}), this.$(go.Placeholder, { padding: new go.Margin(15, 0, 0, 0) })), this.$(go.Picture, RO_LINE_DIRTY, {
|
2276
|
-
row: 1,
|
2277
|
-
}, new go.Binding('visible', '', (x) => {
|
2278
|
-
return x?.isViewGeneral && x?.hasOutFlow ? true : false;
|
2279
|
-
}))), this.$(go.Panel, 'Table', {
|
2280
|
-
width: 0,
|
2281
|
-
height: 0,
|
2282
|
-
alignment: new go.Spot(0, 0, 0, 183),
|
2283
|
-
alignmentFocus: go.Spot.Left,
|
2284
|
-
// stretch: go.GraphObject.Vertical,
|
2285
|
-
portId: 'Inflow',
|
2286
|
-
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
2287
|
-
// alignmentFocus: new go.Spot(0, 0, 0, 150),
|
2288
|
-
fromSpot: go.Spot.Left,
|
2289
|
-
toSpot: go.Spot.Left,
|
2290
|
-
fromLinkable: true,
|
2291
|
-
toLinkable: true,
|
2292
|
-
}), this.$(go.Panel, 'Table', {
|
2293
|
-
width: 0,
|
2294
|
-
height: 0,
|
2295
|
-
alignment: new go.Spot(0, 0, 970, 315),
|
2296
|
-
alignmentFocus: go.Spot.Bottom,
|
2297
|
-
portId: 'OutFlow_Clean',
|
2298
|
-
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
2299
|
-
fromSpot: go.Spot.Bottom,
|
2300
|
-
toSpot: go.Spot.Bottom,
|
2301
|
-
fromLinkable: true,
|
2302
|
-
toLinkable: true,
|
2303
|
-
}), this.$(go.Panel, 'Table', {
|
2304
|
-
width: 0,
|
2305
|
-
height: 0,
|
2306
|
-
// alignment: new go.Spot(0, 0, 480, 525),
|
2307
|
-
// alignment: new go.Spot(0, 0, 475, 552),
|
2308
|
-
alignmentFocus: go.Spot.Bottom,
|
2309
|
-
portId: 'OutFlow_Dirty',
|
2310
|
-
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
2311
|
-
fromSpot: go.Spot.Bottom,
|
2312
|
-
toSpot: go.Spot.Bottom,
|
2313
|
-
fromLinkable: true,
|
2314
|
-
toLinkable: true,
|
2315
|
-
}, new go.Binding('alignment', '', (x) => {
|
2316
|
-
return x?.isViewGeneral && x?.hasOutFlow
|
2317
|
-
? new go.Spot(0, 0, 475, 552)
|
2318
|
-
: new go.Spot(0, 0, 480, 525);
|
2319
|
-
})));
|
2320
|
-
this.myDiagram.groupTemplateMap.set(title, node);
|
2321
|
-
}
|
2322
|
-
makeGroupBoilerTemplate(icon, title, size = { w: 80, h: 80 }) {
|
2323
|
-
let node = this.$(go.Group, 'Spot', {
|
2324
|
-
selectable: false,
|
2325
|
-
}, {
|
2326
|
-
// minSize: new go.Size(NaN, 600),
|
2327
|
-
}, new go.Binding('selectable', 'selectable'), this.$(go.Panel, 'Auto', {
|
2328
|
-
padding: new go.Margin(0, 0, 0, 0),
|
2329
|
-
}, this.$(go.Shape, 'RoundedRectangle', {
|
2330
|
-
name: 'SHAPE_KEY',
|
2331
|
-
fill: '#FCFCFD',
|
2332
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
2333
|
-
strokeWidth: 2,
|
2334
|
-
}), this.$(go.Placeholder, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), { padding: new go.Margin(0, 0, 0, 0) })), this.$(go.Panel, 'Spot', {
|
2335
|
-
width: 0,
|
2336
|
-
height: 0,
|
2337
|
-
alignment: new go.Spot(0, 0.5, 0, 83),
|
2338
|
-
alignmentFocus: go.Spot.Left,
|
2339
|
-
portId: 'Inflow',
|
2340
|
-
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
2341
|
-
fromSpot: go.Spot.Left,
|
2342
|
-
toSpot: go.Spot.Left,
|
2343
|
-
fromLinkable: true,
|
2344
|
-
toLinkable: true,
|
2345
|
-
}), this.$(go.Panel, 'Spot', {
|
2346
|
-
alignmentFocus: go.Spot.Top,
|
2347
|
-
alignment: new go.Spot(1, 1, -215, 0),
|
2348
|
-
}, this.$(go.Picture, OUTFLOW_LINE_DIRTY, {
|
2349
|
-
width: 10,
|
2350
|
-
height: 20,
|
2351
|
-
}, new go.Binding('visible', '', (x) => {
|
2352
|
-
return x?.isViewGeneral && x?.hasOutFlow ? true : false;
|
2353
|
-
})), this.$(go.Panel, {
|
2354
|
-
alignment: go.Spot.BottomLeft,
|
2355
|
-
alignmentFocus: go.Spot.Top,
|
2356
|
-
portId: 'OutFlow',
|
2357
|
-
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
2358
|
-
fromSpot: go.Spot.Bottom,
|
2359
|
-
fromLinkable: true,
|
2360
|
-
toLinkable: true,
|
2361
|
-
})));
|
2362
|
-
this.myDiagram.groupTemplateMap.set(title, node);
|
2363
|
-
}
|
2364
|
-
makeGroupCoolingTowerTemplate(icon, title, size = { w: 80, h: 80 }) {
|
2365
|
-
let node = this.$(go.Group, 'Spot', {
|
2366
|
-
selectable: false,
|
2367
|
-
layout: this.$(go.Layout),
|
2368
|
-
padding: new go.Margin(0, 30, 0, 0),
|
2369
|
-
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', {
|
2370
|
-
row: 0,
|
2371
|
-
padding: new go.Margin(0, 0, 0, 0),
|
2372
|
-
}, this.$(go.Shape, 'RoundedRectangle', {
|
2373
|
-
name: 'SHAPE_KEY',
|
2374
|
-
fill: '#FCFCFD',
|
2375
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
2376
|
-
strokeWidth: 2,
|
2377
|
-
strokeDashArray: [5, 5],
|
2378
|
-
}), this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0) })), this.$(go.Panel, 'Table', {
|
2379
|
-
width: 0,
|
2380
|
-
height: 0,
|
2381
|
-
alignment: new go.Spot(0, 0, 0, 533),
|
2382
|
-
alignmentFocus: go.Spot.Bottom,
|
2383
|
-
portId: 'Inflow',
|
2384
|
-
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
2385
|
-
fromSpot: go.Spot.Left,
|
2386
|
-
toSpot: go.Spot.Left,
|
2387
|
-
fromLinkable: true,
|
2388
|
-
toLinkable: true,
|
2389
|
-
}), this.$(go.Panel, 'Spot', {
|
2390
|
-
alignmentFocus: go.Spot.Top,
|
2391
|
-
alignment: new go.Spot(0.5, 1, 23, 0),
|
2392
|
-
}, this.$(go.Picture, OUTFLOW_LINE_DIRTY, {
|
2393
|
-
width: 10,
|
2394
|
-
height: 20,
|
2395
|
-
}, new go.Binding('visible', '', (x) => {
|
2396
|
-
return x?.isViewGeneral && x?.hasOutFlow ? true : false;
|
2397
|
-
})), this.$(go.Panel, {
|
2398
|
-
alignment: new go.Spot(0, 0, 0, 18),
|
2399
|
-
alignmentFocus: go.Spot.Top,
|
2400
|
-
portId: 'OutFlow',
|
2401
|
-
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
2402
|
-
fromSpot: go.Spot.Center,
|
2403
|
-
toSpot: go.Spot.Right,
|
2404
|
-
fromLinkable: true,
|
2405
|
-
toLinkable: true,
|
2406
|
-
})));
|
2407
|
-
this.myDiagram.groupTemplateMap.set(title, node);
|
2408
|
-
}
|
2409
|
-
groupPlantCellTemplate(icon, title, size = { w: 80, h: 80 }) {
|
2410
|
-
const self = this;
|
2411
|
-
let node = this.$(go.Group, 'Spot', {
|
2412
|
-
// layout: this.$(go.Layout),
|
2413
|
-
// layout: this.$(go.LayeredDigraphLayout, { direction: 0 }),
|
2414
|
-
// isSubGraphExpanded: false,
|
2415
|
-
// background: 'transparent',
|
2416
|
-
// layerName: 'Foreground',
|
2417
|
-
// wasSubGraphExpanded: false,
|
2418
|
-
movable: false,
|
2419
|
-
selectable: false,
|
2420
|
-
avoidable: false,
|
2421
|
-
// resizable: true,
|
2422
|
-
// resizable: false,
|
2423
|
-
// width: data?.ob?.minWith ?? 50,
|
2424
|
-
// height: 500,
|
2425
|
-
// isSubGraphExpanded: true, // ensure the group is always expanded
|
2426
|
-
// computesBoundsAfterDrag: true,
|
2427
|
-
// handlesDragDropForMembers: true, // handle drag-and-drop events for its member nodes
|
2428
|
-
// maxSize: new go.Size(500, 500),
|
2429
|
-
// minSize: new go.Size(500, 500),
|
2430
|
-
// isSubGraphExpanded: true,
|
2431
|
-
// layerName: DIAGRAM.LAYERS.BACKGROUND,
|
2432
|
-
// mouseDrop: function (e, grp) {
|
2433
|
-
// // disallow dropping anything onto an Adornment
|
2434
|
-
// if (grp instanceof go.Adornment) return;
|
2435
|
-
// },
|
2436
|
-
// dragComputation: function (node, pt, gridPt) {
|
2437
|
-
// let grp = node.containingGroup;
|
2438
|
-
// if (grp !== null) {
|
2439
|
-
// let rect = grp.actualBounds;
|
2440
|
-
// pt.x = Math.max(rect.left, Math.min(pt.x, rect.right));
|
2441
|
-
// pt.y = Math.max(rect.top, Math.min(pt.y, rect.bottom));
|
2442
|
-
// }
|
2443
|
-
// return pt;
|
2444
|
-
// },
|
2445
|
-
// dropComputation: function (node, pt, gridPt) {
|
2446
|
-
// let grp = node.containingGroup;
|
2447
|
-
// if (grp !== null) {
|
2448
|
-
// let rect = grp.actualBounds;
|
2449
|
-
// pt.x = Math.max(rect.left, Math.min(pt.x, rect.right));
|
2450
|
-
// pt.y = Math.max(rect.top, Math.min(pt.y, rect.bottom));
|
2451
|
-
// }
|
2452
|
-
// return pt;
|
2453
|
-
// },
|
2454
|
-
// dragComputation: function (part, pt, gridpt) {
|
2455
|
-
// // Get the current group's actual bounds
|
2456
|
-
// const grp = part.containingGroup;
|
2457
|
-
// if (grp) {
|
2458
|
-
// const bnds = grp.actualBounds;
|
2459
|
-
// const loc = part.location;
|
2460
|
-
// // See if the part's new location would be out of bounds
|
2461
|
-
// const newx = Math.max(bnds.x, Math.min(pt.x, bnds.right - part.actualBounds.width / 2));
|
2462
|
-
// const newy = Math.max(bnds.y, Math.min(pt.y, bnds.bottom - part.actualBounds.height / 2));
|
2463
|
-
// // Modify the result point to keep the Part inside the Group
|
2464
|
-
// return new go.Point(newx, newy);
|
2465
|
-
// }
|
2466
|
-
// return pt;
|
2467
|
-
// },
|
2468
|
-
click: (e, obj) => {
|
2469
|
-
self.myDiagram?.clearSelection();
|
2470
|
-
},
|
2471
|
-
}, {
|
2472
|
-
// mouseDragEnter: (e, obj) => {
|
2473
|
-
// },
|
2474
|
-
// mouseDrop: (e, obj) => {
|
2475
|
-
// },
|
2476
|
-
// mouseEnter: (e, obj) => {
|
2477
|
-
// const node = obj.part;
|
2478
|
-
// self.onHoverInfoButton.emit({
|
2479
|
-
// left: e?.['Wr']?.x + 8,
|
2480
|
-
// top: e?.['Wr']?.y,
|
2481
|
-
// node: node,
|
2482
|
-
// });
|
2483
|
-
// // let shape = (node as any)?.findObject('SHAPE_KEY');
|
2484
|
-
// // if (shape) {
|
2485
|
-
// // shape.stroke = 'blue';
|
2486
|
-
// // }
|
2487
|
-
// },
|
2488
|
-
// mouseLeave: (e, obj) => {
|
2489
|
-
// self.onHoverInfoButton.emit(null);
|
2490
|
-
// // let shape = (node as any)?.findObject('SHAPE_KEY');
|
2491
|
-
// // if (shape) {
|
2492
|
-
// // shape.stroke = AtoGojsEditorModel.ENUM_COLORS.WHITE;
|
2493
|
-
// // }
|
2494
|
-
// },
|
2495
|
-
}, new go.Binding('layout', '', function (data, node) {
|
2496
|
-
// return data?.layoutValue === AtoGojsEditorModel.ENUM_LAYOUT_EDITOR.AUTO
|
2497
|
-
// ? self.$(go.LayeredDigraphLayout, { direction: 0 })
|
2498
|
-
// : node?.layout;
|
2499
|
-
if (data?.layoutValue !== data?.layoutValueClone) {
|
2500
|
-
data.layoutValueClone = data?.layoutValue;
|
2501
|
-
return data?.layoutValue === AtoGojsEditorModel.ENUM_LAYOUT_EDITOR.AUTO
|
2502
|
-
? self.$(go.LayeredDigraphLayout, { direction: 0 })
|
2503
|
-
: self.$(go.Layout);
|
2504
|
-
}
|
2505
|
-
else {
|
2506
|
-
return node?.layout;
|
2507
|
-
}
|
2508
|
-
// : self.$(go.Layout);
|
2509
|
-
// return data?.layout;
|
2510
|
-
// return data?.previousLayout || self.$(go.LayeredDigraphLayout, { direction: 0 });
|
2511
|
-
// return self.$(go.LayeredDigraphLayout, { direction: 0 });
|
2512
|
-
}),
|
2513
|
-
// new go.Binding('grid', 'grid'),
|
2514
|
-
new go.Binding('selectable', 'selectable'),
|
2515
|
-
// new go.Binding('width', '', function (data) {
|
2516
|
-
// return data?.ob?.minWith ?? 50;
|
2517
|
-
// }),
|
2518
|
-
new go.Binding('minSize', '', function (data) {
|
2519
|
-
return new go.Size(data?.ob?.minWith ?? 50, data?.ob?.minHeight ?? 50); // Customize minSize based on data
|
2520
|
-
}).ofObject(),
|
2521
|
-
// new go.Binding('width', '', function (data) {
|
2522
|
-
// return data?.ob?.minWith ?? 50; // Customize minSize based on data
|
2523
|
-
// }).ofObject(),
|
2524
|
-
// new go.Binding('height', '', function (data) {
|
2525
|
-
// return data?.ob?.minHeight ?? 50; // Customize minSize based on data
|
2526
|
-
// }).ofObject(),
|
2527
|
-
new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
2528
|
-
// new go.Binding('isSubGraphExpanded', 'expanded').makeTwoWay(),
|
2529
|
-
this.$(go.Panel, 'Auto', {
|
2530
|
-
padding: new go.Margin(0, 0, 0, 0),
|
2531
|
-
// margin:new go.Margin(0, 50, 0, 50),
|
2532
|
-
}, this.$(go.Shape, 'RoundedRectangle', {
|
2533
|
-
name: 'SHAPE_KEY',
|
2534
|
-
fill: 'transparent',
|
2535
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
2536
|
-
strokeWidth: 2,
|
2537
|
-
strokeDashArray: [5, 5],
|
2538
|
-
}), this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0) })));
|
2539
|
-
// node.memberValidation = function (node, group) {
|
2540
|
-
// if (!group) return true; // allow ungrouping
|
2541
|
-
// const groupBounds = group.actualBounds;
|
2542
|
-
// const nodeBounds = node.actualBounds;
|
2543
|
-
// return groupBounds.containsRect(nodeBounds);
|
2544
|
-
// };
|
2545
|
-
this.myDiagram.groupTemplateMap.set(title, node);
|
2546
|
-
}
|
2547
|
-
groupPCInputOrOutTemplate(icon, title, padding) {
|
2548
|
-
// let node = this.$(
|
2549
|
-
// go.Group,
|
2550
|
-
// 'Spot',
|
2551
|
-
// {
|
2552
|
-
// layout: this.$(go.Layout),
|
2553
|
-
// movable: false,
|
2554
|
-
// selectable: false,
|
2555
|
-
// },
|
2556
|
-
// // {
|
2557
|
-
// // // minSize: new go.Size(500, 500),
|
2558
|
-
// // movable: false,
|
2559
|
-
// // ariaReadOnly: true,
|
2560
|
-
// // },
|
2561
|
-
// this.$(
|
2562
|
-
// go.Panel,
|
2563
|
-
// 'Auto',
|
2564
|
-
// {
|
2565
|
-
// padding: new go.Margin(0, 0, 0, 0),
|
2566
|
-
// },
|
2567
|
-
// this.$(go.Shape, 'RoundedRectangle', {
|
2568
|
-
// fill: 'transparent',
|
2569
|
-
// // stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
2570
|
-
// stroke: AtoGojsEditorModel.ENUM_COLORS.WHITE,
|
2571
|
-
// strokeWidth: 2,
|
2572
|
-
// strokeDashArray: [5, 5],
|
2573
|
-
// }),
|
2574
|
-
// this.$(go.Placeholder, {
|
2575
|
-
// padding: new go.Margin(0, 0, 0, 0),
|
2576
|
-
// }),
|
2577
|
-
// ),
|
2578
|
-
// );
|
2579
|
-
let node = this.$(go.Group, 'Spot', {
|
2580
|
-
layout: this.$(go.LayeredDigraphLayout, { direction: 0 }),
|
2581
|
-
movable: false,
|
2582
|
-
selectable: false,
|
2583
|
-
avoidable: false,
|
2584
|
-
// isSubGraphExpanded: false,
|
2585
|
-
// isSubGraphExpanded: false,
|
2586
|
-
// layerName: 'Foreground',
|
2587
|
-
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', {
|
2588
|
-
padding: padding ?? new go.Margin(0, 0, 0, 0),
|
2589
|
-
}, this.$(go.Shape, 'RoundedRectangle', {
|
2590
|
-
fill: 'transparent',
|
2591
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.WHITE,
|
2592
|
-
// stroke: AtoGojsEditorModel.ENUM_COLORS.ALIZARIN,
|
2593
|
-
strokeWidth: 2,
|
2594
|
-
// strokeDashArray: [5, 5],
|
2595
|
-
}), this.$(go.Placeholder, {
|
2596
|
-
padding: new go.Margin(0, 0, 0, 0),
|
2597
|
-
})));
|
2598
|
-
this.myDiagram.groupTemplateMap.set(title, node);
|
2599
|
-
}
|
2600
|
-
makeGroupZoneTemplate(size = { w: AtoGojsEditorModel.GRID_SIZE * 14, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
|
2601
|
-
const self = this;
|
2602
|
-
let node = this.$(go.Group, 'Vertical', {
|
2603
|
-
layout: this.$(go.GridLayout, { wrappingColumn: 1, spacing: new go.Size(0, 0) }),
|
2604
|
-
}, {
|
2605
|
-
locationSpot: go.Spot.Center,
|
2606
|
-
mouseOver: function (e, obj) {
|
2607
|
-
// self.showPoint(obj?.part?.location);
|
2608
|
-
},
|
2609
|
-
click: (e, obj) => {
|
2610
|
-
if (obj?.data?.onSelected) {
|
2611
|
-
obj?.data?.onSelected(obj?.data);
|
2612
|
-
}
|
2613
|
-
},
|
2614
|
-
selectionChanged: (e) => {
|
2615
|
-
if (!e.isSelected && e?.data?.onSelected) {
|
2616
|
-
e?.data?.onSelected(null);
|
2617
|
-
}
|
2618
|
-
},
|
2619
|
-
selectionAdornmentTemplate: this._initialOptions.isReadOnly
|
2620
|
-
? null
|
2621
|
-
: this.$(go.Adornment, 'Spot', {
|
2622
|
-
shadowVisible: true,
|
2623
|
-
shadowBlur: 6,
|
2624
|
-
shadowOffset: new go.Point(0, 2),
|
2625
|
-
shadowColor: '#00000029',
|
2626
|
-
}, this.$(go.Panel, 'Auto', this.$(go.Shape, { fill: null, stroke: 'dodgerblue', strokeWidth: 4 }), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', {
|
2627
|
-
alignment: go.Spot.TopRight,
|
2628
|
-
alignmentFocus: go.Spot.Bottom,
|
2629
|
-
background: 'white',
|
2630
|
-
}, this.$('Button', {
|
2631
|
-
_dragData: {
|
2632
|
-
type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
|
2633
|
-
name: 0,
|
2634
|
-
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
2635
|
-
},
|
2636
|
-
click: self.addItemOnGroupZone,
|
2637
|
-
'ButtonBorder.strokeWidth': 0,
|
2638
|
-
'ButtonBorder.fill': 'white',
|
2639
|
-
}, this.$(go.TextBlock, {
|
2640
|
-
margin: 4,
|
2641
|
-
text: '\uf055',
|
2642
|
-
font: '20px "Font Awesome 6 Pro"',
|
2643
|
-
cursor: 'pointer',
|
2644
|
-
stroke: '#2c2c2c',
|
2645
|
-
})),
|
2646
|
-
// more
|
2647
|
-
this.generateActionGroup([
|
2648
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
|
2649
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS,
|
2650
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
2651
|
-
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
2652
|
-
]))),
|
2653
|
-
}, this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', {
|
2654
|
-
fill: 'transparent',
|
2655
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
2656
|
-
strokeWidth: 2,
|
2657
|
-
strokeDashArray: [5, 5],
|
2658
|
-
maxSize: new go.Size(size.w, NaN),
|
2659
|
-
}), this.$(go.Panel, 'Table', {
|
2660
|
-
alignment: go.Spot.Top,
|
2661
|
-
padding: new go.Margin(17, 10, 16, 10),
|
2662
|
-
}, this.$(go.TextBlock, {
|
2663
|
-
row: 0,
|
2664
|
-
margin: new go.Margin(5, 0, 10, 0),
|
2665
|
-
editable: true,
|
2666
|
-
desiredSize: new go.Size(size.w - 20, 25),
|
2667
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
|
2668
|
-
font: 'bold 16px Arial',
|
2669
|
-
textAlign: 'center',
|
2670
|
-
wrap: go.TextBlock.None,
|
2671
|
-
overflow: go.TextBlock.OverflowEllipsis,
|
2672
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
2673
|
-
margin: 4,
|
2674
|
-
}, new go.Binding('text', 'name').makeTwoWay())),
|
2675
|
-
}, new go.Binding('text', 'name').makeTwoWay()), this.$(go.Placeholder, 'Vertical', {
|
2676
|
-
row: 1,
|
2677
|
-
})), this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false)), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify));
|
2678
|
-
this.myDiagram.groupTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.ZONE, node);
|
2679
|
-
}
|
2680
|
-
makeZoneItemTemplate(size = { w: AtoGojsEditorModel.GRID_SIZE * 12, h: AtoGojsEditorModel.GRID_SIZE * 2 }) {
|
2681
|
-
const self = this;
|
2682
|
-
const node = this.$(go.Node, 'Auto',
|
2683
|
-
// {
|
2684
|
-
// mouseHover: (e, obj) => {
|
2685
|
-
// const node = obj.part;
|
2686
|
-
// if ((obj as any).part?.ob?.value === VALUE_NA) {
|
2687
|
-
// self.onHoverInfoButton.emit({
|
2688
|
-
// left: e?.['Wr']?.x + 8,
|
2689
|
-
// top: e?.['Wr']?.y,
|
2690
|
-
// node: node
|
2691
|
-
// });
|
2692
|
-
// }
|
2693
|
-
// },
|
2694
|
-
// mouseLeave: (e, obj) => {
|
2695
|
-
// if ((obj as any).part?.ob?.value === VALUE_NA) {
|
2696
|
-
// self.onHoverInfoButton.emit(null);
|
2697
|
-
// }
|
2698
|
-
// },
|
2699
|
-
// click: (e, obj: any) => {
|
2700
|
-
// const node = obj.part;
|
2701
|
-
// this.isShowNodeInfo ? self.onClickInfoButton.emit({
|
2702
|
-
// left: e?.['Wr']?.x,
|
2703
|
-
// top: e?.['Wr']?.y,
|
2704
|
-
// node: node
|
2705
|
-
// }) : null;
|
2706
|
-
// },
|
2707
|
-
// },
|
2708
|
-
// new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
2709
|
-
{
|
2710
|
-
movable: false,
|
2711
|
-
}, this.$(go.Panel, 'Auto', {
|
2712
|
-
width: size.w,
|
2713
|
-
height: size.h,
|
2714
|
-
}, this.$(go.Shape, 'Rectangle', {
|
2715
|
-
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
2716
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
2717
|
-
}), this.$(go.Panel, 'Vertical', this.$(go.TextBlock, {
|
2718
|
-
editable: true,
|
2719
|
-
row: 2,
|
2720
|
-
margin: new go.Margin(10, 0, 5, 0),
|
2721
|
-
font: 'bold 12px Arial',
|
2722
|
-
textAlign: 'center',
|
2723
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
|
2724
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
2725
|
-
margin: 4,
|
2726
|
-
}, new go.Binding('text', 'name').makeTwoWay())),
|
2727
|
-
}, new go.Binding('text', 'name').makeTwoWay(), new go.Binding('visible', 'name', (x) => !!x)), this.$(go.Panel, 'Horizontal', {
|
2728
|
-
margin: new go.Margin(0, 10, 0, 10),
|
2729
|
-
}, this.$(go.TextBlock, {
|
2730
|
-
margin: new go.Margin(0, 5, 10, 0),
|
2731
|
-
textAlign: 'center',
|
2732
|
-
font: '12px sans-serif',
|
2733
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
|
2734
|
-
wrap: go.TextBlock.WrapFit,
|
2735
|
-
editable: true,
|
2736
|
-
isMultiline: false,
|
2737
|
-
maxSize: new go.Size(size.w - 100, 15),
|
2738
|
-
overflow: go.TextBlock.OverflowEllipsis,
|
2739
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
2740
|
-
margin: 4,
|
2741
|
-
}, new go.Binding('text', 'nameItem').makeTwoWay())),
|
2742
|
-
}, new go.Binding('text', 'nameItem').makeTwoWay(), new go.Binding('visible', 'nameItem', (x) => !!x)), this.$(go.TextBlock, {
|
2743
|
-
margin: new go.Margin(0, 5, 10, 0),
|
2744
|
-
textAlign: 'center',
|
2745
|
-
font: '12px sans-serif',
|
2746
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
2747
|
-
wrap: go.TextBlock.WrapFit,
|
2748
|
-
text: '< ',
|
2749
|
-
}, new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number')), this.$(go.TextBlock, {
|
2750
|
-
margin: new go.Margin(0, 5, 10, 0),
|
2751
|
-
textAlign: 'center',
|
2752
|
-
font: '12px sans-serif',
|
2753
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
2754
|
-
wrap: go.TextBlock.WrapFit,
|
2755
|
-
}, new go.Binding('text', 'data', (x) => {
|
2756
|
-
if (typeof x?.quantity !== 'number') {
|
2757
|
-
return '';
|
2758
|
-
}
|
2759
|
-
const formatted = UtilsService.convertPrefixesData({
|
2760
|
-
value: x?.quantity,
|
2761
|
-
unit: x?.unit,
|
2762
|
-
});
|
2763
|
-
return formatted.shortenedNumber + ' ' + formatted.unitPrefixes + x?.unit ?? '';
|
2764
|
-
}), new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number')), this.$(go.TextBlock, {
|
2765
|
-
margin: new go.Margin(0, 5, 10, 0),
|
2766
|
-
textAlign: 'center',
|
2767
|
-
font: '12px sans-serif',
|
2768
|
-
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
2769
|
-
wrap: go.TextBlock.WrapFit,
|
2770
|
-
text: ' >',
|
2771
|
-
}, new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number'))))));
|
2772
|
-
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.ZONE_ENERGY_ITEM, node);
|
2773
|
-
}
|
2774
|
-
makeSpecialTemplate(icon, title, size = { w: AtoGojsEditorModel.GRID_SIZE * 5, h: AtoGojsEditorModel.GRID_SIZE * 5 }) {
|
2775
|
-
let node = null;
|
2776
|
-
switch (title) {
|
2777
|
-
case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS:
|
2778
|
-
node = this.$(go.Node, 'Spot',
|
2779
|
-
// {
|
2780
|
-
// fromSpot: go.Spot.Right, // coming out from middle-right
|
2781
|
-
// toSpot: go.Spot.Left
|
2782
|
-
// },
|
2783
|
-
{
|
2784
|
-
click: (e, obj) => {
|
2785
|
-
if (obj?.data?.onSelected) {
|
2786
|
-
obj?.data?.onSelected(obj?.data);
|
2787
|
-
}
|
2788
|
-
},
|
2789
|
-
selectionChanged: (e) => {
|
2790
|
-
if (!e.isSelected && e?.data?.onSelected) {
|
2791
|
-
e?.data?.onSelected(null);
|
2792
|
-
}
|
2793
|
-
},
|
2794
|
-
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'Circle', {
|
2795
|
-
fill: 'white',
|
2796
|
-
stroke: '#2D3B77',
|
2797
|
-
strokeWidth: 2,
|
2798
|
-
// strokeDashArray: [5, 5],
|
2799
|
-
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS, {
|
2800
|
-
row: 0,
|
2801
|
-
margin: new go.Margin(3, 3, 10, 3),
|
2802
|
-
maxSize: new go.Size(size.w - 20, NaN),
|
2803
|
-
stroke: '#444444',
|
2804
|
-
font: 'normal 10pt Arial',
|
2805
|
-
textAlign: 'center',
|
2806
|
-
}), this.$(go.Picture, icon, {
|
2807
|
-
row: 1,
|
2808
|
-
margin: new go.Margin(0, 0, 10, 0),
|
2809
|
-
alignment: go.Spot.Center,
|
2810
|
-
maxSize: new go.Size(60, 60),
|
2811
|
-
imageStretch: go.GraphObject.Uniform,
|
2812
|
-
}))), this.$(go.Panel, 'Vertical', {
|
2813
|
-
alignment: go.Spot.Left,
|
2814
|
-
alignmentFocus: new go.Spot(0, 0.5, 8, 0),
|
2815
|
-
}), this.$(go.Panel, 'Vertical', {
|
2816
|
-
alignment: go.Spot.Right,
|
2817
|
-
alignmentFocus: new go.Spot(1, 0.5, -8, 0),
|
2818
|
-
}),
|
2819
|
-
// four named ports, one on each side:
|
2820
|
-
this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
|
2821
|
-
break;
|
2822
|
-
case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORAGE:
|
2823
|
-
node = this.$(go.Node, 'Spot', {
|
2824
|
-
click: (e, obj) => {
|
2825
|
-
if (obj?.data?.onSelected) {
|
2826
|
-
obj?.data?.onSelected(obj?.data);
|
2827
|
-
}
|
2828
|
-
},
|
2829
|
-
selectionChanged: (e) => {
|
2830
|
-
if (!e.isSelected && e?.data?.onSelected) {
|
2831
|
-
e?.data?.onSelected(null);
|
2832
|
-
}
|
2833
|
-
},
|
2834
|
-
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'Circle', {
|
2835
|
-
fill: 'white',
|
2836
|
-
stroke: '#2D3B77',
|
2837
|
-
strokeWidth: 2,
|
2838
|
-
// strokeDashArray: [5, 5],
|
2839
|
-
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, AtoGojsEditorModel.ENUM_TEMPLATES.STORAGE, {
|
2840
|
-
row: 0,
|
2841
|
-
margin: new go.Margin(3, 3, 10, 3),
|
2842
|
-
maxSize: new go.Size(size.w - 20, NaN),
|
2843
|
-
stroke: '#444444',
|
2844
|
-
font: 'normal 10pt Arial',
|
2845
|
-
textAlign: 'center',
|
2846
|
-
}), this.$(go.Picture, icon, {
|
2847
|
-
row: 1,
|
2848
|
-
margin: new go.Margin(0, 0, 10, 0),
|
2849
|
-
alignment: go.Spot.Center,
|
2850
|
-
minSize: new go.Size(40, 40),
|
2851
|
-
maxSize: new go.Size(50, 50),
|
2852
|
-
imageStretch: go.GraphObject.Uniform,
|
2853
|
-
}, new go.Binding('source', 'icon').makeTwoWay()))), this.$(go.Panel, 'Vertical', {
|
2854
|
-
alignment: go.Spot.Left,
|
2855
|
-
alignmentFocus: new go.Spot(0, 0.5, 8, 0),
|
2856
|
-
}), this.$(go.Panel, 'Vertical', {
|
2857
|
-
alignment: go.Spot.Right,
|
2858
|
-
alignmentFocus: new go.Spot(1, 0.5, -8, 0),
|
2859
|
-
}),
|
2860
|
-
// four named ports, one on each side:
|
2861
|
-
this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
|
2862
|
-
break;
|
2863
|
-
case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORE:
|
2864
|
-
node = this.$(go.Node, 'Spot', {
|
2865
|
-
click: (e, obj) => {
|
2866
|
-
if (obj?.data?.onSelected) {
|
2867
|
-
obj?.data?.onSelected(obj?.data);
|
2868
|
-
}
|
2869
|
-
},
|
2870
|
-
selectionChanged: (e) => {
|
2871
|
-
if (!e.isSelected && e?.data?.onSelected) {
|
2872
|
-
e?.data?.onSelected(null);
|
2873
|
-
}
|
2874
|
-
},
|
2875
|
-
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'Circle', {
|
2876
|
-
fill: 'white',
|
2877
|
-
stroke: '#2D3B77',
|
2878
|
-
strokeWidth: 2,
|
2879
|
-
// strokeDashArray: [5, 5],
|
2880
|
-
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, 'Store', {
|
2881
|
-
row: 0,
|
2882
|
-
margin: new go.Margin(3, 3, 10, 3),
|
2883
|
-
maxSize: new go.Size(size.w - 20, NaN),
|
2884
|
-
stroke: '#444444',
|
2885
|
-
font: 'normal 10pt Arial',
|
2886
|
-
textAlign: 'center',
|
2887
|
-
}), this.$(go.Picture, icon, {
|
2888
|
-
row: 1,
|
2889
|
-
margin: new go.Margin(0, 0, 10, 0),
|
2890
|
-
alignment: go.Spot.Center,
|
2891
|
-
maxSize: new go.Size(60, 60),
|
2892
|
-
imageStretch: go.GraphObject.Uniform,
|
2893
|
-
}))));
|
2894
|
-
break;
|
2895
|
-
case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_DISCHARGE:
|
2896
|
-
node = this.$(go.Node, 'Spot', {
|
2897
|
-
click: (e, obj) => {
|
2898
|
-
if (obj?.data?.onSelected) {
|
2899
|
-
obj?.data?.onSelected(obj?.data);
|
2900
|
-
}
|
2901
|
-
},
|
2902
|
-
selectionChanged: (e) => {
|
2903
|
-
if (!e.isSelected && e?.data?.onSelected) {
|
2904
|
-
e?.data?.onSelected(null);
|
2905
|
-
}
|
2906
|
-
},
|
2907
|
-
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'Circle', {
|
2908
|
-
fill: 'white',
|
2909
|
-
stroke: '#2D3B77',
|
2910
|
-
strokeWidth: 2,
|
2911
|
-
// strokeDashArray: [5, 5],
|
2912
|
-
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, 'Discharge', {
|
2913
|
-
row: 0,
|
2914
|
-
margin: new go.Margin(3, 3, 10, 3),
|
2915
|
-
maxSize: new go.Size(size.w - 20, NaN),
|
2916
|
-
stroke: '#444444',
|
2917
|
-
font: 'normal 10pt Arial',
|
2918
|
-
textAlign: 'center',
|
2919
|
-
}), this.$(go.Picture, icon, {
|
2920
|
-
row: 1,
|
2921
|
-
margin: new go.Margin(0, 0, 10, 0),
|
2922
|
-
alignment: go.Spot.Center,
|
2923
|
-
maxSize: new go.Size(60, 60),
|
2924
|
-
imageStretch: go.GraphObject.Uniform,
|
2925
|
-
}))));
|
2926
|
-
break;
|
2927
|
-
case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER:
|
2928
|
-
node = this.$(go.Node, 'Spot', {
|
2929
|
-
click: (e, obj) => {
|
2930
|
-
if (obj?.data?.onSelected) {
|
2931
|
-
obj?.data?.onSelected(obj?.data);
|
2932
|
-
}
|
2933
|
-
},
|
2934
|
-
selectionChanged: (e) => {
|
2935
|
-
if (!e.isSelected && e?.data?.onSelected) {
|
2936
|
-
e?.data?.onSelected(null);
|
2937
|
-
}
|
2938
|
-
},
|
2939
|
-
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'Circle', {
|
2940
|
-
fill: 'white',
|
2941
|
-
stroke: '#2D3B77',
|
2942
|
-
strokeWidth: 2,
|
2943
|
-
// strokeDashArray: [5, 5],
|
2944
|
-
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, 'Other', {
|
2945
|
-
row: 0,
|
2946
|
-
margin: new go.Margin(3, 3, 10, 3),
|
2947
|
-
maxSize: new go.Size(size.w - 20, NaN),
|
2948
|
-
stroke: '#444444',
|
2949
|
-
font: 'normal 10pt Arial',
|
2950
|
-
textAlign: 'center',
|
2951
|
-
}), this.$(go.Picture, icon, {
|
2952
|
-
row: 1,
|
2953
|
-
margin: new go.Margin(0, 0, 10, 0),
|
2954
|
-
alignment: go.Spot.Center,
|
2955
|
-
maxSize: new go.Size(60, 60),
|
2956
|
-
imageStretch: go.GraphObject.Uniform,
|
2957
|
-
}))));
|
2958
|
-
break;
|
2959
|
-
}
|
2960
|
-
if (node) {
|
2961
|
-
this.myDiagram.nodeTemplateMap.set(title, node);
|
2962
|
-
}
|
2963
|
-
}
|
2964
|
-
startAnimation() {
|
2965
|
-
const diagram = this.myDiagram;
|
2966
|
-
// setTimeout(() => {
|
2967
|
-
// diagram.links.each((link) => {
|
2968
|
-
// });
|
2969
|
-
// });
|
2970
|
-
try {
|
2971
|
-
this.animationInterval = setInterval(() => {
|
2972
|
-
const oldskips = diagram.skipsUndoManager;
|
2973
|
-
diagram.skipsUndoManager = true;
|
2974
|
-
diagram.links.each((link) => {
|
2975
|
-
const shape = link.findObject('PIPE');
|
2976
|
-
if (!!shape) {
|
2977
|
-
// const off = shape?.strokeDashOffset - 3;
|
2978
|
-
const off = shape?.strokeDashOffset - 9;
|
2979
|
-
// animate (move) the stroke dash
|
2980
|
-
shape.strokeDashOffset = off <= 0 ? 60 : off;
|
2981
|
-
}
|
2982
|
-
});
|
2983
|
-
diagram.skipsUndoManager = oldskips;
|
2984
|
-
}, 600);
|
2985
|
-
// 60
|
2986
|
-
}
|
2987
|
-
catch (e) { }
|
2988
|
-
}
|
2989
|
-
stopAnimation() {
|
2990
|
-
if (this.animationInterval) {
|
2991
|
-
clearInterval(this.animationInterval);
|
2992
|
-
}
|
2993
|
-
}
|
2994
|
-
toDataURL(url, callback) {
|
2995
|
-
const xhr = new XMLHttpRequest();
|
2996
|
-
xhr.onload = function () {
|
2997
|
-
const reader = new FileReader();
|
2998
|
-
reader.onloadend = function () {
|
2999
|
-
callback(reader.result);
|
3000
|
-
};
|
3001
|
-
reader.readAsDataURL(xhr.response);
|
3002
|
-
};
|
3003
|
-
xhr.open('GET', url);
|
3004
|
-
xhr.responseType = 'blob';
|
3005
|
-
xhr.send();
|
3006
|
-
}
|
3007
|
-
getBase64DiagramWithEmptyData() {
|
3008
|
-
const self = this;
|
3009
|
-
// Test
|
3010
|
-
// const newWindow = window.open('', 'newWindow');
|
3011
|
-
// if (!newWindow) {
|
3012
|
-
// return;
|
3013
|
-
// }
|
3014
|
-
// const newDocument = newWindow?.document;
|
3015
|
-
if (!this.myDiagram?.model?.nodeDataArray?.length && !this.myDiagram?.model?.linkDataArray?.length) {
|
3016
|
-
return;
|
3017
|
-
}
|
3018
|
-
const svg = this.myDiagram.makeSvg({
|
3019
|
-
scale: this.defaultScaleZoomToFit,
|
3020
|
-
maxSize: new go.Size(1200, NaN),
|
3021
|
-
background: 'white',
|
3022
|
-
padding: 20,
|
3023
|
-
elementFinished: function (graphObject, svgElement) {
|
3024
|
-
svgElement.removeAttribute('clip-path');
|
3025
|
-
// Replace Image URL to base64 -> For showing Picture element
|
3026
|
-
if (graphObject instanceof go.Picture) {
|
3027
|
-
self.toDataURL(svgElement.href.baseVal, function (dataUrl) {
|
3028
|
-
svgElement.setAttribute('href', dataUrl);
|
3029
|
-
});
|
3030
|
-
}
|
3031
|
-
// Make Text Node Shape Border
|
3032
|
-
if (graphObject?.name === 'textNodeShape') {
|
3033
|
-
svgElement.setAttribute('stroke', 'rgba(64, 181, 206, 0.6)');
|
3034
|
-
}
|
3035
|
-
// Empty Value
|
3036
|
-
if (graphObject?.name === 'textBlockValue' || graphObject?.name === 'textBlockUnitPrefixes') {
|
3037
|
-
svgElement.textContent = '';
|
3038
|
-
}
|
3039
|
-
if (svgElement.clipPath) {
|
3040
|
-
svgElement.clipPath = null;
|
3041
|
-
}
|
3042
|
-
},
|
3043
|
-
callback: (svg) => {
|
3044
|
-
setTimeout(() => {
|
3045
|
-
const svgStr = new XMLSerializer().serializeToString(svg);
|
3046
|
-
// For Test
|
3047
|
-
// newDocument?.body?.appendChild(svg);
|
3048
|
-
const base64Svg = `data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(svgStr)))}`;
|
3049
|
-
const img = new Image();
|
3050
|
-
img.src = base64Svg;
|
3051
|
-
const canvas = document.createElement('canvas');
|
3052
|
-
// get canvas context for drawing on canvas
|
3053
|
-
const context = canvas.getContext('2d');
|
3054
|
-
img.onload = function () {
|
3055
|
-
const svgWidth = img.width;
|
3056
|
-
const svgHeight = img.height;
|
3057
|
-
canvas.width = svgWidth;
|
3058
|
-
canvas.height = svgHeight;
|
3059
|
-
if (context) {
|
3060
|
-
context.drawImage(img, 0, 0);
|
3061
|
-
const base64PNG = canvas.toDataURL('image/jpeg');
|
3062
|
-
self.emitImageTopology(base64PNG.replace('data:image/jpeg;base64,', ''));
|
3063
|
-
}
|
3064
|
-
};
|
3065
|
-
}, 1000);
|
3066
|
-
},
|
3067
|
-
});
|
3068
|
-
}
|
3069
|
-
emitImageTopology(base64) {
|
3070
|
-
this.callbackImageTopology.emit(base64);
|
3071
|
-
}
|
3072
|
-
openActionMenu() {
|
3073
|
-
// When this node is clicked, adjust the menu position
|
3074
|
-
const mousePt = this.myDiagram.lastInput.viewPoint;
|
3075
|
-
// // When this node is clicked, display the dropdown menu
|
3076
|
-
const menu = document.getElementById(this.actionMenuId);
|
3077
|
-
if (menu) {
|
3078
|
-
menu.style.display = '';
|
3079
|
-
menu.style.position = 'absolute';
|
3080
|
-
menu.style.left = mousePt.x + 'px';
|
3081
|
-
menu.style.top = mousePt.y + 'px';
|
3082
|
-
this.menuTrigger.openMenu();
|
3083
|
-
}
|
3084
|
-
}
|
3085
|
-
unsubscribeAll() {
|
3086
|
-
if (this._subscriptionList) {
|
3087
|
-
this._subscriptionList.unsubscribe();
|
3088
|
-
}
|
3089
|
-
this._subscriptionList = new Subscription();
|
3090
|
-
}
|
3091
|
-
addSubscribes(...subscriptions) {
|
3092
|
-
subscriptions.forEach((el) => {
|
3093
|
-
this._subscriptionList.add(el);
|
3094
|
-
});
|
3095
|
-
}
|
3096
|
-
}
|
3097
|
-
AtoDefaultGojsEditor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
3098
|
-
AtoDefaultGojsEditor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AtoDefaultGojsEditor, inputs: { linkValidation: "linkValidation", initialOptions: "initialOptions", editor: "editor", isShowNodeInfo: "isShowNodeInfo", plantSatus: "plantSatus" }, outputs: { onModelChangeListenerEvent: "onModelChangeListenerEvent", onClickInfoButton: "onClickInfoButton", onOpenWizard: "onOpenWizard", onOpenDetail: "onOpenDetail", onOpenAssetParameter: "onOpenAssetParameter", onOpenInsightMapping: "onOpenInsightMapping", onHoverInfoButton: "onHoverInfoButton", onHoverAlert: "onHoverAlert", onDoubleClickNode: "onDoubleClickNode", onOpenChangeIcon: "onOpenChangeIcon", onClickCompoent: "onClickCompoent", callbackImageTopology: "callbackImageTopology", onClikParamOfTable: "onClikParamOfTable", onDeleteNode: "onDeleteNode", onUndo: "onUndo", onRename: "onRename" }, viewQueries: [{ propertyName: "menuTrigger", first: true, predicate: ["menuTrigger"], descendants: true }], ngImport: i0 });
|
3099
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, decorators: [{
|
3100
|
-
type: Directive
|
3101
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { menuTrigger: [{
|
3102
|
-
type: ViewChild,
|
3103
|
-
args: ['menuTrigger']
|
3104
|
-
}], linkValidation: [{
|
3105
|
-
type: Input
|
3106
|
-
}], initialOptions: [{
|
3107
|
-
type: Input
|
3108
|
-
}], editor: [{
|
3109
|
-
type: Input
|
3110
|
-
}], isShowNodeInfo: [{
|
3111
|
-
type: Input
|
3112
|
-
}], plantSatus: [{
|
3113
|
-
type: Input
|
3114
|
-
}], onModelChangeListenerEvent: [{
|
3115
|
-
type: Output
|
3116
|
-
}], onClickInfoButton: [{
|
3117
|
-
type: Output
|
3118
|
-
}], onOpenWizard: [{
|
3119
|
-
type: Output
|
3120
|
-
}], onOpenDetail: [{
|
3121
|
-
type: Output
|
3122
|
-
}], onOpenAssetParameter: [{
|
3123
|
-
type: Output
|
3124
|
-
}], onOpenInsightMapping: [{
|
3125
|
-
type: Output
|
3126
|
-
}], onHoverInfoButton: [{
|
3127
|
-
type: Output
|
3128
|
-
}], onHoverAlert: [{
|
3129
|
-
type: Output
|
3130
|
-
}], onDoubleClickNode: [{
|
3131
|
-
type: Output
|
3132
|
-
}], onOpenChangeIcon: [{
|
3133
|
-
type: Output
|
3134
|
-
}], onClickCompoent: [{
|
3135
|
-
type: Output
|
3136
|
-
}], callbackImageTopology: [{
|
3137
|
-
type: Output
|
3138
|
-
}], onClikParamOfTable: [{
|
3139
|
-
type: Output
|
3140
|
-
}], onDeleteNode: [{
|
3141
|
-
type: Output
|
3142
|
-
}], onUndo: [{
|
3143
|
-
type: Output
|
3144
|
-
}], onRename: [{
|
3145
|
-
type: Output
|
3146
|
-
}] } });
|
3147
|
-
(function (AtoDefaultGojsEditor) {
|
3148
|
-
let ENUM_ACTIONS;
|
3149
|
-
(function (ENUM_ACTIONS) {
|
3150
|
-
ENUM_ACTIONS["DETAILS"] = "Open details & wizard";
|
3151
|
-
ENUM_ACTIONS["ONLY_DETAILS"] = "Open details";
|
3152
|
-
ENUM_ACTIONS["RENAME"] = "Rename this box";
|
3153
|
-
ENUM_ACTIONS["OUTFLOW"] = "Create an outflow";
|
3154
|
-
ENUM_ACTIONS["DELETE"] = "Delete";
|
3155
|
-
ENUM_ACTIONS["INSIGHT"] = "Insight tag mapping";
|
3156
|
-
ENUM_ACTIONS["DATA_MAPPING"] = "Data Mapping";
|
3157
|
-
ENUM_ACTIONS["MORE"] = "More";
|
3158
|
-
ENUM_ACTIONS["FLOW_DETAILS"] = "Flow details";
|
3159
|
-
ENUM_ACTIONS["FLOW_DETAILS_AND_WIZARD"] = "Flow details & wizard";
|
3160
|
-
ENUM_ACTIONS["ASSET_PARAMETERS"] = "Asset parameters";
|
3161
|
-
ENUM_ACTIONS["CHANGE_ICON"] = "Change icon";
|
3162
|
-
})(ENUM_ACTIONS = AtoDefaultGojsEditor.ENUM_ACTIONS || (AtoDefaultGojsEditor.ENUM_ACTIONS = {}));
|
3163
|
-
AtoDefaultGojsEditor.ACTIONS = {
|
3164
|
-
[ENUM_ACTIONS.DETAILS]: {
|
3165
|
-
name: ENUM_ACTIONS.DETAILS,
|
3166
|
-
iconClassName: 'far fa-memo-circle-info',
|
3167
|
-
onClick: () => { },
|
3168
|
-
},
|
3169
|
-
[ENUM_ACTIONS.FLOW_DETAILS]: {
|
3170
|
-
name: ENUM_ACTIONS.FLOW_DETAILS,
|
3171
|
-
iconClassName: 'far fa-arrow-progress',
|
3172
|
-
onClick: () => { },
|
3173
|
-
},
|
3174
|
-
[ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD]: {
|
3175
|
-
name: ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD,
|
3176
|
-
iconClassName: 'far fa-arrow-progress',
|
3177
|
-
onClick: () => { },
|
3178
|
-
},
|
3179
|
-
[ENUM_ACTIONS.ASSET_PARAMETERS]: {
|
3180
|
-
name: ENUM_ACTIONS.ASSET_PARAMETERS,
|
3181
|
-
iconClassName: 'far fa-box-archive',
|
3182
|
-
onClick: () => { },
|
3183
|
-
},
|
3184
|
-
[ENUM_ACTIONS.ONLY_DETAILS]: {
|
3185
|
-
name: ENUM_ACTIONS.ONLY_DETAILS,
|
3186
|
-
iconClassName: 'far fa-memo-circle-info',
|
3187
|
-
onClick: () => { },
|
3188
|
-
},
|
3189
|
-
[ENUM_ACTIONS.RENAME]: {
|
3190
|
-
name: ENUM_ACTIONS.RENAME,
|
3191
|
-
iconClassName: 'far fa-input-text',
|
3192
|
-
onClick: () => { },
|
3193
|
-
},
|
3194
|
-
[ENUM_ACTIONS.OUTFLOW]: {
|
3195
|
-
name: ENUM_ACTIONS.OUTFLOW,
|
3196
|
-
iconClassName: 'far fa-diagram-nested',
|
3197
|
-
onClick: () => { },
|
3198
|
-
},
|
3199
|
-
[ENUM_ACTIONS.DELETE]: {
|
3200
|
-
name: ENUM_ACTIONS.DELETE,
|
3201
|
-
iconClassName: 'fal fa-trash-can',
|
3202
|
-
onClick: () => { },
|
3203
|
-
},
|
3204
|
-
[ENUM_ACTIONS.INSIGHT]: {
|
3205
|
-
name: ENUM_ACTIONS.INSIGHT,
|
3206
|
-
iconClassName: 'far fa-tag',
|
3207
|
-
onClick: () => { },
|
3208
|
-
},
|
3209
|
-
[ENUM_ACTIONS.DATA_MAPPING]: {
|
3210
|
-
name: ENUM_ACTIONS.DATA_MAPPING,
|
3211
|
-
iconClassName: 'far fa-tag',
|
3212
|
-
onClick: () => { },
|
3213
|
-
},
|
3214
|
-
[ENUM_ACTIONS.MORE]: {
|
3215
|
-
name: ENUM_ACTIONS.MORE,
|
3216
|
-
iconClassName: 'fal fa-memo-circle-info',
|
3217
|
-
onClick: () => { },
|
3218
|
-
},
|
3219
|
-
[ENUM_ACTIONS.CHANGE_ICON]: {
|
3220
|
-
name: ENUM_ACTIONS.CHANGE_ICON,
|
3221
|
-
iconClassName: 'far fa-image',
|
3222
|
-
onClick: () => { },
|
3223
|
-
},
|
3224
|
-
};
|
3225
|
-
AtoDefaultGojsEditor.DISTANCE_2_OUTPUT = 60;
|
3226
|
-
})(AtoDefaultGojsEditor || (AtoDefaultGojsEditor = {}));
|
3227
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC1nb2pzLWVkaXRvci5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2F0by13YXRlci1saWIvc3JjL2xpYi9tb2RlbHM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1NSwwLDAsMCknLFxuICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnI0U5NUY0NycsXG4gICAgICAgICAgICAgICAgICAgICAgICBzdHJva2VXaWR0aDogMixcbiAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICksXG4gICAgICAgICdsaW5raW5nVG9vbC5saW5rVmFsaWRhdGlvbic6IHRoaXMuY2hlY2tMaW5rQ29uZGl0aW9uLmJpbmQodGhpcyksXG4gICAgICAgICdkcmFnZ2luZ1Rvb2wuZG9Nb3VzZU1vdmUnOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAvLyBkbyB0aGUgc3RhbmRhcmQgYmVoYXZpb3IgYnkgY2FsbGluZyB0aGUgc3VwZXIgbWV0aG9kXG4gICAgICAgICAgICBnby5EcmFnZ2luZ1Rvb2wucHJvdG90eXBlLmRvTW91c2VNb3ZlLmNhbGwodGhpcyk7XG4gICAgICAgICAgICAvLyBpZiBkcmFnZ2luZy1vdXQgZnJvbSB0aGUgZGlhZ3JhbSBpcyBub3QgYWxsb3dlZCwgYW5kXG4gICAgICAgICAgICAvLyBpZiBtb3VzZSBpcyBvdXRzaWRlIG9mIHZpZXdwb3J0XG4gICAgICAgICAgICBpZiAoXG4gICAgICAgICAgICAgICAgIXRoaXMuZGlhZ3JhbS5hbGxvd0RyYWdPdXQgJiZcbiAgICAgICAgICAgICAgICAhdGhpcy5kaWFncmFtLnZpZXdwb3J0Qm91bmRzLmNvbnRhaW5zUG9pbnQodGhpcy5kaWFncmFtLmxhc3RJbnB1dC5kb2N1bWVudFBvaW50KVxuICAgICAgICAgICAgKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5kaWFncmFtLmVuc3VyZUJvdW5kcygpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHZwID0gdGhpcy5kaWFncmFtLmxhc3RJbnB1dC52aWV3UG9pbnQ7XG4gICAgICAgICAgICAgIC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Lm1ha2VHcm91cEJvaWxlclRlbXBsYXRlKFxuICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5OT0RFX1RFTVBMQVRFU1tub2RlPy50eXBlXS5pY29uLFxuICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5OT0RFX1RFTVBMQVRFU1tub2RlPy50eXBlXS5uYW1lLFxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChub2RlPy50eXBlID09PSBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuQ09PTElOR19UT1dFUikge1xuICAgICAgICAgICAgdGhpcy5tYWtlR3JvdXBDb29saW5nVG93ZXJUZW1wbGF0ZShcbiAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbbm9kZT8udHlwZV0uaWNvbixcbiAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbbm9kZT8udHlwZV0ubmFtZSxcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBpZiAobm9kZT8udHlwZSA9PT0gQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlpPTkUpIHtcbiAgICAgICAgICAgIHRoaXMubWFrZUdyb3VwWm9uZVRlbXBsYXRlKCk7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBpZiAobm9kZT8udHlwZSA9PT0gQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlBMQU5UX0NFTEwgJiYgbm9kZT8uaXNHcm91cCkge1xuICAgICAgICAgICAgdGhpcy5ncm91cFBsYW50Q2VsbFRlbXBsYXRlKFxuICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5OT0RFX1RFTVBMQVRFU1tub2RlPy50eXBlXS5pY29uLFxuICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5OT0RFX1RFTVBMQVRFU1tub2RlPy50eXBlXS5uYW1lLFxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuICAgICAgICBpZiAobm9kZT8udHlwZSA9PT0gQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlBMQU5UX0NFTExfSU5QVVRfR1JPVVApIHtcbiAgICAgICAgICAgIHRoaXMuZ3JvdXBQQ0lucHV0T3JPdXRUZW1wbGF0ZShcbiAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbbm9kZT8udHlwZV0uaWNvbixcbiAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbbm9kZT8udHlwZV0ubmFtZSxcbiAgICAgICAgICAgICAgICBuZXcgZ28uTWFyZ2luKDAsIDUwLCAwLCAwKSxcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgaWYgKG5vZGU/LnR5cGUgPT09IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5QTEFOVF9DRUxMX09VVFBVVF9HUk9VUCkge1xuICAgICAgICAgICAgdGhpcy5ncm91cFBDSW5wdXRPck91dFRlbXBsYXRlKFxuICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5OT0RFX1RFTVBMQVRFU1tub2RlPy50eXBlXS5pY29uLFxuICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5OT0RFX1RFTVBMQVRFU1tub2RlPy50eXBlXS5uYW1lLFxuICAgICAgICAgICAgICAgIG5ldyBnby5NYXJnaW4oMCwgMCwgMCwgNTApLFxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuICAgICAgICBpZiAobm9kZT8udHlwZSA9PT0gQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLkdST1VQX0JBU0lDX0NPTVBPTkVOVCkge1xuICAgICAgICAgICAgdGhpcy5tYWtlR3JvdXBCYXNpY0NvbXBvbmVudChcbiAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbbm9kZT8udHlwZV0uaWNvbixcbiAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbbm9kZT8udHlwZV0ubmFtZSxcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLm1ha2VHcm91cFRlbXBsYXRlKFxuICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLk5PREVfVEVNUExBVEVTW25vZGU/LnR5cGVdLmljb24sXG4gICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbbm9kZT8udHlwZV0ubmFtZSxcbiAgICAgICAgKTtcbiAgICB9XG5cbiAgICBhZGROb2RlVGVtcGxhdGUobm9kZSkge1xuICAgICAgICBpZiAodGhpcy5teURpYWdyYW0ubm9kZVRlbXBsYXRlTWFwPy5IYltub2RlPy50eXBlXSB8fCBub2RlPy5pc0dyb3VwKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgLy8gTm90IEdyb3VwXG4gICAgICAgIC8vIENvbXBvbmVudCBXYXRlciBOb3JtYWxcbiAgICAgICAgaWYgKEF0b0dvanNFZGl0b3JNb2RlbC5UWVBFX1RFTVBMQVRFX1dBVEVSX05PUk1BTD8uaW5jbHVkZXMobm9kZT8udHlwZSkgJiYgIW5vZGU/LmlzR3JvdXApIHtcbiAgICAgICAgICAgIHRoaXMubWFrZUVudGl0eVRlbX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FlQRV9URU1QTEFURV9GVUVMPy5pbmNsdWRlcyhub2RlPy50eXBlKSB8fFxuICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5UWVBFX1RFTVBMQVRFX1NURUFNPy5pbmNsdWRlcyhub2RlPy50eXBlKSkgJiZcbiAgICAgICAgICAgICFub2RlPy5pc0dyb3VwXG4gICAgICAgICkge1xuICAgICAgICAgICAgdGhpcy5tYWtlRW50aXR5VGVtcGxhdGVFbmVyZ3koXG4gICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLk5PREVfVEVNUExBVEVTW25vZGU/LnR5cGVdLmljb24gPz8gJycsXG4gICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLk5PREVfVEVNUExBVEVTW25vZGU/LnR5cGVdLm5hbWUgPz8gJycsXG4gICAgICAgICAgICApO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKG5vZGU/LnR5cGUgPT09IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5JTUFHRV9URU1QTEFURSkge1xuICAgICAgICAgICAgdGhpcy5tYWtlSW1hZ2VUZW1wbGF0ZSgpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChub2RlPy50eXBlID09PSBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuUEFSQU1fVEFCTEUpIHtcbiAgICAgICAgICAgIHRoaXMubWFrZVBhcmFtVGFibGUoKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAobm9kZT8udHlwZSA9PT0gQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLk1BU1NfQkFMQU5DRSkge1xuICAgICAgICAgICAgdGhpcy5tYWtlTWFzc0JhbGFuY2UoKTtcbiAgICAgICAgfVxuICAgICAgICAvLyBUZXh0IE5vZGVcbiAgICAgICAgaWYgKG5vZGU/LnR5cGUgPT09IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQ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cbiAgICAgICAgICAgICAgICAvLyAgICAgdGhpcy5teURpYWdyYW0udG9vbE1hbmFnZXIuZHJhZ2dpbmdUb29sLmlzR3JpZFNuYXBFbmFibGVkID1cbiAgICAgICAgICAgICAgICAvLyAgICAgICAgIHRoaXMuaW5pdGlhbE9wdGlvbnM/LlsnZHJhZ2dpbmdUb29sLmlzR3JpZFNuYXBFbmFibGVkJ107XG4gICAgICAgICAgICAgICAgLy8gfVxuICAgICAgICAgICAgICAgIGlmICh0aGlzLmluaXRpYWxPcHRpb25zPy5bJ2RyYWdnaW5nVG9vbC5kb01vdXNlTW92ZSddKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMubXlEaWFncmFtLnRvb2xNYW5hZ2VyLmRyYWdnaW5nVG9vbC5kb01vdXNlTW92ZSA9XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmluaXRpYWxPcHRpb25zPy5bJ2RyYWdnaW5nVG9vbC5kb01vdXNlTW92ZSddO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmICh0aGlzLmluaXRpYWxPcHRpb25zPy5bJ2xpbmtpbmdUb29sLmxpbmtWYWxpZGF0aW9uJ10pIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5teURpYWdyYW0udG9vbE1hbmFnZXIubGlua2luZ1Rvb2wubGlua1ZhbGlkYXRpb24gPVxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5pbml0aWFsT3B0aW9ucz8uWydsaW5raW5nVG9vbC5saW5rVmFsaWRhdGlvbiddO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMubXlEaWFncmFtLmNvbnRlbnRBbGlnbm1lbnQgPSB0aGlzLmluaXRpYWxPcHRpb25zPy5jb250ZW50QWxpZ25tZW50ID8/IGdvLlNwb3QuQ2VudGVyO1xuICAgICAgICAgICAgdGhpcy5teURpYWdyYW0ubGF5b3V0ID0gdGhpcy5pbml0aWFs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FbmVyZ3koKSB7XG4gICAgICAgIC8vIGZvciB3YXRlclxuICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICBTVE9SQUdFLFxuICAgICAgICAgICAgV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgREVNSU5fV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgLy8gUk9fV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgUFJPQ0VTUyxcbiAgICAgICAgICAgIFdBU1RFV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgREFGX1dBU1RFV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgRVRQX1dBU1RFV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgTUJSX1dBU1RFV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgWkxEX1dBU1RFV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgQ09PTElOR19UT1dFUixcbiAgICAgICAgICAgIEJPSUxFUixcbiAgICAgICAgICAgIE9USEVSLFxuICAgICAgICAgICAgTEFORFNDQVBJTkdfSVJSSUdBVElPTixcbiAgICAgICAgfSA9IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUztcbiAgICAgICAgY29uc3Qgd2F0ZXJHcm91cHMgPSBbXG4gICAgICAgICAgICBTVE9SQUdFLFxuICAgICAgICAgICAgV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgREVNSU5fV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgLy8gUk9fV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgUFJPQ0VTUyxcbiAgICAgICAgICAgIFdBU1RFV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgREFGX1dBU1RFV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgRVRQX1dBU1RFV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgTUJSX1dBU1RFV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgWkxEX1dBU1RFV0FURVJfVFJFQVRNRU5ULFxuICAgICAgICAgICAgQ09PTElOR19UT1dFUixcbiAgICAgICAgICAgIEJPSUxFUixcbiAgICAgICAgICAgIE9USEVSLFxuICAgICAgICAgICAgTEFORFNDQVBJTkdfSVJSSUdBVElPTixcbiAgICAgICAgXTtcbiAgICAgICAgd2F0ZXJHcm91cHMubWFwKChlKSA9PiB7XG4gICAgICAgICAgICBpZiAoISFBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbZV0pIHtcbiAgICAgICAgICAgICAgICB0aGlzLm1ha2VHcm91cFRlbXBsYXRlKEF0b0dvanNFZGl0b3JNb2RlbC5OT0RFX1RFTVBMQVRFU1tlXS5pY29uLCBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbZV0ubmFtZSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIC8vIGVsZWN0cmljYWxcbiAgICAgICAgdGhpcy5pbml0RWxlY3RyaWNHcm91cFRlbXBsYXRlKCk7XG5cbiAgICAgICAgLy8gRnVlbFxuICAgICAgICB0aGlzLmluaXRGdWVsR3JvdXBUZW1wbGF0ZSgpO1xuXG4gICAgICAgIC8vIEdhc1xuICAgICAgICB0aGlzLmluaXRHYXNHcm91cFRlbXBsYXRlKCk7XG4gICAgfVxuXG4gICAgaW5pdEVsZWN0cmljRGlhZ3JhbSgpIHtcbiAgICAgICAgY29uc3Qge1xuICAgICAgICAgICAgR1JJRCxcbiAgICAgICAgICAgIERJRVNFTF9HRU5FUkFUT1JTLFxuICAgICAgICAgICAgQkFUVEVSWV9FTkVSR1lfU1RPUkFHRSxcbiAgICAgICAgICAgIExJR0hUSU5HX1NZU1RFTVMsXG4gICAgICAgICAgICBMSUdIVElOR1MsXG4gICAgICAgICAgICBFTEVDVFJJQ19NRVRFUlMsXG4gICAgICAgICAgICBUUkFOU0ZPUk1FUlMs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lID0gW1xuICAgICAgICAgICAgR1JJRCxcbiAgICAgICAgICAgIERJRVNFTF9HRU5FUkFUT1JTLFxuICAgICAgICAgICAgQkFUVEVSWV9FTkVSR1lfU1RPUkFHRSxcbiAgICAgICAgICAgIExJR0hUSU5HX1NZU1RFTVMsXG4gICAgICAgICAgICBMSUdIVElOR1MsXG4gICAgICAgICAgICBFTEVDVFJJQ19NRVRFUlMsXG4gICAgICAgICAgICBUUkFOU0ZPUk1FUlMsXG4gICAgICAgICAgICBFTEVDVFJJQ19GTFlXSEVFTF9FTkVSR1lfU1RPUkFHRSxcbiAgICAgICAgICAgIFBVTVBFRF9IWURST19TVE9SQUdFLFxuICAgICAgICAgICAgVEhFUk1BTF9FTkVSR1lfU1RPUkFHRSxcbiAgICAgICAgICAgIFNVUEVSX0NBUEFDSVRPUl9FTkVSR1lfU1RPUkFHRSxcbiAgICAgICAgICAgIFNXSVRDSF9HRUFSUyxcbiAgICAgICAgICAgIFBST0NFU1NfQ09OVFJPTF9BVVRPTUFUSU9OX1NZU1RFTVMsXG4gICAgICAgICAgICBQUk9DRVNTX0VRVUlQTUVOVF9NQUNISU5FUyxcbiAgICAgICAgICAgIE9GRklDRV9FUVVJUE1FTlQsXG4gICAgICAgICAgICBQT1dFUl9ESVNUUklCVVRJT05fQ09OVFJPTF9TWVNURU1TLFxuICAgICAgICAgICAgUE9XRVJfRElTVFJJQlVUSU9OX1NZU1RFTVMsXG4gICAgICAgICAgICBOQVRVUkFMX0dBU19HRU5FUkFUT1JTLFxuICAgICAgICAgICAgTU9UT1JfQ09OVFJPTFMsXG4gICAgICAgICAgICBWQVJJQUJMRV9GUkVRVUVOQ1lfRFJJVkVSUyxcbiAgICAgICAgICAgIEVMRUNUUklDX0hWQUMsXG4gICAgICAgICAgICBDT01QUkVTU0VEX0FJUl9TWVNURU1TLFxuICAgICAgICAgICAgUkVGUklHRVJBVElPTl9DT09MSU5HX1NZU1RFTVMsXG4gICAgICAgICAgICBNQVRFUklBTF9IQU5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ERV9URU1QTEFURVNbQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLkZVRUxfRklMVFJBVElPTlNdLm5hbWUsXG4gICAgICAgICk7XG4gICAgICAgIHRoaXMubWFrZUdyb3VwVGVtcGxhdGUoXG4gICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLkZVRUxfTUFOQUdFTUVOVFNdLmljb24sXG4gICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLkZVRUxfTUFOQUdFTUVOVFNdLm5hbWUsXG4gICAgICAgICk7XG4gICAgICAgIGxpc3RJdGVtcy5mb3JFYWNoKChlKSA9PiB7XG4gICAgICAgICAgICB0aGlzLm1ha2VHcm91cFRlbXBsYXRlKGU/Lmljb24sIGUubmFtZSk7XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGluaXRHYXNEaWFncmFtKCkge1xuICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICBOQVRVUkFMX0dBU19QSVBFTElORVMsXG4gICAgICAgICAgICBMSVFVRUZJRURfTkFUVVJBTF9HQVMsXG4gICAgICAgICAgICBDT01QUkVTU0VEX05BVFVSQUxfR0FTX1BJUEVMSU5FLFxuICAgICAgICAgICAgQ09NUFJFU1NFRF9OQVRVUkFMX0dBU19QUk9EVUNUSU9OLFxuICAgICAgICAgICAgQk9JTEVSU19BTkRfSEVBVEVSUyxcbiAgICAgICAgICAgIEZVUk5BQ0VTLFxuICAgICAgICAgICAgUE9XRVJfR0VORVJBVElPTixcbiAgICAgICAgICAgIENPR0VORVJBVElPTixcbiAgICAgICAgICAgIENPTUJJTkVEX0NZQ0xFX1BPV0VSX1BMQU5UUyxcbiAgICAgICAgICAgIEZVRUxfRk9SX1ZFSElDTEVTX0FORF9FUVVJUE1FTlQsXG4gICAgICAgICAgICBHQVNfTUVURVJTLFxuICAgICAgICAgICAgQlVSTkVSUyxcbiAgICAgICAgICAgIEZMVUVfR0FTX0FOQUxZWkVSUyxcbiAgICAgICAgICAgIENPTUJVU1RJT05fQ09OVFJPTF9TWVNURU1TLFxuICAgICAgICAgICAgR0FTX1NUT1JBR0VfVEFOS1MsXG4gICAgICAgICAgICBHQVNfUFJFU1NVUkVfUkVHVUxBVE9SUyxcbiAgICAgICAgICAgIE5BVFVSQUxfR0FTLFxuICAgICAgICB9ID0gQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTO1xuICAgICAgICBjb25zdCBMaXN0SXRlbXNDcmVhdGVFbnRpdHlUZW1wbGF0ZSA9IFtcbiAgICAgICAgICAgIE5BVFVSQUxfR0FTX1BJUEVMSU5FUyxcbiAgICAgICAgICAgIExJUVVFRklFRF9OQVRVUkFMX0dBUyxcbiAgICAgICAgICAgIENPTVBSRVNTRURfTkFUVVJBTF9HQVNfUElQRUxJTkUsXG4gICAgICAgICAgICBDT01QUkVTU0VEX05BVFVSQUxfR0FTX1BST0RVQ1RJT04sXG4gICAgICAgICAgICBCT0lMRVJTX0FORF9IRUFURVJTLFxuICAgICAgICAgICAgRlVSTkFDRVMsXG4gICAgICAgICAgICBQT1dFUl9HRU5FUkFUSU9OLFxuICAgICAgICAgICAgQ09HRU5FUkFUSU9OLFxuICAgICAgICAgICAgQ09NQklORURfQ1lDTEVfUE9XRVJfUExBTlRTLFxuICAgICAgICAgICAgRlVFTF9GT1JfVkVISUNMRVNfQU5EX0VRVUlQTUVOVCxcbiAgICAgICAgICAgIEdBU19NRVRFUlMsXG4gICAgICAgICAgICBCVVJORVJTLFxuICAgICAgICAgICAgRkxVRV9HQVNfQU5BTFlaRVJTLFxuICAgICAgICAgICAgQ09NQlVTVElPTl9DT05UUk9MX1NZU1RFTVMsXG4gICAgICAgICAgICBHQVNfU1RPUkFHRV9UQU5LUyxcbiAgICAgICAgICAgIEdBU19QUkVTU1VSRV9SRUdVTEFUT1JTLFxuICAgICAgICAgICAgTkFUVVJBTF9HQVMsXG4gICAgICAgIF07XG4gICAgICAgIExpc3RJdGVtc0NyZWF0ZUVudGl0eVRlbXBsYXRlLm1hcCgoZSkgPT4ge1xuICAgICAgICAgICAgaWYgKCEhQXRvR29qc0VkaXRvck1vZGVsLk5PREVfVEVNUExBVEVTW2VdKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5tYWtlRW50aXR5VGVtcGxhdGVFbmVyZ3koXG4gICAgICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5OT0RFX1RFTVBMQVRFU1tlXS5pY29uLFxuICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbZV0ubmFtZSxcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBpbml0RnVlbERpYWdyYW0oKSB7XG4gICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgIERJRVNFTF9GVUVMUyxcbiAgICAgICAgICAgIEdBU09OX0xJTkVTLFxuICAgICAgICAgICAgQklPRElFU0VMUyxcbiAgICAgICAgICAgIEtFUk9TRU5TRSxcbiAgICAgICAgICAgIFBST1BBTkVTLFxuICAgICAgICAgICAgVEFOS0VSX1RSVUNLUyxcbiAgICAgICAgICAgIFBJUEVMSU5FLFxuICAgICAgICAgICAgSU5EVVNUUklBTF9CT0lMRVJTLFxuICAgICAgICAgICAgR0VORVJBVE9SUyxcbiAgICAgICAgICAgIElORFVTVFJJQUxfRlVSTkFDRVMsXG4gICAgICAgICAgICBJTkRVU1RSSUFMX09WRU5TLFxuICAgICAgICAgICAgSU5EVVNUUklBTF9WRUhJQ0xFU19BTkRfRVFVSVBNRU5ULFxuICAgICAgICAgICAgRlVFTF9NRVRFUlMsXG4gICAgICAgICAgICBGVUVMX0RJU1BFTlNFUlMsXG4gICAgICAgICAgICBGVUVMX1NUUk9SQUdFX1RBTktTLFxuICAgICAgICAgICAgRlVFTF9GSUxUUkFUSU9OUyxcbiAgICAgICAgICAgIEZVRUxfTUFOQUdFTUVOVFMsXG4gICAgICAgICAgICBGVUVMUyxcbiAgICAgICAgfSA9IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUztcbiAgICAgICAgY29uc3QgTGlzdEl0ZW1zQ3JlYXRlRW50aXR5VGVtcGxhdGUgPSBbXG4gICAgICAgICAgICBESUVTRUxfRlVFTFMsXG4gICAgICAgICAgICBHQVNPTl9MSU5FUyxcbiAgICAgICAgICAgIEJJT0RJRVNFTFMsXG4gICAgICAgICAgICBLRVJPU0VOU0UsXG4gICAgICAgICAgICBQUk9QQU5FUyxcbiAgICAgICAgICAgIFRBTktFUl9UUlVDS1MsXG4gICAgICAgICAgICBQSVBFTElORSxcbiAgICAgICAgICAgIElORFVTVFJJQUxfQk9JTEVSUyxcbiAgICAgICAgICAgIEdFTkVSQVRPUlMsXG4gICAgICAgICAgICBJTkRVU1RSSUFMX0ZVUk5BQ0VTLFxuICAgICAgICAgICAgSU5EVVNUUklBTF9PVkVOUyxcbiAgICAgICAgICAgIElORFVTVFJJQUxfVkVISUNMRVNfQU5EX0VRVUlQTUVOVCxcbiAgICAgICAgICAgIEZVRUxfTUVURVJTLFxuICAgICAgICAgICAgRlVFTF9ESVNQRU5TRVJTLFxuICAgICAgICAgICAgRlVFTF9TVFJPUkFHRV9UQU5LUyxcbiAgICAgICAgICAgIEZVRUxfRklMVFJBVElPTlMsXG4gICAgICAgICAgICBGVUVMX01BTkFHRU1FTlRTLFxuICAgICAgICAgICAgRlVFTFMsXG4gICAgICAgIF07XG4gICAgICAgIExpc3RJdGVtc0NyZWF0ZUVudGl0eVRlbXBsYXRlLm1hcCgoZSkgPT4ge1xuICAgICAgICAgICAgaWYgKCEhQXRvR29qc0VkaXRvck1vZGVsLk5PREVfVEVNUExBVEVTW2VdKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5tYWtlRW50aXR5VGVtcGxhdGVFbmVyZ3koXG4gICAgICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5OT0RFX1RFTVBMQVRFU1tlXS5pY29uLFxuICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbZV0ubmFtZSxcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBpbml0U29sYXJEaWFncmFtKCkge1xuICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICBTT0xBUl9QT1dFUixcbiAgICAgICAgICAgIFBPV0VSX0NPTkRJVElPTklOR19VTklULFxuICAgICAgICAgICAgQkFUVEVSSUVTOiBCQVRURVJZLFxuICAgICAgICAgICAgSU5WRVJURVJTOiBJTlZFUlRFUixcbiAgICAgICAgfSA9IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUztcbiAgICAgICAgY29uc3QgTGlzdEl0ZW1zQ3JlYXRlRW50aXR5VGVtcGxhdGUgPSBbU09MQVJfUE9XRVIsIFBPV0VSX0NPTkRJVElPTklOR19VTklULCBCQVRURVJZLCBJTlZFUlRFUl07XG4gICAgICAgIExpc3RJdGVtc0NyZWF0ZUVudGl0eVRlbXBsYXRlLm1hcCgoZSkgPT4ge1xuICAgICAgICAgICAgaWYgKCEhQXRvR29qc0VkaXRvck1vZGVsLk5PREVfVEVNUExBVEVTW2VdKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5tYWtlRW50aXR5VGVtcGxhdGVFbmVyZ3koXG4gICAgICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5OT0RFX1RFTVBMQVRFU1tlXS5pY29uLFxuICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbZV0ubmFtZSxcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBpbml0U3RlYW1EaWFncmFtKCkge1xuICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICBWQUxVRVMsXG4gICAgICAgICAgICBTVEVBTV9UUkFQUyxcbiAgICAgICAgICAgIFBSRVNTVVJFX1JFR1VMQVRPUlMsXG4gICAgICAgICAgICBTQUZFVFlfVkFMVUVTX0FORF9FUVVJUE1FTlQsXG4gICAgICAgICAgICBDT05ERU5TQVRFX1JFVFVSTl9TWVNURU0sXG4gICAgICAgICAgICBERUFFUkFUT1JTLFxuICAgICAgICAgICAgRkVFRFdBVEVSX1BVTVBTLFxuICAgICAgICAgICAgQkxPV0RPV05fVEFOS1MsXG4gICAgICAgICAgICBFWFBBTlNJT05fVEFOS1MsXG4gICAgICAgICAgICBIRUFUX0VYQ0hBTkdFUlMsXG4gICAgICAgICAgICBUVVJCSU5FUyxcbiAgICAgICAgfSA9IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUztcbiAgICAgICAgY29uc3QgTGlzdEl0ZW1zQ3JlYXRlRW50aXR5VGVtcGxhdGUgPSBbXG4gICAgICAgICAgICBWQUxVRVMsXG4gICAgICAgICAgICBTVEVBTV9UUkFQUyxcbiAgICAgICAgICAgIFBSRVNTVVJFX1JFR1VMQVRPUlMsXG4gICAgICAgICAgICBTQUZFVFlfVkFMVUVTX0FORF9FUVVJUE1FTlQsXG4gICAgICAgICAgICBDT05ERU5TQVRFX1JFVFVSTl9TWVNURU0sXG4gICAgICAgICAgICBERUFFUkFUT1JTLFxuICAgICAgICAgICAgRkVFRFdBVEVSX1BVTVBTLFxuICAgICAgICAgICAgQkxPV0RPV05fVEFOS1MsXG4gICAgICAgICAgICBFWFBBTlNJT05fVEFOS1MsXG4gICAgICAgICAgICBIRUFUX0VYQ0hBTkdFUlMsXG4gICAgICAgICAgICBUVVJCSU5FUyxcbiAgICAgICAgXTtcbi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VBMRV0/LnN0cm9rZVdpZHRoLFxuICAgICAgICAgICAgICAgICAgICAvLyBzdHJva2VXaWR0aDogMCxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzdHJva2UnLCAnY29sb3InKSxcbiAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc2VsZWN0YWJsZScsICdzZWxlY3RhYmxlJyksXG4gICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3N0cm9rZVdpZHRoJywgJ3R5cGUnLCAoeCkgPT4gQXRvR29qc0VkaXRvck1vZGVsLkxJTktfVEVNUExBVEVTW3hdPy5zdHJva2VXaWR0aCksXG4gICAgICAgICAgICApLFxuICAgICAgICApO1xuXG4gICAgICAgIC8vIGFuaW1hdGlvblxuICAgICAgICBlbGVtZW50cy5wdXNoKFxuICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCB7XG4gICAgICAgICAgICAgICAgLi4uQXRvR29qc0VkaXRvck1vZGVsLkxJTktfVEVNUExBVEVTW0F0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0xJTktfVFlQRVMuUElQRV9BTklNQVRJT05dPy5hbmltYXRpb24sXG4gICAgICAgICAgICAgICAgdmlzaWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICBmaWxsOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICk7XG5cbiAgICAgICAgZWxlbWVudHMucHVzaChcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnVG9wJyxcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGhlaWdodDogMzgsXG4gICAgICAgICAgICAgICAgICAgIC8vIG1heFNpemU6IG5ldyBnby5TaXplKE5hTiwgMzYpLFxuICAgICAgICAgICAgICAgICAgICAvLyB3aWR0aDogMTAwLFxuICAgICAgICAgICAgICAgICAgICAvLyBtaW5TaXplOiBuZXcgZ28uU2l6ZSgxMDAsIDUpLCAvLyDEkOG6t3Qga8OtY2ggdGjGsOG7m2MgdOG7kWkgdGhp4buDdSBsw6AgMTAweDUwXG4gICAgICAgICAgICAgICAgICAgIGJhY2tncm91bmQ6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgICAgICAgICAgICAgIC8vIGxheWVyTmFtZTogJ0JhY2tncm91bmRMYXllcicsXG4gICAgICAgICAgICAgICAgICAgIC8vIGFsaWdubWVudDogZ28uU3BvdC5Ub3AsXG4gICAgICAgICAgICAgICAgICAgIC8vIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkxlZnQsXG4gICAgICAgICAgICAgICAgICAgIC8vIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAwLCA1MCwgMCksXG4gICAgICAgICAgICAgICAgICAgIC8vIHNlbGVjdGFibGU6IGZhbHNlLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAndGV4dENvbXBvbmVudCcsICh4KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB4ID8gdHJ1ZSA6IGZhbHNlO1xuICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgIC8vIHRoaXMuJChnby5TaGFwZSwge1xuICAgICAgICAgICAgICAgIC8vICAgICBoZWlnaHQ6IDMwLFxuICAgICAgICAgICAgICAgIC8vICAgICBiYWNrZ3JvdW5kOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICAgICAgICAgIC8vICAgICBmaWxsOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICAgICAgICAgIC8vICAgICAvLyB2aXNpYmxlOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAvLyB9KSxcbiAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDUwLCAwKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogJyM0NDQ0NDQnLFxuICAgICAgICAgICAgICAgICAgICAgICAgZm9udDogJ25vcm1hbCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2xlZnQnLFxuICAgICAgICAgICAgICAgICAgICAgICAgYmFja2dyb3VuZDogJ3RyYW5zcGFyZW50JyxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGVkaXRhYmxlOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsIC8vIMSQ4bqjbSBi4bqjbyB2xINuIGLhuqNuIG7hurFtIOG7nyB0cnVuZyB0w6JtIGPhu6dhIG7DunRcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkNlbnRlciwgLy8gxJDhuqNtIGLhuqNvIHbEg24gYuG6o24ga2jDtG5nIGLhu4sgZOG7i2NoIGNodXnhu4NuIHJhIGto4buPaSB0cnVuZyB0w6JtXG4gICAgICAgICAgICAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suV3JhcEZpdCwgLy8gQ2h1eeG7g24gZMOybmcgxJHhu4MgdsSDbiBi4bqjbiBraMO0bmcgdsaw4bujdCByYSBuZ2/DoGlcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIHNlbGVjdGFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICBvdmVyZmxvdzogZ28uVGV4dEJsb2NrLk92ZXJmbG93RWxsaXBzaXMsXG4gICAgICAgICAgICAgICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ3RleHRDb21wb25lbnQnKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAndGV4dENvbXBvbmVudCcpLFxuICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnYmFja2dyb3VuZCcsICd0ZXh0Q29tcG9uZW50JywgKHgpID0+ICh4ID8gJ3doaXRlJyA6ICd0cmFuc3BhcmVudCcpKSxcbiAgICAgICAgICAgICAgICAgICAgLy8gICAgIG5ldyBnby5CaW5kaW5nKCdtYXJnaW4nLCAnaXNGb3JtYXQnLCAoeCkgPT5cbiAgICAgICAgICAgICAgICAgICAgLy8gICAgIHggPyBuZXcgZ28uTWFyZ2luKDUsIDAsIDUsIDUpIDogbmV3IGdvLk1hcmdpbig1LCA1LCA1LCA1KSxcbiAgICAgICAgICAgICAgICAgICAgLy8gKSxcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgKSxcbiAgICAgICAgKTtcblxuICAgICAgICAvLyBhcnJvd1xuICAgICAgICBlbGVtZW50cy5wdXNoKFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlNoYXBlLCAvLyB0aGUgXCJmcm9tXCIgYXJyb3doZWFkXG4gICAgICAgICAgICAgICAgeyAuLi5BdG9Hb2pzRWRpdG9yTW9kZWwuTElOS19URU1QTEFURVNbQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fTElOS19UWVBFUy5TSU1QTEVdPy5hcnJvdyB9LFxuICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKFxuICAgICAgICAgICAgICAgICAgICAndmlzaWJsZScsXG4gICAgICAgICAgICAgICAgICAgICd0eXBlJyxcbiAgICAgICAgICAgICAgICAgICAgKHgpID0+XG4gICAgICAgICAgICAgICAgICAgICAgICAhW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0xJTktfVFlQRVMuUElQRV9BTklNQVRJT04sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fTElOS19UWVBFUy5QSVBFLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0xJTktfVFlQRVMuUElQRV9ISURERU4sXG4gICAgICAgICAgICAgICAgICAgICAgICBdLmluY2x1ZGVzKHgpLFxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2ZpbGwnLCAnY29sb3InKSxcbiAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJ2NvbG9yJyksXG4gICAgICAgICAgICApLFxuICAgICAgICApO1xuXG4gICAgICAgIC8vIFRPRE8gZml4IGxpbmsgY2Fubm90IHNlbGVjdGVkIGluc2lkZSBncm91cCB0ZW1wbGF0ZVxuICAgICAgICB0aGlzLm15RGlhZ3JhbS5saW5rVGVtcGxhdGUgPSB0aGlzLiQoXG4gICAgICAgICAgICBnby5MaW5rLFxuICAgICAgICAgICAgZ28uTGluay5PcnRob2dvbmFsLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIC8vIGxheWVyTmFtZTogJ0JhY2tncm91bmQnLCAvLyBsaW5rIGNhbm5vdCBzZWxlY3QgaW5zaWRlIGdyb3VwIHRlbXBsYXRlXG4gICAgICAgICAgICAgICAgLy8gY3VydmluZXNzOiAyMCxcbiAgICAgICAgICAgICAgICAvLyBjb3JuZXI6IDUsXG4gICAgICAgICAgICAgICAgcm91dGluZzogZ28uTGluay5Bdm9pZHNOb2RlcyxcbiAgICAgICAgICAgICAgICByZXNoYXBhYmxlOiB0cnVlLFxuICAgICAgICAgICAgICAgIHJlc2VnbWVudGFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgcmVsaW5rYWJsZUZyb206IHRydWUsXG4gICAgICAgICAgICAgICAgcmVsaW5rYWJsZVRvOiB0cnVlLFxuICAgICAgICAgICAgICAgIHNlbGVjdGFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgdG9TaG9ydExlbmd0aDogQXRvR29qc0VkaXRvck1vZGVsLkxJTktfVEVNUExBVEVTW0F0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0xJTktfVFlQRVMuU0lNUExFXS50b1Nob3J0TGVuZ3RoLCAvLyBhc3N1bWUgYXJyb3doZWFkIGF0IFwidG9cIiBlbmQsIG5lZWQgdG8gYXZvaWQgYmFkIGFwcGVhcmFuY2Ugd2hlbiBwYXRoIGlzIHRoaWNrXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2xheWVyTmFtZScsICcnLCAoZGF0YSkgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiBkYXRhPy50ZXh0Q29tcG9uZW50ID8gJ0JhY2tncm91bmQnIDogJyc7XG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd6T3JkZXInLCAndHlwZScsICh4KSA9PiAoeCA9PT0gQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fTElOS19UWVBFUy5QSVBFX0FOSU1BVElPTiA/IDExIDogMTApKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0b1Nob3J0TGVuZ3RoJywgJ3R5cGUnLCAoeCkgPT4gQXRvR29qc0VkaXRvck1vZGVsLkxJTktfVEVNUExBVEVTW3hdLnRvU2hvcnRMZW5ndGggfHwgMCksXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc2VsZWN0YWJsZScsICdzZWxlY3RhYmxlJyksXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICd2aXNpYmxlJyksXG5cbiAgICAgICAgICAgIC8vIG1ha2Ugc3VyZSBsaW5rcyBjb21lIGluIGZyb20gdGhlIHByb3BlciBkaXJlY3Rpb24gYW5kIGdvIG91dCBhcHByb3ByaWF0ZWx5XG4gICAgICAgICAgICAuLi5lbGVtZW50cyxcbiAgICAgICAgKTtcbiAgICB9XG5cbiAgICBtYWtlVmFsdWVOb2RlVGVtcGxhdGUoc2l6ZTogeyB3OiBudW1iZXI7IGg6IG51bWJlciB9ID0geyB3OiA4MiwgaDogMzYgfSkge1xuICAgICAgICBjb25zdCBzZWxmID0gdGhpcztcbiAgICAgICAgY29uc3Qgbm9kZSA9IHRoaXMuJChcbiAgICAgICAgICAgIGdvLk5vZGUsXG4gICAgICAgICAgICAnU3BvdCcsXG4gICAgICAgICAgICB7fSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShnby5Qb2ludC5zdHJpbmdpZnkpLFxuXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgIHsgbWluU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53LCBzaXplLmgpIH0sXG4gICAgICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnUmVjdGFuZ2xlJywge1xuICAgICAgICAgICAgICAgICAgICBmaWxsOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuTElHSFRfQkxVRSxcbiAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICdIb3Jpem9udGFsJyxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvdzogMixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb250OiAnYm9sZCAxNHB4IEFyaWFsJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkNFUlVMRUFOLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdlZGl0YWJsZScsICdpc0VkaXRhYmxlJyksXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICdzaG9ydGVuZWROdW1iZXInKS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJ2NvbG9yJyksXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnbWFyZ2luJywgJ2lzRm9ybWF0JywgKHgpID0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgeCA/IG5ldyBnby5NYXJnaW4oNSwgMCwgNSwgNSkgOiBuZXcgZ28uTWFyZ2luKDUsIDUsIDUsIDUpLFxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJycsIGZ1bmN0aW9uIChkYXRhKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGEudmFsdWUgIT09IFZBTFVFX05BO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgIC8vIEljb24gRXJyIHdoZW4gbGFjayBvZiB2YWx1ZVxuICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDEwLCAxMCwgMTAsIDEwKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0OiBWQUxVRV9OQSwgLy8gT2xkIHZlcnNpb246IFRFWFRfRVJST1JcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDEwcHQgc2Fucy1zZXJpZicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuU0FMTU9OLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdyYXA6IGdvLlRleHRCbG9jay5XcmFwRml0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVkaXRhYmxlOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpc011bHRpbGluZTogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnJywgZnVuY3Rpb24gKGRhdGEpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YS52YWx1ZSA9PT0gVkFMVUVfTkE7XG4gICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgKSxcbiAgICAgICAgKTtcbiAgICAgICAgdGhpcy5teURpYWdyYW0ubm9kZVRlbXBsYXRlTWFwLnNldChBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuVkFMVUVfTk9ERSwgbm9kZSk7XG4gICAgfVxuXG4gICAgbWFrZUVtcHR5Tm9kZVRlbXBsYXRlKHNpemU6IHsgdzogbnVtYmVyOyBoOiBudW1iZXIgfSA9IHsgdzogMCwgaDogMCB9KSB7XG4gICAgICAgIGNvbnN0IG5vZGUgPSB0aGlzLiQoXG4gICAgICAgICAgICBnby5Ob2RlLFxuICAgICAgICAgICAgJ1Nwb3QnLFxuICAgICAgICAgICAge30sXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoZ28uUG9pbnQuc3RyaW5naWZ5KSxcbiAgICAgICAgKTtcbiAgICAgICAgdGhpcy5teURpYWdyYW0ubm9kZVRlbXBsYXRlTWFwLnNldChBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuRU1QVFksIG5vZGUpO1xuICAgIH1cblxuICAgIG1ha2VWYWx1ZUxhYmVsVGVtcGxhdGUoc2l6ZTogeyB3OiBudW1iZXI7IGg6IG51bWJlciB9ID0geyB3OiA4MiwgaDogMzYgfSkge1xuICAgICAgICBjb25zdCBub2RlID0gdGhpcy4kKFxuICAgICAgICAgICAgZ28uTm9kZSxcbiAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBtb3ZhYmxlOiBmYWxzZSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoZ28uUG9pbnQuc3RyaW5naWZ5KSxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgeyBtaW5TaXplOiBuZXcgZ28uU2l6ZShzaXplLncsIHNpemUuaCkgfSxcbiAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAnSG9yaXpvbnRhbCcsXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAxMCwgMCwgMTApLFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDUsIDEwLCAwKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDE1cHggc2Fucy1zZXJpZicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgd3JhcDogZ28uVGV4dEJsb2NrLldyYXBGaXQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuQ0VSVUxFQU4sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbWluU2l6ZTogbmV3IGdvLlNpemUoMTUwLCAzMCksIC8vIFNldCB0aGUgd2lkdGggb2YgdGhlIHRleHQgYmxvY2tcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJ2NvbG9yJyksXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICdkYXRhJywgKHgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAodHlwZW9mIHg/LnF1YW50aXR5ICE9PSAnbnVtYmVyJykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJyc7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGZvcm1hdHRlZDogYW55ID0gVXRpbHNTZXJ2aWNlLmNvbnZlcnRQcmVmaXhlc0RhdGEoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTogeD8ucXVhbnRpdHksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVuaXQ6IFV0aWxzU2VydmljZS5jb252ZXJ0U3BlY2lhbFVuaXQoeD8udW5pdCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgcmV0VmFsdWUgPVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3JtYXR0ZWQuc2hvcnRlbmVkTnVtYmVyICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICcgJyArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3JtYXR0ZWQudW5pdFByZWZpeGVzICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFV0aWxzU2VydmljZS5jb252ZXJ0U3BlY2lhbFVuaXQoeD8udW5pdCkgPz8gJyc7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHg/LnBlcmNlbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0VmFsdWUgKz0gYCAoJHt4Py5wZXJjZW50fSUpYDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJldFZhbHVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICdkYXRhJywgKHgpID0+IHR5cGVvZiB4Py5xdWFudGl0eSA9PT0gJ251bWJlcicpLFxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICApLFxuICAgICAgICApO1xuICAgICAgICB0aGlzLm15RGlhZ3JhbS5ub2RlVGVtcGxhdGVNYXAuc2V0KEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5WQUxVRV9MQUJFTCwgbm9kZSk7XG4gICAgfVxuXG4gICAgbWFrZVRleHRMYWJlbFRlbXBsYXRlKHNpemU6IHsgdzogbnVtYmVyOyBoOiBudW1iZXIgfSA9IHsgdzogTmFOLCBoOiAyMCB9KSB7XG4gICAgICAgIGNvbnN0IG5vZGUgPSB0aGlzLiQoXG4gICAgICAgICAgICBnby5Ob2RlLFxuICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIG1vdmFibGU6IGZhbHNlLFxuICAgICAgICAgICAgICAgIGlzU2VsZWN0ZWQ6IGZhbHNlLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShnby5Qb2ludC5zdHJpbmdpZnkpLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAnSG9yaXpvbnRhbCcsXG5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCA1LCAxMCwgMCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb250OiAnYm9sZCAxNnB4IEFyaWFsJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suV3JhcEZpdCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5DRVJVTEVBTixcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJ2NvbG9yJyksXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJyksXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICd2aXNpYmxlJyksXG4gICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICksXG4gICAgICAgICk7XG4gICAgICAgIHRoaXMubXlEaWFncmFtLm5vZGVUZW1wbGF0ZU1hcC5zZXQoQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlRFWFRfTEFCRUwsIG5vZGUpO1xuICAgIH1cblxuICAgIG1ha2VUZXh0VGVtcGxhdGUoXG4gICAgICAgIHNpemU6IHsgdzogbnVtYmVyOyBoOiBudW1iZXIgfSA9IHsgdzogQXRvR29qc0VkaXRvck1vZGVsLkdSSURfU0laRSAqIDUsIGg6IEF0b0dvanNFZGl0b3JNb2RlbC5HUklEX1NJWkUgKiAyIH0sXG4gICAgKSB7XG4gICAgICAgIGNvbnN0IHNlbGYgPSB0aGlzO1xuICAgICAgICBjb25zdCBjb250ZXh0TWVudSA9IHRoaXMuJChcbiAgICAgICAgICAgIGdvLkFkb3JubWVudCxcbiAgICAgICAgICAgICdWZXJ0aWNhbCcsXG4gICAgICAgICAgICB0aGlzLiQoJ0NvbnRleHRNZW51QnV0dG9uJywgdGhpcy4kKGdvLlRleHRCbG9jaywgJ09wdGlvbiAxJyksIHtcbiAgICAgICAgICAgICAgICBjbGljazogZnVuY3Rpb24gKGUsIG9iaikge1xuICAgICAgICAgICAgICAgICAgICBhbGVydCgnT3B0aW9uIDEgY2xpY2tlZCEnKTtcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICB0aGlzLiQoJ0NvbnRleHRNZW51QnV0dG9uJywgdGhpcy4kKGdvLlRleHRCbG9jaywgJ09wdGlvbiAyJyksIHtcbiAgICAgICAgICAgICAgICBjbGljazogZnVuY3Rpb24gKGUsIG9iaikge1xuICAgICAgICAgICAgICAgICAgICBhbGVydCgnT3B0aW9uIDIgY2xpY2tlZCEnKTtcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAvLyAuLi4gYWRkIG1vcmUgb3B0aW9ucyBhcyBuZWVkZWQgLi4uXG4gICAgICAgICk7XG4gICAgICAgIGNvbnN0IG5vZGUgPSB0aGlzLiQoXG4gICAgICAgICAgICBnby5Ob2RlLFxuICAgICAgICAgICAgJ1Nwb3QnLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIC8vIGZyb21TcG90OiBnby5TcG90LlJpZ2h0U2lkZSxcbiAgICAgICAgICAgICAgICAvLyB0b1Nwb3Q6IGdvLlNwb3QuTGVmdFNpZGUsXG4gICAgICAgICAgICAgICAgbG9jYXRpb25TcG90OiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgICAgICAvLyBzZWxlY3Rpb25DaGFuZ2VkOiAoZSkgPT4ge1xuICAgICAgICAgICAgICAgIC8vICAgICBpZiAoZT8uZGF0YS5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBlPy5kYXRhLm9uU2VsZWN0ZWQoZT8uZGF0YSk7XG4gICAgICAgICAgICAgICAgLy8gICAgIH1cbiAgICAgICAgICAgICAgICAvLyB9LFxuICAgICAgICAgICAgICAgIC8vIG1vdXNlSG92ZXI6IChlLCBvYmopID0+IHtcbiAgICAgICAgICAgICAgICAvLyAgICAgY29uc3Qgbm9kZSA9IG9iai5wYXJ0O1xuICAgICAgICAgICAgICAgIC8vICAgICBpZiAoKG9iaiBhcyBhbnkpLnBhcnQ/Lm9iPy52YWx1ZSA9PT0gVkFMVUVfTkEpIHtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgIHNlbGYub25Ib3ZlckluZm9CdXR0b24uZW1pdCh7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgbGVmdDogZT8uWydXciddPy54ICsgOCxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICBub2RlOiBub2RlLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgLy8gICAgIH1cbiAgICAgICAgICAgICAgICAvLyB9LFxuICAgICAgICAgICAgICAgIC8vIG1vdXNlTGVhdmU6IChlLCBvYmopID0+IHtcbiAgICAgICAgICAgICAgICAvLyAgICAgaWYgKChvYmogYXMgYW55KS5wYXJ0Py5vYj8udmFsdWUgPT09IFZBTFVFX05BKSB7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBzZWxmLm9uSG92ZXJJbmZvQnV0dG9uLmVtaXQobnVsbCk7XG4gICAgICAgICAgICAgICAgLy8gICAgIH1cbiAgICAgICAgICAgICAgICAvLyB9LFxuICAgICAgICAgICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3Qgbm9kZSA9IG9iai5wYXJ0O1xuICAgICAgICAgICAgICAgICAgICBpZiAobm9kZT8ub2I/LmlzVHlwZUluZmxvd09mUGxhbnRDZWxsKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQobm9kZT8ub2I/Lm5vZGVQbGFudENlbGxQYXJlbnQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gc2VsZi5vbkNsaWNrQ29tcG9lbnQuZW1pdCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgbGVmdDogZT8uWydXciddPy54LFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgIG5vZGU6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgb2I6IG5vZGU/Lm9iPy5ub2RlUGxhbnRDZWxsUGFyZW50LFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgY29tcG9uZW50OiBub2RlPy5vYj8ubm9kZVBsYW50Q2VsbFBhcmVudCxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLl9pbml0aWFsT3B0aW9ucz8uaXNSZWFkT25seSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5pc1Nob3dOb2RlSW5mb1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gc2VsZi5vbkNsaWNrSW5mb0J1dHRvbi5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZWZ0OiBlPy5bJ1dyJ10/LngsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9wOiBlPy5bJ1dyJ10/LnksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbm9kZTogbm9kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgOiBudWxsO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBkb3VibGVDbGljazogKGUsIG9iajogYW55KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IG5vZGUgPSBvYmoucGFydDtcbiAgICAgICAgICAgICAgICAgICAgaWYgKG5vZGU/Lm9iPy5pc1R5cGVJbmZsb3dPZlBsYW50Q2VsbCAmJiAhdGhpcy5faW5pdGlhbE9wdGlvbnM/LmlzUmVhZE9ubHkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIG9iaj8uZGF0YT8ub25TZWxlY3RlZChub2RlPy5vYj8ubm9kZVBsYW50Q2VsbFBhcmVudCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyB0aGlzLmlzU2hvd05vZGVJbmZvXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgPyBzZWxmLm9uRG91YmxlQ2xpY2tOb2RlLmVtaXQoe1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICAgIGxlZnQ6IGU/LlsnV3InXT8ueCxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICBub2RlOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgIG9iOiBub2RlPy5vYj8ubm9kZVBsYW50Q2VsbFBhcmVudCxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICA6IG51bGw7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgaWYgKCF0aGlzLl9pbml0aWFsT3B0aW9ucz8uaXNSZWFkT25seSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5pc1Nob3dOb2RlSW5mb1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gc2VsZi5vbkNsaWNrSW5mb0J1dHRvbi5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZWZ0OiBlPy5bJ1dyJ10/LngsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9wOiBlPy5bJ1dyJ10/LnksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbm9kZTogbm9kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgOiBudWxsO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBzZWxlY3Rpb25BZG9ybm1lbnRUZW1wbGF0ZTogdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICBnby5BZG9ybm1lbnQsXG4gICAgICAgICAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyB7IGhlaWdodDogNjIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwgeyBmaWxsOiBudWxsLCBzdHJva2U6ICdkb2RnZXJibHVlJywgc3Ryb2tlV2lkdGg6IDQgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uUGxhY2Vob2xkZXIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8geyBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDgsIDMsIDAsIDMpIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3BhZGRpbmcnLCAnJywgKHgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHg/LmlzVHlwZUluZmxvd09mUGxhbnRDZWxsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA/IHg/LmZsb3dPZlBsYW50Q2VsbCA9PT0gQVRPX0VOVU1fRkxPV19ESVJFQ1RJT04uSU5GTE9XXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPyBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDIwKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogbmV3IGdvLk1hcmdpbigwLCAyMCwgMCwgMClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogbnVsbDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyB0aGlzLiQoZ28uUGxhY2Vob2xkZXIsIHsgcGFkZGluZzogMyB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdoZWlnaHQnLCAnJywgKHgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4geD8uaXNUeXBlSW5mbG93T2ZQbGFudENlbGwgPyB4Py5oZWlnaHQgKyAxMCA6IG51bGw7XG4gICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd3aWR0aCcsICcnLCAoeCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB4Py5pc1R5cGVJbmZsb3dPZlBsYW50Q2VsbCA/IHg/LndpZHRoICsgMTIgOiBudWxsO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgJ0hvcml6b250YWwnLFxuICAgICAgICAgICAgICAgICAgICAgICAgeyBhbGlnbm1lbnQ6IGdvLlNwb3QuVG9wUmlnaHQsIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkJvdHRvbSB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gbW9yZVxuICAgICAgICAgICAgICAgICAgICAgICAgIXRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA/IHRoaXMuZ2VuZXJhdGVBY3Rpb25Hcm91cChbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5SRU5BTUUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5JTlNJR0hULFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuT1VURkxPVyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkRFTEVURSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgOiB7fSxcbiAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdmcm9tU3BvdCcsICdmcm9tU3BvdCcpLFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RvU3BvdCcsICd0b1Nwb3QnKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdtb3ZhYmxlJywgJ21vdmFibGUnKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzZWxlY3RhYmxlJywgJ3NlbGVjdGFibGUnKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShnby5Qb2ludC5zdHJpbmdpZnkpLFxuICAgICAgICAgICAgLy8gbmV3IGdvLkJpbmRpbmcoJ2FsaWdubWVudCcsICdhbGlnbm1lbnQnLCBmdW5jdGlvbihsb2MpIHtcbiAgICAgICAgICAgIC8vICAgICByZXR1cm4gbmV3IGdvLlNwb3QoMCwgMCwgbG9jLngsIDApO1xuICAgICAgICAgICAgLy8gfSkub2ZPYmplY3QoKSxcblxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICcnLCBmdW5jdGlvbiAoZGF0YSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoIXNlbGYuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhPy5uYW1lID8/IFZBTFVFX05BO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChkYXRhPy52YWx1ZSA9PT0gVkFMVUVfTkEgfHwgXy5pc05pbChkYXRhPy52YWx1ZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBOT19EQVRBO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gcmV0dXJuIFRFWFRfVU5LTk9XTjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gXy5yb3VuZChkYXRhPy52YWx1ZSwgMikudG9GaXhlZCgyKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5hcnJvd0ZvclBsYW50Q2VsbChzaXplLCBBVE9fRU5VTV9GTE9XX0RJUkVDVElPTi5PVVRGTE9XKSxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyB7IHdpZHRoOiBzaXplLncsIGhlaWdodDogc2l6ZS5oIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gbWluU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53LCBzaXplLmgpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudywgc2l6ZS5oKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZXNpcmVkU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53LCBzaXplLmgpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbHVtbjogMSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByb3c6IDIsXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3dpZHRoJywgJ3dpZHRoJyksXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnaGVpZ2h0JywgJ2hlaWdodCcpLFxuXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uU2hhcGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgJ1JvdW5kZWRSZWN0YW5nbGUnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmlsbDogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkxJR0hUX0JMVUUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkxJTktfV0FURVIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5hbWU6ICd0ZXh0Tm9kZVNoYXBlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdmaWxsJywgJ2ZpbGwnKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJ3N0cm9rZScpLFxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnVmVydGljYWwnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdIb3Jpem9udGFsJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIEFsZXJ0XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDUpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZpc2libGU6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJ3JlY29tbWVuZGF0aW9uJyksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdDaXJjbGUnLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmlsbDogJyNFOTVGNDcnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogJyNFOTVGNDcnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdpZHRoOiAxNSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoZWlnaHQ6IDE1LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dDogJ1xcdWY2NDknLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigxLjUsIDAsIDAsIDApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvbnQ6ICc4cHggXCJGb250IEF3ZXNvbWUgNiBQcm9cIicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnI2ZmZicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPyB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdQb3NpdGlvbicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgd2lkdGg6IDE4LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhlaWdodDogMTUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmlzaWJsZTogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgMCwgMCwgNSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbW91c2VFbnRlcjogKGUsIG9iaikgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLm9uSG92ZXJBbGVydC5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxlZnQ6IGU/LlsnV3InXT8ueCArIDgsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1lc3NhZ2VBbGVydDogKG9iaiBhcyBhbnkpLnBhcnQ/Lm9iPy5tZXNzYWdlQWxlcnQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbW91c2VMZWF2ZTogKGUsIG9iaikgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLm9uSG92ZXJBbGVydC5lbWl0KG51bGwpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnYWxlcnQnKSxcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBpY3R1cmUsIElDT05fQUxFUlQsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKDMwLCAzMCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogJycsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5hbWU6ICd0ZXh0QmxvY2tWYWx1ZScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVkaXRhYmxlOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZXNpcmVkU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gOCwgMTgpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDIycHggQXJpYWwnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuR1JBWSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvdmVyZmxvdzogZ28uVGV4dEJsb2NrLk92ZXJmbG93RWxsaXBzaXMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gbmV3IGdvLkJpbmRpbmcoJ2VkaXRhYmxlJywgJ2lzRWRpdGFibGUnKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdhbmdsZScsICdhbmdsZScpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ21hcmdpbicsICcnLCAoZGF0YSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChkYXRhPy5hbGVydCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gbmV3IGdvLk1hcmdpbigwLCAwLCAwLCAwKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBnby5NYXJnaW4oMCwgMCwgMCwgMCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzdHJva2UnLCAnY29sb3InKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJycsIGZ1bmN0aW9uIChkYXRhKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHNlbGYuZ2V0VGV4dERhdGFCb3goZGF0YSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICcnLCAoZGF0YSkgPT4gIWRhdGE/LmlzSGlkZGVuVmFsdWUpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICApLFxuXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm1ha2VQb3J0KCdUJywgZ28uU3BvdC5Ub3AsIGdvLlNwb3QuVG9wU2lkZSwgZmFsc2UsIHRydWUpLFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5tYWtlUG9ydCgnTCcsIGdvLlNwb3QuTGVmdCwgZ28uU3BvdC5MZWZ0U2lkZSwgZmFsc2UsIHRydWUpLFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5tYWtlUG9ydCgnUicsIGdvLlNwb3QuUmlnaHQsIGdvLlNwb3QuUmlnaHRTaWRlLCB0cnVlLCBmYWxzZSksXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm1ha2VQb3J0KCdCJywgZ28uU3BvdC5Cb3R0b20sIGdvLlNwb3QuQm90dG9tU2lkZSwgdHJ1ZSwgZmFsc2UpLFxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmFycm93Rm9yUGxhbnRDZWxsKHNpemUsIEFUT19FTlVNX0ZMT1dfRElSRUNUSU9OLklORkxPVyksXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICksXG4gICAgICAgICk7XG4gICAgICAgIHRoaXMubXlEaWFncmFtLm5vZGVUZW1wbGF0ZU1hcC5zZXQoQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlRFWFRfTk9ERSwgbm9kZSk7XG4gICAgfVxuXG4gICAgYXJyb3dGb3JQbGFudENlbGwoc2l6ZSwgZmxvd0RpcmVjdGlvbikge1xuICAgICAgICByZXR1cm4gdGhpcy4kKFxuICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGhlaWdodDogc2l6ZS5oLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdoZWlnaHQnLCAnaGVpZ2h0JyksXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICcnLCAoZGF0YSkgPT4gZGF0YT8uZmxvd09mUGxhbnRDZWxsID09PSBmbG93RGlyZWN0aW9uKSxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBjb2x1bW46IGZsb3dEaXJlY3Rpb24gPT09IEFUT19FTlVNX0ZMT1dfRElSRUNUSU9OLk9VVEZMT1cgPyAwIDogMixcbiAgICAgICAgICAgICAgICByb3c6IDIsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2l0ZW1BcnJheScsICdkYXRhTGlua0FycmF5JyksXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgaXRlbVRlbXBsYXRlOiB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygncm93JywgJ2luZGV4Um93JyksXG4gICAgICAgICAgICAgICAgICAgIC8vIG5ldyBnby5CaW5kaW5nKCdoZWlnaHQnLCAnaGVpZ2h0JyksXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgIGdvLlBpY3R1cmUsXG4gICAgICAgICAgICAgICAgICAgICAgICBBUlJPVyxcbiAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKDIwLCA0MCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzb3VyY2UnLCAnJywgKGRhdGEsIHBhbmVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gcGFuZWwucGFydD8uZGF0YT8uaWRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YT8uaXNDcmVhdGVkID8gcGFuZWw/LiRwIDogQVJST1dfR1JBWTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICB9LFxuICAgICAgICApO1xuICAgIH1cblxuICAgIGdldFRleHREYXRhQm94KGRhdGEpIHtcbiAgICAgICAgaWYgKGRhdGE/LnZhbHVlID09PSBWQUxVRV9OQSkge1xuICAgICAgICAgICAgcmV0dXJuIFRFWFRfVU5LTk9XTjtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gYCR7ZGF0YT8uc2hvcnRlbmVkTnVtYmVyfSR7ZGF0YT8udW5pdFByZWZpeGVzID8gJyAnICsgZGF0YT8udW5pdFByZWZpeGVzIDogJyd9YDtcbiAgICB9XG5cbiAgICBtYWtlRGF0YUJveFRlbXBsYXRlKFxuICAgICAgICBzaXplOiB7IHc6IG51bWJlcjsgaDogbnVtYmVyIH0gPSB7IHc6IEF0b0dvanNFZGl0b3JNb2RlbC5HUklEX1NJWkUgKiA1LCBoOiBBdG9Hb2pzRWRpdG9yTW9kZWwuR1JJRF9TSVpFICogNSB9LFxuICAgICkge1xuICAgICAgICBjb25zdCBzZWxmID0gdGhpcztcbiAgICAgICAgbGV0IG5vZGUgPSB0aGlzLiQoXG4gICAgICAgICAgICBnby5Ob2RlLFxuICAgICAgICAgICAgJ1Nwb3QnLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGxvY2F0aW9uU3BvdDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICAgICAgbW91c2VPdmVyOiBmdW5jdGlvbiAoZSwgb2JqKSB7fSxcbiAgICAgICAgICAgICAgICBjbGljazogKGUsIG9iajogYW55KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG9iaj8uZGF0YT8ub25TZWxlY3RlZChvYmo/LmRhdGEpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBzZWxlY3Rpb25DaGFuZ2VkOiAoZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAoIWUuaXNTZWxlY3RlZCAmJiBlPy5kYXRhPy5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBlPy5kYXRhPy5vblNlbGVjdGVkKG51bGwpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShnby5Qb2ludC5zdHJpbmdpZnkpLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICBtb3VzZUhvdmVyOiAoZSwgb2JqKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKChvYmogYXMgYW55KS5wYXJ0Py5vYj8udmFsdWUgPT09IFZBTFVFX05BKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYub25Ib3ZlckluZm9CdXR0b24uZW1pdCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZWZ0OiBlPy5bJ1dyJ10/LnggKyA4LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9wOiBlPy5bJ1dyJ10/LnksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBub2RlOiBub2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgbW91c2VMZWF2ZTogKGUsIG9iaikgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICgob2JqIGFzIGFueSkucGFydD8ub2I/LnZhbHVlID09PSBWQUxVRV9OQSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLm9uSG92ZXJJbmZvQnV0dG9uLmVtaXQobnVsbCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIHsgcm93OiAwLCBzdHJldGNoOiBnby5HcmFwaE9iamVjdC5Ib3Jpem9udGFsIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uU2hhcGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgJ1JlY3RhbmdsZScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmaWxsOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuTElHSFRfQkxVRSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuUkVTT0xVVElPTl9CTFVFLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2ZpbGwnLCAnY29sb3InKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMTAsIDEwLCA1LCAxMCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudywgTmFOKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnd2hpdGUnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb250OiAnbm9ybWFsIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzcGFjaW5nQmVsb3c6IDUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpLFxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgICAgICAgICB7IHJvdzogMSwgc3RyZXRjaDogZ28uR3JhcGhPYmplY3QuSG9yaXpvbnRhbCB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnUmVjdGFuZ2xlJywge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbGw6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5MSUdIVF9CTFVFLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLlJFU09MVVRJT05fQkxVRSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICdIb3Jpem9udGFsJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gZWRpdGFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAxMCwgNDApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gbWluU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMTAsIHNpemUuaCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oNSwgMCwgNSwgNSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb250OiAnYm9sZCAxMnB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5HUkFZLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnZWRpdGFibGUnLCAnaXNFZGl0YWJsZScpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICdzaG9ydGVuZWROdW1iZXInKS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzdHJva2UnLCAnY29sb3InKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnJywgZnVuY3Rpb24gKGRhdGEpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhLnZhbHVlICE9PSBWQUxVRV9OQTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gZWRpdGFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAxMCwgNDApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gbWluU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMTAsIHNpemUuaCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oNSwgNSwgNSwgMCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb250OiAnYm9sZCAxMnB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5HUkFZLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICcnLCBmdW5jdGlvbiAoZGF0YSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGEudmFsdWUgIT09IFZBTFVFX05BO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAndW5pdFByZWZpeGVzJyksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzdHJva2UnLCAnY29sb3InKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIEljb24gRXJyIHdoZW4gbGFjayBvZiB2YWx1ZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMTAsIDEwLCAxMCwgMTApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dDogVkFMVUVfTkEsIC8vIE9sZCB2ZXJzaW9uOiBURVhUX0VSUk9SXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9udDogJ2JvbGQgMTBwdCBzYW5zLXNlcmlmJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLlNBTE1PTixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdyYXA6IGdvLlRleHRCbG9jay5XcmFwRml0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWRpdGFibGU6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaXNNdWx0aWxpbmU6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICcnLCBmdW5jdGlvbiAoZGF0YSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGEudmFsdWUgPT09IFZBTFVFX05BO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIHRoaXMuJChnby5QYW5lbCwgJ1ZlcnRpY2FsJywge1xuICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBuZXcgZ28uU3BvdCgwLCAwLjUsIDgsIDApLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICB0aGlzLiQoZ28uUGFuZWwsICdWZXJ0aWNhbCcsIHtcbiAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuUmlnaHQsXG4gICAgICAgICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDEsIDAuNSwgLTgsIDApLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAvLyBmb3VyIG5hbWVkIHBvcnRzLCBvbmUgb24gZWFjaCBzaWRlOlxuXG4gICAgICAgICAgICB0aGlzLm1ha2VQb3J0KCdUJywgZ28uU3BvdC5Ub3AsIGdvLlNwb3QuVG9wU2lkZSwgZmFsc2UsIHRydWUpLFxuICAgICAgICAgICAgdGhpcy5tYWtlUG9ydCgnTCcsIGdvLlNwb3QuTGVmdCwgZ28uU3BvdC5MZWZ0U2lkZSwgdHJ1ZSwgdHJ1ZSksXG4gICAgICAgICAgICB0aGlzLm1ha2VQb3J0KCdSJywgZ28uU3BvdC5SaWdodCwgZ28uU3BvdC5SaWdodFNpZGUsIHRydWUsIHRydWUpLFxuICAgICAgICAgICAgdGhpcy5tYWtlUG9ydCgnQicsIGdvLlNwb3QuQm90dG9tLCBnby5TcG90LkJvdHRvbVNpZGUsIHRydWUsIGZhbHNlKSxcbiAgICAgICAgKTtcbiAgICAgICAgdGhpcy5teURpYWdyYW0ubm9kZVRlbXBsYXRlTWFwLnNldChBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuREFUQV9CT1gsIG5vZGUpO1xuICAgIH1cblxuICAgIHNob3dQb2ludChsb2MpIHtcbiAgICAgICAgY29uc3QgZG9jTG9jID0gdGhpcy5teURpYWdyYW0udHJhbnNmb3JtRG9jVG9WaWV3KGxvYyk7XG4gICAgfVxuXG4gICAgbWFrZUVudGl0eVRlbXBsYXRlKFxuICAgICAgICBpY29uLFxuICAgICAgICB0aXRsZSxcbiAgICAgICAgc2l6ZTogeyB3OiBudW1iZXI7IGg6IG51bWJlciB9ID0geyB3OiBBdG9Hb2pzRWRpdG9yTW9kZWwuR1JJRF9TSVpFICogNSwgaDogQXRvR29qc0VkaXRvck1vZGVsLkdSSURfU0laRSAqIDUgfSxcbiAgICApIHtcbiAgICAgICAgY29uc3Qgc2VsZiA9IHRoaXM7XG4gICAgICAgIGxldCBub2RlID0gdGhpcy4kKFxuICAgICAgICAgICAgZ28uTm9kZSxcbiAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBsb2NhdGlvblNwb3Q6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgIG1vdXNlT3ZlcjogZnVuY3Rpb24gKGUsIG9iaikge1xuICAgICAgICAgICAgICAgICAgICAvLyBzZWxmLnNob3dQb2ludChvYmo/LnBhcnQ/LmxvY2F0aW9uKTtcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKG9iaj8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgb2JqPy5kYXRhPy5vblNlbGVjdGVkKG9iaj8uZGF0YSk7XG4gICAgICAgICAgICAgICAgICAgICAgICBzZWxmLm9uQ2xpY2tDb21wb2VudC5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZWZ0OiBlPy5bJ1dyJ10/LngsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9wOiBlPy5bJ1dyJ10/LnksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbm9kZTogbm9kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb21wb25lbnQ6IG9iaj8uZGF0YSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBzZWxlY3Rpb25DaGFuZ2VkOiAoZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAoIWUuaXNTZWxlY3RlZCAmJiBlPy5kYXRhPy5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBlPy5kYXRhPy5vblNlbGVjdGVkKG51bGwpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBzZWxlY3Rpb25BZG9ybm1lbnRUZW1wbGF0ZTogdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAgICAgICAgICAgICA/IG51bGxcbiAgICAgICAgICAgICAgICAgICAgOiB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgIGdvLkFkb3JubWVudCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgJ1Nwb3QnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaGFkb3dWaXNpYmxlOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2hhZG93Qmx1cjogNixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNoYWRvd09mZnNldDogbmV3IGdvLlBvaW50KDAsIDIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2hhZG93Q29sb3I6ICcjMDAwMDAwMjknLFxuICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwgeyBmaWxsOiBudWxsLCBzdHJva2U6ICdkb2RnZXJibHVlJywgc3Ryb2tlV2lkdGg6IDQgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uUGxhY2Vob2xkZXIsIHsgcGFkZGluZzogMyB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnSG9yaXpvbnRhbCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LlRvcFJpZ2h0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkJvdHRvbSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kOiAnd2hpdGUnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIG1vcmVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICF0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPyB0aGlzLmdlbmVyYXRlQWN0aW9uR3JvdXAoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuUk9fV0FURVJfVFJFQVRNRU5UXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0ubmFtZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLk5PREVfVEVNUExBVEVTW0F0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5DT09MSU5HX1RPV0VSXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLm5hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXS5pbmNsdWRlcyh0aXRsZSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPyBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuUkVOQU1FLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkZMT1dfREVUQUlMUyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5BU1NFVF9QQVJBTUVURVJTLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLk9VVEZMT1csXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuREVMRVRFLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOiBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuUkVOQU1FLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkRFVEFJTFMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuT1VURkxPVyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERUxFVEUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA6IHt9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgLy8gbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdtb3ZhYmxlJywgJ21vdmFibGUnKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzZWxlY3RhYmxlJywgJ3NlbGVjdGFibGUnKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShnby5Qb2ludC5zdHJpbmdpZnkpLFxuXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgIHsgd2lkdGg6IHNpemUudywgaGVpZ2h0OiBzaXplLmggfSxcbiAgICAgICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdSb3VuZGVkUmVjdGFuZ2xlJywge1xuICAgICAgICAgICAgICAgICAgICBmaWxsOiAnd2hpdGUnLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5MSU5LX1dBVEVSLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2VXaWR0aDogMSxcbiAgICAgICAgICAgICAgICAgICAgLy8gc3Ryb2tlRGFzaEFycmF5OiBbNSwgNV0sXG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBpY3R1cmUsIGljb24sIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJvdzogMSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICAgICAgICAgICAgICBkZXNpcmVkU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIHNpemUuaCAtIDUwKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIG1heFNpemU6IG5ldyBnby5TaXplKDYwLCA2MCksXG4gICAgICAgICAgICAgICAgICAgICAgICBpbWFnZVN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LlVuaWZvcm0sXG4gICAgICAgICAgICAgICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0OiB0aXRsZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigxMCwgMCwgMywgMCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWRpdGFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzaXJlZFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCAxNSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzAwMEQ0MicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9udDogJ2JvbGQgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyB3cmFwOiBnby5UZXh0QmxvY2suTm9uZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvdmVyZmxvdzogZ28uVGV4dEJsb2NrLk92ZXJmbG93RWxsaXBzaXMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnVG9vbFRpcCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHsgbWFyZ2luOiA0IH0sIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpLFxuICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2VkaXRhYmxlJywgJycsIChkYXRhKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICEoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5UWVBFX0NPTVBPTkVOVF9XQVRFUj8uaW5jbHVkZXMoZGF0YT8uc3lzdGVtVHlwZSkgJiZcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YT8udG9wb2xvZ3lUeXBlICE9PSBBVE9fRUNPTVBPTkVOVF9QTEFOVF9UWVBFLldBVEVSICYmXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGE/LnRvcG9sb2d5VHlwZSAhPT0gQVRPX0VDT01QT05FTlRfUExBTlRfVFlQRS5XQVRFUl9QTEFOVF9DRUxMXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICApLFxuXG4gICAgICAgICAgICB0aGlzLiQoZ28uUGFuZWwsICdWZXJ0aWNhbCcsIHtcbiAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgICAgICBhbGlnbm1lbnRGb2N1czogbmV3IGdvLlNwb3QoMCwgMC41LCA4LCAwKSxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVmVydGljYWwnLCB7XG4gICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LlJpZ2h0LFxuICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBuZXcgZ28uU3BvdCgxLCAwLjUsIC04LCAwKSxcbiAgICAgICAgICAgIH0pLFxuXG4gICAgICAgICAgICB0aGlzLm1ha2VQb3J0KCdUJywgZ28uU3BvdC5Ub3AsIGdvLlNwb3QuVG9wU2lkZSwgZmFsc2UsIHRydWUpLFxuICAgICAgICAgICAgdGhpcy5tYWtlUG9ydCgnTCcsIGdvLlNwb3QuTGVmdCwgZ28uU3BvdC5MZWZ0U2lkZSwgZmFsc2UsIHRydWUpLFxuICAgICAgICAgICAgdGhpcy5tYWtlUG9ydCgnUicsIGdvLlNwb3QuUmlnaHQsIGdvLlNwb3QuUmlnaHRTaWRlLCB0cnVlLCBmYWxzZSksXG4gICAgICAgICAgICB0aGlzLm1ha2VQb3J0KCdCJywgZ28uU3BvdC5Cb3R0b20sIGdvLlNwb3QuQm90dG9tU2lkZSwgdHJ1ZSwgZmFsc2UpLFxuICAgICAgICApO1xuICAgICAgICB0aGlzLm15RGlhZ3JhbS5ub2RlVGVtcGxhdGVNYXAuc2V0KHRpdGxlLCBub2RlKTtcbiAgICB9XG5cbiAgICBtYWtlRW50aXR5VGVtcGxhdGVFbmVyZ3koXG4gICAgICAgIGljb24sXG4gICAgICAgIHRpdGxlLFxuICAgICAgICBzaXplOiB7IHc6IG51bWJlcjsgaDogbnVtYmVyIH0gPSB7IHc6IEF0b0dvanNFZGl0b3JNb2RlbC5HUklEX1NJWkUgKiA1LCBoOiBBdG9Hb2pzRWRpdG9yTW9kZWwuR1JJRF9TSVpFICogNSB9LFxuICAgICkge1xuICAgICAgICBjb25zdCBzZWxmID0gdGhpcztcbiAgICAgICAgbGV0IG5vZGUgPSB0aGlzLiQoXG4gICAgICAgICAgICBnby5Ob2RlLFxuICAgICAgICAgICAgJ1Nwb3QnLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGxvY2F0aW9uU3BvdDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICAgICAgbW91c2VPdmVyOiBmdW5jdGlvbiAoZSwgb2JqKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIHNlbGYuc2hvd1BvaW50KG9iaj8ucGFydD8ubG9jYXRpb24pO1xuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgY2xpY2s6IChlLCBvYmo6IGFueSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAob2JqPy5kYXRhPy5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQob2JqPy5kYXRhKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgc2VsZWN0aW9uQ2hhbmdlZDogKGUpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCFlLmlzU2VsZWN0ZWQgJiYgZT8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgZT8uZGF0YT8ub25TZWxlY3RlZChudWxsKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgc2VsZWN0aW9uQWRvcm5tZW50VGVtcGxhdGU6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHlcbiAgICAgICAgICAgICAgICAgICAgPyBudWxsXG4gICAgICAgICAgICAgICAgICAgIDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICBnby5BZG9ybm1lbnQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2hhZG93VmlzaWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNoYWRvd0JsdXI6IDYsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaGFkb3dPZmZzZXQ6IG5ldyBnby5Qb2ludCgwLCAyKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNoYWRvd0NvbG9yOiAnIzAwMDAwMDI5JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsIHsgZmlsbDogbnVsbCwgc3Ryb2tlOiAnZG9kZ2VyYmx1ZScsIHN0cm9rZVdpZHRoOiA0IH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBsYWNlaG9sZGVyLCB7IHBhZGRpbmc6IDMgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ0hvcml6b250YWwnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5Ub3BSaWdodCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5Cb3R0b20sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmFja2dyb3VuZDogJ3doaXRlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBtb3JlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmdlbmVyYXRlQWN0aW9uR3JvdXAoW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuUkVOQU1FLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuREVUQUlMUyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLk9VVEZMT1csXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERUxFVEUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdtb3ZhYmxlJywgJ21vdmFibGUnKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzZWxlY3RhYmxlJywgJ3NlbGVjdGFibGUnKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShnby5Qb2ludC5zdHJpbmdpZnkpLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgICAgICB7IHdpZHRoOiBzaXplLncsIGhlaWdodDogc2l6ZS5oIH0sXG4gICAgICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnUm91bmRlZFJlY3RhbmdsZScsIHtcbiAgICAgICAgICAgICAgICAgICAgZmlsbDogJ3doaXRlJyxcbiAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuTElOS19XQVRFUixcbiAgICAgICAgICAgICAgICAgICAgLy8gc3Ryb2tlRGFzaEFycmF5OiBbNSwgNV0sXG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgdGl0bGUsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigzLCAzLCAxMCwgMyksXG4gICAgICAgICAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgMTUpLFxuICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAgICAgICAgICAgICAgICAgICBmb250OiAnbm9ybWFsIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnVG9vbFRpcCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHQ6IHRpdGxlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5QaWN0dXJlLCBpY29uLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICByb3c6IDEsXG4gICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgZGVzaXJlZFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCBzaXplLmggLSA2NSksXG4gICAgICAgICAgICAgICAgICAgICAgICBpbWFnZVN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LlVuaWZvcm0sXG4gICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigxMCwgMywgMywgMyksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWRpdGFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIDE1KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHJva2U6ICcjMkMyQzJDJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb250OiAnYm9sZCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHdyYXA6IGdvLlRleHRCbG9jay5Ob25lLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG92ZXJmbG93OiBnby5UZXh0QmxvY2suT3ZlcmZsb3dFbGxpcHNpcyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpLm1ha2VUd29XYXkoKSxcbiAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgKSxc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UsIHNpemU6IHsgdzogbnVtYmVyOyBoOiBudW1iZXIgfSA9IHsgdzogMjYwLCBoOiBBdG9Hb2pzRWRpdG9yTW9kZWwuUExBTlRfQ0VMTF9IRUlHSFQgfSkge1xuICAgICAgICBjb25zdCBzZWxmID0gdGhpcztcbiAgICAgICAgbGV0IG5vZGUgPSB0aGlzLiQoXG4gICAgICAgICAgICBnby5Hcm91cCxcbiAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBsb2NhdGlvblNwb3Q6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgIG1vdXNlT3ZlcjogZnVuY3Rpb24gKGUsIG9iaikge1xuICAgICAgICAgICAgICAgICAgICAvLyBzZWxmLnNob3dQb2ludChvYmo/LnBhcnQ/LmxvY2F0aW9uKTtcbiAgICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgICAgbW91c2VFbnRlcjogKGUsIG9iaikgPT4ge1xuICAgICAgICAgICAgICAgICAgICAvLyBzZWxmLm9uSG92ZXJBbGVydC5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgLy8gICAgIGxlZnQ6IGU/LlsnV3InXT8ueCArIDgsXG4gICAgICAgICAgICAgICAgICAgIC8vICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgICAgICAgICAgICAgLy8gICAgIG1lc3NhZ2VBbGVydDogKG9iaiBhcyBhbnkpLnBhcnQ/Lm9iPy5tZXNzYWdlQWxlcnQsXG4gICAgICAgICAgICAgICAgICAgIC8vIH0pO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBub2RlID0gb2JqLnBhcnQ7XG4gICAgICAgICAgICAgICAgICAgIHNlbGYub25Ib3ZlckluZm9CdXR0b24uZW1pdCh7XG4gICAgICAgICAgICAgICAgICAgICAgICBsZWZ0OiBlPy5bJ1dyJ10/LnggKyA4LFxuICAgICAgICAgICAgICAgICAgICAgICAgdG9wOiBlPy5bJ1dyJ10/LnksXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlOiBub2RlLFxuICAgICAgICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgICAgICAgICBsZXQgc2hhcGUgPSAobm9kZSBhcyBhbnkpPy5maW5kT2JqZWN0KCdTSEFQRV9LRVknKTsgLy8gVGhheSAnU0hBUEVfS0VZJyBi4bqxbmcga2jDs2EgYuG6oW4gxJHhurd0IGNobyBow6xuaCBTaGFwZVxuICAgICAgICAgICAgICAgICAgICAvLyBkZWJ1Z2dlcjtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHNoYXBlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBzaGFwZS5zdHJva2UgPSAnYmx1ZSc7IC8vIFRoYXkgxJHhu5VpIG3DoHUgc3Ryb2tlIHRow6BuaCBibHVlXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIG1vdXNlTGVhdmU6IChlLCBvYmopID0+IHtcbiAgICAgICAgICAgICAgICAgICAgc2VsZi5vbkhvdmVySW5mb0J1dHRvbi5lbWl0KG51bGwpO1xuICAgICAgICAgICAgICAgICAgICAvLyBzZWxmLm9uSG92ZXJBbGVydC5lbWl0KG51bGwpO1xuICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICBjbGljazogKGUsIG9iajogYW55KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG9iaj8uZGF0YT8ub25TZWxlY3RlZChvYmo/LmRhdGEpO1xuICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5vbkNsaWNrQ29tcG9lbnQuZW1pdCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGVmdDogZT8uWydXciddPy54LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5vZGU6IG5vZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29tcG9uZW50OiBvYmo/LmRhdGEsXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICBkb3VibGVDbGljazogKGUsIG9iajogYW55KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmICghdGhpcy5faW5pdGlhbE9wdGlvbnM/LmlzUmVhZE9ubHkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IG5vZGUgPSBvYmoucGFydDtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuaXNTaG93Tm9kZUluZm9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA/IHNlbGYub25Eb3VibGVDbGlja05vZGUuZW1pdCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGVmdDogZT8uWydXciddPy54LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5vZGU6IG5vZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogbnVsbDtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICAvLyBUb2RvXG5cbiAgICAgICAgICAgICAgICBzZWxlY3Rpb25DaGFuZ2VkOiAoZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAoIWUuaXNTZWxlY3RlZCAmJiBlPy5kYXRhPy5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBlPy5kYXRhPy5vblNlbGVjdGVkKG51bGwpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgICAgIHNlbGVjdGlvbkFkb3JubWVudFRlbXBsYXRlOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5XG4gICAgICAgICAgICAgICAgICAgID8gbnVsbFxuICAgICAgICAgICAgICAgICAgICA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uQWRvcm5tZW50LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAnU3BvdCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNoYWRvd1Zpc2libGU6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaGFkb3dCbHVyOiA2LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2hhZG93T2Zmc2V0OiBuZXcgZ28uUG9pbnQoMCwgMiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaGFkb3dDb2xvcjogJyMwMDAwMDAyOScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyB3aWR0aDogMTcwIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsIHsgZmlsbDogbnVsbCwgc3Ryb2tlOiAnZG9kZ2VyYmx1ZScsIHN0cm9rZVdpZHRoOiA0IH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBsYWNlaG9sZGVyLCB7IHBhZGRpbmc6IDMgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ0hvcml6b250YWwnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyBhbGlnbm1lbnQ6IGdvLlNwb3QuVG9wUmlnaHQsIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkJvdHRvbSB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gbW9yZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5nZW5lcmF0ZUFjdGlvbkdyb3VwKFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLlJFTkFNRSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkNIQU5HRV9JQ09OLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuT05MWV9ERVRBSUxTLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLk9VVEZMT1csXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkRFTEVURSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICdpc05vdEFjdGlvbicsICh4KSA9PiAheCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICksXG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAnSG9yaXpvbnRhbCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgIHsgYWxpZ25tZW50OiBnby5TcG90LlRvcFJpZ2h0LCBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5Cb3R0b20gfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgdGhpcy5nZW5lcmF0ZUFjdGlvbkdyb3VwKFtEZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuT05MWV9ERVRBSUxTXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJycsICh4KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICByZXR1cm4geD8uaXNPbmx5RGV0YWlscyAmJiAheD8uaXNOb3RBY3Rpb24gPyB0cnVlIDogZmFsc2U7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICksXG4gICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoZ28uUG9pbnQuc3RyaW5naWZ5KSxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgeyB3aWR0aDogc2l6ZS53LCBoZWlnaHQ6IHNpemUuaCB9LFxuICAgICAgICAgICAgICAgIC8vIHRoaXMuJChnby5TaGFwZSwgJ1JvdW5kZWRSZWN0YW5nbGUnLCB7XG4gICAgICAgICAgICAgICAgLy8gICAgIGZpbGw6ICd3aGl0ZScsXG4gICAgICAgICAgICAgICAgLy8gICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkxJTktfV0FURVIsXG4gICAgICAgICAgICAgICAgLy8gICAgIC8vIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgICAgICAgICAgICAgIC8vIH0pLFxuICAgICAgICAgICAgICAgIC8vIHRoaXMuJChnby5QbGFjZWhvbGRlciwgeyBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDApLCB2aXNpYmxlOiBmYWxzZSB9KSxcbiAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCA1MCwgMCwgNTApLFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdSb3VuZGVkUmVjdGFuZ2xlJywge1xuICAgICAgICAgICAgICAgICAgICAgICAgZmlsbDogJ3doaXRlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkxJTktfV0FURVIsXG4gICAgICAgICAgICAgICAgICAgICAgICBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHRpdGxlLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigzLCAwLCAxMCwgMCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzaXJlZFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCAxNSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9udDogJ25vcm1hbCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0OiB0aXRsZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvLlBpY3R1cmUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWNvbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvdzogMSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzaXJlZFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCBzaXplLmggLSA2NSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGltYWdlU3RyZXRjaDogZ28uR3JhcGhPYmplY3QuVW5pZm9ybSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnc291cmNlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ3BhdGhJbWFnZScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICh4KSA9PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeCA/PyBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlBMQU5UX0NFTExdLmljb24sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMTAsIDAsIDMsIDApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlZGl0YWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzaXJlZFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCAxNSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogJyMyQzJDMkMnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb250OiAnYm9sZCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gd3JhcDogZ28uVGV4dEJsb2NrLk5vbmUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG92ZXJmbG93OiBnby5UZXh0QmxvY2suT3ZlcmZsb3dFbGxpcHNpcyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpLm1ha2VUd29XYXkoKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICA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gICB0aXRsZSxcbiAgICAgICAgc2l6ZTogeyB3OiBudW1iZXI7IGg6IG51bWJlciB9ID0geyB3OiBBdG9Hb2pzRWRpdG9yTW9kZWwuR1JJRF9TSVpFICogNSwgaDogQXRvR29qc0VkaXRvck1vZGVsLkdSSURfU0laRSAqIDUgfSxcbiAgICApIHtcbiAgICAgICAgY29uc3Qgc2VsZiA9IHRoaXM7XG4gICAgICAgIGxldCBub2RlID0gdGhpcy4kKFxuICAgICAgICAgICAgZ28uTm9kZSxcbiAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBsb2NhdGlvblNwb3Q6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgIG1vdXNlT3ZlcjogZnVuY3Rpb24gKGUsIG9iaikge1xuICAgICAgICAgICAgICAgICAgICAvLyBzZWxmLnNob3dQb2ludChvYmo/LnBhcnQ/LmxvY2F0aW9uKTtcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKG9iaj8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgb2JqPy5kYXRhPy5vblNlbGVjdGVkKG9iaj8uZGF0YSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHNlbGVjdGlvbkNoYW5nZWQ6IChlKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmICghZS5pc1NlbGVjdGVkICYmIGU/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGU/LmRhdGE/Lm9uU2VsZWN0ZWQobnVsbCk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHNlbGVjdGlvbkFkb3JubWVudFRlbXBsYXRlOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5XG4gICAgICAgICAgICAgICAgICAgID8gbnVsbFxuICAgICAgICAgICAgICAgICAgICA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uQWRvcm5tZW50LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAnU3BvdCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCB7IGZpbGw6IG51bGwsIHN0cm9rZTogJ2RvZGdlcmJsdWUnLCBzdHJva2VXaWR0aDogNCB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5QbGFjZWhvbGRlciwgeyBwYWRkaW5nOiAzIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdIb3Jpem9udGFsJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsgYWxpZ25tZW50OiBnby5TcG90LlRvcFJpZ2h0LCBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5Cb3R0b20gfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZ2VuZXJhdGVBY3Rpb25Hcm91cChbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5SRU5BTUUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERVRBSUxTLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuT1VURkxPVyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkRFTEVURSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgLy8gbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdtb3ZhYmxlJywgJ21vdmFibGUnKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzZWxlY3RhYmxlJywgJ3NlbGVjdGFibGUnKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShnby5Qb2ludC5zdHJpbmdpZnkpLFxuXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgIHsgd2lkdGg6IHNpemUudywgaGVpZ2h0OiBzaXplLmggfSxcbiAgICAgICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdSb3VuZGVkUmVjdGFuZ2xlJywge1xuICAgICAgICAgICAgICAgICAgICBmaWxsOiAnd2hpdGUnLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5MSU5LX1dBVEVSLFxuICAgICAgICAgICAgICAgICAgICAvLyBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgICAgICAgICAgICAvLyB0aGlzLiQoZ28uVGV4dEJsb2NrLCB0aXRsZSwge1xuICAgICAgICAgICAgICAgICAgICAvLyAgICAgcm93OiAwLFxuICAgICAgICAgICAgICAgICAgICAvLyAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDMsIDMsIDEwLCAzKSxcbiAgICAgICAgICAgICAgICAgICAgLy8gICAgIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCBOYU4pLFxuICAgICAgICAgICAgICAgICAgICAvLyAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAgICAgICAgICAgICAgIC8vICAgICBmb250OiAnbm9ybWFsIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICAgICAgICAvLyAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICAgICAgLy8gfSksXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5QaWN0dXJlLCBpY29uLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICByb3c6IDEsXG4gICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgZGVzaXJlZFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCBzaXplLmggLSA1MCksXG4gICAgICAgICAgICAgICAgICAgICAgICBpbWFnZVN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LlVuaWZvcm0sXG4gICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigxMCwgMCwgMywgMCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWRpdGFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzaXJlZFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCAxNSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzAwMEQ0MicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9udDogJ2JvbGQgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyB3cmFwOiBnby5UZXh0QmxvY2suTm9uZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvdmVyZmxvdzogZ28uVGV4dEJsb2NrLk92ZXJmbG93RWxsaXBzaXMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnVG9vbFRpcCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpLm1ha2VUd29XYXkoKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgLy8gZGVmaW5lIGEgdG9vbHRpcCBmb3IgZWFjaCBub2RlIHRoYXQgZGlzcGxheXMgdGhlIGNvbG9yIGFzIHRleHRcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgeyBtYXJnaW46IDQgfSwgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICApLCAvLyBlbmQgb2YgQWRvcm5tZW50XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyB9LFxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICApLFxuICAgICAgICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVmVydGljYWwnLCB7XG4gICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAgICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDAsIDAuNSwgOCwgMCksXG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIHRoaXMuJChnby5QYW5lbCwgJ1ZlcnRpY2FsJywge1xuICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5SaWdodCxcbiAg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C8vIG1vZGVsLmFkZExpbmtEYXRhKGxpbmtkYXRhKTtcbiAgICAgICAgLy8gZGlhZ3JhbS5zZWxlY3QobmV3bm9kZSk7XG5cbiAgICAgICAgLy8gbmV3bm9kZS5sb2NhdGlvbiA9IG5ldyBnby5Qb2ludChmcm9tbm9kZS5sb2NhdGlvbi54ICsgMjAwLCBmcm9tbm9kZS5sb2NhdGlvbi55KTtcbiAgICAgICAgLy8gZS5kaWFncmFtLmNvbW1pdFRyYW5zYWN0aW9uKCdDcmVhdGUgTm9kZSBhbmQgTGluaycpO1xuICAgIH1cblxuICAgIGdlbmVyYXRlQWN0aW9uR3JvdXAoYWN0aW9uczogQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TW10pIHtcbiAgICAgICAgY29uc3Qgc2VsZiA9IHRoaXM7XG4gICAgICAgIHJldHVybiB0aGlzLiQoXG4gICAgICAgICAgICAnQnV0dG9uJyxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBjbGljazogZnVuY3Rpb24gKGUsIG9iaikge1xuICAgICAgICAgICAgICAgICAgICBzZWxmLm9wZW5BY3Rpb25NZW51KCk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGZpbHRlcmVkQWN0aW9ucyA9IF8uZmlsdGVyKG9iai5wYXJ0Py5bJ29iJ10/LmFjdGlvbnMgPz8gYWN0aW9ucywgKGFjdGlvbikgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gRmlsdGVyIEluc2lnaHQgYnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoYWN0aW9uID09PSBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuSU5TSUdIVCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAhIW9iai5wYXJ0Py5bJ29iJ10/LmlkO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFjdGlvbiA9PT0gQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLlJFTkFNRSAmJlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9iai5wYXJ0Py5bJ29iJ10/LnR5cGUgIT09IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5URVhUX05PREUgJiZcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuVFlQRV9DT01QT05FTlRfV0FURVI/LmluY2x1ZGVzKG9iai5wYXJ0Py5bJ29iJ10/LnN5c3RlbVR5cGUpICYmXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb2JqLnBhcnQ/Llsnb2InXT8udG9wb2xvZ3lUeXBlICE9PSBBVE9fRUNPTVBPTkVOVF9QTEFOVF9UWVBFLldBVEVSICYmXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb2JqLnBhcnQ/Llsnb2InXT8udG9wb2xvZ3lUeXBlICE9PSBBVE9fRUNPTVBPTkVOVF9QTEFOVF9UWVBFLldBVEVSX1BMQU5UX0NFTExcbiAgICAgICAgICAgICAgICAgICAgICAgICkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChhY3Rpb24gPT09IEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5PVVRGTE9XICYmXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5wbGFudFNhdHVzID09PSBBVE9fRVBsYW50VHlwZS5CQVNJQ19QTEFOVCAmJiBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvYmoucGFydD8uZGF0YT8udHlwZSA9PT0gQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlRFWFRfTk9ERVxuICAgICAgICAgICAgICAgICAgICAgICAgKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICAgICAgICAgICAgICB9KS5tYXAoKGUpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBBVE9fRUNPTVBPTkVOVF9QTEFOVF9UWVBFLlNURUFNID09PSBvYmoucGFydD8uWydvYiddPy50b3BvbG9neVR5cGUgJiZcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBlID09PSBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuSU5TSUdIVFxuICAgICAgICAgICAgICAgICAgICAgICAgKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5EQVRBX01BUFBJTkc7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBlID09PSBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuRkxPV19ERVRBSUxTICYmXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb2JqPy5wYXJ0Py5bJ29iJ10/LnN5c3RlbVR5cGUgPT09IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RZUEVTLkNPT0xJTkdfVE9XRVJcbiAgICAgICAgICAgICAgICAgICAgICAgICkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuRkxPV19ERVRBSUxTX0FORF9XSVpBUkQ7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZTtcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIHNlbGYuYWN0aW9ucyA9IGZpbHRlcmVkQWN0aW9ucy5tYXAoKGFjdGlvbikgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IG9uQ2xpY2tGbiA9ICgpID0+IHt9O1xuICAgICAgICAgICAgICAgICAgICAgICAgc3dpdGNoIChhY3Rpb24pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5JTlNJR0hUOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkRBVEFfTUFQUElORzpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb25DbGlja0ZuID0gKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5vbk9wZW5JbnNpZ2h0TWFwcGluZy5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBub2RlOiBvYmoucGFydCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERVRBSUxTOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkZMT1dfREVUQUlMUzpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5GTE9XX0RFVEFJTFNfQU5EX1dJWkFSRDpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb25DbGlja0ZuID0gKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5vbk9wZW5EZXRhaWwuZW1pdCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbm9kZTogb2JqLnBhcnQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuT05MWV9ERVRBSUxTOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbkNsaWNrRm4gPSAoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLm9uT3BlbkRldGFpbC5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBub2RlOiBvYmoucGFydCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5BU1NFVF9QQVJBTUVURVJTOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbkNsaWNrRm4gPSAoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLm9uT3BlbkFzc2V0UGFyYW1ldGVyLmVtaXQoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5vZGU6IG9iai5wYXJ0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLlJFTkFNRTpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb25DbGlja0ZuID0gKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9iai5wYXJ0Py5kYXRhPy50eXBlID09PSBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuVEVYVF9OT0RFKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5vblJlbmFtZS5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGVmdDogZT8uWydXciddPy54IC0gNTAsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuLi5vYmoucGFydD8uZGF0YSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIExheW91dFNlcnZpY2Uuc2V0VG9vbFRpcENvbXBvbmVudERhdGFTdGF0aWMoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICBjb21wb25lbnQ6IFJlbmFtZUJveENvbXBvbmVudCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgZGF0YToge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgbGVmdDogZT8uWydXciddPy54IC0gNTAsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgIC4uLm9iai5wYXJ0Py5kYXRhLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLmVkaXRUZXh0KGUsIG9iaik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLk9VVEZMT1c6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2xpY2tGbiA9ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYuY2xpY2tOZXdOb2RlKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXy5tZXJnZShvYmosIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWN0aW9uTW92ZTogc2VsZi5kcmFnTmV3Tm9kZSwgLy8gZGVmaW5lZCBiZWxvdywgdG8gc3VwcG9ydCBkcmFnZ2luZyBmcm9tIHRoZSBidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2RyYWdEYXRhOntcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC4uLntcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5URVhUX05PREUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuYW1lOiBgJHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuQUNUSU9OX1JJR0hUX01FTlVfR1JPVVAuREFUQV9CT1hcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1fJHttb21lbnQoKS52YWx1ZU9mKCl9YCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbG9yOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuQkxVRSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSwgXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC4uLnNlbGYuc2V0UHJvRk9yTmV3Tm9kZShzZWxmKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERUxFVEU6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2xpY2tGbiA9ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYuZGVsZXRlTm9kZShlKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuQ0hBTkdFX0lDT046XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2xpY2tGbiA9ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYub25PcGVuQ2hhbmdlSWNvbi5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBub2RlOiBvYmoucGFydCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLi4uQXRvRGVmYXVsdEdvanNFZGl0b3IuQUNUSU9OU1thY3Rpb25dLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2xpY2s6ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb25DbGlja0ZuKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgJ0J1dHRvbkJvcmRlci5zdHJva2VXaWR0aCc6IDAsXG4gICAgICAgICAgICAgICAgJ0J1dHRvbkJvcmRlci5maWxsJzogJ3doaXRlJyxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAvLyBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICdpc05vdERyYWdOZXdOb2RlJywgKHgpID0+ICF4KSxcbiAgICAgICAgICAgIC8vIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJ2lzTm90RGVsZXRlJywgKHgpID0+ICF4KSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJ2lzTm90QWN0aW9uJywgKHgpID0+ICF4KSxcbiAgICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHtcbiAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgdGV4dDogJ1xcdWU0ODknLFxuICAgICAgICAgICAgICAgIGZvbnQ6ICcyMHB4IFwiRm9udCBBd2Vzb21lIDYgUHJvXCInLFxuICAgICAgICAgICAgICAgIGN1cnNvcjogJ3BvaW50ZXInLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgYXN5bmMgc2V0UHJvRk9yTmV3Tm9kZShzZWxmKSB7XG4gICAgICAgIGlmIChzZWxmLnBsYW50U2F0dXMgPT09IEFUT19FUGxhbnRUeXBlLkJBU0lDX1BMQU5UKSB7XG4gICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgIG1vdmFibGU6IGZhbHNlLFxuICAgICAgICAgICAgICAgIGlzTm90QWxsb3dDb25uZWN0OiB0cnVlLFxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiB7fTtcbiAgICB9XG5cbiAgICBhc3luYyBjbGlja05ld05vZGUoZSwgYnV0dG9uKSB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ESVNUQU5DRV8yX09VVFBVVCArIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkRJU1RBTkNFXzJfT1VUUFVUIC8gMiAmJlxuICAgICAgICAgICAgICAgICAgICB4ID4gaSAqIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkRJU1RBTkNFXzJfT1VUUFVUIC0gQXRvRGVmYXVsdEdvanNFZGl0b3IuRElTVEFOQ0VfMl9PVVRQVVQgLyAyLFxuICAgICAgICAgICAgKVxuICAgICAgICApIHtcbiAgICAgICAgICAgIHJldHVybiBpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChcbiAgICAgICAgICAgICFfLnNvbWUoXG4gICAgICAgICAgICAgICAgbG9jWUFscmVhZHlFeGlzdCxcbiAgICAgICAgICAgICAgICAoeCkgPT5cbiAgICAgICAgICAgICAgICAgICAgeCA8IC1pICogQXRvRGVmYXVsdEdvanNFZGl0b3IuRElTVEFOQ0VfMl9PVVRQVVQgKyBBdG9EZWZhdWx0R29qc0VkaXRvci5ESVNUQU5DRV8yX09VVFBVVCAvIDIgJiZcbiAgICAgICAgICAgICAgICAgICAgeCA+IC1pICogQXRvRGVmYXVsdEdvanNFZGl0b3IuRElTVEFOQ0VfMl9PVVRQVVQgLSBBdG9EZWZhdWx0R29qc0VkaXRvci5ESVNUQU5DRV8yX09VVFBVVCAvIDIsXG4gICAgICAgICAgICApXG4gICAgICAgICkge1xuICAgICAgICAgICAgcmV0dXJuIC1pO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBudWxsO1xuICAgIH1cblxuICAgIGNyZWF0ZU5ld05vZGUobmV3bm9kZSkge1xuICAgICAgICB0aGlzLmFkZFRlbXBsYXRlKG5ld25vZGUpO1xuICAgICAgICB0aGlzLm15RGlhZ3JhbS5zdGFydFRyYW5zYWN0aW9uKCdhZGQgZ3JvdXAgbm9kZScpO1xuICAgICAgICB0aGlzLm15RGlhZ3JhbS5tb2RlbC5hZGROb2RlRGF0YShuZXdub2RlKTtcbiAgICAgICAgdG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cXVhbHMoZ28uU3BvdC5Cb3R0b20pO1xuICAgICAgICByZXR1cm4gdGhpcy4kKFxuICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGJhY2tncm91bmQ6ICcjOTE5Q0E1JyxcbiAgICAgICAgICAgICAgICB3aWR0aDogNDAsXG4gICAgICAgICAgICAgICAgaGVpZ2h0OiA0MCxcbiAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGFsaWduLFxuICAgICAgICAgICAgICAgIHN0cmV0Y2g6IGhvcml6b250YWwgPyBnby5HcmFwaE9iamVjdC5Ib3Jpem9udGFsIDogZ28uR3JhcGhPYmplY3QuVmVydGljYWwsXG4gICAgICAgICAgICAgICAgcG9ydElkOiBuYW1lLFxuICAgICAgICAgICAgICAgIGZyb21TcG90OiBzcG90LFxuICAgICAgICAgICAgICAgIGZyb21MaW5rYWJsZTogb3V0cHV0LFxuICAgICAgICAgICAgICAgIHRvU3BvdDogc3BvdCxcbiAgICAgICAgICAgICAgICB0b0xpbmthYmxlOiBpbnB1dCxcbiAgICAgICAgICAgICAgICBjdXJzb3I6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHkgPyAnJyA6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5DZW50ZXIsIC8vIHThuq1wIHRydW5nIHbDoG8gdHJ1bmcgdMOibSBj4bunYSBQYW5lbFxuICAgICAgICAgICAgICAgIC8vIG1vdXNlRW50ZXI6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHlcbiAgICAgICAgICAgICAgICAvLyAgICAgPyBudWxsXG4gICAgICAgICAgICAgICAgLy8gICAgIDogKGUsIHBhbmVsKSA9PiB7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgIGNvbnN0IHRleHRCbG9jayA9IChwYW5lbCBhcyBhbnkpPy5maW5kT2JqZWN0KCd0ZXh0QmxvY2snKSBhcyBnby5UZXh0QmxvY2sgfCBudWxsO1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICBpZiAodGV4dEJsb2NrKSB7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAvLyAmJiBvdXRwdXRcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgIHRleHRCbG9jay52aXNpYmxlID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgIHN3aXRjaCAobmFtZSkge1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgIGNhc2UgJ0InOlxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgIGNhc2UgJ1InOiB7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAgIHBhbmVsLmJhY2tncm91bmQgPSAncmdiKDI0MyAxNDQgMTcxKSc7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICBjYXNlICdUJzpcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICBjYXNlICdMJzoge1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgICBwYW5lbC5iYWNrZ3JvdW5kID0gJ3JnYigxMDMsMTUxLDIwNyknO1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgZGVmYXVsdDoge1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgICBwYW5lbC5iYWNrZ3JvdW5kID0gJ3JnYigyNDMgMTQ0IDE3MSknO1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIC8vICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICAvLyBtb3VzZUxlYXZlOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5XG4gICAgICAgICAgICAgICAgLy8gICAgID8gbnVsbFxuICAgICAgICAgICAgICAgIC8vICAgICA6IChlLCBwYW5lbCkgPT4ge1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICBjb25zdCB0ZXh0QmxvY2sgPSAocGFuZWwgYXMgYW55KS5maW5kT2JqZWN0KCd0ZXh0QmxvY2snKSBhcyBnby5UZXh0QmxvY2sgfCBudWxsO1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICBpZiAodGV4dEJsb2NrKSB7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICB0ZXh0QmxvY2sudmlzaWJsZSA9IGZhbHNlOyAvLyDhuqhuIFRleHRCbG9jayBraGkgcuG7nWkga2jhu49pIFBhbmVsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgcGFuZWwuYmFja2dyb3VuZCA9ICd0cmFuc3BhcmVudCc7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgfSxcbiAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ0VsbGlwc2UnLCB7XG4gICAgICAgICAgICAgICAgZmlsbDogJ3doaXRlJywgLy8gQmFja2dyb3VuZCBjb2xvciBvZiB0aGUgY2lyY2xlXG4gICAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDIsXG4gICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzkxOUNBNScsIC8vIEJvcmRlciBjb2xvciBvZiB0aGUgY2lyY2xlXG4gICAgICAgICAgICAgICAgd2lkdGg6IDQwLCAvLyBNYXRjaCB0aGUgcGFuZWwncyB3aWR0aFxuICAgICAgICAgICAgICAgIGhlaWdodDogNDAsIC8vIE1hdGNoIHRoZSBwYW5lbCdzIGhlaWdodFxuICAgICAgICAgICAgfSksXG5cbiAgICAgICAgICAgIC8vIHRoaXMuJChcbiAgICAgICAgICAgIC8vICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAvLyAgICAge1xuICAgICAgICAgICAgLy8gICAgICAgICBuYW1lOiAndGV4dEJsb2NrJyxcbiAgICAgICAgICAgIC8vICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgLy8gICAgICAgICB0ZXh0OiAnXFx1ZjBkYScsIC8vIE3DoyBVbmljb2RlIHTGsMahbmcg4bupbmcgduG7m2kgZmEtY2FyZXQtbGVmdFxuICAgICAgICAgICAgLy8gICAgICAgICBmb250OiAnOTAwIDEycHggXCJGb250IEF3ZXNvbWUgNiBQcm9cIicsXG4gICAgICAgICAgICAvLyAgICAgICAgIHN0cm9rZTogJ3doaXRlJywgLy8gxJDhurd0IG3DoHUgY2jhu68gdGjDoG5oIG3DoHUgdHLhuq9uZ1xuICAgICAgICAgICAgLy8gICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICAgIC8vICAgICAgICAgdmlzaWJsZTogZmFsc2UsXG4gICAgICAgICAgICAvLyAgICAgfSxcbiAgICAgICAgICAgIC8vICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJywgKF8pID0+IHtcbiAgICAgICAgICAgIC8vICAgICAgICAgc3dpdGNoIChuYW1lKSB7XG4gICAgICAgICAgICAvLyAgICAgICAgICAgICBjYXNlICdUJzpcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIGNhc2UgJ0InOiB7XG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgcmV0dXJuICdcXHVmMGQ3JztcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIGNhc2UgJ0wnOlxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgY2FzZSAnUic6IHtcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICByZXR1cm4gJ1xcdWYwZGEnO1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgfVxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgZGVmYXVsdDoge1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgIHJldHVybiAnXFx1ZjBkNyc7XG4gICAgICAgICAgICAvLyAgICAgICAgICAgICB9XG4gICAgICAgICAgICAvLyAgICAgICAgIH1cbiAgICAgICAgICAgIC8vICAgICB9KSxcbiAgICAgICAgICAgIC8vICksXG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgbWFrZVBvcnQobmFtZSwgYWxpZ24sIHNwb3QsIG91dHB1dCwgaW5wdXQpIHtcbiAgICAgICAgLy8gaWYgKHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHkpIHtcbiAgICAgICAgLy8gICAgIHJldHVybiB7fTtcbiAgICAgICAgLy8gfVxuICAgICAgICBjb25zdCBob3Jpem9udGFsID0gYWxpZ24uZXF1YWxzKGdvLlNwb3QuVG9wKSB8fCBhbGlnbi5lcXVhbHMoZ28uU3BvdC5Cb3R0b20pO1xuICAgICAgICAvLyBjb25zdCB2ZXJ0aWNhbCA9IGFsaWduLmVxdWFscyhnby5TcG90LkxlZnQpIHx8IGFsaWduLmVxdWFscyhnby5TcG90LlJpZ2h0KTtcbiAgICAgICAgLy8gdGhlIHBvcnQgaXMgYmFzaWNhbGx5IGp1c3QgYSB0cmFuc3BhcmVudCByZWN0YW5nbGUgdGhhdCBzdHJldGNoZXMgYWxvbmcgdGhlIHNpZGUgb2YgdGhlIG5vZGUsXG4gICAgICAgIC8vIGFuZCBiZWNvbWVzIGNvbG9yZWQgd2hlbiB0aGUgbW91c2UgcGFzc2VzIG92ZXIgaXRcbiAgICAgICAgcmV0dXJuIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICAgICAgICAgIHdpZHRoOiBob3Jpem9udGFsID8gTmFOIDogOCxcbiAgICAgICAgICAgICAgICBoZWlnaHQ6ICFob3Jpem9udGFsID8gTmFOIDogOCxcbiAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGFsaWduLFxuICAgICAgICAgICAgICAgIHN0cmV0Y2g6IGhvcml6b250YWwgPyBnby5HcmFwaE9iamVjdC5Ib3Jpem9udGFsIDogZ28uR3JhcGhPYmplY3QuVmVydGljYWwsXG4gICAgICAgICAgICAgICAgcG9ydElkOiBuYW1lLFxuICAgICAgICAgICAgICAgIGZyb21TcG90OiBzcG90LFxuICAgICAgICAgICAgICAgIGZyb21MaW5rYWJsZTogb3V0cHV0LFxuICAgICAgICAgICAgICAgIHRvU3BvdDogc3BvdCxcbiAgICAgICAgICAgICAgICB0b0xpbmthYmxlOiBpbnB1dCxcbiAgICAgICAgICAgICAgICBjdXJzb3I6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHkgPyAnJyA6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5DZW50ZXIsIC8vIHThuq1wIHRydW5nIHbDoG8gdHJ1bmcgdMOibSBj4bunYSBQYW5lbFxuICAgICAgICAgICAgICAgIG1vdXNlRW50ZXI6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHlcbiAgICAgICAgICAgICAgICAgICAgPyBudWxsXG4gICAgICAgICAgICAgICAgICAgIDogKGUsIHBhbmVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHRleHRCbG9jayA9IChwYW5lbCBhcyBhbnkpPy5maW5kT2JqZWN0KCd0ZXh0QmxvY2snKSBhcyBnby5UZXh0QmxvY2sgfCBudWxsO1xuICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAodGV4dEJsb2NrKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAmJiBvdXRwdXRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHRCbG9jay52aXNpYmxlID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN3aXRjaCAobmFtZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgJ0InOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgJ1InOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBhbmVsLmJhY2tncm91bmQgPSAncmdiKDI0MyAxNDQgMTcxKSc7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlICdUJzpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlICdMJzoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYW5lbC5iYWNrZ3JvdW5kID0gJ3JnYigxMDMsMTUxLDIwNyknO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVmYXVsdDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYW5lbC5iYWNrZ3JvdW5kID0gJ3JnYigyNDMgMTQ0IDE3MSknO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgICAgICBtb3VzZUxlYXZlOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5XG4gICAgICAgICAgICAgICAgICAgID8gbnVsbFxuICAgICAgICAgICAgICAgICAgICA6IChlLCBwYW5lbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCB0ZXh0QmxvY2sgPSAocGFuZWwgYXMgYW55KS5maW5kT2JqZWN0KCd0ZXh0QmxvY2snKSBhcyBnby5UZXh0QmxvY2sgfCBudWxsO1xuICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAodGV4dEJsb2NrKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QmxvY2sudmlzaWJsZSA9IGZhbHNlOyAvLyDhuqhuIFRleHRCbG9jayBraGkgcuG7nWkga2jhu49pIFBhbmVsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgcGFuZWwuYmFja2dyb3VuZCA9ICd0cmFuc3BhcmVudCc7XG4gICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJycsIGZ1bmN0aW9uIChkYXRhKSB7XG4gICAgICAgICAgICAgICAgaWYgKGRhdGE/LmlzTm90QWxsb3dDb25uZWN0KSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgaWYgKGRhdGE/LnNlbGVjdGFibGUgPT09IGZhbHNlICYmICFkYXRhPy5pc0FsbG93Q29ubmVjdCkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmIChkYXRhPy5mbG93T2ZQbGFudENlbGwpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGRhdGE/LmZsb3dPZlBsYW50Q2VsbCA9PT0gQVRPX0VOVU1fRkxPV19ESVJFQ1RJT04uSU5GTE9XICYmIG5hbWUgPT09ICdMJykge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgaWYgKGRhdGE/LmZsb3dPZlBsYW50Q2VsbCA9PT0gQVRPX0VOVU1fRkxPV19ESVJFQ1RJT04uT1VURkxPVyAmJiBuYW1lID09PSAnUicpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgc3dpdGNoIChuYW1lKSB7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgJ0InOlxuICAgICAgICAgICAgICAgICAgICBjYXNlICdSJzoge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICFkYXRhPy5pc05vdFNlbGVjdE91dHB1dDtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBjYXNlICdUJzpcbiAgICAgICAgICAgICAgICAgICAgY2FzZSAnTCc6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAhZGF0YT8uaXNOb3RTZWxlY3RJbnB1dDtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBkZWZhdWx0OiB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pLFxuXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgbmFtZTogJ3RleHRCbG9jaycsXG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgICAgdGV4dDogJ1xcdWYwZGEnLCAvLyBNw6MgVW5pY29kZSB0xrDGoW5nIOG7qW5nIHbhu5tpIGZhLWNhcmV0LWxlZnRcbiAgICAgICAgICAgICAgICAgICAgZm9udDogJzkwMCAxMnB4IFwiRm9udCBBd2Vzb21lIDYgUHJvXCInLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2U6ICd3aGl0ZScsIC8vIMSQ4bq3dCBtw6B1IGNo4buvIHRow6BuaCBtw6B1IHRy4bqvbmdcbiAgICAgICAgICAgICAgICAgICAgY3Vyc29yOiAncG9pbnRlcicsXG4gICAgICAgICAgICAgICAgICAgIHZpc2libGU6IGZhbHNlLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScsIChfKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHN3aXRjaCAobmFtZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAnVCc6XG4gICAgICAgICAgICAgICAgICAgICAgICBjYXNlICdCJzoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAnXFx1ZjBkNyc7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICBjYXNlICdMJzpcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgJ1InOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICdcXHVmMGRhJztcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJ1xcdWYwZDcnO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICApLFxuICAgICAgICApO1xuXG4gICAgICAgIC8vIHJldHVybiB0aGlzLiQoZ28uU2hhcGUsIHtcbiAgICAgICAgLy8gICAgIGZpbGw6ICd0cmFuc3BhcmVudCcsIC8vIGNoYW5nZWQgdG8gYSBjb2xvciBpbiB0aGUgbW91c2VFbnRlciBldmVudCBoYW5kbGVyXG4gICAgICAgIC8vICAgICBzdHJva2VXaWR0aDogMCwgLy8gbm8gc3Ryb2tlXG4gICAgICAgIC8vICAgICB3aWR0aDogaG9yaXpvbnRhbCA/IE5hTiA6IDgsIC8vIGlmIG5vdCBzdHJldGNoaW5nIGhvcml6b250YWxseSwganVzdCA4IHdpZGVcbiAgICAgICAgLy8gICAgIGhlaWdodDogIWhvcml6b250YWwgPyBOYU4gOiA4LCAvLyBpZiBub3Qgc3RyZXRjaGluZyB2ZXJ0aWNhbGx5LCBqdXN0IDggdGFsbFxuICAgICAgICAvLyAgICAgYWxpZ25tZW50OiBhbGlnbiwgLy8gYWxpZ24gdGhlIHBvcnQgb24gdGhlIG1haW4gU2hhcGVcbiAgICAgICAgLy8gICAgIHN0cmV0Y2g6IGhvcml6b250YWwgPyBnby5HcmFwaE9iamVjdC5Ib3Jpem9udGFsIDogZ28uR3JhcGhPYmplY3QuVmVydGljYWwsXG4gICAgICAgIC8vICAgICBwb3J0SWQ6IG5hbWUsIC8vIGRlY2xhcmUgdGhpcyBvYmplY3QgdG8gYmUgYSBcInBvcnRcIlxuICAgICAgICAvLyAgICAgZnJvbVNwb3Q6IHNwb3QsIC8vIGRlY2xhcmUgd2hlcmUgbGlua3MgbWF5IGNvbm5lY3QgYXQgdGhpcyBwb3J0XG4gICAgICAgIC8vICAgICBmcm9tTGlua2FibGU6IG91dHB1dCwgLy8gZ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AgICAgICAgIGdvLkdyb3VwLFxuICAgICAgICAgICAgJ1Nwb3QnLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIC8vIGxheW91dDogdGhpcy4kKGdvLkxheWVyZWREaWdyYXBoTGF5b3V0LCB7IGRpcmVjdGlvbjogMCB9KSxcbiAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgIGxheW91dDogdGhpcy4kKGdvLkxheW91dCksXG4gICAgICAgICAgICAgICAgbW92YWJsZTogZmFsc2UsXG4gICAgICAgICAgICAgICAgc2VsZWN0YWJsZTogZmFsc2UsXG4gICAgICAgICAgICAgICAgLy8gbW92YWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAvLyBzZWxlY3RhYmxlOiB0cnVlLFxuICAgICAgICAgICAgICAgIGRyYWdDb21wdXRhdGlvbjogKG5vZGUsIHB0LCBncmlkcHQpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgcHQueCA9XG4gICAgICAgICAgICAgICAgICAgICAgICBNYXRoLnJvdW5kKHB0LnggLyBBdG9Hb2pzRWRpdG9yTW9kZWwuQkFTSUNfR1JJRF9TSVpFX1dJRFRIKSAqXG4gICAgICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuQkFTSUNfR1JJRF9TSVpFX1dJRFRIO1xuICAgICAgICAgICAgICAgICAgICBwdC55ID1cbiAgICAgICAgICAgICAgICAgICAgICAgIE1hdGgucm91bmQocHQueSAvIEF0b0dvanNFZGl0b3JNb2RlbC5CQVNJQ19HUklEX1NJWkVfSEVJR0hUKSAqXG4gICAgICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuQkFTSUNfR1JJRF9TSVpFX0hFSUdIVDtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHB0O1xuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIC8vIG1pblNpemU6IG5ldyBnby5TaXplKEF0b0dvanNFZGl0b3JNb2RlbC5CQVNJQ19HUklEX1NJWkVfV0lEVEgsIEF0b0dvanNFZGl0b3JNb2RlbC5CQVNJQ19HUklEX1NJWkVfSEVJR0hUKSxcbiAgICAgICAgICAgICAgICBtaW5TaXplOiBuZXcgZ28uU2l6ZSgxLCAxKSxcbiAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSgxLCAxKSxcbiAgICAgICAgICAgICAgICAvLyBtaW5TaXplOiBuZXcgZ28uU2l6ZSgxMDAsIDEwMCksXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKS5tYWtlVHdvV2F5KGdvLlBvaW50LnN0cmluZ2lmeSksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ1JvdW5kZWRSZWN0YW5nbGUnLCB7XG4gICAgICAgICAgICAgICAgICAgIGZpbGw6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgICAgICAgICAgICAgIHN0cm9rZTogJ3RyYW5zcGFyZW50JyxcbiAgICAgICAgICAgICAgICAgICAgLy8gc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuUkVTT0xVVElPTl9CTFVFLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2VXaWR0aDogMixcbiAgICAgICAgICAgICAgICAgICAgLy8gc3Ryb2tlRGFzaEFycmF5OiBbNSwgNV0sXG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgLy8gdGhpcy4kKGdvLlBsYWNlaG9sZGVyKSxcbiAgICAgICAgICAgICAgICAvLyB0aGlzLiQoZ28uUGxhY2Vob2xkZXIsIHsgcGFkZGluZzogbmV3IGdvLk1hcmdpbigwLCAwLCAwLCAwKSB9KSxcbiAgICAgICAgICAgICksXG4gICAgICAgICAgICAvLyB0aGlzLiQoZ28uVGV4dEJsb2NrLCB0aXRsZSwge1xuICAgICAgICAgICAgLy8gICAgIHJvdzogMCxcbiAgICAgICAgICAgIC8vICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgMCwgMCwgMCksXG4gICAgICAgICAgICAvLyAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAgICAgICAvLyAgICAgZm9udDogJ25vcm1hbCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgIC8vICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgLy8gICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICAgICAgLy8gfSxcbiAgICAgICAgICAgIC8vIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ2tleScpLm1ha2VUd29XYXkoKSwpLFxuXG4gICAgICAgICAgICAvLyB0aGlzLiQoXG4gICAgICAgICAgICAvLyAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAvLyAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgIC8vICAgICB7XG4gICAgICAgICAgICAvLyAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5Ub3BMZWZ0LFxuICAgICAgICAgICAgLy8gICAgICAgICBhbGlnbm1lbnRGb2N1czogbmV3IGdvLlNwb3QoMCwgMCwgLTEwLCAtMTApLFxuICAgICAgICAgICAgLy8gICAgICAgICAvLyBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDUwLCAwKSxcbiAgICAgICAgICAgIC8vICAgICB9LFxuICAgICAgICAgICAgLy8gICAgIHRoaXMuJChcbiAgICAgICAgICAgIC8vICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAvLyAgICAgICAgICdIb3Jpem9udGFsJyxcbiAgICAgICAgICAgIC8vICAgICAgICAge1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAgICAgICAvLyAgICAgICAgIH0sXG4gICAgICAgICAgICAvLyAgICAgICAgIHRoaXMuJChnby5QaWN0dXJlLCBpY29uLCB7XG4gICAgICAgICAgICAvLyAgICAgICAgICAgICByb3c6IDAsXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAvLyBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSg0MCwgNDApLFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgICAgLy8gICAgICAgICB9KSxcbiAgICAgICAgICAgIC8vICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAge1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgIGNvbHVtbjogMSxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICBkZWZhdWx0QWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDAsIDAsIDAsIDIwKSxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCB0aXRsZSwge1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMywgMywgNSwgMTApLFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgIC8vIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCBOYU4pLFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgIHN0cm9rZTogJyM0NDQ0NDQnLFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgIGZvbnQ6ICdub3JtYWwgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICAgIHJvdzogMSxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDMsIDMsIDEwKSxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgZWRpdGFibGU6IHRydWUsXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICAgIC8vIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCA0MCksXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogJyMwMDBENDInLFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICBmb250OiAnYm9sZCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgd3JhcDogZ28uVGV4dEJsb2NrLk5vbmUsXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICAgIG92ZXJmbG93OiBnby5UZXh0QmxvY2suT3ZlcmZsb3dFbGxpcHNpcyxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAvLyBkZWZpbmUgYSB0b29sdGlwIGZvciBlYWNoIG5vZGUgdGhhdCBkaXNwbGF5cyB0aGUgY29sb3IgYXMgdGV4dFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICAgICAgICAnVG9vbFRpcCcsXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCB7IG1hcmdpbjogNCB9LCBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykpLFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICApLCAvLyBlbmQgb2YgQWRvcm5tZW50XG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICksXG4gICAgICAgICAgICAvLyAgICAgICAgICksXG4gICAgICAgICAgICAvLyAgICAgKSxcbiAgICAgICAgICAgIC8vICksXG4gICAgICAgICk7XG4gICAgICAgIHRoaXMubXlEaWFncmFtLmdyb3VwVGVtcGxhdGVNYXAuc2V0KHRpdGxlLCBub2RlKTtcbiAgICB9XG5cbiAgICBtYWtlR3JvdXBUZW1wbGF0ZShpY29uLCB0aXRsZSwgc2l6ZTogeyB3OiBudW1iZXI7IGg6IG51bWJlciB9ID0geyB3OiA4MCwgaDogODAgfSkge1xuICAgICAgICBsZXQgbm9kZSA9IHRoaXMuJChcbiAgICAgICAgICAgIGdvLkdyb3VwLFxuICAgICAgICAgICAgJ1Nwb3QnLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIC8vICAgICAvLyBsYXlvdXQ6IHRoaXMuJChnby5Gb3JjZURpcmVjdGVkTGF5b3V0ICwge1xuICAgICAgICAgICAgICAgIC8vICAgICAvLyAgICAgZGlyZWN0aW9uOiAwLFxuICAgICAgICAgICAgICAgIC8vICAgICAvLyAgICAgc2V0c1BvcnRTcG90czogZmFsc2UsXG4gICAgICAgICAgICAgICAgLy8gICAgIC8vIH0pLFxuXG4gICAgICAgICAgICAgICAgLy8gbGF5b3V0OiB0aGlzLiQoZ28uTGF5ZXJlZERpZ3JhcGhMYXlvdXQsIHtcbiAgICAgICAgICAgICAgICAvLyAgICAgZGlyZWN0aW9uOiAwLFxuICAgICAgICAgICAgICAgIC8vICAgICBzZXRzUG9ydFNwb3RzOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAvLyB9KSxcblxuICAgICAgICAgICAgICAgIGxheW91dDogdGhpcy4kKGdvLkxheW91dCksXG5cbiAgICAgICAgICAgICAgICAvLyAvLyAgICAgLy8gYWRvcm5tZW50IHdoZW4gYSBncm91cCBpcyBzZWxlY3RlZFxuICAgICAgICAgICAgICAgIC8vIC8vICAgICAvLyBzZWxlY3Rpb25BZG9ybm1lbnRUZW1wbGF0ZTogdGhpcy4kKFxuICAgICAgICAgICAgICAgIC8vIC8vICAgICAvLyAgICAgZ28uQWRvcm5tZW50LFxuICAgICAgICAgICAgICAgIC8vIC8vICAgICAvLyAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgIC8vIC8vICAgICAvLyAgICAgdGhpcy4kKGdvLlNoYXBlLCAnUmVjdGFuZ2xlJywgeyBmaWxsOiBudWxsLCBzdHJva2U6ICdkb2RnZXJibHVlJywgc3Ryb2tlV2lkdGg6IDggfSksXG4gICAgICAgICAgICAgICAgLy8gLy8gICAgIC8vICAgICB0aGlzLiQoZ28uUGxhY2Vob2xkZXIpLFxuICAgICAgICAgICAgICAgIC8vIC8vICAgICAvLyApLFxuICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgLy8gbmV3IGdvLkJpbmRpbmcoJ2xheW91dCcsICdsYXlvdXQnLCAoeCkgPT5cbiAgICAgICAgICAgIC8vIHtcbiAgICAgICAgICAgIC8vICAgICByZXR1cm4gdGhpcy4kKGdvLkZvcmNlRGlyZWN0ZWRMYXlvdXQgLCB7XG4gICAgICAgICAgICAvLyAgICAgICAgIGRpcmVjdGlvbjogMCxcbiAgICAgICAgICAgIC8vICAgICAgICAgc2V0c1BvcnRTcG90czogZmFsc2UsXG4gICAgICAgICAgICAvLyAgICAgfSk7XG4gICAgICAgICAgICAvLyB9XG4gICAgICAgICAgICAvLyApLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIG1pblNpemU6IG5ldyBnby5TaXplKDQwMCwgNDAwKSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAvLyBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoZ28uUG9pbnQuc3RyaW5naWZ5KSxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnUm91bmRlZFJlY3RhbmdsZScsIHtcbiAgICAgICAgICAgICAgICAgICAgZmlsbDogJ3RyYW5zcGFyZW50JyxcbiAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuUkVTT0xVVElPTl9CTFVFLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2VXaWR0aDogMixcbiAgICAgICAgICAgICAgICAgICAgLy8gc3Ryb2tlRGFzaEFycmF5OiBbNSwgNV0sXG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBsYWNlaG9sZGVyLCB7IHBhZGRpbmc6IG5ldyBnby5NYXJnaW4oNjAsIDIwLCAyMCwgMjApIH0pLFxuICAgICAgICAgICAgKSxcblxuICAgICAgICAgICAgLy8gdGhpcy4kKFxuICAgICAgICAgICAgLy8gICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgLy8gICAgICdUYWJsZScsXG4gICAgICAgICAgICAvLyAgICAge1xuICAgICAgICAgICAgLy8gICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuVG9wTGVmdCxcbiAgICAgICAgICAgIC8vICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDAsIDAsIC0xMCwgLTEwKSxcbiAgICAgICAgICAgIC8vICAgICB9LFxuICAgICAgICAgICAgLy8gICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHRpdGxlLCB7XG4gICAgICAgICAgICAvLyAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgIC8vICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDMsIDMsIDUsIDMpLFxuICAgICAgICAgICAgLy8gICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgTmFOKSxcbiAgICAgICAgICAgIC8vICAgICAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAgICAgICAvLyAgICAgICAgIGZvbnQ6ICdub3JtYWwgOHB0IEFyaWFsJyxcbiAgICAgICAgICAgIC8vICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgIC8vICAgICB9KSxcbiAgICAgICAgICAgIC8vICAgICB0aGlzLiQoZ28uUGljdHVyZSwgaWNvbiwge1xuICAgICAgICAgICAgLy8gICAgICAgICByb3c6IDEsXG4gICAgICAgICAgICAvLyAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICAvLyAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKDQwLCA0MCksXG4gICAgICAgICAgICAvLyAgICAgICAgIGltYWdlU3RyZXRjaDogZ28uR3JhcGhPYmplY3QuVW5pZm9ybSxcbiAgICAgICAgICAgIC8vICAgICB9KSxcbiAgICAgICAgICAgIC8vICAgICB0aGlzLiQoXG4gICAgICAgICAgICAvLyAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgIC8vICAgICAgICAge1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDEwLCAzLCAzLCAzKSxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIGVkaXRhYmxlOiB0cnVlLFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIDQwKSxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIHN0cm9rZTogJyMwMDBENDInLFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgZm9udDogJ2JvbGQgOHB0IEFyaWFsJyxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suTm9uZSxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIG92ZXJmbG93OiBnby5UZXh0QmxvY2suT3ZlcmZsb3dFbGxpcHNpcyxcbiAgICAgICAgICAgIC8vICAgICAgICAgfSxcbiAgICAgICAgICAgIC8vICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpLm1ha2VUd29XYXkoKSxcbiAgICAgICAgICAgIC8vICAgICAgICAge1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgLy8gZGVmaW5lIGEgdG9vbHRpcCBmb3IgZWFjaCBub2RlIHRoYXQgZGlzcGxheXMgdGhlIGNvbG9yIGFzIHRleHRcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJCgnVG9vbFRpcCcsIHRoaXMuJChnby5UZXh0QmxvY2ssIHsgbWFyZ2luOiA0IH0sIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKSkpLCAvLyBlbmQgb2YgQWRvcm5tZW50XG4gICAgICAgICAgICAvLyAgICAgICAgIH0sXG4gICAgICAgICAgICAvLyAgICAgKSxcbiAgICAgICAgICAgIC8vICAgICAvLyBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoZ28uUG9pbnQuc3RyaW5naWZ5KSxcbiAgICAgICAgICAgIC8vICksXG5cbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LlRvcExlZnQsXG4gICAgICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBuZXcgZ28uU3BvdCgwLCAwLCAtMTAsIC0xMCksXG4gICAgICAgICAgICAgICAgICAgIC8vIHBhZGRpbmc6IG5ldyBnby5NYXJnaW4oMCwgMCwgNTAsIDApLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgJ0hvcml6b250YWwnLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICByb3c6IDAsXG4gICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBpY3R1cmUsIGljb24sIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKDQwLCA0MCksXG4gICAgICAgICAgICAgICAgICAgICAgICBpbWFnZVN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LlVuaWZvcm0sXG4gICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICdUYWJsZScsXG4gICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sdW1uOiAxLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlZmF1bHRBbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnRGb2N1czogbmV3IGdvLlNwb3QoMCwgMCwgMCwgMjApLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHRpdGxlLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigzLCAzLCA1LCAxMCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIE5hTiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9udDogJ25vcm1hbCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAxLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgMywgMywgMTApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlZGl0YWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIDQwKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzAwMEQ0MicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suTm9uZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb3ZlcmZsb3c6IGdvLlRleHRCbG9jay5PdmVyZmxvd0VsbGlwc2lzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpLm1ha2VUd29XYXkoKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGRlZmluZSBhIHRvb2x0aXAgZm9yIGVhY2ggbm9kZSB0aGF0IGRpc3BsYXlzIHRoZSBjb2xvciBhcyB0ZXh0XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHsgbWFyZ2luOiA0IH0sIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksIC8vIGVuZCBvZiBBZG9ybm1lbnRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgKSxcbiAgICAgICAgKTtcblxuICAgICAgICB0aGlzLm15RGlhZ3JhbS5ncm91cFRlbXBsYXRlTWFwLnNldCh0aXRsZSwgbm9kZSk7XG4gICAgfVxuXG4gICAgbWFrZUltYWdlVGVtcGxhdGUoKSB7XG4gICAgICAgIGNvbnN0IG5vZGUgPSB0aGlzLiQoXG4gICAgICAgICAgICBnby5Ob2RlLFxuICAgICAgICAgICAgJ1Nwb3QnLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHpPcmRlcjogMSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc2VsZWN0YWJsZScsICdzZWxlY3RhYmxlJyksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0hvcml6b250YWwnLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShnby5Qb2ludC5zdHJpbmdpZnkpLFxuICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgZ28uUGljdHVyZSxcbiAgICAgICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLklNQUdFX1JPX1dBVEVSX1RSRUFUTUVOVF9QQVRILFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gbWF4U2l6ZTogbmV3IGdvLlNpemUoNTAwLCA1MDApLFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDEzMCwgMCwgMCwgMCksXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdtYXJnaW4nLCAnbWFyZ2luJyksXG4gICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd3aWR0aCcsICd3aWR0aCcpLFxuICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnaGVpZ2h0JywgJ2hlaWdodCcpLFxuICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc291cmNlJywgJycsIChkYXRhKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YT8uc291cmNlID8gZGF0YT8uc291cmNlIDogQXRvR29qc0VkaXRvck1vZGVsLklNQUdFX1JPX1dBVEVSX1RSRUFUTUVOVF9QQVRIO1xuICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgKSxcbiAgICAgICAgKTtcbiAgICAgICAgdGhpcy5teURpYWdyYW0ubm9kZVRlbXBsYXRlTWFwLnNldChBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuSU1BR0VfVEVNUExBVEUsIG5vZGUpO1xuICAgIH1cblxuICAgIG1ha2VQYXJhbVRhYmxlKCkge1xuICAgICAgICBjb25zdCBzZWxmID0gdGhpcztcbiAgICAgICAgY29uc3Qgbm9kZSA9IHRoaXMuJChcbiAgICAgICAgICAgIGdvLlBhcnQsXG4gICAgICAgICAgICAnVmVydGljYWwnLFxuICAgICAgICAgICAgLy8gdGhpcy4kKGdvLlNoYXBlLCB7IGZpbGw6ICcjRTZGMEY3Jywgc3Ryb2tlOiAnIzAwNjNBOScsIHN0cm9rZVdpZHRoOiAzLCBnZW9tZXRyeVN0cmluZzogJ00gNSAwIEwgOTUgMCBRIDEwMCAwIDEwMCA1IEwgMTAwIDk1IFEgMTAwIDEwMCA5NSAxMDAgTCA1IDEwMCBRIDAgMTAwIDAgOTUgTCAwIDUgUSAwIDAgNSAwJyAgfSksXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgek9yZGVyOiAyLFxuICAgICAgICAgICAgICAgIC8vIHBhZGRpbmc6IG5ldyBnby5NYXJnaW4oMCwgMCwgMCwgMjAwKSxcbiAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdwYWRkaW5nJywgJ3BhZGRpbmcnKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzZWxlY3RhYmxlJywgJ3NlbGVjdGFibGUnKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShnby5Qb2ludC5zdHJpbmdpZnkpLFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnJywgKGRhdGEpID0+IHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdHlwZW9mIGRhdGE/LnZpc2libGUgPT09ICdib29sZWFuJyA/IGRhdGE/LnZpc2libGUgOiB0cnVlO1xuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAvLyBIZWFkZXJcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBzdHJldGNoOiBnby5HcmFwaE9iamVjdC5GaWxsLFxuICAgICAgICAgICAgICAgICAgICBtaW5TaXplOiBuZXcgZ28uU2l6ZSgxNTAsIDI3KSxcbiAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDAsIC02LCAwKSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJycsIChkYXRhKSA9PiAhIWRhdGE/LnRpdGxlKSxcbiAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgIGdvLlNoYXBlLFxuICAgICAgICAgICAgICAgICAgICAnUm91bmRlZFJlY3RhbmdsZScsXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhcmFtZXRlcjE6IDUsXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdmaWxsJywgJycsIChkYXRhKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YT8uY29sb3I7XG4gICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJycsIChkYXRhKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YT8uY29sb3I7XG4gICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICksXG5cbiAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnd2hpdGUnLFxuICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDUpLFxuICAgICAgICAgICAgICAgICAgICAgICAgc3RyZXRjaDogZ28uR3JhcGhPYmplY3QuRmlsbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICAgICAgICAgICAgICAgICAgdmVydGljYWxBbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgZm9udDogJzE0cHggc2Fucy1zZXJpZicsXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ3RpdGxlJyksXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uU2hhcGUsXG4gICAgICAgICAgICAgICAgJ1JlY3RhbmdsZScsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBoZWlnaHQ6IDYsXG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAwLCAtNiwgMCksXG4gICAgICAgICAgICAgICAgICAgIHN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LkZpbGwsXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnZmlsbCcsICcnLCAoZGF0YSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YT8uY29sb3I7XG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3N0cm9rZScsICcnLCAoZGF0YSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YT8uY29sb3I7XG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnJywgKGRhdGEpID0+ICEhZGF0YT8udGl0bGUpLFxuICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICBnby5TaGFwZSxcbiAgICAgICAgICAgICAgICAgICAgJ1JvdW5kZWRSZWN0YW5nbGUnLFxuICAgICAgICAgICAgICAgICAgICB7IGZpbGw6ICcjRTZGMEY3Jywgc3Ryb2tlOiAnIzAwNjNBOScsIHN0cm9rZVdpZHRoOiA0LCBwYXJhbWV0ZXIxOiA1IH0sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdmaWxsJywgJ2JnQ29sb3InKSxcbiAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3N0cm9rZScsICdib3JkZXJUYWJsZScpLFxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgICAgICAgICAgLy8gU2V0IGRlZmF1bHRzIGZvciBhbGwgcm93cyBhbmQgY29sdW1uczpcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgcGFkZGluZzogMS41LFxuICAgICAgICAgICAgICAgICAgICAgICAgZGVmYXVsdFJvd1NlcGFyYXRvclN0cm9rZTogJyMwMDYyQTknLFxuICAgICAgICAgICAgICAgICAgICAgICAgZGVmYXVsdENvbHVtblNlcGFyYXRvclN0cm9rZTogJyMwMDYyQTknLFxuICAgICAgICAgICAgICAgICAgICAgICAgZGVmYXVsdFNlcGFyYXRvclBhZGRpbmc6IG5ldyBnby5NYXJnaW4oNSwgMTAsIDUsIDEwKSxcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2RlZmF1bHRSb3dTZXBhcmF0b3JTdHJva2UnLCAnYm9yZGVyVGFibGUnKSxcbiAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2RlZmF1bHRDb2x1bW5TZXBhcmF0b3JTdHJva2UnLCAnYm9yZGVyVGFibGUnKSxcbiAgICAgICAgICAgICAgICAgICAgLy8gdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAvLyAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgIC8vICAgICAnVGFibGVSb3cnLFxuICAgICAgICAgICAgICAgICAgICAvLyAgICAgeyByb3c6IDAgfSxcbiAgICAgICAgICAgICAgICAgICAgLy8gICAgIHRoaXMuJChnby5UZXh0QmxvY2ssICdyb3cgMSBjb2wgMScsIHsgY29sdW1uOiAwLCBtYXJnaW46IDIgfSksXG4gICAgICAgICAgICAgICAgICAgIC8vICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCAncm93IDEgY29sIDInLCB7IGNvbHVtbjogMSwgbWFyZ2luOiAyIH0pLFxuICAgICAgICAgICAgICAgICAgICAvLyApLFxuICAgICAgICAgICAgICAgICAgICAvLyB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgIC8vICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgLy8gICAgICdUYWJsZVJvdycsXG4gICAgICAgICAgICAgICAgICAgIC8vICAgICB7IHJvdzogMSB9LFxuICAgICAgICAgICAgICAgICAgICAvLyAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgJ3JvdyAyIGNvbCAxJywgeyBjb2x1bW46IDAsIG1hcmdpbjogMiB9KSxcbiAgICAgICAgICAgICAgICAgICAgLy8gICAgIHRoaXMuJChnby5UZXh0QmxvY2ssICdyb3cgMiBjb2wgMicsIHsgY29sdW1uOiAxLCBtYXJnaW46IDIgfSksXG4gICAgICAgICAgICAgICAgICAgIC8vICksXG4gICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdpdGVtQXJyYXknLCAnZGF0YVRhYmxlJyksXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGl0ZW1UZW1wbGF0ZTogdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgIG5ldyBnby5CaW5kaW5nKCdyb3cnLCAnaW5kZXhSb3cnKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAvLyBuZXcgZ28uQmluZGluZygnaGVpZ2h0JywgJ2hlaWdodCcpLFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgZ28uUGljdHVyZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgQVJST1csXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSgyMCwgNDApLFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgLy8gaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICBuZXcgZ28uQmluZGluZygnc291cmNlJywgJycsIChkYXRhLCBwYW5lbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgLy8gcGFuZWwucGFydD8uZGF0YT8uaWRcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgIHJldHVybiBkYXRhPy5pc0NyZWF0ZWQgPyBwYW5lbD8uJHAgOiBBUlJPV19HUkFZO1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gKSxcblxuICAgICAgICAgICAgICAgICAgICAgICAgaXRlbVRlbXBsYXRlOiB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgJ1RhYmxlUm93JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xpY2s6IChlLCBvYmo6IGFueSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9iai5wYW5lbC5wYXJ0LmRhdGE/LmRhdGFUYWJsZVtvYmoucm93XT8uaXNFZGl0YWJsZSA9PT0gZmFsc2UpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLm9uQ2xpa1BhcmFtT2ZUYWJsZS5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuLi5vYmoucGFuZWwucGFydC5kYXRhPy5kYXRhVGFibGVbb2JqLnJvd10sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmFja2dyb3VuZDogJ3RyYW5zcGFyZW50JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyBjb2x1bW46IDAsIG1hcmdpbjogMiwgdGV4dEFsaWduOiAnbGVmdCcsIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0IH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJycsIChkYXRhLCBwYW5lbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGE/Lm5hbWU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sdW1uOiAxLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiAyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlZmF1bHRTZXBhcmF0b3JQYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RyZXRjaDogZ28uR3JhcGhPYmplY3QuRmlsbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ21pblNpemUnLCAnJywgKGRhdGEsIHBhbmVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyByZXR1cm4gcGFuZWwucGFydD8uZGF0YT8ubWluU2l6ZVZhbHVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBnby5TaXplKHBhbmVsLnBhcnQ/LmRhdGE/Lm1pblNpemVWYWx1ZT8ud2lkdGgsIE5hTik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2x1bW46IDAsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiAwLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG92ZXJmbG93OiBnby5UZXh0QmxvY2suT3ZlcmZsb3dFbGxpcHNpcyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICcnLCAoZGF0YSwgcGFuZWwpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gYCR7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICEhdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPyBgJHtkYXRhPy50YWdOYW1lIHx8ICcnfSBgXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA6ICcnXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSR7ZGF0YT8udmFsdWV9YDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnJywgKGRhdGEpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoISF0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5ICYmIGRhdGE/LnRhZ05hbWUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICEhZGF0YT8udmFsdWU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJycsIChkYXRhLCBwYW5lbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhPy52YWx1ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3N0cm9rZScsICcnLCAoZGF0YSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhLmNvbG9yO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnbWF4U2l6ZScsICcnLCAoZGF0YSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBuZXcgZ28uU2l6ZShkYXRhPy5tYXhTaXplVmFsdWUgfHwgMTkwLCAxNCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uUGljdHVyZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuUmlnaHQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sdW1uOiAxLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAwLCAwLCA1KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzb3VyY2U6IElDT05TX0JBU0U2NFtcInVmMDQ0XCJdLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGN1cnNvcjogJ3BvaW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZpc2libGU6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJycsIChkYXRhLCBwYW5lbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhPy50b29sVGlwQWN0aW9uO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJycsIChkYXRhKSA9PiAhIWRhdGE/LnRvb2xUaXBBY3Rpb24pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiAxNCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aWR0aDogMTQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnJywgKGRhdGEsIHBhbmVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICF0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5O1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnb3BhY2l0eScsICcnLCAoZGF0YSwgcGFuZWwpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YT8uaXNFZGl0YWJsZSA9PT0gZmFsc2UgPyAwLjYgOiAxO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIC8vIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKVxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICApLFxuICAgICAgICApO1xuICAgICAgICB0aGlzLm15RGlhZ3JhbS5ub2RlVGVtcGxhdGVNYXAuc2V0KEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5QQVJBTV9UQUJMRSwgbm9kZSk7XG4gICAgfVxuXG4gICAgbWFrZU1hc3NCYWxhbmNlKCkge1xuICAgICAgICBjb25zdCBzZWxmID0gdGhpcztcbiAgICAgICAgY29uc3Qgbm9kZSA9IHRoaXMuJChcbiAgICAgICAgICAgIGdvLlBhcnQsXG4gICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICB7fSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShnby5Qb2ludC5zdHJpbmdpZnkpLFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3NlbGVjdGFibGUnLCAnc2VsZWN0YWJsZScpLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdIb3Jpem9udGFsJyxcbiAgICAgICAgICAgICAgICAvLyBTZXQgZGVmYXVsdHMgZm9yIGFsbCByb3dzIGFuZCBjb2x1bW5zOlxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgcGFkZGluZzogNCxcbiAgICAgICAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoNDUwLCAzMCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICd0b29sdGlwJyksXG4gICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICB2aXNpYmxlOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5LFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgICcnLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgNSwgMCwgMCksXG4gICAgICAgICAgICAgICAgICAgICAgICB0ZXh0OiAnTWFzcyBCYWxhbmNlOicsXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdmb250JywgJ2ZvbnQnKSxcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAnJyxcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuQUxJWkFSSU4sXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdmb250JywgJ2ZvbnQnKSxcbiAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3N0cm9rZScsICdjb2xvclZhbHVlJyksXG4gICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJycsIChkYXRhLCBwYW5lbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGE/LnZhbHVlO1xuICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgKSxcbiAgICAgICAgKTtcbiAgICAgICAgdGhpcy5teURpYWdyYW0ubm9kZVRlbXBsYXRlTWFwLnNldChBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuTUFTU19CQUxBTkNFLCBub2RlKTtcbiAgICB9XG5cbiAgICBtYWtlR3JvdXBST1BsYW50VGVtcGxhdGUoaWNvbiwgdGl0bGUsIHNpemU6IHsgdzogbnVtYmVyOyBoOiBudW1iZXIgfSA9IHsgdzogODAsIGg6IDgwIH0pIHtcbiAgICAgICAgbGV0IG5vZGUgPSB0aGlzLiQoXG4gICAgICAgICAgICBnby5Hcm91cCxcbiAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBsYXlvdXQ6IHRoaXMuJChnby5MYXlvdXQpLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAvLyBtaW5TaXplOiBuZXcgZ28uU2l6ZShOYU4sIDYwMCksXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3NlbGVjdGFibGUnLCAnc2VsZWN0YWJsZScpLFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKS5tYWtlVHdvV2F5KGdvLlBvaW50LnN0cmluZ2lmeSksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ1RhYmxlJyxcblxuICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICAgICAgICAgICAgcGFkZGluZzogbmV3IGdvLk1hcmdpbigwLCAwLCAwLCAwKSxcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnUm91bmRlZFJlY3RhbmdsZScsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG5hbWU6ICdTSEFQRV9LRVknLFxuICAgICAgICAgICAgICAgICAgICAgICAgZmlsbDogJyNGQ0ZDRkQnLFxuICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuUkVTT0xVVElPTl9CTFVFLFxuICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDIsXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgICAgICAgICAgICAgfSksXG5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBsYWNlaG9sZGVyLCB7IHBhZGRpbmc6IG5ldyBnby5NYXJnaW4oMTUsIDAsIDAsIDApIH0pLFxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICBnby5QaWN0dXJlLFxuICAgICAgICAgICAgICAgICAgICBST19MSU5FX0RJUlRZLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICByb3c6IDEsXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJycsICh4KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4geD8uaXNWaWV3R2VuZXJhbCAmJiB4Py5oYXNPdXRGbG93ID8gdHJ1ZSA6IGZhbHNlO1xuICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgKSxcblxuICAgICAgICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVGFibGUnLCB7XG4gICAgICAgICAgICAgICAgd2lkdGg6IDAsXG4gICAgICAgICAgICAgICAgaGVpZ2h0OiAwLFxuICAgICAgICAgICAgICAgIGFsaWdubWVudDogbmV3IGdvLlNwb3QoMCwgMCwgMCwgMTgzKSxcbiAgICAgICAgICAgICAgICBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5MZWZ0LFxuICAgICAgICAgICAgICAgIC8vIHN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LlZlcnRpY2FsLFxuICAgICAgICAgICAgICAgIHBvcnRJZDogJ0luZmxvdycsXG4gICAgICAgICAgICAgICAgY3Vyc29yOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5ID8gJycgOiAncG9pbnRlcicsXG4gICAgICAgICAgICAgICAgLy8gYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDAsIDAsIDAsIDE1MCksXG4gICAgICAgICAgICAgICAgZnJvbVNwb3Q6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgICAgICB0b1Nwb3Q6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgICAgICBmcm9tTGlua2FibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgdG9MaW5rYWJsZTogdHJ1ZSxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVGFibGUnLCB7XG4gICAgICAgICAgICAgICAgd2lkdGg6IDAsXG4gICAgICAgICAgICAgICAgaGVpZ2h0OiAwLFxuICAgICAgICAgICAgICAgIGFsaWdubWVudDogbmV3IGdvLlNwb3QoMCwgMCwgOTcwLCAzMTUpLFxuICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkJvdHRvbSxcbiAgICAgICAgICAgICAgICBwb3J0SWQ6ICdPdXRGbG93X0NsZWFuJyxcbiAgICAgICAgICAgICAgICBjdXJzb3I6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHkgPyAnJyA6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICBmcm9tU3BvdDogZ28uU3BvdC5Cb3R0b20sXG4gICAgICAgICAgICAgICAgdG9TcG90OiBnby5TcG90LkJvdHRvbSxcbiAgICAgICAgICAgICAgICBmcm9tTGlua2FibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgdG9MaW5rYWJsZTogdHJ1ZSxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdUYWJsZScsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICB3aWR0aDogMCxcbiAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiAwLFxuICAgICAgICAgICAgICAgICAgICAvLyBhbGlnbm1lbnQ6IG5ldyBnby5TcG90KDAsIDAsIDQ4MCwgNTI1KSxcbiAgICAgICAgICAgICAgICAgICAgLy8gYWxpZ25tZW50OiBuZXcgZ28uU3BvdCgwLCAwLCA0NzUsIDU1MiksXG4gICAgICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkJvdHRvbSxcbiAgICAgICAgICAgICAgICAgICAgcG9ydElkOiAnT3V0Rmxvd19EaXJ0eScsXG4gICAgICAgICAgICAgICAgICAgIGN1cnNvcjogdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seSA/ICcnIDogJ3BvaW50ZXInLFxuICAgICAgICAgICAgICAgICAgICBmcm9tU3BvdDogZ28uU3BvdC5Cb3R0b20sXG4gICAgICAgICAgICAgICAgICAgIHRvU3BvdDogZ28uU3BvdC5Cb3R0b20sXG4gICAgICAgICAgICAgICAgICAgIGZyb21MaW5rYWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgdG9MaW5rYWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdhbGlnbm1lbnQnLCAnJywgKHgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHg/LmlzVmlld0dlbmVyYWwgJiYgeD8uaGFzT3V0Rmxvd1xuICAgICAgICAgICAgICAgICAgICAgICAgPyBuZXcgZ28uU3BvdCgwLCAwLCA0NzUsIDU1MilcbiAgICAgICAgICAgICAgICAgICAgICAgIDogbmV3IGdvLlNwb3QoMCwgMCwgNDgwLCA1MjUpO1xuICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgKSxcbiAgICAgICAgKTtcblxuICAgICAgICB0aGlzLm15RGlhZ3JhbS5ncm91cFRlbXBsYXRlTWFwLnNldCh0aXRsZSwgbm9kZSk7XG4gICAgfVxuXG4gICAgbWFrZUdyb3VwQm9pbGVyVGVtcGxhdGUoaWNvbiwgdGl0bGUsIHNpemU6IHsgdzogbnVtYmVyOyBoOiBudW1iZXIgfSA9IHsgdzogODAsIGg6IDgwIH0pIHtcbiAgICAgICAgbGV0IG5vZGUgPSB0aGlzLiQoXG4gICAgICAgICAgICBnby5Hcm91cCxcbiAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBzZWxlY3RhYmxlOiBmYWxzZSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgLy8gbWluU2l6ZTogbmV3IGdvLlNpemUoTmFOLCA2MDApLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzZWxlY3RhYmxlJywgJ3NlbGVjdGFibGUnKSxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDApLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnUm91bmRlZFJlY3RhbmdsZScsIHtcbiAgICAgICAgICAgICAgICAgICAgbmFtZTogJ1NIQVBFX0tFWScsXG4gICAgICAgICAgICAgICAgICAgIGZpbGw6ICcjRkNGQ0ZEJyxcbiAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuUkVTT0xVVElPTl9CTFVFLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2VXaWR0aDogMixcbiAgICAgICAgICAgICAgICB9KSxcblxuICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgZ28uUGxhY2Vob2xkZXIsXG4gICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShnby5Qb2ludC5zdHJpbmdpZnkpLFxuICAgICAgICAgICAgICAgICAgICB7IHBhZGRpbmc6IG5ldyBnby5NYXJnaW4oMCwgMCwgMCwgMCkgfSxcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgKSxcblxuICAgICAgICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnU3BvdCcsIHtcbiAgICAgICAgICAgICAgICB3aWR0aDogMCxcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IDAsXG4gICAgICAgICAgICAgICAgYWxpZ25tZW50OiBuZXcgZ28uU3BvdCgwLCAwLjUsIDAsIDgzKSxcbiAgICAgICAgICAgICAgICBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5MZWZ0LFxuICAgICAgICAgICAgICAgIHBvcnRJZDogJ0luZmxvdycsXG4gICAgICAgICAgICAgICAgY3Vyc29yOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5ID8gJycgOiAncG9pbnRlcicsXG4gICAgICAgICAgICAgICAgZnJvbVNwb3Q6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgICAgICB0b1Nwb3Q6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgICAgICBmcm9tTGlua2FibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgdG9MaW5rYWJsZTogdHJ1ZSxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LlRvcCxcbiAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBuZXcgZ28uU3BvdCgxLCAxLCAtMjE1LCAwKSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgZ28uUGljdHVyZSxcbiAgICAgICAgICAgICAgICAgICAgT1VURkxPV19MSU5FX0RJUlRZLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICB3aWR0aDogMTAsXG4gICAgICAgICAgICAgICAgICAgICAgICBoZWlnaHQ6IDIwLFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICcnLCAoeCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHg/LmlzVmlld0dlbmVyYWwgJiYgeD8uaGFzT3V0RmxvdyA/IHRydWUgOiBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICB0aGlzLiQoZ28uUGFuZWwsIHtcbiAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkJvdHRvbUxlZnQsXG4gICAgICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LlRvcCxcbiAgICAgICAgICAgICAgICAgICAgcG9ydElkOiAnT3V0RmxvdycsXG4gICAgICAgICAgICAgICAgICAgIGN1cnNvcjogdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seSA/ICcnIDogJ3BvaW50ZXInLFxuICAgICAgICAgICAgICAgICAgICBmcm9tU3BvdDogZ28uU3BvdC5Cb3R0b20sXG4gICAgICAgICAgICAgICAgICAgIGZyb21MaW5rYWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgdG9MaW5rYWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICksXG4gICAgICAgICk7XG5cbiAgICAgICAgdGhpcy5teURpYWdyYW0uZ3JvdXBUZW1wbGF0ZU1hcC5zZXQodGl0bGUsIG5vZGUpO1xuICAgIH1cblxuICAgIG1ha2VHcm91cENvb2xpbmdUb3dlclRlbXBsYXRlKGljb24sIHRpdGxlLCBzaXplOiB7IHc6IG51bWJlcjsgaDogbnVtYmVyIH0gPSB7IHc6IDgwLCBoOiA4MCB9KSB7XG4gICAgICAgIGxldCBub2RlID0gdGhpcy4kKFxuICAgICAgICAgICAgZ28uR3JvdXAsXG4gICAgICAgICAgICAnU3BvdCcsXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgc2VsZWN0YWJsZTogZmFsc2UsXG4gICAgICAgICAgICAgICAgbGF5b3V0OiB0aGlzLiQoZ28uTGF5b3V0KSxcbiAgICAgICAgICAgICAgICBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDAsIDMwLCAwLCAwKSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoZ28uUG9pbnQuc3RyaW5naWZ5KSxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICByb3c6IDAsXG4gICAgICAgICAgICAgICAgICAgIHBhZGRpbmc6IG5ldyBnby5NYXJnaW4oMCwgMCwgMCwgMCksXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdSb3VuZGVkUmVjdGFuZ2xlJywge1xuICAgICAgICAgICAgICAgICAgICBuYW1lOiAnU0hBUEVfS0VZJyxcbiAgICAgICAgICAgICAgICAgICAgZmlsbDogJyNGQ0ZDRkQnLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5SRVNPTFVUSU9OX0JMVUUsXG4gICAgICAgICAgICAgICAgICAgIHN0cm9rZVdpZHRoOiAyLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgICAgICAgICB9KSxcblxuICAgICAgICAgICAgICAgIHRoaXMuJChnby5QbGFjZWhvbGRlciwgeyBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDApIH0pLFxuICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIHRoaXMuJChnby5QYW5lbCwgJ1RhYmxlJywge1xuICAgICAgICAgICAgICAgIHdpZHRoOiAwLFxuICAgICAgICAgICAgICAgIGhlaWdodDogMCxcbiAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IG5ldyBnby5TcG90KDAsIDAsIDAsIDUzMyksXG4gICAgICAgICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IGdvLlNwb3QuQm90dG9tLFxuICAgICAgICAgICAgICAgIHBvcnRJZDogJ0luZmxvdycsXG4gICAgICAgICAgICAgICAgY3Vyc29yOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5ID8gJycgOiAncG9pbnRlcicsXG4gICAgICAgICAgICAgICAgZnJvbVNwb3Q6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgICAgICB0b1Nwb3Q6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgICAgICBmcm9tTGlua2FibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgdG9MaW5rYWJsZTogdHJ1ZSxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LlRvcCxcbiAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBuZXcgZ28uU3BvdCgwLjUsIDEsIDIzLCAwKSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgZ28uUGljdHVyZSxcbiAgICAgICAgICAgICAgICAgICAgT1VURkxPV19MSU5FX0RJUlRZLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICB3aWR0aDogMTAsXG4gICAgICAgICAgICAgICAgICAgICAgICBoZWlnaHQ6IDIwLFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICcnLCAoeCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHg/LmlzVmlld0dlbmVyYWwgJiYgeD8uaGFzT3V0RmxvdyA/IHRydWUgOiBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICB0aGlzLiQoZ28uUGFuZWwsIHtcbiAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBuZXcgZ28uU3BvdCgwLCAwLCAwLCAxOCksXG4gICAgICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LlRvcCxcbiAgICAgICAgICAgICAgICAgICAgcG9ydElkOiAnT3V0RmxvdycsXG4gICAgICAgICAgICAgICAgICAgIGN1cnNvcjogdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seSA/ICcnIDogJ3BvaW50ZXInLFxuICAgICAgICAgICAgICAgICAgICBmcm9tU3BvdDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICAgICAgICAgIHRvU3BvdDogZ28uU3BvdC5SaWdodCxcbiAgICAgICAgICAgICAgICAgICAgZnJvbUxpbmthYmxlOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICB0b0xpbmthYmxlOiB0cnVlLFxuICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgKSxcbiAgICAgICAgKTtcblxuICAgICAgICB0aGlzLm15RGlhZ3JhbS5ncm91cFRlbXBsYXRlTWFwLnNldCh0aXRsZSwgbm9kZSk7XG4gICAgfVxuXG4gICAgZ3JvdXBQbGFudENlbGxUZW1wbGF0ZShpY29uLCB0aXRsZSwgc2l6ZTogeyB3OiBudW1iZXI7IGg6IG51bWJlciB9ID0geyB3OiA4MCwgaDogODAgfSkge1xuICAgICAgICBjb25zdCBzZWxmID0gdGhpcztcbiAgICAgICAgbGV0IG5vZGUgPSB0aGlzLiQoXG4gICAgICAgICAgICBnby5Hcm91cCxcbiAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAvLyBsYXlvdXQ6IHRoaXMuJChnby5MYXlvdXQpLFxuICAgICAgICAgICAgICAgIC8vIGxheW91dDogdGhpcy4kKGdvLkxheWVyZWREaWdyYXBoTGF5b3V0LCB7IGRpcmVjdGlvbjogMCB9KSxcbiAgICAgICAgICAgICAgICAvLyBpc1N1YkdyYXBoRXhwYW5kZWQ6IGZhbHNlLFxuICAgICAgICAgICAgICAgIC8vIGJhY2tncm91bmQ6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgICAgICAgICAgLy8gbGF5ZXJOYW1lOiAnRm9yZWdyb3VuZCcsXG4gICAgICAgICAgICAgICAgLy8gd2FzU3ViR3JhcGhFeHBhbmRlZDogZmFsc2UsXG4gICAgICAgICAgICAgICAgbW92YWJsZTogZmFsc2UsXG4gICAgICAgICAgICAgICAgc2VsZWN0YWJsZTogZmFsc2UsXG4gICAgICAgICAgICAgICAgYXZvaWRhYmxlOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAvLyByZXNpemFibGU6IHRydWUsXG5cbiAgICAgICAgICAgICAgICAvLyByZXNpemFibGU6IGZhbHNlLFxuICAgICAgICAgICAgICAgIC8vIHdpZHRoOiBkYXRhPy5vYj8ubWluV2l0aCA/PyA1MCxcbiAgICAgICAgICAgICAgICAvLyBoZWlnaHQ6IDUwMCxcblxuICAgICAgICAgICAgICAgIC8vIGlzU3ViR3JhcGhFeHBhbmRlZDogdHJ1ZSwgLy8gZW5zdXJlIHRoZSBncm91cCBpcyBhbHdheXMgZXhwYW5kZWRcbiAgICAgICAgICAgICAgICAvLyBjb21wdXRlc0JvdW5kc0FmdGVyRHJhZzogdHJ1ZSxcbiAgICAgICAgICAgICAgICAvLyBoYW5kbGVzRHJhZ0Ryb3BGb3JNZW1iZXJzOiB0cnVlLCAvLyBoYW5kbGUgZHJhZy1hbmQtZHJvcCBldmVudHMgZm9yIGl0cyBtZW1iZXIgbm9kZXNcblxuICAgICAgICAgICAgICAgIC8vIG1heFNpemU6IG5ldyBnby5TaXplKDUwMCwgNTAwKSxcbiAgICAgICAgICAgICAgICAvLyBtaW5TaXplOiBuZXcgZ28uU2l6ZSg1MDAsIDUwMCksXG5cbiAgICAgICAgICAgICAgICAvLyBpc1N1YkdyYXBoRXhwYW5kZWQ6IHRydWUsXG4gICAgICAgICAgICAgICAgLy8gbGF5ZXJOYW1lOiBESUFHUkFNLkxBWUVSUy5CQUNLR1JPVU5ELFxuXG4gICAgICAgICAgICAgICAgLy8gbW91c2VEcm9wOiBmdW5jdGlvbiAoZSwgZ3JwKSB7XG4gICAgICAgICAgICAgICAgLy8gICAgIC8vIGRpc2FsbG93IGRyb3BwaW5nIGFueXRoaW5nIG9udG8gYW4gQWRvcm5tZW50XG4gICAgICAgICAgICAgICAgLy8gICAgIGlmIChncnAgaW5zdGFuY2VvZiBnby5BZG9ybm1lbnQpIHJldHVybjtcbiAgICAgICAgICAgICAgICAvLyB9LFxuICAgICAgICAgICAgICAgIC8vIGRyYWdDb21wdXRhdGlvbjogZnVuY3Rpb24gKG5vZGUsIHB0LCBncmlkUHQpIHtcbiAgICAgICAgICAgICAgICAvLyAgICAgbGV0IGdycCA9IG5vZGUuY29udGFpbmluZ0dyb3VwO1xuICAgICAgICAgICAgICAgIC8vICAgICBpZiAoZ3JwICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBsZXQgcmVjdCA9IGdycC5hY3R1YWxCb3VuZHM7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBwdC54ID0gTWF0aC5tYXgocmVjdC5sZWZ0LCBNYXRoLm1pbihwdC54LCByZWN0LnJpZ2h0KSk7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBwdC55ID0gTWF0aC5tYXgocmVjdC50b3AsIE1hdGgubWluKHB0LnksIHJlY3QuYm90dG9tKSk7XG4gICAgICAgICAgICAgICAgLy8gICAgIH1cbiAgICAgICAgICAgICAgICAvLyAgICAgcmV0dXJuIHB0O1xuICAgICAgICAgICAgICAgIC8vIH0sXG5cbiAgICAgICAgICAgICAgICAvLyBkcm9wQ29tcHV0YXRpb246IGZ1bmN0aW9uIChub2RlLCBwdCwgZ3JpZFB0KSB7XG4gICAgICAgICAgICAgICAgLy8gICAgIGxldCBncnAgPSBub2RlLmNvbnRhaW5pbmdHcm91cDtcbiAgICAgICAgICAgICAgICAvLyAgICAgaWYgKGdycCAhPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgbGV0IHJlY3QgPSBncnAuYWN0dWFsQm91bmRzO1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgcHQueCA9IE1hdGgubWF4KHJlY3QubGVmdCwgTWF0aC5taW4ocHQueCwgcmVjdC5yaWdodCkpO1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgcHQueSA9IE1hdGgubWF4KHJlY3QudG9wLCBNYXRoLm1pbihwdC55LCByZWN0LmJvdHRvbSkpO1xuICAgICAgICAgICAgICAgIC8vICAgICB9XG4gICAgICAgICAgICAgICAgLy8gICAgIHJldHVybiBwdDtcbiAgICAgICAgICAgICAgICAvLyB9LFxuXG4gICAgICAgICAgICAgICAgLy8gZHJhZ0NvbXB1dGF0aW9uOiBmdW5jdGlvbiAocGFydCwgcHQsIGdyaWRwdCkge1xuICAgICAgICAgICAgICAgIC8vICAgICAvLyBHZXQgdGhlIGN1cnJlbnQgZ3JvdXAncyBhY3R1YWwgYm91bmRzXG4gICAgICAgICAgICAgICAgLy8gICAgIGNvbnN0IGdycCA9IHBhcnQuY29udGFpbmluZ0dyb3VwO1xuICAgICAgICAgICAgICAgIC8vICAgICBpZiAoZ3JwKSB7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBjb25zdCBibmRzID0gZ3JwLmFjdHVhbEJvdW5kcztcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgIGNvbnN0IGxvYyA9IHBhcnQubG9jYXRpb247XG5cbiAgICAgICAgICAgICAgICAvLyAgICAgICAgIC8vIFNlZSBpZiB0aGUgcGFydCdzIG5ldyBsb2NhdGlvbiB3b3VsZCBiZSBvdXQgb2YgYm91bmRzXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBjb25zdCBuZXd4ID0gTWF0aC5tYXgoYm5kcy54LCBNYXRoLm1pbihwdC54LCBibmRzLnJpZ2h0IC0gcGFydC5hY3R1YWxCb3VuZHMud2lkdGggLyAyKSk7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBjb25zdCBuZXd5ID0gTWF0aC5tYXgoYm5kcy55LCBNYXRoLm1pbihwdC55LCBibmRzLmJvdHRvbSAtIHBhcnQuYWN0dWFsQm91bmRzLmhlaWdodCAvIDIpKTtcblxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgLy8gTW9kaWZ5IHRoZSByZXN1bHQgcG9pbnQgdG8ga2VlcCB0aGUgUGFydCBpbnNpZGUgdGhlIEdyb3VwXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICByZXR1cm4gbmV3IGdvLlBvaW50KG5ld3gsIG5ld3kpO1xuICAgICAgICAgICAgICAgIC8vICAgICB9XG4gICAgICAgICAgICAgICAgLy8gICAgIHJldHVybiBwdDtcbiAgICAgICAgICAgICAgICAvLyB9LFxuICAgICAgICAgICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgc2VsZi5teURpYWdyYW0/LmNsZWFyU2VsZWN0aW9uKCk7XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgLy8gbW91c2VEcmFnRW50ZXI6IChlLCAgb2JqKSA9PiB7XG4gICAgICAgICAgICAgICAgLy8gfSxcbiAgICAgICAgICAgICAgICAvLyBtb3VzZURyb3A6IChlLCAgb2JqKSA9PiB7XG4gICAgICAgICAgICAgICAgLy8gfSxcbiAgICAgICAgICAgICAgICAvLyBtb3VzZUVudGVyOiAoZSwgb2JqKSA9PiB7XG4gICAgICAgICAgICAgICAgLy8gICAgIGNvbnN0IG5vZGUgPSBvYmoucGFydDtcbiAgICAgICAgICAgICAgICAvLyAgICAgc2VsZi5vbkhvdmVySW5mb0J1dHRvbi5lbWl0KHtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgIGxlZnQ6IGU/LlsnV3InXT8ueCArIDgsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgIG5vZGU6IG5vZGUsXG4gICAgICAgICAgICAgICAgLy8gICAgIH0pO1xuICAgICAgICAgICAgICAgIC8vICAgICAvLyBsZXQgc2hhcGUgPSAobm9kZSBhcyBhbnkpPy5maW5kT2JqZWN0KCdTSEFQRV9LRVknKTtcbiAgICAgICAgICAgICAgICAvLyAgICAgLy8gaWYgKHNoYXBlKSB7XG4gICAgICAgICAgICAgICAgLy8gICAgIC8vICAgICBzaGFwZS5zdHJva2UgPSAnYmx1ZSc7XG4gICAgICAgICAgICAgICAgLy8gICAgIC8vIH1cbiAgICAgICAgICAgICAgICAvLyB9LFxuICAgICAgICAgICAgICAgIC8vIG1vdXNlTGVhdmU6IChlLCBvYmopID0+IHtcbiAgICAgICAgICAgICAgICAvLyAgICAgc2VsZi5vbkhvdmVySW5mb0J1dHRvbi5lbWl0KG51bGwpO1xuICAgICAgICAgICAgICAgIC8vICAgICAvLyBsZXQgc2hhcGUgPSAobm9kZSBhcyBhbnkpPy5maW5kT2JqZWN0KCdTSEFQRV9LRVknKTtcbiAgICAgICAgICAgICAgICAvLyAgICAgLy8gaWYgKHNoYXBlKSB7XG4gICAgICAgICAgICAgICAgLy8gICAgIC8vICAgICBzaGFwZS5zdHJva2UgPSBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuV0hJVEU7XG4gICAgICAgICAgICAgICAgLy8gICAgIC8vIH1cbiAgICAgICAgICAgICAgICAvLyB9LFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsYXlvdXQnLCAnJywgZnVuY3Rpb24gKGRhdGEsIG5vZGUpIHtcbiAgICAgICAgICAgICAgICAvLyByZXR1cm4gZGF0YT8ubGF5b3V0VmFsdWUgPT09IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0xBWU9VVF9FRElUT1IuQVVUT1xuICAgICAgICAgICAgICAgIC8vICAgICA/IHNlbGYuJChnby5MYXllcmVkRGlncmFwaExheW91dCwgeyBkaXJlY3Rpb246IDAgfSlcbiAgICAgICAgICAgICAgICAvLyAgICAgOiBub2RlPy5sYXlvdXQ7XG4gICAgICAgICAgICAgICAgaWYgKGRhdGE/LmxheW91dFZhbHVlICE9PSBkYXRhPy5sYXlvdXRWYWx1ZUNsb25lKSB7XG4gICAgICAgICAgICAgICAgICAgIGRhdGEubGF5b3V0VmFsdWVDbG9uZSA9IGRhdGE/LmxheW91dFZhbHVlO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YT8ubGF5b3V0VmFsdWUgPT09IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0xBWU9VVF9FRElUT1IuQVVUT1xuICAgICAgICAgICAgICAgICAgICAgICAgPyBzZWxmLiQoZ28uTGF5ZXJlZERpZ3JhcGhMYXlvdXQsIHsgZGlyZWN0aW9uOiAwIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICA6IHNlbGYuJChnby5MYXlvdXQpO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBub2RlPy5sYXlvdXQ7XG4gICAgICAgICAgICAgICA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Pz8gNTA7IC8vIEN1c3RvbWl6ZSBtaW5TaXplIGJhc2VkIG9uIGRhdGFcbiAgICAgICAgICAgIC8vIH0pLm9mT2JqZWN0KCksXG4gICAgICAgICAgICAvLyBuZXcgZ28uQmluZGluZygnaGVpZ2h0JywgJycsIGZ1bmN0aW9uIChkYXRhKSB7XG4gICAgICAgICAgICAvLyAgICAgcmV0dXJuIGRhdGE/Lm9iPy5taW5IZWlnaHQgPz8gNTA7IC8vIEN1c3RvbWl6ZSBtaW5TaXplIGJhc2VkIG9uIGRhdGFcbiAgICAgICAgICAgIC8vIH0pLm9mT2JqZWN0KCksXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoZ28uUG9pbnQuc3RyaW5naWZ5KSxcbiAgICAgICAgICAgIC8vIG5ldyBnby5CaW5kaW5nKCdpc1N1YkdyYXBoRXhwYW5kZWQnLCAnZXhwYW5kZWQnKS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgcGFkZGluZzogbmV3IGdvLk1hcmdpbigwLCAwLCAwLCAwKSxcbiAgICAgICAgICAgICAgICAgICAgLy8gbWFyZ2luOm5ldyBnby5NYXJnaW4oMCwgNTAsIDAsIDUwKSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ1JvdW5kZWRSZWN0YW5nbGUnLCB7XG4gICAgICAgICAgICAgICAgICAgIG5hbWU6ICdTSEFQRV9LRVknLFxuICAgICAgICAgICAgICAgICAgICBmaWxsOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTl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ICAgICAgICBtb3ZhYmxlOiBmYWxzZSxcbiAgICAgICAgLy8gICAgICAgICBzZWxlY3RhYmxlOiBmYWxzZSxcbiAgICAgICAgLy8gICAgIH0sXG4gICAgICAgIC8vICAgICAvLyB7XG4gICAgICAgIC8vICAgICAvLyAgICAgLy8gbWluU2l6ZTogbmV3IGdvLlNpemUoNTAwLCA1MDApLFxuICAgICAgICAvLyAgICAgLy8gICAgIG1vdmFibGU6IGZhbHNlLFxuICAgICAgICAvLyAgICAgLy8gICAgIGFyaWFSZWFkT25seTogdHJ1ZSxcbiAgICAgICAgLy8gICAgIC8vIH0sXG4gICAgICAgIC8vICAgICB0aGlzLiQoXG4gICAgICAgIC8vICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgIC8vICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAvLyAgICAgICAgIHtcbiAgICAgICAgLy8gICAgICAgICAgICAgcGFkZGluZzogbmV3IGdvLk1hcmdpbigwLCAwLCAwLCAwKSxcbiAgICAgICAgLy8gICAgICAgICB9LFxuICAgICAgICAvLyAgICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ1JvdW5kZWRSZWN0YW5nbGUnLCB7XG4gICAgICAgIC8vICAgICAgICAgICAgIGZpbGw6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIC8vICAgICAgICAgICAgIC8vIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLlJFU09MVVRJT05fQkxVRSxcbiAgICAgICAgLy8gICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuV0hJVEUsXG4gICAgICAgIC8vICAgICAgICAgICAgIHN0cm9rZVdpZHRoOiAyLFxuICAgICAgICAvLyAgICAgICAgICAgICBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgLy8gICAgICAgICB9KSxcbiAgICAgICAgLy8gICAgICAgICB0aGlzLiQoZ28uUGxhY2Vob2xkZXIsIHtcbiAgICAgICAgLy8gICAgICAgICAgICAgcGFkZGluZzogbmV3IGdvLk1hcmdpbigwLCAwLCAwLCAwKSxcbiAgICAgICAgLy8gICAgICAgICB9KSxcbiAgICAgICAgLy8gICAgICksXG4gICAgICAgIC8vICk7XG4gICAgICAgIGxldCBub2RlID0gdGhpcy4kKFxuICAgICAgICAgICAgZ28uR3JvdXAsXG4gICAgICAgICAgICAnU3BvdCcsXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgbGF5b3V0OiB0aGlzLiQoZ28uTGF5ZXJlZERpZ3JhcGhMYXlvdXQsIHsgZGlyZWN0aW9uOiAwIH0pLFxuICAgICAgICAgICAgICAgIG1vdmFibGU6IGZhbHNlLFxuICAgICAgICAgICAgICAgIHNlbGVjdGFibGU6IGZhbHNlLFxuICAgICAgICAgICAgICAgIGF2b2lkYWJsZTogZmFsc2UsXG4gICAgICAgICAgICAgICAgLy8gaXNTdWJHcmFwaEV4cGFuZGVkOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAvLyBpc1N1YkdyYXBoRXhwYW5kZWQ6IGZhbHNlLFxuICAgICAgICAgICAgICAgIC8vIGxheWVyTmFtZTogJ0ZvcmVncm91bmQnLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShnby5Qb2ludC5zdHJpbmdpZnkpLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIHBhZGRpbmc6IHBhZGRpbmcgPz8gbmV3IGdvLk1hcmdpbigwLCAwLCAwLCAwKSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ1JvdW5kZWRSZWN0YW5nbGUnLCB7XG4gICAgICAgICAgICAgICAgICAgIGZpbGw6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLldISVRFLFxuICAgICAgICAgICAgICAgICAgICAvLyBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5BTElaQVJJTixcbiAgICAgICAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDIsXG4gICAgICAgICAgICAgICAgICAgIC8vIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgIHRoaXMuJChnby5QbGFjZWhvbGRlciwge1xuICAgICAgICAgICAgICAgICAgICBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDApLFxuICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgKSxcbiAgICAgICAgKTtcbiAgICAgICAgdGhpcy5teURpYWdyYW0uZ3JvdXBUZW1wbGF0ZU1hcC5zZXQodGl0bGUsIG5vZGUpO1xuICAgIH1cblxuICAgIG1ha2VHcm91cFpvbmVUZW1wbGF0ZShcbiAgICAgICAgc2l6ZTogeyB3OiBudW1iZXI7IGg6IG51bWJlciB9ID0geyB3OiBBdG9Hb2pzRWRpdG9yTW9kZWwuR1JJRF9TSVpFICogMTQsIGg6IEF0b0dvanNFZGl0b3JNb2RlbC5HUklEX1NJWkUgKiA1IH0sXG4gICAgKSB7XG4gICAgICAgIGNvbnN0IHNlbGYgPSB0aGlzO1xuICAgICAgICBsZXQgbm9kZSA9IHRoaXMuJChcbiAgICAgICAgICAgIGdvLkdyb3VwLFxuICAgICAgICAgICAgJ1ZlcnRpY2FsJyxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBsYXlvdXQ6IHRoaXMuJChnby5HcmlkTGF5b3V0LCB7IHdyYXBwaW5nQ29sdW1uOiAxLCBzcGFjaW5nOiBuZXcgZ28uU2l6ZSgwLCAwKSB9KSxcbiAgICAgICAgICAgIH0sXG5cbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBsb2NhdGlvblNwb3Q6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgIG1vdXNlT3ZlcjogZnVuY3Rpb24gKGUsIG9iaikge1xuICAgICAgICAgICAgICAgICAgICAvLyBzZWxmLnNob3dQb2ludChvYmo/LnBhcnQ/LmxvY2F0aW9uKTtcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKG9iaj8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgb2JqPy5kYXRhPy5vblNlbGVjdGVkKG9iaj8uZGF0YSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHNlbGVjdGlvbkNoYW5nZWQ6IChlKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmICghZS5pc1NlbGVjdGVkICYmIGU/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGU/LmRhdGE/Lm9uU2VsZWN0ZWQobnVsbCk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgICAgc2VsZWN0aW9uQWRvcm5tZW50VGVtcGxhdGU6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHlcbiAgICAgICAgICAgICAgICAgICAgPyBudWxsXG4gICAgICAgICAgICAgICAgICAgIDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICBnby5BZG9ybm1lbnQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2hhZG93VmlzaWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNoYWRvd0JsdXI6IDYsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaGFkb3dPZmZzZXQ6IG5ldyBnby5Qb2ludCgwLCAyKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNoYWRvd0NvbG9yOiAnIzAwMDAwMDI5JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsIHsgZmlsbDogbnVsbCwgc3Ryb2tlOiAnZG9kZ2VyYmx1ZScsIHN0cm9rZVdpZHRoOiA0IH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBsYWNlaG9sZGVyLCB7IHBhZGRpbmc6IDMgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ0hvcml6b250YWwnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5Ub3BSaWdodCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5Cb3R0b20sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmFja2dyb3VuZDogJ3doaXRlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ0J1dHRvbicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfZHJhZ0RhdGE6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5URVhUX05PREUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuYW1lOiAwLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sb3I6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5CTFVFLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGljazogc2VsZi5hZGRJdGVtT25Hcm91cFpvbmUsIC8vIGRlZmluZWQgYmVsb3csIHRvIHN1cHBvcnQgYSBjbGljayBvbiB0aGUgYnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdCdXR0b25Cb3JkZXIuc3Ryb2tlV2lkdGgnOiAwLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnQnV0dG9uQm9yZGVyLmZpbGwnOiAnd2hpdGUnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHQ6ICdcXHVmMDU1JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9udDogJzIwcHggXCJGb250IEF3ZXNvbWUgNiBQcm9cIicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGN1cnNvcjogJ3BvaW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHJva2U6ICcjMmMyYzJjJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBtb3JlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmdlbmVyYXRlQWN0aW9uR3JvdXAoW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuUkVOQU1FLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuREVUQUlMUyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLk9VVEZMT1csXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERUxFVEUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAvLyBFZGl0IFRleHRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAnQnV0dG9uJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgIGNsaWNrOiBzZWxmLmVkaXRUZXh0R3JvdXBab25lLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICAnQnV0dG9uQm9yZGVyLnN0cm9rZVdpZHRoJzogMCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgJ0J1dHRvbkJvcmRlci5maWxsJzogJ3doaXRlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICB0ZXh0OiAnXFx1ZTFiZicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgIGZvbnQ6ICcyMHB4IFwiRm9udCBBd2Vzb21lIDYgUHJvXCInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgc3Ryb2tlOiAnIzJjMmMyYycsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgIC8vIE9wZW4gRGV0YWlsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgJ0J1dHRvbicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICBjbGljazogKGUsIG9iajogYW55KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICBjb25zdCBub2RlID0gb2JqLnBhcnQ7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICBzZWxmLm9uT3BlbkRldGFpbC5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgICdCdXR0b25Cb3JkZXIuc3Ryb2tlV2lkdGgnOiAwLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICAnQnV0dG9uQm9yZGVyLmZpbGwnOiAnd2hpdGUnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvL1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICB0ZXh0OiAnXFx1ZTQ5YScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgIGZvbnQ6ICcyMHB4IFwiRm9udCBBd2Vzb21lIDYgUHJvXCInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAhdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgID8gdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICAgICdCdXR0b24nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgYWN0aW9uTW92ZTogc2VsZi5kcmFnTmV3Tm9kZSwgLy8gZGVmaW5lZCBiZWxvdywgdG8gc3VwcG9ydCBkcmFnZ2luZyBmcm9tIHRoZSBidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgX2RyYWdEYXRhOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICB0eXBlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuVEVYVF9OT0RFLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgbmFtZTogMCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgIGNvbG9yOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuQkxVRSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgY2xpY2s6IHNlbGYuY2xpY2tOZXdOb2RlLCAvLyBkZWZpbmVkIGJlbG93LCB0byBzdXBwb3J0IGEgY2xpY2sgb24gdGhlIGJ1dHRvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAnQnV0dG9uQm9yZGVyLnN0cm9rZVdpZHRoJzogMCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgJ0J1dHRvbkJvcmRlci5maWxsJzogJ3doaXRlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICB0ZXh0OiAnXFx1ZTE1NycsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgIGZvbnQ6ICcyMHB4IFwiRm9udCBBd2Vzb21lIDYgUHJvXCInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzJjMmMyYycsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgOiB7fSxcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICdCdXR0b24nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgY2xpY2s6IHNlbGYuZGVsZXRlTm9kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgJ0J1dHRvbkJvcmRlci5zdHJva2VXaWR0aCc6IDAsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgICdCdXR0b25Cb3JkZXIuZmlsbCc6ICd3aGl0ZScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgdGV4dDogJ1xcdWYyZWQnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICBmb250OiAnMjBweCBcIkZvbnQgQXdlc29tZSA2IFByb1wiJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgY3Vyc29yOiAncG9pbnRlcicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ1JvdW5kZWRSZWN0YW5nbGUnLCB7XG4gICAgICAgICAgICAgICAgICAgIGZpbGw6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLlJFU09MVVRJT05fQkxVRSxcbiAgICAgICAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDIsXG4gICAgICAgICAgICAgICAgICAgIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgICAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncsIE5hTiksXG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LlRvcCxcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhZGRpbmc6IG5ldyBnby5NYXJnaW4oMTcsIDEwLCAxNiwgMTApLFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbig1LCAwLCAxMCwgMCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWRpdGFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzaXJlZFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCAyNSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuTklHSFRfUklERVIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9udDogJ2JvbGQgMTZweCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suTm9uZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvdmVyZmxvdzogZ28uVGV4dEJsb2NrLk92ZXJmbG93RWxsaXBzaXMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnVG9vbFRpcCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpLm1ha2VUd29XYXkoKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5QbGFjZWhvbGRlciwgJ1ZlcnRpY2FsJywge1xuICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAxLFxuICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICApLFxuXG4gICAgICAgICAgICAgICAgdGhpcy5tYWtlUG9ydCgnVCcsIGdvLlNwb3QuVG9wLCBnby5TcG90LlRvcFNpZGUsIGZhbHNlLCB0cnVlKSxcbiAgICAgICAgICAgICAgIC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AgICAgIC8vICAgICAgICAgaWYgKChvYmogYXMgYW55KS5wYXJ0Py5vYj8udmFsdWUgPT09IFZBTFVFX05BKSB7XG4gICAgICAgICAgICAvLyAgICAgICAgICAgICBzZWxmLm9uSG92ZXJJbmZvQnV0dG9uLmVtaXQoe1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgIGxlZnQ6IGU/LlsnV3InXT8ueCArIDgsXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgdG9wOiBlPy5bJ1dyJ10/LnksXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgbm9kZTogbm9kZVxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAvLyAgICAgICAgIH1cbiAgICAgICAgICAgIC8vICAgICB9LFxuICAgICAgICAgICAgLy8gICAgIG1vdXNlTGVhdmU6IChlLCBvYmopID0+IHtcbiAgICAgICAgICAgIC8vICAgICAgICAgaWYgKChvYmogYXMgYW55KS5wYXJ0Py5vYj8udmFsdWUgPT09IFZBTFVFX05BKSB7XG4gICAgICAgICAgICAvLyAgICAgICAgICAgICBzZWxmLm9uSG92ZXJJbmZvQnV0dG9uLmVtaXQobnVsbCk7XG4gICAgICAgICAgICAvLyAgICAgICAgIH1cbiAgICAgICAgICAgIC8vICAgICB9LFxuICAgICAgICAgICAgLy8gICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICAgIC8vICAgICAgICAgY29uc3Qgbm9kZSA9IG9iai5wYXJ0O1xuICAgICAgICAgICAgLy8gICAgICAgICB0aGlzLmlzU2hvd05vZGVJbmZvID8gc2VsZi5vbkNsaWNrSW5mb0J1dHRvbi5lbWl0KHtcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIGxlZnQ6IGU/LlsnV3InXT8ueCxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgbm9kZTogbm9kZVxuICAgICAgICAgICAgLy8gICAgICAgICB9KSA6IG51bGw7XG4gICAgICAgICAgICAvLyAgICAgfSxcbiAgICAgICAgICAgIC8vIH0sXG4gICAgICAgICAgICAvLyBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoZ28uUG9pbnQuc3RyaW5naWZ5KSxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBtb3ZhYmxlOiBmYWxzZSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgd2lkdGg6IHNpemUudyxcbiAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiBzaXplLmgsXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdSZWN0YW5nbGUnLCB7XG4gICAgICAgICAgICAgICAgICAgIGZpbGw6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5MSUdIVF9CTFVFLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5MSU5LX1dBVEVSLFxuICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICdWZXJ0aWNhbCcsXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBlZGl0YWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByb3c6IDIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDEwLCAwLCA1LCAwKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb250OiAnYm9sZCAxMnB4IEFyaWFsJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLk5JR0hUX1JJREVSLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpLFxuICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnbmFtZScsICh4KSA9PiAhIXgpLFxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICdIb3Jpem9udGFsJyxcblxuICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAxMCwgMCwgMTApLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgNSwgMTAsIDApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb250OiAnMTJweCBzYW5zLXNlcmlmJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuTklHSFRfUklERVIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdyYXA6IGdvLlRleHRCbG9jay5XcmFwRml0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlZGl0YWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaXNNdWx0aWxpbmU6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAxMDAsIDE1KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb3ZlcmZsb3c6IGdvLlRleHRCbG9jay5PdmVyZmxvd0VsbGlwc2lzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnVG9vbFRpcCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZUl0ZW0nKS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZUl0ZW0nKS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnbmFtZUl0ZW0nLCAoeCkgPT4gISF4KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDUsIDEwLCAwKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9udDogJzEycHggc2Fucy1zZXJpZicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkNFUlVMRUFOLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suV3JhcEZpdCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dDogJzwgJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnZGF0YScsICh4KSA9PiB0eXBlb2YgeD8ucXVhbnRpdHkgPT09ICdudW1iZXInKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDUsIDEwLCAwKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9udDogJzEycHggc2Fucy1zZXJpZicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkNFUlVMRUFOLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suV3JhcEZpdCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ2RhdGEnLCAoeCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAodHlwZW9mIHg/LnF1YW50aXR5ICE9PSAnbnVtYmVyJykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICcnO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGZvcm1hdHRlZDogYW55ID0gVXRpbHNTZXJ2aWNlLmNvbnZlcnRQcmVmaXhlc0RhdGEoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IHg/LnF1YW50aXR5LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdW5pdDogeD8udW5pdCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBmb3JtYXR0ZWQuc2hvcnRlbmVkTnVtYmVyICsgJyAnICsgZm9ybWF0dGVkLnVuaXRQcmVmaXhlcyArIHg/LnVuaXQgPz8gJyc7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnZGF0YScsICh4KSA9PiB0eXBlb2YgeD8ucXVhbnRpdHkgPT09ICdudW1iZXInKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICksXG5cbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgNSwgMTAsIDApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb250OiAnMTJweCBzYW5zLXNlcmlmJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuQ0VSVUxFQU4sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdyYXA6IGdvLlRleHRCbG9jay5XcmFwRml0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0OiAnID4nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnZGF0YScsICh4KSA9PiB0eXBlb2YgeD8ucXVhbnRpdHkgPT09ICdudW1iZXInKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICksXG4gICAgICAgICk7XG4gICAgICAgIHRoaXMubXlEaWFncmFtLm5vZGVUZW1wbGF0ZU1hcC5zZXQoQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlpPTkVfRU5FUkdZX0lURU0sIG5vZGUpO1xuICAgIH1cblxuICAgIG1ha2VTcGVjaWFsVGVtcGxhdGUoXG4gICAgICAgIGljb24sXG4gICAgICAgIHRpdGxlLFxuICAgICAgICBzaXplOiB7IHc6IG51bWJlcjsgaDogbnVtYmVyIH0gPSB7IHc6IEF0b0dvanNFZGl0b3JNb2RlbC5HUklEX1NJWkUgKiA1LCBoOiBBdG9Hb2pzRWRpdG9yTW9kZWwuR1JJRF9TSVpFICogNSB9LFxuICAgICkge1xuICAgICAgICBsZXQgbm9kZTogYW55ID0gbnVsbDtcbiAgICAgICAgc3dpdGNoICh0aXRsZSkge1xuICAgICAgICAgICAgY2FzZSBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuU1BFQ0lBTF9QUk9DRVNTOlxuICAgICAgICAgICAgICAgIG5vZGUgPSB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgIGdvLk5vZGUsXG4gICAgICAgICAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgICAgICAgICAgLy8ge1xuICAgICAgICAgICAgICAgICAgICAvLyAgICAgZnJvbVNwb3Q6IGdvLlNwb3QuUmlnaHQsICAvLyBjb21pbmcgb3V0IGZyb20gbWlkZGxlLXJpZ2h0XG4gICAgICAgICAgICAgICAgICAgIC8vICAgICB0b1Nwb3Q6IGdvLlNwb3QuTGVmdFxuICAgICAgICAgICAgICAgICAgICAvLyB9LFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbGljazogKGUsIG9iajogYW55KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9iaj8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQob2JqPy5kYXRhKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgc2VsZWN0aW9uQ2hhbmdlZDogKGUpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoIWUuaXNTZWxlY3RlZCAmJiBlPy5kYXRhPy5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGU/LmRhdGE/Lm9uU2VsZWN0ZWQobnVsbCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKS5tYWtlVHdvV2F5KGdvLlBvaW50LnN0cmluZ2lmeSksXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgICAgICAgICAgeyB3aWR0aDogc2l6ZS53LCBoZWlnaHQ6IHNpemUuaCB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnQ2lyY2xlJywge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbGw6ICd3aGl0ZScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzJEM0I3NycsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gc3Ryb2tlRGFzaEFycmF5OiBbNSwgNV0sXG4gICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5QUk9DRVNTLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDMsIDMsIDEwLCAzKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIE5hTiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogJyM0NDQ0NDQnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb250OiAnbm9ybWFsIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5QaWN0dXJlLCBpY29uLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvdzogMSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDEwLCAwKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoNjAsIDYwKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgKSxcblxuICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uUGFuZWwsICdWZXJ0aWNhbCcsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDAsIDAuNSwgOCwgMCksXG4gICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uUGFuZWwsICdWZXJ0aWNhbCcsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5SaWdodCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBuZXcgZ28uU3BvdCgxLCAwLjUsIC04LCAwKSxcbiAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgIC8vIGZvdXIgbmFtZWQgcG9ydHMsIG9uZSBvbiBlYWNoIHNpZGU6XG5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5tYWtlUG9ydCgnVCcsIGdvLlNwb3QuVG9wLCBnby5TcG90LlRvcFNpZGUsIGZhbHNlLCB0cnVlKSxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5tYWtlUG9ydCgnTCcsIGdvLlNwb3QuTGVmdCwgZ28uU3BvdC5MZWZ0U2lkZSwgdHJ1ZSwgdHJ1ZSksXG4gICAgICAgICAgICAgICAgICAgIHRoaXMubWFrZVBvcnQoJ1InLCBnby5TcG90LlJpZ2h0LCBnby5TcG90LlJpZ2h0U2lkZSwgdHJ1ZSwgdHJ1ZSksXG4gICAgICAgICAgICAgICAgICAgIHRoaXMubWFrZVBvcnQoJ0InLCBnby5TcG90LkJvdHRvbSwgZ28uU3BvdC5Cb3R0b21TaWRlLCB0cnVlLCBmYWxzZSksXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIGNhc2UgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlNQRUNJQUxfU1RPUkFHRTpcbiAgICAgICAgICAgICAgICBub2RlID0gdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICBnby5Ob2RlLFxuICAgICAgICAgICAgICAgICAgICAnU3BvdCcsXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAob2JqPy5kYXRhPy5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9iaj8uZGF0YT8ub25TZWxlY3RlZChvYmo/LmRhdGEpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3Rpb25DaGFuZ2VkOiAoZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghZS5pc1NlbGVjdGVkICYmIGU/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZT8uZGF0YT8ub25TZWxlY3RlZChudWxsKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoZ28uUG9pbnQuc3RyaW5naWZ5KSxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgICAgICAgICB7IHdpZHRoOiBzaXplLncsIGhlaWdodDogc2l6ZS5oIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdDaXJjbGUnLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZmlsbDogJ3doaXRlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHJva2U6ICcjMkQzQjc3JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHJva2VXaWR0aDogMixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICdUYWJsZScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlNUT1JBR0UsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMywgMywgMTAsIDMpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgTmFOKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvbnQ6ICdub3JtYWwgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnby5QaWN0dXJlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByb3c6IDEsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgMCwgMTAsIDApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1pblNpemU6IG5ldyBnby5TaXplKDQwLCA0MCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSg1MCwgNTApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc291cmNlJywgJ2ljb24nKS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICksXG5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVmVydGljYWwnLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBuZXcgZ28uU3BvdCgwLCAwLjUsIDgsIDApLFxuICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVmVydGljYWwnLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuUmlnaHQsXG4gICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnRGb2N1czogbmV3IGdvLlNwb3QoMSwgMC41LCAtOCwgMCksXG4gICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAvLyBmb3VyIG5hbWVkIHBvcnRzLCBvbmUgb24gZWFjaCBzaWRlOlxuXG4gICAgICAgICAgICAgICAgICAgIHRoaXMubWFrZVBvcnQoJ1QnLCBnby5TcG90LlRvcCwgZ28uU3BvdC5Ub3BTaWRlLCBmYWxzZSwgdHJ1ZSksXG4gICAgICAgICAgICAgICAgICAgIHRoaXMubWFrZVBvcnQoJ0wnLCBnby5TcG90LkxlZnQsIGdvLlNwb3QuTGVmdFNpZGUsIHRydWUsIHRydWUpLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLm1ha2VQb3J0KCdSJywgZ28uU3BvdC5SaWdodCwgZ28uU3BvdC5SaWdodFNpZGUsIHRydWUsIHRydWUpLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLm1ha2VQb3J0KCdCJywgZ28uU3BvdC5Cb3R0b20sIGdvLlNwb3QuQm90dG9tU2lkZSwgdHJ1ZSwgZmFsc2UpLFxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5TUEVDSUFMX1NUT1JFOlxuICAgICAgICAgICAgICAgIG5vZGUgPSB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgIGdvLk5vZGUsXG4gICAgICAgICAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xpY2s6IChlLCBvYmo6IGFueSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb2JqPy5kYXRhPy5vblNlbGVjdGVkKG9iaj8uZGF0YSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHNlbGVjdGlvbkNoYW5nZWQ6IChlKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFlLmlzU2VsZWN0ZWQgJiYgZT8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlPy5kYXRhPy5vblNlbGVjdGVkKG51bGwpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShnby5Qb2ludC5zdHJpbmdpZnkpLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIHsgd2lkdGg6IHNpemUudywgaGVpZ2h0OiBzaXplLmggfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ0NpcmNsZScsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmaWxsOiAnd2hpdGUnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogJyMyRDNCNzcnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZVdpZHRoOiAyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCAnU3RvcmUnLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDMsIDMsIDEwLCAzKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIE5hTiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogJyM0NDQ0NDQnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb250OiAnbm9ybWFsIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5QaWN0dXJlLCBpY29uLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJvdzogMSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDEwLCAwKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoNjAsIDYwKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5TUEVDSUFMX0RJU0NIQVJHRTpcbiAgICAgICAgICAgICAgICBub2RlID0gdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICBnby5Ob2RlLFxuICAgICAgICAgICAgICAgICAgICAnU3BvdCcsXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAob2JqPy5kYXRhPy5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9iaj8uZGF0YT8ub25TZWxlY3RlZChvYmo/LmRhdGEpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3Rpb25DaGFuZ2VkOiAoZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghZS5pc1NlbGVjdGVkICYmIGU/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZT8uZGF0YT8ub25TZWxlY3RlZChudWxsKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoZ28uUG9pbnQuc3RyaW5naWZ5KSxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgICAgICAgICB7IHdpZHRoOiBzaXplLncsIGhlaWdodDogc2l6ZS5oIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdDaXJjbGUnLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZmlsbDogJ3doaXRlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHJva2U6ICcjMkQzQjc3JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHJva2VXaWR0aDogMixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICdUYWJsZScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgJ0Rpc2NoYXJnZScsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMywgMywgMTAsIDMpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgTmFOKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvbnQ6ICdub3JtYWwgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBpY3R1cmUsIGljb24sIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAxLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgMCwgMTAsIDApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSg2MCwgNjApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbWFnZVN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LlVuaWZvcm0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlNQRUNJQUxfT1RIRVI6XG4gICAgICAgICAgICAgICAgbm9kZSA9IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgZ28uTm9kZSxcbiAgICAgICAgICAgICAgICAgICAgJ1Nwb3QnLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbGljazogKGUsIG9iajogYW55KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9iaj8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQob2JqPy5kYXRhKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgc2VsZWN0aW9uQ2hhbmdlZDogKGUpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoIWUuaXNTZWxlY3RlZCAmJiBlPy5kYXRhPy5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGU/LmRhdGE/Lm9uU2VsZWN0ZWQobnVsbCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKS5tYWtlVHdvV2F5KGdvLlBvaW50LnN0cmluZ2lmeSksXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgICAgICAgICAgeyB3aWR0aDogc2l6ZS53LCBoZWlnaHQ6IHNpemUuaCB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnQ2lyY2xlJywge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbGw6ICd3aGl0ZScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzJEM0I3NycsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gc3Ryb2tlRGFzaEFycmF5OiBbNSwgNV0sXG4gICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssICdPdGhlcicsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMywgMywgMTAsIDMpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgTmFOKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvbnQ6ICdub3JtYWwgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBpY3R1cmUsIGljb24sIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcm93OiAxLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgMCwgMTAsIDApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSg2MCwgNjApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbWFnZVN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LlVuaWZvcm0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAobm9kZSkge1xuICAgICAgICAgICAgdGhpcy5teURpYWdyYW0ubm9kZVRlbXBsYXRlTWFwLnNldCh0aXRsZSwgbm9kZSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBzdGFydEFuaW1hdGlvbigpIHtcbiAgICAgICAgY29uc3QgZGlhZ3JhbSA9IHRoaXMubXlEaWFncmFtO1xuICAgICAgICAvLyBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgLy8gICAgIGRpYWdyYW0ubGlua3MuZWFjaCgobGluaykgPT4ge1xuICAgICAgICAvLyAgICAgfSk7XG4gICAgICAgIC8vIH0pO1xuICAgICAgICB0cnkge1xuICAgICAgICAgICAgdGhpcy5hbmltYXRpb25JbnRlcnZhbCA9IHNldEludGVydmFsKCgpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCBvbGRza2lwcyA9IGRpYWdyYW0uc2tpcHNVbmRvTWFuYWdlcjtcbiAgICAgICAgICAgICAgICBkaWFncmFtLnNraXBzVW5kb01hbmFnZXIgPSB0cnVlO1xuXG4gICAgICAgICAgICAgICAgZGlhZ3JhbS5saW5rcy5lYWNoKChsaW5rKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IHNoYXBlID0gbGluay5maW5kT2JqZWN0KCdQSVBFJyk7XG4gICAgICAgICAgICAgICAgICAgIGlmICghIXNoYXBlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBjb25zdCBvZmYgPSBzaGFwZT8uc3Ryb2tlRGFzaE9mZnNldCAtIDM7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBvZmYgPSBzaGFwZT8uc3Ryb2tlRGFzaE9mZnNldCAtIDk7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBhbmltYXRlIChtb3ZlKSB0aGUgc3Ryb2tlIGRhc2hcbiAgICAgICAgICAgICAgICAgICAgICAgIHNoYXBlLnN0cm9rZURhc2hPZmZzZXQgPSBvZmYgPD0gMCA/IDYwIDogb2ZmO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgZGlhZ3JhbS5za2lwc1VuZG9NYW5hZ2VyID0gb2xkc2tpcHM7XG4gICAgICAgICAgICB9LCA2MDApO1xuICAgICAgICAgICAgLy8gNjBcbiAgICAgICAgfSBjYXRjaCAoZSkge31cbiAgICB9XG5cbiAgICBzdG9wQW5pbWF0aW9uKCkge1xuICAgICAgICBpZiAodGhpcy5hbmltYXRpb25JbnRlcnZhbCkge1xuICAgICAgICAgICAgY2xlYXJJbnRlcnZhbCh0aGlzLmFuaW1hdGlvbkludGVydmFsKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHRvRGF0YVVSTCh1cmwsIGNhbGxiYWNrKSB7XG4gICAgICAgIGNvbnN0IHhociA9IG5ldyBYTUxIdHRwUmVxdWVzdCgpO1xuICAgICAgICB4aHIub25sb2FkID0gZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgY29uc3QgcmVhZGVyID0gbmV3IEZpbGVSZWFkZXIoKTtcbiAgICAgICAgICAgIHJlYWRlci5vbmxvYWRlbmQgPSBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgY2FsbGJhY2socmVhZGVyLnJlc3VsdCk7XG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgcmVhZGVyLnJlYWRBc0RhdGFVUkwoeGhyLnJlc3BvbnNlKTtcbiAgICAgICAgfTtcbiAgICAgICAgeGhyLm9wZW4oJ0dFVCcsIHVybCk7XG4gICAgICAgIHhoci5yZXNwb25zZVR5cGUgPSAnYmxvYic7XG4gICAgICAgIHhoci5zZW5kKCk7XG4gICAgfVxuXG4gICAgZ2V0QmFzZTY0RGlhZ3JhbVdpdGhFbXB0eURhdGEoKSB7XG4gIC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gICAgICAgICAgICAgICAgc2VsZi50b0RhdGFVUkwoc3ZnRWxlbWVudC5ocmVmLmJhc2VWYWwsIGZ1bmN0aW9uIChkYXRhVXJsKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBzdmdFbGVtZW50LnNldEF0dHJpYnV0ZSgnaHJlZicsIGRhdGFVcmwpO1xuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgLy8gTWFrZSBUZXh0IE5vZGUgU2hhcGUgQm9yZGVyXG4gICAgICAgICAgICAgICAgaWYgKGdyYXBoT2JqZWN0Py5uYW1lID09PSAndGV4dE5vZGVTaGFwZScpIHtcbiAgICAgICAgICAgICAgICAgICAgc3ZnRWxlbWVudC5zZXRBdHRyaWJ1dGUoJ3N0cm9rZScsICdyZ2JhKDY0LCAxODEsIDIwNiwgMC42KScpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAvLyBFbXB0eSBWYWx1ZVxuICAgICAgICAgICAgICAgIGlmIChncmFwaE9iamVjdD8ubmFtZSA9PT0gJ3RleHRCbG9ja1ZhbHVlJyB8fCBncmFwaE9iamVjdD8ubmFtZSA9PT0gJ3RleHRCbG9ja1VuaXRQcmVmaXhlcycpIHtcbiAgICAgICAgICAgICAgICAgICAgc3ZnRWxlbWVudC50ZXh0Q29udGVudCA9ICcnO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZiAoc3ZnRWxlbWVudC5jbGlwUGF0aCkge1xuICAgICAgICAgICAgICAgICAgICBzdmdFbGVtZW50LmNsaXBQYXRoID0gbnVsbDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgY2FsbGJhY2s6IChzdmcpID0+IHtcbiAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3Qgc3ZnU3RyID0gbmV3IFhNTFNlcmlhbGl6ZXIoKS5zZXJpYWxpemVUb1N0cmluZyhzdmcpO1xuICAgICAgICAgICAgICAgICAgICAvLyBGb3IgVGVzdFxuICAgICAgICAgICAgICAgICAgICAvLyBuZXdEb2N1bWVudD8uYm9keT8uYXBwZW5kQ2hpbGQoc3ZnKTtcblxuICAgICAgICAgICAgICAgICAgICBjb25zdCBiYXNlNjRTdmcgPSBgZGF0YTppbWFnZS9zdmcreG1sO2Jhc2U2NCwke3dpbmRvdy5idG9hKHVuZXNjYXBlKGVuY29kZVVSSUNvbXBvbmVudChzdmdTdHIpKSl9YDtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgaW1nID0gbmV3IEltYWdlKCk7XG4gICAgICAgICAgICAgICAgICAgIGltZy5zcmMgPSBiYXNlNjRTdmc7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGNhbnZhcyA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2NhbnZhcycpO1xuICAgICAgICAgICAgICAgICAgICAvLyBnZXQgY2FudmFzIGNvbnRleHQgZm9yIGRyYXdpbmcgb24gY2FudmFzXG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGNvbnRleHQgPSBjYW52YXMuZ2V0Q29udGV4dCgnMmQnKTtcbiAgICAgICAgICAgICAgICAgICAgaW1nLm9ubG9hZCA9IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHN2Z1dpZHRoID0gaW1nLndpZHRoO1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3Qgc3ZnSGVpZ2h0ID0gaW1nLmhlaWdodDtcblxuICAgICAgICAgICAgICAgICAgICAgICAgY2FudmFzLndpZHRoID0gc3ZnV2lkdGg7XG4gICAgICAgICAgICAgICAgICAgICAgICBjYW52YXMuaGVpZ2h0ID0gc3ZnSGVpZ2h0O1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoY29udGV4dCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRleHQuZHJhd0ltYWdlKGltZywgMCwgMCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgYmFzZTY0UE5HID0gY2FudmFzLnRvRGF0YVVSTCgnaW1hZ2UvanBlZycpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYuZW1pdEltYWdlVG9wb2xvZ3koYmFzZTY0UE5HLnJlcGxhY2UoJ2RhdGE6aW1hZ2UvanBlZztiYXNlNjQsJywgJycpKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICB9LCAxMDAwKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGVtaXRJbWFnZVRvcG9sb2d5KGJhc2U2NCkge1xuICAgICAgICB0aGlzLmNhbGxiYWNrSW1hZ2VUb3BvbG9neS5lbWl0KGJhc2U2NCk7XG4gICAgfVxuXG4gICAgb3BlbkFjdGlvbk1lbnUoKSB7XG4gICAgICAgIC8vIFdoZW4gdGhpcyBub2RlIGlzIGNsaWNrZWQsIGFkanVzdCB0aGUgbWVudSBwb3NpdGlvblxuICAgICAgICBjb25zdCBtb3VzZVB0ID0gdGhpcy5teURpYWdyYW0ubGFzdElucHV0LnZpZXdQb2ludDtcblxuICAgICAgICAvLyAvLyBXaGVuIHRoaXMgbm9kZSBpcyBjbGlja2VkLCBkaXNwbGF5IHRoZSBkcm9wZG93biBtZW51XG4gICAgICAgIGNvbnN0IG1lbnUgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCh0aGlzLmFjdGlvbk1lbnVJZCk7XG4gICAgICAgIGlmIChtZW51KSB7XG4gICAgICAgICAgICBtZW51LnN0eWxlLmRpc3BsYXkgPSAnJztcbiAgICAgICAgICAgIG1lbnUuc3R5bGUucG9zaXRpb24gPSAnYWJzb2x1dGUnO1xuICAgICAgICAgICAgbWVudS5zdHlsZS5sZWZ0ID0gbW91c2VQdC54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gICAgb25DbGljazogKCkgPT4ge30sXG4gICAgICAgIH0sXG4gICAgICAgIFtFTlVNX0FDVElPTlMuSU5TSUdIVF06IHtcbiAgICAgICAgICAgIG5hbWU6IEVOVU1fQUNUSU9OUy5JTlNJR0hULFxuICAgICAgICAgICAgaWNvbkNsYXNzTmFtZTogJ2ZhciBmYS10YWcnLFxuICAgICAgICAgICAgb25DbGljazogKCkgPT4ge30sXG4gICAgICAgIH0sXG4gICAgICAgIFtFTlVNX0FDVElPTlMuREFUQV9NQVBQSU5HXToge1xuICAgICAgICAgICAgbmFtZTogRU5VTV9BQ1RJT05TLkRBVEFfTUFQUElORyxcbiAgICAgICAgICAgIGljb25DbGFzc05hbWU6ICdmYXIgZmEtdGFnJyxcbiAgICAgICAgICAgIG9uQ2xpY2s6ICgpID0+IHt9LFxuICAgICAgICB9LFxuICAgICAgICBbRU5VTV9BQ1RJT05TLk1PUkVdOiB7XG4gICAgICAgICAgICBuYW1lOiBFTlVNX0FDVElPTlMuTU9SRSxcbiAgICAgICAgICAgIGljb25DbGFzc05hbWU6ICdmYWwgZmEtbWVtby1jaXJjbGUtaW5mbycsXG4gICAgICAgICAgICBvbkNsaWNrOiAoKSA9PiB7fSxcbiAgICAgICAgfSxcbiAgICAgICAgW0VOVU1fQUNUSU9OUy5DSEFOR0VfSUNPTl06IHtcbiAgICAgICAgICAgIG5hbWU6IEVOVU1fQUNUSU9OUy5DSEFOR0VfSUNPTixcbiAgICAgICAgICAgIGljb25DbGFzc05hbWU6ICdmYXIgZmEtaW1hZ2UnLFxuICAgICAgICAgICAgb25DbGljazogKCkgPT4ge30sXG4gICAgICAgIH0sXG4gICAgfTtcblxuICAgIGV4cG9ydCBjb25zdCBESVNUQU5DRV8yX09VVFBVVCA9IDYwO1xufVxuIl19
|