bpmn-js 17.8.0 → 17.8.2
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/dist/bpmn-modeler.development.js +114 -154
- package/dist/bpmn-modeler.production.min.js +37 -37
- package/dist/bpmn-navigated-viewer.development.js +79 -115
- package/dist/bpmn-navigated-viewer.production.min.js +5 -5
- package/dist/bpmn-viewer.development.js +68 -115
- package/dist/bpmn-viewer.production.min.js +5 -5
- package/lib/features/drilldown/DrilldownBreadcrumbs.js +17 -10
- package/lib/features/search/BpmnSearchProvider.js +2 -2
- package/package.json +11 -11
- package/test/helper/index.js +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-modeler v17.8.
|
|
2
|
+
* bpmn-js - bpmn-modeler v17.8.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2014-present, camunda Services GmbH
|
|
5
5
|
*
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Source Code: https://github.com/bpmn-io/bpmn-js
|
|
10
10
|
*
|
|
11
|
-
* Date: 2024-
|
|
11
|
+
* Date: 2024-06-17
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
*
|
|
179
179
|
* @template T
|
|
180
180
|
*
|
|
181
|
-
* @param {T[][]} arr
|
|
181
|
+
* @param {T[][] | T[] | null} [arr]
|
|
182
182
|
*
|
|
183
183
|
* @return {T[]}
|
|
184
184
|
*/
|
|
@@ -845,7 +845,7 @@
|
|
|
845
845
|
*
|
|
846
846
|
* @return {T}
|
|
847
847
|
*/
|
|
848
|
-
function set$
|
|
848
|
+
function set$1(target, path, value) {
|
|
849
849
|
|
|
850
850
|
let currentTarget = target;
|
|
851
851
|
|
|
@@ -956,9 +956,11 @@
|
|
|
956
956
|
/**
|
|
957
957
|
* Flatten array, one level deep.
|
|
958
958
|
*
|
|
959
|
-
* @
|
|
959
|
+
* @template T
|
|
960
|
+
*
|
|
961
|
+
* @param {T[][] | T[] | null} [arr]
|
|
960
962
|
*
|
|
961
|
-
* @return {
|
|
963
|
+
* @return {T[]}
|
|
962
964
|
*/
|
|
963
965
|
|
|
964
966
|
const nativeToString = Object.prototype.toString;
|
|
@@ -989,10 +991,11 @@
|
|
|
989
991
|
* Iterate over collection; returning something
|
|
990
992
|
* (non-undefined) will stop iteration.
|
|
991
993
|
*
|
|
992
|
-
* @
|
|
993
|
-
* @param
|
|
994
|
+
* @template T
|
|
995
|
+
* @param {Collection<T>} collection
|
|
996
|
+
* @param { ((item: T, idx: number) => (boolean|void)) | ((item: T, key: string) => (boolean|void)) } iterator
|
|
994
997
|
*
|
|
995
|
-
* @return {
|
|
998
|
+
* @return {T} return result that stopped the iteration
|
|
996
999
|
*/
|
|
997
1000
|
function forEach(collection, iterator) {
|
|
998
1001
|
|
|
@@ -1215,51 +1218,37 @@
|
|
|
1215
1218
|
};
|
|
1216
1219
|
|
|
1217
1220
|
/**
|
|
1218
|
-
*
|
|
1221
|
+
* Clear utility
|
|
1219
1222
|
*/
|
|
1220
|
-
function clear$1(el) {
|
|
1221
|
-
|
|
1222
|
-
var c;
|
|
1223
|
-
|
|
1224
|
-
while (el.childNodes.length) {
|
|
1225
|
-
c = el.childNodes[0];
|
|
1226
|
-
el.removeChild(c);
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
return el;
|
|
1230
|
-
}
|
|
1231
1223
|
|
|
1232
1224
|
/**
|
|
1233
|
-
*
|
|
1234
|
-
* @param { String } selector
|
|
1225
|
+
* Removes all children from the given element
|
|
1235
1226
|
*
|
|
1236
|
-
* @
|
|
1227
|
+
* @param {Element} element
|
|
1228
|
+
*
|
|
1229
|
+
* @return {Element} the element (for chaining)
|
|
1237
1230
|
*/
|
|
1238
|
-
function
|
|
1239
|
-
|
|
1231
|
+
function clear$1(element) {
|
|
1232
|
+
var child;
|
|
1233
|
+
|
|
1234
|
+
while ((child = element.firstChild)) {
|
|
1235
|
+
element.removeChild(child);
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
return element;
|
|
1240
1239
|
}
|
|
1241
1240
|
|
|
1242
1241
|
/**
|
|
1243
1242
|
* Closest
|
|
1244
1243
|
*
|
|
1245
1244
|
* @param {Element} el
|
|
1246
|
-
* @param {
|
|
1247
|
-
* @param {
|
|
1245
|
+
* @param {string} selector
|
|
1246
|
+
* @param {boolean} checkYourSelf (optional)
|
|
1248
1247
|
*/
|
|
1249
1248
|
function closest(element, selector, checkYourSelf) {
|
|
1250
|
-
var
|
|
1251
|
-
|
|
1252
|
-
while (currentElem && currentElem.nodeType !== document.DOCUMENT_NODE &&
|
|
1253
|
-
currentElem.nodeType !== document.DOCUMENT_FRAGMENT_NODE) {
|
|
1254
|
-
|
|
1255
|
-
if (matches(currentElem, selector)) {
|
|
1256
|
-
return currentElem;
|
|
1257
|
-
}
|
|
1249
|
+
var actualElement = checkYourSelf ? element : element.parentNode;
|
|
1258
1250
|
|
|
1259
|
-
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
return matches(currentElem, selector) ? currentElem : null;
|
|
1251
|
+
return actualElement && typeof actualElement.closest === 'function' && actualElement.closest(selector) || null;
|
|
1263
1252
|
}
|
|
1264
1253
|
|
|
1265
1254
|
var componentEvent = {};
|
|
@@ -1485,6 +1474,16 @@
|
|
|
1485
1474
|
|
|
1486
1475
|
var domify$1 = domify;
|
|
1487
1476
|
|
|
1477
|
+
/**
|
|
1478
|
+
* @param { HTMLElement } element
|
|
1479
|
+
* @param { String } selector
|
|
1480
|
+
*
|
|
1481
|
+
* @return { boolean }
|
|
1482
|
+
*/
|
|
1483
|
+
function matches(element, selector) {
|
|
1484
|
+
return element && typeof element.matches === 'function' && element.matches(selector) || false;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1488
1487
|
function query(selector, el) {
|
|
1489
1488
|
el = el || document;
|
|
1490
1489
|
|
|
@@ -1521,6 +1520,7 @@
|
|
|
1521
1520
|
* appendTo utility
|
|
1522
1521
|
*/
|
|
1523
1522
|
|
|
1523
|
+
|
|
1524
1524
|
/**
|
|
1525
1525
|
* Append a node to a target element and return the appended node.
|
|
1526
1526
|
*
|
|
@@ -1537,6 +1537,7 @@
|
|
|
1537
1537
|
* append utility
|
|
1538
1538
|
*/
|
|
1539
1539
|
|
|
1540
|
+
|
|
1540
1541
|
/**
|
|
1541
1542
|
* Append a node to an element
|
|
1542
1543
|
*
|
|
@@ -1809,16 +1810,6 @@
|
|
|
1809
1810
|
return this.list.contains(name);
|
|
1810
1811
|
};
|
|
1811
1812
|
|
|
1812
|
-
function remove$1(element) {
|
|
1813
|
-
var parent = element.parentNode;
|
|
1814
|
-
|
|
1815
|
-
if (parent) {
|
|
1816
|
-
parent.removeChild(element);
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
return element;
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
1813
|
/**
|
|
1823
1814
|
* Clear utility
|
|
1824
1815
|
*/
|
|
@@ -1826,14 +1817,14 @@
|
|
|
1826
1817
|
/**
|
|
1827
1818
|
* Removes all children from the given element
|
|
1828
1819
|
*
|
|
1829
|
-
* @param {
|
|
1830
|
-
* @return {
|
|
1820
|
+
* @param {SVGElement} element
|
|
1821
|
+
* @return {Element} the element (for chaining)
|
|
1831
1822
|
*/
|
|
1832
1823
|
function clear(element) {
|
|
1833
1824
|
var child;
|
|
1834
1825
|
|
|
1835
1826
|
while ((child = element.firstChild)) {
|
|
1836
|
-
|
|
1827
|
+
element.removeChild(child);
|
|
1837
1828
|
}
|
|
1838
1829
|
|
|
1839
1830
|
return element;
|
|
@@ -1851,6 +1842,7 @@
|
|
|
1851
1842
|
* DOM parsing utility
|
|
1852
1843
|
*/
|
|
1853
1844
|
|
|
1845
|
+
|
|
1854
1846
|
var SVG_START = '<svg xmlns="' + ns.svg + '"';
|
|
1855
1847
|
|
|
1856
1848
|
function parse(svg) {
|
|
@@ -1902,6 +1894,7 @@
|
|
|
1902
1894
|
*/
|
|
1903
1895
|
|
|
1904
1896
|
|
|
1897
|
+
|
|
1905
1898
|
/**
|
|
1906
1899
|
* Create a specific type from name or SVG markup.
|
|
1907
1900
|
*
|
|
@@ -1913,6 +1906,8 @@
|
|
|
1913
1906
|
function create$1(name, attrs) {
|
|
1914
1907
|
var element;
|
|
1915
1908
|
|
|
1909
|
+
name = name.trim();
|
|
1910
|
+
|
|
1916
1911
|
if (name.charAt(0) === '<') {
|
|
1917
1912
|
element = parse(name).firstChild;
|
|
1918
1913
|
element = document.importNode(element, true);
|
|
@@ -1931,6 +1926,7 @@
|
|
|
1931
1926
|
* Geometry helpers
|
|
1932
1927
|
*/
|
|
1933
1928
|
|
|
1929
|
+
|
|
1934
1930
|
// fake node used to instantiate svg geometry elements
|
|
1935
1931
|
var node = null;
|
|
1936
1932
|
|
|
@@ -1984,9 +1980,7 @@
|
|
|
1984
1980
|
}
|
|
1985
1981
|
|
|
1986
1982
|
function createTransform(matrix) {
|
|
1987
|
-
|
|
1988
|
-
return getNode().createSVGTransformFromMatrix(matrix);
|
|
1989
|
-
} else {
|
|
1983
|
+
{
|
|
1990
1984
|
return getNode().createSVGTransform();
|
|
1991
1985
|
}
|
|
1992
1986
|
}
|
|
@@ -2068,38 +2062,6 @@
|
|
|
2068
2062
|
return output;
|
|
2069
2063
|
}
|
|
2070
2064
|
|
|
2071
|
-
/**
|
|
2072
|
-
* innerHTML like functionality for SVG elements.
|
|
2073
|
-
* based on innerSVG (https://code.google.com/p/innersvg)
|
|
2074
|
-
*/
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
function set$1(element, svg) {
|
|
2078
|
-
|
|
2079
|
-
var parsed = parse(svg);
|
|
2080
|
-
|
|
2081
|
-
// clear element contents
|
|
2082
|
-
clear(element);
|
|
2083
|
-
|
|
2084
|
-
if (!svg) {
|
|
2085
|
-
return;
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
if (!isFragment(parsed)) {
|
|
2089
|
-
|
|
2090
|
-
// extract <svg> from parsed document
|
|
2091
|
-
parsed = parsed.documentElement;
|
|
2092
|
-
}
|
|
2093
|
-
|
|
2094
|
-
var nodes = slice$1(parsed.childNodes);
|
|
2095
|
-
|
|
2096
|
-
// import + append each node
|
|
2097
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
2098
|
-
appendTo(nodes[i], element);
|
|
2099
|
-
}
|
|
2100
|
-
|
|
2101
|
-
}
|
|
2102
|
-
|
|
2103
2065
|
function get(element) {
|
|
2104
2066
|
var child = element.firstChild,
|
|
2105
2067
|
output = [];
|
|
@@ -2112,29 +2074,21 @@
|
|
|
2112
2074
|
return output.join('');
|
|
2113
2075
|
}
|
|
2114
2076
|
|
|
2115
|
-
function isFragment(node) {
|
|
2116
|
-
return node.nodeName === '#document-fragment';
|
|
2117
|
-
}
|
|
2118
|
-
|
|
2119
2077
|
function innerSVG(element, svg) {
|
|
2120
2078
|
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
try {
|
|
2124
|
-
set$1(element, svg);
|
|
2125
|
-
} catch (e) {
|
|
2126
|
-
throw new Error('error parsing SVG: ' + e.message);
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
|
-
return element;
|
|
2130
|
-
} else {
|
|
2079
|
+
{
|
|
2131
2080
|
return get(element);
|
|
2132
2081
|
}
|
|
2133
2082
|
}
|
|
2134
2083
|
|
|
2084
|
+
function remove$1(element) {
|
|
2085
|
+
var parent = element.parentNode;
|
|
2086
|
+
|
|
2087
|
+
if (parent) {
|
|
2088
|
+
parent.removeChild(element);
|
|
2089
|
+
}
|
|
2135
2090
|
|
|
2136
|
-
|
|
2137
|
-
return Array.prototype.slice.call(arr);
|
|
2091
|
+
return element;
|
|
2138
2092
|
}
|
|
2139
2093
|
|
|
2140
2094
|
/**
|
|
@@ -3043,7 +2997,7 @@
|
|
|
3043
2997
|
var children = element.children;
|
|
3044
2998
|
|
|
3045
2999
|
// max traversal depth not reached yet
|
|
3046
|
-
|
|
3000
|
+
{
|
|
3047
3001
|
|
|
3048
3002
|
// children exist && children not yet processed
|
|
3049
3003
|
if (children && add$1(processedChildren, children, unique)) {
|
|
@@ -3065,7 +3019,7 @@
|
|
|
3065
3019
|
* @return {Element[]} the collected elements
|
|
3066
3020
|
*/
|
|
3067
3021
|
function selfAndAllChildren(elements, allowDuplicates) {
|
|
3068
|
-
return selfAndChildren(elements, !allowDuplicates
|
|
3022
|
+
return selfAndChildren(elements, !allowDuplicates);
|
|
3069
3023
|
}
|
|
3070
3024
|
|
|
3071
3025
|
|
|
@@ -8049,7 +8003,7 @@
|
|
|
8049
8003
|
rotate.setRotate(angle || 0, 0, 0);
|
|
8050
8004
|
|
|
8051
8005
|
var scale = createTransform();
|
|
8052
|
-
scale.setScale(
|
|
8006
|
+
scale.setScale(1, 1);
|
|
8053
8007
|
|
|
8054
8008
|
transform$1(gfx, [ translate, rotate, scale ]);
|
|
8055
8009
|
}
|
|
@@ -9520,7 +9474,7 @@
|
|
|
9520
9474
|
return this[key];
|
|
9521
9475
|
},
|
|
9522
9476
|
set: function(key, value) {
|
|
9523
|
-
set$
|
|
9477
|
+
set$1(this, [ key ], value);
|
|
9524
9478
|
}
|
|
9525
9479
|
};
|
|
9526
9480
|
|
|
@@ -16965,6 +16919,7 @@
|
|
|
16965
16919
|
*/
|
|
16966
16920
|
|
|
16967
16921
|
|
|
16922
|
+
|
|
16968
16923
|
// inlined ../../resources/logo.svg
|
|
16969
16924
|
var BPMNIO_LOGO_SVG = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>';
|
|
16970
16925
|
|
|
@@ -23524,24 +23479,31 @@
|
|
|
23524
23479
|
businessObjectParents = getBusinessObjectParentChain(element);
|
|
23525
23480
|
}
|
|
23526
23481
|
|
|
23527
|
-
var path = businessObjectParents.
|
|
23528
|
-
var
|
|
23529
|
-
|
|
23530
|
-
|
|
23531
|
-
var parentPlane = canvas.findRoot(getPlaneIdFromShape(parent)) || canvas.findRoot(parent.id);
|
|
23482
|
+
var path = businessObjectParents.flatMap(function(parent) {
|
|
23483
|
+
var parentPlane =
|
|
23484
|
+
canvas.findRoot(getPlaneIdFromShape(parent)) ||
|
|
23485
|
+
canvas.findRoot(parent.id);
|
|
23532
23486
|
|
|
23533
|
-
// when the root is a collaboration, the process does not have a
|
|
23534
|
-
// element in the elementRegisty. Instead, we search
|
|
23487
|
+
// when the root is a collaboration, the process does not have a
|
|
23488
|
+
// corresponding element in the elementRegisty. Instead, we search
|
|
23489
|
+
// for the corresponding participant
|
|
23535
23490
|
if (!parentPlane && is$1(parent, 'bpmn:Process')) {
|
|
23536
23491
|
var participant = elementRegistry.find(function(element) {
|
|
23537
23492
|
var businessObject = getBusinessObject(element);
|
|
23538
23493
|
|
|
23539
|
-
return businessObject && businessObject.get('processRef')
|
|
23494
|
+
return businessObject && businessObject.get('processRef') === parent;
|
|
23540
23495
|
});
|
|
23541
23496
|
|
|
23542
|
-
parentPlane = canvas.findRoot(participant.id);
|
|
23497
|
+
parentPlane = participant && canvas.findRoot(participant.id);
|
|
23498
|
+
}
|
|
23499
|
+
|
|
23500
|
+
if (!parentPlane) {
|
|
23501
|
+
return [];
|
|
23543
23502
|
}
|
|
23544
23503
|
|
|
23504
|
+
var title = escapeHTML(parent.name || parent.id);
|
|
23505
|
+
var link = domify$1('<li><span class="bjs-crumb"><a title="' + title + '">' + title + '</a></span></li>');
|
|
23506
|
+
|
|
23545
23507
|
link.addEventListener('click', function() {
|
|
23546
23508
|
canvas.setRootElement(parentPlane);
|
|
23547
23509
|
});
|
|
@@ -27689,13 +27651,13 @@
|
|
|
27689
27651
|
contextPad: [ 'type', ContextPad ]
|
|
27690
27652
|
};
|
|
27691
27653
|
|
|
27692
|
-
var n$1,l$1,u$1,i$1,o$1,r$2,f$1,c$1={},s$1=[],a$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h$1=Array.isArray;function v$1(n,l){for(var u in l)n[u]=l[u];return n}function p$1(n){var l=n.parentNode;l&&l.removeChild(n);}function y$1(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n$1.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d$1(l,f,i,o,null)}function d$1(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u$1:r,__i:-1,__u:0};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function g(n){return n.children}function b(n,l){this.props=n,this.context=l;}function m$2(n,l){if(null==l)return n.__?m$2(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?m$2(n):null}function w$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return w$1(n)}}function k$1(n){(!n.__d&&(n.__d=!0)&&i$1.push(n)&&!x$1.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||r$2)(x$1);}function x$1(){var n,u,t,o,r,e,c,s,a;for(i$1.sort(f$1);n=i$1.shift();)n.__d&&(u=i$1.length,o=void 0,e=(r=(t=n).__v).__e,s=[],a=[],(c=t.__P)&&((o=v$1({},r)).__v=r.__v+1,l$1.vnode&&l$1.vnode(o),L(c,o,r,t.__n,void 0!==c.ownerSVGElement,32&r.__u?[e]:null,s,null==e?m$2(r):e,!!(32&r.__u),a),o.__v=r.__v,o.__.__k[o.__i]=o,M(s,o,a),o.__e!=e&&w$1(o)),i$1.length>u&&i$1.sort(f$1));x$1.__r=0;}function C$1(n,l,u,t,i,o,r,f,e,a,h){var v,p,y,d,_,g=t&&t.__k||s$1,b=l.length;for(u.__d=e,P(u,l,g),e=u.__d,v=0;v<b;v++)null!=(y=u.__k[v])&&"boolean"!=typeof y&&"function"!=typeof y&&(p=-1===y.__i?c$1:g[y.__i]||c$1,y.__i=v,L(n,y,p,i,o,r,f,e,a,h),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&z$1(p.ref,null,y),h.push(y.ref,y.__c||d,y)),null==_&&null!=d&&(_=d),65536&y.__u||p.__k===y.__k?e=S(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=_;}function P(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)r=t+a,null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?d$1(null,i,null,null,null):h$1(i)?d$1(g,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?d$1(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=H(i,u,r,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f===r+1?a++:f>r?s>e-r?a+=f-r:a--:f<r?f==r-1&&(a=f-r):a=0,f!==t+a&&(i.__u|=65536))):(o=u[r])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m$2(o)),N(o,o,!1),u[r]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m$2(o)),N(o,o));}function S(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=S(t[i],l,u));return l}n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8===l.nodeType);return l}function H(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--;}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++;}}return -1}function I(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$1.test(l)?u:u+"px";}function T(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||I(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||I(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=Date.now(),n.addEventListener(l,o?D$1:A$1,o)):n.removeEventListener(l,o?D$1:A$1,o);else {if(i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&"role"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function A$1(n){if(this.l){var u=this.l[n.type+!1];if(n.t){if(n.t<=u.u)return}else n.t=Date.now();return u(l$1.event?l$1.event(n):n)}}function D$1(n){if(this.l)return this.l[n.type+!0](l$1.event?l$1.event(n):n)}function L(n,u,t,i,o,r,f,e,c,s){var a,p,y,d,_,m,w,k,x,P,S,$,H,I,T,A=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l$1.__b)&&a(u);n:if("function"==typeof A)try{if(k=u.props,x=(a=A.contextType)&&i[a.__c],P=a?x?x.props.value:a.__:i,t.__c?w=(p=u.__c=t.__c).__=p.__E:("prototype"in A&&A.prototype.render?u.__c=p=new A(k,P):(u.__c=p=new b(k,P),p.constructor=A,p.render=O),x&&x.sub(p),p.props=k,p.state||(p.state={}),p.context=P,p.__n=i,y=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=A.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=v$1({},p.__s)),v$1(p.__s,A.getDerivedStateFromProps(k,p.__s))),d=p.props,_=p.state,p.__v=u,y)null==A.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else {if(null==A.getDerivedStateFromProps&&k!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(k,P),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(k,p.__s,P)||u.__v===t.__v)){for(u.__v!==t.__v&&(p.props=k,p.state=p.__s,p.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u);}),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[],p.__h.length&&f.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(k,p.__s,P),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,_,m);});}if(p.context=P,p.props=k,p.__P=n,p.__e=!1,$=l$1.__r,H=0,"prototype"in A&&A.prototype.render){for(p.state=p.__s,p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),I=0;I<p._sb.length;I++)p.__h.push(p._sb[I]);p._sb=[];}else do{p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),p.state=p.__s;}while(p.__d&&++H<25);p.state=p.__s,null!=p.getChildContext&&(i=v$1(v$1({},i),p.getChildContext())),y||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(d,_)),C$1(n,h$1(T=null!=a&&a.type===g&&null==a.key?a.props.children:a)?T:[T],u,t,i,o,r,f,e,c,s),p.base=u.__e,u.__u&=-161,p.__h.length&&f.push(p),w&&(p.__E=p.__=null);}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),l$1.__e(n,u,t);}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=j$1(t.__e,u,t,i,o,r,f,c,s);(a=l$1.diffed)&&a(u);}function M(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)z$1(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function j$1(l,u,t,i,o,r,f,e,s){var a,v,y,d,_,g,b,w=t.props,k=u.props,x=u.type;if("svg"===x&&(o=!0),null!=r)for(a=0;a<r.length;a++)if((_=r[a])&&"setAttribute"in _==!!x&&(x?_.localName===x:3===_.nodeType)){l=_,r[a]=null;break}if(null==l){if(null===x)return document.createTextNode(k);l=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,k.is&&k),r=null,e=!1;}if(null===x)w===k||e&&l.data===k||(l.data=k);else {if(r=r&&n$1.call(l.childNodes),w=t.props||c$1,!e&&null!=r)for(w={},a=0;a<l.attributes.length;a++)w[(_=l.attributes[a]).name]=_.value;for(a in w)_=w[a],"children"==a||("dangerouslySetInnerHTML"==a?y=_:"key"===a||a in k||T(l,a,null,_,o));for(a in k)_=k[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?b=_:"key"===a||e&&"function"!=typeof _||w[a]===_||T(l,a,_,w[a],o);if(v)e||y&&(v.__html===y.__html||v.__html===l.innerHTML)||(l.innerHTML=v.__html),u.__k=[];else if(y&&(l.innerHTML=""),C$1(l,h$1(d)?d:[d],u,t,i,o&&"foreignObject"!==x,r,f,r?r[0]:t.__k&&m$2(t,0),e,s),null!=r)for(a=r.length;a--;)null!=r[a]&&p$1(r[a]);e||(a="value",void 0!==g&&(g!==l[a]||"progress"===x&&!g||"option"===x&&g!==w[a])&&T(l,a,g,w[a],!1),a="checked",void 0!==b&&b!==l[a]&&T(l,a,b,w[a],!1));}return l}function z$1(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,t);}}function N(n,u,t){var i,o;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||z$1(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=null,n.__c=void 0;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&N(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||p$1(n.__e),n.__=n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function q$1(u,t,i){var o,r,f,e;l$1.__&&l$1.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],L(t,u=(!o&&i||t).__k=y$1(g,null,[u]),r||c$1,c$1,void 0!==t.ownerSVGElement,!o&&i?[i]:r?null:t.firstChild?n$1.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),M(f,u,e);}n$1=s$1.slice,l$1={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$1=0,b.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v$1({},this.state),"function"==typeof n&&(n=n(v$1({},u),this.props)),n&&v$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),k$1(this));},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),k$1(this));},b.prototype.render=g,i$1=[],r$2="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$1=function(n,l){return n.__v.__b-l.__v.__b},x$1.__r=0;
|
|
27654
|
+
var n$1,l$1,u$1,i$1,o$1,r$2,f$1,c$1={},s$1=[],a$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h$1=Array.isArray;function v$1(n,l){for(var u in l)n[u]=l[u];return n}function p$1(n){var l=n.parentNode;l&&l.removeChild(n);}function y$1(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n$1.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d$1(l,f,i,o,null)}function d$1(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u$1:r,__i:-1,__u:0};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function g(n){return n.children}function b(n,l){this.props=n,this.context=l;}function m$2(n,l){if(null==l)return n.__?m$2(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?m$2(n):null}function w$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return w$1(n)}}function k$1(n){(!n.__d&&(n.__d=!0)&&i$1.push(n)&&!x$1.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||r$2)(x$1);}function x$1(){var n,u,t,o,r,e,c,s,a;for(i$1.sort(f$1);n=i$1.shift();)n.__d&&(u=i$1.length,o=void 0,e=(r=(t=n).__v).__e,s=[],a=[],(c=t.__P)&&((o=v$1({},r)).__v=r.__v+1,l$1.vnode&&l$1.vnode(o),L(c,o,r,t.__n,void 0!==c.ownerSVGElement,32&r.__u?[e]:null,s,null==e?m$2(r):e,!!(32&r.__u),a),o.__v=r.__v,o.__.__k[o.__i]=o,M(s,o,a),o.__e!=e&&w$1(o)),i$1.length>u&&i$1.sort(f$1));x$1.__r=0;}function C$1(n,l,u,t,i,o,r,f,e,a,h){var v,p,y,d,_,g=t&&t.__k||s$1,b=l.length;for(u.__d=e,P(u,l,g),e=u.__d,v=0;v<b;v++)null!=(y=u.__k[v])&&"boolean"!=typeof y&&"function"!=typeof y&&(p=-1===y.__i?c$1:g[y.__i]||c$1,y.__i=v,L(n,y,p,i,o,r,f,e,a,h),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&z$1(p.ref,null,y),h.push(y.ref,y.__c||d,y)),null==_&&null!=d&&(_=d),65536&y.__u||p.__k===y.__k?e=S(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=_;}function P(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)r=t+a,null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?d$1(null,i,null,null,null):h$1(i)?d$1(g,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?d$1(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=H(i,u,r,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f===r+1?a++:f>r?s>e-r?a+=f-r:a--:f<r?f==r-1&&(a=f-r):a=0,f!==t+a&&(i.__u|=65536))):(o=u[r])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m$2(o)),N(o,o,!1),u[r]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m$2(o)),N(o,o));}function S(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=S(t[i],l,u));return l}n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8===l.nodeType);return l}function H(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--;}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++;}}return -1}function I(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$1.test(l)?u:u+"px";}function T(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||I(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||I(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=Date.now(),n.addEventListener(l,o?D$1:A$1,o)):n.removeEventListener(l,o?D$1:A$1,o);else {if(i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&"role"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function A$1(n){if(this.l){var u=this.l[n.type+!1];if(n.t){if(n.t<=u.u)return}else n.t=Date.now();return u(l$1.event?l$1.event(n):n)}}function D$1(n){if(this.l)return this.l[n.type+!0](l$1.event?l$1.event(n):n)}function L(n,u,t,i,o,r,f,e,c,s){var a,p,y,d,_,m,w,k,x,P,S,$,H,I,T,A=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l$1.__b)&&a(u);n:if("function"==typeof A)try{if(k=u.props,x=(a=A.contextType)&&i[a.__c],P=a?x?x.props.value:a.__:i,t.__c?w=(p=u.__c=t.__c).__=p.__E:("prototype"in A&&A.prototype.render?u.__c=p=new A(k,P):(u.__c=p=new b(k,P),p.constructor=A,p.render=O),x&&x.sub(p),p.props=k,p.state||(p.state={}),p.context=P,p.__n=i,y=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=A.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=v$1({},p.__s)),v$1(p.__s,A.getDerivedStateFromProps(k,p.__s))),d=p.props,_=p.state,p.__v=u,y)null==A.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else {if(null==A.getDerivedStateFromProps&&k!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(k,P),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(k,p.__s,P)||u.__v===t.__v)){for(u.__v!==t.__v&&(p.props=k,p.state=p.__s,p.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u);}),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[],p.__h.length&&f.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(k,p.__s,P),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,_,m);});}if(p.context=P,p.props=k,p.__P=n,p.__e=!1,$=l$1.__r,H=0,"prototype"in A&&A.prototype.render){for(p.state=p.__s,p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),I=0;I<p._sb.length;I++)p.__h.push(p._sb[I]);p._sb=[];}else do{p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),p.state=p.__s;}while(p.__d&&++H<25);p.state=p.__s,null!=p.getChildContext&&(i=v$1(v$1({},i),p.getChildContext())),y||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(d,_)),C$1(n,h$1(T=null!=a&&a.type===g&&null==a.key?a.props.children:a)?T:[T],u,t,i,o,r,f,e,c,s),p.base=u.__e,u.__u&=-161,p.__h.length&&f.push(p),w&&(p.__E=p.__=null);}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),l$1.__e(n,u,t);}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=j$1(t.__e,u,t,i,o,r,f,c,s);(a=l$1.diffed)&&a(u);}function M(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)z$1(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function j$1(l,u,t,i,o,r,f,e,s){var a,v,y,d,_,g,b,w=t.props,k=u.props,x=u.type;if("svg"===x&&(o=!0),null!=r)for(a=0;a<r.length;a++)if((_=r[a])&&"setAttribute"in _==!!x&&(x?_.localName===x:3===_.nodeType)){l=_,r[a]=null;break}if(null==l){if(null===x)return document.createTextNode(k);l=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,k.is&&k),r=null,e=!1;}if(null===x)w===k||e&&l.data===k||(l.data=k);else {if(r=r&&n$1.call(l.childNodes),w=t.props||c$1,!e&&null!=r)for(w={},a=0;a<l.attributes.length;a++)w[(_=l.attributes[a]).name]=_.value;for(a in w)_=w[a],"children"==a||("dangerouslySetInnerHTML"==a?y=_:"key"===a||a in k||T(l,a,null,_,o));for(a in k)_=k[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?b=_:"key"===a||e&&"function"!=typeof _||w[a]===_||T(l,a,_,w[a],o);if(v)e||y&&(v.__html===y.__html||v.__html===l.innerHTML)||(l.innerHTML=v.__html),u.__k=[];else if(y&&(l.innerHTML=""),C$1(l,h$1(d)?d:[d],u,t,i,o&&"foreignObject"!==x,r,f,r?r[0]:t.__k&&m$2(t,0),e,s),null!=r)for(a=r.length;a--;)null!=r[a]&&p$1(r[a]);e||(a="value",void 0!==g&&(g!==l[a]||"progress"===x&&!g||"option"===x&&g!==w[a])&&T(l,a,g,w[a],!1),a="checked",void 0!==b&&b!==l[a]&&T(l,a,b,w[a],!1));}return l}function z$1(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,t);}}function N(n,u,t){var i,o;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||z$1(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=null,n.__c=void 0;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&N(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||p$1(n.__e),n.__=n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function q$1(u,t,i){var o,r,f,e;l$1.__&&l$1.__(u,t),r=(o="function"==typeof i)?null:t.__k,f=[],e=[],L(t,u=(!o&&i||t).__k=y$1(g,null,[u]),r||c$1,c$1,void 0!==t.ownerSVGElement,!o&&i?[i]:r?null:t.firstChild?n$1.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),M(f,u,e);}n$1=s$1.slice,l$1={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$1=0,b.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v$1({},this.state),"function"==typeof n&&(n=n(v$1({},u),this.props)),n&&v$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),k$1(this));},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),k$1(this));},b.prototype.render=g,i$1=[],r$2="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$1=function(n,l){return n.__v.__b-l.__v.__b},x$1.__r=0;
|
|
27693
27655
|
|
|
27694
27656
|
var n=function(t,s,r,e){var u;s[0]=0;for(var h=1;h<s.length;h++){var p=s[h++],a=s[h]?(s[0]|=p?1:2,r[s[h++]]):s[++h];3===p?e[0]=a:4===p?e[1]=Object.assign(e[1]||{},a):5===p?(e[1]=e[1]||{})[s[++h]]=a:6===p?e[1][s[++h]]+=a+"":p?(u=t.apply(a,n(t,a,r,["",null])),e.push(u),a[0]?s[0]|=2:(s[h-2]=0,s[h]=u)):e.push(a);}return e},t$1=new Map;function e$1(s){var r=t$1.get(this);return r||(r=new Map,t$1.set(this,r)),(r=n(this,r.get(s)||(r.set(s,r=function(n){for(var t,s,r=1,e="",u="",h=[0],p=function(n){1===r&&(n||(e=e.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?h.push(0,n,e):3===r&&(n||e)?(h.push(3,n,e),r=2):2===r&&"..."===e&&n?h.push(4,n,0):2===r&&e&&!n?h.push(5,0,!0,e):r>=5&&((e||!n&&5===r)&&(h.push(r,0,e,s),r=6),n&&(h.push(r,n,0,s),r=6)),e="";},a=0;a<n.length;a++){a&&(1===r&&p(),p(a));for(var l=0;l<n[a].length;l++)t=n[a][l],1===r?"<"===t?(p(),h=[h],r=3):e+=t:4===r?"--"===e&&">"===t?(r=1,e=""):e=t+e[0]:u?t===u?u="":e+=t:'"'===t||"'"===t?u=t:">"===t?(p(),r=1):r&&("="===t?(r=5,s=e,e=""):"/"===t&&(r<5||">"===n[a][l+1])?(p(),3===r&&(h=h[0]),r=h,(h=h[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(p(),r=2):e+=t),3===r&&"!--"===e&&(r=4,h=h[0]);}return p(),h}(s)),r),arguments,[])).length>1?r:r[0]}
|
|
27695
27657
|
|
|
27696
27658
|
var m$1=e$1.bind(y$1);
|
|
27697
27659
|
|
|
27698
|
-
var t,r$1,u,i,o=0,f=[],c=[],e=l$1,a=e.__b,v=e.__r,l=e.diffed,m=e.__c,s=e.unmount,d=e.__;function h(n,t){e.__h&&e.__h(r$1,n,o||t),o=0;var u=r$1.__H||(r$1.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({__V:c}),u.__[n]}function p(n){return o=1,y(D,n)}function y(n,u,i){var o=h(t++,2);if(o.t=n,!o.__c&&(o.__=[
|
|
27660
|
+
var t,r$1,u,i,o=0,f=[],c=[],e=l$1,a=e.__b,v=e.__r,l=e.diffed,m=e.__c,s=e.unmount,d=e.__;function h(n,t){e.__h&&e.__h(r$1,n,o||t),o=0;var u=r$1.__H||(r$1.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({__V:c}),u.__[n]}function p(n){return o=1,y(D,n)}function y(n,u,i){var o=h(t++,2);if(o.t=n,!o.__c&&(o.__=[D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r$1,!r$1.u)){var f=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return !!n.__c});if(u.every(function(n){return !n.__N}))return !c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r$1.u=!0;var c=r$1.shouldComponentUpdate,e=r$1.componentWillUpdate;r$1.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u;}e&&e.call(this,n,t,r);},r$1.shouldComponentUpdate=f;}return o.__N||o.__}function _(n,u){var i=h(t++,3);!e.__s&&C(i.__H,u)&&(i.__=n,i.i=u,r$1.__H.__h.push(i));}function A(n,u){var i=h(t++,4);!e.__s&&C(i.__H,u)&&(i.__=n,i.i=u,r$1.__h.push(i));}function F(n){return o=5,q(function(){return {current:n}},[])}function q(n,r){var u=h(t++,7);return C(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function x(n,t){return o=8,q(function(){return n},t)}function j(){for(var n;n=f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z),n.__H.__h.forEach(B),n.__H.__h=[];}catch(t){n.__H.__h=[],e.__e(t,n.__v);}}e.__b=function(n){r$1=null,a&&a(n);},e.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),d&&d(n,t);},e.__r=function(n){v&&v(n),t=0;var i=(r$1=n.__c).__H;i&&(u===r$1?(i.__h=[],r$1.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(z),i.__h.forEach(B),i.__h=[],t=0)),u=r$1;},e.diffed=function(n){l&&l(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f.push(t)&&i===e.requestAnimationFrame||((i=e.requestAnimationFrame)||w)(j)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r$1=null;},e.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(n){return !n.__||B(n)});}catch(r){t.some(function(n){n.__h&&(n.__h=[]);}),t=[],e.__e(r,n.__v);}}),m&&m(n,t);},e.unmount=function(n){s&&s(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z(n);}catch(n){t=n;}}),r.__H=void 0,t&&e.__e(t,r.__v));};var k="function"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);k&&(t=requestAnimationFrame(r));}function z(n){var t=r$1,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r$1=t;}function B(n){var t=r$1;n.__c=n.__(),r$1=t;}function C(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D(n,t){return "function"==typeof t?t(n):t}
|
|
27699
27661
|
|
|
27700
27662
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
27701
27663
|
|
|
@@ -28921,8 +28883,6 @@
|
|
|
28921
28883
|
</svg>`
|
|
28922
28884
|
};
|
|
28923
28885
|
|
|
28924
|
-
var ICONS$1 = icons$1;
|
|
28925
|
-
|
|
28926
28886
|
/**
|
|
28927
28887
|
* @typedef {import('diagram-js/lib/core/Canvas').default} Canvas
|
|
28928
28888
|
* @typedef {import('diagram-js/lib/features/context-pad/ContextPad').default} ContextPad
|
|
@@ -28989,7 +28949,7 @@
|
|
|
28989
28949
|
'align-elements': {
|
|
28990
28950
|
group: 'align-elements',
|
|
28991
28951
|
title: self._translate('Align elements'),
|
|
28992
|
-
html: `<div class="entry">${
|
|
28952
|
+
html: `<div class="entry">${icons$1['align']}</div>`,
|
|
28993
28953
|
action: {
|
|
28994
28954
|
click: function(event, target) {
|
|
28995
28955
|
var position = self._getMenuPosition(target);
|
|
@@ -29106,7 +29066,7 @@
|
|
|
29106
29066
|
group: 'align',
|
|
29107
29067
|
title: translate('Align elements ' + alignment),
|
|
29108
29068
|
className: 'bjs-align-elements-menu-entry',
|
|
29109
|
-
imageHtml:
|
|
29069
|
+
imageHtml: icons$1[ alignment ],
|
|
29110
29070
|
action: function() {
|
|
29111
29071
|
alignElements.trigger(target, alignment);
|
|
29112
29072
|
popupMenu.close();
|
|
@@ -34043,6 +34003,8 @@
|
|
|
34043
34003
|
* @typedef {import('../../draw/Styles').default} Styles
|
|
34044
34004
|
*/
|
|
34045
34005
|
|
|
34006
|
+
const cloneIds = new IdGenerator('ps');
|
|
34007
|
+
|
|
34046
34008
|
var MARKER_TYPES = [
|
|
34047
34009
|
'marker-start',
|
|
34048
34010
|
'marker-mid',
|
|
@@ -34073,8 +34035,6 @@
|
|
|
34073
34035
|
this._elementRegistry = elementRegistry;
|
|
34074
34036
|
this._canvas = canvas;
|
|
34075
34037
|
this._styles = styles;
|
|
34076
|
-
|
|
34077
|
-
this._clonedMarkers = {};
|
|
34078
34038
|
}
|
|
34079
34039
|
|
|
34080
34040
|
PreviewSupport.$inject = [
|
|
@@ -34198,35 +34158,32 @@
|
|
|
34198
34158
|
* @param {string} [className="djs-dragger"]
|
|
34199
34159
|
*/
|
|
34200
34160
|
PreviewSupport.prototype._cloneMarker = function(parentGfx, gfx, marker, markerType, className = 'djs-dragger') {
|
|
34201
|
-
var markerId = marker.id + '-' + className;
|
|
34202
|
-
|
|
34203
|
-
var clonedMarker = this._clonedMarkers[ markerId ];
|
|
34204
34161
|
|
|
34205
|
-
|
|
34206
|
-
|
|
34207
|
-
if (!clonedMarker) {
|
|
34208
|
-
clonedMarker = clone$1(marker);
|
|
34162
|
+
// Add a random suffix to the marker ID in case the same marker is previewed multiple times
|
|
34163
|
+
var clonedMarkerId = [ marker.id, className, cloneIds.next() ].join('-');
|
|
34209
34164
|
|
|
34210
|
-
|
|
34165
|
+
// reuse marker if it was part of original gfx
|
|
34166
|
+
var copiedMarker = query('marker#' + marker.id, parentGfx);
|
|
34211
34167
|
|
|
34212
|
-
|
|
34168
|
+
parentGfx = parentGfx || this._canvas._svg;
|
|
34213
34169
|
|
|
34214
|
-
|
|
34170
|
+
var clonedMarker = copiedMarker || clone$1(marker);
|
|
34215
34171
|
|
|
34216
|
-
|
|
34172
|
+
clonedMarker.id = clonedMarkerId;
|
|
34217
34173
|
|
|
34218
|
-
|
|
34174
|
+
classes(clonedMarker).add(className);
|
|
34219
34175
|
|
|
34220
|
-
|
|
34221
|
-
defs = create$1('defs');
|
|
34176
|
+
var defs = query(':scope > defs', parentGfx);
|
|
34222
34177
|
|
|
34223
|
-
|
|
34224
|
-
|
|
34178
|
+
if (!defs) {
|
|
34179
|
+
defs = create$1('defs');
|
|
34225
34180
|
|
|
34226
|
-
append(
|
|
34181
|
+
append(parentGfx, defs);
|
|
34227
34182
|
}
|
|
34228
34183
|
|
|
34229
|
-
|
|
34184
|
+
append(defs, clonedMarker);
|
|
34185
|
+
|
|
34186
|
+
var reference = idToReference(clonedMarker.id);
|
|
34230
34187
|
|
|
34231
34188
|
attr(gfx, markerType, reference);
|
|
34232
34189
|
};
|
|
@@ -45030,6 +44987,7 @@
|
|
|
45030
44987
|
* @typedef {import('../../util/Types').Rect} Rect
|
|
45031
44988
|
*/
|
|
45032
44989
|
|
|
44990
|
+
|
|
45033
44991
|
/**
|
|
45034
44992
|
* Return direction given axis and delta.
|
|
45035
44993
|
*
|
|
@@ -53008,6 +52966,7 @@
|
|
|
53008
52966
|
*/
|
|
53009
52967
|
|
|
53010
52968
|
|
|
52969
|
+
|
|
53011
52970
|
/**
|
|
53012
52971
|
* A base connection layouter implementation
|
|
53013
52972
|
* that layouts the connection by directly connecting
|
|
@@ -57625,8 +57584,6 @@
|
|
|
57625
57584
|
</svg>`
|
|
57626
57585
|
};
|
|
57627
57586
|
|
|
57628
|
-
var ICONS = icons;
|
|
57629
|
-
|
|
57630
57587
|
/**
|
|
57631
57588
|
* @typedef {import('diagram-js/lib/features/popup-menu/PopupMenu').default} PopupMenu
|
|
57632
57589
|
* @typedef {import('./BpmnDistributeElements').default} DistributeElements
|
|
@@ -57696,7 +57653,7 @@
|
|
|
57696
57653
|
group: 'distribute',
|
|
57697
57654
|
title: translate('Distribute elements horizontally'),
|
|
57698
57655
|
className: 'bjs-align-elements-menu-entry',
|
|
57699
|
-
imageHtml:
|
|
57656
|
+
imageHtml: icons['horizontal'],
|
|
57700
57657
|
action: function(event, entry) {
|
|
57701
57658
|
distributeElements.trigger(elements, 'horizontal');
|
|
57702
57659
|
popupMenu.close();
|
|
@@ -57705,7 +57662,7 @@
|
|
|
57705
57662
|
'distribute-elements-vertical': {
|
|
57706
57663
|
group: 'distribute',
|
|
57707
57664
|
title: translate('Distribute elements vertically'),
|
|
57708
|
-
imageHtml:
|
|
57665
|
+
imageHtml: icons['vertical'],
|
|
57709
57666
|
action: function(event, entry) {
|
|
57710
57667
|
distributeElements.trigger(elements, 'vertical');
|
|
57711
57668
|
popupMenu.close();
|
|
@@ -61215,7 +61172,7 @@
|
|
|
61215
61172
|
y: position.y + 5
|
|
61216
61173
|
},
|
|
61217
61174
|
type: 'error',
|
|
61218
|
-
timeout:
|
|
61175
|
+
timeout: 2000,
|
|
61219
61176
|
html: '<div>' + message + '</div>'
|
|
61220
61177
|
});
|
|
61221
61178
|
}
|
|
@@ -61549,11 +61506,14 @@
|
|
|
61549
61506
|
function getAllDraggedElements(shapes) {
|
|
61550
61507
|
var allShapes = selfAndAllChildren(shapes, true);
|
|
61551
61508
|
|
|
61552
|
-
var allConnections =
|
|
61553
|
-
|
|
61554
|
-
|
|
61509
|
+
var allConnections = allShapes.flatMap(shape =>
|
|
61510
|
+
(shape.incoming || []).concat(shape.outgoing || [])
|
|
61511
|
+
);
|
|
61512
|
+
|
|
61513
|
+
var allElements = allShapes.concat(allConnections);
|
|
61514
|
+
var uniqueElements = [ ...new Set(allElements) ];
|
|
61555
61515
|
|
|
61556
|
-
return
|
|
61516
|
+
return uniqueElements;
|
|
61557
61517
|
}
|
|
61558
61518
|
|
|
61559
61519
|
/**
|
|
@@ -65104,7 +65064,7 @@
|
|
|
65104
65064
|
* @return {SearchResult[]}
|
|
65105
65065
|
*/
|
|
65106
65066
|
BpmnSearchProvider.prototype.find = function(pattern) {
|
|
65107
|
-
var
|
|
65067
|
+
var rootElements = this._canvas.getRootElements();
|
|
65108
65068
|
|
|
65109
65069
|
var elements = this._elementRegistry.filter(function(element) {
|
|
65110
65070
|
if (element.labelTarget) {
|
|
@@ -65115,7 +65075,7 @@
|
|
|
65115
65075
|
|
|
65116
65076
|
// do not include root element
|
|
65117
65077
|
elements = filter(elements, function(element) {
|
|
65118
|
-
return element
|
|
65078
|
+
return !rootElements.includes(element);
|
|
65119
65079
|
});
|
|
65120
65080
|
|
|
65121
65081
|
elements = map$1(elements, function(element) {
|