@logicflow/extension 0.7.7 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/cjs/NodeResize/Control/ControlGroup.js +3 -1
- package/cjs/NodeResize/Node/DiamondResize.js +1 -0
- package/cjs/NodeResize/Node/EllipseResize.js +1 -0
- package/cjs/NodeResize/Node/RectResize.js +6 -5
- package/cjs/NodeResize/index.js +0 -15
- package/cjs/components/context-menu/index.js +210 -0
- package/cjs/components/dnd-panel/index.js +5 -0
- package/cjs/index.js +2 -0
- package/cjs/style/index.css +10 -0
- package/es/NodeResize/Control/ControlGroup.js +3 -1
- package/es/NodeResize/Node/DiamondResize.js +1 -0
- package/es/NodeResize/Node/EllipseResize.js +1 -0
- package/es/NodeResize/Node/RectResize.d.ts +1 -0
- package/es/NodeResize/Node/RectResize.js +6 -5
- package/es/NodeResize/index.js +0 -15
- package/es/components/context-menu/index.d.ts +24 -0
- package/es/components/context-menu/index.js +207 -0
- package/es/components/dnd-panel/index.d.ts +1 -0
- package/es/components/dnd-panel/index.js +5 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -0
- package/es/style/index.css +10 -0
- package/lib/ContextMenu.js +1 -1
- package/lib/DndPanel.js +1 -1
- package/lib/NodeResize.js +1 -1
- package/lib/style/index.css +10 -0
- package/package.json +3 -3
- package/types/NodeResize/Node/RectResize.d.ts +1 -0
- package/types/components/context-menu/index.d.ts +24 -0
- package/types/components/dnd-panel/index.d.ts +1 -0
- package/types/index.d.ts +1 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
2
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
3
|
+
if (!m) return o;
|
|
4
|
+
var i = m.call(o), r, ar = [], e;
|
|
5
|
+
try {
|
|
6
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
7
|
+
}
|
|
8
|
+
catch (error) { e = { error: error }; }
|
|
9
|
+
finally {
|
|
10
|
+
try {
|
|
11
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
12
|
+
}
|
|
13
|
+
finally { if (e) throw e.error; }
|
|
14
|
+
}
|
|
15
|
+
return ar;
|
|
16
|
+
};
|
|
17
|
+
var COMMON_TYPE_KEY = 'menu-common';
|
|
18
|
+
var NEXT_X_DISTANCE = 200;
|
|
19
|
+
var NEXT_Y_DISTANCE = 100;
|
|
20
|
+
var ContextMenu = /** @class */ (function () {
|
|
21
|
+
function ContextMenu(_a) {
|
|
22
|
+
var _this = this;
|
|
23
|
+
var lf = _a.lf;
|
|
24
|
+
this.menuTypeMap = new Map();
|
|
25
|
+
this.listenDelete = function () {
|
|
26
|
+
_this.hideMenu();
|
|
27
|
+
};
|
|
28
|
+
this.lf = lf;
|
|
29
|
+
this.__menuDOM = document.createElement('div');
|
|
30
|
+
this.__menuDOM.className = 'lf-inner-context';
|
|
31
|
+
// const commonMenu = [];
|
|
32
|
+
this.menuTypeMap.set(COMMON_TYPE_KEY, []);
|
|
33
|
+
this.lf.setContextMenuByType = function (type, menus) {
|
|
34
|
+
_this.menuTypeMap.set(type, menus);
|
|
35
|
+
};
|
|
36
|
+
this.lf.setContextMenuItems = function (menus) {
|
|
37
|
+
_this.menuTypeMap.set(COMMON_TYPE_KEY, menus);
|
|
38
|
+
};
|
|
39
|
+
this.lf.showContextMenu = function (data) {
|
|
40
|
+
if (!data || !data.id) {
|
|
41
|
+
console.warn('请检查传入的参数');
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
_this._activeData = data;
|
|
45
|
+
_this.createContextMenu();
|
|
46
|
+
};
|
|
47
|
+
this.lf.hideContextMenu = function () {
|
|
48
|
+
_this.hideMenu();
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
ContextMenu.prototype.render = function (lf, container) {
|
|
52
|
+
var _this = this;
|
|
53
|
+
this.container = container;
|
|
54
|
+
lf.on('node:click', function (_a) {
|
|
55
|
+
var data = _a.data;
|
|
56
|
+
_this._activeData = data;
|
|
57
|
+
_this.createContextMenu();
|
|
58
|
+
});
|
|
59
|
+
lf.on('edge:click', function (_a) {
|
|
60
|
+
var data = _a.data;
|
|
61
|
+
// 获取右上角坐标
|
|
62
|
+
_this._activeData = data;
|
|
63
|
+
_this.createContextMenu();
|
|
64
|
+
});
|
|
65
|
+
lf.on('blank:click', function () {
|
|
66
|
+
_this.hideMenu();
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* 获取新菜单位置
|
|
71
|
+
*/
|
|
72
|
+
ContextMenu.prototype.getContextMenuPosition = function () {
|
|
73
|
+
var data = this._activeData;
|
|
74
|
+
var Model = this.lf.graphModel.getElement(data.id);
|
|
75
|
+
if (!Model) {
|
|
76
|
+
console.warn("\u627E\u4E0D\u5230\u5143\u7D20" + data.id);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
var x;
|
|
80
|
+
var y;
|
|
81
|
+
if (Model.BaseType === 'edge') {
|
|
82
|
+
x = Number.MIN_SAFE_INTEGER;
|
|
83
|
+
y = Number.MAX_SAFE_INTEGER;
|
|
84
|
+
var edgeData = Model.getData();
|
|
85
|
+
x = Math.max(edgeData.startPoint.x, x);
|
|
86
|
+
y = Math.min(edgeData.startPoint.y, y);
|
|
87
|
+
x = Math.max(edgeData.endPoint.x, x);
|
|
88
|
+
y = Math.min(edgeData.endPoint.y, y);
|
|
89
|
+
if (edgeData.pointsList) {
|
|
90
|
+
edgeData.pointsList.forEach(function (point) {
|
|
91
|
+
x = Math.max(point.x, x);
|
|
92
|
+
y = Math.min(point.y, y);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
if (Model.BaseType === 'node') {
|
|
97
|
+
x = data.x + Model.width / 2;
|
|
98
|
+
y = data.y - Model.height / 2;
|
|
99
|
+
}
|
|
100
|
+
return this.lf.graphModel.transformMatrix.CanvasPointToHtmlPoint([x, y]);
|
|
101
|
+
};
|
|
102
|
+
ContextMenu.prototype.createContextMenu = function () {
|
|
103
|
+
var _this = this;
|
|
104
|
+
var isSilentMode = this.lf.options.isSilentMode;
|
|
105
|
+
// 静默模式不显示菜单
|
|
106
|
+
if (isSilentMode) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
var items = this.menuTypeMap.get(this._activeData.type) || [];
|
|
110
|
+
items = items.concat(this.menuTypeMap.get(COMMON_TYPE_KEY));
|
|
111
|
+
var menus = document.createDocumentFragment();
|
|
112
|
+
items.forEach(function (item) {
|
|
113
|
+
var menuItem = document.createElement('div');
|
|
114
|
+
menuItem.className = 'lf-context-item';
|
|
115
|
+
var img = document.createElement('img');
|
|
116
|
+
img.src = item.icon;
|
|
117
|
+
img.className = 'lf-context-img';
|
|
118
|
+
if (item.className) {
|
|
119
|
+
menuItem.className = menuItem.className + " " + item.className;
|
|
120
|
+
}
|
|
121
|
+
img.addEventListener('click', function () {
|
|
122
|
+
_this.hideMenu();
|
|
123
|
+
if (item.callback) {
|
|
124
|
+
item.callback(_this._activeData);
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
_this.addNode({
|
|
128
|
+
sourceId: _this._activeData.id,
|
|
129
|
+
x: _this._activeData.x,
|
|
130
|
+
y: _this._activeData.y,
|
|
131
|
+
properties: item.properties,
|
|
132
|
+
type: item.type,
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
menuItem.appendChild(img);
|
|
137
|
+
menus.appendChild(menuItem);
|
|
138
|
+
});
|
|
139
|
+
this.__menuDOM.innerHTML = '';
|
|
140
|
+
this.__menuDOM.appendChild(menus);
|
|
141
|
+
this.showMenu();
|
|
142
|
+
};
|
|
143
|
+
ContextMenu.prototype.addNode = function (node, y) {
|
|
144
|
+
var isDeep = y !== undefined;
|
|
145
|
+
if (y === undefined) {
|
|
146
|
+
y = node.y;
|
|
147
|
+
}
|
|
148
|
+
var nodeModel = this.lf.getNodeModel(node.sourceId);
|
|
149
|
+
var leftTopX = node.x - nodeModel.width + NEXT_X_DISTANCE;
|
|
150
|
+
var leftTopY = y - node.y / 2 - 20;
|
|
151
|
+
var rightBottomX = node.x + nodeModel.width + NEXT_X_DISTANCE;
|
|
152
|
+
var rightBottomY = y + node.y / 2 + 20;
|
|
153
|
+
var exsitElements = this.lf.getAreaElement([leftTopX, leftTopY], [rightBottomX, rightBottomY]);
|
|
154
|
+
if (exsitElements.length) {
|
|
155
|
+
y = y + NEXT_Y_DISTANCE;
|
|
156
|
+
this.addNode(node, y);
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
var newNode = this.lf.addNode({
|
|
160
|
+
type: node.type,
|
|
161
|
+
x: node.x + 200,
|
|
162
|
+
y: y,
|
|
163
|
+
properties: node.properties,
|
|
164
|
+
});
|
|
165
|
+
var startPoint;
|
|
166
|
+
var endPoint;
|
|
167
|
+
if (isDeep) {
|
|
168
|
+
startPoint = {
|
|
169
|
+
x: node.x,
|
|
170
|
+
y: node.y + nodeModel.height / 2,
|
|
171
|
+
};
|
|
172
|
+
endPoint = {
|
|
173
|
+
x: newNode.x - newNode.width / 2,
|
|
174
|
+
y: newNode.y,
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
this.lf.createEdge({
|
|
178
|
+
sourceNodeId: node.sourceId,
|
|
179
|
+
targetNodeId: newNode.id,
|
|
180
|
+
startPoint: startPoint,
|
|
181
|
+
endPoint: endPoint,
|
|
182
|
+
});
|
|
183
|
+
};
|
|
184
|
+
ContextMenu.prototype.showMenu = function () {
|
|
185
|
+
var _a = __read(this.getContextMenuPosition(), 2), x = _a[0], y = _a[1];
|
|
186
|
+
this.__menuDOM.style.display = 'flex';
|
|
187
|
+
this.__menuDOM.style.top = y + "px";
|
|
188
|
+
this.__menuDOM.style.left = x + 10 + "px";
|
|
189
|
+
this.container.appendChild(this.__menuDOM);
|
|
190
|
+
// 菜单显示的时候,监听删除,同时隐藏
|
|
191
|
+
!this.isShow && this.lf.on('node:delete,edge:delete,node:drag,graph:transform', this.listenDelete);
|
|
192
|
+
this.isShow = true;
|
|
193
|
+
};
|
|
194
|
+
ContextMenu.prototype.hideMenu = function () {
|
|
195
|
+
this.__menuDOM.innerHTML = '';
|
|
196
|
+
this.__menuDOM.style.display = 'none';
|
|
197
|
+
if (this.isShow) {
|
|
198
|
+
this.container.removeChild(this.__menuDOM);
|
|
199
|
+
}
|
|
200
|
+
this.lf.off('node:delete,edge:delete,node:drag,graph:transform', this.listenDelete);
|
|
201
|
+
this.isShow = false;
|
|
202
|
+
};
|
|
203
|
+
ContextMenu.pluginName = 'ContextMenu';
|
|
204
|
+
return ContextMenu;
|
|
205
|
+
}());
|
|
206
|
+
export default ContextMenu;
|
|
207
|
+
export { ContextMenu, };
|
|
@@ -5,6 +5,10 @@ var DndPanel = /** @class */ (function () {
|
|
|
5
5
|
this.lf = lf;
|
|
6
6
|
this.lf.setPatternItems = function (shapeList) {
|
|
7
7
|
_this.shapeList = shapeList;
|
|
8
|
+
// 支持渲染后重新设置拖拽面板
|
|
9
|
+
if (_this.domContainer) {
|
|
10
|
+
_this.render(_this.lf, _this.domContainer);
|
|
11
|
+
}
|
|
8
12
|
};
|
|
9
13
|
}
|
|
10
14
|
DndPanel.prototype.render = function (lf, domContainer) {
|
|
@@ -20,6 +24,7 @@ var DndPanel = /** @class */ (function () {
|
|
|
20
24
|
_this.panelEl.appendChild(_this.createDndItem(shapeItem));
|
|
21
25
|
});
|
|
22
26
|
domContainer.appendChild(this.panelEl);
|
|
27
|
+
this.domContainer = domContainer;
|
|
23
28
|
};
|
|
24
29
|
DndPanel.prototype.createDndItem = function (shapeItem) {
|
|
25
30
|
var _this = this;
|
package/es/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './turbo-adapter';
|
|
|
5
5
|
export * from './insert-node-in-polyline';
|
|
6
6
|
export * from './components/control';
|
|
7
7
|
export * from './components/menu';
|
|
8
|
+
export * from './components/context-menu';
|
|
8
9
|
export * from './components/dnd-panel';
|
|
9
10
|
export * from './components/selection-select';
|
|
10
11
|
export * from './components/mini-map';
|
package/es/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from './bpmn';
|
|
2
|
+
// export * from './~mindmap';
|
|
2
3
|
export * from './tools/snapshot';
|
|
3
4
|
export * from './bpmn-adapter';
|
|
4
5
|
export * from './turbo-adapter';
|
|
5
6
|
export * from './insert-node-in-polyline';
|
|
6
7
|
export * from './components/control';
|
|
7
8
|
export * from './components/menu';
|
|
9
|
+
export * from './components/context-menu';
|
|
8
10
|
export * from './components/dnd-panel';
|
|
9
11
|
export * from './components/selection-select';
|
|
10
12
|
export * from './components/mini-map';
|
package/es/style/index.css
CHANGED
|
@@ -191,7 +191,17 @@
|
|
|
191
191
|
width: 20px;
|
|
192
192
|
height: 20px;
|
|
193
193
|
margin: 0 2px 2px 0;
|
|
194
|
+
box-sizing: content-box;
|
|
194
195
|
}
|
|
195
196
|
.lf-context-item:hover {
|
|
196
197
|
background: rgba(201, 217, 216, 0.5);
|
|
198
|
+
}
|
|
199
|
+
.lf-context-img {
|
|
200
|
+
width: 20px;
|
|
201
|
+
height: 20px;
|
|
202
|
+
cursor: pointer;
|
|
203
|
+
}
|
|
204
|
+
/* mind map */
|
|
205
|
+
.lf-mindmap_addIcon {
|
|
206
|
+
margin-top: 10px;
|
|
197
207
|
}
|
package/lib/ContextMenu.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=182)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(83))},function(t,e,n){var r=n(0),o=n(35),i=n(5),u=n(29),c=n(36),a=n(47),f=o("wks"),s=r.Symbol,l=a?s:s&&s.withoutSetter||u;t.exports=function(t){return i(f,t)&&(c||"string"==typeof f[t])||(c&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(0),o=n(18).f,i=n(9),u=n(13),c=n(33),a=n(57),f=n(58);t.exports=function(t,e){var n,s,l,p,v,y=t.target,h=t.global,d=t.stat;if(n=h?r:d?r[y]||c(y,{}):(r[y]||{}).prototype)for(s in e){if(p=e[s],l=t.noTargetGet?(v=o(n,s))&&v.value:n[s],!f(h?s:y+(d?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(n,s,p,t)}}},function(t,e,n){var r=n(11),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(r(t),e)}},function(t,e,n){var r=n(7),o=n(48),i=n(8),u=n(21),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=u(e),i(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(7),o=n(6),i=n(15);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(41),o=n(27);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(27);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(0),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(9),i=n(5),u=n(33),c=n(44),a=n(17),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,e,n,c){var a,f=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,v=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),(a=s(n)).source||(a.source=l.join("string"==typeof e?e:""))),t!==r?(f?!v&&t[e]&&(p=!0):delete t[e],p?t[e]=n:o(t,e,n)):p?t[e]=n:u(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||c(this)}))},function(t,e,n){var r=n(34),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,n){var r,o,i,u=n(85),c=n(0),a=n(3),f=n(9),s=n(5),l=n(32),p=n(26),v=n(16),y=c.WeakMap;if(u||l.state){var h=l.state||(l.state=new y),d=h.get,g=h.has,m=h.set;r=function(t,e){if(g.call(h,t))throw new TypeError("Object already initialized");return e.facade=t,m.call(h,t,e),e},o=function(t){return d.call(h,t)||{}},i=function(t){return g.call(h,t)}}else{var x=p("state");v[x]=!0,r=function(t,e){if(s(t,x))throw new TypeError("Object already initialized");return e.facade=t,f(t,x,e),e},o=function(t){return s(t,x)?t[x]:{}},i=function(t){return s(t,x)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(7),o=n(50),i=n(15),u=n(10),c=n(21),a=n(5),f=n(48),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=u(t),e=c(e),f)try{return s(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(12),o=n(47);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return"function"==typeof e&&Object(t)instanceof e}},function(t,e,n){var r,o=n(8),i=n(82),u=n(37),c=n(16),a=n(92),f=n(51),s=n(26),l=s("IE_PROTO"),p=function(){},v=function(t){return"<script>"+t+"<\/script>"},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;h="undefined"!=typeof document?document.domain&&r?y(r):((e=f("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(r);for(var n=u.length;n--;)delete h.prototype[u[n]];return h()};c[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=h(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(76),o=n(19);t.exports=function(t){var e=r(t,"string");return o(e)?e:String(e)}},function(t,e){t.exports={}},,function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=!1},function(t,e,n){var r=n(35),o=n(29),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(53),o=n(37).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(19);t.exports=function(t){if(r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},function(t,e,n){var r=n(0),o=n(33),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(25),o=n(32);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(38),o=n(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r,o,i=n(0),u=n(66),c=i.process,a=i.Deno,f=c&&c.versions||a&&a.version,s=f&&f.v8;s?o=(r=s.split("."))[0]<4?1:r[0]+r[1]:u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},function(t,e,n){var r=n(6).f,o=n(5),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(45);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(2),o=n(24),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(40),o=n(41),i=n(11),u=n(14),c=n(59),a=[].push,f=function(t){var e=1==t,n=2==t,f=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(y,h,d,g){for(var m,x,b=i(y),S=o(b),w=r(h,d,3),O=u(S.length),E=0,M=g||c,_=e?M(y,O):n||p?M(y,0):void 0;O>E;E++)if((v||E in S)&&(x=w(m=S[E],E,b),t))if(e)_[E]=x;else if(x)switch(t){case 3:return!0;case 5:return m;case 6:return E;case 2:a.call(_,m)}else switch(t){case 4:return!1;case 7:a.call(_,m)}return l?-1:f||s?s:_}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(t,e,n){var r={};r[n(1)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(32),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(53),o=n(37);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(36);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(2),i=n(51);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";var r=n(10),o=n(91),i=n(22),u=n(17),c=n(56),a=u.set,f=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){a(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(0),o=n(3),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){var r=n(5),o=n(11),i=n(26),u=n(87),c=i("IE_PROTO"),a=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(5),o=n(10),i=n(72).indexOf,u=n(16);t.exports=function(t,e){var n,c=o(t),a=0,f=[];for(n in c)!r(u,n)&&r(c,n)&&f.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(f,n)||f.push(n));return f}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(21),o=n(6),i=n(15);t.exports=function(t,e,n){var u=r(e);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,e,n){"use strict";var r=n(4),o=n(94),i=n(52),u=n(64),c=n(39),a=n(9),f=n(13),s=n(1),l=n(25),p=n(22),v=n(65),y=v.IteratorPrototype,h=v.BUGGY_SAFARI_ITERATORS,d=s("iterator"),g=function(){return this};t.exports=function(t,e,n,s,v,m,x){o(n,e,s);var b,S,w,O=function(t){if(t===v&&T)return T;if(!h&&t in _)return _[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",M=!1,_=t.prototype,j=_[d]||_["@@iterator"]||v&&_[v],T=!h&&j||O(v),A="Array"==e&&_.entries||j;if(A&&(b=i(A.call(new t)),y!==Object.prototype&&b.next&&(l||i(b)===y||(u?u(b,y):"function"!=typeof b[d]&&a(b,d,g)),c(b,E,!0,!0),l&&(p[E]=g))),"values"==v&&j&&"values"!==j.name&&(M=!0,T=function(){return j.call(this)}),l&&!x||_[d]===T||a(_,d,T),p[e]=T,v)if(S={values:O("values"),keys:m?T:O("keys"),entries:O("entries")},x)for(w in S)(h||M||!(w in _))&&f(_,w,S[w]);else r({target:e,proto:!0,forced:h||M},S);return S}},function(t,e,n){var r=n(5),o=n(71),i=n(18),u=n(6);t.exports=function(t,e){for(var n=o(e),c=u.f,a=i.f,f=0;f<n.length;f++){var s=n[f];r(t,s)||c(t,s,a(e,s))}}},function(t,e,n){var r=n(2),o=/#|\.prototype\./,i=function(t,e){var n=c[u(t)];return n==f||n!=a&&("function"==typeof e?r(e):!!e)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(86);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(34),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){"use strict";var r=n(42).forEach,o=n(67)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(2),o=n(1),i=n(38),u=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(8),o=n(95);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){"use strict";var r,o,i,u=n(2),c=n(52),a=n(9),f=n(5),s=n(1),l=n(25),p=s("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):v=!0);var y=null==r||u((function(){var t={};return r[p].call(t)!==t}));y&&(r={}),l&&!y||f(r,p)||a(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(t,e,n){var r=n(12);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){var r=n(43),o=n(13),i=n(100);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r=n(93).charAt,o=n(31),i=n(17),u=n(56),c=i.set,a=i.getterFor("String Iterator");u(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=a(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(4),o=n(0),i=n(12),u=n(25),c=n(7),a=n(36),f=n(2),s=n(5),l=n(28),p=n(3),v=n(19),y=n(8),h=n(11),d=n(10),g=n(21),m=n(31),x=n(15),b=n(20),S=n(46),w=n(30),O=n(88),E=n(54),M=n(18),_=n(6),j=n(50),T=n(9),A=n(13),I=n(35),N=n(26),P=n(16),k=n(29),C=n(1),D=n(75),L=n(78),F=n(39),R=n(17),G=n(42).forEach,z=N("hidden"),V=C("toPrimitive"),B=R.set,H=R.getterFor("Symbol"),U=Object.prototype,W=o.Symbol,X=i("JSON","stringify"),Y=M.f,$=_.f,K=O.f,q=j.f,J=I("symbols"),Q=I("op-symbols"),Z=I("string-to-symbol-registry"),tt=I("symbol-to-string-registry"),et=I("wks"),nt=o.QObject,rt=!nt||!nt.prototype||!nt.prototype.findChild,ot=c&&f((function(){return 7!=b($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(U,e);r&&delete U[e],$(t,e,n),r&&t!==U&&$(U,e,r)}:$,it=function(t,e){var n=J[t]=b(W.prototype);return B(n,{type:"Symbol",tag:t,description:e}),c||(n.description=e),n},ut=function(t,e,n){t===U&&ut(Q,e,n),y(t);var r=g(e);return y(n),s(J,r)?(n.enumerable?(s(t,z)&&t[z][r]&&(t[z][r]=!1),n=b(n,{enumerable:x(0,!1)})):(s(t,z)||$(t,z,x(1,{})),t[z][r]=!0),ot(t,r,n)):$(t,r,n)},ct=function(t,e){y(t);var n=d(e),r=S(n).concat(lt(n));return G(r,(function(e){c&&!at.call(n,e)||ut(t,e,n[e])})),t},at=function(t){var e=g(t),n=q.call(this,e);return!(this===U&&s(J,e)&&!s(Q,e))&&(!(n||!s(this,e)||!s(J,e)||s(this,z)&&this[z][e])||n)},ft=function(t,e){var n=d(t),r=g(e);if(n!==U||!s(J,r)||s(Q,r)){var o=Y(n,r);return!o||!s(J,r)||s(n,z)&&n[z][r]||(o.enumerable=!0),o}},st=function(t){var e=K(d(t)),n=[];return G(e,(function(t){s(J,t)||s(P,t)||n.push(t)})),n},lt=function(t){var e=t===U,n=K(e?Q:d(t)),r=[];return G(n,(function(t){!s(J,t)||e&&!s(U,t)||r.push(J[t])})),r};(a||(A((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=k(t),n=function(t){this===U&&n.call(Q,t),s(this,z)&&s(this[z],e)&&(this[z][e]=!1),ot(this,e,x(1,t))};return c&&rt&&ot(U,e,{configurable:!0,set:n}),it(e,t)}).prototype,"toString",(function(){return H(this).tag})),A(W,"withoutSetter",(function(t){return it(k(t),t)})),j.f=at,_.f=ut,M.f=ft,w.f=O.f=st,E.f=lt,D.f=function(t){return it(C(t),t)},c&&($(W.prototype,"description",{configurable:!0,get:function(){return H(this).description}}),u||A(U,"propertyIsEnumerable",at,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:W}),G(S(et),(function(t){L(t)})),r({target:"Symbol",stat:!0,forced:!a},{for:function(t){var e=m(t);if(s(Z,e))return Z[e];var n=W(e);return Z[e]=n,tt[n]=e,n},keyFor:function(t){if(!v(t))throw TypeError(t+" is not a symbol");if(s(tt,t))return tt[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!a,sham:!c},{create:function(t,e){return void 0===e?b(t):ct(b(t),e)},defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:st,getOwnPropertySymbols:lt}),r({target:"Object",stat:!0,forced:f((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(h(t))}}),X)&&r({target:"JSON",stat:!0,forced:!a||f((function(){var t=W();return"[null]"!=X([t])||"{}"!=X({a:t})||"{}"!=X(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(p(e)||void 0!==t)&&!v(t))return l(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!v(e))return e}),o[1]=e,X.apply(null,o)}});W.prototype[V]||T(W.prototype,V,W.prototype.valueOf),F(W,"Symbol"),P[z]=!0},function(t,e,n){var r=n(12),o=n(30),i=n(54),u=n(8);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(u(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(10),o=n(14),i=n(60),u=function(t){return function(e,n,u){var c,a=r(e),f=o(a.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,n){var r=n(74),o=n(22),i=n(1)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(43),o=n(24),i=n(1)("toStringTag"),u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:u?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r=n(1);e.f=r},function(t,e,n){var r=n(3),o=n(19),i=n(84),u=n(1)("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,c=t[u];if(void 0!==c){if(void 0===e&&(e="default"),n=c.call(t,e),!r(n)||o(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),i(t,e)}},function(t,e,n){var r=n(0),o=n(62),i=n(49),u=n(9),c=n(1),a=c("iterator"),f=c("toStringTag"),s=i.values;for(var l in o){var p=r[l],v=p&&p.prototype;if(v){if(v[a]!==s)try{u(v,a,s)}catch(t){v[a]=s}if(v[f]||u(v,f,l),o[l])for(var y in i)if(v[y]!==i[y])try{u(v,y,i[y])}catch(t){v[y]=i[y]}}}},function(t,e,n){var r=n(101),o=n(5),i=n(75),u=n(6).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(4),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(6).f})},function(t,e,n){"use strict";var r=n(4),o=n(7),i=n(0),u=n(5),c=n(3),a=n(6).f,f=n(57),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||void 0!==s().description)){var l={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new s(t):void 0===t?s():s(t);return""===t&&(l[e]=!0),e};f(p,s);var v=p.prototype=s.prototype;v.constructor=p;var y=v.toString,h="Symbol(test)"==String(s("test")),d=/^Symbol\((.*)\)[^)]+$/;a(v,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=y.call(t);if(u(l,t))return"";var n=h?e.slice(7,-1):e.replace(d,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},function(t,e,n){n(78)("iterator")},function(t,e,n){var r=n(7),o=n(6),i=n(8),u=n(46);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),c=r.length,a=0;c>a;)o.f(t,n=r[a++],e[n]);return t}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(3);t.exports=function(t,e){var n,o;if("string"===e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if("string"!==e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(44),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,n){var r=n(3),o=n(28),i=n(1)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)?r(e)&&null===(e=e[i])&&(e=void 0):e=void 0),void 0===e?Array:e}},function(t,e,n){var r=n(2);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(10),o=n(30).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(4),o=n(61);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(62),i=n(61),u=n(9);for(var c in o){var a=r[c],f=a&&a.prototype;if(f&&f.forEach!==i)try{u(f,"forEach",i)}catch(t){f.forEach=i}}},function(t,e,n){var r=n(1),o=n(20),i=n(6),u=r("unscopables"),c=Array.prototype;null==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},function(t,e,n){var r=n(12);t.exports=r("document","documentElement")},function(t,e,n){var r=n(34),o=n(31),i=n(27),u=function(t){return function(e,n){var u,c,a=o(i(e)),f=r(n),s=a.length;return f<0||f>=s?t?"":void 0:(u=a.charCodeAt(f))<55296||u>56319||f+1===s||(c=a.charCodeAt(f+1))<56320||c>57343?t?a.charAt(f):u:t?a.slice(f,f+2):c-56320+(u-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},function(t,e,n){"use strict";var r=n(65).IteratorPrototype,o=n(20),i=n(15),u=n(39),c=n(22),a=function(){return this};t.exports=function(t,e,n){var f=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),u(t,f,!1,!0),c[f]=a,t}},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var r=n(1),o=n(22),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,n){var r=n(8),o=n(73);t.exports=function(t,e){var n=arguments.length<2?o(t):e;if("function"!=typeof n)throw TypeError(String(t)+" is not iterable");return r(n.call(t))}},function(t,e,n){var r=n(8);t.exports=function(t,e,n){var o,i;r(t);try{if(void 0===(o=t.return)){if("throw"===e)throw n;return n}o=o.call(t)}catch(t){i=!0,o=t}if("throw"===e)throw n;if(i)throw o;return r(o),n}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(43),o=n(74);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(0);t.exports=r},function(t,e,n){var r=n(8),o=n(96),i=n(14),u=n(40),c=n(97),a=n(73),f=n(98),s=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,p,v,y,h,d,g,m=n&&n.that,x=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),w=u(e,m,1+x+S),O=function(t){return l&&f(l,"normal",t),new s(!0,t)},E=function(t){return x?(r(t),S?w(t[0],t[1],O):w(t[0],t[1])):S?w(t,O):w(t)};if(b)l=t;else{if("function"!=typeof(p=a(t)))throw TypeError("Target is not iterable");if(o(p)){for(v=0,y=i(t.length);y>v;v++)if((h=E(t[v]))&&h instanceof s)return h;return new s(!1)}l=c(t,p)}for(d=l.next;!(g=d.call(l)).done;){try{h=E(g.value)}catch(t){f(l,"throw",t)}if("object"==typeof h&&h&&h instanceof s)return h}return new s(!1)}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){"use strict";var r=n(4),o=n(2),i=n(28),u=n(3),c=n(11),a=n(14),f=n(55),s=n(59),l=n(63),p=n(1),v=n(38),y=p("isConcatSpreadable"),h=v>=51||!o((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),d=l("concat"),g=function(t){if(!u(t))return!1;var e=t[y];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!h||!d},{concat:function(t){var e,n,r,o,i,u=c(this),l=s(u,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(g(i=-1===e?u:arguments[e])){if(p+(o=a(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&f(l,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");f(l,p++,i)}return l.length=p,l}})},function(t,e,n){var r=n(4),o=n(16),i=n(3),u=n(5),c=n(6).f,a=n(30),f=n(88),s=n(29),l=n(125),p=!1,v=s("meta"),y=0,h=Object.isExtensible||function(){return!0},d=function(t){c(t,v,{value:{objectID:"O"+y++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},p=!0;var t=a.f,e=[].splice,n={};n[v]=1,t(n).length&&(a.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===v){e.call(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,v)){if(!h(t))return"F";if(!e)return"E";d(t)}return t[v].objectID},getWeakData:function(t,e){if(!u(t,v)){if(!h(t))return!0;if(!e)return!1;d(t)}return t[v].weakData},onFreeze:function(t){return l&&p&&h(t)&&!u(t,v)&&d(t),t}};o[v]=!0},,function(t,e,n){var r=n(3),o=n(64);t.exports=function(t,e,n){var i,u;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(u=i.prototype)&&u!==n.prototype&&o(t,u),t}},function(t,e,n){var r=n(4),o=n(113);r({target:"Array",stat:!0,forced:!n(99)((function(t){Array.from(t)}))},{from:o})},,,,,function(t,e,n){"use strict";var r=n(40),o=n(11),i=n(114),u=n(96),c=n(14),a=n(55),f=n(97),s=n(73);t.exports=function(t){var e,n,l,p,v,y,h=o(t),d="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,x=void 0!==m,b=s(h),S=0;if(x&&(m=r(m,g>2?arguments[2]:void 0,2)),null==b||d==Array&&u(b))for(n=new d(e=c(h.length));e>S;S++)y=x?m(h[S],S):h[S],a(n,S,y);else for(v=(p=f(h,b)).next,n=new d;!(l=v.call(p)).done;S++)y=x?i(p,m,[l.value,S],!0):l.value,a(n,S,y);return n.length=S,n}},function(t,e,n){var r=n(8),o=n(98);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},function(t,e,n){n(4)({target:"Array",stat:!0},{isArray:n(28)})},function(t,e,n){"use strict";var r=n(4),o=n(3),i=n(28),u=n(60),c=n(14),a=n(10),f=n(55),s=n(1),l=n(63)("slice"),p=s("species"),v=[].slice,y=Math.max;r({target:"Array",proto:!0,forced:!l},{slice:function(t,e){var n,r,s,l=a(this),h=c(l.length),d=u(t,h),g=u(void 0===e?h:e,h);if(i(l)&&("function"!=typeof(n=l.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[p])&&(n=void 0):n=void 0,n===Array||void 0===n))return v.call(l,d,g);for(r=new(void 0===n?Array:n)(y(g-d,0)),s=0;d<g;d++,s++)d in l&&f(r,s,l[d]);return r.length=s,r}})},function(t,e,n){var r=n(7),o=n(6).f,i=Function.prototype,u=i.toString,c=/^\s*function ([^ (]*)/;r&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return u.call(this).match(c)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(0),i=n(58),u=n(13),c=n(105),a=n(102),f=n(103),s=n(3),l=n(2),p=n(99),v=n(39),y=n(107);t.exports=function(t,e,n){var h=-1!==t.indexOf("Map"),d=-1!==t.indexOf("Weak"),g=h?"set":"add",m=o[t],x=m&&m.prototype,b=m,S={},w=function(t){var e=x[t];u(x,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(d&&!s(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return d&&!s(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(d&&!s(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(i(t,"function"!=typeof m||!(d||x.forEach&&!l((function(){(new m).entries().next()})))))b=n.getConstructor(e,t,h,g),c.enable();else if(i(t,!0)){var O=new b,E=O[g](d?{}:-0,1)!=O,M=l((function(){O.has(1)})),_=p((function(t){new m(t)})),j=!d&&l((function(){for(var t=new m,e=5;e--;)t[g](e,e);return!t.has(-0)}));_||((b=e((function(e,n){f(e,b,t);var r=y(new m,e,b);return null!=n&&a(n,r[g],{that:r,AS_ENTRIES:h}),r}))).prototype=x,x.constructor=b),(M||j)&&(w("delete"),w("has"),h&&w("get")),(j||E)&&w(g),d&&x.clear&&delete x.clear}return S[t]=b,r({global:!0,forced:b!=m},S),v(b,t),d||n.setStrong(b,t,h),b}},function(t,e,n){"use strict";var r=n(6).f,o=n(20),i=n(120),u=n(40),c=n(103),a=n(102),f=n(56),s=n(121),l=n(7),p=n(105).fastKey,v=n(17),y=v.set,h=v.getterFor;t.exports={getConstructor:function(t,e,n,f){var s=t((function(t,r){c(t,s,e),y(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&a(r,t[f],{that:t,AS_ENTRIES:n})})),v=h(e),d=function(t,e,n){var r,o,i=v(t),u=g(t,e);return u?u.value=n:(i.last=u={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},g=function(t,e){var n,r=v(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(s.prototype,{clear:function(){for(var t=v(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=v(this),n=g(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),l?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=v(this),r=u(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),i(s.prototype,n?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return d(this,0===t?0:t,e)}}:{add:function(t){return d(this,t=0===t?0:t,t)}}),l&&r(s.prototype,"size",{get:function(){return v(this).size}}),s},setStrong:function(t,e,n){var r=e+" Iterator",o=h(e),i=h(r);f(t,e,(function(t,e){y(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(e)}}},function(t,e,n){var r=n(13);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(12),o=n(6),i=n(1),u=n(7),c=i("species");t.exports=function(t){var e=r(t),n=o.f;u&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},,,function(t,e,n){"use strict";var r=n(118),o=n(119);t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},function(t,e,n){var r=n(2);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(7),o=n(0),i=n(58),u=n(13),c=n(5),a=n(24),f=n(107),s=n(19),l=n(76),p=n(2),v=n(20),y=n(30).f,h=n(18).f,d=n(6).f,g=n(139).trim,m=o.Number,x=m.prototype,b="Number"==a(v(x)),S=function(t){if(s(t))throw TypeError("Cannot convert a Symbol value to a number");var e,n,r,o,i,u,c,a,f=l(t,"number");if("string"==typeof f&&f.length>2)if(43===(e=(f=g(f)).charCodeAt(0))||45===e){if(88===(n=f.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(f.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(u=(i=f.slice(2)).length,c=0;c<u;c++)if((a=i.charCodeAt(c))<48||a>o)return NaN;return parseInt(i,r)}return+f};if(i("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,O=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof O&&(b?p((function(){x.valueOf.call(n)})):"Number"!=a(n))?f(new m(S(e)),n,O):S(e)},E=r?y(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),M=0;E.length>M;M++)c(m,w=E[M])&&!c(O,w)&&d(O,w,h(m,w));O.prototype=x,x.constructor=O,u(o,"Number",O)}},function(t,e,n){var r=n(27),o=n(31),i="["+n(140)+"]",u=RegExp("^"+i+i+"*"),c=RegExp(i+i+"*$"),a=function(t){return function(e){var n=o(r(e));return 1&t&&(n=n.replace(u,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:a(1),end:a(2),trim:a(3)}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},,,,,,,,,,,,,,,,,,,function(t,e,n){n(4)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"ContextMenu",(function(){return c}));n(49),n(124),n(68),n(69),n(77),n(183),n(138),n(159),n(89),n(90),n(104),n(79),n(115),n(70),n(80),n(81),n(116),n(117),n(108);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,c=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(){function t(e){var n=this,r=e.lf;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,"__menuDOM",void 0),u(this,"lf",void 0),u(this,"_activeData",void 0),u(this,"menuTypeMap",new Map),u(this,"container",void 0),u(this,"isShow",void 0),u(this,"listenDelete",(function(){n.hideMenu()})),this.lf=r,this.__menuDOM=document.createElement("div"),this.__menuDOM.className="lf-inner-context",this.menuTypeMap.set("menu-common",[]),this.lf.setContextMenuByType=function(t,e){n.menuTypeMap.set(t,e)},this.lf.setContextMenuItems=function(t){n.menuTypeMap.set("menu-common",t)},this.lf.showContextMenu=function(t){t&&t.id?(n._activeData=t,n.createContextMenu()):console.warn("请检查传入的参数")},this.lf.hideContextMenu=function(){n.hideMenu()}}var e,n,o;return e=t,(n=[{key:"render",value:function(t,e){var n=this;this.container=e,t.on("node:click",(function(t){var e=t.data;n._activeData=e,n.createContextMenu()})),t.on("edge:click",(function(t){var e=t.data;n._activeData=e,n.createContextMenu()})),t.on("blank:click",(function(){n.hideMenu()}))}},{key:"getContextMenuPosition",value:function(){var t=this._activeData,e=this.lf.graphModel.getElement(t.id);if(e){var n,o;if("edge"===e.BaseType){n=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER;var i=e.getData();n=Math.max(i.startPoint.x,n),o=Math.min(i.startPoint.y,o),n=Math.max(i.endPoint.x,n),o=Math.min(i.endPoint.y,o),i.pointsList&&i.pointsList.forEach((function(t){n=Math.max(t.x,n),o=Math.min(t.y,o)}))}if("node"===e.BaseType){var u=t.x+e.width/2,c=t.y-e.height/2,a=r(this.lf.graphModel.transformMatrix.CanvasPointToHtmlPoint([u,c]),2);n=a[0],o=a[1]}return[n,o]}console.warn("找不到元素".concat(t.id))}},{key:"createContextMenu",value:function(){var t=this;if(!this.lf.options.isSilentMode){var e=this.menuTypeMap.get(this._activeData.type)||[];e=e.concat(this.menuTypeMap.get("menu-common"));var n=document.createDocumentFragment();e.forEach((function(e){var r=document.createElement("div");r.className="lf-context-item";var o=document.createElement("img");o.src=e.icon,o.style.width="20px",o.style.height="20px",o.style.cursor="pointer",o.addEventListener("click",(function(){t.hideMenu(),e.callback?e.callback(t._activeData):t.addNode({sourceId:t._activeData.id,x:t._activeData.x,y:t._activeData.y,properties:e.properties,type:e.type})})),r.appendChild(o),n.appendChild(r)})),this.__menuDOM.innerHTML="",this.__menuDOM.appendChild(n),this.showMenu()}}},{key:"addNode",value:function(t,e){var n=void 0!==e;void 0===e&&(e=t.y);var r=this.lf.getNodeModel(t.sourceId),o=t.x-r.width+200,i=e-t.y/2-20,u=t.x+r.width+200,c=e+t.y/2+20;if(this.lf.getAreaElement([o,i],[u,c]).length)return e+=100,void this.addNode(t,e);var a,f,s=this.lf.addNode({type:t.type,x:t.x+200,y:e,properties:t.properties});n&&(a={x:t.x,y:t.y+r.height/2},f={x:s.x-s.width/2,y:s.y}),this.lf.createEdge({sourceNodeId:t.sourceId,targetNodeId:s.id,startPoint:a,endPoint:f})}},{key:"showMenu",value:function(){var t=r(this.getContextMenuPosition(),2),e=t[0],n=t[1];this.__menuDOM.style.display="flex",this.__menuDOM.style.top="".concat(n,"px"),this.__menuDOM.style.left="".concat(e+10,"px"),this.container.appendChild(this.__menuDOM),!this.isShow&&this.lf.on("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!0}},{key:"hideMenu",value:function(){this.__menuDOM.innerHTML="",this.__menuDOM.style.display="none",this.isShow&&this.container.removeChild(this.__menuDOM),this.lf.off("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!1}}])&&i(e.prototype,n),o&&i(e,o),t}();u(c,"pluginName","ContextMenu"),e.default=c},function(t,e,n){n(4)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})}])}));
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=182)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(83))},function(t,e,n){var r=n(0),o=n(35),i=n(5),u=n(29),c=n(36),a=n(47),f=o("wks"),s=r.Symbol,l=a?s:s&&s.withoutSetter||u;t.exports=function(t){return i(f,t)&&(c||"string"==typeof f[t])||(c&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(0),o=n(18).f,i=n(9),u=n(13),c=n(33),a=n(57),f=n(58);t.exports=function(t,e){var n,s,l,p,v,y=t.target,h=t.global,d=t.stat;if(n=h?r:d?r[y]||c(y,{}):(r[y]||{}).prototype)for(s in e){if(p=e[s],l=t.noTargetGet?(v=o(n,s))&&v.value:n[s],!f(h?s:y+(d?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(n,s,p,t)}}},function(t,e,n){var r=n(11),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(r(t),e)}},function(t,e,n){var r=n(7),o=n(48),i=n(8),u=n(21),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=u(e),i(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(7),o=n(6),i=n(15);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(41),o=n(27);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(27);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(0),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(9),i=n(5),u=n(33),c=n(44),a=n(17),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,e,n,c){var a,f=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,v=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),(a=s(n)).source||(a.source=l.join("string"==typeof e?e:""))),t!==r?(f?!v&&t[e]&&(p=!0):delete t[e],p?t[e]=n:o(t,e,n)):p?t[e]=n:u(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||c(this)}))},function(t,e,n){var r=n(34),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,n){var r,o,i,u=n(85),c=n(0),a=n(3),f=n(9),s=n(5),l=n(32),p=n(26),v=n(16),y=c.WeakMap;if(u||l.state){var h=l.state||(l.state=new y),d=h.get,g=h.has,m=h.set;r=function(t,e){if(g.call(h,t))throw new TypeError("Object already initialized");return e.facade=t,m.call(h,t,e),e},o=function(t){return d.call(h,t)||{}},i=function(t){return g.call(h,t)}}else{var x=p("state");v[x]=!0,r=function(t,e){if(s(t,x))throw new TypeError("Object already initialized");return e.facade=t,f(t,x,e),e},o=function(t){return s(t,x)?t[x]:{}},i=function(t){return s(t,x)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(7),o=n(50),i=n(15),u=n(10),c=n(21),a=n(5),f=n(48),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=u(t),e=c(e),f)try{return s(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(12),o=n(47);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return"function"==typeof e&&Object(t)instanceof e}},function(t,e,n){var r,o=n(8),i=n(82),u=n(37),c=n(16),a=n(92),f=n(51),s=n(26),l=s("IE_PROTO"),p=function(){},v=function(t){return"<script>"+t+"<\/script>"},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;h="undefined"!=typeof document?document.domain&&r?y(r):((e=f("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(r);for(var n=u.length;n--;)delete h.prototype[u[n]];return h()};c[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=h(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(76),o=n(19);t.exports=function(t){var e=r(t,"string");return o(e)?e:String(e)}},function(t,e){t.exports={}},,function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=!1},function(t,e,n){var r=n(35),o=n(29),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(53),o=n(37).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(19);t.exports=function(t){if(r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},function(t,e,n){var r=n(0),o=n(33),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(25),o=n(32);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(38),o=n(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r,o,i=n(0),u=n(66),c=i.process,a=i.Deno,f=c&&c.versions||a&&a.version,s=f&&f.v8;s?o=(r=s.split("."))[0]<4?1:r[0]+r[1]:u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},function(t,e,n){var r=n(6).f,o=n(5),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(45);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(2),o=n(24),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(40),o=n(41),i=n(11),u=n(14),c=n(59),a=[].push,f=function(t){var e=1==t,n=2==t,f=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(y,h,d,g){for(var m,x,b=i(y),S=o(b),w=r(h,d,3),O=u(S.length),E=0,M=g||c,_=e?M(y,O):n||p?M(y,0):void 0;O>E;E++)if((v||E in S)&&(x=w(m=S[E],E,b),t))if(e)_[E]=x;else if(x)switch(t){case 3:return!0;case 5:return m;case 6:return E;case 2:a.call(_,m)}else switch(t){case 4:return!1;case 7:a.call(_,m)}return l?-1:f||s?s:_}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(t,e,n){var r={};r[n(1)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(32),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(53),o=n(37);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(36);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(2),i=n(51);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";var r=n(10),o=n(91),i=n(22),u=n(17),c=n(56),a=u.set,f=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){a(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(0),o=n(3),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){var r=n(5),o=n(11),i=n(26),u=n(87),c=i("IE_PROTO"),a=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(5),o=n(10),i=n(72).indexOf,u=n(16);t.exports=function(t,e){var n,c=o(t),a=0,f=[];for(n in c)!r(u,n)&&r(c,n)&&f.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(f,n)||f.push(n));return f}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(21),o=n(6),i=n(15);t.exports=function(t,e,n){var u=r(e);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,e,n){"use strict";var r=n(4),o=n(94),i=n(52),u=n(64),c=n(39),a=n(9),f=n(13),s=n(1),l=n(25),p=n(22),v=n(65),y=v.IteratorPrototype,h=v.BUGGY_SAFARI_ITERATORS,d=s("iterator"),g=function(){return this};t.exports=function(t,e,n,s,v,m,x){o(n,e,s);var b,S,w,O=function(t){if(t===v&&T)return T;if(!h&&t in _)return _[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",M=!1,_=t.prototype,j=_[d]||_["@@iterator"]||v&&_[v],T=!h&&j||O(v),A="Array"==e&&_.entries||j;if(A&&(b=i(A.call(new t)),y!==Object.prototype&&b.next&&(l||i(b)===y||(u?u(b,y):"function"!=typeof b[d]&&a(b,d,g)),c(b,E,!0,!0),l&&(p[E]=g))),"values"==v&&j&&"values"!==j.name&&(M=!0,T=function(){return j.call(this)}),l&&!x||_[d]===T||a(_,d,T),p[e]=T,v)if(S={values:O("values"),keys:m?T:O("keys"),entries:O("entries")},x)for(w in S)(h||M||!(w in _))&&f(_,w,S[w]);else r({target:e,proto:!0,forced:h||M},S);return S}},function(t,e,n){var r=n(5),o=n(71),i=n(18),u=n(6);t.exports=function(t,e){for(var n=o(e),c=u.f,a=i.f,f=0;f<n.length;f++){var s=n[f];r(t,s)||c(t,s,a(e,s))}}},function(t,e,n){var r=n(2),o=/#|\.prototype\./,i=function(t,e){var n=c[u(t)];return n==f||n!=a&&("function"==typeof e?r(e):!!e)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(86);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(34),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){"use strict";var r=n(42).forEach,o=n(67)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(2),o=n(1),i=n(38),u=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(8),o=n(95);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){"use strict";var r,o,i,u=n(2),c=n(52),a=n(9),f=n(5),s=n(1),l=n(25),p=s("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):v=!0);var y=null==r||u((function(){var t={};return r[p].call(t)!==t}));y&&(r={}),l&&!y||f(r,p)||a(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(t,e,n){var r=n(12);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){var r=n(43),o=n(13),i=n(100);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r=n(93).charAt,o=n(31),i=n(17),u=n(56),c=i.set,a=i.getterFor("String Iterator");u(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=a(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(4),o=n(0),i=n(12),u=n(25),c=n(7),a=n(36),f=n(2),s=n(5),l=n(28),p=n(3),v=n(19),y=n(8),h=n(11),d=n(10),g=n(21),m=n(31),x=n(15),b=n(20),S=n(46),w=n(30),O=n(88),E=n(54),M=n(18),_=n(6),j=n(50),T=n(9),A=n(13),I=n(35),N=n(26),P=n(16),k=n(29),C=n(1),D=n(75),L=n(78),F=n(39),R=n(17),G=n(42).forEach,z=N("hidden"),V=C("toPrimitive"),B=R.set,H=R.getterFor("Symbol"),U=Object.prototype,W=o.Symbol,X=i("JSON","stringify"),Y=M.f,$=_.f,K=O.f,q=j.f,J=I("symbols"),Q=I("op-symbols"),Z=I("string-to-symbol-registry"),tt=I("symbol-to-string-registry"),et=I("wks"),nt=o.QObject,rt=!nt||!nt.prototype||!nt.prototype.findChild,ot=c&&f((function(){return 7!=b($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(U,e);r&&delete U[e],$(t,e,n),r&&t!==U&&$(U,e,r)}:$,it=function(t,e){var n=J[t]=b(W.prototype);return B(n,{type:"Symbol",tag:t,description:e}),c||(n.description=e),n},ut=function(t,e,n){t===U&&ut(Q,e,n),y(t);var r=g(e);return y(n),s(J,r)?(n.enumerable?(s(t,z)&&t[z][r]&&(t[z][r]=!1),n=b(n,{enumerable:x(0,!1)})):(s(t,z)||$(t,z,x(1,{})),t[z][r]=!0),ot(t,r,n)):$(t,r,n)},ct=function(t,e){y(t);var n=d(e),r=S(n).concat(lt(n));return G(r,(function(e){c&&!at.call(n,e)||ut(t,e,n[e])})),t},at=function(t){var e=g(t),n=q.call(this,e);return!(this===U&&s(J,e)&&!s(Q,e))&&(!(n||!s(this,e)||!s(J,e)||s(this,z)&&this[z][e])||n)},ft=function(t,e){var n=d(t),r=g(e);if(n!==U||!s(J,r)||s(Q,r)){var o=Y(n,r);return!o||!s(J,r)||s(n,z)&&n[z][r]||(o.enumerable=!0),o}},st=function(t){var e=K(d(t)),n=[];return G(e,(function(t){s(J,t)||s(P,t)||n.push(t)})),n},lt=function(t){var e=t===U,n=K(e?Q:d(t)),r=[];return G(n,(function(t){!s(J,t)||e&&!s(U,t)||r.push(J[t])})),r};(a||(A((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=k(t),n=function(t){this===U&&n.call(Q,t),s(this,z)&&s(this[z],e)&&(this[z][e]=!1),ot(this,e,x(1,t))};return c&&rt&&ot(U,e,{configurable:!0,set:n}),it(e,t)}).prototype,"toString",(function(){return H(this).tag})),A(W,"withoutSetter",(function(t){return it(k(t),t)})),j.f=at,_.f=ut,M.f=ft,w.f=O.f=st,E.f=lt,D.f=function(t){return it(C(t),t)},c&&($(W.prototype,"description",{configurable:!0,get:function(){return H(this).description}}),u||A(U,"propertyIsEnumerable",at,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:W}),G(S(et),(function(t){L(t)})),r({target:"Symbol",stat:!0,forced:!a},{for:function(t){var e=m(t);if(s(Z,e))return Z[e];var n=W(e);return Z[e]=n,tt[n]=e,n},keyFor:function(t){if(!v(t))throw TypeError(t+" is not a symbol");if(s(tt,t))return tt[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!a,sham:!c},{create:function(t,e){return void 0===e?b(t):ct(b(t),e)},defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:st,getOwnPropertySymbols:lt}),r({target:"Object",stat:!0,forced:f((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(h(t))}}),X)&&r({target:"JSON",stat:!0,forced:!a||f((function(){var t=W();return"[null]"!=X([t])||"{}"!=X({a:t})||"{}"!=X(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(p(e)||void 0!==t)&&!v(t))return l(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!v(e))return e}),o[1]=e,X.apply(null,o)}});W.prototype[V]||T(W.prototype,V,W.prototype.valueOf),F(W,"Symbol"),P[z]=!0},function(t,e,n){var r=n(12),o=n(30),i=n(54),u=n(8);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(u(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(10),o=n(14),i=n(60),u=function(t){return function(e,n,u){var c,a=r(e),f=o(a.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,n){var r=n(74),o=n(22),i=n(1)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(43),o=n(24),i=n(1)("toStringTag"),u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:u?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r=n(1);e.f=r},function(t,e,n){var r=n(3),o=n(19),i=n(84),u=n(1)("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,c=t[u];if(void 0!==c){if(void 0===e&&(e="default"),n=c.call(t,e),!r(n)||o(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),i(t,e)}},function(t,e,n){var r=n(0),o=n(62),i=n(49),u=n(9),c=n(1),a=c("iterator"),f=c("toStringTag"),s=i.values;for(var l in o){var p=r[l],v=p&&p.prototype;if(v){if(v[a]!==s)try{u(v,a,s)}catch(t){v[a]=s}if(v[f]||u(v,f,l),o[l])for(var y in i)if(v[y]!==i[y])try{u(v,y,i[y])}catch(t){v[y]=i[y]}}}},function(t,e,n){var r=n(101),o=n(5),i=n(75),u=n(6).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(4),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(6).f})},function(t,e,n){"use strict";var r=n(4),o=n(7),i=n(0),u=n(5),c=n(3),a=n(6).f,f=n(57),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||void 0!==s().description)){var l={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new s(t):void 0===t?s():s(t);return""===t&&(l[e]=!0),e};f(p,s);var v=p.prototype=s.prototype;v.constructor=p;var y=v.toString,h="Symbol(test)"==String(s("test")),d=/^Symbol\((.*)\)[^)]+$/;a(v,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=y.call(t);if(u(l,t))return"";var n=h?e.slice(7,-1):e.replace(d,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},function(t,e,n){n(78)("iterator")},function(t,e,n){var r=n(7),o=n(6),i=n(8),u=n(46);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),c=r.length,a=0;c>a;)o.f(t,n=r[a++],e[n]);return t}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(3);t.exports=function(t,e){var n,o;if("string"===e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if("string"!==e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(44),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,n){var r=n(3),o=n(28),i=n(1)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)?r(e)&&null===(e=e[i])&&(e=void 0):e=void 0),void 0===e?Array:e}},function(t,e,n){var r=n(2);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(10),o=n(30).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(4),o=n(61);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(62),i=n(61),u=n(9);for(var c in o){var a=r[c],f=a&&a.prototype;if(f&&f.forEach!==i)try{u(f,"forEach",i)}catch(t){f.forEach=i}}},function(t,e,n){var r=n(1),o=n(20),i=n(6),u=r("unscopables"),c=Array.prototype;null==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},function(t,e,n){var r=n(12);t.exports=r("document","documentElement")},function(t,e,n){var r=n(34),o=n(31),i=n(27),u=function(t){return function(e,n){var u,c,a=o(i(e)),f=r(n),s=a.length;return f<0||f>=s?t?"":void 0:(u=a.charCodeAt(f))<55296||u>56319||f+1===s||(c=a.charCodeAt(f+1))<56320||c>57343?t?a.charAt(f):u:t?a.slice(f,f+2):c-56320+(u-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},function(t,e,n){"use strict";var r=n(65).IteratorPrototype,o=n(20),i=n(15),u=n(39),c=n(22),a=function(){return this};t.exports=function(t,e,n){var f=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),u(t,f,!1,!0),c[f]=a,t}},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var r=n(1),o=n(22),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,n){var r=n(8),o=n(73);t.exports=function(t,e){var n=arguments.length<2?o(t):e;if("function"!=typeof n)throw TypeError(String(t)+" is not iterable");return r(n.call(t))}},function(t,e,n){var r=n(8);t.exports=function(t,e,n){var o,i;r(t);try{if(void 0===(o=t.return)){if("throw"===e)throw n;return n}o=o.call(t)}catch(t){i=!0,o=t}if("throw"===e)throw n;if(i)throw o;return r(o),n}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(43),o=n(74);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(0);t.exports=r},function(t,e,n){var r=n(8),o=n(96),i=n(14),u=n(40),c=n(97),a=n(73),f=n(98),s=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,p,v,y,h,d,g,m=n&&n.that,x=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),w=u(e,m,1+x+S),O=function(t){return l&&f(l,"normal",t),new s(!0,t)},E=function(t){return x?(r(t),S?w(t[0],t[1],O):w(t[0],t[1])):S?w(t,O):w(t)};if(b)l=t;else{if("function"!=typeof(p=a(t)))throw TypeError("Target is not iterable");if(o(p)){for(v=0,y=i(t.length);y>v;v++)if((h=E(t[v]))&&h instanceof s)return h;return new s(!1)}l=c(t,p)}for(d=l.next;!(g=d.call(l)).done;){try{h=E(g.value)}catch(t){f(l,"throw",t)}if("object"==typeof h&&h&&h instanceof s)return h}return new s(!1)}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){"use strict";var r=n(4),o=n(2),i=n(28),u=n(3),c=n(11),a=n(14),f=n(55),s=n(59),l=n(63),p=n(1),v=n(38),y=p("isConcatSpreadable"),h=v>=51||!o((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),d=l("concat"),g=function(t){if(!u(t))return!1;var e=t[y];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!h||!d},{concat:function(t){var e,n,r,o,i,u=c(this),l=s(u,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(g(i=-1===e?u:arguments[e])){if(p+(o=a(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&f(l,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");f(l,p++,i)}return l.length=p,l}})},function(t,e,n){var r=n(4),o=n(16),i=n(3),u=n(5),c=n(6).f,a=n(30),f=n(88),s=n(29),l=n(125),p=!1,v=s("meta"),y=0,h=Object.isExtensible||function(){return!0},d=function(t){c(t,v,{value:{objectID:"O"+y++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},p=!0;var t=a.f,e=[].splice,n={};n[v]=1,t(n).length&&(a.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===v){e.call(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,v)){if(!h(t))return"F";if(!e)return"E";d(t)}return t[v].objectID},getWeakData:function(t,e){if(!u(t,v)){if(!h(t))return!0;if(!e)return!1;d(t)}return t[v].weakData},onFreeze:function(t){return l&&p&&h(t)&&!u(t,v)&&d(t),t}};o[v]=!0},,function(t,e,n){var r=n(3),o=n(64);t.exports=function(t,e,n){var i,u;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(u=i.prototype)&&u!==n.prototype&&o(t,u),t}},function(t,e,n){var r=n(4),o=n(113);r({target:"Array",stat:!0,forced:!n(99)((function(t){Array.from(t)}))},{from:o})},,,,,function(t,e,n){"use strict";var r=n(40),o=n(11),i=n(114),u=n(96),c=n(14),a=n(55),f=n(97),s=n(73);t.exports=function(t){var e,n,l,p,v,y,h=o(t),d="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,x=void 0!==m,b=s(h),S=0;if(x&&(m=r(m,g>2?arguments[2]:void 0,2)),null==b||d==Array&&u(b))for(n=new d(e=c(h.length));e>S;S++)y=x?m(h[S],S):h[S],a(n,S,y);else for(v=(p=f(h,b)).next,n=new d;!(l=v.call(p)).done;S++)y=x?i(p,m,[l.value,S],!0):l.value,a(n,S,y);return n.length=S,n}},function(t,e,n){var r=n(8),o=n(98);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},function(t,e,n){n(4)({target:"Array",stat:!0},{isArray:n(28)})},function(t,e,n){"use strict";var r=n(4),o=n(3),i=n(28),u=n(60),c=n(14),a=n(10),f=n(55),s=n(1),l=n(63)("slice"),p=s("species"),v=[].slice,y=Math.max;r({target:"Array",proto:!0,forced:!l},{slice:function(t,e){var n,r,s,l=a(this),h=c(l.length),d=u(t,h),g=u(void 0===e?h:e,h);if(i(l)&&("function"!=typeof(n=l.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[p])&&(n=void 0):n=void 0,n===Array||void 0===n))return v.call(l,d,g);for(r=new(void 0===n?Array:n)(y(g-d,0)),s=0;d<g;d++,s++)d in l&&f(r,s,l[d]);return r.length=s,r}})},function(t,e,n){var r=n(7),o=n(6).f,i=Function.prototype,u=i.toString,c=/^\s*function ([^ (]*)/;r&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return u.call(this).match(c)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(0),i=n(58),u=n(13),c=n(105),a=n(102),f=n(103),s=n(3),l=n(2),p=n(99),v=n(39),y=n(107);t.exports=function(t,e,n){var h=-1!==t.indexOf("Map"),d=-1!==t.indexOf("Weak"),g=h?"set":"add",m=o[t],x=m&&m.prototype,b=m,S={},w=function(t){var e=x[t];u(x,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(d&&!s(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return d&&!s(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(d&&!s(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(i(t,"function"!=typeof m||!(d||x.forEach&&!l((function(){(new m).entries().next()})))))b=n.getConstructor(e,t,h,g),c.enable();else if(i(t,!0)){var O=new b,E=O[g](d?{}:-0,1)!=O,M=l((function(){O.has(1)})),_=p((function(t){new m(t)})),j=!d&&l((function(){for(var t=new m,e=5;e--;)t[g](e,e);return!t.has(-0)}));_||((b=e((function(e,n){f(e,b,t);var r=y(new m,e,b);return null!=n&&a(n,r[g],{that:r,AS_ENTRIES:h}),r}))).prototype=x,x.constructor=b),(M||j)&&(w("delete"),w("has"),h&&w("get")),(j||E)&&w(g),d&&x.clear&&delete x.clear}return S[t]=b,r({global:!0,forced:b!=m},S),v(b,t),d||n.setStrong(b,t,h),b}},function(t,e,n){"use strict";var r=n(6).f,o=n(20),i=n(120),u=n(40),c=n(103),a=n(102),f=n(56),s=n(121),l=n(7),p=n(105).fastKey,v=n(17),y=v.set,h=v.getterFor;t.exports={getConstructor:function(t,e,n,f){var s=t((function(t,r){c(t,s,e),y(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&a(r,t[f],{that:t,AS_ENTRIES:n})})),v=h(e),d=function(t,e,n){var r,o,i=v(t),u=g(t,e);return u?u.value=n:(i.last=u={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},g=function(t,e){var n,r=v(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(s.prototype,{clear:function(){for(var t=v(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=v(this),n=g(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),l?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=v(this),r=u(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),i(s.prototype,n?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return d(this,0===t?0:t,e)}}:{add:function(t){return d(this,t=0===t?0:t,t)}}),l&&r(s.prototype,"size",{get:function(){return v(this).size}}),s},setStrong:function(t,e,n){var r=e+" Iterator",o=h(e),i=h(r);f(t,e,(function(t,e){y(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(e)}}},function(t,e,n){var r=n(13);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(12),o=n(6),i=n(1),u=n(7),c=i("species");t.exports=function(t){var e=r(t),n=o.f;u&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},,,function(t,e,n){"use strict";var r=n(118),o=n(119);t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},function(t,e,n){var r=n(2);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(7),o=n(0),i=n(58),u=n(13),c=n(5),a=n(24),f=n(107),s=n(19),l=n(76),p=n(2),v=n(20),y=n(30).f,h=n(18).f,d=n(6).f,g=n(139).trim,m=o.Number,x=m.prototype,b="Number"==a(v(x)),S=function(t){if(s(t))throw TypeError("Cannot convert a Symbol value to a number");var e,n,r,o,i,u,c,a,f=l(t,"number");if("string"==typeof f&&f.length>2)if(43===(e=(f=g(f)).charCodeAt(0))||45===e){if(88===(n=f.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(f.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(u=(i=f.slice(2)).length,c=0;c<u;c++)if((a=i.charCodeAt(c))<48||a>o)return NaN;return parseInt(i,r)}return+f};if(i("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,O=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof O&&(b?p((function(){x.valueOf.call(n)})):"Number"!=a(n))?f(new m(S(e)),n,O):S(e)},E=r?y(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),M=0;E.length>M;M++)c(m,w=E[M])&&!c(O,w)&&d(O,w,h(m,w));O.prototype=x,x.constructor=O,u(o,"Number",O)}},function(t,e,n){var r=n(27),o=n(31),i="["+n(140)+"]",u=RegExp("^"+i+i+"*"),c=RegExp(i+i+"*$"),a=function(t){return function(e){var n=o(r(e));return 1&t&&(n=n.replace(u,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:a(1),end:a(2),trim:a(3)}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},,,,,,,,,,,,,,,,,,,function(t,e,n){n(4)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"ContextMenu",(function(){return c}));n(49),n(124),n(68),n(69),n(77),n(183),n(138),n(159),n(89),n(90),n(104),n(79),n(115),n(70),n(80),n(81),n(116),n(117),n(108);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,c=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(){function t(e){var n=this,r=e.lf;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,"__menuDOM",void 0),u(this,"lf",void 0),u(this,"_activeData",void 0),u(this,"menuTypeMap",new Map),u(this,"container",void 0),u(this,"isShow",void 0),u(this,"listenDelete",(function(){n.hideMenu()})),this.lf=r,this.__menuDOM=document.createElement("div"),this.__menuDOM.className="lf-inner-context",this.menuTypeMap.set("menu-common",[]),this.lf.setContextMenuByType=function(t,e){n.menuTypeMap.set(t,e)},this.lf.setContextMenuItems=function(t){n.menuTypeMap.set("menu-common",t)},this.lf.showContextMenu=function(t){t&&t.id?(n._activeData=t,n.createContextMenu()):console.warn("请检查传入的参数")},this.lf.hideContextMenu=function(){n.hideMenu()}}var e,n,o;return e=t,(n=[{key:"render",value:function(t,e){var n=this;this.container=e,t.on("node:click",(function(t){var e=t.data;n._activeData=e,n.createContextMenu()})),t.on("edge:click",(function(t){var e=t.data;n._activeData=e,n.createContextMenu()})),t.on("blank:click",(function(){n.hideMenu()}))}},{key:"getContextMenuPosition",value:function(){var t=this._activeData,e=this.lf.graphModel.getElement(t.id);if(e){var n,r;if("edge"===e.BaseType){n=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER;var o=e.getData();n=Math.max(o.startPoint.x,n),r=Math.min(o.startPoint.y,r),n=Math.max(o.endPoint.x,n),r=Math.min(o.endPoint.y,r),o.pointsList&&o.pointsList.forEach((function(t){n=Math.max(t.x,n),r=Math.min(t.y,r)}))}return"node"===e.BaseType&&(n=t.x+e.width/2,r=t.y-e.height/2),this.lf.graphModel.transformMatrix.CanvasPointToHtmlPoint([n,r])}console.warn("找不到元素".concat(t.id))}},{key:"createContextMenu",value:function(){var t=this;if(!this.lf.options.isSilentMode){var e=this.menuTypeMap.get(this._activeData.type)||[];e=e.concat(this.menuTypeMap.get("menu-common"));var n=document.createDocumentFragment();e.forEach((function(e){var r=document.createElement("div");r.className="lf-context-item";var o=document.createElement("img");o.src=e.icon,o.className="lf-context-img",e.className&&(r.className="".concat(r.className," ").concat(e.className)),o.addEventListener("click",(function(){t.hideMenu(),e.callback?e.callback(t._activeData):t.addNode({sourceId:t._activeData.id,x:t._activeData.x,y:t._activeData.y,properties:e.properties,type:e.type})})),r.appendChild(o),n.appendChild(r)})),this.__menuDOM.innerHTML="",this.__menuDOM.appendChild(n),this.showMenu()}}},{key:"addNode",value:function(t,e){var n=void 0!==e;void 0===e&&(e=t.y);var r=this.lf.getNodeModel(t.sourceId),o=t.x-r.width+200,i=e-t.y/2-20,u=t.x+r.width+200,c=e+t.y/2+20;if(this.lf.getAreaElement([o,i],[u,c]).length)return e+=100,void this.addNode(t,e);var a,f,s=this.lf.addNode({type:t.type,x:t.x+200,y:e,properties:t.properties});n&&(a={x:t.x,y:t.y+r.height/2},f={x:s.x-s.width/2,y:s.y}),this.lf.createEdge({sourceNodeId:t.sourceId,targetNodeId:s.id,startPoint:a,endPoint:f})}},{key:"showMenu",value:function(){var t=r(this.getContextMenuPosition(),2),e=t[0],n=t[1];this.__menuDOM.style.display="flex",this.__menuDOM.style.top="".concat(n,"px"),this.__menuDOM.style.left="".concat(e+10,"px"),this.container.appendChild(this.__menuDOM),!this.isShow&&this.lf.on("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!0}},{key:"hideMenu",value:function(){this.__menuDOM.innerHTML="",this.__menuDOM.style.display="none",this.isShow&&this.container.removeChild(this.__menuDOM),this.lf.off("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!1}}])&&i(e.prototype,n),o&&i(e,o),t}();u(c,"pluginName","ContextMenu"),e.default=c},function(t,e,n){n(4)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})}])}));
|
package/lib/DndPanel.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e=n();for(var r in e)("object"==typeof exports?exports:t)[r]=e[r]}}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=189)}([function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,e(83))},function(t,n,e){var r=e(0),o=e(35),i=e(5),c=e(29),u=e(36),a=e(47),f=o("wks"),s=r.Symbol,l=a?s:s&&s.withoutSetter||c;t.exports=function(t){return i(f,t)&&(u||"string"==typeof f[t])||(u&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(0),o=e(18).f,i=e(9),c=e(13),u=e(33),a=e(57),f=e(58);t.exports=function(t,n){var e,s,l,p,v,d=t.target,y=t.global,h=t.stat;if(e=y?r:h?r[d]||u(d,{}):(r[d]||{}).prototype)for(s in n){if(p=n[s],l=t.noTargetGet?(v=o(e,s))&&v.value:e[s],!f(y?s:d+(h?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),c(e,s,p,t)}}},function(t,n,e){var r=e(11),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,n){return o.call(r(t),n)}},function(t,n,e){var r=e(7),o=e(48),i=e(8),c=e(21),u=Object.defineProperty;n.f=r?u:function(t,n,e){if(i(t),n=c(n),i(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n,e){var r=e(3);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,n,e){var r=e(7),o=e(6),i=e(15);t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(41),o=e(27);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(27);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(0),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?o(r[t]):r[t]&&r[t][n]}},function(t,n,e){var r=e(0),o=e(9),i=e(5),c=e(33),u=e(44),a=e(17),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,n,e,u){var a,f=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet;"function"==typeof e&&("string"!=typeof n||i(e,"name")||o(e,"name",n),(a=s(e)).source||(a.source=l.join("string"==typeof n?n:""))),t!==r?(f?!v&&t[n]&&(p=!0):delete t[n],p?t[n]=e:o(t,n,e)):p?t[n]=e:c(n,e)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||u(this)}))},function(t,n,e){var r=e(34),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){t.exports={}},function(t,n,e){var r,o,i,c=e(85),u=e(0),a=e(3),f=e(9),s=e(5),l=e(32),p=e(26),v=e(16),d=u.WeakMap;if(c||l.state){var y=l.state||(l.state=new d),h=y.get,m=y.has,b=y.set;r=function(t,n){if(m.call(y,t))throw new TypeError("Object already initialized");return n.facade=t,b.call(y,t,n),n},o=function(t){return h.call(y,t)||{}},i=function(t){return m.call(y,t)}}else{var g=p("state");v[g]=!0,r=function(t,n){if(s(t,g))throw new TypeError("Object already initialized");return n.facade=t,f(t,g,n),n},o=function(t){return s(t,g)?t[g]:{}},i=function(t){return s(t,g)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(n){var e;if(!a(n)||(e=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}}},function(t,n,e){var r=e(7),o=e(50),i=e(15),c=e(10),u=e(21),a=e(5),f=e(48),s=Object.getOwnPropertyDescriptor;n.f=r?s:function(t,n){if(t=c(t),n=u(n),f)try{return s(t,n)}catch(t){}if(a(t,n))return i(!o.f.call(t,n),t[n])}},function(t,n,e){var r=e(12),o=e(47);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var n=r("Symbol");return"function"==typeof n&&Object(t)instanceof n}},,function(t,n,e){var r=e(76),o=e(19);t.exports=function(t){var n=r(t,"string");return o(n)?n:String(n)}},,,function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=!1},function(t,n,e){var r=e(35),o=e(29),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},function(t,n,e){var r=e(53),o=e(37).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},,function(t,n,e){var r=e(0),o=e(33),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,n,e){var r=e(0);t.exports=function(t,n){try{Object.defineProperty(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(25),o=e(32);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.17.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){var r=e(38),o=e(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,e){var r,o,i=e(0),c=e(66),u=i.process,a=i.Deno,f=u&&u.versions||a&&a.version,s=f&&f.v8;s?o=(r=s.split("."))[0]<4?1:r[0]+r[1]:c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},,function(t,n,e){var r=e(45);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 0:return function(){return t.call(n)};case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(2),o=e(24),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,n,e){var r=e(40),o=e(41),i=e(11),c=e(14),u=e(59),a=[].push,f=function(t){var n=1==t,e=2==t,f=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(d,y,h,m){for(var b,g,x=i(d),S=o(x),w=r(y,h,3),O=c(S.length),j=0,E=m||u,L=n?E(d,O):e||p?E(d,0):void 0;O>j;j++)if((v||j in S)&&(g=w(b=S[j],j,x),t))if(n)L[j]=g;else if(g)switch(t){case 3:return!0;case 5:return b;case 6:return j;case 2:a.call(L,b)}else switch(t){case 4:return!1;case 7:a.call(L,b)}return l?-1:f||s?s:L}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},,function(t,n,e){var r=e(32),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},,function(t,n,e){var r=e(36);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,e){var r=e(7),o=e(2),i=e(51);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},,function(t,n,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},function(t,n,e){var r=e(0),o=e(3),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},,function(t,n,e){var r=e(5),o=e(10),i=e(72).indexOf,c=e(16);t.exports=function(t,n){var e,u=o(t),a=0,f=[];for(e in u)!r(c,e)&&r(u,e)&&f.push(e);for(;n.length>a;)r(u,e=n[a++])&&(~i(f,e)||f.push(e));return f}},function(t,n){n.f=Object.getOwnPropertySymbols},,,function(t,n,e){var r=e(5),o=e(71),i=e(18),c=e(6);t.exports=function(t,n){for(var e=o(n),u=c.f,a=i.f,f=0;f<e.length;f++){var s=e[f];r(t,s)||u(t,s,a(n,s))}}},function(t,n,e){var r=e(2),o=/#|\.prototype\./,i=function(t,n){var e=u[c(t)];return e==f||e!=a&&("function"==typeof n?r(n):!!n)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,n,e){var r=e(86);t.exports=function(t,n){return new(r(t))(0===n?0:n)}},function(t,n,e){var r=e(34),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},function(t,n,e){"use strict";var r=e(42).forEach,o=e(67)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,n){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},,,,function(t,n,e){var r=e(12);t.exports=r("navigator","userAgent")||""},function(t,n,e){"use strict";var r=e(2);t.exports=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){throw 1},1)}))}},,,,function(t,n,e){var r=e(12),o=e(30),i=e(54),c=e(8);t.exports=r("Reflect","ownKeys")||function(t){var n=o.f(c(t)),e=i.f;return e?n.concat(e(t)):n}},function(t,n,e){var r=e(10),o=e(14),i=e(60),c=function(t){return function(n,e,c){var u,a=r(n),f=o(a.length),s=i(c,f);if(t&&e!=e){for(;f>s;)if((u=a[s++])!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},,,,function(t,n,e){var r=e(3),o=e(19),i=e(84),c=e(1)("toPrimitive");t.exports=function(t,n){if(!r(t)||o(t))return t;var e,u=t[c];if(void 0!==u){if(void 0===n&&(n="default"),e=u.call(t,n),!r(e)||o(e))return e;throw TypeError("Can't convert object to primitive value")}return void 0===n&&(n="number"),i(t,n)}},,,function(t,n,e){var r=e(4),o=e(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:e(6).f})},,,,function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(3);t.exports=function(t,n){var e,o;if("string"===n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if("string"!==n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(0),o=e(44),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,n,e){var r=e(3),o=e(28),i=e(1)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),void 0===n?Array:n}},,,function(t,n,e){"use strict";var r=e(4),o=e(61);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,n,e){var r=e(0),o=e(62),i=e(61),c=e(9);for(var u in o){var a=r[u],f=a&&a.prototype;if(f&&f.forEach!==i)try{c(f,"forEach",i)}catch(t){f.forEach=i}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";e.r(n),e.d(n,"DndPanel",(function(){return i}));e(89),e(90),e(79);function r(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var i=function(){function t(n){var e=this,r=n.lf;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"lf",void 0),o(this,"shapeList",void 0),o(this,"panelEl",void 0),this.lf=r,this.lf.setPatternItems=function(t){e.shapeList=t}}var n,e,i;return n=t,(e=[{key:"render",value:function(t,n){var e=this;this.panelEl&&n.removeChild(this.panelEl),this.shapeList&&0!==this.shapeList.length&&(this.panelEl=document.createElement("div"),this.panelEl.className="lf-dndpanel",this.shapeList.forEach((function(t){e.panelEl.appendChild(e.createDndItem(t))})),n.appendChild(this.panelEl))}},{key:"createDndItem",value:function(t){var n=this,e=document.createElement("div");e.className=t.className?"lf-dnd-item ".concat(t.className):"lf-dnd-item";var r=document.createElement("div");if(r.className="lf-dnd-shape",t.icon&&(r.style.backgroundImage="url(".concat(t.icon,")")),e.appendChild(r),t.label){var o=document.createElement("div");o.innerText=t.label,o.className="lf-dnd-text",e.appendChild(o)}return e.onmousedown=function(){t.type&&n.lf.dnd.startDrag({type:t.type,properties:t.properties,text:t.text}),t.callback&&t.callback()},e}}])&&r(n.prototype,e),i&&r(n,i),t}();o(i,"pluginName","DndPanel")}])}));
|
|
1
|
+
!function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e=n();for(var r in e)("object"==typeof exports?exports:t)[r]=e[r]}}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=189)}([function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,e(83))},function(t,n,e){var r=e(0),o=e(35),i=e(5),c=e(29),u=e(36),a=e(47),f=o("wks"),s=r.Symbol,l=a?s:s&&s.withoutSetter||c;t.exports=function(t){return i(f,t)&&(u||"string"==typeof f[t])||(u&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(0),o=e(18).f,i=e(9),c=e(13),u=e(33),a=e(57),f=e(58);t.exports=function(t,n){var e,s,l,p,v,d=t.target,y=t.global,h=t.stat;if(e=y?r:h?r[d]||u(d,{}):(r[d]||{}).prototype)for(s in n){if(p=n[s],l=t.noTargetGet?(v=o(e,s))&&v.value:e[s],!f(y?s:d+(h?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),c(e,s,p,t)}}},function(t,n,e){var r=e(11),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,n){return o.call(r(t),n)}},function(t,n,e){var r=e(7),o=e(48),i=e(8),c=e(21),u=Object.defineProperty;n.f=r?u:function(t,n,e){if(i(t),n=c(n),i(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n,e){var r=e(3);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,n,e){var r=e(7),o=e(6),i=e(15);t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(41),o=e(27);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(27);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(0),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?o(r[t]):r[t]&&r[t][n]}},function(t,n,e){var r=e(0),o=e(9),i=e(5),c=e(33),u=e(44),a=e(17),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,n,e,u){var a,f=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet;"function"==typeof e&&("string"!=typeof n||i(e,"name")||o(e,"name",n),(a=s(e)).source||(a.source=l.join("string"==typeof n?n:""))),t!==r?(f?!v&&t[n]&&(p=!0):delete t[n],p?t[n]=e:o(t,n,e)):p?t[n]=e:c(n,e)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||u(this)}))},function(t,n,e){var r=e(34),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){t.exports={}},function(t,n,e){var r,o,i,c=e(85),u=e(0),a=e(3),f=e(9),s=e(5),l=e(32),p=e(26),v=e(16),d=u.WeakMap;if(c||l.state){var y=l.state||(l.state=new d),h=y.get,m=y.has,b=y.set;r=function(t,n){if(m.call(y,t))throw new TypeError("Object already initialized");return n.facade=t,b.call(y,t,n),n},o=function(t){return h.call(y,t)||{}},i=function(t){return m.call(y,t)}}else{var g=p("state");v[g]=!0,r=function(t,n){if(s(t,g))throw new TypeError("Object already initialized");return n.facade=t,f(t,g,n),n},o=function(t){return s(t,g)?t[g]:{}},i=function(t){return s(t,g)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(n){var e;if(!a(n)||(e=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}}},function(t,n,e){var r=e(7),o=e(50),i=e(15),c=e(10),u=e(21),a=e(5),f=e(48),s=Object.getOwnPropertyDescriptor;n.f=r?s:function(t,n){if(t=c(t),n=u(n),f)try{return s(t,n)}catch(t){}if(a(t,n))return i(!o.f.call(t,n),t[n])}},function(t,n,e){var r=e(12),o=e(47);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var n=r("Symbol");return"function"==typeof n&&Object(t)instanceof n}},,function(t,n,e){var r=e(76),o=e(19);t.exports=function(t){var n=r(t,"string");return o(n)?n:String(n)}},,,function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=!1},function(t,n,e){var r=e(35),o=e(29),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},function(t,n,e){var r=e(53),o=e(37).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},,function(t,n,e){var r=e(0),o=e(33),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,n,e){var r=e(0);t.exports=function(t,n){try{Object.defineProperty(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(25),o=e(32);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.17.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){var r=e(38),o=e(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,e){var r,o,i=e(0),c=e(66),u=i.process,a=i.Deno,f=u&&u.versions||a&&a.version,s=f&&f.v8;s?o=(r=s.split("."))[0]<4?1:r[0]+r[1]:c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},,function(t,n,e){var r=e(45);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 0:return function(){return t.call(n)};case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(2),o=e(24),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,n,e){var r=e(40),o=e(41),i=e(11),c=e(14),u=e(59),a=[].push,f=function(t){var n=1==t,e=2==t,f=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(d,y,h,m){for(var b,g,x=i(d),S=o(x),w=r(y,h,3),O=c(S.length),j=0,E=m||u,L=n?E(d,O):e||p?E(d,0):void 0;O>j;j++)if((v||j in S)&&(g=w(b=S[j],j,x),t))if(n)L[j]=g;else if(g)switch(t){case 3:return!0;case 5:return b;case 6:return j;case 2:a.call(L,b)}else switch(t){case 4:return!1;case 7:a.call(L,b)}return l?-1:f||s?s:L}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},,function(t,n,e){var r=e(32),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},,function(t,n,e){var r=e(36);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,e){var r=e(7),o=e(2),i=e(51);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},,function(t,n,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},function(t,n,e){var r=e(0),o=e(3),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},,function(t,n,e){var r=e(5),o=e(10),i=e(72).indexOf,c=e(16);t.exports=function(t,n){var e,u=o(t),a=0,f=[];for(e in u)!r(c,e)&&r(u,e)&&f.push(e);for(;n.length>a;)r(u,e=n[a++])&&(~i(f,e)||f.push(e));return f}},function(t,n){n.f=Object.getOwnPropertySymbols},,,function(t,n,e){var r=e(5),o=e(71),i=e(18),c=e(6);t.exports=function(t,n){for(var e=o(n),u=c.f,a=i.f,f=0;f<e.length;f++){var s=e[f];r(t,s)||u(t,s,a(n,s))}}},function(t,n,e){var r=e(2),o=/#|\.prototype\./,i=function(t,n){var e=u[c(t)];return e==f||e!=a&&("function"==typeof n?r(n):!!n)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,n,e){var r=e(86);t.exports=function(t,n){return new(r(t))(0===n?0:n)}},function(t,n,e){var r=e(34),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},function(t,n,e){"use strict";var r=e(42).forEach,o=e(67)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,n){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},,,,function(t,n,e){var r=e(12);t.exports=r("navigator","userAgent")||""},function(t,n,e){"use strict";var r=e(2);t.exports=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){throw 1},1)}))}},,,,function(t,n,e){var r=e(12),o=e(30),i=e(54),c=e(8);t.exports=r("Reflect","ownKeys")||function(t){var n=o.f(c(t)),e=i.f;return e?n.concat(e(t)):n}},function(t,n,e){var r=e(10),o=e(14),i=e(60),c=function(t){return function(n,e,c){var u,a=r(n),f=o(a.length),s=i(c,f);if(t&&e!=e){for(;f>s;)if((u=a[s++])!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},,,,function(t,n,e){var r=e(3),o=e(19),i=e(84),c=e(1)("toPrimitive");t.exports=function(t,n){if(!r(t)||o(t))return t;var e,u=t[c];if(void 0!==u){if(void 0===n&&(n="default"),e=u.call(t,n),!r(e)||o(e))return e;throw TypeError("Can't convert object to primitive value")}return void 0===n&&(n="number"),i(t,n)}},,,function(t,n,e){var r=e(4),o=e(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:e(6).f})},,,,function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(3);t.exports=function(t,n){var e,o;if("string"===n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if("string"!==n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(0),o=e(44),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,n,e){var r=e(3),o=e(28),i=e(1)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),void 0===n?Array:n}},,,function(t,n,e){"use strict";var r=e(4),o=e(61);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,n,e){var r=e(0),o=e(62),i=e(61),c=e(9);for(var u in o){var a=r[u],f=a&&a.prototype;if(f&&f.forEach!==i)try{c(f,"forEach",i)}catch(t){f.forEach=i}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";e.r(n),e.d(n,"DndPanel",(function(){return i}));e(89),e(90),e(79);function r(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var i=function(){function t(n){var e=this,r=n.lf;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"lf",void 0),o(this,"shapeList",void 0),o(this,"panelEl",void 0),o(this,"domContainer",void 0),this.lf=r,this.lf.setPatternItems=function(t){e.shapeList=t,e.domContainer&&e.render(e.lf,e.domContainer)}}var n,e,i;return n=t,(e=[{key:"render",value:function(t,n){var e=this;this.panelEl&&n.removeChild(this.panelEl),this.shapeList&&0!==this.shapeList.length&&(this.panelEl=document.createElement("div"),this.panelEl.className="lf-dndpanel",this.shapeList.forEach((function(t){e.panelEl.appendChild(e.createDndItem(t))})),n.appendChild(this.panelEl),this.domContainer=n)}},{key:"createDndItem",value:function(t){var n=this,e=document.createElement("div");e.className=t.className?"lf-dnd-item ".concat(t.className):"lf-dnd-item";var r=document.createElement("div");if(r.className="lf-dnd-shape",t.icon&&(r.style.backgroundImage="url(".concat(t.icon,")")),e.appendChild(r),t.label){var o=document.createElement("div");o.innerText=t.label,o.className="lf-dnd-text",e.appendChild(o)}return e.onmousedown=function(){t.type&&n.lf.dnd.startDrag({type:t.type,properties:t.properties,text:t.text}),t.callback&&t.callback()},e}}])&&r(n.prototype,e),i&&r(n,i),t}();o(i,"pluginName","DndPanel")}])}));
|