bpmn-js 18.6.0 → 18.6.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-modeler v18.6.0
2
+ * bpmn-js - bpmn-modeler v18.6.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: 2025-04-24
11
+ * Date: 2025-05-22
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -16307,7 +16307,7 @@
16307
16307
  *
16308
16308
  * @return {boolean}
16309
16309
  */
16310
- function is$2(element, type) {
16310
+ function is$1(element, type) {
16311
16311
  return element.$instanceOf(type);
16312
16312
  }
16313
16313
 
@@ -16322,7 +16322,7 @@
16322
16322
  */
16323
16323
  function findDisplayCandidate(definitions) {
16324
16324
  return find(definitions.rootElements, function(e) {
16325
- return is$2(e, 'bpmn:Process') || is$2(e, 'bpmn:Collaboration');
16325
+ return is$1(e, 'bpmn:Process') || is$1(e, 'bpmn:Collaboration');
16326
16326
  });
16327
16327
  }
16328
16328
 
@@ -16499,9 +16499,9 @@
16499
16499
 
16500
16500
  var ctx = visitRoot(rootElement, plane);
16501
16501
 
16502
- if (is$2(rootElement, 'bpmn:Process') || is$2(rootElement, 'bpmn:SubProcess')) {
16502
+ if (is$1(rootElement, 'bpmn:Process') || is$1(rootElement, 'bpmn:SubProcess')) {
16503
16503
  handleProcess(rootElement, ctx);
16504
- } else if (is$2(rootElement, 'bpmn:Collaboration')) {
16504
+ } else if (is$1(rootElement, 'bpmn:Collaboration')) {
16505
16505
  handleCollaboration(rootElement, ctx);
16506
16506
 
16507
16507
  // force drawing of everything not yet drawn that is part of the target DI
@@ -16544,7 +16544,7 @@
16544
16544
  // if they contain lanes with DI information.
16545
16545
  // we do this to pass the free-floating lane test cases in the MIWG test suite
16546
16546
  var processes = filter(rootElements, function(e) {
16547
- return !isHandled(e) && is$2(e, 'bpmn:Process') && e.laneSets;
16547
+ return !isHandled(e) && is$1(e, 'bpmn:Process') && e.laneSets;
16548
16548
  });
16549
16549
 
16550
16550
  processes.forEach(contextual(handleProcess, ctx));
@@ -16582,7 +16582,7 @@
16582
16582
  function handleArtifacts(artifacts, context) {
16583
16583
 
16584
16584
  forEach$1(artifacts, function(e) {
16585
- if (is$2(e, 'bpmn:Association')) {
16585
+ if (is$1(e, 'bpmn:Association')) {
16586
16586
  deferred.push(function() {
16587
16587
  handleArtifact(e, context);
16588
16588
  });
@@ -16610,11 +16610,11 @@
16610
16610
  function handleFlowNode(flowNode, context) {
16611
16611
  var childCtx = visitIfDi(flowNode, context);
16612
16612
 
16613
- if (is$2(flowNode, 'bpmn:SubProcess')) {
16613
+ if (is$1(flowNode, 'bpmn:SubProcess')) {
16614
16614
  handleSubProcess(flowNode, childCtx || context);
16615
16615
  }
16616
16616
 
16617
- if (is$2(flowNode, 'bpmn:Activity')) {
16617
+ if (is$1(flowNode, 'bpmn:Activity')) {
16618
16618
  handleIoSpecification(flowNode.ioSpecification, context);
16619
16619
  }
16620
16620
 
@@ -16671,19 +16671,19 @@
16671
16671
 
16672
16672
  function handleFlowElements(flowElements, context) {
16673
16673
  forEach$1(flowElements, function(flowElement) {
16674
- if (is$2(flowElement, 'bpmn:SequenceFlow')) {
16674
+ if (is$1(flowElement, 'bpmn:SequenceFlow')) {
16675
16675
  deferred.push(function() {
16676
16676
  handleSequenceFlow(flowElement, context);
16677
16677
  });
16678
- } else if (is$2(flowElement, 'bpmn:BoundaryEvent')) {
16678
+ } else if (is$1(flowElement, 'bpmn:BoundaryEvent')) {
16679
16679
  deferred.unshift(function() {
16680
16680
  handleFlowNode(flowElement, context);
16681
16681
  });
16682
- } else if (is$2(flowElement, 'bpmn:FlowNode')) {
16682
+ } else if (is$1(flowElement, 'bpmn:FlowNode')) {
16683
16683
  handleFlowNode(flowElement, context);
16684
- } else if (is$2(flowElement, 'bpmn:DataObject')) ; else if (is$2(flowElement, 'bpmn:DataStoreReference')) {
16684
+ } else if (is$1(flowElement, 'bpmn:DataObject')) ; else if (is$1(flowElement, 'bpmn:DataStoreReference')) {
16685
16685
  handleDataElement(flowElement, context);
16686
- } else if (is$2(flowElement, 'bpmn:DataObjectReference')) {
16686
+ } else if (is$1(flowElement, 'bpmn:DataObjectReference')) {
16687
16687
  handleDataElement(flowElement, context);
16688
16688
  } else {
16689
16689
  logError(
@@ -16744,7 +16744,7 @@
16744
16744
  *
16745
16745
  * @return {boolean}
16746
16746
  */
16747
- function is$1(element, type) {
16747
+ function is(element, type) {
16748
16748
  var bo = getBusinessObject(element);
16749
16749
 
16750
16750
  return bo && (typeof bo.$instanceOf === 'function') && bo.$instanceOf(type);
@@ -16761,7 +16761,7 @@
16761
16761
  */
16762
16762
  function isAny(element, types) {
16763
16763
  return some(types, function(t) {
16764
- return is$1(element, t);
16764
+ return is(element, t);
16765
16765
  });
16766
16766
  }
16767
16767
 
@@ -16910,7 +16910,7 @@
16910
16910
  var bpmnElement = bpmnDiagram.plane.bpmnElement,
16911
16911
  rootElement = bpmnElement;
16912
16912
 
16913
- if (!is$1(bpmnElement, 'bpmn:Process') && !is$1(bpmnElement, 'bpmn:Collaboration')) {
16913
+ if (!is(bpmnElement, 'bpmn:Process') && !is(bpmnElement, 'bpmn:Collaboration')) {
16914
16914
  rootElement = findRootProcess(bpmnElement);
16915
16915
  }
16916
16916
 
@@ -16918,11 +16918,11 @@
16918
16918
  // collaboration, not the process
16919
16919
  var collaboration;
16920
16920
 
16921
- if (is$1(rootElement, 'bpmn:Collaboration')) {
16921
+ if (is(rootElement, 'bpmn:Collaboration')) {
16922
16922
  collaboration = rootElement;
16923
16923
  } else {
16924
16924
  collaboration = find(definitions.rootElements, function(element) {
16925
- if (!is$1(element, 'bpmn:Collaboration')) {
16925
+ if (!is(element, 'bpmn:Collaboration')) {
16926
16926
  return;
16927
16927
  }
16928
16928
 
@@ -16991,7 +16991,7 @@
16991
16991
  var parent = element;
16992
16992
 
16993
16993
  while (parent) {
16994
- if (is$1(parent, 'bpmn:Process')) {
16994
+ if (is(parent, 'bpmn:Process')) {
16995
16995
  return parent;
16996
16996
  }
16997
16997
 
@@ -17998,21 +17998,21 @@
17998
17998
  */
17999
17999
  function isExpanded(element, di) {
18000
18000
 
18001
- if (is$1(element, 'bpmn:CallActivity')) {
18001
+ if (is(element, 'bpmn:CallActivity')) {
18002
18002
  return false;
18003
18003
  }
18004
18004
 
18005
- if (is$1(element, 'bpmn:SubProcess')) {
18005
+ if (is(element, 'bpmn:SubProcess')) {
18006
18006
  di = di || getDi(element);
18007
18007
 
18008
- if (di && is$1(di, 'bpmndi:BPMNPlane')) {
18008
+ if (di && is(di, 'bpmndi:BPMNPlane')) {
18009
18009
  return true;
18010
18010
  }
18011
18011
 
18012
18012
  return di && !!di.isExpanded;
18013
18013
  }
18014
18014
 
18015
- if (is$1(element, 'bpmn:Participant')) {
18015
+ if (is(element, 'bpmn:Participant')) {
18016
18016
  return !!getBusinessObject(element).processRef;
18017
18017
  }
18018
18018
 
@@ -18026,7 +18026,7 @@
18026
18026
  */
18027
18027
  function isHorizontal$3(element) {
18028
18028
 
18029
- if (!is$1(element, 'bpmn:Participant') && !is$1(element, 'bpmn:Lane')) {
18029
+ if (!is(element, 'bpmn:Participant') && !is(element, 'bpmn:Lane')) {
18030
18030
  return undefined;
18031
18031
  }
18032
18032
 
@@ -18067,7 +18067,7 @@
18067
18067
  var eventDefinitions = getBusinessObject(element).eventDefinitions;
18068
18068
 
18069
18069
  return some(eventDefinitions, function(event) {
18070
- return is$1(event, eventType);
18070
+ return is(event, eventType);
18071
18071
  });
18072
18072
  }
18073
18073
 
@@ -18122,15 +18122,15 @@
18122
18122
  * @return {boolean}
18123
18123
  */
18124
18124
  function isLabelExternal(semantic) {
18125
- return is$1(semantic, 'bpmn:Event') ||
18126
- is$1(semantic, 'bpmn:Gateway') ||
18127
- is$1(semantic, 'bpmn:DataStoreReference') ||
18128
- is$1(semantic, 'bpmn:DataObjectReference') ||
18129
- is$1(semantic, 'bpmn:DataInput') ||
18130
- is$1(semantic, 'bpmn:DataOutput') ||
18131
- is$1(semantic, 'bpmn:SequenceFlow') ||
18132
- is$1(semantic, 'bpmn:MessageFlow') ||
18133
- is$1(semantic, 'bpmn:Group');
18125
+ return is(semantic, 'bpmn:Event') ||
18126
+ is(semantic, 'bpmn:Gateway') ||
18127
+ is(semantic, 'bpmn:DataStoreReference') ||
18128
+ is(semantic, 'bpmn:DataObjectReference') ||
18129
+ is(semantic, 'bpmn:DataInput') ||
18130
+ is(semantic, 'bpmn:DataOutput') ||
18131
+ is(semantic, 'bpmn:SequenceFlow') ||
18132
+ is(semantic, 'bpmn:MessageFlow') ||
18133
+ is(semantic, 'bpmn:Group');
18134
18134
  }
18135
18135
 
18136
18136
  /**
@@ -18209,7 +18209,7 @@
18209
18209
 
18210
18210
  if (element.waypoints) {
18211
18211
  return getFlowLabelPosition(element.waypoints);
18212
- } else if (is$1(element, 'bpmn:Group')) {
18212
+ } else if (is(element, 'bpmn:Group')) {
18213
18213
  return {
18214
18214
  x: element.x + element.width / 2,
18215
18215
  y: element.y + DEFAULT_LABEL_SIZE$1.height / 2
@@ -18271,22 +18271,22 @@
18271
18271
  */
18272
18272
  function getLabelAttr(semantic) {
18273
18273
  if (
18274
- is$1(semantic, 'bpmn:FlowElement') ||
18275
- is$1(semantic, 'bpmn:Participant') ||
18276
- is$1(semantic, 'bpmn:Lane') ||
18277
- is$1(semantic, 'bpmn:SequenceFlow') ||
18278
- is$1(semantic, 'bpmn:MessageFlow') ||
18279
- is$1(semantic, 'bpmn:DataInput') ||
18280
- is$1(semantic, 'bpmn:DataOutput')
18274
+ is(semantic, 'bpmn:FlowElement') ||
18275
+ is(semantic, 'bpmn:Participant') ||
18276
+ is(semantic, 'bpmn:Lane') ||
18277
+ is(semantic, 'bpmn:SequenceFlow') ||
18278
+ is(semantic, 'bpmn:MessageFlow') ||
18279
+ is(semantic, 'bpmn:DataInput') ||
18280
+ is(semantic, 'bpmn:DataOutput')
18281
18281
  ) {
18282
18282
  return 'name';
18283
18283
  }
18284
18284
 
18285
- if (is$1(semantic, 'bpmn:TextAnnotation')) {
18285
+ if (is(semantic, 'bpmn:TextAnnotation')) {
18286
18286
  return 'text';
18287
18287
  }
18288
18288
 
18289
- if (is$1(semantic, 'bpmn:Group')) {
18289
+ if (is(semantic, 'bpmn:Group')) {
18290
18290
  return 'categoryValueRef';
18291
18291
  }
18292
18292
  }
@@ -19468,7 +19468,7 @@
19468
19468
  taskMarkerRenderers[ type ](parentGfx, element, attrs);
19469
19469
  }
19470
19470
 
19471
- function renderTaskMarkers(parentGfx, element, taskMarkers, attrs = {}) {
19471
+ function renderTaskMarkers(parentGfx, element, taskMarkers = [], attrs = {}) {
19472
19472
  attrs = {
19473
19473
  fill: attrs.fill,
19474
19474
  stroke: attrs.stroke,
@@ -19478,14 +19478,14 @@
19478
19478
 
19479
19479
  var semantic = getBusinessObject(element);
19480
19480
 
19481
- var subprocess = taskMarkers && taskMarkers.includes('SubProcessMarker');
19481
+ var subprocess = taskMarkers.includes('SubProcessMarker');
19482
19482
 
19483
19483
  if (subprocess) {
19484
19484
  attrs = {
19485
19485
  ...attrs,
19486
19486
  seq: -21,
19487
19487
  parallel: -22,
19488
- compensation: -42,
19488
+ compensation: -25,
19489
19489
  loop: -18,
19490
19490
  adhoc: 10
19491
19491
  };
@@ -19494,22 +19494,22 @@
19494
19494
  ...attrs,
19495
19495
  seq: -5,
19496
19496
  parallel: -6,
19497
- compensation: -27,
19497
+ compensation: -7,
19498
19498
  loop: 0,
19499
- adhoc: 10
19499
+ adhoc: -8
19500
19500
  };
19501
19501
  }
19502
19502
 
19503
- forEach$1(taskMarkers, function(marker) {
19504
- renderTaskMarker(marker, parentGfx, element, attrs);
19505
- });
19506
-
19507
19503
  if (semantic.get('isForCompensation')) {
19508
- renderTaskMarker('CompensationMarker', parentGfx, element, attrs);
19504
+ taskMarkers.push('CompensationMarker');
19509
19505
  }
19510
19506
 
19511
- if (is$1(semantic, 'bpmn:AdHocSubProcess')) {
19512
- renderTaskMarker('AdhocMarker', parentGfx, element, attrs);
19507
+ if (is(semantic, 'bpmn:AdHocSubProcess')) {
19508
+ taskMarkers.push('AdhocMarker');
19509
+
19510
+ if (!subprocess) {
19511
+ assign$1(attrs, { compensation: attrs.compensation - 18 });
19512
+ }
19513
19513
  }
19514
19514
 
19515
19515
  var loopCharacteristics = semantic.get('loopCharacteristics'),
@@ -19517,18 +19517,40 @@
19517
19517
 
19518
19518
  if (loopCharacteristics) {
19519
19519
 
19520
+ assign$1(attrs, {
19521
+ compensation: attrs.compensation - 18,
19522
+ });
19523
+
19524
+ if (taskMarkers.includes('AdhocMarker')) {
19525
+ assign$1(attrs, {
19526
+ seq: -23,
19527
+ loop: -18,
19528
+ parallel: -24
19529
+ });
19530
+ }
19531
+
19520
19532
  if (isSequential === undefined) {
19521
- renderTaskMarker('LoopMarker', parentGfx, element, attrs);
19533
+ taskMarkers.push('LoopMarker');
19522
19534
  }
19523
19535
 
19524
19536
  if (isSequential === false) {
19525
- renderTaskMarker('ParallelMarker', parentGfx, element, attrs);
19537
+ taskMarkers.push('ParallelMarker');
19526
19538
  }
19527
19539
 
19528
19540
  if (isSequential === true) {
19529
- renderTaskMarker('SequentialMarker', parentGfx, element, attrs);
19541
+ taskMarkers.push('SequentialMarker');
19530
19542
  }
19531
19543
  }
19544
+
19545
+ if (taskMarkers.includes('CompensationMarker') && taskMarkers.length === 1) {
19546
+ assign$1(attrs, {
19547
+ compensation: -8
19548
+ });
19549
+ }
19550
+
19551
+ forEach$1(taskMarkers, function(marker) {
19552
+ renderTaskMarker(marker, parentGfx, element, attrs);
19553
+ });
19532
19554
  }
19533
19555
 
19534
19556
  function renderLabel(parentGfx, label, attrs = {}) {
@@ -19721,7 +19743,7 @@
19721
19743
 
19722
19744
  var semantic = getBusinessObject(element);
19723
19745
 
19724
- if (is$1(semantic, 'bpmn:Lane')) {
19746
+ if (is(semantic, 'bpmn:Lane')) {
19725
19747
  var text = semantic.get('name');
19726
19748
 
19727
19749
  renderLaneLabel(parentGfx, text, element, attrs);
@@ -19743,7 +19765,7 @@
19743
19765
 
19744
19766
  if (!expanded) {
19745
19767
  var flowElements = getBusinessObject(element).flowElements || [];
19746
- var startEvents = flowElements.filter(e => is$1(e, 'bpmn:StartEvent'));
19768
+ var startEvents = flowElements.filter(e => is(e, 'bpmn:StartEvent'));
19747
19769
 
19748
19770
  if (startEvents.length === 1) {
19749
19771
  renderEventSubProcessIcon(startEvents[0], parentGfx, attrs, element);
@@ -20543,14 +20565,14 @@
20543
20565
  var sourceSemantic = getBusinessObject(source);
20544
20566
 
20545
20567
  // conditional flow marker
20546
- if (semantic.get('conditionExpression') && is$1(sourceSemantic, 'bpmn:Activity')) {
20568
+ if (semantic.get('conditionExpression') && is(sourceSemantic, 'bpmn:Activity')) {
20547
20569
  attr(connection, {
20548
20570
  markerStart: marker(parentGfx, 'conditional-flow-marker', fill, stroke)
20549
20571
  });
20550
20572
  }
20551
20573
 
20552
20574
  // default marker
20553
- if (sourceSemantic.get('default') && (is$1(sourceSemantic, 'bpmn:Gateway') || is$1(sourceSemantic, 'bpmn:Activity')) &&
20575
+ if (sourceSemantic.get('default') && (is(sourceSemantic, 'bpmn:Gateway') || is(sourceSemantic, 'bpmn:Activity')) &&
20554
20576
  sourceSemantic.get('default') === semantic) {
20555
20577
  attr(connection, {
20556
20578
  markerStart: marker(parentGfx, 'conditional-default-flow-marker', fill, stroke)
@@ -20829,7 +20851,7 @@
20829
20851
  * @return {boolean}
20830
20852
  */
20831
20853
  BpmnRenderer.prototype.canRender = function(element) {
20832
- return is$1(element, 'bpmn:BaseElement');
20854
+ return is(element, 'bpmn:BaseElement');
20833
20855
  };
20834
20856
 
20835
20857
  /**
@@ -20874,15 +20896,15 @@
20874
20896
  * @return {string} path
20875
20897
  */
20876
20898
  BpmnRenderer.prototype.getShapePath = function(shape) {
20877
- if (is$1(shape, 'bpmn:Event')) {
20899
+ if (is(shape, 'bpmn:Event')) {
20878
20900
  return getCirclePath(shape);
20879
20901
  }
20880
20902
 
20881
- if (is$1(shape, 'bpmn:Activity')) {
20903
+ if (is(shape, 'bpmn:Activity')) {
20882
20904
  return getRoundRectPath(shape, TASK_BORDER_RADIUS);
20883
20905
  }
20884
20906
 
20885
- if (is$1(shape, 'bpmn:Gateway')) {
20907
+ if (is(shape, 'bpmn:Gateway')) {
20886
20908
  return getDiamondPath(shape);
20887
20909
  }
20888
20910
 
@@ -22105,9 +22127,9 @@
22105
22127
  // ROOT ELEMENT
22106
22128
  // handle the special case that we deal with a
22107
22129
  // invisible root element (process, subprocess or collaboration)
22108
- if (is$1(di, 'bpmndi:BPMNPlane')) {
22130
+ if (is(di, 'bpmndi:BPMNPlane')) {
22109
22131
 
22110
- var attrs = is$1(semantic, 'bpmn:SubProcess')
22132
+ var attrs = is(semantic, 'bpmn:SubProcess')
22111
22133
  ? { id: semantic.id + '_plane' }
22112
22134
  : {};
22113
22135
 
@@ -22118,7 +22140,7 @@
22118
22140
  }
22119
22141
 
22120
22142
  // SHAPE
22121
- else if (is$1(di, 'bpmndi:BPMNShape')) {
22143
+ else if (is(di, 'bpmndi:BPMNShape')) {
22122
22144
 
22123
22145
  var collapsed = !isExpanded(semantic, di),
22124
22146
  isFrame = isFrameElement(semantic);
@@ -22137,16 +22159,16 @@
22137
22159
  isFrame: isFrame
22138
22160
  }));
22139
22161
 
22140
- if (is$1(semantic, 'bpmn:BoundaryEvent')) {
22162
+ if (is(semantic, 'bpmn:BoundaryEvent')) {
22141
22163
  this._attachBoundary(semantic, element);
22142
22164
  }
22143
22165
 
22144
22166
  // insert lanes behind other flow nodes (cf. #727)
22145
- if (is$1(semantic, 'bpmn:Lane')) {
22167
+ if (is(semantic, 'bpmn:Lane')) {
22146
22168
  parentIndex = 0;
22147
22169
  }
22148
22170
 
22149
- if (is$1(semantic, 'bpmn:DataStoreReference')) {
22171
+ if (is(semantic, 'bpmn:DataStoreReference')) {
22150
22172
 
22151
22173
  // check whether data store is inside our outside of its semantic parent
22152
22174
  if (!isPointInsideBBox$1(parentElement, getMid(bounds))) {
@@ -22158,7 +22180,7 @@
22158
22180
  }
22159
22181
 
22160
22182
  // CONNECTION
22161
- else if (is$1(di, 'bpmndi:BPMNEdge')) {
22183
+ else if (is(di, 'bpmndi:BPMNEdge')) {
22162
22184
 
22163
22185
  var source = this._getSource(semantic),
22164
22186
  target = this._getTarget(semantic);
@@ -22172,7 +22194,7 @@
22172
22194
  waypoints: getWaypoints(di, source, target)
22173
22195
  }));
22174
22196
 
22175
- if (is$1(semantic, 'bpmn:DataAssociation')) {
22197
+ if (is(semantic, 'bpmn:DataAssociation')) {
22176
22198
 
22177
22199
  // render always on top; this ensures DataAssociations
22178
22200
  // are rendered correctly across different "hacks" people
@@ -22342,7 +22364,7 @@
22342
22364
  }
22343
22365
 
22344
22366
  function isFrameElement(semantic) {
22345
- return is$1(semantic, 'bpmn:Group');
22367
+ return is(semantic, 'bpmn:Group');
22346
22368
  }
22347
22369
 
22348
22370
  var ImportModule = {
@@ -23532,7 +23554,7 @@
23532
23554
  function getPlaneIdFromShape(element) {
23533
23555
  var id = element.id;
23534
23556
 
23535
- if (is$1(element, 'bpmn:SubProcess')) {
23557
+ if (is(element, 'bpmn:SubProcess')) {
23536
23558
  return addPlaneSuffix(id);
23537
23559
  }
23538
23560
 
@@ -23560,7 +23582,7 @@
23560
23582
  function isPlane(element) {
23561
23583
  var di = getDi(element);
23562
23584
 
23563
- return is$1(di, 'bpmndi:BPMNPlane');
23585
+ return is(di, 'bpmndi:BPMNPlane');
23564
23586
  }
23565
23587
 
23566
23588
  function addPlaneSuffix(id) {
@@ -23633,7 +23655,7 @@
23633
23655
  // when the root is a collaboration, the process does not have a
23634
23656
  // corresponding element in the elementRegisty. Instead, we search
23635
23657
  // for the corresponding participant
23636
- if (!parentPlane && is$1(parent, 'bpmn:Process')) {
23658
+ if (!parentPlane && is(parent, 'bpmn:Process')) {
23637
23659
  var participant = elementRegistry.find(function(element) {
23638
23660
  var businessObject = getBusinessObject(element);
23639
23661
 
@@ -23694,7 +23716,7 @@
23694
23716
  var parents = [];
23695
23717
 
23696
23718
  for (var element = businessObject; element; element = element.$parent) {
23697
- if (is$1(element, 'bpmn:SubProcess') || is$1(element, 'bpmn:Process')) {
23719
+ if (is(element, 'bpmn:SubProcess') || is(element, 'bpmn:Process')) {
23698
23720
  parents.push(element);
23699
23721
  }
23700
23722
  }
@@ -23734,7 +23756,7 @@
23734
23756
  currentRoot = newRoot;
23735
23757
 
23736
23758
  // Keep viewbox when replacing root elements
23737
- if (!is$1(newRoot, 'bpmn:SubProcess') && !storedViewbox) {
23759
+ if (!is(newRoot, 'bpmn:SubProcess') && !storedViewbox) {
23738
23760
  return;
23739
23761
  }
23740
23762
 
@@ -23911,7 +23933,7 @@
23911
23933
 
23912
23934
  var parent = businessObject.$parent;
23913
23935
 
23914
- if (is$1(businessObject, 'bpmn:SubProcess') && !diElement.isExpanded) {
23936
+ if (is(businessObject, 'bpmn:SubProcess') && !diElement.isExpanded) {
23915
23937
  collapsedElements.push(businessObject);
23916
23938
  }
23917
23939
 
@@ -24030,7 +24052,7 @@
24030
24052
  // helpers //////////
24031
24053
 
24032
24054
  function findRootDiagram(element) {
24033
- if (is$1(element, 'bpmndi:BPMNDiagram')) {
24055
+ if (is(element, 'bpmndi:BPMNDiagram')) {
24034
24056
  return element;
24035
24057
  } else {
24036
24058
  return findRootDiagram(element.$parent);
@@ -24074,7 +24096,7 @@
24074
24096
  var parent = businessObject.$parent;
24075
24097
 
24076
24098
  // don't move elements that are already on the plane
24077
- if (!is$1(parent, 'bpmn:SubProcess') || parent === plane.bpmnElement) {
24099
+ if (!is(parent, 'bpmn:SubProcess') || parent === plane.bpmnElement) {
24078
24100
  return false;
24079
24101
  }
24080
24102
 
@@ -24219,7 +24241,7 @@
24219
24241
  DrilldownOverlayBehavior.prototype._canDrillDown = function(element) {
24220
24242
  var canvas = this._canvas;
24221
24243
 
24222
- return is$1(element, 'bpmn:SubProcess') && canvas.findRoot(getPlaneIdFromShape(element));
24244
+ return is(element, 'bpmn:SubProcess') && canvas.findRoot(getPlaneIdFromShape(element));
24223
24245
  };
24224
24246
 
24225
24247
  /**
@@ -29911,7 +29933,7 @@
29911
29933
 
29912
29934
  var process;
29913
29935
  for (process = getBusinessObject(element); process; process = process.$parent) {
29914
- if (is$1(process, 'bpmn:Process')) {
29936
+ if (is(process, 'bpmn:Process')) {
29915
29937
  break;
29916
29938
  }
29917
29939
  }
@@ -29957,7 +29979,7 @@
29957
29979
 
29958
29980
  var placeHorizontally = isDirectionHorizontal(source, elementRegistry);
29959
29981
 
29960
- if (is$1(element, 'bpmn:TextAnnotation')) {
29982
+ if (is(element, 'bpmn:TextAnnotation')) {
29961
29983
  return getTextAnnotationPosition(source, element, placeHorizontally);
29962
29984
  }
29963
29985
 
@@ -29965,7 +29987,7 @@
29965
29987
  return getDataElementPosition(source, element, placeHorizontally);
29966
29988
  }
29967
29989
 
29968
- if (is$1(element, 'bpmn:FlowNode')) {
29990
+ if (is(element, 'bpmn:FlowNode')) {
29969
29991
  return getFlowNodePosition(source, element, placeHorizontally);
29970
29992
  }
29971
29993
  }
@@ -30003,7 +30025,7 @@
30003
30025
 
30004
30026
  var connectedDistance = getConnectedDistance(source, {
30005
30027
  filter: function(connection) {
30006
- return is$1(connection, 'bpmn:SequenceFlow');
30028
+ return is(connection, 'bpmn:SequenceFlow');
30007
30029
  },
30008
30030
  direction: placement.directionHint
30009
30031
  });
@@ -30012,7 +30034,7 @@
30012
30034
  minDistance = placement.minDistance,
30013
30035
  orientation = placement.baseOrientation;
30014
30036
 
30015
- if (is$1(source, 'bpmn:BoundaryEvent')) {
30037
+ if (is(source, 'bpmn:BoundaryEvent')) {
30016
30038
  orientation = getOrientation(source, source.host, -25);
30017
30039
 
30018
30040
  if (orientation.indexOf(placement.boundaryOrientation) !== -1) {
@@ -30485,7 +30507,7 @@
30485
30507
  */
30486
30508
  BpmnAutoResize.prototype.resize = function(target, newBounds, hints) {
30487
30509
 
30488
- if (is$1(target, 'bpmn:Participant')) {
30510
+ if (is(target, 'bpmn:Participant')) {
30489
30511
  this._modeling.resizeLane(target, newBounds, null, hints);
30490
30512
  } else {
30491
30513
  this._modeling.resizeShape(target, newBounds, null, hints);
@@ -30569,11 +30591,11 @@
30569
30591
 
30570
30592
  // do not resize plane elements:
30571
30593
  // root elements, collapsed sub-processes
30572
- if (is$1(target.di, 'bpmndi:BPMNPlane')) {
30594
+ if (is(target.di, 'bpmndi:BPMNPlane')) {
30573
30595
  return false;
30574
30596
  }
30575
30597
 
30576
- if (!is$1(target, 'bpmn:Participant') && !is$1(target, 'bpmn:Lane') && !(is$1(target, 'bpmn:SubProcess'))) {
30598
+ if (!is(target, 'bpmn:Participant') && !is(target, 'bpmn:Lane') && !(is(target, 'bpmn:SubProcess'))) {
30577
30599
  return false;
30578
30600
  }
30579
30601
 
@@ -30581,7 +30603,7 @@
30581
30603
 
30582
30604
  forEach$1(elements, function(element) {
30583
30605
 
30584
- if (is$1(element, 'bpmn:Lane') || isLabel(element)) {
30606
+ if (is(element, 'bpmn:Lane') || isLabel(element)) {
30585
30607
  canResize = false;
30586
30608
  return;
30587
30609
  }
@@ -34909,7 +34931,7 @@
34909
34931
 
34910
34932
  if (!context.position) {
34911
34933
 
34912
- if (is$1(shape, 'bpmn:TextAnnotation')) {
34934
+ if (is(shape, 'bpmn:TextAnnotation')) {
34913
34935
  context.position = {
34914
34936
  x: source.x + source.width / 2 + 75,
34915
34937
  y: source.y - 50 - shape.height / 2
@@ -34947,7 +34969,7 @@
34947
34969
  shape = context.shape;
34948
34970
 
34949
34971
  var associations = filter(shape.incoming.concat(shape.outgoing), function(connection) {
34950
- return is$1(connection, 'bpmn:Association');
34972
+ return is(connection, 'bpmn:Association');
34951
34973
  });
34952
34974
 
34953
34975
  forEach$1(associations, function(association) {
@@ -35077,7 +35099,7 @@
35077
35099
 
35078
35100
  function getBoundaryEvents(element) {
35079
35101
  return filter(element.attachers, function(attacher) {
35080
- return is$1(attacher, 'bpmn:BoundaryEvent');
35102
+ return is(attacher, 'bpmn:BoundaryEvent');
35081
35103
  });
35082
35104
  }
35083
35105
 
@@ -35088,8 +35110,8 @@
35088
35110
  boundaryEvents = getBoundaryEvents(target);
35089
35111
 
35090
35112
  if (
35091
- is$1(source, 'bpmn:EventBasedGateway') &&
35092
- is$1(target, 'bpmn:ReceiveTask') &&
35113
+ is(source, 'bpmn:EventBasedGateway') &&
35114
+ is(target, 'bpmn:ReceiveTask') &&
35093
35115
  boundaryEvents.length > 0
35094
35116
  ) {
35095
35117
  modeling.removeElements(boundaryEvents);
@@ -35102,13 +35124,13 @@
35102
35124
  var oldSource = event.context.oldSource,
35103
35125
  newSource = event.context.newSource;
35104
35126
 
35105
- if (is$1(oldSource, 'bpmn:Gateway') &&
35106
- is$1(newSource, 'bpmn:EventBasedGateway')) {
35127
+ if (is(oldSource, 'bpmn:Gateway') &&
35128
+ is(newSource, 'bpmn:EventBasedGateway')) {
35107
35129
  forEach$1(newSource.outgoing, function(connection) {
35108
35130
  var target = connection.target,
35109
35131
  attachedboundaryEvents = getBoundaryEvents(target);
35110
35132
 
35111
- if (is$1(target, 'bpmn:ReceiveTask') &&
35133
+ if (is(target, 'bpmn:ReceiveTask') &&
35112
35134
  attachedboundaryEvents.length > 0) {
35113
35135
  modeling.removeElements(attachedboundaryEvents);
35114
35136
  }
@@ -35281,7 +35303,7 @@
35281
35303
  }
35282
35304
 
35283
35305
  function removeExistingAssociations(boundaryEvent, ignoredAssociations) {
35284
- const associations = boundaryEvent.outgoing.filter(connection => is$1(connection, 'bpmn:Association'));
35306
+ const associations = boundaryEvent.outgoing.filter(connection => is(connection, 'bpmn:Association'));
35285
35307
  const associationsToRemove = associations.filter(association => {
35286
35308
  return isForCompensation$2(association.target) && !ignoredAssociations.includes(association);
35287
35309
  });
@@ -35310,7 +35332,7 @@
35310
35332
 
35311
35333
  function removeOutgoingSequenceFlows(element) {
35312
35334
  const sequenceFlows = element.outgoing.filter(
35313
- connection => is$1(connection, 'bpmn:SequenceFlow')
35335
+ connection => is(connection, 'bpmn:SequenceFlow')
35314
35336
  );
35315
35337
 
35316
35338
  modeling.removeElements(sequenceFlows);
@@ -35333,12 +35355,12 @@
35333
35355
  }
35334
35356
 
35335
35357
  function isCompensationBoundaryEvent$1(element) {
35336
- return element && is$1(element, 'bpmn:BoundaryEvent') &&
35358
+ return element && is(element, 'bpmn:BoundaryEvent') &&
35337
35359
  hasEventDefinition$2(element, 'bpmn:CompensateEventDefinition');
35338
35360
  }
35339
35361
 
35340
35362
  function isForCompensationAllowed(element) {
35341
- return element && is$1(element, 'bpmn:Activity') && !isEventSubProcess(element);
35363
+ return element && is(element, 'bpmn:Activity') && !isEventSubProcess(element);
35342
35364
  }
35343
35365
 
35344
35366
  /**
@@ -35356,7 +35378,7 @@
35356
35378
  parent = context.parent,
35357
35379
  shape = context.shape;
35358
35380
 
35359
- if (is$1(parent, 'bpmn:Lane') && !is$1(shape, 'bpmn:Lane')) {
35381
+ if (is(parent, 'bpmn:Lane') && !is(shape, 'bpmn:Lane')) {
35360
35382
  context.parent = getParent(parent, 'bpmn:Participant');
35361
35383
  }
35362
35384
  });
@@ -35388,7 +35410,7 @@
35388
35410
  var context = event.context,
35389
35411
  shape = context.shape;
35390
35412
 
35391
- if (is$1(shape, 'bpmn:DataObjectReference') && shape.type !== 'label') {
35413
+ if (is(shape, 'bpmn:DataObjectReference') && shape.type !== 'label') {
35392
35414
 
35393
35415
  // create a DataObject every time a DataObjectReference is created
35394
35416
  var dataObject = bpmnFactory.create('bpmn:DataObject');
@@ -35440,15 +35462,15 @@
35440
35462
  shape = context.shape,
35441
35463
  rootElement = canvas.getRootElement();
35442
35464
 
35443
- if (!is$1(shape, 'bpmn:Participant') ||
35444
- !is$1(rootElement, 'bpmn:Process') ||
35465
+ if (!is(shape, 'bpmn:Participant') ||
35466
+ !is(rootElement, 'bpmn:Process') ||
35445
35467
  !rootElement.children.length) {
35446
35468
  return;
35447
35469
  }
35448
35470
 
35449
35471
  // ignore connections, groups and labels
35450
35472
  var children = rootElement.children.filter(function(element) {
35451
- return !is$1(element, 'bpmn:Group') &&
35473
+ return !is(element, 'bpmn:Group') &&
35452
35474
  !isLabel(element) &&
35453
35475
  !isConnection(element);
35454
35476
  });
@@ -35481,7 +35503,7 @@
35481
35503
  event.gfx = rootElementGfx;
35482
35504
  }
35483
35505
 
35484
- if (is$1(shape, 'bpmn:Participant') && is$1(rootElement, 'bpmn:Process')) {
35506
+ if (is(shape, 'bpmn:Participant') && is(rootElement, 'bpmn:Process')) {
35485
35507
  eventBus.on('element.hover', HIGH_PRIORITY$g, ensureHoveringProcess);
35486
35508
 
35487
35509
  eventBus.once('create.cleanup', function() {
@@ -35494,7 +35516,7 @@
35494
35516
  function getOrCreateCollaboration() {
35495
35517
  var rootElement = canvas.getRootElement();
35496
35518
 
35497
- if (is$1(rootElement, 'bpmn:Collaboration')) {
35519
+ if (is(rootElement, 'bpmn:Collaboration')) {
35498
35520
  return rootElement;
35499
35521
  }
35500
35522
 
@@ -35509,7 +35531,7 @@
35509
35531
  participant = findParticipant(elements),
35510
35532
  hints;
35511
35533
 
35512
- if (participant && is$1(parent, 'bpmn:Process')) {
35534
+ if (participant && is(parent, 'bpmn:Process')) {
35513
35535
  context.parent = getOrCreateCollaboration();
35514
35536
 
35515
35537
  hints = context.hints = context.hints || {};
@@ -35526,7 +35548,7 @@
35526
35548
  var parent = context.parent,
35527
35549
  shape = context.shape;
35528
35550
 
35529
- if (is$1(shape, 'bpmn:Participant') && is$1(parent, 'bpmn:Process')) {
35551
+ if (is(shape, 'bpmn:Participant') && is(parent, 'bpmn:Process')) {
35530
35552
  context.parent = getOrCreateCollaboration();
35531
35553
 
35532
35554
  context.process = parent;
@@ -35623,7 +35645,7 @@
35623
35645
 
35624
35646
  function findParticipant(elements) {
35625
35647
  return find(elements, function(element) {
35626
- return is$1(element, 'bpmn:Participant');
35648
+ return is(element, 'bpmn:Participant');
35627
35649
  });
35628
35650
  }
35629
35651
 
@@ -35768,7 +35790,7 @@
35768
35790
  var context = event.context,
35769
35791
  connection = context.connection;
35770
35792
 
35771
- if (is$1(connection, 'bpmn:DataInputAssociation')) {
35793
+ if (is(connection, 'bpmn:DataInputAssociation')) {
35772
35794
  return fn(event);
35773
35795
  }
35774
35796
  };
@@ -35850,13 +35872,13 @@
35850
35872
 
35851
35873
  function getFirstParticipantWithProcessRef() {
35852
35874
  return elementRegistry.filter(function(element) {
35853
- return is$1(element, 'bpmn:Participant') && getBusinessObject(element).processRef;
35875
+ return is(element, 'bpmn:Participant') && getBusinessObject(element).processRef;
35854
35876
  })[0];
35855
35877
  }
35856
35878
 
35857
35879
  function getDataStores(element) {
35858
35880
  return element.children.filter(function(child) {
35859
- return is$1(child, 'bpmn:DataStoreReference') && !child.labelTarget;
35881
+ return is(child, 'bpmn:DataStoreReference') && !child.labelTarget;
35860
35882
  });
35861
35883
  }
35862
35884
 
@@ -35884,7 +35906,7 @@
35884
35906
  var context = event.context,
35885
35907
  shape = context.shape;
35886
35908
 
35887
- if (is$1(shape, 'bpmn:DataStoreReference') &&
35909
+ if (is(shape, 'bpmn:DataStoreReference') &&
35888
35910
  shape.type !== 'label') {
35889
35911
 
35890
35912
  if (!context.hints) {
@@ -35903,7 +35925,7 @@
35903
35925
  shapes = context.shapes;
35904
35926
 
35905
35927
  var dataStoreReferences = shapes.filter(function(shape) {
35906
- return is$1(shape, 'bpmn:DataStoreReference');
35928
+ return is(shape, 'bpmn:DataStoreReference');
35907
35929
  });
35908
35930
 
35909
35931
  if (dataStoreReferences.length) {
@@ -35913,7 +35935,7 @@
35913
35935
 
35914
35936
  // prevent auto resizing for data store references
35915
35937
  context.hints.autoResize = shapes.filter(function(shape) {
35916
- return !is$1(shape, 'bpmn:DataStoreReference');
35938
+ return !is(shape, 'bpmn:DataStoreReference');
35917
35939
  });
35918
35940
  }
35919
35941
  });
@@ -35926,9 +35948,9 @@
35926
35948
  parent = shape.parent;
35927
35949
 
35928
35950
 
35929
- if (is$1(shape, 'bpmn:DataStoreReference') &&
35951
+ if (is(shape, 'bpmn:DataStoreReference') &&
35930
35952
  shape.type !== 'label' &&
35931
- is$1(parent, 'bpmn:Collaboration')) {
35953
+ is(parent, 'bpmn:Collaboration')) {
35932
35954
 
35933
35955
  updateDataStoreParent(shape);
35934
35956
  }
@@ -35942,17 +35964,17 @@
35942
35964
  oldParent = context.oldParent,
35943
35965
  parent = shape.parent;
35944
35966
 
35945
- if (is$1(oldParent, 'bpmn:Collaboration')) {
35967
+ if (is(oldParent, 'bpmn:Collaboration')) {
35946
35968
 
35947
35969
  // do nothing if not necessary
35948
35970
  return;
35949
35971
  }
35950
35972
 
35951
- if (is$1(shape, 'bpmn:DataStoreReference') &&
35973
+ if (is(shape, 'bpmn:DataStoreReference') &&
35952
35974
  shape.type !== 'label' &&
35953
- is$1(parent, 'bpmn:Collaboration')) {
35975
+ is(parent, 'bpmn:Collaboration')) {
35954
35976
 
35955
- var participant = is$1(oldParent, 'bpmn:Participant') ?
35977
+ var participant = is(oldParent, 'bpmn:Participant') ?
35956
35978
  oldParent :
35957
35979
  getAncestor(oldParent, 'bpmn:Participant');
35958
35980
 
@@ -35968,7 +35990,7 @@
35968
35990
  rootElement = canvas.getRootElement();
35969
35991
 
35970
35992
  if (isAny(shape, [ 'bpmn:Participant', 'bpmn:SubProcess' ])
35971
- && is$1(rootElement, 'bpmn:Collaboration')) {
35993
+ && is(rootElement, 'bpmn:Collaboration')) {
35972
35994
  getDataStores(rootElement)
35973
35995
  .filter(function(dataStore) {
35974
35996
  return isDescendant(dataStore, shape);
@@ -35989,7 +36011,7 @@
35989
36011
 
35990
36012
  dataStores.forEach(function(dataStore) {
35991
36013
 
35992
- if (is$1(newRoot, 'bpmn:Process')) {
36014
+ if (is(newRoot, 'bpmn:Process')) {
35993
36015
  updateDataStoreParent(dataStore, newRoot);
35994
36016
  }
35995
36017
 
@@ -36027,7 +36049,7 @@
36027
36049
  function getAncestor(element, type) {
36028
36050
 
36029
36051
  while (element.parent) {
36030
- if (is$1(element.parent, type)) {
36052
+ if (is(element.parent, type)) {
36031
36053
  return element.parent;
36032
36054
  }
36033
36055
 
@@ -36299,7 +36321,7 @@
36299
36321
  collectedShapes = collectedShapes || [];
36300
36322
 
36301
36323
  shape.children.filter(function(s) {
36302
- if (is$1(s, 'bpmn:Lane')) {
36324
+ if (is(s, 'bpmn:Lane')) {
36303
36325
  collectLanes(s, collectedShapes);
36304
36326
 
36305
36327
  collectedShapes.push(s);
@@ -36319,7 +36341,7 @@
36319
36341
  */
36320
36342
  function getChildLanes(shape) {
36321
36343
  return shape.children.filter(function(c) {
36322
- return is$1(c, 'bpmn:Lane');
36344
+ return is(c, 'bpmn:Lane');
36323
36345
  });
36324
36346
  }
36325
36347
 
@@ -36353,7 +36375,7 @@
36353
36375
 
36354
36376
  var rootElement = getLanesRoot(shape);
36355
36377
 
36356
- var initialShapes = is$1(rootElement, 'bpmn:Process') ? [] : [ rootElement ];
36378
+ var initialShapes = is(rootElement, 'bpmn:Process') ? [] : [ rootElement ];
36357
36379
 
36358
36380
  var allLanes = collectLanes(rootElement, initialShapes),
36359
36381
  shapeTrbl = asTRBL(shape),
@@ -36560,7 +36582,7 @@
36560
36582
  oldParent = context.oldParent;
36561
36583
 
36562
36584
  // only compensate lane deletes
36563
- if (!is$1(shape, 'bpmn:Lane')) {
36585
+ if (!is(shape, 'bpmn:Lane')) {
36564
36586
  return;
36565
36587
  }
36566
36588
 
@@ -36665,7 +36687,7 @@
36665
36687
  }
36666
36688
 
36667
36689
  function shouldReplace(shape, host) {
36668
- return !isLabel(shape) && is$1(shape, 'bpmn:BoundaryEvent') && !host;
36690
+ return !isLabel(shape) && is(shape, 'bpmn:BoundaryEvent') && !host;
36669
36691
  }
36670
36692
 
36671
36693
  function includes$6(array, item) {
@@ -36914,7 +36936,7 @@
36914
36936
 
36915
36937
  var sequenceFlows = [];
36916
36938
 
36917
- if (is$1(source, 'bpmn:EventBasedGateway')) {
36939
+ if (is(source, 'bpmn:EventBasedGateway')) {
36918
36940
  sequenceFlows = target.incoming
36919
36941
  .filter(flow =>
36920
36942
  flow !== connection &&
@@ -36925,7 +36947,7 @@
36925
36947
  .filter(flow =>
36926
36948
  flow !== connection &&
36927
36949
  isSequenceFlow(flow) &&
36928
- is$1(flow.source, 'bpmn:EventBasedGateway')
36950
+ is(flow.source, 'bpmn:EventBasedGateway')
36929
36951
  );
36930
36952
  }
36931
36953
 
@@ -36942,7 +36964,7 @@
36942
36964
  var context = event.context,
36943
36965
  newShape = context.newShape;
36944
36966
 
36945
- if (!is$1(newShape, 'bpmn:EventBasedGateway')) {
36967
+ if (!is(newShape, 'bpmn:EventBasedGateway')) {
36946
36968
  return;
36947
36969
  }
36948
36970
 
@@ -36979,7 +37001,7 @@
36979
37001
  // helpers //////////
36980
37002
 
36981
37003
  function isSequenceFlow(connection) {
36982
- return is$1(connection, 'bpmn:SequenceFlow');
37004
+ return is(connection, 'bpmn:SequenceFlow');
36983
37005
  }
36984
37006
 
36985
37007
  /**
@@ -37017,7 +37039,7 @@
37017
37039
 
37018
37040
  // ensure elements are not dropped onto a bpmn:Lane but onto
37019
37041
  // the underlying bpmn:Participant
37020
- if (is$1(hover, 'bpmn:Lane') && !isAny(shape, [ 'bpmn:Lane', 'bpmn:Participant' ])) {
37042
+ if (is(hover, 'bpmn:Lane') && !isAny(shape, [ 'bpmn:Lane', 'bpmn:Participant' ])) {
37021
37043
  event.hover = getLanesRoot(hover);
37022
37044
  event.hoverGfx = elementRegistry.getGraphics(event.hover);
37023
37045
  }
@@ -37046,7 +37068,7 @@
37046
37068
 
37047
37069
  // ensure connections start/end on bpmn:Participant,
37048
37070
  // not the underlying bpmn:Lane
37049
- if (is$1(hover, 'bpmn:Lane')) {
37071
+ if (is(hover, 'bpmn:Lane')) {
37050
37072
  event.hover = getLanesRoot(hover) || hover;
37051
37073
  event.hoverGfx = elementRegistry.getGraphics(event.hover);
37052
37074
  }
@@ -37062,7 +37084,7 @@
37062
37084
 
37063
37085
  // ensure reconnect start/end on bpmn:Participant,
37064
37086
  // not the underlying bpmn:Lane
37065
- if (is$1(hover, 'bpmn:Lane') && /reconnect/.test(type)) {
37087
+ if (is(hover, 'bpmn:Lane') && /reconnect/.test(type)) {
37066
37088
  event.hover = getLanesRoot(hover) || hover;
37067
37089
  event.hoverGfx = elementRegistry.getGraphics(event.hover);
37068
37090
  }
@@ -37077,7 +37099,7 @@
37077
37099
 
37078
37100
  // ensure connect start on bpmn:Participant,
37079
37101
  // not the underlying bpmn:Lane
37080
- if (is$1(start, 'bpmn:Lane')) {
37102
+ if (is(start, 'bpmn:Lane')) {
37081
37103
  context.start = getLanesRoot(start) || start;
37082
37104
  }
37083
37105
  });
@@ -37087,7 +37109,7 @@
37087
37109
  eventBus.on('shape.move.start', HIGHEST_PRIORITY, function(event) {
37088
37110
  var shape = event.shape;
37089
37111
 
37090
- if (is$1(shape, 'bpmn:Lane')) {
37112
+ if (is(shape, 'bpmn:Lane')) {
37091
37113
  event.shape = getLanesRoot(shape) || shape;
37092
37114
  }
37093
37115
  });
@@ -37097,7 +37119,7 @@
37097
37119
  eventBus.on('spaceTool.move', HIGHEST_PRIORITY, function(event) {
37098
37120
  var hover = event.hover;
37099
37121
 
37100
- if (hover && is$1(hover, 'bpmn:Lane')) {
37122
+ if (hover && is(hover, 'bpmn:Lane')) {
37101
37123
  event.hover = getLanesRoot(hover);
37102
37124
  }
37103
37125
  });
@@ -37237,7 +37259,7 @@
37237
37259
  */
37238
37260
  function getGroupElements() {
37239
37261
  return elementRegistry.filter(function(e) {
37240
- return is$1(e, 'bpmn:Group');
37262
+ return is(e, 'bpmn:Group');
37241
37263
  });
37242
37264
  }
37243
37265
 
@@ -37355,7 +37377,7 @@
37355
37377
  var context = event.context,
37356
37378
  labelTarget = context.labelTarget;
37357
37379
 
37358
- if (!is$1(labelTarget, 'bpmn:Group')) {
37380
+ if (!is(labelTarget, 'bpmn:Group')) {
37359
37381
  return;
37360
37382
  }
37361
37383
 
@@ -37366,7 +37388,7 @@
37366
37388
  var context = event.context,
37367
37389
  labelTarget = context.labelTarget;
37368
37390
 
37369
- if (!is$1(labelTarget, 'bpmn:Group')) {
37391
+ if (!is(labelTarget, 'bpmn:Group')) {
37370
37392
  return;
37371
37393
  }
37372
37394
 
@@ -37382,7 +37404,7 @@
37382
37404
  shape = context.shape,
37383
37405
  businessObject = getBusinessObject(shape);
37384
37406
 
37385
- if (!is$1(shape, 'bpmn:Group') || shape.labelTarget) {
37407
+ if (!is(shape, 'bpmn:Group') || shape.labelTarget) {
37386
37408
  return;
37387
37409
  }
37388
37410
 
@@ -37403,7 +37425,7 @@
37403
37425
  var context = event.context,
37404
37426
  shape = context.shape;
37405
37427
 
37406
- if (!is$1(shape, 'bpmn:Group') || shape.labelTarget) {
37428
+ if (!is(shape, 'bpmn:Group') || shape.labelTarget) {
37407
37429
  return;
37408
37430
  }
37409
37431
 
@@ -37425,7 +37447,7 @@
37425
37447
  var context = event.context,
37426
37448
  shape = context.shape;
37427
37449
 
37428
- if (!is$1(shape, 'bpmn:Group') || shape.labelTarget) {
37450
+ if (!is(shape, 'bpmn:Group') || shape.labelTarget) {
37429
37451
  return;
37430
37452
  }
37431
37453
 
@@ -37439,7 +37461,7 @@
37439
37461
  var context = event.context,
37440
37462
  shape = context.shape;
37441
37463
 
37442
- if (!is$1(shape, 'bpmn:Group') || shape.labelTarget) {
37464
+ if (!is(shape, 'bpmn:Group') || shape.labelTarget) {
37443
37465
  return;
37444
37466
  }
37445
37467
 
@@ -37461,7 +37483,7 @@
37461
37483
  var descriptor = context.descriptor,
37462
37484
  element = context.element;
37463
37485
 
37464
- if (!is$1(element, 'bpmn:Group') || element.labelTarget) {
37486
+ if (!is(element, 'bpmn:Group') || element.labelTarget) {
37465
37487
  return;
37466
37488
  }
37467
37489
 
@@ -38366,7 +38388,7 @@
38366
38388
  }
38367
38389
 
38368
38390
  if (TEXT_PROPERTY in properties
38369
- && is$1(element, 'bpmn:TextAnnotation')) {
38391
+ && is(element, 'bpmn:TextAnnotation')) {
38370
38392
 
38371
38393
  var newBounds = textRenderer.getTextAnnotationBounds(
38372
38394
  {
@@ -38929,9 +38951,9 @@
38929
38951
  // helpers //////////
38930
38952
 
38931
38953
  function isParticipantCollapse(oldShape, newShape) {
38932
- return is$1(oldShape, 'bpmn:Participant')
38954
+ return is(oldShape, 'bpmn:Participant')
38933
38955
  && isExpanded(oldShape)
38934
- && is$1(newShape, 'bpmn:Participant')
38956
+ && is(newShape, 'bpmn:Participant')
38935
38957
  && !isExpanded(newShape);
38936
38958
  }
38937
38959
 
@@ -38947,13 +38969,13 @@
38947
38969
  }
38948
38970
 
38949
38971
  element.incoming.forEach(function(connection) {
38950
- if (is$1(connection, 'bpmn:MessageFlow')) {
38972
+ if (is(connection, 'bpmn:MessageFlow')) {
38951
38973
  incoming.push(connection);
38952
38974
  }
38953
38975
  });
38954
38976
 
38955
38977
  element.outgoing.forEach(function(connection) {
38956
- if (is$1(connection, 'bpmn:MessageFlow')) {
38978
+ if (is(connection, 'bpmn:MessageFlow')) {
38957
38979
  outgoing.push(connection);
38958
38980
  }
38959
38981
  });
@@ -38978,8 +39000,8 @@
38978
39000
  const businessObject = getBusinessObject(shape);
38979
39001
 
38980
39002
  if (
38981
- !is$1(businessObject, 'bpmn:BoundaryEvent') &&
38982
- !(is$1(businessObject, 'bpmn:StartEvent') && isEventSubProcess(businessObject.$parent))
39003
+ !is(businessObject, 'bpmn:BoundaryEvent') &&
39004
+ !(is(businessObject, 'bpmn:StartEvent') && isEventSubProcess(businessObject.$parent))
38983
39005
  ) {
38984
39006
  return false;
38985
39007
  }
@@ -38989,11 +39011,11 @@
38989
39011
  return false;
38990
39012
  }
38991
39013
 
38992
- return NON_INTERRUPTING_EVENT_TYPES.some(event => is$1(eventDefinitions[0], event));
39014
+ return NON_INTERRUPTING_EVENT_TYPES.some(event => is(eventDefinitions[0], event));
38993
39015
  }
38994
39016
 
38995
39017
  function getInterruptingProperty(shape) {
38996
- return is$1(shape, 'bpmn:BoundaryEvent') ? 'cancelActivity' : 'isInterrupting';
39018
+ return is(shape, 'bpmn:BoundaryEvent') ? 'cancelActivity' : 'isInterrupting';
38997
39019
  }
38998
39020
 
38999
39021
  function NonInterruptingBehavior(injector, modeling) {
@@ -39102,7 +39124,7 @@
39102
39124
  outConnection = shape.outgoing[0];
39103
39125
 
39104
39126
  // only handle sequence flows
39105
- if (!is$1(inConnection, 'bpmn:SequenceFlow') || !is$1(outConnection, 'bpmn:SequenceFlow')) {
39127
+ if (!is(inConnection, 'bpmn:SequenceFlow') || !is(outConnection, 'bpmn:SequenceFlow')) {
39106
39128
  return;
39107
39129
  }
39108
39130
 
@@ -39182,7 +39204,7 @@
39182
39204
 
39183
39205
  // activate the behavior if the shape to be removed
39184
39206
  // is a participant
39185
- if (is$1(shape, 'bpmn:Participant')) {
39207
+ if (is(shape, 'bpmn:Participant')) {
39186
39208
  context.collaborationRoot = parent;
39187
39209
  }
39188
39210
  }, true);
@@ -39252,7 +39274,7 @@
39252
39274
  * This holds true for SequenceFlow <> MessageFlow.
39253
39275
  */
39254
39276
 
39255
- if (is$1(connection, 'bpmn:SequenceFlow')) {
39277
+ if (is(connection, 'bpmn:SequenceFlow')) {
39256
39278
  if (!bpmnRules.canConnectSequenceFlow(source, target)) {
39257
39279
  remove = true;
39258
39280
  }
@@ -39264,7 +39286,7 @@
39264
39286
 
39265
39287
  // transform message flows into sequence flows, if possible
39266
39288
 
39267
- if (is$1(connection, 'bpmn:MessageFlow')) {
39289
+ if (is(connection, 'bpmn:MessageFlow')) {
39268
39290
 
39269
39291
  if (!bpmnRules.canConnectMessageFlow(source, target)) {
39270
39292
  remove = true;
@@ -39588,15 +39610,15 @@
39588
39610
  direction = context.direction,
39589
39611
  balanced = context.balanced;
39590
39612
 
39591
- if (is$1(shape, 'bpmn:Lane') || is$1(shape, 'bpmn:Participant')) {
39613
+ if (is(shape, 'bpmn:Lane') || is(shape, 'bpmn:Participant')) {
39592
39614
  context.resizeConstraints = getParticipantResizeConstraints(shape, direction, balanced);
39593
39615
  }
39594
39616
 
39595
- if (is$1(shape, 'bpmn:SubProcess') && isExpanded(shape)) {
39617
+ if (is(shape, 'bpmn:SubProcess') && isExpanded(shape)) {
39596
39618
  context.minDimensions = SUB_PROCESS_MIN_DIMENSIONS;
39597
39619
  }
39598
39620
 
39599
- if (is$1(shape, 'bpmn:TextAnnotation')) {
39621
+ if (is(shape, 'bpmn:TextAnnotation')) {
39600
39622
  context.minDimensions = TEXT_ANNOTATION_MIN_DIMENSIONS;
39601
39623
  }
39602
39624
  });
@@ -39745,7 +39767,7 @@
39745
39767
 
39746
39768
  // max top/bottom/left/right size based on flow nodes
39747
39769
  var flowElements = lanesRoot.children.filter(function(s) {
39748
- return !s.hidden && !s.waypoints && (is$1(s, 'bpmn:FlowElement') || is$1(s, 'bpmn:Artifact'));
39770
+ return !s.hidden && !s.waypoints && (is(s, 'bpmn:FlowElement') || is(s, 'bpmn:Artifact'));
39749
39771
  });
39750
39772
 
39751
39773
  var padding = isHorizontalLane ? LANE_PADDING : VERTICAL_LANE_PADDING;
@@ -39801,7 +39823,7 @@
39801
39823
  var context = event.context,
39802
39824
  shape = context.shape;
39803
39825
 
39804
- if (is$1(shape, 'bpmn:Lane') || is$1(shape, 'bpmn:Participant')) {
39826
+ if (is(shape, 'bpmn:Lane') || is(shape, 'bpmn:Participant')) {
39805
39827
 
39806
39828
  // should we resize the opposite lane(s) in
39807
39829
  // order to compensate for the resize operation?
@@ -39818,7 +39840,7 @@
39818
39840
  canExecute = context.canExecute,
39819
39841
  newBounds = context.newBounds;
39820
39842
 
39821
- if (is$1(shape, 'bpmn:Lane') || is$1(shape, 'bpmn:Participant')) {
39843
+ if (is(shape, 'bpmn:Lane') || is(shape, 'bpmn:Participant')) {
39822
39844
 
39823
39845
  if (canExecute) {
39824
39846
 
@@ -39890,13 +39912,13 @@
39890
39912
  }
39891
39913
 
39892
39914
  function getRootElementReferencePropertyName(eventDefinition) {
39893
- if (is$1(eventDefinition, 'bpmn:ErrorEventDefinition')) {
39915
+ if (is(eventDefinition, 'bpmn:ErrorEventDefinition')) {
39894
39916
  return 'errorRef';
39895
- } else if (is$1(eventDefinition, 'bpmn:EscalationEventDefinition')) {
39917
+ } else if (is(eventDefinition, 'bpmn:EscalationEventDefinition')) {
39896
39918
  return 'escalationRef';
39897
- } else if (is$1(eventDefinition, 'bpmn:MessageEventDefinition')) {
39919
+ } else if (is(eventDefinition, 'bpmn:MessageEventDefinition')) {
39898
39920
  return 'messageRef';
39899
- } else if (is$1(eventDefinition, 'bpmn:SignalEventDefinition')) {
39921
+ } else if (is(eventDefinition, 'bpmn:SignalEventDefinition')) {
39900
39922
  return 'signalRef';
39901
39923
  }
39902
39924
  }
@@ -40049,23 +40071,23 @@
40049
40071
  forEach$1(shapes, function(shape) {
40050
40072
  var id = shape.id;
40051
40073
 
40052
- if (is$1(shape, 'bpmn:Participant')) {
40074
+ if (is(shape, 'bpmn:Participant')) {
40053
40075
  minDimensions[ id ] = getParticipantMinDimensions(shape, axis, start);
40054
40076
  }
40055
40077
 
40056
- if (is$1(shape, 'bpmn:Lane')) {
40078
+ if (is(shape, 'bpmn:Lane')) {
40057
40079
  minDimensions[ id ] = isHorizontal$3(shape) ? LANE_MIN_DIMENSIONS : VERTICAL_LANE_MIN_DIMENSIONS;
40058
40080
  }
40059
40081
 
40060
- if (is$1(shape, 'bpmn:SubProcess') && isExpanded(shape)) {
40082
+ if (is(shape, 'bpmn:SubProcess') && isExpanded(shape)) {
40061
40083
  minDimensions[ id ] = SUB_PROCESS_MIN_DIMENSIONS;
40062
40084
  }
40063
40085
 
40064
- if (is$1(shape, 'bpmn:TextAnnotation')) {
40086
+ if (is(shape, 'bpmn:TextAnnotation')) {
40065
40087
  minDimensions[ id ] = TEXT_ANNOTATION_MIN_DIMENSIONS;
40066
40088
  }
40067
40089
 
40068
- if (is$1(shape, 'bpmn:Group')) {
40090
+ if (is(shape, 'bpmn:Group')) {
40069
40091
  minDimensions[ id ] = GROUP_MIN_DIMENSIONS;
40070
40092
  }
40071
40093
  });
@@ -40266,7 +40288,7 @@
40266
40288
  var self = this;
40267
40289
 
40268
40290
  function isCollapsedSubProcess(element) {
40269
- return is$1(element, 'bpmn:SubProcess') && !isExpanded(element);
40291
+ return is(element, 'bpmn:SubProcess') && !isExpanded(element);
40270
40292
  }
40271
40293
 
40272
40294
  function createRoot(context) {
@@ -40395,7 +40417,7 @@
40395
40417
  this.executed('element.updateProperties', function(context) {
40396
40418
  var shape = context.element;
40397
40419
 
40398
- if (!is$1(shape, 'bpmn:SubProcess')) {
40420
+ if (!is(shape, 'bpmn:SubProcess')) {
40399
40421
  return;
40400
40422
  }
40401
40423
 
@@ -40429,7 +40451,7 @@
40429
40451
  this.reverted('element.updateProperties', function(context) {
40430
40452
  var shape = context.element;
40431
40453
 
40432
- if (!is$1(shape, 'bpmn:SubProcess')) {
40454
+ if (!is(shape, 'bpmn:SubProcess')) {
40433
40455
  return;
40434
40456
  }
40435
40457
 
@@ -40485,7 +40507,7 @@
40485
40507
  this.executed('shape.toggleCollapse', LOW_PRIORITY$f, function(context) {
40486
40508
  var shape = context.shape;
40487
40509
 
40488
- if (!is$1(shape, 'bpmn:SubProcess')) {
40510
+ if (!is(shape, 'bpmn:SubProcess')) {
40489
40511
  return;
40490
40512
  }
40491
40513
 
@@ -40503,7 +40525,7 @@
40503
40525
  this.reverted('shape.toggleCollapse', LOW_PRIORITY$f, function(context) {
40504
40526
  var shape = context.shape;
40505
40527
 
40506
- if (!is$1(shape, 'bpmn:SubProcess')) {
40528
+ if (!is(shape, 'bpmn:SubProcess')) {
40507
40529
  return;
40508
40530
  }
40509
40531
 
@@ -40520,7 +40542,7 @@
40520
40542
  this.postExecuted('shape.toggleCollapse', HIGH_PRIORITY$d, function(context) {
40521
40543
  var shape = context.shape;
40522
40544
 
40523
- if (!is$1(shape, 'bpmn:SubProcess')) {
40545
+ if (!is(shape, 'bpmn:SubProcess')) {
40524
40546
  return;
40525
40547
  }
40526
40548
 
@@ -40570,7 +40592,7 @@
40570
40592
 
40571
40593
  var parent = element.parent;
40572
40594
 
40573
- var isPlane = is$1(getDi(parent), 'bpmndi:BPMNPlane');
40595
+ var isPlane = is(getDi(parent), 'bpmndi:BPMNPlane');
40574
40596
  if (!isPlane) {
40575
40597
  return;
40576
40598
  }
@@ -40802,9 +40824,9 @@
40802
40824
  newShape = event.context.newShape;
40803
40825
 
40804
40826
  if (
40805
- !is$1(newShape, 'bpmn:SubProcess') ||
40806
- is$1(newShape,'bpmn:AdHocSubProcess') ||
40807
- ! (is$1(oldShape, 'bpmn:Task') || is$1(oldShape, 'bpmn:CallActivity')) ||
40827
+ !is(newShape, 'bpmn:SubProcess') ||
40828
+ is(newShape,'bpmn:AdHocSubProcess') ||
40829
+ ! (is(oldShape, 'bpmn:Task') || is(oldShape, 'bpmn:CallActivity')) ||
40808
40830
  !isExpanded(newShape)
40809
40831
  ) {
40810
40832
  return;
@@ -40846,7 +40868,7 @@
40846
40868
  this.preExecute('connection.create', function(context) {
40847
40869
  const { target } = context;
40848
40870
 
40849
- if (!is$1(target, 'bpmn:TextAnnotation')) {
40871
+ if (!is(target, 'bpmn:TextAnnotation')) {
40850
40872
  return;
40851
40873
  }
40852
40874
 
@@ -40856,7 +40878,7 @@
40856
40878
  this.preExecute([ 'shape.create', 'shape.resize', 'elements.move' ], function(context) {
40857
40879
  const shapes = context.shapes || [ context.shape ];
40858
40880
 
40859
- if (shapes.length === 1 && is$1(shapes[0], 'bpmn:TextAnnotation')) {
40881
+ if (shapes.length === 1 && is(shapes[0], 'bpmn:TextAnnotation')) {
40860
40882
  context.hints = context.hints || {};
40861
40883
 
40862
40884
  context.hints.autoResize = false;
@@ -41014,7 +41036,7 @@
41014
41036
  var context = e.context,
41015
41037
  shape = context.shape;
41016
41038
 
41017
- if (!is$1(shape, 'bpmn:SubProcess')) {
41039
+ if (!is(shape, 'bpmn:SubProcess')) {
41018
41040
  return;
41019
41041
  }
41020
41042
 
@@ -41115,7 +41137,7 @@
41115
41137
  return;
41116
41138
  }
41117
41139
 
41118
- if (is$1(shape, 'bpmn:Participant') && isExpanded(shape)) {
41140
+ if (is(shape, 'bpmn:Participant') && isExpanded(shape)) {
41119
41141
  moddle.ids.unclaim(shapeBo.processRef.id);
41120
41142
  }
41121
41143
 
@@ -41135,7 +41157,7 @@
41135
41157
  var rootElement = canvas.getRootElement(),
41136
41158
  rootElementBo = rootElement.businessObject;
41137
41159
 
41138
- if (is$1(rootElement, 'bpmn:Collaboration')) {
41160
+ if (is(rootElement, 'bpmn:Collaboration')) {
41139
41161
  moddle.ids.unclaim(rootElementBo.id);
41140
41162
  }
41141
41163
  });
@@ -41187,7 +41209,7 @@
41187
41209
 
41188
41210
  function isDefaultFlow(connection, source) {
41189
41211
 
41190
- if (!is$1(connection, 'bpmn:SequenceFlow')) {
41212
+ if (!is(connection, 'bpmn:SequenceFlow')) {
41191
41213
  return false;
41192
41214
  }
41193
41215
 
@@ -41304,11 +41326,11 @@
41304
41326
  return;
41305
41327
  }
41306
41328
 
41307
- if (is$1(shape, 'bpmn:Lane')) {
41329
+ if (is(shape, 'bpmn:Lane')) {
41308
41330
  updateContext.addLane(shape);
41309
41331
  }
41310
41332
 
41311
- if (is$1(shape, 'bpmn:FlowNode')) {
41333
+ if (is(shape, 'bpmn:FlowNode')) {
41312
41334
  updateContext.addFlowNode(shape);
41313
41335
  }
41314
41336
  });
@@ -41394,7 +41416,7 @@
41394
41416
  }
41395
41417
 
41396
41418
  function isCompensationBoundaryEvent(element) {
41397
- return element && is$1(element, 'bpmn:BoundaryEvent') &&
41419
+ return element && is(element, 'bpmn:BoundaryEvent') &&
41398
41420
  hasEventDefinition$2(element, 'bpmn:CompensateEventDefinition');
41399
41421
  }
41400
41422
 
@@ -41754,11 +41776,11 @@
41754
41776
  function getOrganizationalParent(element) {
41755
41777
 
41756
41778
  do {
41757
- if (is$1(element, 'bpmn:Process')) {
41779
+ if (is(element, 'bpmn:Process')) {
41758
41780
  return getBusinessObject(element);
41759
41781
  }
41760
41782
 
41761
- if (is$1(element, 'bpmn:Participant')) {
41783
+ if (is(element, 'bpmn:Participant')) {
41762
41784
  return (
41763
41785
  getBusinessObject(element).processRef ||
41764
41786
  getBusinessObject(element)
@@ -41774,7 +41796,7 @@
41774
41796
  * @return {boolean}
41775
41797
  */
41776
41798
  function isTextAnnotation(element) {
41777
- return is$1(element, 'bpmn:TextAnnotation');
41799
+ return is(element, 'bpmn:TextAnnotation');
41778
41800
  }
41779
41801
 
41780
41802
  /**
@@ -41783,7 +41805,7 @@
41783
41805
  * @return {boolean}
41784
41806
  */
41785
41807
  function isGroup(element) {
41786
- return is$1(element, 'bpmn:Group') && !element.labelTarget;
41808
+ return is(element, 'bpmn:Group') && !element.labelTarget;
41787
41809
  }
41788
41810
 
41789
41811
  /**
@@ -41792,7 +41814,7 @@
41792
41814
  * @return {boolean}
41793
41815
  */
41794
41816
  function isCompensationBoundary(element) {
41795
- return is$1(element, 'bpmn:BoundaryEvent') &&
41817
+ return is(element, 'bpmn:BoundaryEvent') &&
41796
41818
  hasEventDefinition$1(element, 'bpmn:CompensateEventDefinition');
41797
41819
  }
41798
41820
 
@@ -41825,10 +41847,10 @@
41825
41847
  */
41826
41848
  function isMessageFlowSource(element) {
41827
41849
  return (
41828
- is$1(element, 'bpmn:InteractionNode') &&
41829
- !is$1(element, 'bpmn:BoundaryEvent') && (
41830
- !is$1(element, 'bpmn:Event') || (
41831
- is$1(element, 'bpmn:ThrowEvent') &&
41850
+ is(element, 'bpmn:InteractionNode') &&
41851
+ !is(element, 'bpmn:BoundaryEvent') && (
41852
+ !is(element, 'bpmn:Event') || (
41853
+ is(element, 'bpmn:ThrowEvent') &&
41832
41854
  hasEventDefinitionOrNone(element, 'bpmn:MessageEventDefinition')
41833
41855
  )
41834
41856
  )
@@ -41842,14 +41864,14 @@
41842
41864
  */
41843
41865
  function isMessageFlowTarget(element) {
41844
41866
  return (
41845
- is$1(element, 'bpmn:InteractionNode') &&
41867
+ is(element, 'bpmn:InteractionNode') &&
41846
41868
  !isForCompensation(element) && (
41847
- !is$1(element, 'bpmn:Event') || (
41848
- is$1(element, 'bpmn:CatchEvent') &&
41869
+ !is(element, 'bpmn:Event') || (
41870
+ is(element, 'bpmn:CatchEvent') &&
41849
41871
  hasEventDefinitionOrNone(element, 'bpmn:MessageEventDefinition')
41850
41872
  )
41851
41873
  ) && !(
41852
- is$1(element, 'bpmn:BoundaryEvent') &&
41874
+ is(element, 'bpmn:BoundaryEvent') &&
41853
41875
  !hasEventDefinition$1(element, 'bpmn:MessageEventDefinition')
41854
41876
  )
41855
41877
  );
@@ -41866,11 +41888,11 @@
41866
41888
 
41867
41889
  while ((parent = parent.parent)) {
41868
41890
 
41869
- if (is$1(parent, 'bpmn:FlowElementsContainer')) {
41891
+ if (is(parent, 'bpmn:FlowElementsContainer')) {
41870
41892
  return getBusinessObject(parent);
41871
41893
  }
41872
41894
 
41873
- if (is$1(parent, 'bpmn:Participant')) {
41895
+ if (is(parent, 'bpmn:Participant')) {
41874
41896
  return getBusinessObject(parent).processRef;
41875
41897
  }
41876
41898
  }
@@ -41901,7 +41923,7 @@
41901
41923
  var businessObject = getBusinessObject(element);
41902
41924
 
41903
41925
  return !!find(businessObject.eventDefinitions || [], function(definition) {
41904
- return is$1(definition, eventDefinition);
41926
+ return is(definition, eventDefinition);
41905
41927
  });
41906
41928
  }
41907
41929
 
@@ -41915,7 +41937,7 @@
41915
41937
  var businessObject = getBusinessObject(element);
41916
41938
 
41917
41939
  return (businessObject.eventDefinitions || []).every(function(definition) {
41918
- return is$1(definition, eventDefinition);
41940
+ return is(definition, eventDefinition);
41919
41941
  });
41920
41942
  }
41921
41943
 
@@ -41926,10 +41948,10 @@
41926
41948
  */
41927
41949
  function isSequenceFlowSource(element) {
41928
41950
  return (
41929
- is$1(element, 'bpmn:FlowNode') &&
41930
- !is$1(element, 'bpmn:EndEvent') &&
41951
+ is(element, 'bpmn:FlowNode') &&
41952
+ !is(element, 'bpmn:EndEvent') &&
41931
41953
  !isEventSubProcess(element) &&
41932
- !(is$1(element, 'bpmn:IntermediateThrowEvent') &&
41954
+ !(is(element, 'bpmn:IntermediateThrowEvent') &&
41933
41955
  hasEventDefinition$1(element, 'bpmn:LinkEventDefinition')
41934
41956
  ) &&
41935
41957
  !isCompensationBoundary(element) &&
@@ -41944,11 +41966,11 @@
41944
41966
  */
41945
41967
  function isSequenceFlowTarget(element) {
41946
41968
  return (
41947
- is$1(element, 'bpmn:FlowNode') &&
41948
- !is$1(element, 'bpmn:StartEvent') &&
41949
- !is$1(element, 'bpmn:BoundaryEvent') &&
41969
+ is(element, 'bpmn:FlowNode') &&
41970
+ !is(element, 'bpmn:StartEvent') &&
41971
+ !is(element, 'bpmn:BoundaryEvent') &&
41950
41972
  !isEventSubProcess(element) &&
41951
- !(is$1(element, 'bpmn:IntermediateCatchEvent') &&
41973
+ !(is(element, 'bpmn:IntermediateCatchEvent') &&
41952
41974
  hasEventDefinition$1(element, 'bpmn:LinkEventDefinition')
41953
41975
  ) &&
41954
41976
  !isForCompensation(element)
@@ -41962,8 +41984,8 @@
41962
41984
  */
41963
41985
  function isEventBasedTarget(element) {
41964
41986
  return (
41965
- is$1(element, 'bpmn:ReceiveTask') || (
41966
- is$1(element, 'bpmn:IntermediateCatchEvent') && (
41987
+ is(element, 'bpmn:ReceiveTask') || (
41988
+ is(element, 'bpmn:IntermediateCatchEvent') && (
41967
41989
  hasEventDefinition$1(element, 'bpmn:MessageEventDefinition') ||
41968
41990
  hasEventDefinition$1(element, 'bpmn:TimerEventDefinition') ||
41969
41991
  hasEventDefinition$1(element, 'bpmn:ConditionalEventDefinition') ||
@@ -42018,7 +42040,7 @@
42018
42040
  return null;
42019
42041
  }
42020
42042
 
42021
- if (!is$1(connection, 'bpmn:DataAssociation')) {
42043
+ if (!is(connection, 'bpmn:DataAssociation')) {
42022
42044
 
42023
42045
  if (canConnectMessageFlow(source, target)) {
42024
42046
  return { type: 'bpmn:MessageFlow' };
@@ -42069,14 +42091,14 @@
42069
42091
 
42070
42092
 
42071
42093
  // disallow to create elements on collapsed pools
42072
- if (is$1(target, 'bpmn:Participant') && !isExpanded(target)) {
42094
+ if (is(target, 'bpmn:Participant') && !isExpanded(target)) {
42073
42095
  return false;
42074
42096
  }
42075
42097
 
42076
42098
  // allow to create new participants on
42077
42099
  // existing collaboration and process diagrams
42078
- if (is$1(element, 'bpmn:Participant')) {
42079
- return is$1(target, 'bpmn:Process') || is$1(target, 'bpmn:Collaboration');
42100
+ if (is(element, 'bpmn:Participant')) {
42101
+ return is(target, 'bpmn:Process') || is(target, 'bpmn:Collaboration');
42080
42102
  }
42081
42103
 
42082
42104
  // allow moving DataInput / DataOutput within its original container only
@@ -42088,19 +42110,19 @@
42088
42110
  }
42089
42111
 
42090
42112
  // allow creating lanes on participants and other lanes only
42091
- if (is$1(element, 'bpmn:Lane')) {
42092
- return is$1(target, 'bpmn:Participant') || is$1(target, 'bpmn:Lane');
42113
+ if (is(element, 'bpmn:Lane')) {
42114
+ return is(target, 'bpmn:Participant') || is(target, 'bpmn:Lane');
42093
42115
  }
42094
42116
 
42095
42117
  // disallow dropping boundary events which cannot replace with intermediate event
42096
- if (is$1(element, 'bpmn:BoundaryEvent') && !isDroppableBoundaryEvent(element)) {
42118
+ if (is(element, 'bpmn:BoundaryEvent') && !isDroppableBoundaryEvent(element)) {
42097
42119
  return false;
42098
42120
  }
42099
42121
 
42100
42122
  // drop flow elements onto flow element containers
42101
42123
  // and participants
42102
- if (is$1(element, 'bpmn:FlowElement') && !is$1(element, 'bpmn:DataStoreReference')) {
42103
- if (is$1(target, 'bpmn:FlowElementsContainer')) {
42124
+ if (is(element, 'bpmn:FlowElement') && !is(element, 'bpmn:DataStoreReference')) {
42125
+ if (is(target, 'bpmn:FlowElementsContainer')) {
42104
42126
  return isExpanded(target);
42105
42127
  }
42106
42128
 
@@ -42108,7 +42130,7 @@
42108
42130
  }
42109
42131
 
42110
42132
  // disallow dropping data store reference if there is no process to append to
42111
- if (is$1(element, 'bpmn:DataStoreReference') && is$1(target, 'bpmn:Collaboration')) {
42133
+ if (is(element, 'bpmn:DataStoreReference') && is(target, 'bpmn:Collaboration')) {
42112
42134
  return some(getBusinessObject(target).get('participants'), function(participant) {
42113
42135
  return !!participant.get('processRef');
42114
42136
  });
@@ -42127,8 +42149,8 @@
42127
42149
  'bpmn:SubProcess' ]);
42128
42150
  }
42129
42151
 
42130
- if (is$1(element, 'bpmn:MessageFlow')) {
42131
- return is$1(target, 'bpmn:Collaboration')
42152
+ if (is(element, 'bpmn:MessageFlow')) {
42153
+ return is(target, 'bpmn:Collaboration')
42132
42154
  || element.source.parent == target
42133
42155
  || element.target.parent == target;
42134
42156
  }
@@ -42153,7 +42175,7 @@
42153
42175
  * @return {boolean}
42154
42176
  */
42155
42177
  function isBoundaryEvent(element) {
42156
- return !isLabel(element) && is$1(element, 'bpmn:BoundaryEvent');
42178
+ return !isLabel(element) && is(element, 'bpmn:BoundaryEvent');
42157
42179
  }
42158
42180
 
42159
42181
  /**
@@ -42162,7 +42184,7 @@
42162
42184
  * @return {boolean}
42163
42185
  */
42164
42186
  function isLane(element) {
42165
- return is$1(element, 'bpmn:Lane');
42187
+ return is(element, 'bpmn:Lane');
42166
42188
  }
42167
42189
 
42168
42190
  /**
@@ -42177,12 +42199,12 @@
42177
42199
  return true;
42178
42200
  }
42179
42201
 
42180
- if (is$1(element, 'bpmn:IntermediateThrowEvent') && hasNoEventDefinition(element)) {
42202
+ if (is(element, 'bpmn:IntermediateThrowEvent') && hasNoEventDefinition(element)) {
42181
42203
  return true;
42182
42204
  }
42183
42205
 
42184
42206
  return (
42185
- is$1(element, 'bpmn:IntermediateCatchEvent') &&
42207
+ is(element, 'bpmn:IntermediateCatchEvent') &&
42186
42208
  hasCommonBoundaryIntermediateEventDefinition(element)
42187
42209
  );
42188
42210
  }
@@ -42231,9 +42253,9 @@
42231
42253
  */
42232
42254
  function isReceiveTaskAfterEventBasedGateway(element) {
42233
42255
  return (
42234
- is$1(element, 'bpmn:ReceiveTask') &&
42256
+ is(element, 'bpmn:ReceiveTask') &&
42235
42257
  find(element.incoming, function(incoming) {
42236
- return is$1(incoming.source, 'bpmn:EventBasedGateway');
42258
+ return is(incoming.source, 'bpmn:EventBasedGateway');
42237
42259
  })
42238
42260
  );
42239
42261
  }
@@ -42277,7 +42299,7 @@
42277
42299
  }
42278
42300
 
42279
42301
  // only allow drop on non compensation activities
42280
- if (!is$1(target, 'bpmn:Activity') || isForCompensation(target)) {
42302
+ if (!is(target, 'bpmn:Activity') || isForCompensation(target)) {
42281
42303
  return false;
42282
42304
  }
42283
42305
 
@@ -42331,7 +42353,7 @@
42331
42353
 
42332
42354
  if (!isEventSubProcess(target)) {
42333
42355
 
42334
- if (is$1(element, 'bpmn:StartEvent') &&
42356
+ if (is(element, 'bpmn:StartEvent') &&
42335
42357
  element.type !== 'label' &&
42336
42358
  canDrop(element, target)) {
42337
42359
 
@@ -42364,7 +42386,7 @@
42364
42386
  'bpmn:SignalEventDefinition',
42365
42387
  'bpmn:ConditionalEventDefinition'
42366
42388
  ]) &&
42367
- is$1(target, 'bpmn:SubProcess')) {
42389
+ is(target, 'bpmn:SubProcess')) {
42368
42390
  canExecute.replacements.push({
42369
42391
  oldElementId: element.id,
42370
42392
  newElementType: 'bpmn:StartEvent'
@@ -42373,18 +42395,18 @@
42373
42395
  }
42374
42396
  }
42375
42397
 
42376
- if (!is$1(target, 'bpmn:Transaction')) {
42398
+ if (!is(target, 'bpmn:Transaction')) {
42377
42399
  if (hasEventDefinition$1(element, 'bpmn:CancelEventDefinition') &&
42378
42400
  element.type !== 'label') {
42379
42401
 
42380
- if (is$1(element, 'bpmn:EndEvent') && canDrop(element, target)) {
42402
+ if (is(element, 'bpmn:EndEvent') && canDrop(element, target)) {
42381
42403
  canExecute.replacements.push({
42382
42404
  oldElementId: element.id,
42383
42405
  newElementType: 'bpmn:EndEvent'
42384
42406
  });
42385
42407
  }
42386
42408
 
42387
- if (is$1(element, 'bpmn:BoundaryEvent') && canAttach(element, target, null, position)) {
42409
+ if (is(element, 'bpmn:BoundaryEvent') && canAttach(element, target, null, position)) {
42388
42410
  canExecute.replacements.push({
42389
42411
  oldElementId: element.id,
42390
42412
  newElementType: 'bpmn:BoundaryEvent'
@@ -42458,7 +42480,7 @@
42458
42480
  * @return {boolean}
42459
42481
  */
42460
42482
  function canResize(shape, newBounds) {
42461
- if (is$1(shape, 'bpmn:SubProcess')) {
42483
+ if (is(shape, 'bpmn:SubProcess')) {
42462
42484
  return (
42463
42485
  isExpanded(shape) && (
42464
42486
  !newBounds || (newBounds.width >= 100 && newBounds.height >= 80)
@@ -42466,11 +42488,11 @@
42466
42488
  );
42467
42489
  }
42468
42490
 
42469
- if (is$1(shape, 'bpmn:Lane')) {
42491
+ if (is(shape, 'bpmn:Lane')) {
42470
42492
  return true;
42471
42493
  }
42472
42494
 
42473
- if (is$1(shape, 'bpmn:Participant')) {
42495
+ if (is(shape, 'bpmn:Participant')) {
42474
42496
  return true;
42475
42497
  }
42476
42498
 
@@ -42537,7 +42559,7 @@
42537
42559
  return (
42538
42560
  isSameScope(source, target) &&
42539
42561
  isCompensationBoundary(source) &&
42540
- is$1(target, 'bpmn:Activity') &&
42562
+ is(target, 'bpmn:Activity') &&
42541
42563
  !isHostOfElement(target, source) &&
42542
42564
  !isEventSubProcess(target)
42543
42565
  );
@@ -42574,7 +42596,7 @@
42574
42596
  return isSequenceFlowSource(source) &&
42575
42597
  isSequenceFlowTarget(target) &&
42576
42598
  isSameScope(source, target) &&
42577
- !(is$1(source, 'bpmn:EventBasedGateway') && !isEventBasedTarget(target));
42599
+ !(is(source, 'bpmn:EventBasedGateway') && !isEventBasedTarget(target));
42578
42600
  }
42579
42601
 
42580
42602
  /**
@@ -42627,8 +42649,8 @@
42627
42649
  return (
42628
42650
  isAny(connection, [ 'bpmn:SequenceFlow', 'bpmn:MessageFlow' ]) &&
42629
42651
  !isLabel(connection) &&
42630
- is$1(shape, 'bpmn:FlowNode') &&
42631
- !is$1(shape, 'bpmn:BoundaryEvent') &&
42652
+ is(shape, 'bpmn:FlowNode') &&
42653
+ !is(shape, 'bpmn:BoundaryEvent') &&
42632
42654
  canDrop(shape, connection.parent));
42633
42655
  }
42634
42656
 
@@ -42653,7 +42675,7 @@
42653
42675
  return true;
42654
42676
  }
42655
42677
 
42656
- if (is$1(element, 'bpmn:Lane') && !includes$5(elements, element.parent)) {
42678
+ if (is(element, 'bpmn:Lane') && !includes$5(elements, element.parent)) {
42657
42679
  return false;
42658
42680
  }
42659
42681
 
@@ -42955,7 +42977,7 @@
42955
42977
  this.getOrdering = function(element, newParent) {
42956
42978
 
42957
42979
  // render labels and text annotations always on top
42958
- if (element.labelTarget || is$1(element, 'bpmn:TextAnnotation')) {
42980
+ if (element.labelTarget || is(element, 'bpmn:TextAnnotation')) {
42959
42981
  return {
42960
42982
  parent: canvas.findRoot(newParent) || canvas.getRootElement(),
42961
42983
  index: -1
@@ -44344,7 +44366,7 @@
44344
44366
  var descriptor = context.descriptor,
44345
44367
  element = context.element;
44346
44368
 
44347
- if (!is$1(element, 'bpmn:Participant')) {
44369
+ if (!is(element, 'bpmn:Participant')) {
44348
44370
  return;
44349
44371
  }
44350
44372
 
@@ -44386,7 +44408,7 @@
44386
44408
  'moddleCopy'
44387
44409
  ];
44388
44410
 
44389
- var DISALLOWED_PROPERTIES = [
44411
+ const DISALLOWED_PROPERTIES = [
44390
44412
  'artifacts',
44391
44413
  'dataInputAssociations',
44392
44414
  'dataOutputAssociations',
@@ -44398,6 +44420,13 @@
44398
44420
  'categoryValue'
44399
44421
  ];
44400
44422
 
44423
+ const ALLOWED_REFERENCES = [
44424
+ 'errorRef',
44425
+ 'escalationRef',
44426
+ 'messageRef',
44427
+ 'signalRef'
44428
+ ];
44429
+
44401
44430
  /**
44402
44431
  * @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
44403
44432
  * @typedef {import('../modeling/BpmnFactory').default} BpmnFactory
@@ -44419,25 +44448,35 @@
44419
44448
  this._moddle = moddle;
44420
44449
 
44421
44450
  // copy extension elements last
44422
- eventBus.on('moddleCopy.canCopyProperties', function(context) {
44423
- var propertyNames = context.propertyNames;
44451
+ eventBus.on('moddleCopy.canCopyProperties', (context) => {
44452
+ const { propertyNames } = context;
44424
44453
 
44425
44454
  if (!propertyNames || !propertyNames.length) {
44426
44455
  return;
44427
44456
  }
44428
44457
 
44429
- return sortBy(propertyNames, function(propertyName) {
44458
+ return sortBy(propertyNames, (propertyName) => {
44430
44459
  return propertyName === 'extensionElements';
44431
44460
  });
44432
44461
  });
44433
44462
 
44434
44463
  // default check whether property can be copied
44435
- eventBus.on('moddleCopy.canCopyProperty', function(context) {
44436
- var parent = context.parent,
44437
- parentDescriptor = isObject(parent) && parent.$descriptor,
44438
- propertyName = context.propertyName;
44464
+ eventBus.on('moddleCopy.canCopyProperty', (context) => {
44465
+ const {
44466
+ parent,
44467
+ property,
44468
+ propertyName
44469
+ } = context;
44439
44470
 
44440
- if (propertyName && DISALLOWED_PROPERTIES.indexOf(propertyName) !== -1) {
44471
+ const parentDescriptor = isObject(parent) && parent.$descriptor;
44472
+
44473
+ if (propertyName && ALLOWED_REFERENCES.includes(propertyName)) {
44474
+
44475
+ // allow copying reference
44476
+ return property;
44477
+ }
44478
+
44479
+ if (propertyName && DISALLOWED_PROPERTIES.includes(propertyName)) {
44441
44480
 
44442
44481
  // disallow copying property
44443
44482
  return false;
@@ -44453,8 +44492,8 @@
44453
44492
  });
44454
44493
 
44455
44494
  // do NOT allow to copy empty extension elements
44456
- eventBus.on('moddleCopy.canSetCopiedProperty', function(context) {
44457
- var property = context.property;
44495
+ eventBus.on('moddleCopy.canSetCopiedProperty', (context) => {
44496
+ const { property } = context;
44458
44497
 
44459
44498
  if (is(property, 'bpmn:ExtensionElements') && (!property.values || !property.values.length)) {
44460
44499
 
@@ -44481,15 +44520,13 @@
44481
44520
  * @return {ModdleElement}
44482
44521
  */
44483
44522
  ModdleCopy.prototype.copyElement = function(sourceElement, targetElement, propertyNames, clone = false) {
44484
- var self = this;
44485
-
44486
44523
  if (propertyNames && !isArray$3(propertyNames)) {
44487
44524
  propertyNames = [ propertyNames ];
44488
44525
  }
44489
44526
 
44490
44527
  propertyNames = propertyNames || getPropertyNames(sourceElement.$descriptor);
44491
44528
 
44492
- var canCopyProperties = this._eventBus.fire('moddleCopy.canCopyProperties', {
44529
+ const canCopyProperties = this._eventBus.fire('moddleCopy.canCopyProperties', {
44493
44530
  propertyNames: propertyNames,
44494
44531
  sourceElement: sourceElement,
44495
44532
  targetElement: targetElement,
@@ -44505,20 +44542,20 @@
44505
44542
  }
44506
44543
 
44507
44544
  // copy properties
44508
- forEach$1(propertyNames, function(propertyName) {
44509
- var sourceProperty;
44545
+ forEach$1(propertyNames, (propertyName) => {
44546
+ let sourceProperty;
44510
44547
 
44511
44548
  if (has$1(sourceElement, propertyName)) {
44512
44549
  sourceProperty = sourceElement.get(propertyName);
44513
44550
  }
44514
44551
 
44515
- var copiedProperty = self.copyProperty(sourceProperty, targetElement, propertyName, clone);
44552
+ const copiedProperty = this.copyProperty(sourceProperty, targetElement, propertyName, clone);
44516
44553
 
44517
44554
  if (!isDefined(copiedProperty)) {
44518
44555
  return;
44519
44556
  }
44520
44557
 
44521
- var canSetProperty = self._eventBus.fire('moddleCopy.canSetCopiedProperty', {
44558
+ const canSetProperty = this._eventBus.fire('moddleCopy.canSetCopiedProperty', {
44522
44559
  parent: targetElement,
44523
44560
  property: copiedProperty,
44524
44561
  propertyName: propertyName
@@ -44547,10 +44584,9 @@
44547
44584
  * @return {any}
44548
44585
  */
44549
44586
  ModdleCopy.prototype.copyProperty = function(property, parent, propertyName, clone = false) {
44550
- var self = this;
44551
44587
 
44552
44588
  // allow others to copy property
44553
- var copiedProperty = this._eventBus.fire('moddleCopy.canCopyProperty', {
44589
+ let copiedProperty = this._eventBus.fire('moddleCopy.canCopyProperty', {
44554
44590
  parent: parent,
44555
44591
  property: property,
44556
44592
  propertyName: propertyName,
@@ -44570,7 +44606,7 @@
44570
44606
  return copiedProperty;
44571
44607
  }
44572
44608
 
44573
- var propertyDescriptor = this._moddle.getPropertyDescriptor(parent, propertyName);
44609
+ const propertyDescriptor = this._moddle.getPropertyDescriptor(parent, propertyName);
44574
44610
 
44575
44611
  // do NOT copy references
44576
44612
  if (propertyDescriptor.isReference) {
@@ -44584,10 +44620,10 @@
44584
44620
 
44585
44621
  // copy arrays
44586
44622
  if (isArray$3(property)) {
44587
- return reduce(property, function(childProperties, childProperty) {
44623
+ return reduce(property, (childProperties, childProperty) => {
44588
44624
 
44589
44625
  // recursion
44590
- copiedProperty = self.copyProperty(childProperty, parent, propertyName, clone);
44626
+ const copiedProperty = this.copyProperty(childProperty, parent, propertyName, clone);
44591
44627
 
44592
44628
  // copying might NOT be allowed
44593
44629
  if (copiedProperty) {
@@ -44604,12 +44640,12 @@
44604
44640
  return;
44605
44641
  }
44606
44642
 
44607
- copiedProperty = self._bpmnFactory.create(property.$type);
44643
+ copiedProperty = this._bpmnFactory.create(property.$type);
44608
44644
 
44609
44645
  copiedProperty.$parent = parent;
44610
44646
 
44611
44647
  // recursion
44612
- copiedProperty = self.copyElement(property, copiedProperty, null, clone);
44648
+ copiedProperty = this.copyElement(property, copiedProperty, null, clone);
44613
44649
 
44614
44650
  return copiedProperty;
44615
44651
  }
@@ -44636,7 +44672,7 @@
44636
44672
  // helpers //////////
44637
44673
 
44638
44674
  function getPropertyNames(descriptor, keepDefaultProperties) {
44639
- return reduce(descriptor.properties, function(properties, property) {
44675
+ return reduce(descriptor.properties, (properties, property) => {
44640
44676
 
44641
44677
  if (keepDefaultProperties && property.default) {
44642
44678
  return properties;
@@ -44646,10 +44682,6 @@
44646
44682
  }, []);
44647
44683
  }
44648
44684
 
44649
- function is(element, type) {
44650
- return element && isFunction(element.$instanceOf) && element.$instanceOf(type);
44651
- }
44652
-
44653
44685
  var CopyPasteModule = {
44654
44686
  __depends__: [
44655
44687
  CopyPasteModule$1
@@ -44982,7 +45014,7 @@
44982
45014
  }
44983
45015
  }
44984
45016
 
44985
- if (is$1(oldBusinessObject, 'bpmn:Activity')) {
45017
+ if (is(oldBusinessObject, 'bpmn:Activity')) {
44986
45018
 
44987
45019
  if (isSubProcess(oldBusinessObject)) {
44988
45020
 
@@ -45010,7 +45042,7 @@
45010
45042
  // TODO: need also to respect min/max Size
45011
45043
  // copy size, from an expanded subprocess to an expanded alternative subprocess
45012
45044
  // except bpmn:Task, because Task is always expanded
45013
- if ((isExpanded(element) && !is$1(oldBusinessObject, 'bpmn:Task')) && newElement.isExpanded) {
45045
+ if ((isExpanded(element) && !is(oldBusinessObject, 'bpmn:Task')) && newElement.isExpanded) {
45014
45046
  newElement.width = element.width;
45015
45047
  newElement.height = element.height;
45016
45048
  }
@@ -45022,7 +45054,7 @@
45022
45054
  }
45023
45055
 
45024
45056
  // transform collapsed/expanded pools
45025
- if (is$1(oldBusinessObject, 'bpmn:Participant')) {
45057
+ if (is(oldBusinessObject, 'bpmn:Participant')) {
45026
45058
 
45027
45059
  // create expanded pool
45028
45060
  if (targetElement.isExpanded === true) {
@@ -45070,8 +45102,8 @@
45070
45102
 
45071
45103
  if (
45072
45104
  targetElement.host &&
45073
- !is$1(oldBusinessObject, 'bpmn:BoundaryEvent') &&
45074
- is$1(newBusinessObject, 'bpmn:BoundaryEvent')
45105
+ !is(oldBusinessObject, 'bpmn:BoundaryEvent') &&
45106
+ is(newBusinessObject, 'bpmn:BoundaryEvent')
45075
45107
  ) {
45076
45108
  newElement.host = targetElement.host;
45077
45109
  }
@@ -45106,7 +45138,7 @@
45106
45138
  * @return {boolean}
45107
45139
  */
45108
45140
  function isSubProcess(businessObject) {
45109
- return is$1(businessObject, 'bpmn:SubProcess');
45141
+ return is(businessObject, 'bpmn:SubProcess');
45110
45142
  }
45111
45143
 
45112
45144
  /**
@@ -45119,7 +45151,7 @@
45119
45151
  var businessObject = getBusinessObject(element);
45120
45152
 
45121
45153
  return type && businessObject.get('eventDefinitions').some(function(definition) {
45122
- return is$1(definition, type);
45154
+ return is(definition, type);
45123
45155
  });
45124
45156
  }
45125
45157
 
@@ -46368,7 +46400,7 @@
46368
46400
  enclosedArtifacts = values(
46369
46401
  getEnclosedElements(
46370
46402
  canvasRoot.children.filter(
46371
- (child) => is$1(child, 'bpmn:Artifact')
46403
+ (child) => is(child, 'bpmn:Artifact')
46372
46404
  ),
46373
46405
  getBBox(spaceRoot)
46374
46406
  )
@@ -46386,7 +46418,7 @@
46386
46418
  // * empty vertical pools (horizontally)
46387
46419
  adjustments.resizingShapes = adjustments.resizingShapes.filter(function(shape) {
46388
46420
 
46389
- if (is$1(shape, 'bpmn:TextAnnotation')) {
46421
+ if (is(shape, 'bpmn:TextAnnotation')) {
46390
46422
  return false;
46391
46423
  }
46392
46424
 
@@ -46406,7 +46438,7 @@
46406
46438
  // helpers ///////////
46407
46439
 
46408
46440
  function isCollapsedPool$1(shape) {
46409
- return is$1(shape, 'bpmn:Participant') && !getBusinessObject(shape).processRef;
46441
+ return is(shape, 'bpmn:Participant') && !getBusinessObject(shape).processRef;
46410
46442
  }
46411
46443
 
46412
46444
  var SpaceToolModule = {
@@ -47573,11 +47605,11 @@
47573
47605
  // bpmn:SequenceFlow -> SequenceFlow_ID
47574
47606
  var prefix;
47575
47607
 
47576
- if (is$1(element, 'bpmn:Activity')) {
47608
+ if (is(element, 'bpmn:Activity')) {
47577
47609
  prefix = 'Activity';
47578
- } else if (is$1(element, 'bpmn:Event')) {
47610
+ } else if (is(element, 'bpmn:Event')) {
47579
47611
  prefix = 'Event';
47580
- } else if (is$1(element, 'bpmn:Gateway')) {
47612
+ } else if (is(element, 'bpmn:Gateway')) {
47581
47613
  prefix = 'Gateway';
47582
47614
  } else if (isAny(element, [ 'bpmn:SequenceFlow', 'bpmn:MessageFlow' ])) {
47583
47615
  prefix = 'Flow';
@@ -47795,7 +47827,7 @@
47795
47827
  children = oldRoot.children;
47796
47828
 
47797
47829
  forEach$1(children, function(child) {
47798
- if (is$1(child, 'bpmn:BaseElement')) {
47830
+ if (is(child, 'bpmn:BaseElement')) {
47799
47831
  self.updateParent(child);
47800
47832
  }
47801
47833
  });
@@ -47809,7 +47841,7 @@
47809
47841
  function updateBounds(e) {
47810
47842
  var shape = e.context.shape;
47811
47843
 
47812
- if (!is$1(shape, 'bpmn:BaseElement')) {
47844
+ if (!is(shape, 'bpmn:BaseElement')) {
47813
47845
  return;
47814
47846
  }
47815
47847
 
@@ -48003,9 +48035,9 @@
48003
48035
  }
48004
48036
 
48005
48037
  // data stores in collaborations are handled separately by DataStoreBehavior
48006
- if (is$1(element, 'bpmn:DataStoreReference') &&
48038
+ if (is(element, 'bpmn:DataStoreReference') &&
48007
48039
  element.parent &&
48008
- is$1(element.parent, 'bpmn:Collaboration')) {
48040
+ is(element.parent, 'bpmn:Collaboration')) {
48009
48041
  return;
48010
48042
  }
48011
48043
 
@@ -48016,11 +48048,11 @@
48016
48048
  parentBusinessObject = parentShape && parentShape.businessObject,
48017
48049
  parentDi = getDi(parentShape);
48018
48050
 
48019
- if (is$1(element, 'bpmn:FlowNode')) {
48051
+ if (is(element, 'bpmn:FlowNode')) {
48020
48052
  this.updateFlowNodeRefs(businessObject, parentBusinessObject, oldParent && oldParent.businessObject);
48021
48053
  }
48022
48054
 
48023
- if (is$1(element, 'bpmn:DataOutputAssociation')) {
48055
+ if (is(element, 'bpmn:DataOutputAssociation')) {
48024
48056
  if (element.source) {
48025
48057
  parentBusinessObject = element.source.businessObject;
48026
48058
  } else {
@@ -48028,7 +48060,7 @@
48028
48060
  }
48029
48061
  }
48030
48062
 
48031
- if (is$1(element, 'bpmn:DataInputAssociation')) {
48063
+ if (is(element, 'bpmn:DataInputAssociation')) {
48032
48064
  if (element.target) {
48033
48065
  parentBusinessObject = element.target.businessObject;
48034
48066
  } else {
@@ -48038,7 +48070,7 @@
48038
48070
 
48039
48071
  this.updateSemanticParent(businessObject, parentBusinessObject);
48040
48072
 
48041
- if (is$1(element, 'bpmn:DataObjectReference') && businessObject.dataObjectRef) {
48073
+ if (is(element, 'bpmn:DataObjectReference') && businessObject.dataObjectRef) {
48042
48074
  this.updateSemanticParent(businessObject.dataObjectRef, parentBusinessObject);
48043
48075
  }
48044
48076
 
@@ -48093,12 +48125,12 @@
48093
48125
 
48094
48126
  var oldRefs, newRefs;
48095
48127
 
48096
- if (is$1 (oldContainment, 'bpmn:Lane')) {
48128
+ if (is (oldContainment, 'bpmn:Lane')) {
48097
48129
  oldRefs = oldContainment.get('flowNodeRef');
48098
48130
  remove(oldRefs, businessObject);
48099
48131
  }
48100
48132
 
48101
- if (is$1(newContainment, 'bpmn:Lane')) {
48133
+ if (is(newContainment, 'bpmn:Lane')) {
48102
48134
  newRefs = newContainment.get('flowNodeRef');
48103
48135
  add(newRefs, businessObject);
48104
48136
  }
@@ -48130,7 +48162,7 @@
48130
48162
  */
48131
48163
  BpmnUpdater.prototype.updateDiParent = function(di, parentDi) {
48132
48164
 
48133
- if (parentDi && !is$1(parentDi, 'bpmndi:BPMNPlane')) {
48165
+ if (parentDi && !is(parentDi, 'bpmndi:BPMNPlane')) {
48134
48166
  parentDi = parentDi.$parent;
48135
48167
  }
48136
48168
 
@@ -48155,7 +48187,7 @@
48155
48187
  * @return {ModdleElement}
48156
48188
  */
48157
48189
  function getDefinitions(element) {
48158
- while (element && !is$1(element, 'bpmn:Definitions')) {
48190
+ while (element && !is(element, 'bpmn:Definitions')) {
48159
48191
  element = element.$parent;
48160
48192
  }
48161
48193
 
@@ -48172,7 +48204,7 @@
48172
48204
  var laneSet, laneSets;
48173
48205
 
48174
48206
  // bpmn:Lane
48175
- if (is$1(container, 'bpmn:Lane')) {
48207
+ if (is(container, 'bpmn:Lane')) {
48176
48208
  laneSet = container.childLaneSet;
48177
48209
 
48178
48210
  if (!laneSet) {
@@ -48185,7 +48217,7 @@
48185
48217
  }
48186
48218
 
48187
48219
  // bpmn:Participant
48188
- if (is$1(container, 'bpmn:Participant')) {
48220
+ if (is(container, 'bpmn:Participant')) {
48189
48221
  container = container.processRef;
48190
48222
  }
48191
48223
 
@@ -48215,9 +48247,9 @@
48215
48247
  return;
48216
48248
  }
48217
48249
 
48218
- if (is$1(businessObject, 'bpmn:DataInput') || is$1(businessObject, 'bpmn:DataOutput')) {
48250
+ if (is(businessObject, 'bpmn:DataInput') || is(businessObject, 'bpmn:DataOutput')) {
48219
48251
 
48220
- if (is$1(newParent, 'bpmn:Participant') && 'processRef' in newParent) {
48252
+ if (is(newParent, 'bpmn:Participant') && 'processRef' in newParent) {
48221
48253
  newParent = newParent.processRef;
48222
48254
  }
48223
48255
 
@@ -48227,39 +48259,39 @@
48227
48259
  }
48228
48260
  }
48229
48261
 
48230
- if (is$1(businessObject, 'bpmn:Lane')) {
48262
+ if (is(businessObject, 'bpmn:Lane')) {
48231
48263
 
48232
48264
  if (newParent) {
48233
48265
  newParent = this.getLaneSet(newParent);
48234
48266
  }
48235
48267
 
48236
48268
  containment = 'lanes';
48237
- } else if (is$1(businessObject, 'bpmn:FlowElement')) {
48269
+ } else if (is(businessObject, 'bpmn:FlowElement')) {
48238
48270
 
48239
48271
  if (newParent) {
48240
48272
 
48241
- if (is$1(newParent, 'bpmn:Participant')) {
48273
+ if (is(newParent, 'bpmn:Participant')) {
48242
48274
  newParent = newParent.processRef;
48243
- } else if (is$1(newParent, 'bpmn:Lane')) {
48275
+ } else if (is(newParent, 'bpmn:Lane')) {
48244
48276
  do {
48245
48277
 
48246
48278
  // unwrap Lane -> LaneSet -> (Lane | FlowElementsContainer)
48247
48279
  newParent = newParent.$parent.$parent;
48248
- } while (is$1(newParent, 'bpmn:Lane'));
48280
+ } while (is(newParent, 'bpmn:Lane'));
48249
48281
 
48250
48282
  }
48251
48283
  }
48252
48284
 
48253
48285
  containment = 'flowElements';
48254
48286
 
48255
- } else if (is$1(businessObject, 'bpmn:Artifact')) {
48287
+ } else if (is(businessObject, 'bpmn:Artifact')) {
48256
48288
 
48257
48289
  while (newParent &&
48258
- !is$1(newParent, 'bpmn:Process') &&
48259
- !is$1(newParent, 'bpmn:SubProcess') &&
48260
- !is$1(newParent, 'bpmn:Collaboration')) {
48290
+ !is(newParent, 'bpmn:Process') &&
48291
+ !is(newParent, 'bpmn:SubProcess') &&
48292
+ !is(newParent, 'bpmn:Collaboration')) {
48261
48293
 
48262
- if (is$1(newParent, 'bpmn:Participant')) {
48294
+ if (is(newParent, 'bpmn:Participant')) {
48263
48295
  newParent = newParent.processRef;
48264
48296
  break;
48265
48297
  } else {
@@ -48268,9 +48300,9 @@
48268
48300
  }
48269
48301
 
48270
48302
  containment = 'artifacts';
48271
- } else if (is$1(businessObject, 'bpmn:MessageFlow')) {
48303
+ } else if (is(businessObject, 'bpmn:MessageFlow')) {
48272
48304
  containment = 'messageFlows';
48273
- } else if (is$1(businessObject, 'bpmn:Participant')) {
48305
+ } else if (is(businessObject, 'bpmn:Participant')) {
48274
48306
  containment = 'participants';
48275
48307
 
48276
48308
  // make sure the participants process is properly attached / detached
@@ -48292,9 +48324,9 @@
48292
48324
  process.$parent = definitions;
48293
48325
  }
48294
48326
  }
48295
- } else if (is$1(businessObject, 'bpmn:DataOutputAssociation')) {
48327
+ } else if (is(businessObject, 'bpmn:DataOutputAssociation')) {
48296
48328
  containment = 'dataOutputAssociations';
48297
- } else if (is$1(businessObject, 'bpmn:DataInputAssociation')) {
48329
+ } else if (is(businessObject, 'bpmn:DataInputAssociation')) {
48298
48330
  containment = 'dataInputAssociations';
48299
48331
  }
48300
48332
 
@@ -48363,9 +48395,9 @@
48363
48395
  newTargetBo = getBusinessObject(connection.target),
48364
48396
  visualParent;
48365
48397
 
48366
- if (!is$1(businessObject, 'bpmn:DataAssociation')) {
48398
+ if (!is(businessObject, 'bpmn:DataAssociation')) {
48367
48399
 
48368
- var inverseSet = is$1(businessObject, 'bpmn:SequenceFlow');
48400
+ var inverseSet = is(businessObject, 'bpmn:SequenceFlow');
48369
48401
 
48370
48402
  if (businessObject.sourceRef !== newSourceBo) {
48371
48403
  if (inverseSet) {
@@ -48390,7 +48422,7 @@
48390
48422
 
48391
48423
  businessObject.targetRef = newTargetBo;
48392
48424
  }
48393
- } else if (is$1(businessObject, 'bpmn:DataInputAssociation')) {
48425
+ } else if (is(businessObject, 'bpmn:DataInputAssociation')) {
48394
48426
 
48395
48427
  // handle obnoxious isMsome sourceRef
48396
48428
  businessObject.get('sourceRef')[0] = newSourceBo;
@@ -48398,7 +48430,7 @@
48398
48430
  visualParent = context.parent || context.newParent || newTargetBo;
48399
48431
 
48400
48432
  this.updateSemanticParent(businessObject, newTargetBo, visualParent);
48401
- } else if (is$1(businessObject, 'bpmn:DataOutputAssociation')) {
48433
+ } else if (is(businessObject, 'bpmn:DataOutputAssociation')) {
48402
48434
  visualParent = context.parent || context.newParent || newSourceBo;
48403
48435
 
48404
48436
  this.updateSemanticParent(businessObject, newSourceBo, visualParent);
@@ -48438,7 +48470,7 @@
48438
48470
  var context = event.context,
48439
48471
  element = context.shape || context.connection || context.element;
48440
48472
 
48441
- if (is$1(element, 'bpmn:BaseElement')) {
48473
+ if (is(element, 'bpmn:BaseElement')) {
48442
48474
  fn(event);
48443
48475
  }
48444
48476
  };
@@ -48452,7 +48484,7 @@
48452
48484
  * @return {ModdleElement|undefined}
48453
48485
  */
48454
48486
  function getEmbeddedLabelBounds(shape) {
48455
- if (!is$1(shape, 'bpmn:Activity')) {
48487
+ if (!is(shape, 'bpmn:Activity')) {
48456
48488
  return;
48457
48489
  }
48458
48490
 
@@ -48622,7 +48654,7 @@
48622
48654
  }
48623
48655
  }
48624
48656
 
48625
- if (is$1(businessObject, 'bpmn:Group')) {
48657
+ if (is(businessObject, 'bpmn:Group')) {
48626
48658
  attrs = assign$1({
48627
48659
  isFrame: true
48628
48660
  }, attrs);
@@ -48643,11 +48675,11 @@
48643
48675
  attrs = applyAttribute(di, attrs, 'isHorizontal');
48644
48676
  }
48645
48677
 
48646
- if (is$1(businessObject, 'bpmn:SubProcess')) {
48678
+ if (is(businessObject, 'bpmn:SubProcess')) {
48647
48679
  attrs.collapsed = !isExpanded(businessObject, di);
48648
48680
  }
48649
48681
 
48650
- if (is$1(businessObject, 'bpmn:ExclusiveGateway')) {
48682
+ if (is(businessObject, 'bpmn:ExclusiveGateway')) {
48651
48683
  if (has$1(di, 'isMarkerVisible')) {
48652
48684
  if (di.isMarkerVisible === undefined) {
48653
48685
  di.isMarkerVisible = false;
@@ -48711,7 +48743,7 @@
48711
48743
  var bo = getBusinessObject(element);
48712
48744
  di = di || getDi(element);
48713
48745
 
48714
- if (is$1(bo, 'bpmn:SubProcess')) {
48746
+ if (is(bo, 'bpmn:SubProcess')) {
48715
48747
  if (isExpanded(bo, di)) {
48716
48748
  return { width: 350, height: 200 };
48717
48749
  } else {
@@ -48719,19 +48751,19 @@
48719
48751
  }
48720
48752
  }
48721
48753
 
48722
- if (is$1(bo, 'bpmn:Task')) {
48754
+ if (is(bo, 'bpmn:Task')) {
48723
48755
  return { width: 100, height: 80 };
48724
48756
  }
48725
48757
 
48726
- if (is$1(bo, 'bpmn:Gateway')) {
48758
+ if (is(bo, 'bpmn:Gateway')) {
48727
48759
  return { width: 50, height: 50 };
48728
48760
  }
48729
48761
 
48730
- if (is$1(bo, 'bpmn:Event')) {
48762
+ if (is(bo, 'bpmn:Event')) {
48731
48763
  return { width: 36, height: 36 };
48732
48764
  }
48733
48765
 
48734
- if (is$1(bo, 'bpmn:Participant')) {
48766
+ if (is(bo, 'bpmn:Participant')) {
48735
48767
  var isHorizontalPool = di.isHorizontal === undefined || di.isHorizontal === true;
48736
48768
  if (isExpanded(bo, di)) {
48737
48769
  if (isHorizontalPool) {
@@ -48746,23 +48778,23 @@
48746
48778
  }
48747
48779
  }
48748
48780
 
48749
- if (is$1(bo, 'bpmn:Lane')) {
48781
+ if (is(bo, 'bpmn:Lane')) {
48750
48782
  return { width: 400, height: 100 };
48751
48783
  }
48752
48784
 
48753
- if (is$1(bo, 'bpmn:DataObjectReference')) {
48785
+ if (is(bo, 'bpmn:DataObjectReference')) {
48754
48786
  return { width: 36, height: 50 };
48755
48787
  }
48756
48788
 
48757
- if (is$1(bo, 'bpmn:DataStoreReference')) {
48789
+ if (is(bo, 'bpmn:DataStoreReference')) {
48758
48790
  return { width: 50, height: 50 };
48759
48791
  }
48760
48792
 
48761
- if (is$1(bo, 'bpmn:TextAnnotation')) {
48793
+ if (is(bo, 'bpmn:TextAnnotation')) {
48762
48794
  return { width: 100, height: 30 };
48763
48795
  }
48764
48796
 
48765
- if (is$1(bo, 'bpmn:Group')) {
48797
+ if (is(bo, 'bpmn:Group')) {
48766
48798
  return { width: 300, height: 300 };
48767
48799
  }
48768
48800
 
@@ -51664,7 +51696,7 @@
51664
51696
 
51665
51697
  var elementRegistry = this._elementRegistry;
51666
51698
 
51667
- if (is$1(moddleElement, 'bpmn:DataObject')) {
51699
+ if (is(moddleElement, 'bpmn:DataObject')) {
51668
51700
  return getAllDataObjectReferences(moddleElement, elementRegistry);
51669
51701
  }
51670
51702
 
@@ -51690,7 +51722,7 @@
51690
51722
  function getAllDataObjectReferences(dataObject, elementRegistry) {
51691
51723
  return elementRegistry.filter(function(element) {
51692
51724
  return (
51693
- is$1(element, 'bpmn:DataObjectReference') &&
51725
+ is(element, 'bpmn:DataObjectReference') &&
51694
51726
  getBusinessObject(element).dataObjectRef === dataObject
51695
51727
  );
51696
51728
  });
@@ -52389,7 +52421,7 @@
52389
52421
  eachElement(lanesRoot, function(element) {
52390
52422
  allAffected.push(element);
52391
52423
 
52392
- if (is$1(element, 'bpmn:Lane') || is$1(element, 'bpmn:Participant')) {
52424
+ if (is(element, 'bpmn:Lane') || is(element, 'bpmn:Participant')) {
52393
52425
  allLanes.push(element);
52394
52426
  }
52395
52427
 
@@ -52532,7 +52564,7 @@
52532
52564
  }
52533
52565
 
52534
52566
  var children = root.children.filter(function(c) {
52535
- return is$1(c, 'bpmn:FlowNode');
52567
+ return is(c, 'bpmn:FlowNode');
52536
52568
  });
52537
52569
 
52538
52570
  children.forEach(addFlowNodeShape);
@@ -52914,7 +52946,7 @@
52914
52946
  hints = ctx.hints || {};
52915
52947
 
52916
52948
  // ignore internal labels for elements except text annotations
52917
- if (!isLabel(label) && !is$1(label, 'bpmn:TextAnnotation')) {
52949
+ if (!isLabel(label) && !is(label, 'bpmn:TextAnnotation')) {
52918
52950
  return;
52919
52951
  }
52920
52952
 
@@ -54158,8 +54190,8 @@
54158
54190
  connectionEnd = getConnectionDocking(waypoints && waypoints[ waypoints.length - 1 ], target);
54159
54191
  }
54160
54192
 
54161
- if (is$1(connection, 'bpmn:Association') ||
54162
- is$1(connection, 'bpmn:DataAssociation')) {
54193
+ if (is(connection, 'bpmn:Association') ||
54194
+ is(connection, 'bpmn:DataAssociation')) {
54163
54195
 
54164
54196
  if (waypoints && !isCompensationAssociation(source, target)) {
54165
54197
  return [].concat([ connectionStart ], waypoints.slice(1, -1), [ connectionEnd ]);
@@ -54168,15 +54200,15 @@
54168
54200
 
54169
54201
  var layout = isDirectionHorizontal(source, elementRegistry) ? PREFERRED_LAYOUTS_HORIZONTAL : PREFERRED_LAYOUTS_VERTICAL;
54170
54202
 
54171
- if (is$1(connection, 'bpmn:MessageFlow')) {
54203
+ if (is(connection, 'bpmn:MessageFlow')) {
54172
54204
  manhattanOptions = getMessageFlowManhattanOptions(source, target, layout);
54173
- } else if (is$1(connection, 'bpmn:SequenceFlow') || isCompensationAssociation(source, target)) {
54205
+ } else if (is(connection, 'bpmn:SequenceFlow') || isCompensationAssociation(source, target)) {
54174
54206
 
54175
54207
  if (source === target) {
54176
54208
  manhattanOptions = {
54177
54209
  preferredLayouts: getLoopPreferredLayout(source, connection, layout)
54178
54210
  };
54179
- } else if (is$1(source, 'bpmn:BoundaryEvent')) {
54211
+ } else if (is(source, 'bpmn:BoundaryEvent')) {
54180
54212
  manhattanOptions = {
54181
54213
  preferredLayouts: getBoundaryEventPreferredLayouts(source, target, connectionEnd, layout)
54182
54214
  };
@@ -54185,11 +54217,11 @@
54185
54217
  preferredLayouts: layout.subProcess,
54186
54218
  preserveDocking: getSubProcessPreserveDocking(source)
54187
54219
  };
54188
- } else if (is$1(source, 'bpmn:Gateway')) {
54220
+ } else if (is(source, 'bpmn:Gateway')) {
54189
54221
  manhattanOptions = {
54190
54222
  preferredLayouts: layout.fromGateway
54191
54223
  };
54192
- } else if (is$1(target, 'bpmn:Gateway')) {
54224
+ } else if (is(target, 'bpmn:Gateway')) {
54193
54225
  manhattanOptions = {
54194
54226
  preferredLayouts: layout.toGateway
54195
54227
  };
@@ -54235,11 +54267,11 @@
54235
54267
  function getMessageFlowPreserveDocking(source, target) {
54236
54268
 
54237
54269
  // (1) docking element connected to participant has precedence
54238
- if (is$1(target, 'bpmn:Participant')) {
54270
+ if (is(target, 'bpmn:Participant')) {
54239
54271
  return 'source';
54240
54272
  }
54241
54273
 
54242
- if (is$1(source, 'bpmn:Participant')) {
54274
+ if (is(source, 'bpmn:Participant')) {
54243
54275
  return 'target';
54244
54276
  }
54245
54277
 
@@ -54253,11 +54285,11 @@
54253
54285
  }
54254
54286
 
54255
54287
  // (3) docking event has precedence
54256
- if (is$1(target, 'bpmn:Event')) {
54288
+ if (is(target, 'bpmn:Event')) {
54257
54289
  return 'target';
54258
54290
  }
54259
54291
 
54260
- if (is$1(source, 'bpmn:Event')) {
54292
+ if (is(source, 'bpmn:Event')) {
54261
54293
  return 'source';
54262
54294
  }
54263
54295
 
@@ -54273,13 +54305,13 @@
54273
54305
  }
54274
54306
 
54275
54307
  function isCompensationAssociation(source, target) {
54276
- return is$1(target, 'bpmn:Activity') &&
54277
- is$1(source, 'bpmn:BoundaryEvent') &&
54308
+ return is(target, 'bpmn:Activity') &&
54309
+ is(source, 'bpmn:BoundaryEvent') &&
54278
54310
  target.businessObject.isForCompensation;
54279
54311
  }
54280
54312
 
54281
54313
  function isExpandedSubProcess$1(element) {
54282
- return is$1(element, 'bpmn:SubProcess') && isExpanded(element);
54314
+ return is(element, 'bpmn:SubProcess') && isExpanded(element);
54283
54315
  }
54284
54316
 
54285
54317
  function isSame(a, b) {
@@ -56729,21 +56761,21 @@
56729
56761
 
56730
56762
  var differentType = isDifferentType(target);
56731
56763
 
56732
- if (is$1(businessObject, 'bpmn:DataObjectReference')) {
56764
+ if (is(businessObject, 'bpmn:DataObjectReference')) {
56733
56765
  return this._createEntries(target, DATA_OBJECT_REFERENCE);
56734
56766
  }
56735
56767
 
56736
- if (is$1(businessObject, 'bpmn:DataStoreReference') && !is$1(target.parent, 'bpmn:Collaboration')) {
56768
+ if (is(businessObject, 'bpmn:DataStoreReference') && !is(target.parent, 'bpmn:Collaboration')) {
56737
56769
  return this._createEntries(target, DATA_STORE_REFERENCE);
56738
56770
  }
56739
56771
 
56740
56772
  // typed start, intermediate, and end events
56741
- if (is$1(businessObject, 'bpmn:Event') && !is$1(businessObject, 'bpmn:BoundaryEvent')) {
56773
+ if (is(businessObject, 'bpmn:Event') && !is(businessObject, 'bpmn:BoundaryEvent')) {
56742
56774
  eventDefinitionType = businessObject.get('eventDefinitions')[0]?.$type;
56743
56775
 
56744
56776
  sameTypeEventOptions = TYPED_EVENT[eventDefinitionType] || [];
56745
56777
 
56746
- if (!isEventSubProcess(businessObject.$parent) && is$1(businessObject.$parent, 'bpmn:SubProcess')) {
56778
+ if (!isEventSubProcess(businessObject.$parent) && is(businessObject.$parent, 'bpmn:SubProcess')) {
56747
56779
  sameTypeEventOptions = filter(sameTypeEventOptions, function(option) {
56748
56780
  return option.target.type !== 'bpmn:StartEvent';
56749
56781
  });
@@ -56751,7 +56783,7 @@
56751
56783
  }
56752
56784
 
56753
56785
  // start events outside sub processes
56754
- if (is$1(businessObject, 'bpmn:StartEvent') && !is$1(businessObject.$parent, 'bpmn:SubProcess')) {
56786
+ if (is(businessObject, 'bpmn:StartEvent') && !is(businessObject.$parent, 'bpmn:SubProcess')) {
56755
56787
 
56756
56788
  filteredReplaceOptions = filter(
56757
56789
  START_EVENT.concat(sameTypeEventOptions),
@@ -56762,7 +56794,7 @@
56762
56794
  }
56763
56795
 
56764
56796
  // expanded/collapsed pools
56765
- if (is$1(businessObject, 'bpmn:Participant')) {
56797
+ if (is(businessObject, 'bpmn:Participant')) {
56766
56798
 
56767
56799
  filteredReplaceOptions = filter(PARTICIPANT, function(replaceOption) {
56768
56800
  return isExpanded(target) !== replaceOption.target.isExpanded;
@@ -56772,7 +56804,7 @@
56772
56804
  }
56773
56805
 
56774
56806
  // start events inside event sub processes
56775
- if (is$1(businessObject, 'bpmn:StartEvent') && isEventSubProcess(businessObject.$parent)) {
56807
+ if (is(businessObject, 'bpmn:StartEvent') && isEventSubProcess(businessObject.$parent)) {
56776
56808
  filteredReplaceOptions = filter(
56777
56809
  EVENT_SUB_PROCESS_START_EVENT.concat(sameTypeEventOptions), function(replaceOption) {
56778
56810
 
@@ -56792,8 +56824,8 @@
56792
56824
  }
56793
56825
 
56794
56826
  // start events inside sub processes
56795
- if (is$1(businessObject, 'bpmn:StartEvent') && !isEventSubProcess(businessObject.$parent)
56796
- && is$1(businessObject.$parent, 'bpmn:SubProcess')) {
56827
+ if (is(businessObject, 'bpmn:StartEvent') && !isEventSubProcess(businessObject.$parent)
56828
+ && is(businessObject.$parent, 'bpmn:SubProcess')) {
56797
56829
  filteredReplaceOptions = filter(
56798
56830
  START_EVENT_SUB_PROCESS.concat(sameTypeEventOptions),
56799
56831
  differentType
@@ -56803,13 +56835,13 @@
56803
56835
  }
56804
56836
 
56805
56837
  // end events
56806
- if (is$1(businessObject, 'bpmn:EndEvent')) {
56838
+ if (is(businessObject, 'bpmn:EndEvent')) {
56807
56839
 
56808
56840
  filteredReplaceOptions = filter(END_EVENT.concat(sameTypeEventOptions), function(replaceOption) {
56809
56841
  var target = replaceOption.target;
56810
56842
 
56811
56843
  // hide cancel end events outside transactions
56812
- if (target.eventDefinitionType == 'bpmn:CancelEventDefinition' && !is$1(businessObject.$parent, 'bpmn:Transaction')) {
56844
+ if (target.eventDefinitionType == 'bpmn:CancelEventDefinition' && !is(businessObject.$parent, 'bpmn:Transaction')) {
56813
56845
  return false;
56814
56846
  }
56815
56847
 
@@ -56820,14 +56852,14 @@
56820
56852
  }
56821
56853
 
56822
56854
  // boundary events
56823
- if (is$1(businessObject, 'bpmn:BoundaryEvent')) {
56855
+ if (is(businessObject, 'bpmn:BoundaryEvent')) {
56824
56856
 
56825
56857
  filteredReplaceOptions = filter(BOUNDARY_EVENT, function(replaceOption) {
56826
56858
 
56827
56859
  var target = replaceOption.target;
56828
56860
 
56829
56861
  if (target.eventDefinitionType == 'bpmn:CancelEventDefinition' &&
56830
- !is$1(businessObject.attachedToRef, 'bpmn:Transaction')) {
56862
+ !is(businessObject.attachedToRef, 'bpmn:Transaction')) {
56831
56863
  return false;
56832
56864
  }
56833
56865
  var cancelActivity = target.cancelActivity !== false;
@@ -56841,8 +56873,8 @@
56841
56873
  }
56842
56874
 
56843
56875
  // intermediate events
56844
- if (is$1(businessObject, 'bpmn:IntermediateCatchEvent') ||
56845
- is$1(businessObject, 'bpmn:IntermediateThrowEvent')) {
56876
+ if (is(businessObject, 'bpmn:IntermediateCatchEvent') ||
56877
+ is(businessObject, 'bpmn:IntermediateThrowEvent')) {
56846
56878
 
56847
56879
  filteredReplaceOptions = filter(
56848
56880
  INTERMEDIATE_EVENT.concat(sameTypeEventOptions),
@@ -56853,7 +56885,7 @@
56853
56885
  }
56854
56886
 
56855
56887
  // gateways
56856
- if (is$1(businessObject, 'bpmn:Gateway')) {
56888
+ if (is(businessObject, 'bpmn:Gateway')) {
56857
56889
 
56858
56890
  filteredReplaceOptions = filter(GATEWAY, differentType);
56859
56891
 
@@ -56861,7 +56893,7 @@
56861
56893
  }
56862
56894
 
56863
56895
  // transactions
56864
- if (is$1(businessObject, 'bpmn:Transaction')) {
56896
+ if (is(businessObject, 'bpmn:Transaction')) {
56865
56897
 
56866
56898
  filteredReplaceOptions = filter(TRANSACTION, differentType);
56867
56899
 
@@ -56877,7 +56909,7 @@
56877
56909
  }
56878
56910
 
56879
56911
  // expanded ad hoc sub processes
56880
- if (is$1(businessObject, 'bpmn:AdHocSubProcess') && isExpanded(target)) {
56912
+ if (is(businessObject, 'bpmn:AdHocSubProcess') && isExpanded(target)) {
56881
56913
 
56882
56914
  filteredReplaceOptions = filter(AD_HOC_SUBPROCESS_EXPANDED, differentType);
56883
56915
 
@@ -56885,7 +56917,7 @@
56885
56917
  }
56886
56918
 
56887
56919
  // expanded sub processes
56888
- if (is$1(businessObject, 'bpmn:SubProcess') && isExpanded(target)) {
56920
+ if (is(businessObject, 'bpmn:SubProcess') && isExpanded(target)) {
56889
56921
 
56890
56922
  filteredReplaceOptions = filter(SUBPROCESS_EXPANDED, differentType);
56891
56923
 
@@ -56893,7 +56925,7 @@
56893
56925
  }
56894
56926
 
56895
56927
  // collapsed sub process or collapsed ad hoc sub process
56896
- if (is$1(businessObject, 'bpmn:SubProcess') && !isExpanded(target)) {
56928
+ if (is(businessObject, 'bpmn:SubProcess') && !isExpanded(target)) {
56897
56929
 
56898
56930
  filteredReplaceOptions = filter(TASK, function(replaceOption) {
56899
56931
 
@@ -56908,12 +56940,12 @@
56908
56940
  }
56909
56941
 
56910
56942
  // sequence flows
56911
- if (is$1(businessObject, 'bpmn:SequenceFlow')) {
56943
+ if (is(businessObject, 'bpmn:SequenceFlow')) {
56912
56944
  return this._createSequenceFlowEntries(target, SEQUENCE_FLOW);
56913
56945
  }
56914
56946
 
56915
56947
  // flow nodes
56916
- if (is$1(businessObject, 'bpmn:FlowNode')) {
56948
+ if (is(businessObject, 'bpmn:FlowNode')) {
56917
56949
  filteredReplaceOptions = filter(TASK, differentType);
56918
56950
 
56919
56951
  return this._createEntries(target, filteredReplaceOptions);
@@ -56931,21 +56963,21 @@
56931
56963
 
56932
56964
  var headerEntries = {};
56933
56965
 
56934
- if (is$1(target, 'bpmn:Activity') && !isEventSubProcess(target)) {
56966
+ if (is(target, 'bpmn:Activity') && !isEventSubProcess(target)) {
56935
56967
  headerEntries = {
56936
56968
  ...headerEntries,
56937
56969
  ...this._getLoopCharacteristicsHeaderEntries(target)
56938
56970
  };
56939
56971
  }
56940
56972
 
56941
- if (is$1(target, 'bpmn:DataObjectReference')) {
56973
+ if (is(target, 'bpmn:DataObjectReference')) {
56942
56974
  headerEntries = {
56943
56975
  ...headerEntries,
56944
56976
  ...this._getCollectionHeaderEntries(target)
56945
56977
  };
56946
56978
  }
56947
56979
 
56948
- if (is$1(target, 'bpmn:Participant')) {
56980
+ if (is(target, 'bpmn:Participant')) {
56949
56981
  headerEntries = {
56950
56982
  ...headerEntries,
56951
56983
  ...this._getParticipantMultiplicityHeaderEntries(target)
@@ -57007,10 +57039,10 @@
57007
57039
  switch (replaceOption.actionName) {
57008
57040
  case 'replace-with-default-flow':
57009
57041
  if (businessObject.sourceRef.default !== businessObject &&
57010
- (is$1(businessObject.sourceRef, 'bpmn:ExclusiveGateway') ||
57011
- is$1(businessObject.sourceRef, 'bpmn:InclusiveGateway') ||
57012
- is$1(businessObject.sourceRef, 'bpmn:ComplexGateway') ||
57013
- is$1(businessObject.sourceRef, 'bpmn:Activity'))) {
57042
+ (is(businessObject.sourceRef, 'bpmn:ExclusiveGateway') ||
57043
+ is(businessObject.sourceRef, 'bpmn:InclusiveGateway') ||
57044
+ is(businessObject.sourceRef, 'bpmn:ComplexGateway') ||
57045
+ is(businessObject.sourceRef, 'bpmn:Activity'))) {
57014
57046
 
57015
57047
  entries = {
57016
57048
  ...entries,
@@ -57021,7 +57053,7 @@
57021
57053
  }
57022
57054
  break;
57023
57055
  case 'replace-with-conditional-flow':
57024
- if (!businessObject.conditionExpression && is$1(businessObject.sourceRef, 'bpmn:Activity')) {
57056
+ if (!businessObject.conditionExpression && is(businessObject.sourceRef, 'bpmn:Activity')) {
57025
57057
 
57026
57058
  entries = {
57027
57059
  ...entries,
@@ -57036,7 +57068,7 @@
57036
57068
  default:
57037
57069
 
57038
57070
  // conditional flow -> sequence flow
57039
- if (is$1(businessObject.sourceRef, 'bpmn:Activity') && businessObject.conditionExpression) {
57071
+ if (is(businessObject.sourceRef, 'bpmn:Activity') && businessObject.conditionExpression) {
57040
57072
  entries = {
57041
57073
  ...entries,
57042
57074
  [ replaceOption.actionName ]: self._createEntry(replaceOption, target, function() {
@@ -57046,10 +57078,10 @@
57046
57078
  }
57047
57079
 
57048
57080
  // default flow -> sequence flow
57049
- if ((is$1(businessObject.sourceRef, 'bpmn:ExclusiveGateway') ||
57050
- is$1(businessObject.sourceRef, 'bpmn:InclusiveGateway') ||
57051
- is$1(businessObject.sourceRef, 'bpmn:ComplexGateway') ||
57052
- is$1(businessObject.sourceRef, 'bpmn:Activity')) &&
57081
+ if ((is(businessObject.sourceRef, 'bpmn:ExclusiveGateway') ||
57082
+ is(businessObject.sourceRef, 'bpmn:InclusiveGateway') ||
57083
+ is(businessObject.sourceRef, 'bpmn:ComplexGateway') ||
57084
+ is(businessObject.sourceRef, 'bpmn:Activity')) &&
57053
57085
  businessObject.sourceRef.default === businessObject) {
57054
57086
  entries = {
57055
57087
  ...entries,
@@ -57116,7 +57148,7 @@
57116
57148
 
57117
57149
  var loopCharacteristics = target.businessObject.get('loopCharacteristics');
57118
57150
 
57119
- if (loopCharacteristics && is$1(loopCharacteristics, entry.options.loopCharacteristics)) {
57151
+ if (loopCharacteristics && is(loopCharacteristics, entry.options.loopCharacteristics)) {
57120
57152
  self._modeling.updateModdleProperties(target, loopCharacteristics, { isSequential: entry.options.isSequential });
57121
57153
  } else {
57122
57154
  loopCharacteristics = self._moddle.create(entry.options.loopCharacteristics, {
@@ -57256,7 +57288,7 @@
57256
57288
 
57257
57289
  const interruptingProperty = getInterruptingProperty(element);
57258
57290
 
57259
- const icon = is$1(element, 'bpmn:BoundaryEvent') ? Icons['intermediate-event-non-interrupting'] : Icons['start-event-non-interrupting'];
57291
+ const icon = is(element, 'bpmn:BoundaryEvent') ? Icons['intermediate-event-non-interrupting'] : Icons['start-event-non-interrupting'];
57260
57292
 
57261
57293
  const isNonInterrupting = !businessObject[interruptingProperty];
57262
57294
 
@@ -57630,9 +57662,9 @@
57630
57662
 
57631
57663
  }
57632
57664
 
57633
- if (is$1(businessObject, 'bpmn:FlowNode')) {
57665
+ if (is(businessObject, 'bpmn:FlowNode')) {
57634
57666
 
57635
- if (is$1(businessObject, 'bpmn:EventBasedGateway')) {
57667
+ if (is(businessObject, 'bpmn:EventBasedGateway')) {
57636
57668
 
57637
57669
  assign$1(actions, {
57638
57670
  'append.receive-task': appendAction(
@@ -57678,7 +57710,7 @@
57678
57710
  }
57679
57711
  )
57680
57712
  });
57681
- } else if (!is$1(businessObject, 'bpmn:EndEvent') &&
57713
+ } else if (!is(businessObject, 'bpmn:EndEvent') &&
57682
57714
  !businessObject.isForCompensation &&
57683
57715
  !isEventType(businessObject, 'bpmn:IntermediateThrowEvent', 'bpmn:LinkEventDefinition') &&
57684
57716
  !isEventSubProcess(businessObject)) {
@@ -57734,7 +57766,7 @@
57734
57766
  });
57735
57767
  }
57736
57768
 
57737
- if (is$1(businessObject, 'bpmn:SequenceFlow')) {
57769
+ if (is(businessObject, 'bpmn:SequenceFlow')) {
57738
57770
  assign$1(actions, {
57739
57771
  'append.text-annotation': appendAction(
57740
57772
  'bpmn:TextAnnotation',
@@ -57744,7 +57776,7 @@
57744
57776
  });
57745
57777
  }
57746
57778
 
57747
- if (is$1(businessObject, 'bpmn:MessageFlow')) {
57779
+ if (is(businessObject, 'bpmn:MessageFlow')) {
57748
57780
  assign$1(actions, {
57749
57781
  'append.text-annotation': appendAction(
57750
57782
  'bpmn:TextAnnotation',
@@ -57780,7 +57812,7 @@
57780
57812
  });
57781
57813
  }
57782
57814
 
57783
- if (is$1(businessObject, 'bpmn:TextAnnotation')) {
57815
+ if (is(businessObject, 'bpmn:TextAnnotation')) {
57784
57816
  assign$1(actions, {
57785
57817
  'connect': {
57786
57818
  group: 'connect',
@@ -57808,7 +57840,7 @@
57808
57840
  });
57809
57841
  }
57810
57842
 
57811
- if (is$1(businessObject, 'bpmn:Group')) {
57843
+ if (is(businessObject, 'bpmn:Group')) {
57812
57844
  assign$1(actions, {
57813
57845
  'append.text-annotation': appendAction(
57814
57846
  'bpmn:TextAnnotation',
@@ -58638,7 +58670,7 @@
58638
58670
 
58639
58671
  if (currentSelection.length) {
58640
58672
  aligneableElements = filter(currentSelection, function(element) {
58641
- return !is$1(element, 'bpmn:Lane');
58673
+ return !is(element, 'bpmn:Lane');
58642
58674
  });
58643
58675
 
58644
58676
  alignElements.trigger(aligneableElements, type);
@@ -58678,13 +58710,13 @@
58678
58710
  boundingBox,
58679
58711
  elements;
58680
58712
 
58681
- if (is$1(rootElement, 'bpmn:Collaboration')) {
58713
+ if (is(rootElement, 'bpmn:Collaboration')) {
58682
58714
  elements = elementRegistry.filter(function(element) {
58683
- return is$1(element.parent, 'bpmn:Collaboration');
58715
+ return is(element.parent, 'bpmn:Collaboration');
58684
58716
  });
58685
58717
  } else {
58686
58718
  elements = elementRegistry.filter(function(element) {
58687
- return element !== rootElement && !is$1(element.parent, 'bpmn:SubProcess');
58719
+ return element !== rootElement && !is(element.parent, 'bpmn:SubProcess');
58688
58720
  });
58689
58721
  }
58690
58722
 
@@ -59381,7 +59413,7 @@
59381
59413
  options.max = position[ axis ];
59382
59414
  }
59383
59415
 
59384
- if (is$1(shape, 'bpmn:TextAnnotation')) {
59416
+ if (is(shape, 'bpmn:TextAnnotation')) {
59385
59417
 
59386
59418
  if (isHorizontal$1(axis)) {
59387
59419
  options.offset = -shape.width / 2;
@@ -59439,8 +59471,8 @@
59439
59471
  shape = context.shape,
59440
59472
  rootElement = canvas.getRootElement();
59441
59473
 
59442
- if (!is$1(shape, 'bpmn:Participant') ||
59443
- !is$1(rootElement, 'bpmn:Process') ||
59474
+ if (!is(shape, 'bpmn:Participant') ||
59475
+ !is(rootElement, 'bpmn:Process') ||
59444
59476
  !rootElement.children.length) {
59445
59477
  return;
59446
59478
  }
@@ -59660,15 +59692,15 @@
59660
59692
  var element = context.element,
59661
59693
  gfx = context.gfx;
59662
59694
 
59663
- if (is$1(element, 'bpmn:Lane')) {
59695
+ if (is(element, 'bpmn:Lane')) {
59664
59696
  return self._createParticipantHit(element, gfx);
59665
- } else if (is$1(element, 'bpmn:Participant')) {
59697
+ } else if (is(element, 'bpmn:Participant')) {
59666
59698
  if (isExpanded(element)) {
59667
59699
  return self._createParticipantHit(element, gfx);
59668
59700
  } else {
59669
59701
  return self._createDefaultHit(element, gfx);
59670
59702
  }
59671
- } else if (is$1(element, 'bpmn:SubProcess')) {
59703
+ } else if (is(element, 'bpmn:SubProcess')) {
59672
59704
  if (isExpanded(element)) {
59673
59705
  return self._createSubProcessHit(element, gfx);
59674
59706
  } else {
@@ -60911,7 +60943,7 @@
60911
60943
  }
60912
60944
 
60913
60945
  // text annotations
60914
- if (is$1(element, 'bpmn:TextAnnotation')) {
60946
+ if (is(element, 'bpmn:TextAnnotation')) {
60915
60947
  assign$1(options, {
60916
60948
  resizable: true,
60917
60949
  autoResize: true
@@ -60972,7 +61004,7 @@
60972
61004
  };
60973
61005
 
60974
61006
  // adjust for expanded pools AND lanes
60975
- if (is$1(element, 'bpmn:Lane') || isExpandedPool(element)) {
61007
+ if (is(element, 'bpmn:Lane') || isExpandedPool(element)) {
60976
61008
  var isHorizontalLane = isHorizontal$3(element);
60977
61009
 
60978
61010
  var laneBounds = isHorizontalLane ? {
@@ -61118,7 +61150,7 @@
61118
61150
  }
61119
61151
 
61120
61152
  // text annotations
61121
- if (is$1(element, 'bpmn:TextAnnotation')) {
61153
+ if (is(element, 'bpmn:TextAnnotation')) {
61122
61154
  assign$1(bounds, {
61123
61155
  width: bbox.width,
61124
61156
  height: bbox.height,
@@ -61148,7 +61180,7 @@
61148
61180
  var newBounds,
61149
61181
  bbox;
61150
61182
 
61151
- if (is$1(element, 'bpmn:TextAnnotation')) {
61183
+ if (is(element, 'bpmn:TextAnnotation')) {
61152
61184
 
61153
61185
  bbox = this._canvas.getAbsoluteBBox(element);
61154
61186
 
@@ -61172,19 +61204,19 @@
61172
61204
  // helpers //////////
61173
61205
 
61174
61206
  function isCollapsedSubProcess(element) {
61175
- return is$1(element, 'bpmn:SubProcess') && !isExpanded(element);
61207
+ return is(element, 'bpmn:SubProcess') && !isExpanded(element);
61176
61208
  }
61177
61209
 
61178
61210
  function isExpandedSubProcess(element) {
61179
- return is$1(element, 'bpmn:SubProcess') && isExpanded(element);
61211
+ return is(element, 'bpmn:SubProcess') && isExpanded(element);
61180
61212
  }
61181
61213
 
61182
61214
  function isCollapsedPool(element) {
61183
- return is$1(element, 'bpmn:Participant') && !isExpanded(element);
61215
+ return is(element, 'bpmn:Participant') && !isExpanded(element);
61184
61216
  }
61185
61217
 
61186
61218
  function isExpandedPool(element) {
61187
- return is$1(element, 'bpmn:Participant') && isExpanded(element);
61219
+ return is(element, 'bpmn:Participant') && isExpanded(element);
61188
61220
  }
61189
61221
 
61190
61222
  function isEmptyText(label) {
@@ -61219,7 +61251,7 @@
61219
61251
  element = activeProvider.element.label || activeProvider.element;
61220
61252
 
61221
61253
  // text annotation
61222
- if (is$1(element, 'bpmn:TextAnnotation')) {
61254
+ if (is(element, 'bpmn:TextAnnotation')) {
61223
61255
  absoluteElementBBox = canvas.getAbsoluteBBox(element);
61224
61256
 
61225
61257
  gfx = create$1('g');
@@ -61250,14 +61282,14 @@
61250
61282
  translate$1(gfx, element.x, element.y);
61251
61283
  }
61252
61284
 
61253
- if (is$1(element, 'bpmn:TextAnnotation') ||
61285
+ if (is(element, 'bpmn:TextAnnotation') ||
61254
61286
  element.labelTarget) {
61255
61287
  canvas.addMarker(element, MARKER_HIDDEN);
61256
- } else if (is$1(element, 'bpmn:Task') ||
61257
- is$1(element, 'bpmn:CallActivity') ||
61258
- is$1(element, 'bpmn:SubProcess') ||
61259
- is$1(element, 'bpmn:Participant') ||
61260
- is$1(element, 'bpmn:Lane')) {
61288
+ } else if (is(element, 'bpmn:Task') ||
61289
+ is(element, 'bpmn:CallActivity') ||
61290
+ is(element, 'bpmn:SubProcess') ||
61291
+ is(element, 'bpmn:Participant') ||
61292
+ is(element, 'bpmn:Lane')) {
61261
61293
  canvas.addMarker(element, MARKER_LABEL_HIDDEN);
61262
61294
  }
61263
61295
  });
@@ -61265,7 +61297,7 @@
61265
61297
  eventBus.on('directEditing.resize', function(context) {
61266
61298
 
61267
61299
  // text annotation
61268
- if (is$1(element, 'bpmn:TextAnnotation')) {
61300
+ if (is(element, 'bpmn:TextAnnotation')) {
61269
61301
  var height = context.height,
61270
61302
  dy = context.dy;
61271
61303
 
@@ -61756,10 +61788,10 @@
61756
61788
  shape = context.shape,
61757
61789
  target = context.target;
61758
61790
 
61759
- if (is$1(target, 'bpmn:Collaboration')) {
61760
- if (is$1(shape, 'bpmn:FlowNode')) {
61791
+ if (is(target, 'bpmn:Collaboration')) {
61792
+ if (is(shape, 'bpmn:FlowNode')) {
61761
61793
  showError(event, translate(COLLAB_ERR_MSG));
61762
- } else if (is$1(shape, 'bpmn:DataObjectReference')) {
61794
+ } else if (is(shape, 'bpmn:DataObjectReference')) {
61763
61795
  showError(event, translate(DATA_OBJECT_ERR_MSG));
61764
61796
  }
61765
61797
  }
@@ -64172,19 +64204,19 @@
64172
64204
  }
64173
64205
 
64174
64206
  // snap source and target
64175
- if (is$1(source, 'bpmn:BoundaryEvent') && target === source.host) {
64207
+ if (is(source, 'bpmn:BoundaryEvent') && target === source.host) {
64176
64208
  snapBoundaryEventLoop(event);
64177
64209
  }
64178
64210
 
64179
64211
  } else if (isType(canExecute, 'bpmn:MessageFlow')) {
64180
64212
 
64181
- if (is$1(start, 'bpmn:Event')) {
64213
+ if (is(start, 'bpmn:Event')) {
64182
64214
 
64183
64215
  // snap start
64184
64216
  context.connectionStart = mid$2(start);
64185
64217
  }
64186
64218
 
64187
- if (is$1(hover, 'bpmn:Event')) {
64219
+ if (is(hover, 'bpmn:Event')) {
64188
64220
 
64189
64221
  // snap hover
64190
64222
  snapToPosition(event, mid$2(hover));
@@ -64315,7 +64347,7 @@
64315
64347
  * @return {number}
64316
64348
  */
64317
64349
  function getTargetBoundsPadding(target) {
64318
- if (is$1(target, 'bpmn:Task')) {
64350
+ if (is(target, 'bpmn:Task')) {
64319
64351
  return TASK_BOUNDS_PADDING;
64320
64352
  } else {
64321
64353
  return TARGET_BOUNDS_PADDING;
@@ -64814,7 +64846,7 @@
64814
64846
  snapContext.setSnapOrigin(connection.id + '-docking', getDockingSnapOrigin(docking, isMove, event));
64815
64847
  });
64816
64848
 
64817
- if (is$1(shape, 'bpmn:Participant')) {
64849
+ if (is(shape, 'bpmn:Participant')) {
64818
64850
 
64819
64851
  // snap to borders with higher priority
64820
64852
  snapContext.setSnapLocations([ 'top-left', 'bottom-right', 'mid' ]);
@@ -64876,7 +64908,7 @@
64876
64908
  });
64877
64909
 
64878
64910
  // add sequence flow parents as snap targets
64879
- if (is$1(target, 'bpmn:SequenceFlow')) {
64911
+ if (is(target, 'bpmn:SequenceFlow')) {
64880
64912
  snapPoints = this.addSnapTargetPoints(snapPoints, shape, target.parent);
64881
64913
  }
64882
64914
 
@@ -64894,7 +64926,7 @@
64894
64926
  .filter(function(snapTarget) {
64895
64927
 
64896
64928
  // do not snap to lanes
64897
- return !is$1(snapTarget, 'bpmn:Lane');
64929
+ return !is(snapTarget, 'bpmn:Lane');
64898
64930
  });
64899
64931
  };
64900
64932
 
@@ -64941,7 +64973,7 @@
64941
64973
  */
64942
64974
  function areAll(elements, type) {
64943
64975
  return elements.every(function(el) {
64944
- return is$1(el, type);
64976
+ return is(el, type);
64945
64977
  });
64946
64978
  }
64947
64979
 
@@ -64949,11 +64981,11 @@
64949
64981
  * @param {Element} element
64950
64982
  */
64951
64983
  function isContainer(element) {
64952
- if (is$1(element, 'bpmn:SubProcess') && isExpanded(element)) {
64984
+ if (is(element, 'bpmn:SubProcess') && isExpanded(element)) {
64953
64985
  return true;
64954
64986
  }
64955
64987
 
64956
- return is$1(element, 'bpmn:Participant');
64988
+ return is(element, 'bpmn:Participant');
64957
64989
  }
64958
64990
 
64959
64991
  /**
@@ -66056,7 +66088,7 @@
66056
66088
  return;
66057
66089
  }
66058
66090
 
66059
- if (is$1(element, 'bpmn:Gateway')) {
66091
+ if (is(element, 'bpmn:Gateway')) {
66060
66092
  outline = create$1('rect');
66061
66093
 
66062
66094
  assign$1(outline.style, {
@@ -66084,7 +66116,7 @@
66084
66116
  height: element.height + DEFAULT_OFFSET * 2
66085
66117
  }, OUTLINE_STYLE));
66086
66118
 
66087
- } else if (is$1(element, 'bpmn:EndEvent')) {
66119
+ } else if (is(element, 'bpmn:EndEvent')) {
66088
66120
 
66089
66121
  outline = create$1('circle');
66090
66122
 
@@ -66097,7 +66129,7 @@
66097
66129
  r: element.width / 2 + DEFAULT_OFFSET + 1
66098
66130
  }, OUTLINE_STYLE));
66099
66131
 
66100
- } else if (is$1(element, 'bpmn:Event')) {
66132
+ } else if (is(element, 'bpmn:Event')) {
66101
66133
  outline = create$1('circle');
66102
66134
 
66103
66135
  attr(outline, assign$1({
@@ -66106,7 +66138,7 @@
66106
66138
  r: element.width / 2 + DEFAULT_OFFSET
66107
66139
  }, OUTLINE_STYLE));
66108
66140
 
66109
- } else if (is$1(element, 'bpmn:DataObjectReference') && isStandardSize(element, 'bpmn:DataObjectReference')) {
66141
+ } else if (is(element, 'bpmn:DataObjectReference') && isStandardSize(element, 'bpmn:DataObjectReference')) {
66110
66142
 
66111
66143
  outline = createPath(
66112
66144
  DATA_OBJECT_REFERENCE_OUTLINE_PATH,
@@ -66114,7 +66146,7 @@
66114
66146
  OUTLINE_STYLE
66115
66147
  );
66116
66148
 
66117
- } else if (is$1(element, 'bpmn:DataStoreReference') && isStandardSize(element, 'bpmn:DataStoreReference')) {
66149
+ } else if (is(element, 'bpmn:DataStoreReference') && isStandardSize(element, 'bpmn:DataStoreReference')) {
66118
66150
 
66119
66151
  outline = createPath(
66120
66152
  DATA_STORE_REFERENCE_OUTLINE_PATH,