camunda-bpmn-js 0.13.0-alpha.5 → 0.13.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -2
- package/dist/assets/properties-panel copy.css +877 -0
- package/dist/assets/properties-panel.css +0 -20
- package/dist/base-modeler.development.js +791 -176
- package/dist/base-modeler.production.min.js +4 -4
- package/dist/camunda-cloud-modeler.development.js +1175 -540
- package/dist/camunda-cloud-modeler.production.min.js +2 -2
- package/dist/camunda-platform-modeler.development.js +960 -444
- package/dist/camunda-platform-modeler.production.min.js +2 -2
- package/lib/camunda-cloud/features/modeling/behavior/CreateZeebeCallActivityBehavior.js +17 -5
- package/package.json +3 -3
- package/dist/assets/bpmn-font/bpmn-codes.css +0 -108
- package/dist/assets/bpmn-font/bpmn-embedded.css +0 -161
- package/dist/assets/bpmn-font/bpmn.css +0 -164
- package/dist/assets/bpmn-font/bpmn.eot +0 -0
- package/dist/assets/bpmn-font/bpmn.svg +0 -224
- package/dist/assets/bpmn-font/bpmn.ttf +0 -0
- package/dist/assets/bpmn-font/bpmn.woff +0 -0
- package/dist/assets/bpmn-font/bpmn.woff2 +0 -0
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
7
7
|
* Licensed under the MIT license */
|
|
8
|
-
var Ya=n((function(e){!function(t,n,i,r){var o,a=["","webkit","Moz","MS","ms","o"],s=n.createElement("div"),p=Math.round,l=Math.abs,c=Date.now;function u(e,t,n){return setTimeout(v(e,n),t)}function d(e,t,n){return!!Array.isArray(e)&&(h(e,n[t],n),!0)}function h(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==r)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function m(e,n,i){var r="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=t.console&&(t.console.warn||t.console.log);return o&&o.call(t.console,r,i),e.apply(this,arguments)}}o="function"!=typeof Object.assign?function(e){if(e===r||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==r&&null!==i)for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t}:Object.assign;var f=m((function(e,t,n){for(var i=Object.keys(t),o=0;o<i.length;)(!n||n&&e[i[o]]===r)&&(e[i[o]]=t[i[o]]),o++;return e}),"extend","Use `assign`."),y=m((function(e,t){return f(e,t,!0)}),"merge","Use `assign`.");function g(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&o(i,n)}function v(e,t){return function(){return e.apply(t,arguments)}}function b(e,t){return"function"==typeof e?e.apply(t&&t[0]||r,t):e}function x(e,t){return e===r?t:e}function w(e,t,n){h(O(t),(function(t){e.addEventListener(t,n,!1)}))}function _(e,t,n){h(O(t),(function(t){e.removeEventListener(t,n,!1)}))}function E(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function P(e,t){return e.indexOf(t)>-1}function O(e){return e.trim().split(/\s+/g)}function S(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function k(e){return Array.prototype.slice.call(e,0)}function C(e,t,n){for(var i=[],r=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];S(r,a)<0&&i.push(e[o]),r[o]=a,o++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}function M(e,t){for(var n,i,o=t[0].toUpperCase()+t.slice(1),s=0;s<a.length;){if((i=(n=a[s])?n+o:t)in e)return i;s++}return r}var T=1;function A(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}var R="ontouchstart"in t,z=M(t,"PointerEvent")!==r,D=R&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),j="touch",B="mouse",N=24,L=["x","y"],I=["clientX","clientY"];function $(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){b(e.options.enable,[e])&&n.handler(t)},this.init()}function F(e,t,n){var i=n.pointers.length,o=n.changedPointers.length,a=1&t&&i-o==0,s=12&t&&i-o==0;n.isFirst=!!a,n.isFinal=!!s,a&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,o=i.length;n.firstInput||(n.firstInput=V(t));o>1&&!n.firstMultiple?n.firstMultiple=V(t):1===o&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,p=s?s.center:a.center,u=t.center=H(i);t.timeStamp=c(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=W(p,u),t.distance=G(p,u),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(r=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y});t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}(n,t),t.offsetDirection=U(t.deltaX,t.deltaY);var d=q(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=d.x,t.overallVelocityY=d.y,t.overallVelocity=l(d.x)>l(d.y)?d.x:d.y,t.scale=s?(h=s.pointers,m=i,G(m[0],m[1],I)/G(h[0],h[1],I)):1,t.rotation=s?function(e,t){return W(t[1],t[0],I)+W(e[1],e[0],I)}(s.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,o,a,s=e.lastInterval||t,p=t.timeStamp-s.timeStamp;if(8!=t.eventType&&(p>25||s.velocity===r)){var c=t.deltaX-s.deltaX,u=t.deltaY-s.deltaY,d=q(p,c,u);i=d.x,o=d.y,n=l(d.x)>l(d.y)?d.x:d.y,a=U(c,u),e.lastInterval=t}else n=s.velocity,i=s.velocityX,o=s.velocityY,a=s.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=a}(n,t);var h,m;var f=e.element;E(t.srcEvent.target,f)&&(f=t.srcEvent.target);t.target=f}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function V(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:p(e.pointers[n].clientX),clientY:p(e.pointers[n].clientY)},n++;return{timeStamp:c(),pointers:t,center:H(t),deltaX:e.deltaX,deltaY:e.deltaY}}function H(e){var t=e.length;if(1===t)return{x:p(e[0].clientX),y:p(e[0].clientY)};for(var n=0,i=0,r=0;r<t;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:p(n/t),y:p(i/t)}}function q(e,t,n){return{x:t/e||0,y:n/e||0}}function U(e,t){return e===t?1:l(e)>=l(t)?e<0?2:4:t<0?8:16}function G(e,t,n){n||(n=L);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function W(e,t,n){n||(n=L);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}$.prototype={handler:function(){},init:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(A(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&_(this.element,this.evEl,this.domHandler),this.evTarget&&_(this.target,this.evTarget,this.domHandler),this.evWin&&_(A(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4},Y="mousedown",X="mousemove mouseup";function Z(){this.evEl=Y,this.evWin=X,this.pressed=!1,$.apply(this,arguments)}g(Z,$,{handler:function(e){var t=K[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:B,srcEvent:e}))}});var J={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Q={2:j,3:"pen",4:B,5:"kinect"},ee="pointerdown",te="pointermove pointerup pointercancel";function ne(){this.evEl=ee,this.evWin=te,$.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(ee="MSPointerDown",te="MSPointerMove MSPointerUp MSPointerCancel"),g(ne,$,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=J[i],o=Q[e.pointerType]||e.pointerType,a=o==j,s=S(t,e.pointerId,"pointerId");1&r&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&r&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var ie={touchstart:1,touchmove:2,touchend:4,touchcancel:8},re="touchstart",oe="touchstart touchmove touchend touchcancel";function ae(){this.evTarget=re,this.evWin=oe,this.started=!1,$.apply(this,arguments)}function se(e,t){var n=k(e.touches),i=k(e.changedTouches);return 12&t&&(n=C(n.concat(i),"identifier",!0)),[n,i]}g(ae,$,{handler:function(e){var t=ie[e.type];if(1===t&&(this.started=!0),this.started){var n=se.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:j,srcEvent:e})}}});var pe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},le="touchstart touchmove touchend touchcancel";function ce(){this.evTarget=le,this.targetIds={},$.apply(this,arguments)}function ue(e,t){var n=k(e.touches),i=this.targetIds;if(3&t&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=k(e.changedTouches),s=[],p=this.target;if(o=n.filter((function(e){return E(e.target,p)})),1===t)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),12&t&&delete i[a[r].identifier],r++;return s.length?[C(o.concat(s),"identifier",!0),s]:void 0}g(ce,$,{handler:function(e){var t=pe[e.type],n=ue.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:j,srcEvent:e})}});function de(){$.apply(this,arguments);var e=v(this.handler,this);this.touch=new ce(this.manager,e),this.mouse=new Z(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function he(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,me.call(this,t)):12&e&&me.call(this,t)}function me(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)}),2500)}}function fe(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(t-r.x),a=Math.abs(n-r.y);if(o<=25&&a<=25)return!0}return!1}g(de,$,{handler:function(e,t,n){var i=n.pointerType==j,r=n.pointerType==B;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)he.call(this,t,n);else if(r&&fe.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ye=M(s.style,"touchAction"),ge=ye!==r,ve="compute",be="auto",xe="manipulation",we="none",_e="pan-x",Ee="pan-y",Pe=function(){if(!ge)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){e[i]=!n||t.CSS.supports("touch-action",i)})),e}();function Oe(e,t){this.manager=e,this.set(t)}Oe.prototype={set:function(e){e==ve&&(e=this.compute()),ge&&this.manager.element.style&&Pe[e]&&(this.manager.element.style[ye]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return h(this.manager.recognizers,(function(t){b(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(P(e,we))return we;var t=P(e,_e),n=P(e,Ee);if(t&&n)return we;if(t||n)return t?_e:Ee;if(P(e,xe))return xe;return be}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,r=P(i,we)&&!Pe.none,o=P(i,Ee)&&!Pe["pan-y"],a=P(i,_e)&&!Pe["pan-x"];if(r){var s=1===e.pointers.length,p=e.distance<2,l=e.deltaTime<250;if(s&&p&&l)return}if(!a||!o)return r||o&&6&n||a&&n&N?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Se=32;function ke(e){this.options=o({},this.defaults,e||{}),this.id=T++,this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Ce(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Me(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Te(e,t){var n=t.manager;return n?n.get(e):e}function Ae(){ke.apply(this,arguments)}function Re(){Ae.apply(this,arguments),this.pX=null,this.pY=null}function ze(){Ae.apply(this,arguments)}function De(){ke.apply(this,arguments),this._timer=null,this._input=null}function je(){Ae.apply(this,arguments)}function Be(){Ae.apply(this,arguments)}function Ne(){ke.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Le(e,t){return(t=t||{}).recognizers=x(t.recognizers,Le.defaults.preset),new Ie(e,t)}ke.prototype={defaults:{},set:function(e){return o(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(d(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Te(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return d(e,"dropRecognizeWith",this)||(e=Te(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(d(e,"requireFailure",this))return this;var t=this.requireFail;return-1===S(t,e=Te(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(d(e,"dropRequireFailure",this))return this;e=Te(e,this);var t=S(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<8&&i(t.options.event+Ce(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=8&&i(t.options.event+Ce(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Se},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=o({},e);if(!b(this.options.enable,[this,t]))return this.reset(),void(this.state=Se);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},g(Ae,ke,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=6&t,r=this.attrTest(e);return i&&(8&n||!r)?16|t:i||r?4&n?8|t:2&t?4|t:2:Se}}),g(Re,Ae,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(Ee),e&N&&t.push(_e),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,o=e.deltaX,a=e.deltaY;return r&t.direction||(6&t.direction?(r=0===o?1:o<0?2:4,n=o!=this.pX,i=Math.abs(e.deltaX)):(r=0===a?1:a<0?8:16,n=a!=this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},attrTest:function(e){return Ae.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Me(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),g(ze,Ae,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[we]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),g(De,ke,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[be]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime>t.time;if(this._input=e,!i||!n||12&e.eventType&&!r)this.reset();else if(1&e.eventType)this.reset(),this._timer=u((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Se},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=c(),this.manager.emit(this.options.event,this._input)))}}),g(je,Ae,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[we]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),g(Be,Ae,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Re.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&N&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&l(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Me(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),g(Ne,ke,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||G(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=u((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return Se},failTimeout:function(){return this._timer=u((function(){this.state=Se}),this.options.interval,this),Se},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Le.VERSION="2.0.7",Le.defaults={domEvents:!1,touchAction:ve,enable:!0,inputTarget:null,inputClass:null,preset:[[je,{enable:!1}],[ze,{enable:!1},["rotate"]],[Be,{direction:6}],[Re,{direction:6},["swipe"]],[Ne],[Ne,{event:"doubletap",taps:2},["tap"]],[De]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ie(e,t){var n;this.options=o({},Le.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(z?ne:D?ce:R?de:Z))(n,F),this.touchAction=new Oe(this,this.options.touchAction),$e(this,!0),h(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function $e(e,t){var n,i=e.element;i.style&&(h(e.options.cssProps,(function(r,o){n=M(i.style,o),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Ie.prototype={set:function(e){return o(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,r=t.curRecognizer;(!r||r&&8&r.state)&&(r=t.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===t.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(e),!r&&14&n.state&&(r=t.curRecognizer=n),o++}},get:function(e){if(e instanceof ke)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(d(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(d(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=S(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==r&&t!==r){var n=this.handlers;return h(O(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==r){var n=this.handlers;return h(O(e),(function(e){t?n[e]&&n[e].splice(S(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var i=n.createEvent("Event");i.initEvent(e,!0,!0),i.gesture=t,t.target.dispatchEvent(i)}(e,t);var i=this.handlers[e]&&this.handlers[e].slice();if(i&&i.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<i.length;)i[r](t),r++}},destroy:function(){this.element&&$e(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(Le,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Se,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:N,DIRECTION_ALL:30,Manager:Ie,Input:$,TouchAction:Oe,TouchInput:ce,MouseInput:Z,PointerEventInput:ne,TouchMouseInput:de,SingleTouchInput:ae,Recognizer:ke,AttrRecognizer:Ae,Tap:Ne,Pan:Re,Swipe:Be,Pinch:ze,Rotate:je,Press:De,on:w,off:_,each:h,merge:y,extend:f,assign:o,inherit:g,bindFn:v,prefixed:M}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=Le,e.exports?e.exports=Le:t.Hammer=Le}(window,document)})),Xa=["mousedown","mouseup","mouseover","mouseout","click","dblclick"];function Za(e,t){return t.get(e,!1)}function Ja(e){e.preventDefault(),"function"==typeof e.stopPropagation?e.stopPropagation():e.srcEvent&&"function"==typeof e.srcEvent.stopPropagation&&e.srcEvent.stopPropagation(),"function"==typeof e.stopImmediatePropagation&&e.stopImmediatePropagation()}function Qa(e){function t(t){setTimeout((function(){_(Xa,(function(t){ue.unbind(e,t,Ja,!0)}))}),500)}ue.bind(e,"touchstart",(function(t){_(Xa,(function(t){ue.bind(e,t,Ja,!0)}))}),!0),ue.bind(e,"touchend",t,!0),ue.bind(e,"touchcancel",t,!0);var n=new Ya.Manager(e,{inputClass:Ya.TouchInput,recognizers:[],domEvents:!0}),i=new Ya.Tap,r=new Ya.Pan({threshold:10}),o=new Ya.Press,a=new Ya.Pinch,s=new Ya.Tap({event:"doubletap",taps:2});return a.requireFailure(r),a.requireFailure(o),n.add([r,o,a,s,i]),n.reset=function(e){var t=this.recognizers,i=this.session;i.stopped||(n.stop(e),setTimeout((function(){var e,n;for(e=0;n=t[e];e++)n.reset(),n.state=8;i.curRecognizer=null}),0))},n.on("hammer.input",(function(e){e.srcEvent.defaultPrevented&&n.reset(!0)})),n}function es(e,t,n,i,r){var o,a=Za("dragging",e),s=Za("move",e),p=Za("contextPad",e),l=Za("palette",e);function c(e,t){return function(n){var o=u(n.target),a=o&&i.get(o);return t&&(n.srcEvent.button=t),r.fire(e,n,a)}}function u(e){return se(e,"svg, .djs-element",!0)}function d(e){function n(e){var n=u(e.target),r=n&&i.get(n);if(s&&t.getRootElement()!==r)return s.start(e,r,!0);!function(e){var n=0,i=0;function r(e){var r=e.deltaX-n,o=e.deltaY-i;t.scroll({dx:r,dy:o}),n=e.deltaX,i=e.deltaY}function a(e){o.off("panmove",r),o.off("panend",a),o.off("pancancel",a)}o.on("panmove",r),o.on("panend",a),o.on("pancancel",a)}()}(o=Qa(e)).on("tap",c("element.click")),o.on("doubletap",c("element.dblclick",1)),o.on("panstart",n),o.on("press",n),o.on("pinchstart",(function(e){var n=t.zoom(),i=e.center;function r(e){var r=1-(1-e.scale)/1.5,o=Math.max(.2,Math.min(4,r*n));t.zoom(o,i),Ja(e)}function a(e){o.off("pinchmove",r),o.off("pinchend",a),o.off("pinchcancel",a),o.reset(!0)}o.on("pinchmove",r),o.on("pinchend",a),o.on("pinchcancel",a)}))}a&&n.on("drag.move",(function(e){var t=e.originalEvent;if(t&&!(t instanceof MouseEvent)){var n=Eo(t),r=u(document.elementFromPoint(n.x,n.y)),o=r&&i.get(r);o!==e.hover&&(e.hover&&a.out(e),o&&(a.hover({element:o,gfx:r}),e.hover=o,e.hoverGfx=r))}})),p&&n.on("contextPad.create",(function(e){var t=Qa(e.pad.html);t.on("panstart",(function(e){p.trigger("dragstart",e,!0)})),t.on("press",(function(e){p.trigger("dragstart",e,!0)})),t.on("tap",(function(e){p.trigger("click",e)}))})),l&&n.on("palette.create",(function(e){var t=Qa(e.container);t.on("panstart",(function(e){l.trigger("dragstart",e,!0)})),t.on("press",(function(e){l.trigger("dragstart",e,!0)})),t.on("tap",(function(e){l.trigger("click",e)}))})),n.on("canvas.init",(function(e){d(e.svg)}))}function ts(e,t){var n=this;t.on("canvas.init",(function(e){n.addBBoxMarker(e.svg)}))}es.$inject=["injector","canvas","eventBus","elementRegistry","interactionEvents","touchFix"],ts.$inject=["canvas","eventBus"],ts.prototype.addBBoxMarker=function(e){var t={fill:"none",class:"outer-bound-marker"},n=Le("rect");Oe(n,{x:-1e4,y:1e4,width:10,height:10}),Oe(n,t),_e(e,n);var i=Le("rect");Oe(i,{x:1e4,y:1e4,width:10,height:10}),Oe(i,t),_e(e,i)};var ns={__depends__:[{__depends__:[Ao],__init__:["touchInteractionEvents"],touchInteractionEvents:["type",es],touchFix:["type",ts]}]};function is(e){return e&&e[e.length-1]}function rs(e){return e.y}function os(e){return e.x}var as={left:os,center:os,right:function(e){return e.x+e.width},top:rs,middle:rs,bottom:function(e){return e.y+e.height}};function ss(e){this._modeling=e}ss.$inject=["modeling"],ss.prototype._getOrientationDetails=function(e){var t="x",n="width";return-1!==["top","bottom","middle"].indexOf(e)&&(t="y",n="height"),{axis:t,dimension:n}},ss.prototype._isType=function(e,t){return-1!==t.indexOf(e)},ss.prototype._alignmentPosition=function(e,t){var n,i,r,o=this._getOrientationDetails(e),a=o.axis,s=o.dimension,p={},l={},c=!1;if(this._isType(e,["left","top"]))p[e]=t[0][a];else if(this._isType(e,["right","bottom"]))r=is(t),p[e]=r[a]+r[s];else if(this._isType(e,["center","middle"])){if(_(t,(function(e){var t=e[a]+Math.round(e[s]/2);l[t]?l[t].elements.push(e):l[t]={elements:[e],center:t}})),n=D(l,(function(e){return e.elements.length>1&&(c=!0),e.elements.length})),c)return p[e]=is(n).center,p;i=t[0],r=is(t=D(t,(function(e){return e[a]+e[s]}))),p[e]=function(e,t){return Math.round((e[a]+t[a]+t[s])/2)}(i,r)}return p},ss.prototype.trigger=function(e,t){var n=this._modeling,i=w(e,(function(e){return!(e.waypoints||e.host||e.labelTarget)}));if(!(i.length<2)){var r=D(i,as[t]),o=this._alignmentPosition(t,r);n.alignElements(r,o)}};var ps={__init__:["alignElements"],alignElements:["type",ss]};function ls(e,t,n,i){for(var r;r=us(e,n,t);)n=i(t,n,r);return n}function cs(e){return function(t,n,i){var r={x:n.x,y:n.y};return["x","y"].forEach((function(o){var a=e[o];if(a){var s="x"===o?"width":"height",p=a.margin,l=a.minDistance;r[o]=p<0?Math.min(i[o]+p-t[s]/2,n[o]-l+p):Math.max(i[o]+i[s]+p+t[s]/2,n[o]+l+p)}})),r}}function us(e,t,n){var i={x:t.x-n.width/2,y:t.y-n.height/2,width:n.width,height:n.height};return b(function(e){var t=ds(e);e.host&&(t=t.concat(ds(e.host)));e.attachers&&(t=t.concat(e.attachers.reduce((function(e,t){return e.concat(ds(t))}),[])));return t}(e),(function(e){return e!==n&&"intersect"===yn(e,i,10)}))}function ds(e){return(t=e,t.outgoing.map((function(e){return e.target}))).concat(function(e){return e.incoming.map((function(e){return e.source}))}(e));var t}function hs(){return!0}function ms(e,t,n){e.on("autoPlace",100,(function(e){var t=e.shape;return function(e,t,n){n||(n={});var i=n.defaultDistance||50,r=fn(e);return{x:hn(e).right+i+t.width/2,y:r.y}}(e.source,t)})),e.on("autoPlace.end",(function(e){n.scrollToElement(e.shape)})),this.append=function(n,i,r){e.fire("autoPlace.start",{source:n,shape:i});var o=e.fire("autoPlace",{source:n,shape:i}),a=t.appendShape(n,i,o,n.parent,r);return e.fire("autoPlace.end",{source:n,shape:a}),a}}function fs(e,t){e.on("autoPlace.end",500,(function(e){t.select(e.shape)}))}ms.$inject=["eventBus","modeling","canvas"],fs.$inject=["eventBus","selection"];var ys={__init__:["autoPlaceSelectionBehavior"],autoPlace:["type",ms],autoPlaceSelectionBehavior:["type",fs]};function gs(e,t){for("string"==typeof t&&(t=[t]);e=e.parent;)if(_r(e,t))return e;return null}function vs(e,t){return wr(t,"bpmn:TextAnnotation")?function(e,t){var n=hn(e),i={x:n.right+t.width/2,y:n.top-50-t.height/2};return ls(e,t,i,cs({y:{margin:-30,minDistance:20}}))}(e,t):_r(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])?function(e,t){var n=hn(e),i={x:n.right-10+t.width/2,y:n.bottom+40+t.width/2};return ls(e,t,i,cs({x:{margin:30,minDistance:30}}))}(e,t):wr(t,"bpmn:FlowNode")?function(e,t){var n=hn(e),i=fn(e),r=function(e,t){t||(t={});var n=t.defaultDistance||50,i=t.direction||"e",r=t.filter,o=t.getWeight||function(t){return t.source===e?1:-1},a=t.maxDistance||250,s=t.reference||"start";function p(e,t){return"n"===i?"start"===s?hn(e).top-hn(t).bottom:"center"===s?hn(e).top-fn(t).y:hn(e).top-hn(t).top:"w"===i?"start"===s?hn(e).left-hn(t).right:"center"===s?hn(e).left-fn(t).x:hn(e).left-hn(t).left:"s"===i?"start"===s?hn(t).top-hn(e).bottom:"center"===s?fn(t).y-hn(e).bottom:hn(t).bottom-hn(e).bottom:"start"===s?hn(t).left-hn(e).right:"center"===s?fn(t).x-hn(e).right:hn(t).right-hn(e).right}r||(r=hs);var l=e.incoming.filter(r).map((function(t){var n=o(t),i=n<0?p(t.source,e):p(e,t.source);return{id:t.source.id,distance:i,weight:n}})),c=e.outgoing.filter(r).map((function(t){var n=o(t),i=n>0?p(e,t.target):p(t.target,e);return{id:t.target.id,distance:i,weight:n}}));return P(l.concat(c).reduce((function(e,t){return e[t.id+"__weight_"+t.weight]=t,e}),{}),(function(e,t){var n=t.distance,i=t.weight;return n<0||n>a||(e[String(n)]||(e[String(n)]=0),e[String(n)]+=1*i,(!e.distance||e[e.distance]<e[String(n)])&&(e.distance=n)),e}),{}).distance||n}(e,{filter:function(e){return wr(e,"bpmn:SequenceFlow")}}),o=30,a=80,s="left";wr(e,"bpmn:BoundaryEvent")&&-1!==(s=yn(e,e.host,-25)).indexOf("top")&&(o*=-1);var p={x:n.right+r+t.width/2,y:i.y+bs(s,a)};return ls(e,t,p,cs({y:{margin:o,minDistance:a}}))}(e,t):void 0}function bs(e,t){return-1!=e.indexOf("top")?-1*t:-1!=e.indexOf("bottom")?t:0}function xs(e){e.on("autoPlace",(function(e){var t=e.shape;return vs(e.source,t)}))}xs.$inject=["eventBus"];var ws={__depends__:[ys],__init__:["bpmnAutoPlace"],bpmnAutoPlace:["type",xs]};function _s(e,t,n,i){Xo.call(this,e),this._elementRegistry=t,this._modeling=n,this._rules=i;var r=this;this.postExecuted(["shape.create"],(function(e){var t=e.context,n=t.hints||{},i=t.shape,o=t.parent||t.newParent;!1!==n.autoResize&&r._expand([i],o)})),this.postExecuted(["elements.move"],(function(e){var t=e.context,n=a(T(t.closure.topLevel)),i=t.hints,o=!i||i.autoResize;!1!==o&&_(A(n,(function(e){return e.parent.id})),(function(e,t){d(o)&&(e=e.filter((function(e){return b(o,j({id:e.id}))}))),r._expand(e,t)}))})),this.postExecuted(["shape.toggleCollapse"],(function(e){var t=e.context,n=t.hints,i=t.shape;n&&!1===n.autoResize||i.collapsed||r._expand(i.children||[],i)})),this.postExecuted(["shape.resize"],(function(e){var t=e.context,n=t.hints,i=t.shape,o=i.parent;n&&!1===n.autoResize||o&&r._expand([i],o)}))}function Es(e){e.invoke(_s,this)}function Ps(e){Xo.call(this,e),this.init()}function Os(e){Ps.call(this,e);var t=this;this.addRule("element.autoResize",(function(e){return t.canResize(e.elements,e.target)}))}function Ss(e,t){Os.call(this,e),this._modeling=t}_s.$inject=["eventBus","elementRegistry","modeling","rules"],i(_s,Xo),_s.prototype._getOptimalBounds=function(e,t){var n=this.getOffset(t),i=this.getPadding(t),r=hn(yt(e)),o=hn(t),a={};return r.top-o.top<i.top&&(a.top=r.top-n.top),r.left-o.left<i.left&&(a.left=r.left-n.left),o.right-r.right<i.right&&(a.right=r.right+n.right),o.bottom-r.bottom<i.bottom&&(a.bottom=r.bottom+n.bottom),mn(q({},o,a))},_s.prototype._expand=function(e,t){if("string"==typeof t&&(t=this._elementRegistry.get(t)),this._rules.allowed("element.autoResize",{elements:e,target:t})){var n=this._getOptimalBounds(e,t);if(function(e,t){return e.x!==t.x||e.y!==t.y||e.width!==t.width||e.height!==t.height}(n,t)){var i=function(e,t){var n="";e=hn(e),t=hn(t),e.top>t.top&&(n=n.concat("n"));e.right<t.right&&(n=n.concat("w"));e.bottom<t.bottom&&(n=n.concat("s"));e.left>t.left&&(n=n.concat("e"));return n}(W(t,["x","y","width","height"]),n);this.resize(t,n,{autoResize:i});var r=t.parent;r&&this._expand([t],r)}}},_s.prototype.getOffset=function(e){return{top:60,bottom:60,left:100,right:100}},_s.prototype.getPadding=function(e){return{top:2,bottom:2,left:15,right:15}},_s.prototype.resize=function(e,t,n){this._modeling.resizeShape(e,t,null,n)},Es.$inject=["injector"],i(Es,_s),Es.prototype.resize=function(e,t,n){wr(e,"bpmn:Participant")?this._modeling.resizeLane(e,t,null,n):this._modeling.resizeShape(e,t,null,n)},Ps.$inject=["eventBus"],i(Ps,Xo),Ps.prototype.addRule=function(e,t,n){var i=this;"string"==typeof e&&(e=[e]),e.forEach((function(e){i.canExecute(e,t,(function(e,t,i){return n(e)}),!0)}))},Ps.prototype.init=function(){},Os.$inject=["eventBus"],i(Os,Ps),Os.prototype.canResize=function(e,t){return!1},i(Ss,Os),Ss.$inject=["eventBus","modeling"],Ss.prototype.canResize=function(e,t){if(wr(t.di,"bpmndi:BPMNPlane"))return!1;if(!wr(t,"bpmn:Participant")&&!wr(t,"bpmn:Lane")&&!wr(t,"bpmn:SubProcess"))return!1;var n=!0;return _(e,(function(e){(wr(e,"bpmn:Lane")||e.labelTarget)&&(n=!1)})),n};var ks={__init__:["bpmnAutoResize","bpmnAutoResizeProvider"],bpmnAutoResize:["type",Es],bpmnAutoResizeProvider:["type",Ss]};function Cs(e,t,n){var i,r,o=this,a=n.get("dragging",!1);a&&t.on("drag.start",(function(n){t.once("drag.move",1500,(function(t){!function(t){if(!t.hover){var n=t.originalEvent,i=o._findTargetGfx(n),r=i&&e.get(i);i&&r&&(t.stopPropagation(),a.hover({element:r,gfx:i}),a.move(n))}}(t)}))})),t.on("element.hover",(function(e){i=e.gfx,r=e.element})),t.on("element.hover",1500,(function(e){r&&t.fire("element.out",{element:r,gfx:i})})),t.on("element.out",(function(){i=null,r=null})),this._findTargetGfx=function(e){var t;if(e instanceof MouseEvent)return t=Eo(e),function(e){return se(e,"svg, .djs-element",!0)}(document.elementFromPoint(t.x,t.y))}}Cs.$inject=["elementRegistry","eventBus","injector"];var Ms={__init__:["hoverFix"],hoverFix:["type",Cs]},Ts=Math.round,As="djs-drag-active";function Rs(e){e.preventDefault()}function zs(e,t,n,i){var r,o={threshold:5,trapClick:!0};function a(e){var n=t.viewbox(),i=t._container.getBoundingClientRect();return{x:n.x+(e.x-i.left)/n.scale,y:n.y+(e.y-i.top)/n.scale}}function s(t,n){n=n||r;var i=e.createEvent(q({},n.payload,n.data,{isTouch:n.isTouch}));return!1!==e.fire("drag."+t,i)&&e.fire(n.prefix+"."+t,i)}function p(e,i){var o,p=r.payload,l=r.displacement,c=r.globalStart,u=Eo(e),d=Ia(u,c),h=r.localStart,m=a(u),y=Ia(m,h);if(!r.active&&(i||(o=d,Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2))>r.threshold))){if(q(p,{x:Ts(h.x+l.x),y:Ts(h.y+l.y),dx:0,dy:0},{originalEvent:e}),!1===s("start"))return f();r.active=!0,r.keepSelection||(p.previousSelection=n.get(),n.select(null)),r.cursor&&ja(r.cursor),t.addMarker(t.getRootElement(),As)}_o(e),r.active&&(q(p,{x:Ts(m.x+l.x),y:Ts(m.y+l.y),dx:Ts(y.x),dy:Ts(y.y)},{originalEvent:e}),s("move"))}function l(e){var t=!0;r.active&&(e&&(r.payload.originalEvent=e,_o(e)),t=s("end")),!1===t&&s("rejected"),s("ended",y(!0!==t))}function c(e){27===e.which&&(Rs(e),f())}function u(t){var n;r.active&&(n=Na(e),setTimeout(n,400),Rs(t)),l(t)}function d(e){p(e)}function h(e){var t=r.payload;t.hoverGfx=e.gfx,t.hover=e.element,s("hover")}function m(e){s("out");var t=r.payload;t.hoverGfx=null,t.hover=null}function f(e){var t;if(r){var n=r.active;n&&s("cancel"),t=y(e),n&&s("canceled",t)}}function y(o){var a,y;s("cleanup"),Ba(),y=r.trapClick?u:l,ue.unbind(document,"mousemove",p),ue.unbind(document,"dragstart",Rs),ue.unbind(document,"selectstart",Rs),ue.unbind(document,"mousedown",y,!0),ue.unbind(document,"mouseup",y,!0),ue.unbind(document,"keyup",c),ue.unbind(document,"touchstart",d,!0),ue.unbind(document,"touchcancel",f,!0),ue.unbind(document,"touchmove",p,!0),ue.unbind(document,"touchend",l,!0),e.off("element.hover",h),e.off("element.out",m),t.removeMarker(t.getRootElement(),As);var g=r.payload.previousSelection;return!1!==o&&g&&!n.get().length&&function(e){var t=e.filter((function(e){return i.get(e.id)}));t.length&&n.select(t)}(g),a=r,r=null,a}e.on("diagram.destroy",f),this.init=function(t,n,i,y){r&&f(!1),"string"==typeof n&&(y=i,i=n,n=null);var g,v,b,x,w,_=(y=q({},o,y||{})).data||{};x=y.trapClick?u:l,t?(g=wo(t)||t,v=Eo(t),_o(t),"dragstart"===g.type&&Rs(g)):(g=null,v={x:0,y:0}),b=a(v),n||(n=b),w=function(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}(g),r=q({prefix:i,data:_,payload:{},globalStart:v,displacement:Ia(n,b),localStart:b,isTouch:w},y),y.manual||(w?(ue.bind(document,"touchstart",d,!0),ue.bind(document,"touchcancel",f,!0),ue.bind(document,"touchmove",p,!0),ue.bind(document,"touchend",l,!0)):(ue.bind(document,"mousemove",p),ue.bind(document,"dragstart",Rs),ue.bind(document,"selectstart",Rs),ue.bind(document,"mousedown",x,!0),ue.bind(document,"mouseup",x,!0)),ue.bind(document,"keyup",c),e.on("element.hover",h),e.on("element.out",m)),s("init"),y.autoActivate&&p(t,!0)},this.move=p,this.hover=h,this.out=m,this.end=l,this.cancel=f,this.context=function(){return r},this.setOptions=function(e){q(o,e)}}zs.$inject=["eventBus","canvas","selection","elementRegistry"];var Ds={__depends__:[Ms,$o],dragging:["type",zs]};function js(e,t,n){this._canvas=n,this._opts=q({scrollThresholdIn:[20,20,20,20],scrollThresholdOut:[0,0,0,0],scrollRepeatTimeout:15,scrollStep:10},e);var i=this;t.on("drag.move",(function(e){var t=i._toBorderPoint(e);i.startScroll(t)})),t.on(["drag.cleanup"],(function(){i.stopScroll()}))}function Bs(e,t,n){return t<e&&e<n}js.$inject=["config.autoScroll","eventBus","canvas"],js.prototype.startScroll=function(e){var t=this._canvas,n=this._opts,i=this,r=t.getContainer().getBoundingClientRect(),o=[e.x,e.y,r.width-e.x,r.height-e.y];this.stopScroll();for(var a=0,s=0,p=0;p<4;p++)Bs(o[p],n.scrollThresholdOut[p],n.scrollThresholdIn[p])&&(0===p?a=n.scrollStep:1==p?s=n.scrollStep:2==p?a=-n.scrollStep:3==p&&(s=-n.scrollStep));0===a&&0===s||(t.scroll({dx:a,dy:s}),this._scrolling=setTimeout((function(){i.startScroll(e)}),n.scrollRepeatTimeout))},js.prototype.stopScroll=function(){clearTimeout(this._scrolling)},js.prototype.setOptions=function(e){this._opts=q({},this._opts,e)},js.prototype._toBorderPoint=function(e){var t=this._canvas._container.getBoundingClientRect(),n=Eo(e.originalEvent);return{x:n.x-t.left,y:n.y-t.top}};var Ns={__depends__:[Ds],__init__:["autoScroll"],autoScroll:["type",js]};function Ls(e){this._commandStack=e.get("commandStack",!1)}Ls.$inject=["injector"],Ls.prototype.allowed=function(e,t){var n=!0,i=this._commandStack;return i&&(n=i.canExecute(e,t)),void 0===n||n};var Is={__init__:["rules"],rules:["type",Ls]},$s=Math.round,Fs=Math.max;function Vs(e,t){return function(e,t){var n,i;for(n=0;i=e[n];n++)if(Ot(i,t)<=10)return{point:e[n],bendpoint:!0,index:n};return null}(e,t)||function(e,t){var n,i,r=cn(function(e,t){return[["M",e.x,e.y],["m",0,-t],["a",t,t,0,1,1,0,2*t],["a",t,t,0,1,1,0,-2*t],["z"]]}(t,10),(n=[],e.forEach((function(e,t){n.push([0===t?"M":"L",e.x,e.y])})),n)),o=r[0],a=r[r.length-1];return o?o!==a?o.segment2!==a.segment2?{point:e[i=Fs(o.segment2,a.segment2)-1],bendpoint:!0,index:i}:{point:{x:$s(o.x+a.x)/2,y:$s(o.y+a.y)/2},index:o.segment2}:{point:{x:$s(o.x),y:$s(o.y)},index:o.segment2}:null}(e,t)}var Hs="djs-bendpoint",qs="djs-segment-dragger";function Us(e,t,n){return Vs(t,function(e,t){var n,i=Eo(t),r=e._container.getBoundingClientRect();n={x:r.left,y:r.top};var o=e.viewbox();return{x:o.x+(i.x-n.x)/o.scale,y:o.y+(i.y-n.y)/o.scale}}(e,n))}function Gs(e,t){var n=Le("g");Te(n).add(Hs),_e(e,n);var i=Le("circle");Oe(i,{cx:0,cy:0,r:4}),Te(i).add("djs-visual"),_e(n,i);var r=Le("circle");return Oe(r,{cx:0,cy:0,r:10}),Te(r).add("djs-hit"),_e(n,r),t&&Te(n).add(t),n}function Ws(e,t,n,i){var r=Le("g");_e(e,r);var o=function(e,t,n){var i=t.x-e.x,r=t.y-e.y;return Ys("h"===n?i:r)}(t,n,i),a=Le("rect");Oe(a,{x:-7,y:-1.5,width:14,height:3}),Te(a).add("djs-visual"),_e(r,a);var s=Le("rect");return Oe(s,{x:-o/2,y:-7,width:o,height:14}),Te(s).add("djs-hit"),_e(r,s),Yn(r,"v"===i?90:0),r}function Ks(e,t,n){var i=Le("g"),r=Mt(t,n),o=kt(t,n);return _e(e,i),Ws(i,t,n,o),Te(i).add(qs),Te(i).add("h"===o?"horizontal":"vertical"),Kn(i,r.x,r.y),i}function Ys(e){return Math.abs(Math.round(2*e/3))}function Xs(e,t,n,i,r){function o(e,n){var o=n.waypoints,a=Us(t,o,e);if(a)return!function(e,t,n){var i,r,o,a,s,p,l=e.index,c=e.point;return!(l<=0||e.bendpoint)&&(o=Mt(i=t[l-1],r=t[l]),a=kt(i,r),s=Math.abs(c.x-o.x),p=Math.abs(c.y-o.y),a&&s<=n&&p<=n)}(a,o,function(e,t){var n,i,r=e.waypoints;return t.index<=0||t.bendpoint?null:(i=kt((n={start:r[t.index-1],end:r[t.index]}).start,n.end))?Ys("h"===i?n.end.x-n.start.x:n.end.y-n.start.y)/2:null}(n,a))?i.start(e,n,a.index,!a.bendpoint):r.start(e,n,a.index),!0}function a(e,t,i){ue.bind(e,t,(function(e){n.triggerMouseEvent(t,e,i),e.stopPropagation()}))}function s(e,n){var i=t.getLayer("overlays"),r=ve('.djs-bendpoints[data-element-id="'+Qo(e.id)+'"]',i);return!r&&n&&(Oe(r=Le("g"),{"data-element-id":e.id}),Te(r).add("djs-bendpoints"),_e(i,r),a(r,"mousedown",e),a(r,"click",e),a(r,"dblclick",e)),r}function p(e,t){return ve('.djs-segment-dragger[data-segment-idx="'+e+'"]',t)}function l(e,t){t.waypoints.forEach((function(t,n){var i=Gs(e);_e(e,i),Kn(i,t.x,t.y)})),Gs(e,"floating")}function c(e,t){for(var n,i,r,o=t.waypoints,s=1;s<o.length;s++)kt(n=o[s-1],i=o[s])&&(Oe(r=Ks(e,n,i),{"data-segment-idx":s}),a(r,"mousemove",t))}function u(e){var t=s(e);return t||(l(t=s(e,!0),e),c(t,e)),t}function d(e){var t=s(e);t&&(!function(e){_(be(".djs-segment-dragger",e),(function(e){Re(e)}))}(t),function(e){_(be(".djs-bendpoint",e),(function(e){Re(e)}))}(t),c(t,e),l(t,e))}function h(e,t,n){var i,r,o=p(t.index,e),a=n[t.index-1],s=n[t.index],l=t.point,c=Mt(a,s),u=kt(a,s);o&&(i=function(e){return ve(".djs-visual",e)}(o),r={x:l.x-c.x,y:l.y-c.y},"v"===u&&(r={x:r.y,y:r.x}),Kn(i,r.x,r.y))}e.on("connection.changed",(function(e){d(e.element)})),e.on("connection.remove",(function(e){var t=s(e.element);t&&Re(t)})),e.on("element.marker.update",(function(e){var t,n=e.element;n.waypoints&&(t=u(n),e.add?Te(t).add(e.marker):Te(t).remove(e.marker))})),e.on("element.mousemove",(function(e){var n,i,r=e.element,o=r.waypoints;if(o){if(n=s(r,!0),!(i=Us(t,o,e.originalEvent)))return;!function(e,t){var n=ve(".floating",e),i=t.point;n&&Kn(n,i.x,i.y)}(n,i),i.bendpoint||h(n,i,o)}})),e.on("element.mousedown",(function(e){if(Oo(e)){var t=e.originalEvent,n=e.element;if(n.waypoints)return o(t,n)}})),e.on("selection.changed",(function(e){var t=e.newSelection[0];t&&t.waypoints&&u(t)})),e.on("element.hover",(function(e){var t=e.element;t.waypoints&&(u(t),n.registerEvent(e.gfx,"mousemove","element.mousemove"))})),e.on("element.out",(function(e){n.unregisterEvent(e.gfx,"mousemove","element.mousemove")})),e.on("element.updateId",(function(e){var t=e.element,n=e.newId;if(t.waypoints){var i=s(t);i&&Oe(i,{"data-element-id":n})}})),this.addHandles=u,this.updateHandles=d,this.getBendpointsContainer=s,this.getSegmentDragger=p}Xs.$inject=["eventBus","canvas","interactionEvents","bendpointMove","connectionSegmentMove"];var Zs=Math.round,Js="reconnectStart",Qs="reconnectEnd",ep="updateWaypoints";function tp(e,t,n,i,r,o){this._injector=e,this.start=function(e,t,o,a){var s,p=n.getGraphics(t),l=t.source,c=t.target,u=t.waypoints,d=(s=a||0!==o?a||o!==u.length-1?ep:Qs:Js)===ep?"connection.updateWaypoints":"connection.reconnect",h=r.allowed(d,{connection:t,source:l,target:c});!1===h&&(h=r.allowed(d,{connection:t,source:c,target:l})),!1!==h&&i.init(e,"bendpoint.move",{data:{connection:t,connectionGfx:p,context:{allowed:h,bendpointIndex:o,connection:t,source:l,target:c,insert:a,type:s}}})},t.on("bendpoint.move.hover",(function(e){var t,n=e.context,i=n.connection,o=i.source,a=i.target,s=e.hover,p=n.type;if(n.hover=s,s){var l=p===ep?"connection.updateWaypoints":"connection.reconnect";if(t=n.allowed=r.allowed(l,{connection:i,source:p===Js?s:o,target:p===Qs?s:a}))return n.source=p===Js?s:o,void(n.target=p===Qs?s:a);!1===t&&(t=n.allowed=r.allowed(l,{connection:i,source:p===Qs?s:a,target:p===Js?s:o})),t&&(n.source=p===Qs?s:a,n.target=p===Js?s:o)}})),t.on(["bendpoint.move.out","bendpoint.move.cleanup"],(function(e){var t=e.context,n=t.type;t.hover=null,t.source=null,t.target=null,n!==ep&&(t.allowed=!1)})),t.on("bendpoint.move.end",(function(e){var t=e.context,n=t.allowed,i=t.bendpointIndex,r=t.connection,a=t.insert,s=r.waypoints.slice(),p=t.source,l=t.target,c=t.type,u=t.hints||{},d={x:Zs(e.x),y:Zs(e.y)};if(!n)return!1;c===ep?(a?s.splice(i,0,d):s[i]=d,u.bendpointMove={insert:a,bendpointIndex:i},s=this.cropWaypoints(r,s),o.updateWaypoints(r,function(e){e=e.slice();for(var t,n,i,r=0;e[r];)t=e[r],n=e[r-1],0===Ot(t,i=e[r+1])||St(n,i,t)?e.splice(r,1):r++;return e}(s),u)):(c===Js?(u.docking="source",np(t)&&(u.docking="target",u.newWaypoints=s.reverse())):c===Qs&&(u.docking="target",np(t)&&(u.docking="source",u.newWaypoints=s.reverse())),o.reconnect(r,p,l,d,u))}),this)}function np(e){var t=e.hover,n=e.source,i=e.target,r=e.type;return r===Js?t&&i&&t===i&&n!==i:r===Qs?t&&n&&t===n&&n!==i:void 0}tp.$inject=["injector","eventBus","canvas","dragging","rules","modeling"],tp.prototype.cropWaypoints=function(e,t){var n=this._injector.get("connectionDocking",!1);if(!n)return t;var i=e.waypoints;return e.waypoints=t,e.waypoints=n.getCroppedWaypoints(e),t=e.waypoints,e.waypoints=i,t};var ip="updateWaypoints",rp="connect-ok",op="connect-not-ok",ap="connect-hover",sp="djs-updating",pp="djs-element-hidden";function lp(e,t,n,i){this._injector=t;var r=t.get("connectionPreview",!1);n.on("bendpoint.move.start",(function(e){var t=e.context,n=t.bendpointIndex,r=t.connection,o=t.insert,a=r.waypoints,s=a.slice();t.waypoints=a,o&&s.splice(n,0,{x:e.x,y:e.y}),r.waypoints=s,Te(t.draggerGfx=Gs(i.getLayer("overlays"))).add("djs-dragging"),i.addMarker(r,pp),i.addMarker(r,sp)})),n.on("bendpoint.move.hover",(function(e){var t=e.context,n=t.allowed,r=t.hover,o=t.type;if(r){if(i.addMarker(r,ap),o===ip)return;n?(i.removeMarker(r,op),i.addMarker(r,rp)):!1===n&&(i.removeMarker(r,rp),i.addMarker(r,op))}})),n.on(["bendpoint.move.out","bendpoint.move.cleanup"],1100,(function(e){var t=e.context,n=t.hover,r=t.target;n&&(i.removeMarker(n,ap),i.removeMarker(n,r?rp:op))})),n.on("bendpoint.move.move",(function(t){var n=t.context,i=n.allowed,o=n.bendpointIndex,a=n.draggerGfx,s=n.hover,p=n.type,l=n.connection,c=l.source,u=l.target,d=l.waypoints.slice(),h={x:t.x,y:t.y},m=n.hints||{},f={};r&&(m.connectionStart&&(f.connectionStart=m.connectionStart),m.connectionEnd&&(f.connectionEnd=m.connectionEnd),"reconnectStart"===p?np(n)?(f.connectionEnd=f.connectionEnd||h,f.source=u,f.target=s||c,d=d.reverse()):(f.connectionStart=f.connectionStart||h,f.source=s||c,f.target=u):"reconnectEnd"===p?np(n)?(f.connectionStart=f.connectionStart||h,f.source=s||u,f.target=c,d=d.reverse()):(f.connectionEnd=f.connectionEnd||h,f.source=c,f.target=s||u):(f.noCropping=!0,f.noLayout=!0,d[o]=h),p===ip&&(d=e.cropWaypoints(l,d)),f.waypoints=d,r.drawPreview(n,i,f)),Kn(a,t.x,t.y)}),this),n.on(["bendpoint.move.end","bendpoint.move.cancel"],1100,(function(e){var t=e.context,n=t.connection,o=t.draggerGfx,a=t.hover,s=t.target,p=t.waypoints;n.waypoints=p,Re(o),i.removeMarker(n,sp),i.removeMarker(n,pp),a&&(i.removeMarker(a,rp),i.removeMarker(a,s?rp:op)),r&&r.cleanUp(t)}))}lp.$inject=["bendpointMove","injector","eventBus","canvas"];var cp="connect-hover",up="djs-updating";function dp(e,t,n){return hp(e,t,e[t]+n)}function hp(e,t,n){return{x:"x"===t?n:e.x,y:"y"===t?n:e.y}}function mp(e){return"x"===e?"y":"x"}function fp(e,t,n){var i,r;return e.original?e.original:(i=fn(t),hp(e,r=mp(n),i[r]))}function yp(e,t,n,i,r,o){var a=e.get("connectionDocking",!1);function s(e,t){if(!a)return t;var n,i=e.waypoints;return e.waypoints=t,n=a.getCroppedWaypoints(e),e.waypoints=i,n}function p(e){r.update("connection",e.connection,e.connectionGfx)}function l(e,t,n){var i=e.newWaypoints,r=function(e,t,n,i){var r=Math.max(t[i],n[i]),o=Math.min(t[i],n[i]);return hp(t,i,Math.min(Math.max(o+20,e[i]),r-20))}(n,i[e.segmentStartIndex+t],i[e.segmentEndIndex+t],mp(e.axis));Kn(e.draggerGfx,r.x,r.y)}this.start=function(e,t,r){var o,a,s,p,l=n.getGraphics(t),c=r-1,u=r,d=t.waypoints,h=d[c],m=d[u],f=Us(n,d,e);(a=kt(h,m))&&(s="v"===a?"x":"y",0===c&&(h=fp(h,t.source,s)),u===d.length-1&&(m=fp(m,t.target,s)),o={connection:t,segmentStartIndex:c,segmentEndIndex:u,segmentStart:h,segmentEnd:m,axis:s,dragPosition:p=f?f.point:{x:(h.x+m.x)/2,y:(h.y+m.y)/2}},i.init(e,p,"connectionSegment.move",{cursor:"x"===s?"resize-ew":"resize-ns",data:{connection:t,connectionGfx:l,context:o}}))},t.on("connectionSegment.move.start",(function(e){var t=e.context,i=e.connection,r=n.getLayer("overlays");t.originalWaypoints=i.waypoints.slice(),t.draggerGfx=Ks(r,t.segmentStart,t.segmentEnd),Te(t.draggerGfx).add("djs-dragging"),n.addMarker(i,up)})),t.on("connectionSegment.move.move",(function(e){var t,n,i=e.context,r=i.connection,o=i.segmentStartIndex,a=i.segmentEndIndex,c=i.segmentStart,u=i.segmentEnd,d=i.axis,h=i.originalWaypoints.slice(),m=dp(c,d,e["d"+d]),f=dp(u,d,e["d"+d]),y=h.length,g=0;h[o]=m,h[a]=f,o<2&&(t=yn(r.source,m),1===o?"intersect"===t&&(h.shift(),h[0]=m,g--):"intersect"!==t&&(h.unshift(c),g++)),a>y-3&&(n=yn(r.target,f),a===y-2?"intersect"===n&&(h.pop(),h[h.length-1]=f):"intersect"!==n&&h.push(u)),i.newWaypoints=r.waypoints=s(r,h),l(i,g,e),i.newSegmentStartIndex=o+g,p(e)})),t.on("connectionSegment.move.hover",(function(e){e.context.hover=e.hover,n.addMarker(e.hover,cp)})),t.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],(function(e){var t=e.context.hover;t&&n.removeMarker(t,cp)})),t.on("connectionSegment.move.cleanup",(function(e){var t=e.context,i=t.connection;t.draggerGfx&&Re(t.draggerGfx),n.removeMarker(i,up)})),t.on(["connectionSegment.move.cancel","connectionSegment.move.end"],(function(e){var t=e.context;t.connection.waypoints=t.originalWaypoints,p(e)})),t.on("connectionSegment.move.end",(function(e){var t=e.context,n=t.connection,i=t.newWaypoints,r=t.newSegmentStartIndex,a=function(e,t){var n=0;return{waypoints:e.filter((function(i,r){return!St(e[r-1],e[r+1],i)||(n=r<=t?n-1:n,!1)})),segmentOffset:n}}(i=i.map((function(e){return{original:e.original,x:Math.round(e.x),y:Math.round(e.y)}})),r),p=s(n,a.waypoints),l=a.segmentOffset,c={segmentMove:{segmentStartIndex:t.segmentStartIndex,newSegmentStartIndex:r+l}};o.updateWaypoints(n,p,c)}))}yp.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];var gp=Math.abs,vp=Math.round;function bp(e){return{x:e.x,y:e.y}}function xp(e){return{x:e.x+e.width,y:e.y+e.height}}function wp(e,t){return!e||isNaN(e.x)||isNaN(e.y)?t:{x:vp(e.x+e.width/2),y:vp(e.y+e.height/2)}}function _p(e,t){var n=e.snapped;return!!n&&("string"==typeof t?n[t]:n.x&&n.y)}function Ep(e,t,n){if("string"!=typeof t)throw new Error("axis must be in [x, y]");if("number"!=typeof n&&!1!==n)throw new Error("value must be Number or false");var i,r=e[t],o=e.snapped=e.snapped||{};return!1===n?o[t]=!1:(o[t]=!0,i=n-r,e[t]+=i,e["d"+t]+=i),r}function Pp(e){return e.children||[]}var Op=Math.abs,Sp=Math.round;function kp(e){function t(e,t){if(d(e)){for(var n=e.length;n--;)if(Op(e[n]-t)<=10)return e[n]}else{var i=t%(e=+e);if(i<10)return t-i;if(i>e-10)return t-i+e}return t}function n(e){if(e.width)return{x:Sp(e.width/2+e.x),y:Sp(e.height/2+e.y)}}e.on("connectionSegment.move.move",1500,(function(e){var i,r,o=function(e){var t=e.snapPoints,i=e.connection,r=i.waypoints,o=e.segmentStart,a=e.segmentStartIndex,s=e.segmentEnd,p=e.segmentEndIndex,l=e.axis;if(t)return t;var c=[r[a-1],o,s,r[p+1]];return a<2&&c.unshift(n(i.source)),p>r.length-3&&c.unshift(n(i.target)),e.snapPoints=t={horizontal:[],vertical:[]},_(c,(function(e){e&&(e=e.original||e,"y"===l&&t.horizontal.push(e.y),"x"===l&&t.vertical.push(e.x))})),t}(e.context),a=e.x,s=e.y;if(o){var p=a-(i=t(o.vertical,a)),l=s-(r=t(o.horizontal,s));q(e,{dx:e.dx-p,dy:e.dy-l,x:i,y:r}),(p||-1!==o.vertical.indexOf(a))&&Ep(e,"x",i),(l||-1!==o.horizontal.indexOf(s))&&Ep(e,"y",r)}})),e.on(["bendpoint.move.move","bendpoint.move.end"],1500,(function(e){var i,r,o=e.context,a=function(e){var t=e.snapPoints,n=e.connection.waypoints,i=e.bendpointIndex;if(t)return t;var r=[n[i-1],n[i+1]];return e.snapPoints=t={horizontal:[],vertical:[]},_(r,(function(e){e&&(e=e.original||e,t.horizontal.push(e.y),t.vertical.push(e.x))})),t}(o),s=o.hover,p=s&&n(s),l=e.x,c=e.y;if(a){var u=l-(i=t(p?a.vertical.concat([p.x]):a.vertical,l)),d=c-(r=t(p?a.horizontal.concat([p.y]):a.horizontal,c));q(e,{dx:e.dx-u,dy:e.dy-d,x:e.x-u,y:e.y-d}),(u||-1!==a.vertical.indexOf(l))&&Ep(e,"x",i),(d||-1!==a.horizontal.indexOf(c))&&Ep(e,"y",r)}}))}kp.$inject=["eventBus"];var Cp={__depends__:[Ds,Is],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",Xs],bendpointMove:["type",tp],bendpointMovePreview:["type",lp],connectionSegmentMove:["type",yp],bendpointSnapping:["type",kp]};function Mp(e,t,n,i){function r(e,t){return i.allowed("connection.create",{source:e,target:t})}e.on("connect.hover",(function(e){var t,n=e.context,i=n.start,o=e.hover;if(n.hover=o,!u(t=n.canExecute=r(i,o))){if(!1!==t)return n.source=i,void(n.target=o);u(t=n.canExecute=r(o,i))||!1!==t&&(n.source=o,n.target=i)}})),e.on(["connect.out","connect.cleanup"],(function(e){var t=e.context;t.hover=null,t.source=null,t.target=null,t.canExecute=!1})),e.on("connect.end",(function(e){var t=e.context,i=t.canExecute,r=t.connectionStart,o={x:e.x,y:e.y},a=t.source,s=t.target;if(!i)return!1;var p=null,l={connectionStart:Tp(t)?o:r,connectionEnd:Tp(t)?r:o};h(i)&&(p=i),n.connect(a,s,p,l)})),this.start=function(e,n,i,r){h(i)||(r=i,i=fn(n)),t.init(e,"connect",{autoActivate:r,data:{shape:n,context:{start:n,connectionStart:i}}})}}function Tp(e){var t=e.hover,n=e.source,i=e.target;return t&&n&&t===n&&n!==i}Mp.$inject=["eventBus","dragging","modeling","rules"];var Ap="connect-ok",Rp="connect-not-ok";function zp(e,t,n){var i=e.get("connectionPreview",!1);i&&t.on("connect.move",(function(e){var t=e.context,n=t.canExecute,r=t.hover,o=t.source,a=t.start,s=t.startPosition,p=t.target,l=t.connectionStart||s,c=t.connectionEnd||{x:e.x,y:e.y},u=l,d=c;Tp(t)&&(u=c,d=l),i.drawPreview(t,n,{source:o||a,target:p||r,connectionStart:u,connectionEnd:d})})),t.on("connect.hover",900,(function(e){var t=e.context,i=e.hover,r=t.canExecute;null!==r&&n.addMarker(i,r?Ap:Rp)})),t.on(["connect.out","connect.cleanup"],1100,(function(e){var t=e.hover;t&&(n.removeMarker(t,Ap),n.removeMarker(t,Rp))})),i&&t.on("connect.cleanup",(function(e){i.cleanUp(e.context)}))}zp.$inject=["injector","eventBus","canvas"];var Dp={__depends__:[$o,Is,Ds],__init__:["connectPreview"],connect:["type",Mp],connectPreview:["type",zp]};function jp(e,t,n,i){this._canvas=t,this._graphicsFactory=n,this._elementFactory=i,this._connectionDocking=e.get("connectionDocking",!1),this._layouter=e.get("layouter",!1)}jp.$inject=["injector","canvas","graphicsFactory","elementFactory"],jp.prototype.drawPreview=function(e,t,n){n=n||{};var i,r=e.connectionPreviewGfx,o=e.getConnection,a=n.source,s=n.target,p=n.waypoints,l=n.connectionStart,c=n.connectionEnd,u=n.noLayout,d=n.noCropping,h=n.noNoop,m=this;r||(r=e.connectionPreviewGfx=this.createConnectionPreviewGfx()),ze(r),o||(o=e.getConnection=function(e){var t={};return function(n){var i=JSON.stringify(n),r=t[i];return r||(r=t[i]=e.apply(null,arguments)),r}}((function(e,t,n){return m.getConnection(e,t,n)}))),t&&(i=o(t,a,s)),i?(i.waypoints=p||[],this._layouter&&!u&&(i.waypoints=this._layouter.layoutConnection(i,{source:a,target:s,connectionStart:l,connectionEnd:c,waypoints:n.waypoints||i.waypoints})),i.waypoints&&i.waypoints.length||(i.waypoints=[a?fn(a):l,s?fn(s):c]),this._connectionDocking&&(a||s)&&!d&&(i.waypoints=this._connectionDocking.getCroppedWaypoints(i,a,s)),this._graphicsFactory.drawConnection(r,i)):!h&&this.drawNoopPreview(r,n)},jp.prototype.drawNoopPreview=function(e,t){var n=t.source,i=t.target,r=t.connectionStart||fn(n),o=t.connectionEnd||fn(i),a=this.cropWaypoints(r,o,n,i);_e(e,this.createNoopConnection(a[0],a[1]))},jp.prototype.cropWaypoints=function(e,t,n,i){var r=this._graphicsFactory,o=n&&r.getShapePath(n),a=i&&r.getShapePath(i),s=r.getConnectionPath({waypoints:[e,t]});return[e=n&&gn(o,s,!0)||e,t=i&&gn(a,s,!1)||t]},jp.prototype.cleanUp=function(e){e&&e.connectionPreviewGfx&&Re(e.connectionPreviewGfx)},jp.prototype.getConnection=function(e){var t=function(e){return h(e)?e:{}}(e);return this._elementFactory.createConnection(t)},jp.prototype.createConnectionPreviewGfx=function(){var e=Le("g");return Oe(e,{pointerEvents:"none"}),Te(e).add("djs-connection-preview"),_e(this._canvas.getActiveLayer(),e),e},jp.prototype.createNoopConnection=function(e,t){var n=Le("polyline");return Oe(n,{stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"}),Oe(n,{points:[e.x,e.y,t.x,t.y]}),n};var Bp={__init__:["connectionPreview"],connectionPreview:["type",jp]};function Np(e,t){return(function(e){return e.originalEvent||e.srcEvent}(e)||e).button===t}function Lp(e){return Np(e,0)}function Ip(e){for(var t,n="",i=0;t=e[i];i++)n+=t.x+","+t.y+" ";return n}function $p(e){return!0}function Fp(e){return Lp(e)||function(e){return Np(e,1)}(e)}function Vp(e,t,n){var i=this;function r(n,i,r){var o,a;(function(e,t){return!(p[e]||Lp)(t)})(n,i)||(r?a=t.getGraphics(r):(o=i.delegateTarget||i.target)&&(a=o,r=t.get(a)),a&&r&&!1===e.fire(n,{element:r,gfx:a,originalEvent:i})&&(i.stopPropagation(),i.preventDefault()))}var o={};function a(e){return o[e]}var s={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},p={"element.contextmenu":$p,"element.mousedown":Fp,"element.mouseup":Fp,"element.click":Fp,"element.dblclick":Fp};function l(e,t,n,i){var a=o[n]=function(e){r(n,e)};i&&(p[n]=i),a.$delegate=me.bind(e,"svg, .djs-element",t,a)}function c(e,t,n){var i=a(n);i&&me.unbind(e,t,i.$delegate)}e.on("canvas.destroy",(function(e){var t;t=e.svg,_(s,(function(e,n){c(t,n,e)}))})),e.on("canvas.init",(function(e){var t;t=e.svg,_(s,(function(e,n){l(t,n,e)}))})),e.on(["shape.added","connection.added"],(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.createHit",{element:n,gfx:i})})),e.on(["shape.changed","connection.changed"],500,(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.updateHit",{element:n,gfx:i})})),e.on("interactionEvents.createHit",500,(function(e){var t=e.element,n=e.gfx;i.createDefaultHit(t,n)})),e.on("interactionEvents.updateHit",(function(e){var t=e.element,n=e.gfx;i.updateDefaultHit(t,n)}));var u=m("djs-hit djs-hit-stroke"),d=m("djs-hit djs-hit-click-stroke"),h={all:m("djs-hit djs-hit-all"),"click-stroke":d,stroke:u};function m(e,t){return t=q({stroke:"white",strokeWidth:15},t||{}),n.cls(e,["no-fill","no-border"],t)}function f(e,t){var n=h[t];if(!n)throw new Error("invalid hit type <"+t+">");return Oe(e,n),e}function y(e,t){_e(e,t)}this.removeHits=function(e){_(be(".djs-hit",e),Re)},this.createDefaultHit=function(e,t){var n,i=e.waypoints,r=e.isFrame;return i?this.createWaypointsHit(t,i):(n=r?"stroke":"all",this.createBoxHit(t,n,{width:e.width,height:e.height}))},this.createWaypointsHit=function(e,t){var n,i,r,o=(n=t,Oe(r=Le("polyline"),{points:Ip(n)}),i&&Oe(r,i),r);return f(o,"stroke"),y(e,o),o},this.createBoxHit=function(e,t,n){n=q({x:0,y:0},n);var i=Le("rect");return f(i,t),Oe(i,n),y(e,i),i},this.updateDefaultHit=function(e,t){var n=ve(".djs-hit",t);if(n)return e.waypoints?function(e,t){Oe(e,{points:Ip(t)})}(n,e.waypoints):Oe(n,{width:e.width,height:e.height}),n},this.fire=r,this.triggerMouseEvent=function(e,t,n){var i=s[e];if(!i)throw new Error("unmapped DOM event name <"+e+">");return r(i,t,n)},this.mouseHandler=a,this.registerEvent=l,this.unregisterEvent=c}Vp.$inject=["eventBus","elementRegistry","styles"];var Hp={__init__:["interactionEvents"],interactionEvents:["type",Vp]},qp=Math.min,Up=Math.max;function Gp(e){e.preventDefault()}function Wp(e){e.stopPropagation()}function Kp(e){this.container=e.container,this.parent=fe('<div class="djs-direct-editing-parent"><div class="djs-direct-editing-content" contenteditable="true"></div></div>'),this.content=ve("[contenteditable]",this.parent),this.keyHandler=e.keyHandler||function(){},this.resizeHandler=e.resizeHandler||function(){},this.autoResize=F(this.autoResize,this),this.handlePaste=F(this.handlePaste,this)}function Yp(e,t){this._eventBus=e,this._providers=[],this._textbox=new Kp({container:t.getContainer(),keyHandler:F(this._handleKey,this),resizeHandler:F(this._handleResize,this)})}Kp.prototype.create=function(e,t,n,i){var r=this.parent,o=this.content,a=this.container;i=this.options=i||{};var s=W(t=this.style=t||{},["width","height","maxWidth","maxHeight","minWidth","minHeight","left","top","backgroundColor","position","overflow","border","wordWrap","textAlign","outline","transform"]);q(r.style,{width:e.width+"px",height:e.height+"px",maxWidth:e.maxWidth+"px",maxHeight:e.maxHeight+"px",minWidth:e.minWidth+"px",minHeight:e.minHeight+"px",left:e.x+"px",top:e.y+"px",backgroundColor:"#ffffff",position:"absolute",overflow:"visible",border:"1px solid #ccc",boxSizing:"border-box",wordWrap:"normal",textAlign:"center",outline:"none"},s);var p=W(t,["fontFamily","fontSize","fontWeight","lineHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);return q(o.style,{boxSizing:"border-box",width:"100%",outline:"none",wordWrap:"break-word"},p),i.centerVertically&&q(o.style,{position:"absolute",top:"50%",transform:"translate(0, -50%)"},p),o.innerText=n,ue.bind(o,"keydown",this.keyHandler),ue.bind(o,"mousedown",Wp),ue.bind(o,"paste",this.handlePaste),i.autoResize&&ue.bind(o,"input",this.autoResize),i.resizable&&this.resizable(t),a.appendChild(r),this.setSelection(o.lastChild,o.lastChild&&o.lastChild.length),r},Kp.prototype.handlePaste=function(e){var t,n=this.options,i=this.style;if(e.preventDefault(),t=e.clipboardData?e.clipboardData.getData("text/plain"):window.clipboardData.getData("Text"),this.insertText(t),n.autoResize){var r=this.autoResize(i);r&&this.resizeHandler(r)}},Kp.prototype.insertText=function(e){e=e.replace(/\r\n|\r|\n/g,"\n"),document.execCommand("insertText",!1,e)||this._insertTextIE(e)},Kp.prototype._insertTextIE=function(e){var t,n,i,r=this.getSelection(),o=r.startContainer,a=r.endContainer,s=r.startOffset,p=r.endOffset,l=r.commonAncestorContainer,c=(t=l.childNodes,[].slice.call(t));if(function(e){return e.nodeType===Node.TEXT_NODE}(l)){var u=o.textContent;o.textContent=u.substring(0,s)+e+u.substring(p),n=o,i=s+e.length}else if(o===this.content&&a===this.content){var d=document.createTextNode(e);this.content.insertBefore(d,c[s]),n=d,i=d.textContent.length}else{var h=c.indexOf(o),m=c.indexOf(a);c.forEach((function(t,n){n===h?t.textContent=o.textContent.substring(0,s)+e+a.textContent.substring(p):n>h&&n<=m&&xe(t)})),n=o,i=s+e.length}n&&void 0!==i&&setTimeout((function(){self.setSelection(n,i)}))},Kp.prototype.autoResize=function(){var e=this.parent,t=this.content,n=parseInt(this.style.fontSize)||12;if(t.scrollHeight>e.offsetHeight||t.scrollHeight<e.offsetHeight-n){var i=e.getBoundingClientRect(),r=t.scrollHeight;e.style.height=r+"px",this.resizeHandler({width:i.width,height:i.height,dx:0,dy:r-i.height})}},Kp.prototype.resizable=function(){var e=this,t=this.parent,n=this.resizeHandle,i=parseInt(this.style.minWidth)||0,r=parseInt(this.style.minHeight)||0,o=parseInt(this.style.maxWidth)||1/0,a=parseInt(this.style.maxHeight)||1/0;if(!n){var s,p,l,c;n=this.resizeHandle=fe('<div class="djs-direct-editing-resize-handle"></div>');var u=function(n){Gp(n),Wp(n);var u=qp(Up(l+n.clientX-s,i),o),d=qp(Up(c+n.clientY-p,r),a);t.style.width=u+"px",t.style.height=d+"px",e.resizeHandler({width:l,height:c,dx:n.clientX-s,dy:n.clientY-p})},d=function(e){Gp(e),Wp(e),ue.unbind(document,"mousemove",u,!1),ue.unbind(document,"mouseup",d,!1)};ue.bind(n,"mousedown",(function(e){Gp(e),Wp(e),s=e.clientX,p=e.clientY;var n=t.getBoundingClientRect();l=n.width,c=n.height,ue.bind(document,"mousemove",u),ue.bind(document,"mouseup",d)}))}q(n.style,{position:"absolute",bottom:"0px",right:"0px",cursor:"nwse-resize",width:"0",height:"0",borderTop:(parseInt(this.style.fontSize)/4||3)+"px solid transparent",borderRight:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderBottom:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderLeft:(parseInt(this.style.fontSize)/4||3)+"px solid transparent"}),t.appendChild(n)},Kp.prototype.destroy=function(){var e=this.parent,t=this.content,n=this.resizeHandle;t.innerText="",e.removeAttribute("style"),t.removeAttribute("style"),ue.unbind(t,"keydown",this.keyHandler),ue.unbind(t,"mousedown",Wp),ue.unbind(t,"input",this.autoResize),ue.unbind(t,"paste",this.handlePaste),n&&(n.removeAttribute("style"),xe(n)),xe(e)},Kp.prototype.getValue=function(){return this.content.innerText.trim()},Kp.prototype.getSelection=function(){return window.getSelection().getRangeAt(0)},Kp.prototype.setSelection=function(e,t){var n=document.createRange();null===e?n.selectNodeContents(this.content):(n.setStart(e,t),n.setEnd(e,t));var i=window.getSelection();i.removeAllRanges(),i.addRange(n)},Yp.$inject=["eventBus","canvas"],Yp.prototype.registerProvider=function(e){this._providers.push(e)},Yp.prototype.isActive=function(){return!!this._active},Yp.prototype.cancel=function(){this._active&&(this._fire("cancel"),this.close())},Yp.prototype._fire=function(e,t){this._eventBus.fire("directEditing."+e,t||{active:this._active})},Yp.prototype.close=function(){this._textbox.destroy(),this._fire("deactivate"),this._active=null,this.resizable=void 0},Yp.prototype.complete=function(){var e=this._active;if(e){var t,n=e.context.bounds,i=this.$textbox.getBoundingClientRect(),r=this.getValue();r===e.context.text&&i.height===n.height&&i.width===n.width||(t=this._textbox.container.getBoundingClientRect(),e.provider.update(e.element,r,e.context.text,{x:i.left-t.left,y:i.top-t.top,width:i.width,height:i.height})),this._fire("complete"),this.close()}},Yp.prototype.getValue=function(){return this._textbox.getValue()},Yp.prototype._handleKey=function(e){e.stopPropagation();var t=e.keyCode||e.charCode;return 27===t?(e.preventDefault(),this.cancel()):13!==t||e.shiftKey?void 0:(e.preventDefault(),this.complete())},Yp.prototype._handleResize=function(e){this._fire("resize",e)},Yp.prototype.activate=function(e){var t;this.isActive()&&this.cancel();var n=b(this._providers,(function(n){return(t=n.activate(e))?n:null}));return t&&(this.$textbox=this._textbox.create(t.bounds,t.style,t.text,t.options),this._active={element:e,context:t,provider:n},t.options&&t.options.resizable&&(this.resizable=!0),this._fire("activate")),!!t};var Xp={__depends__:[Hp],__init__:["directEditing"],directEditing:["type",Yp]},Zp=".entry";function Jp(e,t,n){this._eventBus=t,this._overlays=n;var i=c(e&&e.scale)?e.scale:{min:1,max:1.5};this._overlaysConfig={position:{right:-9,top:-6},scale:i},this._current=null,this._init()}Jp.$inject=["config.contextPad","eventBus","overlays"],Jp.prototype._init=function(){var e=this._eventBus,t=this;e.on("selection.changed",(function(e){var n=e.newSelection;1===n.length?t.open(n[0]):t.close()})),e.on("elements.delete",(function(e){_(e.elements,(function(e){t.isOpen(e)&&t.close()}))})),e.on("element.changed",(function(e){var n=e.element,i=t._current;i&&i.element===n&&t.open(n,!0)}))},Jp.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("contextPad.getProviders",e,(function(e){e.providers.push(t)}))},Jp.prototype.getEntries=function(e){var t=this._getProviders(),n={};return _(t,(function(t){var i=t.getContextPadEntries(e);f(i)?n=i(n):_(i,(function(e,t){n[t]=e}))})),n},Jp.prototype.trigger=function(e,t,n){var i,r,o=this._current.element,a=this._current.entries,s=t.delegateTarget||t.target;if(!s)return t.preventDefault();if(i=a[X(s,"data-action")].action,r=t.originalEvent||t,f(i)){if("click"===e)return i(r,o,n)}else if(i[e])return i[e](r,o,n);t.preventDefault()},Jp.prototype.open=function(e,t){!t&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))},Jp.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},Jp.prototype._updateAndOpen=function(e){var t=this.getEntries(e),n=this.getPad(e),i=n.html;_(t,(function(e,t){var n,r=e.group||"default",o=fe(e.html||'<div class="entry" draggable="true"></div>');X(o,"data-action",t),(n=ve("[data-group="+r+"]",i))||(n=fe('<div class="group" data-group="'+r+'"></div>'),i.appendChild(n)),n.appendChild(o),e.className&&function(e,t){var n=te(e);(d(t)?t:t.split(/\s+/g)).forEach((function(e){n.add(e)}))}(o,e.className),e.title&&X(o,"title",e.title),e.imageUrl&&o.appendChild(fe('<img src="'+e.imageUrl+'">'))})),te(i).add("open"),this._current={element:e,pad:n,entries:t},this._eventBus.fire("contextPad.open",{current:this._current})},Jp.prototype.getPad=function(e){if(this.isOpen())return this._current.pad;var t=this,n=this._overlays,i=fe('<div class="djs-context-pad"></div>'),r=q({html:i},this._overlaysConfig);me.bind(i,Zp,"click",(function(e){t.trigger("click",e)})),me.bind(i,Zp,"dragstart",(function(e){t.trigger("dragstart",e)})),ue.bind(i,"mousedown",(function(e){e.stopPropagation()})),this._overlayId=n.add(e,"context-pad",r);var o=n.get(this._overlayId);return this._eventBus.fire("contextPad.create",{element:e,pad:o}),o},Jp.prototype.close=function(){this.isOpen()&&(this._overlays.remove(this._overlayId),this._overlayId=null,this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},Jp.prototype.isOpen=function(e){return!(!this._current||e&&this._current.element!==e)};var Qp={__depends__:[Ao,Wo],contextPad:["type",Jp]},el=["marker-start","marker-mid","marker-end"],tl=["circle","ellipse","line","path","polygon","polyline","rect"];function nl(e,t,n,i){this._elementRegistry=e,this._canvas=n,this._styles=i,this._clonedMarkers={};var r=this;t.on("drag.cleanup",(function(){_(r._clonedMarkers,(function(e){Re(e)})),r._clonedMarkers={}}))}nl.$inject=["elementRegistry","eventBus","canvas","styles"],nl.prototype.getGfx=function(e){return this._elementRegistry.getGraphics(e)},nl.prototype.addDragger=function(e,t,n){var i=De(n=n||this.getGfx(e)),r=n.getBoundingClientRect();return this._cloneMarkers(Gn(i)),Oe(i,this._styles.cls("djs-dragger",[],{x:r.top,y:r.left})),_e(t,i),i},nl.prototype.addFrame=function(e,t){var n=Le("rect",{class:"djs-resize-overlay",width:e.width,height:e.height,x:e.x,y:e.y});return _e(t,n),n},nl.prototype._cloneMarkers=function(e){var t=this;if(e.childNodes)for(var n=0;n<e.childNodes.length;n++)t._cloneMarkers(e.childNodes[n]);(function(e){return-1!==tl.indexOf(e.nodeName)})(e)&&el.forEach((function(n){if(Oe(e,n)){var i=function(e,t,n){return ve("marker#"+(i=Oe(e,t),i.match(/url\(['"]?#([^'"]*)['"]?\)/)[1]),n||document);var i}(e,n,t._canvas.getContainer());t._cloneMarker(e,i,n)}}))},nl.prototype._cloneMarker=function(e,t,n){var i=t.id,r=this._clonedMarkers[i];if(!r){var o=i+"-clone";(r=De(t)).id=o,Te(r).add("djs-dragger").add("djs-dragger-marker"),this._clonedMarkers[i]=r;var a=ve("defs",this._canvas._svg);a||(a=Le("defs"),_e(this._canvas._svg,a)),_e(a,r)}Oe(e,n,"url(#"+this._clonedMarkers[i].id+")")};var il={__init__:["previewSupport"],previewSupport:["type",nl]},rl="drop-ok",ol="drop-not-ok",al="attach-ok",sl="new-parent",pl="create";function ll(e,t,n,i,r){function o(t,n){[al,rl,ol,sl].forEach((function(i){i===n?e.addMarker(t,i):e.removeMarker(t,i)}))}function a(){var e=t.context();e&&e.prefix===pl&&t.cancel()}n.on(["create.move","create.hover"],(function(e){var t=e.context,n=t.elements,i=e.hover,a=t.source,s=t.hints||{};if(!i)return t.canExecute=!1,void(t.target=null);cl(e);var p={x:e.x,y:e.y},l=t.canExecute=i&&function(e,t,n,i,o){if(!t)return!1;var a=b(e=w(e,(function(t){var n=t.labelTarget;return!(t.parent||function(e){return!!e.labelTarget}(t)&&-1!==e.indexOf(n))})),(function(e){return!ul(e)})),s=!1,p=!1,l=!1;dl(e)&&(s=r.allowed("shape.attach",{position:n,shape:a,target:t})),s||(l=dl(e)?r.allowed("shape.create",{position:n,shape:a,source:i,target:t}):r.allowed("elements.create",{elements:e,position:n,target:t}));var c=o.connectionTarget;return l||s?(a&&i&&(p=r.allowed("connection.create",{source:c===i?a:i,target:c===i?i:a,hints:{targetParent:t,targetAttach:s}})),{attach:s,connect:p}):(null===l||null===s)&&null}(n,i,p,a,s);i&&null!==l&&(t.target=i,l&&l.attach?o(i,al):o(i,l?sl:ol))})),n.on(["create.end","create.out","create.cleanup"],(function(e){var t=e.hover;t&&o(t,null)})),n.on("create.end",(function(e){var t=e.context,n=t.source,r=t.shape,o=t.elements,a=t.target,s=t.canExecute,p=s&&s.attach,l=s&&s.connect,c=t.hints||{};if(!1===s||!a)return!1;cl(e);var u={x:e.x,y:e.y};r=l?i.appendShape(n,r,u,a,{attach:p,connection:!0===l?{}:l,connectionTarget:c.connectionTarget}):b(o=i.createElements(o,u,a,q({},c,{attach:p})),(function(e){return!ul(e)})),q(t,{elements:o,shape:r}),q(e,{elements:o,shape:r})})),n.on("create.init",(function(){n.on("elements.changed",a),n.once(["create.cancel","create.end"],2e3,(function(){n.off("elements.changed",a)}))})),this.start=function(e,n,i){d(n)||(n=[n]);var r=b(n,(function(e){return!ul(e)}));if(r){i=q({elements:n,hints:{},shape:r},i||{}),_(n,(function(e){m(e.x)||(e.x=0),m(e.y)||(e.y=0)}));var o=yt(w(n,(function(e){return!e.hidden})));_(n,(function(e){ul(e)&&(e.waypoints=k(e.waypoints,(function(e){return{x:e.x-o.x-o.width/2,y:e.y-o.y-o.height/2}}))),q(e,{x:e.x-o.x-o.width/2,y:e.y-o.y-o.height/2})})),t.init(e,pl,{cursor:"grabbing",autoActivate:!0,data:{shape:r,elements:n,context:i}})}}}function cl(e){var t=e.context.createConstraints;t&&(t.left&&(e.x=Math.max(e.x,t.left)),t.right&&(e.x=Math.min(e.x,t.right)),t.top&&(e.y=Math.max(e.y,t.top)),t.bottom&&(e.y=Math.min(e.y,t.bottom)))}function ul(e){return!!e.waypoints}function dl(e){return e&&1===e.length&&!ul(e[0])}ll.$inject=["canvas","dragging","eventBus","modeling","rules"];function hl(e,t,n,i,r){t.on("create.move",750,(function(t){var o=t.hover,a=t.context,s=a.elements,p=a.dragGroup;p||(p=a.dragGroup=function(e){var t=Le("g");Oe(t,r.cls("djs-drag-group",["no-events"]));var o=Le("g");return e.forEach((function(e){var r;e.hidden||(e.waypoints?(r=n._createContainer("connection",o),n.drawConnection(Gn(r),e)):(r=n._createContainer("shape",o),n.drawShape(Gn(r),e),Kn(r,e.x,e.y)),i.addDragger(e,t,r))})),t}(s)),o?(p.parentNode||_e(e.getActiveLayer(),p),Kn(p,t.x,t.y)):Re(p)})),t.on("create.cleanup",(function(e){var t=e.context.dragGroup;t&&Re(t)}))}hl.$inject=["canvas","eventBus","graphicsFactory","previewSupport","styles"];var ml={__depends__:[Ds,il,Is,$o],__init__:["create","createPreview"],create:["type",ll],createPreview:["type",hl]},fl="data-id",yl=["contextPad.close","canvas.viewbox.changing","commandStack.changed"];function gl(e,t,n){var i=c(e&&e.scale)?e.scale:{min:1,max:1.5};this._config={scale:i},this._eventBus=t,this._canvas=n,this._providers={},this._current={}}gl.$inject=["config.popupMenu","eventBus","canvas"],gl.prototype.registerProvider=function(e,t,n){n||(n=t,t=1e3),this._eventBus.on("popupMenu.getProviders."+e,t,(function(e){e.providers.push(n)}))},gl.prototype.isEmpty=function(e,t){if(!e)throw new Error("element parameter is missing");if(!t)throw new Error("providerId parameter is missing");var n=this._getProviders(t);if(!n)return!0;var i=this._getEntries(e,n),r=this._getHeaderEntries(e,n),o=M(i)>0,a=r&&M(r)>0;return!o&&!a},gl.prototype.open=function(e,t,n){var i=this._getProviders(t);if(!e)throw new Error("Element is missing");if(!i||!i.length)throw new Error("No registered providers for: "+t);if(!n)throw new Error("the position argument is missing");this.isOpen()&&this.close(),this._emit("open");var r=this._current={className:t,element:e,position:n},o=this._getEntries(e,i),a=this._getHeaderEntries(e,i);r.entries=q({},o,a),r.container=this._createContainer(),M(a)&&r.container.appendChild(this._createEntries(a,"djs-popup-header")),M(o)&&r.container.appendChild(this._createEntries(o,"djs-popup-body"));var s=this._canvas.getContainer();this._attachContainer(r.container,s,n.cursor),this._bindAutoClose()},gl.prototype.close=function(){this.isOpen()&&(this._emit("close"),this._unbindAutoClose(),xe(this._current.container),this._current.container=null)},gl.prototype.isOpen=function(){return!!this._current.container},gl.prototype.trigger=function(e){e.preventDefault();var t=X(e.delegateTarget||e.target,fl),n=this._getEntry(t);if(n.action)return n.action.call(null,e,n)},gl.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"popupMenu.getProviders."+e,providers:[]});return this._eventBus.fire(t),t.providers},gl.prototype._getEntries=function(e,t){var n={};return _(t,(function(t){if(t.getPopupMenuEntries){var i=t.getPopupMenuEntries(e);f(i)?n=i(n):_(i,(function(e,t){n[t]=e}))}else _(t.getEntries(e),(function(e){var t=e.id;if(!t)throw new Error("every entry must have the id property set");n[t]=K(e,["id"])}))})),n},gl.prototype._getHeaderEntries=function(e,t){var n={};return _(t,(function(t){if(t.getPopupMenuHeaderEntries){var i=t.getPopupMenuHeaderEntries(e);f(i)?n=i(n):_(i,(function(e,t){n[t]=e}))}else{if(!t.getHeaderEntries)return;_(t.getHeaderEntries(e),(function(e){var t=e.id;if(!t)throw new Error("every entry must have the id property set");n[t]=K(e,["id"])}))}})),n},gl.prototype._getEntry=function(e){var t=this._current.entries[e];if(!t)throw new Error("entry not found");return t},gl.prototype._emit=function(e){this._eventBus.fire("popupMenu."+e)},gl.prototype._createContainer=function(){var e=fe('<div class="djs-popup">'),t=this._current.position,n=this._current.className;return q(e.style,{position:"absolute",left:t.x+"px",top:t.y+"px",visibility:"hidden"}),te(e).add(n),e},gl.prototype._attachContainer=function(e,t,n){var i=this;me.bind(e,".entry","click",(function(e){i.trigger(e)})),this._updateScale(e),t.appendChild(e),n&&this._assureIsInbounds(e,n)},gl.prototype._updateScale=function(e){var t,n,i=this._canvas.zoom(),r=this._config.scale,o=i;!0!==r&&(!1===r?(t=1,n=1):(t=r.min,n=r.max),c(t)&&i<t&&(o=t),c(n)&&i>n&&(o=n)),function(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(n){e.style[n+"transform"]=t}))}(e,"scale("+o+")")},gl.prototype._assureIsInbounds=function(e,t){var n,i,r=this._canvas._container.getBoundingClientRect(),o=e.offsetLeft,a=e.offsetTop,s=e.scrollWidth,p=e.scrollHeight,l={},c=t.x-r.left,u=t.y-r.top;o+s>r.width&&(l.x=!0),a+p>r.height&&(l.y=!0),l.x&&l.y?(n=c-s+"px",i=u-p+"px"):l.x?(n=c-s+"px",i=u+"px"):l.y&&u<p?(n=c+"px",i="10px"):l.y&&(n=c+"px",i=u-p+"px"),q(e.style,{left:n,top:i},{visibility:"visible","z-index":1e3})},gl.prototype._createEntries=function(e,t){var n=fe("<div>"),i=this;return te(n).add(t),_(e,(function(e,t){var r=i._createEntry(e,t);n.appendChild(r)})),n},gl.prototype._createEntry=function(e,t){var n=fe("<div>"),i=te(n);if(i.add("entry"),e.className&&e.className.split(" ").forEach((function(e){i.add(e)})),X(n,fl,t),e.label){var r=fe("<span>");r.textContent=e.label,n.appendChild(r)}return e.imageUrl&&n.appendChild(fe('<img src="'+e.imageUrl+'" />')),!0===e.active&&i.add("active"),!0===e.disabled&&i.add("disabled"),e.title&&(n.title=e.title),n},gl.prototype._bindAutoClose=function(){this._eventBus.once(yl,this.close,this)},gl.prototype._unbindAutoClose=function(){this._eventBus.off(yl,this.close,this)};var vl={__init__:["popupMenu"],popupMenu:["type",gl]};function bl(){}bl.prototype.get=function(){return this._data},bl.prototype.set=function(e){this._data=e},bl.prototype.clear=function(){var e=this._data;return delete this._data,e},bl.prototype.isEmpty=function(){return!this._data};var xl={clipboard:["type",bl]};function wl(e){var t=this;function n(e){t._lastMoveEvent=e}this._lastMoveEvent=null,e.on("canvas.init",(function(e){(t._svg=e.svg).addEventListener("mousemove",n)})),e.on("canvas.destroy",(function(){t._lastMouseEvent=null,t._svg.removeEventListener("mousemove",n)}))}wl.$inject=["eventBus"],wl.prototype.getLastMoveEvent=function(){return this._lastMoveEvent||function(e,t){var n=document.createEvent("MouseEvent"),i=e,r=t,o=e,a=t;n.initMouseEvent&&n.initMouseEvent("mousemove",!0,!0,window,0,i,r,o,a,!1,!1,!1,!1,0,null);return n}(0,0)};var _l={__init__:["mouse"],mouse:["type",wl]};function El(e,t,n,i,r,o,a,s){this._canvas=e,this._create=t,this._clipboard=n,this._elementFactory=i,this._eventBus=r,this._modeling=o,this._mouse=a,this._rules=s,r.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element,i=e.elements;t.priority=1,t.id=n.id,b(i,(function(e){return e===n.parent}))&&(t.parent=n.parent.id),function(e){return!!e.host}(n)&&(t.priority=2,t.host=n.host.id),Pl(n)&&(t.priority=3,t.source=n.source.id,t.target=n.target.id,t.waypoints=function(e){return k(e.waypoints,(function(e){return(e=Sl(e)).original&&(e.original=Sl(e.original)),e}))}(n)),Ol(n)&&(t.priority=4,t.labelTarget=n.labelTarget.id),_(["x","y","width","height"],(function(e){m(n[e])&&(t[e]=n[e])})),t.hidden=n.hidden,t.collapsed=n.collapsed})),r.on("copyPaste.pasteElements",(function(e){q(e.hints,{createElementsBehavior:!1})}))}function Pl(e){return!!e.waypoints}function Ol(e){return!!e.labelTarget}function Sl(e){return q({},e)}function kl(e,t){var n=t.indexOf(e);return-1===n?t:t.splice(n,1)}El.$inject=["canvas","create","clipboard","elementFactory","eventBus","modeling","mouse","rules"],El.prototype.copy=function(e){var t,n;return d(e)||(e=e?[e]:[]),n=!1===(t=this._eventBus.fire("copyPaste.canCopyElements",{elements:e}))?{}:this.createTree(d(t)?t:e),this._clipboard.set(n),this._eventBus.fire("copyPaste.elementsCopied",{elements:e,tree:n}),n},El.prototype.paste=function(e){var t=this._clipboard.get();if(!this._clipboard.isEmpty()){var n=e&&e.hints||{};this._eventBus.fire("copyPaste.pasteElements",{hints:n});var i=this._createElements(t);if(e&&e.element&&e.point)return this._paste(i,e.element,e.point,n);this._create.start(this._mouse.getLastMoveEvent(),i,{hints:n||{}})}},El.prototype._paste=function(e,t,n,i){_(e,(function(e){m(e.x)||(e.x=0),m(e.y)||(e.y=0)}));var r=yt(e);return _(e,(function(e){Pl(e)&&(e.waypoints=k(e.waypoints,(function(e){return{x:e.x-r.x-r.width/2,y:e.y-r.y-r.height/2}}))),q(e,{x:e.x-r.x-r.width/2,y:e.y-r.y-r.height/2})})),this._modeling.createElements(e,n,t,q({},i))},El.prototype._createElements=function(e){var t=this,n=this._eventBus,i={},r=[];return _(e,(function(e,o){_(e=D(e,"priority"),(function(e){var o,a=q({},K(e,["priority"]));return i[e.parent]?a.parent=i[e.parent]:delete a.parent,n.fire("copyPaste.pasteElement",{cache:i,descriptor:a}),Pl(a)?(a.source=i[e.source],a.target=i[e.target],o=i[e.id]=t.createConnection(a),void r.push(o)):Ol(a)?(a.labelTarget=i[a.labelTarget],o=i[e.id]=t.createLabel(a),void r.push(o)):(a.host&&(a.host=i[a.host]),o=i[e.id]=t.createShape(a),void r.push(o))}))})),r},El.prototype.createConnection=function(e){return this._elementFactory.createConnection(K(e,["id"]))},El.prototype.createLabel=function(e){return this._elementFactory.createLabel(K(e,["id"]))},El.prototype.createShape=function(e){return this._elementFactory.createShape(K(e,["id"]))},El.prototype.hasRelations=function(e,t){var n,i;return!(Pl(e)&&(n=b(t,j({id:e.source.id})),i=b(t,j({id:e.target.id})),!n||!i))&&!(Ol(e)&&!b(t,j({id:e.labelTarget.id})))},El.prototype.createTree=function(e){var t=this._rules,n=this,i={},r=[];function o(e,t){var n=b(r,(function(t){return e===t.element}));n?n.depth<t&&(r=function(e,t){var n=t.indexOf(e);-1!==n&&t.splice(n,1);return t}(n,r)).push({element:n.element,depth:t}):r.push({element:e,depth:t})}return mt(ut(e),(function(e,t,i){if(!Ol(e)){_(e.labels,(function(e){o(e,i)})),_([e.attachers,e.incoming,e.outgoing],(function(e){e&&e.length&&_(e,(function(e){_(e.labels,(function(e){o(e,i)})),o(e,i)}))})),o(e,i);var r=[];return e.children&&(r=e.children.slice()),n._eventBus.fire("copyPaste.createTree",{element:e,children:r}),r}})),e=k(r,(function(e){return e.element})),r=D(r=k(r,(function(t){return t.descriptor={},n._eventBus.fire("copyPaste.copyElement",{descriptor:t.descriptor,element:t.element,elements:e}),t})),(function(e){return e.descriptor.priority})),e=k(r,(function(e){return e.element})),_(r,(function(r){var o=r.depth;n.hasRelations(r.element,e)?!function(e,n){return t.allowed("element.copy",{element:e,elements:n})}(r.element,e)?kl(r.element,e):(i[o]||(i[o]=[]),i[o].push(r.descriptor)):kl(r.element,e)})),i};var Cl={__depends__:[xl,ml,_l,Is],__init__:["copyPaste"],copyPaste:["type",El]};function Ml(e,t,n){d(n)||(n=[n]),_(n,(function(n){l(e[n])||(t[n]=e[n])}))}function Tl(e,t,n){var i;t.on("copyPaste.copyElement",750,(function(e){var t=e.descriptor,n=e.element,i=t.oldBusinessObject=Er(n),r=t.oldDi=Pr(n);if(t.type=n.type,Ml(i,t,"name"),Ml(r,t,"isExpanded"),Al(t))return t;i.default&&(t.default=i.default.id)})),t.on("moddleCopy.canCopyProperty",(function(t){var i,r=t.parent,o=t.property;if("processRef"===t.propertyName&&wr(r,"bpmn:Participant")&&wr(o,"bpmn:Process"))return i=e.create("bpmn:Process"),n.copyElement(o,i)})),t.on("copyPaste.pasteElements",(function(){i={}})),t.on("copyPaste.pasteElement",(function(t){var r,o,a,s,p=t.cache,l=t.descriptor,c=l.oldBusinessObject,u=l.oldDi;if(Al(l))return l.businessObject=Er(p[l.labelTarget]),void(l.di=Pr(p[l.labelTarget]));r=e.create(c.$type),l.businessObject=n.copyElement(c,r),(o=e.create(u.$type)).bpmnElement=r,l.di=n.copyElement(u,o),function(e,t){var n=Er(e);e.default&&(i[e.default]={element:n,property:"default"}),e.host&&(Er(e).attachedToRef=Er(t[e.host])),i=K(i,P(i,(function(t,i,r){var o=i.element,a=i.property;return r===e.id&&(o[a]=n,t.push(e.id)),t}),[]))}(l,p),Ml(l,r,["isExpanded","name"]),a=l,d(s="oldBusinessObject")||(s=[s]),_(s,(function(e){a[e]&&delete a[e]}))}))}function Al(e){return!!e.labelTarget}Tl.$inject=["bpmnFactory","eventBus","moddleCopy"];var Rl=["artifacts","dataInputAssociations","dataOutputAssociations","default","flowElements","lanes","incoming","outgoing"];function zl(e,t,n){this._bpmnFactory=t,this._eventBus=e,this._moddle=n,e.on("moddleCopy.canCopyProperties",(function(e){var t=e.propertyNames;if(t&&t.length)return D(t,(function(e){return"extensionElements"===e}))})),e.on("moddleCopy.canCopyProperty",(function(e){var t=e.parent,n=h(t)&&t.$descriptor,i=e.propertyName;return(!i||-1===Rl.indexOf(i))&&(!(i&&n&&!b(n.properties,j({name:i})))&&void 0)})),e.on("moddleCopy.canSetCopiedProperty",(function(e){var t,n,i=e.property;if(n="bpmn:ExtensionElements",(t=i)&&"function"==typeof t.$instanceOf&&t.$instanceOf(n)&&(!i.values||!i.values.length))return!1}))}function Dl(e,t){return P(e.properties,(function(e,n){return t&&n.default?e:e.concat(n.name)}),[])}zl.$inject=["eventBus","bpmnFactory","moddle"],zl.prototype.copyElement=function(e,t,n){var i=this;n&&!d(n)&&(n=[n]),n=n||Dl(e.$descriptor);var r=this._eventBus.fire("moddleCopy.canCopyProperties",{propertyNames:n,sourceElement:e,targetElement:t});return!1===r||(d(r)&&(n=r),_(n,(function(n){var r;v(e,n)&&(r=e.get(n));var o=i.copyProperty(r,t,n);!1!==i._eventBus.fire("moddleCopy.canSetCopiedProperty",{parent:t,property:o,propertyName:n})&&c(o)&&t.set(n,o)}))),t},zl.prototype.copyProperty=function(e,t,n){var i=this,r=this._eventBus.fire("moddleCopy.canCopyProperty",{parent:t,property:e,propertyName:n});if(!1!==r){if(r)return h(r)&&r.$type&&!r.$parent&&(r.$parent=t),r;var o=this._moddle.getPropertyDescriptor(t,n);if(!o.isReference){if(o.isId)return this._copyId(e,t);if(d(e))return P(e,(function(e,o){return(r=i.copyProperty(o,t,n))?(r.$parent=t,e.concat(r)):e}),[]);if(h(e)&&e.$type){if(this._moddle.getElementDescriptor(e).isGeneric)return;return(r=i._bpmnFactory.create(e.$type)).$parent=t,r=i.copyElement(e,r)}return e}}},zl.prototype._copyId=function(e,t){return this._moddle.ids.assigned(e)?void 0:(this._moddle.ids.claim(e,t),e)};var jl={__depends__:[Cl],__init__:["bpmnCopyPaste","moddleCopy"],bpmnCopyPaste:["type",Tl],moddleCopy:["type",zl]},Bl=Math.round;function Nl(e){this._modeling=e}Nl.$inject=["modeling"],Nl.prototype.replaceElement=function(e,t,n){if(e.waypoints)return null;var i=this._modeling,r=t.width||e.width,o=t.height||e.height,a=t.x||e.x,s=t.y||e.y,p=Bl(a+r/2),l=Bl(s+o/2);return i.replaceShape(e,q({},t,{x:p,y:l,width:r,height:o}),n)};var Ll={__init__:["replace"],replace:["type",Nl]};var Il=["cancelActivity","instantiate","eventGatewayType","triggeredByEvent","isInterrupting"];function $l(e,t,n,i,r,o,a){this.replaceElement=function(s,p,c){c=c||{};var u=p.type,h=s.businessObject;if(Fl(h)&&"bpmn:SubProcess"===u&&function(e,t){var n=e&&v(e,"collapsed")?e.collapsed:!Nr(e);return n!==(t&&(v(t,"collapsed")||v(t,"isExpanded"))?v(t,"collapsed")?t.collapsed:!t.isExpanded:n)}(s,p))return i.toggleCollapse(s),s;var m=e.create(u),f={type:u,businessObject:m,di:{}};!function(e,t,n){d(n)||(n=[n]),_(n,(function(n){l(e[n])||(t[n]=e[n])}))}(s.di,f.di,["fill","stroke","background-color","border-color","color"]);var y,g=Dl(h.$descriptor),b=Dl(m.$descriptor,!0),x=(y=b,g.filter((function(e){return-1!==y.indexOf(e)})));q(m,W(p,Il));var E=w(x,(function(e){return"eventDefinitions"===e?Vl(s,p.eventDefinitionType):"loopCharacteristics"===e?!Ir(m):!v(m,e)&&(("processRef"!==e||!1!==p.isExpanded)&&"triggeredByEvent"!==e)}));return m=n.copyElement(h,m,E),p.eventDefinitionType&&(Vl(m,p.eventDefinitionType)||(f.eventDefinitionType=p.eventDefinitionType,f.eventDefinitionAttrs=p.eventDefinitionAttrs)),wr(h,"bpmn:Activity")&&(Fl(h)?f.isExpanded=Nr(s):p&&v(p,"isExpanded")&&(f.isExpanded=p.isExpanded),Nr(s)&&!wr(h,"bpmn:Task")&&f.isExpanded&&(f.width=s.width,f.height=s.height)),Fl(h)&&!Fl(m)&&(c.moveChildren=!1),wr(h,"bpmn:Participant")&&(!0===p.isExpanded?m.processRef=e.create("bpmn:Process"):c.moveChildren=!1,f.width=s.width,f.height=t.getDefaultSize(f).height),o.allowed("shape.resize",{shape:m})||(f.height=t.getDefaultSize(f).height,f.width=t.getDefaultSize(f).width),m.name=h.name,_r(h,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&_r(m,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&(m.default=h.default),p.host&&!wr(h,"bpmn:BoundaryEvent")&&wr(m,"bpmn:BoundaryEvent")&&(f.host=p.host),"bpmn:DataStoreReference"!==f.type&&"bpmn:DataObjectReference"!==f.type||(f.x=s.x+(s.width-f.width)/2),f=r.replaceElement(s,f,c),!1!==c.select&&a.select(f),f}}function Fl(e){return wr(e,"bpmn:SubProcess")}function Vl(e,t){var n=Er(e);return t&&n.get("eventDefinitions").some((function(e){return wr(e,t)}))}$l.$inject=["bpmnFactory","elementFactory","moddleCopy","modeling","replace","rules","selection"];var Hl={__depends__:[jl,Ll,$o],bpmnReplace:["type",$l]};function ql(e){return function(t){var n=t.target,i=Er(e),r=i.eventDefinitions&&i.eventDefinitions[0],o=i.$type===n.type,a=(r&&r.$type)===n.eventDefinitionType,s=i.triggeredByEvent===n.triggeredByEvent,p=void 0===n.isExpanded||n.isExpanded===Nr(e);return!(o&&a&&s&&p)}}var Ul=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message Start Event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Start Event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional Start Event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal Start Event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],Gl=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}}],Wl=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message Intermediate Catch Event",actionName:"replace-with-message-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Message Intermediate Throw Event",actionName:"replace-with-message-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-message",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Intermediate Catch Event",actionName:"replace-with-timer-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Intermediate Throw Event",actionName:"replace-with-escalation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-escalation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Intermediate Catch Event",actionName:"replace-with-conditional-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Link Intermediate Catch Event",actionName:"replace-with-link-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-link",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Link Intermediate Throw Event",actionName:"replace-with-link-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-link",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Compensation Intermediate Throw Event",actionName:"replace-with-compensation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-compensation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal Intermediate Catch Event",actionName:"replace-with-signal-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Signal Intermediate Throw Event",actionName:"replace-with-signal-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-signal",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],Kl=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message End Event",actionName:"replace-with-message-end",className:"bpmn-icon-end-event-message",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Escalation End Event",actionName:"replace-with-escalation-end",className:"bpmn-icon-end-event-escalation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Error End Event",actionName:"replace-with-error-end",className:"bpmn-icon-end-event-error",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel End Event",actionName:"replace-with-cancel-end",className:"bpmn-icon-end-event-cancel",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Compensation End Event",actionName:"replace-with-compensation-end",className:"bpmn-icon-end-event-compensation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal End Event",actionName:"replace-with-signal-end",className:"bpmn-icon-end-event-signal",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Terminate End Event",actionName:"replace-with-terminate-end",className:"bpmn-icon-end-event-terminate",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:TerminateEventDefinition"}}],Yl=[{label:"Exclusive Gateway",actionName:"replace-with-exclusive-gateway",className:"bpmn-icon-gateway-xor",target:{type:"bpmn:ExclusiveGateway"}},{label:"Parallel Gateway",actionName:"replace-with-parallel-gateway",className:"bpmn-icon-gateway-parallel",target:{type:"bpmn:ParallelGateway"}},{label:"Inclusive Gateway",actionName:"replace-with-inclusive-gateway",className:"bpmn-icon-gateway-or",target:{type:"bpmn:InclusiveGateway"}},{label:"Complex Gateway",actionName:"replace-with-complex-gateway",className:"bpmn-icon-gateway-complex",target:{type:"bpmn:ComplexGateway"}},{label:"Event based Gateway",actionName:"replace-with-event-based-gateway",className:"bpmn-icon-gateway-eventbased",target:{type:"bpmn:EventBasedGateway",instantiate:!1,eventGatewayType:"Exclusive"}}],Xl=[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Event Sub Process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}},{label:"Sub Process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}}],Zl=[{label:"Sub Process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Event Sub Process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}}],Jl=[{label:"Sub Process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}}],Ql=[{label:"Task",actionName:"replace-with-task",className:"bpmn-icon-task",target:{type:"bpmn:Task"}},{label:"Send Task",actionName:"replace-with-send-task",className:"bpmn-icon-send",target:{type:"bpmn:SendTask"}},{label:"Receive Task",actionName:"replace-with-receive-task",className:"bpmn-icon-receive",target:{type:"bpmn:ReceiveTask"}},{label:"User Task",actionName:"replace-with-user-task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},{label:"Manual Task",actionName:"replace-with-manual-task",className:"bpmn-icon-manual",target:{type:"bpmn:ManualTask"}},{label:"Business Rule Task",actionName:"replace-with-rule-task",className:"bpmn-icon-business-rule",target:{type:"bpmn:BusinessRuleTask"}},{label:"Service Task",actionName:"replace-with-service-task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},{label:"Script Task",actionName:"replace-with-script-task",className:"bpmn-icon-script",target:{type:"bpmn:ScriptTask"}},{label:"Call Activity",actionName:"replace-with-call-activity",className:"bpmn-icon-call-activity",target:{type:"bpmn:CallActivity"}},{label:"Sub Process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}},{label:"Sub Process (expanded)",actionName:"replace-with-expanded-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}}],ec=[{label:"Data Store Reference",actionName:"replace-with-data-store-reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}}],tc=[{label:"Data Object Reference",actionName:"replace-with-data-object-reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}}],nc=[{label:"Message Boundary Event",actionName:"replace-with-message-boundary",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Boundary Event",actionName:"replace-with-timer-boundary",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Boundary Event",actionName:"replace-with-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Boundary Event",actionName:"replace-with-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Error Boundary Event",actionName:"replace-with-error-boundary",className:"bpmn-icon-intermediate-event-catch-error",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel Boundary Event",actionName:"replace-with-cancel-boundary",className:"bpmn-icon-intermediate-event-catch-cancel",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Signal Boundary Event",actionName:"replace-with-signal-boundary",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Compensation Boundary Event",actionName:"replace-with-compensation-boundary",className:"bpmn-icon-intermediate-event-catch-compensation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Message Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-message-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!1}},{label:"Timer Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!1}},{label:"Escalation Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!1}},{label:"Conditional Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!1}},{label:"Signal Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!1}}],ic=[{label:"Message Start Event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Start Event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional Start Event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal Start Event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Error Start Event",actionName:"replace-with-error-start",className:"bpmn-icon-start-event-error",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Escalation Start Event",actionName:"replace-with-escalation-start",className:"bpmn-icon-start-event-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Compensation Start Event",actionName:"replace-with-compensation-start",className:"bpmn-icon-start-event-compensation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Message Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-message-start",className:"bpmn-icon-start-event-non-interrupting-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!1}},{label:"Timer Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-start",className:"bpmn-icon-start-event-non-interrupting-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!1}},{label:"Conditional Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-start",className:"bpmn-icon-start-event-non-interrupting-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!1}},{label:"Signal Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-start",className:"bpmn-icon-start-event-non-interrupting-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!1}},{label:"Escalation Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-start",className:"bpmn-icon-start-event-non-interrupting-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!1}}],rc=[{label:"Sequence Flow",actionName:"replace-with-sequence-flow",className:"bpmn-icon-connection"},{label:"Default Flow",actionName:"replace-with-default-flow",className:"bpmn-icon-default-flow"},{label:"Conditional Flow",actionName:"replace-with-conditional-flow",className:"bpmn-icon-conditional-flow"}],oc=[{label:"Expanded Pool",actionName:"replace-with-expanded-pool",className:"bpmn-icon-participant",target:{type:"bpmn:Participant",isExpanded:!0}},{label:function(e){var t="Empty Pool";return e.children&&e.children.length&&(t+=" (removes content)"),t},actionName:"replace-with-collapsed-pool",className:"bpmn-icon-lane",target:{type:"bpmn:Participant",isExpanded:!1}}];function ac(e,t,n,i,r,o,a){this._bpmnFactory=e,this._popupMenu=t,this._modeling=n,this._moddle=i,this._bpmnReplace=r,this._rules=o,this._translate=a,this.register()}ac.$inject=["bpmnFactory","popupMenu","modeling","moddle","bpmnReplace","rules","translate"],ac.prototype.register=function(){this._popupMenu.registerProvider("bpmn-replace",this)},ac.prototype.getEntries=function(e){var t,n=e.businessObject;if(!this._rules.allowed("shape.replace",{element:e}))return[];var i=ql(e);return wr(n,"bpmn:DataObjectReference")?this._createEntries(e,ec):wr(n,"bpmn:DataStoreReference")&&!wr(e.parent,"bpmn:Collaboration")?this._createEntries(e,tc):wr(n,"bpmn:StartEvent")&&!wr(n.$parent,"bpmn:SubProcess")?(t=w(Ul,i),this._createEntries(e,t)):wr(n,"bpmn:Participant")?(t=w(oc,(function(t){return Nr(e)!==t.target.isExpanded})),this._createEntries(e,t)):wr(n,"bpmn:StartEvent")&&Ir(n.$parent)?(t=w(ic,(function(t){var n=!1!==t.target.isInterrupting,r=Er(e).isInterrupting===n;return i(t)||!i(t)&&!r})),this._createEntries(e,t)):wr(n,"bpmn:StartEvent")&&!Ir(n.$parent)&&wr(n.$parent,"bpmn:SubProcess")?(t=w(Gl,i),this._createEntries(e,t)):wr(n,"bpmn:EndEvent")?(t=w(Kl,(function(e){return!("bpmn:CancelEventDefinition"==e.target.eventDefinitionType&&!wr(n.$parent,"bpmn:Transaction"))&&i(e)})),this._createEntries(e,t)):wr(n,"bpmn:BoundaryEvent")?(t=w(nc,(function(e){var t=e.target;if("bpmn:CancelEventDefinition"==t.eventDefinitionType&&!wr(n.attachedToRef,"bpmn:Transaction"))return!1;var r=!1!==t.cancelActivity,o=n.cancelActivity==r;return i(e)||!i(e)&&!o})),this._createEntries(e,t)):wr(n,"bpmn:IntermediateCatchEvent")||wr(n,"bpmn:IntermediateThrowEvent")?(t=w(Wl,i),this._createEntries(e,t)):wr(n,"bpmn:Gateway")?(t=w(Yl,i),this._createEntries(e,t)):wr(n,"bpmn:Transaction")?(t=w(Zl,i),this._createEntries(e,t)):Ir(n)&&Nr(e)?(t=w(Jl,i),this._createEntries(e,t)):wr(n,"bpmn:SubProcess")&&Nr(e)?(t=w(Xl,i),this._createEntries(e,t)):wr(n,"bpmn:AdHocSubProcess")&&!Nr(e)?(t=w(Ql,(function(t){var n=t.target,i="bpmn:SubProcess"===n.type,r=!0===n.isExpanded;return ql(e)&&(!i||r)})),this._createEntries(e,t)):wr(n,"bpmn:SequenceFlow")?this._createSequenceFlowEntries(e,rc):wr(n,"bpmn:FlowNode")?(t=w(Ql,i),wr(n,"bpmn:SubProcess")&&!Nr(e)&&(t=w(t,(function(e){return"Sub Process (collapsed)"!==e.label}))),this._createEntries(e,t)):[]},ac.prototype.getHeaderEntries=function(e){var t=[];return wr(e,"bpmn:Activity")&&!Ir(e)&&(t=t.concat(this._getLoopEntries(e))),wr(e,"bpmn:DataObjectReference")&&(t=t.concat(this._getDataObjectIsCollection(e))),wr(e,"bpmn:Participant")&&(t=t.concat(this._getParticipantMultiplicity(e))),!wr(e,"bpmn:SubProcess")||wr(e,"bpmn:Transaction")||Ir(e)||t.push(this._getAdHocEntry(e)),t},ac.prototype._createEntries=function(e,t){var n=[],i=this;return _(t,(function(t){var r=i._createMenuEntry(t,e);n.push(r)})),n},ac.prototype._createSequenceFlowEntries=function(e,t){var n=Er(e),i=[],r=this._modeling,o=this._moddle,a=this;return _(t,(function(t){switch(t.actionName){case"replace-with-default-flow":n.sourceRef.default!==n&&(wr(n.sourceRef,"bpmn:ExclusiveGateway")||wr(n.sourceRef,"bpmn:InclusiveGateway")||wr(n.sourceRef,"bpmn:ComplexGateway")||wr(n.sourceRef,"bpmn:Activity"))&&i.push(a._createMenuEntry(t,e,(function(){r.updateProperties(e.source,{default:n})})));break;case"replace-with-conditional-flow":!n.conditionExpression&&wr(n.sourceRef,"bpmn:Activity")&&i.push(a._createMenuEntry(t,e,(function(){var t=o.create("bpmn:FormalExpression",{body:""});r.updateProperties(e,{conditionExpression:t})})));break;default:if(wr(n.sourceRef,"bpmn:Activity")&&n.conditionExpression)return i.push(a._createMenuEntry(t,e,(function(){r.updateProperties(e,{conditionExpression:void 0})})));if((wr(n.sourceRef,"bpmn:ExclusiveGateway")||wr(n.sourceRef,"bpmn:InclusiveGateway")||wr(n.sourceRef,"bpmn:ComplexGateway")||wr(n.sourceRef,"bpmn:Activity"))&&n.sourceRef.default===n)return i.push(a._createMenuEntry(t,e,(function(){r.updateProperties(e.source,{default:void 0})})))}})),i},ac.prototype._createMenuEntry=function(e,t,n){var i=this._translate,r=this._bpmnReplace.replaceElement,o=e.label;return o&&"function"==typeof o&&(o=o(t)),n=n||function(){return r(t,e.target)},{label:i(o),className:e.className,id:e.actionName,action:n}},ac.prototype._getLoopEntries=function(e){var t=this,n=this._translate;function i(n,i){var r;i.active?r=void 0:(r=t._moddle.create(i.options.loopCharacteristics),i.options.isSequential&&(r.isSequential=i.options.isSequential)),t._modeling.updateProperties(e,{loopCharacteristics:r})}var r,o,a,s=Er(e).loopCharacteristics;return s&&(r=s.isSequential,o=void 0===s.isSequential,a=void 0!==s.isSequential&&!s.isSequential),[{id:"toggle-parallel-mi",className:"bpmn-icon-parallel-mi-marker",title:n("Parallel Multi Instance"),active:a,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!1}},{id:"toggle-sequential-mi",className:"bpmn-icon-sequential-mi-marker",title:n("Sequential Multi Instance"),active:r,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!0}},{id:"toggle-loop",className:"bpmn-icon-loop-marker",title:n("Loop"),active:o,action:i,options:{loopCharacteristics:"bpmn:StandardLoopCharacteristics"}}]},ac.prototype._getDataObjectIsCollection=function(e){var t=this,n=this._translate;var i=e.businessObject.dataObjectRef,r=i.isCollection;return[{id:"toggle-is-collection",className:"bpmn-icon-parallel-mi-marker",title:n("Collection"),active:r,action:function(n,r){t._modeling.updateModdleProperties(e,i,{isCollection:!r.active})}}]},ac.prototype._getParticipantMultiplicity=function(e){var t=this,n=this._bpmnFactory,i=this._translate;var r=e.businessObject.participantMultiplicity;return[{id:"toggle-participant-multiplicity",className:"bpmn-icon-parallel-mi-marker",title:i("Participant Multiplicity"),active:!!r,action:function(i,r){var o;r.active||(o=n.create("bpmn:ParticipantMultiplicity")),t._modeling.updateProperties(e,{participantMultiplicity:o})}}]},ac.prototype._getAdHocEntry=function(e){var t=this._translate,n=wr(Er(e),"bpmn:AdHocSubProcess"),i=this._bpmnReplace.replaceElement;return{id:"toggle-adhoc",className:"bpmn-icon-ad-hoc-marker",title:t("Ad-hoc"),active:n,action:function(t,r){return i(e,n?{type:"bpmn:SubProcess"}:{type:"bpmn:AdHocSubProcess"},{autoResize:!1,layoutConnection:!1})}}};var sc={__depends__:[vl,Hl],__init__:["replaceMenuProvider"],replaceMenuProvider:["type",ac]},pc=Math.max,lc=Math.min;function cc(e,t){return{top:e.top-t.top,right:e.right-t.right,bottom:e.bottom-t.bottom,left:e.left-t.left}}function uc(e,t,n){var i=t[e],r=n.min&&n.min[e],o=n.max&&n.max[e];return m(r)&&(i=(/top|left/.test(e)?lc:pc)(i,r)),m(o)&&(i=(/top|left/.test(e)?pc:lc)(i,o)),i}function dc(e,t){return void 0!==e?e:20}function hc(e){return!e.waypoints&&"label"!==e.type}function mc(e,t){var n;if((n=void 0===e.length?w(e.children,hc):e).length)return function(e,t){var n,i,r,o;return"object"==typeof t?(n=dc(t.left),i=dc(t.right),r=dc(t.top),o=dc(t.bottom)):n=i=r=o=dc(t),{x:e.x-n,y:e.y-r,width:e.width+n+i,height:e.height+r+o}}(yt(n),t)}var fc=Math.abs;var yc=["bpmn:Participant","bpmn:Process","bpmn:SubProcess"],gc=30;function vc(e,t){return t=t||[],e.children.filter((function(e){wr(e,"bpmn:Lane")&&(vc(e,t),t.push(e))})),t}function bc(e){return e.children.filter((function(e){return wr(e,"bpmn:Lane")}))}function xc(e){return gs(e,yc)||e}function wc(e,t){var n=xc(e),i=vc(n,wr(n,"bpmn:Process")?[]:[n]),r=hn(e),o=hn(t),a=function(e,t){return cc(hn(t),hn(e))}(e,t),s=[];return i.forEach((function(t){if(t!==e){var n,i,p=0,l=a.right,c=0,u=a.left,d=hn(t);a.top&&(fc(d.bottom-r.top)<10&&(c=o.top-d.bottom),fc(d.top-r.top)<5&&(p=o.top-d.top)),a.bottom&&(fc(d.top-r.bottom)<10&&(p=o.bottom-d.top),fc(d.bottom-r.bottom)<5&&(c=o.bottom-d.bottom)),(p||l||c||u)&&s.push({shape:t,newBounds:(n=t,i={top:p,right:l,bottom:c,left:u},{x:n.x+(i.left||0),y:n.y+(i.top||0),width:n.width-(i.left||0)+(i.right||0),height:n.height-(i.top||0)+(i.bottom||0)})})}})),s}function _c(e,t,n,i,r,o,a,s,p,l,c,u){e=e||{},i.registerProvider(this),this._contextPad=i,this._modeling=r,this._elementFactory=o,this._connect=a,this._create=s,this._popupMenu=p,this._canvas=l,this._rules=c,this._translate=u,!1!==e.autoPlace&&(this._autoPlace=t.get("autoPlace",!1)),n.on("create.end",250,(function(e){var t=e.context.shape;if(So(e)&&i.isOpen(t)){var n=i.getEntries(t);n.replace&&n.replace.action.click(e,t)}}))}function Ec(e,t,n){var i=e.$instanceOf(t),r=!1;return _(e.eventDefinitions||[],(function(e){e.$type===n&&(r=!0)})),i&&r}_c.$inject=["config.contextPad","injector","eventBus","contextPad","modeling","elementFactory","connect","create","popupMenu","canvas","rules","translate"],_c.prototype.getContextPadEntries=function(e){var t=this._contextPad,n=this._modeling,i=this._elementFactory,r=this._connect,o=this._create,a=this._popupMenu,s=this._canvas,p=this._rules,l=this._autoPlace,c=this._translate,u={};if("label"===e.type)return u;var h=e.businessObject;function m(e,t){r.start(e,t)}function f(e,t,n,r){function a(t,n){var a=i.createShape(q({type:e},r));o.start(t,a,{source:n})}return"string"!=typeof n&&(r=n,n=c("Append {type}",{type:e.replace(/^bpmn:/,"")})),{group:"model",className:t,title:n,action:{dragstart:a,click:l?function(t,n){var o=i.createShape(q({type:e},r));l.append(n,o)}:a}}}function y(e){return function(i,r){n.splitLane(r,e),t.open(r,!0)}}if(_r(h,["bpmn:Lane","bpmn:Participant"])&&Nr(e)){var g=bc(e);q(u,{"lane-insert-above":{group:"lane-insert-above",className:"bpmn-icon-lane-insert-above",title:c("Add Lane above"),action:{click:function(e,t){n.addLane(t,"top")}}}}),g.length<2&&(e.height>=120&&q(u,{"lane-divide-two":{group:"lane-divide",className:"bpmn-icon-lane-divide-two",title:c("Divide into two Lanes"),action:{click:y(2)}}}),e.height>=180&&q(u,{"lane-divide-three":{group:"lane-divide",className:"bpmn-icon-lane-divide-three",title:c("Divide into three Lanes"),action:{click:y(3)}}})),q(u,{"lane-insert-below":{group:"lane-insert-below",className:"bpmn-icon-lane-insert-below",title:c("Add Lane below"),action:{click:function(e,t){n.addLane(t,"bottom")}}}})}wr(h,"bpmn:FlowNode")&&(wr(h,"bpmn:EventBasedGateway")?q(u,{"append.receive-task":f("bpmn:ReceiveTask","bpmn-icon-receive-task",c("Append ReceiveTask")),"append.message-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-message",c("Append MessageIntermediateCatchEvent"),{eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-timer",c("Append TimerIntermediateCatchEvent"),{eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condition-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-condition",c("Append ConditionIntermediateCatchEvent"),{eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-signal",c("Append SignalIntermediateCatchEvent"),{eventDefinitionType:"bpmn:SignalEventDefinition"})}):Ec(h,"bpmn:BoundaryEvent","bpmn:CompensateEventDefinition")?q(u,{"append.compensation-activity":f("bpmn:Task","bpmn-icon-task",c("Append compensation activity"),{isForCompensation:!0})}):wr(h,"bpmn:EndEvent")||h.isForCompensation||Ec(h,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")||Ir(h)||q(u,{"append.end-event":f("bpmn:EndEvent","bpmn-icon-end-event-none",c("Append EndEvent")),"append.gateway":f("bpmn:ExclusiveGateway","bpmn-icon-gateway-none",c("Append Gateway")),"append.append-task":f("bpmn:Task","bpmn-icon-task",c("Append Task")),"append.intermediate-event":f("bpmn:IntermediateThrowEvent","bpmn-icon-intermediate-event-none",c("Append Intermediate/Boundary Event"))})),a.isEmpty(e,"bpmn-replace")||q(u,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:c("Change type"),action:{click:function(e,n){var i=q(function(e){var n=s.getContainer(),i=t.getPad(e).html,r=n.getBoundingClientRect(),o=i.getBoundingClientRect(),a=o.top-r.top;return{x:o.left-r.left,y:a+o.height+5}}(n),{cursor:{x:e.x,y:e.y}});a.open(n,"bpmn-replace",i)}}}}),_r(h,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference"])&&q(u,{"append.text-annotation":f("bpmn:TextAnnotation","bpmn-icon-text-annotation"),connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect using "+(h.isForCompensation?"":"Sequence/MessageFlow or ")+"Association"),action:{click:m,dragstart:m}}}),wr(h,"bpmn:TextAnnotation")&&q(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect using Association"),action:{click:m,dragstart:m}}}),_r(h,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&q(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect using DataInputAssociation"),action:{click:m,dragstart:m}}}),wr(h,"bpmn:Group")&&q(u,{"append.text-annotation":f("bpmn:TextAnnotation","bpmn-icon-text-annotation")});var v=p.allowed("elements.delete",{elements:[e]});return d(v)&&(v=v[0]===e),v&&q(u,{delete:{group:"edit",className:"bpmn-icon-trash",title:c("Remove"),action:{click:function(t){n.removeElements([e])}}}}),u};var Pc={__depends__:[Xp,Qp,$o,Dp,ml,sc],__init__:["contextPadProvider"],contextPadProvider:["type",_c]},Oc={horizontal:["x","width"],vertical:["y","height"]};function Sc(e){this._modeling=e,this._filters=[],this.registerFilter((function(e,t,n){var i,r=0,o=0;return _(e,(function(e){e.waypoints||e.labelTarget||(r+=e[n],o+=1)})),i=Math.round(r/o),w(e,(function(e){return e[n]<i+50}))}))}Sc.$inject=["modeling"],Sc.prototype.registerFilter=function(e){if("function"!=typeof e)throw new Error("the filter has to be a function");this._filters.push(e)},Sc.prototype.trigger=function(e,t){var n,i,r=this._modeling;if(!(e.length<3||(this._setOrientation(t),i=this._filterElements(e),(n=this._createGroups(i)).length<=2)))return r.distributeElements(n,this._axis,this._dimension),n},Sc.prototype._filterElements=function(e){var t=this._filters,n=this._axis,i=this._dimension,r=[].concat(e);return t.length?(_(t,(function(e){r=e(r,n,i)})),r):e},Sc.prototype._createGroups=function(e){var t=[],n=this,i=this._axis,r=this._dimension;if(!i)throw new Error('must have a defined "axis" and "dimension"');return _(D(e,i),(function(e,o){var a,s=n._findRange(e,i,r),p=t[t.length-1];p&&n._hasIntersection(p.range,s)?t[t.length-1].elements.push(e):(a={range:s,elements:[e]},t.push(a))})),t},Sc.prototype._setOrientation=function(e){var t=Oc[e];this._axis=t[0],this._dimension=t[1]},Sc.prototype._hasIntersection=function(e,t){return Math.max(e.min,e.max)>=Math.min(t.min,t.max)&&Math.min(e.min,e.max)<=Math.max(t.min,t.max)},Sc.prototype._findRange=function(e){var t=e[this._axis];return{min:t+5,max:t+e[this._dimension]-5}};var kc={__init__:["distributeElements"],distributeElements:["type",Sc]};function Cc(e){e.registerFilter((function(e){return w(e,(function(e){var t=_r(e,["bpmn:Association","bpmn:BoundaryEvent","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:Lane","bpmn:MessageFlow","bpmn:Participant","bpmn:SequenceFlow","bpmn:TextAnnotation"]);return!(e.labelTarget||t)}))}))}Cc.$inject=["distributeElements"];var Mc={__depends__:[kc],__init__:["bpmnDistributeElements"],bpmnDistributeElements:["type",Cc]},Tc="is not a registered action";function Ac(e,t){this._actions={};var n=this;e.on("diagram.init",(function(){n._registerDefaultActions(t),e.fire("editorActions.init",{editorActions:n})}))}function Rc(e,t){return new Error(e+" "+t)}Ac.$inject=["eventBus","injector"],Ac.prototype._registerDefaultActions=function(e){var t=e.get("commandStack",!1),n=e.get("modeling",!1),i=e.get("selection",!1),r=e.get("zoomScroll",!1),o=e.get("copyPaste",!1),a=e.get("canvas",!1),s=e.get("rules",!1),p=e.get("keyboardMove",!1),l=e.get("keyboardMoveSelection",!1);t&&(this.register("undo",(function(){t.undo()})),this.register("redo",(function(){t.redo()}))),o&&i&&this.register("copy",(function(){var e=i.get();o.copy(e)})),o&&this.register("paste",(function(){o.paste()})),r&&this.register("stepZoom",(function(e){r.stepZoom(e.value)})),a&&this.register("zoom",(function(e){a.zoom(e.value)})),n&&i&&s&&this.register("removeSelection",(function(){var e=i.get();if(e.length){var t,r=s.allowed("elements.delete",{elements:e});!1!==r&&(t=d(r)?r:e).length&&n.removeElements(t.slice())}})),p&&this.register("moveCanvas",(function(e){p.moveCanvas(e)})),l&&this.register("moveSelection",(function(e){l.moveSelection(e.direction,e.accelerated)}))},Ac.prototype.trigger=function(e,t){if(!this._actions[e])throw Rc(e,Tc);return this._actions[e](t)},Ac.prototype.register=function(e,t){var n=this;if("string"==typeof e)return this._registerAction(e,t);_(e,(function(e,t){n._registerAction(t,e)}))},Ac.prototype._registerAction=function(e,t){if(this.isRegistered(e))throw Rc(e,"is already registered");this._actions[e]=t},Ac.prototype.unregister=function(e){if(!this.isRegistered(e))throw Rc(e,Tc);this._actions[e]=void 0},Ac.prototype.getActions=function(){return Object.keys(this._actions)},Ac.prototype.isRegistered=function(e){return!!this._actions[e]};var zc={__init__:["editorActions"],editorActions:["type",Ac]};function Dc(e){e.invoke(Ac,this)}i(Dc,Ac),Dc.$inject=["injector"],Dc.prototype._registerDefaultActions=function(e){Ac.prototype._registerDefaultActions.call(this,e);var t=e.get("canvas",!1),n=e.get("elementRegistry",!1),i=e.get("selection",!1),r=e.get("spaceTool",!1),o=e.get("lassoTool",!1),a=e.get("handTool",!1),s=e.get("globalConnect",!1),p=e.get("distributeElements",!1),l=e.get("alignElements",!1),c=e.get("directEditing",!1),u=e.get("searchPad",!1),d=e.get("modeling",!1);t&&n&&i&&this._registerAction("selectElements",(function(){var e=t.getRootElement(),r=n.filter((function(t){return t!==e}));return i.select(r),r})),r&&this._registerAction("spaceTool",(function(){r.toggle()})),o&&this._registerAction("lassoTool",(function(){o.toggle()})),a&&this._registerAction("handTool",(function(){a.toggle()})),s&&this._registerAction("globalConnectTool",(function(){s.toggle()})),i&&p&&this._registerAction("distributeElements",(function(e){var t=i.get(),n=e.type;t.length&&p.trigger(t,n)})),i&&l&&this._registerAction("alignElements",(function(e){var t=i.get(),n=[],r=e.type;t.length&&(n=w(t,(function(e){return!wr(e,"bpmn:Lane")})),l.trigger(n,r))})),i&&d&&this._registerAction("setColor",(function(e){var t=i.get();t.length&&d.setColor(t,e)})),i&&c&&this._registerAction("directEditing",(function(){var e=i.get();e.length&&c.activate(e[0])})),u&&this._registerAction("find",(function(){u.toggle()})),t&&d&&this._registerAction("moveToOrigin",(function(){var e,i,r=t.getRootElement();e=yt(i=wr(r,"bpmn:Collaboration")?n.filter((function(e){return wr(e.parent,"bpmn:Collaboration")})):n.filter((function(e){return e!==r&&!wr(e.parent,"bpmn:SubProcess")}))),d.moveElements(i,{x:-e.x,y:-e.y},r)}))};var jc={__depends__:[zc],editorActions:["type",Dc]};function Bc(e){e.on(["create.init","shape.move.init"],(function(e){var t=e.context;_r(e.shape,["bpmn:Participant","bpmn:SubProcess","bpmn:TextAnnotation"])&&(t.gridSnappingContext||(t.gridSnappingContext={}),t.gridSnappingContext.snapLocation="top-left")}))}Bc.$inject=["eventBus"];function Nc(e,t,n){return n||(n="round"),Math[n](e/t)*t}function Lc(e,t,n){var i=!n||!1!==n.active;this._eventBus=t;var r=this;t.on("diagram.init",800,(function(){r.setActive(i)})),t.on(["create.move","create.end","bendpoint.move.move","bendpoint.move.end","connect.move","connect.end","connectionSegment.move.move","connectionSegment.move.end","resize.move","resize.end","shape.move.move","shape.move.end"],1200,(function(t){var n=t.originalEvent;if(!(!r.active||n&&ba(n))){var i=t.context,o=i.gridSnappingContext;o||(o=i.gridSnappingContext={}),["x","y"].forEach((function(n){var i={},o=function(e,t,n){var i=e.context,r=e.shape,o=i.gridSnappingContext,a=o.snapLocation,s=o.snapOffset;if(s&&m(s[t]))return s[t];s||(s=o.snapOffset={});m(s[t])||(s[t]=0);if(!r)return s[t];n.get(r.id)||(Ic(t)?s[t]+=r[t]+r.width/2:s[t]+=r[t]+r.height/2);if(!a)return s[t];"x"===t?/left/.test(a)?s[t]-=r.width/2:/right/.test(a)&&(s[t]+=r.width/2):/top/.test(a)?s[t]-=r.height/2:/bottom/.test(a)&&(s[t]+=r.height/2);return s[t]}(t,n,e);o&&(i.offset=o);var a=function(e,t){var n=e.context,i=n.createConstraints,r=n.resizeConstraints||{},o=n.gridSnappingContext,a=o.snapConstraints;if(a&&a[t])return a[t];a||(a=o.snapConstraints={});a[t]||(a[t]={});var s=n.direction;i&&(Ic(t)?(a.x.min=i.left,a.x.max=i.right):(a.y.min=i.top,a.y.max=i.bottom));var p=r.min,l=r.max;p&&(Ic(t)?Fc(s)?a.x.max=p.left:a.x.min=p.right:$c(s)?a.y.max=p.top:a.y.min=p.bottom);l&&(Ic(t)?Fc(s)?a.x.min=l.left:a.x.max=l.right:$c(s)?a.y.min=l.top:a.y.max=l.bottom);return a[t]}(t,n);a&&q(i,a),_p(t,n)||r.snapEvent(t,n,i)}))}}))}function Ic(e){return"x"===e}function $c(e){return-1!==e.indexOf("n")}function Fc(e){return-1!==e.indexOf("w")}function Vc(e,t){Xo.call(this,e),this._gridSnapping=t;var n=this;this.preExecute("shape.resize",(function(e){var t=e.context,i=(t.hints||{}).autoResize;if(i){var r=t.shape,o=t.newBounds;y(i)?t.newBounds=n.snapComplex(o,i):t.newBounds=n.snapSimple(r,o)}}))}Lc.prototype.snapEvent=function(e,t,n){Ep(e,t,this.snapValue(e[t],n))},Lc.prototype.getGridSpacing=function(){return 10},Lc.prototype.snapValue=function(e,t){var n,i,r=0;return t&&t.offset&&(r=t.offset),e=Nc(e+=r,10),t&&t.min&&m(n=t.min)&&(n=Nc(n+r,10,"ceil"),e=Math.max(e,n)),t&&t.max&&m(i=t.max)&&(i=Nc(i+r,10,"floor"),e=Math.min(e,i)),e-=r},Lc.prototype.isActive=function(){return this.active},Lc.prototype.setActive=function(e){this.active=e,this._eventBus.fire("gridSnapping.toggle",{active:e})},Lc.prototype.toggleActive=function(){this.setActive(!this.active)},Lc.$inject=["elementRegistry","eventBus","config.gridSnapping"],Vc.$inject=["eventBus","gridSnapping","modeling"],i(Vc,Xo),Vc.prototype.snapSimple=function(e,t){var n=this._gridSnapping;return t.width=n.snapValue(t.width,{min:t.width}),t.height=n.snapValue(t.height,{min:t.height}),t.x=e.x+e.width/2-t.width/2,t.y=e.y+e.height/2-t.height/2,t},Vc.prototype.snapComplex=function(e,t){return/w|e/.test(t)&&(e=this.snapHorizontally(e,t)),/n|s/.test(t)&&(e=this.snapVertically(e,t)),e},Vc.prototype.snapHorizontally=function(e,t){var n=this._gridSnapping,i=/w/.test(t),r=/e/.test(t),o={};return o.width=n.snapValue(e.width,{min:e.width}),r&&(i?(o.x=n.snapValue(e.x,{max:e.x}),o.width+=n.snapValue(e.x-o.x,{min:e.x-o.x})):e.x=e.x+e.width-o.width),q(e,o),e},Vc.prototype.snapVertically=function(e,t){var n=this._gridSnapping,i=/n/.test(t),r=/s/.test(t),o={};return o.height=n.snapValue(e.height,{min:e.height}),i&&(r?(o.y=n.snapValue(e.y,{max:e.y}),o.height+=n.snapValue(e.y-o.y,{min:e.y-o.y})):e.y=e.y+e.height-o.height),q(e,o),e};function Hc(e,t){e.on(["spaceTool.move","spaceTool.end"],2e3,(function(e){var n,i=e.context;i.initialized&&("x"===i.axis?(n=t.snapValue(e.dx),e.x=e.x+n-e.dx,e.dx=n):(n=t.snapValue(e.dy),e.y=e.y+n-e.dy,e.dy=n))}))}Hc.$inject=["eventBus","gridSnapping"];var qc={__depends__:[{__init__:["gridSnappingResizeBehavior","gridSnappingSpaceToolBehavior"],gridSnappingResizeBehavior:["type",Vc],gridSnappingSpaceToolBehavior:["type",Hc]}],__init__:["gridSnapping"],gridSnapping:["type",Lc]};function Uc(e,t){e.on("autoPlace",2e3,(function(e){var n=e.source,i=fn(n),r=e.shape,o=vs(n,r);return["x","y"].forEach((function(e){var n={};o[e]!==i[e]&&(o[e]>i[e]?n.min=o[e]:n.max=o[e],wr(r,"bpmn:TextAnnotation")&&(!function(e){return"x"===e}(e)?n.offset=-r.height/2:n.offset=-r.width/2),o[e]=t.snapValue(o[e],n))})),o}))}Uc.$inject=["eventBus","gridSnapping"];function Gc(e,t,n){t.on(["create.start","shape.move.start"],1750,(function(t){var i=t.context,r=i.shape,o=e.getRootElement();wr(r,"bpmn:Participant")&&wr(o,"bpmn:Process")&&o.children.length&&(i.createConstraints&&(r.width=n.snapValue(r.width,{min:r.width}),r.height=n.snapValue(r.height,{min:r.height})))}))}Gc.$inject=["canvas","eventBus","gridSnapping"];function Wc(e,t,n){Xo.call(this,e),this._gridSnapping=t;var i=this;this.postExecuted(["connection.create","connection.layout"],3e3,(function(e){var t=e.context,r=t.connection,o=t.hints||{},a=r.waypoints;o.connectionStart||o.connectionEnd||!1===o.createElementsBehavior||function(e){return e.length>3}(a)&&n.updateWaypoints(r,i.snapMiddleSegments(a))}))}function Kc(e,t,n){var i=kt(t,n),r={};return function(e){return"h"===e}(i)&&(r.y=e.snapValue(t.y)),function(e){return"v"===e}(i)&&(r.x=e.snapValue(t.x)),("x"in r||"y"in r)&&(t=q({},t,r),n=q({},n,r)),[t,n]}Wc.$inject=["eventBus","gridSnapping","modeling"],i(Wc,Xo),Wc.prototype.snapMiddleSegments=function(e){var t,n=this._gridSnapping;e=e.slice();for(var i=1;i<e.length-2;i++)t=Kc(n,e[i],e[i+1]),e[i]=t[0],e[i+1]=t[1];return e};var Yc={__depends__:[qc,{__init__:["gridSnappingAutoPlaceBehavior","gridSnappingCreateParticipantBehavior","gridSnappingLayoutConnectionBehavior"],gridSnappingAutoPlaceBehavior:["type",Uc],gridSnappingCreateParticipantBehavior:["type",Gc],gridSnappingLayoutConnectionBehavior:["type",Wc]}],__init__:["bpmnGridSnapping"],bpmnGridSnapping:["type",Bc]};function Xc(e,t){this._interactionEvents=t;var n=this;e.on(["interactionEvents.createHit","interactionEvents.updateHit"],(function(e){var t=e.element,i=e.gfx;return wr(t,"bpmn:Lane")?n.createParticipantHit(t,i):wr(t,"bpmn:Participant")?Nr(t)?n.createParticipantHit(t,i):n.createDefaultHit(t,i):wr(t,"bpmn:SubProcess")?Nr(t)?n.createSubProcessHit(t,i):n.createDefaultHit(t,i):void 0}))}Xc.$inject=["eventBus","interactionEvents"],Xc.prototype.createDefaultHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createDefaultHit(e,t),!0},Xc.prototype.createParticipantHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"all",{width:30,height:e.height}),!0},Xc.prototype.createSubProcessHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"all",{width:e.width,height:30}),!0};var Zc={__init__:["bpmnInteractionEvents"],bpmnInteractionEvents:["type",Xc]};function Jc(e){e.invoke(Ma,this)}i(Jc,Ma),Jc.$inject=["injector"],Jc.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}Ma.prototype.registerBindings.call(this,e,t),n("selectElements",(function(n){var i=n.keyEvent;if(e.isKey(["a","A"],i)&&e.isCmd(i))return t.trigger("selectElements"),!0})),n("find",(function(n){var i=n.keyEvent;if(e.isKey(["f","F"],i)&&e.isCmd(i))return t.trigger("find"),!0})),n("spaceTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["s","S"],i)?(t.trigger("spaceTool"),!0):void 0})),n("lassoTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["l","L"],i)?(t.trigger("lassoTool"),!0):void 0})),n("handTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["h","H"],i)?(t.trigger("handTool"),!0):void 0})),n("globalConnectTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["c","C"],i)?(t.trigger("globalConnectTool"),!0):void 0})),n("directEditing",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["e","E"],i)?(t.trigger("directEditing"),!0):void 0}))};var Qc={__depends__:[Ta],__init__:["keyboardBindings"],keyboardBindings:["type",Jc]},eu={moveSpeed:1,moveSpeedAccelerated:10},tu="left",nu="right",iu="down",ru={ArrowLeft:tu,Left:tu,ArrowUp:"up",Up:"up",ArrowRight:nu,Right:nu,ArrowDown:iu,Down:iu},ou={left:function(e){return{x:-e,y:0}},up:function(e){return{x:0,y:-e}},right:function(e){return{x:e,y:0}},down:function(e){return{x:0,y:e}}};function au(e,t,n,i,r){var o=this;this._config=q({},eu,e||{}),t.addListener(1500,(function(e){var n=e.keyEvent,i=ru[n.key];if(i&&!t.isCmd(n)){var r=t.isShift(n);return o.moveSelection(i,r),!0}})),this.moveSelection=function(e,t){var o=r.get();if(o.length){var a=this._config[t?"moveSpeedAccelerated":"moveSpeed"],s=ou[e](a);i.allowed("elements.move",{shapes:o})&&n.moveElements(o,s)}}}au.$inject=["config.keyboardMoveSelection","keyboard","modeling","rules","selection"];var su={__depends__:[Ta,$o],__init__:["keyboardMoveSelection"],keyboardMoveSelection:["type",au]};function pu(e,t,n,i){this._dragging=i,this._rules=t;var r=this;function o(e,t){var n,i=e.shape,o=e.direction,a=e.resizeConstraints;e.delta=t,n=function(e,t,n){var i=n.x,r=n.y,o={x:e.x,y:e.y,width:e.width,height:e.height};return-1!==t.indexOf("n")?(o.y=e.y+r,o.height=e.height-r):-1!==t.indexOf("s")&&(o.height=e.height+r),-1!==t.indexOf("e")?o.width=e.width+i:-1!==t.indexOf("w")&&(o.x=e.x+i,o.width=e.width-i),o}(i,o,t),e.newBounds=function(e,t){if(!t)return e;var n=hn(e);return mn({top:uc("top",n,t),right:uc("right",n,t),bottom:uc("bottom",n,t),left:uc("left",n,t)})}(n,a),e.canExecute=r.canResize(e)}e.on("resize.start",(function(e){var t,n,i;t=e.context,n=t.resizeConstraints,i=t.minBounds,void 0===n&&(void 0===i&&(i=r.computeMinResizeBox(t)),t.resizeConstraints={min:hn(i)})})),e.on("resize.move",(function(e){var t={x:e.dx,y:e.dy};o(e.context,t)})),e.on("resize.end",(function(e){!function(e){var t=e.shape,i=e.canExecute,r=e.newBounds;if(i){if(!function(e,t){return e.x!==t.x||e.y!==t.y||e.width!==t.width||e.height!==t.height}(t,r=un(r)))return;n.resizeShape(t,r)}}(e.context)}))}function lu(e,t){var n=fn(e),i=hn(e),r={x:n.x,y:n.y};return-1!==t.indexOf("n")?r.y=i.top:-1!==t.indexOf("s")&&(r.y=i.bottom),-1!==t.indexOf("e")?r.x=i.right:-1!==t.indexOf("w")&&(r.x=i.left),r}function cu(e){return"n"===e||"s"===e?"resize-ns":"e"===e||"w"===e?"resize-ew":"nw"===e||"se"===e?"resize-nwse":"resize-nesw"}pu.prototype.canResize=function(e){var t=this._rules,n=W(e,["newBounds","shape","delta","direction"]);return t.allowed("shape.resize",n)},pu.prototype.activate=function(e,t,n){var i,r,o=this._dragging;if("string"==typeof n&&(n={direction:n}),!(r=(i=q({shape:t},n)).direction))throw new Error("must provide a direction (n|w|s|e|nw|se|ne|sw)");o.init(e,lu(t,r),"resize",{autoActivate:!0,cursor:cu(r),data:{shape:t,context:i}})},pu.prototype.computeMinResizeBox=function(e){var t=e.shape;return function(e,t,n,i){var r=hn(t),o={top:/n/.test(e)?r.bottom-n.height:r.top,left:/w/.test(e)?r.right-n.width:r.left,bottom:/s/.test(e)?r.top+n.height:r.bottom,right:/e/.test(e)?r.left+n.width:r.right},a=i?hn(i):o;return mn({top:lc(o.top,a.top),left:lc(o.left,a.left),bottom:pc(o.bottom,a.bottom),right:pc(o.right,a.right)})}(e.direction,t,e.minDimensions||{width:10,height:10},mc(t,e.childrenBoxPadding))},pu.$inject=["eventBus","rules","modeling","dragging"];var uu="djs-resizing",du="resize-not-ok";function hu(e,t,n){e.on("resize.move",500,(function(e){var i,r,o,a;i=e.context,r=i.shape,o=i.newBounds,(a=i.frame)||(a=i.frame=n.addFrame(r,t.getActiveLayer()),t.addMarker(r,uu)),o.width>5&&Oe(a,{x:o.x,width:o.width}),o.height>5&&Oe(a,{y:o.y,height:o.height}),i.canExecute?Te(a).remove(du):Te(a).add(du)})),e.on("resize.cleanup",(function(e){var n,i;n=e.context,i=n.shape,n.frame&&Re(n.frame),t.removeMarker(i,uu)}))}hu.$inject=["eventBus","canvas","previewSupport"];var mu=-6,fu="djs-resizer",yu=["n","w","s","e","nw","ne","se","sw"];function gu(e,t,n,i){this._resize=i,this._canvas=t;var r=this;e.on("selection.changed",(function(e){var t=e.newSelection;r.removeResizers(),1===t.length&&_(t,F(r.addResizer,r))})),e.on("shape.changed",(function(e){var t=e.element;n.isSelected(t)&&(r.removeResizers(),r.addResizer(t))}))}gu.prototype.makeDraggable=function(e,t,n){var i=this._resize;function r(t){Oo(t)&&i.activate(t,e,n)}ue.bind(t,"mousedown",r),ue.bind(t,"touchstart",r)},gu.prototype._createResizer=function(e,t,n,i){var r=this._getResizersParent(),o=function(e){var t={x:0,y:0};-1!==e.indexOf("e")?t.x=6:-1!==e.indexOf("w")&&(t.x=mu);-1!==e.indexOf("s")?t.y=6:-1!==e.indexOf("n")&&(t.y=mu);return t}(i),a=Le("g");Te(a).add(fu),Te(a).add("djs-resizer-"+e.id),Te(a).add("djs-resizer-"+i),_e(r,a);var s=Le("rect");Oe(s,{x:-2+o.x,y:-2+o.y,width:4,height:4}),Te(s).add("djs-resizer-visual"),_e(a,s);var p=Le("rect");return Oe(p,{x:-10+o.x,y:-10+o.y,width:20,height:20}),Te(p).add("djs-resizer-hit"),_e(a,p),Wn(a,t,n),a},gu.prototype.createResizer=function(e,t){var n=lu(e,t),i=this._createResizer(e,n.x,n.y,t);this.makeDraggable(e,i,t)},gu.prototype.addResizer=function(e){var t=this;this._resize.canResize({shape:e})&&_(yu,(function(n){t.createResizer(e,n)}))},gu.prototype.removeResizers=function(){ze(this._getResizersParent())},gu.prototype._getResizersParent=function(){return this._canvas.getLayer("resizers")},gu.$inject=["eventBus","canvas","selection","resize"];var vu={__depends__:[Is,Ds,il],__init__:["resize","resizePreview","resizeHandles"],resize:["type",pu],resizePreview:["type",hu],resizeHandles:["type",gu]};function bu(e,t){var n=t.create("bpmn:CategoryValue"),i=t.create("bpmn:Category",{categoryValue:[n]});return Et(e.get("rootElements"),i),Er(i).$parent=e,Er(n).$parent=i,n}function xu(e,t,n,i,r,o,a){function s(e,t){(t||_r(e,["bpmn:Task","bpmn:TextAnnotation"])||wu(e))&&i.activate(e)}this._bpmnFactory=t,this._canvas=n,this._modeling=r,this._textRenderer=a,i.registerProvider(this),e.on("element.dblclick",(function(e){s(e.element,!0)})),e.on(["autoPlace.start","canvas.viewbox.changing","drag.init","element.mousedown","popupMenu.open","root.set"],(function(e){i.isActive()&&i.complete()})),e.on(["commandStack.changed"],(function(e){i.isActive()&&i.cancel()})),e.on("directEditing.activate",(function(e){o.removeResizers()})),e.on("create.end",500,(function(e){var t=e.context,n=t.shape,i=e.context.canExecute;e.isTouch||i&&(t.hints&&!1===t.hints.createElementsBehavior||s(n))})),e.on("autoPlace.end",500,(function(e){s(e.shape)}))}function wu(e){return wr(e,"bpmn:SubProcess")&&!Nr(e)}xu.$inject=["eventBus","bpmnFactory","canvas","directEditing","modeling","resizeHandles","textRenderer"],xu.prototype.activate=function(e){var t=Vr(e);if(void 0!==t){var n={text:t};q(n,this.getEditingBBox(e));var i={};return(_r(e,["bpmn:Task","bpmn:Participant","bpmn:Lane","bpmn:CallActivity"])||wu(e))&&q(i,{centerVertically:!0}),lo(e)&&q(i,{autoResize:!0}),wr(e,"bpmn:TextAnnotation")&&q(i,{resizable:!0,autoResize:!0}),q(n,{options:i}),n}},xu.prototype.getEditingBBox=function(e){var t=this._canvas,n=e.label||e,i=t.getAbsoluteBBox(n),r=i.x+i.width/2,o=i.y+i.height/2,a={x:i.x,y:i.y},s=t.zoom(),p=this._textRenderer.getDefaultStyle(),l=this._textRenderer.getExternalStyle(),c=l.fontSize*s,u=l.lineHeight,d=p.fontSize*s,h=p.lineHeight,m={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};(wr(e,"bpmn:Lane")||function(e){return wr(e,"bpmn:Participant")&&Nr(e)}(e))&&(q(a,{width:i.height,height:30*s,x:i.x-i.height/2+15*s,y:o-30*s/2}),q(m,{fontSize:d+"px",lineHeight:h,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px",transform:"rotate(-90deg)"})),(_r(e,["bpmn:Task","bpmn:CallActivity"])||function(e){return wr(e,"bpmn:Participant")&&!Nr(e)}(e)||wu(e))&&(q(a,{width:i.width,height:i.height}),q(m,{fontSize:d+"px",lineHeight:h,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px"})),function(e){return wr(e,"bpmn:SubProcess")&&Nr(e)}(e)&&(q(a,{width:i.width,x:i.x}),q(m,{fontSize:d+"px",lineHeight:h,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px"}));var f=90*s,y=7*s,g=4*s;if(n.labelTarget&&(q(a,{width:f,height:i.height+y+g,x:r-f/2,y:i.y-y}),q(m,{fontSize:c+"px",lineHeight:u,paddingTop:y+"px",paddingBottom:g+"px"})),lo(n)&&!co(n)&&!mo(n)){var v=ho(e),b=t.getAbsoluteBBox({x:v.x,y:v.y,width:0,height:0}),x=c+y+g;q(a,{width:f,height:x,x:b.x-f/2,y:b.y-x/2}),q(m,{fontSize:c+"px",lineHeight:u,paddingTop:y+"px",paddingBottom:g+"px"})}return wr(e,"bpmn:TextAnnotation")&&(q(a,{width:i.width,height:i.height,minWidth:30*s,minHeight:10*s}),q(m,{textAlign:"left",paddingTop:5*s+"px",paddingBottom:7*s+"px",paddingLeft:7*s+"px",paddingRight:5*s+"px",fontSize:d+"px",lineHeight:h})),{bounds:a,style:m}},xu.prototype.update=function(e,t,n,i){var r,o,a;if((wr(e,"bpmn:TextAnnotation")&&(o=this._canvas.getAbsoluteBBox(e),r={x:e.x,y:e.y,width:e.width/o.width*i.width,height:e.height/o.height*i.height}),wr(e,"bpmn:Group"))&&!Er(e).categoryValueRef){var s=bu(Er(this._canvas.getRootElement()).$parent,this._bpmnFactory);Er(e).categoryValueRef=s}(a=t)&&a.trim()||(t=null),this._modeling.updateLabel(e,t,r)};var _u="djs-element-hidden",Eu="djs-label-hidden";function Pu(e,t,n,i){var r,o,a,s=this,p=t.getDefaultLayer();e.on("directEditing.activate",(function(e){var n=e.active;if(wr(r=n.element.label||n.element,"bpmn:TextAnnotation")){o=t.getAbsoluteBBox(r),a=Le("g");var l=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:r.width,containerHeight:r.height,position:{mx:0,my:0}}),c=s.path=Le("path");Oe(c,{d:l,strokeWidth:2,stroke:Ou(r)}),_e(a,c),_e(p,a),Kn(a,r.x,r.y)}wr(r,"bpmn:TextAnnotation")||r.labelTarget?t.addMarker(r,_u):(wr(r,"bpmn:Task")||wr(r,"bpmn:CallActivity")||wr(r,"bpmn:SubProcess")||wr(r,"bpmn:Participant"))&&t.addMarker(r,Eu)})),e.on("directEditing.resize",(function(e){if(wr(r,"bpmn:TextAnnotation")){var t=e.height,n=e.dy,a=Math.max(r.height/o.height*(t+n),0),p=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:r.width,containerHeight:a,position:{mx:0,my:0}});Oe(s.path,{d:p})}})),e.on(["directEditing.complete","directEditing.cancel"],(function(e){var n=e.active;n&&(t.removeMarker(n.element.label||n.element,_u),t.removeMarker(r,Eu)),r=void 0,o=void 0,a&&(Re(a),a=void 0)}))}function Ou(e,t){return Pr(e).get("stroke")||t||"black"}Pu.$inject=["eventBus","canvas","elementRegistry","pathMap"];var Su={__depends__:[Yo,vu,Xp],__init__:["labelEditingProvider","labelEditingPreview"],labelEditingProvider:["type",xu],labelEditingPreview:["type",Pu]},ku=["top","bottom","left","right"],Cu=10;function Mu(e,t){function n(e){if(co(e)){var n=function(e){var t=fn(e.label),n=Tu(fn(e),t);if(i=n,-1===ku.indexOf(i))return;var i;var r=function(e){var t=fn(e);return[].concat(e.incoming.map((function(e){return e.waypoints[e.waypoints.length-2]})),e.outgoing.map((function(e){return e.waypoints[1]}))).map((function(e){return Tu(t,e)}))}(e);if(e.host){var o=function(e){var t,n=e.host,i=yn(fn(e),n);t=i.indexOf("-")>=0?i.split("-"):[i];return ku.filter((function(e){return-1===t.indexOf(e)}))}(e);r=r.concat(o)}var a=ku.filter((function(e){return-1===r.indexOf(e)}));if(-1!==a.indexOf(n))return;return a[0]}(e);n&&function(e,n){var i=fn(e),r=e.label,o=fn(r);if(!r.parent)return;var a,s=hn(e);switch(n){case"top":a={x:i.x,y:s.top-Cu-r.height/2};break;case"left":a={x:s.left-Cu-r.width/2,y:i.y};break;case"bottom":a={x:i.x,y:s.bottom+Cu+r.height/2};break;case"right":a={x:s.right+Cu+r.width/2,y:i.y}}var p=Ia(a,o);t.moveShape(r,p)}(e,n)}}Xo.call(this,e),this.postExecuted(["connection.create","connection.layout","connection.updateWaypoints"],(function(e){var t=e.context,i=t.connection,r=i.source,o=i.target;!1!==(t.hints||{}).createElementsBehavior&&(n(r),n(o))})),this.postExecuted(["label.create"],(function(e){var t=e.context,i=t.shape;!1!==(t.hints||{}).createElementsBehavior&&n(i.labelTarget)})),this.postExecuted(["elements.create"],(function(e){var t=e.context,i=t.elements;!1!==(t.hints||{}).createElementsBehavior&&i.forEach((function(e){n(e)}))}))}function Tu(e,t){return yn(t,e,5)}function Au(e,t,n){Xo.call(this,e),this.preExecute("shape.append",(function(e){var t=e.source,n=e.shape;e.position||(wr(n,"bpmn:TextAnnotation")?e.position={x:t.x+t.width/2+75,y:t.y-50-n.height/2}:e.position={x:t.x+t.width+80+n.width/2,y:t.y+t.height/2})}),!0)}function Ru(e,t){e.invoke(Xo,this),this.postExecute("shape.move",(function(e){var n=e.newParent,i=e.shape;_(w(i.incoming.concat(i.outgoing),(function(e){return wr(e,"bpmn:Association")})),(function(e){t.moveConnection(e,{x:0,y:0},n)}))}),!0)}i(Mu,Xo),Mu.$inject=["eventBus","modeling"],i(Au,Xo),Au.$inject=["eventBus","elementFactory","bpmnRules"],i(Ru,Xo),Ru.$inject=["injector","modeling"];function zu(e,t){t.invoke(Xo,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",500,(function(e){var t=e.elements;1===(t=t.filter((function(e){return Du(e,e.host)}))).length&&t.map((function(e){return t.indexOf(e)})).forEach((function(i){var r=t[i];e.elements[i]=n.replaceShape(t[i],r)}))}),!0),this.preExecute("elements.move",500,(function(e){var t=e.shapes,i=e.newHost;if(1===t.length){var r=t[0];Du(r,i)&&(e.shapes=[n.replaceShape(r,i)])}}),!0)}function Du(e,t){return!mo(e)&&_r(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!t}zu.$inject=["bpmnReplace","injector"],i(zu,Xo),zu.prototype.replaceShape=function(e,t){var n,i=(n=Er(e).eventDefinitions)&&n[0],r={type:"bpmn:BoundaryEvent",host:t};return i&&(r.eventDefinitionType=i.$type),this._bpmnReplace.replaceElement(e,r,{layoutConnection:!1})};function ju(e,t,n){function i(e){return w(e.attachers,(function(e){return wr(e,"bpmn:BoundaryEvent")}))}Xo.call(this,e),this.postExecute("connection.create",(function(e){var t=e.context.source,r=e.context.target,o=i(r);wr(t,"bpmn:EventBasedGateway")&&wr(r,"bpmn:ReceiveTask")&&o.length>0&&n.removeElements(o)})),this.postExecute("connection.reconnect",(function(e){var t=e.context.oldSource,r=e.context.newSource;wr(t,"bpmn:Gateway")&&wr(r,"bpmn:EventBasedGateway")&&_(r.outgoing,(function(e){var t=e.target,r=i(t);wr(t,"bpmn:ReceiveTask")&&r.length>0&&n.removeElements(r)}))})),e.on("moddleCopy.canCopyProperty",2e3,(function(e){var n=e.parent,i=e.property,r=e.propertyName,o=t.getPropertyDescriptor(n,r);o&&o.isReference&&wr(i,"bpmn:RootElement")&&n.set(r,i)}))}function Bu(e){e.invoke(Xo,this),this.preExecute("shape.create",1500,(function(e){var t=e.context,n=t.parent,i=t.shape;wr(n,"bpmn:Lane")&&!wr(i,"bpmn:Lane")&&(t.parent=gs(n,"bpmn:Participant"))}))}function Nu(e,t,n){Xo.call(this,e),this.preExecute("shape.create",(function(e){var n=e.context.shape;if(wr(n,"bpmn:DataObjectReference")&&"label"!==n.type){var i=t.create("bpmn:DataObject");n.businessObject.dataObjectRef=i}}))}ju.$inject=["eventBus","moddle","modeling"],i(ju,Xo),Bu.$inject=["injector"],i(Bu,Xo),Nu.$inject=["eventBus","bpmnFactory","moddle"],i(Nu,Xo);var Lu=20,Iu=20,$u=2e3;function Fu(e,t,n){function i(){var t=e.getRootElement();return wr(t,"bpmn:Collaboration")?t:n.makeCollaboration()}Xo.call(this,t),t.on(["create.start","shape.move.start"],$u,(function(t){var n=t.context,i=n.shape,r=e.getRootElement();if(wr(i,"bpmn:Participant")&&wr(r,"bpmn:Process")&&r.children.length){var o=r.children.filter((function(e){return!wr(e,"bpmn:Group")&&!mo(e)&&!function(e){return!!e.waypoints}(e)}));if(o.length){var a=yt(o);q(i,function(e,t){t={width:t.width+40+30,height:t.height+40};var n=Math.max(e.width,t.width),i=Math.max(e.height,t.height);return{x:-n/2,y:-i/2,width:n,height:i}}(i,a)),n.createConstraints=function(e,t){return{bottom:(t=hn(t)).top+e.height/2-Iu,left:t.right-e.width/2+Lu,top:t.bottom-e.height/2+Iu,right:t.left+e.width/2-Lu-30}}(i,a)}}})),t.on("create.start",$u,(function(n){var i=n.context.shape,r=e.getRootElement(),o=e.getGraphics(r);function a(e){e.element=r,e.gfx=o}wr(i,"bpmn:Participant")&&wr(r,"bpmn:Process")&&(t.on("element.hover",$u,a),t.once("create.cleanup",(function(){t.off("element.hover",a)})))})),this.preExecute("elements.create",$u,(function(e){var t,n=e.elements,r=e.parent,o=function(e){return b(e,(function(e){return wr(e,"bpmn:Participant")}))}(n);o&&wr(r,"bpmn:Process")&&(e.parent=i(),(t=e.hints=e.hints||{}).participant=o,t.process=r,t.processRef=Er(o).get("processRef"))}),!0),this.preExecute("shape.create",(function(e){var t=e.parent,n=e.shape;wr(n,"bpmn:Participant")&&wr(t,"bpmn:Process")&&(e.parent=i(),e.process=t,e.processRef=Er(n).get("processRef"))}),!0),this.execute("shape.create",(function(e){var t=e.hints||{},n=e.process||t.process,i=e.shape,r=t.participant;!n||r&&i!==r||Er(i).set("processRef",Er(n))}),!0),this.revert("shape.create",(function(e){var t=e.hints||{},n=e.process||t.process,i=e.processRef||t.processRef,r=e.shape,o=t.participant;!n||o&&r!==o||Er(r).set("processRef",i)}),!0),this.postExecute("shape.create",(function(e){var t=e.hints||{},i=e.process||e.hints.process,r=e.shape,o=t.participant;if(i){var a=i.children.slice();o?r===o&&n.moveElements(a,{x:0,y:0},o):n.moveElements(a,{x:0,y:0},r)}}),!0)}Fu.$inject=["canvas","eventBus","modeling"],i(Fu,Xo);var Vu="__targetRef_placeholder";function Hu(e,t){function n(e,n){var i=e.get("properties"),r=b(i,(function(e){return e.name===Vu}));return!r&&n&&Et(i,r=t.create("bpmn:Property",{name:Vu})),r}function i(e,t){var i=n(e);i&&(function(e,t,n){return b(e.get("dataInputAssociations"),(function(e){return e!==n&&e.targetRef===t}))}(e,i,t)||_t(e.get("properties"),i))}function r(e){var t,r=e.context,o=r.connection,a=o.businessObject,s=o.target,p=s&&s.businessObject,l=r.newTarget,c=l&&l.businessObject,u=r.oldTarget||r.target,d=u&&u.businessObject,h=o.businessObject;d&&d!==p&&i(d,a),c&&c!==p&&i(c,a),p?(t=n(p,!0),h.targetRef=t):h.targetRef=null}Xo.call(this,e),this.executed(["connection.create","connection.delete","connection.move","connection.reconnect"],qu(r)),this.reverted(["connection.create","connection.delete","connection.move","connection.reconnect"],qu(r))}function qu(e){return function(t){if(wr(t.context.connection,"bpmn:DataInputAssociation"))return e(t)}}function Uu(e){this._bpmnUpdater=e}function Gu(e,t,n,i){function r(e){return e.children.filter((function(e){return wr(e,"bpmn:DataStoreReference")&&!e.labelTarget}))}function o(e,i){var r=e.businessObject||e;if(i=i||n.filter((function(e){return wr(e,"bpmn:Participant")&&Er(e).processRef}))[0]){var o=i.businessObject||i;t.execute("dataStore.updateContainment",{dataStoreBo:r,dataStoreDi:Pr(e),newSemanticParent:o.processRef||o,newDiParent:Pr(i)})}}Xo.call(this,i),t.registerHandler("dataStore.updateContainment",Uu),this.preExecute("shape.create",(function(e){var t=e.context,n=t.shape;wr(n,"bpmn:DataStoreReference")&&"label"!==n.type&&(t.hints||(t.hints={}),t.hints.autoResize=!1)})),this.preExecute("elements.move",(function(e){var t=e.context,n=t.shapes;n.filter((function(e){return wr(e,"bpmn:DataStoreReference")})).length&&(t.hints||(t.hints={}),t.hints.autoResize=n.filter((function(e){return!wr(e,"bpmn:DataStoreReference")})))})),this.postExecute("shape.create",(function(e){var t=e.context.shape,n=t.parent;wr(t,"bpmn:DataStoreReference")&&"label"!==t.type&&wr(n,"bpmn:Collaboration")&&o(t)})),this.postExecute("shape.move",(function(e){var t=e.context,n=t.shape,i=t.oldParent,r=n.parent;wr(i,"bpmn:Collaboration")||wr(n,"bpmn:DataStoreReference")&&"label"!==n.type&&wr(r,"bpmn:Collaboration")&&o(n,wr(i,"bpmn:Participant")?i:function(e,t){for(;e.parent;){if(wr(e.parent,t))return e.parent;e=e.parent}}(i,"bpmn:Participant"))})),this.postExecute("shape.delete",(function(t){var n=t.context.shape,i=e.getRootElement();_r(n,["bpmn:Participant","bpmn:SubProcess"])&&wr(i,"bpmn:Collaboration")&&r(i).filter((function(e){return function(e,t){var n=e.businessObject||e,i=t.businessObject||t;for(;n.$parent;){if(n.$parent===i.processRef||i)return!0;n=n.$parent}return!1}(e,n)})).forEach((function(e){o(e)}))})),this.postExecute("canvas.updateRoot",(function(e){var t=e.context,n=t.oldRoot,i=t.newRoot;r(n).forEach((function(e){wr(i,"bpmn:Process")&&o(e,i)}))}))}Hu.$inject=["eventBus","bpmnFactory"],i(Hu,Xo),Uu.$inject=["bpmnUpdater"],Uu.prototype.execute=function(e){var t=e.dataStoreBo,n=e.dataStoreDi,i=e.newSemanticParent,r=e.newDiParent;e.oldSemanticParent=t.$parent,e.oldDiParent=n.$parent,this._bpmnUpdater.updateSemanticParent(t,i),this._bpmnUpdater.updateDiParent(n,r)},Uu.prototype.revert=function(e){var t=e.dataStoreBo,n=e.dataStoreDi,i=e.oldSemanticParent,r=e.oldDiParent;this._bpmnUpdater.updateSemanticParent(t,i),this._bpmnUpdater.updateDiParent(n,r)},Gu.$inject=["canvas","commandStack","elementRegistry","eventBus"],i(Gu,Xo);function Wu(e,t,n){Xo.call(this,e),this.postExecuted("shape.delete",500,(function(e){var t=e.context,i=t.hints,r=t.shape,o=t.oldParent;wr(r,"bpmn:Lane")&&(i&&i.nested||function(e,t){var i,r,o,a=bc(t),s=[],p=[];mt(a,(function(t){return t.y>e.y?p.push(t):s.push(t),t.children})),a.length&&(i=p.length&&s.length?e.height/2:e.height,s.length&&(r=n.calculateAdjustments(s,"y",i,e.y-10),n.makeSpace(r.movingShapes,r.resizingShapes,{x:0,y:i},"s")),p.length&&(o=n.calculateAdjustments(p,"y",-i,e.y+e.height+10),n.makeSpace(o.movingShapes,o.resizingShapes,{x:0,y:-i},"n")))}(r,o))}))}Wu.$inject=["eventBus","modeling","spaceTool"],i(Wu,Xo);function Ku(e,t){t.invoke(Xo,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",500,(function(e){var t=e.elements;t.filter((function(e){return Yu(e,e.host)})).map((function(e){return t.indexOf(e)})).forEach((function(i){e.elements[i]=n.replaceShape(t[i])}))}),!0),this.preExecute("elements.move",500,(function(e){var t=e.shapes,i=e.newHost;t.forEach((function(e,r){var o,a=e.host;Yu(e,(o=a,-1!==t.indexOf(o)?a:i))&&(t[r]=n.replaceShape(e))}))}),!0)}function Yu(e,t){return!mo(e)&&wr(e,"bpmn:BoundaryEvent")&&!t}function Xu(e,t,n){function i(e,i,r){var o,a,s,p,l,c,u,d,h=i.waypoints,f=e.outgoing.slice(),y=e.incoming.slice(),g=Vs(h,d=m(r.width)?fn(r):r);if(g){if(o=h.slice(0,g.index),a=h.slice(g.index+(g.bendpoint?1:0)),!o.length||!a.length)return;s=g.bendpoint?h[g.index]:d,1!==o.length&&Zu(e,o[o.length-1])||o.push(Ju(s)),1!==a.length&&Zu(e,a[0])||a.unshift(Ju(s))}p=i.source,l=i.target,t.canConnect(p,e,i)&&(n.reconnectEnd(i,e,o||d),c=i),t.canConnect(e,l,i)&&(c?u=n.connect(e,l,{type:i.type,waypoints:a}):(n.reconnectStart(i,e,a||d),u=i));var v=[].concat(c&&w(y,(function(e){return e.source===c.source}))||[],u&&w(f,(function(e){return e.target===u.target}))||[]);v.length&&n.removeElements(v)}Xo.call(this,e),this.preExecute("elements.move",(function(e){var n=e.newParent,i=e.shapes,r=e.delta,o=i[0];if(o&&n){n&&n.waypoints&&(e.newParent=n=n.parent);var a=fn(o),s={x:a.x+r.x,y:a.y+r.y},p=b(n.children,(function(e){return t.canInsert(i,e)&&Vs(e.waypoints,s)}));p&&(e.targetFlow=p,e.position=s)}}),!0),this.postExecuted("elements.move",(function(e){var t=e.shapes,n=e.targetFlow,r=e.position;n&&i(t[0],n,r)}),!0),this.preExecute("shape.create",(function(e){var n=e.parent,i=e.shape;t.canInsert(i,n)&&(e.targetFlow=n,e.parent=n.parent)}),!0),this.postExecuted("shape.create",(function(e){var t=e.shape,n=e.targetFlow,r=e.position;n&&i(t,n,r)}),!0)}function Zu(e,t){var n=t.x,i=t.y;return n>=e.x&&n<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function Ju(e){return q({},e)}function Qu(e,t){Xo.call(this,e),this.preExecuted("connection.create",(function(e){var n=e.context,i=n.source,r=n.target,o=r.incoming.slice();n.hints&&!1===n.hints.createElementsBehavior||wr(i,"bpmn:EventBasedGateway")&&r.incoming.length&&o.filter(ed).forEach((function(e){t.removeConnection(e)}))})),this.preExecuted("shape.replace",(function(e){var n=e.context.newShape;wr(n,"bpmn:EventBasedGateway")&&n.outgoing.filter(ed).map((function(e){return e.target})).reduce((function(e,t){var n=t.incoming.filter(ed);return e.concat(n)}),[]).forEach((function(e){e.source!==n&&t.removeConnection(e)}))}))}function ed(e){return wr(e,"bpmn:SequenceFlow")}Ku.$inject=["bpmnReplace","injector"],i(Ku,Xo),Ku.prototype.replaceShape=function(e){var t,n,i=(n=Er(e).eventDefinitions)&&n[0];return t=i?{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:i.$type}:{type:"bpmn:IntermediateThrowEvent"},this._bpmnReplace.replaceElement(e,t,{layoutConnection:!1})},i(Xu,Xo),Xu.$inject=["eventBus","bpmnRules","modeling"],Qu.$inject=["eventBus","modeling"],i(Qu,Xo);var td=1500;function nd(e,t,n){t.on(["create.hover","create.move","create.out","create.end","shape.move.hover","shape.move.move","shape.move.out","shape.move.end"],td,(function(t){var i=t.context.shape||t.shape,r=t.hover;wr(r,"bpmn:Lane")&&!_r(i,["bpmn:Lane","bpmn:Participant"])&&(t.hover=xc(r),t.hoverGfx=e.getGraphics(t.hover));var o=n.getRootElement();r!==o&&(i.labelTarget||wr(i,"bpmn:Group"))&&(t.hover=o,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["connect.hover","connect.out","connect.end","connect.cleanup","global-connect.hover","global-connect.out","global-connect.end","global-connect.cleanup"],td,(function(t){var n=t.hover;wr(n,"bpmn:Lane")&&(t.hover=xc(n)||n,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["bendpoint.move.hover"],td,(function(t){var n=t.context,i=t.hover,r=n.type;wr(i,"bpmn:Lane")&&/reconnect/.test(r)&&(t.hover=xc(i)||i,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["connect.start"],td,(function(e){var t=e.context,n=t.start;wr(n,"bpmn:Lane")&&(t.start=xc(n)||n)})),t.on("shape.move.start",2e3,(function(e){var t=e.shape;wr(t,"bpmn:Lane")&&(e.shape=xc(t)||t)}))}nd.$inject=["elementRegistry","eventBus","canvas"];function id(e,t,n,i,r,o){function a(e){var n=Er(e).categoryValueRef;if(n){var i=n.$parent;n&&(_t(i.categoryValue,n),i&&!i.categoryValue.length&&function(e){_t(t.getDefinitions().get("rootElements"),e)}(i))}}r.invoke(Xo,this),this.executed("shape.delete",(function(e){var t,i=e.context.shape;if(wr(i,"bpmn:Group")){var r=Er(i).categoryValueRef,o=n.filter((function(e){return wr(e,"bpmn:Group")}));t=r,o.some((function(e){var n=Er(e);return n.categoryValueRef&&n.categoryValueRef===t}))||a(i)}})),this.reverted("shape.delete",(function(e){var n=e.context.shape;if(wr(n,"bpmn:Group")){var i=Er(n).categoryValueRef,r=t.getDefinitions(),o=i?i.$parent:null;Et(o.get("categoryValue"),i),Et(r.get("rootElements"),o)}})),this.execute("shape.create",(function(n){var i=Er(n.context.shape);if(wr(i,"bpmn:Group")&&!i.categoryValueRef){var r=bu(t.getDefinitions(),e);i.categoryValueRef=r}})),this.revert("shape.create",(function(e){var t=e.context.shape;wr(t,"bpmn:Group")&&(a(t),delete Er(t).categoryValueRef)})),i.on("moddleCopy.canCopyProperty",2e3,(function(n){var i,r=n.property;if(wr(r,"bpmn:CategoryValue"))return i=bu(t.getDefinitions(),e),o.copyElement(r,i)}))}function rd(e,t,n,i){var r,o,a,s;return 0==(r=(i.y-n.y)*(t.x-e.x)-(i.x-n.x)*(t.y-e.y))?null:(o=e.y-n.y,a=e.x-n.x,s=((i.x-n.x)*o-(i.y-n.y)*a)/r,{x:Math.round(e.x+s*(t.x-e.x)),y:Math.round(e.y+s*(t.y-e.y))})}function od(e){function t(e,t,n){var i,r={x:n.x,y:n.y-50},o={x:n.x-50,y:n.y},a=rd(e,t,n,r),s=rd(e,t,n,o);i=a&&s?ad(a,n)>ad(s,n)?s:a:a||s,e.original=i}e.on("bpmnElement.added",(function(e){var n,i,r=e.element;r.waypoints&&(t((i=(n=r).waypoints)[0],i[1],fn(n.source)),t(i[i.length-1],i[i.length-2],fn(n.target)))}))}function ad(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function sd(e){Xo.call(this,e);var t=["bpmn:Participant","bpmn:Lane"];this.executed(["shape.move","shape.create","shape.resize"],(function(e){var n=e.context.shape,i=Er(n),r=Pr(n);_r(i,t)&&!r.get("isHorizontal")&&r.set("isHorizontal",!0)}))}function pd(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function ld(e){return Math.atan((e[1].y-e[0].y)/(e[1].x-e[0].x))}function cd(e,t){var n=t[0],i=t[1],r={x:i.x-n.x,y:i.y-n.y},o=function(e,t,n){var i=[{n:e[0]-n[0],lambda:t[0]},{n:e[1]-n[1],lambda:t[1]}];return-(i[0].n*t[0]+i[1].n*t[1])/(i[0].lambda*t[0]+i[1].lambda*t[1])}([n.x,n.y],[r.x,r.y],[e.x,e.y]);return{x:n.x+o*r.x,y:n.y+o*r.y}}function ud(e,t){var n=cd(e,t);return pd({x:n.x-e.x,y:n.y-e.y})}function dd(e,t){return pd({x:e.x-t.x,y:e.y-t.y})}id.$inject=["bpmnFactory","bpmnjs","elementRegistry","eventBus","injector","moddleCopy"],i(id,Xo),od.$inject=["eventBus"],sd.$inject=["eventBus"],i(sd,Xo);var hd=Math.sqrt,md=Math.min,fd=Math.max,yd=Math.abs;function gd(e){return Math.pow(e,2)}function vd(e,t){return hd(gd(e.x-t.x)+gd(e.y-t.y))}function bd(e,t,n,i){var r=t.x-e.x,o=t.y-e.y,a=n.x-e.x,s=n.y-e.y,p=r*r+o*o,l=(r*a+o*s)/p,c=l*l-(a*a+s*s-i*i)/p;if(c<0&&c>-1e-6&&(c=0),c<0)return[];var u=hd(c),d=-l+u,h=-l-u,m={x:e.x-r*d,y:e.y-o*d};return 0===c?[m]:[m,{x:e.x-r*h,y:e.y-o*h}].filter((function(n){return function(e,t,n){return xd(e.x,t.x,n.x)&&xd(e.y,t.y,n.y)}(n,e,t)}))}function xd(e,t,n){return e>=md(t,n)-wd&&e<=fd(t,n)+wd}var wd=.1;function _d(e,t){return yd(e.x-t.x)<=wd&&yd(e.y-t.y)<=wd}function Ed(e,t,n,i){var r=0,o=0,a=function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}(e),s=function(e,t){var n,i,r,o,a,s,p,l,c,u,d,h,m=0;for(m=0;m<t.length-1;m++){if(_d(n=t[m],i=t[m+1])?s=[n]:(r=vd(e,n),o=vd(e,i),s=bd(n,i,e,md(r,o))),s.length<1)throw new Error("expected between [1, 2] circle -> line intersections");1===s.length&&(p={type:"bendpoint",position:s[0],segmentIndex:m,bendpointIndex:_d(n,s[0])?m:m+1}),2===s.length&&(d=s[0],h=s[1],p={type:"segment",position:a={x:(d.x+h.x)/2,y:(d.y+h.y)/2},segmentIndex:m,relativeLocation:vd(n,a)/vd(n,i)}),l=vd(p.position,e),(!u||c>l)&&(u=p,c=l)}return u}(a,n),p=s.segmentIndex,l=function(e,t,n,i){var r=n.segmentIndex,o=t.length-e.length;if(i.segmentMove){var a=i.segmentMove.segmentStartIndex,s=i.segmentMove.newSegmentStartIndex;return r===a?s:r>=s?r+o<s?s:r+o:r}if(i.bendpointMove){var p,l=i.bendpointMove.insert,c=i.bendpointMove.bendpointIndex;return 0===o?r:(r>=c&&(p=l?r+1:r-1),r<c&&(p=r,l&&"bendpoint"!==n.type&&c-1===r&&Pd(t,c)<n.relativeLocation&&p++),p)}return 0===o?r:i.connectionStart?0===r?0:null:i.connectionEnd&&r===e.length-2?t.length-2:null}(n,t,s,i);if(null===l)return{x:r,y:o};if(l<0||l>t.length-2)return{x:r,y:o};var c,u,d=Od(n,p),h=Od(t,l),m=s.position,f=function(e,t){var n=dd(e[0],e[1]),i=dd(e[0],t);return 0===n?0:i/n}(d,m),y=(c=h,u=ld(d),ld(c)-u);if("bendpoint"===s.type){var g=t.length-n.length,v=s.bendpointIndex,b=n[v];if(-1!==t.indexOf(b))return{x:r,y:o};if(0===g){var x=t[v];return{x:x.x-s.position.x,y:x.y-s.position.y}}g<0&&0!==v&&v<n.length-1&&(f=Pd(n,v))}var w,_,E=(h[1].x-h[0].x)*f+h[0].x,P=(h[1].y-h[0].y)*f+h[0].y,O=(w={x:a.x-m.x,y:a.y-m.y},(_=y)?{x:Math.cos(_)*w.x-Math.sin(_)*w.y,y:Math.sin(_)*w.x+Math.cos(_)*w.y}:w);return dn({x:r=E+O.x-a.x,y:o=P+O.y-a.y})}function Pd(e,t){var n=dd(e[t-1],e[t]);return n/(n+dd(e[t],e[t+1]))}function Od(e,t){return[e[t],e[t+1]]}function Sd(e,t,n){var i=La(t),r=La(n),o=Ia(e,i),a=o.x*(n.width/t.width),s=o.y*(n.height/t.height);return dn({x:r.x+a,y:r.y+s})}function kd(e,t,n){var i=La(e),r=La(t),o=La(n),a=Ia(e,i),s=Ia(i,r),p=function(e,t,n){var i=hn(t),r=hn(n);if(function(e,t){return function(e,t){return e.right!==t.right&&e.left!==t.left}(e,t)||function(e,t){return e.top!==t.top&&e.bottom!==t.bottom}(e,t)}(i,r))return null;var o,a,s=yn(t,e);if("top"===s)o={x:0,y:r.bottom-i.bottom};else if("bottom"===s)o={x:0,y:r.top-i.top};else if("right"===s)o={x:r.left-i.left,y:0};else{if("left"!==s)return null;o={x:r.right-i.right,y:0}}if(a={x:e.x+o.x,y:e.y+o.y},yn(n,a)!==s)return null;return o}(i,t,n);if(p)return p;var l=s.x*(n.width/t.width),c=s.y*(n.height/t.height),u=o.x+l,d=o.y+c;return dn({x:u+a.x-e.x,y:d+a.y-e.y})}var Cd={width:90,height:20},Md="name",Td="text";function Ad(e,t,n,i){Xo.call(this,e),this.postExecute("element.updateProperties",(function(e){var n=e.context,r=n.element,o=n.properties;if(Md in o&&t.updateLabel(r,o.name),Td in o&&wr(r,"bpmn:TextAnnotation")){var a=i.getTextAnnotationBounds({x:r.x,y:r.y,width:r.width,height:r.height},o.text||"");t.updateLabel(r,o.text,a)}})),this.postExecute(["shape.create","connection.create"],(function(e){var n=e.context;if(!1!==(n.hints||{}).createElementsBehavior){var r=n.shape||n.connection,o=r.businessObject;if(!mo(r)&&lo(r)&&Vr(r)){var a=ho(r),s=i.getExternalLabelBounds(Cd,Vr(r));t.createLabel(r,a,{id:o.id+"_label",businessObject:o,width:s.width,height:s.height})}}})),this.postExecute("shape.delete",(function(e){var n=e.context,i=n.labelTarget,r=n.hints||{};i&&!1!==r.unsetLabel&&t.updateLabel(i,null,null,{removeShape:!1})})),this.postExecute(["label.create"],(function(e){var t,i=e.context,r=i.shape,o=i.labelTarget;o&&wr(o,"bpmn:BaseElement")&&((t=Pr(o)).label||(t.label=n.create("bpmndi:BPMNLabel",{bounds:n.create("dc:Bounds")}),r.di=t),q(t.label.bounds,{x:r.x,y:r.y,width:r.width,height:r.height}))})),this.postExecute(["connection.layout","connection.updateWaypoints"],(function(e){var n=e.context;if(!1!==(n.hints||{}).labelBehavior){var i,r=n.connection.label;r&&r.parent&&(i=function(e){var t=e.context,n=t.connection,i=n.label,r=q({},t.hints),o=t.newWaypoints||n.waypoints,a=t.oldWaypoints;return void 0===r.startChanged&&(r.startChanged=!!r.connectionStart),void 0===r.endChanged&&(r.endChanged=!!r.connectionEnd),Ed(i,o,a,r)}(e),t.moveShape(r,i))}})),this.postExecute(["shape.replace"],(function(e){var t=e.context,n=t.newShape,i=t.oldShape,r=Er(n);r&&lo(r)&&i.label&&n.label&&(n.label.x=i.label.x,n.label.y=i.label.y)})),this.postExecute("shape.resize",(function(e){var n,i=e.context,r=i.shape,o=i.newBounds,a=i.oldBounds;if(co(r)){var s=r.label,p=Rd(function(e,t){if(!t.length)return;var n=function(e,t){return D(t.map((function(t){return{line:t,distance:ud(e,t)}})),"distance")[0].line}(e,t);return cd(e,n)}(fn(s),[[{x:(n=a).x,y:n.y},{x:n.x+(n.width||0),y:n.y}],[{x:n.x+(n.width||0),y:n.y},{x:n.x+(n.width||0),y:n.y+(n.height||0)}],[{x:n.x,y:n.y+(n.height||0)},{x:n.x+(n.width||0),y:n.y+(n.height||0)}],[{x:n.x,y:n.y},{x:n.x,y:n.y+(n.height||0)}]]),a,o);t.moveShape(s,p)}}))}function Rd(e,t,n){return dn(Ia(Sd(e,t,n),e))}function zd(e,t,n){var i=Ld(e),r=Id(i,t),o=i[0];return r.length?r[r.length-1]:Sd(o.original||o,n,t)}function Dd(e,t,n){var i=Ld(e),r=Id(i,t),o=i[i.length-1];return r.length?r[0]:Sd(o.original||o,n,t)}function jd(e,t,n){var i=Ld(e),r=Nd(t,n),o=i[0];return Sd(o.original||o,r,t)}function Bd(e,t,n){var i=Ld(e),r=Nd(t,n),o=i[i.length-1];return Sd(o.original||o,r,t)}function Nd(e,t){return{x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height}}function Ld(e){var t=e.waypoints;if(!t.length)throw new Error("connection#"+e.id+": no waypoints");return t}function Id(e,t){return w(k(e,$d),(function(e){return function(e,t){return"intersect"===yn(t,e,1)}(e,t)}))}function $d(e){return e.original||e}function Fd(e,t){Xo.call(this,e),this.postExecute("shape.replace",(function(e){var n=e.oldShape,i=e.newShape;if(function(e,t){return wr(e,"bpmn:Participant")&&Nr(e)&&wr(t,"bpmn:Participant")&&!Nr(t)}(n,i)){var r,o,a,s,p=(o=ft([r=n],!1),a=[],s=[],o.forEach((function(e){e!==r&&(e.incoming.forEach((function(e){wr(e,"bpmn:MessageFlow")&&a.push(e)})),e.outgoing.forEach((function(e){wr(e,"bpmn:MessageFlow")&&s.push(e)})))}),[]),{incoming:a,outgoing:s});p.incoming.forEach((function(e){var r=Dd(e,i,n);t.reconnectEnd(e,i,r)})),p.outgoing.forEach((function(e){var r=zd(e,i,n);t.reconnectStart(e,i,r)}))}}),!0)}i(Ad,Xo),Ad.$inject=["eventBus","modeling","bpmnFactory","textRenderer"],Fd.$inject=["eventBus","modeling"],i(Fd,Xo);function Vd(e,t,n){e.on(["shape.move.rejected","create.rejected"],(function(e){var i,r,o,a=e.context,s=a.shape;wr(a.target,"bpmn:Collaboration")&&wr(s,"bpmn:FlowNode")&&(i=e,r=n("flow elements must be children of pools/participants"),t.add({position:{x:i.x+5,y:i.y+5},type:"error",timeout:o||2e3,html:"<div>"+r+"</div>"}))}))}function Hd(e,t){Xo.call(this,e),this.preExecute("shape.resize",(function(e){var n=e.shape,i=Pr(n),r=i&&i.get("label");r&&r.get("bounds")&&t.updateModdleProperties(n,r,{bounds:void 0})}),!0)}function qd(e,t,n){Xo.call(this,e),this.preExecute("shape.delete",(function(e){var i=e.context.shape;if(1===i.incoming.length&&1===i.outgoing.length){var r=i.incoming[0],o=i.outgoing[0];if(wr(r,"bpmn:SequenceFlow")&&wr(o,"bpmn:SequenceFlow")&&t.canConnect(r.source,o.target,r)){var a=function(e,t){var n=rd(Ud(e[e.length-2]),Ud(e[e.length-1]),Ud(t[1]),Ud(t[0]));return n?[].concat(e.slice(0,e.length-1),[n],t.slice(1)):[Ud(e[0]),Ud(t[t.length-1])]}(r.waypoints,o.waypoints);n.reconnectEnd(r,o.target,a)}}}))}function Ud(e){return e.original||e}function Gd(e,t){Xo.call(this,e),this.preExecute("shape.delete",(function(e){var t=e.shape,n=t.parent;wr(t,"bpmn:Participant")&&(e.collaborationRoot=n)}),!0),this.postExecute("shape.delete",(function(e){var n=e.collaborationRoot;n&&!n.businessObject.participants.length&&t.makeProcess()}),!0)}function Wd(e,t,n,i){Xo.call(this,e);var r=i.get("dragging",!1);function o(e){var i,r,o=e.source,a=e.target;e.parent&&(wr(e,"bpmn:SequenceFlow")&&(n.canConnectSequenceFlow(o,a)||(r=!0),n.canConnectMessageFlow(o,a)&&(i="bpmn:MessageFlow")),wr(e,"bpmn:MessageFlow")&&(n.canConnectMessageFlow(o,a)||(r=!0),n.canConnectSequenceFlow(o,a)&&(i="bpmn:SequenceFlow")),wr(e,"bpmn:Association")&&!n.canConnectAssociation(o,a)&&(r=!0),r&&t.removeConnection(e),i&&t.connect(o,a,{type:i,waypoints:e.waypoints.slice()}))}this.postExecuted("elements.move",(function(e){_(e.closure.allConnections,o)}),!0),this.preExecute("connection.reconnect",(function(e){var i,o,a=e.context,s=a.connection,p=a.newSource||s.source,l=a.newTarget||s.target;(i=n.canConnect(p,l))&&i.type!==s.type&&(o=t.connect(p,l,{type:i.type,waypoints:s.waypoints.slice()}),t.removeConnection(s),a.connection=o,r&&function(e,t){var n,i=r.context(),o=i&&i.payload.previousSelection;if(!o||!o.length)return;if(-1===(n=o.indexOf(e)))return;o.splice(n,1,t)}(s,o))})),this.postExecuted("element.updateProperties",(function(e){var n,i=e.context,r=i.properties,o=i.element,a=o.businessObject;r.default&&(n=b(o.outgoing,j({id:o.businessObject.default.id})))&&t.updateProperties(n,{conditionExpression:void 0}),r.conditionExpression&&a.sourceRef.default===a&&t.updateProperties(o.source,{default:void 0})}))}function Kd(e,t,n,i,r,o){i.invoke(Xo,this),this._bpmnReplace=e,this._elementRegistry=n,this._selection=o,this.postExecuted(["elements.create"],500,(function(e){var n=e.context,i=n.parent,r=n.elements,o=t.canReplace(r,i);o&&this.replaceElements(r,o.replacements)}),this),this.postExecuted(["elements.move"],500,(function(e){var n=e.context,i=n.newParent,r=n.newHost,o=[];_(n.closure.topLevel,(function(e){o=Ir(e)?o.concat(e.children):o.concat(e)})),1===o.length&&r&&(i=r);var a=t.canReplace(o,i);a&&this.replaceElements(o,a.replacements,r)}),this),this.postExecute(["shape.replace"],1500,(function(e){var n,i=e.context,r=i.oldShape,o=i.newShape,a=r.attachers;a&&a.length&&(n=t.canReplace(a,o),this.replaceElements(a,n.replacements))}),this),this.postExecuted(["shape.replace"],1500,(function(e){var t=e.context,n=t.oldShape,i=t.newShape;r.unclaimId(n.businessObject.id,n.businessObject),r.updateProperties(i,{id:n.id})}))}Vd.$inject=["eventBus","tooltips","translate"],i(Hd,Xo),Hd.$inject=["eventBus","modeling"],i(qd,Xo),qd.$inject=["eventBus","bpmnRules","modeling"],Gd.$inject=["eventBus","modeling"],i(Gd,Xo),i(Wd,Xo),Wd.$inject=["eventBus","modeling","bpmnRules","injector"],i(Kd,Xo),Kd.prototype.replaceElements=function(e,t){var n=this._elementRegistry,i=this._bpmnReplace,r=this._selection;_(t,(function(t){var r={type:t.newElementType},o=n.get(t.oldElementId),a=e.indexOf(o);e[a]=i.replaceElement(o,r,{select:!1})})),t&&r.select(e)},Kd.$inject=["bpmnReplace","bpmnRules","elementRegistry","injector","modeling","selection"];var Yd=300,Xd=60,Zd={width:300,height:150},Jd={width:140,height:120},Qd={width:50,height:30};function eh(e){e.on("resize.start",1500,(function(e){var t=e.context,n=t.shape,i=t.direction,r=t.balanced;(wr(n,"bpmn:Lane")||wr(n,"bpmn:Participant"))&&(t.resizeConstraints=function(e,t,n){var i=xc(e),r=!0,o=!0,a=vc(i,[i]),s=hn(e),p={},l={};/e/.test(t)?l.right=s.left+Yd:/w/.test(t)&&(l.left=s.right-Yd);return a.forEach((function(e){var i=hn(e);/n/.test(t)&&(i.top<s.top-10&&(r=!1),n&&th(s.top-i.bottom)<10&&ah(p,"top",i.top+Xd),th(s.top-i.top)<5&&oh(l,"top",i.bottom-Xd)),/s/.test(t)&&(i.bottom>s.bottom+10&&(o=!1),n&&th(s.bottom-i.top)<10&&oh(p,"bottom",i.bottom-Xd),th(s.bottom-i.bottom)<5&&ah(l,"bottom",i.top+Xd))})),i.children.filter((function(e){return!e.hidden&&!e.waypoints&&(wr(e,"bpmn:FlowElement")||wr(e,"bpmn:Artifact"))})).forEach((function(e){var n=hn(e);r&&/n/.test(t)&&oh(l,"top",n.top-20),/e/.test(t)&&ah(l,"right",n.right+20),o&&/s/.test(t)&&ah(l,"bottom",n.bottom+20),/w/.test(t)&&oh(l,"left",n.left-50)})),{min:l,max:p}}(n,i,r)),wr(n,"bpmn:Participant")&&(t.minDimensions=Zd),wr(n,"bpmn:SubProcess")&&Nr(n)&&(t.minDimensions=Jd),wr(n,"bpmn:TextAnnotation")&&(t.minDimensions=Qd)}))}eh.$inject=["eventBus"];var th=Math.abs,nh=Math.min,ih=Math.max;function rh(e,t,n,i){var r=e[t];e[t]=void 0===r?n:i(n,r)}function oh(e,t,n){return rh(e,t,n,nh)}function ah(e,t,n){return rh(e,t,n,ih)}function sh(e,t){e.on("resize.start",1501,(function(e){var t=e.context,n=t.shape;(wr(n,"bpmn:Lane")||wr(n,"bpmn:Participant"))&&(t.balanced=!So(e))})),e.on("resize.end",1001,(function(e){var n=e.context,i=n.shape,r=n.canExecute,o=n.newBounds;if(wr(i,"bpmn:Lane")||wr(i,"bpmn:Participant"))return r&&(o=un(o),t.resizeLane(i,o,n.balanced)),!1}))}sh.$inject=["eventBus","modeling"];function ph(e,t,n,i,r){function o(e){return _r(e,["bpmn:ReceiveTask","bpmn:SendTask"])||function(e,t){d(t)||(t=[t]);return S(t,(function(t){return $r(e,t)}))}(e,["bpmn:ErrorEventDefinition","bpmn:EscalationEventDefinition","bpmn:MessageEventDefinition","bpmn:SignalEventDefinition"])}function a(t){return!!b(e.getDefinitions().get("rootElements"),j({id:t.id}))}function s(e){return wr(e,"bpmn:ErrorEventDefinition")?"errorRef":wr(e,"bpmn:EscalationEventDefinition")?"escalationRef":wr(e,"bpmn:MessageEventDefinition")?"messageRef":wr(e,"bpmn:SignalEventDefinition")?"signalRef":void 0}function p(e){if(_r(e,["bpmn:ReceiveTask","bpmn:SendTask"]))return e.get("messageRef");var t=e.get("eventDefinitions")[0];return t.get(s(t))}n.invoke(Xo,this),this.executed("shape.create",(function(t){var n=t.shape;if(o(n)){var i=p(Er(n));i&&!a(i)&&(Et(e.getDefinitions().get("rootElements"),i),t.addedRootElement=i)}}),!0),this.reverted("shape.create",(function(t){var n=t.addedRootElement;n&&_t(e.getDefinitions().get("rootElements"),n)}),!0),t.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element;if(o(n)){var i=p(Er(n));i&&(t.referencedRootElement=i)}})),t.on("copyPaste.pasteElement",500,(function(e){var t=e.descriptor,n=t.businessObject;if(o(n)){var p=t.referencedRootElement;p&&(a(p)||(p=i.copyElement(p,r.create(p.$type))),function(e,t){if(_r(e,["bpmn:ReceiveTask","bpmn:SendTask"]))return e.set("messageRef",t);var n=e.get("eventDefinitions")[0];n.set(s(n),t)}(n,p))}}))}ph.$inject=["bpmnjs","eventBus","injector","moddleCopy","bpmnFactory"],i(ph,Xo);var lh=Math.max;function ch(e){e.on("spaceTool.getMinDimensions",(function(e){var t=e.shapes,n=e.axis,i=e.start,r={};return _(t,(function(e){var t=e.id;wr(e,"bpmn:Participant")&&(!function(e){return"x"===e}(n)?r[t]={width:Zd.width,height:uh(e,i)}:r[t]=Zd),wr(e,"bpmn:SubProcess")&&Nr(e)&&(r[t]=Jd),wr(e,"bpmn:TextAnnotation")&&(r[t]=Qd)})),r}))}function uh(e,t){var n;return bc(e).length?(n=function(e,t){var n,i=bc(e);return n=dh(i,t),e.height-n.height+Xd}(e,t),lh(Zd.height,n)):Zd.height}function dh(e,t){var n,i,r;for(n=0;n<e.length;n++)if(t>=(i=e[n]).y&&t<=i.y+i.height)return(r=bc(i)).length?dh(r,t):i}ch.$inject=["eventBus"];var hh=180,mh=160;function fh(e,t,n,i,r,o,a){Xo.call(this,t),this._canvas=e,this._eventBus=t,this._modeling=n,this._elementFactory=i,this._bpmnFactory=r,this._bpmnjs=o,this._elementRegistry=a;var s=this;function p(e){return wr(e,"bpmn:SubProcess")&&!Nr(e)}function l(t){var n=t.shape,i=t.newRootElement,r=Er(n);i=s._addDiagram(i||r),t.newRootElement=e.addRootElement(i)}function c(t){var n=Er(t.shape);s._removeDiagram(n);var i=t.newRootElement=a.get(ra(n));e.removeRootElement(i)}this.executed("shape.create",(function(e){p(e.shape)&&l(e)}),!0),this.postExecuted("shape.create",(function(e){var t=e.shape,n=e.newRootElement;n&&t.children&&(s._showRecursively(t.children),s._moveChildrenToShape(t,n))}),!0),this.reverted("shape.create",(function(e){p(e.shape)&&c(e)}),!0),this.preExecuted("shape.delete",(function(e){var t=e.shape;if(p(t)){var i=a.get(ra(t));i&&n.removeElements(i.children.slice())}}),!0),this.executed("shape.delete",(function(e){p(e.shape)&&c(e)}),!0),this.reverted("shape.delete",(function(e){p(e.shape)&&l(e)}),!0),this.preExecuted("shape.replace",(function(t){var n=t.oldShape,i=t.newShape;p(n)&&p(i)&&(t.oldRoot=e.removeRootElement(ra(n)))}),!0),this.postExecuted("shape.replace",(function(t){var i=t.newShape,r=t.oldRoot,o=e.findRoot(ra(i));if(r&&o){var a=r.children;n.moveElements(a,{x:0,y:0},o)}}),!0),this.executed("element.updateProperties",(function(e){var t=e.element;if(wr(t,"bpmn:SubProcess")){var n=e.properties,i=e.oldProperties.id,r=n.id;if(i!==r){if(aa(t))return a.updateId(t,oa(r)),void a.updateId(i,r);a.get(oa(i))&&a.updateId(oa(i),oa(r))}}}),!0),this.reverted("element.updateProperties",(function(e){var t=e.element;if(wr(t,"bpmn:SubProcess")){var n=e.properties,i=e.oldProperties.id,r=n.id;if(i!==r){if(aa(t))return a.updateId(t,oa(i)),void a.updateId(r,i);var o=a.get(oa(r));o&&a.updateId(o,oa(i))}}}),!0),t.on("element.changed",(function(e){var n=e.element;if(aa(n)){var i=n,r=a.get(ia(i));r&&r!==i&&t.fire("element.changed",{element:r})}})),this.executed("shape.toggleCollapse",400,(function(e){var t=e.shape;wr(t,"bpmn:SubProcess")&&(Nr(t)?c(e):(l(e),s._showRecursively(t.children)))}),!0),this.reverted("shape.toggleCollapse",400,(function(e){var t=e.shape;wr(t,"bpmn:SubProcess")&&(Nr(t)?c(e):(l(e),s._showRecursively(t.children)))}),!0),this.postExecuted("shape.toggleCollapse",600,(function(e){var t=e.shape;if(wr(t,"bpmn:SubProcess")){var n=e.newRootElement;n&&(Nr(t)?s._moveChildrenToShape(n,t):s._moveChildrenToShape(t,n))}}),!0),t.on("copyPaste.createTree",(function(e){var t=e.element,n=e.children;if(p(t)){var i=ra(t),r=a.get(i);r&&n.push.apply(n,r.children)}})),t.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element,i=e.elements,r=n.parent;if(wr(Pr(r),"bpmndi:BPMNPlane")){var o=ia(r),a=b(i,(function(e){return e.id===o}));a&&(t.parent=a.id)}})),t.on("copyPaste.pasteElement",(function(e){var t=e.descriptor;t.parent&&(p(t.parent)||t.parent.hidden)&&(t.hidden=!0)}))}function yh(e,t){e.invoke(Xo,this),this.postExecuted("shape.replace",(function(e){var n=e.context.oldShape,i=e.context.newShape;if(wr(i,"bpmn:SubProcess")&&wr(n,"bpmn:Task")&&Nr(i)){var r,o={x:(r=i).x+r.width/6,y:r.y+r.height/2};t.createShape({type:"bpmn:StartEvent"},o,i)}}))}function gh(e,t){Xo.call(this,e),this.postExecuted("shape.toggleCollapse",1500,(function(e){var n=e.shape;if(!Nr(n)){var i=ft(n);i.forEach((function(e){var t=e.incoming.slice(),n=e.outgoing.slice();_(t,(function(e){r(e,!0)})),_(n,(function(e){r(e,!1)}))}))}function r(e,r){-1!==i.indexOf(e.source)&&-1!==i.indexOf(e.target)||(r?t.reconnectEnd(e,n,fn(n)):t.reconnectStart(e,n,fn(n)))}}),!0)}i(fh,Xo),fh.prototype._moveChildrenToShape=function(e,t){var n,i=this._modeling,r=e.children;if(r){var o=r.filter((function(e){return!e.hidden}));if(o.length){var a=yt(o);if(t.x){var s=fn(t),p=fn(a);n={x:s.x-p.x,y:s.y-p.y}}else n={x:hh-a.x,y:mh-a.y};i.moveElements(r,n,t,{autoResize:!1})}else i.moveElements(r,{x:0,y:0},t,{autoResize:!1})}},fh.prototype._showRecursively=function(e,t){var n=this,i=[];return e.forEach((function(e){e.hidden=!!t,i=i.concat(e),e.children&&(i=i.concat(n._showRecursively(e.children,e.collapsed||t)))})),i},fh.prototype._addDiagram=function(e){var t=this._bpmnjs.getDefinitions().diagrams;return e.businessObject||(e=this._createNewDiagram(e)),t.push(e.di.$parent),e},fh.prototype._createNewDiagram=function(e){var t=this._bpmnFactory,n=this._elementFactory,i=t.create("bpmndi:BPMNPlane",{bpmnElement:e}),r=t.create("bpmndi:BPMNDiagram",{plane:i});return i.$parent=r,n.createRoot({id:ra(e),type:e.$type,di:i,businessObject:e,collapsed:!0})},fh.prototype._removeDiagram=function(e){var t=this._bpmnjs.getDefinitions().diagrams,n=b(t,(function(t){return t.plane.bpmnElement.id===e.id}));return t.splice(t.indexOf(n),1),n},fh.$inject=["canvas","eventBus","modeling","elementFactory","bpmnFactory","bpmnjs","elementRegistry"],yh.$inject=["injector","modeling"],i(yh,Xo),i(gh,Xo),gh.$inject=["eventBus","modeling"];function vh(e,t,n,i){Xo.call(this,e),this.executed(["shape.toggleCollapse"],500,(function(e){var t,n=e.context.shape;wr(n,"bpmn:SubProcess")&&(n.collapsed?Pr(n).isExpanded=!1:((t=n.children).length&&t.forEach((function(e){"label"!==e.type||e.businessObject.name||(e.hidden=!0)})),Pr(n).isExpanded=!0))})),this.reverted(["shape.toggleCollapse"],500,(function(e){var t=e.context.shape;t.collapsed?Pr(t).isExpanded=!1:Pr(t).isExpanded=!0})),this.postExecuted(["shape.toggleCollapse"],500,(function(e){var i,r=e.context.shape,o=t.getDefaultSize(r);i=r.collapsed?function(e,t){return{x:e.x+(e.width-t.width)/2,y:e.y+(e.height-t.height)/2,width:t.width,height:t.height}}(r,o):function(e,t){var n,i,r=e.children,o=t;return(n=mc((i=r,i.filter((function(e){return!e.hidden}))).concat([e])))?(o.width=Math.max(n.width,o.width),o.height=Math.max(n.height,o.height),o.x=n.x+(n.width-o.width)/2,o.y=n.y+(n.height-o.height)/2):(o.x=e.x+(e.width-o.width)/2,o.y=e.y+(e.height-o.height)/2),o}(r,o),n.resizeShape(r,i,null,{autoResize:!r.collapsed&&"nwse"})}))}function bh(e,t,n,i){t.invoke(Xo,this),this.preExecute("shape.delete",(function(e){var t=e.context.shape,r=t.businessObject;mo(t)||(wr(t,"bpmn:Participant")&&Nr(t)&&n.ids.unclaim(r.processRef.id),i.unclaimId(r.id,r))})),this.preExecute("connection.delete",(function(e){var t=e.context.connection.businessObject;i.unclaimId(t.id,t)})),this.preExecute("canvas.updateRoot",(function(){var t=e.getRootElement(),i=t.businessObject;wr(t,"bpmn:Collaboration")&&n.ids.unclaim(i.id)}))}function xh(e,t){Xo.call(this,e),this.preExecute("connection.delete",(function(e){var n=e.context.connection,i=n.source;(function(e,t){if(!wr(e,"bpmn:SequenceFlow"))return!1;var n=Er(t),i=Er(e);return n.get("default")===i})(n,i)&&t.updateProperties(i,{default:null})}))}i(vh,Xo),vh.$inject=["eventBus","elementFactory","modeling"],i(bh,Xo),bh.$inject=["canvas","injector","moddle","modeling"],i(xh,Xo),xh.$inject=["eventBus","modeling"];function wh(e,t,n){var i;function r(){if(!i)throw new Error(n("out of bounds release"));return i}Xo.call(this,e);var o=["spaceTool","lane.add","lane.resize","lane.split","elements.create","elements.delete","elements.move","shape.create","shape.delete","shape.move","shape.resize"];this.preExecute(o,5e3,(function(e){(i=i||new _h).enter()})),this.postExecuted(o,500,(function(e){!function(){if(!i)throw new Error(n("out of bounds release"));var e=i.leave();e&&(t.updateLaneRefs(i.flowNodes,i.lanes),i=null)}()})),this.preExecute(["shape.create","shape.move","shape.delete","shape.resize"],(function(e){var t=e.context.shape,n=r();t.labelTarget||(wr(t,"bpmn:Lane")&&n.addLane(t),wr(t,"bpmn:FlowNode")&&n.addFlowNode(t))}))}function _h(){this.flowNodes=[],this.lanes=[],this.counter=0,this.addLane=function(e){this.lanes.push(e)},this.addFlowNode=function(e){this.flowNodes.push(e)},this.enter=function(){this.counter++},this.leave=function(){return this.counter--,!this.counter}}wh.$inject=["eventBus","modeling","translate"],i(wh,Xo);var Eh={__init__:["adaptiveLabelPositioningBehavior","appendBehavior","associationBehavior","attachEventBehavior","boundaryEventBehavior","createBehavior","createDataObjectBehavior","createParticipantBehavior","dataInputAssociationBehavior","dataStoreBehavior","deleteLaneBehavior","detachEventBehavior","dropOnFlowBehavior","eventBasedGatewayBehavior","fixHoverBehavior","groupBehavior","importDockingFix","isHorizontalFix","labelBehavior","messageFlowBehavior","modelingFeedback","removeElementBehavior","removeEmbeddedLabelBoundsBehavior","removeParticipantBehavior","replaceConnectionBehavior","replaceElementBehaviour","resizeBehavior","resizeLaneBehavior","rootElementReferenceBehavior","spaceToolBehavior","subProcessPlaneBehavior","subProcessStartEventBehavior","toggleCollapseConnectionBehaviour","toggleElementCollapseBehaviour","unclaimIdBehavior","updateFlowNodeRefsBehavior","unsetDefaultFlowBehavior"],adaptiveLabelPositioningBehavior:["type",Mu],appendBehavior:["type",Au],associationBehavior:["type",Ru],attachEventBehavior:["type",zu],boundaryEventBehavior:["type",ju],createBehavior:["type",Bu],createDataObjectBehavior:["type",Nu],createParticipantBehavior:["type",Fu],dataInputAssociationBehavior:["type",Hu],dataStoreBehavior:["type",Gu],deleteLaneBehavior:["type",Wu],detachEventBehavior:["type",Ku],dropOnFlowBehavior:["type",Xu],eventBasedGatewayBehavior:["type",Qu],fixHoverBehavior:["type",nd],groupBehavior:["type",id],importDockingFix:["type",od],isHorizontalFix:["type",sd],labelBehavior:["type",Ad],messageFlowBehavior:["type",Fd],modelingFeedback:["type",Vd],removeElementBehavior:["type",qd],removeEmbeddedLabelBoundsBehavior:["type",Hd],removeParticipantBehavior:["type",Gd],replaceConnectionBehavior:["type",Wd],replaceElementBehaviour:["type",Kd],resizeBehavior:["type",eh],resizeLaneBehavior:["type",sh],rootElementReferenceBehavior:["type",ph],spaceToolBehavior:["type",ch],subProcessPlaneBehavior:["type",fh],subProcessStartEventBehavior:["type",yh],toggleCollapseConnectionBehaviour:["type",gh],toggleElementCollapseBehaviour:["type",vh],unclaimIdBehavior:["type",bh],unsetDefaultFlowBehavior:["type",xh],updateFlowNodeRefsBehavior:["type",wh]};function Ph(e,t){var n=yn(e,t,-15);return"intersect"!==n?n:null}function Oh(e){Ps.call(this,e)}function Sh(e){return!e||mo(e)}function kh(e){do{if(wr(e,"bpmn:Process"))return Er(e);if(wr(e,"bpmn:Participant"))return Er(e).processRef||Er(e)}while(e=e.parent)}function Ch(e){return wr(e,"bpmn:TextAnnotation")}function Mh(e){return wr(e,"bpmn:Group")&&!e.labelTarget}function Th(e){return wr(e,"bpmn:BoundaryEvent")&&zh(e,"bpmn:CompensateEventDefinition")}function Ah(e){return Er(e).isForCompensation}function Rh(e){for(var t=e;t=t.parent;){if(wr(t,"bpmn:FlowElementsContainer"))return Er(t);if(wr(t,"bpmn:Participant"))return Er(t).processRef}return null}function zh(e,t){return!!b(Er(e).eventDefinitions||[],(function(e){return wr(e,t)}))}function Dh(e,t){return(Er(e).eventDefinitions||[]).every((function(e){return wr(e,t)}))}function jh(e){return wr(e,"bpmn:ReceiveTask")||wr(e,"bpmn:IntermediateCatchEvent")&&(zh(e,"bpmn:MessageEventDefinition")||zh(e,"bpmn:TimerEventDefinition")||zh(e,"bpmn:ConditionalEventDefinition")||zh(e,"bpmn:SignalEventDefinition"))}function Bh(e){return e.waypoints}function Nh(e,t){return-1!==function(e){for(var t=[];e;)(e=e.parent)&&t.push(e);return t}(t).indexOf(e)}function Lh(e,t,n){if(Sh(e)||Sh(t))return null;if(!wr(n,"bpmn:DataAssociation")){if(Zh(e,t))return{type:"bpmn:MessageFlow"};if(Jh(e,t))return{type:"bpmn:SequenceFlow"}}var i=Qh(e,t);return i||(Th(e)&&Ah(t)?{type:"bpmn:Association",associationDirection:"One"}:!!Xh(e,t)&&{type:"bpmn:Association"})}function Ih(e,t,n){return!(!mo(e)&&!Mh(e))||!(wr(t,"bpmn:Participant")&&!Nr(t))&&(wr(e,"bpmn:Participant")?wr(t,"bpmn:Process")||wr(t,"bpmn:Collaboration"):_r(e,["bpmn:DataInput","bpmn:DataOutput"])&&e.parent?t===e.parent:wr(e,"bpmn:Lane")?wr(t,"bpmn:Participant")||wr(t,"bpmn:Lane"):!(wr(e,"bpmn:BoundaryEvent")&&(i=e,!Er(i).cancelActivity||!Vh(i)&&!Hh(i)))&&(wr(e,"bpmn:FlowElement")&&!wr(e,"bpmn:DataStoreReference")?wr(t,"bpmn:FlowElementsContainer")?Nr(t):_r(t,["bpmn:Participant","bpmn:Lane"]):wr(e,"bpmn:DataStoreReference")&&wr(t,"bpmn:Collaboration")?S(Er(t).get("participants"),(function(e){return!!e.get("processRef")})):_r(e,["bpmn:Artifact","bpmn:DataAssociation","bpmn:DataStoreReference"])?_r(t,["bpmn:Collaboration","bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"]):!!wr(e,"bpmn:MessageFlow")&&(wr(t,"bpmn:Collaboration")||e.source.parent==t||e.target.parent==t)));var i}function $h(e){return wr(e,"bpmn:Lane")}function Fh(e){return!!function(e){return!mo(e)&&wr(e,"bpmn:BoundaryEvent")}(e)||(!(!wr(e,"bpmn:IntermediateThrowEvent")||!Vh(e))||wr(e,"bpmn:IntermediateCatchEvent")&&Hh(e))}function Vh(e){var t=Er(e);return t&&!(t.eventDefinitions&&t.eventDefinitions.length)}function Hh(e){return qh(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])}function qh(e,t){return t.some((function(t){return zh(e,t)}))}function Uh(e,t,n,i){if(Array.isArray(e)||(e=[e]),1!==e.length)return!1;var r=e[0];return!mo(r)&&(!!Fh(r)&&(!Ir(t)&&(!(!wr(t,"bpmn:Activity")||Ah(t))&&(!(i&&!Ph(i,t))&&(!function(e){return wr(e,"bpmn:ReceiveTask")&&b(e.incoming,(function(e){return wr(e.source,"bpmn:EventBasedGateway")}))}(t)&&"attach")))))}function Gh(e,t,n){if(!t)return!1;var i={replacements:[]};return _(e,(function(e){Ir(t)||wr(e,"bpmn:StartEvent")&&"label"!==e.type&&Ih(e,t)&&(Lr(e)||i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"}),(function(e){return $r(e,"bpmn:ErrorEventDefinition")}(e)||function(e){return $r(e,"bpmn:EscalationEventDefinition")}(e)||function(e){return $r(e,"bpmn:CompensateEventDefinition")}(e))&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"}),qh(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])&&wr(t,"bpmn:SubProcess")&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"})),wr(t,"bpmn:Transaction")||zh(e,"bpmn:CancelEventDefinition")&&"label"!==e.type&&(wr(e,"bpmn:EndEvent")&&Ih(e,t)&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:EndEvent"}),wr(e,"bpmn:BoundaryEvent")&&Uh(e,t,0,n)&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:BoundaryEvent"}))})),!!i.replacements.length&&i}function Wh(e,t){return!S(e,$h)&&(!t||e.every((function(e){return Ih(e,t)})))}function Kh(e,t,n,i){return!!t&&(!(!mo(e)&&!Mh(e))||!function(e,t){return e===t}(n,t)&&((!n||!Nh(n,t))&&(Ih(e,t)||em(e,t))))}function Yh(e,t){return wr(e,"bpmn:SubProcess")?Nr(e)&&(!t||t.width>=100&&t.height>=80):wr(e,"bpmn:Lane")?!t||t.width>=130&&t.height>=60:wr(e,"bpmn:Participant")?!t||t.width>=250&&t.height>=50:!!Ch(e)||!!Mh(e)}function Xh(e,t){return!Bh(e)&&!Bh(t)&&(!(!Th(e)||!Ah(t))||!Nh(t,e)&&!Nh(e,t)&&(!!function(e,t){var n=Ch(e),i=Ch(t);return(n||i)&&n!==i}(e,t)||!!Qh(e,t)))}function Zh(e,t){return!(im(e)&&!im(t))&&(wr(n=e,"bpmn:InteractionNode")&&!wr(n,"bpmn:BoundaryEvent")&&(!wr(n,"bpmn:Event")||wr(n,"bpmn:ThrowEvent")&&Dh(n,"bpmn:MessageEventDefinition"))&&function(e){return wr(e,"bpmn:InteractionNode")&&!Ah(e)&&(!wr(e,"bpmn:Event")||wr(e,"bpmn:CatchEvent")&&Dh(e,"bpmn:MessageEventDefinition"))&&!(wr(e,"bpmn:BoundaryEvent")&&!zh(e,"bpmn:MessageEventDefinition"))}(t)&&!function(e,t){return kh(e)===kh(t)}(e,t));var n}function Jh(e,t){return!(jh(t)&&t.incoming.length>0&&(n=t.incoming,(n=n||[]).some(nm))&&!wr(e,"bpmn:EventBasedGateway"))&&(wr(i=e,"bpmn:FlowNode")&&!wr(i,"bpmn:EndEvent")&&!Ir(i)&&!(wr(i,"bpmn:IntermediateThrowEvent")&&zh(i,"bpmn:LinkEventDefinition"))&&!Th(i)&&!Ah(i)&&function(e){return wr(e,"bpmn:FlowNode")&&!wr(e,"bpmn:StartEvent")&&!wr(e,"bpmn:BoundaryEvent")&&!Ir(e)&&!(wr(e,"bpmn:IntermediateCatchEvent")&&zh(e,"bpmn:LinkEventDefinition"))&&!Ah(e)}(t)&&function(e,t){return Rh(e)===Rh(t)}(e,t)&&!(wr(e,"bpmn:EventBasedGateway")&&!jh(t)));var n,i}function Qh(e,t){return _r(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&_r(t,["bpmn:Activity","bpmn:ThrowEvent"])?{type:"bpmn:DataInputAssociation"}:!(!_r(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])||!_r(e,["bpmn:Activity","bpmn:CatchEvent"]))&&{type:"bpmn:DataOutputAssociation"}}function em(e,t,n){if(!t)return!1;if(Array.isArray(e)){if(1!==e.length)return!1;e=e[0]}return t.source!==e&&t.target!==e&&(_r(t,["bpmn:SequenceFlow","bpmn:MessageFlow"])&&!mo(t)&&wr(e,"bpmn:FlowNode")&&!wr(e,"bpmn:BoundaryEvent")&&Ih(e,t.parent))}function tm(e,t){return!!mo(t)||!(wr(t,"bpmn:Lane")&&!function(e,t){return e&&t&&-1!==e.indexOf(t)}(e,t.parent))}function nm(e){if(e&&e.source)return wr(e.source,"bpmn:EventBasedGateway")}function im(e){return gs(e,"bpmn:Process")||gs(e,"bpmn:Collaboration")}i(Oh,Ps),Oh.$inject=["eventBus"],Oh.prototype.init=function(){this.addRule("connection.start",(function(e){return function(e){if(Sh(e))return null;return _r(e,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference","bpmn:Group","bpmn:TextAnnotation"])}(e.source)})),this.addRule("connection.create",(function(e){var t=e.source,n=e.target,i=e.hints||{},r=i.targetParent;if(i.targetAttach)return!1;r&&(n.parent=r);try{return Lh(t,n)}finally{r&&(n.parent=null)}})),this.addRule("connection.reconnect",(function(e){var t=e.connection;return Lh(e.source,e.target,t)})),this.addRule("connection.updateWaypoints",(function(e){return{type:e.connection.type}})),this.addRule("shape.resize",(function(e){return Yh(e.shape,e.newBounds)})),this.addRule("elements.create",(function(e){var t=e.elements,n=e.position,i=e.target;return!(Bh(i)&&!em(t,i))&&O(t,(function(e){return Bh(e)?Lh(e.source,e.target,e):e.host?Uh(e,e.host,null,n):Kh(e,i,null)}))})),this.addRule("elements.move",(function(e){var t=e.target,n=e.shapes,i=e.position;return Uh(n,t,null,i)||Gh(n,t,i)||Wh(n,t)||em(n,t)})),this.addRule("shape.create",(function(e){return Kh(e.shape,e.target,e.source,e.position)})),this.addRule("shape.attach",(function(e){return Uh(e.shape,e.target,null,e.position)})),this.addRule("element.copy",(function(e){var t=e.element;return tm(e.elements,t)}))},Oh.prototype.canConnectMessageFlow=Zh,Oh.prototype.canConnectSequenceFlow=Jh,Oh.prototype.canConnectDataAssociation=Qh,Oh.prototype.canConnectAssociation=Xh,Oh.prototype.canMove=Wh,Oh.prototype.canAttach=Uh,Oh.prototype.canReplace=Gh,Oh.prototype.canDrop=Ih,Oh.prototype.canInsert=em,Oh.prototype.canCreate=Kh,Oh.prototype.canConnect=Lh,Oh.prototype.canResize=Yh,Oh.prototype.canCopy=tm;var rm={__depends__:[Is],__init__:["bpmnRules"],bpmnRules:["type",Oh]};function om(e,t){e.on("saveXML.start",2e3,(function(){_(t.getRootElements(),(function(e){var t,n=Pr(e);t=k(w(ft([e],!1),(function(t){return t!==e&&!t.labelTarget})),Pr),n.set("planeElement",t)}))}))}om.$inject=["eventBus","canvas"];var am={__init__:["bpmnDiOrdering"],bpmnDiOrdering:["type",om]};function sm(e){Xo.call(this,e);var t=this;this.preExecute(["shape.create","connection.create"],(function(e){var n=e.context,i=n.shape||n.connection,r=n.parent,o=t.getOrdering(i,r);o&&(void 0!==o.parent&&(n.parent=o.parent),n.parentIndex=o.index)})),this.preExecute(["shape.move","connection.move"],(function(e){var n=e.context,i=n.shape||n.connection,r=n.newParent||i.parent,o=t.getOrdering(i,r);o&&(void 0!==o.parent&&(n.newParent=o.parent),n.newParentIndex=o.index)}))}function pm(e,t,n){sm.call(this,e);var i=[{type:"bpmn:SubProcess",order:{level:6}},{type:"bpmn:SequenceFlow",order:{level:3,containers:["bpmn:Participant","bpmn:FlowElementsContainer"]}},{type:"bpmn:DataAssociation",order:{level:9,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:MessageFlow",order:{level:9,containers:["bpmn:Collaboration"]}},{type:"bpmn:Association",order:{level:6,containers:["bpmn:Participant","bpmn:FlowElementsContainer","bpmn:Collaboration"]}},{type:"bpmn:BoundaryEvent",order:{level:8}},{type:"bpmn:Group",order:{level:10,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:FlowElement",order:{level:5}},{type:"bpmn:Participant",order:{level:-2}},{type:"bpmn:Lane",order:{level:-1}}];function r(e){var t=e.order;if(t||(e.order=t=function(e){if(e.labelTarget)return{level:10};var t=b(i,(function(t){return _r(e,[t.type])}));return t&&t.order||{level:1}}(e)),!t)throw new Error("no order for <"+e.id+">");return t}this.getOrdering=function(e,n){if(e.labelTarget)return{parent:t.findRoot(e.labelTarget)||t.getRootElement(),index:-1};var i=r(e);i.containers&&(n=function(e,t,n){for(var i=t;i&&!_r(i,n);)i=i.parent;if(!i)throw new Error("no parent for <"+e.id+"> in <"+(t&&t.id)+">");return i}(e,n,i.containers));var o=n.children.indexOf(e),a=x(n.children,(function(t){return!(!e.labelTarget&&t.labelTarget)&&i.level<r(t).level}));return-1!==a&&-1!==o&&o<a&&(a-=1),{index:a,parent:n}}}sm.prototype.getOrdering=function(e,t){return null},i(sm,Xo),pm.$inject=["eventBus","canvas","translate"],i(pm,sm);var lm={__depends__:[so],__init__:["bpmnOrderingProvider"],bpmnOrderingProvider:["type",pm]};function cm(e,t){this._handlerMap={},this._stack=[],this._stackIdx=-1,this._currentExecution={actions:[],dirty:[],trigger:null},this._injector=t,this._eventBus=e,this._uid=1,e.on(["diagram.destroy","diagram.clear"],(function(){this.clear(!1)}),this)}cm.$inject=["eventBus","injector"],cm.prototype.execute=function(e,t){if(!e)throw new Error("command required");this._currentExecution.trigger="execute";var n={command:e,context:t};this._pushAction(n),this._internalExecute(n),this._popAction(n)},cm.prototype.canExecute=function(e,t){var n={command:e,context:t},i=this._getHandler(e),r=this._fire(e,"canExecute",n);if(void 0===r){if(!i)return!1;i.canExecute&&(r=i.canExecute(t))}return r},cm.prototype.clear=function(e){this._stack.length=0,this._stackIdx=-1,!1!==e&&this._fire("changed",{trigger:"clear"})},cm.prototype.undo=function(){var e,t=this._getUndoAction();if(t){for(this._currentExecution.trigger="undo",this._pushAction(t);t&&(this._internalUndo(t),(e=this._getUndoAction())&&e.id===t.id);)t=e;this._popAction()}},cm.prototype.redo=function(){var e,t=this._getRedoAction();if(t){for(this._currentExecution.trigger="redo",this._pushAction(t);t&&(this._internalExecute(t,!0),(e=this._getRedoAction())&&e.id===t.id);)t=e;this._popAction()}},cm.prototype.register=function(e,t){this._setHandler(e,t)},cm.prototype.registerHandler=function(e,t){if(!e||!t)throw new Error("command and handlerCls must be defined");var n=this._injector.instantiate(t);this.register(e,n)},cm.prototype.canUndo=function(){return!!this._getUndoAction()},cm.prototype.canRedo=function(){return!!this._getRedoAction()},cm.prototype._getRedoAction=function(){return this._stack[this._stackIdx+1]},cm.prototype._getUndoAction=function(){return this._stack[this._stackIdx]},cm.prototype._internalUndo=function(e){var t=this,n=e.command,i=e.context,r=this._getHandler(n);this._atomicDo((function(){t._fire(n,"revert",e),r.revert&&t._markDirty(r.revert(i)),t._revertedAction(e),t._fire(n,"reverted",e)}))},cm.prototype._fire=function(e,t,n){arguments.length<3&&(n=t,t=null);var i,r,o,a=t?[e+"."+t,t]:[e];for(n=this._eventBus.createEvent(n),i=0;(r=a[i])&&(o=this._eventBus.fire("commandStack."+r,n),!n.cancelBubble);i++);return o},cm.prototype._createId=function(){return this._uid++},cm.prototype._atomicDo=function(e){var t=this._currentExecution;t.atomic=!0;try{e()}finally{t.atomic=!1}},cm.prototype._internalExecute=function(e,t){var n=this,i=e.command,r=e.context,o=this._getHandler(i);if(!o)throw new Error("no command handler registered for <"+i+">");this._pushAction(e),t||(this._fire(i,"preExecute",e),o.preExecute&&o.preExecute(r),this._fire(i,"preExecuted",e)),this._atomicDo((function(){n._fire(i,"execute",e),o.execute&&n._markDirty(o.execute(r)),n._executedAction(e,t),n._fire(i,"executed",e)})),t||(this._fire(i,"postExecute",e),o.postExecute&&o.postExecute(r),this._fire(i,"postExecuted",e)),this._popAction(e)},cm.prototype._pushAction=function(e){var t=this._currentExecution,n=t.actions,i=n[0];if(t.atomic)throw new Error("illegal invocation in <execute> or <revert> phase (action: "+e.command+")");e.id||(e.id=i&&i.id||this._createId()),n.push(e)},cm.prototype._popAction=function(){var e=this._currentExecution,t=e.trigger,n=e.actions,i=e.dirty;n.pop(),n.length||(this._eventBus.fire("elements.changed",{elements:R("id",i.reverse())}),i.length=0,this._fire("changed",{trigger:t}),e.trigger=null)},cm.prototype._markDirty=function(e){var t=this._currentExecution;e&&(e=d(e)?e:[e],t.dirty=t.dirty.concat(e))},cm.prototype._executedAction=function(e,t){var n=++this._stackIdx;t||this._stack.splice(n,this._stack.length,e)},cm.prototype._revertedAction=function(e){this._stackIdx--},cm.prototype._getHandler=function(e){return this._handlerMap[e]},cm.prototype._setHandler=function(e,t){if(!e||!t)throw new Error("command and handler required");if(this._handlerMap[e])throw new Error("overriding handler for command <"+e+">");this._handlerMap[e]=t};var um={commandStack:["type",cm]},dm=new Fo("tt");function hm(e,t){e.style.display=!1===t?"none":""}var mm=".djs-tooltip";function fm(e,t){var n,i;this._eventBus=e,this._canvas=t,this._ids=dm,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=(n=t.getContainer(),i=fe('<div class="djs-tooltip-container" style="position: absolute; width: 0; height: 0;" />'),n.insertBefore(i,n.firstChild),i);var r=this;me.bind(this._tooltipRoot,mm,"mousedown",(function(e){e.stopPropagation()})),me.bind(this._tooltipRoot,mm,"mouseover",(function(e){r.trigger("mouseover",e)})),me.bind(this._tooltipRoot,mm,"mouseout",(function(e){r.trigger("mouseout",e)})),this._init()}fm.$inject=["eventBus","canvas"],fm.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var t=this._ids.next();return e=q({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t},fm.prototype.trigger=function(e,t){var n=t.delegateTarget||t.target,i=this.get(X(n,"data-tooltip-id"));i&&("mouseover"===e&&i.timeout&&this.clearTimeout(i),"mouseout"===e&&i.timeout&&(i.timeout=1e3,this.setTimeout(i)))},fm.prototype.get=function(e){return"string"!=typeof e&&(e=e.id),this._tooltips[e]},fm.prototype.clearTimeout=function(e){if(e=this.get(e)){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}},fm.prototype.setTimeout=function(e){if(e=this.get(e)){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout((function(){t.remove(e)}),e.timeout)}},fm.prototype.remove=function(e){var t=this.get(e);t&&(xe(t.html),xe(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])},fm.prototype.show=function(){hm(this._tooltipRoot)},fm.prototype.hide=function(){hm(this._tooltipRoot,!1)},fm.prototype._updateRoot=function(e){var t=e.scale||1,n=e.scale||1,i="matrix("+t+",0,0,"+n+","+-1*e.x*t+","+-1*e.y*n+")";this._tooltipRoot.style.transform=i,this._tooltipRoot.style["-ms-transform"]=i},fm.prototype._addTooltip=function(e){var t,n=e.id,i=e.html,r=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),y(i)&&(i=fe(i)),(t=fe('<div data-tooltip-id="'+n+'" class="'+'djs-tooltip" style="position: absolute">')).appendChild(i),e.type&&te(t).add("djs-tooltip-"+e.type),e.className&&te(t).add(e.className),e.htmlContainer=t,r.appendChild(t),this._tooltips[n]=e,this._updateTooltip(e)},fm.prototype._updateTooltip=function(e){var t=e.position;!function(e,t,n){q(e.style,{left:t+"px",top:n+"px"})}(e.htmlContainer,t.x,t.y)},fm.prototype._updateTooltipVisibilty=function(e){_(this._tooltips,(function(t){var n=t.show,i=t.htmlContainer,r=!0;n&&((n.minZoom>e.scale||n.maxZoom<e.scale)&&(r=!1),hm(i,r))}))},fm.prototype._init=function(){var e=this;this._eventBus.on("canvas.viewbox.changing",(function(t){e.hide()})),this._eventBus.on("canvas.viewbox.changed",(function(t){var n;n=t.viewbox,e._updateRoot(n),e._updateTooltipVisibilty(n),e.show()}))};var ym={__init__:["tooltips"],tooltips:["type",fm]};function gm(e,t){if("function"!=typeof t)throw new Error("removeFn iterator must be a function");if(e){for(var n;n=e[0];)t(n);return e}}function vm(e,t,n){Xo.call(this,t);var i=e.get("movePreview",!1);t.on("shape.move.start",1400,(function(e){var t=e.context,n=t.shapes,i=t.validatedShapes;t.shapes=bm(n),t.validatedShapes=bm(i)})),i&&t.on("shape.move.start",250,(function(e){var t=e.context,n=t.shapes,r=[];_(n,(function(e){_(e.labels,(function(n){n.hidden||-1!==t.shapes.indexOf(n)||r.push(n),e.labelTarget&&r.push(e)}))})),_(r,(function(e){i.makeDraggable(t,e,!0)}))})),this.preExecuted("elements.move",1400,(function(e){var t=e.context.closure,n=t.enclosedElements,i=[];_(n,(function(e){_(e.labels,(function(e){n[e.id]||i.push(e)}))})),t.addAll(i)})),this.preExecute(["connection.delete","shape.delete"],(function(e){var t=e.context;gm((t.connection||t.shape).labels,(function(e){n.removeShape(e,{nested:!0})}))})),this.execute("shape.delete",(function(e){var t=e.context,n=t.shape,i=n.labelTarget;i&&(t.labelTargetIndex=Pt(i.labels,n),t.labelTarget=i,n.labelTarget=null)})),this.revert("shape.delete",(function(e){var t=e.context,n=t.shape,i=t.labelTarget,r=t.labelTargetIndex;i&&(Et(i.labels,n,r),n.labelTarget=i)}))}function bm(e){return w(e,(function(t){return-1===e.indexOf(t.labelTarget)}))}i(vm,Xo),vm.$inject=["injector","eventBus","modeling"];var xm={__init__:["labelSupport"],labelSupport:["type",vm]},wm="attach-ok";function _m(e,t,n,i,r){Xo.call(this,t);var o=e.get("movePreview",!1);t.on("shape.move.start",1401,(function(e){var t,n,i=e.context,r=i.shapes,o=i.validatedShapes;i.shapes=(n=Em(t=r),z("id",t,n)),i.validatedShapes=function(e){var t=A(e,"id");return w(e,(function(e){for(;e;){if(e.host&&t[e.host.id])return!1;e=e.parent}return!0}))}(o)})),o&&t.on("shape.move.start",251,(function(e){var t=e.context;_(Em(t.shapes),(function(e){o.makeDraggable(t,e,!0),_(e.labels,(function(e){o.makeDraggable(t,e,!0)}))}))})),o&&t.on("shape.move.start",(function(e){var i=e.context.shapes;if(1===i.length){var r=i[0].host;r&&(n.addMarker(r,wm),t.once(["shape.move.out","shape.move.cleanup"],(function(){n.removeMarker(r,wm)})))}})),this.preExecuted("elements.move",1401,(function(e){var t=e.context,n=t.closure;_(Em(t.shapes),(function(e){n.add(e,n.topLevel[e.host.id])}))})),this.postExecuted("elements.move",(function(e){var t=e.context,n=t.shapes,i=t.newHost;i&&1!==n.length||_(i?n:w(n,(function(e){var t,i=e.host;return function(e){return!!e.host}(e)&&(t=i,!(-1!==n.indexOf(t)))})),(function(e){r.updateAttachment(e,i)}))})),this.postExecuted("elements.move",(function(e){_(e.context.shapes,(function(e){_(e.attachers,(function(e){_(e.outgoing.slice(),(function(e){i.allowed("connection.reconnect",{connection:e,source:e.source,target:e.target})||r.removeConnection(e)})),_(e.incoming.slice(),(function(e){i.allowed("connection.reconnect",{connection:e,source:e.source,target:e.target})||r.removeConnection(e)}))}))}))})),this.postExecute("shape.create",(function(e){var t=e.context,n=t.shape,i=t.host;i&&r.updateAttachment(n,i)})),this.postExecute("shape.replace",(function(e){var t=e.context,n=t.oldShape,o=t.newShape;gm(n.attachers,(function(e){"attach"===i.allowed("elements.move",{target:o,shapes:[e]})?r.updateAttachment(e,o):r.removeShape(e)})),o.attachers.length&&_(o.attachers,(function(e){var t=kd(e,n,o);r.moveShape(e,t,e.parent)}))})),this.postExecute("shape.resize",(function(e){var t=e.context,n=t.shape,i=t.oldBounds,o=t.newBounds,a=n.attachers;!1!==(t.hints||{}).attachSupport&&_(a,(function(e){var t=kd(e,i,o);r.moveShape(e,t,e.parent),_(e.labels,(function(e){r.moveShape(e,t,e.parent)}))}))})),this.preExecute("shape.delete",(function(e){var t=e.context.shape;gm(t.attachers,(function(e){r.removeShape(e)})),t.host&&r.updateAttachment(t,null)}))}function Em(e){return a(k(e,(function(e){return e.attachers||[]})))}i(_m,Xo),_m.$inject=["injector","eventBus","canvas","rules","modeling"];var Pm={__depends__:[Is],__init__:["attachSupport"],attachSupport:["type",_m]};function Om(e,t){this._eventBus=e,this._dragging=t,this._tools=[],this._active=null}Om.$inject=["eventBus","dragging"],Om.prototype.registerTool=function(e,t){var n=this._tools;if(!t)throw new Error('A tool has to be registered with it\'s "events"');n.push(e),this.bindEvents(e,t)},Om.prototype.isActive=function(e){return e&&this._active===e},Om.prototype.length=function(e){return this._tools.length},Om.prototype.setActive=function(e){var t=this._eventBus;this._active!==e&&(this._active=e,t.fire("tool-manager.update",{tool:e}))},Om.prototype.bindEvents=function(e,t){var n=this._eventBus,i=this._dragging,r=[];n.on(t.tool+".init",(function(t){if(!t.context.reactivate&&this.isActive(e))return this.setActive(null),void i.cancel();this.setActive(e)}),this),_(t,(function(e){r.push(e+".ended"),r.push(e+".canceled")})),n.on(r,250,(function(e){this._active&&(function(e){var t=e.originalEvent&&e.originalEvent.target;return t&&se(t,'.group[data-group="tools"]')}(e)||this.setActive(null))}),this)};var Sm={__depends__:[Ds],__init__:["toolManager"],toolManager:["type",Om]};function km(e,t){return-1!==e.indexOf(t)}var Cm=Math.abs,Mm=Math.round,Tm={x:"width",y:"height"},Am="crosshair",Rm={n:"top",w:"left",s:"bottom",e:"right"},zm={n:"s",w:"e",s:"n",e:"w"};function Dm(e,t,n,i,r,o,a){this._canvas=e,this._dragging=t,this._eventBus=n,this._modeling=i,this._rules=r,this._toolManager=o,this._mouse=a;var s=this;o.registerTool("space",{tool:"spaceTool.selection",dragging:"spaceTool"}),n.on("spaceTool.selection.end",(function(e){n.once("spaceTool.selection.ended",(function(){s.activateMakeSpace(e.originalEvent)}))})),n.on("spaceTool.move",1500,(function(e){var t=e.context,n=t.initialized;n||(n=t.initialized=s.init(e,t)),n&&Bm(e)})),n.on("spaceTool.end",(function(e){var t=e.context,i=t.axis,r=t.direction,o=t.movingShapes,a=t.resizingShapes,p=t.start;if(t.initialized){Bm(e);var l={x:0,y:0};l[i]=Mm(e["d"+i]),s.makeSpace(o,a,l,r,p),n.once("spaceTool.ended",(function(e){s.activateSelection(e.originalEvent,!0,!0)}))}}))}function jm(e){return{top:e.top-20,right:e.right+20,bottom:e.bottom+20,left:e.left-20}}function Bm(e){var t,n,i=e.context.spaceToolConstraints;i&&(m(i.left)&&(t=Math.max(e.x,i.left),e.dx=e.dx+t-e.x,e.x=t),m(i.right)&&(t=Math.min(e.x,i.right),e.dx=e.dx+t-e.x,e.x=t),m(i.top)&&(n=Math.max(e.y,i.top),e.dy=e.dy+n-e.y,e.y=n),m(i.bottom)&&(n=Math.min(e.y,i.bottom),e.dy=e.dy+n-e.y,e.y=n))}function Nm(e,t){return-1!==e.indexOf(t)}function Lm(e){return!!e.waypoints}function Im(e){return!!e.labelTarget}Dm.$inject=["canvas","dragging","eventBus","modeling","rules","toolManager","mouse"],Dm.prototype.activateSelection=function(e,t,n){this._dragging.init(e,"spaceTool.selection",{autoActivate:t,cursor:Am,data:{context:{reactivate:n}},trapClick:!1})},Dm.prototype.activateMakeSpace=function(e){this._dragging.init(e,"spaceTool",{autoActivate:!0,cursor:Am,data:{context:{}}})},Dm.prototype.makeSpace=function(e,t,n,i,r){return this._modeling.createSpace(e,t,n,i,r)},Dm.prototype.init=function(e,t){var n=Cm(e.dx)>Cm(e.dy)?"x":"y",i=e["d"+n],r=e[n]-i;if(Cm(i)<5)return!1;i<0&&(i*=-1),So(e)&&(i*=-1);var o=function(e,t){if("x"===e){if(t>0)return"e";if(t<0)return"w"}if("y"===e){if(t>0)return"s";if(t<0)return"n"}return null}(n,i),a=ft(this._canvas.getRootElement(),!0),s=this.calculateAdjustments(a,n,i,r);return q(t,s,{axis:n,direction:o,spaceToolConstraints:function(e,t,n,i,r){var o=e.movingShapes,a=e.resizingShapes;if(!a.length)return;var s,p,l={};return _(a,(function(e){var c,u,d,h=hn(e),f=w(e.children,(function(e){return!(Lm(e)||Im(e)||Nm(o,e)||Nm(a,e))})),y=w(e.children,(function(e){return!Lm(e)&&!Im(e)&&Nm(o,e)}));f.length&&(u=jm(hn(yt(f))),c=i-h[Rm[n]]+u[Rm[n]],"n"===n?l.bottom=p=m(p)?Math.min(p,c):c:"w"===n?l.right=p=m(p)?Math.min(p,c):c:"s"===n?l.top=s=m(s)?Math.max(s,c):c:"e"===n&&(l.left=s=m(s)?Math.max(s,c):c)),y.length&&(d=jm(hn(yt(y))),c=i-d[Rm[zm[n]]]+h[Rm[zm[n]]],"n"===n?l.bottom=p=m(p)?Math.min(p,c):c:"w"===n?l.right=p=m(p)?Math.min(p,c):c:"s"===n?l.top=s=m(s)?Math.max(s,c):c:"e"===n&&(l.left=s=m(s)?Math.max(s,c):c));var g=r&&r[e.id];g&&("n"===n?(c=i+e[Tm[t]]-g[Tm[t]],l.bottom=p=m(p)?Math.min(p,c):c):"w"===n?(c=i+e[Tm[t]]-g[Tm[t]],l.right=p=m(p)?Math.min(p,c):c):"s"===n?(c=i-e[Tm[t]]+g[Tm[t]],l.top=s=m(s)?Math.max(s,c):c):"e"===n&&(c=i-e[Tm[t]]+g[Tm[t]],l.left=s=m(s)?Math.max(s,c):c))})),l}(s,n,o,r,this._eventBus.fire("spaceTool.getMinDimensions",{axis:n,direction:o,shapes:s.resizingShapes,start:r})),start:r}),ja("resize-"+("x"===n?"ew":"ns")),!0},Dm.prototype.calculateAdjustments=function(e,t,n,i){var r=this._rules,o=[],a=[];return _(e,(function(e){if(e.parent&&!Lm(e)){var s=e[t],p=s+e[Tm[t]];return n>0&&s>i||n<0&&p<i?o.push(e):s<i&&p>i&&r.allowed("shape.resize",{shape:e})?a.push(e):void 0}})),{movingShapes:o,resizingShapes:a}},Dm.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)},Dm.prototype.isActive=function(){var e=this._dragging.context();return e&&/^spaceTool/.test(e.prefix)};var $m="djs-dragging",Fm="djs-resizing",Vm=Math.max;function Hm(e,t,n,i,r){function o(e,t){_(e,(function(e){r.addDragger(e,t),n.addMarker(e,$m)}))}e.on("spaceTool.selection.start",(function(e){var t=n.getLayer("space"),r=e.context,o="M 0,-10000 L 0,10000",a="M -10000,0 L 10000,0",s=Le("g");Oe(s,i.cls("djs-crosshair-group",["no-events"])),_e(t,s);var p=Le("path");Oe(p,"d",o),Te(p).add("djs-crosshair"),_e(s,p);var l=Le("path");Oe(l,"d",a),Te(l).add("djs-crosshair"),_e(s,l),r.crosshairGroup=s})),e.on("spaceTool.selection.move",(function(e){Kn(e.context.crosshairGroup,e.x,e.y)})),e.on("spaceTool.selection.cleanup",(function(e){var t=e.context.crosshairGroup;t&&Re(t)})),e.on("spaceTool.move",250,(function(e){var a=e.context,s=a.line,p=a.axis,l=a.movingShapes,c=a.resizingShapes;if(a.initialized){if(!a.dragGroup){var u=n.getLayer("space");Oe(s=Le("path"),"d","M0,0 L0,0"),Te(s).add("djs-crosshair"),_e(u,s),a.line=s;var d=Le("g");Oe(d,i.cls("djs-drag-group",["no-events"])),_e(n.getActiveLayer(),d),o(l,d),o(a.movingConnections=t.filter((function(e){var t=!1;_(l,(function(n){_(n.outgoing,(function(n){e===n&&(t=!0)}))}));var n=!1;_(l,(function(t){_(t.incoming,(function(t){e===t&&(n=!0)}))}));var i=!1;_(c,(function(t){_(t.outgoing,(function(t){e===t&&(i=!0)}))}));var r=!1;return _(c,(function(t){_(t.incoming,(function(t){e===t&&(r=!0)}))})),function(e){return e.waypoints}(e)&&(t||i)&&(n||r)})),d),a.dragGroup=d}if(!a.frameGroup){var h=Le("g");Oe(h,i.cls("djs-frame-group",["no-events"])),_e(n.getActiveLayer(),h);var m=[];_(c,(function(e){var t=r.addFrame(e,h),i=t.getBBox();m.push({element:t,initialBounds:i}),n.addMarker(e,Fm)})),a.frameGroup=h,a.frames=m}Oe(s,{d:{x:"M"+e.x+", -10000 L"+e.x+", 10000",y:"M -10000, "+e.y+" L 10000, "+e.y}[p]});var f={x:e.dx,y:e.dy};f[{x:"y",y:"x"}[a.axis]]=0,Kn(a.dragGroup,f.x,f.y),_(a.frames,(function(e){var t,n,i=e.element,r=e.initialBounds;"e"===a.direction?Oe(i,{width:Vm(r.width+f.x,5)}):Oe(i,{width:t=Vm(r.width-f.x,5),x:r.x+r.width-t}),"s"===a.direction?Oe(i,{height:Vm(r.height+f.y,5)}):Oe(i,{height:n=Vm(r.height-f.y,5),y:r.y+r.height-n})}))}})),e.on("spaceTool.cleanup",(function(e){var t=e.context,i=t.movingShapes,r=t.movingConnections,o=t.resizingShapes,a=t.line,s=t.dragGroup,p=t.frameGroup;_(i,(function(e){n.removeMarker(e,$m)})),_(r,(function(e){n.removeMarker(e,$m)})),s&&(Re(a),Re(s)),_(o,(function(e){n.removeMarker(e,Fm)})),p&&Re(p)}))}Hm.$inject=["eventBus","elementRegistry","canvas","styles","previewSupport"];var qm={__init__:["spaceToolPreview"],__depends__:[Ds,Is,Sm,il,_l],spaceTool:["type",Dm],spaceToolPreview:["type",Hm]};function Um(e){this._model=e}function Gm(e,t,n,i){Xo.call(this,e),this._bpmnFactory=t,this._translate=i;var r=this;function o(e){_(e.context.oldRoot.children,(function(e){wr(e,"bpmn:BaseElement")&&r.updateParent(e)}))}function a(e){var t=e.context.shape;wr(t,"bpmn:BaseElement")&&r.updateBounds(t)}function s(e){r.updateConnection(e.context)}function p(e){r.updateConnectionWaypoints(e.context.connection)}function l(e){r.updateAttachment(e.context)}this.executed(["connection.layout","connection.create"],(function(e){var t,i=e.context,r=i.hints||{};i.cropped||!1===r.createElementsBehavior||((t=i.connection).waypoints=n.getCroppedWaypoints(t),i.cropped=!0)})),this.reverted(["connection.layout"],(function(e){delete e.context.cropped})),this.executed(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],Wm((function(e){var t=e.context;r.updateParent(t.shape||t.connection,t.oldParent)}))),this.reverted(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],Wm((function(e){var t=e.context,n=t.shape||t.connection,i=t.parent||t.newParent;r.updateParent(n,i)}))),this.executed(["canvas.updateRoot"],o),this.reverted(["canvas.updateRoot"],o),this.executed(["shape.move","shape.create","shape.resize"],Wm((function(e){"label"!==e.context.shape.type&&a(e)}))),this.reverted(["shape.move","shape.create","shape.resize"],Wm((function(e){"label"!==e.context.shape.type&&a(e)}))),e.on("shape.changed",(function(e){"label"===e.element.type&&a({context:{shape:e.element}})})),this.executed(["connection.create","connection.move","connection.delete","connection.reconnect"],Wm(s)),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnect"],Wm(s)),this.executed(["connection.layout","connection.move","connection.updateWaypoints"],Wm(p)),this.reverted(["connection.layout","connection.move","connection.updateWaypoints"],Wm(p)),this.executed("connection.reconnect",Wm((function(e){var t=e.context,n=t.connection,i=t.oldSource,r=t.newSource,o=Er(n),a=Er(i),s=Er(r);o.conditionExpression&&!_r(s,["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"])&&(t.oldConditionExpression=o.conditionExpression,delete o.conditionExpression),i!==r&&a.default===o&&(t.oldDefault=a.default,delete a.default)}))),this.reverted("connection.reconnect",Wm((function(e){var t=e.context,n=t.connection,i=t.oldSource,r=t.newSource,o=Er(n),a=Er(i),s=Er(r);t.oldConditionExpression&&(o.conditionExpression=t.oldConditionExpression),t.oldDefault&&(a.default=t.oldDefault,delete s.default)}))),this.executed(["element.updateAttachment"],Wm(l)),this.reverted(["element.updateAttachment"],Wm(l))}function Wm(e){return function(t){var n=t.context;wr(n.shape||n.connection,"bpmn:BaseElement")&&e(t)}}function Km(e,t,n){Vn.call(this),this._bpmnFactory=e,this._moddle=t,this._translate=n}function Ym(e,t,n){e[n]=t[n],delete t[n]}function Xm(e,t){this._modeling=e,this._canvas=t}function Zm(e){this._modeling=e}function Jm(e,t){this._canvas=e,this._layouter=t}Um.$inject=["moddle"],Um.prototype._needsId=function(e){return _r(e,["bpmn:RootElement","bpmn:FlowElement","bpmn:MessageFlow","bpmn:DataAssociation","bpmn:Artifact","bpmn:Participant","bpmn:Lane","bpmn:LaneSet","bpmn:Process","bpmn:Collaboration","bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane","bpmn:Property","bpmn:CategoryValue"])},Um.prototype._ensureId=function(e){var t;e.id?this._model.ids.claim(e.id,e):(t=wr(e,"bpmn:Activity")?"Activity":wr(e,"bpmn:Event")?"Event":wr(e,"bpmn:Gateway")?"Gateway":_r(e,["bpmn:SequenceFlow","bpmn:MessageFlow"])?"Flow":(e.$type||"").replace(/^[^:]*:/g,""),t+="_",!e.id&&this._needsId(e)&&(e.id=this._model.ids.nextPrefixed(t,e)))},Um.prototype.create=function(e,t){var n=this._model.create(e,t||{});return this._ensureId(n),n},Um.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})},Um.prototype.createDiShape=function(e,t){return this.create("bpmndi:BPMNShape",q({bpmnElement:e,bounds:this.createDiBounds()},t))},Um.prototype.createDiBounds=function(e){return this.create("dc:Bounds",e)},Um.prototype.createDiWaypoints=function(e){var t=this;return k(e,(function(e){return t.createDiWaypoint(e)}))},Um.prototype.createDiWaypoint=function(e){return this.create("dc:Point",W(e,["x","y"]))},Um.prototype.createDiEdge=function(e,t){return this.create("bpmndi:BPMNEdge",q({bpmnElement:e,waypoint:this.createDiWaypoints([])},t))},Um.prototype.createDiPlane=function(e,t){return this.create("bpmndi:BPMNPlane",q({bpmnElement:e},t))},i(Gm,Xo),Gm.$inject=["eventBus","bpmnFactory","connectionDocking","translate"],Gm.prototype.updateAttachment=function(e){var t=e.shape,n=t.businessObject,i=t.host;n.attachedToRef=i&&i.businessObject},Gm.prototype.updateParent=function(e,t){if(!(e instanceof In||wr(e,"bpmn:DataStoreReference")&&e.parent&&wr(e.parent,"bpmn:Collaboration"))){var n=e.parent,i=e.businessObject,r=Pr(e),o=n&&n.businessObject,a=Pr(n);wr(e,"bpmn:FlowNode")&&this.updateFlowNodeRefs(i,o,t&&t.businessObject),wr(e,"bpmn:DataOutputAssociation")&&(o=e.source?e.source.businessObject:null),wr(e,"bpmn:DataInputAssociation")&&(o=e.target?e.target.businessObject:null),this.updateSemanticParent(i,o),wr(e,"bpmn:DataObjectReference")&&i.dataObjectRef&&this.updateSemanticParent(i.dataObjectRef,o),this.updateDiParent(r,a)}},Gm.prototype.updateBounds=function(e){var t=Pr(e),n=function(e){if(!wr(e,"bpmn:Activity"))return;var t=Pr(e);if(!t)return;var n=t.get("label");if(!n)return;return n.get("bounds")}(e);if(n){var i=Ia(n,t.get("bounds"));q(n,{x:e.x+i.x,y:e.y+i.y})}var r=e instanceof In?this._getLabel(t):t,o=r.bounds;o||(o=this._bpmnFactory.createDiBounds(),r.set("bounds",o)),q(o,{x:e.x,y:e.y,width:e.width,height:e.height})},Gm.prototype.updateFlowNodeRefs=function(e,t,n){n!==t&&(wr(n,"bpmn:Lane")&&_t(n.get("flowNodeRef"),e),wr(t,"bpmn:Lane")&&Et(t.get("flowNodeRef"),e))},Gm.prototype.updateDiConnection=function(e,t,n){var i=Pr(e),r=Pr(t),o=Pr(n);i.sourceElement&&i.sourceElement.bpmnElement!==Er(t)&&(i.sourceElement=t&&r),i.targetElement&&i.targetElement.bpmnElement!==Er(n)&&(i.targetElement=n&&o)},Gm.prototype.updateDiParent=function(e,t){if(t&&!wr(t,"bpmndi:BPMNPlane")&&(t=t.$parent),e.$parent!==t){var n=(t||e.$parent).get("planeElement");t?(n.push(e),e.$parent=t):(_t(n,e),e.$parent=null)}},Gm.prototype.getLaneSet=function(e){var t,n;return wr(e,"bpmn:Lane")?((t=e.childLaneSet)||(t=this._bpmnFactory.create("bpmn:LaneSet"),e.childLaneSet=t,t.$parent=e),t):(wr(e,"bpmn:Participant")&&(e=e.processRef),(t=(n=e.get("laneSets"))[0])||((t=this._bpmnFactory.create("bpmn:LaneSet")).$parent=e,n.push(t)),t)},Gm.prototype.updateSemanticParent=function(e,t,n){var i,r=this._translate;if(e.$parent!==t&&(!wr(e,"bpmn:DataInput")&&!wr(e,"bpmn:DataOutput")||(wr(t,"bpmn:Participant")&&"processRef"in t&&(t=t.processRef),!("ioSpecification"in t)||t.ioSpecification!==e.$parent))){if(wr(e,"bpmn:Lane"))t&&(t=this.getLaneSet(t)),i="lanes";else if(wr(e,"bpmn:FlowElement")){if(t)if(wr(t,"bpmn:Participant"))t=t.processRef;else if(wr(t,"bpmn:Lane"))do{t=t.$parent.$parent}while(wr(t,"bpmn:Lane"));i="flowElements"}else if(wr(e,"bpmn:Artifact")){for(;t&&!wr(t,"bpmn:Process")&&!wr(t,"bpmn:SubProcess")&&!wr(t,"bpmn:Collaboration");){if(wr(t,"bpmn:Participant")){t=t.processRef;break}t=t.$parent}i="artifacts"}else if(wr(e,"bpmn:MessageFlow"))i="messageFlows";else if(wr(e,"bpmn:Participant")){i="participants";var o,a=e.processRef;a&&(o=function(e){for(;e&&!wr(e,"bpmn:Definitions");)e=e.$parent;return e}(e.$parent||t),e.$parent&&(_t(o.get("rootElements"),a),a.$parent=null),t&&(Et(o.get("rootElements"),a),a.$parent=o))}else wr(e,"bpmn:DataOutputAssociation")?i="dataOutputAssociations":wr(e,"bpmn:DataInputAssociation")&&(i="dataInputAssociations");if(!i)throw new Error(r("no parent for {element} in {parent}",{element:e.id,parent:t.id}));var s;if(e.$parent&&_t(s=e.$parent.get(i),e),t?((s=t.get(i)).push(e),e.$parent=t):e.$parent=null,n){var p=n.get(i);_t(s,e),t&&(p||(p=[],t.set(i,p)),p.push(e))}}},Gm.prototype.updateConnectionWaypoints=function(e){Pr(e).set("waypoint",this._bpmnFactory.createDiWaypoints(e.waypoints))},Gm.prototype.updateConnection=function(e){var t,n=e.connection,i=Er(n),r=n.source,o=Er(r),a=n.target,s=Er(n.target);if(wr(i,"bpmn:DataAssociation"))wr(i,"bpmn:DataInputAssociation")?(i.get("sourceRef")[0]=o,t=e.parent||e.newParent||s,this.updateSemanticParent(i,s,t)):wr(i,"bpmn:DataOutputAssociation")&&(t=e.parent||e.newParent||o,this.updateSemanticParent(i,o,t),i.targetRef=s);else{var p=wr(i,"bpmn:SequenceFlow");i.sourceRef!==o&&(p&&(_t(i.sourceRef&&i.sourceRef.get("outgoing"),i),o&&o.get("outgoing")&&o.get("outgoing").push(i)),i.sourceRef=o),i.targetRef!==s&&(p&&(_t(i.targetRef&&i.targetRef.get("incoming"),i),s&&s.get("incoming")&&s.get("incoming").push(i)),i.targetRef=s)}this.updateConnectionWaypoints(n),this.updateDiConnection(n,r,a)},Gm.prototype._getLabel=function(e){return e.label||(e.label=this._bpmnFactory.createDiLabel()),e.label},i(Km,Vn),Km.$inject=["bpmnFactory","moddle","translate"],Km.prototype.baseCreate=Vn.prototype.create,Km.prototype.create=function(e,t){if("label"===e){var n=t.di||this._bpmnFactory.createDiLabel();return this.baseCreate(e,q({type:"label",di:n},po,t))}return this.createBpmnElement(e,t)},Km.prototype.createBpmnElement=function(e,t){var n,i,r,o=this._translate,a=(t=t||{}).businessObject,s=t.di;if(!a){if(!t.type)throw new Error(o("no shape type specified"));vr(a=this._bpmnFactory.create(t.type))}if(!_r(s,["bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane"])){var p=q(s||{},{id:a.id+"_di"});s="root"===e?this._bpmnFactory.createDiPlane(a,p):"connection"===e?this._bpmnFactory.createDiEdge(a,p):this._bpmnFactory.createDiShape(a,p)}return wr(a,"bpmn:Group")&&(t=q({isFrame:!0},t)),function(e,t,n){_(n,(function(n){void 0!==t[n]&&Ym(e,t,n)}))}(a,t,["processRef","isInterrupting","associationDirection","isForCompensation"]),t.isExpanded&&Ym(s,t,"isExpanded"),wr(a,"bpmn:SubProcess")&&(t.collapsed=!Nr(a,s)),wr(a,"bpmn:ExclusiveGateway")&&(s.isMarkerVisible=!0),t.eventDefinitionType&&(i=a.get("eventDefinitions")||[],r=this._bpmnFactory.create(t.eventDefinitionType,t.eventDefinitionAttrs),"bpmn:ConditionalEventDefinition"===t.eventDefinitionType&&(r.condition=this._bpmnFactory.create("bpmn:FormalExpression")),i.push(r),r.$parent=a,a.eventDefinitions=i,delete t.eventDefinitionType),n=this.getDefaultSize(a,s),t=q({id:a.id},n,t,{businessObject:a,di:s}),this.baseCreate(e,t)},Km.prototype.getDefaultSize=function(e,t){var n=Er(e);return t=t||Pr(e),wr(n,"bpmn:SubProcess")?Nr(n,t)?{width:350,height:200}:{width:100,height:80}:wr(n,"bpmn:Task")?{width:100,height:80}:wr(n,"bpmn:Gateway")?{width:50,height:50}:wr(n,"bpmn:Event")?{width:36,height:36}:wr(n,"bpmn:Participant")?Nr(n,t)?{width:600,height:250}:{width:400,height:60}:wr(n,"bpmn:Lane")?{width:400,height:100}:wr(n,"bpmn:DataObjectReference")?{width:36,height:50}:wr(n,"bpmn:DataStoreReference")?{width:50,height:50}:wr(n,"bpmn:TextAnnotation")?{width:100,height:30}:wr(n,"bpmn:Group")?{width:300,height:300}:{width:100,height:80}},Km.prototype.createParticipantShape=function(e){return h(e)||(e={isExpanded:e}),!1!==(e=q({type:"bpmn:Participant"},e||{})).isExpanded&&(e.processRef=this._bpmnFactory.create("bpmn:Process")),this.createShape(e)},Xm.$inject=["modeling","canvas"],Xm.prototype.preExecute=function(e){var t=this._modeling,n=e.elements,i=e.alignment;_(n,(function(e){var n={x:0,y:0};i.left?n.x=i.left-e.x:i.right?n.x=i.right-e.width-e.x:i.center?n.x=i.center-Math.round(e.width/2)-e.x:i.top?n.y=i.top-e.y:i.bottom?n.y=i.bottom-e.height-e.y:i.middle&&(n.y=i.middle-Math.round(e.height/2)-e.y),t.moveElements([e],n,e.parent)}))},Xm.prototype.postExecute=function(e){},Zm.$inject=["modeling"],Zm.prototype.preExecute=function(e){var t=e.source;if(!t)throw new Error("source required");var n=e.target||t.parent,i=e.shape,r=e.hints||{};i=e.shape=this._modeling.createShape(i,e.position,n,{attach:r.attach}),e.shape=i},Zm.prototype.postExecute=function(e){var t,n,i=e.hints||{};t=e.source,n=e.shape,S(t.outgoing,(function(e){return e.target===n}))||(i.connectionTarget===e.source?this._modeling.connect(e.shape,e.source,e.connection):this._modeling.connect(e.source,e.shape,e.connection))},Jm.$inject=["canvas","layouter"],Jm.prototype.execute=function(e){var t=e.connection,n=e.source,i=e.target,r=e.parent,o=e.parentIndex,a=e.hints;if(!n||!i)throw new Error("source and target required");if(!r)throw new Error("parent required");return t.source=n,t.target=i,t.waypoints||(t.waypoints=this._layouter.layoutConnection(t,a)),this._canvas.addConnection(t,r,o),t},Jm.prototype.revert=function(e){var t=e.connection;return this._canvas.removeConnection(t),t.source=null,t.target=null,t};var Qm=Math.round;function ef(e){this._modeling=e}function tf(e){return!!e.waypoints}ef.$inject=["modeling"],ef.prototype.preExecute=function(e){var t=e.elements,n=e.parent,i=e.parentIndex,r=e.position,o=e.hints,a=this._modeling;_(t,(function(e){m(e.x)||(e.x=0),m(e.y)||(e.y=0)}));var s=yt(w(t,(function(e){return!e.hidden})));_(t,(function(e){tf(e)&&(e.waypoints=k(e.waypoints,(function(e){return{x:Qm(e.x-s.x-s.width/2+r.x),y:Qm(e.y-s.y-s.height/2+r.y)}}))),q(e,{x:Qm(e.x-s.x-s.width/2+r.x),y:Qm(e.y-s.y-s.height/2+r.y)})}));var p=ut(t),l={};_(t,(function(e){if(tf(e))l[e.id]=m(i)?a.createConnection(l[e.source.id],l[e.target.id],i,e,e.parent||n,o):a.createConnection(l[e.source.id],l[e.target.id],e,e.parent||n,o);else{var t=q({},o);-1===p.indexOf(e)&&(t.autoResize=!1),l[e.id]=m(i)?a.createShape(e,W(e,["x","y","width","height"]),e.parent||n,i,t):a.createShape(e,W(e,["x","y","width","height"]),e.parent||n,t)}})),e.elements=T(l)};var nf=Math.round;function rf(e){this._canvas=e}function of(e){rf.call(this,e)}rf.$inject=["canvas"],rf.prototype.execute=function(e){var t=e.shape,n=e.position,i=e.parent,r=e.parentIndex;if(!i)throw new Error("parent required");if(!n)throw new Error("position required");return void 0!==n.width?q(t,n):q(t,{x:n.x-nf(t.width/2),y:n.y-nf(t.height/2)}),this._canvas.addShape(t,i,r),t},rf.prototype.revert=function(e){var t=e.shape;return this._canvas.removeShape(t),t},i(of,rf),of.$inject=["canvas"];var af=rf.prototype.execute;of.prototype.execute=function(e){var t=e.shape;return function(e){["width","height"].forEach((function(t){void 0===e[t]&&(e[t]=0)}))}(t),t.labelTarget=e.labelTarget,af.call(this,e)};var sf=rf.prototype.revert;function pf(e,t){this._canvas=e,this._modeling=t}function lf(e,t){this._modeling=e,this._elementRegistry=t}function cf(e,t){this._canvas=e,this._modeling=t}function uf(e){this._modeling=e}of.prototype.revert=function(e){return e.shape.labelTarget=null,sf.call(this,e)},pf.$inject=["canvas","modeling"],pf.prototype.execute=function(e){var t=e.connection,n=t.parent;return e.parent=n,e.parentIndex=Pt(n.children,t),e.source=t.source,e.target=t.target,this._canvas.removeConnection(t),t.source=null,t.target=null,t},pf.prototype.revert=function(e){var t=e.connection,n=e.parent,i=e.parentIndex;return t.source=e.source,t.target=e.target,Et(n.children,t,i),this._canvas.addConnection(t,n),t},lf.$inject=["modeling","elementRegistry"],lf.prototype.postExecute=function(e){var t=this._modeling,n=this._elementRegistry;_(e.elements,(function(e){n.get(e.id)&&(e.waypoints?t.removeConnection(e):t.removeShape(e))}))},cf.$inject=["canvas","modeling"],cf.prototype.preExecute=function(e){var t=this._modeling,n=e.shape;gm(n.incoming,(function(e){t.removeConnection(e,{nested:!0})})),gm(n.outgoing,(function(e){t.removeConnection(e,{nested:!0})})),gm(n.children,(function(e){e.waypoints?t.removeConnection(e,{nested:!0}):t.removeShape(e,{nested:!0})}))},cf.prototype.execute=function(e){var t=this._canvas,n=e.shape,i=n.parent;return e.oldParent=i,e.oldParentIndex=Pt(i.children,n),t.removeShape(n),n},cf.prototype.revert=function(e){var t=this._canvas,n=e.shape,i=e.oldParent,r=e.oldParentIndex;return Et(i.children,n,r),t.addShape(n,i),n},uf.$inject=["modeling"];var df={x:"y",y:"x"};function hf(e,t){this._layouter=e,this._canvas=t}function mf(){}function ff(){this.allShapes={},this.allConnections={},this.enclosedElements={},this.enclosedConnections={},this.topLevel={}}function yf(e){this._modeling=e}function gf(e){this._helper=new yf(e)}function vf(e){this._modeling=e,this._helper=new yf(e)}function bf(e){this._modeling=e}function xf(e){return e.original||e}function wf(e,t){this._modeling=e,this._rules=t}function _f(e){this._modeling=e}function Ef(e){this._modeling=e}function Pf(e){return q({},e)}function Of(e){switch(e){case"n":return"y";case"w":return"x";case"s":return"y";case"e":return"x"}}function Sf(e,t,n){var i=Of(n);return/e|s/.test(n)?e[i]>t:/n|w/.test(n)?e[i]<t:void 0}function kf(e,t){return-1!==e.indexOf(t)}function Cf(e){this._modeling=e}function Mf(e){var t={};return _(e,(function(e){t[e.id]=e.hidden,e.children&&(t=q({},t,Mf(e.children)))})),t}function Tf(e,t){var n=[];return _(e,(function(e){e.hidden=t,n=n.concat(e),e.children&&(n=n.concat(Tf(e.children,e.collapsed||t)))})),n}function Af(e,t){var n=[];return _(e,(function(e){e.hidden=t[e.id],n=n.concat(e),e.children&&(n=n.concat(Af(e.children,t)))})),n}function Rf(e){this._modeling=e}function zf(e,t){return _t(e&&e.attachers,t)}function Df(e,t,n){if(e){var i=e.attachers;i||(e.attachers=i=[]),Et(i,t,n)}}function jf(){}function Bf(e,t,n){this._eventBus=e,this._elementFactory=t,this._commandStack=n;var i=this;e.on("diagram.init",(function(){i.registerHandlers(n)}))}function Nf(e){this._elementRegistry=e}function Lf(e,t){_(t,(function(t,n){e.set(n,t)}))}uf.prototype.preExecute=function(e){var t=this._modeling,n=e.groups,i=e.axis,r=e.dimension;function o(e,t){e.range.min=Math.min(t[i],e.range.min),e.range.max=Math.max(t[i]+t[r],e.range.max)}function a(e){return e[i]+e[r]/2}function s(e){return e.length-1}function p(e){return e.max-e.min}var l,c,u=n[0],d=s(n),h=n[d],m=0;_(n,(function(e,l){var c,u,h;e.elements.length<2?l&&l!==n.length-1&&(o(e,e.elements[0]),m+=p(e.range)):(u=(c=D(e.elements,i))[0],l===d&&(u=c[s(c)]),h=a(u),e.range=null,_(c,(function(n){!function(e,n){var r={y:0};r[i]=e-a(n),r[i]&&(r[df[i]]=0,t.moveElements([n],r,n.parent))}(h,n),null!==e.range?o(e,n):e.range={min:n[i],max:n[i]+n[r]}})),l&&l!==n.length-1&&(m+=p(e.range)))})),c=Math.abs(h.range.min-u.range.max),(l=Math.round((c-m)/(n.length-1)))<n.length-1||_(n,(function(e,o){var a,s={};e!==u&&e!==h&&(a=n[o-1],e.range.max=0,_(e.elements,(function(n,o){s[df[i]]=0,s[i]=a.range.max-n[i]+l,e.range.min!==n[i]&&(s[i]+=n[i]-e.range.min),s[i]&&t.moveElements([n],s,n.parent),e.range.max=Math.max(n[i]+n[r],o?e.range.max:0)})))}))},uf.prototype.postExecute=function(e){},hf.$inject=["layouter","canvas"],hf.prototype.execute=function(e){var t=e.connection;return q(e,{oldWaypoints:t.waypoints}),t.waypoints=this._layouter.layoutConnection(t,e.hints),t},hf.prototype.revert=function(e){var t=e.connection;return t.waypoints=e.oldWaypoints,t},mf.prototype.execute=function(e){var t=e.connection,n=e.delta,i=e.newParent||t.parent,r=e.newParentIndex,o=t.parent;return e.oldParent=o,e.oldParentIndex=_t(o.children,t),Et(i.children,t,r),t.parent=i,_(t.waypoints,(function(e){e.x+=n.x,e.y+=n.y,e.original&&(e.original.x+=n.x,e.original.y+=n.y)})),t},mf.prototype.revert=function(e){var t=e.connection,n=t.parent,i=e.oldParent,r=e.oldParentIndex,o=e.delta;return _t(n.children,t),Et(i.children,t,r),t.parent=i,_(t.waypoints,(function(e){e.x-=o.x,e.y-=o.y,e.original&&(e.original.x-=o.x,e.original.y-=o.y)})),t},ff.prototype.add=function(e,t){return this.addAll([e],t)},ff.prototype.addAll=function(e,t){return q(this,function(e,t,n){l(t)&&(t=!0),h(t)&&(n=t,t=!0);var i=bt((n=n||{}).allShapes),r=bt(n.allConnections),o=bt(n.enclosedElements),a=bt(n.enclosedConnections),s=bt(n.topLevel,t&&A(e,(function(e){return e.id})));function p(e){s[e.source.id]&&s[e.target.id]&&(s[e.id]=[e]),i[e.source.id]&&i[e.target.id]&&(a[e.id]=o[e.id]=e),r[e.id]=e}return mt(e,(function(e){if(o[e.id]=e,!e.waypoints)return i[e.id]=e,_(e.incoming,p),_(e.outgoing,p),e.children;a[e.id]=r[e.id]=e})),{allShapes:i,allConnections:r,topLevel:s,enclosedConnections:a,enclosedElements:o}}(e,!!t,this)),this},yf.prototype.moveRecursive=function(e,t,n){return e?this.moveClosure(this.getClosure(e),t,n):[]},yf.prototype.moveClosure=function(e,t,n,i,r){var o=this._modeling,a=e.allShapes,s=e.allConnections,p=e.enclosedConnections,l=e.topLevel,c=!1;r&&r.parent===n&&(c=!0),_(a,(function(e){o.moveShape(e,t,l[e.id]&&!c&&n,{recurse:!1,layout:!1})})),_(s,(function(e){var i=!!a[e.source.id],r=!!a[e.target.id];p[e.id]&&i&&r?o.moveConnection(e,t,l[e.id]&&!c&&n):o.layoutConnection(e,{connectionStart:i&&jd(e,e.source,t),connectionEnd:r&&Bd(e,e.target,t)})}))},yf.prototype.getClosure=function(e){return(new ff).addAll(e,!0)},gf.$inject=["modeling"],gf.prototype.preExecute=function(e){e.closure=this._helper.getClosure(e.shapes)},gf.prototype.postExecute=function(e){var t,n=e.hints;n&&n.primaryShape&&(t=n.primaryShape,n.oldParent=t.parent),this._helper.moveClosure(e.closure,e.delta,e.newParent,e.newHost,t)},vf.$inject=["modeling"],vf.prototype.execute=function(e){var t=e.shape,n=e.delta,i=e.newParent||t.parent,r=e.newParentIndex,o=t.parent;return e.oldBounds=W(t,["x","y","width","height"]),e.oldParent=o,e.oldParentIndex=_t(o.children,t),Et(i.children,t,r),q(t,{parent:i,x:t.x+n.x,y:t.y+n.y}),t},vf.prototype.postExecute=function(e){var t=e.shape,n=e.delta,i=e.hints,r=this._modeling;!1!==i.layout&&(_(t.incoming,(function(e){r.layoutConnection(e,{connectionEnd:Bd(e,t,n)})})),_(t.outgoing,(function(e){r.layoutConnection(e,{connectionStart:jd(e,t,n)})}))),!1!==i.recurse&&this.moveChildren(e)},vf.prototype.revert=function(e){var t=e.shape,n=e.oldParent,i=e.oldParentIndex,r=e.delta;return Et(n.children,t,i),q(t,{parent:n,x:t.x-r.x,y:t.y-r.y}),t},vf.prototype.moveChildren=function(e){var t=e.delta,n=e.shape;this._helper.moveRecursive(n.children,t,null)},vf.prototype.getNewParent=function(e){return e.newParent||e.shape.parent},bf.$inject=["modeling"],bf.prototype.execute=function(e){var t=e.newSource,n=e.newTarget,i=e.connection,r=e.dockingOrPoints;if(!t&&!n)throw new Error("newSource or newTarget required");return d(r)&&(e.oldWaypoints=i.waypoints,i.waypoints=r),t&&(e.oldSource=i.source,i.source=t),n&&(e.oldTarget=i.target,i.target=n),i},bf.prototype.postExecute=function(e){var t=e.connection,n=e.newSource,i=e.newTarget,r=e.dockingOrPoints,o=e.hints||{},a={};o.connectionStart&&(a.connectionStart=o.connectionStart),o.connectionEnd&&(a.connectionEnd=o.connectionEnd),!1!==o.layoutConnection&&(!n||i&&"source"!==o.docking||(a.connectionStart=a.connectionStart||xf(d(r)?r[0]:r)),!i||n&&"target"!==o.docking||(a.connectionEnd=a.connectionEnd||xf(d(r)?r[r.length-1]:r)),o.newWaypoints&&(a.waypoints=o.newWaypoints),this._modeling.layoutConnection(t,a))},bf.prototype.revert=function(e){var t=e.oldSource,n=e.oldTarget,i=e.oldWaypoints,r=e.connection;return t&&(r.source=t),n&&(r.target=n),i&&(r.waypoints=i),r},wf.$inject=["modeling","rules"],wf.prototype.preExecute=function(e){var t,n=this,i=this._modeling,r=this._rules,o=e.oldShape,a=e.newData,s=e.hints||{};function p(e,t,n){return r.allowed("connection.reconnect",{connection:n,source:e,target:t})}var l,c={x:a.x,y:a.y},u={x:o.x,y:o.y,width:o.width,height:o.height};t=e.newShape=e.newShape||n.createShape(a,c,o.parent,s),o.host&&i.updateAttachment(t,o.host),!1!==s.moveChildren&&(l=o.children.slice(),i.moveElements(l,{x:0,y:0},t,s));var d=o.incoming.slice(),h=o.outgoing.slice();_(d,(function(e){p(e.source,t,e)&&n.reconnectEnd(e,t,Dd(e,t,u),s)})),_(h,(function(e){var i=e.target;p(t,i,e)&&n.reconnectStart(e,t,zd(e,t,u),s)}))},wf.prototype.postExecute=function(e){var t=e.oldShape;this._modeling.removeShape(t)},wf.prototype.execute=function(e){},wf.prototype.revert=function(e){},wf.prototype.createShape=function(e,t,n,i){return this._modeling.createShape(e,t,n,i)},wf.prototype.reconnectStart=function(e,t,n,i){this._modeling.reconnectStart(e,t,n,i)},wf.prototype.reconnectEnd=function(e,t,n,i){this._modeling.reconnectEnd(e,t,n,i)},_f.$inject=["modeling"],_f.prototype.execute=function(e){var t=e.shape,n=e.newBounds,i=e.minBounds;if(void 0===n.x||void 0===n.y||void 0===n.width||void 0===n.height)throw new Error("newBounds must have {x, y, width, height} properties");if(i&&(n.width<i.width||n.height<i.height))throw new Error("width and height cannot be less than minimum height and width");if(!i&&n.width<10||n.height<10)throw new Error("width and height cannot be less than 10px");return e.oldBounds={width:t.width,height:t.height,x:t.x,y:t.y},q(t,{width:n.width,height:n.height,x:n.x,y:n.y}),t},_f.prototype.postExecute=function(e){var t=this._modeling,n=e.shape,i=e.oldBounds;!1!==(e.hints||{}).layout&&(_(n.incoming,(function(e){t.layoutConnection(e,{connectionEnd:Dd(e,n,i)})})),_(n.outgoing,(function(e){t.layoutConnection(e,{connectionStart:zd(e,n,i)})})))},_f.prototype.revert=function(e){var t=e.shape,n=e.oldBounds;return q(t,{width:n.width,height:n.height,x:n.x,y:n.y}),t},Ef.$inject=["modeling"],Ef.prototype.preExecute=function(e){var t=e.delta,n=e.direction,i=e.movingShapes,r=e.resizingShapes,o=e.start,a={};this.moveShapes(i,t),_(r,(function(e){a[e.id]=function(e){return{x:e.x,y:e.y,height:e.height,width:e.width}}(e)})),this.resizeShapes(r,t,n),this.updateConnectionWaypoints(function(e,t){var n=[];return _(e.concat(t),(function(i){var r=i.incoming,o=i.outgoing;_(r.concat(o),(function(i){var r=i.source,o=i.target;(km(e,r)||km(e,o)||km(t,r)||km(t,o))&&(km(n,i)||n.push(i))}))})),n}(i,r),t,n,o,i,r,a)},Ef.prototype.execute=function(){},Ef.prototype.revert=function(){},Ef.prototype.moveShapes=function(e,t){var n=this;_(e,(function(e){n._modeling.moveShape(e,t,null,{autoResize:!1,layout:!1,recurse:!1})}))},Ef.prototype.resizeShapes=function(e,t,n){var i=this;_(e,(function(e){var r=function(e,t,n){var i=e.x,r=e.y,o=e.width,a=e.height,s=n.x,p=n.y;switch(t){case"n":return{x:i,y:r+p,width:o,height:a-p};case"s":return{x:i,y:r,width:o,height:a+p};case"w":return{x:i+s,y:r,width:o-s,height:a};case"e":return{x:i,y:r,width:o+s,height:a};default:throw new Error("unknown direction: "+t)}}(e,n,t);i._modeling.resizeShape(e,r,null,{attachSupport:!1,autoResize:!1,layout:!1})}))},Ef.prototype.updateConnectionWaypoints=function(e,t,n,i,r,o,a){var s=this,p=r.concat(o);_(e,(function(e){var l=e.source,c=e.target,u=function(e){return k(e.waypoints,(function(e){return(e=Pf(e)).original&&(e.original=Pf(e.original)),e}))}(e),d=Of(n),h={labelBehavior:!1};kf(p,l)&&kf(p,c)?(u=k(u,(function(e){return Sf(e,i,n)&&(e[d]=e[d]+t[d]),e.original&&Sf(e.original,i,n)&&(e.original[d]=e.original[d]+t[d]),e})),s._modeling.updateWaypoints(e,u,{labelBehavior:!1})):(kf(p,l)||kf(p,c))&&(kf(r,l)?h.connectionStart=jd(e,l,t):kf(r,c)?h.connectionEnd=Bd(e,c,t):kf(o,l)?h.connectionStart=zd(e,l,a[l.id]):kf(o,c)&&(h.connectionEnd=Dd(e,c,a[c.id])),s._modeling.layoutConnection(e,h))}))},Cf.$inject=["modeling"],Cf.prototype.execute=function(e){var t=e.shape,n=t.children;e.oldChildrenVisibility=Mf(n),t.collapsed=!t.collapsed;var i=Tf(n,t.collapsed);return[t].concat(i)},Cf.prototype.revert=function(e){var t=e.shape,n=e.oldChildrenVisibility,i=Af(t.children,n);return t.collapsed=!t.collapsed,[t].concat(i)},Rf.$inject=["modeling"],Rf.prototype.execute=function(e){var t=e.shape,n=e.newHost,i=t.host;return e.oldHost=i,e.attacherIdx=zf(i,t),Df(n,t),t.host=n,t},Rf.prototype.revert=function(e){var t=e.shape,n=e.newHost,i=e.oldHost,r=e.attacherIdx;return t.host=i,zf(n,t),Df(i,t,r),t},jf.prototype.execute=function(e){var t=e.connection,n=e.newWaypoints;return e.oldWaypoints=t.waypoints,t.waypoints=n,t},jf.prototype.revert=function(e){var t=e.connection,n=e.oldWaypoints;return t.waypoints=n,t},Bf.$inject=["eventBus","elementFactory","commandStack"],Bf.prototype.getHandlers=function(){return{"shape.append":Zm,"shape.create":rf,"shape.delete":cf,"shape.move":vf,"shape.resize":_f,"shape.replace":wf,"shape.toggleCollapse":Cf,spaceTool:Ef,"label.create":of,"connection.create":Jm,"connection.delete":pf,"connection.move":mf,"connection.layout":hf,"connection.updateWaypoints":jf,"connection.reconnect":bf,"elements.create":ef,"elements.move":gf,"elements.delete":lf,"elements.distribute":uf,"elements.align":Xm,"element.updateAttachment":Rf}},Bf.prototype.registerHandlers=function(e){_(this.getHandlers(),(function(t,n){e.registerHandler(n,t)}))},Bf.prototype.moveShape=function(e,t,n,i,r){"object"==typeof i&&(r=i,i=null);var o={shape:e,delta:t,newParent:n,newParentIndex:i,hints:r||{}};this._commandStack.execute("shape.move",o)},Bf.prototype.updateAttachment=function(e,t){var n={shape:e,newHost:t};this._commandStack.execute("element.updateAttachment",n)},Bf.prototype.moveElements=function(e,t,n,i){var r,o=(i=i||{}).attach,a=n;!0===o?(r=n,a=n.parent):!1===o&&(r=null);var s={shapes:e,delta:t,newParent:a,newHost:r,hints:i};this._commandStack.execute("elements.move",s)},Bf.prototype.moveConnection=function(e,t,n,i,r){"object"==typeof i&&(r=i,i=void 0);var o={connection:e,delta:t,newParent:n,newParentIndex:i,hints:r||{}};this._commandStack.execute("connection.move",o)},Bf.prototype.layoutConnection=function(e,t){var n={connection:e,hints:t||{}};this._commandStack.execute("connection.layout",n)},Bf.prototype.createConnection=function(e,t,n,i,r,o){"object"==typeof n&&(o=r,r=i,i=n,n=void 0);var a={source:e,target:t,parent:r,parentIndex:n,connection:i=this._create("connection",i),hints:o};return this._commandStack.execute("connection.create",a),a.connection},Bf.prototype.createShape=function(e,t,n,i,r){"number"!=typeof i&&(r=i,i=void 0);var o,a,s=(r=r||{}).attach;e=this._create("shape",e),s?(o=n.parent,a=n):o=n;var p={position:t,shape:e,parent:o,parentIndex:i,host:a,hints:r};return this._commandStack.execute("shape.create",p),p.shape},Bf.prototype.createElements=function(e,t,n,i,r){d(e)||(e=[e]),"number"!=typeof i&&(r=i,i=void 0);var o={position:t,elements:e,parent:n,parentIndex:i,hints:r=r||{}};return this._commandStack.execute("elements.create",o),o.elements},Bf.prototype.createLabel=function(e,t,n,i){n=this._create("label",n);var r={labelTarget:e,position:t,parent:i||e.parent,shape:n};return this._commandStack.execute("label.create",r),r.shape},Bf.prototype.appendShape=function(e,t,n,i,r){r=r||{};var o={source:e,position:n,target:i,shape:t=this._create("shape",t),connection:r.connection,connectionParent:r.connectionParent,hints:r};return this._commandStack.execute("shape.append",o),o.shape},Bf.prototype.removeElements=function(e){var t={elements:e};this._commandStack.execute("elements.delete",t)},Bf.prototype.distributeElements=function(e,t,n){var i={groups:e,axis:t,dimension:n};this._commandStack.execute("elements.distribute",i)},Bf.prototype.removeShape=function(e,t){var n={shape:e,hints:t||{}};this._commandStack.execute("shape.delete",n)},Bf.prototype.removeConnection=function(e,t){var n={connection:e,hints:t||{}};this._commandStack.execute("connection.delete",n)},Bf.prototype.replaceShape=function(e,t,n){var i={oldShape:e,newData:t,hints:n||{}};return this._commandStack.execute("shape.replace",i),i.newShape},Bf.prototype.alignElements=function(e,t){var n={elements:e,alignment:t};this._commandStack.execute("elements.align",n)},Bf.prototype.resizeShape=function(e,t,n,i){var r={shape:e,newBounds:t,minBounds:n,hints:i};this._commandStack.execute("shape.resize",r)},Bf.prototype.createSpace=function(e,t,n,i,r){var o={delta:n,direction:i,movingShapes:e,resizingShapes:t,start:r};this._commandStack.execute("spaceTool",o)},Bf.prototype.updateWaypoints=function(e,t,n){var i={connection:e,newWaypoints:t,hints:n||{}};this._commandStack.execute("connection.updateWaypoints",i)},Bf.prototype.reconnect=function(e,t,n,i,r){var o={connection:e,newSource:t,newTarget:n,dockingOrPoints:i,hints:r||{}};this._commandStack.execute("connection.reconnect",o)},Bf.prototype.reconnectStart=function(e,t,n,i){i||(i={}),this.reconnect(e,t,e.target,n,q(i,{docking:"source"}))},Bf.prototype.reconnectEnd=function(e,t,n,i){i||(i={}),this.reconnect(e,e.source,t,n,q(i,{docking:"target"}))},Bf.prototype.connect=function(e,t,n,i){return this.createConnection(e,t,n||{},e.parent,i)},Bf.prototype._create=function(e,t){return t instanceof Bn?t:this._elementFactory.create(e,t)},Bf.prototype.toggleCollapse=function(e,t){var n={shape:e,hints:t||{}};this._commandStack.execute("shape.toggleCollapse",n)},Nf.$inject=["elementRegistry"],Nf.prototype.execute=function(e){var t=e.element,n=e.moddleElement,i=e.properties;if(!n)throw new Error("<moddleElement> required");var r=e.changed||this.getVisualReferences(n).concat(t),o=e.oldProperties||function(e,t){return P(t,(function(t,n){return t[n]=e.get(n),t}),{})}(n,C(i));return Lf(n,i),e.oldProperties=o,e.changed=r,r},Nf.prototype.revert=function(e){var t=e.oldProperties,n=e.moddleElement,i=e.changed;return Lf(n,t),i},Nf.prototype.getVisualReferences=function(e){var t=this._elementRegistry;return wr(e,"bpmn:DataObject")?function(e,t){return t.filter((function(t){return wr(t,"bpmn:DataObjectReference")&&Er(t).dataObjectRef===e}))}(e,t):[]};var If="default",$f="id",Ff="di",Vf={width:0,height:0};function Hf(e,t,n,i,r){this._elementRegistry=e,this._moddle=t,this._translate=n,this._modeling=i,this._textRenderer=r}function qf(e,t){return $f in e&&e.id!==t.id}function Uf(e,t){var n=e.businessObject,i=Pr(e);_(t,(function(e,t){t!==Ff?n.set(t,e):i&&function(e,t){_(t,(function(t,n){e.set(n,t)}))}(i,e)}))}Hf.$inject=["elementRegistry","moddle","translate","modeling","textRenderer"],Hf.prototype.execute=function(e){var t=e.element,n=[t],i=this._translate;if(!t)throw new Error(i("element required"));var r=this._elementRegistry,o=this._moddle.ids,a=t.businessObject,s=function(e){var t=q({},e);return Gf.forEach((function(n){n in e&&(t[n]=Er(t[n]))})),t}(e.properties),p=e.oldProperties||function(e,t){var n=C(t),i=e.businessObject,r=Pr(e);return P(n,(function(e,n){return e[n]=n!==Ff?i.get(n):function(e,t){return P(t,(function(t,n){return t[n]=e&&e.get(n),t}),{})}(r,C(t.di)),e}),{})}(t,s);return qf(s,a)&&(o.unclaim(a.id),r.updateId(t,s.id),o.claim(s.id,a)),If in s&&(s.default&&n.push(r.get(s.default.id)),a.default&&n.push(r.get(a.default.id))),Uf(t,s),e.oldProperties=p,e.changed=n,n},Hf.prototype.postExecute=function(e){var t=e.element.label,n=t&&Er(t).name;if(n){var i=this._textRenderer.getExternalLabelBounds(t,n);this._modeling.resizeShape(t,i,Vf)}},Hf.prototype.revert=function(e){var t=e.element,n=e.properties,i=e.oldProperties,r=t.businessObject,o=this._elementRegistry,a=this._moddle.ids;return Uf(t,i),qf(n,r)&&(a.unclaim(n.id),o.updateId(t,i.id),a.claim(i.id,r)),e.changed};var Gf=["default"];function Wf(e,t){this._canvas=e,this._modeling=t}function Kf(e,t){this._modeling=e,this._spaceTool=t}function Yf(e,t){this._modeling=e,this._translate=t}function Xf(e,t){this._modeling=e,this._spaceTool=t}Wf.$inject=["canvas","modeling"],Wf.prototype.execute=function(e){var t=this._canvas,n=e.newRoot,i=n.businessObject,r=t.getRootElement(),o=r.businessObject,a=o.$parent,s=Pr(r);t.setRootElement(n),t.removeRootElement(r),Et(a.rootElements,i),i.$parent=a,_t(a.rootElements,o),o.$parent=null,r.di=null,s.bpmnElement=i,n.di=s,e.oldRoot=r},Wf.prototype.revert=function(e){var t=this._canvas,n=e.newRoot,i=n.businessObject,r=e.oldRoot,o=r.businessObject,a=i.$parent,s=Pr(n);t.setRootElement(r),t.removeRootElement(n),_t(a.rootElements,i),i.$parent=null,Et(a.rootElements,o),o.$parent=a,n.di=null,s.bpmnElement=o,r.di=s},Kf.$inject=["modeling","spaceTool"],Kf.prototype.preExecute=function(e){var t=this._spaceTool,n=this._modeling,i=e.shape,r=e.location,o=xc(i),a=o===i,s=a?i:i.parent;bc(s).length||n.createShape({type:"bpmn:Lane"},{x:i.x+gc,y:i.y,width:i.width-gc,height:i.height},s);var p=[];mt(o,(function(e){return p.push(e),e.label&&p.push(e.label),e===i?[]:w(e.children,(function(e){return e!==i}))}));var l="top"===r?-120:120,c="top"===r?i.y:i.y+i.height,u=c+("top"===r?10:-10),d="top"===r?"n":"s",h=t.calculateAdjustments(p,"y",l,u);t.makeSpace(h.movingShapes,h.resizingShapes,{x:0,y:l},d,u),e.newLane=n.createShape({type:"bpmn:Lane"},{x:i.x+(a?gc:0),y:c-("top"===r?120:0),width:i.width-(a?gc:0),height:120},s)},Yf.$inject=["modeling","translate"],Yf.prototype.preExecute=function(e){var t=this._modeling,n=this._translate,i=e.shape,r=e.count,o=bc(i),a=o.length;if(a>r)throw new Error(n("more than {count} child lanes",{count:r}));var s,p,l,c,u,d=Math.round(i.height/r);for(u=0;u<r;u++)s=i.y+u*d,p=u===r-1?i.height-d*u:d,l={x:i.x+gc,y:s,width:i.width-gc,height:p},u<a?t.resizeShape(o[u],l):(c={type:"bpmn:Lane"},t.createShape(c,l,i))},Xf.$inject=["modeling","spaceTool"],Xf.prototype.preExecute=function(e){var t=e.shape,n=e.newBounds;!1!==e.balanced?this.resizeBalanced(t,n):this.resizeSpace(t,n)},Xf.prototype.resizeBalanced=function(e,t){var n=this._modeling,i=wc(e,t);n.resizeShape(e,t),i.forEach((function(e){n.resizeShape(e.shape,e.newBounds)}))},Xf.prototype.resizeSpace=function(e,t){var n,i,r,o,a,s=this._spaceTool,p=hn(e),l=cc(hn(t),p),c=xc(e),u=[],d=[];mt(c,(function(e){return u.push(e),(wr(e,"bpmn:Lane")||wr(e,"bpmn:Participant"))&&d.push(e),e.children})),(l.bottom||l.top)&&(n=l.bottom||l.top,i=e.y+(l.bottom?e.height:0)+(l.bottom?-10:10),r=l.bottom?"s":"n",o=l.top>0||l.bottom<0?-n:n,a=s.calculateAdjustments(u,"y",o,i),s.makeSpace(a.movingShapes,a.resizingShapes,{x:0,y:n},r)),(l.left||l.right)&&(n=l.right||l.left,i=e.x+(l.right?e.width:0)+(l.right?-10:100),r=l.right?"e":"w",o=l.left>0||l.right<0?-n:n,a=s.calculateAdjustments(d,"x",o,i),s.makeSpace(a.movingShapes,a.resizingShapes,{x:n,y:0},r))};var Zf="flowNodeRef",Jf="lanes";function Qf(e){this._elementRegistry=e}function ey(e){this._moddle=e}Qf.$inject=["elementRegistry"],Qf.prototype.computeUpdates=function(e,t){var n=[],i=[],r={},o=[];function a(e){-1===n.indexOf(e)&&(o.push(e),n.push(e))}function s(e){return e.parent?function(e){var t=xc(e);return r[t.id]||(r[t.id]=vc(t)),r[t.id]}(e).filter((function(t){return n=e,i=hn(t),r=n.x+n.width/2,o=n.y+n.height/2,r>i.left&&r<i.right&&o>i.top&&o<i.bottom;var n,i,r,o})).map((function(e){return e.businessObject})):[]}return t.forEach((function(e){var t=xc(e);t&&-1===n.indexOf(t)&&(t.children.filter((function(e){return wr(e,"bpmn:FlowNode")})).forEach(a),n.push(t))})),e.forEach(a),o.forEach((function(e){var t=e.businessObject,n=t.get(Jf).slice(),r=s(e);i.push({flowNode:t,remove:n,add:r})})),t.forEach((function(e){var t=e.businessObject;e.parent||t.get(Zf).forEach((function(e){i.push({flowNode:e,remove:[t],add:[]})}))})),i},Qf.prototype.execute=function(e){var t=e.updates;t||(t=e.updates=this.computeUpdates(e.flowNodeShapes,e.laneShapes)),t.forEach((function(e){var t=e.flowNode,n=t.get(Jf);e.remove.forEach((function(e){_t(n,e),_t(e.get(Zf),t)})),e.add.forEach((function(e){Et(n,e),Et(e.get(Zf),t)}))}))},Qf.prototype.revert=function(e){e.updates.forEach((function(e){var t=e.flowNode,n=t.get(Jf);e.add.forEach((function(e){_t(n,e),_t(e.get(Zf),t)})),e.remove.forEach((function(e){Et(n,e),Et(e.get(Zf),t)}))}))},ey.$inject=["moddle"],ey.prototype.execute=function(e){var t=this._moddle.ids,n=e.id,i=e.element;e.claiming?t.claim(n,i):t.unclaim(n)},ey.prototype.revert=function(e){var t=this._moddle.ids,n=e.id,i=e.element;e.claiming?t.unclaim(n):t.claim(n,i)};var ty={fill:void 0,stroke:void 0};function ny(e){this._commandStack=e,this._normalizeColor=function(e){if(e){if(y(e)){var t=function(e){var t=document.createElement("canvas").getContext("2d");return t.fillStyle="transparent",t.fillStyle=e,/^#[0-9a-fA-F]{6}$/.test(t.fillStyle)?t.fillStyle:null}(e);if(t)return t}throw new Error("invalid color value: "+e)}}}ny.$inject=["commandStack"],ny.prototype.postExecute=function(e){var t=e.elements,n=e.colors||ty,i=this,r={};"fill"in n&&q(r,{"background-color":this._normalizeColor(n.fill)}),"stroke"in n&&q(r,{"border-color":this._normalizeColor(n.stroke)}),_(t,(function(e){var t=function(e){return!!e.waypoints}(e)?W(r,["border-color"]):r;!function(e){"border-color"in e&&(e.stroke=e["border-color"]);"background-color"in e&&(e.fill=e["background-color"])}(t),e.labelTarget?i._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:Pr(e).label,properties:{color:r["background-color"]}}):i._commandStack.execute("element.updateProperties",{element:e,properties:{di:t}})}))};var iy={width:0,height:0};function ry(e,t,n){function i(e,t){var i=e.label||e,r=e.labelTarget||e;return function(e,t,n){var i=e.businessObject,r=Fr(i);r&&("categoryValueRef"===r?i.categoryValueRef.value=t:i[r]=t)}(i,t),function(e,t){if(!lo(e)){var i=Pr(e);t&&!i.label&&(i.label=n.create("bpmndi:BPMNLabel")),!t&&i.label&&(i.label=null)}}(e,t),[i,r]}this.preExecute=function(t){var n=t.element,i=n.businessObject,r=t.newLabel;if(!mo(n)&&lo(n)&&!co(n)&&!oy(r)){var o=ho(n);o={x:o.x,y:o.y+7},e.createLabel(n,o,{id:i.id+"_label",businessObject:i,di:n.di})}},this.execute=function(e){return e.oldLabel=Vr(e.element),i(e.element,e.newLabel)},this.revert=function(e){return i(e.element,e.oldLabel)},this.postExecute=function(n){var i=n.element,r=i.label||i,o=n.newLabel,a=n.newBounds,s=n.hints||{};if(mo(r)||wr(r,"bpmn:TextAnnotation"))if(mo(r)&&oy(o))!1!==s.removeShape&&e.removeShape(r,{unsetLabel:!1});else{var p=Vr(r);void 0===a&&(a=t.getExternalLabelBounds(r,p)),a&&e.resizeShape(r,a,iy)}}}function oy(e){return!e||!e.trim()}function ay(e,t,n,i){Bf.call(this,e,t,n),this._bpmnRules=i}function sy(){}ry.$inject=["modeling","textRenderer","bpmnFactory"],i(ay,Bf),ay.$inject=["eventBus","elementFactory","commandStack","bpmnRules"],ay.prototype.getHandlers=function(){var e=Bf.prototype.getHandlers.call(this);return e["element.updateModdleProperties"]=Nf,e["element.updateProperties"]=Hf,e["canvas.updateRoot"]=Wf,e["lane.add"]=Kf,e["lane.resize"]=Xf,e["lane.split"]=Yf,e["lane.updateRefs"]=Qf,e["id.updateClaim"]=ey,e["element.setColor"]=ny,e["element.updateLabel"]=ry,e},ay.prototype.updateLabel=function(e,t,n,i){this._commandStack.execute("element.updateLabel",{element:e,newLabel:t,newBounds:n,hints:i||{}})},ay.prototype.connect=function(e,t,n,i){var r=this._bpmnRules;if(n||(n=r.canConnect(e,t)),n)return this.createConnection(e,t,n,e.parent,i)},ay.prototype.updateModdleProperties=function(e,t,n){this._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:n})},ay.prototype.updateProperties=function(e,t){this._commandStack.execute("element.updateProperties",{element:e,properties:t})},ay.prototype.resizeLane=function(e,t,n){this._commandStack.execute("lane.resize",{shape:e,newBounds:t,balanced:n})},ay.prototype.addLane=function(e,t){var n={shape:e,location:t};return this._commandStack.execute("lane.add",n),n.newLane},ay.prototype.splitLane=function(e,t){this._commandStack.execute("lane.split",{shape:e,count:t})},ay.prototype.makeCollaboration=function(){var e=this._create("root",{type:"bpmn:Collaboration"}),t={newRoot:e};return this._commandStack.execute("canvas.updateRoot",t),e},ay.prototype.updateLaneRefs=function(e,t){this._commandStack.execute("lane.updateRefs",{flowNodeShapes:e,laneShapes:t})},ay.prototype.makeProcess=function(){var e={newRoot:this._create("root",{type:"bpmn:Process"})};this._commandStack.execute("canvas.updateRoot",e)},ay.prototype.claimId=function(e,t){this._commandStack.execute("id.updateClaim",{id:e,element:t,claiming:!0})},ay.prototype.unclaimId=function(e,t){this._commandStack.execute("id.updateClaim",{id:e,element:t})},ay.prototype.setColor=function(e,t){e.length||(e=[e]),this._commandStack.execute("element.setColor",{elements:e,colors:t})},sy.prototype.layoutConnection=function(e,t){return[(t=t||{}).connectionStart||fn(t.source||e.source),t.connectionEnd||fn(t.target||e.target)]};var py=Math.round,ly={"h:h":20,"v:v":20,"h:v":-10,"v:h":-10};function cy(e,t,n){var i,r,o,a=yn(t,e,5),s=n.split(":")[0],p=py((t.x-e.x)/2+e.x),l=py((t.y-e.y)/2+e.y),c=(o=a,{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/left|right/,v:/top|bottom/}[s].test(o)),u=/h|r|l/.test(s),d=!1;return c?(i=u?{x:p,y:e.y}:{x:e.x,y:l},r=u?"h:h":"v:v"):(r=u?"h:v":"v:h",function(e,t){return!{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/./,v:/./}[t].test(e)}(a,s)?u?(d=l===e.y,i={x:e.x+20*(/l/.test(s)?-1:1),y:d?l+20:l}):i={x:(d=p===e.x)?p+20:p,y:e.y+20*(/t/.test(s)?-1:1)}:i={x:p,y:l}),{waypoints:dy(e,i,r).concat(i),directions:r,turnNextDirections:d}}function uy(e){return e.split(":").reverse().join(":")}function dy(e,t,n){if(!function(e){return e&&/^h|v|t|r|b|l:h|v|t|r|b|l$/.test(e)}(n=n||"h:h"))throw new Error("unknown directions: <"+n+">: must be specified as <start>:<end> with start/end in { h,v,t,r,b,l }");if(gy(n)){var i=function(e,t,n){return cy(e,t,n)}(e,t,n),r=function(e,t,n){var i=cy(t,e,uy(n));return{waypoints:i.waypoints.slice().reverse(),directions:uy(i.directions),turnNextDirections:i.turnNextDirections}}(e,t,n),o=function(e,t){var n=e.directions.split(":")[1],i=t.directions.split(":")[0];e.turnNextDirections&&(n="h"==n?"v":"h"),t.turnNextDirections&&(i="h"==i?"v":"h");var r=n+":"+i;return{waypoints:dy(e.waypoints[e.waypoints.length-1],t.waypoints[0],r),directions:r}}(i,r);return[].concat(i.waypoints,o.waypoints,r.waypoints)}return function(e,t,n){var i=py((t.x-e.x)/2+e.x),r=py((t.y-e.y)/2+e.y);if("h:v"===n)return[{x:t.x,y:e.y}];if("v:h"===n)return[{x:e.x,y:t.y}];if("h:h"===n)return[{x:i,y:e.y},{x:i,y:t.y}];if("v:v"===n)return[{x:e.x,y:r},{x:t.x,y:r}];throw new Error("invalid directions: can only handle varians of [hv]:[hv]")}(e,t,n)}function hy(e,t,n,i,r){var o=E(r&&r.preferredLayouts||[],"straight")[0]||"h:h",a=yn(e,t,ly[o]||0),s=function(e,t){if(gy(t))return t;switch(e){case"intersect":return"t:t";case"top":case"bottom":return"v:v";case"left":case"right":return"h:h";default:return t}}(a,o);n=n||fn(e),i=i||fn(t);var p=s.split(":");return function(e,t,n){var i=dy(e,t,n);return i.unshift(e),i.push(t),by(i)}(vy(n,e,p[0],function(e){return{top:"bottom",bottom:"top",left:"right",right:"left","top-left":"bottom-right","bottom-right":"top-left","top-right":"bottom-left","bottom-left":"top-right"}[e]}(a)),vy(i,t,p[1],a),s)}function my(e,t,n,i,r,o){var a;return d(n)&&(r=n,o=i,n=fn(e),i=fn(t)),r=r||[],(a=-1!==(o=q({preferredLayouts:[]},o)).preferredLayouts.indexOf("straight")&&function(e,t,n,i,r){var o,a,s={};if(a=yn(e,t),!/^(top|bottom|left|right)$/.test(a))return null;/top|bottom/.test(a)&&(o="x");/left|right/.test(a)&&(o="y");return"target"===r.preserveDocking?fy(o,i,e)?(s[o]=i[o],[{x:void 0!==s.x?s.x:n.x,y:void 0!==s.y?s.y:n.y,original:{x:void 0!==s.x?s.x:n.x,y:void 0!==s.y?s.y:n.y}},{x:i.x,y:i.y}]):null:fy(o,n,t)?(s[o]=n[o],[{x:n.x,y:n.y},{x:void 0!==s.x?s.x:i.x,y:void 0!==s.y?s.y:i.y,original:{x:void 0!==s.x?s.x:i.x,y:void 0!==s.y?s.y:i.y}}]):null}(e,t,n,i,o))||(a=o.connectionEnd&&function(e,t,n,i){var r=i.slice().reverse();return(r=yy(e,t,n,r))?r.reverse():null}(t,e,i,r))?a:(a=o.connectionStart&&yy(e,t,n,r))||(!o.connectionStart&&!o.connectionEnd&&r&&r.length?r:hy(e,t,n,i,o))}function fy(e,t,n){return function(e,t,n){return e>=t&&e<=n}(t[e],n[e],n[e]+n[{x:"width",y:"height"}[e]])}function yy(e,t,n,i){if(function(e){return e.length<3||!(e.length>4)&&!!b(e,(function(t,n){var i=e[n-1];return i&&Ot(t,i)<3}))}(i))return null;var r,o=i[0],a=i.slice();return a[0]=n,a[1]=function(e,t,n){switch(kt(t,e)){case"v":return{x:n.x,y:e.y};case"h":return{x:e.x,y:n.y}}return{x:e.x,y:e.y}}(a[1],o,n),(r=function(e,t,n){var i;for(i=e.length-2;0!==i;i--)if(Ct(e[i],t,20)||Ct(e[i],n,20))return e.slice(i);return e}(a,e,t))!==a&&(a=yy(e,t,n,r)),a&&kt(a)?null:a}function gy(e){return e&&/t|r|b|l/.test(e)}function vy(e,t,n,i){if("h"===n&&(n=/left/.test(i)?"l":"r"),"v"===n&&(n=/top/.test(i)?"t":"b"),"t"===n)return{original:e,x:e.x,y:t.y};if("r"===n)return{original:e,x:t.x+t.width,y:e.y};if("b"===n)return{original:e,x:e.x,y:t.y+t.height};if("l"===n)return{original:e,x:t.x,y:e.y};throw new Error("unexpected dockingDirection: <"+n+">")}function by(e){return e.reduce((function(t,n,i){return St(t[t.length-1],e[i+1],n,0)||t.push(n),t}),[])}var xy={top:"bottom","top-right":"bottom-left","top-left":"bottom-right",right:"left",bottom:"top","bottom-right":"top-left","bottom-left":"top-right",left:"right"},wy={top:"t",right:"r",bottom:"b",left:"l"};function _y(){}function Ey(e,t){return wr(t,"bpmn:Participant")?"source":wr(e,"bpmn:Participant")?"target":ky(t)?"source":ky(e)||wr(t,"bpmn:Event")?"target":wr(e,"bpmn:Event")?"source":null}function Py(e){return ky(e)?"target":"source"}function Oy(e,t){return e?e.original||e:fn(t)}function Sy(e,t){return wr(t,"bpmn:Activity")&&wr(e,"bpmn:BoundaryEvent")&&t.businessObject.isForCompensation}function ky(e){return wr(e,"bpmn:SubProcess")&&Nr(e)}function Cy(e,t){return e===t}function My(e){var t=/right|left/.exec(e);return t&&t[0]}function Ty(e){var t=/top|bottom/.exec(e);return t&&t[0]}function Ay(e){return"right"===e||"left"===e}function Ry(e,t){var n=t.waypoints,i=n&&n.length&&yn(n[0],e);return"top"===i?["t:r"]:"right"===i?["r:b"]:"left"===i?["l:t"]:["b:l"]}function zy(e,t,n){var i,r,o=fn(e),a=fn(t),s=(r=(i=e).host,yn(fn(i),r,-10)),p=Cy(e.host,t),l=-1!==["top","right","bottom","left"].indexOf(s),c=yn(a,o,{x:e.width/2+t.width/2,y:e.height/2+t.height/2});return p?function(e,t,n,i,r){var o,a=t?e:Ty(e),s=wy[a];o=t?Ay(e)?Dy("y",n,i,r)?"h":"b":Dy("x",n,i,r)?"v":"l":"v";return[s+":"+o]}(s,l,e,t,n):[function(e,t,n){if(n)return wy[e];if(Cy(Ty(e),Ty(t))||function(e,t){return xy[e]===t}(My(e),My(t)))return wy[Ty(e)];return wy[My(e)]}(s,c,l)+":"+function(e,t,n){if(n)return Ay(e)?function(e,t){var n=My(e),i=xy[n];return-1!==t.indexOf(i)}(e,t)||Cy(e,t)?"h":"v":function(e,t){var n=Ty(e),i=xy[n];return-1!==t.indexOf(i)}(e,t)||Cy(e,t)?"v":"h";return Ay(t)||Cy(Ty(e),Ty(t))&&My(t)?"h":"v"}(s,c,l)]}function Dy(e,t,n,i){return!(jy(e,i,n,40)||jy(e,i,{x:n.x+n.width,y:n.y+n.height},40)||jy(e,i,fn(t),40))}function jy(e,t,n,i){return Math.abs(t[e]-n[e])<i}function By(e){return q({original:e.point.original||e.point},e.actual)}function Ny(e,t){this._elementRegistry=e,this._graphicsFactory=t}i(_y,sy),_y.prototype.layoutConnection=function(e,t){t||(t={});var n,i,r=t.source||e.source,o=t.target||e.target,a=t.waypoints||e.waypoints,s=t.connectionStart,p=t.connectionEnd;return s||(s=Oy(a&&a[0],r)),p||(p=Oy(a&&a[a.length-1],o)),(wr(e,"bpmn:Association")||wr(e,"bpmn:DataAssociation"))&&a&&!Sy(r,o)?[].concat([s],a.slice(1,-1),[p]):(wr(e,"bpmn:MessageFlow")?n=function(e,t){return{preferredLayouts:["straight","v:v"],preserveDocking:Ey(e,t)}}(r,o):(wr(e,"bpmn:SequenceFlow")||Sy(r,o))&&(n=r===o?{preferredLayouts:Ry(r,e)}:wr(r,"bpmn:BoundaryEvent")?{preferredLayouts:zy(r,o,p)}:ky(r)||ky(o)?function(e){return{preferredLayouts:["straight","h:h"],preserveDocking:Py(e)}}(r):wr(r,"bpmn:Gateway")?{preferredLayouts:["v:h"]}:wr(o,"bpmn:Gateway")?{preferredLayouts:["h:v"]}:{preferredLayouts:["h:h"]}),n&&(i=by(my(r,o,s,p,a,n=q(n,t)))),i||[s,p])},Ny.$inject=["elementRegistry","graphicsFactory"],Ny.prototype.getCroppedWaypoints=function(e,t,n){t=t||e.source,n=n||e.target;var i=this.getDockingPoint(e,t,!0),r=this.getDockingPoint(e,n),o=e.waypoints.slice(i.idx+1,r.idx);return o.unshift(By(i)),o.push(By(r)),o},Ny.prototype.getDockingPoint=function(e,t,n){var i,r,o=e.waypoints;return{point:r=o[i=n?0:o.length-1],actual:this._getIntersection(t,e,n)||r,idx:i}},Ny.prototype._getIntersection=function(e,t,n){return gn(this._getShapePath(e),this._getConnectionPath(t),n)},Ny.prototype._getConnectionPath=function(e){return this._graphicsFactory.getConnectionPath(e)},Ny.prototype._getShapePath=function(e){return this._graphicsFactory.getShapePath(e)},Ny.prototype._getGfx=function(e){return this._elementRegistry.getGraphics(e)};var Ly={__init__:["modeling","bpmnUpdater"],__depends__:[Eh,rm,am,lm,Hl,um,ym,xm,Pm,$o,Yo,qm],bpmnFactory:["type",Um],bpmnUpdater:["type",Gm],elementFactory:["type",Km],modeling:["type",ay],layouter:["type",_y],connectionDocking:["type",Ny]},Iy=Math.round;function $y(e,t,n,i,r){function o(e,t,n,i){return r.allowed("elements.move",{shapes:e,delta:t,position:n,target:i})}function a(e,n,i,r){if(h(i)&&(r=i,i=!1),!n.waypoints&&n.parent){var o=function(e){return{x:e.x+Iy(e.width/2),y:e.y+Iy(e.height/2)}}(n);return t.init(e,o,"shape.move",{cursor:"grabbing",autoActivate:i,data:{shape:n,context:r||{}}}),!0}}e.on("shape.move.start",1500,(function(e){var t=e.context,n=e.shape,r=i.get().slice();-1===r.indexOf(n)&&(r=[n]),q(t,{shapes:r=function(e){var t=A(e,"id");return w(e,(function(e){for(;e=e.parent;)if(t[e.id])return!1;return!0}))}(r),validatedShapes:r,shape:n})})),e.on("shape.move.start",1250,(function(e){var t=e.context,n=t.validatedShapes;if(!(t.canExecute=o(n)))return!1})),e.on("shape.move.move",500,(function(e){var t,n=e.context,i=n.validatedShapes,r=e.hover,a={x:e.dx,y:e.dy};t=o(i,a,{x:e.x,y:e.y},r),n.delta=a,n.canExecute=t,n.target=null!==t?r:null})),e.on("shape.move.end",(function(e){var t=e.context,i=t.delta,r=t.canExecute,o="attach"===r,a=t.shapes;if(!1===r)return!1;i.x=Iy(i.x),i.y=Iy(i.y),0===i.x&&0===i.y||n.moveElements(a,i,t.target,{primaryShape:t.shape,attach:o})})),e.on("element.mousedown",(function(e){if(Oo(e)){var t=wo(e);if(!t)throw new Error("must supply DOM mousedown event");return a(t,e.element)}})),this.start=a}$y.$inject=["eventBus","dragging","modeling","selection","rules"];var Fy="djs-dragging",Vy="drop-ok",Hy="drop-not-ok",qy="new-parent",Uy="attach-ok";function Gy(e,t,n,i){function r(e){return function(e){return w(e,(function(t){return!function(e){return e.waypoints}(t)||b(e,j({id:t.source.id}))&&b(e,j({id:t.target.id}))}))}(o(e))}function o(e){var t=ft(e,!0),n=k(t,(function(e){return(e.incoming||[]).concat(e.outgoing||[])}));return a(t.concat(n))}function s(e,n){[Uy,Vy,Hy,qy].forEach((function(i){i===n?t.addMarker(e,i):t.removeMarker(e,i)}))}e.on("shape.move.start",499,(function(e){var s=e.context,p=s.shapes,l=s.allDraggedElements,c=r(p);if(!s.dragGroup){var u=Le("g");Oe(u,n.cls("djs-drag-group",["no-events"])),_e(t.getActiveLayer(),u),s.dragGroup=u}c.forEach((function(e){i.addDragger(e,s.dragGroup)})),_(l=l?a([l,o(p)]):o(p),(function(e){t.addMarker(e,Fy)})),s.allDraggedElements=l,s.differentParents=1!==M(A(p,(function(e){return e.parent&&e.parent.id})))})),e.on("shape.move.move",499,(function(e){var t=e.context,n=t.dragGroup,i=t.target,r=t.shape.parent,o=t.canExecute;i&&("attach"===o?s(i,Uy):t.canExecute&&i&&i.id!==r.id?s(i,qy):s(i,t.canExecute?Vy:Hy)),Kn(n,e.dx,e.dy)})),e.on(["shape.move.out","shape.move.cleanup"],(function(e){var t=e.context.target;t&&s(t,null)})),e.on("shape.move.cleanup",(function(e){var n=e.context,i=n.allDraggedElements,r=n.dragGroup;_(i,(function(e){t.removeMarker(e,Fy)})),r&&Re(r)})),this.makeDraggable=function(e,n,r){i.addDragger(n,e.dragGroup),r&&t.addMarker(n,Fy),e.allDraggedElements?e.allDraggedElements.push(n):e.allDraggedElements=[n]}}Gy.$inject=["eventBus","canvas","styles","previewSupport"];var Wy={__depends__:[Ao,$o,zo,Is,Ds,il],__init__:["move","movePreview"],move:["type",$y],movePreview:["type",Gy]},Ky=".djs-palette-toggle",Yy=".entry",Xy="open",Zy="two-column";function Jy(e,t){this._eventBus=e,this._canvas=t;var n=this;e.on("tool-manager.update",(function(e){var t=e.tool;n.updateToolHighlight(t)})),e.on("i18n.changed",(function(){n._update()})),e.on("diagram.init",(function(){n._diagramInitialized=!0,n._rebuild()}))}function Qy(e,t){var n=t.getPaletteEntries();return f(n)?n(e):(_(n,(function(t,n){e[n]=t})),e)}Jy.$inject=["eventBus","canvas"],Jy.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("palette.getProviders",e,(function(e){e.providers.push(t)})),this._rebuild()},Jy.prototype.getEntries=function(){return this._getProviders().reduce(Qy,{})},Jy.prototype._rebuild=function(){this._diagramInitialized&&(this._getProviders().length&&(this._container||this._init(),this._update()))},Jy.prototype._init=function(){var e=this,t=this._eventBus,n=this._getParentContainer(),i=this._container=fe(Jy.HTML_MARKUP);n.appendChild(i),te(n).add("djs-palette-shown"),me.bind(i,".djs-palette-toggle, .entry","click",(function(t){var n=t.delegateTarget;if(ae(n,Ky))return e.toggle();e.trigger("click",t)})),ue.bind(i,"mousedown",(function(e){e.stopPropagation()})),me.bind(i,Yy,"dragstart",(function(t){e.trigger("dragstart",t)})),t.on("canvas.resized",this._layoutChanged,this),t.fire("palette.create",{container:i})},Jy.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"palette.getProviders",providers:[]});return this._eventBus.fire(t),t.providers},Jy.prototype._toggleState=function(e){e=e||{};var t,n=this._getParentContainer(),i=this._container,r=this._eventBus,o=te(i),a=te(n);t="twoColumn"in e?e.twoColumn:this._needsCollapse(n.clientHeight,this._entries||{}),o.toggle(Zy,t),a.toggle("djs-palette-two-column",t),"open"in e&&(o.toggle(Xy,e.open),a.toggle("djs-palette-open",e.open)),r.fire("palette.changed",{twoColumn:t,open:this.isOpen()})},Jy.prototype._update=function(){var e=ve(".djs-palette-entries",this._container),t=this._entries=this.getEntries();ie(e),_(t,(function(t,n){var i=t.group||"default",r=ve("[data-group="+i+"]",e);r||(r=fe('<div class="group" data-group="'+i+'"></div>'),e.appendChild(r));var o=t.html||(t.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),a=fe(o);r.appendChild(a),t.separator||(X(a,"data-action",n),t.title&&X(a,"title",t.title),t.className&&function(e,t){var n=te(e);(d(t)?t:t.split(/\s+/g)).forEach((function(e){n.add(e)}))}(a,t.className),t.imageUrl&&a.appendChild(fe('<img src="'+t.imageUrl+'">')))})),this.open()},Jy.prototype.trigger=function(e,t,n){var i,r,o,a=this._entries,s=t.delegateTarget||t.target;if(!s)return t.preventDefault();(i=a[X(s,"data-action")])&&(r=i.action,o=t.originalEvent||t,f(r)?"click"===e&&r(o,n):r[e]&&r[e](o,n),t.preventDefault())},Jy.prototype._layoutChanged=function(){this._toggleState({})},Jy.prototype._needsCollapse=function(e,t){return e<46*Object.keys(t).length+50},Jy.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})},Jy.prototype.open=function(){this._toggleState({open:!0})},Jy.prototype.toggle=function(e){this.isOpen()?this.close():this.open()},Jy.prototype.isActiveTool=function(e){return e&&this._activeTool===e},Jy.prototype.updateToolHighlight=function(e){var t;this._toolsContainer||(t=ve(".djs-palette-entries",this._container),this._toolsContainer=ve("[data-group=tools]",t)),_(this._toolsContainer.children,(function(t){var n=t.getAttribute("data-action");if(n){var i=te(t);n=n.replace("-tool",""),i.contains("entry")&&n===e?i.add("highlighted-entry"):i.remove("highlighted-entry")}}))},Jy.prototype.isOpen=function(){return te(this._container).has(Xy)},Jy.prototype._getParentContainer=function(){return this._canvas.getContainer()},Jy.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';var eg={__init__:["palette"],palette:["type",Jy]},tg="crosshair";function ng(e,t,n,i,r,o,a){this._selection=r,this._dragging=n,this._mouse=a;var s=this,p=function(e){var n,i=t.getActiveLayer();Oe(n=e.frame=Le("rect"),{class:"djs-lasso-overlay",width:1,height:1,x:0,y:0}),_e(i,n)},l=function(e){var t=e.frame,n=e.bbox;Oe(t,{x:n.x,y:n.y,width:n.width,height:n.height})},c=function(e){e.frame&&Re(e.frame)};o.registerTool("lasso",{tool:"lasso.selection",dragging:"lasso"}),e.on("lasso.selection.end",(function(t){var n=t.originalEvent.target;(t.hover||n instanceof SVGElement)&&e.once("lasso.selection.ended",(function(){s.activateLasso(t.originalEvent,!0)}))})),e.on("lasso.end",(function(e){var t=ig(e),n=i.filter((function(e){return e}));s.select(n,t)})),e.on("lasso.start",(function(e){var t=e.context;t.bbox=ig(e),p(t)})),e.on("lasso.move",(function(e){var t=e.context;t.bbox=ig(e),l(t)})),e.on("lasso.cleanup",(function(e){var t=e.context;c(t)})),e.on("element.mousedown",1500,(function(e){if(ko(e))return s.activateLasso(e.originalEvent),!0}))}function ig(e){var t={x:e.x-e.dx,y:e.y-e.dy},n={x:e.x,y:e.y};return t.x<=n.x&&t.y<n.y||t.x<n.x&&t.y<=n.y?{x:t.x,y:t.y,width:n.x-t.x,height:n.y-t.y}:t.x>=n.x&&t.y<n.y||t.x>n.x&&t.y<=n.y?{x:n.x,y:t.y,width:t.x-n.x,height:n.y-t.y}:t.x<=n.x&&t.y>n.y||t.x<n.x&&t.y>=n.y?{x:t.x,y:n.y,width:n.x-t.x,height:t.y-n.y}:t.x>=n.x&&t.y>n.y||t.x>n.x&&t.y>=n.y?{x:n.x,y:n.y,width:t.x-n.x,height:t.y-n.y}:{x:n.x,y:n.y,width:0,height:0}}ng.$inject=["eventBus","canvas","dragging","elementRegistry","selection","toolManager","mouse"],ng.prototype.activateLasso=function(e,t){this._dragging.init(e,"lasso",{autoActivate:t,cursor:tg,data:{context:{}}})},ng.prototype.activateSelection=function(e,t){this._dragging.init(e,"lasso.selection",{trapClick:!1,autoActivate:t,cursor:tg,data:{context:{}}})},ng.prototype.select=function(e,t){var n=function(e,t){var n={};return _(e,(function(e){var i=e;i.waypoints&&(i=yt(i)),!m(t.y)&&i.x>t.x&&(n[e.id]=e),!m(t.x)&&i.y>t.y&&(n[e.id]=e),i.x>t.x&&i.y>t.y&&(m(t.width)&&m(t.height)&&i.width+i.x<t.width+t.x&&i.height+i.y<t.height+t.y?n[e.id]=e:m(t.width)&&m(t.height)||(n[e.id]=e))})),n}(e,t);this._selection.select(T(n))},ng.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)},ng.prototype.isActive=function(){var e=this._dragging.context();return e&&/^lasso/.test(e.prefix)};var rg={__depends__:[Sm,_l],__init__:["lassoTool"],lassoTool:["type",ng]},og=1500,ag="grab";function sg(e,t,n,i,r,o){this._dragging=n,this._mouse=o;var a=this,s=i.get("keyboard",!1);r.registerTool("hand",{tool:"hand",dragging:"hand.move"}),e.on("element.mousedown",og,(function(e){if(So(e))return a.activateMove(e.originalEvent,!0),!1})),s&&s.addListener(og,(function(e){if(pg(e.keyEvent)&&!a.isActive()){var t=a._mouse.getLastMoveEvent();a.activateMove(t,!!t)}}),"keyboard.keydown"),s&&s.addListener(og,(function(e){pg(e.keyEvent)&&a.isActive()&&a.toggle()}),"keyboard.keyup"),e.on("hand.end",(function(t){var n=t.originalEvent.target;if(!(t.hover||n instanceof SVGElement))return!1;e.once("hand.ended",(function(){a.activateMove(t.originalEvent,{reactivate:!0})}))})),e.on("hand.move.move",(function(e){var n=t.viewbox().scale;t.scroll({dx:e.dx*n,dy:e.dy*n})})),e.on("hand.move.end",(function(t){var n=t.context.reactivate;return!So(t)&&n&&e.once("hand.move.ended",(function(e){a.activateHand(e.originalEvent,!0,!0)})),!1}))}function pg(e){return xa(" ",e)}sg.$inject=["eventBus","canvas","dragging","injector","toolManager","mouse"],sg.prototype.activateMove=function(e,t,n){"object"==typeof t&&(n=t,t=!1),this._dragging.init(e,"hand.move",{autoActivate:t,cursor:ag,data:{context:n||{}}})},sg.prototype.activateHand=function(e,t,n){this._dragging.init(e,"hand",{trapClick:!1,autoActivate:t,cursor:ag,data:{context:{reactivate:n}}})},sg.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateHand(e,!!e)},sg.prototype.isActive=function(){var e=this._dragging.context();return!!e&&/^(hand|hand\.move)$/.test(e.prefix)};var lg={__depends__:[Sm,_l],__init__:["handTool"],handTool:["type",sg]},cg="connect-ok",ug="connect-not-ok";function dg(e,t,n,i,r,o,a){var s=this;this._dragging=t,this._rules=o,this._mouse=a,r.registerTool("global-connect",{tool:"global-connect",dragging:"global-connect.drag"}),e.on("global-connect.hover",(function(e){var t=e.context,n=e.hover,r=t.canStartConnect=s.canStartConnect(n);null!==r&&(t.startTarget=n,i.addMarker(n,r?cg:ug))})),e.on(["global-connect.out","global-connect.cleanup"],(function(e){var t=e.context.startTarget,n=e.context.canStartConnect;t&&i.removeMarker(t,n?cg:ug)})),e.on(["global-connect.ended"],(function(t){var i=t.context.startTarget,r={x:t.x,y:t.y};if(s.canStartConnect(i))return e.once("element.out",(function(){e.once(["connect.ended","connect.canceled"],(function(){e.fire("global-connect.drag.ended")})),n.start(null,i,r)})),!1}))}dg.$inject=["eventBus","dragging","connect","canvas","toolManager","rules","mouse"],dg.prototype.start=function(e,t){this._dragging.init(e,"global-connect",{autoActivate:t,trapClick:!1,data:{context:{}}})},dg.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();return this.start(e,!!e)},dg.prototype.isActive=function(){var e=this._dragging.context();return e&&/^global-connect/.test(e.prefix)},dg.prototype.canStartConnect=function(e){return this._rules.allowed("connection.start",{source:e})};var hg={__depends__:[Dp,Is,Ds,Sm,_l],globalConnect:["type",dg]};function mg(e,t,n,i,r,o,a,s){this._palette=e,this._create=t,this._elementFactory=n,this._spaceTool=i,this._lassoTool=r,this._handTool=o,this._globalConnect=a,this._translate=s,e.registerProvider(this)}mg.$inject=["palette","create","elementFactory","spaceTool","lassoTool","handTool","globalConnect","translate"],mg.prototype.getPaletteEntries=function(e){var t={},n=this._create,i=this._elementFactory,r=this._spaceTool,o=this._lassoTool,a=this._handTool,s=this._globalConnect,p=this._translate;function l(e,t,r,o,a){function s(t){var r=i.createShape(q({type:e},a));a&&(Pr(r).isExpanded=a.isExpanded);n.start(t,r)}var l=e.replace(/^bpmn:/,"");return{group:t,className:r,title:o||p("Create {type}",{type:l}),action:{dragstart:s,click:s}}}function c(e){var t=i.createShape({type:"bpmn:SubProcess",x:0,y:0,isExpanded:!0}),r=i.createShape({type:"bpmn:StartEvent",x:40,y:82,parent:t});n.start(e,[t,r],{hints:{autoSelect:[t]}})}function u(e){n.start(e,i.createParticipantShape())}return q(t,{"hand-tool":{group:"tools",className:"bpmn-icon-hand-tool",title:p("Activate the hand tool"),action:{click:function(e){a.activateHand(e)}}},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:p("Activate the lasso tool"),action:{click:function(e){o.activateSelection(e)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:p("Activate the create/remove space tool"),action:{click:function(e){r.activateSelection(e)}}},"global-connect-tool":{group:"tools",className:"bpmn-icon-connection-multi",title:p("Activate the global connect tool"),action:{click:function(e){s.start(e)}}},"tool-separator":{group:"tools",separator:!0},"create.start-event":l("bpmn:StartEvent","event","bpmn-icon-start-event-none",p("Create StartEvent")),"create.intermediate-event":l("bpmn:IntermediateThrowEvent","event","bpmn-icon-intermediate-event-none",p("Create Intermediate/Boundary Event")),"create.end-event":l("bpmn:EndEvent","event","bpmn-icon-end-event-none",p("Create EndEvent")),"create.exclusive-gateway":l("bpmn:ExclusiveGateway","gateway","bpmn-icon-gateway-none",p("Create Gateway")),"create.task":l("bpmn:Task","activity","bpmn-icon-task",p("Create Task")),"create.data-object":l("bpmn:DataObjectReference","data-object","bpmn-icon-data-object",p("Create DataObjectReference")),"create.data-store":l("bpmn:DataStoreReference","data-store","bpmn-icon-data-store",p("Create DataStoreReference")),"create.subprocess-expanded":{group:"activity",className:"bpmn-icon-subprocess-expanded",title:p("Create expanded SubProcess"),action:{dragstart:c,click:c}},"create.participant-expanded":{group:"collaboration",className:"bpmn-icon-participant",title:p("Create Pool/Participant"),action:{dragstart:u,click:u}},"create.group":l("bpmn:Group","artifact","bpmn-icon-group",p("Create Group"))}),t};var fg={__depends__:[eg,ml,qm,rg,lg,hg,so],__init__:["paletteProvider"],paletteProvider:["type",mg]};function yg(e,t,n,i,r){Xo.call(this,e),e.on("shape.move.move",250,(function(e){var o=e.context,a=o.canExecute;o.visualReplacements||(o.visualReplacements={}),a&&a.replacements?function(e){_(e.canExecute.replacements,(function(o){var a=o.oldElementId,s={type:o.newElementType};if(!e.visualReplacements[a]){var p=t.get(a);q(s,{x:p.x,y:p.y});var l=n.createShape(s);i.addShape(l,p.parent);var c=ve('[data-element-id="'+Qo(p.id)+'"]',e.dragGroup);c&&Oe(c,{display:"none"});var u=r.addDragger(l,e.dragGroup);e.visualReplacements[a]=u,i.removeShape(l)}}))}(o):function(e){var t=e.visualReplacements;_(t,(function(n,i){var r=ve('[data-element-id="'+Qo(i)+'"]',e.dragGroup);r&&Oe(r,{display:"inline"}),n.remove(),t[i]&&delete t[i]}))}(o)}))}yg.$inject=["eventBus","elementRegistry","elementFactory","canvas","previewSupport"],i(yg,Xo);var gg={__depends__:[il],__init__:["bpmnReplacePreview"],bpmnReplacePreview:["type",yg]},vg=40,bg=["x","y"],xg=Math.abs;function wg(e){e.on(["connect.hover","connect.move","connect.end"],1250,(function(e){var t=e.context,n=t.canExecute,i=t.start,r=t.hover,o=t.source,a=t.target;e.originalEvent&&ba(e.originalEvent)||(t.initialConnectionStart||(t.initialConnectionStart=t.connectionStart),n&&r&&function(e,t,n){bg.forEach((function(i){var r=Pg(i,t);e[i]<t[i]+n?Ep(e,i,t[i]+n):e[i]>t[i]+r-n&&Ep(e,i,t[i]+r-n)}))}(e,r,function(e){return wr(e,"bpmn:Task")?10:20}(r)),r&&function(e,t){return S(t,(function(t){return Eg(e,t)}))}(n,["bpmn:Association","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:SequenceFlow"])?(t.connectionStart=wp(i),_r(r,["bpmn:Event","bpmn:Gateway"])&&_g(e,wp(r)),_r(r,["bpmn:Task","bpmn:SubProcess"])&&function(e,t){var n=wp(t);bg.forEach((function(i){(function(e,t,n){return e[n]>t[n]+20&&e[n]<t[n]+Pg(n,t)-20})(e,t,i)&&Ep(e,i,n[i])}))}(e,r),wr(o,"bpmn:BoundaryEvent")&&a===o.host&&function(e){var t=e.context,n=t.source,i=t.target;if(function(e){var t=e.hover,n=e.source;return t&&n&&t===n}(t))return;var r=wp(n),o=yn(r,i,-10),a=[];/top|bottom/.test(o)&&a.push("x");/left|right/.test(o)&&a.push("y");a.forEach((function(t){var n,i=e[t];xg(i-r[t])<vg&&(n=i>r[t]?r[t]+vg:r[t]-vg,Ep(e,t,n))}))}(e)):Eg(n,"bpmn:MessageFlow")?(wr(i,"bpmn:Event")&&(t.connectionStart=wp(i)),wr(r,"bpmn:Event")&&_g(e,wp(r))):t.connectionStart=t.initialConnectionStart)}))}function _g(e,t){Ep(e,"x",t.x),Ep(e,"y",t.y)}function Eg(e,t){return e&&e.type===t}function Pg(e,t){return"x"===e?t.width:t.height}function Og(){this._targets={},this._snapOrigins={},this._snapLocations=[],this._defaultSnaps={}}function Sg(e){this._snapValues={}}wg.$inject=["eventBus"],Og.prototype.getSnapOrigin=function(e){return this._snapOrigins[e]},Og.prototype.setSnapOrigin=function(e,t){this._snapOrigins[e]=t,-1===this._snapLocations.indexOf(e)&&this._snapLocations.push(e)},Og.prototype.addDefaultSnap=function(e,t){var n=this._defaultSnaps[e];n||(n=this._defaultSnaps[e]=[]),n.push(t)},Og.prototype.getSnapLocations=function(){return this._snapLocations},Og.prototype.setSnapLocations=function(e){this._snapLocations=e},Og.prototype.pointsForTarget=function(e){var t=e.id||e,n=this._targets[t];return n||(n=this._targets[t]=new Sg).initDefaults(this._defaultSnaps),n},Sg.prototype.add=function(e,t){var n=this._snapValues[e];n||(n=this._snapValues[e]={x:[],y:[]}),-1===n.x.indexOf(t.x)&&n.x.push(t.x),-1===n.y.indexOf(t.y)&&n.y.push(t.y)},Sg.prototype.snap=function(e,t,n,i){var r=this._snapValues[t];return r&&function(e,t,n){var i,r;for(n=void 0===n?10:n,i=0;i<t.length;i++)if(r=t[i],gp(r-e)<=n)return r}(e[n],r[n],i)},Sg.prototype.initDefaults=function(e){var t=this;_(e||{},(function(e,n){_(e,(function(e){t.add(n,e)}))}))};function kg(e,t,n){var i=this;this._elementRegistry=e,t.on(["create.start","shape.move.start"],(function(e){i.initSnap(e)})),t.on(["create.move","create.end","shape.move.move","shape.move.end"],1250,(function(e){var t=e.context,r=t.shape,o=t.snapContext,a=t.target;if((!e.originalEvent||!ba(e.originalEvent))&&!_p(e)&&a){var s=o.pointsForTarget(a);s.initialized||((s=i.addSnapTargetPoints(s,r,a)).initialized=!0),n.snap(e,s)}})),t.on(["create.cleanup","shape.move.cleanup"],(function(){n.hide()}))}function Cg(e){return!!e.labelTarget}kg.$inject=["elementRegistry","eventBus","snapping"],kg.prototype.initSnap=function(e){var t,n=this._elementRegistry,i=e.context,r=i.shape,o=i.snapContext;o||(o=i.snapContext=new Og);var a=(t=n.get(r.id)?wp(r,e):{x:e.x+wp(r).x,y:e.y+wp(r).y}).x-r.width/2,s=t.y-r.height/2,p=t.x+r.width/2,l=t.y+r.height/2;return o.setSnapOrigin("mid",{x:t.x-e.x,y:t.y-e.y}),Cg(r)||(o.setSnapOrigin("top-left",{x:a-e.x,y:s-e.y}),o.setSnapOrigin("bottom-right",{x:p-e.x,y:l-e.y})),o},kg.prototype.addSnapTargetPoints=function(e,t,n){return _(this.getSnapTargets(t,n),(function(n){if(Cg(n))Cg(t)&&e.add("mid",wp(n));else if(n.waypoints){if(n.waypoints.length<3)return;_(n.waypoints.slice(1,-1),(function(t){e.add("mid",t)}))}else{e.add("mid",wp(n))}})),m(t.x)&&m(t.y)?(this._elementRegistry.get(t.id)&&e.add("mid",wp(t)),e):e},kg.prototype.getSnapTargets=function(e,t){return Pp(t).filter((function(e){return!e.hidden}))};function Mg(e,t){t.invoke(kg,this),e.on(["create.move","create.end"],1500,Tg),e.on(["create.move","create.end","shape.move.move","shape.move.end"],1500,(function(e){var t=e.context,n=t.canExecute,i=t.target;n&&("attach"===n||n.attach)&&!_p(e)&&function(e,t){var n,i=hn(t),r=Ph(e,t),o=e.context.shape;n=o.parent?{x:0,y:0}:fn(o);/top/.test(r)?Ep(e,"y",i.top-n.y):/bottom/.test(r)&&Ep(e,"y",i.bottom-n.y);/left/.test(r)?Ep(e,"x",i.left-n.x):/right/.test(r)&&Ep(e,"x",i.right-n.x)}(e,i)}))}function Tg(e){var t=e.context.createConstraints;if(t){var n=t.top,i=t.right,r=t.bottom,o=t.left;(o&&o>=e.x||i&&i<=e.x)&&Ep(e,"x",e.x),(n&&n>=e.y||r&&r<=e.y)&&Ep(e,"y",e.y)}}function Ag(e,t){return-1!==e.indexOf(t)}function Rg(e,t,n){return t?{x:e.x-n.x,y:e.y-n.y}:{x:e.x,y:e.y}}i(Mg,kg),Mg.$inject=["eventBus","injector"],Mg.prototype.initSnap=function(e){var t=kg.prototype.initSnap.call(this,e),n=e.shape,i=!!this._elementRegistry.get(n.id);return _(n.outgoing,(function(n){var r=n.waypoints[0];r=r.original||r,t.setSnapOrigin(n.id+"-docking",Rg(r,i,e))})),_(n.incoming,(function(n){var r=n.waypoints[n.waypoints.length-1];r=r.original||r,t.setSnapOrigin(n.id+"-docking",Rg(r,i,e))})),wr(n,"bpmn:Participant")&&t.setSnapLocations(["top-left","bottom-right","mid"]),t},Mg.prototype.addSnapTargetPoints=function(e,t,n){kg.prototype.addSnapTargetPoints.call(this,e,t,n);var i=this.getSnapTargets(t,n);_(i,(function(n){var i;(function(e){if(wr(e,"bpmn:SubProcess")&&Nr(e))return!0;return wr(e,"bpmn:Participant")}(n)||(i="bpmn:TextAnnotation",[t,n].every((function(e){return wr(e,i)}))))&&(e.add("top-left",bp(n)),e.add("bottom-right",xp(n)))}));var r=this._elementRegistry;return _(t.incoming,(function(n){if(r.get(t.id)){Ag(i,n.source)||e.add("mid",fn(n.source));var o=n.waypoints[0];e.add(n.id+"-docking",o.original||o)}})),_(t.outgoing,(function(n){if(r.get(t.id)){Ag(i,n.target)||e.add("mid",fn(n.target));var o=n.waypoints[n.waypoints.length-1];e.add(n.id+"-docking",o.original||o)}})),wr(n,"bpmn:SequenceFlow")&&(e=this.addSnapTargetPoints(e,t,n.parent)),e},Mg.prototype.getSnapTargets=function(e,t){return kg.prototype.getSnapTargets.call(this,e,t).filter((function(e){return!wr(e,"bpmn:Lane")}))};function zg(e,t){var n=this;e.on(["resize.start"],(function(e){n.initSnap(e)})),e.on(["resize.move","resize.end"],1250,(function(e){var i=e.context,r=i.shape,o=r.parent,a=i.direction,s=i.snapContext;if(!(e.originalEvent&&ba(e.originalEvent)||_p(e))){var p=s.pointsForTarget(o);p.initialized||((p=n.addSnapTargetPoints(p,r,o,a)).initialized=!0),function(e){return"n"===e||"s"===e}(a)&&Ep(e,"x",e.x),function(e){return"e"===e||"w"===e}(a)&&Ep(e,"y",e.y),t.snap(e,p)}})),e.on(["resize.cleanup"],(function(){t.hide()}))}function Dg(e,t){var n=fn(e),i=hn(e),r={x:n.x,y:n.y};return-1!==t.indexOf("n")?r.y=i.top:-1!==t.indexOf("s")&&(r.y=i.bottom),-1!==t.indexOf("e")?r.x=i.right:-1!==t.indexOf("w")&&(r.x=i.left),r}zg.prototype.initSnap=function(e){var t=e.context,n=t.shape,i=t.direction,r=t.snapContext;r||(r=t.snapContext=new Og);var o=Dg(n,i);return r.setSnapOrigin("corner",{x:o.x-e.x,y:o.y-e.y}),r},zg.prototype.addSnapTargetPoints=function(e,t,n,i){return _(this.getSnapTargets(t,n),(function(t){e.add("corner",xp(t)),e.add("corner",bp(t))})),e.add("corner",Dg(t,i)),e},zg.$inject=["eventBus","snapping"],zg.prototype.getSnapTargets=function(e,t){return Pp(t).filter((function(t){return!(n=t,i=e,n.host===i||function(e){return!!e.waypoints}(t)||function(e){return!!e.hidden}(t)||function(e){return!!e.labelTarget}(t));var n,i}))};function jg(e){this._canvas=e,this._asyncHide=$(F(this.hide,this),1e3)}jg.$inject=["canvas"],jg.prototype.snap=function(e,t){var n=e.context.snapContext,i=n.getSnapLocations(),r={x:_p(e,"x"),y:_p(e,"y")};_(i,(function(i){var o=n.getSnapOrigin(i),a={x:e.x+o.x,y:e.y+o.y};if(_(["x","y"],(function(e){var n;r[e]||void 0!==(n=t.snap(a,i,e,7))&&(r[e]={value:n,originValue:n-o[e]})})),r.x&&r.y)return!1})),this.showSnapLine("vertical",r.x&&r.x.value),this.showSnapLine("horizontal",r.y&&r.y.value),_(["x","y"],(function(t){var n=r[t];h(n)&&Ep(e,t,n.originValue)}))},jg.prototype._createLine=function(e){var t=this._canvas.getLayer("snap"),n=Le("path");return Oe(n,{d:"M0,0 L0,0"}),Te(n).add("djs-snap-line"),_e(t,n),{update:function(t){m(t)?Oe(n,"horizontal"===e?{d:"M-100000,"+t+" L+100000,"+t,display:""}:{d:"M "+t+",-100000 L "+t+", +100000",display:""}):Oe(n,{display:"none"})}}},jg.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}},jg.prototype.showSnapLine=function(e,t){var n=this.getSnapLine(e);n&&n.update(t),this._asyncHide()},jg.prototype.getSnapLine=function(e){return this._snapLines||this._createSnapLines(),this._snapLines[e]},jg.prototype.hide=function(){_(this._snapLines,(function(e){e.update()}))};var Bg={__depends__:[{__init__:["createMoveSnapping","resizeSnapping","snapping"],createMoveSnapping:["type",kg],resizeSnapping:["type",zg],snapping:["type",jg]}],__init__:["connectSnapping","createMoveSnapping"],connectSnapping:["type",wg],createMoveSnapping:["type",Mg]};function Ng(e,t,n,i){this._open=!1,this._results=[],this._eventMaps=[],this._canvas=e,this._eventBus=t,this._overlays=n,this._selection=i,this._container=fe(Ng.BOX_HTML),this._searchInput=ve(Ng.INPUT_SELECTOR,this._container),this._resultsContainer=ve(Ng.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),t.on(["canvas.destroy","diagram.destroy"],this.close,this)}function Lg(e,t,n){var i=function(e){var t="";return e.forEach((function(e){e.matched?t+='<strong class="'+Ng.RESULT_HIGHLIGHT_CLASS+'">'+ta(e.matched)+"</strong>":t+=ta(e.normal)})),""!==t?t:null}(t),r=fe(n);r.innerHTML=i,e.appendChild(r)}Ng.$inject=["canvas","eventBus","overlays","selection"],Ng.prototype._bindEvents=function(){var e=this;function t(t,n,i,r){e._eventMaps.push({el:t,type:i,listener:me.bind(t,n,i,r)})}t(document,"html","click",(function(t){e.close()})),t(this._container,Ng.INPUT_SELECTOR,"click",(function(e){e.stopPropagation(),e.delegateTarget.focus()})),t(this._container,Ng.RESULT_SELECTOR,"mouseover",(function(t){t.stopPropagation(),e._scrollToNode(t.delegateTarget),e._preselect(t.delegateTarget)})),t(this._container,Ng.RESULT_SELECTOR,"click",(function(t){t.stopPropagation(),e._select(t.delegateTarget)})),t(this._container,Ng.INPUT_SELECTOR,"keydown",(function(e){38===e.keyCode&&e.preventDefault(),40===e.keyCode&&e.preventDefault()})),t(this._container,Ng.INPUT_SELECTOR,"keyup",(function(t){if(27===t.keyCode)return e.close();if(13===t.keyCode){var n=e._getCurrentResult();return n?e._select(n):e.close()}return 38===t.keyCode?e._scrollToDirection(!0):40===t.keyCode?e._scrollToDirection():void(37!==t.keyCode&&39!==t.keyCode&&e._search(t.delegateTarget.value))}))},Ng.prototype._unbindEvents=function(){this._eventMaps.forEach((function(e){me.unbind(e.el,e.type,e.listener)}))},Ng.prototype._search=function(e){var t=this;if(this._clearResults(),e&&""!==e){var n=this._searchProvider.find(e);if(n.length){n.forEach((function(e){var n=e.element.id,i=t._createResultNode(e,n);t._results[n]={element:e.element,node:i}}));var i=ve(Ng.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(i),this._preselect(i)}}},Ng.prototype._scrollToDirection=function(e){var t=this._getCurrentResult();if(t){var n=e?t.previousElementSibling:t.nextElementSibling;n&&(this._scrollToNode(n),this._preselect(n))}},Ng.prototype._scrollToNode=function(e){if(e&&e!==this._getCurrentResult()){var t=e.offsetTop,n=this._resultsContainer.scrollTop,i=t-this._resultsContainer.clientHeight+e.clientHeight;t<n?this._resultsContainer.scrollTop=t:n<i&&(this._resultsContainer.scrollTop=i)}},Ng.prototype._clearResults=function(){ie(this._resultsContainer),this._results=[],this._resetOverlay(),this._eventBus.fire("searchPad.cleared")},Ng.prototype._getCurrentResult=function(){return ve(Ng.RESULT_SELECTED_SELECTOR,this._resultsContainer)},Ng.prototype._createResultNode=function(e,t){var n=fe(Ng.RESULT_HTML);return e.primaryTokens.length>0&&Lg(n,e.primaryTokens,Ng.RESULT_PRIMARY_HTML),Lg(n,e.secondaryTokens,Ng.RESULT_SECONDARY_HTML),X(n,Ng.RESULT_ID_ATTRIBUTE,t),this._resultsContainer.appendChild(n),n},Ng.prototype.registerProvider=function(e){this._searchProvider=e},Ng.prototype.open=function(){if(!this._searchProvider)throw new Error("no search provider registered");this.isOpen()||(this._bindEvents(),this._open=!0,te(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))},Ng.prototype.close=function(){this.isOpen()&&(this._unbindEvents(),this._open=!1,te(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._resetOverlay(),this._eventBus.fire("searchPad.closed"))},Ng.prototype.toggle=function(){this.isOpen()?this.close():this.open()},Ng.prototype.isOpen=function(){return this._open},Ng.prototype._preselect=function(e){var t=this._getCurrentResult();if(e!==t){t&&te(t).remove(Ng.RESULT_SELECTED_CLASS);var n=X(e,Ng.RESULT_ID_ATTRIBUTE),i=this._results[n].element;te(e).add(Ng.RESULT_SELECTED_CLASS),this._resetOverlay(i),this._canvas.scrollToElement(i,{top:400}),this._selection.select(i),this._eventBus.fire("searchPad.preselected",i)}},Ng.prototype._select=function(e){var t=X(e,Ng.RESULT_ID_ATTRIBUTE),n=this._results[t].element;this.close(),this._resetOverlay(),this._canvas.scrollToElement(n,{top:400}),this._selection.select(n),this._eventBus.fire("searchPad.selected",n)},Ng.prototype._resetOverlay=function(e){if(this._overlayId&&this._overlays.remove(this._overlayId),e){var t=function(e){var t=6,n=e.width+2*t,i=e.height+2*t,r=["width: "+n+"px","height: "+i+"px"].join("; ");return{position:{bottom:i-t,right:n-t},show:!0,html:'<div style="'+r+'" class="'+Ng.OVERLAY_CLASS+'"></div>'}}(yt(e));this._overlayId=this._overlays.add(e,t)}},Ng.CONTAINER_SELECTOR=".djs-search-container",Ng.INPUT_SELECTOR=".djs-search-input input",Ng.RESULTS_CONTAINER_SELECTOR=".djs-search-results",Ng.RESULT_SELECTOR=".djs-search-result",Ng.RESULT_SELECTED_CLASS="djs-search-result-selected",Ng.RESULT_SELECTED_SELECTOR="."+Ng.RESULT_SELECTED_CLASS,Ng.RESULT_ID_ATTRIBUTE="data-result-id",Ng.RESULT_HIGHLIGHT_CLASS="djs-search-highlight",Ng.OVERLAY_CLASS="djs-search-overlay",Ng.BOX_HTML='<div class="djs-search-container djs-draggable djs-scrollable"><div class="djs-search-input"><input type="text"/></div><div class="djs-search-results"></div></div>',Ng.RESULT_HTML='<div class="djs-search-result"></div>',Ng.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>',Ng.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';var Ig={__depends__:[Wo,$o],searchPad:["type",Ng]};function $g(e,t,n){this._elementRegistry=e,this._canvas=n,t.registerProvider(this)}function Fg(e){return w(e,(function(e){return!!e.matched})).length>0}function Vg(e,t){var n=[],i=e;if(!e)return n;e=e.toLowerCase(),t=t.toLowerCase();var r=e.indexOf(t);return r>-1?(0!==r&&n.push({normal:i.substr(0,r)}),n.push({matched:i.substr(r,t.length)}),t.length+r<e.length&&n.push({normal:i.substr(t.length+r,e.length)})):n.push({normal:i}),n}$g.$inject=["elementRegistry","searchPad","canvas"],$g.prototype.find=function(e){var t=this._canvas.getRootElement(),n=this._elementRegistry.filter((function(e){return!e.labelTarget}));return n=w(n,(function(e){return e!==t})),n=D(n=w(n=k(n,(function(t){return{primaryTokens:Vg(Vr(t),e),secondaryTokens:Vg(t.id,e),element:t}})),(function(e){return Fg(e.primaryTokens)||Fg(e.secondaryTokens)})),(function(e){return Vr(e.element)+e.element.id}))};var Hg={__depends__:[Ig],__init__:["bpmnSearch"],bpmnSearch:["type",$g]};function qg(e){Br.call(this,e)}i(qg,Br),qg.Viewer=va,qg.NavigatedViewer=Ka,qg.prototype.createDiagram=gr((function(){return this.importXML('<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://bpmn.io/schema/bpmn" id="Definitions_1"><bpmn:process id="Process_1" isExecutable="false"><bpmn:startEvent id="StartEvent_1"/></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"><dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>')})),qg.prototype._interactionModules=[za,Fa,ns,Wa],qg.prototype._modelingModules=[ps,ws,Ns,ks,Cp,Dp,Bp,Pc,jl,ml,Mc,jc,Yc,Zc,Qc,su,Su,Ly,Wy,fg,gg,vu,Bg,Hg],qg.prototype._modules=[].concat(va.prototype._modules,qg.prototype._interactionModules,qg.prototype._modelingModules);var Ug={min:.2,max:4};function Gg(e,t,n,i,r){var o=this;function a(e){o._state._svgClientRect&&!Zg(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),Kg(Wg({x:e.clientX-o._state._svgClientRect.left,y:e.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox),o._canvas),o._update()}function s(e){return function(t){o._state._svgClientRect&&!Zg(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),e&&a(t);var n=Wg({x:t.clientX-o._state._svgClientRect.left,y:t.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox),r=i.viewbox(),s=function(e,t){var n={x:t.x+t.width/2,y:t.y+t.height/2};return{x:e.x-n.x,y:e.y-n.y}}(n,r),c=o._viewportDom.getBoundingClientRect(),u={x:t.clientX-c.left+1,y:t.clientY-c.top+1};q(o._state,{cachedViewbox:r,initialDragPosition:{x:t.clientX,y:t.clientY},isDragging:!0,offsetViewport:s,offsetViewportDom:u,viewportClientRect:o._viewport.getBoundingClientRect(),parentClientRect:o._parent.getBoundingClientRect()}),ue.bind(document,"mousemove",p),ue.bind(document,"mouseup",l)}}function p(e){if(o._state.isDragging){o._state._svgClientRect&&!Zg(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect());var t=o._state.offsetViewportDom,n=o._state.viewportClientRect,i=o._state.parentClientRect;q(o._viewportDom.style,{top:e.clientY-t.y-i.top+"px",left:e.clientX-t.x-i.left+"px"});var r=Qg(i,{top:e.clientY-t.y-i.top,left:e.clientX-t.x-i.left,width:n.width,height:n.height});q(o._overlay.style,{clipPath:r});var a=Wg({x:e.clientX-o._state._svgClientRect.left,y:e.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox);Kg({x:a.x-o._state.offsetViewport.x,y:a.y-o._state.offsetViewport.y},o._canvas)}}function l(e){o._state.isDragging&&(o._state.initialDragPosition.x===e.clientX&&o._state.initialDragPosition.y===e.clientY&&a(e),o._update(),q(o._state,{cachedViewbox:null,initialDragPosition:null,isDragging:!1,offsetViewport:null,offsetViewportDom:null}),ue.unbind(document,"mousemove",p),ue.unbind(document,"mouseup",l))}this._canvas=i,this._elementRegistry=r,this._eventBus=n,this._injector=t,this._state={isOpen:void 0,isDragging:!1,initialDragPosition:null,offsetViewport:null,cachedViewbox:null,dragger:null,svgClientRect:null,parentClientRect:null,zoomDelta:0},this._init(),this.toggle(e&&e.open||!1),ue.bind(this._svg,"click",(function(e){e.preventDefault(),e.stopPropagation(),a(e)})),ue.bind(this._viewportDom,"mousedown",s(!1)),ue.bind(this._svg,"mousedown",s(!0)),ue.bind(this._parent,"wheel",(function(e){if(e.preventDefault(),e.stopPropagation(),e.ctrlKey&&(o._state._svgClientRect&&!Zg(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),t=e,n=o._state._svgClientRect,t.x>n.left&&t.x<n.left+n.width&&t.y>n.top&&t.y<n.top+n.height)){var t,n,r,a,s,p,l=0===e.deltaMode?.02:.32,c=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*Jg(e.deltaY)*-l;if(o._state.zoomDelta+=c,Math.abs(o._state.zoomDelta)>.1){var u=c>0?1:-1,d=Math.log(i.zoom())/Math.log(10),h=(r=Ug,a=20,s=Math.log(r.min)/Math.log(10),p=Math.log(r.max)/Math.log(10),(Math.abs(s)+Math.abs(p))/a),m=Math.round(d/h)*h;m+=h*u;var f=Math.pow(10,m);i.zoom(function(e,t){return Math.max(e.min,Math.min(e.max,t))}(Ug,f),y),o._state.zoomDelta=0;var y=Wg({x:e.clientX-o._state._svgClientRect.left,y:e.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox);Kg(y,o._canvas),o._update()}}})),ue.bind(this._toggle,"click",(function(e){e.preventDefault(),e.stopPropagation(),o.toggle()})),n.on(["shape.added","connection.added"],(function(e){var t=e.element;o._addElement(t),o._update()})),n.on(["shape.removed","connection.removed"],(function(e){var t=e.element;o._removeElement(t),o._update()})),n.on("elements.changed",250,(function(e){e.elements.forEach((function(e){o._updateElement(e)})),o._update()})),n.on("element.updateId",(function(e){var t=e.element,n=e.newId;o._updateElementId(t,n)})),n.on("canvas.viewbox.changed",(function(){o._state.isDragging||o._update()})),n.on("canvas.resized",(function(){document.body.contains(o._parent)&&(o._state.isDragging||o._update(),o._state._svgClientRect=o._svg.getBoundingClientRect())})),n.on("root.set",(function(e){o._clear(),e.element.children.forEach((function(e){o._addElement(e)})),o._update()}))}function Wg(e,t,n){var i=t.getBoundingClientRect(),r=function(e,t){var n=e.width/e.height,i=q({},{x:e.x,y:e.y,width:e.width,height:e.height});if(n>t){var r=i.width*(1/t);q(i,{y:i.y-(r-i.height)/2,height:r})}else if(n<t){var o=i.height*t;q(i,{x:i.x-(o-i.width)/2,width:o})}return i}(n,i.width/i.height);return{x:Yg(e.x,0,i.width,r.x,r.x+r.width),y:Yg(e.y,0,i.height,r.y,r.y+r.height)}}function Kg(e,t){var n=t.viewbox(),i=n.width,r=n.height;t.viewbox({x:e.x-i/2,y:e.y-r/2,width:i,height:r})}function Yg(e,t,n,i,r){return(e-t)*(r-i)/(n-t)+i}function Xg(e,t,n){var i=function(e){var t=ve(".children",e);t||_e(e,t=Le("g",{class:"children"}));return t}(t),r=[].slice.call(i.childNodes)[n];r?t.insertBefore(e,r.nextSibling):t.appendChild(e)}function Zg(e){return 0===e.width&&0===e.height}Gg.$inject=["config.minimap","injector","eventBus","canvas","elementRegistry"],Gg.prototype._init=function(){var e=this._canvas.getContainer(),t=this._parent=document.createElement("div");te(t).add("djs-minimap"),e.appendChild(t);var n=this._toggle=document.createElement("div");te(n).add("toggle"),t.appendChild(n);var i=this._map=document.createElement("div");te(i).add("map"),t.appendChild(i);var r=this._svg=Le("svg");Oe(r,{width:"100%",height:"100%"}),_e(i,r),_e(r,this._elementsGroup=Le("g"));var o=this._viewportGroup=Le("g");_e(r,o);var a=this._viewport=Le("rect");Te(a).add("viewport"),_e(o,a),ue.bind(t,"mousedown",(function(e){e.stopPropagation()}));var s=this._viewportDom=document.createElement("div");te(s).add("viewport-dom"),this._parent.appendChild(s);var p=this._overlay=document.createElement("div");te(p).add("overlay"),this._parent.appendChild(p)},Gg.prototype._update=function(){var e=this._canvas.viewbox(),t=e.inner,n=e.outer;if(tv(e)){var i,r,o,a,s=n.width-t.width,p=n.height-t.height;t.width<n.width?(i=t.x-s/2,o=n.width,t.x+t.width<n.width&&(i=Math.min(0,t.x))):(i=t.x,o=t.width),t.height<n.height?(r=t.y-p/2,a=n.height,t.y+t.height<n.height&&(r=Math.min(0,t.y))):(r=t.y,a=t.height),i-=50,r-=50,o+=100,a+=100,this._lastViewbox={x:i,y:r,width:o,height:a},Oe(this._svg,{viewBox:i+", "+r+", "+o+", "+a}),Oe(this._viewport,{x:e.x,y:e.y,width:e.width,height:e.height});var l=this._state._parentClientRect=this._parent.getBoundingClientRect(),c=this._viewport.getBoundingClientRect(),u={top:c.top-l.top,left:c.left-l.left,width:c.width,height:c.height};q(this._viewportDom.style,{top:u.top+"px",left:u.left+"px",width:u.width+"px",height:u.height+"px"});var d=Qg(l,u);q(this._overlay.style,{clipPath:d})}},Gg.prototype.open=function(){q(this._state,{isOpen:!0}),te(this._parent).add("open");var e=this._injector.get("translate",!1)||function(e){return e};X(this._toggle,"title",e("Close minimap")),this._update(),this._eventBus.fire("minimap.toggle",{open:!0})},Gg.prototype.close=function(){q(this._state,{isOpen:!1}),te(this._parent).remove("open");var e=this._injector.get("translate",!1)||function(e){return e};X(this._toggle,"title",e("Open minimap")),this._eventBus.fire("minimap.toggle",{open:!1})},Gg.prototype.toggle=function(e){var t=this.isOpen();void 0===e&&(e=!t),e!=t&&(e?this.open():this.close())},Gg.prototype.isOpen=function(){return this._state.isOpen},Gg.prototype._updateElement=function(e){try{void 0!==e.parent&&null!==e.parent&&(this._removeElement(e),this._addElement(e))}catch(e){console.warn("Minimap#_updateElement errored",e)}},Gg.prototype._updateElementId=function(e,t){try{var n=ve("#"+Qo(e.id),this._elementsGroup);n&&(n.id=t)}catch(e){console.warn("Minimap#_updateElementId errored",e)}},Gg.prototype._addElement=function(e){var t=this;if(this._removeElement(e),this._canvas.findRoot(e)===this._canvas.getRootElement()){var n,i,r,o=this._createElement(e),a=ve("#"+Qo(e.parent.id),this._elementsGroup);if(o){var s=function(e,t){var n=ve(".djs-children",t.parentNode);if(!n)return;var i=[].slice.call(n.childNodes),r=-1;return i.forEach((function(t,n){ve(".djs-element",t)===e&&(r=n)})),r}(this._elementRegistry.getGraphics(e),this._elementRegistry.getGraphics(e.parent));return"undefined"!==s&&a?a.childNodes.length>s?Xg(o,a,s):Xg(o,a,a.childNodes.length-1):this._elementsGroup.appendChild(o),!function(e){return e.waypoints}(e)?(i=e.x,r=e.y,a&&(i-=(n=e.parent).x,r-=n.y),Oe(o,{transform:"translate("+i+" "+r+")"})):(i=0,r=0,void 0!==(n=e.parent).x&&void 0!==n.y&&(i=-n.x,r=-n.y),Oe(o,{transform:"translate("+i+" "+r+")"})),e.children&&e.children.length&&e.children.forEach((function(e){t._addElement(e)})),o}}},Gg.prototype._removeElement=function(e){var t=this._svg.getElementById(e.id);t&&Re(t)},Gg.prototype._createElement=function(e){var t,n=this._elementRegistry.getGraphics(e);if(n&&(t=function(e){return e.childNodes[0]}(n))){var i=De(t);return Oe(i,{id:e.id}),i}},Gg.prototype._clear=function(){ze(this._elementsGroup)};var Jg=Math.sign||function(e){return e>=0?1:-1};function Qg(e,t){return"polygon("+[ev(t.left,t.top),ev(t.left+t.width,t.top),ev(t.left+t.width,t.top+t.height),ev(t.left,t.top+t.height),ev(t.left,e.height),ev(e.width,e.height),ev(e.width,0),ev(0,0),ev(0,e.height),ev(t.left,e.height)].join(", ")+")"}function ev(e,t){return e+"px "+t+"px"}function tv(e){return O(e,(function(e){return h(e)?tv(e):m(e)&&isFinite(e)}))}var nv={__init__:["minimap"],minimap:["type",Gg]};function iv(e,t){var n,i,r=(e=e||{}).borderColor||"rgba(0,0,0,0.1)",o=e.crossColor||"#CCC",a=-1;_e(t.getLayer("djs-origin",-1),n=av("g",{"pointer-events":"none"})),!1!==e.showBorder&&_e(n,av("path",{class:ov("border"),d:rv(["M",-22,a,"H",-1e3,"M",22,a,"H",6e3,"M",a,-22,"V",-1e3,"M",a,22,"V",3e3]),fill:"none",stroke:r,"stroke-width":"2px","stroke-dasharray":"6, 6","shape-rendering":"crispedges"})),_e(n,av("path",{d:rv(["M",-15,a,"H",15,"M",a,-15,"V",15]),class:ov("cross"),fill:"none",stroke:o,"stroke-width":"2px","stroke-linecap":"round"})),(i=av("text",{x:-40,y:-10,fill:o,class:ov("label")})).textContent="(0, 0)",_e(n,i)}function rv(e){return e.join(" ")}function ov(e){return"djs-origin-"+e}function av(e,t){var n=Le(e);return Oe(n,t),n}iv.$inject=["config.origin","canvas"];var sv={__init__:[iv]},pv={offset:{x:150,y:75},tolerance:50,alignOnSave:!0};function lv(e,t,n,i,r,o){function a(e,n){var i=n.offset,r=n.tolerance,o={};return["x","y"].forEach((function(n){var a=-e[n]+i[n],s=t.get("gridSnapping",!1);s&&(a=function(e,t,n){n||(n="round");return Math[n](e/t)*t}(a,s.getGridSpacing())),o[n]=Math.abs(a)<r?0:a})),o}function s(){var t=r.viewbox().inner,n=r.getRootElement().children;if(n.length){var o=a(t,e);0===o.x&&0===o.y||i.execute("elements.alignToOrigin",{elements:n,delta:o})}}function p(e){return function(t){n.once("commandStack.changed",(function(){var n=t.delta,i=r.viewbox().scale;r.scroll({dx:e*n.x*i,dy:e*n.y*i})}))}}var l,c,u;e=function(e){var t=q({},pv,e||{});return m(t.offset)&&(t.offset={x:t.offset,y:t.offset}),t}(e),i.register("elements.alignToOrigin",{preExecute:function(e){var t=e.delta,n=e.elements;o.moveElements(n,t)},execute:p(-1),revert:p(1)}),e.alignOnSave&&(l=t.get("_parent",!1),c=n,((u=l&&l._eventBus)||c).on("saveXML.start",1250,s),u&&c.on("diagram.destroy",(function(){u.off("saveXML.start",s)}))),this.align=s,this.computeAdjustment=a,this._config=e}lv.$inject=["config.alignToOrigin","injector","eventBus","commandStack","canvas","modeling"];var cv={__init__:["alignToOrigin"],alignToOrigin:["type",lv]};function uv(e){function t(e){if(!e.labelTarget){var t=Er(e);wr(t,"bpmn:Participant")&&(t=t.processRef),wr(t,"bpmn:Process")&&(t.isExecutable=!!t.isExecutable)}}e.on(["shape.added","root.added"],(function(e){t(e.element)})),e.on("elements.changed",(function(e){e.elements.forEach((function(e){t(e)}))}))}uv.$inject=["eventBus"];var dv,hv,mv,fv,yv,gv={__init__:[uv]},vv={},bv=[],xv=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function wv(e,t){for(var n in t)e[n]=t[n];return e}function _v(e){var t=e.parentNode;t&&t.removeChild(e)}function Ev(e,t,n){var i,r,o,a=arguments,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>3)for(n=[n],o=3;o<arguments.length;o++)n.push(a[o]);if(null!=n&&(s.children=n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return Pv(e,s,i,r,null)}function Pv(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++dv.__v:r};return null!=dv.vnode&&dv.vnode(o),o}function Ov(e){return e.children}function Sv(e,t){this.props=e,this.context=t}function kv(e,t){if(null==t)return e.__?kv(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?kv(e):null}function Cv(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Cv(e)}}function Mv(e){(!e.__d&&(e.__d=!0)&&hv.push(e)&&!Tv.__r++||fv!==dv.debounceRendering)&&((fv=dv.debounceRendering)||mv)(Tv)}function Tv(){for(var e;Tv.__r=hv.length;)e=hv.sort((function(e,t){return e.__v.__b-t.__v.__b})),hv=[],e.some((function(e){var t,n,i,r,o,a;e.__d&&(o=(r=(t=e).__v).__e,(a=t.__P)&&(n=[],(i=wv({},r)).__v=r.__v+1,Iv(a,r,i,t.__n,void 0!==a.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?kv(r):o,r.__h),$v(n,r),r.__e!=o&&Cv(r)))}))}function Av(e,t,n,i,r,o,a,s,p,l){var c,u,d,h,m,f,y,g=i&&i.__k||bv,v=g.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(h=n.__k[c]=null==(h=t[c])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?Pv(null,h,null,null,h):Array.isArray(h)?Pv(Ov,{children:h},null,null,null):h.__b>0?Pv(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(d=g[c])||d&&h.key==d.key&&h.type===d.type)g[c]=void 0;else for(u=0;u<v;u++){if((d=g[u])&&h.key==d.key&&h.type===d.type){g[u]=void 0;break}d=null}Iv(e,h,d=d||vv,r,o,a,s,p,l),m=h.__e,(u=h.ref)&&d.ref!=u&&(y||(y=[]),d.ref&&y.push(d.ref,null,h),y.push(u,h.__c||m,h)),null!=m?(null==f&&(f=m),"function"==typeof h.type&&null!=h.__k&&h.__k===d.__k?h.__d=p=Rv(h,p,e):p=Dv(e,h,d,g,m,p),l||"option"!==n.type?"function"==typeof n.type&&(n.__d=p):e.value=""):p&&d.__e==p&&p.parentNode!=e&&(p=kv(d))}for(n.__e=f,c=v;c--;)null!=g[c]&&("function"==typeof n.type&&null!=g[c].__e&&g[c].__e==n.__d&&(n.__d=kv(i,c+1)),Hv(g[c],g[c]));if(y)for(c=0;c<y.length;c++)Vv(y[c],y[++c],y[++c])}function Rv(e,t,n){var i,r;for(i=0;i<e.__k.length;i++)(r=e.__k[i])&&(r.__=e,t="function"==typeof r.type?Rv(r,t,n):Dv(n,r,r,e.__k,r.__e,t));return t}function zv(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){zv(e,t)})):t.push(e)),t}function Dv(e,t,n,i,r,o){var a,s,p;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),a=null;else{for(s=o,p=0;(s=s.nextSibling)&&p<i.length;p+=2)if(s==r)break e;e.insertBefore(r,o),a=o}return void 0!==a?a:r.nextSibling}function jv(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||xv.test(t)?n:n+"px"}function Bv(e,t,n,i,r){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||jv(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||jv(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?Lv:Nv,o):e.removeEventListener(t,o?Lv:Nv,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function Nv(e){this.l[e.type+!1](dv.event?dv.event(e):e)}function Lv(e){this.l[e.type+!0](dv.event?dv.event(e):e)}function Iv(e,t,n,i,r,o,a,s,p){var l,c,u,d,h,m,f,y,g,v,b,x=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(p=n.__h,s=t.__e=n.__e,t.__h=null,o=[s]),(l=dv.__b)&&l(t);try{e:if("function"==typeof x){if(y=t.props,g=(l=x.contextType)&&i[l.__c],v=l?g?g.props.value:l.__:i,n.__c?f=(c=t.__c=n.__c).__=c.__E:("prototype"in x&&x.prototype.render?t.__c=c=new x(y,v):(t.__c=c=new Sv(y,v),c.constructor=x,c.render=qv),g&&g.sub(c),c.props=y,c.state||(c.state={}),c.context=v,c.__n=i,u=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=x.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=wv({},c.__s)),wv(c.__s,x.getDerivedStateFromProps(y,c.__s))),d=c.props,h=c.state,u)null==x.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==x.getDerivedStateFromProps&&y!==d&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(y,v),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(y,c.__s,v)||t.__v===n.__v){c.props=y,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),c.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),c.__h.length&&a.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(y,c.__s,v),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(d,h,m)}))}c.context=v,c.props=y,c.state=c.__s,(l=dv.__r)&&l(t),c.__d=!1,c.__v=t,c.__P=e,l=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(i=wv(wv({},i),c.getChildContext())),u||null==c.getSnapshotBeforeUpdate||(m=c.getSnapshotBeforeUpdate(d,h)),b=null!=l&&l.type===Ov&&null==l.key?l.props.children:l,Av(e,Array.isArray(b)?b:[b],t,n,i,r,o,a,s,p),c.base=t.__e,t.__h=null,c.__h.length&&a.push(c),f&&(c.__E=c.__=null),c.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Fv(n.__e,t,n,i,r,o,a,p);(l=dv.diffed)&&l(t)}catch(e){t.__v=null,(p||null!=o)&&(t.__e=s,t.__h=!!p,o[o.indexOf(s)]=null),dv.__e(e,t,n)}}function $v(e,t){dv.__c&&dv.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){dv.__e(e,t.__v)}}))}function Fv(e,t,n,i,r,o,a,s){var p,l,c,u,d=n.props,h=t.props,m=t.type,f=0;if("svg"===m&&(r=!0),null!=o)for(;f<o.length;f++)if((p=o[f])&&(p===e||(m?p.localName==m:3==p.nodeType))){e=p,o[f]=null;break}if(null==e){if(null===m)return document.createTextNode(h);e=r?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,h.is&&h),o=null,s=!1}if(null===m)d===h||s&&e.data===h||(e.data=h);else{if(o=o&&bv.slice.call(e.childNodes),l=(d=n.props||vv).dangerouslySetInnerHTML,c=h.dangerouslySetInnerHTML,!s){if(null!=o)for(d={},u=0;u<e.attributes.length;u++)d[e.attributes[u].name]=e.attributes[u].value;(c||l)&&(c&&(l&&c.__html==l.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||Bv(e,o,null,n[o],i);for(o in t)r&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||Bv(e,o,t[o],n[o],i)}(e,h,d,r,s),c)t.__k=[];else if(f=t.props.children,Av(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==m,o,a,e.firstChild,s),null!=o)for(f=o.length;f--;)null!=o[f]&&_v(o[f]);s||("value"in h&&void 0!==(f=h.value)&&(f!==e.value||"progress"===m&&!f)&&Bv(e,"value",f,d.value,!1),"checked"in h&&void 0!==(f=h.checked)&&f!==e.checked&&Bv(e,"checked",f,d.checked,!1))}return e}function Vv(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){dv.__e(e,n)}}function Hv(e,t,n){var i,r,o;if(dv.unmount&&dv.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||Vv(i,null,t)),n||"function"==typeof e.type||(n=null!=(r=e.__e)),e.__e=e.__d=void 0,null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){dv.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&Hv(i[o],t,n);null!=r&&_v(r)}function qv(e,t,n){return this.constructor(e,n)}function Uv(e,t,n){var i,r,o;dv.__&&dv.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,o=[],Iv(t,e=(!i&&n||t).__k=Ev(Ov,null,[e]),r||vv,vv,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?bv.slice.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),$v(o,e)}function Gv(e,t){var n={__c:t="__cC"+yv++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(Mv)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}dv={__e:function(e,t){for(var n,i,r;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),r=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),r=n.__d),r)return n.__E=n}catch(t){e=t}throw e},__v:0},Sv.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=wv({},this.state),"function"==typeof e&&(e=e(wv({},n),this.props)),e&&wv(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Mv(this))},Sv.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Mv(this))},Sv.prototype.render=Ov,hv=[],mv="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Tv.__r=0,yv=0;var Wv,Kv,Yv,Xv=0,Zv=[],Jv=dv.__b,Qv=dv.__r,eb=dv.diffed,tb=dv.__c,nb=dv.unmount;function ib(e,t){dv.__h&&dv.__h(Kv,e,Xv||t),Xv=0;var n=Kv.__H||(Kv.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function rb(e){return Xv=1,ob(fb,e)}function ob(e,t,n){var i=ib(Wv++,2);return i.t=e,i.__c||(i.__=[n?n(t):fb(void 0,t),function(e){var t=i.t(i.__[0],e);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}))}],i.__c=Kv),i.__}function ab(e,t){var n=ib(Wv++,3);!dv.__s&&mb(n.__H,t)&&(n.__=e,n.__H=t,Kv.__H.__h.push(n))}function sb(e){return Xv=5,pb((function(){return{current:e}}),[])}function pb(e,t){var n=ib(Wv++,7);return mb(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function lb(e){var t=Kv.context[e.__c],n=ib(Wv++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(Kv)),t.props.value):e.__}function cb(){Zv.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(db),e.__H.__h.forEach(hb),e.__H.__h=[]}catch(t){e.__H.__h=[],dv.__e(t,e.__v)}})),Zv=[]}dv.__b=function(e){Kv=null,Jv&&Jv(e)},dv.__r=function(e){Qv&&Qv(e),Wv=0;var t=(Kv=e.__c).__H;t&&(t.__h.forEach(db),t.__h.forEach(hb),t.__h=[])},dv.diffed=function(e){eb&&eb(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Zv.push(t)&&Yv===dv.requestAnimationFrame||((Yv=dv.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),ub&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);ub&&(t=requestAnimationFrame(n))})(cb)),Kv=void 0},dv.__c=function(e,t){t.some((function(e){try{e.__h.forEach(db),e.__h=e.__h.filter((function(e){return!e.__||hb(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],dv.__e(n,e.__v)}})),tb&&tb(e,t)},dv.unmount=function(e){nb&&nb(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(db)}catch(e){dv.__e(e,t.__v)}};var ub="function"==typeof requestAnimationFrame;function db(e){var t=Kv;"function"==typeof e.__c&&e.__c(),Kv=t}function hb(e){var t=Kv;e.__c=e.__(),Kv=t}function mb(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function fb(e,t){return"function"==typeof t?t(e):t}
|
|
8
|
+
var Ya=n((function(e){!function(t,n,i,r){var o,a=["","webkit","Moz","MS","ms","o"],s=n.createElement("div"),p=Math.round,l=Math.abs,c=Date.now;function u(e,t,n){return setTimeout(v(e,n),t)}function d(e,t,n){return!!Array.isArray(e)&&(h(e,n[t],n),!0)}function h(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==r)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function m(e,n,i){var r="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=t.console&&(t.console.warn||t.console.log);return o&&o.call(t.console,r,i),e.apply(this,arguments)}}o="function"!=typeof Object.assign?function(e){if(e===r||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==r&&null!==i)for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t}:Object.assign;var f=m((function(e,t,n){for(var i=Object.keys(t),o=0;o<i.length;)(!n||n&&e[i[o]]===r)&&(e[i[o]]=t[i[o]]),o++;return e}),"extend","Use `assign`."),y=m((function(e,t){return f(e,t,!0)}),"merge","Use `assign`.");function g(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&o(i,n)}function v(e,t){return function(){return e.apply(t,arguments)}}function b(e,t){return"function"==typeof e?e.apply(t&&t[0]||r,t):e}function x(e,t){return e===r?t:e}function w(e,t,n){h(O(t),(function(t){e.addEventListener(t,n,!1)}))}function _(e,t,n){h(O(t),(function(t){e.removeEventListener(t,n,!1)}))}function E(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function P(e,t){return e.indexOf(t)>-1}function O(e){return e.trim().split(/\s+/g)}function S(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function k(e){return Array.prototype.slice.call(e,0)}function C(e,t,n){for(var i=[],r=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];S(r,a)<0&&i.push(e[o]),r[o]=a,o++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}function M(e,t){for(var n,i,o=t[0].toUpperCase()+t.slice(1),s=0;s<a.length;){if((i=(n=a[s])?n+o:t)in e)return i;s++}return r}var T=1;function A(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}var R="ontouchstart"in t,z=M(t,"PointerEvent")!==r,D=R&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),j="touch",B="mouse",N=24,L=["x","y"],I=["clientX","clientY"];function $(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){b(e.options.enable,[e])&&n.handler(t)},this.init()}function F(e,t,n){var i=n.pointers.length,o=n.changedPointers.length,a=1&t&&i-o==0,s=12&t&&i-o==0;n.isFirst=!!a,n.isFinal=!!s,a&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,o=i.length;n.firstInput||(n.firstInput=V(t));o>1&&!n.firstMultiple?n.firstMultiple=V(t):1===o&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,p=s?s.center:a.center,u=t.center=H(i);t.timeStamp=c(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=W(p,u),t.distance=G(p,u),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(r=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y});t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}(n,t),t.offsetDirection=U(t.deltaX,t.deltaY);var d=q(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=d.x,t.overallVelocityY=d.y,t.overallVelocity=l(d.x)>l(d.y)?d.x:d.y,t.scale=s?(h=s.pointers,m=i,G(m[0],m[1],I)/G(h[0],h[1],I)):1,t.rotation=s?function(e,t){return W(t[1],t[0],I)+W(e[1],e[0],I)}(s.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,o,a,s=e.lastInterval||t,p=t.timeStamp-s.timeStamp;if(8!=t.eventType&&(p>25||s.velocity===r)){var c=t.deltaX-s.deltaX,u=t.deltaY-s.deltaY,d=q(p,c,u);i=d.x,o=d.y,n=l(d.x)>l(d.y)?d.x:d.y,a=U(c,u),e.lastInterval=t}else n=s.velocity,i=s.velocityX,o=s.velocityY,a=s.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=a}(n,t);var h,m;var f=e.element;E(t.srcEvent.target,f)&&(f=t.srcEvent.target);t.target=f}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function V(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:p(e.pointers[n].clientX),clientY:p(e.pointers[n].clientY)},n++;return{timeStamp:c(),pointers:t,center:H(t),deltaX:e.deltaX,deltaY:e.deltaY}}function H(e){var t=e.length;if(1===t)return{x:p(e[0].clientX),y:p(e[0].clientY)};for(var n=0,i=0,r=0;r<t;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:p(n/t),y:p(i/t)}}function q(e,t,n){return{x:t/e||0,y:n/e||0}}function U(e,t){return e===t?1:l(e)>=l(t)?e<0?2:4:t<0?8:16}function G(e,t,n){n||(n=L);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function W(e,t,n){n||(n=L);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}$.prototype={handler:function(){},init:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(A(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&_(this.element,this.evEl,this.domHandler),this.evTarget&&_(this.target,this.evTarget,this.domHandler),this.evWin&&_(A(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4},Y="mousedown",X="mousemove mouseup";function Z(){this.evEl=Y,this.evWin=X,this.pressed=!1,$.apply(this,arguments)}g(Z,$,{handler:function(e){var t=K[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:B,srcEvent:e}))}});var J={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Q={2:j,3:"pen",4:B,5:"kinect"},ee="pointerdown",te="pointermove pointerup pointercancel";function ne(){this.evEl=ee,this.evWin=te,$.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(ee="MSPointerDown",te="MSPointerMove MSPointerUp MSPointerCancel"),g(ne,$,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=J[i],o=Q[e.pointerType]||e.pointerType,a=o==j,s=S(t,e.pointerId,"pointerId");1&r&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&r&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var ie={touchstart:1,touchmove:2,touchend:4,touchcancel:8},re="touchstart",oe="touchstart touchmove touchend touchcancel";function ae(){this.evTarget=re,this.evWin=oe,this.started=!1,$.apply(this,arguments)}function se(e,t){var n=k(e.touches),i=k(e.changedTouches);return 12&t&&(n=C(n.concat(i),"identifier",!0)),[n,i]}g(ae,$,{handler:function(e){var t=ie[e.type];if(1===t&&(this.started=!0),this.started){var n=se.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:j,srcEvent:e})}}});var pe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},le="touchstart touchmove touchend touchcancel";function ce(){this.evTarget=le,this.targetIds={},$.apply(this,arguments)}function ue(e,t){var n=k(e.touches),i=this.targetIds;if(3&t&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=k(e.changedTouches),s=[],p=this.target;if(o=n.filter((function(e){return E(e.target,p)})),1===t)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),12&t&&delete i[a[r].identifier],r++;return s.length?[C(o.concat(s),"identifier",!0),s]:void 0}g(ce,$,{handler:function(e){var t=pe[e.type],n=ue.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:j,srcEvent:e})}});function de(){$.apply(this,arguments);var e=v(this.handler,this);this.touch=new ce(this.manager,e),this.mouse=new Z(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function he(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,me.call(this,t)):12&e&&me.call(this,t)}function me(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)}),2500)}}function fe(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(t-r.x),a=Math.abs(n-r.y);if(o<=25&&a<=25)return!0}return!1}g(de,$,{handler:function(e,t,n){var i=n.pointerType==j,r=n.pointerType==B;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)he.call(this,t,n);else if(r&&fe.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ye=M(s.style,"touchAction"),ge=ye!==r,ve="compute",be="auto",xe="manipulation",we="none",_e="pan-x",Ee="pan-y",Pe=function(){if(!ge)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){e[i]=!n||t.CSS.supports("touch-action",i)})),e}();function Oe(e,t){this.manager=e,this.set(t)}Oe.prototype={set:function(e){e==ve&&(e=this.compute()),ge&&this.manager.element.style&&Pe[e]&&(this.manager.element.style[ye]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return h(this.manager.recognizers,(function(t){b(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(P(e,we))return we;var t=P(e,_e),n=P(e,Ee);if(t&&n)return we;if(t||n)return t?_e:Ee;if(P(e,xe))return xe;return be}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,r=P(i,we)&&!Pe.none,o=P(i,Ee)&&!Pe["pan-y"],a=P(i,_e)&&!Pe["pan-x"];if(r){var s=1===e.pointers.length,p=e.distance<2,l=e.deltaTime<250;if(s&&p&&l)return}if(!a||!o)return r||o&&6&n||a&&n&N?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Se=32;function ke(e){this.options=o({},this.defaults,e||{}),this.id=T++,this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Ce(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Me(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Te(e,t){var n=t.manager;return n?n.get(e):e}function Ae(){ke.apply(this,arguments)}function Re(){Ae.apply(this,arguments),this.pX=null,this.pY=null}function ze(){Ae.apply(this,arguments)}function De(){ke.apply(this,arguments),this._timer=null,this._input=null}function je(){Ae.apply(this,arguments)}function Be(){Ae.apply(this,arguments)}function Ne(){ke.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Le(e,t){return(t=t||{}).recognizers=x(t.recognizers,Le.defaults.preset),new Ie(e,t)}ke.prototype={defaults:{},set:function(e){return o(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(d(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Te(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return d(e,"dropRecognizeWith",this)||(e=Te(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(d(e,"requireFailure",this))return this;var t=this.requireFail;return-1===S(t,e=Te(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(d(e,"dropRequireFailure",this))return this;e=Te(e,this);var t=S(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<8&&i(t.options.event+Ce(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=8&&i(t.options.event+Ce(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Se},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=o({},e);if(!b(this.options.enable,[this,t]))return this.reset(),void(this.state=Se);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},g(Ae,ke,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=6&t,r=this.attrTest(e);return i&&(8&n||!r)?16|t:i||r?4&n?8|t:2&t?4|t:2:Se}}),g(Re,Ae,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(Ee),e&N&&t.push(_e),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,o=e.deltaX,a=e.deltaY;return r&t.direction||(6&t.direction?(r=0===o?1:o<0?2:4,n=o!=this.pX,i=Math.abs(e.deltaX)):(r=0===a?1:a<0?8:16,n=a!=this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},attrTest:function(e){return Ae.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Me(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),g(ze,Ae,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[we]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),g(De,ke,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[be]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime>t.time;if(this._input=e,!i||!n||12&e.eventType&&!r)this.reset();else if(1&e.eventType)this.reset(),this._timer=u((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Se},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=c(),this.manager.emit(this.options.event,this._input)))}}),g(je,Ae,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[we]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),g(Be,Ae,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Re.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&N&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&l(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Me(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),g(Ne,ke,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=e.eventType)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||G(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=u((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return Se},failTimeout:function(){return this._timer=u((function(){this.state=Se}),this.options.interval,this),Se},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Le.VERSION="2.0.7",Le.defaults={domEvents:!1,touchAction:ve,enable:!0,inputTarget:null,inputClass:null,preset:[[je,{enable:!1}],[ze,{enable:!1},["rotate"]],[Be,{direction:6}],[Re,{direction:6},["swipe"]],[Ne],[Ne,{event:"doubletap",taps:2},["tap"]],[De]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ie(e,t){var n;this.options=o({},Le.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(z?ne:D?ce:R?de:Z))(n,F),this.touchAction=new Oe(this,this.options.touchAction),$e(this,!0),h(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function $e(e,t){var n,i=e.element;i.style&&(h(e.options.cssProps,(function(r,o){n=M(i.style,o),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Ie.prototype={set:function(e){return o(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,r=t.curRecognizer;(!r||r&&8&r.state)&&(r=t.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===t.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(e),!r&&14&n.state&&(r=t.curRecognizer=n),o++}},get:function(e){if(e instanceof ke)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(d(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(d(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=S(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==r&&t!==r){var n=this.handlers;return h(O(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==r){var n=this.handlers;return h(O(e),(function(e){t?n[e]&&n[e].splice(S(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var i=n.createEvent("Event");i.initEvent(e,!0,!0),i.gesture=t,t.target.dispatchEvent(i)}(e,t);var i=this.handlers[e]&&this.handlers[e].slice();if(i&&i.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<i.length;)i[r](t),r++}},destroy:function(){this.element&&$e(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(Le,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Se,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:N,DIRECTION_ALL:30,Manager:Ie,Input:$,TouchAction:Oe,TouchInput:ce,MouseInput:Z,PointerEventInput:ne,TouchMouseInput:de,SingleTouchInput:ae,Recognizer:ke,AttrRecognizer:Ae,Tap:Ne,Pan:Re,Swipe:Be,Pinch:ze,Rotate:je,Press:De,on:w,off:_,each:h,merge:y,extend:f,assign:o,inherit:g,bindFn:v,prefixed:M}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=Le,e.exports?e.exports=Le:t.Hammer=Le}(window,document)})),Xa=["mousedown","mouseup","mouseover","mouseout","click","dblclick"];function Za(e,t){return t.get(e,!1)}function Ja(e){e.preventDefault(),"function"==typeof e.stopPropagation?e.stopPropagation():e.srcEvent&&"function"==typeof e.srcEvent.stopPropagation&&e.srcEvent.stopPropagation(),"function"==typeof e.stopImmediatePropagation&&e.stopImmediatePropagation()}function Qa(e){function t(t){setTimeout((function(){_(Xa,(function(t){ue.unbind(e,t,Ja,!0)}))}),500)}ue.bind(e,"touchstart",(function(t){_(Xa,(function(t){ue.bind(e,t,Ja,!0)}))}),!0),ue.bind(e,"touchend",t,!0),ue.bind(e,"touchcancel",t,!0);var n=new Ya.Manager(e,{inputClass:Ya.TouchInput,recognizers:[],domEvents:!0}),i=new Ya.Tap,r=new Ya.Pan({threshold:10}),o=new Ya.Press,a=new Ya.Pinch,s=new Ya.Tap({event:"doubletap",taps:2});return a.requireFailure(r),a.requireFailure(o),n.add([r,o,a,s,i]),n.reset=function(e){var t=this.recognizers,i=this.session;i.stopped||(n.stop(e),setTimeout((function(){var e,n;for(e=0;n=t[e];e++)n.reset(),n.state=8;i.curRecognizer=null}),0))},n.on("hammer.input",(function(e){e.srcEvent.defaultPrevented&&n.reset(!0)})),n}function es(e,t,n,i,r){var o,a=Za("dragging",e),s=Za("move",e),p=Za("contextPad",e),l=Za("palette",e);function c(e,t){return function(n){var o=u(n.target),a=o&&i.get(o);return t&&(n.srcEvent.button=t),r.fire(e,n,a)}}function u(e){return se(e,"svg, .djs-element",!0)}function d(e){function n(e){var n=u(e.target),r=n&&i.get(n);if(s&&t.getRootElement()!==r)return s.start(e,r,!0);!function(e){var n=0,i=0;function r(e){var r=e.deltaX-n,o=e.deltaY-i;t.scroll({dx:r,dy:o}),n=e.deltaX,i=e.deltaY}function a(e){o.off("panmove",r),o.off("panend",a),o.off("pancancel",a)}o.on("panmove",r),o.on("panend",a),o.on("pancancel",a)}()}(o=Qa(e)).on("tap",c("element.click")),o.on("doubletap",c("element.dblclick",1)),o.on("panstart",n),o.on("press",n),o.on("pinchstart",(function(e){var n=t.zoom(),i=e.center;function r(e){var r=1-(1-e.scale)/1.5,o=Math.max(.2,Math.min(4,r*n));t.zoom(o,i),Ja(e)}function a(e){o.off("pinchmove",r),o.off("pinchend",a),o.off("pinchcancel",a),o.reset(!0)}o.on("pinchmove",r),o.on("pinchend",a),o.on("pinchcancel",a)}))}a&&n.on("drag.move",(function(e){var t=e.originalEvent;if(t&&!(t instanceof MouseEvent)){var n=Eo(t),r=u(document.elementFromPoint(n.x,n.y)),o=r&&i.get(r);o!==e.hover&&(e.hover&&a.out(e),o&&(a.hover({element:o,gfx:r}),e.hover=o,e.hoverGfx=r))}})),p&&n.on("contextPad.create",(function(e){var t=Qa(e.pad.html);t.on("panstart",(function(e){p.trigger("dragstart",e,!0)})),t.on("press",(function(e){p.trigger("dragstart",e,!0)})),t.on("tap",(function(e){p.trigger("click",e)}))})),l&&n.on("palette.create",(function(e){var t=Qa(e.container);t.on("panstart",(function(e){l.trigger("dragstart",e,!0)})),t.on("press",(function(e){l.trigger("dragstart",e,!0)})),t.on("tap",(function(e){l.trigger("click",e)}))})),n.on("canvas.init",(function(e){d(e.svg)}))}function ts(e,t){var n=this;t.on("canvas.init",(function(e){n.addBBoxMarker(e.svg)}))}es.$inject=["injector","canvas","eventBus","elementRegistry","interactionEvents","touchFix"],ts.$inject=["canvas","eventBus"],ts.prototype.addBBoxMarker=function(e){var t={fill:"none",class:"outer-bound-marker"},n=Le("rect");Oe(n,{x:-1e4,y:1e4,width:10,height:10}),Oe(n,t),_e(e,n);var i=Le("rect");Oe(i,{x:1e4,y:1e4,width:10,height:10}),Oe(i,t),_e(e,i)};var ns={__depends__:[{__depends__:[Ao],__init__:["touchInteractionEvents"],touchInteractionEvents:["type",es],touchFix:["type",ts]}]};function is(e){return e&&e[e.length-1]}function rs(e){return e.y}function os(e){return e.x}var as={left:os,center:os,right:function(e){return e.x+e.width},top:rs,middle:rs,bottom:function(e){return e.y+e.height}};function ss(e){this._modeling=e}ss.$inject=["modeling"],ss.prototype._getOrientationDetails=function(e){var t="x",n="width";return-1!==["top","bottom","middle"].indexOf(e)&&(t="y",n="height"),{axis:t,dimension:n}},ss.prototype._isType=function(e,t){return-1!==t.indexOf(e)},ss.prototype._alignmentPosition=function(e,t){var n,i,r,o=this._getOrientationDetails(e),a=o.axis,s=o.dimension,p={},l={},c=!1;if(this._isType(e,["left","top"]))p[e]=t[0][a];else if(this._isType(e,["right","bottom"]))r=is(t),p[e]=r[a]+r[s];else if(this._isType(e,["center","middle"])){if(_(t,(function(e){var t=e[a]+Math.round(e[s]/2);l[t]?l[t].elements.push(e):l[t]={elements:[e],center:t}})),n=D(l,(function(e){return e.elements.length>1&&(c=!0),e.elements.length})),c)return p[e]=is(n).center,p;i=t[0],r=is(t=D(t,(function(e){return e[a]+e[s]}))),p[e]=function(e,t){return Math.round((e[a]+t[a]+t[s])/2)}(i,r)}return p},ss.prototype.trigger=function(e,t){var n=this._modeling,i=w(e,(function(e){return!(e.waypoints||e.host||e.labelTarget)}));if(!(i.length<2)){var r=D(i,as[t]),o=this._alignmentPosition(t,r);n.alignElements(r,o)}};var ps={__init__:["alignElements"],alignElements:["type",ss]};function ls(e,t,n,i){for(var r;r=us(e,n,t);)n=i(t,n,r);return n}function cs(e){return function(t,n,i){var r={x:n.x,y:n.y};return["x","y"].forEach((function(o){var a=e[o];if(a){var s="x"===o?"width":"height",p=a.margin,l=a.minDistance;r[o]=p<0?Math.min(i[o]+p-t[s]/2,n[o]-l+p):Math.max(i[o]+i[s]+p+t[s]/2,n[o]+l+p)}})),r}}function us(e,t,n){var i={x:t.x-n.width/2,y:t.y-n.height/2,width:n.width,height:n.height};return b(function(e){var t=ds(e);e.host&&(t=t.concat(ds(e.host)));e.attachers&&(t=t.concat(e.attachers.reduce((function(e,t){return e.concat(ds(t))}),[])));return t}(e),(function(e){return e!==n&&"intersect"===yn(e,i,10)}))}function ds(e){return(t=e,t.outgoing.map((function(e){return e.target}))).concat(function(e){return e.incoming.map((function(e){return e.source}))}(e));var t}function hs(){return!0}function ms(e,t,n){e.on("autoPlace",100,(function(e){var t=e.shape;return function(e,t,n){n||(n={});var i=n.defaultDistance||50,r=fn(e);return{x:hn(e).right+i+t.width/2,y:r.y}}(e.source,t)})),e.on("autoPlace.end",(function(e){n.scrollToElement(e.shape)})),this.append=function(n,i,r){e.fire("autoPlace.start",{source:n,shape:i});var o=e.fire("autoPlace",{source:n,shape:i}),a=t.appendShape(n,i,o,n.parent,r);return e.fire("autoPlace.end",{source:n,shape:a}),a}}function fs(e,t){e.on("autoPlace.end",500,(function(e){t.select(e.shape)}))}ms.$inject=["eventBus","modeling","canvas"],fs.$inject=["eventBus","selection"];var ys={__init__:["autoPlaceSelectionBehavior"],autoPlace:["type",ms],autoPlaceSelectionBehavior:["type",fs]};function gs(e,t){for("string"==typeof t&&(t=[t]);e=e.parent;)if(_r(e,t))return e;return null}function vs(e,t){return wr(t,"bpmn:TextAnnotation")?function(e,t){var n=hn(e),i={x:n.right+t.width/2,y:n.top-50-t.height/2};return ls(e,t,i,cs({y:{margin:-30,minDistance:20}}))}(e,t):_r(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])?function(e,t){var n=hn(e),i={x:n.right-10+t.width/2,y:n.bottom+40+t.width/2};return ls(e,t,i,cs({x:{margin:30,minDistance:30}}))}(e,t):wr(t,"bpmn:FlowNode")?function(e,t){var n=hn(e),i=fn(e),r=function(e,t){t||(t={});var n=t.defaultDistance||50,i=t.direction||"e",r=t.filter,o=t.getWeight||function(t){return t.source===e?1:-1},a=t.maxDistance||250,s=t.reference||"start";function p(e,t){return"n"===i?"start"===s?hn(e).top-hn(t).bottom:"center"===s?hn(e).top-fn(t).y:hn(e).top-hn(t).top:"w"===i?"start"===s?hn(e).left-hn(t).right:"center"===s?hn(e).left-fn(t).x:hn(e).left-hn(t).left:"s"===i?"start"===s?hn(t).top-hn(e).bottom:"center"===s?fn(t).y-hn(e).bottom:hn(t).bottom-hn(e).bottom:"start"===s?hn(t).left-hn(e).right:"center"===s?fn(t).x-hn(e).right:hn(t).right-hn(e).right}r||(r=hs);var l=e.incoming.filter(r).map((function(t){var n=o(t),i=n<0?p(t.source,e):p(e,t.source);return{id:t.source.id,distance:i,weight:n}})),c=e.outgoing.filter(r).map((function(t){var n=o(t),i=n>0?p(e,t.target):p(t.target,e);return{id:t.target.id,distance:i,weight:n}}));return P(l.concat(c).reduce((function(e,t){return e[t.id+"__weight_"+t.weight]=t,e}),{}),(function(e,t){var n=t.distance,i=t.weight;return n<0||n>a||(e[String(n)]||(e[String(n)]=0),e[String(n)]+=1*i,(!e.distance||e[e.distance]<e[String(n)])&&(e.distance=n)),e}),{}).distance||n}(e,{filter:function(e){return wr(e,"bpmn:SequenceFlow")}}),o=30,a=80,s="left";wr(e,"bpmn:BoundaryEvent")&&-1!==(s=yn(e,e.host,-25)).indexOf("top")&&(o*=-1);var p={x:n.right+r+t.width/2,y:i.y+bs(s,a)};return ls(e,t,p,cs({y:{margin:o,minDistance:a}}))}(e,t):void 0}function bs(e,t){return-1!=e.indexOf("top")?-1*t:-1!=e.indexOf("bottom")?t:0}function xs(e){e.on("autoPlace",(function(e){var t=e.shape;return vs(e.source,t)}))}xs.$inject=["eventBus"];var ws={__depends__:[ys],__init__:["bpmnAutoPlace"],bpmnAutoPlace:["type",xs]};function _s(e,t,n,i){Xo.call(this,e),this._elementRegistry=t,this._modeling=n,this._rules=i;var r=this;this.postExecuted(["shape.create"],(function(e){var t=e.context,n=t.hints||{},i=t.shape,o=t.parent||t.newParent;!1!==n.autoResize&&r._expand([i],o)})),this.postExecuted(["elements.move"],(function(e){var t=e.context,n=a(T(t.closure.topLevel)),i=t.hints,o=!i||i.autoResize;!1!==o&&_(A(n,(function(e){return e.parent.id})),(function(e,t){d(o)&&(e=e.filter((function(e){return b(o,j({id:e.id}))}))),r._expand(e,t)}))})),this.postExecuted(["shape.toggleCollapse"],(function(e){var t=e.context,n=t.hints,i=t.shape;n&&!1===n.autoResize||i.collapsed||r._expand(i.children||[],i)})),this.postExecuted(["shape.resize"],(function(e){var t=e.context,n=t.hints,i=t.shape,o=i.parent;n&&!1===n.autoResize||o&&r._expand([i],o)}))}function Es(e){e.invoke(_s,this)}function Ps(e){Xo.call(this,e),this.init()}function Os(e){Ps.call(this,e);var t=this;this.addRule("element.autoResize",(function(e){return t.canResize(e.elements,e.target)}))}function Ss(e,t){Os.call(this,e),this._modeling=t}_s.$inject=["eventBus","elementRegistry","modeling","rules"],i(_s,Xo),_s.prototype._getOptimalBounds=function(e,t){var n=this.getOffset(t),i=this.getPadding(t),r=hn(yt(e)),o=hn(t),a={};return r.top-o.top<i.top&&(a.top=r.top-n.top),r.left-o.left<i.left&&(a.left=r.left-n.left),o.right-r.right<i.right&&(a.right=r.right+n.right),o.bottom-r.bottom<i.bottom&&(a.bottom=r.bottom+n.bottom),mn(q({},o,a))},_s.prototype._expand=function(e,t){if("string"==typeof t&&(t=this._elementRegistry.get(t)),this._rules.allowed("element.autoResize",{elements:e,target:t})){var n=this._getOptimalBounds(e,t);if(function(e,t){return e.x!==t.x||e.y!==t.y||e.width!==t.width||e.height!==t.height}(n,t)){var i=function(e,t){var n="";e=hn(e),t=hn(t),e.top>t.top&&(n=n.concat("n"));e.right<t.right&&(n=n.concat("w"));e.bottom<t.bottom&&(n=n.concat("s"));e.left>t.left&&(n=n.concat("e"));return n}(W(t,["x","y","width","height"]),n);this.resize(t,n,{autoResize:i});var r=t.parent;r&&this._expand([t],r)}}},_s.prototype.getOffset=function(e){return{top:60,bottom:60,left:100,right:100}},_s.prototype.getPadding=function(e){return{top:2,bottom:2,left:15,right:15}},_s.prototype.resize=function(e,t,n){this._modeling.resizeShape(e,t,null,n)},Es.$inject=["injector"],i(Es,_s),Es.prototype.resize=function(e,t,n){wr(e,"bpmn:Participant")?this._modeling.resizeLane(e,t,null,n):this._modeling.resizeShape(e,t,null,n)},Ps.$inject=["eventBus"],i(Ps,Xo),Ps.prototype.addRule=function(e,t,n){var i=this;"string"==typeof e&&(e=[e]),e.forEach((function(e){i.canExecute(e,t,(function(e,t,i){return n(e)}),!0)}))},Ps.prototype.init=function(){},Os.$inject=["eventBus"],i(Os,Ps),Os.prototype.canResize=function(e,t){return!1},i(Ss,Os),Ss.$inject=["eventBus","modeling"],Ss.prototype.canResize=function(e,t){if(wr(t.di,"bpmndi:BPMNPlane"))return!1;if(!wr(t,"bpmn:Participant")&&!wr(t,"bpmn:Lane")&&!wr(t,"bpmn:SubProcess"))return!1;var n=!0;return _(e,(function(e){(wr(e,"bpmn:Lane")||e.labelTarget)&&(n=!1)})),n};var ks={__init__:["bpmnAutoResize","bpmnAutoResizeProvider"],bpmnAutoResize:["type",Es],bpmnAutoResizeProvider:["type",Ss]};function Cs(e,t,n){var i,r,o=this,a=n.get("dragging",!1);a&&t.on("drag.start",(function(n){t.once("drag.move",1500,(function(t){!function(t){if(!t.hover){var n=t.originalEvent,i=o._findTargetGfx(n),r=i&&e.get(i);i&&r&&(t.stopPropagation(),a.hover({element:r,gfx:i}),a.move(n))}}(t)}))})),t.on("element.hover",(function(e){i=e.gfx,r=e.element})),t.on("element.hover",1500,(function(e){r&&t.fire("element.out",{element:r,gfx:i})})),t.on("element.out",(function(){i=null,r=null})),this._findTargetGfx=function(e){var t;if(e instanceof MouseEvent)return t=Eo(e),function(e){return se(e,"svg, .djs-element",!0)}(document.elementFromPoint(t.x,t.y))}}Cs.$inject=["elementRegistry","eventBus","injector"];var Ms={__init__:["hoverFix"],hoverFix:["type",Cs]},Ts=Math.round,As="djs-drag-active";function Rs(e){e.preventDefault()}function zs(e,t,n,i){var r,o={threshold:5,trapClick:!0};function a(e){var n=t.viewbox(),i=t._container.getBoundingClientRect();return{x:n.x+(e.x-i.left)/n.scale,y:n.y+(e.y-i.top)/n.scale}}function s(t,n){n=n||r;var i=e.createEvent(q({},n.payload,n.data,{isTouch:n.isTouch}));return!1!==e.fire("drag."+t,i)&&e.fire(n.prefix+"."+t,i)}function p(e,i){var o,p=r.payload,l=r.displacement,c=r.globalStart,u=Eo(e),d=Ia(u,c),h=r.localStart,m=a(u),y=Ia(m,h);if(!r.active&&(i||(o=d,Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2))>r.threshold))){if(q(p,{x:Ts(h.x+l.x),y:Ts(h.y+l.y),dx:0,dy:0},{originalEvent:e}),!1===s("start"))return f();r.active=!0,r.keepSelection||(p.previousSelection=n.get(),n.select(null)),r.cursor&&ja(r.cursor),t.addMarker(t.getRootElement(),As)}_o(e),r.active&&(q(p,{x:Ts(m.x+l.x),y:Ts(m.y+l.y),dx:Ts(y.x),dy:Ts(y.y)},{originalEvent:e}),s("move"))}function l(e){var t=!0;r.active&&(e&&(r.payload.originalEvent=e,_o(e)),t=s("end")),!1===t&&s("rejected"),s("ended",y(!0!==t))}function c(e){27===e.which&&(Rs(e),f())}function u(t){var n;r.active&&(n=Na(e),setTimeout(n,400),Rs(t)),l(t)}function d(e){p(e)}function h(e){var t=r.payload;t.hoverGfx=e.gfx,t.hover=e.element,s("hover")}function m(e){s("out");var t=r.payload;t.hoverGfx=null,t.hover=null}function f(e){var t;if(r){var n=r.active;n&&s("cancel"),t=y(e),n&&s("canceled",t)}}function y(o){var a,y;s("cleanup"),Ba(),y=r.trapClick?u:l,ue.unbind(document,"mousemove",p),ue.unbind(document,"dragstart",Rs),ue.unbind(document,"selectstart",Rs),ue.unbind(document,"mousedown",y,!0),ue.unbind(document,"mouseup",y,!0),ue.unbind(document,"keyup",c),ue.unbind(document,"touchstart",d,!0),ue.unbind(document,"touchcancel",f,!0),ue.unbind(document,"touchmove",p,!0),ue.unbind(document,"touchend",l,!0),e.off("element.hover",h),e.off("element.out",m),t.removeMarker(t.getRootElement(),As);var g=r.payload.previousSelection;return!1!==o&&g&&!n.get().length&&function(e){var t=e.filter((function(e){return i.get(e.id)}));t.length&&n.select(t)}(g),a=r,r=null,a}e.on("diagram.destroy",f),this.init=function(t,n,i,y){r&&f(!1),"string"==typeof n&&(y=i,i=n,n=null);var g,v,b,x,w,_=(y=q({},o,y||{})).data||{};x=y.trapClick?u:l,t?(g=wo(t)||t,v=Eo(t),_o(t),"dragstart"===g.type&&Rs(g)):(g=null,v={x:0,y:0}),b=a(v),n||(n=b),w=function(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}(g),r=q({prefix:i,data:_,payload:{},globalStart:v,displacement:Ia(n,b),localStart:b,isTouch:w},y),y.manual||(w?(ue.bind(document,"touchstart",d,!0),ue.bind(document,"touchcancel",f,!0),ue.bind(document,"touchmove",p,!0),ue.bind(document,"touchend",l,!0)):(ue.bind(document,"mousemove",p),ue.bind(document,"dragstart",Rs),ue.bind(document,"selectstart",Rs),ue.bind(document,"mousedown",x,!0),ue.bind(document,"mouseup",x,!0)),ue.bind(document,"keyup",c),e.on("element.hover",h),e.on("element.out",m)),s("init"),y.autoActivate&&p(t,!0)},this.move=p,this.hover=h,this.out=m,this.end=l,this.cancel=f,this.context=function(){return r},this.setOptions=function(e){q(o,e)}}zs.$inject=["eventBus","canvas","selection","elementRegistry"];var Ds={__depends__:[Ms,$o],dragging:["type",zs]};function js(e,t,n){this._canvas=n,this._opts=q({scrollThresholdIn:[20,20,20,20],scrollThresholdOut:[0,0,0,0],scrollRepeatTimeout:15,scrollStep:10},e);var i=this;t.on("drag.move",(function(e){var t=i._toBorderPoint(e);i.startScroll(t)})),t.on(["drag.cleanup"],(function(){i.stopScroll()}))}function Bs(e,t,n){return t<e&&e<n}js.$inject=["config.autoScroll","eventBus","canvas"],js.prototype.startScroll=function(e){var t=this._canvas,n=this._opts,i=this,r=t.getContainer().getBoundingClientRect(),o=[e.x,e.y,r.width-e.x,r.height-e.y];this.stopScroll();for(var a=0,s=0,p=0;p<4;p++)Bs(o[p],n.scrollThresholdOut[p],n.scrollThresholdIn[p])&&(0===p?a=n.scrollStep:1==p?s=n.scrollStep:2==p?a=-n.scrollStep:3==p&&(s=-n.scrollStep));0===a&&0===s||(t.scroll({dx:a,dy:s}),this._scrolling=setTimeout((function(){i.startScroll(e)}),n.scrollRepeatTimeout))},js.prototype.stopScroll=function(){clearTimeout(this._scrolling)},js.prototype.setOptions=function(e){this._opts=q({},this._opts,e)},js.prototype._toBorderPoint=function(e){var t=this._canvas._container.getBoundingClientRect(),n=Eo(e.originalEvent);return{x:n.x-t.left,y:n.y-t.top}};var Ns={__depends__:[Ds],__init__:["autoScroll"],autoScroll:["type",js]};function Ls(e){this._commandStack=e.get("commandStack",!1)}Ls.$inject=["injector"],Ls.prototype.allowed=function(e,t){var n=!0,i=this._commandStack;return i&&(n=i.canExecute(e,t)),void 0===n||n};var Is={__init__:["rules"],rules:["type",Ls]},$s=Math.round,Fs=Math.max;function Vs(e,t){return function(e,t){var n,i;for(n=0;i=e[n];n++)if(Ot(i,t)<=10)return{point:e[n],bendpoint:!0,index:n};return null}(e,t)||function(e,t){var n,i,r=cn(function(e,t){return[["M",e.x,e.y],["m",0,-t],["a",t,t,0,1,1,0,2*t],["a",t,t,0,1,1,0,-2*t],["z"]]}(t,10),(n=[],e.forEach((function(e,t){n.push([0===t?"M":"L",e.x,e.y])})),n)),o=r[0],a=r[r.length-1];return o?o!==a?o.segment2!==a.segment2?{point:e[i=Fs(o.segment2,a.segment2)-1],bendpoint:!0,index:i}:{point:{x:$s(o.x+a.x)/2,y:$s(o.y+a.y)/2},index:o.segment2}:{point:{x:$s(o.x),y:$s(o.y)},index:o.segment2}:null}(e,t)}var Hs="djs-bendpoint",qs="djs-segment-dragger";function Us(e,t,n){return Vs(t,function(e,t){var n,i=Eo(t),r=e._container.getBoundingClientRect();n={x:r.left,y:r.top};var o=e.viewbox();return{x:o.x+(i.x-n.x)/o.scale,y:o.y+(i.y-n.y)/o.scale}}(e,n))}function Gs(e,t){var n=Le("g");Te(n).add(Hs),_e(e,n);var i=Le("circle");Oe(i,{cx:0,cy:0,r:4}),Te(i).add("djs-visual"),_e(n,i);var r=Le("circle");return Oe(r,{cx:0,cy:0,r:10}),Te(r).add("djs-hit"),_e(n,r),t&&Te(n).add(t),n}function Ws(e,t,n,i){var r=Le("g");_e(e,r);var o=function(e,t,n){var i=t.x-e.x,r=t.y-e.y;return Ys("h"===n?i:r)}(t,n,i),a=Le("rect");Oe(a,{x:-7,y:-1.5,width:14,height:3}),Te(a).add("djs-visual"),_e(r,a);var s=Le("rect");return Oe(s,{x:-o/2,y:-7,width:o,height:14}),Te(s).add("djs-hit"),_e(r,s),Yn(r,"v"===i?90:0),r}function Ks(e,t,n){var i=Le("g"),r=Mt(t,n),o=kt(t,n);return _e(e,i),Ws(i,t,n,o),Te(i).add(qs),Te(i).add("h"===o?"horizontal":"vertical"),Kn(i,r.x,r.y),i}function Ys(e){return Math.abs(Math.round(2*e/3))}function Xs(e,t,n,i,r){function o(e,n){var o=n.waypoints,a=Us(t,o,e);if(a)return!function(e,t,n){var i,r,o,a,s,p,l=e.index,c=e.point;return!(l<=0||e.bendpoint)&&(o=Mt(i=t[l-1],r=t[l]),a=kt(i,r),s=Math.abs(c.x-o.x),p=Math.abs(c.y-o.y),a&&s<=n&&p<=n)}(a,o,function(e,t){var n,i,r=e.waypoints;return t.index<=0||t.bendpoint?null:(i=kt((n={start:r[t.index-1],end:r[t.index]}).start,n.end))?Ys("h"===i?n.end.x-n.start.x:n.end.y-n.start.y)/2:null}(n,a))?i.start(e,n,a.index,!a.bendpoint):r.start(e,n,a.index),!0}function a(e,t,i){ue.bind(e,t,(function(e){n.triggerMouseEvent(t,e,i),e.stopPropagation()}))}function s(e,n){var i=t.getLayer("overlays"),r=ve('.djs-bendpoints[data-element-id="'+Qo(e.id)+'"]',i);return!r&&n&&(Oe(r=Le("g"),{"data-element-id":e.id}),Te(r).add("djs-bendpoints"),_e(i,r),a(r,"mousedown",e),a(r,"click",e),a(r,"dblclick",e)),r}function p(e,t){return ve('.djs-segment-dragger[data-segment-idx="'+e+'"]',t)}function l(e,t){t.waypoints.forEach((function(t,n){var i=Gs(e);_e(e,i),Kn(i,t.x,t.y)})),Gs(e,"floating")}function c(e,t){for(var n,i,r,o=t.waypoints,s=1;s<o.length;s++)kt(n=o[s-1],i=o[s])&&(Oe(r=Ks(e,n,i),{"data-segment-idx":s}),a(r,"mousemove",t))}function u(e){var t=s(e);return t||(l(t=s(e,!0),e),c(t,e)),t}function d(e){var t=s(e);t&&(!function(e){_(be(".djs-segment-dragger",e),(function(e){Re(e)}))}(t),function(e){_(be(".djs-bendpoint",e),(function(e){Re(e)}))}(t),c(t,e),l(t,e))}function h(e,t,n){var i,r,o=p(t.index,e),a=n[t.index-1],s=n[t.index],l=t.point,c=Mt(a,s),u=kt(a,s);o&&(i=function(e){return ve(".djs-visual",e)}(o),r={x:l.x-c.x,y:l.y-c.y},"v"===u&&(r={x:r.y,y:r.x}),Kn(i,r.x,r.y))}e.on("connection.changed",(function(e){d(e.element)})),e.on("connection.remove",(function(e){var t=s(e.element);t&&Re(t)})),e.on("element.marker.update",(function(e){var t,n=e.element;n.waypoints&&(t=u(n),e.add?Te(t).add(e.marker):Te(t).remove(e.marker))})),e.on("element.mousemove",(function(e){var n,i,r=e.element,o=r.waypoints;if(o){if(n=s(r,!0),!(i=Us(t,o,e.originalEvent)))return;!function(e,t){var n=ve(".floating",e),i=t.point;n&&Kn(n,i.x,i.y)}(n,i),i.bendpoint||h(n,i,o)}})),e.on("element.mousedown",(function(e){if(Oo(e)){var t=e.originalEvent,n=e.element;if(n.waypoints)return o(t,n)}})),e.on("selection.changed",(function(e){var t=e.newSelection[0];t&&t.waypoints&&u(t)})),e.on("element.hover",(function(e){var t=e.element;t.waypoints&&(u(t),n.registerEvent(e.gfx,"mousemove","element.mousemove"))})),e.on("element.out",(function(e){n.unregisterEvent(e.gfx,"mousemove","element.mousemove")})),e.on("element.updateId",(function(e){var t=e.element,n=e.newId;if(t.waypoints){var i=s(t);i&&Oe(i,{"data-element-id":n})}})),this.addHandles=u,this.updateHandles=d,this.getBendpointsContainer=s,this.getSegmentDragger=p}Xs.$inject=["eventBus","canvas","interactionEvents","bendpointMove","connectionSegmentMove"];var Zs=Math.round,Js="reconnectStart",Qs="reconnectEnd",ep="updateWaypoints";function tp(e,t,n,i,r,o){this._injector=e,this.start=function(e,t,o,a){var s,p=n.getGraphics(t),l=t.source,c=t.target,u=t.waypoints,d=(s=a||0!==o?a||o!==u.length-1?ep:Qs:Js)===ep?"connection.updateWaypoints":"connection.reconnect",h=r.allowed(d,{connection:t,source:l,target:c});!1===h&&(h=r.allowed(d,{connection:t,source:c,target:l})),!1!==h&&i.init(e,"bendpoint.move",{data:{connection:t,connectionGfx:p,context:{allowed:h,bendpointIndex:o,connection:t,source:l,target:c,insert:a,type:s}}})},t.on("bendpoint.move.hover",(function(e){var t,n=e.context,i=n.connection,o=i.source,a=i.target,s=e.hover,p=n.type;if(n.hover=s,s){var l=p===ep?"connection.updateWaypoints":"connection.reconnect";if(t=n.allowed=r.allowed(l,{connection:i,source:p===Js?s:o,target:p===Qs?s:a}))return n.source=p===Js?s:o,void(n.target=p===Qs?s:a);!1===t&&(t=n.allowed=r.allowed(l,{connection:i,source:p===Qs?s:a,target:p===Js?s:o})),t&&(n.source=p===Qs?s:a,n.target=p===Js?s:o)}})),t.on(["bendpoint.move.out","bendpoint.move.cleanup"],(function(e){var t=e.context,n=t.type;t.hover=null,t.source=null,t.target=null,n!==ep&&(t.allowed=!1)})),t.on("bendpoint.move.end",(function(e){var t=e.context,n=t.allowed,i=t.bendpointIndex,r=t.connection,a=t.insert,s=r.waypoints.slice(),p=t.source,l=t.target,c=t.type,u=t.hints||{},d={x:Zs(e.x),y:Zs(e.y)};if(!n)return!1;c===ep?(a?s.splice(i,0,d):s[i]=d,u.bendpointMove={insert:a,bendpointIndex:i},s=this.cropWaypoints(r,s),o.updateWaypoints(r,function(e){e=e.slice();for(var t,n,i,r=0;e[r];)t=e[r],n=e[r-1],0===Ot(t,i=e[r+1])||St(n,i,t)?e.splice(r,1):r++;return e}(s),u)):(c===Js?(u.docking="source",np(t)&&(u.docking="target",u.newWaypoints=s.reverse())):c===Qs&&(u.docking="target",np(t)&&(u.docking="source",u.newWaypoints=s.reverse())),o.reconnect(r,p,l,d,u))}),this)}function np(e){var t=e.hover,n=e.source,i=e.target,r=e.type;return r===Js?t&&i&&t===i&&n!==i:r===Qs?t&&n&&t===n&&n!==i:void 0}tp.$inject=["injector","eventBus","canvas","dragging","rules","modeling"],tp.prototype.cropWaypoints=function(e,t){var n=this._injector.get("connectionDocking",!1);if(!n)return t;var i=e.waypoints;return e.waypoints=t,e.waypoints=n.getCroppedWaypoints(e),t=e.waypoints,e.waypoints=i,t};var ip="updateWaypoints",rp="connect-ok",op="connect-not-ok",ap="connect-hover",sp="djs-updating",pp="djs-element-hidden";function lp(e,t,n,i){this._injector=t;var r=t.get("connectionPreview",!1);n.on("bendpoint.move.start",(function(e){var t=e.context,n=t.bendpointIndex,r=t.connection,o=t.insert,a=r.waypoints,s=a.slice();t.waypoints=a,o&&s.splice(n,0,{x:e.x,y:e.y}),r.waypoints=s,Te(t.draggerGfx=Gs(i.getLayer("overlays"))).add("djs-dragging"),i.addMarker(r,pp),i.addMarker(r,sp)})),n.on("bendpoint.move.hover",(function(e){var t=e.context,n=t.allowed,r=t.hover,o=t.type;if(r){if(i.addMarker(r,ap),o===ip)return;n?(i.removeMarker(r,op),i.addMarker(r,rp)):!1===n&&(i.removeMarker(r,rp),i.addMarker(r,op))}})),n.on(["bendpoint.move.out","bendpoint.move.cleanup"],1100,(function(e){var t=e.context,n=t.hover,r=t.target;n&&(i.removeMarker(n,ap),i.removeMarker(n,r?rp:op))})),n.on("bendpoint.move.move",(function(t){var n=t.context,i=n.allowed,o=n.bendpointIndex,a=n.draggerGfx,s=n.hover,p=n.type,l=n.connection,c=l.source,u=l.target,d=l.waypoints.slice(),h={x:t.x,y:t.y},m=n.hints||{},f={};r&&(m.connectionStart&&(f.connectionStart=m.connectionStart),m.connectionEnd&&(f.connectionEnd=m.connectionEnd),"reconnectStart"===p?np(n)?(f.connectionEnd=f.connectionEnd||h,f.source=u,f.target=s||c,d=d.reverse()):(f.connectionStart=f.connectionStart||h,f.source=s||c,f.target=u):"reconnectEnd"===p?np(n)?(f.connectionStart=f.connectionStart||h,f.source=s||u,f.target=c,d=d.reverse()):(f.connectionEnd=f.connectionEnd||h,f.source=c,f.target=s||u):(f.noCropping=!0,f.noLayout=!0,d[o]=h),p===ip&&(d=e.cropWaypoints(l,d)),f.waypoints=d,r.drawPreview(n,i,f)),Kn(a,t.x,t.y)}),this),n.on(["bendpoint.move.end","bendpoint.move.cancel"],1100,(function(e){var t=e.context,n=t.connection,o=t.draggerGfx,a=t.hover,s=t.target,p=t.waypoints;n.waypoints=p,Re(o),i.removeMarker(n,sp),i.removeMarker(n,pp),a&&(i.removeMarker(a,rp),i.removeMarker(a,s?rp:op)),r&&r.cleanUp(t)}))}lp.$inject=["bendpointMove","injector","eventBus","canvas"];var cp="connect-hover",up="djs-updating";function dp(e,t,n){return hp(e,t,e[t]+n)}function hp(e,t,n){return{x:"x"===t?n:e.x,y:"y"===t?n:e.y}}function mp(e){return"x"===e?"y":"x"}function fp(e,t,n){var i,r;return e.original?e.original:(i=fn(t),hp(e,r=mp(n),i[r]))}function yp(e,t,n,i,r,o){var a=e.get("connectionDocking",!1);function s(e,t){if(!a)return t;var n,i=e.waypoints;return e.waypoints=t,n=a.getCroppedWaypoints(e),e.waypoints=i,n}function p(e){r.update("connection",e.connection,e.connectionGfx)}function l(e,t,n){var i=e.newWaypoints,r=function(e,t,n,i){var r=Math.max(t[i],n[i]),o=Math.min(t[i],n[i]);return hp(t,i,Math.min(Math.max(o+20,e[i]),r-20))}(n,i[e.segmentStartIndex+t],i[e.segmentEndIndex+t],mp(e.axis));Kn(e.draggerGfx,r.x,r.y)}this.start=function(e,t,r){var o,a,s,p,l=n.getGraphics(t),c=r-1,u=r,d=t.waypoints,h=d[c],m=d[u],f=Us(n,d,e);(a=kt(h,m))&&(s="v"===a?"x":"y",0===c&&(h=fp(h,t.source,s)),u===d.length-1&&(m=fp(m,t.target,s)),o={connection:t,segmentStartIndex:c,segmentEndIndex:u,segmentStart:h,segmentEnd:m,axis:s,dragPosition:p=f?f.point:{x:(h.x+m.x)/2,y:(h.y+m.y)/2}},i.init(e,p,"connectionSegment.move",{cursor:"x"===s?"resize-ew":"resize-ns",data:{connection:t,connectionGfx:l,context:o}}))},t.on("connectionSegment.move.start",(function(e){var t=e.context,i=e.connection,r=n.getLayer("overlays");t.originalWaypoints=i.waypoints.slice(),t.draggerGfx=Ks(r,t.segmentStart,t.segmentEnd),Te(t.draggerGfx).add("djs-dragging"),n.addMarker(i,up)})),t.on("connectionSegment.move.move",(function(e){var t,n,i=e.context,r=i.connection,o=i.segmentStartIndex,a=i.segmentEndIndex,c=i.segmentStart,u=i.segmentEnd,d=i.axis,h=i.originalWaypoints.slice(),m=dp(c,d,e["d"+d]),f=dp(u,d,e["d"+d]),y=h.length,g=0;h[o]=m,h[a]=f,o<2&&(t=yn(r.source,m),1===o?"intersect"===t&&(h.shift(),h[0]=m,g--):"intersect"!==t&&(h.unshift(c),g++)),a>y-3&&(n=yn(r.target,f),a===y-2?"intersect"===n&&(h.pop(),h[h.length-1]=f):"intersect"!==n&&h.push(u)),i.newWaypoints=r.waypoints=s(r,h),l(i,g,e),i.newSegmentStartIndex=o+g,p(e)})),t.on("connectionSegment.move.hover",(function(e){e.context.hover=e.hover,n.addMarker(e.hover,cp)})),t.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],(function(e){var t=e.context.hover;t&&n.removeMarker(t,cp)})),t.on("connectionSegment.move.cleanup",(function(e){var t=e.context,i=t.connection;t.draggerGfx&&Re(t.draggerGfx),n.removeMarker(i,up)})),t.on(["connectionSegment.move.cancel","connectionSegment.move.end"],(function(e){var t=e.context;t.connection.waypoints=t.originalWaypoints,p(e)})),t.on("connectionSegment.move.end",(function(e){var t=e.context,n=t.connection,i=t.newWaypoints,r=t.newSegmentStartIndex,a=function(e,t){var n=0;return{waypoints:e.filter((function(i,r){return!St(e[r-1],e[r+1],i)||(n=r<=t?n-1:n,!1)})),segmentOffset:n}}(i=i.map((function(e){return{original:e.original,x:Math.round(e.x),y:Math.round(e.y)}})),r),p=s(n,a.waypoints),l=a.segmentOffset,c={segmentMove:{segmentStartIndex:t.segmentStartIndex,newSegmentStartIndex:r+l}};o.updateWaypoints(n,p,c)}))}yp.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];var gp=Math.abs,vp=Math.round;function bp(e){return{x:e.x,y:e.y}}function xp(e){return{x:e.x+e.width,y:e.y+e.height}}function wp(e,t){return!e||isNaN(e.x)||isNaN(e.y)?t:{x:vp(e.x+e.width/2),y:vp(e.y+e.height/2)}}function _p(e,t){var n=e.snapped;return!!n&&("string"==typeof t?n[t]:n.x&&n.y)}function Ep(e,t,n){if("string"!=typeof t)throw new Error("axis must be in [x, y]");if("number"!=typeof n&&!1!==n)throw new Error("value must be Number or false");var i,r=e[t],o=e.snapped=e.snapped||{};return!1===n?o[t]=!1:(o[t]=!0,i=n-r,e[t]+=i,e["d"+t]+=i),r}function Pp(e){return e.children||[]}var Op=Math.abs,Sp=Math.round;function kp(e){function t(e,t){if(d(e)){for(var n=e.length;n--;)if(Op(e[n]-t)<=10)return e[n]}else{var i=t%(e=+e);if(i<10)return t-i;if(i>e-10)return t-i+e}return t}function n(e){if(e.width)return{x:Sp(e.width/2+e.x),y:Sp(e.height/2+e.y)}}e.on("connectionSegment.move.move",1500,(function(e){var i,r,o=function(e){var t=e.snapPoints,i=e.connection,r=i.waypoints,o=e.segmentStart,a=e.segmentStartIndex,s=e.segmentEnd,p=e.segmentEndIndex,l=e.axis;if(t)return t;var c=[r[a-1],o,s,r[p+1]];return a<2&&c.unshift(n(i.source)),p>r.length-3&&c.unshift(n(i.target)),e.snapPoints=t={horizontal:[],vertical:[]},_(c,(function(e){e&&(e=e.original||e,"y"===l&&t.horizontal.push(e.y),"x"===l&&t.vertical.push(e.x))})),t}(e.context),a=e.x,s=e.y;if(o){var p=a-(i=t(o.vertical,a)),l=s-(r=t(o.horizontal,s));q(e,{dx:e.dx-p,dy:e.dy-l,x:i,y:r}),(p||-1!==o.vertical.indexOf(a))&&Ep(e,"x",i),(l||-1!==o.horizontal.indexOf(s))&&Ep(e,"y",r)}})),e.on(["bendpoint.move.move","bendpoint.move.end"],1500,(function(e){var i,r,o=e.context,a=function(e){var t=e.snapPoints,n=e.connection.waypoints,i=e.bendpointIndex;if(t)return t;var r=[n[i-1],n[i+1]];return e.snapPoints=t={horizontal:[],vertical:[]},_(r,(function(e){e&&(e=e.original||e,t.horizontal.push(e.y),t.vertical.push(e.x))})),t}(o),s=o.hover,p=s&&n(s),l=e.x,c=e.y;if(a){var u=l-(i=t(p?a.vertical.concat([p.x]):a.vertical,l)),d=c-(r=t(p?a.horizontal.concat([p.y]):a.horizontal,c));q(e,{dx:e.dx-u,dy:e.dy-d,x:e.x-u,y:e.y-d}),(u||-1!==a.vertical.indexOf(l))&&Ep(e,"x",i),(d||-1!==a.horizontal.indexOf(c))&&Ep(e,"y",r)}}))}kp.$inject=["eventBus"];var Cp={__depends__:[Ds,Is],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",Xs],bendpointMove:["type",tp],bendpointMovePreview:["type",lp],connectionSegmentMove:["type",yp],bendpointSnapping:["type",kp]};function Mp(e,t,n,i){function r(e,t){return i.allowed("connection.create",{source:e,target:t})}e.on("connect.hover",(function(e){var t,n=e.context,i=n.start,o=e.hover;if(n.hover=o,!u(t=n.canExecute=r(i,o))){if(!1!==t)return n.source=i,void(n.target=o);u(t=n.canExecute=r(o,i))||!1!==t&&(n.source=o,n.target=i)}})),e.on(["connect.out","connect.cleanup"],(function(e){var t=e.context;t.hover=null,t.source=null,t.target=null,t.canExecute=!1})),e.on("connect.end",(function(e){var t=e.context,i=t.canExecute,r=t.connectionStart,o={x:e.x,y:e.y},a=t.source,s=t.target;if(!i)return!1;var p=null,l={connectionStart:Tp(t)?o:r,connectionEnd:Tp(t)?r:o};h(i)&&(p=i),n.connect(a,s,p,l)})),this.start=function(e,n,i,r){h(i)||(r=i,i=fn(n)),t.init(e,"connect",{autoActivate:r,data:{shape:n,context:{start:n,connectionStart:i}}})}}function Tp(e){var t=e.hover,n=e.source,i=e.target;return t&&n&&t===n&&n!==i}Mp.$inject=["eventBus","dragging","modeling","rules"];var Ap="connect-ok",Rp="connect-not-ok";function zp(e,t,n){var i=e.get("connectionPreview",!1);i&&t.on("connect.move",(function(e){var t=e.context,n=t.canExecute,r=t.hover,o=t.source,a=t.start,s=t.startPosition,p=t.target,l=t.connectionStart||s,c=t.connectionEnd||{x:e.x,y:e.y},u=l,d=c;Tp(t)&&(u=c,d=l),i.drawPreview(t,n,{source:o||a,target:p||r,connectionStart:u,connectionEnd:d})})),t.on("connect.hover",900,(function(e){var t=e.context,i=e.hover,r=t.canExecute;null!==r&&n.addMarker(i,r?Ap:Rp)})),t.on(["connect.out","connect.cleanup"],1100,(function(e){var t=e.hover;t&&(n.removeMarker(t,Ap),n.removeMarker(t,Rp))})),i&&t.on("connect.cleanup",(function(e){i.cleanUp(e.context)}))}zp.$inject=["injector","eventBus","canvas"];var Dp={__depends__:[$o,Is,Ds],__init__:["connectPreview"],connect:["type",Mp],connectPreview:["type",zp]};function jp(e,t,n,i){this._canvas=t,this._graphicsFactory=n,this._elementFactory=i,this._connectionDocking=e.get("connectionDocking",!1),this._layouter=e.get("layouter",!1)}jp.$inject=["injector","canvas","graphicsFactory","elementFactory"],jp.prototype.drawPreview=function(e,t,n){n=n||{};var i,r=e.connectionPreviewGfx,o=e.getConnection,a=n.source,s=n.target,p=n.waypoints,l=n.connectionStart,c=n.connectionEnd,u=n.noLayout,d=n.noCropping,h=n.noNoop,m=this;r||(r=e.connectionPreviewGfx=this.createConnectionPreviewGfx()),ze(r),o||(o=e.getConnection=function(e){var t={};return function(n){var i=JSON.stringify(n),r=t[i];return r||(r=t[i]=e.apply(null,arguments)),r}}((function(e,t,n){return m.getConnection(e,t,n)}))),t&&(i=o(t,a,s)),i?(i.waypoints=p||[],this._layouter&&!u&&(i.waypoints=this._layouter.layoutConnection(i,{source:a,target:s,connectionStart:l,connectionEnd:c,waypoints:n.waypoints||i.waypoints})),i.waypoints&&i.waypoints.length||(i.waypoints=[a?fn(a):l,s?fn(s):c]),this._connectionDocking&&(a||s)&&!d&&(i.waypoints=this._connectionDocking.getCroppedWaypoints(i,a,s)),this._graphicsFactory.drawConnection(r,i)):!h&&this.drawNoopPreview(r,n)},jp.prototype.drawNoopPreview=function(e,t){var n=t.source,i=t.target,r=t.connectionStart||fn(n),o=t.connectionEnd||fn(i),a=this.cropWaypoints(r,o,n,i);_e(e,this.createNoopConnection(a[0],a[1]))},jp.prototype.cropWaypoints=function(e,t,n,i){var r=this._graphicsFactory,o=n&&r.getShapePath(n),a=i&&r.getShapePath(i),s=r.getConnectionPath({waypoints:[e,t]});return[e=n&&gn(o,s,!0)||e,t=i&&gn(a,s,!1)||t]},jp.prototype.cleanUp=function(e){e&&e.connectionPreviewGfx&&Re(e.connectionPreviewGfx)},jp.prototype.getConnection=function(e){var t=function(e){return h(e)?e:{}}(e);return this._elementFactory.createConnection(t)},jp.prototype.createConnectionPreviewGfx=function(){var e=Le("g");return Oe(e,{pointerEvents:"none"}),Te(e).add("djs-connection-preview"),_e(this._canvas.getActiveLayer(),e),e},jp.prototype.createNoopConnection=function(e,t){var n=Le("polyline");return Oe(n,{stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"}),Oe(n,{points:[e.x,e.y,t.x,t.y]}),n};var Bp={__init__:["connectionPreview"],connectionPreview:["type",jp]};function Np(e,t){return(function(e){return e.originalEvent||e.srcEvent}(e)||e).button===t}function Lp(e){return Np(e,0)}function Ip(e){for(var t,n="",i=0;t=e[i];i++)n+=t.x+","+t.y+" ";return n}function $p(e){return!0}function Fp(e){return Lp(e)||function(e){return Np(e,1)}(e)}function Vp(e,t,n){var i=this;function r(n,i,r){var o,a;(function(e,t){return!(p[e]||Lp)(t)})(n,i)||(r?a=t.getGraphics(r):(o=i.delegateTarget||i.target)&&(a=o,r=t.get(a)),a&&r&&!1===e.fire(n,{element:r,gfx:a,originalEvent:i})&&(i.stopPropagation(),i.preventDefault()))}var o={};function a(e){return o[e]}var s={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},p={"element.contextmenu":$p,"element.mousedown":Fp,"element.mouseup":Fp,"element.click":Fp,"element.dblclick":Fp};function l(e,t,n,i){var a=o[n]=function(e){r(n,e)};i&&(p[n]=i),a.$delegate=me.bind(e,"svg, .djs-element",t,a)}function c(e,t,n){var i=a(n);i&&me.unbind(e,t,i.$delegate)}e.on("canvas.destroy",(function(e){var t;t=e.svg,_(s,(function(e,n){c(t,n,e)}))})),e.on("canvas.init",(function(e){var t;t=e.svg,_(s,(function(e,n){l(t,n,e)}))})),e.on(["shape.added","connection.added"],(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.createHit",{element:n,gfx:i})})),e.on(["shape.changed","connection.changed"],500,(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.updateHit",{element:n,gfx:i})})),e.on("interactionEvents.createHit",500,(function(e){var t=e.element,n=e.gfx;i.createDefaultHit(t,n)})),e.on("interactionEvents.updateHit",(function(e){var t=e.element,n=e.gfx;i.updateDefaultHit(t,n)}));var u=m("djs-hit djs-hit-stroke"),d=m("djs-hit djs-hit-click-stroke"),h={all:m("djs-hit djs-hit-all"),"click-stroke":d,stroke:u};function m(e,t){return t=q({stroke:"white",strokeWidth:15},t||{}),n.cls(e,["no-fill","no-border"],t)}function f(e,t){var n=h[t];if(!n)throw new Error("invalid hit type <"+t+">");return Oe(e,n),e}function y(e,t){_e(e,t)}this.removeHits=function(e){_(be(".djs-hit",e),Re)},this.createDefaultHit=function(e,t){var n,i=e.waypoints,r=e.isFrame;return i?this.createWaypointsHit(t,i):(n=r?"stroke":"all",this.createBoxHit(t,n,{width:e.width,height:e.height}))},this.createWaypointsHit=function(e,t){var n,i,r,o=(n=t,Oe(r=Le("polyline"),{points:Ip(n)}),i&&Oe(r,i),r);return f(o,"stroke"),y(e,o),o},this.createBoxHit=function(e,t,n){n=q({x:0,y:0},n);var i=Le("rect");return f(i,t),Oe(i,n),y(e,i),i},this.updateDefaultHit=function(e,t){var n=ve(".djs-hit",t);if(n)return e.waypoints?function(e,t){Oe(e,{points:Ip(t)})}(n,e.waypoints):Oe(n,{width:e.width,height:e.height}),n},this.fire=r,this.triggerMouseEvent=function(e,t,n){var i=s[e];if(!i)throw new Error("unmapped DOM event name <"+e+">");return r(i,t,n)},this.mouseHandler=a,this.registerEvent=l,this.unregisterEvent=c}Vp.$inject=["eventBus","elementRegistry","styles"];var Hp={__init__:["interactionEvents"],interactionEvents:["type",Vp]},qp=Math.min,Up=Math.max;function Gp(e){e.preventDefault()}function Wp(e){e.stopPropagation()}function Kp(e){this.container=e.container,this.parent=fe('<div class="djs-direct-editing-parent"><div class="djs-direct-editing-content" contenteditable="true"></div></div>'),this.content=ve("[contenteditable]",this.parent),this.keyHandler=e.keyHandler||function(){},this.resizeHandler=e.resizeHandler||function(){},this.autoResize=F(this.autoResize,this),this.handlePaste=F(this.handlePaste,this)}function Yp(e,t){this._eventBus=e,this._providers=[],this._textbox=new Kp({container:t.getContainer(),keyHandler:F(this._handleKey,this),resizeHandler:F(this._handleResize,this)})}Kp.prototype.create=function(e,t,n,i){var r=this.parent,o=this.content,a=this.container;i=this.options=i||{};var s=W(t=this.style=t||{},["width","height","maxWidth","maxHeight","minWidth","minHeight","left","top","backgroundColor","position","overflow","border","wordWrap","textAlign","outline","transform"]);q(r.style,{width:e.width+"px",height:e.height+"px",maxWidth:e.maxWidth+"px",maxHeight:e.maxHeight+"px",minWidth:e.minWidth+"px",minHeight:e.minHeight+"px",left:e.x+"px",top:e.y+"px",backgroundColor:"#ffffff",position:"absolute",overflow:"visible",border:"1px solid #ccc",boxSizing:"border-box",wordWrap:"normal",textAlign:"center",outline:"none"},s);var p=W(t,["fontFamily","fontSize","fontWeight","lineHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);return q(o.style,{boxSizing:"border-box",width:"100%",outline:"none",wordWrap:"break-word"},p),i.centerVertically&&q(o.style,{position:"absolute",top:"50%",transform:"translate(0, -50%)"},p),o.innerText=n,ue.bind(o,"keydown",this.keyHandler),ue.bind(o,"mousedown",Wp),ue.bind(o,"paste",this.handlePaste),i.autoResize&&ue.bind(o,"input",this.autoResize),i.resizable&&this.resizable(t),a.appendChild(r),this.setSelection(o.lastChild,o.lastChild&&o.lastChild.length),r},Kp.prototype.handlePaste=function(e){var t,n=this.options,i=this.style;if(e.preventDefault(),t=e.clipboardData?e.clipboardData.getData("text/plain"):window.clipboardData.getData("Text"),this.insertText(t),n.autoResize){var r=this.autoResize(i);r&&this.resizeHandler(r)}},Kp.prototype.insertText=function(e){e=e.replace(/\r\n|\r|\n/g,"\n"),document.execCommand("insertText",!1,e)||this._insertTextIE(e)},Kp.prototype._insertTextIE=function(e){var t,n,i,r=this.getSelection(),o=r.startContainer,a=r.endContainer,s=r.startOffset,p=r.endOffset,l=r.commonAncestorContainer,c=(t=l.childNodes,[].slice.call(t));if(function(e){return e.nodeType===Node.TEXT_NODE}(l)){var u=o.textContent;o.textContent=u.substring(0,s)+e+u.substring(p),n=o,i=s+e.length}else if(o===this.content&&a===this.content){var d=document.createTextNode(e);this.content.insertBefore(d,c[s]),n=d,i=d.textContent.length}else{var h=c.indexOf(o),m=c.indexOf(a);c.forEach((function(t,n){n===h?t.textContent=o.textContent.substring(0,s)+e+a.textContent.substring(p):n>h&&n<=m&&xe(t)})),n=o,i=s+e.length}n&&void 0!==i&&setTimeout((function(){self.setSelection(n,i)}))},Kp.prototype.autoResize=function(){var e=this.parent,t=this.content,n=parseInt(this.style.fontSize)||12;if(t.scrollHeight>e.offsetHeight||t.scrollHeight<e.offsetHeight-n){var i=e.getBoundingClientRect(),r=t.scrollHeight;e.style.height=r+"px",this.resizeHandler({width:i.width,height:i.height,dx:0,dy:r-i.height})}},Kp.prototype.resizable=function(){var e=this,t=this.parent,n=this.resizeHandle,i=parseInt(this.style.minWidth)||0,r=parseInt(this.style.minHeight)||0,o=parseInt(this.style.maxWidth)||1/0,a=parseInt(this.style.maxHeight)||1/0;if(!n){var s,p,l,c;n=this.resizeHandle=fe('<div class="djs-direct-editing-resize-handle"></div>');var u=function(n){Gp(n),Wp(n);var u=qp(Up(l+n.clientX-s,i),o),d=qp(Up(c+n.clientY-p,r),a);t.style.width=u+"px",t.style.height=d+"px",e.resizeHandler({width:l,height:c,dx:n.clientX-s,dy:n.clientY-p})},d=function(e){Gp(e),Wp(e),ue.unbind(document,"mousemove",u,!1),ue.unbind(document,"mouseup",d,!1)};ue.bind(n,"mousedown",(function(e){Gp(e),Wp(e),s=e.clientX,p=e.clientY;var n=t.getBoundingClientRect();l=n.width,c=n.height,ue.bind(document,"mousemove",u),ue.bind(document,"mouseup",d)}))}q(n.style,{position:"absolute",bottom:"0px",right:"0px",cursor:"nwse-resize",width:"0",height:"0",borderTop:(parseInt(this.style.fontSize)/4||3)+"px solid transparent",borderRight:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderBottom:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderLeft:(parseInt(this.style.fontSize)/4||3)+"px solid transparent"}),t.appendChild(n)},Kp.prototype.destroy=function(){var e=this.parent,t=this.content,n=this.resizeHandle;t.innerText="",e.removeAttribute("style"),t.removeAttribute("style"),ue.unbind(t,"keydown",this.keyHandler),ue.unbind(t,"mousedown",Wp),ue.unbind(t,"input",this.autoResize),ue.unbind(t,"paste",this.handlePaste),n&&(n.removeAttribute("style"),xe(n)),xe(e)},Kp.prototype.getValue=function(){return this.content.innerText.trim()},Kp.prototype.getSelection=function(){return window.getSelection().getRangeAt(0)},Kp.prototype.setSelection=function(e,t){var n=document.createRange();null===e?n.selectNodeContents(this.content):(n.setStart(e,t),n.setEnd(e,t));var i=window.getSelection();i.removeAllRanges(),i.addRange(n)},Yp.$inject=["eventBus","canvas"],Yp.prototype.registerProvider=function(e){this._providers.push(e)},Yp.prototype.isActive=function(){return!!this._active},Yp.prototype.cancel=function(){this._active&&(this._fire("cancel"),this.close())},Yp.prototype._fire=function(e,t){this._eventBus.fire("directEditing."+e,t||{active:this._active})},Yp.prototype.close=function(){this._textbox.destroy(),this._fire("deactivate"),this._active=null,this.resizable=void 0},Yp.prototype.complete=function(){var e=this._active;if(e){var t,n=e.context.bounds,i=this.$textbox.getBoundingClientRect(),r=this.getValue();r===e.context.text&&i.height===n.height&&i.width===n.width||(t=this._textbox.container.getBoundingClientRect(),e.provider.update(e.element,r,e.context.text,{x:i.left-t.left,y:i.top-t.top,width:i.width,height:i.height})),this._fire("complete"),this.close()}},Yp.prototype.getValue=function(){return this._textbox.getValue()},Yp.prototype._handleKey=function(e){e.stopPropagation();var t=e.keyCode||e.charCode;return 27===t?(e.preventDefault(),this.cancel()):13!==t||e.shiftKey?void 0:(e.preventDefault(),this.complete())},Yp.prototype._handleResize=function(e){this._fire("resize",e)},Yp.prototype.activate=function(e){var t;this.isActive()&&this.cancel();var n=b(this._providers,(function(n){return(t=n.activate(e))?n:null}));return t&&(this.$textbox=this._textbox.create(t.bounds,t.style,t.text,t.options),this._active={element:e,context:t,provider:n},t.options&&t.options.resizable&&(this.resizable=!0),this._fire("activate")),!!t};var Xp={__depends__:[Hp],__init__:["directEditing"],directEditing:["type",Yp]},Zp=".entry";function Jp(e,t,n){this._eventBus=t,this._overlays=n;var i=c(e&&e.scale)?e.scale:{min:1,max:1.5};this._overlaysConfig={position:{right:-9,top:-6},scale:i},this._current=null,this._init()}Jp.$inject=["config.contextPad","eventBus","overlays"],Jp.prototype._init=function(){var e=this._eventBus,t=this;e.on("selection.changed",(function(e){var n=e.newSelection;1===n.length?t.open(n[0]):t.close()})),e.on("elements.delete",(function(e){_(e.elements,(function(e){t.isOpen(e)&&t.close()}))})),e.on("element.changed",(function(e){var n=e.element,i=t._current;i&&i.element===n&&t.open(n,!0)}))},Jp.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("contextPad.getProviders",e,(function(e){e.providers.push(t)}))},Jp.prototype.getEntries=function(e){var t=this._getProviders(),n={};return _(t,(function(t){var i=t.getContextPadEntries(e);f(i)?n=i(n):_(i,(function(e,t){n[t]=e}))})),n},Jp.prototype.trigger=function(e,t,n){var i,r,o=this._current.element,a=this._current.entries,s=t.delegateTarget||t.target;if(!s)return t.preventDefault();if(i=a[X(s,"data-action")].action,r=t.originalEvent||t,f(i)){if("click"===e)return i(r,o,n)}else if(i[e])return i[e](r,o,n);t.preventDefault()},Jp.prototype.open=function(e,t){!t&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))},Jp.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},Jp.prototype._updateAndOpen=function(e){var t=this.getEntries(e),n=this.getPad(e),i=n.html;_(t,(function(e,t){var n,r=e.group||"default",o=fe(e.html||'<div class="entry" draggable="true"></div>');X(o,"data-action",t),(n=ve("[data-group="+r+"]",i))||(n=fe('<div class="group" data-group="'+r+'"></div>'),i.appendChild(n)),n.appendChild(o),e.className&&function(e,t){var n=te(e);(d(t)?t:t.split(/\s+/g)).forEach((function(e){n.add(e)}))}(o,e.className),e.title&&X(o,"title",e.title),e.imageUrl&&o.appendChild(fe('<img src="'+e.imageUrl+'">'))})),te(i).add("open"),this._current={element:e,pad:n,entries:t},this._eventBus.fire("contextPad.open",{current:this._current})},Jp.prototype.getPad=function(e){if(this.isOpen())return this._current.pad;var t=this,n=this._overlays,i=fe('<div class="djs-context-pad"></div>'),r=q({html:i},this._overlaysConfig);me.bind(i,Zp,"click",(function(e){t.trigger("click",e)})),me.bind(i,Zp,"dragstart",(function(e){t.trigger("dragstart",e)})),ue.bind(i,"mousedown",(function(e){e.stopPropagation()})),this._overlayId=n.add(e,"context-pad",r);var o=n.get(this._overlayId);return this._eventBus.fire("contextPad.create",{element:e,pad:o}),o},Jp.prototype.close=function(){this.isOpen()&&(this._overlays.remove(this._overlayId),this._overlayId=null,this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},Jp.prototype.isOpen=function(e){return!(!this._current||e&&this._current.element!==e)};var Qp={__depends__:[Ao,Wo],contextPad:["type",Jp]},el=["marker-start","marker-mid","marker-end"],tl=["circle","ellipse","line","path","polygon","polyline","rect"];function nl(e,t,n,i){this._elementRegistry=e,this._canvas=n,this._styles=i,this._clonedMarkers={};var r=this;t.on("drag.cleanup",(function(){_(r._clonedMarkers,(function(e){Re(e)})),r._clonedMarkers={}}))}nl.$inject=["elementRegistry","eventBus","canvas","styles"],nl.prototype.getGfx=function(e){return this._elementRegistry.getGraphics(e)},nl.prototype.addDragger=function(e,t,n){var i=De(n=n||this.getGfx(e)),r=n.getBoundingClientRect();return this._cloneMarkers(Gn(i)),Oe(i,this._styles.cls("djs-dragger",[],{x:r.top,y:r.left})),_e(t,i),i},nl.prototype.addFrame=function(e,t){var n=Le("rect",{class:"djs-resize-overlay",width:e.width,height:e.height,x:e.x,y:e.y});return _e(t,n),n},nl.prototype._cloneMarkers=function(e){var t=this;if(e.childNodes)for(var n=0;n<e.childNodes.length;n++)t._cloneMarkers(e.childNodes[n]);(function(e){return-1!==tl.indexOf(e.nodeName)})(e)&&el.forEach((function(n){if(Oe(e,n)){var i=function(e,t,n){return ve("marker#"+(i=Oe(e,t),i.match(/url\(['"]?#([^'"]*)['"]?\)/)[1]),n||document);var i}(e,n,t._canvas.getContainer());t._cloneMarker(e,i,n)}}))},nl.prototype._cloneMarker=function(e,t,n){var i=t.id,r=this._clonedMarkers[i];if(!r){var o=i+"-clone";(r=De(t)).id=o,Te(r).add("djs-dragger").add("djs-dragger-marker"),this._clonedMarkers[i]=r;var a=ve("defs",this._canvas._svg);a||(a=Le("defs"),_e(this._canvas._svg,a)),_e(a,r)}Oe(e,n,"url(#"+this._clonedMarkers[i].id+")")};var il={__init__:["previewSupport"],previewSupport:["type",nl]},rl="drop-ok",ol="drop-not-ok",al="attach-ok",sl="new-parent",pl="create";function ll(e,t,n,i,r){function o(t,n){[al,rl,ol,sl].forEach((function(i){i===n?e.addMarker(t,i):e.removeMarker(t,i)}))}function a(){var e=t.context();e&&e.prefix===pl&&t.cancel()}n.on(["create.move","create.hover"],(function(e){var t=e.context,n=t.elements,i=e.hover,a=t.source,s=t.hints||{};if(!i)return t.canExecute=!1,void(t.target=null);cl(e);var p={x:e.x,y:e.y},l=t.canExecute=i&&function(e,t,n,i,o){if(!t)return!1;var a=b(e=w(e,(function(t){var n=t.labelTarget;return!(t.parent||function(e){return!!e.labelTarget}(t)&&-1!==e.indexOf(n))})),(function(e){return!ul(e)})),s=!1,p=!1,l=!1;dl(e)&&(s=r.allowed("shape.attach",{position:n,shape:a,target:t})),s||(l=dl(e)?r.allowed("shape.create",{position:n,shape:a,source:i,target:t}):r.allowed("elements.create",{elements:e,position:n,target:t}));var c=o.connectionTarget;return l||s?(a&&i&&(p=r.allowed("connection.create",{source:c===i?a:i,target:c===i?i:a,hints:{targetParent:t,targetAttach:s}})),{attach:s,connect:p}):(null===l||null===s)&&null}(n,i,p,a,s);i&&null!==l&&(t.target=i,l&&l.attach?o(i,al):o(i,l?sl:ol))})),n.on(["create.end","create.out","create.cleanup"],(function(e){var t=e.hover;t&&o(t,null)})),n.on("create.end",(function(e){var t=e.context,n=t.source,r=t.shape,o=t.elements,a=t.target,s=t.canExecute,p=s&&s.attach,l=s&&s.connect,c=t.hints||{};if(!1===s||!a)return!1;cl(e);var u={x:e.x,y:e.y};r=l?i.appendShape(n,r,u,a,{attach:p,connection:!0===l?{}:l,connectionTarget:c.connectionTarget}):b(o=i.createElements(o,u,a,q({},c,{attach:p})),(function(e){return!ul(e)})),q(t,{elements:o,shape:r}),q(e,{elements:o,shape:r})})),n.on("create.init",(function(){n.on("elements.changed",a),n.once(["create.cancel","create.end"],2e3,(function(){n.off("elements.changed",a)}))})),this.start=function(e,n,i){d(n)||(n=[n]);var r=b(n,(function(e){return!ul(e)}));if(r){i=q({elements:n,hints:{},shape:r},i||{}),_(n,(function(e){m(e.x)||(e.x=0),m(e.y)||(e.y=0)}));var o=yt(w(n,(function(e){return!e.hidden})));_(n,(function(e){ul(e)&&(e.waypoints=k(e.waypoints,(function(e){return{x:e.x-o.x-o.width/2,y:e.y-o.y-o.height/2}}))),q(e,{x:e.x-o.x-o.width/2,y:e.y-o.y-o.height/2})})),t.init(e,pl,{cursor:"grabbing",autoActivate:!0,data:{shape:r,elements:n,context:i}})}}}function cl(e){var t=e.context.createConstraints;t&&(t.left&&(e.x=Math.max(e.x,t.left)),t.right&&(e.x=Math.min(e.x,t.right)),t.top&&(e.y=Math.max(e.y,t.top)),t.bottom&&(e.y=Math.min(e.y,t.bottom)))}function ul(e){return!!e.waypoints}function dl(e){return e&&1===e.length&&!ul(e[0])}ll.$inject=["canvas","dragging","eventBus","modeling","rules"];function hl(e,t,n,i,r){t.on("create.move",750,(function(t){var o=t.hover,a=t.context,s=a.elements,p=a.dragGroup;p||(p=a.dragGroup=function(e){var t=Le("g");Oe(t,r.cls("djs-drag-group",["no-events"]));var o=Le("g");return e.forEach((function(e){var r;e.hidden||(e.waypoints?(r=n._createContainer("connection",o),n.drawConnection(Gn(r),e)):(r=n._createContainer("shape",o),n.drawShape(Gn(r),e),Kn(r,e.x,e.y)),i.addDragger(e,t,r))})),t}(s)),o?(p.parentNode||_e(e.getActiveLayer(),p),Kn(p,t.x,t.y)):Re(p)})),t.on("create.cleanup",(function(e){var t=e.context.dragGroup;t&&Re(t)}))}hl.$inject=["canvas","eventBus","graphicsFactory","previewSupport","styles"];var ml={__depends__:[Ds,il,Is,$o],__init__:["create","createPreview"],create:["type",ll],createPreview:["type",hl]},fl="data-id",yl=["contextPad.close","canvas.viewbox.changing","commandStack.changed"];function gl(e,t,n){var i=c(e&&e.scale)?e.scale:{min:1,max:1.5};this._config={scale:i},this._eventBus=t,this._canvas=n,this._providers={},this._current={}}gl.$inject=["config.popupMenu","eventBus","canvas"],gl.prototype.registerProvider=function(e,t,n){n||(n=t,t=1e3),this._eventBus.on("popupMenu.getProviders."+e,t,(function(e){e.providers.push(n)}))},gl.prototype.isEmpty=function(e,t){if(!e)throw new Error("element parameter is missing");if(!t)throw new Error("providerId parameter is missing");var n=this._getProviders(t);if(!n)return!0;var i=this._getEntries(e,n),r=this._getHeaderEntries(e,n),o=M(i)>0,a=r&&M(r)>0;return!o&&!a},gl.prototype.open=function(e,t,n){var i=this._getProviders(t);if(!e)throw new Error("Element is missing");if(!i||!i.length)throw new Error("No registered providers for: "+t);if(!n)throw new Error("the position argument is missing");this.isOpen()&&this.close(),this._emit("open");var r=this._current={className:t,element:e,position:n},o=this._getEntries(e,i),a=this._getHeaderEntries(e,i);r.entries=q({},o,a),r.container=this._createContainer(),M(a)&&r.container.appendChild(this._createEntries(a,"djs-popup-header")),M(o)&&r.container.appendChild(this._createEntries(o,"djs-popup-body"));var s=this._canvas.getContainer();this._attachContainer(r.container,s,n.cursor),this._bindAutoClose()},gl.prototype.close=function(){this.isOpen()&&(this._emit("close"),this._unbindAutoClose(),xe(this._current.container),this._current.container=null)},gl.prototype.isOpen=function(){return!!this._current.container},gl.prototype.trigger=function(e){e.preventDefault();var t=X(e.delegateTarget||e.target,fl),n=this._getEntry(t);if(n.action)return n.action.call(null,e,n)},gl.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"popupMenu.getProviders."+e,providers:[]});return this._eventBus.fire(t),t.providers},gl.prototype._getEntries=function(e,t){var n={};return _(t,(function(t){if(t.getPopupMenuEntries){var i=t.getPopupMenuEntries(e);f(i)?n=i(n):_(i,(function(e,t){n[t]=e}))}else _(t.getEntries(e),(function(e){var t=e.id;if(!t)throw new Error("every entry must have the id property set");n[t]=K(e,["id"])}))})),n},gl.prototype._getHeaderEntries=function(e,t){var n={};return _(t,(function(t){if(t.getPopupMenuHeaderEntries){var i=t.getPopupMenuHeaderEntries(e);f(i)?n=i(n):_(i,(function(e,t){n[t]=e}))}else{if(!t.getHeaderEntries)return;_(t.getHeaderEntries(e),(function(e){var t=e.id;if(!t)throw new Error("every entry must have the id property set");n[t]=K(e,["id"])}))}})),n},gl.prototype._getEntry=function(e){var t=this._current.entries[e];if(!t)throw new Error("entry not found");return t},gl.prototype._emit=function(e){this._eventBus.fire("popupMenu."+e)},gl.prototype._createContainer=function(){var e=fe('<div class="djs-popup">'),t=this._current.position,n=this._current.className;return q(e.style,{position:"absolute",left:t.x+"px",top:t.y+"px",visibility:"hidden"}),te(e).add(n),e},gl.prototype._attachContainer=function(e,t,n){var i=this;me.bind(e,".entry","click",(function(e){i.trigger(e)})),this._updateScale(e),t.appendChild(e),n&&this._assureIsInbounds(e,n)},gl.prototype._updateScale=function(e){var t,n,i=this._canvas.zoom(),r=this._config.scale,o=i;!0!==r&&(!1===r?(t=1,n=1):(t=r.min,n=r.max),c(t)&&i<t&&(o=t),c(n)&&i>n&&(o=n)),function(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(n){e.style[n+"transform"]=t}))}(e,"scale("+o+")")},gl.prototype._assureIsInbounds=function(e,t){var n,i,r=this._canvas._container.getBoundingClientRect(),o=e.offsetLeft,a=e.offsetTop,s=e.scrollWidth,p=e.scrollHeight,l={},c=t.x-r.left,u=t.y-r.top;o+s>r.width&&(l.x=!0),a+p>r.height&&(l.y=!0),l.x&&l.y?(n=c-s+"px",i=u-p+"px"):l.x?(n=c-s+"px",i=u+"px"):l.y&&u<p?(n=c+"px",i="10px"):l.y&&(n=c+"px",i=u-p+"px"),q(e.style,{left:n,top:i},{visibility:"visible","z-index":1e3})},gl.prototype._createEntries=function(e,t){var n=fe("<div>"),i=this;return te(n).add(t),_(e,(function(e,t){var r=i._createEntry(e,t);n.appendChild(r)})),n},gl.prototype._createEntry=function(e,t){var n=fe("<div>"),i=te(n);if(i.add("entry"),e.className&&e.className.split(" ").forEach((function(e){i.add(e)})),X(n,fl,t),e.label){var r=fe("<span>");r.textContent=e.label,n.appendChild(r)}return e.imageUrl&&n.appendChild(fe('<img src="'+e.imageUrl+'" />')),!0===e.active&&i.add("active"),!0===e.disabled&&i.add("disabled"),e.title&&(n.title=e.title),n},gl.prototype._bindAutoClose=function(){this._eventBus.once(yl,this.close,this)},gl.prototype._unbindAutoClose=function(){this._eventBus.off(yl,this.close,this)};var vl={__init__:["popupMenu"],popupMenu:["type",gl]};function bl(){}bl.prototype.get=function(){return this._data},bl.prototype.set=function(e){this._data=e},bl.prototype.clear=function(){var e=this._data;return delete this._data,e},bl.prototype.isEmpty=function(){return!this._data};var xl={clipboard:["type",bl]};function wl(e){var t=this;function n(e){t._lastMoveEvent=e}this._lastMoveEvent=null,e.on("canvas.init",(function(e){(t._svg=e.svg).addEventListener("mousemove",n)})),e.on("canvas.destroy",(function(){t._lastMouseEvent=null,t._svg.removeEventListener("mousemove",n)}))}wl.$inject=["eventBus"],wl.prototype.getLastMoveEvent=function(){return this._lastMoveEvent||function(e,t){var n=document.createEvent("MouseEvent"),i=e,r=t,o=e,a=t;n.initMouseEvent&&n.initMouseEvent("mousemove",!0,!0,window,0,i,r,o,a,!1,!1,!1,!1,0,null);return n}(0,0)};var _l={__init__:["mouse"],mouse:["type",wl]};function El(e,t,n,i,r,o,a,s){this._canvas=e,this._create=t,this._clipboard=n,this._elementFactory=i,this._eventBus=r,this._modeling=o,this._mouse=a,this._rules=s,r.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element,i=e.elements;t.priority=1,t.id=n.id,b(i,(function(e){return e===n.parent}))&&(t.parent=n.parent.id),function(e){return!!e.host}(n)&&(t.priority=2,t.host=n.host.id),Pl(n)&&(t.priority=3,t.source=n.source.id,t.target=n.target.id,t.waypoints=function(e){return k(e.waypoints,(function(e){return(e=Sl(e)).original&&(e.original=Sl(e.original)),e}))}(n)),Ol(n)&&(t.priority=4,t.labelTarget=n.labelTarget.id),_(["x","y","width","height"],(function(e){m(n[e])&&(t[e]=n[e])})),t.hidden=n.hidden,t.collapsed=n.collapsed})),r.on("copyPaste.pasteElements",(function(e){q(e.hints,{createElementsBehavior:!1})}))}function Pl(e){return!!e.waypoints}function Ol(e){return!!e.labelTarget}function Sl(e){return q({},e)}function kl(e,t){var n=t.indexOf(e);return-1===n?t:t.splice(n,1)}El.$inject=["canvas","create","clipboard","elementFactory","eventBus","modeling","mouse","rules"],El.prototype.copy=function(e){var t,n;return d(e)||(e=e?[e]:[]),n=!1===(t=this._eventBus.fire("copyPaste.canCopyElements",{elements:e}))?{}:this.createTree(d(t)?t:e),this._clipboard.set(n),this._eventBus.fire("copyPaste.elementsCopied",{elements:e,tree:n}),n},El.prototype.paste=function(e){var t=this._clipboard.get();if(!this._clipboard.isEmpty()){var n=e&&e.hints||{};this._eventBus.fire("copyPaste.pasteElements",{hints:n});var i=this._createElements(t);if(e&&e.element&&e.point)return this._paste(i,e.element,e.point,n);this._create.start(this._mouse.getLastMoveEvent(),i,{hints:n||{}})}},El.prototype._paste=function(e,t,n,i){_(e,(function(e){m(e.x)||(e.x=0),m(e.y)||(e.y=0)}));var r=yt(e);return _(e,(function(e){Pl(e)&&(e.waypoints=k(e.waypoints,(function(e){return{x:e.x-r.x-r.width/2,y:e.y-r.y-r.height/2}}))),q(e,{x:e.x-r.x-r.width/2,y:e.y-r.y-r.height/2})})),this._modeling.createElements(e,n,t,q({},i))},El.prototype._createElements=function(e){var t=this,n=this._eventBus,i={},r=[];return _(e,(function(e,o){_(e=D(e,"priority"),(function(e){var o,a=q({},K(e,["priority"]));return i[e.parent]?a.parent=i[e.parent]:delete a.parent,n.fire("copyPaste.pasteElement",{cache:i,descriptor:a}),Pl(a)?(a.source=i[e.source],a.target=i[e.target],o=i[e.id]=t.createConnection(a),void r.push(o)):Ol(a)?(a.labelTarget=i[a.labelTarget],o=i[e.id]=t.createLabel(a),void r.push(o)):(a.host&&(a.host=i[a.host]),o=i[e.id]=t.createShape(a),void r.push(o))}))})),r},El.prototype.createConnection=function(e){return this._elementFactory.createConnection(K(e,["id"]))},El.prototype.createLabel=function(e){return this._elementFactory.createLabel(K(e,["id"]))},El.prototype.createShape=function(e){return this._elementFactory.createShape(K(e,["id"]))},El.prototype.hasRelations=function(e,t){var n,i;return!(Pl(e)&&(n=b(t,j({id:e.source.id})),i=b(t,j({id:e.target.id})),!n||!i))&&!(Ol(e)&&!b(t,j({id:e.labelTarget.id})))},El.prototype.createTree=function(e){var t=this._rules,n=this,i={},r=[];function o(e,t){var n=b(r,(function(t){return e===t.element}));n?n.depth<t&&(r=function(e,t){var n=t.indexOf(e);-1!==n&&t.splice(n,1);return t}(n,r)).push({element:n.element,depth:t}):r.push({element:e,depth:t})}return mt(ut(e),(function(e,t,i){if(!Ol(e)){_(e.labels,(function(e){o(e,i)})),_([e.attachers,e.incoming,e.outgoing],(function(e){e&&e.length&&_(e,(function(e){_(e.labels,(function(e){o(e,i)})),o(e,i)}))})),o(e,i);var r=[];return e.children&&(r=e.children.slice()),n._eventBus.fire("copyPaste.createTree",{element:e,children:r}),r}})),e=k(r,(function(e){return e.element})),r=D(r=k(r,(function(t){return t.descriptor={},n._eventBus.fire("copyPaste.copyElement",{descriptor:t.descriptor,element:t.element,elements:e}),t})),(function(e){return e.descriptor.priority})),e=k(r,(function(e){return e.element})),_(r,(function(r){var o=r.depth;n.hasRelations(r.element,e)?!function(e,n){return t.allowed("element.copy",{element:e,elements:n})}(r.element,e)?kl(r.element,e):(i[o]||(i[o]=[]),i[o].push(r.descriptor)):kl(r.element,e)})),i};var Cl={__depends__:[xl,ml,_l,Is],__init__:["copyPaste"],copyPaste:["type",El]};function Ml(e,t,n){d(n)||(n=[n]),_(n,(function(n){l(e[n])||(t[n]=e[n])}))}function Tl(e,t,n){var i;t.on("copyPaste.copyElement",750,(function(e){var t=e.descriptor,n=e.element,i=t.oldBusinessObject=Er(n),r=t.oldDi=Pr(n);if(t.type=n.type,Ml(i,t,"name"),Ml(r,t,"isExpanded"),Al(t))return t;i.default&&(t.default=i.default.id)})),t.on("moddleCopy.canCopyProperty",(function(t){var i,r=t.parent,o=t.property;if("processRef"===t.propertyName&&wr(r,"bpmn:Participant")&&wr(o,"bpmn:Process"))return i=e.create("bpmn:Process"),n.copyElement(o,i)})),t.on("copyPaste.pasteElements",(function(){i={}})),t.on("copyPaste.pasteElement",(function(t){var r,o,a,s,p=t.cache,l=t.descriptor,c=l.oldBusinessObject,u=l.oldDi;if(Al(l))return l.businessObject=Er(p[l.labelTarget]),void(l.di=Pr(p[l.labelTarget]));r=e.create(c.$type),l.businessObject=n.copyElement(c,r),(o=e.create(u.$type)).bpmnElement=r,l.di=n.copyElement(u,o),function(e,t){var n=Er(e);e.default&&(i[e.default]={element:n,property:"default"}),e.host&&(Er(e).attachedToRef=Er(t[e.host])),i=K(i,P(i,(function(t,i,r){var o=i.element,a=i.property;return r===e.id&&(o[a]=n,t.push(e.id)),t}),[]))}(l,p),Ml(l,r,["isExpanded","name"]),a=l,d(s="oldBusinessObject")||(s=[s]),_(s,(function(e){a[e]&&delete a[e]}))}))}function Al(e){return!!e.labelTarget}Tl.$inject=["bpmnFactory","eventBus","moddleCopy"];var Rl=["artifacts","dataInputAssociations","dataOutputAssociations","default","flowElements","lanes","incoming","outgoing"];function zl(e,t,n){this._bpmnFactory=t,this._eventBus=e,this._moddle=n,e.on("moddleCopy.canCopyProperties",(function(e){var t=e.propertyNames;if(t&&t.length)return D(t,(function(e){return"extensionElements"===e}))})),e.on("moddleCopy.canCopyProperty",(function(e){var t=e.parent,n=h(t)&&t.$descriptor,i=e.propertyName;return(!i||-1===Rl.indexOf(i))&&(!(i&&n&&!b(n.properties,j({name:i})))&&void 0)})),e.on("moddleCopy.canSetCopiedProperty",(function(e){var t,n,i=e.property;if(n="bpmn:ExtensionElements",(t=i)&&"function"==typeof t.$instanceOf&&t.$instanceOf(n)&&(!i.values||!i.values.length))return!1}))}function Dl(e,t){return P(e.properties,(function(e,n){return t&&n.default?e:e.concat(n.name)}),[])}zl.$inject=["eventBus","bpmnFactory","moddle"],zl.prototype.copyElement=function(e,t,n){var i=this;n&&!d(n)&&(n=[n]),n=n||Dl(e.$descriptor);var r=this._eventBus.fire("moddleCopy.canCopyProperties",{propertyNames:n,sourceElement:e,targetElement:t});return!1===r||(d(r)&&(n=r),_(n,(function(n){var r;v(e,n)&&(r=e.get(n));var o=i.copyProperty(r,t,n);!1!==i._eventBus.fire("moddleCopy.canSetCopiedProperty",{parent:t,property:o,propertyName:n})&&c(o)&&t.set(n,o)}))),t},zl.prototype.copyProperty=function(e,t,n){var i=this,r=this._eventBus.fire("moddleCopy.canCopyProperty",{parent:t,property:e,propertyName:n});if(!1!==r){if(r)return h(r)&&r.$type&&!r.$parent&&(r.$parent=t),r;var o=this._moddle.getPropertyDescriptor(t,n);if(!o.isReference){if(o.isId)return this._copyId(e,t);if(d(e))return P(e,(function(e,o){return(r=i.copyProperty(o,t,n))?(r.$parent=t,e.concat(r)):e}),[]);if(h(e)&&e.$type){if(this._moddle.getElementDescriptor(e).isGeneric)return;return(r=i._bpmnFactory.create(e.$type)).$parent=t,r=i.copyElement(e,r)}return e}}},zl.prototype._copyId=function(e,t){return this._moddle.ids.assigned(e)?void 0:(this._moddle.ids.claim(e,t),e)};var jl={__depends__:[Cl],__init__:["bpmnCopyPaste","moddleCopy"],bpmnCopyPaste:["type",Tl],moddleCopy:["type",zl]},Bl=Math.round;function Nl(e){this._modeling=e}Nl.$inject=["modeling"],Nl.prototype.replaceElement=function(e,t,n){if(e.waypoints)return null;var i=this._modeling,r=t.width||e.width,o=t.height||e.height,a=t.x||e.x,s=t.y||e.y,p=Bl(a+r/2),l=Bl(s+o/2);return i.replaceShape(e,q({},t,{x:p,y:l,width:r,height:o}),n)};var Ll={__init__:["replace"],replace:["type",Nl]};var Il=["cancelActivity","instantiate","eventGatewayType","triggeredByEvent","isInterrupting"];function $l(e,t,n,i,r,o,a){this.replaceElement=function(s,p,c){c=c||{};var u=p.type,h=s.businessObject;if(Fl(h)&&"bpmn:SubProcess"===u&&function(e,t){var n=e&&v(e,"collapsed")?e.collapsed:!Nr(e);return n!==(t&&(v(t,"collapsed")||v(t,"isExpanded"))?v(t,"collapsed")?t.collapsed:!t.isExpanded:n)}(s,p))return i.toggleCollapse(s),s;var m=e.create(u),f={type:u,businessObject:m,di:{}};!function(e,t,n){d(n)||(n=[n]),_(n,(function(n){l(e[n])||(t[n]=e[n])}))}(s.di,f.di,["fill","stroke","background-color","border-color","color"]);var y,g=Dl(h.$descriptor),b=Dl(m.$descriptor,!0),x=(y=b,g.filter((function(e){return-1!==y.indexOf(e)})));q(m,W(p,Il));var E=w(x,(function(e){return"eventDefinitions"===e?Vl(s,p.eventDefinitionType):"loopCharacteristics"===e?!Ir(m):!v(m,e)&&(("processRef"!==e||!1!==p.isExpanded)&&"triggeredByEvent"!==e)}));return m=n.copyElement(h,m,E),p.eventDefinitionType&&(Vl(m,p.eventDefinitionType)||(f.eventDefinitionType=p.eventDefinitionType,f.eventDefinitionAttrs=p.eventDefinitionAttrs)),wr(h,"bpmn:Activity")&&(Fl(h)?f.isExpanded=Nr(s):p&&v(p,"isExpanded")&&(f.isExpanded=p.isExpanded),Nr(s)&&!wr(h,"bpmn:Task")&&f.isExpanded&&(f.width=s.width,f.height=s.height)),Fl(h)&&!Fl(m)&&(c.moveChildren=!1),wr(h,"bpmn:Participant")&&(!0===p.isExpanded?m.processRef=e.create("bpmn:Process"):c.moveChildren=!1,f.width=s.width,f.height=t.getDefaultSize(f).height),o.allowed("shape.resize",{shape:m})||(f.height=t.getDefaultSize(f).height,f.width=t.getDefaultSize(f).width),m.name=h.name,_r(h,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&_r(m,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&(m.default=h.default),p.host&&!wr(h,"bpmn:BoundaryEvent")&&wr(m,"bpmn:BoundaryEvent")&&(f.host=p.host),"bpmn:DataStoreReference"!==f.type&&"bpmn:DataObjectReference"!==f.type||(f.x=s.x+(s.width-f.width)/2),f=r.replaceElement(s,f,c),!1!==c.select&&a.select(f),f}}function Fl(e){return wr(e,"bpmn:SubProcess")}function Vl(e,t){var n=Er(e);return t&&n.get("eventDefinitions").some((function(e){return wr(e,t)}))}$l.$inject=["bpmnFactory","elementFactory","moddleCopy","modeling","replace","rules","selection"];var Hl={__depends__:[jl,Ll,$o],bpmnReplace:["type",$l]};function ql(e){return function(t){var n=t.target,i=Er(e),r=i.eventDefinitions&&i.eventDefinitions[0],o=i.$type===n.type,a=(r&&r.$type)===n.eventDefinitionType,s=i.triggeredByEvent===n.triggeredByEvent,p=void 0===n.isExpanded||n.isExpanded===Nr(e);return!(o&&a&&s&&p)}}var Ul=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message Start Event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Start Event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional Start Event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal Start Event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],Gl=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}}],Wl=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message Intermediate Catch Event",actionName:"replace-with-message-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Message Intermediate Throw Event",actionName:"replace-with-message-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-message",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Intermediate Catch Event",actionName:"replace-with-timer-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Intermediate Throw Event",actionName:"replace-with-escalation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-escalation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Intermediate Catch Event",actionName:"replace-with-conditional-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Link Intermediate Catch Event",actionName:"replace-with-link-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-link",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Link Intermediate Throw Event",actionName:"replace-with-link-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-link",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Compensation Intermediate Throw Event",actionName:"replace-with-compensation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-compensation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal Intermediate Catch Event",actionName:"replace-with-signal-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Signal Intermediate Throw Event",actionName:"replace-with-signal-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-signal",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],Kl=[{label:"Start Event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate Throw Event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message End Event",actionName:"replace-with-message-end",className:"bpmn-icon-end-event-message",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Escalation End Event",actionName:"replace-with-escalation-end",className:"bpmn-icon-end-event-escalation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Error End Event",actionName:"replace-with-error-end",className:"bpmn-icon-end-event-error",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel End Event",actionName:"replace-with-cancel-end",className:"bpmn-icon-end-event-cancel",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Compensation End Event",actionName:"replace-with-compensation-end",className:"bpmn-icon-end-event-compensation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal End Event",actionName:"replace-with-signal-end",className:"bpmn-icon-end-event-signal",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Terminate End Event",actionName:"replace-with-terminate-end",className:"bpmn-icon-end-event-terminate",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:TerminateEventDefinition"}}],Yl=[{label:"Exclusive Gateway",actionName:"replace-with-exclusive-gateway",className:"bpmn-icon-gateway-xor",target:{type:"bpmn:ExclusiveGateway"}},{label:"Parallel Gateway",actionName:"replace-with-parallel-gateway",className:"bpmn-icon-gateway-parallel",target:{type:"bpmn:ParallelGateway"}},{label:"Inclusive Gateway",actionName:"replace-with-inclusive-gateway",className:"bpmn-icon-gateway-or",target:{type:"bpmn:InclusiveGateway"}},{label:"Complex Gateway",actionName:"replace-with-complex-gateway",className:"bpmn-icon-gateway-complex",target:{type:"bpmn:ComplexGateway"}},{label:"Event based Gateway",actionName:"replace-with-event-based-gateway",className:"bpmn-icon-gateway-eventbased",target:{type:"bpmn:EventBasedGateway",instantiate:!1,eventGatewayType:"Exclusive"}}],Xl=[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Event Sub Process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}},{label:"Sub Process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}}],Zl=[{label:"Sub Process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Event Sub Process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}}],Jl=[{label:"Sub Process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}}],Ql=[{label:"Task",actionName:"replace-with-task",className:"bpmn-icon-task",target:{type:"bpmn:Task"}},{label:"Send Task",actionName:"replace-with-send-task",className:"bpmn-icon-send",target:{type:"bpmn:SendTask"}},{label:"Receive Task",actionName:"replace-with-receive-task",className:"bpmn-icon-receive",target:{type:"bpmn:ReceiveTask"}},{label:"User Task",actionName:"replace-with-user-task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},{label:"Manual Task",actionName:"replace-with-manual-task",className:"bpmn-icon-manual",target:{type:"bpmn:ManualTask"}},{label:"Business Rule Task",actionName:"replace-with-rule-task",className:"bpmn-icon-business-rule",target:{type:"bpmn:BusinessRuleTask"}},{label:"Service Task",actionName:"replace-with-service-task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},{label:"Script Task",actionName:"replace-with-script-task",className:"bpmn-icon-script",target:{type:"bpmn:ScriptTask"}},{label:"Call Activity",actionName:"replace-with-call-activity",className:"bpmn-icon-call-activity",target:{type:"bpmn:CallActivity"}},{label:"Sub Process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}},{label:"Sub Process (expanded)",actionName:"replace-with-expanded-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}}],ec=[{label:"Data Store Reference",actionName:"replace-with-data-store-reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}}],tc=[{label:"Data Object Reference",actionName:"replace-with-data-object-reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}}],nc=[{label:"Message Boundary Event",actionName:"replace-with-message-boundary",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Boundary Event",actionName:"replace-with-timer-boundary",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation Boundary Event",actionName:"replace-with-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional Boundary Event",actionName:"replace-with-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Error Boundary Event",actionName:"replace-with-error-boundary",className:"bpmn-icon-intermediate-event-catch-error",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel Boundary Event",actionName:"replace-with-cancel-boundary",className:"bpmn-icon-intermediate-event-catch-cancel",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Signal Boundary Event",actionName:"replace-with-signal-boundary",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Compensation Boundary Event",actionName:"replace-with-compensation-boundary",className:"bpmn-icon-intermediate-event-catch-compensation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Message Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-message-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!1}},{label:"Timer Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!1}},{label:"Escalation Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!1}},{label:"Conditional Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!1}},{label:"Signal Boundary Event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!1}}],ic=[{label:"Message Start Event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer Start Event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional Start Event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal Start Event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Error Start Event",actionName:"replace-with-error-start",className:"bpmn-icon-start-event-error",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Escalation Start Event",actionName:"replace-with-escalation-start",className:"bpmn-icon-start-event-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Compensation Start Event",actionName:"replace-with-compensation-start",className:"bpmn-icon-start-event-compensation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Message Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-message-start",className:"bpmn-icon-start-event-non-interrupting-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!1}},{label:"Timer Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-start",className:"bpmn-icon-start-event-non-interrupting-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!1}},{label:"Conditional Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-start",className:"bpmn-icon-start-event-non-interrupting-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!1}},{label:"Signal Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-start",className:"bpmn-icon-start-event-non-interrupting-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!1}},{label:"Escalation Start Event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-start",className:"bpmn-icon-start-event-non-interrupting-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!1}}],rc=[{label:"Sequence Flow",actionName:"replace-with-sequence-flow",className:"bpmn-icon-connection"},{label:"Default Flow",actionName:"replace-with-default-flow",className:"bpmn-icon-default-flow"},{label:"Conditional Flow",actionName:"replace-with-conditional-flow",className:"bpmn-icon-conditional-flow"}],oc=[{label:"Expanded Pool",actionName:"replace-with-expanded-pool",className:"bpmn-icon-participant",target:{type:"bpmn:Participant",isExpanded:!0}},{label:function(e){var t="Empty Pool";return e.children&&e.children.length&&(t+=" (removes content)"),t},actionName:"replace-with-collapsed-pool",className:"bpmn-icon-lane",target:{type:"bpmn:Participant",isExpanded:!1}}];function ac(e,t,n,i,r,o,a){this._bpmnFactory=e,this._popupMenu=t,this._modeling=n,this._moddle=i,this._bpmnReplace=r,this._rules=o,this._translate=a,this.register()}ac.$inject=["bpmnFactory","popupMenu","modeling","moddle","bpmnReplace","rules","translate"],ac.prototype.register=function(){this._popupMenu.registerProvider("bpmn-replace",this)},ac.prototype.getEntries=function(e){var t,n=e.businessObject;if(!this._rules.allowed("shape.replace",{element:e}))return[];var i=ql(e);return wr(n,"bpmn:DataObjectReference")?this._createEntries(e,ec):wr(n,"bpmn:DataStoreReference")&&!wr(e.parent,"bpmn:Collaboration")?this._createEntries(e,tc):wr(n,"bpmn:StartEvent")&&!wr(n.$parent,"bpmn:SubProcess")?(t=w(Ul,i),this._createEntries(e,t)):wr(n,"bpmn:Participant")?(t=w(oc,(function(t){return Nr(e)!==t.target.isExpanded})),this._createEntries(e,t)):wr(n,"bpmn:StartEvent")&&Ir(n.$parent)?(t=w(ic,(function(t){var n=!1!==t.target.isInterrupting,r=Er(e).isInterrupting===n;return i(t)||!i(t)&&!r})),this._createEntries(e,t)):wr(n,"bpmn:StartEvent")&&!Ir(n.$parent)&&wr(n.$parent,"bpmn:SubProcess")?(t=w(Gl,i),this._createEntries(e,t)):wr(n,"bpmn:EndEvent")?(t=w(Kl,(function(e){return!("bpmn:CancelEventDefinition"==e.target.eventDefinitionType&&!wr(n.$parent,"bpmn:Transaction"))&&i(e)})),this._createEntries(e,t)):wr(n,"bpmn:BoundaryEvent")?(t=w(nc,(function(e){var t=e.target;if("bpmn:CancelEventDefinition"==t.eventDefinitionType&&!wr(n.attachedToRef,"bpmn:Transaction"))return!1;var r=!1!==t.cancelActivity,o=n.cancelActivity==r;return i(e)||!i(e)&&!o})),this._createEntries(e,t)):wr(n,"bpmn:IntermediateCatchEvent")||wr(n,"bpmn:IntermediateThrowEvent")?(t=w(Wl,i),this._createEntries(e,t)):wr(n,"bpmn:Gateway")?(t=w(Yl,i),this._createEntries(e,t)):wr(n,"bpmn:Transaction")?(t=w(Zl,i),this._createEntries(e,t)):Ir(n)&&Nr(e)?(t=w(Jl,i),this._createEntries(e,t)):wr(n,"bpmn:SubProcess")&&Nr(e)?(t=w(Xl,i),this._createEntries(e,t)):wr(n,"bpmn:AdHocSubProcess")&&!Nr(e)?(t=w(Ql,(function(t){var n=t.target,i="bpmn:SubProcess"===n.type,r=!0===n.isExpanded;return ql(e)&&(!i||r)})),this._createEntries(e,t)):wr(n,"bpmn:SequenceFlow")?this._createSequenceFlowEntries(e,rc):wr(n,"bpmn:FlowNode")?(t=w(Ql,i),wr(n,"bpmn:SubProcess")&&!Nr(e)&&(t=w(t,(function(e){return"Sub Process (collapsed)"!==e.label}))),this._createEntries(e,t)):[]},ac.prototype.getHeaderEntries=function(e){var t=[];return wr(e,"bpmn:Activity")&&!Ir(e)&&(t=t.concat(this._getLoopEntries(e))),wr(e,"bpmn:DataObjectReference")&&(t=t.concat(this._getDataObjectIsCollection(e))),wr(e,"bpmn:Participant")&&(t=t.concat(this._getParticipantMultiplicity(e))),!wr(e,"bpmn:SubProcess")||wr(e,"bpmn:Transaction")||Ir(e)||t.push(this._getAdHocEntry(e)),t},ac.prototype._createEntries=function(e,t){var n=[],i=this;return _(t,(function(t){var r=i._createMenuEntry(t,e);n.push(r)})),n},ac.prototype._createSequenceFlowEntries=function(e,t){var n=Er(e),i=[],r=this._modeling,o=this._moddle,a=this;return _(t,(function(t){switch(t.actionName){case"replace-with-default-flow":n.sourceRef.default!==n&&(wr(n.sourceRef,"bpmn:ExclusiveGateway")||wr(n.sourceRef,"bpmn:InclusiveGateway")||wr(n.sourceRef,"bpmn:ComplexGateway")||wr(n.sourceRef,"bpmn:Activity"))&&i.push(a._createMenuEntry(t,e,(function(){r.updateProperties(e.source,{default:n})})));break;case"replace-with-conditional-flow":!n.conditionExpression&&wr(n.sourceRef,"bpmn:Activity")&&i.push(a._createMenuEntry(t,e,(function(){var t=o.create("bpmn:FormalExpression",{body:""});r.updateProperties(e,{conditionExpression:t})})));break;default:if(wr(n.sourceRef,"bpmn:Activity")&&n.conditionExpression)return i.push(a._createMenuEntry(t,e,(function(){r.updateProperties(e,{conditionExpression:void 0})})));if((wr(n.sourceRef,"bpmn:ExclusiveGateway")||wr(n.sourceRef,"bpmn:InclusiveGateway")||wr(n.sourceRef,"bpmn:ComplexGateway")||wr(n.sourceRef,"bpmn:Activity"))&&n.sourceRef.default===n)return i.push(a._createMenuEntry(t,e,(function(){r.updateProperties(e.source,{default:void 0})})))}})),i},ac.prototype._createMenuEntry=function(e,t,n){var i=this._translate,r=this._bpmnReplace.replaceElement,o=e.label;return o&&"function"==typeof o&&(o=o(t)),n=n||function(){return r(t,e.target)},{label:i(o),className:e.className,id:e.actionName,action:n}},ac.prototype._getLoopEntries=function(e){var t=this,n=this._translate;function i(n,i){var r;i.active?r=void 0:(r=t._moddle.create(i.options.loopCharacteristics),i.options.isSequential&&(r.isSequential=i.options.isSequential)),t._modeling.updateProperties(e,{loopCharacteristics:r})}var r,o,a,s=Er(e).loopCharacteristics;return s&&(r=s.isSequential,o=void 0===s.isSequential,a=void 0!==s.isSequential&&!s.isSequential),[{id:"toggle-parallel-mi",className:"bpmn-icon-parallel-mi-marker",title:n("Parallel Multi Instance"),active:a,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!1}},{id:"toggle-sequential-mi",className:"bpmn-icon-sequential-mi-marker",title:n("Sequential Multi Instance"),active:r,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!0}},{id:"toggle-loop",className:"bpmn-icon-loop-marker",title:n("Loop"),active:o,action:i,options:{loopCharacteristics:"bpmn:StandardLoopCharacteristics"}}]},ac.prototype._getDataObjectIsCollection=function(e){var t=this,n=this._translate;var i=e.businessObject.dataObjectRef,r=i.isCollection;return[{id:"toggle-is-collection",className:"bpmn-icon-parallel-mi-marker",title:n("Collection"),active:r,action:function(n,r){t._modeling.updateModdleProperties(e,i,{isCollection:!r.active})}}]},ac.prototype._getParticipantMultiplicity=function(e){var t=this,n=this._bpmnFactory,i=this._translate;var r=e.businessObject.participantMultiplicity;return[{id:"toggle-participant-multiplicity",className:"bpmn-icon-parallel-mi-marker",title:i("Participant Multiplicity"),active:!!r,action:function(i,r){var o;r.active||(o=n.create("bpmn:ParticipantMultiplicity")),t._modeling.updateProperties(e,{participantMultiplicity:o})}}]},ac.prototype._getAdHocEntry=function(e){var t=this._translate,n=wr(Er(e),"bpmn:AdHocSubProcess"),i=this._bpmnReplace.replaceElement;return{id:"toggle-adhoc",className:"bpmn-icon-ad-hoc-marker",title:t("Ad-hoc"),active:n,action:function(t,r){return i(e,n?{type:"bpmn:SubProcess"}:{type:"bpmn:AdHocSubProcess"},{autoResize:!1,layoutConnection:!1})}}};var sc={__depends__:[vl,Hl],__init__:["replaceMenuProvider"],replaceMenuProvider:["type",ac]},pc=Math.max,lc=Math.min;function cc(e,t){return{top:e.top-t.top,right:e.right-t.right,bottom:e.bottom-t.bottom,left:e.left-t.left}}function uc(e,t,n){var i=t[e],r=n.min&&n.min[e],o=n.max&&n.max[e];return m(r)&&(i=(/top|left/.test(e)?lc:pc)(i,r)),m(o)&&(i=(/top|left/.test(e)?pc:lc)(i,o)),i}function dc(e,t){return void 0!==e?e:20}function hc(e){return!e.waypoints&&"label"!==e.type}function mc(e,t){var n;if((n=void 0===e.length?w(e.children,hc):e).length)return function(e,t){var n,i,r,o;return"object"==typeof t?(n=dc(t.left),i=dc(t.right),r=dc(t.top),o=dc(t.bottom)):n=i=r=o=dc(t),{x:e.x-n,y:e.y-r,width:e.width+n+i,height:e.height+r+o}}(yt(n),t)}var fc=Math.abs;var yc=["bpmn:Participant","bpmn:Process","bpmn:SubProcess"],gc=30;function vc(e,t){return t=t||[],e.children.filter((function(e){wr(e,"bpmn:Lane")&&(vc(e,t),t.push(e))})),t}function bc(e){return e.children.filter((function(e){return wr(e,"bpmn:Lane")}))}function xc(e){return gs(e,yc)||e}function wc(e,t){var n=xc(e),i=vc(n,wr(n,"bpmn:Process")?[]:[n]),r=hn(e),o=hn(t),a=function(e,t){return cc(hn(t),hn(e))}(e,t),s=[];return i.forEach((function(t){if(t!==e){var n,i,p=0,l=a.right,c=0,u=a.left,d=hn(t);a.top&&(fc(d.bottom-r.top)<10&&(c=o.top-d.bottom),fc(d.top-r.top)<5&&(p=o.top-d.top)),a.bottom&&(fc(d.top-r.bottom)<10&&(p=o.bottom-d.top),fc(d.bottom-r.bottom)<5&&(c=o.bottom-d.bottom)),(p||l||c||u)&&s.push({shape:t,newBounds:(n=t,i={top:p,right:l,bottom:c,left:u},{x:n.x+(i.left||0),y:n.y+(i.top||0),width:n.width-(i.left||0)+(i.right||0),height:n.height-(i.top||0)+(i.bottom||0)})})}})),s}function _c(e,t,n,i,r,o,a,s,p,l,c,u){e=e||{},i.registerProvider(this),this._contextPad=i,this._modeling=r,this._elementFactory=o,this._connect=a,this._create=s,this._popupMenu=p,this._canvas=l,this._rules=c,this._translate=u,!1!==e.autoPlace&&(this._autoPlace=t.get("autoPlace",!1)),n.on("create.end",250,(function(e){var t=e.context.shape;if(So(e)&&i.isOpen(t)){var n=i.getEntries(t);n.replace&&n.replace.action.click(e,t)}}))}function Ec(e,t,n){var i=e.$instanceOf(t),r=!1;return _(e.eventDefinitions||[],(function(e){e.$type===n&&(r=!0)})),i&&r}_c.$inject=["config.contextPad","injector","eventBus","contextPad","modeling","elementFactory","connect","create","popupMenu","canvas","rules","translate"],_c.prototype.getContextPadEntries=function(e){var t=this._contextPad,n=this._modeling,i=this._elementFactory,r=this._connect,o=this._create,a=this._popupMenu,s=this._canvas,p=this._rules,l=this._autoPlace,c=this._translate,u={};if("label"===e.type)return u;var h=e.businessObject;function m(e,t){r.start(e,t)}function f(e,t,n,r){function a(t,n){var a=i.createShape(q({type:e},r));o.start(t,a,{source:n})}return"string"!=typeof n&&(r=n,n=c("Append {type}",{type:e.replace(/^bpmn:/,"")})),{group:"model",className:t,title:n,action:{dragstart:a,click:l?function(t,n){var o=i.createShape(q({type:e},r));l.append(n,o)}:a}}}function y(e){return function(i,r){n.splitLane(r,e),t.open(r,!0)}}if(_r(h,["bpmn:Lane","bpmn:Participant"])&&Nr(e)){var g=bc(e);q(u,{"lane-insert-above":{group:"lane-insert-above",className:"bpmn-icon-lane-insert-above",title:c("Add Lane above"),action:{click:function(e,t){n.addLane(t,"top")}}}}),g.length<2&&(e.height>=120&&q(u,{"lane-divide-two":{group:"lane-divide",className:"bpmn-icon-lane-divide-two",title:c("Divide into two Lanes"),action:{click:y(2)}}}),e.height>=180&&q(u,{"lane-divide-three":{group:"lane-divide",className:"bpmn-icon-lane-divide-three",title:c("Divide into three Lanes"),action:{click:y(3)}}})),q(u,{"lane-insert-below":{group:"lane-insert-below",className:"bpmn-icon-lane-insert-below",title:c("Add Lane below"),action:{click:function(e,t){n.addLane(t,"bottom")}}}})}wr(h,"bpmn:FlowNode")&&(wr(h,"bpmn:EventBasedGateway")?q(u,{"append.receive-task":f("bpmn:ReceiveTask","bpmn-icon-receive-task",c("Append ReceiveTask")),"append.message-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-message",c("Append MessageIntermediateCatchEvent"),{eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-timer",c("Append TimerIntermediateCatchEvent"),{eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condition-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-condition",c("Append ConditionIntermediateCatchEvent"),{eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-signal",c("Append SignalIntermediateCatchEvent"),{eventDefinitionType:"bpmn:SignalEventDefinition"})}):Ec(h,"bpmn:BoundaryEvent","bpmn:CompensateEventDefinition")?q(u,{"append.compensation-activity":f("bpmn:Task","bpmn-icon-task",c("Append compensation activity"),{isForCompensation:!0})}):wr(h,"bpmn:EndEvent")||h.isForCompensation||Ec(h,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")||Ir(h)||q(u,{"append.end-event":f("bpmn:EndEvent","bpmn-icon-end-event-none",c("Append EndEvent")),"append.gateway":f("bpmn:ExclusiveGateway","bpmn-icon-gateway-none",c("Append Gateway")),"append.append-task":f("bpmn:Task","bpmn-icon-task",c("Append Task")),"append.intermediate-event":f("bpmn:IntermediateThrowEvent","bpmn-icon-intermediate-event-none",c("Append Intermediate/Boundary Event"))})),a.isEmpty(e,"bpmn-replace")||q(u,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:c("Change type"),action:{click:function(e,n){var i=q(function(e){var n=s.getContainer(),i=t.getPad(e).html,r=n.getBoundingClientRect(),o=i.getBoundingClientRect(),a=o.top-r.top;return{x:o.left-r.left,y:a+o.height+5}}(n),{cursor:{x:e.x,y:e.y}});a.open(n,"bpmn-replace",i)}}}}),_r(h,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference"])&&q(u,{"append.text-annotation":f("bpmn:TextAnnotation","bpmn-icon-text-annotation"),connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect using "+(h.isForCompensation?"":"Sequence/MessageFlow or ")+"Association"),action:{click:m,dragstart:m}}}),wr(h,"bpmn:TextAnnotation")&&q(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect using Association"),action:{click:m,dragstart:m}}}),_r(h,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&q(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect using DataInputAssociation"),action:{click:m,dragstart:m}}}),wr(h,"bpmn:Group")&&q(u,{"append.text-annotation":f("bpmn:TextAnnotation","bpmn-icon-text-annotation")});var v=p.allowed("elements.delete",{elements:[e]});return d(v)&&(v=v[0]===e),v&&q(u,{delete:{group:"edit",className:"bpmn-icon-trash",title:c("Remove"),action:{click:function(t){n.removeElements([e])}}}}),u};var Pc={__depends__:[Xp,Qp,$o,Dp,ml,sc],__init__:["contextPadProvider"],contextPadProvider:["type",_c]},Oc={horizontal:["x","width"],vertical:["y","height"]};function Sc(e){this._modeling=e,this._filters=[],this.registerFilter((function(e,t,n){var i,r=0,o=0;return _(e,(function(e){e.waypoints||e.labelTarget||(r+=e[n],o+=1)})),i=Math.round(r/o),w(e,(function(e){return e[n]<i+50}))}))}Sc.$inject=["modeling"],Sc.prototype.registerFilter=function(e){if("function"!=typeof e)throw new Error("the filter has to be a function");this._filters.push(e)},Sc.prototype.trigger=function(e,t){var n,i,r=this._modeling;if(!(e.length<3||(this._setOrientation(t),i=this._filterElements(e),(n=this._createGroups(i)).length<=2)))return r.distributeElements(n,this._axis,this._dimension),n},Sc.prototype._filterElements=function(e){var t=this._filters,n=this._axis,i=this._dimension,r=[].concat(e);return t.length?(_(t,(function(e){r=e(r,n,i)})),r):e},Sc.prototype._createGroups=function(e){var t=[],n=this,i=this._axis,r=this._dimension;if(!i)throw new Error('must have a defined "axis" and "dimension"');return _(D(e,i),(function(e,o){var a,s=n._findRange(e,i,r),p=t[t.length-1];p&&n._hasIntersection(p.range,s)?t[t.length-1].elements.push(e):(a={range:s,elements:[e]},t.push(a))})),t},Sc.prototype._setOrientation=function(e){var t=Oc[e];this._axis=t[0],this._dimension=t[1]},Sc.prototype._hasIntersection=function(e,t){return Math.max(e.min,e.max)>=Math.min(t.min,t.max)&&Math.min(e.min,e.max)<=Math.max(t.min,t.max)},Sc.prototype._findRange=function(e){var t=e[this._axis];return{min:t+5,max:t+e[this._dimension]-5}};var kc={__init__:["distributeElements"],distributeElements:["type",Sc]};function Cc(e){e.registerFilter((function(e){return w(e,(function(e){var t=_r(e,["bpmn:Association","bpmn:BoundaryEvent","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:Lane","bpmn:MessageFlow","bpmn:Participant","bpmn:SequenceFlow","bpmn:TextAnnotation"]);return!(e.labelTarget||t)}))}))}Cc.$inject=["distributeElements"];var Mc={__depends__:[kc],__init__:["bpmnDistributeElements"],bpmnDistributeElements:["type",Cc]},Tc="is not a registered action";function Ac(e,t){this._actions={};var n=this;e.on("diagram.init",(function(){n._registerDefaultActions(t),e.fire("editorActions.init",{editorActions:n})}))}function Rc(e,t){return new Error(e+" "+t)}Ac.$inject=["eventBus","injector"],Ac.prototype._registerDefaultActions=function(e){var t=e.get("commandStack",!1),n=e.get("modeling",!1),i=e.get("selection",!1),r=e.get("zoomScroll",!1),o=e.get("copyPaste",!1),a=e.get("canvas",!1),s=e.get("rules",!1),p=e.get("keyboardMove",!1),l=e.get("keyboardMoveSelection",!1);t&&(this.register("undo",(function(){t.undo()})),this.register("redo",(function(){t.redo()}))),o&&i&&this.register("copy",(function(){var e=i.get();o.copy(e)})),o&&this.register("paste",(function(){o.paste()})),r&&this.register("stepZoom",(function(e){r.stepZoom(e.value)})),a&&this.register("zoom",(function(e){a.zoom(e.value)})),n&&i&&s&&this.register("removeSelection",(function(){var e=i.get();if(e.length){var t,r=s.allowed("elements.delete",{elements:e});!1!==r&&(t=d(r)?r:e).length&&n.removeElements(t.slice())}})),p&&this.register("moveCanvas",(function(e){p.moveCanvas(e)})),l&&this.register("moveSelection",(function(e){l.moveSelection(e.direction,e.accelerated)}))},Ac.prototype.trigger=function(e,t){if(!this._actions[e])throw Rc(e,Tc);return this._actions[e](t)},Ac.prototype.register=function(e,t){var n=this;if("string"==typeof e)return this._registerAction(e,t);_(e,(function(e,t){n._registerAction(t,e)}))},Ac.prototype._registerAction=function(e,t){if(this.isRegistered(e))throw Rc(e,"is already registered");this._actions[e]=t},Ac.prototype.unregister=function(e){if(!this.isRegistered(e))throw Rc(e,Tc);this._actions[e]=void 0},Ac.prototype.getActions=function(){return Object.keys(this._actions)},Ac.prototype.isRegistered=function(e){return!!this._actions[e]};var zc={__init__:["editorActions"],editorActions:["type",Ac]};function Dc(e){e.invoke(Ac,this)}i(Dc,Ac),Dc.$inject=["injector"],Dc.prototype._registerDefaultActions=function(e){Ac.prototype._registerDefaultActions.call(this,e);var t=e.get("canvas",!1),n=e.get("elementRegistry",!1),i=e.get("selection",!1),r=e.get("spaceTool",!1),o=e.get("lassoTool",!1),a=e.get("handTool",!1),s=e.get("globalConnect",!1),p=e.get("distributeElements",!1),l=e.get("alignElements",!1),c=e.get("directEditing",!1),u=e.get("searchPad",!1),d=e.get("modeling",!1);t&&n&&i&&this._registerAction("selectElements",(function(){var e=t.getRootElement(),r=n.filter((function(t){return t!==e}));return i.select(r),r})),r&&this._registerAction("spaceTool",(function(){r.toggle()})),o&&this._registerAction("lassoTool",(function(){o.toggle()})),a&&this._registerAction("handTool",(function(){a.toggle()})),s&&this._registerAction("globalConnectTool",(function(){s.toggle()})),i&&p&&this._registerAction("distributeElements",(function(e){var t=i.get(),n=e.type;t.length&&p.trigger(t,n)})),i&&l&&this._registerAction("alignElements",(function(e){var t=i.get(),n=[],r=e.type;t.length&&(n=w(t,(function(e){return!wr(e,"bpmn:Lane")})),l.trigger(n,r))})),i&&d&&this._registerAction("setColor",(function(e){var t=i.get();t.length&&d.setColor(t,e)})),i&&c&&this._registerAction("directEditing",(function(){var e=i.get();e.length&&c.activate(e[0])})),u&&this._registerAction("find",(function(){u.toggle()})),t&&d&&this._registerAction("moveToOrigin",(function(){var e,i,r=t.getRootElement();e=yt(i=wr(r,"bpmn:Collaboration")?n.filter((function(e){return wr(e.parent,"bpmn:Collaboration")})):n.filter((function(e){return e!==r&&!wr(e.parent,"bpmn:SubProcess")}))),d.moveElements(i,{x:-e.x,y:-e.y},r)}))};var jc={__depends__:[zc],editorActions:["type",Dc]};function Bc(e){e.on(["create.init","shape.move.init"],(function(e){var t=e.context;_r(e.shape,["bpmn:Participant","bpmn:SubProcess","bpmn:TextAnnotation"])&&(t.gridSnappingContext||(t.gridSnappingContext={}),t.gridSnappingContext.snapLocation="top-left")}))}Bc.$inject=["eventBus"];function Nc(e,t,n){return n||(n="round"),Math[n](e/t)*t}function Lc(e,t,n){var i=!n||!1!==n.active;this._eventBus=t;var r=this;t.on("diagram.init",800,(function(){r.setActive(i)})),t.on(["create.move","create.end","bendpoint.move.move","bendpoint.move.end","connect.move","connect.end","connectionSegment.move.move","connectionSegment.move.end","resize.move","resize.end","shape.move.move","shape.move.end"],1200,(function(t){var n=t.originalEvent;if(!(!r.active||n&&ba(n))){var i=t.context,o=i.gridSnappingContext;o||(o=i.gridSnappingContext={}),["x","y"].forEach((function(n){var i={},o=function(e,t,n){var i=e.context,r=e.shape,o=i.gridSnappingContext,a=o.snapLocation,s=o.snapOffset;if(s&&m(s[t]))return s[t];s||(s=o.snapOffset={});m(s[t])||(s[t]=0);if(!r)return s[t];n.get(r.id)||(Ic(t)?s[t]+=r[t]+r.width/2:s[t]+=r[t]+r.height/2);if(!a)return s[t];"x"===t?/left/.test(a)?s[t]-=r.width/2:/right/.test(a)&&(s[t]+=r.width/2):/top/.test(a)?s[t]-=r.height/2:/bottom/.test(a)&&(s[t]+=r.height/2);return s[t]}(t,n,e);o&&(i.offset=o);var a=function(e,t){var n=e.context,i=n.createConstraints,r=n.resizeConstraints||{},o=n.gridSnappingContext,a=o.snapConstraints;if(a&&a[t])return a[t];a||(a=o.snapConstraints={});a[t]||(a[t]={});var s=n.direction;i&&(Ic(t)?(a.x.min=i.left,a.x.max=i.right):(a.y.min=i.top,a.y.max=i.bottom));var p=r.min,l=r.max;p&&(Ic(t)?Fc(s)?a.x.max=p.left:a.x.min=p.right:$c(s)?a.y.max=p.top:a.y.min=p.bottom);l&&(Ic(t)?Fc(s)?a.x.min=l.left:a.x.max=l.right:$c(s)?a.y.min=l.top:a.y.max=l.bottom);return a[t]}(t,n);a&&q(i,a),_p(t,n)||r.snapEvent(t,n,i)}))}}))}function Ic(e){return"x"===e}function $c(e){return-1!==e.indexOf("n")}function Fc(e){return-1!==e.indexOf("w")}function Vc(e,t){Xo.call(this,e),this._gridSnapping=t;var n=this;this.preExecute("shape.resize",(function(e){var t=e.context,i=(t.hints||{}).autoResize;if(i){var r=t.shape,o=t.newBounds;y(i)?t.newBounds=n.snapComplex(o,i):t.newBounds=n.snapSimple(r,o)}}))}Lc.prototype.snapEvent=function(e,t,n){Ep(e,t,this.snapValue(e[t],n))},Lc.prototype.getGridSpacing=function(){return 10},Lc.prototype.snapValue=function(e,t){var n,i,r=0;return t&&t.offset&&(r=t.offset),e=Nc(e+=r,10),t&&t.min&&m(n=t.min)&&(n=Nc(n+r,10,"ceil"),e=Math.max(e,n)),t&&t.max&&m(i=t.max)&&(i=Nc(i+r,10,"floor"),e=Math.min(e,i)),e-=r},Lc.prototype.isActive=function(){return this.active},Lc.prototype.setActive=function(e){this.active=e,this._eventBus.fire("gridSnapping.toggle",{active:e})},Lc.prototype.toggleActive=function(){this.setActive(!this.active)},Lc.$inject=["elementRegistry","eventBus","config.gridSnapping"],Vc.$inject=["eventBus","gridSnapping","modeling"],i(Vc,Xo),Vc.prototype.snapSimple=function(e,t){var n=this._gridSnapping;return t.width=n.snapValue(t.width,{min:t.width}),t.height=n.snapValue(t.height,{min:t.height}),t.x=e.x+e.width/2-t.width/2,t.y=e.y+e.height/2-t.height/2,t},Vc.prototype.snapComplex=function(e,t){return/w|e/.test(t)&&(e=this.snapHorizontally(e,t)),/n|s/.test(t)&&(e=this.snapVertically(e,t)),e},Vc.prototype.snapHorizontally=function(e,t){var n=this._gridSnapping,i=/w/.test(t),r=/e/.test(t),o={};return o.width=n.snapValue(e.width,{min:e.width}),r&&(i?(o.x=n.snapValue(e.x,{max:e.x}),o.width+=n.snapValue(e.x-o.x,{min:e.x-o.x})):e.x=e.x+e.width-o.width),q(e,o),e},Vc.prototype.snapVertically=function(e,t){var n=this._gridSnapping,i=/n/.test(t),r=/s/.test(t),o={};return o.height=n.snapValue(e.height,{min:e.height}),i&&(r?(o.y=n.snapValue(e.y,{max:e.y}),o.height+=n.snapValue(e.y-o.y,{min:e.y-o.y})):e.y=e.y+e.height-o.height),q(e,o),e};function Hc(e,t){e.on(["spaceTool.move","spaceTool.end"],2e3,(function(e){var n,i=e.context;i.initialized&&("x"===i.axis?(n=t.snapValue(e.dx),e.x=e.x+n-e.dx,e.dx=n):(n=t.snapValue(e.dy),e.y=e.y+n-e.dy,e.dy=n))}))}Hc.$inject=["eventBus","gridSnapping"];var qc={__depends__:[{__init__:["gridSnappingResizeBehavior","gridSnappingSpaceToolBehavior"],gridSnappingResizeBehavior:["type",Vc],gridSnappingSpaceToolBehavior:["type",Hc]}],__init__:["gridSnapping"],gridSnapping:["type",Lc]};function Uc(e,t){e.on("autoPlace",2e3,(function(e){var n=e.source,i=fn(n),r=e.shape,o=vs(n,r);return["x","y"].forEach((function(e){var n={};o[e]!==i[e]&&(o[e]>i[e]?n.min=o[e]:n.max=o[e],wr(r,"bpmn:TextAnnotation")&&(!function(e){return"x"===e}(e)?n.offset=-r.height/2:n.offset=-r.width/2),o[e]=t.snapValue(o[e],n))})),o}))}Uc.$inject=["eventBus","gridSnapping"];function Gc(e,t,n){t.on(["create.start","shape.move.start"],1750,(function(t){var i=t.context,r=i.shape,o=e.getRootElement();wr(r,"bpmn:Participant")&&wr(o,"bpmn:Process")&&o.children.length&&(i.createConstraints&&(r.width=n.snapValue(r.width,{min:r.width}),r.height=n.snapValue(r.height,{min:r.height})))}))}Gc.$inject=["canvas","eventBus","gridSnapping"];function Wc(e,t,n){Xo.call(this,e),this._gridSnapping=t;var i=this;this.postExecuted(["connection.create","connection.layout"],3e3,(function(e){var t=e.context,r=t.connection,o=t.hints||{},a=r.waypoints;o.connectionStart||o.connectionEnd||!1===o.createElementsBehavior||function(e){return e.length>3}(a)&&n.updateWaypoints(r,i.snapMiddleSegments(a))}))}function Kc(e,t,n){var i=kt(t,n),r={};return function(e){return"h"===e}(i)&&(r.y=e.snapValue(t.y)),function(e){return"v"===e}(i)&&(r.x=e.snapValue(t.x)),("x"in r||"y"in r)&&(t=q({},t,r),n=q({},n,r)),[t,n]}Wc.$inject=["eventBus","gridSnapping","modeling"],i(Wc,Xo),Wc.prototype.snapMiddleSegments=function(e){var t,n=this._gridSnapping;e=e.slice();for(var i=1;i<e.length-2;i++)t=Kc(n,e[i],e[i+1]),e[i]=t[0],e[i+1]=t[1];return e};var Yc={__depends__:[qc,{__init__:["gridSnappingAutoPlaceBehavior","gridSnappingCreateParticipantBehavior","gridSnappingLayoutConnectionBehavior"],gridSnappingAutoPlaceBehavior:["type",Uc],gridSnappingCreateParticipantBehavior:["type",Gc],gridSnappingLayoutConnectionBehavior:["type",Wc]}],__init__:["bpmnGridSnapping"],bpmnGridSnapping:["type",Bc]};function Xc(e,t){this._interactionEvents=t;var n=this;e.on(["interactionEvents.createHit","interactionEvents.updateHit"],(function(e){var t=e.element,i=e.gfx;return wr(t,"bpmn:Lane")?n.createParticipantHit(t,i):wr(t,"bpmn:Participant")?Nr(t)?n.createParticipantHit(t,i):n.createDefaultHit(t,i):wr(t,"bpmn:SubProcess")?Nr(t)?n.createSubProcessHit(t,i):n.createDefaultHit(t,i):void 0}))}Xc.$inject=["eventBus","interactionEvents"],Xc.prototype.createDefaultHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createDefaultHit(e,t),!0},Xc.prototype.createParticipantHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"all",{width:30,height:e.height}),!0},Xc.prototype.createSubProcessHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"all",{width:e.width,height:30}),!0};var Zc={__init__:["bpmnInteractionEvents"],bpmnInteractionEvents:["type",Xc]};function Jc(e){e.invoke(Ma,this)}i(Jc,Ma),Jc.$inject=["injector"],Jc.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}Ma.prototype.registerBindings.call(this,e,t),n("selectElements",(function(n){var i=n.keyEvent;if(e.isKey(["a","A"],i)&&e.isCmd(i))return t.trigger("selectElements"),!0})),n("find",(function(n){var i=n.keyEvent;if(e.isKey(["f","F"],i)&&e.isCmd(i))return t.trigger("find"),!0})),n("spaceTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["s","S"],i)?(t.trigger("spaceTool"),!0):void 0})),n("lassoTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["l","L"],i)?(t.trigger("lassoTool"),!0):void 0})),n("handTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["h","H"],i)?(t.trigger("handTool"),!0):void 0})),n("globalConnectTool",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["c","C"],i)?(t.trigger("globalConnectTool"),!0):void 0})),n("directEditing",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["e","E"],i)?(t.trigger("directEditing"),!0):void 0}))};var Qc={__depends__:[Ta],__init__:["keyboardBindings"],keyboardBindings:["type",Jc]},eu={moveSpeed:1,moveSpeedAccelerated:10},tu="left",nu="right",iu="down",ru={ArrowLeft:tu,Left:tu,ArrowUp:"up",Up:"up",ArrowRight:nu,Right:nu,ArrowDown:iu,Down:iu},ou={left:function(e){return{x:-e,y:0}},up:function(e){return{x:0,y:-e}},right:function(e){return{x:e,y:0}},down:function(e){return{x:0,y:e}}};function au(e,t,n,i,r){var o=this;this._config=q({},eu,e||{}),t.addListener(1500,(function(e){var n=e.keyEvent,i=ru[n.key];if(i&&!t.isCmd(n)){var r=t.isShift(n);return o.moveSelection(i,r),!0}})),this.moveSelection=function(e,t){var o=r.get();if(o.length){var a=this._config[t?"moveSpeedAccelerated":"moveSpeed"],s=ou[e](a);i.allowed("elements.move",{shapes:o})&&n.moveElements(o,s)}}}au.$inject=["config.keyboardMoveSelection","keyboard","modeling","rules","selection"];var su={__depends__:[Ta,$o],__init__:["keyboardMoveSelection"],keyboardMoveSelection:["type",au]};function pu(e,t,n,i){this._dragging=i,this._rules=t;var r=this;function o(e,t){var n,i=e.shape,o=e.direction,a=e.resizeConstraints;e.delta=t,n=function(e,t,n){var i=n.x,r=n.y,o={x:e.x,y:e.y,width:e.width,height:e.height};return-1!==t.indexOf("n")?(o.y=e.y+r,o.height=e.height-r):-1!==t.indexOf("s")&&(o.height=e.height+r),-1!==t.indexOf("e")?o.width=e.width+i:-1!==t.indexOf("w")&&(o.x=e.x+i,o.width=e.width-i),o}(i,o,t),e.newBounds=function(e,t){if(!t)return e;var n=hn(e);return mn({top:uc("top",n,t),right:uc("right",n,t),bottom:uc("bottom",n,t),left:uc("left",n,t)})}(n,a),e.canExecute=r.canResize(e)}e.on("resize.start",(function(e){var t,n,i;t=e.context,n=t.resizeConstraints,i=t.minBounds,void 0===n&&(void 0===i&&(i=r.computeMinResizeBox(t)),t.resizeConstraints={min:hn(i)})})),e.on("resize.move",(function(e){var t={x:e.dx,y:e.dy};o(e.context,t)})),e.on("resize.end",(function(e){!function(e){var t=e.shape,i=e.canExecute,r=e.newBounds;if(i){if(!function(e,t){return e.x!==t.x||e.y!==t.y||e.width!==t.width||e.height!==t.height}(t,r=un(r)))return;n.resizeShape(t,r)}}(e.context)}))}function lu(e,t){var n=fn(e),i=hn(e),r={x:n.x,y:n.y};return-1!==t.indexOf("n")?r.y=i.top:-1!==t.indexOf("s")&&(r.y=i.bottom),-1!==t.indexOf("e")?r.x=i.right:-1!==t.indexOf("w")&&(r.x=i.left),r}function cu(e){return"n"===e||"s"===e?"resize-ns":"e"===e||"w"===e?"resize-ew":"nw"===e||"se"===e?"resize-nwse":"resize-nesw"}pu.prototype.canResize=function(e){var t=this._rules,n=W(e,["newBounds","shape","delta","direction"]);return t.allowed("shape.resize",n)},pu.prototype.activate=function(e,t,n){var i,r,o=this._dragging;if("string"==typeof n&&(n={direction:n}),!(r=(i=q({shape:t},n)).direction))throw new Error("must provide a direction (n|w|s|e|nw|se|ne|sw)");o.init(e,lu(t,r),"resize",{autoActivate:!0,cursor:cu(r),data:{shape:t,context:i}})},pu.prototype.computeMinResizeBox=function(e){var t=e.shape;return function(e,t,n,i){var r=hn(t),o={top:/n/.test(e)?r.bottom-n.height:r.top,left:/w/.test(e)?r.right-n.width:r.left,bottom:/s/.test(e)?r.top+n.height:r.bottom,right:/e/.test(e)?r.left+n.width:r.right},a=i?hn(i):o;return mn({top:lc(o.top,a.top),left:lc(o.left,a.left),bottom:pc(o.bottom,a.bottom),right:pc(o.right,a.right)})}(e.direction,t,e.minDimensions||{width:10,height:10},mc(t,e.childrenBoxPadding))},pu.$inject=["eventBus","rules","modeling","dragging"];var uu="djs-resizing",du="resize-not-ok";function hu(e,t,n){e.on("resize.move",500,(function(e){var i,r,o,a;i=e.context,r=i.shape,o=i.newBounds,(a=i.frame)||(a=i.frame=n.addFrame(r,t.getActiveLayer()),t.addMarker(r,uu)),o.width>5&&Oe(a,{x:o.x,width:o.width}),o.height>5&&Oe(a,{y:o.y,height:o.height}),i.canExecute?Te(a).remove(du):Te(a).add(du)})),e.on("resize.cleanup",(function(e){var n,i;n=e.context,i=n.shape,n.frame&&Re(n.frame),t.removeMarker(i,uu)}))}hu.$inject=["eventBus","canvas","previewSupport"];var mu=-6,fu="djs-resizer",yu=["n","w","s","e","nw","ne","se","sw"];function gu(e,t,n,i){this._resize=i,this._canvas=t;var r=this;e.on("selection.changed",(function(e){var t=e.newSelection;r.removeResizers(),1===t.length&&_(t,F(r.addResizer,r))})),e.on("shape.changed",(function(e){var t=e.element;n.isSelected(t)&&(r.removeResizers(),r.addResizer(t))}))}gu.prototype.makeDraggable=function(e,t,n){var i=this._resize;function r(t){Oo(t)&&i.activate(t,e,n)}ue.bind(t,"mousedown",r),ue.bind(t,"touchstart",r)},gu.prototype._createResizer=function(e,t,n,i){var r=this._getResizersParent(),o=function(e){var t={x:0,y:0};-1!==e.indexOf("e")?t.x=6:-1!==e.indexOf("w")&&(t.x=mu);-1!==e.indexOf("s")?t.y=6:-1!==e.indexOf("n")&&(t.y=mu);return t}(i),a=Le("g");Te(a).add(fu),Te(a).add("djs-resizer-"+e.id),Te(a).add("djs-resizer-"+i),_e(r,a);var s=Le("rect");Oe(s,{x:-2+o.x,y:-2+o.y,width:4,height:4}),Te(s).add("djs-resizer-visual"),_e(a,s);var p=Le("rect");return Oe(p,{x:-10+o.x,y:-10+o.y,width:20,height:20}),Te(p).add("djs-resizer-hit"),_e(a,p),Wn(a,t,n),a},gu.prototype.createResizer=function(e,t){var n=lu(e,t),i=this._createResizer(e,n.x,n.y,t);this.makeDraggable(e,i,t)},gu.prototype.addResizer=function(e){var t=this;this._resize.canResize({shape:e})&&_(yu,(function(n){t.createResizer(e,n)}))},gu.prototype.removeResizers=function(){ze(this._getResizersParent())},gu.prototype._getResizersParent=function(){return this._canvas.getLayer("resizers")},gu.$inject=["eventBus","canvas","selection","resize"];var vu={__depends__:[Is,Ds,il],__init__:["resize","resizePreview","resizeHandles"],resize:["type",pu],resizePreview:["type",hu],resizeHandles:["type",gu]};function bu(e,t){var n=t.create("bpmn:CategoryValue"),i=t.create("bpmn:Category",{categoryValue:[n]});return Et(e.get("rootElements"),i),Er(i).$parent=e,Er(n).$parent=i,n}function xu(e,t,n,i,r,o,a){function s(e,t){(t||_r(e,["bpmn:Task","bpmn:TextAnnotation"])||wu(e))&&i.activate(e)}this._bpmnFactory=t,this._canvas=n,this._modeling=r,this._textRenderer=a,i.registerProvider(this),e.on("element.dblclick",(function(e){s(e.element,!0)})),e.on(["autoPlace.start","canvas.viewbox.changing","drag.init","element.mousedown","popupMenu.open","root.set"],(function(e){i.isActive()&&i.complete()})),e.on(["commandStack.changed"],(function(e){i.isActive()&&i.cancel()})),e.on("directEditing.activate",(function(e){o.removeResizers()})),e.on("create.end",500,(function(e){var t=e.context,n=t.shape,i=e.context.canExecute;e.isTouch||i&&(t.hints&&!1===t.hints.createElementsBehavior||s(n))})),e.on("autoPlace.end",500,(function(e){s(e.shape)}))}function wu(e){return wr(e,"bpmn:SubProcess")&&!Nr(e)}xu.$inject=["eventBus","bpmnFactory","canvas","directEditing","modeling","resizeHandles","textRenderer"],xu.prototype.activate=function(e){var t=Vr(e);if(void 0!==t){var n={text:t};q(n,this.getEditingBBox(e));var i={};return(_r(e,["bpmn:Task","bpmn:Participant","bpmn:Lane","bpmn:CallActivity"])||wu(e))&&q(i,{centerVertically:!0}),lo(e)&&q(i,{autoResize:!0}),wr(e,"bpmn:TextAnnotation")&&q(i,{resizable:!0,autoResize:!0}),q(n,{options:i}),n}},xu.prototype.getEditingBBox=function(e){var t=this._canvas,n=e.label||e,i=t.getAbsoluteBBox(n),r=i.x+i.width/2,o=i.y+i.height/2,a={x:i.x,y:i.y},s=t.zoom(),p=this._textRenderer.getDefaultStyle(),l=this._textRenderer.getExternalStyle(),c=l.fontSize*s,u=l.lineHeight,d=p.fontSize*s,h=p.lineHeight,m={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};(wr(e,"bpmn:Lane")||function(e){return wr(e,"bpmn:Participant")&&Nr(e)}(e))&&(q(a,{width:i.height,height:30*s,x:i.x-i.height/2+15*s,y:o-30*s/2}),q(m,{fontSize:d+"px",lineHeight:h,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px",transform:"rotate(-90deg)"})),(_r(e,["bpmn:Task","bpmn:CallActivity"])||function(e){return wr(e,"bpmn:Participant")&&!Nr(e)}(e)||wu(e))&&(q(a,{width:i.width,height:i.height}),q(m,{fontSize:d+"px",lineHeight:h,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px"})),function(e){return wr(e,"bpmn:SubProcess")&&Nr(e)}(e)&&(q(a,{width:i.width,x:i.x}),q(m,{fontSize:d+"px",lineHeight:h,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px"}));var f=90*s,y=7*s,g=4*s;if(n.labelTarget&&(q(a,{width:f,height:i.height+y+g,x:r-f/2,y:i.y-y}),q(m,{fontSize:c+"px",lineHeight:u,paddingTop:y+"px",paddingBottom:g+"px"})),lo(n)&&!co(n)&&!mo(n)){var v=ho(e),b=t.getAbsoluteBBox({x:v.x,y:v.y,width:0,height:0}),x=c+y+g;q(a,{width:f,height:x,x:b.x-f/2,y:b.y-x/2}),q(m,{fontSize:c+"px",lineHeight:u,paddingTop:y+"px",paddingBottom:g+"px"})}return wr(e,"bpmn:TextAnnotation")&&(q(a,{width:i.width,height:i.height,minWidth:30*s,minHeight:10*s}),q(m,{textAlign:"left",paddingTop:5*s+"px",paddingBottom:7*s+"px",paddingLeft:7*s+"px",paddingRight:5*s+"px",fontSize:d+"px",lineHeight:h})),{bounds:a,style:m}},xu.prototype.update=function(e,t,n,i){var r,o,a;if((wr(e,"bpmn:TextAnnotation")&&(o=this._canvas.getAbsoluteBBox(e),r={x:e.x,y:e.y,width:e.width/o.width*i.width,height:e.height/o.height*i.height}),wr(e,"bpmn:Group"))&&!Er(e).categoryValueRef){var s=bu(Er(this._canvas.getRootElement()).$parent,this._bpmnFactory);Er(e).categoryValueRef=s}(a=t)&&a.trim()||(t=null),this._modeling.updateLabel(e,t,r)};var _u="djs-element-hidden",Eu="djs-label-hidden";function Pu(e,t,n,i){var r,o,a,s=this,p=t.getDefaultLayer();e.on("directEditing.activate",(function(e){var n=e.active;if(wr(r=n.element.label||n.element,"bpmn:TextAnnotation")){o=t.getAbsoluteBBox(r),a=Le("g");var l=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:r.width,containerHeight:r.height,position:{mx:0,my:0}}),c=s.path=Le("path");Oe(c,{d:l,strokeWidth:2,stroke:Ou(r)}),_e(a,c),_e(p,a),Kn(a,r.x,r.y)}wr(r,"bpmn:TextAnnotation")||r.labelTarget?t.addMarker(r,_u):(wr(r,"bpmn:Task")||wr(r,"bpmn:CallActivity")||wr(r,"bpmn:SubProcess")||wr(r,"bpmn:Participant"))&&t.addMarker(r,Eu)})),e.on("directEditing.resize",(function(e){if(wr(r,"bpmn:TextAnnotation")){var t=e.height,n=e.dy,a=Math.max(r.height/o.height*(t+n),0),p=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:r.width,containerHeight:a,position:{mx:0,my:0}});Oe(s.path,{d:p})}})),e.on(["directEditing.complete","directEditing.cancel"],(function(e){var n=e.active;n&&(t.removeMarker(n.element.label||n.element,_u),t.removeMarker(r,Eu)),r=void 0,o=void 0,a&&(Re(a),a=void 0)}))}function Ou(e,t){return Pr(e).get("stroke")||t||"black"}Pu.$inject=["eventBus","canvas","elementRegistry","pathMap"];var Su={__depends__:[Yo,vu,Xp],__init__:["labelEditingProvider","labelEditingPreview"],labelEditingProvider:["type",xu],labelEditingPreview:["type",Pu]},ku=["top","bottom","left","right"],Cu=10;function Mu(e,t){function n(e){if(co(e)){var n=function(e){var t=fn(e.label),n=Tu(fn(e),t);if(i=n,-1===ku.indexOf(i))return;var i;var r=function(e){var t=fn(e);return[].concat(e.incoming.map((function(e){return e.waypoints[e.waypoints.length-2]})),e.outgoing.map((function(e){return e.waypoints[1]}))).map((function(e){return Tu(t,e)}))}(e);if(e.host){var o=function(e){var t,n=e.host,i=yn(fn(e),n);t=i.indexOf("-")>=0?i.split("-"):[i];return ku.filter((function(e){return-1===t.indexOf(e)}))}(e);r=r.concat(o)}var a=ku.filter((function(e){return-1===r.indexOf(e)}));if(-1!==a.indexOf(n))return;return a[0]}(e);n&&function(e,n){var i=fn(e),r=e.label,o=fn(r);if(!r.parent)return;var a,s=hn(e);switch(n){case"top":a={x:i.x,y:s.top-Cu-r.height/2};break;case"left":a={x:s.left-Cu-r.width/2,y:i.y};break;case"bottom":a={x:i.x,y:s.bottom+Cu+r.height/2};break;case"right":a={x:s.right+Cu+r.width/2,y:i.y}}var p=Ia(a,o);t.moveShape(r,p)}(e,n)}}Xo.call(this,e),this.postExecuted(["connection.create","connection.layout","connection.updateWaypoints"],(function(e){var t=e.context,i=t.connection,r=i.source,o=i.target;!1!==(t.hints||{}).createElementsBehavior&&(n(r),n(o))})),this.postExecuted(["label.create"],(function(e){var t=e.context,i=t.shape;!1!==(t.hints||{}).createElementsBehavior&&n(i.labelTarget)})),this.postExecuted(["elements.create"],(function(e){var t=e.context,i=t.elements;!1!==(t.hints||{}).createElementsBehavior&&i.forEach((function(e){n(e)}))}))}function Tu(e,t){return yn(t,e,5)}function Au(e,t,n){Xo.call(this,e),this.preExecute("shape.append",(function(e){var t=e.source,n=e.shape;e.position||(wr(n,"bpmn:TextAnnotation")?e.position={x:t.x+t.width/2+75,y:t.y-50-n.height/2}:e.position={x:t.x+t.width+80+n.width/2,y:t.y+t.height/2})}),!0)}function Ru(e,t){e.invoke(Xo,this),this.postExecute("shape.move",(function(e){var n=e.newParent,i=e.shape;_(w(i.incoming.concat(i.outgoing),(function(e){return wr(e,"bpmn:Association")})),(function(e){t.moveConnection(e,{x:0,y:0},n)}))}),!0)}i(Mu,Xo),Mu.$inject=["eventBus","modeling"],i(Au,Xo),Au.$inject=["eventBus","elementFactory","bpmnRules"],i(Ru,Xo),Ru.$inject=["injector","modeling"];function zu(e,t){t.invoke(Xo,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",500,(function(e){var t=e.elements;1===(t=t.filter((function(e){return Du(e,e.host)}))).length&&t.map((function(e){return t.indexOf(e)})).forEach((function(i){var r=t[i];e.elements[i]=n.replaceShape(t[i],r)}))}),!0),this.preExecute("elements.move",500,(function(e){var t=e.shapes,i=e.newHost;if(1===t.length){var r=t[0];Du(r,i)&&(e.shapes=[n.replaceShape(r,i)])}}),!0)}function Du(e,t){return!mo(e)&&_r(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!t}zu.$inject=["bpmnReplace","injector"],i(zu,Xo),zu.prototype.replaceShape=function(e,t){var n,i=(n=Er(e).eventDefinitions)&&n[0],r={type:"bpmn:BoundaryEvent",host:t};return i&&(r.eventDefinitionType=i.$type),this._bpmnReplace.replaceElement(e,r,{layoutConnection:!1})};function ju(e,t,n){function i(e){return w(e.attachers,(function(e){return wr(e,"bpmn:BoundaryEvent")}))}Xo.call(this,e),this.postExecute("connection.create",(function(e){var t=e.context.source,r=e.context.target,o=i(r);wr(t,"bpmn:EventBasedGateway")&&wr(r,"bpmn:ReceiveTask")&&o.length>0&&n.removeElements(o)})),this.postExecute("connection.reconnect",(function(e){var t=e.context.oldSource,r=e.context.newSource;wr(t,"bpmn:Gateway")&&wr(r,"bpmn:EventBasedGateway")&&_(r.outgoing,(function(e){var t=e.target,r=i(t);wr(t,"bpmn:ReceiveTask")&&r.length>0&&n.removeElements(r)}))})),e.on("moddleCopy.canCopyProperty",2e3,(function(e){var n=e.parent,i=e.property,r=e.propertyName,o=t.getPropertyDescriptor(n,r);o&&o.isReference&&wr(i,"bpmn:RootElement")&&n.set(r,i)}))}function Bu(e){e.invoke(Xo,this),this.preExecute("shape.create",1500,(function(e){var t=e.context,n=t.parent,i=t.shape;wr(n,"bpmn:Lane")&&!wr(i,"bpmn:Lane")&&(t.parent=gs(n,"bpmn:Participant"))}))}function Nu(e,t,n){Xo.call(this,e),this.preExecute("shape.create",(function(e){var n=e.context.shape;if(wr(n,"bpmn:DataObjectReference")&&"label"!==n.type){var i=t.create("bpmn:DataObject");n.businessObject.dataObjectRef=i}}))}ju.$inject=["eventBus","moddle","modeling"],i(ju,Xo),Bu.$inject=["injector"],i(Bu,Xo),Nu.$inject=["eventBus","bpmnFactory","moddle"],i(Nu,Xo);var Lu=20,Iu=20,$u=2e3;function Fu(e,t,n){function i(){var t=e.getRootElement();return wr(t,"bpmn:Collaboration")?t:n.makeCollaboration()}Xo.call(this,t),t.on(["create.start","shape.move.start"],$u,(function(t){var n=t.context,i=n.shape,r=e.getRootElement();if(wr(i,"bpmn:Participant")&&wr(r,"bpmn:Process")&&r.children.length){var o=r.children.filter((function(e){return!wr(e,"bpmn:Group")&&!mo(e)&&!function(e){return!!e.waypoints}(e)}));if(o.length){var a=yt(o);q(i,function(e,t){t={width:t.width+40+30,height:t.height+40};var n=Math.max(e.width,t.width),i=Math.max(e.height,t.height);return{x:-n/2,y:-i/2,width:n,height:i}}(i,a)),n.createConstraints=function(e,t){return{bottom:(t=hn(t)).top+e.height/2-Iu,left:t.right-e.width/2+Lu,top:t.bottom-e.height/2+Iu,right:t.left+e.width/2-Lu-30}}(i,a)}}})),t.on("create.start",$u,(function(n){var i=n.context.shape,r=e.getRootElement(),o=e.getGraphics(r);function a(e){e.element=r,e.gfx=o}wr(i,"bpmn:Participant")&&wr(r,"bpmn:Process")&&(t.on("element.hover",$u,a),t.once("create.cleanup",(function(){t.off("element.hover",a)})))})),this.preExecute("elements.create",$u,(function(e){var t,n=e.elements,r=e.parent,o=function(e){return b(e,(function(e){return wr(e,"bpmn:Participant")}))}(n);o&&wr(r,"bpmn:Process")&&(e.parent=i(),(t=e.hints=e.hints||{}).participant=o,t.process=r,t.processRef=Er(o).get("processRef"))}),!0),this.preExecute("shape.create",(function(e){var t=e.parent,n=e.shape;wr(n,"bpmn:Participant")&&wr(t,"bpmn:Process")&&(e.parent=i(),e.process=t,e.processRef=Er(n).get("processRef"))}),!0),this.execute("shape.create",(function(e){var t=e.hints||{},n=e.process||t.process,i=e.shape,r=t.participant;!n||r&&i!==r||Er(i).set("processRef",Er(n))}),!0),this.revert("shape.create",(function(e){var t=e.hints||{},n=e.process||t.process,i=e.processRef||t.processRef,r=e.shape,o=t.participant;!n||o&&r!==o||Er(r).set("processRef",i)}),!0),this.postExecute("shape.create",(function(e){var t=e.hints||{},i=e.process||e.hints.process,r=e.shape,o=t.participant;if(i){var a=i.children.slice();o?r===o&&n.moveElements(a,{x:0,y:0},o):n.moveElements(a,{x:0,y:0},r)}}),!0)}Fu.$inject=["canvas","eventBus","modeling"],i(Fu,Xo);var Vu="__targetRef_placeholder";function Hu(e,t){function n(e,n){var i=e.get("properties"),r=b(i,(function(e){return e.name===Vu}));return!r&&n&&Et(i,r=t.create("bpmn:Property",{name:Vu})),r}function i(e,t){var i=n(e);i&&(function(e,t,n){return b(e.get("dataInputAssociations"),(function(e){return e!==n&&e.targetRef===t}))}(e,i,t)||_t(e.get("properties"),i))}function r(e){var t,r=e.context,o=r.connection,a=o.businessObject,s=o.target,p=s&&s.businessObject,l=r.newTarget,c=l&&l.businessObject,u=r.oldTarget||r.target,d=u&&u.businessObject,h=o.businessObject;d&&d!==p&&i(d,a),c&&c!==p&&i(c,a),p?(t=n(p,!0),h.targetRef=t):h.targetRef=null}Xo.call(this,e),this.executed(["connection.create","connection.delete","connection.move","connection.reconnect"],qu(r)),this.reverted(["connection.create","connection.delete","connection.move","connection.reconnect"],qu(r))}function qu(e){return function(t){if(wr(t.context.connection,"bpmn:DataInputAssociation"))return e(t)}}function Uu(e){this._bpmnUpdater=e}function Gu(e,t,n,i){function r(e){return e.children.filter((function(e){return wr(e,"bpmn:DataStoreReference")&&!e.labelTarget}))}function o(e,i){var r=e.businessObject||e;if(i=i||n.filter((function(e){return wr(e,"bpmn:Participant")&&Er(e).processRef}))[0]){var o=i.businessObject||i;t.execute("dataStore.updateContainment",{dataStoreBo:r,dataStoreDi:Pr(e),newSemanticParent:o.processRef||o,newDiParent:Pr(i)})}}Xo.call(this,i),t.registerHandler("dataStore.updateContainment",Uu),this.preExecute("shape.create",(function(e){var t=e.context,n=t.shape;wr(n,"bpmn:DataStoreReference")&&"label"!==n.type&&(t.hints||(t.hints={}),t.hints.autoResize=!1)})),this.preExecute("elements.move",(function(e){var t=e.context,n=t.shapes;n.filter((function(e){return wr(e,"bpmn:DataStoreReference")})).length&&(t.hints||(t.hints={}),t.hints.autoResize=n.filter((function(e){return!wr(e,"bpmn:DataStoreReference")})))})),this.postExecute("shape.create",(function(e){var t=e.context.shape,n=t.parent;wr(t,"bpmn:DataStoreReference")&&"label"!==t.type&&wr(n,"bpmn:Collaboration")&&o(t)})),this.postExecute("shape.move",(function(e){var t=e.context,n=t.shape,i=t.oldParent,r=n.parent;wr(i,"bpmn:Collaboration")||wr(n,"bpmn:DataStoreReference")&&"label"!==n.type&&wr(r,"bpmn:Collaboration")&&o(n,wr(i,"bpmn:Participant")?i:function(e,t){for(;e.parent;){if(wr(e.parent,t))return e.parent;e=e.parent}}(i,"bpmn:Participant"))})),this.postExecute("shape.delete",(function(t){var n=t.context.shape,i=e.getRootElement();_r(n,["bpmn:Participant","bpmn:SubProcess"])&&wr(i,"bpmn:Collaboration")&&r(i).filter((function(e){return function(e,t){var n=e.businessObject||e,i=t.businessObject||t;for(;n.$parent;){if(n.$parent===i.processRef||i)return!0;n=n.$parent}return!1}(e,n)})).forEach((function(e){o(e)}))})),this.postExecute("canvas.updateRoot",(function(e){var t=e.context,n=t.oldRoot,i=t.newRoot;r(n).forEach((function(e){wr(i,"bpmn:Process")&&o(e,i)}))}))}Hu.$inject=["eventBus","bpmnFactory"],i(Hu,Xo),Uu.$inject=["bpmnUpdater"],Uu.prototype.execute=function(e){var t=e.dataStoreBo,n=e.dataStoreDi,i=e.newSemanticParent,r=e.newDiParent;e.oldSemanticParent=t.$parent,e.oldDiParent=n.$parent,this._bpmnUpdater.updateSemanticParent(t,i),this._bpmnUpdater.updateDiParent(n,r)},Uu.prototype.revert=function(e){var t=e.dataStoreBo,n=e.dataStoreDi,i=e.oldSemanticParent,r=e.oldDiParent;this._bpmnUpdater.updateSemanticParent(t,i),this._bpmnUpdater.updateDiParent(n,r)},Gu.$inject=["canvas","commandStack","elementRegistry","eventBus"],i(Gu,Xo);function Wu(e,t,n){Xo.call(this,e),this.postExecuted("shape.delete",500,(function(e){var t=e.context,i=t.hints,r=t.shape,o=t.oldParent;wr(r,"bpmn:Lane")&&(i&&i.nested||function(e,t){var i,r,o,a=bc(t),s=[],p=[];mt(a,(function(t){return t.y>e.y?p.push(t):s.push(t),t.children})),a.length&&(i=p.length&&s.length?e.height/2:e.height,s.length&&(r=n.calculateAdjustments(s,"y",i,e.y-10),n.makeSpace(r.movingShapes,r.resizingShapes,{x:0,y:i},"s")),p.length&&(o=n.calculateAdjustments(p,"y",-i,e.y+e.height+10),n.makeSpace(o.movingShapes,o.resizingShapes,{x:0,y:-i},"n")))}(r,o))}))}Wu.$inject=["eventBus","modeling","spaceTool"],i(Wu,Xo);function Ku(e,t){t.invoke(Xo,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",500,(function(e){var t=e.elements;t.filter((function(e){return Yu(e,e.host)})).map((function(e){return t.indexOf(e)})).forEach((function(i){e.elements[i]=n.replaceShape(t[i])}))}),!0),this.preExecute("elements.move",500,(function(e){var t=e.shapes,i=e.newHost;t.forEach((function(e,r){var o,a=e.host;Yu(e,(o=a,-1!==t.indexOf(o)?a:i))&&(t[r]=n.replaceShape(e))}))}),!0)}function Yu(e,t){return!mo(e)&&wr(e,"bpmn:BoundaryEvent")&&!t}function Xu(e,t,n){function i(e,i,r){var o,a,s,p,l,c,u,d,h=i.waypoints,f=e.outgoing.slice(),y=e.incoming.slice(),g=Vs(h,d=m(r.width)?fn(r):r);if(g){if(o=h.slice(0,g.index),a=h.slice(g.index+(g.bendpoint?1:0)),!o.length||!a.length)return;s=g.bendpoint?h[g.index]:d,1!==o.length&&Zu(e,o[o.length-1])||o.push(Ju(s)),1!==a.length&&Zu(e,a[0])||a.unshift(Ju(s))}p=i.source,l=i.target,t.canConnect(p,e,i)&&(n.reconnectEnd(i,e,o||d),c=i),t.canConnect(e,l,i)&&(c?u=n.connect(e,l,{type:i.type,waypoints:a}):(n.reconnectStart(i,e,a||d),u=i));var v=[].concat(c&&w(y,(function(e){return e.source===c.source}))||[],u&&w(f,(function(e){return e.target===u.target}))||[]);v.length&&n.removeElements(v)}Xo.call(this,e),this.preExecute("elements.move",(function(e){var n=e.newParent,i=e.shapes,r=e.delta,o=i[0];if(o&&n){n&&n.waypoints&&(e.newParent=n=n.parent);var a=fn(o),s={x:a.x+r.x,y:a.y+r.y},p=b(n.children,(function(e){return t.canInsert(i,e)&&Vs(e.waypoints,s)}));p&&(e.targetFlow=p,e.position=s)}}),!0),this.postExecuted("elements.move",(function(e){var t=e.shapes,n=e.targetFlow,r=e.position;n&&i(t[0],n,r)}),!0),this.preExecute("shape.create",(function(e){var n=e.parent,i=e.shape;t.canInsert(i,n)&&(e.targetFlow=n,e.parent=n.parent)}),!0),this.postExecuted("shape.create",(function(e){var t=e.shape,n=e.targetFlow,r=e.position;n&&i(t,n,r)}),!0)}function Zu(e,t){var n=t.x,i=t.y;return n>=e.x&&n<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function Ju(e){return q({},e)}function Qu(e,t){Xo.call(this,e),this.preExecuted("connection.create",(function(e){var n=e.context,i=n.source,r=n.target,o=r.incoming.slice();n.hints&&!1===n.hints.createElementsBehavior||wr(i,"bpmn:EventBasedGateway")&&r.incoming.length&&o.filter(ed).forEach((function(e){t.removeConnection(e)}))})),this.preExecuted("shape.replace",(function(e){var n=e.context.newShape;wr(n,"bpmn:EventBasedGateway")&&n.outgoing.filter(ed).map((function(e){return e.target})).reduce((function(e,t){var n=t.incoming.filter(ed);return e.concat(n)}),[]).forEach((function(e){e.source!==n&&t.removeConnection(e)}))}))}function ed(e){return wr(e,"bpmn:SequenceFlow")}Ku.$inject=["bpmnReplace","injector"],i(Ku,Xo),Ku.prototype.replaceShape=function(e){var t,n,i=(n=Er(e).eventDefinitions)&&n[0];return t=i?{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:i.$type}:{type:"bpmn:IntermediateThrowEvent"},this._bpmnReplace.replaceElement(e,t,{layoutConnection:!1})},i(Xu,Xo),Xu.$inject=["eventBus","bpmnRules","modeling"],Qu.$inject=["eventBus","modeling"],i(Qu,Xo);var td=1500;function nd(e,t,n){t.on(["create.hover","create.move","create.out","create.end","shape.move.hover","shape.move.move","shape.move.out","shape.move.end"],td,(function(t){var i=t.context.shape||t.shape,r=t.hover;wr(r,"bpmn:Lane")&&!_r(i,["bpmn:Lane","bpmn:Participant"])&&(t.hover=xc(r),t.hoverGfx=e.getGraphics(t.hover));var o=n.getRootElement();r!==o&&(i.labelTarget||wr(i,"bpmn:Group"))&&(t.hover=o,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["connect.hover","connect.out","connect.end","connect.cleanup","global-connect.hover","global-connect.out","global-connect.end","global-connect.cleanup"],td,(function(t){var n=t.hover;wr(n,"bpmn:Lane")&&(t.hover=xc(n)||n,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["bendpoint.move.hover"],td,(function(t){var n=t.context,i=t.hover,r=n.type;wr(i,"bpmn:Lane")&&/reconnect/.test(r)&&(t.hover=xc(i)||i,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["connect.start"],td,(function(e){var t=e.context,n=t.start;wr(n,"bpmn:Lane")&&(t.start=xc(n)||n)})),t.on("shape.move.start",2e3,(function(e){var t=e.shape;wr(t,"bpmn:Lane")&&(e.shape=xc(t)||t)}))}nd.$inject=["elementRegistry","eventBus","canvas"];function id(e,t,n,i,r,o){function a(e){var n=Er(e).categoryValueRef;if(n){var i=n.$parent;n&&(_t(i.categoryValue,n),i&&!i.categoryValue.length&&function(e){_t(t.getDefinitions().get("rootElements"),e)}(i))}}r.invoke(Xo,this),this.executed("shape.delete",(function(e){var t,i=e.context.shape;if(wr(i,"bpmn:Group")){var r=Er(i).categoryValueRef,o=n.filter((function(e){return wr(e,"bpmn:Group")}));t=r,o.some((function(e){var n=Er(e);return n.categoryValueRef&&n.categoryValueRef===t}))||a(i)}})),this.reverted("shape.delete",(function(e){var n=e.context.shape;if(wr(n,"bpmn:Group")){var i=Er(n).categoryValueRef,r=t.getDefinitions(),o=i?i.$parent:null;Et(o.get("categoryValue"),i),Et(r.get("rootElements"),o)}})),this.execute("shape.create",(function(n){var i=Er(n.context.shape);if(wr(i,"bpmn:Group")&&!i.categoryValueRef){var r=bu(t.getDefinitions(),e);i.categoryValueRef=r}})),this.revert("shape.create",(function(e){var t=e.context.shape;wr(t,"bpmn:Group")&&(a(t),delete Er(t).categoryValueRef)})),i.on("moddleCopy.canCopyProperty",2e3,(function(n){var i,r=n.property;if(wr(r,"bpmn:CategoryValue"))return i=bu(t.getDefinitions(),e),o.copyElement(r,i)}))}function rd(e,t,n,i){var r,o,a,s;return 0==(r=(i.y-n.y)*(t.x-e.x)-(i.x-n.x)*(t.y-e.y))?null:(o=e.y-n.y,a=e.x-n.x,s=((i.x-n.x)*o-(i.y-n.y)*a)/r,{x:Math.round(e.x+s*(t.x-e.x)),y:Math.round(e.y+s*(t.y-e.y))})}function od(e){function t(e,t,n){var i,r={x:n.x,y:n.y-50},o={x:n.x-50,y:n.y},a=rd(e,t,n,r),s=rd(e,t,n,o);i=a&&s?ad(a,n)>ad(s,n)?s:a:a||s,e.original=i}e.on("bpmnElement.added",(function(e){var n,i,r=e.element;r.waypoints&&(t((i=(n=r).waypoints)[0],i[1],fn(n.source)),t(i[i.length-1],i[i.length-2],fn(n.target)))}))}function ad(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function sd(e){Xo.call(this,e);var t=["bpmn:Participant","bpmn:Lane"];this.executed(["shape.move","shape.create","shape.resize"],(function(e){var n=e.context.shape,i=Er(n),r=Pr(n);_r(i,t)&&!r.get("isHorizontal")&&r.set("isHorizontal",!0)}))}function pd(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function ld(e){return Math.atan((e[1].y-e[0].y)/(e[1].x-e[0].x))}function cd(e,t){var n=t[0],i=t[1],r={x:i.x-n.x,y:i.y-n.y},o=function(e,t,n){var i=[{n:e[0]-n[0],lambda:t[0]},{n:e[1]-n[1],lambda:t[1]}];return-(i[0].n*t[0]+i[1].n*t[1])/(i[0].lambda*t[0]+i[1].lambda*t[1])}([n.x,n.y],[r.x,r.y],[e.x,e.y]);return{x:n.x+o*r.x,y:n.y+o*r.y}}function ud(e,t){var n=cd(e,t);return pd({x:n.x-e.x,y:n.y-e.y})}function dd(e,t){return pd({x:e.x-t.x,y:e.y-t.y})}id.$inject=["bpmnFactory","bpmnjs","elementRegistry","eventBus","injector","moddleCopy"],i(id,Xo),od.$inject=["eventBus"],sd.$inject=["eventBus"],i(sd,Xo);var hd=Math.sqrt,md=Math.min,fd=Math.max,yd=Math.abs;function gd(e){return Math.pow(e,2)}function vd(e,t){return hd(gd(e.x-t.x)+gd(e.y-t.y))}function bd(e,t,n,i){var r=t.x-e.x,o=t.y-e.y,a=n.x-e.x,s=n.y-e.y,p=r*r+o*o,l=(r*a+o*s)/p,c=l*l-(a*a+s*s-i*i)/p;if(c<0&&c>-1e-6&&(c=0),c<0)return[];var u=hd(c),d=-l+u,h=-l-u,m={x:e.x-r*d,y:e.y-o*d};return 0===c?[m]:[m,{x:e.x-r*h,y:e.y-o*h}].filter((function(n){return function(e,t,n){return xd(e.x,t.x,n.x)&&xd(e.y,t.y,n.y)}(n,e,t)}))}function xd(e,t,n){return e>=md(t,n)-wd&&e<=fd(t,n)+wd}var wd=.1;function _d(e,t){return yd(e.x-t.x)<=wd&&yd(e.y-t.y)<=wd}function Ed(e,t,n,i){var r=0,o=0,a=function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}(e),s=function(e,t){var n,i,r,o,a,s,p,l,c,u,d,h,m=0;for(m=0;m<t.length-1;m++){if(_d(n=t[m],i=t[m+1])?s=[n]:(r=vd(e,n),o=vd(e,i),s=bd(n,i,e,md(r,o))),s.length<1)throw new Error("expected between [1, 2] circle -> line intersections");1===s.length&&(p={type:"bendpoint",position:s[0],segmentIndex:m,bendpointIndex:_d(n,s[0])?m:m+1}),2===s.length&&(d=s[0],h=s[1],p={type:"segment",position:a={x:(d.x+h.x)/2,y:(d.y+h.y)/2},segmentIndex:m,relativeLocation:vd(n,a)/vd(n,i)}),l=vd(p.position,e),(!u||c>l)&&(u=p,c=l)}return u}(a,n),p=s.segmentIndex,l=function(e,t,n,i){var r=n.segmentIndex,o=t.length-e.length;if(i.segmentMove){var a=i.segmentMove.segmentStartIndex,s=i.segmentMove.newSegmentStartIndex;return r===a?s:r>=s?r+o<s?s:r+o:r}if(i.bendpointMove){var p,l=i.bendpointMove.insert,c=i.bendpointMove.bendpointIndex;return 0===o?r:(r>=c&&(p=l?r+1:r-1),r<c&&(p=r,l&&"bendpoint"!==n.type&&c-1===r&&Pd(t,c)<n.relativeLocation&&p++),p)}return 0===o?r:i.connectionStart?0===r?0:null:i.connectionEnd&&r===e.length-2?t.length-2:null}(n,t,s,i);if(null===l)return{x:r,y:o};if(l<0||l>t.length-2)return{x:r,y:o};var c,u,d=Od(n,p),h=Od(t,l),m=s.position,f=function(e,t){var n=dd(e[0],e[1]),i=dd(e[0],t);return 0===n?0:i/n}(d,m),y=(c=h,u=ld(d),ld(c)-u);if("bendpoint"===s.type){var g=t.length-n.length,v=s.bendpointIndex,b=n[v];if(-1!==t.indexOf(b))return{x:r,y:o};if(0===g){var x=t[v];return{x:x.x-s.position.x,y:x.y-s.position.y}}g<0&&0!==v&&v<n.length-1&&(f=Pd(n,v))}var w,_,E=(h[1].x-h[0].x)*f+h[0].x,P=(h[1].y-h[0].y)*f+h[0].y,O=(w={x:a.x-m.x,y:a.y-m.y},(_=y)?{x:Math.cos(_)*w.x-Math.sin(_)*w.y,y:Math.sin(_)*w.x+Math.cos(_)*w.y}:w);return dn({x:r=E+O.x-a.x,y:o=P+O.y-a.y})}function Pd(e,t){var n=dd(e[t-1],e[t]);return n/(n+dd(e[t],e[t+1]))}function Od(e,t){return[e[t],e[t+1]]}function Sd(e,t,n){var i=La(t),r=La(n),o=Ia(e,i),a=o.x*(n.width/t.width),s=o.y*(n.height/t.height);return dn({x:r.x+a,y:r.y+s})}function kd(e,t,n){var i=La(e),r=La(t),o=La(n),a=Ia(e,i),s=Ia(i,r),p=function(e,t,n){var i=hn(t),r=hn(n);if(function(e,t){return function(e,t){return e.right!==t.right&&e.left!==t.left}(e,t)||function(e,t){return e.top!==t.top&&e.bottom!==t.bottom}(e,t)}(i,r))return null;var o,a,s=yn(t,e);if("top"===s)o={x:0,y:r.bottom-i.bottom};else if("bottom"===s)o={x:0,y:r.top-i.top};else if("right"===s)o={x:r.left-i.left,y:0};else{if("left"!==s)return null;o={x:r.right-i.right,y:0}}if(a={x:e.x+o.x,y:e.y+o.y},yn(n,a)!==s)return null;return o}(i,t,n);if(p)return p;var l=s.x*(n.width/t.width),c=s.y*(n.height/t.height),u=o.x+l,d=o.y+c;return dn({x:u+a.x-e.x,y:d+a.y-e.y})}var Cd={width:90,height:20},Md="name",Td="text";function Ad(e,t,n,i){Xo.call(this,e),this.postExecute("element.updateProperties",(function(e){var n=e.context,r=n.element,o=n.properties;if(Md in o&&t.updateLabel(r,o.name),Td in o&&wr(r,"bpmn:TextAnnotation")){var a=i.getTextAnnotationBounds({x:r.x,y:r.y,width:r.width,height:r.height},o.text||"");t.updateLabel(r,o.text,a)}})),this.postExecute(["shape.create","connection.create"],(function(e){var n=e.context;if(!1!==(n.hints||{}).createElementsBehavior){var r=n.shape||n.connection,o=r.businessObject;if(!mo(r)&&lo(r)&&Vr(r)){var a=ho(r),s=i.getExternalLabelBounds(Cd,Vr(r));t.createLabel(r,a,{id:o.id+"_label",businessObject:o,width:s.width,height:s.height})}}})),this.postExecute("shape.delete",(function(e){var n=e.context,i=n.labelTarget,r=n.hints||{};i&&!1!==r.unsetLabel&&t.updateLabel(i,null,null,{removeShape:!1})})),this.postExecute(["label.create"],(function(e){var t,i=e.context,r=i.shape,o=i.labelTarget;o&&wr(o,"bpmn:BaseElement")&&((t=Pr(o)).label||(t.label=n.create("bpmndi:BPMNLabel",{bounds:n.create("dc:Bounds")}),r.di=t),q(t.label.bounds,{x:r.x,y:r.y,width:r.width,height:r.height}))})),this.postExecute(["connection.layout","connection.updateWaypoints"],(function(e){var n=e.context;if(!1!==(n.hints||{}).labelBehavior){var i,r=n.connection.label;r&&r.parent&&(i=function(e){var t=e.context,n=t.connection,i=n.label,r=q({},t.hints),o=t.newWaypoints||n.waypoints,a=t.oldWaypoints;return void 0===r.startChanged&&(r.startChanged=!!r.connectionStart),void 0===r.endChanged&&(r.endChanged=!!r.connectionEnd),Ed(i,o,a,r)}(e),t.moveShape(r,i))}})),this.postExecute(["shape.replace"],(function(e){var t=e.context,n=t.newShape,i=t.oldShape,r=Er(n);r&&lo(r)&&i.label&&n.label&&(n.label.x=i.label.x,n.label.y=i.label.y)})),this.postExecute("shape.resize",(function(e){var n,i=e.context,r=i.shape,o=i.newBounds,a=i.oldBounds;if(co(r)){var s=r.label,p=Rd(function(e,t){if(!t.length)return;var n=function(e,t){return D(t.map((function(t){return{line:t,distance:ud(e,t)}})),"distance")[0].line}(e,t);return cd(e,n)}(fn(s),[[{x:(n=a).x,y:n.y},{x:n.x+(n.width||0),y:n.y}],[{x:n.x+(n.width||0),y:n.y},{x:n.x+(n.width||0),y:n.y+(n.height||0)}],[{x:n.x,y:n.y+(n.height||0)},{x:n.x+(n.width||0),y:n.y+(n.height||0)}],[{x:n.x,y:n.y},{x:n.x,y:n.y+(n.height||0)}]]),a,o);t.moveShape(s,p)}}))}function Rd(e,t,n){return dn(Ia(Sd(e,t,n),e))}function zd(e,t,n){var i=Ld(e),r=Id(i,t),o=i[0];return r.length?r[r.length-1]:Sd(o.original||o,n,t)}function Dd(e,t,n){var i=Ld(e),r=Id(i,t),o=i[i.length-1];return r.length?r[0]:Sd(o.original||o,n,t)}function jd(e,t,n){var i=Ld(e),r=Nd(t,n),o=i[0];return Sd(o.original||o,r,t)}function Bd(e,t,n){var i=Ld(e),r=Nd(t,n),o=i[i.length-1];return Sd(o.original||o,r,t)}function Nd(e,t){return{x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height}}function Ld(e){var t=e.waypoints;if(!t.length)throw new Error("connection#"+e.id+": no waypoints");return t}function Id(e,t){return w(k(e,$d),(function(e){return function(e,t){return"intersect"===yn(t,e,1)}(e,t)}))}function $d(e){return e.original||e}function Fd(e,t){Xo.call(this,e),this.postExecute("shape.replace",(function(e){var n=e.oldShape,i=e.newShape;if(function(e,t){return wr(e,"bpmn:Participant")&&Nr(e)&&wr(t,"bpmn:Participant")&&!Nr(t)}(n,i)){var r,o,a,s,p=(o=ft([r=n],!1),a=[],s=[],o.forEach((function(e){e!==r&&(e.incoming.forEach((function(e){wr(e,"bpmn:MessageFlow")&&a.push(e)})),e.outgoing.forEach((function(e){wr(e,"bpmn:MessageFlow")&&s.push(e)})))}),[]),{incoming:a,outgoing:s});p.incoming.forEach((function(e){var r=Dd(e,i,n);t.reconnectEnd(e,i,r)})),p.outgoing.forEach((function(e){var r=zd(e,i,n);t.reconnectStart(e,i,r)}))}}),!0)}i(Ad,Xo),Ad.$inject=["eventBus","modeling","bpmnFactory","textRenderer"],Fd.$inject=["eventBus","modeling"],i(Fd,Xo);function Vd(e,t,n){e.on(["shape.move.rejected","create.rejected"],(function(e){var i,r,o,a=e.context,s=a.shape;wr(a.target,"bpmn:Collaboration")&&wr(s,"bpmn:FlowNode")&&(i=e,r=n("flow elements must be children of pools/participants"),t.add({position:{x:i.x+5,y:i.y+5},type:"error",timeout:o||2e3,html:"<div>"+r+"</div>"}))}))}function Hd(e,t){Xo.call(this,e),this.preExecute("shape.resize",(function(e){var n=e.shape,i=Pr(n),r=i&&i.get("label");r&&r.get("bounds")&&t.updateModdleProperties(n,r,{bounds:void 0})}),!0)}function qd(e,t,n){Xo.call(this,e),this.preExecute("shape.delete",(function(e){var i=e.context.shape;if(1===i.incoming.length&&1===i.outgoing.length){var r=i.incoming[0],o=i.outgoing[0];if(wr(r,"bpmn:SequenceFlow")&&wr(o,"bpmn:SequenceFlow")&&t.canConnect(r.source,o.target,r)){var a=function(e,t){var n=rd(Ud(e[e.length-2]),Ud(e[e.length-1]),Ud(t[1]),Ud(t[0]));return n?[].concat(e.slice(0,e.length-1),[n],t.slice(1)):[Ud(e[0]),Ud(t[t.length-1])]}(r.waypoints,o.waypoints);n.reconnectEnd(r,o.target,a)}}}))}function Ud(e){return e.original||e}function Gd(e,t){Xo.call(this,e),this.preExecute("shape.delete",(function(e){var t=e.shape,n=t.parent;wr(t,"bpmn:Participant")&&(e.collaborationRoot=n)}),!0),this.postExecute("shape.delete",(function(e){var n=e.collaborationRoot;n&&!n.businessObject.participants.length&&t.makeProcess()}),!0)}function Wd(e,t,n,i){Xo.call(this,e);var r=i.get("dragging",!1);function o(e){var i,r,o=e.source,a=e.target;e.parent&&(wr(e,"bpmn:SequenceFlow")&&(n.canConnectSequenceFlow(o,a)||(r=!0),n.canConnectMessageFlow(o,a)&&(i="bpmn:MessageFlow")),wr(e,"bpmn:MessageFlow")&&(n.canConnectMessageFlow(o,a)||(r=!0),n.canConnectSequenceFlow(o,a)&&(i="bpmn:SequenceFlow")),wr(e,"bpmn:Association")&&!n.canConnectAssociation(o,a)&&(r=!0),r&&t.removeConnection(e),i&&t.connect(o,a,{type:i,waypoints:e.waypoints.slice()}))}this.postExecuted("elements.move",(function(e){_(e.closure.allConnections,o)}),!0),this.preExecute("connection.reconnect",(function(e){var i,o,a=e.context,s=a.connection,p=a.newSource||s.source,l=a.newTarget||s.target;(i=n.canConnect(p,l))&&i.type!==s.type&&(o=t.connect(p,l,{type:i.type,waypoints:s.waypoints.slice()}),t.removeConnection(s),a.connection=o,r&&function(e,t){var n,i=r.context(),o=i&&i.payload.previousSelection;if(!o||!o.length)return;if(-1===(n=o.indexOf(e)))return;o.splice(n,1,t)}(s,o))})),this.postExecuted("element.updateProperties",(function(e){var n,i=e.context,r=i.properties,o=i.element,a=o.businessObject;r.default&&(n=b(o.outgoing,j({id:o.businessObject.default.id})))&&t.updateProperties(n,{conditionExpression:void 0}),r.conditionExpression&&a.sourceRef.default===a&&t.updateProperties(o.source,{default:void 0})}))}function Kd(e,t,n,i,r,o){i.invoke(Xo,this),this._bpmnReplace=e,this._elementRegistry=n,this._selection=o,this.postExecuted(["elements.create"],500,(function(e){var n=e.context,i=n.parent,r=n.elements,o=t.canReplace(r,i);o&&this.replaceElements(r,o.replacements)}),this),this.postExecuted(["elements.move"],500,(function(e){var n=e.context,i=n.newParent,r=n.newHost,o=[];_(n.closure.topLevel,(function(e){o=Ir(e)?o.concat(e.children):o.concat(e)})),1===o.length&&r&&(i=r);var a=t.canReplace(o,i);a&&this.replaceElements(o,a.replacements,r)}),this),this.postExecute(["shape.replace"],1500,(function(e){var n,i=e.context,r=i.oldShape,o=i.newShape,a=r.attachers;a&&a.length&&(n=t.canReplace(a,o),this.replaceElements(a,n.replacements))}),this),this.postExecuted(["shape.replace"],1500,(function(e){var t=e.context,n=t.oldShape,i=t.newShape;r.unclaimId(n.businessObject.id,n.businessObject),r.updateProperties(i,{id:n.id})}))}Vd.$inject=["eventBus","tooltips","translate"],i(Hd,Xo),Hd.$inject=["eventBus","modeling"],i(qd,Xo),qd.$inject=["eventBus","bpmnRules","modeling"],Gd.$inject=["eventBus","modeling"],i(Gd,Xo),i(Wd,Xo),Wd.$inject=["eventBus","modeling","bpmnRules","injector"],i(Kd,Xo),Kd.prototype.replaceElements=function(e,t){var n=this._elementRegistry,i=this._bpmnReplace,r=this._selection;_(t,(function(t){var r={type:t.newElementType},o=n.get(t.oldElementId),a=e.indexOf(o);e[a]=i.replaceElement(o,r,{select:!1})})),t&&r.select(e)},Kd.$inject=["bpmnReplace","bpmnRules","elementRegistry","injector","modeling","selection"];var Yd=300,Xd=60,Zd={width:300,height:150},Jd={width:140,height:120},Qd={width:50,height:30};function eh(e){e.on("resize.start",1500,(function(e){var t=e.context,n=t.shape,i=t.direction,r=t.balanced;(wr(n,"bpmn:Lane")||wr(n,"bpmn:Participant"))&&(t.resizeConstraints=function(e,t,n){var i=xc(e),r=!0,o=!0,a=vc(i,[i]),s=hn(e),p={},l={};/e/.test(t)?l.right=s.left+Yd:/w/.test(t)&&(l.left=s.right-Yd);return a.forEach((function(e){var i=hn(e);/n/.test(t)&&(i.top<s.top-10&&(r=!1),n&&th(s.top-i.bottom)<10&&ah(p,"top",i.top+Xd),th(s.top-i.top)<5&&oh(l,"top",i.bottom-Xd)),/s/.test(t)&&(i.bottom>s.bottom+10&&(o=!1),n&&th(s.bottom-i.top)<10&&oh(p,"bottom",i.bottom-Xd),th(s.bottom-i.bottom)<5&&ah(l,"bottom",i.top+Xd))})),i.children.filter((function(e){return!e.hidden&&!e.waypoints&&(wr(e,"bpmn:FlowElement")||wr(e,"bpmn:Artifact"))})).forEach((function(e){var n=hn(e);r&&/n/.test(t)&&oh(l,"top",n.top-20),/e/.test(t)&&ah(l,"right",n.right+20),o&&/s/.test(t)&&ah(l,"bottom",n.bottom+20),/w/.test(t)&&oh(l,"left",n.left-50)})),{min:l,max:p}}(n,i,r)),wr(n,"bpmn:Participant")&&(t.minDimensions=Zd),wr(n,"bpmn:SubProcess")&&Nr(n)&&(t.minDimensions=Jd),wr(n,"bpmn:TextAnnotation")&&(t.minDimensions=Qd)}))}eh.$inject=["eventBus"];var th=Math.abs,nh=Math.min,ih=Math.max;function rh(e,t,n,i){var r=e[t];e[t]=void 0===r?n:i(n,r)}function oh(e,t,n){return rh(e,t,n,nh)}function ah(e,t,n){return rh(e,t,n,ih)}function sh(e,t){e.on("resize.start",1501,(function(e){var t=e.context,n=t.shape;(wr(n,"bpmn:Lane")||wr(n,"bpmn:Participant"))&&(t.balanced=!So(e))})),e.on("resize.end",1001,(function(e){var n=e.context,i=n.shape,r=n.canExecute,o=n.newBounds;if(wr(i,"bpmn:Lane")||wr(i,"bpmn:Participant"))return r&&(o=un(o),t.resizeLane(i,o,n.balanced)),!1}))}sh.$inject=["eventBus","modeling"];function ph(e,t,n,i,r){function o(e){return _r(e,["bpmn:ReceiveTask","bpmn:SendTask"])||function(e,t){d(t)||(t=[t]);return S(t,(function(t){return $r(e,t)}))}(e,["bpmn:ErrorEventDefinition","bpmn:EscalationEventDefinition","bpmn:MessageEventDefinition","bpmn:SignalEventDefinition"])}function a(t){return!!b(e.getDefinitions().get("rootElements"),j({id:t.id}))}function s(e){return wr(e,"bpmn:ErrorEventDefinition")?"errorRef":wr(e,"bpmn:EscalationEventDefinition")?"escalationRef":wr(e,"bpmn:MessageEventDefinition")?"messageRef":wr(e,"bpmn:SignalEventDefinition")?"signalRef":void 0}function p(e){if(_r(e,["bpmn:ReceiveTask","bpmn:SendTask"]))return e.get("messageRef");var t=e.get("eventDefinitions")[0];return t.get(s(t))}n.invoke(Xo,this),this.executed("shape.create",(function(t){var n=t.shape;if(o(n)){var i=p(Er(n));i&&!a(i)&&(Et(e.getDefinitions().get("rootElements"),i),t.addedRootElement=i)}}),!0),this.reverted("shape.create",(function(t){var n=t.addedRootElement;n&&_t(e.getDefinitions().get("rootElements"),n)}),!0),t.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element;if(o(n)){var i=p(Er(n));i&&(t.referencedRootElement=i)}})),t.on("copyPaste.pasteElement",500,(function(e){var t=e.descriptor,n=t.businessObject;if(o(n)){var p=t.referencedRootElement;p&&(a(p)||(p=i.copyElement(p,r.create(p.$type))),function(e,t){if(_r(e,["bpmn:ReceiveTask","bpmn:SendTask"]))return e.set("messageRef",t);var n=e.get("eventDefinitions")[0];n.set(s(n),t)}(n,p))}}))}ph.$inject=["bpmnjs","eventBus","injector","moddleCopy","bpmnFactory"],i(ph,Xo);var lh=Math.max;function ch(e){e.on("spaceTool.getMinDimensions",(function(e){var t=e.shapes,n=e.axis,i=e.start,r={};return _(t,(function(e){var t=e.id;wr(e,"bpmn:Participant")&&(!function(e){return"x"===e}(n)?r[t]={width:Zd.width,height:uh(e,i)}:r[t]=Zd),wr(e,"bpmn:SubProcess")&&Nr(e)&&(r[t]=Jd),wr(e,"bpmn:TextAnnotation")&&(r[t]=Qd)})),r}))}function uh(e,t){var n;return bc(e).length?(n=function(e,t){var n,i=bc(e);return n=dh(i,t),e.height-n.height+Xd}(e,t),lh(Zd.height,n)):Zd.height}function dh(e,t){var n,i,r;for(n=0;n<e.length;n++)if(t>=(i=e[n]).y&&t<=i.y+i.height)return(r=bc(i)).length?dh(r,t):i}ch.$inject=["eventBus"];var hh=180,mh=160;function fh(e,t,n,i,r,o,a){Xo.call(this,t),this._canvas=e,this._eventBus=t,this._modeling=n,this._elementFactory=i,this._bpmnFactory=r,this._bpmnjs=o,this._elementRegistry=a;var s=this;function p(e){return wr(e,"bpmn:SubProcess")&&!Nr(e)}function l(t){var n=t.shape,i=t.newRootElement,r=Er(n);i=s._addDiagram(i||r),t.newRootElement=e.addRootElement(i)}function c(t){var n=Er(t.shape);s._removeDiagram(n);var i=t.newRootElement=a.get(ra(n));e.removeRootElement(i)}this.executed("shape.create",(function(e){p(e.shape)&&l(e)}),!0),this.postExecuted("shape.create",(function(e){var t=e.shape,n=e.newRootElement;n&&t.children&&(s._showRecursively(t.children),s._moveChildrenToShape(t,n))}),!0),this.reverted("shape.create",(function(e){p(e.shape)&&c(e)}),!0),this.preExecuted("shape.delete",(function(e){var t=e.shape;if(p(t)){var i=a.get(ra(t));i&&n.removeElements(i.children.slice())}}),!0),this.executed("shape.delete",(function(e){p(e.shape)&&c(e)}),!0),this.reverted("shape.delete",(function(e){p(e.shape)&&l(e)}),!0),this.preExecuted("shape.replace",(function(t){var n=t.oldShape,i=t.newShape;p(n)&&p(i)&&(t.oldRoot=e.removeRootElement(ra(n)))}),!0),this.postExecuted("shape.replace",(function(t){var i=t.newShape,r=t.oldRoot,o=e.findRoot(ra(i));if(r&&o){var a=r.children;n.moveElements(a,{x:0,y:0},o)}}),!0),this.executed("element.updateProperties",(function(e){var t=e.element;if(wr(t,"bpmn:SubProcess")){var n=e.properties,i=e.oldProperties.id,r=n.id;if(i!==r){if(aa(t))return a.updateId(t,oa(r)),void a.updateId(i,r);a.get(oa(i))&&a.updateId(oa(i),oa(r))}}}),!0),this.reverted("element.updateProperties",(function(e){var t=e.element;if(wr(t,"bpmn:SubProcess")){var n=e.properties,i=e.oldProperties.id,r=n.id;if(i!==r){if(aa(t))return a.updateId(t,oa(i)),void a.updateId(r,i);var o=a.get(oa(r));o&&a.updateId(o,oa(i))}}}),!0),t.on("element.changed",(function(e){var n=e.element;if(aa(n)){var i=n,r=a.get(ia(i));r&&r!==i&&t.fire("element.changed",{element:r})}})),this.executed("shape.toggleCollapse",400,(function(e){var t=e.shape;wr(t,"bpmn:SubProcess")&&(Nr(t)?c(e):(l(e),s._showRecursively(t.children)))}),!0),this.reverted("shape.toggleCollapse",400,(function(e){var t=e.shape;wr(t,"bpmn:SubProcess")&&(Nr(t)?c(e):(l(e),s._showRecursively(t.children)))}),!0),this.postExecuted("shape.toggleCollapse",600,(function(e){var t=e.shape;if(wr(t,"bpmn:SubProcess")){var n=e.newRootElement;n&&(Nr(t)?s._moveChildrenToShape(n,t):s._moveChildrenToShape(t,n))}}),!0),t.on("copyPaste.createTree",(function(e){var t=e.element,n=e.children;if(p(t)){var i=ra(t),r=a.get(i);r&&n.push.apply(n,r.children)}})),t.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element,i=e.elements,r=n.parent;if(wr(Pr(r),"bpmndi:BPMNPlane")){var o=ia(r),a=b(i,(function(e){return e.id===o}));a&&(t.parent=a.id)}})),t.on("copyPaste.pasteElement",(function(e){var t=e.descriptor;t.parent&&(p(t.parent)||t.parent.hidden)&&(t.hidden=!0)}))}function yh(e,t){e.invoke(Xo,this),this.postExecuted("shape.replace",(function(e){var n=e.context.oldShape,i=e.context.newShape;if(wr(i,"bpmn:SubProcess")&&wr(n,"bpmn:Task")&&Nr(i)){var r,o={x:(r=i).x+r.width/6,y:r.y+r.height/2};t.createShape({type:"bpmn:StartEvent"},o,i)}}))}function gh(e,t){Xo.call(this,e),this.postExecuted("shape.toggleCollapse",1500,(function(e){var n=e.shape;if(!Nr(n)){var i=ft(n);i.forEach((function(e){var t=e.incoming.slice(),n=e.outgoing.slice();_(t,(function(e){r(e,!0)})),_(n,(function(e){r(e,!1)}))}))}function r(e,r){-1!==i.indexOf(e.source)&&-1!==i.indexOf(e.target)||(r?t.reconnectEnd(e,n,fn(n)):t.reconnectStart(e,n,fn(n)))}}),!0)}i(fh,Xo),fh.prototype._moveChildrenToShape=function(e,t){var n,i=this._modeling,r=e.children;if(r){var o=r.filter((function(e){return!e.hidden}));if(o.length){var a=yt(o);if(t.x){var s=fn(t),p=fn(a);n={x:s.x-p.x,y:s.y-p.y}}else n={x:hh-a.x,y:mh-a.y};i.moveElements(r,n,t,{autoResize:!1})}else i.moveElements(r,{x:0,y:0},t,{autoResize:!1})}},fh.prototype._showRecursively=function(e,t){var n=this,i=[];return e.forEach((function(e){e.hidden=!!t,i=i.concat(e),e.children&&(i=i.concat(n._showRecursively(e.children,e.collapsed||t)))})),i},fh.prototype._addDiagram=function(e){var t=this._bpmnjs.getDefinitions().diagrams;return e.businessObject||(e=this._createNewDiagram(e)),t.push(e.di.$parent),e},fh.prototype._createNewDiagram=function(e){var t=this._bpmnFactory,n=this._elementFactory,i=t.create("bpmndi:BPMNPlane",{bpmnElement:e}),r=t.create("bpmndi:BPMNDiagram",{plane:i});return i.$parent=r,n.createRoot({id:ra(e),type:e.$type,di:i,businessObject:e,collapsed:!0})},fh.prototype._removeDiagram=function(e){var t=this._bpmnjs.getDefinitions().diagrams,n=b(t,(function(t){return t.plane.bpmnElement.id===e.id}));return t.splice(t.indexOf(n),1),n},fh.$inject=["canvas","eventBus","modeling","elementFactory","bpmnFactory","bpmnjs","elementRegistry"],yh.$inject=["injector","modeling"],i(yh,Xo),i(gh,Xo),gh.$inject=["eventBus","modeling"];function vh(e,t,n,i){Xo.call(this,e),this.executed(["shape.toggleCollapse"],500,(function(e){var t,n=e.context.shape;wr(n,"bpmn:SubProcess")&&(n.collapsed?Pr(n).isExpanded=!1:((t=n.children).length&&t.forEach((function(e){"label"!==e.type||e.businessObject.name||(e.hidden=!0)})),Pr(n).isExpanded=!0))})),this.reverted(["shape.toggleCollapse"],500,(function(e){var t=e.context.shape;t.collapsed?Pr(t).isExpanded=!1:Pr(t).isExpanded=!0})),this.postExecuted(["shape.toggleCollapse"],500,(function(e){var i,r=e.context.shape,o=t.getDefaultSize(r);i=r.collapsed?function(e,t){return{x:e.x+(e.width-t.width)/2,y:e.y+(e.height-t.height)/2,width:t.width,height:t.height}}(r,o):function(e,t){var n,i,r=e.children,o=t;return(n=mc((i=r,i.filter((function(e){return!e.hidden}))).concat([e])))?(o.width=Math.max(n.width,o.width),o.height=Math.max(n.height,o.height),o.x=n.x+(n.width-o.width)/2,o.y=n.y+(n.height-o.height)/2):(o.x=e.x+(e.width-o.width)/2,o.y=e.y+(e.height-o.height)/2),o}(r,o),n.resizeShape(r,i,null,{autoResize:!r.collapsed&&"nwse"})}))}function bh(e,t,n,i){t.invoke(Xo,this),this.preExecute("shape.delete",(function(e){var t=e.context.shape,r=t.businessObject;mo(t)||(wr(t,"bpmn:Participant")&&Nr(t)&&n.ids.unclaim(r.processRef.id),i.unclaimId(r.id,r))})),this.preExecute("connection.delete",(function(e){var t=e.context.connection.businessObject;i.unclaimId(t.id,t)})),this.preExecute("canvas.updateRoot",(function(){var t=e.getRootElement(),i=t.businessObject;wr(t,"bpmn:Collaboration")&&n.ids.unclaim(i.id)}))}function xh(e,t){Xo.call(this,e),this.preExecute("connection.delete",(function(e){var n=e.context.connection,i=n.source;(function(e,t){if(!wr(e,"bpmn:SequenceFlow"))return!1;var n=Er(t),i=Er(e);return n.get("default")===i})(n,i)&&t.updateProperties(i,{default:null})}))}i(vh,Xo),vh.$inject=["eventBus","elementFactory","modeling"],i(bh,Xo),bh.$inject=["canvas","injector","moddle","modeling"],i(xh,Xo),xh.$inject=["eventBus","modeling"];function wh(e,t,n){var i;function r(){if(!i)throw new Error(n("out of bounds release"));return i}Xo.call(this,e);var o=["spaceTool","lane.add","lane.resize","lane.split","elements.create","elements.delete","elements.move","shape.create","shape.delete","shape.move","shape.resize"];this.preExecute(o,5e3,(function(e){(i=i||new _h).enter()})),this.postExecuted(o,500,(function(e){!function(){if(!i)throw new Error(n("out of bounds release"));var e=i.leave();e&&(t.updateLaneRefs(i.flowNodes,i.lanes),i=null)}()})),this.preExecute(["shape.create","shape.move","shape.delete","shape.resize"],(function(e){var t=e.context.shape,n=r();t.labelTarget||(wr(t,"bpmn:Lane")&&n.addLane(t),wr(t,"bpmn:FlowNode")&&n.addFlowNode(t))}))}function _h(){this.flowNodes=[],this.lanes=[],this.counter=0,this.addLane=function(e){this.lanes.push(e)},this.addFlowNode=function(e){this.flowNodes.push(e)},this.enter=function(){this.counter++},this.leave=function(){return this.counter--,!this.counter}}wh.$inject=["eventBus","modeling","translate"],i(wh,Xo);var Eh={__init__:["adaptiveLabelPositioningBehavior","appendBehavior","associationBehavior","attachEventBehavior","boundaryEventBehavior","createBehavior","createDataObjectBehavior","createParticipantBehavior","dataInputAssociationBehavior","dataStoreBehavior","deleteLaneBehavior","detachEventBehavior","dropOnFlowBehavior","eventBasedGatewayBehavior","fixHoverBehavior","groupBehavior","importDockingFix","isHorizontalFix","labelBehavior","messageFlowBehavior","modelingFeedback","removeElementBehavior","removeEmbeddedLabelBoundsBehavior","removeParticipantBehavior","replaceConnectionBehavior","replaceElementBehaviour","resizeBehavior","resizeLaneBehavior","rootElementReferenceBehavior","spaceToolBehavior","subProcessPlaneBehavior","subProcessStartEventBehavior","toggleCollapseConnectionBehaviour","toggleElementCollapseBehaviour","unclaimIdBehavior","updateFlowNodeRefsBehavior","unsetDefaultFlowBehavior"],adaptiveLabelPositioningBehavior:["type",Mu],appendBehavior:["type",Au],associationBehavior:["type",Ru],attachEventBehavior:["type",zu],boundaryEventBehavior:["type",ju],createBehavior:["type",Bu],createDataObjectBehavior:["type",Nu],createParticipantBehavior:["type",Fu],dataInputAssociationBehavior:["type",Hu],dataStoreBehavior:["type",Gu],deleteLaneBehavior:["type",Wu],detachEventBehavior:["type",Ku],dropOnFlowBehavior:["type",Xu],eventBasedGatewayBehavior:["type",Qu],fixHoverBehavior:["type",nd],groupBehavior:["type",id],importDockingFix:["type",od],isHorizontalFix:["type",sd],labelBehavior:["type",Ad],messageFlowBehavior:["type",Fd],modelingFeedback:["type",Vd],removeElementBehavior:["type",qd],removeEmbeddedLabelBoundsBehavior:["type",Hd],removeParticipantBehavior:["type",Gd],replaceConnectionBehavior:["type",Wd],replaceElementBehaviour:["type",Kd],resizeBehavior:["type",eh],resizeLaneBehavior:["type",sh],rootElementReferenceBehavior:["type",ph],spaceToolBehavior:["type",ch],subProcessPlaneBehavior:["type",fh],subProcessStartEventBehavior:["type",yh],toggleCollapseConnectionBehaviour:["type",gh],toggleElementCollapseBehaviour:["type",vh],unclaimIdBehavior:["type",bh],unsetDefaultFlowBehavior:["type",xh],updateFlowNodeRefsBehavior:["type",wh]};function Ph(e,t){var n=yn(e,t,-15);return"intersect"!==n?n:null}function Oh(e){Ps.call(this,e)}function Sh(e){return!e||mo(e)}function kh(e){do{if(wr(e,"bpmn:Process"))return Er(e);if(wr(e,"bpmn:Participant"))return Er(e).processRef||Er(e)}while(e=e.parent)}function Ch(e){return wr(e,"bpmn:TextAnnotation")}function Mh(e){return wr(e,"bpmn:Group")&&!e.labelTarget}function Th(e){return wr(e,"bpmn:BoundaryEvent")&&zh(e,"bpmn:CompensateEventDefinition")}function Ah(e){return Er(e).isForCompensation}function Rh(e){for(var t=e;t=t.parent;){if(wr(t,"bpmn:FlowElementsContainer"))return Er(t);if(wr(t,"bpmn:Participant"))return Er(t).processRef}return null}function zh(e,t){return!!b(Er(e).eventDefinitions||[],(function(e){return wr(e,t)}))}function Dh(e,t){return(Er(e).eventDefinitions||[]).every((function(e){return wr(e,t)}))}function jh(e){return wr(e,"bpmn:ReceiveTask")||wr(e,"bpmn:IntermediateCatchEvent")&&(zh(e,"bpmn:MessageEventDefinition")||zh(e,"bpmn:TimerEventDefinition")||zh(e,"bpmn:ConditionalEventDefinition")||zh(e,"bpmn:SignalEventDefinition"))}function Bh(e){return e.waypoints}function Nh(e,t){return-1!==function(e){for(var t=[];e;)(e=e.parent)&&t.push(e);return t}(t).indexOf(e)}function Lh(e,t,n){if(Sh(e)||Sh(t))return null;if(!wr(n,"bpmn:DataAssociation")){if(Zh(e,t))return{type:"bpmn:MessageFlow"};if(Jh(e,t))return{type:"bpmn:SequenceFlow"}}var i=Qh(e,t);return i||(Th(e)&&Ah(t)?{type:"bpmn:Association",associationDirection:"One"}:!!Xh(e,t)&&{type:"bpmn:Association"})}function Ih(e,t,n){return!(!mo(e)&&!Mh(e))||!(wr(t,"bpmn:Participant")&&!Nr(t))&&(wr(e,"bpmn:Participant")?wr(t,"bpmn:Process")||wr(t,"bpmn:Collaboration"):_r(e,["bpmn:DataInput","bpmn:DataOutput"])&&e.parent?t===e.parent:wr(e,"bpmn:Lane")?wr(t,"bpmn:Participant")||wr(t,"bpmn:Lane"):!(wr(e,"bpmn:BoundaryEvent")&&(i=e,!Er(i).cancelActivity||!Vh(i)&&!Hh(i)))&&(wr(e,"bpmn:FlowElement")&&!wr(e,"bpmn:DataStoreReference")?wr(t,"bpmn:FlowElementsContainer")?Nr(t):_r(t,["bpmn:Participant","bpmn:Lane"]):wr(e,"bpmn:DataStoreReference")&&wr(t,"bpmn:Collaboration")?S(Er(t).get("participants"),(function(e){return!!e.get("processRef")})):_r(e,["bpmn:Artifact","bpmn:DataAssociation","bpmn:DataStoreReference"])?_r(t,["bpmn:Collaboration","bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"]):!!wr(e,"bpmn:MessageFlow")&&(wr(t,"bpmn:Collaboration")||e.source.parent==t||e.target.parent==t)));var i}function $h(e){return wr(e,"bpmn:Lane")}function Fh(e){return!!function(e){return!mo(e)&&wr(e,"bpmn:BoundaryEvent")}(e)||(!(!wr(e,"bpmn:IntermediateThrowEvent")||!Vh(e))||wr(e,"bpmn:IntermediateCatchEvent")&&Hh(e))}function Vh(e){var t=Er(e);return t&&!(t.eventDefinitions&&t.eventDefinitions.length)}function Hh(e){return qh(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])}function qh(e,t){return t.some((function(t){return zh(e,t)}))}function Uh(e,t,n,i){if(Array.isArray(e)||(e=[e]),1!==e.length)return!1;var r=e[0];return!mo(r)&&(!!Fh(r)&&(!Ir(t)&&(!(!wr(t,"bpmn:Activity")||Ah(t))&&(!(i&&!Ph(i,t))&&(!function(e){return wr(e,"bpmn:ReceiveTask")&&b(e.incoming,(function(e){return wr(e.source,"bpmn:EventBasedGateway")}))}(t)&&"attach")))))}function Gh(e,t,n){if(!t)return!1;var i={replacements:[]};return _(e,(function(e){Ir(t)||wr(e,"bpmn:StartEvent")&&"label"!==e.type&&Ih(e,t)&&(Lr(e)||i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"}),(function(e){return $r(e,"bpmn:ErrorEventDefinition")}(e)||function(e){return $r(e,"bpmn:EscalationEventDefinition")}(e)||function(e){return $r(e,"bpmn:CompensateEventDefinition")}(e))&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"}),qh(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])&&wr(t,"bpmn:SubProcess")&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"})),wr(t,"bpmn:Transaction")||zh(e,"bpmn:CancelEventDefinition")&&"label"!==e.type&&(wr(e,"bpmn:EndEvent")&&Ih(e,t)&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:EndEvent"}),wr(e,"bpmn:BoundaryEvent")&&Uh(e,t,0,n)&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:BoundaryEvent"}))})),!!i.replacements.length&&i}function Wh(e,t){return!S(e,$h)&&(!t||e.every((function(e){return Ih(e,t)})))}function Kh(e,t,n,i){return!!t&&(!(!mo(e)&&!Mh(e))||!function(e,t){return e===t}(n,t)&&((!n||!Nh(n,t))&&(Ih(e,t)||em(e,t))))}function Yh(e,t){return wr(e,"bpmn:SubProcess")?Nr(e)&&(!t||t.width>=100&&t.height>=80):wr(e,"bpmn:Lane")?!t||t.width>=130&&t.height>=60:wr(e,"bpmn:Participant")?!t||t.width>=250&&t.height>=50:!!Ch(e)||!!Mh(e)}function Xh(e,t){return!Bh(e)&&!Bh(t)&&(!(!Th(e)||!Ah(t))||!Nh(t,e)&&!Nh(e,t)&&(!!function(e,t){var n=Ch(e),i=Ch(t);return(n||i)&&n!==i}(e,t)||!!Qh(e,t)))}function Zh(e,t){return!(im(e)&&!im(t))&&(wr(n=e,"bpmn:InteractionNode")&&!wr(n,"bpmn:BoundaryEvent")&&(!wr(n,"bpmn:Event")||wr(n,"bpmn:ThrowEvent")&&Dh(n,"bpmn:MessageEventDefinition"))&&function(e){return wr(e,"bpmn:InteractionNode")&&!Ah(e)&&(!wr(e,"bpmn:Event")||wr(e,"bpmn:CatchEvent")&&Dh(e,"bpmn:MessageEventDefinition"))&&!(wr(e,"bpmn:BoundaryEvent")&&!zh(e,"bpmn:MessageEventDefinition"))}(t)&&!function(e,t){return kh(e)===kh(t)}(e,t));var n}function Jh(e,t){return!(jh(t)&&t.incoming.length>0&&(n=t.incoming,(n=n||[]).some(nm))&&!wr(e,"bpmn:EventBasedGateway"))&&(wr(i=e,"bpmn:FlowNode")&&!wr(i,"bpmn:EndEvent")&&!Ir(i)&&!(wr(i,"bpmn:IntermediateThrowEvent")&&zh(i,"bpmn:LinkEventDefinition"))&&!Th(i)&&!Ah(i)&&function(e){return wr(e,"bpmn:FlowNode")&&!wr(e,"bpmn:StartEvent")&&!wr(e,"bpmn:BoundaryEvent")&&!Ir(e)&&!(wr(e,"bpmn:IntermediateCatchEvent")&&zh(e,"bpmn:LinkEventDefinition"))&&!Ah(e)}(t)&&function(e,t){return Rh(e)===Rh(t)}(e,t)&&!(wr(e,"bpmn:EventBasedGateway")&&!jh(t)));var n,i}function Qh(e,t){return _r(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&_r(t,["bpmn:Activity","bpmn:ThrowEvent"])?{type:"bpmn:DataInputAssociation"}:!(!_r(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])||!_r(e,["bpmn:Activity","bpmn:CatchEvent"]))&&{type:"bpmn:DataOutputAssociation"}}function em(e,t,n){if(!t)return!1;if(Array.isArray(e)){if(1!==e.length)return!1;e=e[0]}return t.source!==e&&t.target!==e&&(_r(t,["bpmn:SequenceFlow","bpmn:MessageFlow"])&&!mo(t)&&wr(e,"bpmn:FlowNode")&&!wr(e,"bpmn:BoundaryEvent")&&Ih(e,t.parent))}function tm(e,t){return!!mo(t)||!(wr(t,"bpmn:Lane")&&!function(e,t){return e&&t&&-1!==e.indexOf(t)}(e,t.parent))}function nm(e){if(e&&e.source)return wr(e.source,"bpmn:EventBasedGateway")}function im(e){return gs(e,"bpmn:Process")||gs(e,"bpmn:Collaboration")}i(Oh,Ps),Oh.$inject=["eventBus"],Oh.prototype.init=function(){this.addRule("connection.start",(function(e){return function(e){if(Sh(e))return null;return _r(e,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference","bpmn:Group","bpmn:TextAnnotation"])}(e.source)})),this.addRule("connection.create",(function(e){var t=e.source,n=e.target,i=e.hints||{},r=i.targetParent;if(i.targetAttach)return!1;r&&(n.parent=r);try{return Lh(t,n)}finally{r&&(n.parent=null)}})),this.addRule("connection.reconnect",(function(e){var t=e.connection;return Lh(e.source,e.target,t)})),this.addRule("connection.updateWaypoints",(function(e){return{type:e.connection.type}})),this.addRule("shape.resize",(function(e){return Yh(e.shape,e.newBounds)})),this.addRule("elements.create",(function(e){var t=e.elements,n=e.position,i=e.target;return!(Bh(i)&&!em(t,i))&&O(t,(function(e){return Bh(e)?Lh(e.source,e.target,e):e.host?Uh(e,e.host,null,n):Kh(e,i,null)}))})),this.addRule("elements.move",(function(e){var t=e.target,n=e.shapes,i=e.position;return Uh(n,t,null,i)||Gh(n,t,i)||Wh(n,t)||em(n,t)})),this.addRule("shape.create",(function(e){return Kh(e.shape,e.target,e.source,e.position)})),this.addRule("shape.attach",(function(e){return Uh(e.shape,e.target,null,e.position)})),this.addRule("element.copy",(function(e){var t=e.element;return tm(e.elements,t)}))},Oh.prototype.canConnectMessageFlow=Zh,Oh.prototype.canConnectSequenceFlow=Jh,Oh.prototype.canConnectDataAssociation=Qh,Oh.prototype.canConnectAssociation=Xh,Oh.prototype.canMove=Wh,Oh.prototype.canAttach=Uh,Oh.prototype.canReplace=Gh,Oh.prototype.canDrop=Ih,Oh.prototype.canInsert=em,Oh.prototype.canCreate=Kh,Oh.prototype.canConnect=Lh,Oh.prototype.canResize=Yh,Oh.prototype.canCopy=tm;var rm={__depends__:[Is],__init__:["bpmnRules"],bpmnRules:["type",Oh]};function om(e,t){e.on("saveXML.start",2e3,(function(){_(t.getRootElements(),(function(e){var t,n=Pr(e);t=k(w(ft([e],!1),(function(t){return t!==e&&!t.labelTarget})),Pr),n.set("planeElement",t)}))}))}om.$inject=["eventBus","canvas"];var am={__init__:["bpmnDiOrdering"],bpmnDiOrdering:["type",om]};function sm(e){Xo.call(this,e);var t=this;this.preExecute(["shape.create","connection.create"],(function(e){var n=e.context,i=n.shape||n.connection,r=n.parent,o=t.getOrdering(i,r);o&&(void 0!==o.parent&&(n.parent=o.parent),n.parentIndex=o.index)})),this.preExecute(["shape.move","connection.move"],(function(e){var n=e.context,i=n.shape||n.connection,r=n.newParent||i.parent,o=t.getOrdering(i,r);o&&(void 0!==o.parent&&(n.newParent=o.parent),n.newParentIndex=o.index)}))}function pm(e,t,n){sm.call(this,e);var i=[{type:"bpmn:SubProcess",order:{level:6}},{type:"bpmn:SequenceFlow",order:{level:3,containers:["bpmn:Participant","bpmn:FlowElementsContainer"]}},{type:"bpmn:DataAssociation",order:{level:9,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:MessageFlow",order:{level:9,containers:["bpmn:Collaboration"]}},{type:"bpmn:Association",order:{level:6,containers:["bpmn:Participant","bpmn:FlowElementsContainer","bpmn:Collaboration"]}},{type:"bpmn:BoundaryEvent",order:{level:8}},{type:"bpmn:Group",order:{level:10,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:FlowElement",order:{level:5}},{type:"bpmn:Participant",order:{level:-2}},{type:"bpmn:Lane",order:{level:-1}}];function r(e){var t=e.order;if(t||(e.order=t=function(e){if(e.labelTarget)return{level:10};var t=b(i,(function(t){return _r(e,[t.type])}));return t&&t.order||{level:1}}(e)),!t)throw new Error("no order for <"+e.id+">");return t}this.getOrdering=function(e,n){if(e.labelTarget)return{parent:t.findRoot(e.labelTarget)||t.getRootElement(),index:-1};var i=r(e);i.containers&&(n=function(e,t,n){for(var i=t;i&&!_r(i,n);)i=i.parent;if(!i)throw new Error("no parent for <"+e.id+"> in <"+(t&&t.id)+">");return i}(e,n,i.containers));var o=n.children.indexOf(e),a=x(n.children,(function(t){return!(!e.labelTarget&&t.labelTarget)&&i.level<r(t).level}));return-1!==a&&-1!==o&&o<a&&(a-=1),{index:a,parent:n}}}sm.prototype.getOrdering=function(e,t){return null},i(sm,Xo),pm.$inject=["eventBus","canvas","translate"],i(pm,sm);var lm={__depends__:[so],__init__:["bpmnOrderingProvider"],bpmnOrderingProvider:["type",pm]};function cm(e,t){this._handlerMap={},this._stack=[],this._stackIdx=-1,this._currentExecution={actions:[],dirty:[],trigger:null},this._injector=t,this._eventBus=e,this._uid=1,e.on(["diagram.destroy","diagram.clear"],(function(){this.clear(!1)}),this)}cm.$inject=["eventBus","injector"],cm.prototype.execute=function(e,t){if(!e)throw new Error("command required");this._currentExecution.trigger="execute";var n={command:e,context:t};this._pushAction(n),this._internalExecute(n),this._popAction(n)},cm.prototype.canExecute=function(e,t){var n={command:e,context:t},i=this._getHandler(e),r=this._fire(e,"canExecute",n);if(void 0===r){if(!i)return!1;i.canExecute&&(r=i.canExecute(t))}return r},cm.prototype.clear=function(e){this._stack.length=0,this._stackIdx=-1,!1!==e&&this._fire("changed",{trigger:"clear"})},cm.prototype.undo=function(){var e,t=this._getUndoAction();if(t){for(this._currentExecution.trigger="undo",this._pushAction(t);t&&(this._internalUndo(t),(e=this._getUndoAction())&&e.id===t.id);)t=e;this._popAction()}},cm.prototype.redo=function(){var e,t=this._getRedoAction();if(t){for(this._currentExecution.trigger="redo",this._pushAction(t);t&&(this._internalExecute(t,!0),(e=this._getRedoAction())&&e.id===t.id);)t=e;this._popAction()}},cm.prototype.register=function(e,t){this._setHandler(e,t)},cm.prototype.registerHandler=function(e,t){if(!e||!t)throw new Error("command and handlerCls must be defined");var n=this._injector.instantiate(t);this.register(e,n)},cm.prototype.canUndo=function(){return!!this._getUndoAction()},cm.prototype.canRedo=function(){return!!this._getRedoAction()},cm.prototype._getRedoAction=function(){return this._stack[this._stackIdx+1]},cm.prototype._getUndoAction=function(){return this._stack[this._stackIdx]},cm.prototype._internalUndo=function(e){var t=this,n=e.command,i=e.context,r=this._getHandler(n);this._atomicDo((function(){t._fire(n,"revert",e),r.revert&&t._markDirty(r.revert(i)),t._revertedAction(e),t._fire(n,"reverted",e)}))},cm.prototype._fire=function(e,t,n){arguments.length<3&&(n=t,t=null);var i,r,o,a=t?[e+"."+t,t]:[e];for(n=this._eventBus.createEvent(n),i=0;(r=a[i])&&(o=this._eventBus.fire("commandStack."+r,n),!n.cancelBubble);i++);return o},cm.prototype._createId=function(){return this._uid++},cm.prototype._atomicDo=function(e){var t=this._currentExecution;t.atomic=!0;try{e()}finally{t.atomic=!1}},cm.prototype._internalExecute=function(e,t){var n=this,i=e.command,r=e.context,o=this._getHandler(i);if(!o)throw new Error("no command handler registered for <"+i+">");this._pushAction(e),t||(this._fire(i,"preExecute",e),o.preExecute&&o.preExecute(r),this._fire(i,"preExecuted",e)),this._atomicDo((function(){n._fire(i,"execute",e),o.execute&&n._markDirty(o.execute(r)),n._executedAction(e,t),n._fire(i,"executed",e)})),t||(this._fire(i,"postExecute",e),o.postExecute&&o.postExecute(r),this._fire(i,"postExecuted",e)),this._popAction(e)},cm.prototype._pushAction=function(e){var t=this._currentExecution,n=t.actions,i=n[0];if(t.atomic)throw new Error("illegal invocation in <execute> or <revert> phase (action: "+e.command+")");e.id||(e.id=i&&i.id||this._createId()),n.push(e)},cm.prototype._popAction=function(){var e=this._currentExecution,t=e.trigger,n=e.actions,i=e.dirty;n.pop(),n.length||(this._eventBus.fire("elements.changed",{elements:R("id",i.reverse())}),i.length=0,this._fire("changed",{trigger:t}),e.trigger=null)},cm.prototype._markDirty=function(e){var t=this._currentExecution;e&&(e=d(e)?e:[e],t.dirty=t.dirty.concat(e))},cm.prototype._executedAction=function(e,t){var n=++this._stackIdx;t||this._stack.splice(n,this._stack.length,e)},cm.prototype._revertedAction=function(e){this._stackIdx--},cm.prototype._getHandler=function(e){return this._handlerMap[e]},cm.prototype._setHandler=function(e,t){if(!e||!t)throw new Error("command and handler required");if(this._handlerMap[e])throw new Error("overriding handler for command <"+e+">");this._handlerMap[e]=t};var um={commandStack:["type",cm]},dm=new Fo("tt");function hm(e,t){e.style.display=!1===t?"none":""}var mm=".djs-tooltip";function fm(e,t){var n,i;this._eventBus=e,this._canvas=t,this._ids=dm,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=(n=t.getContainer(),i=fe('<div class="djs-tooltip-container" style="position: absolute; width: 0; height: 0;" />'),n.insertBefore(i,n.firstChild),i);var r=this;me.bind(this._tooltipRoot,mm,"mousedown",(function(e){e.stopPropagation()})),me.bind(this._tooltipRoot,mm,"mouseover",(function(e){r.trigger("mouseover",e)})),me.bind(this._tooltipRoot,mm,"mouseout",(function(e){r.trigger("mouseout",e)})),this._init()}fm.$inject=["eventBus","canvas"],fm.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var t=this._ids.next();return e=q({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t},fm.prototype.trigger=function(e,t){var n=t.delegateTarget||t.target,i=this.get(X(n,"data-tooltip-id"));i&&("mouseover"===e&&i.timeout&&this.clearTimeout(i),"mouseout"===e&&i.timeout&&(i.timeout=1e3,this.setTimeout(i)))},fm.prototype.get=function(e){return"string"!=typeof e&&(e=e.id),this._tooltips[e]},fm.prototype.clearTimeout=function(e){if(e=this.get(e)){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}},fm.prototype.setTimeout=function(e){if(e=this.get(e)){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout((function(){t.remove(e)}),e.timeout)}},fm.prototype.remove=function(e){var t=this.get(e);t&&(xe(t.html),xe(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])},fm.prototype.show=function(){hm(this._tooltipRoot)},fm.prototype.hide=function(){hm(this._tooltipRoot,!1)},fm.prototype._updateRoot=function(e){var t=e.scale||1,n=e.scale||1,i="matrix("+t+",0,0,"+n+","+-1*e.x*t+","+-1*e.y*n+")";this._tooltipRoot.style.transform=i,this._tooltipRoot.style["-ms-transform"]=i},fm.prototype._addTooltip=function(e){var t,n=e.id,i=e.html,r=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),y(i)&&(i=fe(i)),(t=fe('<div data-tooltip-id="'+n+'" class="'+'djs-tooltip" style="position: absolute">')).appendChild(i),e.type&&te(t).add("djs-tooltip-"+e.type),e.className&&te(t).add(e.className),e.htmlContainer=t,r.appendChild(t),this._tooltips[n]=e,this._updateTooltip(e)},fm.prototype._updateTooltip=function(e){var t=e.position;!function(e,t,n){q(e.style,{left:t+"px",top:n+"px"})}(e.htmlContainer,t.x,t.y)},fm.prototype._updateTooltipVisibilty=function(e){_(this._tooltips,(function(t){var n=t.show,i=t.htmlContainer,r=!0;n&&((n.minZoom>e.scale||n.maxZoom<e.scale)&&(r=!1),hm(i,r))}))},fm.prototype._init=function(){var e=this;this._eventBus.on("canvas.viewbox.changing",(function(t){e.hide()})),this._eventBus.on("canvas.viewbox.changed",(function(t){var n;n=t.viewbox,e._updateRoot(n),e._updateTooltipVisibilty(n),e.show()}))};var ym={__init__:["tooltips"],tooltips:["type",fm]};function gm(e,t){if("function"!=typeof t)throw new Error("removeFn iterator must be a function");if(e){for(var n;n=e[0];)t(n);return e}}function vm(e,t,n){Xo.call(this,t);var i=e.get("movePreview",!1);t.on("shape.move.start",1400,(function(e){var t=e.context,n=t.shapes,i=t.validatedShapes;t.shapes=bm(n),t.validatedShapes=bm(i)})),i&&t.on("shape.move.start",250,(function(e){var t=e.context,n=t.shapes,r=[];_(n,(function(e){_(e.labels,(function(n){n.hidden||-1!==t.shapes.indexOf(n)||r.push(n),e.labelTarget&&r.push(e)}))})),_(r,(function(e){i.makeDraggable(t,e,!0)}))})),this.preExecuted("elements.move",1400,(function(e){var t=e.context.closure,n=t.enclosedElements,i=[];_(n,(function(e){_(e.labels,(function(e){n[e.id]||i.push(e)}))})),t.addAll(i)})),this.preExecute(["connection.delete","shape.delete"],(function(e){var t=e.context;gm((t.connection||t.shape).labels,(function(e){n.removeShape(e,{nested:!0})}))})),this.execute("shape.delete",(function(e){var t=e.context,n=t.shape,i=n.labelTarget;i&&(t.labelTargetIndex=Pt(i.labels,n),t.labelTarget=i,n.labelTarget=null)})),this.revert("shape.delete",(function(e){var t=e.context,n=t.shape,i=t.labelTarget,r=t.labelTargetIndex;i&&(Et(i.labels,n,r),n.labelTarget=i)}))}function bm(e){return w(e,(function(t){return-1===e.indexOf(t.labelTarget)}))}i(vm,Xo),vm.$inject=["injector","eventBus","modeling"];var xm={__init__:["labelSupport"],labelSupport:["type",vm]},wm="attach-ok";function _m(e,t,n,i,r){Xo.call(this,t);var o=e.get("movePreview",!1);t.on("shape.move.start",1401,(function(e){var t,n,i=e.context,r=i.shapes,o=i.validatedShapes;i.shapes=(n=Em(t=r),z("id",t,n)),i.validatedShapes=function(e){var t=A(e,"id");return w(e,(function(e){for(;e;){if(e.host&&t[e.host.id])return!1;e=e.parent}return!0}))}(o)})),o&&t.on("shape.move.start",251,(function(e){var t=e.context;_(Em(t.shapes),(function(e){o.makeDraggable(t,e,!0),_(e.labels,(function(e){o.makeDraggable(t,e,!0)}))}))})),o&&t.on("shape.move.start",(function(e){var i=e.context.shapes;if(1===i.length){var r=i[0].host;r&&(n.addMarker(r,wm),t.once(["shape.move.out","shape.move.cleanup"],(function(){n.removeMarker(r,wm)})))}})),this.preExecuted("elements.move",1401,(function(e){var t=e.context,n=t.closure;_(Em(t.shapes),(function(e){n.add(e,n.topLevel[e.host.id])}))})),this.postExecuted("elements.move",(function(e){var t=e.context,n=t.shapes,i=t.newHost;i&&1!==n.length||_(i?n:w(n,(function(e){var t,i=e.host;return function(e){return!!e.host}(e)&&(t=i,!(-1!==n.indexOf(t)))})),(function(e){r.updateAttachment(e,i)}))})),this.postExecuted("elements.move",(function(e){_(e.context.shapes,(function(e){_(e.attachers,(function(e){_(e.outgoing.slice(),(function(e){i.allowed("connection.reconnect",{connection:e,source:e.source,target:e.target})||r.removeConnection(e)})),_(e.incoming.slice(),(function(e){i.allowed("connection.reconnect",{connection:e,source:e.source,target:e.target})||r.removeConnection(e)}))}))}))})),this.postExecute("shape.create",(function(e){var t=e.context,n=t.shape,i=t.host;i&&r.updateAttachment(n,i)})),this.postExecute("shape.replace",(function(e){var t=e.context,n=t.oldShape,o=t.newShape;gm(n.attachers,(function(e){"attach"===i.allowed("elements.move",{target:o,shapes:[e]})?r.updateAttachment(e,o):r.removeShape(e)})),o.attachers.length&&_(o.attachers,(function(e){var t=kd(e,n,o);r.moveShape(e,t,e.parent)}))})),this.postExecute("shape.resize",(function(e){var t=e.context,n=t.shape,i=t.oldBounds,o=t.newBounds,a=n.attachers;!1!==(t.hints||{}).attachSupport&&_(a,(function(e){var t=kd(e,i,o);r.moveShape(e,t,e.parent),_(e.labels,(function(e){r.moveShape(e,t,e.parent)}))}))})),this.preExecute("shape.delete",(function(e){var t=e.context.shape;gm(t.attachers,(function(e){r.removeShape(e)})),t.host&&r.updateAttachment(t,null)}))}function Em(e){return a(k(e,(function(e){return e.attachers||[]})))}i(_m,Xo),_m.$inject=["injector","eventBus","canvas","rules","modeling"];var Pm={__depends__:[Is],__init__:["attachSupport"],attachSupport:["type",_m]};function Om(e,t){this._eventBus=e,this._dragging=t,this._tools=[],this._active=null}Om.$inject=["eventBus","dragging"],Om.prototype.registerTool=function(e,t){var n=this._tools;if(!t)throw new Error('A tool has to be registered with it\'s "events"');n.push(e),this.bindEvents(e,t)},Om.prototype.isActive=function(e){return e&&this._active===e},Om.prototype.length=function(e){return this._tools.length},Om.prototype.setActive=function(e){var t=this._eventBus;this._active!==e&&(this._active=e,t.fire("tool-manager.update",{tool:e}))},Om.prototype.bindEvents=function(e,t){var n=this._eventBus,i=this._dragging,r=[];n.on(t.tool+".init",(function(t){if(!t.context.reactivate&&this.isActive(e))return this.setActive(null),void i.cancel();this.setActive(e)}),this),_(t,(function(e){r.push(e+".ended"),r.push(e+".canceled")})),n.on(r,250,(function(e){this._active&&(function(e){var t=e.originalEvent&&e.originalEvent.target;return t&&se(t,'.group[data-group="tools"]')}(e)||this.setActive(null))}),this)};var Sm={__depends__:[Ds],__init__:["toolManager"],toolManager:["type",Om]};function km(e,t){return-1!==e.indexOf(t)}var Cm=Math.abs,Mm=Math.round,Tm={x:"width",y:"height"},Am="crosshair",Rm={n:"top",w:"left",s:"bottom",e:"right"},zm={n:"s",w:"e",s:"n",e:"w"};function Dm(e,t,n,i,r,o,a){this._canvas=e,this._dragging=t,this._eventBus=n,this._modeling=i,this._rules=r,this._toolManager=o,this._mouse=a;var s=this;o.registerTool("space",{tool:"spaceTool.selection",dragging:"spaceTool"}),n.on("spaceTool.selection.end",(function(e){n.once("spaceTool.selection.ended",(function(){s.activateMakeSpace(e.originalEvent)}))})),n.on("spaceTool.move",1500,(function(e){var t=e.context,n=t.initialized;n||(n=t.initialized=s.init(e,t)),n&&Bm(e)})),n.on("spaceTool.end",(function(e){var t=e.context,i=t.axis,r=t.direction,o=t.movingShapes,a=t.resizingShapes,p=t.start;if(t.initialized){Bm(e);var l={x:0,y:0};l[i]=Mm(e["d"+i]),s.makeSpace(o,a,l,r,p),n.once("spaceTool.ended",(function(e){s.activateSelection(e.originalEvent,!0,!0)}))}}))}function jm(e){return{top:e.top-20,right:e.right+20,bottom:e.bottom+20,left:e.left-20}}function Bm(e){var t,n,i=e.context.spaceToolConstraints;i&&(m(i.left)&&(t=Math.max(e.x,i.left),e.dx=e.dx+t-e.x,e.x=t),m(i.right)&&(t=Math.min(e.x,i.right),e.dx=e.dx+t-e.x,e.x=t),m(i.top)&&(n=Math.max(e.y,i.top),e.dy=e.dy+n-e.y,e.y=n),m(i.bottom)&&(n=Math.min(e.y,i.bottom),e.dy=e.dy+n-e.y,e.y=n))}function Nm(e,t){return-1!==e.indexOf(t)}function Lm(e){return!!e.waypoints}function Im(e){return!!e.labelTarget}Dm.$inject=["canvas","dragging","eventBus","modeling","rules","toolManager","mouse"],Dm.prototype.activateSelection=function(e,t,n){this._dragging.init(e,"spaceTool.selection",{autoActivate:t,cursor:Am,data:{context:{reactivate:n}},trapClick:!1})},Dm.prototype.activateMakeSpace=function(e){this._dragging.init(e,"spaceTool",{autoActivate:!0,cursor:Am,data:{context:{}}})},Dm.prototype.makeSpace=function(e,t,n,i,r){return this._modeling.createSpace(e,t,n,i,r)},Dm.prototype.init=function(e,t){var n=Cm(e.dx)>Cm(e.dy)?"x":"y",i=e["d"+n],r=e[n]-i;if(Cm(i)<5)return!1;i<0&&(i*=-1),So(e)&&(i*=-1);var o=function(e,t){if("x"===e){if(t>0)return"e";if(t<0)return"w"}if("y"===e){if(t>0)return"s";if(t<0)return"n"}return null}(n,i),a=ft(this._canvas.getRootElement(),!0),s=this.calculateAdjustments(a,n,i,r);return q(t,s,{axis:n,direction:o,spaceToolConstraints:function(e,t,n,i,r){var o=e.movingShapes,a=e.resizingShapes;if(!a.length)return;var s,p,l={};return _(a,(function(e){var c,u,d,h=hn(e),f=w(e.children,(function(e){return!(Lm(e)||Im(e)||Nm(o,e)||Nm(a,e))})),y=w(e.children,(function(e){return!Lm(e)&&!Im(e)&&Nm(o,e)}));f.length&&(u=jm(hn(yt(f))),c=i-h[Rm[n]]+u[Rm[n]],"n"===n?l.bottom=p=m(p)?Math.min(p,c):c:"w"===n?l.right=p=m(p)?Math.min(p,c):c:"s"===n?l.top=s=m(s)?Math.max(s,c):c:"e"===n&&(l.left=s=m(s)?Math.max(s,c):c)),y.length&&(d=jm(hn(yt(y))),c=i-d[Rm[zm[n]]]+h[Rm[zm[n]]],"n"===n?l.bottom=p=m(p)?Math.min(p,c):c:"w"===n?l.right=p=m(p)?Math.min(p,c):c:"s"===n?l.top=s=m(s)?Math.max(s,c):c:"e"===n&&(l.left=s=m(s)?Math.max(s,c):c));var g=r&&r[e.id];g&&("n"===n?(c=i+e[Tm[t]]-g[Tm[t]],l.bottom=p=m(p)?Math.min(p,c):c):"w"===n?(c=i+e[Tm[t]]-g[Tm[t]],l.right=p=m(p)?Math.min(p,c):c):"s"===n?(c=i-e[Tm[t]]+g[Tm[t]],l.top=s=m(s)?Math.max(s,c):c):"e"===n&&(c=i-e[Tm[t]]+g[Tm[t]],l.left=s=m(s)?Math.max(s,c):c))})),l}(s,n,o,r,this._eventBus.fire("spaceTool.getMinDimensions",{axis:n,direction:o,shapes:s.resizingShapes,start:r})),start:r}),ja("resize-"+("x"===n?"ew":"ns")),!0},Dm.prototype.calculateAdjustments=function(e,t,n,i){var r=this._rules,o=[],a=[];return _(e,(function(e){if(e.parent&&!Lm(e)){var s=e[t],p=s+e[Tm[t]];return n>0&&s>i||n<0&&p<i?o.push(e):s<i&&p>i&&r.allowed("shape.resize",{shape:e})?a.push(e):void 0}})),{movingShapes:o,resizingShapes:a}},Dm.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)},Dm.prototype.isActive=function(){var e=this._dragging.context();return e&&/^spaceTool/.test(e.prefix)};var $m="djs-dragging",Fm="djs-resizing",Vm=Math.max;function Hm(e,t,n,i,r){function o(e,t){_(e,(function(e){r.addDragger(e,t),n.addMarker(e,$m)}))}e.on("spaceTool.selection.start",(function(e){var t=n.getLayer("space"),r=e.context,o="M 0,-10000 L 0,10000",a="M -10000,0 L 10000,0",s=Le("g");Oe(s,i.cls("djs-crosshair-group",["no-events"])),_e(t,s);var p=Le("path");Oe(p,"d",o),Te(p).add("djs-crosshair"),_e(s,p);var l=Le("path");Oe(l,"d",a),Te(l).add("djs-crosshair"),_e(s,l),r.crosshairGroup=s})),e.on("spaceTool.selection.move",(function(e){Kn(e.context.crosshairGroup,e.x,e.y)})),e.on("spaceTool.selection.cleanup",(function(e){var t=e.context.crosshairGroup;t&&Re(t)})),e.on("spaceTool.move",250,(function(e){var a=e.context,s=a.line,p=a.axis,l=a.movingShapes,c=a.resizingShapes;if(a.initialized){if(!a.dragGroup){var u=n.getLayer("space");Oe(s=Le("path"),"d","M0,0 L0,0"),Te(s).add("djs-crosshair"),_e(u,s),a.line=s;var d=Le("g");Oe(d,i.cls("djs-drag-group",["no-events"])),_e(n.getActiveLayer(),d),o(l,d),o(a.movingConnections=t.filter((function(e){var t=!1;_(l,(function(n){_(n.outgoing,(function(n){e===n&&(t=!0)}))}));var n=!1;_(l,(function(t){_(t.incoming,(function(t){e===t&&(n=!0)}))}));var i=!1;_(c,(function(t){_(t.outgoing,(function(t){e===t&&(i=!0)}))}));var r=!1;return _(c,(function(t){_(t.incoming,(function(t){e===t&&(r=!0)}))})),function(e){return e.waypoints}(e)&&(t||i)&&(n||r)})),d),a.dragGroup=d}if(!a.frameGroup){var h=Le("g");Oe(h,i.cls("djs-frame-group",["no-events"])),_e(n.getActiveLayer(),h);var m=[];_(c,(function(e){var t=r.addFrame(e,h),i=t.getBBox();m.push({element:t,initialBounds:i}),n.addMarker(e,Fm)})),a.frameGroup=h,a.frames=m}Oe(s,{d:{x:"M"+e.x+", -10000 L"+e.x+", 10000",y:"M -10000, "+e.y+" L 10000, "+e.y}[p]});var f={x:e.dx,y:e.dy};f[{x:"y",y:"x"}[a.axis]]=0,Kn(a.dragGroup,f.x,f.y),_(a.frames,(function(e){var t,n,i=e.element,r=e.initialBounds;"e"===a.direction?Oe(i,{width:Vm(r.width+f.x,5)}):Oe(i,{width:t=Vm(r.width-f.x,5),x:r.x+r.width-t}),"s"===a.direction?Oe(i,{height:Vm(r.height+f.y,5)}):Oe(i,{height:n=Vm(r.height-f.y,5),y:r.y+r.height-n})}))}})),e.on("spaceTool.cleanup",(function(e){var t=e.context,i=t.movingShapes,r=t.movingConnections,o=t.resizingShapes,a=t.line,s=t.dragGroup,p=t.frameGroup;_(i,(function(e){n.removeMarker(e,$m)})),_(r,(function(e){n.removeMarker(e,$m)})),s&&(Re(a),Re(s)),_(o,(function(e){n.removeMarker(e,Fm)})),p&&Re(p)}))}Hm.$inject=["eventBus","elementRegistry","canvas","styles","previewSupport"];var qm={__init__:["spaceToolPreview"],__depends__:[Ds,Is,Sm,il,_l],spaceTool:["type",Dm],spaceToolPreview:["type",Hm]};function Um(e){this._model=e}function Gm(e,t,n,i){Xo.call(this,e),this._bpmnFactory=t,this._translate=i;var r=this;function o(e){_(e.context.oldRoot.children,(function(e){wr(e,"bpmn:BaseElement")&&r.updateParent(e)}))}function a(e){var t=e.context.shape;wr(t,"bpmn:BaseElement")&&r.updateBounds(t)}function s(e){r.updateConnection(e.context)}function p(e){r.updateConnectionWaypoints(e.context.connection)}function l(e){r.updateAttachment(e.context)}this.executed(["connection.layout","connection.create"],(function(e){var t,i=e.context,r=i.hints||{};i.cropped||!1===r.createElementsBehavior||((t=i.connection).waypoints=n.getCroppedWaypoints(t),i.cropped=!0)})),this.reverted(["connection.layout"],(function(e){delete e.context.cropped})),this.executed(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],Wm((function(e){var t=e.context;r.updateParent(t.shape||t.connection,t.oldParent)}))),this.reverted(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],Wm((function(e){var t=e.context,n=t.shape||t.connection,i=t.parent||t.newParent;r.updateParent(n,i)}))),this.executed(["canvas.updateRoot"],o),this.reverted(["canvas.updateRoot"],o),this.executed(["shape.move","shape.create","shape.resize"],Wm((function(e){"label"!==e.context.shape.type&&a(e)}))),this.reverted(["shape.move","shape.create","shape.resize"],Wm((function(e){"label"!==e.context.shape.type&&a(e)}))),e.on("shape.changed",(function(e){"label"===e.element.type&&a({context:{shape:e.element}})})),this.executed(["connection.create","connection.move","connection.delete","connection.reconnect"],Wm(s)),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnect"],Wm(s)),this.executed(["connection.layout","connection.move","connection.updateWaypoints"],Wm(p)),this.reverted(["connection.layout","connection.move","connection.updateWaypoints"],Wm(p)),this.executed("connection.reconnect",Wm((function(e){var t=e.context,n=t.connection,i=t.oldSource,r=t.newSource,o=Er(n),a=Er(i),s=Er(r);o.conditionExpression&&!_r(s,["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"])&&(t.oldConditionExpression=o.conditionExpression,delete o.conditionExpression),i!==r&&a.default===o&&(t.oldDefault=a.default,delete a.default)}))),this.reverted("connection.reconnect",Wm((function(e){var t=e.context,n=t.connection,i=t.oldSource,r=t.newSource,o=Er(n),a=Er(i),s=Er(r);t.oldConditionExpression&&(o.conditionExpression=t.oldConditionExpression),t.oldDefault&&(a.default=t.oldDefault,delete s.default)}))),this.executed(["element.updateAttachment"],Wm(l)),this.reverted(["element.updateAttachment"],Wm(l))}function Wm(e){return function(t){var n=t.context;wr(n.shape||n.connection,"bpmn:BaseElement")&&e(t)}}function Km(e,t,n){Vn.call(this),this._bpmnFactory=e,this._moddle=t,this._translate=n}function Ym(e,t,n){e[n]=t[n],delete t[n]}function Xm(e,t){this._modeling=e,this._canvas=t}function Zm(e){this._modeling=e}function Jm(e,t){this._canvas=e,this._layouter=t}Um.$inject=["moddle"],Um.prototype._needsId=function(e){return _r(e,["bpmn:RootElement","bpmn:FlowElement","bpmn:MessageFlow","bpmn:DataAssociation","bpmn:Artifact","bpmn:Participant","bpmn:Lane","bpmn:LaneSet","bpmn:Process","bpmn:Collaboration","bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane","bpmn:Property","bpmn:CategoryValue"])},Um.prototype._ensureId=function(e){var t;e.id?this._model.ids.claim(e.id,e):(t=wr(e,"bpmn:Activity")?"Activity":wr(e,"bpmn:Event")?"Event":wr(e,"bpmn:Gateway")?"Gateway":_r(e,["bpmn:SequenceFlow","bpmn:MessageFlow"])?"Flow":(e.$type||"").replace(/^[^:]*:/g,""),t+="_",!e.id&&this._needsId(e)&&(e.id=this._model.ids.nextPrefixed(t,e)))},Um.prototype.create=function(e,t){var n=this._model.create(e,t||{});return this._ensureId(n),n},Um.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})},Um.prototype.createDiShape=function(e,t){return this.create("bpmndi:BPMNShape",q({bpmnElement:e,bounds:this.createDiBounds()},t))},Um.prototype.createDiBounds=function(e){return this.create("dc:Bounds",e)},Um.prototype.createDiWaypoints=function(e){var t=this;return k(e,(function(e){return t.createDiWaypoint(e)}))},Um.prototype.createDiWaypoint=function(e){return this.create("dc:Point",W(e,["x","y"]))},Um.prototype.createDiEdge=function(e,t){return this.create("bpmndi:BPMNEdge",q({bpmnElement:e,waypoint:this.createDiWaypoints([])},t))},Um.prototype.createDiPlane=function(e,t){return this.create("bpmndi:BPMNPlane",q({bpmnElement:e},t))},i(Gm,Xo),Gm.$inject=["eventBus","bpmnFactory","connectionDocking","translate"],Gm.prototype.updateAttachment=function(e){var t=e.shape,n=t.businessObject,i=t.host;n.attachedToRef=i&&i.businessObject},Gm.prototype.updateParent=function(e,t){if(!(e instanceof In||wr(e,"bpmn:DataStoreReference")&&e.parent&&wr(e.parent,"bpmn:Collaboration"))){var n=e.parent,i=e.businessObject,r=Pr(e),o=n&&n.businessObject,a=Pr(n);wr(e,"bpmn:FlowNode")&&this.updateFlowNodeRefs(i,o,t&&t.businessObject),wr(e,"bpmn:DataOutputAssociation")&&(o=e.source?e.source.businessObject:null),wr(e,"bpmn:DataInputAssociation")&&(o=e.target?e.target.businessObject:null),this.updateSemanticParent(i,o),wr(e,"bpmn:DataObjectReference")&&i.dataObjectRef&&this.updateSemanticParent(i.dataObjectRef,o),this.updateDiParent(r,a)}},Gm.prototype.updateBounds=function(e){var t=Pr(e),n=function(e){if(!wr(e,"bpmn:Activity"))return;var t=Pr(e);if(!t)return;var n=t.get("label");if(!n)return;return n.get("bounds")}(e);if(n){var i=Ia(n,t.get("bounds"));q(n,{x:e.x+i.x,y:e.y+i.y})}var r=e instanceof In?this._getLabel(t):t,o=r.bounds;o||(o=this._bpmnFactory.createDiBounds(),r.set("bounds",o)),q(o,{x:e.x,y:e.y,width:e.width,height:e.height})},Gm.prototype.updateFlowNodeRefs=function(e,t,n){n!==t&&(wr(n,"bpmn:Lane")&&_t(n.get("flowNodeRef"),e),wr(t,"bpmn:Lane")&&Et(t.get("flowNodeRef"),e))},Gm.prototype.updateDiConnection=function(e,t,n){var i=Pr(e),r=Pr(t),o=Pr(n);i.sourceElement&&i.sourceElement.bpmnElement!==Er(t)&&(i.sourceElement=t&&r),i.targetElement&&i.targetElement.bpmnElement!==Er(n)&&(i.targetElement=n&&o)},Gm.prototype.updateDiParent=function(e,t){if(t&&!wr(t,"bpmndi:BPMNPlane")&&(t=t.$parent),e.$parent!==t){var n=(t||e.$parent).get("planeElement");t?(n.push(e),e.$parent=t):(_t(n,e),e.$parent=null)}},Gm.prototype.getLaneSet=function(e){var t,n;return wr(e,"bpmn:Lane")?((t=e.childLaneSet)||(t=this._bpmnFactory.create("bpmn:LaneSet"),e.childLaneSet=t,t.$parent=e),t):(wr(e,"bpmn:Participant")&&(e=e.processRef),(t=(n=e.get("laneSets"))[0])||((t=this._bpmnFactory.create("bpmn:LaneSet")).$parent=e,n.push(t)),t)},Gm.prototype.updateSemanticParent=function(e,t,n){var i,r=this._translate;if(e.$parent!==t&&(!wr(e,"bpmn:DataInput")&&!wr(e,"bpmn:DataOutput")||(wr(t,"bpmn:Participant")&&"processRef"in t&&(t=t.processRef),!("ioSpecification"in t)||t.ioSpecification!==e.$parent))){if(wr(e,"bpmn:Lane"))t&&(t=this.getLaneSet(t)),i="lanes";else if(wr(e,"bpmn:FlowElement")){if(t)if(wr(t,"bpmn:Participant"))t=t.processRef;else if(wr(t,"bpmn:Lane"))do{t=t.$parent.$parent}while(wr(t,"bpmn:Lane"));i="flowElements"}else if(wr(e,"bpmn:Artifact")){for(;t&&!wr(t,"bpmn:Process")&&!wr(t,"bpmn:SubProcess")&&!wr(t,"bpmn:Collaboration");){if(wr(t,"bpmn:Participant")){t=t.processRef;break}t=t.$parent}i="artifacts"}else if(wr(e,"bpmn:MessageFlow"))i="messageFlows";else if(wr(e,"bpmn:Participant")){i="participants";var o,a=e.processRef;a&&(o=function(e){for(;e&&!wr(e,"bpmn:Definitions");)e=e.$parent;return e}(e.$parent||t),e.$parent&&(_t(o.get("rootElements"),a),a.$parent=null),t&&(Et(o.get("rootElements"),a),a.$parent=o))}else wr(e,"bpmn:DataOutputAssociation")?i="dataOutputAssociations":wr(e,"bpmn:DataInputAssociation")&&(i="dataInputAssociations");if(!i)throw new Error(r("no parent for {element} in {parent}",{element:e.id,parent:t.id}));var s;if(e.$parent&&_t(s=e.$parent.get(i),e),t?((s=t.get(i)).push(e),e.$parent=t):e.$parent=null,n){var p=n.get(i);_t(s,e),t&&(p||(p=[],t.set(i,p)),p.push(e))}}},Gm.prototype.updateConnectionWaypoints=function(e){Pr(e).set("waypoint",this._bpmnFactory.createDiWaypoints(e.waypoints))},Gm.prototype.updateConnection=function(e){var t,n=e.connection,i=Er(n),r=n.source,o=Er(r),a=n.target,s=Er(n.target);if(wr(i,"bpmn:DataAssociation"))wr(i,"bpmn:DataInputAssociation")?(i.get("sourceRef")[0]=o,t=e.parent||e.newParent||s,this.updateSemanticParent(i,s,t)):wr(i,"bpmn:DataOutputAssociation")&&(t=e.parent||e.newParent||o,this.updateSemanticParent(i,o,t),i.targetRef=s);else{var p=wr(i,"bpmn:SequenceFlow");i.sourceRef!==o&&(p&&(_t(i.sourceRef&&i.sourceRef.get("outgoing"),i),o&&o.get("outgoing")&&o.get("outgoing").push(i)),i.sourceRef=o),i.targetRef!==s&&(p&&(_t(i.targetRef&&i.targetRef.get("incoming"),i),s&&s.get("incoming")&&s.get("incoming").push(i)),i.targetRef=s)}this.updateConnectionWaypoints(n),this.updateDiConnection(n,r,a)},Gm.prototype._getLabel=function(e){return e.label||(e.label=this._bpmnFactory.createDiLabel()),e.label},i(Km,Vn),Km.$inject=["bpmnFactory","moddle","translate"],Km.prototype.baseCreate=Vn.prototype.create,Km.prototype.create=function(e,t){if("label"===e){var n=t.di||this._bpmnFactory.createDiLabel();return this.baseCreate(e,q({type:"label",di:n},po,t))}return this.createBpmnElement(e,t)},Km.prototype.createBpmnElement=function(e,t){var n,i,r,o=this._translate,a=(t=t||{}).businessObject,s=t.di;if(!a){if(!t.type)throw new Error(o("no shape type specified"));vr(a=this._bpmnFactory.create(t.type))}if(!_r(s,["bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane"])){var p=q(s||{},{id:a.id+"_di"});s="root"===e?this._bpmnFactory.createDiPlane(a,p):"connection"===e?this._bpmnFactory.createDiEdge(a,p):this._bpmnFactory.createDiShape(a,p)}return wr(a,"bpmn:Group")&&(t=q({isFrame:!0},t)),function(e,t,n){_(n,(function(n){void 0!==t[n]&&Ym(e,t,n)}))}(a,t,["processRef","isInterrupting","associationDirection","isForCompensation"]),t.isExpanded&&Ym(s,t,"isExpanded"),wr(a,"bpmn:SubProcess")&&(t.collapsed=!Nr(a,s)),wr(a,"bpmn:ExclusiveGateway")&&(s.isMarkerVisible=!0),t.eventDefinitionType&&(i=a.get("eventDefinitions")||[],r=this._bpmnFactory.create(t.eventDefinitionType,t.eventDefinitionAttrs),"bpmn:ConditionalEventDefinition"===t.eventDefinitionType&&(r.condition=this._bpmnFactory.create("bpmn:FormalExpression")),i.push(r),r.$parent=a,a.eventDefinitions=i,delete t.eventDefinitionType),n=this.getDefaultSize(a,s),t=q({id:a.id},n,t,{businessObject:a,di:s}),this.baseCreate(e,t)},Km.prototype.getDefaultSize=function(e,t){var n=Er(e);return t=t||Pr(e),wr(n,"bpmn:SubProcess")?Nr(n,t)?{width:350,height:200}:{width:100,height:80}:wr(n,"bpmn:Task")?{width:100,height:80}:wr(n,"bpmn:Gateway")?{width:50,height:50}:wr(n,"bpmn:Event")?{width:36,height:36}:wr(n,"bpmn:Participant")?Nr(n,t)?{width:600,height:250}:{width:400,height:60}:wr(n,"bpmn:Lane")?{width:400,height:100}:wr(n,"bpmn:DataObjectReference")?{width:36,height:50}:wr(n,"bpmn:DataStoreReference")?{width:50,height:50}:wr(n,"bpmn:TextAnnotation")?{width:100,height:30}:wr(n,"bpmn:Group")?{width:300,height:300}:{width:100,height:80}},Km.prototype.createParticipantShape=function(e){return h(e)||(e={isExpanded:e}),!1!==(e=q({type:"bpmn:Participant"},e||{})).isExpanded&&(e.processRef=this._bpmnFactory.create("bpmn:Process")),this.createShape(e)},Xm.$inject=["modeling","canvas"],Xm.prototype.preExecute=function(e){var t=this._modeling,n=e.elements,i=e.alignment;_(n,(function(e){var n={x:0,y:0};i.left?n.x=i.left-e.x:i.right?n.x=i.right-e.width-e.x:i.center?n.x=i.center-Math.round(e.width/2)-e.x:i.top?n.y=i.top-e.y:i.bottom?n.y=i.bottom-e.height-e.y:i.middle&&(n.y=i.middle-Math.round(e.height/2)-e.y),t.moveElements([e],n,e.parent)}))},Xm.prototype.postExecute=function(e){},Zm.$inject=["modeling"],Zm.prototype.preExecute=function(e){var t=e.source;if(!t)throw new Error("source required");var n=e.target||t.parent,i=e.shape,r=e.hints||{};i=e.shape=this._modeling.createShape(i,e.position,n,{attach:r.attach}),e.shape=i},Zm.prototype.postExecute=function(e){var t,n,i=e.hints||{};t=e.source,n=e.shape,S(t.outgoing,(function(e){return e.target===n}))||(i.connectionTarget===e.source?this._modeling.connect(e.shape,e.source,e.connection):this._modeling.connect(e.source,e.shape,e.connection))},Jm.$inject=["canvas","layouter"],Jm.prototype.execute=function(e){var t=e.connection,n=e.source,i=e.target,r=e.parent,o=e.parentIndex,a=e.hints;if(!n||!i)throw new Error("source and target required");if(!r)throw new Error("parent required");return t.source=n,t.target=i,t.waypoints||(t.waypoints=this._layouter.layoutConnection(t,a)),this._canvas.addConnection(t,r,o),t},Jm.prototype.revert=function(e){var t=e.connection;return this._canvas.removeConnection(t),t.source=null,t.target=null,t};var Qm=Math.round;function ef(e){this._modeling=e}function tf(e){return!!e.waypoints}ef.$inject=["modeling"],ef.prototype.preExecute=function(e){var t=e.elements,n=e.parent,i=e.parentIndex,r=e.position,o=e.hints,a=this._modeling;_(t,(function(e){m(e.x)||(e.x=0),m(e.y)||(e.y=0)}));var s=yt(w(t,(function(e){return!e.hidden})));_(t,(function(e){tf(e)&&(e.waypoints=k(e.waypoints,(function(e){return{x:Qm(e.x-s.x-s.width/2+r.x),y:Qm(e.y-s.y-s.height/2+r.y)}}))),q(e,{x:Qm(e.x-s.x-s.width/2+r.x),y:Qm(e.y-s.y-s.height/2+r.y)})}));var p=ut(t),l={};_(t,(function(e){if(tf(e))l[e.id]=m(i)?a.createConnection(l[e.source.id],l[e.target.id],i,e,e.parent||n,o):a.createConnection(l[e.source.id],l[e.target.id],e,e.parent||n,o);else{var t=q({},o);-1===p.indexOf(e)&&(t.autoResize=!1),l[e.id]=m(i)?a.createShape(e,W(e,["x","y","width","height"]),e.parent||n,i,t):a.createShape(e,W(e,["x","y","width","height"]),e.parent||n,t)}})),e.elements=T(l)};var nf=Math.round;function rf(e){this._canvas=e}function of(e){rf.call(this,e)}rf.$inject=["canvas"],rf.prototype.execute=function(e){var t=e.shape,n=e.position,i=e.parent,r=e.parentIndex;if(!i)throw new Error("parent required");if(!n)throw new Error("position required");return void 0!==n.width?q(t,n):q(t,{x:n.x-nf(t.width/2),y:n.y-nf(t.height/2)}),this._canvas.addShape(t,i,r),t},rf.prototype.revert=function(e){var t=e.shape;return this._canvas.removeShape(t),t},i(of,rf),of.$inject=["canvas"];var af=rf.prototype.execute;of.prototype.execute=function(e){var t=e.shape;return function(e){["width","height"].forEach((function(t){void 0===e[t]&&(e[t]=0)}))}(t),t.labelTarget=e.labelTarget,af.call(this,e)};var sf=rf.prototype.revert;function pf(e,t){this._canvas=e,this._modeling=t}function lf(e,t){this._modeling=e,this._elementRegistry=t}function cf(e,t){this._canvas=e,this._modeling=t}function uf(e){this._modeling=e}of.prototype.revert=function(e){return e.shape.labelTarget=null,sf.call(this,e)},pf.$inject=["canvas","modeling"],pf.prototype.execute=function(e){var t=e.connection,n=t.parent;return e.parent=n,e.parentIndex=Pt(n.children,t),e.source=t.source,e.target=t.target,this._canvas.removeConnection(t),t.source=null,t.target=null,t},pf.prototype.revert=function(e){var t=e.connection,n=e.parent,i=e.parentIndex;return t.source=e.source,t.target=e.target,Et(n.children,t,i),this._canvas.addConnection(t,n),t},lf.$inject=["modeling","elementRegistry"],lf.prototype.postExecute=function(e){var t=this._modeling,n=this._elementRegistry;_(e.elements,(function(e){n.get(e.id)&&(e.waypoints?t.removeConnection(e):t.removeShape(e))}))},cf.$inject=["canvas","modeling"],cf.prototype.preExecute=function(e){var t=this._modeling,n=e.shape;gm(n.incoming,(function(e){t.removeConnection(e,{nested:!0})})),gm(n.outgoing,(function(e){t.removeConnection(e,{nested:!0})})),gm(n.children,(function(e){e.waypoints?t.removeConnection(e,{nested:!0}):t.removeShape(e,{nested:!0})}))},cf.prototype.execute=function(e){var t=this._canvas,n=e.shape,i=n.parent;return e.oldParent=i,e.oldParentIndex=Pt(i.children,n),t.removeShape(n),n},cf.prototype.revert=function(e){var t=this._canvas,n=e.shape,i=e.oldParent,r=e.oldParentIndex;return Et(i.children,n,r),t.addShape(n,i),n},uf.$inject=["modeling"];var df={x:"y",y:"x"};function hf(e,t){this._layouter=e,this._canvas=t}function mf(){}function ff(){this.allShapes={},this.allConnections={},this.enclosedElements={},this.enclosedConnections={},this.topLevel={}}function yf(e){this._modeling=e}function gf(e){this._helper=new yf(e)}function vf(e){this._modeling=e,this._helper=new yf(e)}function bf(e){this._modeling=e}function xf(e){return e.original||e}function wf(e,t){this._modeling=e,this._rules=t}function _f(e){this._modeling=e}function Ef(e){this._modeling=e}function Pf(e){return q({},e)}function Of(e){switch(e){case"n":return"y";case"w":return"x";case"s":return"y";case"e":return"x"}}function Sf(e,t,n){var i=Of(n);return/e|s/.test(n)?e[i]>t:/n|w/.test(n)?e[i]<t:void 0}function kf(e,t){return-1!==e.indexOf(t)}function Cf(e){this._modeling=e}function Mf(e){var t={};return _(e,(function(e){t[e.id]=e.hidden,e.children&&(t=q({},t,Mf(e.children)))})),t}function Tf(e,t){var n=[];return _(e,(function(e){e.hidden=t,n=n.concat(e),e.children&&(n=n.concat(Tf(e.children,e.collapsed||t)))})),n}function Af(e,t){var n=[];return _(e,(function(e){e.hidden=t[e.id],n=n.concat(e),e.children&&(n=n.concat(Af(e.children,t)))})),n}function Rf(e){this._modeling=e}function zf(e,t){return _t(e&&e.attachers,t)}function Df(e,t,n){if(e){var i=e.attachers;i||(e.attachers=i=[]),Et(i,t,n)}}function jf(){}function Bf(e,t,n){this._eventBus=e,this._elementFactory=t,this._commandStack=n;var i=this;e.on("diagram.init",(function(){i.registerHandlers(n)}))}function Nf(e){this._elementRegistry=e}function Lf(e,t){_(t,(function(t,n){e.set(n,t)}))}uf.prototype.preExecute=function(e){var t=this._modeling,n=e.groups,i=e.axis,r=e.dimension;function o(e,t){e.range.min=Math.min(t[i],e.range.min),e.range.max=Math.max(t[i]+t[r],e.range.max)}function a(e){return e[i]+e[r]/2}function s(e){return e.length-1}function p(e){return e.max-e.min}var l,c,u=n[0],d=s(n),h=n[d],m=0;_(n,(function(e,l){var c,u,h;e.elements.length<2?l&&l!==n.length-1&&(o(e,e.elements[0]),m+=p(e.range)):(u=(c=D(e.elements,i))[0],l===d&&(u=c[s(c)]),h=a(u),e.range=null,_(c,(function(n){!function(e,n){var r={y:0};r[i]=e-a(n),r[i]&&(r[df[i]]=0,t.moveElements([n],r,n.parent))}(h,n),null!==e.range?o(e,n):e.range={min:n[i],max:n[i]+n[r]}})),l&&l!==n.length-1&&(m+=p(e.range)))})),c=Math.abs(h.range.min-u.range.max),(l=Math.round((c-m)/(n.length-1)))<n.length-1||_(n,(function(e,o){var a,s={};e!==u&&e!==h&&(a=n[o-1],e.range.max=0,_(e.elements,(function(n,o){s[df[i]]=0,s[i]=a.range.max-n[i]+l,e.range.min!==n[i]&&(s[i]+=n[i]-e.range.min),s[i]&&t.moveElements([n],s,n.parent),e.range.max=Math.max(n[i]+n[r],o?e.range.max:0)})))}))},uf.prototype.postExecute=function(e){},hf.$inject=["layouter","canvas"],hf.prototype.execute=function(e){var t=e.connection;return q(e,{oldWaypoints:t.waypoints}),t.waypoints=this._layouter.layoutConnection(t,e.hints),t},hf.prototype.revert=function(e){var t=e.connection;return t.waypoints=e.oldWaypoints,t},mf.prototype.execute=function(e){var t=e.connection,n=e.delta,i=e.newParent||t.parent,r=e.newParentIndex,o=t.parent;return e.oldParent=o,e.oldParentIndex=_t(o.children,t),Et(i.children,t,r),t.parent=i,_(t.waypoints,(function(e){e.x+=n.x,e.y+=n.y,e.original&&(e.original.x+=n.x,e.original.y+=n.y)})),t},mf.prototype.revert=function(e){var t=e.connection,n=t.parent,i=e.oldParent,r=e.oldParentIndex,o=e.delta;return _t(n.children,t),Et(i.children,t,r),t.parent=i,_(t.waypoints,(function(e){e.x-=o.x,e.y-=o.y,e.original&&(e.original.x-=o.x,e.original.y-=o.y)})),t},ff.prototype.add=function(e,t){return this.addAll([e],t)},ff.prototype.addAll=function(e,t){return q(this,function(e,t,n){l(t)&&(t=!0),h(t)&&(n=t,t=!0);var i=bt((n=n||{}).allShapes),r=bt(n.allConnections),o=bt(n.enclosedElements),a=bt(n.enclosedConnections),s=bt(n.topLevel,t&&A(e,(function(e){return e.id})));function p(e){s[e.source.id]&&s[e.target.id]&&(s[e.id]=[e]),i[e.source.id]&&i[e.target.id]&&(a[e.id]=o[e.id]=e),r[e.id]=e}return mt(e,(function(e){if(o[e.id]=e,!e.waypoints)return i[e.id]=e,_(e.incoming,p),_(e.outgoing,p),e.children;a[e.id]=r[e.id]=e})),{allShapes:i,allConnections:r,topLevel:s,enclosedConnections:a,enclosedElements:o}}(e,!!t,this)),this},yf.prototype.moveRecursive=function(e,t,n){return e?this.moveClosure(this.getClosure(e),t,n):[]},yf.prototype.moveClosure=function(e,t,n,i,r){var o=this._modeling,a=e.allShapes,s=e.allConnections,p=e.enclosedConnections,l=e.topLevel,c=!1;r&&r.parent===n&&(c=!0),_(a,(function(e){o.moveShape(e,t,l[e.id]&&!c&&n,{recurse:!1,layout:!1})})),_(s,(function(e){var i=!!a[e.source.id],r=!!a[e.target.id];p[e.id]&&i&&r?o.moveConnection(e,t,l[e.id]&&!c&&n):o.layoutConnection(e,{connectionStart:i&&jd(e,e.source,t),connectionEnd:r&&Bd(e,e.target,t)})}))},yf.prototype.getClosure=function(e){return(new ff).addAll(e,!0)},gf.$inject=["modeling"],gf.prototype.preExecute=function(e){e.closure=this._helper.getClosure(e.shapes)},gf.prototype.postExecute=function(e){var t,n=e.hints;n&&n.primaryShape&&(t=n.primaryShape,n.oldParent=t.parent),this._helper.moveClosure(e.closure,e.delta,e.newParent,e.newHost,t)},vf.$inject=["modeling"],vf.prototype.execute=function(e){var t=e.shape,n=e.delta,i=e.newParent||t.parent,r=e.newParentIndex,o=t.parent;return e.oldBounds=W(t,["x","y","width","height"]),e.oldParent=o,e.oldParentIndex=_t(o.children,t),Et(i.children,t,r),q(t,{parent:i,x:t.x+n.x,y:t.y+n.y}),t},vf.prototype.postExecute=function(e){var t=e.shape,n=e.delta,i=e.hints,r=this._modeling;!1!==i.layout&&(_(t.incoming,(function(e){r.layoutConnection(e,{connectionEnd:Bd(e,t,n)})})),_(t.outgoing,(function(e){r.layoutConnection(e,{connectionStart:jd(e,t,n)})}))),!1!==i.recurse&&this.moveChildren(e)},vf.prototype.revert=function(e){var t=e.shape,n=e.oldParent,i=e.oldParentIndex,r=e.delta;return Et(n.children,t,i),q(t,{parent:n,x:t.x-r.x,y:t.y-r.y}),t},vf.prototype.moveChildren=function(e){var t=e.delta,n=e.shape;this._helper.moveRecursive(n.children,t,null)},vf.prototype.getNewParent=function(e){return e.newParent||e.shape.parent},bf.$inject=["modeling"],bf.prototype.execute=function(e){var t=e.newSource,n=e.newTarget,i=e.connection,r=e.dockingOrPoints;if(!t&&!n)throw new Error("newSource or newTarget required");return d(r)&&(e.oldWaypoints=i.waypoints,i.waypoints=r),t&&(e.oldSource=i.source,i.source=t),n&&(e.oldTarget=i.target,i.target=n),i},bf.prototype.postExecute=function(e){var t=e.connection,n=e.newSource,i=e.newTarget,r=e.dockingOrPoints,o=e.hints||{},a={};o.connectionStart&&(a.connectionStart=o.connectionStart),o.connectionEnd&&(a.connectionEnd=o.connectionEnd),!1!==o.layoutConnection&&(!n||i&&"source"!==o.docking||(a.connectionStart=a.connectionStart||xf(d(r)?r[0]:r)),!i||n&&"target"!==o.docking||(a.connectionEnd=a.connectionEnd||xf(d(r)?r[r.length-1]:r)),o.newWaypoints&&(a.waypoints=o.newWaypoints),this._modeling.layoutConnection(t,a))},bf.prototype.revert=function(e){var t=e.oldSource,n=e.oldTarget,i=e.oldWaypoints,r=e.connection;return t&&(r.source=t),n&&(r.target=n),i&&(r.waypoints=i),r},wf.$inject=["modeling","rules"],wf.prototype.preExecute=function(e){var t,n=this,i=this._modeling,r=this._rules,o=e.oldShape,a=e.newData,s=e.hints||{};function p(e,t,n){return r.allowed("connection.reconnect",{connection:n,source:e,target:t})}var l,c={x:a.x,y:a.y},u={x:o.x,y:o.y,width:o.width,height:o.height};t=e.newShape=e.newShape||n.createShape(a,c,o.parent,s),o.host&&i.updateAttachment(t,o.host),!1!==s.moveChildren&&(l=o.children.slice(),i.moveElements(l,{x:0,y:0},t,s));var d=o.incoming.slice(),h=o.outgoing.slice();_(d,(function(e){p(e.source,t,e)&&n.reconnectEnd(e,t,Dd(e,t,u),s)})),_(h,(function(e){var i=e.target;p(t,i,e)&&n.reconnectStart(e,t,zd(e,t,u),s)}))},wf.prototype.postExecute=function(e){var t=e.oldShape;this._modeling.removeShape(t)},wf.prototype.execute=function(e){},wf.prototype.revert=function(e){},wf.prototype.createShape=function(e,t,n,i){return this._modeling.createShape(e,t,n,i)},wf.prototype.reconnectStart=function(e,t,n,i){this._modeling.reconnectStart(e,t,n,i)},wf.prototype.reconnectEnd=function(e,t,n,i){this._modeling.reconnectEnd(e,t,n,i)},_f.$inject=["modeling"],_f.prototype.execute=function(e){var t=e.shape,n=e.newBounds,i=e.minBounds;if(void 0===n.x||void 0===n.y||void 0===n.width||void 0===n.height)throw new Error("newBounds must have {x, y, width, height} properties");if(i&&(n.width<i.width||n.height<i.height))throw new Error("width and height cannot be less than minimum height and width");if(!i&&n.width<10||n.height<10)throw new Error("width and height cannot be less than 10px");return e.oldBounds={width:t.width,height:t.height,x:t.x,y:t.y},q(t,{width:n.width,height:n.height,x:n.x,y:n.y}),t},_f.prototype.postExecute=function(e){var t=this._modeling,n=e.shape,i=e.oldBounds;!1!==(e.hints||{}).layout&&(_(n.incoming,(function(e){t.layoutConnection(e,{connectionEnd:Dd(e,n,i)})})),_(n.outgoing,(function(e){t.layoutConnection(e,{connectionStart:zd(e,n,i)})})))},_f.prototype.revert=function(e){var t=e.shape,n=e.oldBounds;return q(t,{width:n.width,height:n.height,x:n.x,y:n.y}),t},Ef.$inject=["modeling"],Ef.prototype.preExecute=function(e){var t=e.delta,n=e.direction,i=e.movingShapes,r=e.resizingShapes,o=e.start,a={};this.moveShapes(i,t),_(r,(function(e){a[e.id]=function(e){return{x:e.x,y:e.y,height:e.height,width:e.width}}(e)})),this.resizeShapes(r,t,n),this.updateConnectionWaypoints(function(e,t){var n=[];return _(e.concat(t),(function(i){var r=i.incoming,o=i.outgoing;_(r.concat(o),(function(i){var r=i.source,o=i.target;(km(e,r)||km(e,o)||km(t,r)||km(t,o))&&(km(n,i)||n.push(i))}))})),n}(i,r),t,n,o,i,r,a)},Ef.prototype.execute=function(){},Ef.prototype.revert=function(){},Ef.prototype.moveShapes=function(e,t){var n=this;_(e,(function(e){n._modeling.moveShape(e,t,null,{autoResize:!1,layout:!1,recurse:!1})}))},Ef.prototype.resizeShapes=function(e,t,n){var i=this;_(e,(function(e){var r=function(e,t,n){var i=e.x,r=e.y,o=e.width,a=e.height,s=n.x,p=n.y;switch(t){case"n":return{x:i,y:r+p,width:o,height:a-p};case"s":return{x:i,y:r,width:o,height:a+p};case"w":return{x:i+s,y:r,width:o-s,height:a};case"e":return{x:i,y:r,width:o+s,height:a};default:throw new Error("unknown direction: "+t)}}(e,n,t);i._modeling.resizeShape(e,r,null,{attachSupport:!1,autoResize:!1,layout:!1})}))},Ef.prototype.updateConnectionWaypoints=function(e,t,n,i,r,o,a){var s=this,p=r.concat(o);_(e,(function(e){var l=e.source,c=e.target,u=function(e){return k(e.waypoints,(function(e){return(e=Pf(e)).original&&(e.original=Pf(e.original)),e}))}(e),d=Of(n),h={labelBehavior:!1};kf(p,l)&&kf(p,c)?(u=k(u,(function(e){return Sf(e,i,n)&&(e[d]=e[d]+t[d]),e.original&&Sf(e.original,i,n)&&(e.original[d]=e.original[d]+t[d]),e})),s._modeling.updateWaypoints(e,u,{labelBehavior:!1})):(kf(p,l)||kf(p,c))&&(kf(r,l)?h.connectionStart=jd(e,l,t):kf(r,c)?h.connectionEnd=Bd(e,c,t):kf(o,l)?h.connectionStart=zd(e,l,a[l.id]):kf(o,c)&&(h.connectionEnd=Dd(e,c,a[c.id])),s._modeling.layoutConnection(e,h))}))},Cf.$inject=["modeling"],Cf.prototype.execute=function(e){var t=e.shape,n=t.children;e.oldChildrenVisibility=Mf(n),t.collapsed=!t.collapsed;var i=Tf(n,t.collapsed);return[t].concat(i)},Cf.prototype.revert=function(e){var t=e.shape,n=e.oldChildrenVisibility,i=Af(t.children,n);return t.collapsed=!t.collapsed,[t].concat(i)},Rf.$inject=["modeling"],Rf.prototype.execute=function(e){var t=e.shape,n=e.newHost,i=t.host;return e.oldHost=i,e.attacherIdx=zf(i,t),Df(n,t),t.host=n,t},Rf.prototype.revert=function(e){var t=e.shape,n=e.newHost,i=e.oldHost,r=e.attacherIdx;return t.host=i,zf(n,t),Df(i,t,r),t},jf.prototype.execute=function(e){var t=e.connection,n=e.newWaypoints;return e.oldWaypoints=t.waypoints,t.waypoints=n,t},jf.prototype.revert=function(e){var t=e.connection,n=e.oldWaypoints;return t.waypoints=n,t},Bf.$inject=["eventBus","elementFactory","commandStack"],Bf.prototype.getHandlers=function(){return{"shape.append":Zm,"shape.create":rf,"shape.delete":cf,"shape.move":vf,"shape.resize":_f,"shape.replace":wf,"shape.toggleCollapse":Cf,spaceTool:Ef,"label.create":of,"connection.create":Jm,"connection.delete":pf,"connection.move":mf,"connection.layout":hf,"connection.updateWaypoints":jf,"connection.reconnect":bf,"elements.create":ef,"elements.move":gf,"elements.delete":lf,"elements.distribute":uf,"elements.align":Xm,"element.updateAttachment":Rf}},Bf.prototype.registerHandlers=function(e){_(this.getHandlers(),(function(t,n){e.registerHandler(n,t)}))},Bf.prototype.moveShape=function(e,t,n,i,r){"object"==typeof i&&(r=i,i=null);var o={shape:e,delta:t,newParent:n,newParentIndex:i,hints:r||{}};this._commandStack.execute("shape.move",o)},Bf.prototype.updateAttachment=function(e,t){var n={shape:e,newHost:t};this._commandStack.execute("element.updateAttachment",n)},Bf.prototype.moveElements=function(e,t,n,i){var r,o=(i=i||{}).attach,a=n;!0===o?(r=n,a=n.parent):!1===o&&(r=null);var s={shapes:e,delta:t,newParent:a,newHost:r,hints:i};this._commandStack.execute("elements.move",s)},Bf.prototype.moveConnection=function(e,t,n,i,r){"object"==typeof i&&(r=i,i=void 0);var o={connection:e,delta:t,newParent:n,newParentIndex:i,hints:r||{}};this._commandStack.execute("connection.move",o)},Bf.prototype.layoutConnection=function(e,t){var n={connection:e,hints:t||{}};this._commandStack.execute("connection.layout",n)},Bf.prototype.createConnection=function(e,t,n,i,r,o){"object"==typeof n&&(o=r,r=i,i=n,n=void 0);var a={source:e,target:t,parent:r,parentIndex:n,connection:i=this._create("connection",i),hints:o};return this._commandStack.execute("connection.create",a),a.connection},Bf.prototype.createShape=function(e,t,n,i,r){"number"!=typeof i&&(r=i,i=void 0);var o,a,s=(r=r||{}).attach;e=this._create("shape",e),s?(o=n.parent,a=n):o=n;var p={position:t,shape:e,parent:o,parentIndex:i,host:a,hints:r};return this._commandStack.execute("shape.create",p),p.shape},Bf.prototype.createElements=function(e,t,n,i,r){d(e)||(e=[e]),"number"!=typeof i&&(r=i,i=void 0);var o={position:t,elements:e,parent:n,parentIndex:i,hints:r=r||{}};return this._commandStack.execute("elements.create",o),o.elements},Bf.prototype.createLabel=function(e,t,n,i){n=this._create("label",n);var r={labelTarget:e,position:t,parent:i||e.parent,shape:n};return this._commandStack.execute("label.create",r),r.shape},Bf.prototype.appendShape=function(e,t,n,i,r){r=r||{};var o={source:e,position:n,target:i,shape:t=this._create("shape",t),connection:r.connection,connectionParent:r.connectionParent,hints:r};return this._commandStack.execute("shape.append",o),o.shape},Bf.prototype.removeElements=function(e){var t={elements:e};this._commandStack.execute("elements.delete",t)},Bf.prototype.distributeElements=function(e,t,n){var i={groups:e,axis:t,dimension:n};this._commandStack.execute("elements.distribute",i)},Bf.prototype.removeShape=function(e,t){var n={shape:e,hints:t||{}};this._commandStack.execute("shape.delete",n)},Bf.prototype.removeConnection=function(e,t){var n={connection:e,hints:t||{}};this._commandStack.execute("connection.delete",n)},Bf.prototype.replaceShape=function(e,t,n){var i={oldShape:e,newData:t,hints:n||{}};return this._commandStack.execute("shape.replace",i),i.newShape},Bf.prototype.alignElements=function(e,t){var n={elements:e,alignment:t};this._commandStack.execute("elements.align",n)},Bf.prototype.resizeShape=function(e,t,n,i){var r={shape:e,newBounds:t,minBounds:n,hints:i};this._commandStack.execute("shape.resize",r)},Bf.prototype.createSpace=function(e,t,n,i,r){var o={delta:n,direction:i,movingShapes:e,resizingShapes:t,start:r};this._commandStack.execute("spaceTool",o)},Bf.prototype.updateWaypoints=function(e,t,n){var i={connection:e,newWaypoints:t,hints:n||{}};this._commandStack.execute("connection.updateWaypoints",i)},Bf.prototype.reconnect=function(e,t,n,i,r){var o={connection:e,newSource:t,newTarget:n,dockingOrPoints:i,hints:r||{}};this._commandStack.execute("connection.reconnect",o)},Bf.prototype.reconnectStart=function(e,t,n,i){i||(i={}),this.reconnect(e,t,e.target,n,q(i,{docking:"source"}))},Bf.prototype.reconnectEnd=function(e,t,n,i){i||(i={}),this.reconnect(e,e.source,t,n,q(i,{docking:"target"}))},Bf.prototype.connect=function(e,t,n,i){return this.createConnection(e,t,n||{},e.parent,i)},Bf.prototype._create=function(e,t){return t instanceof Bn?t:this._elementFactory.create(e,t)},Bf.prototype.toggleCollapse=function(e,t){var n={shape:e,hints:t||{}};this._commandStack.execute("shape.toggleCollapse",n)},Nf.$inject=["elementRegistry"],Nf.prototype.execute=function(e){var t=e.element,n=e.moddleElement,i=e.properties;if(!n)throw new Error("<moddleElement> required");var r=e.changed||this.getVisualReferences(n).concat(t),o=e.oldProperties||function(e,t){return P(t,(function(t,n){return t[n]=e.get(n),t}),{})}(n,C(i));return Lf(n,i),e.oldProperties=o,e.changed=r,r},Nf.prototype.revert=function(e){var t=e.oldProperties,n=e.moddleElement,i=e.changed;return Lf(n,t),i},Nf.prototype.getVisualReferences=function(e){var t=this._elementRegistry;return wr(e,"bpmn:DataObject")?function(e,t){return t.filter((function(t){return wr(t,"bpmn:DataObjectReference")&&Er(t).dataObjectRef===e}))}(e,t):[]};var If="default",$f="id",Ff="di",Vf={width:0,height:0};function Hf(e,t,n,i,r){this._elementRegistry=e,this._moddle=t,this._translate=n,this._modeling=i,this._textRenderer=r}function qf(e,t){return $f in e&&e.id!==t.id}function Uf(e,t){var n=e.businessObject,i=Pr(e);_(t,(function(e,t){t!==Ff?n.set(t,e):i&&function(e,t){_(t,(function(t,n){e.set(n,t)}))}(i,e)}))}Hf.$inject=["elementRegistry","moddle","translate","modeling","textRenderer"],Hf.prototype.execute=function(e){var t=e.element,n=[t],i=this._translate;if(!t)throw new Error(i("element required"));var r=this._elementRegistry,o=this._moddle.ids,a=t.businessObject,s=function(e){var t=q({},e);return Gf.forEach((function(n){n in e&&(t[n]=Er(t[n]))})),t}(e.properties),p=e.oldProperties||function(e,t){var n=C(t),i=e.businessObject,r=Pr(e);return P(n,(function(e,n){return e[n]=n!==Ff?i.get(n):function(e,t){return P(t,(function(t,n){return t[n]=e&&e.get(n),t}),{})}(r,C(t.di)),e}),{})}(t,s);return qf(s,a)&&(o.unclaim(a.id),r.updateId(t,s.id),o.claim(s.id,a)),If in s&&(s.default&&n.push(r.get(s.default.id)),a.default&&n.push(r.get(a.default.id))),Uf(t,s),e.oldProperties=p,e.changed=n,n},Hf.prototype.postExecute=function(e){var t=e.element.label,n=t&&Er(t).name;if(n){var i=this._textRenderer.getExternalLabelBounds(t,n);this._modeling.resizeShape(t,i,Vf)}},Hf.prototype.revert=function(e){var t=e.element,n=e.properties,i=e.oldProperties,r=t.businessObject,o=this._elementRegistry,a=this._moddle.ids;return Uf(t,i),qf(n,r)&&(a.unclaim(n.id),o.updateId(t,i.id),a.claim(i.id,r)),e.changed};var Gf=["default"];function Wf(e,t){this._canvas=e,this._modeling=t}function Kf(e,t){this._modeling=e,this._spaceTool=t}function Yf(e,t){this._modeling=e,this._translate=t}function Xf(e,t){this._modeling=e,this._spaceTool=t}Wf.$inject=["canvas","modeling"],Wf.prototype.execute=function(e){var t=this._canvas,n=e.newRoot,i=n.businessObject,r=t.getRootElement(),o=r.businessObject,a=o.$parent,s=Pr(r);t.setRootElement(n),t.removeRootElement(r),Et(a.rootElements,i),i.$parent=a,_t(a.rootElements,o),o.$parent=null,r.di=null,s.bpmnElement=i,n.di=s,e.oldRoot=r},Wf.prototype.revert=function(e){var t=this._canvas,n=e.newRoot,i=n.businessObject,r=e.oldRoot,o=r.businessObject,a=i.$parent,s=Pr(n);t.setRootElement(r),t.removeRootElement(n),_t(a.rootElements,i),i.$parent=null,Et(a.rootElements,o),o.$parent=a,n.di=null,s.bpmnElement=o,r.di=s},Kf.$inject=["modeling","spaceTool"],Kf.prototype.preExecute=function(e){var t=this._spaceTool,n=this._modeling,i=e.shape,r=e.location,o=xc(i),a=o===i,s=a?i:i.parent;bc(s).length||n.createShape({type:"bpmn:Lane"},{x:i.x+gc,y:i.y,width:i.width-gc,height:i.height},s);var p=[];mt(o,(function(e){return p.push(e),e.label&&p.push(e.label),e===i?[]:w(e.children,(function(e){return e!==i}))}));var l="top"===r?-120:120,c="top"===r?i.y:i.y+i.height,u=c+("top"===r?10:-10),d="top"===r?"n":"s",h=t.calculateAdjustments(p,"y",l,u);t.makeSpace(h.movingShapes,h.resizingShapes,{x:0,y:l},d,u),e.newLane=n.createShape({type:"bpmn:Lane"},{x:i.x+(a?gc:0),y:c-("top"===r?120:0),width:i.width-(a?gc:0),height:120},s)},Yf.$inject=["modeling","translate"],Yf.prototype.preExecute=function(e){var t=this._modeling,n=this._translate,i=e.shape,r=e.count,o=bc(i),a=o.length;if(a>r)throw new Error(n("more than {count} child lanes",{count:r}));var s,p,l,c,u,d=Math.round(i.height/r);for(u=0;u<r;u++)s=i.y+u*d,p=u===r-1?i.height-d*u:d,l={x:i.x+gc,y:s,width:i.width-gc,height:p},u<a?t.resizeShape(o[u],l):(c={type:"bpmn:Lane"},t.createShape(c,l,i))},Xf.$inject=["modeling","spaceTool"],Xf.prototype.preExecute=function(e){var t=e.shape,n=e.newBounds;!1!==e.balanced?this.resizeBalanced(t,n):this.resizeSpace(t,n)},Xf.prototype.resizeBalanced=function(e,t){var n=this._modeling,i=wc(e,t);n.resizeShape(e,t),i.forEach((function(e){n.resizeShape(e.shape,e.newBounds)}))},Xf.prototype.resizeSpace=function(e,t){var n,i,r,o,a,s=this._spaceTool,p=hn(e),l=cc(hn(t),p),c=xc(e),u=[],d=[];mt(c,(function(e){return u.push(e),(wr(e,"bpmn:Lane")||wr(e,"bpmn:Participant"))&&d.push(e),e.children})),(l.bottom||l.top)&&(n=l.bottom||l.top,i=e.y+(l.bottom?e.height:0)+(l.bottom?-10:10),r=l.bottom?"s":"n",o=l.top>0||l.bottom<0?-n:n,a=s.calculateAdjustments(u,"y",o,i),s.makeSpace(a.movingShapes,a.resizingShapes,{x:0,y:n},r)),(l.left||l.right)&&(n=l.right||l.left,i=e.x+(l.right?e.width:0)+(l.right?-10:100),r=l.right?"e":"w",o=l.left>0||l.right<0?-n:n,a=s.calculateAdjustments(d,"x",o,i),s.makeSpace(a.movingShapes,a.resizingShapes,{x:n,y:0},r))};var Zf="flowNodeRef",Jf="lanes";function Qf(e){this._elementRegistry=e}function ey(e){this._moddle=e}Qf.$inject=["elementRegistry"],Qf.prototype.computeUpdates=function(e,t){var n=[],i=[],r={},o=[];function a(e){-1===n.indexOf(e)&&(o.push(e),n.push(e))}function s(e){return e.parent?function(e){var t=xc(e);return r[t.id]||(r[t.id]=vc(t)),r[t.id]}(e).filter((function(t){return n=e,i=hn(t),r=n.x+n.width/2,o=n.y+n.height/2,r>i.left&&r<i.right&&o>i.top&&o<i.bottom;var n,i,r,o})).map((function(e){return e.businessObject})):[]}return t.forEach((function(e){var t=xc(e);t&&-1===n.indexOf(t)&&(t.children.filter((function(e){return wr(e,"bpmn:FlowNode")})).forEach(a),n.push(t))})),e.forEach(a),o.forEach((function(e){var t=e.businessObject,n=t.get(Jf).slice(),r=s(e);i.push({flowNode:t,remove:n,add:r})})),t.forEach((function(e){var t=e.businessObject;e.parent||t.get(Zf).forEach((function(e){i.push({flowNode:e,remove:[t],add:[]})}))})),i},Qf.prototype.execute=function(e){var t=e.updates;t||(t=e.updates=this.computeUpdates(e.flowNodeShapes,e.laneShapes)),t.forEach((function(e){var t=e.flowNode,n=t.get(Jf);e.remove.forEach((function(e){_t(n,e),_t(e.get(Zf),t)})),e.add.forEach((function(e){Et(n,e),Et(e.get(Zf),t)}))}))},Qf.prototype.revert=function(e){e.updates.forEach((function(e){var t=e.flowNode,n=t.get(Jf);e.add.forEach((function(e){_t(n,e),_t(e.get(Zf),t)})),e.remove.forEach((function(e){Et(n,e),Et(e.get(Zf),t)}))}))},ey.$inject=["moddle"],ey.prototype.execute=function(e){var t=this._moddle.ids,n=e.id,i=e.element;e.claiming?t.claim(n,i):t.unclaim(n)},ey.prototype.revert=function(e){var t=this._moddle.ids,n=e.id,i=e.element;e.claiming?t.unclaim(n):t.claim(n,i)};var ty={fill:void 0,stroke:void 0};function ny(e){this._commandStack=e,this._normalizeColor=function(e){if(e){if(y(e)){var t=function(e){var t=document.createElement("canvas").getContext("2d");return t.fillStyle="transparent",t.fillStyle=e,/^#[0-9a-fA-F]{6}$/.test(t.fillStyle)?t.fillStyle:null}(e);if(t)return t}throw new Error("invalid color value: "+e)}}}ny.$inject=["commandStack"],ny.prototype.postExecute=function(e){var t=e.elements,n=e.colors||ty,i=this,r={};"fill"in n&&q(r,{"background-color":this._normalizeColor(n.fill)}),"stroke"in n&&q(r,{"border-color":this._normalizeColor(n.stroke)}),_(t,(function(e){var t=function(e){return!!e.waypoints}(e)?W(r,["border-color"]):r;!function(e){"border-color"in e&&(e.stroke=e["border-color"]);"background-color"in e&&(e.fill=e["background-color"])}(t),e.labelTarget?i._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:Pr(e).label,properties:{color:r["background-color"]}}):i._commandStack.execute("element.updateProperties",{element:e,properties:{di:t}})}))};var iy={width:0,height:0};function ry(e,t,n){function i(e,t){var i=e.label||e,r=e.labelTarget||e;return function(e,t,n){var i=e.businessObject,r=Fr(i);r&&("categoryValueRef"===r?i.categoryValueRef.value=t:i[r]=t)}(i,t),function(e,t){if(!lo(e)){var i=Pr(e);t&&!i.label&&(i.label=n.create("bpmndi:BPMNLabel")),!t&&i.label&&(i.label=null)}}(e,t),[i,r]}this.preExecute=function(t){var n=t.element,i=n.businessObject,r=t.newLabel;if(!mo(n)&&lo(n)&&!co(n)&&!oy(r)){var o=ho(n);o={x:o.x,y:o.y+7},e.createLabel(n,o,{id:i.id+"_label",businessObject:i,di:n.di})}},this.execute=function(e){return e.oldLabel=Vr(e.element),i(e.element,e.newLabel)},this.revert=function(e){return i(e.element,e.oldLabel)},this.postExecute=function(n){var i=n.element,r=i.label||i,o=n.newLabel,a=n.newBounds,s=n.hints||{};if(mo(r)||wr(r,"bpmn:TextAnnotation"))if(mo(r)&&oy(o))!1!==s.removeShape&&e.removeShape(r,{unsetLabel:!1});else{var p=Vr(r);void 0===a&&(a=t.getExternalLabelBounds(r,p)),a&&e.resizeShape(r,a,iy)}}}function oy(e){return!e||!e.trim()}function ay(e,t,n,i){Bf.call(this,e,t,n),this._bpmnRules=i}function sy(){}ry.$inject=["modeling","textRenderer","bpmnFactory"],i(ay,Bf),ay.$inject=["eventBus","elementFactory","commandStack","bpmnRules"],ay.prototype.getHandlers=function(){var e=Bf.prototype.getHandlers.call(this);return e["element.updateModdleProperties"]=Nf,e["element.updateProperties"]=Hf,e["canvas.updateRoot"]=Wf,e["lane.add"]=Kf,e["lane.resize"]=Xf,e["lane.split"]=Yf,e["lane.updateRefs"]=Qf,e["id.updateClaim"]=ey,e["element.setColor"]=ny,e["element.updateLabel"]=ry,e},ay.prototype.updateLabel=function(e,t,n,i){this._commandStack.execute("element.updateLabel",{element:e,newLabel:t,newBounds:n,hints:i||{}})},ay.prototype.connect=function(e,t,n,i){var r=this._bpmnRules;if(n||(n=r.canConnect(e,t)),n)return this.createConnection(e,t,n,e.parent,i)},ay.prototype.updateModdleProperties=function(e,t,n){this._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:n})},ay.prototype.updateProperties=function(e,t){this._commandStack.execute("element.updateProperties",{element:e,properties:t})},ay.prototype.resizeLane=function(e,t,n){this._commandStack.execute("lane.resize",{shape:e,newBounds:t,balanced:n})},ay.prototype.addLane=function(e,t){var n={shape:e,location:t};return this._commandStack.execute("lane.add",n),n.newLane},ay.prototype.splitLane=function(e,t){this._commandStack.execute("lane.split",{shape:e,count:t})},ay.prototype.makeCollaboration=function(){var e=this._create("root",{type:"bpmn:Collaboration"}),t={newRoot:e};return this._commandStack.execute("canvas.updateRoot",t),e},ay.prototype.updateLaneRefs=function(e,t){this._commandStack.execute("lane.updateRefs",{flowNodeShapes:e,laneShapes:t})},ay.prototype.makeProcess=function(){var e={newRoot:this._create("root",{type:"bpmn:Process"})};this._commandStack.execute("canvas.updateRoot",e)},ay.prototype.claimId=function(e,t){this._commandStack.execute("id.updateClaim",{id:e,element:t,claiming:!0})},ay.prototype.unclaimId=function(e,t){this._commandStack.execute("id.updateClaim",{id:e,element:t})},ay.prototype.setColor=function(e,t){e.length||(e=[e]),this._commandStack.execute("element.setColor",{elements:e,colors:t})},sy.prototype.layoutConnection=function(e,t){return[(t=t||{}).connectionStart||fn(t.source||e.source),t.connectionEnd||fn(t.target||e.target)]};var py=Math.round,ly={"h:h":20,"v:v":20,"h:v":-10,"v:h":-10};function cy(e,t,n){var i,r,o,a=yn(t,e,5),s=n.split(":")[0],p=py((t.x-e.x)/2+e.x),l=py((t.y-e.y)/2+e.y),c=(o=a,{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/left|right/,v:/top|bottom/}[s].test(o)),u=/h|r|l/.test(s),d=!1;return c?(i=u?{x:p,y:e.y}:{x:e.x,y:l},r=u?"h:h":"v:v"):(r=u?"h:v":"v:h",function(e,t){return!{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/./,v:/./}[t].test(e)}(a,s)?u?(d=l===e.y,i={x:e.x+20*(/l/.test(s)?-1:1),y:d?l+20:l}):i={x:(d=p===e.x)?p+20:p,y:e.y+20*(/t/.test(s)?-1:1)}:i={x:p,y:l}),{waypoints:dy(e,i,r).concat(i),directions:r,turnNextDirections:d}}function uy(e){return e.split(":").reverse().join(":")}function dy(e,t,n){if(!function(e){return e&&/^h|v|t|r|b|l:h|v|t|r|b|l$/.test(e)}(n=n||"h:h"))throw new Error("unknown directions: <"+n+">: must be specified as <start>:<end> with start/end in { h,v,t,r,b,l }");if(gy(n)){var i=function(e,t,n){return cy(e,t,n)}(e,t,n),r=function(e,t,n){var i=cy(t,e,uy(n));return{waypoints:i.waypoints.slice().reverse(),directions:uy(i.directions),turnNextDirections:i.turnNextDirections}}(e,t,n),o=function(e,t){var n=e.directions.split(":")[1],i=t.directions.split(":")[0];e.turnNextDirections&&(n="h"==n?"v":"h"),t.turnNextDirections&&(i="h"==i?"v":"h");var r=n+":"+i;return{waypoints:dy(e.waypoints[e.waypoints.length-1],t.waypoints[0],r),directions:r}}(i,r);return[].concat(i.waypoints,o.waypoints,r.waypoints)}return function(e,t,n){var i=py((t.x-e.x)/2+e.x),r=py((t.y-e.y)/2+e.y);if("h:v"===n)return[{x:t.x,y:e.y}];if("v:h"===n)return[{x:e.x,y:t.y}];if("h:h"===n)return[{x:i,y:e.y},{x:i,y:t.y}];if("v:v"===n)return[{x:e.x,y:r},{x:t.x,y:r}];throw new Error("invalid directions: can only handle varians of [hv]:[hv]")}(e,t,n)}function hy(e,t,n,i,r){var o=E(r&&r.preferredLayouts||[],"straight")[0]||"h:h",a=yn(e,t,ly[o]||0),s=function(e,t){if(gy(t))return t;switch(e){case"intersect":return"t:t";case"top":case"bottom":return"v:v";case"left":case"right":return"h:h";default:return t}}(a,o);n=n||fn(e),i=i||fn(t);var p=s.split(":");return function(e,t,n){var i=dy(e,t,n);return i.unshift(e),i.push(t),by(i)}(vy(n,e,p[0],function(e){return{top:"bottom",bottom:"top",left:"right",right:"left","top-left":"bottom-right","bottom-right":"top-left","top-right":"bottom-left","bottom-left":"top-right"}[e]}(a)),vy(i,t,p[1],a),s)}function my(e,t,n,i,r,o){var a;return d(n)&&(r=n,o=i,n=fn(e),i=fn(t)),r=r||[],(a=-1!==(o=q({preferredLayouts:[]},o)).preferredLayouts.indexOf("straight")&&function(e,t,n,i,r){var o,a,s={};if(a=yn(e,t),!/^(top|bottom|left|right)$/.test(a))return null;/top|bottom/.test(a)&&(o="x");/left|right/.test(a)&&(o="y");return"target"===r.preserveDocking?fy(o,i,e)?(s[o]=i[o],[{x:void 0!==s.x?s.x:n.x,y:void 0!==s.y?s.y:n.y,original:{x:void 0!==s.x?s.x:n.x,y:void 0!==s.y?s.y:n.y}},{x:i.x,y:i.y}]):null:fy(o,n,t)?(s[o]=n[o],[{x:n.x,y:n.y},{x:void 0!==s.x?s.x:i.x,y:void 0!==s.y?s.y:i.y,original:{x:void 0!==s.x?s.x:i.x,y:void 0!==s.y?s.y:i.y}}]):null}(e,t,n,i,o))||(a=o.connectionEnd&&function(e,t,n,i){var r=i.slice().reverse();return(r=yy(e,t,n,r))?r.reverse():null}(t,e,i,r))?a:(a=o.connectionStart&&yy(e,t,n,r))||(!o.connectionStart&&!o.connectionEnd&&r&&r.length?r:hy(e,t,n,i,o))}function fy(e,t,n){return function(e,t,n){return e>=t&&e<=n}(t[e],n[e],n[e]+n[{x:"width",y:"height"}[e]])}function yy(e,t,n,i){if(function(e){return e.length<3||!(e.length>4)&&!!b(e,(function(t,n){var i=e[n-1];return i&&Ot(t,i)<3}))}(i))return null;var r,o=i[0],a=i.slice();return a[0]=n,a[1]=function(e,t,n){switch(kt(t,e)){case"v":return{x:n.x,y:e.y};case"h":return{x:e.x,y:n.y}}return{x:e.x,y:e.y}}(a[1],o,n),(r=function(e,t,n){var i;for(i=e.length-2;0!==i;i--)if(Ct(e[i],t,20)||Ct(e[i],n,20))return e.slice(i);return e}(a,e,t))!==a&&(a=yy(e,t,n,r)),a&&kt(a)?null:a}function gy(e){return e&&/t|r|b|l/.test(e)}function vy(e,t,n,i){if("h"===n&&(n=/left/.test(i)?"l":"r"),"v"===n&&(n=/top/.test(i)?"t":"b"),"t"===n)return{original:e,x:e.x,y:t.y};if("r"===n)return{original:e,x:t.x+t.width,y:e.y};if("b"===n)return{original:e,x:e.x,y:t.y+t.height};if("l"===n)return{original:e,x:t.x,y:e.y};throw new Error("unexpected dockingDirection: <"+n+">")}function by(e){return e.reduce((function(t,n,i){return St(t[t.length-1],e[i+1],n,0)||t.push(n),t}),[])}var xy={top:"bottom","top-right":"bottom-left","top-left":"bottom-right",right:"left",bottom:"top","bottom-right":"top-left","bottom-left":"top-right",left:"right"},wy={top:"t",right:"r",bottom:"b",left:"l"};function _y(){}function Ey(e,t){return wr(t,"bpmn:Participant")?"source":wr(e,"bpmn:Participant")?"target":ky(t)?"source":ky(e)||wr(t,"bpmn:Event")?"target":wr(e,"bpmn:Event")?"source":null}function Py(e){return ky(e)?"target":"source"}function Oy(e,t){return e?e.original||e:fn(t)}function Sy(e,t){return wr(t,"bpmn:Activity")&&wr(e,"bpmn:BoundaryEvent")&&t.businessObject.isForCompensation}function ky(e){return wr(e,"bpmn:SubProcess")&&Nr(e)}function Cy(e,t){return e===t}function My(e){var t=/right|left/.exec(e);return t&&t[0]}function Ty(e){var t=/top|bottom/.exec(e);return t&&t[0]}function Ay(e){return"right"===e||"left"===e}function Ry(e,t){var n=t.waypoints,i=n&&n.length&&yn(n[0],e);return"top"===i?["t:r"]:"right"===i?["r:b"]:"left"===i?["l:t"]:["b:l"]}function zy(e,t,n){var i,r,o=fn(e),a=fn(t),s=(r=(i=e).host,yn(fn(i),r,-10)),p=Cy(e.host,t),l=-1!==["top","right","bottom","left"].indexOf(s),c=yn(a,o,{x:e.width/2+t.width/2,y:e.height/2+t.height/2});return p?function(e,t,n,i,r){var o,a=t?e:Ty(e),s=wy[a];o=t?Ay(e)?Dy("y",n,i,r)?"h":"b":Dy("x",n,i,r)?"v":"l":"v";return[s+":"+o]}(s,l,e,t,n):[function(e,t,n){if(n)return wy[e];if(Cy(Ty(e),Ty(t))||function(e,t){return xy[e]===t}(My(e),My(t)))return wy[Ty(e)];return wy[My(e)]}(s,c,l)+":"+function(e,t,n){if(n)return Ay(e)?function(e,t){var n=My(e),i=xy[n];return-1!==t.indexOf(i)}(e,t)||Cy(e,t)?"h":"v":function(e,t){var n=Ty(e),i=xy[n];return-1!==t.indexOf(i)}(e,t)||Cy(e,t)?"v":"h";return Ay(t)||Cy(Ty(e),Ty(t))&&My(t)?"h":"v"}(s,c,l)]}function Dy(e,t,n,i){return!(jy(e,i,n,40)||jy(e,i,{x:n.x+n.width,y:n.y+n.height},40)||jy(e,i,fn(t),40))}function jy(e,t,n,i){return Math.abs(t[e]-n[e])<i}function By(e){return q({original:e.point.original||e.point},e.actual)}function Ny(e,t){this._elementRegistry=e,this._graphicsFactory=t}i(_y,sy),_y.prototype.layoutConnection=function(e,t){t||(t={});var n,i,r=t.source||e.source,o=t.target||e.target,a=t.waypoints||e.waypoints,s=t.connectionStart,p=t.connectionEnd;return s||(s=Oy(a&&a[0],r)),p||(p=Oy(a&&a[a.length-1],o)),(wr(e,"bpmn:Association")||wr(e,"bpmn:DataAssociation"))&&a&&!Sy(r,o)?[].concat([s],a.slice(1,-1),[p]):(wr(e,"bpmn:MessageFlow")?n=function(e,t){return{preferredLayouts:["straight","v:v"],preserveDocking:Ey(e,t)}}(r,o):(wr(e,"bpmn:SequenceFlow")||Sy(r,o))&&(n=r===o?{preferredLayouts:Ry(r,e)}:wr(r,"bpmn:BoundaryEvent")?{preferredLayouts:zy(r,o,p)}:ky(r)||ky(o)?function(e){return{preferredLayouts:["straight","h:h"],preserveDocking:Py(e)}}(r):wr(r,"bpmn:Gateway")?{preferredLayouts:["v:h"]}:wr(o,"bpmn:Gateway")?{preferredLayouts:["h:v"]}:{preferredLayouts:["h:h"]}),n&&(i=by(my(r,o,s,p,a,n=q(n,t)))),i||[s,p])},Ny.$inject=["elementRegistry","graphicsFactory"],Ny.prototype.getCroppedWaypoints=function(e,t,n){t=t||e.source,n=n||e.target;var i=this.getDockingPoint(e,t,!0),r=this.getDockingPoint(e,n),o=e.waypoints.slice(i.idx+1,r.idx);return o.unshift(By(i)),o.push(By(r)),o},Ny.prototype.getDockingPoint=function(e,t,n){var i,r,o=e.waypoints;return{point:r=o[i=n?0:o.length-1],actual:this._getIntersection(t,e,n)||r,idx:i}},Ny.prototype._getIntersection=function(e,t,n){return gn(this._getShapePath(e),this._getConnectionPath(t),n)},Ny.prototype._getConnectionPath=function(e){return this._graphicsFactory.getConnectionPath(e)},Ny.prototype._getShapePath=function(e){return this._graphicsFactory.getShapePath(e)},Ny.prototype._getGfx=function(e){return this._elementRegistry.getGraphics(e)};var Ly={__init__:["modeling","bpmnUpdater"],__depends__:[Eh,rm,am,lm,Hl,um,ym,xm,Pm,$o,Yo,qm],bpmnFactory:["type",Um],bpmnUpdater:["type",Gm],elementFactory:["type",Km],modeling:["type",ay],layouter:["type",_y],connectionDocking:["type",Ny]},Iy=Math.round;function $y(e,t,n,i,r){function o(e,t,n,i){return r.allowed("elements.move",{shapes:e,delta:t,position:n,target:i})}function a(e,n,i,r){if(h(i)&&(r=i,i=!1),!n.waypoints&&n.parent){var o=function(e){return{x:e.x+Iy(e.width/2),y:e.y+Iy(e.height/2)}}(n);return t.init(e,o,"shape.move",{cursor:"grabbing",autoActivate:i,data:{shape:n,context:r||{}}}),!0}}e.on("shape.move.start",1500,(function(e){var t=e.context,n=e.shape,r=i.get().slice();-1===r.indexOf(n)&&(r=[n]),q(t,{shapes:r=function(e){var t=A(e,"id");return w(e,(function(e){for(;e=e.parent;)if(t[e.id])return!1;return!0}))}(r),validatedShapes:r,shape:n})})),e.on("shape.move.start",1250,(function(e){var t=e.context,n=t.validatedShapes;if(!(t.canExecute=o(n)))return!1})),e.on("shape.move.move",500,(function(e){var t,n=e.context,i=n.validatedShapes,r=e.hover,a={x:e.dx,y:e.dy};t=o(i,a,{x:e.x,y:e.y},r),n.delta=a,n.canExecute=t,n.target=null!==t?r:null})),e.on("shape.move.end",(function(e){var t=e.context,i=t.delta,r=t.canExecute,o="attach"===r,a=t.shapes;if(!1===r)return!1;i.x=Iy(i.x),i.y=Iy(i.y),0===i.x&&0===i.y||n.moveElements(a,i,t.target,{primaryShape:t.shape,attach:o})})),e.on("element.mousedown",(function(e){if(Oo(e)){var t=wo(e);if(!t)throw new Error("must supply DOM mousedown event");return a(t,e.element)}})),this.start=a}$y.$inject=["eventBus","dragging","modeling","selection","rules"];var Fy="djs-dragging",Vy="drop-ok",Hy="drop-not-ok",qy="new-parent",Uy="attach-ok";function Gy(e,t,n,i){function r(e){return function(e){return w(e,(function(t){return!function(e){return e.waypoints}(t)||b(e,j({id:t.source.id}))&&b(e,j({id:t.target.id}))}))}(o(e))}function o(e){var t=ft(e,!0),n=k(t,(function(e){return(e.incoming||[]).concat(e.outgoing||[])}));return a(t.concat(n))}function s(e,n){[Uy,Vy,Hy,qy].forEach((function(i){i===n?t.addMarker(e,i):t.removeMarker(e,i)}))}e.on("shape.move.start",499,(function(e){var s=e.context,p=s.shapes,l=s.allDraggedElements,c=r(p);if(!s.dragGroup){var u=Le("g");Oe(u,n.cls("djs-drag-group",["no-events"])),_e(t.getActiveLayer(),u),s.dragGroup=u}c.forEach((function(e){i.addDragger(e,s.dragGroup)})),_(l=l?a([l,o(p)]):o(p),(function(e){t.addMarker(e,Fy)})),s.allDraggedElements=l,s.differentParents=1!==M(A(p,(function(e){return e.parent&&e.parent.id})))})),e.on("shape.move.move",499,(function(e){var t=e.context,n=t.dragGroup,i=t.target,r=t.shape.parent,o=t.canExecute;i&&("attach"===o?s(i,Uy):t.canExecute&&i&&i.id!==r.id?s(i,qy):s(i,t.canExecute?Vy:Hy)),Kn(n,e.dx,e.dy)})),e.on(["shape.move.out","shape.move.cleanup"],(function(e){var t=e.context.target;t&&s(t,null)})),e.on("shape.move.cleanup",(function(e){var n=e.context,i=n.allDraggedElements,r=n.dragGroup;_(i,(function(e){t.removeMarker(e,Fy)})),r&&Re(r)})),this.makeDraggable=function(e,n,r){i.addDragger(n,e.dragGroup),r&&t.addMarker(n,Fy),e.allDraggedElements?e.allDraggedElements.push(n):e.allDraggedElements=[n]}}Gy.$inject=["eventBus","canvas","styles","previewSupport"];var Wy={__depends__:[Ao,$o,zo,Is,Ds,il],__init__:["move","movePreview"],move:["type",$y],movePreview:["type",Gy]},Ky=".djs-palette-toggle",Yy=".entry",Xy="open",Zy="two-column";function Jy(e,t){this._eventBus=e,this._canvas=t;var n=this;e.on("tool-manager.update",(function(e){var t=e.tool;n.updateToolHighlight(t)})),e.on("i18n.changed",(function(){n._update()})),e.on("diagram.init",(function(){n._diagramInitialized=!0,n._rebuild()}))}function Qy(e,t){var n=t.getPaletteEntries();return f(n)?n(e):(_(n,(function(t,n){e[n]=t})),e)}Jy.$inject=["eventBus","canvas"],Jy.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("palette.getProviders",e,(function(e){e.providers.push(t)})),this._rebuild()},Jy.prototype.getEntries=function(){return this._getProviders().reduce(Qy,{})},Jy.prototype._rebuild=function(){this._diagramInitialized&&(this._getProviders().length&&(this._container||this._init(),this._update()))},Jy.prototype._init=function(){var e=this,t=this._eventBus,n=this._getParentContainer(),i=this._container=fe(Jy.HTML_MARKUP);n.appendChild(i),te(n).add("djs-palette-shown"),me.bind(i,".djs-palette-toggle, .entry","click",(function(t){var n=t.delegateTarget;if(ae(n,Ky))return e.toggle();e.trigger("click",t)})),ue.bind(i,"mousedown",(function(e){e.stopPropagation()})),me.bind(i,Yy,"dragstart",(function(t){e.trigger("dragstart",t)})),t.on("canvas.resized",this._layoutChanged,this),t.fire("palette.create",{container:i})},Jy.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"palette.getProviders",providers:[]});return this._eventBus.fire(t),t.providers},Jy.prototype._toggleState=function(e){e=e||{};var t,n=this._getParentContainer(),i=this._container,r=this._eventBus,o=te(i),a=te(n);t="twoColumn"in e?e.twoColumn:this._needsCollapse(n.clientHeight,this._entries||{}),o.toggle(Zy,t),a.toggle("djs-palette-two-column",t),"open"in e&&(o.toggle(Xy,e.open),a.toggle("djs-palette-open",e.open)),r.fire("palette.changed",{twoColumn:t,open:this.isOpen()})},Jy.prototype._update=function(){var e=ve(".djs-palette-entries",this._container),t=this._entries=this.getEntries();ie(e),_(t,(function(t,n){var i=t.group||"default",r=ve("[data-group="+i+"]",e);r||(r=fe('<div class="group" data-group="'+i+'"></div>'),e.appendChild(r));var o=t.html||(t.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),a=fe(o);r.appendChild(a),t.separator||(X(a,"data-action",n),t.title&&X(a,"title",t.title),t.className&&function(e,t){var n=te(e);(d(t)?t:t.split(/\s+/g)).forEach((function(e){n.add(e)}))}(a,t.className),t.imageUrl&&a.appendChild(fe('<img src="'+t.imageUrl+'">')))})),this.open()},Jy.prototype.trigger=function(e,t,n){var i,r,o,a=this._entries,s=t.delegateTarget||t.target;if(!s)return t.preventDefault();(i=a[X(s,"data-action")])&&(r=i.action,o=t.originalEvent||t,f(r)?"click"===e&&r(o,n):r[e]&&r[e](o,n),t.preventDefault())},Jy.prototype._layoutChanged=function(){this._toggleState({})},Jy.prototype._needsCollapse=function(e,t){return e<46*Object.keys(t).length+50},Jy.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})},Jy.prototype.open=function(){this._toggleState({open:!0})},Jy.prototype.toggle=function(e){this.isOpen()?this.close():this.open()},Jy.prototype.isActiveTool=function(e){return e&&this._activeTool===e},Jy.prototype.updateToolHighlight=function(e){var t;this._toolsContainer||(t=ve(".djs-palette-entries",this._container),this._toolsContainer=ve("[data-group=tools]",t)),_(this._toolsContainer.children,(function(t){var n=t.getAttribute("data-action");if(n){var i=te(t);n=n.replace("-tool",""),i.contains("entry")&&n===e?i.add("highlighted-entry"):i.remove("highlighted-entry")}}))},Jy.prototype.isOpen=function(){return te(this._container).has(Xy)},Jy.prototype._getParentContainer=function(){return this._canvas.getContainer()},Jy.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';var eg={__init__:["palette"],palette:["type",Jy]},tg="crosshair";function ng(e,t,n,i,r,o,a){this._selection=r,this._dragging=n,this._mouse=a;var s=this,p=function(e){var n,i=t.getActiveLayer();Oe(n=e.frame=Le("rect"),{class:"djs-lasso-overlay",width:1,height:1,x:0,y:0}),_e(i,n)},l=function(e){var t=e.frame,n=e.bbox;Oe(t,{x:n.x,y:n.y,width:n.width,height:n.height})},c=function(e){e.frame&&Re(e.frame)};o.registerTool("lasso",{tool:"lasso.selection",dragging:"lasso"}),e.on("lasso.selection.end",(function(t){var n=t.originalEvent.target;(t.hover||n instanceof SVGElement)&&e.once("lasso.selection.ended",(function(){s.activateLasso(t.originalEvent,!0)}))})),e.on("lasso.end",(function(e){var t=ig(e),n=i.filter((function(e){return e}));s.select(n,t)})),e.on("lasso.start",(function(e){var t=e.context;t.bbox=ig(e),p(t)})),e.on("lasso.move",(function(e){var t=e.context;t.bbox=ig(e),l(t)})),e.on("lasso.cleanup",(function(e){var t=e.context;c(t)})),e.on("element.mousedown",1500,(function(e){if(ko(e))return s.activateLasso(e.originalEvent),!0}))}function ig(e){var t={x:e.x-e.dx,y:e.y-e.dy},n={x:e.x,y:e.y};return t.x<=n.x&&t.y<n.y||t.x<n.x&&t.y<=n.y?{x:t.x,y:t.y,width:n.x-t.x,height:n.y-t.y}:t.x>=n.x&&t.y<n.y||t.x>n.x&&t.y<=n.y?{x:n.x,y:t.y,width:t.x-n.x,height:n.y-t.y}:t.x<=n.x&&t.y>n.y||t.x<n.x&&t.y>=n.y?{x:t.x,y:n.y,width:n.x-t.x,height:t.y-n.y}:t.x>=n.x&&t.y>n.y||t.x>n.x&&t.y>=n.y?{x:n.x,y:n.y,width:t.x-n.x,height:t.y-n.y}:{x:n.x,y:n.y,width:0,height:0}}ng.$inject=["eventBus","canvas","dragging","elementRegistry","selection","toolManager","mouse"],ng.prototype.activateLasso=function(e,t){this._dragging.init(e,"lasso",{autoActivate:t,cursor:tg,data:{context:{}}})},ng.prototype.activateSelection=function(e,t){this._dragging.init(e,"lasso.selection",{trapClick:!1,autoActivate:t,cursor:tg,data:{context:{}}})},ng.prototype.select=function(e,t){var n=function(e,t){var n={};return _(e,(function(e){var i=e;i.waypoints&&(i=yt(i)),!m(t.y)&&i.x>t.x&&(n[e.id]=e),!m(t.x)&&i.y>t.y&&(n[e.id]=e),i.x>t.x&&i.y>t.y&&(m(t.width)&&m(t.height)&&i.width+i.x<t.width+t.x&&i.height+i.y<t.height+t.y?n[e.id]=e:m(t.width)&&m(t.height)||(n[e.id]=e))})),n}(e,t);this._selection.select(T(n))},ng.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)},ng.prototype.isActive=function(){var e=this._dragging.context();return e&&/^lasso/.test(e.prefix)};var rg={__depends__:[Sm,_l],__init__:["lassoTool"],lassoTool:["type",ng]},og=1500,ag="grab";function sg(e,t,n,i,r,o){this._dragging=n,this._mouse=o;var a=this,s=i.get("keyboard",!1);r.registerTool("hand",{tool:"hand",dragging:"hand.move"}),e.on("element.mousedown",og,(function(e){if(So(e))return a.activateMove(e.originalEvent,!0),!1})),s&&s.addListener(og,(function(e){if(pg(e.keyEvent)&&!a.isActive()){var t=a._mouse.getLastMoveEvent();a.activateMove(t,!!t)}}),"keyboard.keydown"),s&&s.addListener(og,(function(e){pg(e.keyEvent)&&a.isActive()&&a.toggle()}),"keyboard.keyup"),e.on("hand.end",(function(t){var n=t.originalEvent.target;if(!(t.hover||n instanceof SVGElement))return!1;e.once("hand.ended",(function(){a.activateMove(t.originalEvent,{reactivate:!0})}))})),e.on("hand.move.move",(function(e){var n=t.viewbox().scale;t.scroll({dx:e.dx*n,dy:e.dy*n})})),e.on("hand.move.end",(function(t){var n=t.context.reactivate;return!So(t)&&n&&e.once("hand.move.ended",(function(e){a.activateHand(e.originalEvent,!0,!0)})),!1}))}function pg(e){return xa(" ",e)}sg.$inject=["eventBus","canvas","dragging","injector","toolManager","mouse"],sg.prototype.activateMove=function(e,t,n){"object"==typeof t&&(n=t,t=!1),this._dragging.init(e,"hand.move",{autoActivate:t,cursor:ag,data:{context:n||{}}})},sg.prototype.activateHand=function(e,t,n){this._dragging.init(e,"hand",{trapClick:!1,autoActivate:t,cursor:ag,data:{context:{reactivate:n}}})},sg.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateHand(e,!!e)},sg.prototype.isActive=function(){var e=this._dragging.context();return!!e&&/^(hand|hand\.move)$/.test(e.prefix)};var lg={__depends__:[Sm,_l],__init__:["handTool"],handTool:["type",sg]},cg="connect-ok",ug="connect-not-ok";function dg(e,t,n,i,r,o,a){var s=this;this._dragging=t,this._rules=o,this._mouse=a,r.registerTool("global-connect",{tool:"global-connect",dragging:"global-connect.drag"}),e.on("global-connect.hover",(function(e){var t=e.context,n=e.hover,r=t.canStartConnect=s.canStartConnect(n);null!==r&&(t.startTarget=n,i.addMarker(n,r?cg:ug))})),e.on(["global-connect.out","global-connect.cleanup"],(function(e){var t=e.context.startTarget,n=e.context.canStartConnect;t&&i.removeMarker(t,n?cg:ug)})),e.on(["global-connect.ended"],(function(t){var i=t.context.startTarget,r={x:t.x,y:t.y};if(s.canStartConnect(i))return e.once("element.out",(function(){e.once(["connect.ended","connect.canceled"],(function(){e.fire("global-connect.drag.ended")})),n.start(null,i,r)})),!1}))}dg.$inject=["eventBus","dragging","connect","canvas","toolManager","rules","mouse"],dg.prototype.start=function(e,t){this._dragging.init(e,"global-connect",{autoActivate:t,trapClick:!1,data:{context:{}}})},dg.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();return this.start(e,!!e)},dg.prototype.isActive=function(){var e=this._dragging.context();return e&&/^global-connect/.test(e.prefix)},dg.prototype.canStartConnect=function(e){return this._rules.allowed("connection.start",{source:e})};var hg={__depends__:[Dp,Is,Ds,Sm,_l],globalConnect:["type",dg]};function mg(e,t,n,i,r,o,a,s){this._palette=e,this._create=t,this._elementFactory=n,this._spaceTool=i,this._lassoTool=r,this._handTool=o,this._globalConnect=a,this._translate=s,e.registerProvider(this)}mg.$inject=["palette","create","elementFactory","spaceTool","lassoTool","handTool","globalConnect","translate"],mg.prototype.getPaletteEntries=function(e){var t={},n=this._create,i=this._elementFactory,r=this._spaceTool,o=this._lassoTool,a=this._handTool,s=this._globalConnect,p=this._translate;function l(e,t,r,o,a){function s(t){var r=i.createShape(q({type:e},a));a&&(Pr(r).isExpanded=a.isExpanded);n.start(t,r)}var l=e.replace(/^bpmn:/,"");return{group:t,className:r,title:o||p("Create {type}",{type:l}),action:{dragstart:s,click:s}}}function c(e){var t=i.createShape({type:"bpmn:SubProcess",x:0,y:0,isExpanded:!0}),r=i.createShape({type:"bpmn:StartEvent",x:40,y:82,parent:t});n.start(e,[t,r],{hints:{autoSelect:[t]}})}function u(e){n.start(e,i.createParticipantShape())}return q(t,{"hand-tool":{group:"tools",className:"bpmn-icon-hand-tool",title:p("Activate the hand tool"),action:{click:function(e){a.activateHand(e)}}},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:p("Activate the lasso tool"),action:{click:function(e){o.activateSelection(e)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:p("Activate the create/remove space tool"),action:{click:function(e){r.activateSelection(e)}}},"global-connect-tool":{group:"tools",className:"bpmn-icon-connection-multi",title:p("Activate the global connect tool"),action:{click:function(e){s.start(e)}}},"tool-separator":{group:"tools",separator:!0},"create.start-event":l("bpmn:StartEvent","event","bpmn-icon-start-event-none",p("Create StartEvent")),"create.intermediate-event":l("bpmn:IntermediateThrowEvent","event","bpmn-icon-intermediate-event-none",p("Create Intermediate/Boundary Event")),"create.end-event":l("bpmn:EndEvent","event","bpmn-icon-end-event-none",p("Create EndEvent")),"create.exclusive-gateway":l("bpmn:ExclusiveGateway","gateway","bpmn-icon-gateway-none",p("Create Gateway")),"create.task":l("bpmn:Task","activity","bpmn-icon-task",p("Create Task")),"create.data-object":l("bpmn:DataObjectReference","data-object","bpmn-icon-data-object",p("Create DataObjectReference")),"create.data-store":l("bpmn:DataStoreReference","data-store","bpmn-icon-data-store",p("Create DataStoreReference")),"create.subprocess-expanded":{group:"activity",className:"bpmn-icon-subprocess-expanded",title:p("Create expanded SubProcess"),action:{dragstart:c,click:c}},"create.participant-expanded":{group:"collaboration",className:"bpmn-icon-participant",title:p("Create Pool/Participant"),action:{dragstart:u,click:u}},"create.group":l("bpmn:Group","artifact","bpmn-icon-group",p("Create Group"))}),t};var fg={__depends__:[eg,ml,qm,rg,lg,hg,so],__init__:["paletteProvider"],paletteProvider:["type",mg]};function yg(e,t,n,i,r){Xo.call(this,e),e.on("shape.move.move",250,(function(e){var o=e.context,a=o.canExecute;o.visualReplacements||(o.visualReplacements={}),a&&a.replacements?function(e){_(e.canExecute.replacements,(function(o){var a=o.oldElementId,s={type:o.newElementType};if(!e.visualReplacements[a]){var p=t.get(a);q(s,{x:p.x,y:p.y});var l=n.createShape(s);i.addShape(l,p.parent);var c=ve('[data-element-id="'+Qo(p.id)+'"]',e.dragGroup);c&&Oe(c,{display:"none"});var u=r.addDragger(l,e.dragGroup);e.visualReplacements[a]=u,i.removeShape(l)}}))}(o):function(e){var t=e.visualReplacements;_(t,(function(n,i){var r=ve('[data-element-id="'+Qo(i)+'"]',e.dragGroup);r&&Oe(r,{display:"inline"}),n.remove(),t[i]&&delete t[i]}))}(o)}))}yg.$inject=["eventBus","elementRegistry","elementFactory","canvas","previewSupport"],i(yg,Xo);var gg={__depends__:[il],__init__:["bpmnReplacePreview"],bpmnReplacePreview:["type",yg]},vg=40,bg=["x","y"],xg=Math.abs;function wg(e){e.on(["connect.hover","connect.move","connect.end"],1250,(function(e){var t=e.context,n=t.canExecute,i=t.start,r=t.hover,o=t.source,a=t.target;e.originalEvent&&ba(e.originalEvent)||(t.initialConnectionStart||(t.initialConnectionStart=t.connectionStart),n&&r&&function(e,t,n){bg.forEach((function(i){var r=Pg(i,t);e[i]<t[i]+n?Ep(e,i,t[i]+n):e[i]>t[i]+r-n&&Ep(e,i,t[i]+r-n)}))}(e,r,function(e){return wr(e,"bpmn:Task")?10:20}(r)),r&&function(e,t){return S(t,(function(t){return Eg(e,t)}))}(n,["bpmn:Association","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:SequenceFlow"])?(t.connectionStart=wp(i),_r(r,["bpmn:Event","bpmn:Gateway"])&&_g(e,wp(r)),_r(r,["bpmn:Task","bpmn:SubProcess"])&&function(e,t){var n=wp(t);bg.forEach((function(i){(function(e,t,n){return e[n]>t[n]+20&&e[n]<t[n]+Pg(n,t)-20})(e,t,i)&&Ep(e,i,n[i])}))}(e,r),wr(o,"bpmn:BoundaryEvent")&&a===o.host&&function(e){var t=e.context,n=t.source,i=t.target;if(function(e){var t=e.hover,n=e.source;return t&&n&&t===n}(t))return;var r=wp(n),o=yn(r,i,-10),a=[];/top|bottom/.test(o)&&a.push("x");/left|right/.test(o)&&a.push("y");a.forEach((function(t){var n,i=e[t];xg(i-r[t])<vg&&(n=i>r[t]?r[t]+vg:r[t]-vg,Ep(e,t,n))}))}(e)):Eg(n,"bpmn:MessageFlow")?(wr(i,"bpmn:Event")&&(t.connectionStart=wp(i)),wr(r,"bpmn:Event")&&_g(e,wp(r))):t.connectionStart=t.initialConnectionStart)}))}function _g(e,t){Ep(e,"x",t.x),Ep(e,"y",t.y)}function Eg(e,t){return e&&e.type===t}function Pg(e,t){return"x"===e?t.width:t.height}function Og(){this._targets={},this._snapOrigins={},this._snapLocations=[],this._defaultSnaps={}}function Sg(e){this._snapValues={}}wg.$inject=["eventBus"],Og.prototype.getSnapOrigin=function(e){return this._snapOrigins[e]},Og.prototype.setSnapOrigin=function(e,t){this._snapOrigins[e]=t,-1===this._snapLocations.indexOf(e)&&this._snapLocations.push(e)},Og.prototype.addDefaultSnap=function(e,t){var n=this._defaultSnaps[e];n||(n=this._defaultSnaps[e]=[]),n.push(t)},Og.prototype.getSnapLocations=function(){return this._snapLocations},Og.prototype.setSnapLocations=function(e){this._snapLocations=e},Og.prototype.pointsForTarget=function(e){var t=e.id||e,n=this._targets[t];return n||(n=this._targets[t]=new Sg).initDefaults(this._defaultSnaps),n},Sg.prototype.add=function(e,t){var n=this._snapValues[e];n||(n=this._snapValues[e]={x:[],y:[]}),-1===n.x.indexOf(t.x)&&n.x.push(t.x),-1===n.y.indexOf(t.y)&&n.y.push(t.y)},Sg.prototype.snap=function(e,t,n,i){var r=this._snapValues[t];return r&&function(e,t,n){var i,r;for(n=void 0===n?10:n,i=0;i<t.length;i++)if(r=t[i],gp(r-e)<=n)return r}(e[n],r[n],i)},Sg.prototype.initDefaults=function(e){var t=this;_(e||{},(function(e,n){_(e,(function(e){t.add(n,e)}))}))};function kg(e,t,n){var i=this;this._elementRegistry=e,t.on(["create.start","shape.move.start"],(function(e){i.initSnap(e)})),t.on(["create.move","create.end","shape.move.move","shape.move.end"],1250,(function(e){var t=e.context,r=t.shape,o=t.snapContext,a=t.target;if((!e.originalEvent||!ba(e.originalEvent))&&!_p(e)&&a){var s=o.pointsForTarget(a);s.initialized||((s=i.addSnapTargetPoints(s,r,a)).initialized=!0),n.snap(e,s)}})),t.on(["create.cleanup","shape.move.cleanup"],(function(){n.hide()}))}function Cg(e){return!!e.labelTarget}kg.$inject=["elementRegistry","eventBus","snapping"],kg.prototype.initSnap=function(e){var t,n=this._elementRegistry,i=e.context,r=i.shape,o=i.snapContext;o||(o=i.snapContext=new Og);var a=(t=n.get(r.id)?wp(r,e):{x:e.x+wp(r).x,y:e.y+wp(r).y}).x-r.width/2,s=t.y-r.height/2,p=t.x+r.width/2,l=t.y+r.height/2;return o.setSnapOrigin("mid",{x:t.x-e.x,y:t.y-e.y}),Cg(r)||(o.setSnapOrigin("top-left",{x:a-e.x,y:s-e.y}),o.setSnapOrigin("bottom-right",{x:p-e.x,y:l-e.y})),o},kg.prototype.addSnapTargetPoints=function(e,t,n){return _(this.getSnapTargets(t,n),(function(n){if(Cg(n))Cg(t)&&e.add("mid",wp(n));else if(n.waypoints){if(n.waypoints.length<3)return;_(n.waypoints.slice(1,-1),(function(t){e.add("mid",t)}))}else{e.add("mid",wp(n))}})),m(t.x)&&m(t.y)?(this._elementRegistry.get(t.id)&&e.add("mid",wp(t)),e):e},kg.prototype.getSnapTargets=function(e,t){return Pp(t).filter((function(e){return!e.hidden}))};function Mg(e,t){t.invoke(kg,this),e.on(["create.move","create.end"],1500,Tg),e.on(["create.move","create.end","shape.move.move","shape.move.end"],1500,(function(e){var t=e.context,n=t.canExecute,i=t.target;n&&("attach"===n||n.attach)&&!_p(e)&&function(e,t){var n,i=hn(t),r=Ph(e,t),o=e.context.shape;n=o.parent?{x:0,y:0}:fn(o);/top/.test(r)?Ep(e,"y",i.top-n.y):/bottom/.test(r)&&Ep(e,"y",i.bottom-n.y);/left/.test(r)?Ep(e,"x",i.left-n.x):/right/.test(r)&&Ep(e,"x",i.right-n.x)}(e,i)}))}function Tg(e){var t=e.context.createConstraints;if(t){var n=t.top,i=t.right,r=t.bottom,o=t.left;(o&&o>=e.x||i&&i<=e.x)&&Ep(e,"x",e.x),(n&&n>=e.y||r&&r<=e.y)&&Ep(e,"y",e.y)}}function Ag(e,t){return-1!==e.indexOf(t)}function Rg(e,t,n){return t?{x:e.x-n.x,y:e.y-n.y}:{x:e.x,y:e.y}}i(Mg,kg),Mg.$inject=["eventBus","injector"],Mg.prototype.initSnap=function(e){var t=kg.prototype.initSnap.call(this,e),n=e.shape,i=!!this._elementRegistry.get(n.id);return _(n.outgoing,(function(n){var r=n.waypoints[0];r=r.original||r,t.setSnapOrigin(n.id+"-docking",Rg(r,i,e))})),_(n.incoming,(function(n){var r=n.waypoints[n.waypoints.length-1];r=r.original||r,t.setSnapOrigin(n.id+"-docking",Rg(r,i,e))})),wr(n,"bpmn:Participant")&&t.setSnapLocations(["top-left","bottom-right","mid"]),t},Mg.prototype.addSnapTargetPoints=function(e,t,n){kg.prototype.addSnapTargetPoints.call(this,e,t,n);var i=this.getSnapTargets(t,n);_(i,(function(n){var i;(function(e){if(wr(e,"bpmn:SubProcess")&&Nr(e))return!0;return wr(e,"bpmn:Participant")}(n)||(i="bpmn:TextAnnotation",[t,n].every((function(e){return wr(e,i)}))))&&(e.add("top-left",bp(n)),e.add("bottom-right",xp(n)))}));var r=this._elementRegistry;return _(t.incoming,(function(n){if(r.get(t.id)){Ag(i,n.source)||e.add("mid",fn(n.source));var o=n.waypoints[0];e.add(n.id+"-docking",o.original||o)}})),_(t.outgoing,(function(n){if(r.get(t.id)){Ag(i,n.target)||e.add("mid",fn(n.target));var o=n.waypoints[n.waypoints.length-1];e.add(n.id+"-docking",o.original||o)}})),wr(n,"bpmn:SequenceFlow")&&(e=this.addSnapTargetPoints(e,t,n.parent)),e},Mg.prototype.getSnapTargets=function(e,t){return kg.prototype.getSnapTargets.call(this,e,t).filter((function(e){return!wr(e,"bpmn:Lane")}))};function zg(e,t){var n=this;e.on(["resize.start"],(function(e){n.initSnap(e)})),e.on(["resize.move","resize.end"],1250,(function(e){var i=e.context,r=i.shape,o=r.parent,a=i.direction,s=i.snapContext;if(!(e.originalEvent&&ba(e.originalEvent)||_p(e))){var p=s.pointsForTarget(o);p.initialized||((p=n.addSnapTargetPoints(p,r,o,a)).initialized=!0),function(e){return"n"===e||"s"===e}(a)&&Ep(e,"x",e.x),function(e){return"e"===e||"w"===e}(a)&&Ep(e,"y",e.y),t.snap(e,p)}})),e.on(["resize.cleanup"],(function(){t.hide()}))}function Dg(e,t){var n=fn(e),i=hn(e),r={x:n.x,y:n.y};return-1!==t.indexOf("n")?r.y=i.top:-1!==t.indexOf("s")&&(r.y=i.bottom),-1!==t.indexOf("e")?r.x=i.right:-1!==t.indexOf("w")&&(r.x=i.left),r}zg.prototype.initSnap=function(e){var t=e.context,n=t.shape,i=t.direction,r=t.snapContext;r||(r=t.snapContext=new Og);var o=Dg(n,i);return r.setSnapOrigin("corner",{x:o.x-e.x,y:o.y-e.y}),r},zg.prototype.addSnapTargetPoints=function(e,t,n,i){return _(this.getSnapTargets(t,n),(function(t){e.add("corner",xp(t)),e.add("corner",bp(t))})),e.add("corner",Dg(t,i)),e},zg.$inject=["eventBus","snapping"],zg.prototype.getSnapTargets=function(e,t){return Pp(t).filter((function(t){return!(n=t,i=e,n.host===i||function(e){return!!e.waypoints}(t)||function(e){return!!e.hidden}(t)||function(e){return!!e.labelTarget}(t));var n,i}))};function jg(e){this._canvas=e,this._asyncHide=$(F(this.hide,this),1e3)}jg.$inject=["canvas"],jg.prototype.snap=function(e,t){var n=e.context.snapContext,i=n.getSnapLocations(),r={x:_p(e,"x"),y:_p(e,"y")};_(i,(function(i){var o=n.getSnapOrigin(i),a={x:e.x+o.x,y:e.y+o.y};if(_(["x","y"],(function(e){var n;r[e]||void 0!==(n=t.snap(a,i,e,7))&&(r[e]={value:n,originValue:n-o[e]})})),r.x&&r.y)return!1})),this.showSnapLine("vertical",r.x&&r.x.value),this.showSnapLine("horizontal",r.y&&r.y.value),_(["x","y"],(function(t){var n=r[t];h(n)&&Ep(e,t,n.originValue)}))},jg.prototype._createLine=function(e){var t=this._canvas.getLayer("snap"),n=Le("path");return Oe(n,{d:"M0,0 L0,0"}),Te(n).add("djs-snap-line"),_e(t,n),{update:function(t){m(t)?Oe(n,"horizontal"===e?{d:"M-100000,"+t+" L+100000,"+t,display:""}:{d:"M "+t+",-100000 L "+t+", +100000",display:""}):Oe(n,{display:"none"})}}},jg.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}},jg.prototype.showSnapLine=function(e,t){var n=this.getSnapLine(e);n&&n.update(t),this._asyncHide()},jg.prototype.getSnapLine=function(e){return this._snapLines||this._createSnapLines(),this._snapLines[e]},jg.prototype.hide=function(){_(this._snapLines,(function(e){e.update()}))};var Bg={__depends__:[{__init__:["createMoveSnapping","resizeSnapping","snapping"],createMoveSnapping:["type",kg],resizeSnapping:["type",zg],snapping:["type",jg]}],__init__:["connectSnapping","createMoveSnapping"],connectSnapping:["type",wg],createMoveSnapping:["type",Mg]};function Ng(e,t,n,i){this._open=!1,this._results=[],this._eventMaps=[],this._canvas=e,this._eventBus=t,this._overlays=n,this._selection=i,this._container=fe(Ng.BOX_HTML),this._searchInput=ve(Ng.INPUT_SELECTOR,this._container),this._resultsContainer=ve(Ng.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),t.on(["canvas.destroy","diagram.destroy"],this.close,this)}function Lg(e,t,n){var i=function(e){var t="";return e.forEach((function(e){e.matched?t+='<strong class="'+Ng.RESULT_HIGHLIGHT_CLASS+'">'+ta(e.matched)+"</strong>":t+=ta(e.normal)})),""!==t?t:null}(t),r=fe(n);r.innerHTML=i,e.appendChild(r)}Ng.$inject=["canvas","eventBus","overlays","selection"],Ng.prototype._bindEvents=function(){var e=this;function t(t,n,i,r){e._eventMaps.push({el:t,type:i,listener:me.bind(t,n,i,r)})}t(document,"html","click",(function(t){e.close()})),t(this._container,Ng.INPUT_SELECTOR,"click",(function(e){e.stopPropagation(),e.delegateTarget.focus()})),t(this._container,Ng.RESULT_SELECTOR,"mouseover",(function(t){t.stopPropagation(),e._scrollToNode(t.delegateTarget),e._preselect(t.delegateTarget)})),t(this._container,Ng.RESULT_SELECTOR,"click",(function(t){t.stopPropagation(),e._select(t.delegateTarget)})),t(this._container,Ng.INPUT_SELECTOR,"keydown",(function(e){38===e.keyCode&&e.preventDefault(),40===e.keyCode&&e.preventDefault()})),t(this._container,Ng.INPUT_SELECTOR,"keyup",(function(t){if(27===t.keyCode)return e.close();if(13===t.keyCode){var n=e._getCurrentResult();return n?e._select(n):e.close()}return 38===t.keyCode?e._scrollToDirection(!0):40===t.keyCode?e._scrollToDirection():void(37!==t.keyCode&&39!==t.keyCode&&e._search(t.delegateTarget.value))}))},Ng.prototype._unbindEvents=function(){this._eventMaps.forEach((function(e){me.unbind(e.el,e.type,e.listener)}))},Ng.prototype._search=function(e){var t=this;if(this._clearResults(),e&&""!==e){var n=this._searchProvider.find(e);if(n.length){n.forEach((function(e){var n=e.element.id,i=t._createResultNode(e,n);t._results[n]={element:e.element,node:i}}));var i=ve(Ng.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(i),this._preselect(i)}}},Ng.prototype._scrollToDirection=function(e){var t=this._getCurrentResult();if(t){var n=e?t.previousElementSibling:t.nextElementSibling;n&&(this._scrollToNode(n),this._preselect(n))}},Ng.prototype._scrollToNode=function(e){if(e&&e!==this._getCurrentResult()){var t=e.offsetTop,n=this._resultsContainer.scrollTop,i=t-this._resultsContainer.clientHeight+e.clientHeight;t<n?this._resultsContainer.scrollTop=t:n<i&&(this._resultsContainer.scrollTop=i)}},Ng.prototype._clearResults=function(){ie(this._resultsContainer),this._results=[],this._resetOverlay(),this._eventBus.fire("searchPad.cleared")},Ng.prototype._getCurrentResult=function(){return ve(Ng.RESULT_SELECTED_SELECTOR,this._resultsContainer)},Ng.prototype._createResultNode=function(e,t){var n=fe(Ng.RESULT_HTML);return e.primaryTokens.length>0&&Lg(n,e.primaryTokens,Ng.RESULT_PRIMARY_HTML),Lg(n,e.secondaryTokens,Ng.RESULT_SECONDARY_HTML),X(n,Ng.RESULT_ID_ATTRIBUTE,t),this._resultsContainer.appendChild(n),n},Ng.prototype.registerProvider=function(e){this._searchProvider=e},Ng.prototype.open=function(){if(!this._searchProvider)throw new Error("no search provider registered");this.isOpen()||(this._bindEvents(),this._open=!0,te(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))},Ng.prototype.close=function(){this.isOpen()&&(this._unbindEvents(),this._open=!1,te(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._resetOverlay(),this._eventBus.fire("searchPad.closed"))},Ng.prototype.toggle=function(){this.isOpen()?this.close():this.open()},Ng.prototype.isOpen=function(){return this._open},Ng.prototype._preselect=function(e){var t=this._getCurrentResult();if(e!==t){t&&te(t).remove(Ng.RESULT_SELECTED_CLASS);var n=X(e,Ng.RESULT_ID_ATTRIBUTE),i=this._results[n].element;te(e).add(Ng.RESULT_SELECTED_CLASS),this._resetOverlay(i),this._canvas.scrollToElement(i,{top:400}),this._selection.select(i),this._eventBus.fire("searchPad.preselected",i)}},Ng.prototype._select=function(e){var t=X(e,Ng.RESULT_ID_ATTRIBUTE),n=this._results[t].element;this.close(),this._resetOverlay(),this._canvas.scrollToElement(n,{top:400}),this._selection.select(n),this._eventBus.fire("searchPad.selected",n)},Ng.prototype._resetOverlay=function(e){if(this._overlayId&&this._overlays.remove(this._overlayId),e){var t=function(e){var t=6,n=e.width+2*t,i=e.height+2*t,r=["width: "+n+"px","height: "+i+"px"].join("; ");return{position:{bottom:i-t,right:n-t},show:!0,html:'<div style="'+r+'" class="'+Ng.OVERLAY_CLASS+'"></div>'}}(yt(e));this._overlayId=this._overlays.add(e,t)}},Ng.CONTAINER_SELECTOR=".djs-search-container",Ng.INPUT_SELECTOR=".djs-search-input input",Ng.RESULTS_CONTAINER_SELECTOR=".djs-search-results",Ng.RESULT_SELECTOR=".djs-search-result",Ng.RESULT_SELECTED_CLASS="djs-search-result-selected",Ng.RESULT_SELECTED_SELECTOR="."+Ng.RESULT_SELECTED_CLASS,Ng.RESULT_ID_ATTRIBUTE="data-result-id",Ng.RESULT_HIGHLIGHT_CLASS="djs-search-highlight",Ng.OVERLAY_CLASS="djs-search-overlay",Ng.BOX_HTML='<div class="djs-search-container djs-draggable djs-scrollable"><div class="djs-search-input"><input type="text"/></div><div class="djs-search-results"></div></div>',Ng.RESULT_HTML='<div class="djs-search-result"></div>',Ng.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>',Ng.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';var Ig={__depends__:[Wo,$o],searchPad:["type",Ng]};function $g(e,t,n){this._elementRegistry=e,this._canvas=n,t.registerProvider(this)}function Fg(e){return w(e,(function(e){return!!e.matched})).length>0}function Vg(e,t){var n=[],i=e;if(!e)return n;e=e.toLowerCase(),t=t.toLowerCase();var r=e.indexOf(t);return r>-1?(0!==r&&n.push({normal:i.substr(0,r)}),n.push({matched:i.substr(r,t.length)}),t.length+r<e.length&&n.push({normal:i.substr(t.length+r,e.length)})):n.push({normal:i}),n}$g.$inject=["elementRegistry","searchPad","canvas"],$g.prototype.find=function(e){var t=this._canvas.getRootElement(),n=this._elementRegistry.filter((function(e){return!e.labelTarget}));return n=w(n,(function(e){return e!==t})),n=D(n=w(n=k(n,(function(t){return{primaryTokens:Vg(Vr(t),e),secondaryTokens:Vg(t.id,e),element:t}})),(function(e){return Fg(e.primaryTokens)||Fg(e.secondaryTokens)})),(function(e){return Vr(e.element)+e.element.id}))};var Hg={__depends__:[Ig],__init__:["bpmnSearch"],bpmnSearch:["type",$g]};function qg(e){Br.call(this,e)}i(qg,Br),qg.Viewer=va,qg.NavigatedViewer=Ka,qg.prototype.createDiagram=gr((function(){return this.importXML('<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://bpmn.io/schema/bpmn" id="Definitions_1"><bpmn:process id="Process_1" isExecutable="false"><bpmn:startEvent id="StartEvent_1"/></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"><dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>')})),qg.prototype._interactionModules=[za,Fa,ns,Wa],qg.prototype._modelingModules=[ps,ws,Ns,ks,Cp,Dp,Bp,Pc,jl,ml,Mc,jc,Yc,Zc,Qc,su,Su,Ly,Wy,fg,gg,vu,Bg,Hg],qg.prototype._modules=[].concat(va.prototype._modules,qg.prototype._interactionModules,qg.prototype._modelingModules);var Ug={min:.2,max:4};function Gg(e,t,n,i,r){var o=this;function a(e){o._state._svgClientRect&&!Zg(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),Kg(Wg({x:e.clientX-o._state._svgClientRect.left,y:e.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox),o._canvas),o._update()}function s(e){return function(t){o._state._svgClientRect&&!Zg(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),e&&a(t);var n=Wg({x:t.clientX-o._state._svgClientRect.left,y:t.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox),r=i.viewbox(),s=function(e,t){var n={x:t.x+t.width/2,y:t.y+t.height/2};return{x:e.x-n.x,y:e.y-n.y}}(n,r),c=o._viewportDom.getBoundingClientRect(),u={x:t.clientX-c.left+1,y:t.clientY-c.top+1};q(o._state,{cachedViewbox:r,initialDragPosition:{x:t.clientX,y:t.clientY},isDragging:!0,offsetViewport:s,offsetViewportDom:u,viewportClientRect:o._viewport.getBoundingClientRect(),parentClientRect:o._parent.getBoundingClientRect()}),ue.bind(document,"mousemove",p),ue.bind(document,"mouseup",l)}}function p(e){if(o._state.isDragging){o._state._svgClientRect&&!Zg(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect());var t=o._state.offsetViewportDom,n=o._state.viewportClientRect,i=o._state.parentClientRect;q(o._viewportDom.style,{top:e.clientY-t.y-i.top+"px",left:e.clientX-t.x-i.left+"px"});var r=Qg(i,{top:e.clientY-t.y-i.top,left:e.clientX-t.x-i.left,width:n.width,height:n.height});q(o._overlay.style,{clipPath:r});var a=Wg({x:e.clientX-o._state._svgClientRect.left,y:e.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox);Kg({x:a.x-o._state.offsetViewport.x,y:a.y-o._state.offsetViewport.y},o._canvas)}}function l(e){o._state.isDragging&&(o._state.initialDragPosition.x===e.clientX&&o._state.initialDragPosition.y===e.clientY&&a(e),o._update(),q(o._state,{cachedViewbox:null,initialDragPosition:null,isDragging:!1,offsetViewport:null,offsetViewportDom:null}),ue.unbind(document,"mousemove",p),ue.unbind(document,"mouseup",l))}this._canvas=i,this._elementRegistry=r,this._eventBus=n,this._injector=t,this._state={isOpen:void 0,isDragging:!1,initialDragPosition:null,offsetViewport:null,cachedViewbox:null,dragger:null,svgClientRect:null,parentClientRect:null,zoomDelta:0},this._init(),this.toggle(e&&e.open||!1),ue.bind(this._svg,"click",(function(e){e.preventDefault(),e.stopPropagation(),a(e)})),ue.bind(this._viewportDom,"mousedown",s(!1)),ue.bind(this._svg,"mousedown",s(!0)),ue.bind(this._parent,"wheel",(function(e){if(e.preventDefault(),e.stopPropagation(),e.ctrlKey&&(o._state._svgClientRect&&!Zg(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),t=e,n=o._state._svgClientRect,t.x>n.left&&t.x<n.left+n.width&&t.y>n.top&&t.y<n.top+n.height)){var t,n,r,a,s,p,l=0===e.deltaMode?.02:.32,c=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*Jg(e.deltaY)*-l;if(o._state.zoomDelta+=c,Math.abs(o._state.zoomDelta)>.1){var u=c>0?1:-1,d=Math.log(i.zoom())/Math.log(10),h=(r=Ug,a=20,s=Math.log(r.min)/Math.log(10),p=Math.log(r.max)/Math.log(10),(Math.abs(s)+Math.abs(p))/a),m=Math.round(d/h)*h;m+=h*u;var f=Math.pow(10,m);i.zoom(function(e,t){return Math.max(e.min,Math.min(e.max,t))}(Ug,f),y),o._state.zoomDelta=0;var y=Wg({x:e.clientX-o._state._svgClientRect.left,y:e.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox);Kg(y,o._canvas),o._update()}}})),ue.bind(this._toggle,"click",(function(e){e.preventDefault(),e.stopPropagation(),o.toggle()})),n.on(["shape.added","connection.added"],(function(e){var t=e.element;o._addElement(t),o._update()})),n.on(["shape.removed","connection.removed"],(function(e){var t=e.element;o._removeElement(t),o._update()})),n.on("elements.changed",250,(function(e){e.elements.forEach((function(e){o._updateElement(e)})),o._update()})),n.on("element.updateId",(function(e){var t=e.element,n=e.newId;o._updateElementId(t,n)})),n.on("canvas.viewbox.changed",(function(){o._state.isDragging||o._update()})),n.on("canvas.resized",(function(){document.body.contains(o._parent)&&(o._state.isDragging||o._update(),o._state._svgClientRect=o._svg.getBoundingClientRect())})),n.on("root.set",(function(e){o._clear(),e.element.children.forEach((function(e){o._addElement(e)})),o._update()}))}function Wg(e,t,n){var i=t.getBoundingClientRect(),r=function(e,t){var n=e.width/e.height,i=q({},{x:e.x,y:e.y,width:e.width,height:e.height});if(n>t){var r=i.width*(1/t);q(i,{y:i.y-(r-i.height)/2,height:r})}else if(n<t){var o=i.height*t;q(i,{x:i.x-(o-i.width)/2,width:o})}return i}(n,i.width/i.height);return{x:Yg(e.x,0,i.width,r.x,r.x+r.width),y:Yg(e.y,0,i.height,r.y,r.y+r.height)}}function Kg(e,t){var n=t.viewbox(),i=n.width,r=n.height;t.viewbox({x:e.x-i/2,y:e.y-r/2,width:i,height:r})}function Yg(e,t,n,i,r){return(e-t)*(r-i)/(n-t)+i}function Xg(e,t,n){var i=function(e){var t=ve(".children",e);t||_e(e,t=Le("g",{class:"children"}));return t}(t),r=[].slice.call(i.childNodes)[n];r?t.insertBefore(e,r.nextSibling):t.appendChild(e)}function Zg(e){return 0===e.width&&0===e.height}Gg.$inject=["config.minimap","injector","eventBus","canvas","elementRegistry"],Gg.prototype._init=function(){var e=this._canvas.getContainer(),t=this._parent=document.createElement("div");te(t).add("djs-minimap"),e.appendChild(t);var n=this._toggle=document.createElement("div");te(n).add("toggle"),t.appendChild(n);var i=this._map=document.createElement("div");te(i).add("map"),t.appendChild(i);var r=this._svg=Le("svg");Oe(r,{width:"100%",height:"100%"}),_e(i,r),_e(r,this._elementsGroup=Le("g"));var o=this._viewportGroup=Le("g");_e(r,o);var a=this._viewport=Le("rect");Te(a).add("viewport"),_e(o,a),ue.bind(t,"mousedown",(function(e){e.stopPropagation()}));var s=this._viewportDom=document.createElement("div");te(s).add("viewport-dom"),this._parent.appendChild(s);var p=this._overlay=document.createElement("div");te(p).add("overlay"),this._parent.appendChild(p)},Gg.prototype._update=function(){var e=this._canvas.viewbox(),t=e.inner,n=e.outer;if(tv(e)){var i,r,o,a,s=n.width-t.width,p=n.height-t.height;t.width<n.width?(i=t.x-s/2,o=n.width,t.x+t.width<n.width&&(i=Math.min(0,t.x))):(i=t.x,o=t.width),t.height<n.height?(r=t.y-p/2,a=n.height,t.y+t.height<n.height&&(r=Math.min(0,t.y))):(r=t.y,a=t.height),i-=50,r-=50,o+=100,a+=100,this._lastViewbox={x:i,y:r,width:o,height:a},Oe(this._svg,{viewBox:i+", "+r+", "+o+", "+a}),Oe(this._viewport,{x:e.x,y:e.y,width:e.width,height:e.height});var l=this._state._parentClientRect=this._parent.getBoundingClientRect(),c=this._viewport.getBoundingClientRect(),u={top:c.top-l.top,left:c.left-l.left,width:c.width,height:c.height};q(this._viewportDom.style,{top:u.top+"px",left:u.left+"px",width:u.width+"px",height:u.height+"px"});var d=Qg(l,u);q(this._overlay.style,{clipPath:d})}},Gg.prototype.open=function(){q(this._state,{isOpen:!0}),te(this._parent).add("open");var e=this._injector.get("translate",!1)||function(e){return e};X(this._toggle,"title",e("Close minimap")),this._update(),this._eventBus.fire("minimap.toggle",{open:!0})},Gg.prototype.close=function(){q(this._state,{isOpen:!1}),te(this._parent).remove("open");var e=this._injector.get("translate",!1)||function(e){return e};X(this._toggle,"title",e("Open minimap")),this._eventBus.fire("minimap.toggle",{open:!1})},Gg.prototype.toggle=function(e){var t=this.isOpen();void 0===e&&(e=!t),e!=t&&(e?this.open():this.close())},Gg.prototype.isOpen=function(){return this._state.isOpen},Gg.prototype._updateElement=function(e){try{void 0!==e.parent&&null!==e.parent&&(this._removeElement(e),this._addElement(e))}catch(e){console.warn("Minimap#_updateElement errored",e)}},Gg.prototype._updateElementId=function(e,t){try{var n=ve("#"+Qo(e.id),this._elementsGroup);n&&(n.id=t)}catch(e){console.warn("Minimap#_updateElementId errored",e)}},Gg.prototype._addElement=function(e){var t=this;if(this._removeElement(e),this._canvas.findRoot(e)===this._canvas.getRootElement()){var n,i,r,o=this._createElement(e),a=ve("#"+Qo(e.parent.id),this._elementsGroup);if(o){var s=function(e,t){var n=ve(".djs-children",t.parentNode);if(!n)return;var i=[].slice.call(n.childNodes),r=-1;return i.forEach((function(t,n){ve(".djs-element",t)===e&&(r=n)})),r}(this._elementRegistry.getGraphics(e),this._elementRegistry.getGraphics(e.parent));return"undefined"!==s&&a?a.childNodes.length>s?Xg(o,a,s):Xg(o,a,a.childNodes.length-1):this._elementsGroup.appendChild(o),!function(e){return e.waypoints}(e)?(i=e.x,r=e.y,a&&(i-=(n=e.parent).x,r-=n.y),Oe(o,{transform:"translate("+i+" "+r+")"})):(i=0,r=0,void 0!==(n=e.parent).x&&void 0!==n.y&&(i=-n.x,r=-n.y),Oe(o,{transform:"translate("+i+" "+r+")"})),e.children&&e.children.length&&e.children.forEach((function(e){t._addElement(e)})),o}}},Gg.prototype._removeElement=function(e){var t=this._svg.getElementById(e.id);t&&Re(t)},Gg.prototype._createElement=function(e){var t,n=this._elementRegistry.getGraphics(e);if(n&&(t=function(e){return e.childNodes[0]}(n))){var i=De(t);return Oe(i,{id:e.id}),i}},Gg.prototype._clear=function(){ze(this._elementsGroup)};var Jg=Math.sign||function(e){return e>=0?1:-1};function Qg(e,t){return"polygon("+[ev(t.left,t.top),ev(t.left+t.width,t.top),ev(t.left+t.width,t.top+t.height),ev(t.left,t.top+t.height),ev(t.left,e.height),ev(e.width,e.height),ev(e.width,0),ev(0,0),ev(0,e.height),ev(t.left,e.height)].join(", ")+")"}function ev(e,t){return e+"px "+t+"px"}function tv(e){return O(e,(function(e){return h(e)?tv(e):m(e)&&isFinite(e)}))}var nv={__init__:["minimap"],minimap:["type",Gg]};function iv(e,t){var n,i,r=(e=e||{}).borderColor||"rgba(0,0,0,0.1)",o=e.crossColor||"#CCC",a=-1;_e(t.getLayer("djs-origin",-1),n=av("g",{"pointer-events":"none"})),!1!==e.showBorder&&_e(n,av("path",{class:ov("border"),d:rv(["M",-22,a,"H",-1e3,"M",22,a,"H",6e3,"M",a,-22,"V",-1e3,"M",a,22,"V",3e3]),fill:"none",stroke:r,"stroke-width":"2px","stroke-dasharray":"6, 6","shape-rendering":"crispedges"})),_e(n,av("path",{d:rv(["M",-15,a,"H",15,"M",a,-15,"V",15]),class:ov("cross"),fill:"none",stroke:o,"stroke-width":"2px","stroke-linecap":"round"})),(i=av("text",{x:-40,y:-10,fill:o,class:ov("label")})).textContent="(0, 0)",_e(n,i)}function rv(e){return e.join(" ")}function ov(e){return"djs-origin-"+e}function av(e,t){var n=Le(e);return Oe(n,t),n}iv.$inject=["config.origin","canvas"];var sv={__init__:[iv]},pv={offset:{x:150,y:75},tolerance:50,alignOnSave:!0};function lv(e,t,n,i,r,o){function a(e,n){var i=n.offset,r=n.tolerance,o={};return["x","y"].forEach((function(n){var a=-e[n]+i[n],s=t.get("gridSnapping",!1);s&&(a=function(e,t,n){n||(n="round");return Math[n](e/t)*t}(a,s.getGridSpacing())),o[n]=Math.abs(a)<r?0:a})),o}function s(){var t=r.viewbox().inner,n=r.getRootElement().children;if(n.length){var o=a(t,e);0===o.x&&0===o.y||i.execute("elements.alignToOrigin",{elements:n,delta:o})}}function p(e){return function(t){n.once("commandStack.changed",(function(){var n=t.delta,i=r.viewbox().scale;r.scroll({dx:e*n.x*i,dy:e*n.y*i})}))}}var l,c,u;e=function(e){var t=q({},pv,e||{});return m(t.offset)&&(t.offset={x:t.offset,y:t.offset}),t}(e),i.register("elements.alignToOrigin",{preExecute:function(e){var t=e.delta,n=e.elements;o.moveElements(n,t)},execute:p(-1),revert:p(1)}),e.alignOnSave&&(l=t.get("_parent",!1),c=n,((u=l&&l._eventBus)||c).on("saveXML.start",1250,s),u&&c.on("diagram.destroy",(function(){u.off("saveXML.start",s)}))),this.align=s,this.computeAdjustment=a,this._config=e}lv.$inject=["config.alignToOrigin","injector","eventBus","commandStack","canvas","modeling"];var cv={__init__:["alignToOrigin"],alignToOrigin:["type",lv]};function uv(e){function t(e){if(!e.labelTarget){var t=Er(e);wr(t,"bpmn:Participant")&&(t=t.processRef),wr(t,"bpmn:Process")&&(t.isExecutable=!!t.isExecutable)}}e.on(["shape.added","root.added"],(function(e){t(e.element)})),e.on("elements.changed",(function(e){e.elements.forEach((function(e){t(e)}))}))}uv.$inject=["eventBus"];var dv,hv,mv,fv,yv,gv={__init__:[uv]},vv={},bv=[],xv=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function wv(e,t){for(var n in t)e[n]=t[n];return e}function _v(e){var t=e.parentNode;t&&t.removeChild(e)}function Ev(e,t,n){var i,r,o,a=arguments,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>3)for(n=[n],o=3;o<arguments.length;o++)n.push(a[o]);if(null!=n&&(s.children=n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return Pv(e,s,i,r,null)}function Pv(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++dv.__v:r};return null!=dv.vnode&&dv.vnode(o),o}function Ov(e){return e.children}function Sv(e,t){this.props=e,this.context=t}function kv(e,t){if(null==t)return e.__?kv(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?kv(e):null}function Cv(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Cv(e)}}function Mv(e){(!e.__d&&(e.__d=!0)&&hv.push(e)&&!Tv.__r++||fv!==dv.debounceRendering)&&((fv=dv.debounceRendering)||mv)(Tv)}function Tv(){for(var e;Tv.__r=hv.length;)e=hv.sort((function(e,t){return e.__v.__b-t.__v.__b})),hv=[],e.some((function(e){var t,n,i,r,o,a;e.__d&&(o=(r=(t=e).__v).__e,(a=t.__P)&&(n=[],(i=wv({},r)).__v=r.__v+1,Iv(a,r,i,t.__n,void 0!==a.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?kv(r):o,r.__h),$v(n,r),r.__e!=o&&Cv(r)))}))}function Av(e,t,n,i,r,o,a,s,p,l){var c,u,d,h,m,f,y,g=i&&i.__k||bv,v=g.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(h=n.__k[c]=null==(h=t[c])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?Pv(null,h,null,null,h):Array.isArray(h)?Pv(Ov,{children:h},null,null,null):h.__b>0?Pv(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(d=g[c])||d&&h.key==d.key&&h.type===d.type)g[c]=void 0;else for(u=0;u<v;u++){if((d=g[u])&&h.key==d.key&&h.type===d.type){g[u]=void 0;break}d=null}Iv(e,h,d=d||vv,r,o,a,s,p,l),m=h.__e,(u=h.ref)&&d.ref!=u&&(y||(y=[]),d.ref&&y.push(d.ref,null,h),y.push(u,h.__c||m,h)),null!=m?(null==f&&(f=m),"function"==typeof h.type&&null!=h.__k&&h.__k===d.__k?h.__d=p=Rv(h,p,e):p=Dv(e,h,d,g,m,p),l||"option"!==n.type?"function"==typeof n.type&&(n.__d=p):e.value=""):p&&d.__e==p&&p.parentNode!=e&&(p=kv(d))}for(n.__e=f,c=v;c--;)null!=g[c]&&("function"==typeof n.type&&null!=g[c].__e&&g[c].__e==n.__d&&(n.__d=kv(i,c+1)),Hv(g[c],g[c]));if(y)for(c=0;c<y.length;c++)Vv(y[c],y[++c],y[++c])}function Rv(e,t,n){var i,r;for(i=0;i<e.__k.length;i++)(r=e.__k[i])&&(r.__=e,t="function"==typeof r.type?Rv(r,t,n):Dv(n,r,r,e.__k,r.__e,t));return t}function zv(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){zv(e,t)})):t.push(e)),t}function Dv(e,t,n,i,r,o){var a,s,p;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),a=null;else{for(s=o,p=0;(s=s.nextSibling)&&p<i.length;p+=2)if(s==r)break e;e.insertBefore(r,o),a=o}return void 0!==a?a:r.nextSibling}function jv(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||xv.test(t)?n:n+"px"}function Bv(e,t,n,i,r){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||jv(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||jv(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?Lv:Nv,o):e.removeEventListener(t,o?Lv:Nv,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function Nv(e){this.l[e.type+!1](dv.event?dv.event(e):e)}function Lv(e){this.l[e.type+!0](dv.event?dv.event(e):e)}function Iv(e,t,n,i,r,o,a,s,p){var l,c,u,d,h,m,f,y,g,v,b,x=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(p=n.__h,s=t.__e=n.__e,t.__h=null,o=[s]),(l=dv.__b)&&l(t);try{e:if("function"==typeof x){if(y=t.props,g=(l=x.contextType)&&i[l.__c],v=l?g?g.props.value:l.__:i,n.__c?f=(c=t.__c=n.__c).__=c.__E:("prototype"in x&&x.prototype.render?t.__c=c=new x(y,v):(t.__c=c=new Sv(y,v),c.constructor=x,c.render=qv),g&&g.sub(c),c.props=y,c.state||(c.state={}),c.context=v,c.__n=i,u=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=x.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=wv({},c.__s)),wv(c.__s,x.getDerivedStateFromProps(y,c.__s))),d=c.props,h=c.state,u)null==x.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==x.getDerivedStateFromProps&&y!==d&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(y,v),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(y,c.__s,v)||t.__v===n.__v){c.props=y,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),c.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),c.__h.length&&a.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(y,c.__s,v),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(d,h,m)}))}c.context=v,c.props=y,c.state=c.__s,(l=dv.__r)&&l(t),c.__d=!1,c.__v=t,c.__P=e,l=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(i=wv(wv({},i),c.getChildContext())),u||null==c.getSnapshotBeforeUpdate||(m=c.getSnapshotBeforeUpdate(d,h)),b=null!=l&&l.type===Ov&&null==l.key?l.props.children:l,Av(e,Array.isArray(b)?b:[b],t,n,i,r,o,a,s,p),c.base=t.__e,t.__h=null,c.__h.length&&a.push(c),f&&(c.__E=c.__=null),c.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Fv(n.__e,t,n,i,r,o,a,p);(l=dv.diffed)&&l(t)}catch(e){t.__v=null,(p||null!=o)&&(t.__e=s,t.__h=!!p,o[o.indexOf(s)]=null),dv.__e(e,t,n)}}function $v(e,t){dv.__c&&dv.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){dv.__e(e,t.__v)}}))}function Fv(e,t,n,i,r,o,a,s){var p,l,c,u,d=n.props,h=t.props,m=t.type,f=0;if("svg"===m&&(r=!0),null!=o)for(;f<o.length;f++)if((p=o[f])&&(p===e||(m?p.localName==m:3==p.nodeType))){e=p,o[f]=null;break}if(null==e){if(null===m)return document.createTextNode(h);e=r?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,h.is&&h),o=null,s=!1}if(null===m)d===h||s&&e.data===h||(e.data=h);else{if(o=o&&bv.slice.call(e.childNodes),l=(d=n.props||vv).dangerouslySetInnerHTML,c=h.dangerouslySetInnerHTML,!s){if(null!=o)for(d={},u=0;u<e.attributes.length;u++)d[e.attributes[u].name]=e.attributes[u].value;(c||l)&&(c&&(l&&c.__html==l.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||Bv(e,o,null,n[o],i);for(o in t)r&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||Bv(e,o,t[o],n[o],i)}(e,h,d,r,s),c)t.__k=[];else if(f=t.props.children,Av(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==m,o,a,e.firstChild,s),null!=o)for(f=o.length;f--;)null!=o[f]&&_v(o[f]);s||("value"in h&&void 0!==(f=h.value)&&(f!==e.value||"progress"===m&&!f)&&Bv(e,"value",f,d.value,!1),"checked"in h&&void 0!==(f=h.checked)&&f!==e.checked&&Bv(e,"checked",f,d.checked,!1))}return e}function Vv(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){dv.__e(e,n)}}function Hv(e,t,n){var i,r,o;if(dv.unmount&&dv.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||Vv(i,null,t)),n||"function"==typeof e.type||(n=null!=(r=e.__e)),e.__e=e.__d=void 0,null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){dv.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&Hv(i[o],t,n);null!=r&&_v(r)}function qv(e,t,n){return this.constructor(e,n)}function Uv(e,t,n){var i,r,o;dv.__&&dv.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,o=[],Iv(t,e=(!i&&n||t).__k=Ev(Ov,null,[e]),r||vv,vv,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?bv.slice.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),$v(o,e)}function Gv(e,t){var n={__c:t="__cC"+yv++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(Mv)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}dv={__e:function(e,t){for(var n,i,r;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),r=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),r=n.__d),r)return n.__E=n}catch(t){e=t}throw e},__v:0},Sv.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=wv({},this.state),"function"==typeof e&&(e=e(wv({},n),this.props)),e&&wv(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Mv(this))},Sv.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Mv(this))},Sv.prototype.render=Ov,hv=[],mv="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Tv.__r=0,yv=0;var Wv,Kv,Yv,Xv=0,Zv=[],Jv=dv.__b,Qv=dv.__r,eb=dv.diffed,tb=dv.__c,nb=dv.unmount;function ib(e,t){dv.__h&&dv.__h(Kv,e,Xv||t),Xv=0;var n=Kv.__H||(Kv.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function rb(e){return Xv=1,ob(yb,e)}function ob(e,t,n){var i=ib(Wv++,2);return i.t=e,i.__c||(i.__=[n?n(t):yb(void 0,t),function(e){var t=i.t(i.__[0],e);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}))}],i.__c=Kv),i.__}function ab(e,t){var n=ib(Wv++,3);!dv.__s&&fb(n.__H,t)&&(n.__=e,n.__H=t,Kv.__H.__h.push(n))}function sb(e){return Xv=5,pb((function(){return{current:e}}),[])}function pb(e,t){var n=ib(Wv++,7);return fb(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function lb(e,t){return Xv=8,pb((function(){return e}),t)}function cb(e){var t=Kv.context[e.__c],n=ib(Wv++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(Kv)),t.props.value):e.__}function ub(){Zv.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(hb),e.__H.__h.forEach(mb),e.__H.__h=[]}catch(t){e.__H.__h=[],dv.__e(t,e.__v)}})),Zv=[]}dv.__b=function(e){Kv=null,Jv&&Jv(e)},dv.__r=function(e){Qv&&Qv(e),Wv=0;var t=(Kv=e.__c).__H;t&&(t.__h.forEach(hb),t.__h.forEach(mb),t.__h=[])},dv.diffed=function(e){eb&&eb(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Zv.push(t)&&Yv===dv.requestAnimationFrame||((Yv=dv.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),db&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);db&&(t=requestAnimationFrame(n))})(ub)),Kv=void 0},dv.__c=function(e,t){t.some((function(e){try{e.__h.forEach(hb),e.__h=e.__h.filter((function(e){return!e.__||mb(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],dv.__e(n,e.__v)}})),tb&&tb(e,t)},dv.unmount=function(e){nb&&nb(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(hb)}catch(e){dv.__e(e,t.__v)}};var db="function"==typeof requestAnimationFrame;function hb(e){var t=Kv;"function"==typeof e.__c&&e.__c(),Kv=t}function mb(e){var t=Kv;e.__c=e.__(),Kv=t}function fb(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function yb(e,t){return"function"==typeof t?t(e):t}
|
|
9
9
|
/*!
|
|
10
10
|
Copyright (c) 2018 Jed Watson.
|
|
11
11
|
Licensed under the MIT License (MIT), see
|
|
12
12
|
http://jedwatson.github.io/classnames
|
|
13
|
-
*/var yb=n((function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],i=0;i<arguments.length;i++){var r=arguments[i];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var s in r)t.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));function gb(e,t,n,i,r){var o={};for(var a in t)"ref"!=a&&(o[a]=t[a]);var s,p,l={type:e,props:o,key:n,ref:t&&t.ref,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:++dv.__v,__source:i,__self:r};if("function"==typeof e&&(s=e.defaultProps))for(p in s)void 0===o[p]&&(o[p]=s[p]);return dv.vnode&&dv.vnode(l),l}function vb(e,t){for(var n in t)e[n]=t[n];return e}function bb(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function xb(e){this.props=e}(xb.prototype=new Sv).isPureReactComponent=!0,xb.prototype.shouldComponentUpdate=function(e,t){return bb(this.props,e)||bb(this.state,t)};var wb=dv.__b;dv.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),wb&&wb(e)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var _b=dv.__e;dv.__e=function(e,t,n){if(e.then)for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);_b(e,t,n)};var Eb=dv.unmount;function Pb(){this.__u=0,this.t=null,this.__b=null}function Ob(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Sb(){this.u=null,this.o=null}dv.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Eb&&Eb(e)},(Pb.prototype=new Sv).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=Ob(i.__v),o=!1,a=function(){o||(o=!0,n.__R=null,r?r(s):s())};n.__R=a;var s=function(){if(!--i.__u){if(i.state.__e){var e=i.state.__e;i.__v.__k[0]=function e(t,n,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,i)})),t.__c&&t.__c.__P===n&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()}},p=!0===t.__h;i.__u++||p||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(a,a)},Pb.prototype.componentWillUnmount=function(){this.t=[]},Pb.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=vb({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,i)}))),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__e&&Ev(Ov,null,e.fallback);return r&&(r.__h=null),[Ev(Ov,null,t.__e?null:e.children),r]};var kb=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(Sb.prototype=new Sv).__e=function(e){var t=this,n=Ob(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),kb(t,e,i)):r()};n?n(o):o()}},Sb.prototype.render=function(e){this.u=null,this.o=new Map;var t=zv(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Sb.prototype.componentDidUpdate=Sb.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){kb(e,n,t)}))};var Cb="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Mb=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Tb=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Sv.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Sv.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ab=dv.event;function Rb(){}function zb(){return this.cancelBubble}function Db(){return this.defaultPrevented}dv.event=function(e){return Ab&&(e=Ab(e)),e.persist=Rb,e.isPropagationStopped=zb,e.isDefaultPrevented=Db,e.nativeEvent=e};var jb={configurable:!0,get:function(){return this.class}},Bb=dv.vnode;dv.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){for(var r in i={},n){var o=n[r];"value"===r&&"defaultValue"in n&&null==o||("defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===o?o="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!Tb(n.type)?r="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(r)?r=r.toLowerCase():Mb.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),i[r]=o)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=zv(n.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==t&&null!=i.defaultValue&&(i.value=zv(n.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),e.props=i}t&&n.class!=n.className&&(jb.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",jb)),e.$$typeof=Cb,Bb&&Bb(e)};var Nb=dv.__r;dv.__r=function(e){Nb&&Nb(e),e.__c};"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);var Lb=Ev;function Ib(e){const{element:t,headerProvider:n}=e,{getElementLabel:i,getTypeLabel:r,getElementIcon:o}=n,a=i(t),s=r(t),p=o(t);return gb("div",{class:"bio-properties-panel-header",children:[gb("div",{class:"bio-properties-panel-header-icon",children:p&&gb(p,{width:"32",height:"32",viewBox:"0 0 32 32"})}),gb("div",{class:"bio-properties-panel-header-labels",children:[gb("div",{title:s,class:"bio-properties-panel-header-type",children:s}),i(t)?gb("div",{title:a,class:"bio-properties-panel-header-label",children:a}):null]})]})}function $b(e){const t=sb();return ab((()=>{t.current=e})),t.current}const Fb=Gv({description:{},getDescriptionForId:()=>{}}),Vb=Gv({layout:{},setLayout:()=>{},getLayoutForKey:()=>{},setLayoutForKey:()=>{}});function Hb(e,t){const{getLayoutForKey:n,setLayoutForKey:i}=lb(Vb),r=n(e,t),[o,a]=rb(r);return[o,t=>{a(t),i(e,t)}]}var qb=function(e){return gb("svg",{...e,children:gb("path",{fillRule:"evenodd",d:"m11.657 8-4.95 4.95a1 1 0 0 1-1.414-1.414L8.828 8 5.293 4.464A1 1 0 1 1 6.707 3.05L11.657 8z"})})};qb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var Ub=function(e){return gb("svg",{...e,children:gb("path",{fillRule:"evenodd",d:"M9 13V9h4a1 1 0 0 0 0-2H9V3a1 1 0 1 0-2 0v4H3a1 1 0 1 0 0 2h4v4a1 1 0 0 0 2 0z"})})};Ub.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var Gb=function(e){return gb("svg",{...e,children:gb("path",{fillRule:"evenodd",d:"M12 6v7c0 1.1-.4 1.55-1.5 1.55h-5C4.4 14.55 4 14.1 4 13V6h8zm-1.5 1.5h-5v4.3c0 .66.5 1.2 1.111 1.2H9.39c.611 0 1.111-.54 1.111-1.2V7.5zM13 3h-2l-1-1H6L5 3H3v1.5h10V3z"})})};Gb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var Wb=function(e){return gb("svg",{...e,children:[gb("path",{d:"M5.8 7.06V5.95h4.307v1.11H5.8zm0 3.071v-1.11h4.307v1.11H5.8z",fill:"#505562"}),gb("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3.268A4.732 4.732 0 1 0 12.732 8H14a6 6 0 1 1-6-6v1.268z",fill:"#505562"}),gb("path",{d:"m11.28 6.072-.832-.56 1.016-1.224L10 3.848l.312-.912 1.392.584L11.632 2h1.032l-.072 1.52 1.392-.584.312.912-1.464.44 1.008 1.224-.832.552-.864-1.296-.864 1.304z",fill:"#505562"})]})};Wb.defaultProps={viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Kb=function(e){return gb("svg",{...e,children:[gb("path",{d:"M5.845 7.04V5.93h4.307v1.11H5.845zm0 3.07V9h4.307v1.11H5.845z",fill:"#505562"}),gb("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.286 8a4.714 4.714 0 1 0 9.428 0 4.714 4.714 0 0 0-9.428 0zM8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2z",fill:"#505562"})]})};function Yb(e){const{element:t,entries:n=[],id:i,label:r}=e,[o,a]=Hb(["groups",i,"open"],!1),[s,p]=rb(!1);return ab((()=>{const e=n.find((e=>{const{id:t,isEdited:n}=e,i=ve(`[data-entry-id="${t}"]`);if(!f(n)||!i)return!1;return n(ve(".bio-properties-panel-input",i))}));p(e)}),[n]),gb("div",{class:"bio-properties-panel-group","data-group-id":"group-"+i,children:[gb("div",{class:yb("bio-properties-panel-group-header",s?"":"empty",o?"open":""),onClick:()=>a(!o),children:[gb("div",{title:r,class:"bio-properties-panel-group-header-title",children:r}),gb("div",{class:"bio-properties-panel-group-header-buttons",children:[s&&gb(Xb,{}),gb("button",{title:"Toggle section",class:"bio-properties-panel-group-header-button bio-properties-panel-arrow",children:gb(qb,{class:o?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})})]})]}),gb("div",{class:yb("bio-properties-panel-group-entries",o?"open":""),children:n.map((e=>{const{component:n,id:i}=e;return Ev(n,{...e,key:i,element:t})}))})]})}function Xb(){return gb("div",{title:"Section contains data",class:"bio-properties-panel-dot"})}Kb.defaultProps={viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const Zb={open:!0},Jb={};function Qb(e){const{element:t,headerProvider:n,groups:i,layoutConfig:r={},layoutChanged:o,descriptionConfig:a={},descriptionLoaded:s}=e,[p,l]=rb((c=r,{...Zb,...c}));var c;ab((()=>{"function"==typeof o&&o(p)}),[p,o]);const u={layout:p,setLayout:l,getLayoutForKey:(e,t)=>G(p,e,t),setLayoutForKey:(e,t)=>{const n=q({},p);U(n,e,t),l(n)}},d=function(e){return{...Jb,...e}}(a);"function"==typeof s&&s(d);const h={description:d,getDescriptionForId:(e,t)=>d[e]&&d[e](t)};return t?gb(Fb.Provider,{value:h,children:gb(Vb.Provider,{value:u,children:gb("div",{class:yb("bio-properties-panel",p.open?"open":""),children:[gb(Ib,{element:t,headerProvider:n}),gb("div",{class:"bio-properties-panel-scroll-container",children:i.map((e=>{const{component:n=Yb,id:i}=e;return Ev(n,{...e,key:i,element:t})}))})]})})}):gb("div",{class:"bio-properties-panel-placeholder",children:"Select an element to edit its properties."})}function ex(e){const{class:t,children:n,menuItems:i=[]}=e,r=sb(null),o=sb(null),[a,s]=rb(!1),p=()=>s(!1);function l(e,t){e.stopPropagation(),p(),t()}var c,u;return c=[r.current],u=()=>p(),ab((()=>{function e(e){c.some((t=>t&&t.contains(e.target)))||u()}return document.addEventListener("click",e,{capture:!0}),()=>document.removeEventListener("click",e,{capture:!0})}),[...c,u]),gb("div",{class:yb("bio-properties-panel-dropdown-button",{open:a},t),onClick:function(e){o.current&&o.current.contains(e.target)||(e.stopPropagation(),s((e=>!e)))},ref:r,children:[n,gb("div",{class:"bio-properties-panel-dropdown-button__menu",ref:o,children:i.map(((e,t)=>gb(tx,{onClick:l,item:e},t)))})]})}function tx({item:e,onClick:t}){return e.separator?gb("div",{class:"bio-properties-panel-dropdown-button__menu-item bio-properties-panel-dropdown-button__menu-item--separator"}):e.action?gb("button",{class:"bio-properties-panel-dropdown-button__menu-item bio-properties-panel-dropdown-button__menu-item--actionable",onClick:n=>t(n,e.action),children:e.entry}):gb("div",{class:"bio-properties-panel-dropdown-button__menu-item",children:e.entry})}function nx(e){const{children:t=null,class:n,onClick:i=(()=>{}),...r}=e;return gb("button",{...r,onClick:i,class:yb("bio-properties-panel-group-header-button",n),children:t})}function ix(e){const{element:t,entries:n=[],id:i,label:r,open:o,remove:a}=e,[s,p]=rb(o),l="<empty>";return gb("div",{"data-entry-id":i,class:yb("bio-properties-panel-collapsible-entry",s?"open":""),children:[gb("div",{class:"bio-properties-panel-collapsible-entry-header",onClick:()=>p(!s),children:[gb("div",{title:r||l,class:yb("bio-properties-panel-collapsible-entry-header-title",!r&&"empty"),children:r||l}),gb("button",{title:"Toggle list item",class:"bio-properties-panel-arrow bio-properties-panel-collapsible-entry-arrow",children:gb(qb,{class:s?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})}),a?gb("button",{title:"Delete item",class:"bio-properties-panel-remove-entry",onClick:a,children:gb(Gb,{})}):null]}),gb("div",{class:yb("bio-properties-panel-collapsible-entry-entries",s?"open":""),children:n.map((e=>{const{component:n,id:i}=e;return Ev(n,{...e,key:i,element:t})}))})]})}function rx(e){const{autoFocusEntry:t,autoOpen:n}=e;return ab((()=>{if(n&&t){const e=ve(`[data-entry-id="${t}"]`),n=ve(".bio-properties-panel-input",e);n&&(f(n.select)?n.select():f(n.focus)&&n.focus())}}),[n,t]),gb("div",{class:"bio-properties-panel-list-item",children:gb(ix,{...e,open:n})})}const ox=()=>{};function ax(e){const{add:t,element:n,id:i,items:r,label:o,shouldOpen:a=!0,shouldSort:s=!0}=e,[p,l]=Hb(["groups",i,"open"],!1),[c,u]=rb([]),[d,h]=rb(!1),m=$b(r),f=$b(n),y=n!==f,g=!y&&(s||a);y&&u(lx(s?sx(r):r)),ab((()=>{m&&s||u(lx(r))}),[r,n]),ab((()=>{if(g&&m&&r.length>m.length){let e=[];r.forEach((t=>{c.includes(t.id)||e.push(t.id)}));let t=c;!p&&a&&(v(),s&&(t=lx(sx(r)))),t=t.filter((t=>!e.includes(t))),s?t.unshift(...e):t.push(...e),u(t),h(!0)}else h(!1)}),[r,p,g]),ab((()=>{s&&p&&!d&&u(lx(sx(r)))}),[p,s]),ab((()=>{if(g&&m&&r.length<m.length){let e=[];c.forEach((t=>{px(r,t)&&e.push(t)})),u(e)}}),[r,g]);const v=()=>l(!p),b=!!r.length;return gb("div",{class:"bio-properties-panel-group","data-group-id":"group-"+i,children:[gb("div",{class:yb("bio-properties-panel-group-header",b?"":"empty",b&&p?"open":""),onClick:b?v:ox,children:[gb("div",{title:o,class:"bio-properties-panel-group-header-title",children:o}),gb("div",{class:"bio-properties-panel-group-header-buttons",children:[t?gb("button",{title:"Create new list item",class:"bio-properties-panel-group-header-button bio-properties-panel-add-entry",onClick:t,children:[gb(Ub,{}),b?null:gb("span",{class:"bio-properties-panel-add-entry-label",children:"Create"})]}):null,b?gb("div",{title:`List contains ${r.length} item${1!=r.length?"s":""}`,class:"bio-properties-panel-list-badge",children:r.length}):null,b?gb("button",{title:"Toggle section",class:"bio-properties-panel-group-header-button bio-properties-panel-arrow",children:gb(qb,{class:p?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})}):null]})]}),gb("div",{class:yb("bio-properties-panel-list",p&&b?"open":""),children:c.map(((e,t)=>{const i=px(r,e);if(!i)return;const{id:o}=i;return Ev(rx,{...i,element:n,index:t,key:o,autoOpen:d&&(s?0===t:t===c.length-1)})}))})]})}function sx(e){return D(e,(e=>e.label.toLowerCase()))}function px(e,t){return b(e,(e=>e.id===t))}function lx(e){return e.map((e=>e.id))}function cx(e){const{element:t,forId:n,value:i}=e,r=function(e,t){const{getDescriptionForId:n}=lb(Fb);return n(e,t)}(n,t),o=i||r;if(o)return gb("div",{class:"bio-properties-panel-description",children:o})}function ux(e){const{id:t,label:n,onChange:i,disabled:r,value:o=!1}=e;return gb("div",{class:"bio-properties-panel-checkbox",children:[gb("input",{id:mx(t),name:t,type:"checkbox",class:"bio-properties-panel-input",onChange:({target:e})=>{i(e.checked)},checked:o,disabled:r}),gb("label",{for:mx(t),class:"bio-properties-panel-label",children:n})]})}function dx(e){const{element:t,id:n,description:i,label:r,getValue:o,setValue:a,disabled:s}=e;return gb("div",{class:"bio-properties-panel-entry bio-properties-panel-checkbox-entry","data-entry-id":n,children:[gb(ux,{id:n,label:r,onChange:a,value:o(t),disabled:s}),gb(cx,{forId:n,element:t,value:i})]})}function hx(e){return e&&!!e.checked}function mx(e){return`bio-properties-panel-${e}`}function fx(e){const{id:t,label:n,onChange:i,options:r=[],value:o,disabled:a}=e;return gb("div",{class:"bio-properties-panel-select",children:[gb("label",{for:vx(t),class:"bio-properties-panel-label",children:n}),gb("select",{id:vx(t),name:t,class:"bio-properties-panel-input",onInput:({target:e})=>{i(e.value)},value:o,disabled:a,children:r.map(((e,t)=>gb("option",{value:e.value,disabled:e.disabled,children:e.label},t)))})]})}function yx(e){const{element:t,id:n,description:i,label:r,getValue:o,setValue:a,getOptions:s,disabled:p}=e;return gb("div",{class:"bio-properties-panel-entry","data-entry-id":n,children:[gb(fx,{id:n,label:r,value:o(t),onChange:a,options:s(t),disabled:p}),gb(cx,{forId:n,element:t,value:i})]})}function gx(e){return e&&!!e.value}function vx(e){return`bio-properties-panel-${e}`}function bx(e){const{label:t,feel:n=!1}=e;return gb("i",{class:"bio-properties-panel-feel-icon",title:t+("required"===n?" must be a FEEL expression":" can optionally be a FEEL expression"),children:gb("required"===n?Wb:Kb,{})})}function xx(e){const{id:t,label:n,rows:i=2,debounce:r,feel:o,onInput:a,value:s="",disabled:p,monospace:l}=e,c=pb((()=>r((({target:e})=>a(e.value.length?e.value:void 0)))),[a,r]);return gb("div",{class:"bio-properties-panel-textarea",children:[gb("label",{for:Ex(t),class:"bio-properties-panel-label",children:[n,o&&gb(bx,{feel:o,label:n})]}),gb("textarea",{id:Ex(t),name:t,spellCheck:"false",class:yb("bio-properties-panel-input",l?"bio-properties-panel-input-monospace":""),onInput:c,onFocus:e.onFocus,onBlur:e.onBlur,rows:i,value:s,disabled:p})]})}function wx(e){const{element:t,id:n,description:i,debounce:r,feel:o,label:a,getValue:s,setValue:p,rows:l,monospace:c,disabled:u}=e;return gb("div",{class:"bio-properties-panel-entry","data-entry-id":n,children:[gb(xx,{id:n,label:a,value:s(t),onInput:p,rows:l,debounce:r,monospace:c,feel:o,disabled:u}),gb(cx,{forId:n,element:t,value:i})]})}function _x(e){return e&&!!e.value}function Ex(e){return`bio-properties-panel-${e}`}function Px(e){const{debounce:t,disabled:n=!1,id:i,label:r,onInput:o,feel:a=!1,value:s=""}=e,p=pb((()=>t((({target:e})=>o(e.value.length?e.value:void 0)))),[o,t]);return gb("div",{class:"bio-properties-panel-textfield",children:[gb("label",{for:kx(i),class:"bio-properties-panel-label",children:[r,a&&gb(bx,{feel:a,label:r})]}),gb("input",{id:kx(i),type:"text",name:i,spellCheck:"false",autoComplete:"off",disabled:n,class:"bio-properties-panel-input",onInput:p,onFocus:e.onFocus,onBlur:e.onBlur,value:s||""})]})}function Ox(e){const{element:t,id:n,description:i,debounce:r,disabled:o,feel:a,label:s,getValue:p,setValue:l,validate:c}=e,[u,d]=rb(null),[h,m]=rb(null);let f=p(t);const y=$b(f);ab((()=>{const e=c?c(f):null;d(e)}),[f]);return y===f&&u&&(f=h),gb("div",{class:yb("bio-properties-panel-entry",u?"has-error":""),"data-entry-id":n,children:[gb(Px,{id:n,label:s,value:f,onInput:e=>{const t=c?c(e):null;t?m(e):l(e),d(t)},debounce:r,disabled:o,feel:a}),gb(cx,{forId:n,element:t,value:i}),u&&gb("div",{class:"bio-properties-panel-error",children:u})]})}function Sx(e){return e&&!!e.value}function kx(e){return`bio-properties-panel-${e}`}function Cx(e){const{id:t,label:n,onInput:i,value:r,switcherLabel:o}=e;return gb("div",{class:"bio-properties-panel-toggle-switch",children:[gb("label",{class:"bio-properties-panel-label",for:Tx(t),children:n}),gb("div",{class:"bio-properties-panel-field-wrapper",children:[gb("label",{class:"bio-properties-panel-toggle-switch__switcher",children:[gb("input",{id:Tx(t),class:"bio-properties-panel-input",type:"checkbox",name:t,onInput:async()=>{i(!r)},checked:r}),gb("span",{class:"bio-properties-panel-toggle-switch__slider"})]}),gb("p",{class:"bio-properties-panel-toggle-switch__label",children:o})]})]})}function Mx(e){return e&&!!e.checked}function Tx(e){return`bio-properties-panel-${e}`}function Ax(e){return function(t){return!1!==e?$(t,m(e)?e:300):t}}Ax.$inject=["config.debounceInput"];var Rx={debounceInput:["factory",Ax]};var zx={translate:["value",function(e,t){return t=t||{},e.replace(/{([^}]+)}/g,(function(e,n){return t[n]||"{"+n+"}"}))}]},Dx=function(e,t){for(var n=e.split("."),i=t.split("."),r=0;r<3;r++){var o=Number(n[r]),a=Number(i[r]);if(o>a)return 1;if(a>o)return-1;if(!isNaN(o)&&isNaN(a))return 1;if(isNaN(o)&&!isNaN(a))return-1}return 0},jx=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var i,r,o;if(Array.isArray(t)){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((i=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,o[r]))return!1;for(r=i;0!=r--;){var a=o[r];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},Bx=Ux,Nx=Ux;const Lx={type:"object",allOf:[{required:["name","id","appliesTo","properties"],properties:{name:{$id:"#/name",type:"string",description:"The name of the element template."},id:{$id:"#/id",type:"string",description:"The identifier of the element template."},description:{$id:"#/description",type:"string",description:"The description of the element template."},version:{$id:"#/version",type:"number",description:"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},isDefault:{$id:"#/isDefault",type:"boolean",description:"Indicates whether the element template is a default template."},appliesTo:{$id:"#/appliesTo",type:"array",description:"List of BPMN types the template can be applied to.",default:[],items:{$id:"#/appliesTo/items",type:"string",pattern:"^(.*?:)",errorMessage:{pattern:'invalid item for "appliesTo", should contain namespaced property, example: "bpmn:Task"'},allOf:[{examples:["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}]}},metadata:{$id:"#/metadata",type:"object",description:"Some custom properties for further configuration.",default:{}},entriesVisible:{$id:"#/entriesVisible",type:"boolean",description:"Select whether non-template entries are visible in the properties panel."},groups:{$id:"#/groups",type:"array",description:"Custom fields can be ordered together via groups.",allOf:[{examples:[[{id:"group-1",label:"My Group"}]]}],items:{$id:"#/groups/group",type:"object",default:{},required:["id","label"],errorMessage:{required:{id:'missing id for group "${0#}"',label:'missing label for group "${0#}"'}},properties:{id:{$id:"#/groups/group/id",type:"string",description:"The id of the custom group"},label:{$id:"#/groups/group/label",type:"string",description:"The label of the custom group"}}}}},errorMessage:{required:{name:"missing template name",id:"missing template id",appliesTo:"missing appliesTo=[]",properties:"missing properties=[]"}}}],properties:{properties:{$ref:"#/definitions/properties",$id:"#/properties"},scopes:{$id:"#/scopes",type:"array",description:"Special scoped bindings that allow you to configure nested elements.",allOf:[{examples:[[{type:"bpmn:Error",id:"Error_1",properties:[{value:"error-code",binding:{type:"property",name:"errorCode"}},{value:"error-message",binding:{type:"property",name:"camunda:errorMessage"}},{value:"error-name",binding:{type:"property",name:"name"}}]}]]}],items:{$id:"#/scopes/item",type:"object",default:{},properties:{type:{$id:"#scopes/item/type",type:"string",description:"The type of a scope.",enum:["camunda:Connector","bpmn:Error"],errorMessage:"invalid scope type ${0}; must be any of { camunda:Connector, bpmn:Error }"},properties:{$id:"#/scopes/properties",description:"List of properties of a scope.",default:[],allOf:[{$ref:"#/definitions/properties/allOf/0"},{$ref:"#/definitions/properties/allOf/1"}]}},required:["type","properties"],errorMessage:{required:{type:"invalid scope, missing type",properties:"invalid scope ${0/type}, missing properties=[]"}},allOf:[{if:{properties:{type:{enum:["bpmn:Error"]}},required:["type"]},then:{required:["id"],errorMessage:"invalid scope ${0/type}, missing id"}}]}}}},Ix={allOf:[{type:"array",description:"List of properties of the element template.",allOf:[{examples:[[{label:"Name",type:"String",binding:{type:"property",name:"name"}}]]}],items:{type:"object",default:{},allOf:[{if:{properties:{type:{const:"Dropdown"}},required:["type"]},then:{required:["choices"],errorMessage:'must provide choices=[] with "Dropdown" type'}}],properties:{value:{$id:"#/properties/property/value",type:["string","boolean"],description:"The value of a control field."},description:{$id:"#/properties/property/description",type:"string",description:"The description of a control field."},label:{$id:"#/properties/property/label",type:"string",description:"The label of a control field."},type:{$id:"#/properties/property/type",type:"string",description:"The type of a control field."},editable:{$id:"#/properties/property/editable",type:"boolean",description:"Indicates whether a control field is editable or not."},choices:{$id:"#/properties/property/choices",type:"array",description:"The choices for dropdown fields.",default:[],items:{$id:"#/properties/property/choices/item",type:"object",default:{},properties:{name:{$id:"#/properties/property/choices/item/name",type:"string",description:"The name of a choice."},value:{$id:"#/properties/property/choices/item/value",type:"string",description:"The value of a choice."}},required:["value","name"],errorMessage:'{ name, value } must be specified for "Dropdown" choices'}},constraints:{$id:"#/properties/property/constraints",type:"object",description:"The validation constraints of a control field.",allOf:[{examples:[{notEmpty:!0}]}],properties:{notEmpty:{$id:"#/properties/property/constraints/notEmpty",type:"boolean",description:"The control field must not be empty."},minLength:{$id:"#/properties/property/constraints/minLength",type:"number",description:"The minimal length of a control field value."},maxLength:{$id:"#/properties/property/constraints/maxLength",type:"number",description:"The maximal length for a control field value."},pattern:{$id:"#/properties/property/constraints/pattern",description:"A regular expression pattern for a constraint.",oneOf:[{type:"object",default:{},properties:{value:{$id:"#/properties/property/constraints/pattern/value",type:"string",description:"The regular expression of a pattern."},message:{$id:"#/properties/property/constraints/pattern/message",type:"string",description:"The validation message of a pattern."}}},{type:"string"}]}}},group:{$id:"#/properties/property/group",type:"string",description:"The custom group of a control field."}}}},{$schema:"http://json-schema.org/draft-07/schema",type:"array",description:"List of properties of the element template.",items:{type:"object",default:{},required:["binding"],errorMessage:{required:{binding:'missing binding for property "${0#}"'}},allOf:[{if:{properties:{binding:{properties:{type:{const:"property"}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown","Boolean"],errorMessage:'invalid property type ${0} for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'}}}},{if:{properties:{binding:{properties:{type:{const:"camunda:executionListener"}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["Hidden"],errorMessage:'invalid property type ${1/type} for binding type "camunda:executionListener"; must be "Hidden"'}}}},{if:{properties:{binding:{properties:{type:{enum:["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Hidden","Dropdown"],errorMessage:"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{if:{properties:{binding:{properties:{type:{enum:["camunda:inputParameter","camunda:field"]}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown"],errorMessage:"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],properties:{binding:{$id:"#/properties/property/binding",type:"object",description:"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.",required:["type"],allOf:[{if:{properties:{type:{enum:["property","camunda:property","camunda:inputParameter","camunda:field"]}},required:["type"]},then:{required:["name"],errorMessage:"property.binding ${0/type} requires name"}},{if:{properties:{type:{const:"camunda:outputParameter"}},required:["type"]},then:{required:["source"],errorMessage:"property.binding ${0/type} requires source"}},{if:{properties:{type:{const:"camunda:in"}},required:["type"]},then:{anyOf:[{required:["variables"]},{required:["target"]}],errorMessage:"property.binding ${0/type} requires variables, target, or both"}},{if:{properties:{type:{const:"camunda:out"}},required:["type"]},then:{oneOf:[{required:["variables"],not:{anyOf:[{required:["source"]},{required:["sourceExpression"]}]}},{required:["source"],not:{anyOf:[{required:["variables"]},{required:["sourceExpression"]}]}},{required:["sourceExpression"],not:{anyOf:[{required:["variables"]},{required:["source"]}]}},{required:["variables","sourceExpression"],not:{required:["source"]}},{required:["variables","source"],not:{required:["sourceExpression"]}}],errorMessage:"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{if:{properties:{type:{const:"camunda:errorEventDefinition"}},required:["type"]},then:{oneOf:[{required:["errorRef"]}],errorMessage:"property.binding ${0/type} requires errorRef"}},{examples:[{type:"property",name:"name"},{type:"camunda:property",name:"property"},{type:"camunda:inputParameter",name:"input"},{type:"camunda:outputParameter",source:"output"},{type:"camunda:in",target:"target"},{type:"camunda:in:businessKey"},{type:"camunda:out",source:"output"},{type:"camunda:executionListener",event:"start"},{type:"camunda:field",name:"field"},{type:"camunda:errorEventDefinition",errorRef:"error"},{type:"camunda:errorEventDefinition",errorRef:"error"}]}],properties:{type:{$id:"#/properties/property/binding/type",type:"string",enum:["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],errorMessage:"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }",description:"The type of a property binding."},name:{$id:"#/properties/property/binding/name",type:"string",description:"The name of a property binding."},event:{$id:"#/properties/property/binding/event",type:"string",description:"The event type of a property binding (camunda:executionListener)."},scriptFormat:{$id:"#/properties/property/binding/scriptFormat",type:"string",description:"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},source:{$id:"#/properties/property/binding/source",type:"string",description:"The source value of a property binding (camunda:outputParameter, camunda:out)."},target:{$id:"#/properties/property/binding/target",type:"string",description:"The target value of a property binding (camunda:in)."},expression:{$id:"#/properties/property/binding/expression",type:"boolean",description:"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},variables:{$id:"#/properties/property/binding/variables",type:"string",enum:["all","local"],description:"The variable mapping of a property binding (camunda:in)."},sourceExpression:{$id:"#/properties/property/binding/sourceExpression",type:"string",description:"The string containing the expression for the source attribute (camunda:out)."}}}}}}]},$x={type:"array",description:"List of properties of the element template.",allOf:[{examples:[[{label:"Name",type:"String",binding:{type:"property",name:"name"}}]]}],items:{type:"object",default:{},allOf:[{if:{properties:{type:{const:"Dropdown"}},required:["type"]},then:{required:["choices"],errorMessage:'must provide choices=[] with "Dropdown" type'}}],properties:{value:{$id:"#/properties/property/value",type:["string","boolean"],description:"The value of a control field."},description:{$id:"#/properties/property/description",type:"string",description:"The description of a control field."},label:{$id:"#/properties/property/label",type:"string",description:"The label of a control field."},type:{$id:"#/properties/property/type",type:"string",description:"The type of a control field."},editable:{$id:"#/properties/property/editable",type:"boolean",description:"Indicates whether a control field is editable or not."},choices:{$id:"#/properties/property/choices",type:"array",description:"The choices for dropdown fields.",default:[],items:{$id:"#/properties/property/choices/item",type:"object",default:{},properties:{name:{$id:"#/properties/property/choices/item/name",type:"string",description:"The name of a choice."},value:{$id:"#/properties/property/choices/item/value",type:"string",description:"The value of a choice."}},required:["value","name"],errorMessage:'{ name, value } must be specified for "Dropdown" choices'}},constraints:{$id:"#/properties/property/constraints",type:"object",description:"The validation constraints of a control field.",allOf:[{examples:[{notEmpty:!0}]}],properties:{notEmpty:{$id:"#/properties/property/constraints/notEmpty",type:"boolean",description:"The control field must not be empty."},minLength:{$id:"#/properties/property/constraints/minLength",type:"number",description:"The minimal length of a control field value."},maxLength:{$id:"#/properties/property/constraints/maxLength",type:"number",description:"The maximal length for a control field value."},pattern:{$id:"#/properties/property/constraints/pattern",description:"A regular expression pattern for a constraint.",oneOf:[{type:"object",default:{},properties:{value:{$id:"#/properties/property/constraints/pattern/value",type:"string",description:"The regular expression of a pattern."},message:{$id:"#/properties/property/constraints/pattern/message",type:"string",description:"The validation message of a pattern."}}},{type:"string"}]}}},group:{$id:"#/properties/property/group",type:"string",description:"The custom group of a control field."}}}},Fx={$schema:"http://json-schema.org/draft-07/schema",type:"array",description:"List of properties of the element template.",items:{type:"object",default:{},required:["binding"],errorMessage:{required:{binding:'missing binding for property "${0#}"'}},allOf:[{if:{properties:{binding:{properties:{type:{const:"property"}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown","Boolean"],errorMessage:'invalid property type ${0} for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'}}}},{if:{properties:{binding:{properties:{type:{const:"camunda:executionListener"}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["Hidden"],errorMessage:'invalid property type ${1/type} for binding type "camunda:executionListener"; must be "Hidden"'}}}},{if:{properties:{binding:{properties:{type:{enum:["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Hidden","Dropdown"],errorMessage:"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{if:{properties:{binding:{properties:{type:{enum:["camunda:inputParameter","camunda:field"]}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown"],errorMessage:"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],properties:{binding:{$id:"#/properties/property/binding",type:"object",description:"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.",required:["type"],allOf:[{if:{properties:{type:{enum:["property","camunda:property","camunda:inputParameter","camunda:field"]}},required:["type"]},then:{required:["name"],errorMessage:"property.binding ${0/type} requires name"}},{if:{properties:{type:{const:"camunda:outputParameter"}},required:["type"]},then:{required:["source"],errorMessage:"property.binding ${0/type} requires source"}},{if:{properties:{type:{const:"camunda:in"}},required:["type"]},then:{anyOf:[{required:["variables"]},{required:["target"]}],errorMessage:"property.binding ${0/type} requires variables, target, or both"}},{if:{properties:{type:{const:"camunda:out"}},required:["type"]},then:{oneOf:[{required:["variables"],not:{anyOf:[{required:["source"]},{required:["sourceExpression"]}]}},{required:["source"],not:{anyOf:[{required:["variables"]},{required:["sourceExpression"]}]}},{required:["sourceExpression"],not:{anyOf:[{required:["variables"]},{required:["source"]}]}},{required:["variables","sourceExpression"],not:{required:["source"]}},{required:["variables","source"],not:{required:["sourceExpression"]}}],errorMessage:"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{if:{properties:{type:{const:"camunda:errorEventDefinition"}},required:["type"]},then:{oneOf:[{required:["errorRef"]}],errorMessage:"property.binding ${0/type} requires errorRef"}},{examples:[{type:"property",name:"name"},{type:"camunda:property",name:"property"},{type:"camunda:inputParameter",name:"input"},{type:"camunda:outputParameter",source:"output"},{type:"camunda:in",target:"target"},{type:"camunda:in:businessKey"},{type:"camunda:out",source:"output"},{type:"camunda:executionListener",event:"start"},{type:"camunda:field",name:"field"},{type:"camunda:errorEventDefinition",errorRef:"error"},{type:"camunda:errorEventDefinition",errorRef:"error"}]}],properties:{type:{$id:"#/properties/property/binding/type",type:"string",enum:["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],errorMessage:"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }",description:"The type of a property binding."},name:{$id:"#/properties/property/binding/name",type:"string",description:"The name of a property binding."},event:{$id:"#/properties/property/binding/event",type:"string",description:"The event type of a property binding (camunda:executionListener)."},scriptFormat:{$id:"#/properties/property/binding/scriptFormat",type:"string",description:"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},source:{$id:"#/properties/property/binding/source",type:"string",description:"The source value of a property binding (camunda:outputParameter, camunda:out)."},target:{$id:"#/properties/property/binding/target",type:"string",description:"The target value of a property binding (camunda:in)."},expression:{$id:"#/properties/property/binding/expression",type:"boolean",description:"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},variables:{$id:"#/properties/property/binding/variables",type:"string",enum:["all","local"],description:"The variable mapping of a property binding (camunda:in)."},sourceExpression:{$id:"#/properties/property/binding/sourceExpression",type:"string",description:"The string containing the expression for the source attribute (camunda:out)."}}}}}},Vx=new RegExp("^(.*?:)","u"),Hx={required:"missingProperty",dependencies:"property",dependentRequired:"property"};function qx(e,{dataPath:t="",parentData:n,parentDataProperty:i,rootData:r=e}={}){let o=null,a=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.name){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.id){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"id"},message:"should have required property 'id'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.appliesTo){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"appliesTo"},message:"should have required property 'appliesTo'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.properties){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"properties"},message:"should have required property 'properties'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.name&&"string"!=typeof e.name){const e={keyword:"type",dataPath:t+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.id&&"string"!=typeof e.id){const e={keyword:"type",dataPath:t+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.description&&"string"!=typeof e.description){const e={keyword:"type",dataPath:t+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.version&&"number"!=typeof e.version){const e={keyword:"type",dataPath:t+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.isDefault&&"boolean"!=typeof e.isDefault){const e={keyword:"type",dataPath:t+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.appliesTo){let n=e.appliesTo;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];if("string"==typeof e){if(!Vx.test(e)){const e={keyword:"pattern",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern:"^(.*?:)"},message:'should match pattern "^(.*?:)"'};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(a>0){const e={pattern:[]},n={};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/appliesTo/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(36))&&(e[n.keyword].push(n),n.emUsed=!0);for(const r in e)if(e[r].length){const s={keyword:"errorMessage",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors:e[r]},message:r in n?n[r]():Lx.allOf[0].properties.appliesTo.items.errorMessage[r]};null===o?o=[s]:o.push(s),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}}else{const e={keyword:"type",dataPath:t+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.metadata){let n=e.metadata;if(!n||"object"!=typeof n||Array.isArray(n)){const e={keyword:"type",dataPath:t+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.entriesVisible&&"boolean"!=typeof e.entriesVisible){const e={keyword:"type",dataPath:t+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.groups){let n=e.groups;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.id){const e={keyword:"required",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty:"id"},message:"should have required property 'id'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.label){const e={keyword:"required",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty:"label"},message:"should have required property 'label'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.id&&"string"!=typeof e.id){const e={keyword:"type",dataPath:t+"/groups/"+i+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.label&&"string"!=typeof e.label){const e={keyword:"type",dataPath:t+"/groups/"+i+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e={required:{id:[],label:[]}},n={required:{id:function(){return'missing id for group "'+JSON.stringify(i)+'"'},label:function(){return'missing label for group "'+JSON.stringify(i)+'"'}}};let r,s;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/groups/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/groups/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(33))&&(r=Hx[n.keyword],s=e[n.keyword][n.params[r]],s&&(s.push(n),n.emUsed=!0));for(const r in e)for(const p in e[r])if(s=e[r][p],s.length){const e=n[r]&&n[r][p],l={keyword:"errorMessage",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors:s},message:e?e():Lx.allOf[0].properties.groups.items.errorMessage[r][p]};null===o?o=[l]:o.push(l),a++}const p=[];for(const e of o)e.emUsed||p.push(e);o=p,a=p.length}}}else{const e={keyword:"type",dataPath:t+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}}if(a>0){const e={required:{name:[],id:[],appliesTo:[],properties:[]}},n={required:{}};let i,r;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0")&&/^\/[^\/]*$/.test(n.schemaPath.slice(9))&&(i=Hx[n.keyword],r=e[n.keyword][n.params[i]],r&&(r.push(n),n.emUsed=!0));for(const i in e)for(const s in e[i])if(r=e[i][s],r.length){const e=n[i]&&n[i][s],p={keyword:"errorMessage",dataPath:t,schemaPath:"#/allOf/0/errorMessage",params:{errors:r},message:e?e():Lx.allOf[0].errorMessage[i][s]};null===o?o=[p]:o.push(p),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.properties){let n=e.properties;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];const r=a;let l=!0;const c=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.type&&!jx(e.type,"Dropdown")){const e={};null===o?o=[e]:o.push(e),a++}var s=c===a;if(a=r,null!==o&&(r?o.length=r:o=null),s){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.choices){const e={keyword:"required",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty:"choices"},message:"should have required property 'choices'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i&&(0!==n.dataPath.indexOf(t+"/properties/"+i)||"/"!==n.dataPath[t+"/properties/"+i.length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors:e},message:'must provide choices=[] with "Dropdown" type'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}l=s=n===a}if(!l){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.value){let n=e.value;if("string"!=typeof n&&"boolean"!=typeof n){const e={keyword:"type",dataPath:t+"/properties/"+i+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type:Ix.allOf[0].items.properties.value.type},message:"should be string,boolean"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.description&&"string"!=typeof e.description){const e={keyword:"type",dataPath:t+"/properties/"+i+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.label&&"string"!=typeof e.label){const e={keyword:"type",dataPath:t+"/properties/"+i+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.type&&"string"!=typeof e.type){const e={keyword:"type",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.editable&&"boolean"!=typeof e.editable){const e={keyword:"type",dataPath:t+"/properties/"+i+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.choices){let n=e.choices;if(Array.isArray(n)){const e=n.length;for(let r=0;r<e;r++){let e=n[r];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.value){const e={keyword:"required",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty:"value"},message:"should have required property 'value'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.name){const e={keyword:"required",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.name&&"string"!=typeof e.name){const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices/"+r+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.value&&"string"!=typeof e.value){const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices/"+r+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/choices/"+r&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/choices/"+r)||"/"!==n.dataPath[t+"/properties/"+i+"/choices/"+r.length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items")||"/"!==n.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors:e},message:'{ name, value } must be specified for "Dropdown" choices'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.constraints){let n=e.constraints;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0!==n.notEmpty&&"boolean"!=typeof n.notEmpty){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.minLength&&"number"!=typeof n.minLength){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.maxLength&&"number"!=typeof n.maxLength){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.pattern){let e=n.pattern;const r=a;let s=!1,l=null;const c=a;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.value&&"string"!=typeof e.value){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.message&&"string"!=typeof e.message){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}(p=c===a)&&(s=!0,l=0);const u=a;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}var p;if((p=u===a)&&s?(s=!1,l=[l,1]):p&&(s=!0,l=1),s)a=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/properties/"+i+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.group&&"string"!=typeof e.group){const e={keyword:"type",dataPath:t+"/properties/"+i+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];const r=a;let s=!0;const p=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type&&!jx(t.type,"property")){const e={};null===o?o=[e]:o.push(e),a++}}var l=p===a;if(a=r,null!==o&&(r?o.length=r:o=null),l){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n&&"Hidden"!==n&&"Dropdown"!==n&&"Boolean"!==n){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues:Ix.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/type"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/type")||"/"!==n.dataPath[t+"/properties/"+i+"/type".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors:e},message:"invalid property type "+JSON.stringify(n)+' for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}s=l=n===a}if(!s){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const E=a;let P=!0;const O=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type&&!jx(t.type,"camunda:executionListener")){const e={};null===o?o=[e]:o.push(e),a++}}var c=O===a;if(a=E,null!==o&&(E?o.length=E:o=null),c){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){if("Hidden"!==e.type){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues:Ix.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/properties/"+i+"/type"&&(0!==e.dataPath.indexOf(t+"/properties/"+i+"/type")||"/"!==e.dataPath[t+"/properties/"+i+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors:n},message:"invalid property type "+JSON.stringify(e&&e.type)+' for binding type "camunda:executionListener"; must be "Hidden"'};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}P=c=n===a}if(!P){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const S=a;let k=!0;const C=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type){let e=t.type;if("camunda:property"!==e&&"camunda:outputParameter"!==e&&"camunda:in"!==e&&"camunda:in:businessKey"!==e&&"camunda:out"!==e&&"camunda:errorEventDefinition"!==e){const e={};null===o?o=[e]:o.push(e),a++}}}var u=C===a;if(a=S,null!==o&&(S?o.length=S:o=null),u){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Hidden"!==n&&"Dropdown"!==n){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues:Ix.allOf[1].items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const r=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/properties/"+i+"/type"&&(0!==e.dataPath.indexOf(t+"/properties/"+i+"/type")||"/"!==e.dataPath[t+"/properties/"+i+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length]||(r.push(e),e.emUsed=!0);if(r.length){const s={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors:r},message:"invalid property type "+JSON.stringify(n)+" for binding type "+JSON.stringify(e&&e.binding&&e.binding.type)+"; must be any of { String, Hidden, Dropdown }"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}}k=u=n===a}if(!k){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const M=a;let T=!0;const A=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type){let e=t.type;if("camunda:inputParameter"!==e&&"camunda:field"!==e){const e={};null===o?o=[e]:o.push(e),a++}}}var d=A===a;if(a=M,null!==o&&(M?o.length=M:o=null),d){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n&&"Hidden"!==n&&"Dropdown"!==n){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues:Ix.allOf[1].items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const r=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/properties/"+i+"/type"&&(0!==e.dataPath.indexOf(t+"/properties/"+i+"/type")||"/"!==e.dataPath[t+"/properties/"+i+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length]||(r.push(e),e.emUsed=!0);if(r.length){const s={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors:r},message:"invalid property type "+JSON.stringify(n)+" for binding type "+JSON.stringify(e&&e.binding&&e.binding.type)+"; must be any of { String, Text, Hidden, Dropdown }"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}}T=d=n===a}if(!T){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.binding){const e={keyword:"required",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty:"binding"},message:"should have required property 'binding'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.binding){let n=e.binding;const r=a;let s=!0;const p=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type){let e=n.type;if("property"!==e&&"camunda:property"!==e&&"camunda:inputParameter"!==e&&"camunda:field"!==e){const e={};null===o?o=[e]:o.push(e),a++}}var h=p===a;if(a=r,null!==o&&(r?o.length=r:o=null),h){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.name){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires name"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}s=h=e===a}if(!s){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const l=a;let c=!0;const u=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!jx(n.type,"camunda:outputParameter")){const e={};null===o?o=[e]:o.push(e),a++}var m=u===a;if(a=l,null!==o&&(l?o.length=l:o=null),m){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires source"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}c=m=e===a}if(!c){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const d=a;let E=!0;const P=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!jx(n.type,"camunda:in")){const e={};null===o?o=[e]:o.push(e),a++}var f=P===a;if(a=d,null!==o&&(d?o.length=d:o=null),f){const e=a,r=a;let s=!1;const p=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}var y=p===a;if(s=s||y,!s){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.target){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",params:{missingProperty:"target"},message:"should have required property 'target'"};null===o?o=[e]:o.push(e),a++}y=e===a;s=s||y}if(s)a=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"anyOf",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf",params:{},message:"should match some schema in anyOf"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires variables, target, or both"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}E=f=e===a}if(!E){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const O=a;let S=!0;const k=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!jx(n.type,"camunda:out")){const e={};null===o?o=[e]:o.push(e),a++}var g=k===a;if(a=O,null!==o&&(O?o.length=O:o=null),g){const e=a,r=a;let s=!1,p=null;const l=a,c=a,u=a,d=a;let h=!1;const m=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={};null===o?o=[e]:o.push(e),a++}var v=m===a;if(h=h||v,!h){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={};null===o?o=[e]:o.push(e),a++}v=e===a;h=h||v}if(h)a=d,null!==o&&(d?o.length=d:o=null);else{const e={};null===o?o=[e]:o.push(e),a++}if(u===a){const e={keyword:"not",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=c,null!==o&&(c?o.length=c:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}(w=l===a)&&(s=!0,p=0);const f=a,y=a,_=a,E=a;let P=!1;const O=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={};null===o?o=[e]:o.push(e),a++}var b=O===a;if(P=P||b,!P){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={};null===o?o=[e]:o.push(e),a++}b=e===a;P=P||b}if(P)a=E,null!==o&&(E?o.length=E:o=null);else{const e={};null===o?o=[e]:o.push(e),a++}if(_===a){const e={keyword:"not",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=y,null!==o&&(y?o.length=y:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),a++}if((w=f===a)&&s)s=!1,p=[p,1];else{w&&(s=!0,p=1);const e=a,r=a,l=a,c=a;let u=!1;const d=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={};null===o?o=[e]:o.push(e),a++}var x=d===a;if(u=u||x,!u){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={};null===o?o=[e]:o.push(e),a++}x=e===a;u=u||x}if(u)a=c,null!==o&&(c?o.length=c:o=null);else{const e={};null===o?o=[e]:o.push(e),a++}if(l===a){const e={keyword:"not",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=r,null!==o&&(r?o.length=r:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty:"sourceExpression"},message:"should have required property 'sourceExpression'"};null===o?o=[e]:o.push(e),a++}if((w=e===a)&&s)s=!1,p=[p,2];else{w&&(s=!0,p=2);const e=a,r=a,l=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={};null===o?o=[e]:o.push(e),a++}if(l===a){const e={keyword:"not",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=r,null!==o&&(r?o.length=r:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.variables){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}if(void 0===n.sourceExpression){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty:"sourceExpression"},message:"should have required property 'sourceExpression'"};null===o?o=[e]:o.push(e),a++}}if((w=e===a)&&s)s=!1,p=[p,3];else{w&&(s=!0,p=3);const e=a,r=a,l=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={};null===o?o=[e]:o.push(e),a++}var w;if(l===a){const e={keyword:"not",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=r,null!==o&&(r?o.length=r:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.variables){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}if(void 0===n.source){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),a++}}(w=e===a)&&s?(s=!1,p=[p,4]):w&&(s=!0,p=4)}}}if(s)a=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas:p},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}S=g=e===a}if(!S){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const C=a;let M=!0;const T=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!jx(n.type,"camunda:errorEventDefinition")){const e={};null===o?o=[e]:o.push(e),a++}var _=T===a;if(a=C,null!==o&&(C?o.length=C:o=null),_){const e=a,r=a;let s=!1,p=null;const l=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.errorRef){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty:"errorRef"},message:"should have required property 'errorRef'"};null===o?o=[e]:o.push(e),a++}if(l===a&&(s=!0,p=0),s)a=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas:p},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires errorRef"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}M=_=e===a}if(!M){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.type){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.type){let e=n.type;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if("property"!==e&&"camunda:property"!==e&&"camunda:inputParameter"!==e&&"camunda:outputParameter"!==e&&"camunda:in"!==e&&"camunda:out"!==e&&"camunda:in:businessKey"!==e&&"camunda:executionListener"!==e&&"camunda:field"!==e&&"camunda:errorEventDefinition"!==e){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues:Ix.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/properties/"+i+"/binding/type"&&(0!==e.dataPath.indexOf(t+"/properties/"+i+"/binding/type")||"/"!==e.dataPath[t+"/properties/"+i+"/binding/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors:n},message:"invalid property.binding type "+JSON.stringify(e)+"; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}if(void 0!==n.name&&"string"!=typeof n.name){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.event&&"string"!=typeof n.event){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.scriptFormat&&"string"!=typeof n.scriptFormat){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.source&&"string"!=typeof n.source){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.target&&"string"!=typeof n.target){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.expression&&"boolean"!=typeof n.expression){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.variables){let e=n.variables;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if("all"!==e&&"local"!==e){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues:Ix.allOf[1].items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}}if(void 0!==n.sourceExpression&&"string"!=typeof n.sourceExpression){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e={required:{binding:[]}},n={required:{binding:function(){return'missing binding for property "'+JSON.stringify(i)+'"'}}};let r,s;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/properties/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/definitions/properties/allOf/1/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(38))&&(r=Hx[n.keyword],s=e[n.keyword][n.params[r]],s&&(s.push(n),n.emUsed=!0));for(const r in e)for(const p in e[r])if(s=e[r][p],s.length){const e=n[r]&&n[r][p],l={keyword:"errorMessage",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors:s},message:e?e():Ix.allOf[1].items.errorMessage[r][p]};null===o?o=[l]:o.push(l),a++}const p=[];for(const e of o)e.emUsed||p.push(e);o=p,a=p.length}}}else{const e={keyword:"type",dataPath:t+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.scopes){let n=e.scopes;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];const r=a;let s=!0;const p=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.type&&"bpmn:Error"!==e.type){const e={};null===o?o=[e]:o.push(e),a++}var E=p===a;if(a=r,null!==o&&(r?o.length=r:o=null),E){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.id){const e={keyword:"required",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/allOf/0/then/required",params:{missingProperty:"id"},message:"should have required property 'id'"};null===o?o=[e]:o.push(e),a++}if(a>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/scopes/"+i&&(0!==e.dataPath.indexOf(t+"/scopes/"+i)||"/"!==e.dataPath[t+"/scopes/"+i.length])||0!==e.schemaPath.indexOf("#/properties/scopes/items/allOf/0/then")||"/"!==e.schemaPath["#/properties/scopes/items/allOf/0/then".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/allOf/0/then/errorMessage",params:{errors:n},message:"invalid scope "+JSON.stringify(e&&e.type)+", missing id"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}s=E=n===a}if(!s){const e={keyword:"if",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={keyword:"required",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.properties){const e={keyword:"required",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/required",params:{missingProperty:"properties"},message:"should have required property 'properties'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.type){let n=e.type;if("string"!=typeof n){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/type",schemaPath:"#/properties/scopes/items/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if("camunda:Connector"!==n&&"bpmn:Error"!==n){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/type",schemaPath:"#/properties/scopes/items/properties/type/enum",params:{allowedValues:Lx.properties.scopes.items.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/type"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/type")||"/"!==n.dataPath[t+"/scopes/"+i+"/type".length])||0!==n.schemaPath.indexOf("#/properties/scopes/items/properties/type")||"/"!==n.schemaPath["#/properties/scopes/items/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/type",schemaPath:"#/properties/scopes/items/properties/type/errorMessage",params:{errors:e},message:"invalid scope type "+JSON.stringify(n)+"; must be any of { camunda:Connector, bpmn:Error }"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}if(void 0!==e.properties){let n=e.properties;if(Array.isArray(n)){const e=n.length;for(let r=0;r<e;r++){let e=n[r];const s=a;let p=!0;const l=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.type&&!jx(e.type,"Dropdown")){const e={};null===o?o=[e]:o.push(e),a++}var P=l===a;if(a=s,null!==o&&(s?o.length=s:o=null),P){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.choices){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty:"choices"},message:"should have required property 'choices'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r)||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r.length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors:e},message:'must provide choices=[] with "Dropdown" type'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}p=P=n===a}if(!p){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.value){let n=e.value;if("string"!=typeof n&&"boolean"!=typeof n){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type:$x.items.properties.value.type},message:"should be string,boolean"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.description&&"string"!=typeof e.description){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.label&&"string"!=typeof e.label){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.type&&"string"!=typeof e.type){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.editable&&"boolean"!=typeof e.editable){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.choices){let n=e.choices;if(Array.isArray(n)){const e=n.length;for(let s=0;s<e;s++){let e=n[s];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.value){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/choices/"+s,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty:"value"},message:"should have required property 'value'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.name){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/choices/"+s,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.name&&"string"!=typeof e.name){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/choices/"+s+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.value&&"string"!=typeof e.value){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/choices/"+s+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/choices/"+s,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/choices/"+s&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/choices/"+s)||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/choices/"+s.length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items")||"/"!==n.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/choices/"+s,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors:e},message:'{ name, value } must be specified for "Dropdown" choices'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.constraints){let n=e.constraints;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0!==n.notEmpty&&"boolean"!=typeof n.notEmpty){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.minLength&&"number"!=typeof n.minLength){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.maxLength&&"number"!=typeof n.maxLength){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.pattern){let e=n.pattern;const s=a;let p=!1,l=null;const c=a;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.value&&"string"!=typeof e.value){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.message&&"string"!=typeof e.message){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}(O=c===a)&&(p=!0,l=0);const u=a;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}var O;if((O=u===a)&&p?(p=!1,l=[l,1]):O&&(p=!0,l=1),p)a=s,null!==o&&(s?o.length=s:o=null);else{const e={keyword:"oneOf",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.group&&"string"!=typeof e.group){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}if(Array.isArray(n)){const e=n.length;for(let r=0;r<e;r++){let e=n[r];const s=a;let p=!0;const l=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type&&!jx(t.type,"property")){const e={};null===o?o=[e]:o.push(e),a++}}var S=l===a;if(a=s,null!==o&&(s?o.length=s:o=null),S){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n&&"Hidden"!==n&&"Dropdown"!==n&&"Boolean"!==n){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues:Fx.items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/type"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/type")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/type".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors:e},message:"invalid property type "+JSON.stringify(n)+' for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}}p=S=n===a}if(!p){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const c=a;let u=!0;const d=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type&&!jx(t.type,"camunda:executionListener")){const e={};null===o?o=[e]:o.push(e),a++}}var k=d===a;if(a=c,null!==o&&(c?o.length=c:o=null),k){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){if("Hidden"!==e.type){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues:Fx.items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/type"&&(0!==e.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/type")||"/"!==e.dataPath[t+"/scopes/"+i+"/properties/"+r+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors:n},message:"invalid property type "+JSON.stringify(e&&e.type)+' for binding type "camunda:executionListener"; must be "Hidden"'};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}}u=k=n===a}if(!u){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const h=a;let m=!0;const f=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type){let e=t.type;if("camunda:property"!==e&&"camunda:outputParameter"!==e&&"camunda:in"!==e&&"camunda:in:businessKey"!==e&&"camunda:out"!==e&&"camunda:errorEventDefinition"!==e){const e={};null===o?o=[e]:o.push(e),a++}}}var C=f===a;if(a=h,null!==o&&(h?o.length=h:o=null),C){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Hidden"!==n&&"Dropdown"!==n){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues:Fx.items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const s=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/type"&&(0!==e.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/type")||"/"!==e.dataPath[t+"/scopes/"+i+"/properties/"+r+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length]||(s.push(e),e.emUsed=!0);if(s.length){const p={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors:s},message:"invalid property type "+JSON.stringify(n)+" for binding type "+JSON.stringify(e&&e.binding&&e.binding.type)+"; must be any of { String, Hidden, Dropdown }"};null===o?o=[p]:o.push(p),a++}const p=[];for(const e of o)e.emUsed||p.push(e);o=p,a=p.length}}m=C=n===a}if(!m){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const y=a;let g=!0;const v=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type){let e=t.type;if("camunda:inputParameter"!==e&&"camunda:field"!==e){const e={};null===o?o=[e]:o.push(e),a++}}}var M=v===a;if(a=y,null!==o&&(y?o.length=y:o=null),M){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n&&"Hidden"!==n&&"Dropdown"!==n){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues:Fx.items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const s=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/type"&&(0!==e.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/type")||"/"!==e.dataPath[t+"/scopes/"+i+"/properties/"+r+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length]||(s.push(e),e.emUsed=!0);if(s.length){const p={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors:s},message:"invalid property type "+JSON.stringify(n)+" for binding type "+JSON.stringify(e&&e.binding&&e.binding.type)+"; must be any of { String, Text, Hidden, Dropdown }"};null===o?o=[p]:o.push(p),a++}const p=[];for(const e of o)e.emUsed||p.push(e);o=p,a=p.length}}g=M=n===a}if(!g){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.binding){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty:"binding"},message:"should have required property 'binding'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.binding){let n=e.binding;const s=a;let p=!0;const l=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type){let e=n.type;if("property"!==e&&"camunda:property"!==e&&"camunda:inputParameter"!==e&&"camunda:field"!==e){const e={};null===o?o=[e]:o.push(e),a++}}var T=l===a;if(a=s,null!==o&&(s?o.length=s:o=null),T){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.name){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires name"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}p=T=e===a}if(!p){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const c=a;let u=!0;const d=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!jx(n.type,"camunda:outputParameter")){const e={};null===o?o=[e]:o.push(e),a++}var A=d===a;if(a=c,null!==o&&(c?o.length=c:o=null),A){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires source"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}u=A=e===a}if(!u){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const h=a;let m=!0;const f=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!jx(n.type,"camunda:in")){const e={};null===o?o=[e]:o.push(e),a++}var R=f===a;if(a=h,null!==o&&(h?o.length=h:o=null),R){const e=a,s=a;let p=!1;const l=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}var z=l===a;if(p=p||z,!p){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.target){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",params:{missingProperty:"target"},message:"should have required property 'target'"};null===o?o=[e]:o.push(e),a++}z=e===a;p=p||z}if(p)a=s,null!==o&&(s?o.length=s:o=null);else{const e={keyword:"anyOf",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf",params:{},message:"should match some schema in anyOf"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires variables, target, or both"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}m=R=e===a}if(!m){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const y=a;let g=!0;const v=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!jx(n.type,"camunda:out")){const e={};null===o?o=[e]:o.push(e),a++}var D=v===a;if(a=y,null!==o&&(y?o.length=y:o=null),D){const e=a,s=a;let p=!1,l=null;const c=a,u=a,d=a,h=a;let m=!1;const f=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={};null===o?o=[e]:o.push(e),a++}var j=f===a;if(m=m||j,!m){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={};null===o?o=[e]:o.push(e),a++}j=e===a;m=m||j}if(m)a=h,null!==o&&(h?o.length=h:o=null);else{const e={};null===o?o=[e]:o.push(e),a++}if(d===a){const e={keyword:"not",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=u,null!==o&&(u?o.length=u:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}(L=c===a)&&(p=!0,l=0);const y=a,v=a,b=a,x=a;let w=!1;const _=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={};null===o?o=[e]:o.push(e),a++}var B=_===a;if(w=w||B,!w){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={};null===o?o=[e]:o.push(e),a++}B=e===a;w=w||B}if(w)a=x,null!==o&&(x?o.length=x:o=null);else{const e={};null===o?o=[e]:o.push(e),a++}if(b===a){const e={keyword:"not",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=v,null!==o&&(v?o.length=v:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),a++}if((L=y===a)&&p)p=!1,l=[l,1];else{L&&(p=!0,l=1);const e=a,s=a,c=a,u=a;let d=!1;const h=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={};null===o?o=[e]:o.push(e),a++}var N=h===a;if(d=d||N,!d){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={};null===o?o=[e]:o.push(e),a++}N=e===a;d=d||N}if(d)a=u,null!==o&&(u?o.length=u:o=null);else{const e={};null===o?o=[e]:o.push(e),a++}if(c===a){const e={keyword:"not",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=s,null!==o&&(s?o.length=s:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty:"sourceExpression"},message:"should have required property 'sourceExpression'"};null===o?o=[e]:o.push(e),a++}if((L=e===a)&&p)p=!1,l=[l,2];else{L&&(p=!0,l=2);const e=a,s=a,c=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={};null===o?o=[e]:o.push(e),a++}if(c===a){const e={keyword:"not",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=s,null!==o&&(s?o.length=s:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.variables){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}if(void 0===n.sourceExpression){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty:"sourceExpression"},message:"should have required property 'sourceExpression'"};null===o?o=[e]:o.push(e),a++}}if((L=e===a)&&p)p=!1,l=[l,3];else{L&&(p=!0,l=3);const e=a,s=a,c=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={};null===o?o=[e]:o.push(e),a++}var L;if(c===a){const e={keyword:"not",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=s,null!==o&&(s?o.length=s:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.variables){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}if(void 0===n.source){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),a++}}(L=e===a)&&p?(p=!1,l=[l,4]):L&&(p=!0,l=4)}}}if(p)a=s,null!==o&&(s?o.length=s:o=null);else{const e={keyword:"oneOf",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}g=D=e===a}if(!g){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const b=a;let x=!0;const w=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!jx(n.type,"camunda:errorEventDefinition")){const e={};null===o?o=[e]:o.push(e),a++}var I=w===a;if(a=b,null!==o&&(b?o.length=b:o=null),I){const e=a,s=a;let p=!1,l=null;const c=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.errorRef){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty:"errorRef"},message:"should have required property 'errorRef'"};null===o?o=[e]:o.push(e),a++}if(c===a&&(p=!0,l=0),p)a=s,null!==o&&(s?o.length=s:o=null);else{const e={keyword:"oneOf",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires errorRef"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}x=I=e===a}if(!x){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.type){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.type){let e=n.type;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if("property"!==e&&"camunda:property"!==e&&"camunda:inputParameter"!==e&&"camunda:outputParameter"!==e&&"camunda:in"!==e&&"camunda:out"!==e&&"camunda:in:businessKey"!==e&&"camunda:executionListener"!==e&&"camunda:field"!==e&&"camunda:errorEventDefinition"!==e){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues:Fx.items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding/type"&&(0!==e.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding/type")||"/"!==e.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors:n},message:"invalid property.binding type "+JSON.stringify(e)+"; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}}if(void 0!==n.name&&"string"!=typeof n.name){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.event&&"string"!=typeof n.event){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.scriptFormat&&"string"!=typeof n.scriptFormat){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.source&&"string"!=typeof n.source){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.target&&"string"!=typeof n.target){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.expression&&"boolean"!=typeof n.expression){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.variables){let e=n.variables;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if("all"!==e&&"local"!==e){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues:Fx.items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}}if(void 0!==n.sourceExpression&&"string"!=typeof n.sourceExpression){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e={required:{binding:[]}},n={required:{binding:function(){return'missing binding for property "'+JSON.stringify(r)+'"'}}};let s,p;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/scopes/"+i+"/properties/"+r&&n.keyword in e&&0===n.schemaPath.indexOf("#/definitions/properties/allOf/1/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(38))&&(s=Hx[n.keyword],p=e[n.keyword][n.params[s]],p&&(p.push(n),n.emUsed=!0));for(const s in e)for(const l in e[s])if(p=e[s][l],p.length){const e=n[s]&&n[s][l],c={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors:p},message:e?e():Fx.items.errorMessage[s][l]};null===o?o=[c]:o.push(c),a++}const l=[];for(const e of o)e.emUsed||l.push(e);o=l,a=l.length}}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const n={required:{type:[],properties:[]}},r={required:{properties:function(){return"invalid scope "+JSON.stringify(e&&e.type)+", missing properties=[]"}}};let s,p;for(const e of o)"errorMessage"!==e.keyword&&!e.emUsed&&e.dataPath===t+"/scopes/"+i&&e.keyword in n&&0===e.schemaPath.indexOf("#/properties/scopes/items")&&/^\/[^\/]*$/.test(e.schemaPath.slice(25))&&(s=Hx[e.keyword],p=n[e.keyword][e.params[s]],p&&(p.push(e),e.emUsed=!0));for(const e in n)for(const s in n[e])if(p=n[e][s],p.length){const n=r[e]&&r[e][s],l={keyword:"errorMessage",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/errorMessage",params:{errors:p},message:n?n():Lx.properties.scopes.items.errorMessage[e][s]};null===o?o=[l]:o.push(l),a++}const l=[];for(const e of o)e.emUsed||l.push(e);o=l,a=l.length}}}else{const e={keyword:"type",dataPath:t+"/scopes",schemaPath:"#/properties/scopes/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t,schemaPath:"#/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}return qx.errors=o,0===a}function Ux(e,{dataPath:t="",parentData:n,parentDataProperty:i,rootData:r=e}={}){let o=null,a=0;const s=a;let p=!1,l=null;const c=a;qx(e,{dataPath:t,parentData:n,parentDataProperty:i,rootData:r})||(o=null===o?qx.errors:o.concat(qx.errors),a=o.length),(d=c===a)&&(p=!0,l=0);const u=a;if(Array.isArray(e)){const n=e.length;for(let i=0;i<n;i++)qx(e[i],{dataPath:t+"/"+i,parentData:e,parentDataProperty:i,rootData:r})||(o=null===o?qx.errors:o.concat(qx.errors),a=o.length)}else{const e={keyword:"type",dataPath:t,schemaPath:"#/oneOf/1/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}var d;if((d=u===a)&&p?(p=!1,l=[l,1]):d&&(p=!0,l=1),p)a=s,null!==o&&(s?o.length=s:o=null);else{const e={keyword:"oneOf",dataPath:t,schemaPath:"#/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}return Ux.errors=o,0===a}Bx.default=Nx;"a".charCodeAt();var Gx=["number","bigint","boolean","string","object"];function Wx(e){return Gx.indexOf(typeof e)>=0}var Kx=/"|\\/g,Yx=/[\b]/g,Xx=/\f/g,Zx=/\n/g,Jx=/\r/g,Qx=/\t/g;function ew(e){return'"'+(e=e.replace(Kx,"\\$&").replace(Xx,"\\f").replace(Yx,"\\b").replace(Zx,"\\n").replace(Jx,"\\r").replace(Qx,"\\t"))+'"'}var tw=/~/g,nw=/\//g;function iw(e){return e.replace(tw,"~0").replace(nw,"~1")}var rw=function(e,t,n){if(Wx(e)){var i,r,o=0,a="object"==typeof n?n.space:n;switch(typeof a){case"number":var s=a>10?10:a<0?0:Math.floor(a);a=s&&v(s," "),i=s,r=s;break;case"string":a=a.slice(0,10),i=0,r=0;for(var p=0;p<a.length;p++){switch(a[p]){case" ":r++;break;case"\t":r+=4;break;case"\r":r=0;break;case"\n":r=0,o++;break;default:throw new Error("whitespace characters not allowed in JSON")}i++}break;default:a=void 0}var l="",c={},u=0,d=0,h=0,m=n&&n.es6&&"function"==typeof Map;return function e(t,n,i){switch(g(i,"value"),typeof t){case"number":case"bigint":case"boolean":f(""+t);break;case"string":f(ew(t));break;case"object":null===t?f("null"):"function"==typeof t.toJSON?f(ew(t.toJSON())):Array.isArray(t)?r():m?t.constructor.BYTES_PER_ELEMENT?r():t instanceof Map?s():t instanceof Set?s(!0):o():o()}function r(){if(t.length){f("[");for(var r=n+1,o=0;o<t.length;o++){o&&f(","),y(r);var a=Wx(t[o])?t[o]:null;e(a,r,i+"/"+o)}y(n),f("]")}else f("[]")}function o(){var r=Object.keys(t);if(r.length){f("{");for(var o=n+1,s=0;s<r.length;s++){var p=r[s],l=t[p];if(Wx(l)){s&&f(",");var c=i+"/"+iw(p);y(o),g(c,"key"),f(ew(p)),g(c,"keyEnd"),f(":"),a&&f(" "),e(l,o,c)}}y(n),f("}")}else f("{}")}function s(r){if(t.size){f("{");for(var o=n+1,s=!0,p=t.entries(),l=p.next();!l.done;){var c=l.value,u=c[0],d=!!r||c[1];if(Wx(d)){s||f(","),s=!1;var h=i+"/"+iw(u);y(o),g(h,"key"),f(ew(u)),g(h,"keyEnd"),f(":"),a&&f(" "),e(d,o,h)}l=p.next()}y(n),f("}")}else f("{}")}g(i,"valueEnd")}(e,0,""),{json:l,pointers:c}}function f(e){d+=e.length,h+=e.length,l+=e}function y(e){if(a){for(l+="\n"+v(e,a),u++,d=0;e--;)o?(u+=o,d=r):d+=r,h+=i;h+=1}}function g(e,t){c[e]=c[e]||{},c[e][t]={line:u,column:d,pos:h}}function v(e,t){return Array(e+1).join(t)}};function ow(e,t){const n=function(e){return rw(e,null,2).pointers}(e),i=t(e);let r=t.errors;return r&&r.length&&(_(r,aw),r=function(e){return w(e,(function(e){return"if"!==e.keyword}))}(r),_(r,(function(e){!function(e,t){const n=e.dataPath,i=t[n];e.dataPointer=i}(e,n)}))),{valid:i,object:e,errors:r}}function aw(e){const t=e.params;t&&t.errors&&(t.rawErrors=t.errors,delete t.errors)}var sw=mw,pw=mw;const lw={type:"object",allOf:[{required:["name","id","appliesTo","properties"],properties:{name:{$id:"#/name",type:"string",description:"The name of the element template."},id:{$id:"#/id",type:"string",description:"The identifier of the element template."},description:{$id:"#/description",type:"string",description:"The description of the element template."},version:{$id:"#/version",type:"number",description:"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},isDefault:{$id:"#/isDefault",type:"boolean",description:"Indicates whether the element template is a default template."},appliesTo:{$id:"#/appliesTo",type:"array",description:"List of BPMN types the template can be applied to.",default:[],items:{$id:"#/appliesTo/items",type:"string",pattern:"^(.*?:)",errorMessage:{pattern:'invalid item for "appliesTo", should contain namespaced property, example: "bpmn:Task"'},allOf:[{examples:["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}]}},metadata:{$id:"#/metadata",type:"object",description:"Some custom properties for further configuration.",default:{}},entriesVisible:{$id:"#/entriesVisible",type:"boolean",description:"Select whether non-template entries are visible in the properties panel."},groups:{$id:"#/groups",type:"array",description:"Custom fields can be ordered together via groups.",allOf:[{examples:[[{id:"group-1",label:"My Group"}]]}],items:{$id:"#/groups/group",type:"object",default:{},required:["id","label"],errorMessage:{required:{id:'missing id for group "${0#}"',label:'missing label for group "${0#}"'}},properties:{id:{$id:"#/groups/group/id",type:"string",description:"The id of the custom group"},label:{$id:"#/groups/group/label",type:"string",description:"The label of the custom group"}}}}},errorMessage:{required:{name:"missing template name",id:"missing template id",appliesTo:"missing appliesTo=[]",properties:"missing properties=[]"}}}],properties:{properties:{$ref:"#/definitions/properties",$id:"#/properties"}}},cw={allOf:[{type:"array",description:"List of properties of the element template.",allOf:[{examples:[[{label:"Name",type:"String",binding:{type:"property",name:"name"}}]]}],items:{type:"object",default:{},allOf:[{if:{properties:{type:{const:"Dropdown"}},required:["type"]},then:{required:["choices"],errorMessage:'must provide choices=[] with "Dropdown" type'}}],properties:{value:{$id:"#/properties/property/value",type:["string","boolean"],description:"The value of a control field."},description:{$id:"#/properties/property/description",type:"string",description:"The description of a control field."},label:{$id:"#/properties/property/label",type:"string",description:"The label of a control field."},type:{$id:"#/properties/property/type",type:"string",description:"The type of a control field."},editable:{$id:"#/properties/property/editable",type:"boolean",description:"Indicates whether a control field is editable or not."},choices:{$id:"#/properties/property/choices",type:"array",description:"The choices for dropdown fields.",default:[],items:{$id:"#/properties/property/choices/item",type:"object",default:{},properties:{name:{$id:"#/properties/property/choices/item/name",type:"string",description:"The name of a choice."},value:{$id:"#/properties/property/choices/item/value",type:"string",description:"The value of a choice."}},required:["value","name"],errorMessage:'{ name, value } must be specified for "Dropdown" choices'}},constraints:{$id:"#/properties/property/constraints",type:"object",description:"The validation constraints of a control field.",allOf:[{examples:[{notEmpty:!0}]}],properties:{notEmpty:{$id:"#/properties/property/constraints/notEmpty",type:"boolean",description:"The control field must not be empty."},minLength:{$id:"#/properties/property/constraints/minLength",type:"number",description:"The minimal length of a control field value."},maxLength:{$id:"#/properties/property/constraints/maxLength",type:"number",description:"The maximal length for a control field value."},pattern:{$id:"#/properties/property/constraints/pattern",description:"A regular expression pattern for a constraint.",oneOf:[{type:"object",default:{},properties:{value:{$id:"#/properties/property/constraints/pattern/value",type:"string",description:"The regular expression of a pattern."},message:{$id:"#/properties/property/constraints/pattern/message",type:"string",description:"The validation message of a pattern."}}},{type:"string"}]}}},group:{$id:"#/properties/property/group",type:"string",description:"The custom group of a control field."}}}},{$schema:"http://json-schema.org/draft-07/schema",type:"array",description:"List of properties of the element template.",items:{type:"object",default:{},required:["binding"],errorMessage:{required:{binding:'missing binding for property "${0#}"'}},allOf:[{if:{properties:{binding:{properties:{type:{const:"property"}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown","Boolean"],errorMessage:'invalid property type ${0} for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'}}}},{if:{properties:{binding:{properties:{type:{enum:["zeebe:input","zeebe:output","zeebe:taskHeader","zeebe:taskDefinition:type"]}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown"],errorMessage:"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}},{if:{properties:{optional:{const:!0}},required:["optional"]},then:{properties:{binding:{properties:{type:{enum:["zeebe:input","zeebe:output"],errorMessage:"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output }"}},required:["type"]}}}},{if:{properties:{optional:{const:!0}},required:["optional"]},then:{properties:{constraints:{properties:{notEmpty:{const:!1,errorMessage:'optional is not allowed for truthy "notEmpty" constraint'}},required:["notEmpty"]}}}},{if:{properties:{feel:{not:{const:null}}},required:["feel"]},then:{properties:{type:{enum:["String","Text"],errorMessage:'feel is only supported for "String" and "Text" type'}},required:["type"]}}],properties:{binding:{$id:"#/properties/property/binding",type:"object",description:"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.",required:["type"],allOf:[{if:{properties:{type:{enum:["property","zeebe:input"]}},required:["type"]},then:{required:["name"],errorMessage:"property.binding ${0/type} requires name"}},{if:{properties:{type:{const:"zeebe:output"}},required:["type"]},then:{required:["source"],errorMessage:"property.binding ${0/type} requires source"}},{if:{properties:{type:{const:"zeebe:taskHeader"}},required:["type"]},then:{required:["key"],errorMessage:"property.binding ${0/type} requires key"}},{examples:[{type:"property",name:"name"},{type:"zeebe:input",name:"input"},{type:"zeebe:output",source:"output"},{type:"zeebe:taskDefinition:type"},{type:"zeebe:taskHeader",key:"key"}]}],properties:{type:{$id:"#/properties/property/binding/type",type:"string",description:"The type of a property binding.",enum:["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:taskHeader"],errorMessage:"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"},name:{$id:"#/properties/property/binding/name",type:"string",description:"The name of a property binding."},source:{$id:"#/properties/property/binding/source",type:"string",description:"The source value of a property binding (zeebe:output)."},key:{$id:"#/properties/property/binding/key",type:"string",description:"The key value of a property binding (zeebe:taskHeader)."}}},optional:{$id:"#/optional",type:"boolean",description:"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},feel:{$id:"#/properties/property/feel",type:"string",default:null,description:"Indicates whether the property can be a feel expression",enum:[null,"optional","required"]}}}}]},uw=new RegExp("^(.*?:)","u"),dw={required:"missingProperty",dependencies:"property",dependentRequired:"property"};function hw(e,{dataPath:t="",parentData:n,parentDataProperty:i,rootData:r=e}={}){let o=null,a=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.name){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.id){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"id"},message:"should have required property 'id'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.appliesTo){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"appliesTo"},message:"should have required property 'appliesTo'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.properties){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"properties"},message:"should have required property 'properties'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.name&&"string"!=typeof e.name){const e={keyword:"type",dataPath:t+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.id&&"string"!=typeof e.id){const e={keyword:"type",dataPath:t+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.description&&"string"!=typeof e.description){const e={keyword:"type",dataPath:t+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.version&&"number"!=typeof e.version){const e={keyword:"type",dataPath:t+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.isDefault&&"boolean"!=typeof e.isDefault){const e={keyword:"type",dataPath:t+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.appliesTo){let n=e.appliesTo;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];if("string"==typeof e){if(!uw.test(e)){const e={keyword:"pattern",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern:"^(.*?:)"},message:'should match pattern "^(.*?:)"'};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(a>0){const e={pattern:[]},n={};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/appliesTo/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(36))&&(e[n.keyword].push(n),n.emUsed=!0);for(const r in e)if(e[r].length){const s={keyword:"errorMessage",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors:e[r]},message:r in n?n[r]():lw.allOf[0].properties.appliesTo.items.errorMessage[r]};null===o?o=[s]:o.push(s),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}}else{const e={keyword:"type",dataPath:t+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.metadata){let n=e.metadata;if(!n||"object"!=typeof n||Array.isArray(n)){const e={keyword:"type",dataPath:t+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.entriesVisible&&"boolean"!=typeof e.entriesVisible){const e={keyword:"type",dataPath:t+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.groups){let n=e.groups;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.id){const e={keyword:"required",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty:"id"},message:"should have required property 'id'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.label){const e={keyword:"required",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty:"label"},message:"should have required property 'label'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.id&&"string"!=typeof e.id){const e={keyword:"type",dataPath:t+"/groups/"+i+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.label&&"string"!=typeof e.label){const e={keyword:"type",dataPath:t+"/groups/"+i+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e={required:{id:[],label:[]}},n={required:{id:function(){return'missing id for group "'+JSON.stringify(i)+'"'},label:function(){return'missing label for group "'+JSON.stringify(i)+'"'}}};let r,s;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/groups/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/groups/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(33))&&(r=dw[n.keyword],s=e[n.keyword][n.params[r]],s&&(s.push(n),n.emUsed=!0));for(const r in e)for(const p in e[r])if(s=e[r][p],s.length){const e=n[r]&&n[r][p],l={keyword:"errorMessage",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors:s},message:e?e():lw.allOf[0].properties.groups.items.errorMessage[r][p]};null===o?o=[l]:o.push(l),a++}const p=[];for(const e of o)e.emUsed||p.push(e);o=p,a=p.length}}}else{const e={keyword:"type",dataPath:t+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}}if(a>0){const e={required:{name:[],id:[],appliesTo:[],properties:[]}},n={required:{}};let i,r;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0")&&/^\/[^\/]*$/.test(n.schemaPath.slice(9))&&(i=dw[n.keyword],r=e[n.keyword][n.params[i]],r&&(r.push(n),n.emUsed=!0));for(const i in e)for(const s in e[i])if(r=e[i][s],r.length){const e=n[i]&&n[i][s],p={keyword:"errorMessage",dataPath:t,schemaPath:"#/allOf/0/errorMessage",params:{errors:r},message:e?e():lw.allOf[0].errorMessage[i][s]};null===o?o=[p]:o.push(p),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.properties){let n=e.properties;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];const r=a;let l=!0;const c=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.type&&!jx(e.type,"Dropdown")){const e={};null===o?o=[e]:o.push(e),a++}var s=c===a;if(a=r,null!==o&&(r?o.length=r:o=null),s){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.choices){const e={keyword:"required",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty:"choices"},message:"should have required property 'choices'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i&&(0!==n.dataPath.indexOf(t+"/properties/"+i)||"/"!==n.dataPath[t+"/properties/"+i.length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors:e},message:'must provide choices=[] with "Dropdown" type'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}l=s=n===a}if(!l){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.value){let n=e.value;if("string"!=typeof n&&"boolean"!=typeof n){const e={keyword:"type",dataPath:t+"/properties/"+i+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type:cw.allOf[0].items.properties.value.type},message:"should be string,boolean"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.description&&"string"!=typeof e.description){const e={keyword:"type",dataPath:t+"/properties/"+i+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.label&&"string"!=typeof e.label){const e={keyword:"type",dataPath:t+"/properties/"+i+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.type&&"string"!=typeof e.type){const e={keyword:"type",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.editable&&"boolean"!=typeof e.editable){const e={keyword:"type",dataPath:t+"/properties/"+i+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.choices){let n=e.choices;if(Array.isArray(n)){const e=n.length;for(let r=0;r<e;r++){let e=n[r];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.value){const e={keyword:"required",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty:"value"},message:"should have required property 'value'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.name){const e={keyword:"required",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.name&&"string"!=typeof e.name){const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices/"+r+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.value&&"string"!=typeof e.value){const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices/"+r+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/choices/"+r&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/choices/"+r)||"/"!==n.dataPath[t+"/properties/"+i+"/choices/"+r.length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items")||"/"!==n.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors:e},message:'{ name, value } must be specified for "Dropdown" choices'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.constraints){let n=e.constraints;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0!==n.notEmpty&&"boolean"!=typeof n.notEmpty){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.minLength&&"number"!=typeof n.minLength){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.maxLength&&"number"!=typeof n.maxLength){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.pattern){let e=n.pattern;const r=a;let s=!1,l=null;const c=a;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.value&&"string"!=typeof e.value){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.message&&"string"!=typeof e.message){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}(p=c===a)&&(s=!0,l=0);const u=a;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}var p;if((p=u===a)&&s?(s=!1,l=[l,1]):p&&(s=!0,l=1),s)a=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/properties/"+i+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.group&&"string"!=typeof e.group){const e={keyword:"type",dataPath:t+"/properties/"+i+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];const r=a;let s=!0;const p=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type&&!jx(t.type,"property")){const e={};null===o?o=[e]:o.push(e),a++}}var l=p===a;if(a=r,null!==o&&(r?o.length=r:o=null),l){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n&&"Hidden"!==n&&"Dropdown"!==n&&"Boolean"!==n){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues:cw.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/type"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/type")||"/"!==n.dataPath[t+"/properties/"+i+"/type".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors:e},message:"invalid property type "+JSON.stringify(n)+' for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}s=l=n===a}if(!s){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const g=a;let v=!0;const b=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type){let e=t.type;if("zeebe:input"!==e&&"zeebe:output"!==e&&"zeebe:taskHeader"!==e&&"zeebe:taskDefinition:type"!==e){const e={};null===o?o=[e]:o.push(e),a++}}}var c=b===a;if(a=g,null!==o&&(g?o.length=g:o=null),c){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n&&"Hidden"!==n&&"Dropdown"!==n){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues:cw.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const r=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/properties/"+i+"/type"&&(0!==e.dataPath.indexOf(t+"/properties/"+i+"/type")||"/"!==e.dataPath[t+"/properties/"+i+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length]||(r.push(e),e.emUsed=!0);if(r.length){const s={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors:r},message:"invalid property type "+JSON.stringify(n)+" for binding type "+JSON.stringify(e&&e.binding&&e.binding.type)+"; must be any of { String, Text, Hidden, Dropdown }"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}}v=c=n===a}if(!v){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const x=a;let w=!0;const _=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.optional){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.optional&&!jx(e.optional,!0)){const e={};null===o?o=[e]:o.push(e),a++}var u=_===a;if(a=x,null!==o&&(x?o.length=x:o=null),u){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.binding){let n=e.binding;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.type){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.type){let e=n.type;if("zeebe:input"!==e&&"zeebe:output"!==e){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",params:{allowedValues:cw.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/properties/"+i+"/binding/type"&&(0!==e.dataPath.indexOf(t+"/properties/"+i+"/binding/type")||"/"!==e.dataPath[t+"/properties/"+i+"/binding/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",params:{errors:n},message:"optional is not supported for binding type "+JSON.stringify(e)+"; must be any of { zeebe:input, zeebe:output }"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}}}w=u=n===a}if(!w){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const E=a;let P=!0;const O=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.optional){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.optional&&!jx(e.optional,!0)){const e={};null===o?o=[e]:o.push(e),a++}var d=O===a;if(a=E,null!==o&&(E?o.length=E:o=null),d){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.constraints){let n=e.constraints;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.notEmpty){const e={keyword:"required",dataPath:t+"/properties/"+i+"/constraints",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/required",params:{missingProperty:"notEmpty"},message:"should have required property 'notEmpty'"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.notEmpty){if(!jx(n.notEmpty,!1)){const e={keyword:"const",dataPath:t+"/properties/"+i+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",params:{allowedValue:!1},message:"should be equal to constant"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/constraints/notEmpty"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/constraints/notEmpty")||"/"!==n.dataPath[t+"/properties/"+i+"/constraints/notEmpty".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",params:{errors:e},message:'optional is not allowed for truthy "notEmpty" constraint'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}}}}P=d=n===a}if(!P){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const S=a;let k=!0;const C=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.feel){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.feel){const t=a,n=a;if(!jx(e.feel,cw.allOf[1].items.allOf[4].if.properties.feel.not.const)){const e={};null===o?o=[e]:o.push(e),a++}if(n===a){const e={};null===o?o=[e]:o.push(e),a++}else a=t,null!==o&&(t?o.length=t:o=null)}var h=C===a;if(a=S,null!==o&&(S?o.length=S:o=null),h){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={keyword:"required",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/properties/type/enum",params:{allowedValues:cw.allOf[1].items.allOf[4].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/type"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/type")||"/"!==n.dataPath[t+"/properties/"+i+"/type".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/4/then/properties/type")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/allOf/4/then/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/properties/type/errorMessage",params:{errors:e},message:'feel is only supported for "String" and "Text" type'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}}}k=h=n===a}if(!k){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.binding){const e={keyword:"required",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty:"binding"},message:"should have required property 'binding'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.binding){let n=e.binding;const r=a;let s=!0;const p=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type){let e=n.type;if("property"!==e&&"zeebe:input"!==e){const e={};null===o?o=[e]:o.push(e),a++}}var m=p===a;if(a=r,null!==o&&(r?o.length=r:o=null),m){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.name){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires name"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}s=m=e===a}if(!s){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const l=a;let c=!0;const u=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!jx(n.type,"zeebe:output")){const e={};null===o?o=[e]:o.push(e),a++}var f=u===a;if(a=l,null!==o&&(l?o.length=l:o=null),f){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires source"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}c=f=e===a}if(!c){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const d=a;let h=!0;const g=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!jx(n.type,"zeebe:taskHeader")){const e={};null===o?o=[e]:o.push(e),a++}var y=g===a;if(a=d,null!==o&&(d?o.length=d:o=null),y){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.key){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/required",params:{missingProperty:"key"},message:"should have required property 'key'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires key"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}h=y=e===a}if(!h){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.type){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.type){let e=n.type;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if("property"!==e&&"zeebe:taskDefinition:type"!==e&&"zeebe:input"!==e&&"zeebe:output"!==e&&"zeebe:taskHeader"!==e){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues:cw.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/properties/"+i+"/binding/type"&&(0!==e.dataPath.indexOf(t+"/properties/"+i+"/binding/type")||"/"!==e.dataPath[t+"/properties/"+i+"/binding/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors:n},message:"invalid property.binding type "+JSON.stringify(e)+"; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}if(void 0!==n.name&&"string"!=typeof n.name){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.source&&"string"!=typeof n.source){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.key&&"string"!=typeof n.key){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/key",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/key/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.optional&&"boolean"!=typeof e.optional){const e={keyword:"type",dataPath:t+"/properties/"+i+"/optional",schemaPath:"#/definitions/properties/allOf/1/items/properties/optional/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.feel){let n=e.feel;if("string"!=typeof n){const e={keyword:"type",dataPath:t+"/properties/"+i+"/feel",schemaPath:"#/definitions/properties/allOf/1/items/properties/feel/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(null!==n&&"optional"!==n&&"required"!==n){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/feel",schemaPath:"#/definitions/properties/allOf/1/items/properties/feel/enum",params:{allowedValues:cw.allOf[1].items.properties.feel.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e={required:{binding:[]}},n={required:{binding:function(){return'missing binding for property "'+JSON.stringify(i)+'"'}}};let r,s;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/properties/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/definitions/properties/allOf/1/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(38))&&(r=dw[n.keyword],s=e[n.keyword][n.params[r]],s&&(s.push(n),n.emUsed=!0));for(const r in e)for(const p in e[r])if(s=e[r][p],s.length){const e=n[r]&&n[r][p],l={keyword:"errorMessage",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors:s},message:e?e():cw.allOf[1].items.errorMessage[r][p]};null===o?o=[l]:o.push(l),a++}const p=[];for(const e of o)e.emUsed||p.push(e);o=p,a=p.length}}}else{const e={keyword:"type",dataPath:t+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t,schemaPath:"#/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}return hw.errors=o,0===a}function mw(e,{dataPath:t="",parentData:n,parentDataProperty:i,rootData:r=e}={}){let o=null,a=0;const s=a;let p=!1,l=null;const c=a;hw(e,{dataPath:t,parentData:n,parentDataProperty:i,rootData:r})||(o=null===o?hw.errors:o.concat(hw.errors),a=o.length),(d=c===a)&&(p=!0,l=0);const u=a;if(Array.isArray(e)){const n=e.length;for(let i=0;i<n;i++)hw(e[i],{dataPath:t+"/"+i,parentData:e,parentDataProperty:i,rootData:r})||(o=null===o?hw.errors:o.concat(hw.errors),a=o.length)}else{const e={keyword:"type",dataPath:t,schemaPath:"#/oneOf/1/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}var d;if((d=u===a)&&p?(p=!1,l=[l,1]):d&&(p=!0,l=1),p)a=s,null!==o&&(s?o.length=s:o=null);else{const e={keyword:"oneOf",dataPath:t,schemaPath:"#/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}return mw.errors=o,0===a}sw.default=pw;const fw=Gv({selectedElement:null,injector:null,getService:()=>null});function yw(){return(yw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function gw(){return(gw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function vw(){return(vw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function bw(){return(bw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function xw(){return(xw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ww(){return(ww=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _w(){return(_w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Ew=({styles:e={},...t})=>Lb("svg",_w({width:"32",height:"32",xmlns:"http://www.w3.org/2000/svg"},t),Lb("path",{stroke:"#000",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"1.1,4.3",d:"M1.5 30.5L27 5"}),Lb("path",{d:"M31.803.197L26.5 16.107l-1.52-1.52 3.783-11.35-11.35 3.783-1.52-1.52z"}));function Pw(){return(Pw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ow(){return(Ow=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Sw(){return(Sw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function kw(){return(kw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Cw(){return(Cw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Mw(){return(Mw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Tw(){return(Tw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Aw(){return(Aw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Rw(){return(Rw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function zw(){return(zw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Dw(){return(Dw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function jw(){return(jw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Bw(){return(Bw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Nw(){return(Nw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Lw(){return(Lw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Iw(){return(Iw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function $w(){return($w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Fw(){return(Fw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Vw(){return(Vw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Hw(){return(Hw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function qw(){return(qw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Uw(){return(Uw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Gw(){return(Gw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ww(){return(Ww=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Kw=({styles:e={},...t})=>Lb("svg",Ww({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.111.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.454 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.215-2.282-2.022-5.3-3.217-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.082 11.082 0 0116 5.021zm-3.956 3.946l-3.096 3.097 3.985 3.985-3.913 3.913 3.047 3.048 3.913-3.913 3.988 3.987 3.097-3.096L19.076 16l3.914-3.913-3.048-3.048-3.913 3.913-3.986-3.985zm-.002 1.222l3.988 3.987 3.913-3.913 1.826 1.826-3.913 3.913 3.985 3.986-1.873 1.873-3.985-3.985-3.913 3.913-1.827-1.827 3.914-3.913-3.988-3.987 1.873-1.873z"}));function Yw(){return(Yw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Xw=({styles:e={},...t})=>Lb("svg",Yw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm-.56 5.772l-7.408 5.231 7.409 5.234v-5.057c2.385 1.687 4.771 3.371 7.157 5.057V10.793l-7.157 5.055v-5.055zm-.865 1.665v7.125l-5.048-3.562 5.048-3.563zm7.161 0v7.132l-5.048-3.566 5.048-3.566z"}));function Zw(){return(Zw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Jw=({styles:e={},...t})=>Lb("svg",Zw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.97.04h-.127C8.713-.018 2.003 5.334.437 12.286c-1.51 6.123.98 13.005 6.136 16.665 5.125 3.788 12.546 4.105 17.912.623 5.272-3.276 8.33-9.766 7.325-15.916-.904-6.241-5.79-11.7-11.95-13.143A16.082 16.082 0 0015.97.04zm-.181 1.724c.115 0 .23 0 .347.003 6.625-.066 12.823 5.149 13.89 11.69 1.13 5.91-1.908 12.349-7.262 15.138-5.473 3.013-12.866 1.884-17.116-2.726C1.291 21.372.444 13.914 3.802 8.602c2.493-4.112 7.169-6.819 11.987-6.838zm.283 1.554c-.117 0-.234.002-.351.005-6.1 0-11.691 5.049-12.346 11.114-.78 5.684 2.795 11.612 8.218 13.52 5.139 1.943 11.416.101 14.624-4.38 3.461-4.583 3.262-11.538-.596-15.831-2.36-2.747-5.924-4.423-9.549-4.428zm-.078 1.695c.078 0 .156 0 .234.003 5.4 0 10.321 4.556 10.734 9.942.563 5.13-2.958 10.364-7.971 11.678-4.832 1.41-10.457-.935-12.746-5.446-2.463-4.559-1.2-10.795 3.014-13.883a11.072 11.072 0 016.735-2.294zm-5.352 4.266V22.761h10.716V9.279H10.642zm.863.866h8.987v11.75h-8.987v-11.75zm.927 1.323v.862h7.133v-.862h-7.133zm0 2.602v.866h7.133v-.866h-7.133zm0 3.008v.862h7.133v-.862h-7.133zm0 2.717v.863h7.133v-.863h-7.133z"}));function Qw(){return(Qw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var e_=({styles:e={},...t})=>Lb("svg",Qw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm6.132 4.194c-1.21 2.455-2.422 4.91-3.633 7.364l-4.516-5.875-4.103 12.133 4.6-5.912c1.58 1.81 3.162 3.619 4.744 5.429L22.13 9.215zM14.383 13.1l4.295 5.445 1.073-2.387-1.027 4.131-4.384-5.157-1.778 2.75 1.821-4.782z"}));function t_(){return(t_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var n_=({styles:e={},...t})=>Lb("svg",t_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.927c-1.672 4.654-2.734 9.502-4.406 14.155 1.534-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.496-4.71-2.91-9.446-4.406-14.156zm.032 2.929c.822 2.586 1.598 5.186 2.42 7.771l-2.42-2.612c-.682.597-2.452 2.884-2.338 2.388.87-2.487 1.447-5.067 2.338-7.547z"}));function i_(){return(i_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var r_=({styles:e={},...t})=>Lb("svg",i_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912zm.974 2.584l3.61 4.295-3.61 4.294v-1.933h-7.88v-4.688h7.88v-1.968z"}));function o_(){return(o_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var a_=({styles:e={},...t})=>Lb("svg",o_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm-7.245 5.475v11.06h14.502v-11.06H8.754zm3.222 1.728h8.057c-1.427.878-2.854 2.806-4.281 3.016l-3.776-3.016zm9.554 1.017v6.587H10.48V13.24l5.524 4.414 5.526-4.414z"}));function s_(){return(s_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var p_=({styles:e={},...t})=>Lb("svg",s_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.073l-7.62 5.531 2.91 8.95h9.42l2.91-8.95-7.62-5.53zm0 1.067l6.604 4.794-2.523 7.757h-8.162l-2.522-7.757 6.603-4.794z"}));function l_(){return(l_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var c_=({styles:e={},...t})=>Lb("svg",l_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M10.638 9.563V23.056h10.724V9.563H10.638zm.863.866h8.995v11.76H11.5V10.43zm.928 1.324v.862h7.139v-.862h-7.14zm0 2.605v.866h7.139v-.866h-7.14zm0 3.01v.863h7.139v-.863h-7.14zm0 2.72v.863h7.139v-.864h-7.14zM15.999.308h-.004l-.188.001h-.011l-.188.004h-.011L15.41.32h-.011l-.187.008h-.005L15.2.33l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.37h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003.178-.001h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 1.023l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.62h-.005l-.005-.002-.182-.035h-.006L18.938.58l-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.43 17.783.41l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.37h-.005L17.38.368l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.328h-.011L16.6.32h-.011l-.187-.006h-.011L16.204.31h-.011L16.005.31H16zm9.016 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zm-18.381.344l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003L4.682 5l-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.595h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01L16.32 3.6h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 13.135l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187V16.7l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zm-30.21.572l-.161.001-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158-.074-.155-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178-.001-.177v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057-.159-.028zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14v-.005l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 23.019l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 27.127l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z"}));function u_(){return(u_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var d_=({styles:e={},...t})=>Lb("svg",u_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.012 9.222c-1.673 4.657-2.735 9.508-4.409 14.164 1.536-1.526 2.874-3.236 4.41-4.762l4.408 4.762c-1.497-4.712-2.911-9.451-4.409-14.164zm.032 2.93c.823 2.588 1.599 5.19 2.421 7.777l-2.42-2.614c-.683.598-2.454 2.886-2.34 2.39.871-2.489 1.448-5.07 2.34-7.552zM16.012.312c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"}));function h_(){return(h_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var m_=({styles:e={},...t})=>Lb("svg",h_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M8.742 10.464v11.072h14.516V10.464H8.742zm3.224 1.73h8.066a69569 69569 0 00-4.034 3.22l-4.032-3.22zm9.565 1.018v6.594H10.469v-6.593L16 17.63l5.532-4.419zM16 0h-.005l-.188.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06h-.005L17.38.06l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0H16zm9.015 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zM6.634 3.28l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.286h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 12.826l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zM.938 15L.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 22.71l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 26.818l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z"}));function f_(){return(f_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var y_=({styles:e={},...t})=>Lb("svg",f_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M23.637 13.902l-7.625-5.535-7.624 5.535 2.912 8.956h9.425l2.912-8.956zm-1.017.33l-2.524 7.762H11.93l-2.524-7.762 6.607-4.796 6.608 4.796zM16.012.311c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"}));function g_(){return(g_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var v_=({styles:e={},...t})=>Lb("svg",g_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M13.51 9.081v4.428H9.08v4.982h4.428v4.428h4.982V18.49h4.428v-4.982H18.49V9.081h-4.982zm.83.83h3.32v4.428h4.429v3.322H17.66v4.428h-3.32v-4.454H9.91v-3.296h4.428V9.911zM16 0h-.005l-.188.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06h-.005L17.38.06l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0H16zm9.015 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zM6.634 3.28l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.286h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 12.826l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zM.938 15L.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 22.71l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 26.818l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z",opacity:".98"}));function b_(){return(b_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var x_=({styles:e={},...t})=>Lb("svg",b_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.012 8.816L9.21 21.026h13.606l-6.803-12.21zm0 1.776l5.332 9.57H10.681l5.331-9.57zm0-10.281c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"}));function w_(){return(w_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var __=({styles:e={},...t})=>Lb("svg",w_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.998 8.406c-3.018-.041-5.92 1.926-7.031 4.727-1.138 2.695-.51 6.012 1.537 8.103 1.99 2.141 5.268 2.93 8.014 1.927 2.878-.98 4.992-3.827 5.068-6.87.153-2.957-1.624-5.88-4.3-7.137a7.552 7.552 0 00-3.288-.75zm0 1.384c2.759-.052 5.373 1.973 6.015 4.655.704 2.578-.482 5.517-2.791 6.867-2.358 1.48-5.682 1.086-7.618-.918-2.043-1.971-2.407-5.381-.84-7.745 1.11-1.763 3.15-2.88 5.234-2.86zm1.962 1.765l-2.074 3.762c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.182l1.993-3.615c-.252-.14-.505-.278-.757-.417zm-1.965-8.268h-.158l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.048.12.047.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.138-.107-.121-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.005-.002-.006-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.141-.031-.006-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.001-.143-.026-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.01l-.148-.001h-.01zM10.357 4.66l-.156.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.004.003-.005.004-.11.096-.004.004-.004.003-.109.098-.004.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.003.004-.004.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.005-.086.117-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.029.15-.058.138-.085.119-.108.082-.106.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022-.16.008zm13.91 2.116l-.158.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.026.159.054.152.082.139.086.102.09.09.094.098.093.099.092.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.115.068.117.067.115.065.118.064.117.062.118.061.12.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.049.127.046.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.086.137.109.119.129.096.145.07.155.043.16.013.161-.017.155-.046.143-.074.126-.1.106-.122.082-.138.055-.152.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.059-.132-.002-.005-.002-.004-.061-.132-.003-.004-.002-.005-.062-.13-.003-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.073-.125-.003-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.08-.12-.004-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.117-.003-.005-.003-.004-.088-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.093-.113-.004-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.109-.004-.004-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023-.16.008zM4.288 12.828l-.158.032-.15.06-.135.088-.117.11-.095.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.006-.019.144v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.006l-.001.005-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.006.033.14v.006l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.103.102-.126.076-.142.049-.153.02-.16-.01-.161-.032-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.132-.024-.134-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.132.01-.139.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029-.16.002zm23.286 4.202l-.156.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.134-.026.132-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.062.119-.063.116-.067.119-.066.116-.068.115-.07.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.108-.085.109-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.082-.12.003-.005.002-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.004.003-.005.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.003-.005.002-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.002-.006.04-.138.002-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.141.001-.006.001-.005.031-.141.002-.006v-.005l.03-.142.001-.005.001-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022-.16.007zM6.681 22.734l-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.11.04.047.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.106.004.003.004.004.103.105.004.004.004.004.105.103.004.004.003.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.005.004.004.003.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.003.126.072.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.068.005.002.004.002.13.066.004.003.005.002.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.003.133.056.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.161-.015.155-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.158-.061-.15-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.079-.11-.08-.109-.082-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006-.16.024zm15.063 2.691l-.156.044-.12.057-.06.034-.12.066-.116.064-.119.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.036-.13.035-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021h.005l.006-.002.143-.022h.006l.005-.002.143-.024h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.036.005-.002.005-.001.14-.038.005-.001.005-.002.14-.04h.005l.005-.002.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.056.005-.003.005-.002.132-.057.005-.002.005-.003.132-.059.005-.002.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.002.005-.003.129-.066.004-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.002.065-.038.132-.093.112-.115.089-.135.062-.149.034-.157.004-.161-.027-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.045-.16-.017-.161.014zM15.994 0l-.187.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.01L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.184.027h-.006l-.005.001-.184.029h-.005l-.005.001-.183.031-.005.001-.006.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.177.027.17.03.173.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.088-.135.06-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.144-.073-.129-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.005-.001-.184-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06 17.385.06h-.005l-.187-.015h-.005l-.005-.001-.187-.013h-.01L16.799.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0h-.01zm8.86 2.939l-.157.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.127.125.123.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.085.152.083.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.161-.016.155-.046.143-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.002-.005-.003-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.002-.005-.102-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.004-.003-.005-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.003-.004-.004-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.003-.004-.133-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027-.16.004zm-18.381.348l-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.005-.003.004-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.005-.003.004-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023-.161.008zm24.514 11.15l-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.024.175-.027.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.161-.061.164-.063.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.078.158-.081.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.12.13.096.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.004.002-.005.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.17.002-.006.001-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.18.001-.006.001-.005.038-.182v-.005l.002-.005.035-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02-.161.009zM.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.005.074.169.002.005.002.004.076.169.002.005.002.004.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.156-.07-.162-.068-.16-.067-.164-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15 .777 15zM6.17 26.842l-.152.052-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.005.003.004.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.003.162.088.005.002.004.002.164.087.005.002.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.169.076.004.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.061.005.002.005.001.175.06.005.001.005.002.176.057.005.001.005.002.177.055.005.001.005.002.177.052.005.002.005.001.178.051.005.001.005.002.178.048.006.002h.005l.179.047.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.169-.044-.17-.045-.166-.048-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006-.16.024zm19.214.073l-.156.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.157.073-.158.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.048-.17.045-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.008.133-.017.115-.024h.005l.005-.002.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002h.005l.18-.047.004-.001.005-.002.179-.048.005-.002.005-.001.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.005-.002.004-.002.172-.068.005-.001.005-.002.171-.07.005-.002.005-.002.17-.072.005-.002.005-.002.169-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.002.167-.08.004-.003.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.002.163-.087.005-.002.005-.002.162-.088.005-.003.005-.003.161-.09.005-.002.004-.003.16-.092.005-.002.005-.003.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.002.155-.102.005-.003.004-.003.154-.104.004-.003.005-.003.152-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.111.004-.004.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02-.16.009z"}));function E_(){return(E_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var P_=({styles:e={},...t})=>Lb("svg",E_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.157.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.408 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.215-2.282-2.022-5.3-3.217-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.082 11.082 0 0116 4.975zm-2.15 3.281v5.534H8.213v4.38h5.636v5.534h4.31V18.17h5.639v-4.38h-5.64V8.256h-4.31zm.865.865h2.583v5.534h5.635v2.65h-5.635v5.533h-2.583v-5.534h-5.64v-2.649h5.64V9.121z"}));function O_(){return(O_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var S_=({styles:e={},...t})=>Lb("svg",O_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.521L9.206 20.745h13.598L16.005 8.542zm0 1.775l5.329 9.564H10.677l5.328-9.564z"}));function k_(){return(k_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var C_=({styles:e={},...t})=>Lb("svg",k_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.97.04h-.127C8.713-.018 2.003 5.334.437 12.286c-1.51 6.123.98 13.005 6.136 16.665 5.125 3.788 12.546 4.105 17.912.623 5.272-3.276 8.33-9.766 7.325-15.916-.904-6.241-5.79-11.7-11.95-13.143A16.082 16.082 0 0015.97.04zm-.181 1.724c.115 0 .23 0 .347.003 6.625-.066 12.823 5.149 13.89 11.69 1.13 5.91-1.908 12.349-7.262 15.138-5.473 3.013-12.866 1.884-17.116-2.726C1.291 21.372.444 13.914 3.802 8.602c2.493-4.112 7.169-6.819 11.987-6.838zm.283 1.554c-.117 0-.234.002-.351.005-6.1 0-11.691 5.049-12.346 11.114-.78 5.684 2.795 11.612 8.218 13.52 5.139 1.943 11.416.101 14.624-4.38 3.461-4.583 3.262-11.538-.596-15.831-2.36-2.747-5.924-4.423-9.549-4.428zm-.078 1.695c.078 0 .156 0 .234.003 5.4 0 10.321 4.556 10.734 9.942.563 5.13-2.958 10.364-7.971 11.678-4.832 1.41-10.457-.935-12.746-5.446-2.463-4.559-1.2-10.795 3.014-13.883a11.072 11.072 0 016.735-2.294zm-.137 3.42c-2.965.02-5.792 1.968-6.884 4.722-1.137 2.693-.509 6.007 1.536 8.096 1.988 2.14 5.263 2.929 8.007 1.926 2.875-.98 4.987-3.824 5.063-6.865.154-2.954-1.622-5.875-4.295-7.13a7.545 7.545 0 00-3.427-.75zm.27 1.381c2.708.013 5.249 2.014 5.88 4.652.704 2.576-.481 5.512-2.788 6.862-2.356 1.478-5.677 1.084-7.611-.918-2.042-1.97-2.405-5.376-.839-7.738 1.11-1.762 3.146-2.877 5.229-2.857h.13zm1.831 1.764l-2.072 3.76c-.64.068-.792 1.039-.202 1.298.39.27.696-.18 1.051-.164h3.168v-.864h-3.18l1.992-3.612-.757-.418z"}));function M_(){return(M_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var T_=({styles:e={},...t})=>Lb("svg",M_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.848.001C8.113-.093.931 6.281.125 13.983c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.207C29.105 4.938 23.55.48 17.367.06A16.448 16.448 0 0015.848 0v.001zm.293 1.727c7.113-.099 13.662 5.97 14.077 13.08.56 6.299-3.516 12.735-9.582 14.679-5.798 2.004-12.806-.12-16.283-5.237C.717 19.159.874 11.638 5.016 6.876 7.722 3.638 11.902 1.63 16.14 1.728zm-.415 1.555C9.157 3.258 3.256 9.156 3.278 15.729c-.16 5.965 4.365 11.725 10.293 12.737 5.409 1.065 11.37-1.744 13.775-6.753 2.534-4.986 1.386-11.627-2.953-15.251-2.364-2.077-5.512-3.27-8.667-3.18zm.507 1.692c5.82-.026 11.013 5.318 10.79 11.143-.024 5.3-4.313 10.267-9.636 10.803-5.075.667-10.426-2.588-11.885-7.553-1.535-4.744.494-10.46 4.925-12.885a11.072 11.072 0 015.806-1.508z"}));function A_(){return(A_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function R_(){return(R_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function z_(){return(z_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function D_(){return(D_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function j_(){return(j_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function B_(){return(B_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function N_(){return(N_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function L_(){return(L_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function I_(){return(I_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function $_(){return($_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function F_(){return(F_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function V_(){return(V_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function H_(){return(H_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function q_(){return(q_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function U_(){return(U_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function G_(){return(G_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function W_(){return(W_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function K_(){return(K_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Y_(){return(Y_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function X_(){return(X_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Z_(){return(Z_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function J_(){return(J_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Q_(){return(Q_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function eE(){return(eE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function tE(){return(tE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function nE(){return(nE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function iE(){return(iE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function rE(){return(rE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function oE(){return(oE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function aE(){return(aE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function sE(){return(sE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function pE(){return(pE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function lE(){return(lE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var cE=({styles:e={},...t})=>Lb("svg",lE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M5.637 3A5.644 5.644 0 000 8.637v15.417a5.644 5.644 0 005.637 5.637h20.726A5.644 5.644 0 0032 24.054V8.637A5.644 5.644 0 0026.363 3H5.637zm0 1.778h20.726a3.83 3.83 0 013.859 3.859v15.417a3.83 3.83 0 01-3.859 3.858h-4.201V16.695H9.838v11.217H5.637a3.83 3.83 0 01-3.859-3.858V8.637a3.83 3.83 0 013.859-3.859zm5.33 13.046h10.066v10.065H10.967V17.824zm4.189 1.431V22.06H12.35v1.689h2.804V26.554h1.69V23.749h2.804V22.06h-2.804V19.255h-1.69z"}));function uE(){return(uE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var dE=({styles:e={},...t})=>Lb("svg",uE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M5.636 3A5.642 5.642 0 000 8.636v15.418a5.643 5.643 0 005.636 5.636h20.728A5.643 5.643 0 0032 24.054V8.636A5.642 5.642 0 0026.364 3H5.636zm0 1.778h20.728a3.83 3.83 0 013.858 3.858v15.418a3.83 3.83 0 01-3.858 3.858h-4.203V16.723H9.84v11.189H5.636a3.83 3.83 0 01-3.858-3.858V8.636a3.83 3.83 0 013.858-3.858zm5.331 13.074h10.066v10.06H10.967v-10.06zm1.336 3.996v1.711h7.394v-1.71h-7.394z"}));function hE(){return(hE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function mE(){return(mE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function fE(){return(fE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function yE(){return(yE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var gE={Association:({styles:e={},...t})=>Lb("svg",yw({width:"32",height:"32",xmlns:"http://www.w3.org/2000/svg"},t),Lb("path",{stroke:"#000",strokeWidth:"2",fill:"none",strokeDasharray:"3.3,6",strokeLinecap:"square",d:"M1.5 30.5l29-29"})),BusinessRuleTask:({styles:e={},...t})=>Lb("svg",gw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zM5.296 7.398v12.665h16.87V7.398H5.296zm.718 4.386h15.433v3.44H9.985v-3.432h-.719v3.431H6.014v-3.44zm0 4.158h3.252v3.403H6.014v-3.403zm3.97 0h11.463v3.403H9.985v-3.403z"}),Lb("path",{d:"M6.079 8.209v3.587H21.44V8.209z"})),CallActivity:({styles:e={},...t})=>Lb("svg",vw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M24.978 3c3.761 0 6.89 2.979 7.018 6.695l.004.238V22.4c0 3.747-3.05 6.804-6.783 6.93l-.24.003H7.023c-3.761 0-6.89-2.978-7.018-6.695L0 22.4V9.933C0 6.187 3.05 3.13 6.783 3.004L7.023 3h17.955zm0 3.667H7.022c-1.842 0-3.255 1.344-3.35 3.079l-.005.187V22.4c0 1.761 1.35 3.167 3.16 3.262l.195.005L10 25.666V15h12v10.666h2.978c1.842 0 3.255-1.344 3.35-3.079l.005-.187V9.933c0-1.761-1.35-3.166-3.16-3.261l-.195-.005zm-3.732 9.087H10.754v9.912h10.491v-9.912zm-4.475 1.817v2.658h2.658v1.542H16.77v2.658H15.23V21.77H12.57V20.23h2.658V17.57h1.542z"})),Collaboration:({styles:e={},...t})=>Lb("svg",bw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("g",{fillRule:"evenodd"},Lb("path",{fillRule:"nonzero",d:"M0 0v8.62h32V0H0zm1.655 7.054v-5.37h28.62v5.37H1.656zM0 23.38V32h32v-8.62H0zm1.655 7.054v-5.37h28.62v5.37H1.656z"}),Lb("path",{d:"M24 8l4 7h-8l4-7zm0 2l-2.28 4h4.56L24 10zM23.5 21h1v3h-1zM23.5 15h1v3h-1zM8 24l-4-7h8l-4 7zm0-2l2.28-4H5.72L8 22zM7.5 8h1v3h-1zM7.5 14h1v3h-1z"}))),ConditionalFlow:({styles:e={},...t})=>Lb("svg",xw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M32 .041S20.42 5.95 14.537 8.713c1.26 1.15 2.432 2.392 3.648 3.588-5.703 5.78-3.15 3.303-8.087 8.316l-8.472 1.377L0 32l10.006-1.626.098-.598 1.279-7.873c4.975-5.052 2.403-2.555 8.118-8.346 1.218 1.214 2.43 2.435 3.648 3.648C26.29 11.018 32 .041 32 .041zM9.603 22.397L8.54 28.91 2.03 29.97l1.061-6.515 6.512-1.058z"})),SequenceFlow:({styles:e={},...t})=>Lb("svg",ww({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M32 .06S20.33 6.014 14.403 8.798c1.27 1.16 2.451 2.41 3.676 3.616L0 30.734 1.325 32l18.08-18.32c1.227 1.223 2.448 2.453 3.676 3.676C26.247 11.12 32 .06 32 .06z"})),DataInput:({styles:e={},...t})=>Lb("svg",Pw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M20.833 0H3.488v32H28V7.36L20.833 0zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422zm1.818.493l5.06 5.196h-5.06V2.311zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354zm.808 1.868l3.711 3.487-3.71 3.487V9.329H7.888V7.723h4.283V5.039z"})),DataInputAssociation:Ew,DataOutput:({styles:e={},...t})=>Lb("svg",Sw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M20.833 0H3.488v32H28V7.36L20.833 0zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422zm1.818.493l5.06 5.196h-5.06V2.311zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354z"})),DataOutputAssociation:Ew,DataObjectReference:({styles:e={},...t})=>Lb("svg",Ow({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M21.345 0H4v32h24.512V7.36L21.345 0zM19.24 1.818v7.507h7.454v20.857H5.818V1.818H19.24zm1.818.493l5.06 5.196h-5.06V2.311z"})),DataStoreReference:({styles:e={},...t})=>Lb("svg",kw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.008 1c-3.712 0-7.417.306-10.319.939-1.45.316-2.7.71-3.68 1.226C1.065 3.662.297 4.304.061 5.23a.823.823 0 00-.035.15L0 5.502l.017.084c-.012 7.41 0 14.46 0 22.08l.017.082c.203.985.995 1.656 1.975 2.172.98.517 2.23.91 3.68 1.226 2.902.633 6.607.94 10.319.94 3.711 0 7.416-.307 10.318-.94 1.451-.316 2.701-.71 3.68-1.226.98-.516 1.772-1.187 1.975-2.172l.017-.082V5.541a.825.825 0 000-.106v-.016l-.002-.013a.823.823 0 00-.046-.197c-.244-.916-1.007-1.55-1.943-2.044-.98-.516-2.23-.91-3.68-1.226C23.423 1.306 19.718 1 16.006 1zm0 1.646c3.62 0 7.245.308 9.968.901 1.36.297 2.497.67 3.263 1.074.612.323.932.643 1.063.882-.131.24-.451.56-1.063.882-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.901-1.361-.297-2.497-.67-3.264-1.074-.611-.322-.931-.642-1.062-.882.13-.24.451-.56 1.062-.882.767-.403 1.903-.777 3.264-1.074 2.723-.593 6.348-.9 9.968-.9zM1.664 7.647c.112.067.227.132.345.194.98.517 2.23.91 3.68 1.226 2.902.633 6.607.94 10.319.94 3.711 0 7.416-.307 10.318-.94 1.451-.316 2.701-.71 3.68-1.226.119-.062.234-.127.346-.194v1.93c-.08.245-.398.619-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.9-1.361-.298-2.497-.671-3.264-1.075-.714-.376-1.032-.75-1.112-.995v-1.93zm0 4.187c.112.067.227.132.345.195.98.516 2.23.91 3.68 1.226 2.902.632 6.607.938 10.319.938 3.711 0 7.416-.306 10.318-.938 1.451-.317 2.701-.71 3.68-1.226.119-.063.234-.128.346-.195v1.93c-.08.245-.398.619-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.9-1.361-.298-2.497-.67-3.264-1.075-.714-.376-1.032-.75-1.112-.995v-1.93zm0 4.188c.112.067.227.131.345.194.98.516 2.23.91 3.68 1.226 2.902.633 6.607.939 10.319.939 3.711 0 7.416-.306 10.318-.94 1.451-.316 2.701-.709 3.68-1.225.119-.063.234-.127.346-.194V27.47c-.08.245-.398.618-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.9-9.968.9-3.62 0-7.245-.306-9.968-.9-1.361-.297-2.497-.67-3.264-1.074-.714-.377-1.032-.75-1.112-.995V16.022z"})),DefaultFlow:({styles:e={},...t})=>Lb("svg",Cw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M32 .06S20.33 6.014 14.403 8.798c1.27 1.16 2.451 2.41 3.676 3.616L6.84 23.804H.046v1.755h5.063L0 30.735 1.325 32l6.357-6.441h7.145v-1.756H9.414l9.99-10.123c1.228 1.223 2.45 2.453 3.677 3.676C26.247 11.12 32 .06 32 .06z"})),CancelEndEvent:({styles:e={},...t})=>Lb("svg",Mw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-3.955 3.918L8.94 12.072l3.985 3.985-3.913 3.913 3.048 3.047 3.913-3.913 3.987 3.987 3.096-3.096-3.987-3.987 3.913-3.913-3.047-3.048-3.913 3.913-3.985-3.985z"})),CompensateEndEvent:({styles:e={},...t})=>Lb("svg",Tw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-.56 5.744l-7.407 5.23 7.408 5.234v-5.057c2.384 1.687 4.771 3.371 7.157 5.057V10.801l-7.157 5.054v-5.054z"})),ErrorEndEvent:({styles:e={},...t})=>Lb("svg",Aw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm6.132 4.166l-3.633 7.363-4.516-5.874-4.102 12.131 4.599-5.91 4.743 5.427 2.909-13.137z"})),EscalationEndEvent:({styles:e={},...t})=>Lb("svg",Rw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 3.9c-1.672 4.653-2.733 9.5-4.406 14.153 1.535-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.497-4.71-2.91-9.445-4.406-14.155z"})),LinkEndEvent:({styles:e={},...t})=>Lb("svg",zw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.532 18.532 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm1.78 4.065v3.555H9.779v6.713h7.994v3.554l5.828-6.91-5.828-6.912z"})),MessageEndEvent:({styles:e={},...t})=>Lb("svg",Dw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.532 18.532 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-5.91 5.448l6.041 4.9 6.04-4.9H10.084zm-1.34 1.137v9.92h14.513v-9.718l-7.132 5.786-7.381-5.988z"})),MultipleEndEvent:({styles:e={},...t})=>Lb("svg",jw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.529 18.529 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.011 3.039l-7.619 5.53 2.91 8.95h9.418l2.91-8.95-7.619-5.53z"})),EndEvent:({styles:e={},...t})=>Lb("svg",Bw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.84.042C8.654-.01 1.913 5.437.4 12.454-1.057 18.62 1.554 25.495 6.784 29.09c5.076 3.636 12.31 3.92 17.59.544 5.309-3.251 8.435-9.744 7.445-15.921C30.91 7.307 25.795 1.738 19.442.422a16.064 16.064 0 00-3.602-.38zm.382 5.01c5.28-.017 10.13 4.353 10.669 9.61.687 5.025-2.552 10.281-7.423 11.792-4.754 1.617-10.486-.447-12.962-4.856-2.74-4.575-1.574-11.094 2.768-14.27a11.05 11.05 0 016.948-2.276z"})),SignalEndEvent:({styles:e={},...t})=>Lb("svg",Nw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 3.492c-2.261 4.07-4.532 8.136-6.797 12.204h13.595L15.999 8.55z"})),TerminateEndEvent:({styles:e={},...t})=>Lb("svg",Lw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 2.859c-5.264-.2-9.495 5.551-7.755 10.516 1.366 5.085 8.108 7.436 12.339 4.301 4.455-2.807 4.708-9.943.462-13.058A8.128 8.128 0 0016 7.915z"})),EventSubProcess:({styles:e={},...t})=>Lb("svg",Iw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M7.295 4.78h1.779V3.003h-1.78V4.78zm3.558 0h1.779V3.003h-1.78V4.78zm3.557 0h1.78V3.003h-1.78V4.78zm3.558 0h1.78V3.003h-1.78V4.78zm3.558 0h1.779V3.003h-1.779V4.78zm3.558 0c.55.014 1.106-.034 1.654.045l.245-1.762c-.629-.096-1.266-.05-1.9-.061V4.78zM5.732 3.004a5.933 5.933 0 00-.915.093c.111.582.226 1.164.315 1.75.358-.101.947.098.746-.483-.096-.382.164-1.208-.146-1.36zm22.372 2.281c.427.234.812.547 1.13.915.42-.4 1.002-.777 1.33-1.18a5.863 5.863 0 00-1.593-1.289l-.867 1.554zm-25.27-1.44c-.587.354-1.11.811-1.539 1.345.47.333.96.86 1.417 1.077.299-.362.66-.673 1.065-.913-.328-.493-.55-1.055-.944-1.509zM30.515 7.26c-.563.046-.557.342-.378.784.154.25-.097.862.25.85.525-.023 1.14.043 1.612-.032a5.891 5.891 0 00-.362-2.027l-1.122.425zM.268 7.114A6.042 6.042 0 000 9.052h1.78c-.013-.5.047-1.003.208-1.478L.296 7.027l-.026.079-.002.008zM30.22 12.45H32v-1.779h-1.779v1.779zm-30.22.16h1.78v-1.779H0v1.78zm30.22 3.398H32v-1.78h-1.779v1.78zm-30.22.16h1.78v-1.779H0v1.779zm30.22 3.398H32v-1.78h-1.779v1.78zm-30.22.16h1.78v-1.78H0v1.78zm30.22 3.397H32v-1.779h-1.779v1.78zm-30.22.16h1.78v-1.778H0v1.778zm30.137 1.47a4.059 4.059 0 01-.522 1.32c.506.283 1.046.715 1.53.908a5.836 5.836 0 00.744-1.918c-.576-.094-1.209-.264-1.752-.31zm-29.984.51c.157.676.435 1.325.82 1.904l1.486-.977a4.065 4.065 0 01-.577-1.347l-1.73.42zm28.427 1.943c-.371.277-.79.49-1.234.627l.548 1.693a5.84 5.84 0 001.835-.96l-1.082-1.412-.066.05-.001.002zm-26.164 1.47c.567.413 1.21.722 1.886.907.14-.569.343-1.175.444-1.722a4.062 4.062 0 01-1.283-.624l-1.047 1.438zm3.88 1.119h1.779v-1.78h-1.78v1.78zm3.55 0h1.787v-1.78H9.846v1.78zm3.565 0h1.78v-1.78h-1.78v1.78zm3.558 0h1.78v-1.78h-1.78v1.78zm3.451 0h1.743v-1.78h-1.743v1.78zm3.665 0h1.779v-1.78h-1.78v1.78zm-1.922-.545V16.776H9.846V29.25h12.318zM10.967 17.905h10.068V27.97H10.967V17.905zm1.336 3.998v1.711h7.396v-1.711h-7.396z",opacity:".97"})),ComplexGateway:({styles:e={},...t})=>Lb("svg",$w({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm-.327 6.79v.007l-.145.027-.118.08-.083.123-.028.145v4.954L11.793 10.8l-.125-.08-.14-.029-.144.027-.122.082-.46.46-.085.125-.026.142.028.14.08.125 3.505 3.505H9.347l-.001-.002-.145.032-.118.08-.083.122-.028.146v.652l.029.147.082.119.12.08.144.032h4.956L10.8 20.207v-.001l-.084.124-.026.142.028.14.08.124.46.461.126.082.14.029.143-.027.124-.084L15.3 17.69v4.964-.001l.028.147.082.12.12.08.144.031h.652l.148-.03.118-.08.083-.12.028-.146v-4.962l3.505 3.505.126.082.14.027.142-.027.124-.084.461-.46.083-.123s.028-.144.027-.146l-.028-.14-.082-.126-3.496-3.496h4.948l.148-.03.119-.08.082-.12.028-.147v-.652l-.028-.145-.083-.122-.119-.08s-.147-.033-.147-.031h-4.964l3.512-3.512.082-.122.029-.144-.028-.14-.084-.124-.46-.461-.123-.082-.14-.027-.145.027-.122.082-3.507 3.507V9.348l-.028-.146-.082-.122-.12-.08-.147-.029h-.652z"})),EventBasedGateway:({styles:e={},...t})=>Lb("svg",Fw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16 0a1.29 1.29 0 00-.918.373L.371 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.915.372A1.294 1.294 0 0016 0zm-.002 2.181l13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18zm0 5.876l-.254.185-7.377 5.355 2.915 8.964h9.433l2.915-8.964-7.631-5.54zm0 1.07l6.614 4.8-2.526 7.769h-8.175l-2.526-7.768 6.614-4.802z"})),ExclusiveGateway:({styles:e={},...t})=>Lb("svg",Uw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16 0a1.29 1.29 0 00-.918.373L.371 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.915.372A1.294 1.294 0 0016 0zm-.002 2.181l13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18zm-5.162 7.69l-.166.032-.141.096-.532.532s-.097.142-.097.144l-.03.164.032.162.093.144 4.857 4.858-4.855 4.855v-.001L9.9 21l-.03.164.032.162s.093.142.093.144l.531.532.146.095.162.032.164-.03.144-.097 4.855-4.856 4.857 4.857.145.095.162.032.164-.03.144-.097.531-.532.095-.14.033-.168-.033-.162-.095-.146L17.144 16 22 11.144l.095-.14.033-.166-.033-.163-.097-.144-.532-.532-.14-.095-.163-.032-.166.032-.141.095L16 14.855l-4.858-4.858v-.002l-.144-.092-.162-.032z"})),Gateway:({styles:e={},...t})=>Lb("svg",Vw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.373a1.313 1.313 0 00-1.833 0L.373 15.084zm1.806.918L16 2.182l13.821 13.82L16 29.823 2.179 16.003z"})),InclusiveGateway:({styles:e={},...t})=>Lb("svg",Hw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm0 6.379a7.447 7.447 0 00-7.44 7.441A7.447 7.447 0 0016 23.443 7.447 7.447 0 0023.443 16a7.447 7.447 0 00-7.441-7.441zm0 .825a6.61 6.61 0 016.617 6.616A6.61 6.61 0 0116 22.618 6.61 6.61 0 019.385 16 6.61 6.61 0 0116 9.385z"})),ParallelGateway:({styles:e={},...t})=>Lb("svg",qw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm-.377 5.708l-.168.032-.136.092-.096.14-.032.168v6.868h-6.87l-.002-.002-.166.037-.137.092v-.002l-.095.141-.033.167v.753s.032.169.034.17l.094.138.138.092.167.036h6.87v6.867l-.001-.001.033.17.095.138.138.092s.166.035.167.037h.752l.17-.036.137-.092.095-.137.033-.17v-6.867h6.868l.17-.035.137-.092.095-.137.033-.17v-.753s-.033-.165-.032-.167l-.096-.14-.138-.093s-.17-.037-.17-.035H16.81V8.323l-.033-.168-.094-.14-.138-.092-.17-.034h-.752z"})),Group:({styles:e={},...t})=>Lb("svg",Gw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.34.016c-2.333.025-4.684 1.77-5.29 4.17C.608 5.848.88 7.608.804 9.314v2.922h2.041c.038-2.332-.076-4.673.062-7C3.14 3.355 4.869 1.938 6.643 2.04h8.956V.009c-3.086 0-6.173-.02-9.258 0v.007zm13.094 2.023h1.92V.009h-1.92v2.03zm5.756 0c1.265-.069 2.66.045 3.602 1.055 1.036.983 1.201 2.523 1.122 3.91v6.313h2.078c-.03-2.677.062-5.36-.047-8.032-.17-2.743-2.62-5.111-5.215-5.236-.511-.064-1.027-.02-1.54-.033v2.023zM.803 18.319h2.041v-2.026H.804v2.026zm29.11 1.084h2.08v-2.03h-2.08v2.03zM.804 26.148c.004 2.218 1.393 4.366 3.313 5.28 1.728.853 3.681.448 5.521.544.43-.112 1.29.231 1.435-.183v-1.847c-1.788-.043-3.584.094-5.365-.082-1.67-.354-2.919-2.048-2.863-3.844v-3.644H.804v3.777zm29.11-.068c.04 1.961-1.508 3.787-3.381 3.842-1.954.06-3.914.02-5.87.026v2.03c2.118-.042 4.242.08 6.355-.063 2.524-.264 4.818-2.644 4.94-5.323.08-1.039.014-2.085.035-3.126h-2.078v2.613zm-15.006 5.898h1.92v-2.03h-1.92v2.03z"})),CancelIntermediateCatchEvent:Kw,CompensateIntermediateCatchEvent:Xw,ConditionalIntermediateCatchEvent:Jw,ErrorIntermediateCatchEvent:e_,EscalationIntermediateCatchEvent:n_,LinkIntermediateCatchEvent:r_,MessageIntermediateCatchEvent:a_,MultipleIntermediateCatchEvent:p_,ConditionalIntermediateCatchEventNonInterrupting:c_,EscalationIntermediateCatchEventNonInterrupting:d_,MessageIntermediateCatchEventNonInterrupting:m_,MultipleIntermediateCatchEventNonInterrupting:y_,ParallelIntermediateCatchEventNonInterrupting:v_,SignalIntermediateCatchEventNonInterrupting:x_,TimerIntermediateCatchEventNonInterrupting:__,ParallelMultipleIntermediateCatchEvent:P_,SignalIntermediateCatchEvent:S_,TimerIntermediateCatchEvent:C_,IntermediateThrowEvent:T_,CompensateIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",A_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm-.56 5.772l-7.408 5.231 7.409 5.234v-5.057c2.385 1.687 4.771 3.371 7.157 5.057V10.747l-7.157 5.055v-5.055z"})),EscalationIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",R_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.927c-1.672 4.654-2.734 9.502-4.406 14.155 1.534-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.496-4.71-2.91-9.446-4.406-14.156z"})),LinkIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",z_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912z"})),MessageIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",D_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm-5.91 5.475l6.04 4.901 6.042-4.9H10.088zm-1.341 1.138v9.921h14.514V11.79l-7.132 5.787-7.382-5.99z"})),MultipleIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",j_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.073l-7.62 5.532 2.91 8.95h9.42l2.91-8.95-7.62-5.532z"})),SignalIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",B_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.52c-2.261 4.07-4.533 8.136-6.798 12.205h13.596L16.005 8.495z"})),Lane:({styles:e={},...t})=>Lb("svg",N_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M0 7v18.62h32V7H0zm1.655 17.056V8.684h28.62v15.372H1.656z"})),ManualTask:({styles:e={},...t})=>Lb("svg",L_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm4.43 1.328c-.222.005-.43.09-.606.203-.985.638-4.356 2.977-5.096 3.486-.67.46-1.12 1.153-1.38 1.974-.27.858-.235 1.793-.232 2.576.002.59.016 1.104.17 1.727.22.908.634 1.63 1.23 2.118.597.49 1.363.732 2.23.734 3.038.012 6.078.016 9.119 0 .327-.002.645-.127.848-.37.204-.241.287-.56.291-.914a1.732 1.732 0 00-.097-.625h.327c.335 0 .641-.11.852-.316.21-.206.317-.475.374-.754a1.783 1.783 0 00-.126-1.143 1.18 1.18 0 00.877-.521c.196-.306.257-.666.258-1.025.001-.375-.088-.738-.293-1.033a1.179 1.179 0 00-.958-.512h-.478c.108-.237.156-.505.155-.782-.003-.373-.098-.721-.316-.99a1.21 1.21 0 00-.943-.43c-2.273-.004-4.236.018-6.412.012l-.19-.001c.102-.104.202-.205.312-.314.337-.336.662-.652.83-.869.4-.516.46-1.215.123-1.729-.178-.272-.439-.456-.72-.494a.93.93 0 00-.148-.008zm.029.728l.022.001c.055.008.115.027.209.172.132.201.126.606-.09.884-.079.102-.431.465-.767.8-.337.334-.657.643-.815.836-.153.186-.096.338-.056.435.04.096.085.212.298.263.063.014.066.01.086.012l.066.003c2.429.027 4.986-.004 7.223-.003.194 0 .293.056.379.162.086.105.151.286.153.533 0 .257-.065.467-.155.59-.09.124-.183.182-.37.183-1.706-.001-3.411-.005-5.117-.009v.731c2.23.004 4.461.01 6.692.012.17 0 .265.06.361.2.096.138.164.364.163.615 0 .268-.058.501-.143.634-.085.132-.162.193-.385.195-2.32-.001-4.554-.006-6.688-.003v.73c1.905 0 3.809.003 5.713.001.194.005.316.09.416.26.102.173.151.442.093.728-.04.193-.102.313-.17.38-.067.065-.148.108-.343.108h-5.71l.002.734c1.445 0 2.89-.01 4.334-.001.162 0 .232.041.297.123.064.081.123.238.12.488-.003.244-.061.385-.12.455-.06.07-.127.11-.296.11-3.037.016-6.076.012-9.113 0-.735-.002-1.316-.196-1.77-.568-.454-.372-.793-.935-.986-1.728-.134-.546-.146-.978-.148-1.558-.003-.796-.018-1.664.199-2.354.222-.705.582-1.24 1.096-1.593.75-.515 4.14-2.866 5.079-3.474a.504.504 0 01.241-.087z"})),MessageFlow:({styles:e={},...t})=>Lb("svg",I_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M4.073 26.607l1.295 1.296L1.325 32l-.662-.633L0 30.735l4.073-4.128zm6.953-7.046l1.296 1.296L1.325 32l7.555-7.656-1.295-1.296 1.455-1.474 1.986-2.013zM32 .06s-2.699 5.189-5.417 10.462l-.326.633c-1.14 2.214-2.265 4.407-3.176 6.2-1.228-1.222-2.449-2.452-3.676-3.675l-3.57 3.618-1.297-1.296 3.541-3.588c-.98-.964-1.932-1.958-2.923-2.91l-.753-.706c2.68-1.258 6.533-3.165 9.95-4.876l.617-.309C28.838 1.673 32 .06 32 .06zm-4.126 4.06l-.015.007-.115.057-.048.024-.115.057L17.7 9.172l5.017 4.948 5.157-10z"})),Participant:({styles:e={},...t})=>Lb("svg",$_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M0 5v22.069h32V5H0zm30.276 1.684v18.82H6.62V6.684h23.655zm-28.62 0h3.31v18.82h-3.31V6.684z"})),Process:({styles:e={},...t})=>Lb("svg",F_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{fillRule:"evenodd",d:"M16.177 0l.137.002c.452.009.9.037 1.342.082.346.036.62.303.68.646l.437 2.536c.055.319.296.57.608.655.986.269 1.923.653 2.796 1.14.28.155.624.145.885-.039l2.083-1.47a.775.775 0 01.937.022c.86.699 1.645 1.484 2.343 2.343.22.27.223.653.023.937l-1.439 2.038a.833.833 0 00-.031.896c.512.889.92 1.846 1.204 2.855a.833.833 0 00.653.601l2.435.42c.342.059.61.333.645.679a15.928 15.928 0 01.08 2.064l-.003.114c-.012.382-.038.76-.077 1.134a.775.775 0 01-.645.68l-2.396.412a.835.835 0 00-.656.61 12.511 12.511 0 01-1.2 2.917.832.832 0 00.034.892l1.396 1.978c.2.284.196.667-.023.936a16.104 16.104 0 01-2.343 2.343.775.775 0 01-.937.023l-1.99-1.404a.833.833 0 00-.88-.026c-.907.516-1.886.922-2.916 1.2a.833.833 0 00-.61.656l-.414 2.396a.775.775 0 01-.679.646 16.096 16.096 0 01-3.312 0 .775.775 0 01-.679-.646l-.423-2.452a.834.834 0 00-.598-.636 12.474 12.474 0 01-1.468-.514 12.49 12.49 0 01-1.417-.68.833.833 0 00-.878.03l-2.026 1.43a.775.775 0 01-.937-.023 16.069 16.069 0 01-2.342-2.342.774.774 0 01-.024-.936l1.402-1.986a.833.833 0 00.032-.896 12.507 12.507 0 01-1.214-2.911.833.833 0 00-.655-.606l-2.386-.412a.775.775 0 01-.646-.678 16.097 16.097 0 010-3.314.775.775 0 01.646-.678l2.386-.412a.833.833 0 00.655-.606 12.507 12.507 0 011.214-2.911.833.833 0 00-.032-.896L3.552 6.853a.774.774 0 01.023-.936 16.091 16.091 0 012.343-2.343.775.775 0 01.937-.023l2.03 1.433c.26.177.6.182.874.028.915-.512 1.88-.9 2.87-1.167a.833.833 0 00.612-.656l.424-2.46a.775.775 0 01.679-.645C14.845.032 15.348.004 15.85 0h.326zM16 6.4c-5.302 0-9.6 4.297-9.6 9.599 0 5.302 4.298 9.6 9.6 9.6s9.6-4.298 9.6-9.6-4.298-9.6-9.6-9.6zm-3 4.283c0-1.425 1.637-2.203 2.715-1.29l5.69 4.815c.794.672.794 1.91 0 2.583l-5.69 4.815c-1.078.913-2.715.134-2.715-1.29z"})),ReceiveTask:({styles:e={},...t})=>Lb("svg",V_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zM5.23 7.764v11.577h17.55V7.764H5.23zm1.816.758h13.917l-6.959 4.577-6.958-4.577zm-1.06.21l8.018 5.274 8.018-5.275v9.853H5.987V8.73z"})),ScriptTask:({styles:e={},...t})=>Lb("svg",H_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm2.99 3.077l-.077.045-.026.015c-1.09.646-1.84 1.239-2.336 1.818-.496.579-.735 1.162-.742 1.725-.014 1.119.812 1.958 1.544 2.708.732.75 1.385 1.456 1.446 2.041.032.298-.039.598-.364 1.008-.324.408-.911.897-1.85 1.445l-1.388.808h8.56l.101-.059c.996-.58 1.667-1.116 2.094-1.655.429-.54.603-1.107.547-1.638-.11-1.052-.967-1.818-1.688-2.556-.721-.739-1.306-1.436-1.298-2.092.004-.331.132-.7.535-1.171.402-.47 1.08-1.02 2.119-1.636l1.362-.806h-8.54zm.241.867h5.271a6.83 6.83 0 00-1.113 1.01c-.496.58-.736 1.163-.743 1.726-.014 1.119.812 1.958 1.544 2.708.732.75 1.385 1.456 1.446 2.041.032.298-.039.598-.364 1.008-.312.393-.872.862-1.753 1.386H8.728c.367-.286.658-.566.88-.847.43-.54.604-1.107.548-1.638-.11-1.052-.968-1.818-1.688-2.556-.721-.739-1.306-1.435-1.298-2.092.004-.331.132-.7.534-1.171.389-.454 1.04-.984 2.021-1.575zm-1.233 1.48v.4h4.12v-.4h-4.12zm-.154 2.158v.4H12.6v-.4H8.34zm1.931 2.158v.4h4.126v-.4H10.27zm.59 2.158v.4h4.276v-.4h-4.276z"})),SendTask:({styles:e={},...t})=>Lb("svg",q_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm-1.38 3.16l8.332 4.717L21.78 8.16H5.114zm.021 1.745v9.309H21.8V9.905l-8.353 4.655-8.31-4.655z"})),ServiceTask:({styles:e={},...t})=>Lb("svg",U_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm1.22 1.681V7.84c-.329.093-.63.223-.914.382l-.83-.82-1.554 1.561.83.82c-.16.288-.285.594-.372.911l-1.177.002v2.2l1.189-.004c.109.431.345.819.58 1.165v-1.898l-1.038.004v-.737l1.034-.002.058-.294c.084-.429.252-.838.493-1.203l.165-.25-.727-.718.523-.526.728.719.247-.165c.379-.25.793-.417 1.206-.505l.291-.06-.002-1.01h.75L9.19 8.417H11.16c-.185-.221-.951-.508-1.237-.588L9.93 6.68H7.713zm2.078 2.105l.003 1.158a4.19 4.19 0 00-.915.383l-.83-.821-1.553 1.562.83.82c-.16.288-.286.593-.373.91l-1.176.003v2.2l1.188-.004c.094.326.224.624.383.905l-.85.847 1.57 1.543.847-.843c.29.161.599.286.919.373v1.198c.756.006 1.56.003 2.206.003V17.81a4.19 4.19 0 00.915-.383l.847.835 1.554-1.56-.848-.836c.16-.288.286-.594.373-.912l1.152-.007V12.75l-1.165.007a4.09 4.09 0 00-.382-.905l.805-.807-1.57-1.546-.804.806a4.16 4.16 0 00-.915-.372l.007-1.147H9.792zm.732.73h.751l-.006 1.005.297.058c.43.085.844.252 1.21.492l.25.162.701-.704.528.52-.702.704.169.25c.248.374.412.779.505 1.196l.061.292 1.016-.006v.737l-1.01.006-.058.292c-.085.43-.252.838-.494 1.205l-.165.25.744.733-.523.525-.743-.734-.248.165c-.378.247-.789.418-1.203.503l-.294.058v1.067h-.745v-1.059l-.295-.057a3.395 3.395 0 01-1.21-.492l-.248-.162-.747.743-.528-.52.747-.744-.17-.25a3.546 3.546 0 01-.506-1.196l-.06-.291-1.04.004v-.738l1.034-.002.058-.294c.085-.428.252-.837.493-1.203l.165-.25-.726-.718.522-.526.728.72.248-.166a3.546 3.546 0 011.205-.504l.292-.06-.003-1.01zm.388 2.685a1.65 1.65 0 00-1.645 1.645c0 .904.74 1.645 1.645 1.645a1.65 1.65 0 001.645-1.645 1.65 1.65 0 00-1.645-1.645zm0 .73a.91.91 0 01.915.915.91.91 0 01-.915.914.91.91 0 01-.915-.914.91.91 0 01.915-.915z"})),CompensateStartEvent:({styles:e={},...t})=>Lb("svg",G_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm-.566 9.03l-7.415 5.235 7.415 5.238v-5.062c2.386 1.689 4.775 3.375 7.163 5.062V10.761l-7.163 5.058v-5.058zm-.866 1.666v7.13L9.51 15.993l5.052-3.565zm7.166 0v7.137l-5.052-3.568 5.052-3.569z"})),ConditionalStartEvent:({styles:e={},...t})=>Lb("svg",W_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16 0C7.174 0 0 7.174 0 16s7.174 16 16 16 16-7.174 16-16S24.826 0 16 0zm0 1.73c7.892 0 14.27 6.378 14.27 14.27 0 7.891-6.379 14.27-14.27 14.27S1.73 23.891 1.73 16C1.73 8.108 8.108 1.73 16 1.73zm-5.362 7.523v13.493h10.724V9.253H10.638zm.863.866h8.995V21.88H11.501V10.12zm.928 1.324v.863h7.139v-.863h-7.139zm0 2.605v.867h7.139v-.867h-7.139zm0 3.01v.864h7.139v-.863h-7.139zm0 2.72v.863h7.139v-.863h-7.139z"})),ErrorStartEvent:({styles:e={},...t})=>Lb("svg",K_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.005C9.705-.08 3.643 3.968 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994.005zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626-4.814-3.838-6.538-10.939-4.067-16.57 2.14-5.205 7.515-8.774 13.147-8.708zm6.13 7.45l-3.635 7.37-4.52-5.88c-1.37 4.048-2.738 8.095-4.106 12.143l4.603-5.917 4.748 5.433 2.91-13.149zm-7.754 3.889l4.299 5.449 1.073-2.39-1.028 4.135-4.387-5.16-1.78 2.75 1.823-4.784z"})),EscalationStartEvent:({styles:e={},...t})=>Lb("svg",Y_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm0 7.183c-1.674 4.658-2.736 9.509-4.41 14.166 1.535-1.526 2.874-3.236 4.41-4.763l4.41 4.763c-1.499-4.713-2.913-9.453-4.41-14.166zm.032 2.931c.822 2.588 1.598 5.19 2.42 7.778l-2.42-2.615c-.683.598-2.455 2.887-2.34 2.39.871-2.489 1.448-5.07 2.34-7.553z"})),MessageStartEvent:({styles:e={},...t})=>Lb("svg",X_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm-7.257 8.732v11.069h14.513v-11.07H8.738zm3.224 1.73h8.064c-1.428.878-2.857 2.807-4.285 3.018l-3.779-3.019zm9.562 1.017v6.593H10.465V13.21l5.528 4.417 5.53-4.418z"})),MultipleStartEvent:({styles:e={},...t})=>Lb("svg",Z_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm0 6.328l-7.626 5.536c.97 2.986 1.942 5.971 2.913 8.957h9.426l2.912-8.957-7.625-5.536zm0 1.068l6.609 4.798-2.525 7.763H11.91l-2.524-7.763 6.609-4.798z"})),ConditionalStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",J_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M10.632 9.189V22.68h10.723V9.189H10.632zm.862.865h8.994v11.76H11.494v-11.76zm.928 1.324v.863h7.138v-.863h-7.138zm0 2.605v.866h7.138v-.866h-7.138zm0 3.01v.863h7.138v-.863h-7.138zm0 2.72v.862h7.138v-.863h-7.138zM16.12 0h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136-.109-.118-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006l-.216-.042-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006l-.006-.001-.22-.017-.005-.001h-.006L17.06.03h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012L16.132 0h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zM6.377 3.21l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1v.003l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114v-.008l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V15.95l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z"})),EscalationStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",Q_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16 9.209c-1.674 4.655-2.735 9.504-4.408 14.16 1.534-1.526 2.873-3.235 4.407-4.761l4.408 4.76c-1.497-4.71-2.91-9.448-4.408-14.16zm.031 2.93c.822 2.586 1.598 5.187 2.42 7.774l-2.42-2.614c-.682.598-2.453 2.886-2.34 2.389.873-2.488 1.45-5.068 2.34-7.55zM16.132.364c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.564c-.734.078-1.196.762-1.735 1.206C3.552 6.02 2.55 7.511 1.681 9.053c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786A15.932 15.932 0 011.728 16a.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"})),MessageStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",eE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M8.746 10.393v11.064h14.506V10.393H8.746zm3.223 1.728h8.06c-1.428.879-2.856 2.807-4.283 3.018l-3.777-3.018zm9.557 1.018v6.59H10.473v-6.59l5.525 4.416 5.528-4.416zM16.132 0c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.2c-.734.078-1.196.762-1.735 1.206C3.552 5.656 2.55 7.147 1.681 8.69c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786a15.932 15.932 0 01-1.672-6.874.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"})),MultipleStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",tE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M23.621 13.524L16 7.99l-7.622 5.534 2.911 8.952h9.422l2.911-8.952zm-1.016.33l-2.523 7.759h-8.165l-2.524-7.76L16 9.059l6.606 4.796zM16.132 0c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.2c-.734.078-1.196.762-1.735 1.206C3.552 5.656 2.55 7.147 1.681 8.69c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786a15.932 15.932 0 01-1.672-6.874.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"})),ParallelMultipleStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",nE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M13.503 9.016v4.428H9.075v4.98h4.428v4.428h4.98v-4.427h4.428v-4.981h-4.427V9.016h-4.981zm.83.83h3.32v4.428h4.428v3.32h-4.428v4.428h-3.32v-4.454H9.905v-3.294h4.428V9.846zM16.12 0h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136-.109-.118-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006l-.216-.042-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006l-.006-.001-.22-.017-.005-.001h-.006L17.06.03h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012L16.132 0h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zM6.377 3.21l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1v.003l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114v-.008l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V15.95l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z",opacity:".98"})),SignalStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",iE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.007 8.82L9.21 21.022h13.596L16.007 8.82zm0 1.775l5.328 9.563H10.68l5.327-9.563zM16.14.386c-1.571.236-4.195-.284-4.9 1.381.619 1.703 2.745.069 4.085.365 1.421-.13 2.84.2 4.235.259C21.27.784 18.19.344 17 .413a20.456 20.456 0 00-.86-.027zM25 3.162c-2.19.694.401 2.26 1.181 3.094 1.083 1.152 1.954 2.484 2.715 3.864 1.48 1.005 1.845-1.26.81-2.03-1.158-1.897-2.613-3.704-4.513-4.89l-.192-.038zm-18.438.423c-1.793.712-2.909 2.548-4.01 4.061-.773.814-2.211 3.653.005 3.211 1.123-1.469 1.87-3.306 3.267-4.614.664-.7 2.73-2.013.738-2.658zm24.57 11.072c-1.659.435-.468 2.667-.99 3.895a13.427 13.427 0 01-1.497 4.435c-.23 1.659 1.991 1.165 2.018-.199a14.277 14.277 0 001.254-7.552.865.865 0 00-.785-.579zm-30.18.666c-1.677.386-.633 2.667-.608 3.876.371 1.623.792 3.35 1.79 4.696 2.382.321.571-2.338.292-3.492a15.92 15.92 0 01-.684-4.39.877.877 0 00-.79-.69zm24.558 11.81c-1.755.865-3.303 2.266-5.274 2.765-1.162-.016-3.074 1.271-1.331 2.102 2.66-.447 5.163-1.733 7.236-3.445.472-.506.06-1.432-.631-1.421zm-19.151.043c-2.004.786.416 2.405 1.43 2.913 1.608.904 3.379 1.636 5.208 1.877 1.77-.804-.228-2.094-1.357-2.073-1.75-.537-3.403-1.396-4.798-2.586l-.227-.104-.256-.027z"})),TimerStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",rE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.991 8.7c-3.018-.042-5.92 1.925-7.03 4.725-1.138 2.695-.509 6.011 1.537 8.102 1.99 2.142 5.267 2.93 8.013 1.927 2.877-.98 4.99-3.826 5.067-6.87.153-2.956-1.624-5.88-4.299-7.135a7.551 7.551 0 00-3.288-.75zm0 1.383c2.758-.052 5.372 1.972 6.014 4.654.704 2.578-.482 5.516-2.79 6.867-2.358 1.48-5.682 1.085-7.617-.919-2.043-1.97-2.407-5.38-.84-7.743 1.11-1.764 3.149-2.88 5.233-2.86zm1.962 1.764l-2.074 3.762c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.182l1.993-3.614-.757-.418zM16.12.358h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136L19.823.9l-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006L19.135.64l-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006L17.512.42l-.22-.017-.005-.001h-.006l-.22-.015h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012l-.221-.003h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zm-18.458.426l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1V9.5l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114V16.5l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V16.308l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z"})),CancelBoundaryEvent:Kw,CompensateBoundaryEvent:Xw,ConditionalBoundaryEvent:Jw,ErrorBoundaryEvent:e_,EscalationBoundaryEvent:n_,LinkBoundaryEvent:r_,MessageBoundaryEvent:a_,MultipleBoundaryEvent:p_,BoundaryEvent:T_,ConditionalBoundaryEventNonInterrupting:c_,EscalationBoundaryEventNonInterrupting:d_,MessageBoundaryEventNonInterrupting:m_,MultipleBoundaryEventNonInterrupting:y_,ParallelBoundaryEventNonInterrupting:v_,SignalBoundaryEventNonInterrupting:x_,TimerBoundaryEventNonInterrupting:__,ParallelMultipleBoundaryEvent:P_,SignalBoundaryEvent:S_,TimerBoundaryEvent:C_,StartEvent:({styles:e={},...t})=>Lb("svg",oE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.847.004C9.61-.016 3.624 4.014 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.101 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.268.403-6.228-3.26-12.441-8.87-15.154A15.924 15.924 0 0015.846.004zm.439 1.729c6.105.033 11.856 4.45 13.435 10.359 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.625-4.814-3.84-6.538-10.94-4.067-16.57 2.14-5.206 7.515-8.775 13.147-8.71.097-.001.194-.002.29-.001z"})),ParallelMultipleStartEvent:({styles:e={},...t})=>Lb("svg",aE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.847 0C9.61-.02 3.624 4.01 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.101 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.268.403-6.228-3.26-12.441-8.87-15.154A15.924 15.924 0 0015.846 0zm.439 1.729c6.105.033 11.856 4.45 13.435 10.359 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.625C2.101 23.17.377 16.07 2.848 10.44c2.134-5.2 7.522-8.78 13.147-8.71.097-.001.194-.002.29-.001zM13.504 9.08v4.427H9.077v4.98h4.427v4.427h4.98v-4.427h4.428v-4.98h-4.427V9.08h-4.98zm.83.83h3.32v4.427h4.428v3.32h-4.427v4.427h-3.32v-4.453H9.906v-3.294h4.427V9.91z"})),SignalStartEvent:({styles:e={},...t})=>Lb("svg",sE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.005C9.705-.08 3.643 3.968 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994.005zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626-4.814-3.838-6.538-10.939-4.067-16.57 2.14-5.205 7.515-8.774 13.147-8.708zm0 6.776L9.19 20.724H22.8L15.995 8.511zm0 1.777l5.332 9.572H10.662l5.333-9.572z"})),TimerStartEvent:({styles:e={},...t})=>Lb("svg",pE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16 0C7.174 0 0 7.174 0 16s7.174 16 16 16 16-7.174 16-16S24.826 0 16 0zm0 1.73c7.892 0 14.27 6.378 14.27 14.27 0 7.891-6.379 14.27-14.27 14.27S1.73 23.891 1.73 16C1.73 8.108 8.108 1.73 16 1.73zm-.143 6.676c-2.967.02-5.797 1.97-6.89 4.727-1.138 2.695-.51 6.012 1.537 8.102 1.99 2.142 5.268 2.932 8.014 1.928 2.878-.98 4.992-3.827 5.068-6.87.153-2.957-1.624-5.881-4.3-7.137a7.552 7.552 0 00-3.43-.75zm.27 1.383c2.71.012 5.254 2.015 5.886 4.656.704 2.577-.482 5.517-2.791 6.867-2.358 1.48-5.682 1.085-7.618-.918-2.043-1.971-2.407-5.381-.84-7.745 1.11-1.763 3.15-2.88 5.234-2.86h.13zm1.833 1.765l-2.074 3.763c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.181l1.992-3.615-.757-.418z"})),CollapsedSubProcess:cE,CollapsedAdHocSubProcess:cE,ExpandedSubProcess:dE,ExpandedAdHocSubProcess:dE,Task:({styles:e={},...t})=>Lb("svg",hE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 2.667C2.916 2.667 0 5.57 0 9.142v13.383C0 26.097 2.916 29 6.494 29h19.012C29.084 29 32 26.097 32 22.525V9.142c0-3.572-2.916-6.475-6.494-6.475H6.494zm0 2h19.012c2.509 0 4.494 1.98 4.494 4.475v13.383C30 25.02 28.015 27 25.506 27H6.494C3.985 27 2 25.02 2 22.525V9.142c0-2.495 1.985-4.475 4.494-4.475z"})),TextAnnotation:({styles:e={},...t})=>Lb("svg",mE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M22.087 0v31.647H32v-1.788h-8.125V1.788H32V0h-9.913zm-2.924 13.999l-2.737 2.167 2.167 2.738 2.738-2.167-2.168-2.738zm-5.475 4.335L10.95 20.5l2.168 2.738 2.737-2.168-2.167-2.737zm-5.475 4.335l-2.738 2.167 2.168 2.738 2.737-2.168-2.167-2.737zm-5.476 4.335L0 29.17l2.167 2.738 2.738-2.168-2.168-2.737z"})),Transaction:({styles:e={},...t})=>Lb("svg",fE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M5.422 3A5.424 5.424 0 000 8.422v15.822a5.424 5.424 0 005.422 5.423h21.156A5.424 5.424 0 0032 24.244V8.422A5.424 5.424 0 0026.578 3H5.422zm0 1.244h21.156a4.155 4.155 0 014.178 4.178v15.822a4.155 4.155 0 01-4.178 4.178H5.422a4.155 4.155 0 01-4.178-4.178V8.422a4.155 4.155 0 014.178-4.178zm1.056 1.778a3.373 3.373 0 00-3.367 3.366v13.89a3.373 3.373 0 003.367 3.366h19.044a3.373 3.373 0 003.367-3.366V9.388a3.373 3.373 0 00-3.367-3.366H6.478zm0 1.245h19.044c1.187 0 2.122.935 2.122 2.121v13.89a2.104 2.104 0 01-2.122 2.122H6.478a2.104 2.104 0 01-2.122-2.122V9.388c0-1.186.935-2.121 2.122-2.121z"})),UserTask:({styles:e={},...t})=>Lb("svg",yE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{fillRule:"evenodd",d:"M10.263 7.468c-1.698 0-2.912 1.305-2.915 2.791v.001c0 .45.121.924.311 1.352.138.309.308.593.516.82-1.235.423-2.683 1.119-3.414 2.49l-.04.075v4.44h11.083v-4.44l-.04-.074c-.72-1.352-2.136-2.047-3.36-2.471.597-.608.774-1.392.774-2.192-.004-1.487-1.218-2.792-2.915-2.792zm-1.16 1.583c.08 0 .165.003.26.008.757.045 1.012.181 1.207.31.196.13.334.252.851.268.404-.016.598-.087.737-.169.056-.033.103-.067.152-.1.128.275.197.578.198.893 0 .894-.154 1.52-.975 2.034l.08.604c.171.052.348.11.527.171.025.105.054.242.073.387.02.153.029.311.016.43a.422.422 0 01-.056.19c-.417.417-1.157.66-1.908.66-.75 0-1.49-.243-1.908-.66a.422.422 0 01-.056-.19 1.949 1.949 0 01.016-.43c.02-.146.049-.284.074-.388.177-.062.352-.118.521-.17l.048-.648a.616.616 0 00-.126-.118c-.183-.138-.405-.44-.562-.793-.157-.353-.254-.757-.254-1.08 0-.387.105-.758.297-1.079l.11-.04c.143-.046.339-.09.679-.09zm-1.448 4.304l-.002.014c-.025.185-.04.387-.018.589.021.202.074.42.248.593.595.594 1.494.857 2.382.857.889 0 1.788-.263 2.382-.857.174-.174.227-.391.249-.593a2.496 2.496 0 00-.018-.59l-.002-.01c.903.396 1.776.963 2.258 1.81v3.599H13.53v-2.538h-.67v2.538H7.651v-2.538h-.67v2.538H5.39v-3.599c.483-.849 1.359-1.416 2.264-1.813zM6.495 3C2.914 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.01C28.016 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5z"}))};function vE(e){const{type:t}=e;let n=xE(t);const i=function(e){const t=Er(e).eventDefinitions;return t&&t[0]}(e);if(i)return n=`${function(e){return xE(e.$type).replace("EventDefinition","")}(i)}${n}`,(wr(e,"bpmn:StartEvent")&&!Lr(e)||wr(e,"bpmn:BoundaryEvent")&&!function(e){const t=Er(e);return t&&!1!==t.cancelActivity}(e))&&(n=`${n}NonInterrupting`),n;if(wr(e,"bpmn:SubProcess")&&!wr(e,"bpmn:Transaction"))if(Ir(e))n=`Event${n}`;else{n=`${Nr(e)&&!function(e){return wr(e&&(e.di||Er(e).di),"bpmndi:BPMNPlane")}(e)?"Expanded":"Collapsed"}${n}`}return function(e){const t=Er(e),n=Er(e.source);if(!wr(e,"bpmn:SequenceFlow")||!n)return!1;return n.default&&n.default===t&&(wr(n,"bpmn:Gateway")||wr(n,"bpmn:Activity"))}(e)&&(n="DefaultFlow"),function(e){const t=Er(e),n=Er(e.source);if(!wr(e,"bpmn:SequenceFlow")||!n)return!1;return t.conditionExpression&&wr(n,"bpmn:Activity")}(e)&&(n="ConditionalFlow"),n}const bE={getElementLabel:e=>wr(e,"bpmn:Process")?Er(e).name:Vr(e),getElementIcon:e=>{const t=vE(e);return gE[t]},getTypeLabel:e=>vE(e).replace(/(\B[A-Z])/g," $1").replace(/(\bNon Interrupting)/g,"($1)")};function xE(e){return e.split(":")[1]}function wE(e){const{element:t,injector:n,getProviders:i,layoutConfig:r,descriptionConfig:o}=e,a=n.get("canvas"),s=n.get("elementRegistry"),p=n.get("eventBus"),[l,c]=rb({selectedElement:t}),u=l.selectedElement,d=e=>{if(!e)return;let t=e;t&&"label"===t.type&&(t=t.labelTarget),c({...l,selectedElement:t}),p.fire("propertiesPanel.updated",{element:t})};ab((()=>{const e=e=>{const t=e.newSelection[0],n=a.getRootElement();(function(e){return e&&(e.isImplicit||"__implicitroot"===e.id)})(n)||d(t||n)};return p.on("selection.changed",e),()=>{p.off("selection.changed",e)}}),[]),ab((()=>{const e=e=>{const t=function(e,t){return b(e,(e=>e===t))}(e.elements,u);t&&function(e,t){return e&&t.get(e.id)}(t,s)&&d(t)};return p.on("elements.changed",e),()=>{p.off("elements.changed",e)}}),[u]),ab((()=>{const e=e=>{const t=e.element;d(t)};return p.on("root.added",e),()=>{p.off("root.added",e)}}),[u]),ab((()=>{const e=()=>{d(u)};return p.on("propertiesPanel.providersChanged",e),()=>{p.off("propertiesPanel.providersChanged",e)}}),[u]),ab((()=>{const e=()=>{d(u)};return p.on("elementTemplates.changed",e),()=>{p.off("elementTemplates.changed",e)}}),[u]);const h={selectedElement:u,injector:n,getService:(e,t)=>n.get(e,t)},m=i(u),f=pb((()=>P(m,(function(e,t){return t.getGroups(u)(e)}),[])),[m,u]);return gb(fw.Provider,{value:h,children:gb(Qb,{element:u,headerProvider:bE,groups:f,layoutConfig:r,layoutChanged:e=>{p.fire("propertiesPanel.layoutChanged",{layout:e})},descriptionConfig:o,descriptionLoaded:e=>{p.fire("propertiesPanel.descriptionLoaded",{description:e})}})})}class _E{constructor(e,t,n){const{parent:i,layout:r,description:o}=e||{};this._eventBus=n,this._injector=t,this._layoutConfig=r,this._descriptionConfig=o,this._container=fe('<div style="height: 100%" class="bio-properties-panel-container" input-handle-modified-keys="y,z"></div>'),n.on("diagram.init",(()=>{i&&this.attachTo(i)})),n.on("diagram.destroy",(()=>{this.detach()})),n.on("root.added",(e=>{const{element:t}=e;this._render(t)}))}attachTo(e){if(!e)throw new Error("container required");"string"==typeof e&&(e=ve(e)),this.detach(),e.appendChild(this._container),this._eventBus.fire("propertiesPanel.attach")}detach(){const e=this._container.parentNode;e&&(e.removeChild(this._container),this._eventBus.fire("propertiesPanel.detach"))}registerProvider(e,t){t||(t=e,e=1e3),"function"==typeof t.getGroups?(this._eventBus.on("propertiesPanel.getProviders",e,(function(e){e.providers.push(t)})),this._eventBus.fire("propertiesPanel.providersChanged")):console.error("Properties provider does not implement #getGroups(element) API")}_getProviders(){const e=this._eventBus.createEvent({type:"propertiesPanel.getProviders",providers:[]});return this._eventBus.fire(e),e.providers}_render(e){const t=this._injector.get("canvas");e||(e=t.getRootElement()),function(e){return e&&(e.isImplicit||"__implicitroot"===e.id)}(e)||(Uv(gb(wE,{element:e,injector:this._injector,getProviders:this._getProviders.bind(this),layoutConfig:this._layoutConfig,descriptionConfig:this._descriptionConfig}),this._container),this._eventBus.fire("propertiesPanel.rendered"))}_destroy(){this._container&&(Uv(null,this._container),this._eventBus.fire("propertiesPanel.destroyed"))}}_E.$inject=["config.propertiesPanel","injector","eventBus"];class EE{constructor(e){this._commandStack=e}preExecute(e){const t=this._commandStack;_(e,(function(e){t.execute(e.cmd,e.context)}))}}EE.$inject=["commandStack"];const PE={"properties-panel.multi-command-executor":EE};function OE(e,t){e.on("diagram.init",(function(){_(PE,(function(e,n){t.registerHandler(n,e)}))}))}OE.$inject=["eventBus","commandStack"];var SE={__depends__:[{__init__:[OE]},Rx],__init__:["propertiesPanel"],propertiesPanel:["type",_E]};function kE(e,t){const{getService:n}=lb(fw);return n(e,t)}function CE(e){const{autoFocusEntry:t,element:n,getOptions:i}=e,r=i(n),o=$b(r);return ab((()=>{if(t&&o&&r.length>o.length){const e=ve(`[data-entry-id="${t}"]`),n=ve(".bio-properties-panel-input",e);n&&n.select()}}),[r]),gb(yx,{...e})}function ME(e){return DE(e,"bpmn:ErrorEventDefinition")}function TE(e){return _r(e,["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"])&&!!RE(e)}function AE(e){if(!e)return;if(void 0!==e.get("timeDate"))return"timeDate";if(void 0!==e.get("timeCycle"))return"timeCycle";return void 0!==e.get("timeDuration")?"timeDuration":void 0}function RE(e){return DE(e,"bpmn:TimerEventDefinition")}function zE(e){const t=ME(e);return t&&t.get("errorRef")}function DE(e,t){return b(Er(e).get("eventDefinitions")||[],(function(e){return wr(e,t)}))}function jE(e){return wr(e,"bpmn:ReceiveTask")?Er(e):DE(e,"bpmn:MessageEventDefinition")}function BE(e){const t=jE(e);return t&&t.get("messageRef")}function NE(e){return DE(e,"bpmn:LinkEventDefinition")}function LE(e){return DE(e,"bpmn:SignalEventDefinition")}function IE(e){const t=LE(e);return t&&t.get("signalRef")}function $E(e){return DE(e,"bpmn:EscalationEventDefinition")}function FE(e){const t=$E(e);return t&&t.get("escalationRef")}function VE(e){return DE(e,"bpmn:CompensateEventDefinition")}function HE(e){const{element:t}=e;return function(e){return _r(e,["bpmn:EndEvent","bpmn:IntermediateThrowEvent"])&&!!VE(e)}(t)?[{id:"waitForCompletion",component:qE,isEdited:hx},{id:"activityRef",component:UE,isEdited:gx}]:[]}function qE(e){const{element:t}=e,n=kE("commandStack"),i=kE("translate"),r=VE(t);return dx({element:t,id:"waitForCompletion",label:i("Wait for completion"),getValue:()=>r.get("waitForCompletion"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:r,properties:{waitForCompletion:e}})}})}function UE(e){const{element:t}=e,n=kE("commandStack"),i=kE("elementRegistry"),r=kE("translate"),o=VE(t);return CE({element:t,id:"activityRef",label:r("Activity reference"),getValue:()=>{const e=function(e){const t=VE(e);return t&&t.get("activityRef")}(t);return e&&e.get("id")},setValue:e=>{const r=e?Er(i.get(e)):void 0;n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{activityRef:r}})},getOptions:()=>{let e=[{value:"",label:r("<none>")}];const n=function(e){let t=Er(e).$parent,n=KE(t);wr(t,"bpmn:SubProcess")&&t.triggeredByEvent&&(t=t.$parent,t&&(n=[...n,...KE(t)]));return n}(t);var i;return(i=n,D(i,(e=>(e.name||"").toLowerCase()))).forEach((function(t){e.push({value:t.id,label:YE(t)})})),e}})}function GE(e,t){const{flowElements:n}=e;return n.filter((function(e){return wr(e,t)}))}function WE(e,t){return wr(e,"bpmn:CallActivity")||wr(e,"bpmn:SubProcess")&&!e.triggeredByEvent&&!e.isForCompensation||function(e,t){const{id:n}=e;return!!b(t,(function(e){const{attachedToRef:t}=e,i=VE(e);return t&&i&&t.id===n}))}(e,t)}function KE(e){const t=function(e){return GE(e,"bpmn:Activity")}(e),n=function(e){return GE(e,"bpmn:BoundaryEvent")}(e);return t.filter((function(e){return WE(e,n)}))}function YE(e){const{id:t,name:n}=e;return`${n?n+" ":""}(id=${t})`}const XE="text/plain";function ZE(e){const{element:t}=e,n=[{id:"documentation",component:JE,isEdited:_x}];return function(e){return wr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)&&n.push({id:"processDocumentation",component:QE,isEdited:_x}),n}function JE(e){const{element:t}=e,n=kE("bpmnFactory"),i=kE("commandStack"),r=kE("translate"),o=kE("debounceInput"),a=tP(Er(t)),s=nP(t,Er(t),n,i);return wx({element:t,id:"documentation",label:r("Element documentation"),getValue:a,setValue:s,debounce:o})}function QE(e){const{element:t}=e,n=kE("bpmnFactory"),i=kE("commandStack"),r=kE("translate"),o=kE("debounceInput"),a=Er(t).processRef,s=tP(a),p=nP(t,a,n,i);return wx({element:t,id:"processDocumentation",label:r("Process documentation"),getValue:s,setValue:p,debounce:o})}function eP(e){return e.find((function(e){return(e.textFormat||XE)===XE}))}function tP(e){return function(){const t=eP(e&&e.get("documentation"));return t&&t.text}}function nP(e,t,n,i){return function(r){let o=eP(t&&t.get("documentation"));return o?r?i.execute("element.updateModdleProperties",{element:e,moddleElement:o,properties:{text:r}}):i.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:{documentation:E(t.get("documentation"),o)}}):r?(o=n.create("bpmn:Documentation",{text:r}),i.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:{documentation:[...t.get("documentation"),o]}})):void 0}}function iP(e,t,n,i){const r=i.create(e,t);return n&&(r.$parent=n),r}function rP(e){return new o([32,32,1]).nextPrefixed(e)}function oP(e){let t=e;for(;t.$parent;)t=t.$parent;return t}function aP(e,t){const n=oP(e);return i=n.get("rootElements"),r=t,(i||[]).filter((e=>wr(e,r)));var i,r}function sP(e,t,n){return aP(e,t).find((e=>e.id===n))}const pP="create-new";function lP(e){const{element:t}=e;if(!function(e){return _r(e,["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:EndEvent"])&&!!ME(e)}(t))return[];let n=[{id:"errorRef",component:cP,isEdited:gx}];return zE(t)&&(n=[...n,{id:"errorName",component:uP,isEdited:Sx},{id:"errorCode",component:dP,isEdited:Sx}]),n}function cP(e){const{element:t}=e,n=kE("bpmnFactory"),i=kE("commandStack"),r=kE("translate"),o=ME(t);return CE({element:t,id:"errorRef",label:r("Global error reference"),autoFocusEntry:"errorName",getValue:()=>{const e=zE(t);return e?e.get("id"):""},setValue:e=>{const r=oP(o),a=[];let s;return e===pP&&(s=iP("bpmn:Error",{name:rP("Error_")},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})),s=s||sP(o,"bpmn:Error",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{errorRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:pP,label:r("Create new ...")}];const n=aP(Er(t),"bpmn:Error");var i;return(i=n,D(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function uP(e){const{element:t}=e,n=kE("commandStack"),i=kE("translate"),r=kE("debounceInput"),o=zE(t);return Ox({element:t,id:"errorName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function dP(e){const{element:t}=e,n=kE("commandStack"),i=kE("translate"),r=kE("debounceInput"),o=zE(t);return Ox({element:t,id:"errorCode",label:i("Code"),getValue:()=>o.get("errorCode"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{errorCode:e}}),debounce:r})}const hP="create-new";function mP(e){const{element:t}=e;if(!function(e){return wr(e,"bpmn:Event")&&!!$E(e)}(t))return[];let n=[{id:"escalationRef",component:fP,isEdited:gx}];return FE(t)&&(n=[...n,{id:"escalationName",component:yP,isEdited:Sx},{id:"escalationCode",component:gP,isEdited:Sx}]),n}function fP(e){const{element:t}=e,n=kE("bpmnFactory"),i=kE("commandStack"),r=kE("translate"),o=$E(t);return CE({element:t,id:"escalationRef",label:r("Global escalation reference"),autoFocusEntry:"escalationName",getValue:()=>{const e=FE(t);return e&&e.get("id")},setValue:e=>{const r=oP(o),a=[];let s;if(e===hP){const i=rP("Escalation_");s=iP("bpmn:Escalation",{id:i,name:i},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})}return s=s||sP(o,"bpmn:Escalation",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{escalationRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:hP,label:r("Create new ...")}];const n=aP(Er(t),"bpmn:Escalation");var i;return(i=n,D(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function yP(e){const{element:t}=e,n=kE("commandStack"),i=kE("translate"),r=kE("debounceInput"),o=FE(t);return Ox({element:t,id:"escalationName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function gP(e){const{element:t}=e,n=kE("commandStack"),i=kE("translate"),r=kE("debounceInput"),o=FE(t);return Ox({element:t,id:"escalationCode",label:i("Code"),getValue:()=>o.get("escalationCode"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{escalationCode:e}}),debounce:r})}function vP(e){const{element:t}=e;return wr(t,"bpmn:Process")||function(e){return wr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)?[{id:"isExecutable",component:bP,isEdited:hx}]:[]}function bP(e){const{element:t}=e,n=kE("modeling"),i=kE("commandStack"),r=kE("translate");let o,a;if(a=e=>{n.updateProperties(t,{isExecutable:e})},o=e=>e.businessObject.isExecutable,wr(t,"bpmn:Participant")){const e=t.businessObject.get("processRef");a=n=>{i.execute("element.updateModdleProperties",{element:t,moddleElement:e,properties:{isExecutable:n}})},o=()=>e.get("isExecutable")}return dx({element:t,id:"isExecutable",label:r("Executable"),getValue:o,setValue:a})}const xP=/\s/,wP=/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i,_P=/^[a-z_][\w-.]*$/i;function EP(e,t,n){const i=e.$model.ids.assigned(t);return t?i&&i!==e?n("ID must be unique."):function(e,t){if(n=e,xP.test(n))return t("ID must not contain spaces.");var n;if(!_P.test(e))return wP.test(e)?t("ID must not contain prefix."):t("ID must be a valid QName.")}(t,n):n("ID must not be empty.")}function PP(e){const{element:t}=e,n=kE("modeling"),i=kE("debounceInput"),r=kE("translate");return Ox({element:t,id:"id",label:r(wr(t,"bpmn:Participant")?"Participant ID":"ID"),getValue:e=>e.businessObject.id,setValue:e=>{n.updateProperties(t,{id:e})},debounce:i,validate:e=>EP(Er(t),e,r)})}function OP(e){const{element:t}=e;return function(e){return _r(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!NE(e)}(t)?[{id:"linkName",component:SP,isEdited:Sx}]:[]}function SP(e){const{element:t}=e,n=kE("commandStack"),i=kE("translate"),r=kE("debounceInput"),o=NE(t);return Ox({element:t,id:"linkName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}})},debounce:r})}const kP="create-new";function CP(e){const{element:t}=e;if(!function(e){return wr(e,"bpmn:ReceiveTask")||_r(e,["bpmn:StartEvent","bpmn:EndEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent"])&&!!jE(e)}(t))return[];let n=[{id:"messageRef",component:MP,isEdited:gx}];return BE(t)&&(n=[...n,{id:"messageName",component:TP,isEdited:Sx}]),n}function MP(e){const{element:t}=e,n=kE("bpmnFactory"),i=kE("commandStack"),r=kE("translate"),o=jE(t);return CE({element:t,id:"messageRef",label:r("Global message reference"),autoFocusEntry:"messageName",getValue:()=>{const e=BE(t);return e?e.get("id"):""},setValue:e=>{const r=oP(o),a=[];let s;if(e===kP){const i=rP("Message_");s=iP("bpmn:Message",{id:i,name:i},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})}return s=s||sP(o,"bpmn:Message",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{messageRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:kP,label:r("Create new ...")}];const n=aP(Er(t),"bpmn:Message");var i;return(i=n,D(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function TP(e){const{element:t}=e,n=kE("commandStack"),i=kE("translate"),r=kE("debounceInput"),o=BE(t);return Ox({element:t,id:"messageName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function AP(e){const{element:t}=e;if(!function(e){const t=BP(e);return!!t&&wr(t,"bpmn:MultiInstanceLoopCharacteristics")}(t))return[];return[{id:"loopCardinality",component:RP,isEdited:Sx},{id:"completionCondition",component:zP,isEdited:Sx}]}function RP(e){const{element:t}=e,n=kE("bpmnFactory"),i=kE("debounceInput"),r=kE("commandStack"),o=kE("translate");return Ox({element:t,id:"loopCardinality",label:o("Loop cardinality"),getValue:()=>function(e){return DP(function(e){return jP(e,"loopCardinality")}(e))}(t),setValue:e=>r.execute("element.updateModdleProperties",NP(t,"loopCardinality",e,n)),debounce:i})}function zP(e){const{element:t}=e,n=kE("bpmnFactory"),i=kE("debounceInput"),r=kE("commandStack"),o=kE("translate");return Ox({element:t,id:"completionCondition",label:o("Completion condition"),getValue:()=>function(e){return DP(function(e){return jP(e,"completionCondition")}(e))}(t),setValue:e=>r.execute("element.updateModdleProperties",NP(t,"completionCondition",e,n)),debounce:i})}function DP(e){return e&&e.get("body")}function jP(e,t){const n=BP(e);return n&&n.get(t)}function BP(e){return Er(e).loopCharacteristics}function NP(e,t,n,i){const r=BP(e),o={};if(!n)return o[t]=void 0,{element:e,moddleElement:r,properties:o};const a=r.get(t);return a?{element:e,moddleElement:a,properties:{body:n}}:(o[t]=function(e,t,n){return iP("bpmn:FormalExpression",{body:t},e,n)}(r,n,i),{element:e,moddleElement:r,properties:o})}function LP(e){const{element:t}=e;return _r(t,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"])?[]:[{id:"name",component:IP,isEdited:Sx}]}function IP(e){const{element:t}=e,n=kE("modeling"),i=kE("debounceInput"),r=kE("canvas"),o=kE("bpmnFactory"),a=kE("translate");let s={element:t,id:"name",label:a("Name"),debounce:i,setValue:e=>{n.updateProperties(t,{name:e})},getValue:e=>e.businessObject.name};return wr(t,"bpmn:TextAnnotation")?s={...s,setValue:e=>{n.updateProperties(t,{text:e})},getValue:e=>e.businessObject.text}:wr(t,"bpmn:Group")?s={...s,setValue:e=>{const i=Er(t);i.categoryValueRef||function(e,t,n){const i=function(e,t){const n=t.create("bpmn:CategoryValue"),i=t.create("bpmn:Category",{categoryValue:[n]});return function(e,t,n){if(e&&t){"number"!=typeof n&&(n=-1);var i=e.indexOf(t);if(-1!==i){if(i===n)return;if(-1===n)return;e.splice(i,1)}-1!==n?e.splice(n,0,t):e.push(t)}}(e.get("rootElements"),i),Er(i).$parent=e,Er(n).$parent=i,n}(Er(t).$parent,n);e.categoryValueRef=i}(i,r.getRootElement(),o),n.updateLabel(t,e)},getValue:e=>{const t=Er(e).categoryValueRef;return t&&t.value}}:wr(t,"bpmn:Participant")&&(s.label=a("Participant Name")),Ox(s)}function $P(e){const{element:t}=e;return function(e){return wr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)?[{id:"processId",component:VP,isEdited:Sx},{id:"processName",component:FP,isEdited:Sx}]:[]}function FP(e){const{element:t}=e,n=kE("commandStack"),i=kE("translate"),r=kE("debounceInput"),o=t.businessObject.get("processRef");return Ox({element:t,id:"processName",label:i("Process name"),getValue:()=>o.get("name"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}})},debounce:r})}function VP(e){const{element:t}=e,n=kE("commandStack"),i=kE("translate"),r=kE("debounceInput"),o=t.businessObject.get("processRef");return Ox({element:t,id:"processId",label:i("Process ID"),getValue:()=>o.get("id"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{id:e}})},debounce:r,validate:e=>EP(o,e,i)})}const HP="create-new";function qP(e){const{element:t}=e;if(!function(e){return wr(e,"bpmn:Event")&&!!LE(e)}(t))return[];let n=[{id:"signalRef",component:UP,isEdited:gx}];return IE(t)&&(n=[...n,{id:"signalName",component:GP,isEdited:Sx}]),n}function UP(e){const{element:t}=e,n=kE("bpmnFactory"),i=kE("commandStack"),r=kE("translate"),o=LE(t);return CE({element:t,id:"signalRef",label:r("Global signal reference"),autoFocusEntry:"signalName",getValue:()=>{const e=IE(t);return e?e.get("id"):""},setValue:e=>{const r=oP(o),a=[];let s;if(e===HP){const i=rP("Signal_");s=iP("bpmn:Signal",{id:i,name:i},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})}return s=s||sP(o,"bpmn:Signal",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{signalRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:HP,label:r("Create new ...")}];const n=aP(Er(t),"bpmn:Signal");var i;return(i=n,D(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function GP(e){const{element:t}=e,n=kE("commandStack"),i=kE("translate"),r=kE("debounceInput"),o=IE(t);return Ox({element:t,id:"signalName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function WP(e){const{element:t,listener:n,idPrefix:i}=e;let{timerEventDefinition:r}=e;if(!r){r=RE(Er(t))}const o=AE(r);if(!TE(t)&&!function(e){return e&&wr(e,"camunda:TaskListener")&&RE(e)}(n))return[];const a=[];return a.push({id:ZP(i,"timerEventDefinitionType"),component:KP,isEdited:gx,timerEventDefinition:r,timerEventDefinitionType:o}),o&&a.push({id:ZP(i,"timerEventDefinitionValue"),component:YP,isEdited:Sx,timerEventDefinition:r,timerEventDefinitionType:o}),a}function KP(e){const{element:t,timerEventDefinition:n,timerEventDefinitionType:i}=e,r=kE("commandStack"),o=kE("bpmnFactory"),a=kE("translate");return yx({element:t,id:"timerEventDefinitionType",label:a("Type"),getValue:()=>i||"",setValue:e=>{if(e===i)return;const a=o.create("bpmn:FormalExpression",{body:void 0});a.$parent=n;const s={timeDuration:void 0,timeDate:void 0,timeCycle:void 0};""!==e&&(s[e]=a),r.execute("element.updateModdleProperties",{element:t,moddleElement:n,properties:s})},getOptions:e=>[{value:"",label:a("<none>")},{value:"timeDate",label:a("Date")},{value:"timeDuration",label:a("Duration")},{value:"timeCycle",label:a("Cycle")}]})}function YP(e){const{element:t,timerEventDefinition:n,timerEventDefinitionType:i}=e,r=kE("commandStack"),o=kE("translate"),a=kE("debounceInput"),s=n.get(i);return Ox({element:t,id:"timerEventDefinitionValue",label:o("Value"),getValue:()=>s&&s.get("body"),setValue:e=>{r.execute("element.updateModdleProperties",{element:t,moddleElement:s,properties:{body:e}})},debounce:a,description:XP(i,o)})}function XP(e,t){switch(e){case"timeDate":return gb("div",{children:[gb("p",{children:t("A specific point in time defined as ISO 8601 combined date and time representation.")}),gb("ul",{children:[gb("li",{children:[gb("code",{children:"2019-10-01T12:00:00Z"})," - ",t("UTC time")]}),gb("li",{children:[gb("code",{children:"2019-10-02T08:09:40+02:00"})," - ",t("UTC plus 2 hours zone offset")]})]}),gb("a",{href:"https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-date",target:"_blank",rel:"noopener",children:t("Documentation: Timer events")})]});case"timeCycle":return gb("div",{children:[gb("p",{children:t("A cycle defined as ISO 8601 repeating intervals format.")}),gb("ul",{children:[gb("li",{children:[gb("code",{children:"R5/PT10S"})," - ",t("every 10 seconds, up to 5 times")]}),gb("li",{children:[gb("code",{children:"R/P1D"})," - ",t("every day, infinitely")]})]}),gb("a",{href:"https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-cycle",target:"_blank",rel:"noopener",children:t("Documentation: Timer events")})]});case"timeDuration":return gb("div",{children:[gb("p",{children:t("A time duration defined as ISO 8601 durations format.")}),gb("ul",{children:[gb("li",{children:[gb("code",{children:"PT15S"})," - ",t("15 seconds")]}),gb("li",{children:[gb("code",{children:"PT1H30M"})," - ",t("1 hour and 30 minutes")]}),gb("li",{children:[gb("code",{children:"P14D"})," - ",t("14 days")]})]}),gb("a",{href:"https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-duration",target:"_blank",rel:"noopener",children:t("Documentation: Timer events")})]})}}function ZP(e,t){return e?e+t:t}function JP(e){return{id:"general",label:"General",entries:[...LP({element:e}),{id:"id",component:PP,isEdited:Sx},...$P({element:e}),...vP({element:e})],component:Yb}}function QP(e){const t={label:"Compensation",id:"compensation",component:Yb,entries:[...HE({element:e})]};return t.entries.length?t:null}function eO(e){return{id:"documentation",label:"Documentation",entries:[...ZE({element:e})],component:Yb}}function tO(e){const t={id:"error",label:"Error",component:Yb,entries:[...lP({element:e})]};return t.entries.length?t:null}function nO(e){const t={id:"message",label:"Message",component:Yb,entries:[...CP({element:e})]};return t.entries.length?t:null}function iO(e){const t={id:"signal",label:"Signal",component:Yb,entries:[...qP({element:e})]};return t.entries.length?t:null}function rO(e){const t={label:"Link",id:"link",component:Yb,entries:[...OP({element:e})]};return t.entries.length?t:null}function oO(e){const t={id:"escalation",label:"Escalation",component:Yb,entries:[...mP({element:e})]};return t.entries.length?t:null}function aO(e){const t={label:"Timer",id:"timer",component:Yb,entries:[...WP({element:e})]};return t.entries.length?t:null}function sO(e){const t={label:"Multi-instance",id:"multiInstance",component:Yb,entries:[...AP({element:e})]};return t.entries.length?t:null}class pO{constructor(e){e.registerProvider(this)}getGroups(e){return t=>t=t.concat(function(e){return[JP(e),eO(e),QP(e),tO(e),rO(e),nO(e),sO(e),iO(e),oO(e),aO(e)].filter((e=>null!==e))}(e))}}pO.$inject=["propertiesPanel"];var lO={__init__:["bpmnPropertiesProvider"],bpmnPropertiesProvider:["type",pO]};function cO(e,t){const n=e.get("extensionElements");if(!n)return[];const i=n.get("values");return i&&i.length?t?i.filter((e=>wr(e,t))):i:[]}function uO(e,t,n,i){d(n)||(n=[n]);const r=t.get("extensionElements"),o=r.get("values").filter((e=>!n.includes(e)));i.execute("element.updateModdleProperties",{element:e,moddleElement:r,properties:{values:o}})}function dO(e){const{element:t}=e;return wr(t,"bpmn:UserTask")?[{id:"assignmentDefinitionAssignee",component:hO,isEdited:Sx},{id:"assignmentDefinitionCandidateGroups",component:mO,isEdited:Sx}]:[]}function hO(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate"),o=kE("debounceInput");return Ox({element:t,id:"assignmentDefinitionAssignee",label:r("Assignee"),feel:"optional",getValue:()=>(fO(t)||{}).assignee,setValue:e=>{const r=[],o=Er(t);let a=o.get("extensionElements");a||(a=iP("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=fO(t);s||(s=iP("zeebe:AssignmentDefinition",{},a,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{assignee:e}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}function mO(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate"),o=kE("debounceInput");return Ox({element:t,id:"assignmentDefinitionCandidateGroups",label:r("Candidate groups"),feel:"optional",getValue:()=>(fO(t)||{}).candidateGroups,setValue:e=>{let r=[];const o=Er(t);let a=o.get("extensionElements");a||(a=iP("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=fO(t);s||(s=iP("zeebe:AssignmentDefinition",{},a,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{candidateGroups:e}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}function fO(e){return cO(Er(e),"zeebe:AssignmentDefinition")[0]}const yO="dmn",gO="jobWorker";function vO(e){const{element:t}=e;return wr(t,"bpmn:BusinessRuleTask")?[{id:"businessRuleImplementation",component:bO,isEdited:()=>function(e){return xO(e)}(t)}]:[]}function bO(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate");return yx({element:t,id:"businessRuleImplementation",label:r("Implementation"),getValue:()=>wO(t)?yO:xO(t)?gO:"",setValue:e=>{let r,o;e===yO?(r=wO(t),o="zeebe:CalledDecision"):e===gO?(r=xO(t),o="zeebe:TaskDefinition"):function(e,t){const n=Er(e),i=xO(e),r=wO(e);i&&uO(e,n,i,t);r&&uO(e,n,r,t)}(t,n),!r&&o&&(r=iP(o,{},null,i),function(e,t,n,i){const r=Er(e),o=[];let a,s=r.get("extensionElements");s||(s=iP("bpmn:ExtensionElements",{values:[]},r,n),o.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:r,properties:{extensionElements:s}}}));t.$parent=s,wr(t,"zeebe:TaskDefinition")?a=E(s.get("values"),wO(e)):wr(t,"zeebe:CalledDecision")&&(a=E(s.get("values"),xO(e)));o.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:s,properties:{values:[...a,t]}}}),i.execute("properties-panel.multi-command-executor",o)}(t,r,i,n))},getOptions:()=>[{value:"",label:r("<none>")},{value:yO,label:r("DMN decision")},{value:gO,label:r("Job worker")}]})}function xO(e){return cO(Er(e),"zeebe:TaskDefinition")[0]}function wO(e){return cO(Er(e),"zeebe:CalledDecision")[0]}function _O(e){const{element:t}=e;return wr(t,"bpmn:BusinessRuleTask")&&OO(t)?[{id:"decisionId",component:EO,isEdited:Sx},{id:"resultVariable",component:PO,isEdited:Sx}]:[]}function EO(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate"),o=kE("debounceInput");return Ox({element:t,id:"decisionId",label:r("ID"),getValue:()=>(OO(t)||{}).decisionId,setValue:e=>{const r=[],o=Er(t);let a=o.get("extensionElements");a||(a=iP("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=OO(t);s||(s=iP("zeebe:CalledDecision",{},a,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{decisionId:e}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}function PO(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate"),o=kE("debounceInput");return Ox({element:t,id:"resultVariable",label:r("Result variable"),getValue:()=>(OO(t)||{}).resultVariable,setValue:e=>{const r=[],o=Er(t);let a=o.get("extensionElements");a||(a=iP("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=OO(t);s||(s=iP("zeebe:CalledDecision",{},a,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{resultVariable:e}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}function OO(e){return cO(Er(e),"zeebe:CalledDecision")[0]}function SO(e){const{element:t}=e;if(!wr(t,"bpmn:SequenceFlow"))return[];const n=[];return function(e){return _r(e,CO)}(t.source)&&n.push({id:"conditionExpression",component:kO,isEdited:Sx}),n}function kO(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate"),o=kE("debounceInput");return Ox({element:t,id:"conditionExpression",label:r("Condition expression"),feel:"required",getValue:()=>function(e){const t=Er(e).conditionExpression;if(t)return t.get("body")}(t),setValue:e=>{const r=[],o=Er(t),a=t.source;a.businessObject.default===o&&r.push({cmd:"element.updateProperties",context:{element:a,properties:{default:void 0}}});const s=e&&""!=e?iP("bpmn:FormalExpression",{body:e},o,i):void 0;r.push({cmd:"element.updateProperties",context:{element:t,properties:{conditionExpression:s}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}const CO=["bpmn:Activity","bpmn:ExclusiveGateway"];function MO(e){const{element:t,injector:n}=e,i=n.invoke(DO);if(!wr(t,"bpmn:UserTask"))return[];const r=[{id:"formType",component:TO,isEdited:gx}];return!function(e,t){const n=t.getFormDefinition(e),i=t.getUserTaskForm(e);return n&&i}(t,i)?function(e,t){const n=t.getFormDefinition(e),i=t.getUserTaskForm(e);return n&&!i}(t,i)&&r.push({id:"customFormKey",component:RO,isEdited:Sx}):r.push({id:"formConfiguration",component:AO,isEdited:_x}),r}function TO(e){const{element:t}=e,n=kE("translate"),i=kE("injector").invoke(DO);return yx({element:t,id:"formType",label:n("Type"),getValue:()=>{const e=i.getFormDefinition(t),n=i.getUserTaskForm(t);return e?n?"camundaForm":"formKey":""},setValue:e=>{i.resetForm(t),"camundaForm"===e?i.setUserTaskForm(t,""):"formKey"===e&&i.setFormDefinition(t,"")},getOptions:()=>[{value:"",label:n("<none>")},{value:"camundaForm",label:n("Camunda forms")},{value:"formKey",label:n("Custom form key")}]})}function AO(e){const{element:t}=e,n=kE("injector"),i=kE("debounceInput"),r=kE("translate"),o=n.invoke(DO);return wx({element:t,id:"formConfiguration",label:r("Form JSON configuration"),rows:4,getValue:()=>o.getUserTaskForm(t).get("body"),setValue:e=>{o.setUserTaskForm(t,e)},debounce:i})}function RO(e){const{element:t}=e,n=kE("injector"),i=kE("debounceInput"),r=kE("translate"),o=n.invoke(DO);return Ox({element:t,id:"customFormKey",label:r("Form Key"),getValue:()=>o.getFormDefinition(t).get("formKey"),setValue:e=>{o.setFormDefinition(t,e)},debounce:i})}const zO="userTaskForm_";function DO(e,t){function n(e){return cO(Er(e),"zeebe:FormDefinition")[0]}function i(e,t){const i=t||s(e),r=n(e);if(l(r))return;return function(e,t){return b(cO(t,"zeebe:UserTaskForm"),(function(t){return a(t.id)===e}))}(r.get("formKey"),i)}function r(t,n){let r=[];const o=s(t);let a=o.get("extensionElements");a||(a=iP("bpmn:ExtensionElements",{values:[]},o,e),r.push(jO(t,o,{extensionElements:a})));let p=i(t);return p||(p=function(e,t,n){return iP("zeebe:UserTaskForm",e,t,n)}(n,a,e),r.push(jO(t,a,{values:[...a.get("values"),p]}))),r.push(jO(t,p,n)),r}function o(t,i){const r=Er(t);let o=[],s=r.get("extensionElements");l(s)&&(s=iP("bpmn:ExtensionElements",{values:[]},r,e),o.push(jO(t,r,{extensionElements:s})));let p=n(t);if(p)i&&o.push(jO(t,p,{formKey:i}));else{let n=i;if(l(n)){n=a(rP(zO))}p=function(e,t,n){return iP("zeebe:FormDefinition",e,t,n)}({formKey:n},s,e),o.push(jO(t,s,{values:[...s.get("values"),p]}))}return{formId:(c=p.get("formKey"),c.split(":")[2]),commands:o};var c}function a(e){return"camunda-forms:bpmn:"+e}function s(e){let t=Er(e);for(;t.$parent&&!wr(t,"bpmn:Process");)t=t.$parent;return t}return{getFormDefinition:n,getUserTaskForm:i,setFormDefinition:function(e,n){const{commands:i}=o(e,n);t.execute("properties-panel.multi-command-executor",i)},setUserTaskForm:function(e,n){const{formId:i,commands:a}=o(e),s=r(e,{id:i,body:n}),p=a.concat(s);t.execute("properties-panel.multi-command-executor",p)},resetForm:function(e){const r=s(e).get("extensionElements"),o=function(e){const t=Er(e).get("extensionElements");let i=[];const r=n(e);if(!r)return i;let o=E(t.get("values"),r);return i.push(jO(e,t,{values:o})),i}(e),a=i(e);if(!a)return void t.execute("properties-panel.multi-command-executor",o);const p=E(r.get("values"),a);o.push(jO(e,r,{values:p})),t.execute("properties-panel.multi-command-executor",o)}}}function jO(e,t,n){return{cmd:"element.updateModdleProperties",context:{element:e,moddleElement:t,properties:n}}}function BO(e){const{idPrefix:t,header:n}=e;return[{id:t+"-key",component:NO,header:n,idPrefix:t},{id:t+"-value",component:LO,header:n,idPrefix:t}]}function NO(e){const{idPrefix:t,element:n,header:i}=e,r=kE("commandStack"),o=kE("translate"),a=kE("debounceInput");return Ox({element:i,id:t+"-key",label:o("Key"),getValue:e=>e.key,setValue:e=>{r.execute("element.updateModdleProperties",{element:n,moddleElement:i,properties:{key:e}})},debounce:a})}function LO(e){const{idPrefix:t,element:n,header:i}=e,r=kE("commandStack"),o=kE("translate"),a=kE("debounceInput");return Ox({element:i,id:t+"-value",label:o("Value"),getValue:e=>e.value,setValue:e=>{r.execute("element.updateModdleProperties",{element:n,moddleElement:i,properties:{value:e}})},debounce:a})}function IO(e){return!!wr(e,"zeebe:ZeebeServiceTask")&&(wr(e,"bpmn:EndEvent")||wr(e,"bpmn:IntermediateThrowEvent")?!!jE(e):!(wr(e,"bpmn:BusinessRuleTask")&&!function(e){return cO(Er(e),"zeebe:TaskDefinition")[0]}(e)))}function $O(e){return cO(Er(e),"zeebe:TaskHeaders")[0]}function FO({element:e,injector:t}){if(!function(e){return wr(e,"bpmn:UserTask")||IO(e)}(e))return null;const n=function(e){const t=$O(e);return t?t.get("values"):[]}(e)||[],i=t.get("bpmnFactory"),r=t.get("commandStack");return{items:n.map(((t,n)=>{const i=e.id+"-header-"+n;return{id:i,label:t.get("key")||"",entries:BO({idPrefix:i,element:e,header:t}),autoFocusEntry:i+"-key",remove:VO({commandStack:r,element:e,header:t})}})),add:HO({bpmnFactory:i,commandStack:r,element:e})}}function VO({commandStack:e,element:t,header:n}){return function(i){i.stopPropagation();let r=[];const o=$O(t);if(!o)return;const a=E(o.get("values"),n);if(r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{values:a}}}),!a.length){const e=Er(t).get("extensionElements");r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:e,properties:{values:E(e.get("values"),o)}}})}e.execute("properties-panel.multi-command-executor",r)}}function HO({bpmnFactory:e,commandStack:t,element:n}){return function(i){i.stopPropagation();let r=[];const o=Er(n);let a=o.get("extensionElements");a||(a=iP("bpmn:ExtensionElements",{values:[]},o,e),r.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:o,properties:{extensionElements:a}}}));let s=$O(n);if(!s){s=iP("zeebe:TaskHeaders",{values:[]},a,e),r.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:a,properties:{values:[...a.get("values"),s]}}})}const p=iP("zeebe:Header",{},s,e);r.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:s,properties:{values:[...s.get("values"),p]}}}),t.execute("properties-panel.multi-command-executor",r)}}function qO(e){const{idPrefix:t,parameter:n}=e;return[{id:t+"-target",component:UO,idPrefix:t,parameter:n},{id:t+"-source",component:GO,idPrefix:t,parameter:n}]}function UO(e){const{idPrefix:t,element:n,parameter:i}=e,r=kE("commandStack"),o=kE("translate"),a=kE("debounceInput");return Ox({element:i,id:t+"-target",label:o(wr(i,"zeebe:Input")?"Local variable name":"Process variable name"),getValue:e=>e.target,setValue:e=>{r.execute("element.updateModdleProperties",{element:n,moddleElement:i,properties:{target:e}})},debounce:a})}function GO(e){const{idPrefix:t,element:n,parameter:i}=e,r=kE("commandStack"),o=kE("translate"),a=kE("debounceInput");return Ox({element:i,id:t+"-source",label:o("Variable assignment value"),feel:"required",getValue:e=>e.source,setValue:e=>{r.execute("element.updateModdleProperties",{element:n,moddleElement:i,properties:{source:e}})},debounce:a})}function WO(e,t){const n=KO(e);return n&&n.get(t)||[]}function KO(e){return(function(e,t,n){const i=cO(e,t);return n?(i[0]||{})[n]||[]:i}(Er(e),"zeebe:IoMapping")||[])[0]}function YO(e){return WO.apply(this,[e,"outputParameters"])}function XO(e,t,n){return iP("zeebe:IoMapping",e,t,n)}function ZO({element:e,injector:t}){if(!function(e){return _r(e,["bpmn:UserTask","bpmn:SubProcess","bpmn:CallActivity","bpmn:BusinessRuleTask"])||IO(e)}(e))return null;const n=function(e){return WO.apply(this,[e,"inputParameters"])}(e)||[],i=t.get("bpmnFactory"),r=t.get("commandStack");return{items:n.map(((t,n)=>{const i=e.id+"-input-"+n;return{id:i,label:t.get("target")||"",entries:qO({idPrefix:i,element:e,parameter:t}),autoFocusEntry:i+"-target",remove:JO({commandStack:r,element:e,parameter:t})}})),add:QO({element:e,bpmnFactory:i,commandStack:r})}}function JO({commandStack:e,element:t,parameter:n}){return function(i){i.stopPropagation();const r=[],o=KO(t);if(!o)return;const a=E(o.get("inputParameters"),n);r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{inputParameters:a}}});const s=Er(t).get("extensionElements"),p=E(s.get("values"),o);a.length||o.get("outputParameters").length||r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:p}}}),e.execute("properties-panel.multi-command-executor",r)}}function QO({element:e,bpmnFactory:t,commandStack:n}){return function(i){i.stopPropagation();const r=[],o=Er(e);let a=o.get("extensionElements");a||(a=iP("bpmn:ExtensionElements",{values:[]},o,t),r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:o,properties:{extensionElements:a}}}));let s=KO(e);s||(s=XO({inputParameters:[],outputParameters:[]},a,t),r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:a,properties:{values:[...a.get("values"),s]}}}));const p=iP("zeebe:Input",{source:"= source",target:rP("InputVariable_")},s,t);r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:s,properties:{inputParameters:[...s.get("inputParameters"),p]}}}),n.execute("properties-panel.multi-command-executor",r)}}function eS(e){const{element:t}=e,n=[{id:"messageName",component:tS,isEdited:Sx}];return BE(t)&&function(e){if(wr(e,"bpmn:ReceiveTask"))return!0;if(!wr(e,"bpmn:StartEvent"))return!0;if(wr(e,"bpmn:StartEvent")&&Ir(e.parent))return!0;return!1}(t)?(n.push({id:"messageSubscriptionCorrelationKey",component:nS,isEdited:Sx}),n):n}function tS(e){const{element:t}=e,n=kE("commandStack"),i=kE("translate"),r=kE("debounceInput"),o=BE(t);return Ox({element:t,id:"messageName",label:i("Name"),feel:"optional",getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function nS(e){const{element:t}=e,n=kE("bpmnFactory"),i=kE("commandStack"),r=kE("translate"),o=kE("debounceInput");return Ox({element:t,id:"messageSubscriptionCorrelationKey",label:r("Subscription correlation key"),feel:"required",getValue:()=>function(e){const t=iS(e);return t?t.get("correlationKey"):""}(t),setValue:e=>{const r=[],o=BE(t);let a=o.get("extensionElements");a||(a=iP("bpmn:ExtensionElements",{values:[]},o,n),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=iS(t);s||(s=iP("zeebe:Subscription",{},a,n),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{correlationKey:e}}}),i.execute("properties-panel.multi-command-executor",r)},debounce:o})}function iS(e){return function(e){return cO(e,"zeebe:Subscription")}(BE(e))[0]}function rS(e){const{element:t}=e;return function(e){return!!cS(e)}(t)?[{id:"multiInstance-inputCollection",component:oS,isEdited:Sx},{id:"multiInstance-inputElement",component:aS,isEdited:Sx},{id:"multiInstance-outputCollection",component:sS,isEdited:Sx},{id:"multiInstance-outputElement",component:pS,isEdited:Sx},{id:"multiInstance-completionCondition",component:lS,isEdited:Sx}]:[]}function oS(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate"),o=kE("debounceInput");return Ox({element:t,id:"multiInstance-inputCollection",label:r("Input collection"),feel:"required",getValue:()=>hS(t,"inputCollection"),setValue:e=>mS(t,"inputCollection",e,n,i),debounce:o})}function aS(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate"),o=kE("debounceInput");return Ox({element:t,id:"multiInstance-inputElement",label:r("Input element"),getValue:()=>hS(t,"inputElement"),setValue:e=>mS(t,"inputElement",e,n,i),debounce:o})}function sS(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate"),o=kE("debounceInput");return Ox({element:t,id:"multiInstance-outputCollection",label:r("Output collection"),getValue:()=>hS(t,"outputCollection"),setValue:e=>mS(t,"outputCollection",e,n,i),debounce:o})}function pS(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate"),o=kE("debounceInput");return Ox({element:t,id:"multiInstance-outputElement",label:r("Output element"),feel:"required",getValue:()=>hS(t,"outputElement"),setValue:e=>mS(t,"outputElement",e,n,i),debounce:o})}function lS(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate"),o=kE("debounceInput");return Ox({element:t,id:"multiInstance-completionCondition",label:r("Completion condition"),feel:"required",getValue:()=>{const e=function(e){return cS(e).get("completionCondition")}(t);return e&&e.get("body")},setValue:e=>{if(e&&""!==e){const r=iP("bpmn:FormalExpression",{body:e},cS(t),i);dS(t,n,r)}else dS(t,n,void 0)},debounce:o})}function cS(e){return Er(e).get("loopCharacteristics")}function uS(e){const t=cO(e,"zeebe:LoopCharacteristics");return t&&t[0]}function dS(e,t,n){t.execute("element.updateModdleProperties",{element:e,moddleElement:cS(e),properties:{completionCondition:n}})}function hS(e,t){const n=uS(cS(e));return n&&n.get(t)}function mS(e,t,n,i,r){const o=cS(e),a=[];let s=o.get("extensionElements");s||(s=iP("bpmn:ExtensionElements",{values:[]},o,r),a.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:o,properties:{extensionElements:s}}}));let p=uS(o);p||(p=iP("zeebe:LoopCharacteristics",{},s,r),a.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:s,properties:{values:[...s.get("values"),p]}}})),a.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:p,properties:{[t]:n}}}),i.execute("properties-panel.multi-command-executor",a)}function fS(e){return function(e){const t=Er(e);return cO(t,"zeebe:CalledElement")}(e)[0]}function yS(e){const{element:t}=e;return wr(t,"bpmn:CallActivity")?[{id:"propagateAllChildVariables",component:gS,isEdited:Mx}]:[]}function gS(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate"),o=function(e){if(!wr(e,"bpmn:CallActivity"))return;const t=fS(Er(e));return t&&v(t,"propagateAllChildVariables")?t.get("propagateAllChildVariables"):function(e){const t=YO(e);if(t)return!(t.length>0)}(e)}(t);return function(e){const{element:t,id:n,description:i,label:r,switcherLabel:o,getValue:a,setValue:s}=e;return gb("div",{class:"bio-properties-panel-entry bio-properties-panel-toggle-switch-entry","data-entry-id":n,children:[gb(Cx,{id:n,label:r,value:a(t),onInput:s,switcherLabel:o}),gb(cx,{forId:n,element:t,value:i})]})}({id:"propagateAllChildVariables",label:r("Propagate all child process variables"),switcherLabel:r(o?"On":"Off"),description:r(o?"All variables from the child process instance will be propagated to the parent process instance":"Only variables defined via output mappings will be propagated from the child to the parent process instance"),getValue:()=>o,setValue:e=>{const r=[],o=Er(t);let a=o.get("extensionElements");a||(a=iP("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=fS(o);s||(s=iP("zeebe:CalledElement",{},a,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{propagateAllChildVariables:e}}}),n.execute("properties-panel.multi-command-executor",r)}})}function vS({element:e,injector:t}){if(!function(e){return _r(e,["zeebe:ZeebeServiceTask","bpmn:UserTask","bpmn:SubProcess","bpmn:ReceiveTask","bpmn:CallActivity","bpmn:Event","bpmn:BusinessRuleTask"])}(e))return null;const n=YO(e)||[],i=t.get("bpmnFactory"),r=t.get("commandStack");return{items:n.map(((t,n)=>{const i=e.id+"-output-"+n;return{id:i,label:t.get("target")||"",entries:qO({idPrefix:i,element:e,parameter:t}),autoFocusEntry:i+"-target",remove:bS({commandStack:r,element:e,parameter:t})}})),add:xS({element:e,bpmnFactory:i,commandStack:r})}}function bS({commandStack:e,element:t,parameter:n}){return function(i){i.stopPropagation();let r=[];const o=KO(t);if(!o)return;const a=E(o.get("outputParameters"),n);if(r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{outputParameters:a}}}),!o.get("inputParameters").length&&!a.length){const e=Er(t).get("extensionElements"),n=E(e.get("values"),o);r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:e,properties:{values:n}}})}e.execute("properties-panel.multi-command-executor",r)}}function xS({element:e,bpmnFactory:t,commandStack:n}){return function(i){i.stopPropagation();let r=[];const o=Er(e);let a=o.get("extensionElements");a||(a=iP("bpmn:ExtensionElements",{values:[]},o,t),r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:o,properties:{extensionElements:a}}}));let s=KO(e);if(!s){s=XO({inputParameters:[],outputParameters:[]},a,t),r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:a,properties:{values:[...a.get("values"),s]}}})}const p=iP("zeebe:Output",{source:"= source",target:rP("OutputVariable_")},s,t);r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:s,properties:{outputParameters:[...s.get("outputParameters"),p]}}}),n.execute("properties-panel.multi-command-executor",r)}}function wS(e){const{element:t}=e;return wr(t,"bpmn:CallActivity")?[{id:"targetProcessId",component:_S,isEdited:Sx}]:[]}function _S(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate"),o=kE("debounceInput");return Ox({element:t,id:"targetProcessId",label:r("Process ID"),feel:"optional",getValue:()=>function(e){const t=fS(e);return t?t.get("processId"):""}(t),setValue:e=>{const r=[],o=Er(t);let a=o.get("extensionElements");a||(a=iP("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=fS(o);s||(s=iP("zeebe:CalledElement",{},a,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{processId:e}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}function ES(e){const{element:t}=e;return IO(t)?[{id:"taskDefinitionType",component:PS,isEdited:Sx},{id:"taskDefinitionRetries",component:OS,isEdited:Sx}]:[]}function PS(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate"),o=kE("debounceInput");return Ox({element:t,id:"taskDefinitionType",label:r("Type"),feel:"optional",getValue:()=>(SS(t)||{}).type,setValue:e=>{const r=[],o=Er(t);let a=o.get("extensionElements");a||(a=iP("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=SS(t);s||(s=iP("zeebe:TaskDefinition",{},a,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{type:e}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}function OS(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate"),o=kE("debounceInput");return Ox({element:t,id:"taskDefinitionRetries",label:r("Retries"),feel:"optional",getValue:()=>(SS(t)||{}).retries,setValue:e=>{let r=[];const o=Er(t);let a=o.get("extensionElements");a||(a=iP("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=SS(t);s||(s=iP("zeebe:TaskDefinition",{},a,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{retries:e}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}function SS(e){return cO(Er(e),"zeebe:TaskDefinition")[0]}function kS(e){const{element:t}=e,n=AE(RE(Er(t)));if(!TE(t))return[];const i=[];return!AS("timeCycle",t)&&!AS("timeDate",t)?i.push({id:"timerEventDefinitionDurationValue",component:TS,isEdited:Sx}):(i.push({id:"timerEventDefinitionType",component:CS,isEdited:gx}),n&&i.push({id:"timerEventDefinitionValue",component:MS,isEdited:Sx})),i}function CS(e){const{element:t}=e,n=kE("commandStack"),i=kE("bpmnFactory"),r=kE("translate"),o=RE(Er(t)),a=AE(o);return yx({element:t,id:"timerEventDefinitionType",label:r("Type"),getValue:()=>a||"",setValue:e=>{if(e===a)return;const r=i.create("bpmn:FormalExpression",{body:void 0});r.$parent=o;const s={timeDuration:void 0,timeDate:void 0,timeCycle:void 0};s[e]=r,n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:s})},getOptions:e=>{const t=[{value:"",label:r("<none>")}];return AS("timeDate",e)&&t.push({value:"timeDate",label:r("Date")}),AS("timeDuration",e)&&t.push({value:"timeDuration",label:r("Duration")}),AS("timeCycle",e)&&t.push({value:"timeCycle",label:r("Cycle")}),t}})}function MS(e){const{element:t}=e,n=kE("commandStack"),i=kE("translate"),r=kE("debounceInput"),o=RE(Er(t)),a=AE(o),s=o.get(a);return Ox({element:t,id:"timerEventDefinitionValue",label:i("Value"),feel:"optional",getValue:()=>s&&s.get("body"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:s,properties:{body:e}})},debounce:r,description:RS(a,i)})}function TS(e){const{element:t}=e,n=kE("bpmnFactory"),i=kE("commandStack"),r=kE("translate"),o=kE("debounceInput"),a=RE(Er(t));let s=a.get("timeDuration");return Ox({element:t,id:"timerEventDefinitionDurationValue",label:r("Timer duration"),feel:"optional",getValue:()=>s&&s.get("body"),setValue:e=>{const r=[];if(!s){s=n.create("bpmn:FormalExpression",{body:void 0}),s.$parent=a;const e={timeDuration:s,timeDate:void 0,timeCycle:void 0};r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:e}})}r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{body:e}}}),i.execute("properties-panel.multi-command-executor",r)},debounce:o,description:RS("timeDuration",r)})}function AS(e,t){const n=Er(t);switch(e){case"timeDate":return!!wr(t,"bpmn:StartEvent");case"timeCycle":return!!wr(t,"bpmn:StartEvent")||!(!wr(t,"bpmn:BoundaryEvent")||n.cancelActivity);case"timeDuration":return!!wr(t,"bpmn:IntermediateCatchEvent")||!(!wr(t,"bpmn:BoundaryEvent")||n.cancelActivity);default:return}}function RS(e,t){switch(e){case"timeDate":return gb("div",{children:[gb("p",{children:t("A specific point in time defined as ISO 8601 combined date and time representation.")}),gb("ul",{children:[gb("li",{children:[gb("code",{children:"2019-10-01T12:00:00Z"})," - ",t("UTC time")]}),gb("li",{children:[gb("code",{children:"2019-10-02T08:09:40+02:00"})," - ",t("UTC plus 2 hours zone offset")]})]}),gb("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-date",target:"_blank",rel:"noopener",title:t("Timer documentation"),children:t("How to configure a timer")})]});case"timeCycle":return gb("div",{children:[gb("p",{children:t("A cycle defined as ISO 8601 repeating intervals format.")}),gb("ul",{children:[gb("li",{children:[gb("code",{children:"R5/PT10S"})," - ",t("every 10 seconds, up to 5 times")]}),gb("li",{children:[gb("code",{children:"R/P1D"})," - ",t("every day, infinitely")]})]}),gb("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-cycle",target:"_blank",rel:"noopener",title:t("Timer documentation"),children:t("How to configure a timer")})]});case"timeDuration":return gb("div",{children:[gb("p",{children:t("A time duration defined as ISO 8601 durations format.")}),gb("ul",{children:[gb("li",{children:[gb("code",{children:"PT15S"})," - ",t("15 seconds")]}),gb("li",{children:[gb("code",{children:"PT1H30M"})," - ",t("1 hour and 30 minutes")]}),gb("li",{children:[gb("code",{children:"P14D"})," - ",t("14 days")]})]}),gb("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-duration",target:"_blank",rel:"noopener",title:t("Timer documentation"),children:t("How to configure a timer")})]})}}DO.$inject=["bpmnFactory","commandStack"];const zS=[function(e){const t={id:"businessRuleImplementation",label:"Implementation",entries:[...vO({element:e})],component:Yb};return t.entries.length?t:null},function(e){const t={id:"calledDecision",label:"Called decision",entries:[..._O({element:e})],component:Yb};return t.entries.length?t:null},function(e){const t={id:"taskDefinition",label:"Task definition",entries:[...ES({element:e})],component:Yb};return t.entries.length?t:null},function(e){const t={id:"assignmentDefinition",label:"Assignment",entries:[...dO({element:e})],component:Yb};return t.entries.length?t:null},function(e,t){const n={id:"form",label:"Form",entries:[...MO({element:e,injector:t})],component:Yb};return n.entries.length?n:null},function(e){const t={id:"condition",label:"Condition",entries:[...SO({element:e})],component:Yb};return t.entries.length?t:null},function(e){const t={id:"calledElement",label:"Called element",entries:[...wS({element:e})],component:Yb};return t.entries.length?t:null},function(e,t){const n={id:"inputs",label:"Inputs",component:ax,...ZO({element:e,injector:t})};return n.items?n:null},function(e){const t={id:"outputPropagation",label:"Output propagation",entries:[...yS({element:e})],component:Yb};return t.entries.length?t:null},function(e,t){const n={id:"outputs",label:"Outputs",component:ax,...vS({element:e,injector:t})};return n.items?n:null},function(e,t){const n={id:"headers",label:"Headers",component:ax,...FO({element:e,injector:t})};return n.items?n:null}];class DS{constructor(e,t){e.registerProvider(500,this),this._injector=t}getGroups(e){return t=>(function(e,t){const n=jS(e,"message");if(!n)return;n.entries=(i=n.entries,r=eS({element:t}),[...i.filter((e=>!r.find((t=>t.id===e.id)))),...r]);var i,r}(t=t.concat(this._getGroups(e)),e),function(e,t){const n=jS(e,"timer");if(!n)return;n.entries=[...kS({element:t})]}(t,e),function(e,t){const n=jS(e,"multiInstance");if(!n)return;n.entries=[...rS({element:t})]}(t,e),t=function(e,t){const n=jS(e,"message");(function(e){return wr(e,"bpmn:EndEvent")&&!!jE(e)}(t)||function(e){return wr(e,"bpmn:IntermediateThrowEvent")&&!!jE(e)}(t))&&(e=e.filter((e=>e!=n)));return e}(t,e))}_getGroups(e){return zS.map((t=>t(e,this._injector))).filter((e=>null!==e))}}function jS(e,t){return e.find((e=>e.id===t))}DS.$inject=["propertiesPanel","injector"];var BS={__init__:["zeebePropertiesProvider"],zeebePropertiesProvider:["type",DS]};function NS(e){const t=Er(e);if(t)return t.get("zeebe:modelerTemplate")}function LS(e,t){const n=Er(e);let i;return i=wr(n,"bpmn:ExtensionElements")?n:n.get("extensionElements"),i?i.get("values").find((e=>wr(e,t))):null}function IS(e,t){return e.get("inputParameters").find((e=>e.target===t.name))}function $S(e,t){return e.get("outputParameters").find((e=>e.source===t.source))}function FS(e,t){return e.get("values").find((e=>e.key===t.key))}function VS(e){const t=Er(e);if(t)return t.get("camunda:modelerTemplate")}class HS{constructor(e){this._commandStack=e,this._templates={}}get(e,t){const n=this._templates;let i;return l(e)?null:y(e)?(l(t)&&(t="_"),n[e]&&n[e][t]?n[e][t]:null):(i=e,this.get(this._getTemplateId(i),this._getTemplateVersion(i)))}getDefault(e){return b(this.getAll(),(function(t){return _r(e,t.appliesTo)&&t.isDefault}))||null}getAll(e){return!l(e)&&this._templates[e]?T(this._templates[e]):a(T(this._templates).map(T))}set(e){this._templates={},e.forEach((e=>{const t=e.id,n=l(e.version)?"_":e.version;this._templates[t]||(this._templates[t]={}),this._templates[t][n]=e}))}_getTemplateId(e){return VS(e)}_getTemplateVersion(e){return function(e){const t=Er(e);if(t)return t.get("camunda:modelerTemplateVersion")}(e)}applyTemplate(e,t){const n=this.get(e);return this._commandStack.execute("propertiesPanel.camunda.changeTemplate",{element:e,newTemplate:t,oldTemplate:n}),e}}HS.$inject=["commandStack"];class qS extends HS{constructor(e,t){super(t),this._commandStack=t,this._templateElementFactory=e}_getTemplateId(e){return NS(e)}_getTemplateVersion(e){return function(e){const t=Er(e);if(t)return t.get("zeebe:modelerTemplateVersion")}(e)}createElement(e){if(!e)throw new Error("template is missing");return this._templateElementFactory.create(e)}applyTemplate(e,t){const n=this.get(e);return this._commandStack.execute("propertiesPanel.zeebe.changeTemplate",{element:e,newTemplate:t,oldTemplate:n}),e}}qS.$inject=["templateElementFactory","commandStack"];const US="0.8.0";class GS{constructor(){this._templatesById={},this._validTemplates=[],this._errors=[]}addAll(e){return d(e)?e.forEach(this.add,this):this._logError("templates must be []"),this}add(e){let t,n;return this._validateTemplate(e)||(t=e.id,n=e.version||"_",this._templatesById[t]||(this._templatesById[t]={}),this._templatesById[t][n]=e,this._validTemplates.push(e)),this}_validateTemplate(e){let t;const n=e.id,i=e.version||"_",r=e.$schema&&WS(e.$schema);if(r&&Dx(US,r)<0)return this._logError(`unsupported element template schema version <${r}>. Your installation only supports up to version <0.8.0>. Please update your installation`,e);if(this._templatesById[n]&&this._templatesById[n][i])return"_"===i?this._logError(`template id <${n}> already used`,e):this._logError(`template id <${n}> and version <${i}> already used`,e);const o=ow(e,Bx);const{errors:a,valid:s}=o;return s||(t=new Error("invalid template"),KS(a).forEach((t=>{this._logError(t.message,e)}))),t}_logError(e,t){if(y(e)){if(t){const{id:n,name:i}=t;e=`template(id: <${n}>, name: <${i}>): ${e}`}e=new Error(e)}return this._errors.push(e),e}getErrors(){return this._errors}getValidTemplates(){return this._validTemplates}}function WS(e){const t=e.match(/\d+\.\d+\.\d+/g);return null===t?void 0:t[0]}function KS(e){return w(e,(e=>{const{dataPath:t,keyword:n}=e;return"errorMessage"===n||!("type"!==n||!t||t.startsWith("/scopes/"))}))}const YS="0.2.0";class XS extends GS{constructor(){super()}_validateTemplate(e){let t;const n=e.id,i=e.version||"_",r=e.$schema,o=r&&WS(r);if(!r)return this._logError("missing $schema attribute.",e);if(!this.isSchemaValid(r))return this._logError(`unsupported $schema attribute <${r}>.`,e);if(o&&Dx(YS,o)<0)return this._logError(`unsupported element template schema version <${o}>. Your installation only supports up to version <0.2.0>. Please update your installation`,e);if(this._templatesById[n]&&this._templatesById[n][i])return"_"===i?this._logError(`template id <${n}> already used`,e):this._logError(`template id <${n}> and version <${i}> already used`,e);const a=ow(e,sw);const{errors:s,valid:p}=a;return p||(t=new Error("invalid template"),KS(s).forEach((t=>{this._logError(t.message,e)}))),t}isSchemaValid(e){return e&&e.includes("@camunda/zeebe-element-templates-json-schema")}}class ZS{constructor(e,t,n){this._loadTemplates=e,this._eventBus=t,this._elementTemplates=n,t.on("diagram.init",(()=>{this.reload()}))}reload(){const e=this._loadTemplates;if(!l(e))return f(e)?e(((e,t)=>{if(e)return this.templateErrors([e]);this.setTemplates(t)})):e.length?this.setTemplates(e):void 0}setTemplates(e){const t=this._elementTemplates,n=(new GS).addAll(e),i=n.getErrors(),r=n.getValidTemplates();t.set(r),i.length&&this.templateErrors(i),this.templatesChanged()}templatesChanged(){this._eventBus.fire("elementTemplates.changed")}templateErrors(e){this._eventBus.fire("elementTemplates.errors",{errors:e})}}ZS.$inject=["config.elementTemplates","eventBus","elementTemplates"];class JS extends ZS{constructor(e,t,n){super(e,t,n),this._elementTemplates=n}setTemplates(e){const t=this._elementTemplates,n=(new XS).addAll(e),i=n.getErrors(),r=n.getValidTemplates();t.set(r),i.length&&this.templateErrors(i),this.templatesChanged()}}function QS(e,t){t.on("moddleCopy.canCopyProperty",(function(t){const{parent:n,property:i,propertyName:r}=t;if("modelerTemplate"!==r)return;const o=e.get(i);if(!o)return!1;const{appliesTo:a}=o;return!!a.reduce(((e,t)=>e||wr(n,t)),!1)&&void 0}))}function ek(e,t,n){const{name:i}=e;return n.create("zeebe:Input",{source:t,target:i})}function tk(e,t,n){const{source:i}=e;return n.create("zeebe:Output",{source:i,target:t})}function nk(e,t,n){const{key:i}=e;return n.create("zeebe:Header",{key:i,value:t})}function ik(e,t){return t.create("zeebe:TaskDefinition",{type:e})}function rk(e,t){const{optional:n}=t;return e||!n}function ok(e,t,n){const i=Er(e).get("extensionElements");let r=LS(i,t);return r||(r=n.create(t),r.$parent=i,i.get("values").push(r)),r}JS.$inject=["config.elementTemplates","eventBus","elementTemplates"],QS.$inject=["elementTemplates","eventBus"];class ak{constructor(e,t,n){this._bpmnFactory=e,this._commandStack=t,this._modeling=n}preExecute(e){const t=e.element,n=e.newTemplate,i=e.oldTemplate;this._updateZeebeModelerTemplate(t,n),n&&(this._updateProperties(t,i,n),this._updateZeebeTaskDefinition(t,i,n),this._updateZeebeInputOutputParameterProperties(t,i,n),this._updateZeebeTaskHeaderProperties(t,i,n))}_getOrCreateExtensionElements(e){const t=this._bpmnFactory,n=this._modeling,i=Er(e);let r=i.get("extensionElements");return r||(r=t.create("bpmn:ExtensionElements",{values:[]}),r.$parent=i,n.updateProperties(e,{extensionElements:r})),r}_updateZeebeModelerTemplate(e,t){this._modeling.updateProperties(e,{"zeebe:modelerTemplate":t&&t.id,"zeebe:modelerTemplateVersion":t&&t.version})}_updateProperties(e,t,n){const i=this._commandStack,r=n.properties.filter((e=>"property"===e.binding.type));if(!r.length)return;const o=Er(e);r.forEach((n=>{const r=pk(t,n),a=n.binding.name,s=n.value;let p={};r&&lk(o,r)||(p[a]=s,i.execute("element.updateModdleProperties",{element:e,moddleElement:o,properties:p}))}))}_updateZeebeTaskDefinition(e,t,n){const i=this._bpmnFactory,r=this._commandStack,o=n.properties.filter((e=>"zeebe:taskDefinition:type"===e.binding.type));if(!o.length)return;const a=this._getOrCreateExtensionElements(e);o.forEach((n=>{const o=pk(t,n),s=o&&o.binding,p=s&&s.type,l=o&&sk(a,o),c=n.value,u=n.binding.type;if(o&&l){if(!lk(l,o)){let t={};"zeebe:taskDefinition:type"===p&&(t={type:c}),r.execute("element.updateModdleProperties",{element:e,moddleElement:l,properties:t})}}else{let t;"zeebe:taskDefinition:type"===u&&(t=ik(c,i)),r.execute("element.updateModdleProperties",{element:e,moddleElement:a,properties:{values:[...a.get("values"),t]}})}}))}_updateZeebeInputOutputParameterProperties(e,t,n){const i=this._bpmnFactory,r=this._commandStack,o=n.properties.filter((e=>{const t=e.binding.type;return"zeebe:input"===t||"zeebe:output"===t}));if(!o.length)return;const a=this._getOrCreateExtensionElements(e);let s=LS(a,"zeebe:IoMapping");s||(s=i.create("zeebe:IoMapping"),r.execute("element.updateModdleProperties",{element:e,moddleElement:a,properties:{values:[...a.get("values"),s]}}));const p=s.get("zeebe:inputParameters")?s.get("zeebe:inputParameters").slice():[],l=s.get("zeebe:outputParameters")?s.get("zeebe:outputParameters").slice():[];let c;o.forEach((n=>{const o=pk(t,n),u=o&&sk(a,o),d=n.value,h=n.binding,m=h.type;let f,y;o&&u?((rk(d,n)||lk(u,o))&&(wr(u,"zeebe:Input")?ck(p,u):ck(l,u)),lk(u,o)||(y=wr(u,"zeebe:Input")?{source:d}:{target:d},r.execute("element.updateModdleProperties",{element:e,moddleElement:u,properties:y}))):rk(d,n)&&("zeebe:input"===m?(c="inputParameters",f=ek(h,d,i)):(c="outputParameters",f=tk(h,d,i)),r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{[c]:[...s.get(c),f]}}))})),p.length&&r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{inputParameters:E(s.get("inputParameters"),(e=>p.includes(e)))}}),l.length&&r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{outputParameters:E(s.get("outputParameters"),(e=>l.includes(e)))}})}_updateZeebeTaskHeaderProperties(e,t,n){const i=this._bpmnFactory,r=this._commandStack,o=n.properties.filter((e=>"zeebe:taskHeader"===e.binding.type));if(!o.length)return;const a=this._getOrCreateExtensionElements(e);let s=LS(a,"zeebe:TaskHeaders");s||(s=i.create("zeebe:TaskHeaders"),r.execute("element.updateModdleProperties",{element:e,moddleElement:a,properties:{values:[...a.get("values"),s]}}));const p=s.get("zeebe:values")?s.get("zeebe:values").slice():[];o.forEach((n=>{const o=pk(t,n),l=o&&sk(a,o),c=n.value,u=n.binding;if(o&&l){if(!lk(l,o)){const t={value:c};r.execute("element.updateModdleProperties",{element:e,moddleElement:l,properties:t})}ck(p,l)}else{const t=nk(u,c,i);r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{values:[...s.get("values"),t]}})}})),p.length&&r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{values:E(s.get("values"),(e=>p.includes(e)))}})}}function sk(e,t){let n=Er(e);const i=t.binding,r=i.type;if("zeebe:taskDefinition:type"===r)return LS(n,"zeebe:TaskDefinition");if("zeebe:input"===r||"zeebe:output"===r){if(n=LS(n,"zeebe:IoMapping"),!n)return;return"zeebe:input"===r?b(n.get("zeebe:inputParameters"),(function(e){return e.get("zeebe:target")===i.name})):b(n.get("zeebe:outputParameters"),(function(e){return e.get("zeebe:source")===i.source}))}if("zeebe:taskHeader"===r){if(n=LS(n,"zeebe:TaskHeaders"),!n)return;return b(n.get("zeebe:values"),(function(e){return e.get("zeebe:key")===i.key}))}}function pk(e,t){if(!e)return;const n=e.properties,i=t.binding,r=i.name,o=i.type;return"property"===o?b(n,(function(e){const t=e.binding,n=t.name;return"property"===t.type&&n===r})):"zeebe:taskDefinition:type"===o?b(n,(function(e){return"zeebe:taskDefinition:type"===e.binding.type})):"zeebe:input"===o?b(n,(function(e){const t=e.binding,n=t.name;if("zeebe:input"===t.type)return n===r})):"zeebe:output"===o?b(n,(function(e){const t=e.binding;if("zeebe:output"===t.type)return t.source===i.source})):"zeebe:taskHeader"===o?b(n,(function(e){const t=e.binding;if("zeebe:taskHeader"===t.type)return t.key===i.key})):void 0}function lk(e,t){const n=Er(e),i=t.binding,r=i.name,o=i.type,a=t.value;return"property"===o?n.get(r)!==a:"zeebe:taskDefinition:type"===o?n.get("zeebe:type")!==a:"zeebe:input"===o?n.get("zeebe:source")!==a:"zeebe:output"===o?n.get("zeebe:target")!==a:"zeebe:taskHeader"===o?n.get("zeebe:value")!==a:void 0}function ck(e,t){const n=e.indexOf(t);return l(n)||e.splice(n,1),e}function uk(e,t,n){e.registerHandler("propertiesPanel.zeebe.changeTemplate",ak),n.on(["commandStack.shape.create.postExecuted"],(function(n){hk(n.context.shape,t,e)})),n.on(["commandStack.connection.create.postExecuted"],(function(n){hk(n.context.connection,t,e)}))}ak.$inject=["bpmnFactory","commandStack","modeling"],uk.$inject=["commandStack","elementTemplates","eventBus"];var dk={__init__:[uk]};function hk(e,t,n){if(!t.get(e)&&t.getDefault(e)){const i="propertiesPanel.zeebe.changeTemplate",r={element:e,newTemplate:t.getDefault(e)};n.execute(i,r)}}class mk{static create(e,t){const{property:n}=t,{binding:i,value:r}=n,{name:o}=i;Er(e)[o]=r}}class fk{static create(e,t){const{property:n,bpmnFactory:i}=t,{value:r}=n,o=Er(e).get("extensionElements"),a=ik(r,i);a.$parent=o,o.get("values").push(a)}}class yk{static create(e,t){const{property:n,bpmnFactory:i}=t,{binding:r,value:o}=n,a=ok(e,"zeebe:IoMapping",i);if(!rk(o,n))return;const s=ek(r,o,i);s.$parent=a,a.get("inputParameters").push(s)}}class gk{static create(e,t){const{property:n,bpmnFactory:i}=t,{binding:r,value:o}=n,a=ok(e,"zeebe:IoMapping",i);if(!rk(o,n))return;const s=tk(r,o,i);s.$parent=a,a.get("outputParameters").push(s)}}class vk{static create(e,t){const{property:n,bpmnFactory:i}=t,{binding:r,value:o}=n,a=ok(e,"zeebe:TaskHeaders",i),s=nk(r,o,i);s.$parent=a,a.get("values").push(s)}}const bk="property",xk="zeebe:input",wk="zeebe:output",_k="zeebe:taskDefinition:type",Ek="zeebe:taskHeader",Pk=[xk,wk,_k,Ek],Ok=[_k],Sk=[xk,wk];class kk{constructor(e,t){this._bpmnFactory=e,this._elementFactory=t,this._providers={[bk]:mk,[_k]:fk,[xk]:yk,[wk]:gk,[Ek]:vk}}create(e){const{appliesTo:t,properties:n}=e,i=this._elementFactory,r=this._bpmnFactory,o=this._providers,a=(s=[e],(new XS).addAll(s).getErrors());var s;if(a&&a.length)throw new Error("template is invalid");const p=t[0],l=i.createShape({type:p});return function(e){const{properties:t}=e;return b(t,(function(e){const{binding:t}=e;return Pk.includes(t.type)}))}(e)&&this._ensureExtensionElements(l),this._setModelerTemplate(l,e),n.forEach((function(e){const{binding:t}=e,{type:n}=t;o[n].create(l,{property:e,bpmnFactory:r})})),l}_ensureExtensionElements(e){const t=this._bpmnFactory,n=Er(e);let i=n.get("extensionElements");return i||(i=t.create("bpmn:ExtensionElements",{values:[]}),i.$parent=n,n.set("extensionElements",i)),i}_setModelerTemplate(e,t){const{id:n,version:i}=t,r=Er(e);r.set("zeebe:modelerTemplate",n),r.set("zeebe:modelerTemplateVersion",i)}}kk.$inject=["bpmnFactory","elementFactory"];var Ck={__init__:["templateElementFactory"],templateElementFactory:["type",kk]};function Mk(e,t){t.get("modeling").updateProperties(e,{"camunda:modelerTemplate":null,"camunda:modelerTemplateVersion":null})}function Tk(e,t){const n=t.get("replace"),i=t.get("selection"),r=Er(e),o=r.$type,a=function(e){if(!e.eventDefinitions)return null;var t=e.eventDefinitions[0];if(!t)return null;return t.$type}(r),s=n.replaceElement(e,{type:o,eventDefinitionType:a});i.select(s)}function Ak(e,t,n){return n.get("elementTemplates").applyTemplate(e,t)}function Rk(e){var t=e.metadata,n=e.version;if(t){if(!l(t.created))return zk(t.created);if(!l(t.updated))return zk(t.updated)}return l(n)?null:n}function zk(e){var t=new Date(e),n=t.getFullYear(),i=Dk(String(t.getMonth()+1),2,"0");return Dk(String(t.getDate()),2,"0")+"."+i+"."+n}function Dk(e,t,n){for(;e.length<t;)e=n+e;return e}function jk(e={}){const{getTemplateId:t=VS,unlinkTemplate:n=Mk,updateTemplate:i=Ak}=e;return function(e){const{id:r,label:o,element:a,entries:s=[]}=e,[p,l]=Hb(["groups",r,"open"],!1),c=!s.length;return gb("div",{class:"bio-properties-panel-group bio-properties-panel-templates-group","data-group-id":"group-"+r,children:[gb("div",{class:yb("bio-properties-panel-group-header",{empty:c,open:p&&!c}),onClick:()=>!c&&l(!p),children:[gb("div",{title:o,class:"bio-properties-panel-group-header-title",children:o}),gb("div",{class:"bio-properties-panel-group-header-buttons",children:[gb(Nk,{element:a,getTemplateId:t,unlinkTemplate:n,updateTemplate:i}),!c&&gb(Bk,{open:p})]})]}),gb("div",{class:yb("bio-properties-panel-group-entries",{open:p&&!c}),children:s.map((e=>{const{component:t,id:n}=e;return Ev(t,{...e,key:n,element:a})}))})]})}}function Bk({open:e}){return gb(nx,{title:"Toggle section",class:"bio-properties-panel-arrow",children:gb(qb,{class:e?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})})}function Nk({element:e,getTemplateId:t,unlinkTemplate:n,updateTemplate:i}){const r=function(e,t,n){const i=n(t),r=e.get(t);if(!i)return{type:"NO_TEMPLATE"};if(!r)return{type:"UNKNOWN_TEMPLATE",templateId:i};const o=function(e,t){if(l(t.version))return null;return e.getAll().filter((function(e){return t.id===e.id&&!l(e.version)})).reduce((function(e,n){return t.version<n.version||e&&e.version<n.version?n:e}),null)}(e,r);if(o)return{type:"OUTDATED_TEMPLATE",template:r,newerTemplate:o};return{type:"KNOWN_TEMPLATE",template:r}}(kE("elementTemplates"),e,t);return"NO_TEMPLATE"===r.type?gb(Lk,{element:e}):"KNOWN_TEMPLATE"===r.type?gb(Ik,{element:e,unlinkTemplate:n}):"UNKNOWN_TEMPLATE"===r.type?gb(Fk,{element:e,unlinkTemplate:n}):"OUTDATED_TEMPLATE"===r.type?gb(Hk,{element:e,templateState:r,unlinkTemplate:n,updateTemplate:i}):void 0}function Lk({element:e}){const t=kE("translate"),n=kE("eventBus");return gb(nx,{title:"Select a template",class:"bio-properties-panel-select-template-button",onClick:()=>n.fire("elementTemplates.select",{element:e}),children:[gb(Ub,{}),gb("span",{children:t("Select")})]})}function Ik({element:e,unlinkTemplate:t}){const n=kE("translate"),i=kE("injector"),r=[{entry:n("Unlink"),action:()=>t(e,i)},{entry:gb($k,{}),action:()=>Tk(e,i)}];return gb(ex,{menuItems:r,class:"bio-properties-panel-applied-template-button",children:gb(nx,{children:[gb("span",{children:n("Applied")}),gb(qb,{class:"bio-properties-panel-arrow-down"})]})})}function $k(){return gb("span",{class:"bio-properties-panel-remove-template",children:kE("translate")("Remove")})}function Fk({element:e,unlinkTemplate:t}){const n=kE("translate"),i=kE("injector"),r=[{entry:gb(Vk,{})},{separator:!0},{entry:n("Unlink"),action:()=>t(e,i)},{entry:gb($k,{}),action:()=>Tk(e,i)}];return gb(ex,{menuItems:r,class:"bio-properties-panel-template-not-found",children:gb(nx,{children:[gb("span",{children:n("Not found")}),gb(qb,{class:"bio-properties-panel-arrow-down"})]})})}function Vk(){return gb("div",{class:"bio-properties-panel-template-not-found-text",children:kE("translate")("The template applied was not found. Therefore, its properties cannot be shown. Unlink to access the data.")})}function Hk({element:e,templateState:t,unlinkTemplate:n,updateTemplate:i}){const{newerTemplate:r}=t,o=kE("translate"),a=kE("injector"),s=[{entry:gb(qk,{newerTemplate:r})},{separator:!0},{entry:o("Update"),action:()=>i(e,r,a)},{entry:o("Unlink"),action:()=>n(e,a)},{entry:gb($k,{}),action:()=>Tk(e,a)}];return gb(ex,{menuItems:s,class:"bio-properties-panel-template-update-available",children:gb(nx,{children:[gb("span",{children:o("Update available")}),gb(qb,{class:"bio-properties-panel-arrow-down"})]})})}function qk({newerTemplate:e}){return gb("div",{class:"bio-properties-panel-template-update-available-text",children:kE("translate")("A new version of the template is available: {templateVersion}",{templateVersion:Rk(e)})})}function Uk({element:e,elementTemplates:t}){const n=t.get(e);return n?[{id:"template-name",component:Gk,template:n},{id:"template-version",component:Wk,template:n},{id:"template-description",component:Kk,template:n}].filter((e=>!!e.component)):[]}function Gk({id:e,template:t}){return gb(Yk,{id:e,label:kE("translate")("Name"),content:t.name})}function Wk({id:e,template:t}){const n=kE("translate"),i=Rk(t);return i?gb(Yk,{id:e,label:n("Version"),content:i}):null}function Kk({id:e,template:t}){const n=kE("translate"),{description:i}=t;return i?gb(Yk,{id:e,label:n("Description"),content:t.description}):null}function Yk({id:e,label:t,content:n}){return gb("div",{"data-entry-id":e,class:"bio-properties-panel-entry bio-properties-panel-text-entry",children:[gb("span",{class:"bio-properties-panel-label",children:t}),gb("span",{class:"bio-properties-panel-text-entry__content",children:n})]})}var Xk,Zk={};function Jk(e,t,n){if(3===e.nodeType){var i="textContent"in e?e.textContent:e.nodeValue||"";if(!1!==Jk.options.trim){var r=0===t||t===n.length-1;if((!(i=i.match(/^[\s\n]+$/g)&&"all"!==Jk.options.trim?" ":i.replace(/(^[\s\n]+|[\s\n]+$)/g,"all"===Jk.options.trim||r?"":" "))||" "===i)&&n.length>1&&r)return null}return i}if(1!==e.nodeType)return null;var o=String(e.nodeName).toLowerCase();if("script"===o&&!Jk.options.allowScripts)return null;var a,s,p=Jk.h(o,function(e){var t=e&&e.length;if(!t)return null;for(var n={},i=0;i<t;i++){var r=e[i],o=r.name,a=r.value;"on"===o.substring(0,2)&&Jk.options.allowEvents&&(a=new Function(a)),n[o]=a}return n}(e.attributes),(s=(a=e.childNodes)&&Array.prototype.map.call(a,Jk).filter(eC))&&s.length?s:null);return Jk.visitor&&Jk.visitor(p),p}var Qk,eC=function(e){return e},tC={};function nC(e){var t=(e.type||"").toLowerCase(),n=nC.map;n&&n.hasOwnProperty(t)?(e.type=n[t],e.props=Object.keys(e.props||{}).reduce((function(t,n){var i;return t[(i=n,i.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=e.props[n],t}),{})):e.type=t.replace(/[^a-z0-9-]/i,"")}var iC=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.setReviver=function(e){Qk=e},t.prototype.shouldComponentUpdate=function(e){var t=this.props;return e.wrap!==t.wrap||e.type!==t.type||e.markup!==t.markup},t.prototype.setComponents=function(e){if(this.map={},e)for(var t in e)if(e.hasOwnProperty(t)){var n=t.replace(/([A-Z]+)([A-Z][a-z0-9])|([a-z0-9]+)([A-Z])/g,"$1$3-$2$4").toLowerCase();this.map[n]=e[t]}},t.prototype.render=function(e){var t=e.wrap;void 0===t&&(t=!0);var n,i=e.type,r=e.markup,o=e.components,a=e.reviver,s=e.onError,p=e["allow-scripts"],l=e["allow-events"],c=e.trim,u=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&-1===t.indexOf(i)&&(n[i]=e[i]);return n}(e,["wrap","type","markup","components","reviver","onError","allow-scripts","allow-events","trim"]),d=a||this.reviver||this.constructor.prototype.reviver||Qk||Ev;this.setComponents(o);var h={allowScripts:p,allowEvents:l,trim:c};try{n=function(e,t,n,i,r){var o=function(e,t){var n,i,r,o,a="html"===t?"text/html":"application/xml";"html"===t?(o="body",r="<!DOCTYPE html>\n<html><body>"+e+"</body></html>"):(o="xml",r='<?xml version="1.0" encoding="UTF-8"?>\n<xml>'+e+"</xml>");try{n=(new DOMParser).parseFromString(r,a)}catch(e){i=e}if(n||"html"!==t||((n=Xk||(Xk=function(){if(document.implementation&&document.implementation.createHTMLDocument)return document.implementation.createHTMLDocument("");var e=document.createElement("iframe");return e.style.cssText="position:absolute; left:0; top:-999em; width:1px; height:1px; overflow:hidden;",e.setAttribute("sandbox","allow-forms"),document.body.appendChild(e),e.contentWindow.document}())).open(),n.write(r),n.close()),n){var s=n.getElementsByTagName(o)[0],p=s.firstChild;return e&&!p&&(s.error="Document parse failed."),p&&"parsererror"===String(p.nodeName).toLowerCase()&&(p.removeChild(p.firstChild),p.removeChild(p.lastChild),s.error=p.textContent||p.nodeValue||i||"Unknown error",s.removeChild(p)),s}}(e,t);if(o&&o.error)throw new Error(o.error);var a=o&&o.body||o;nC.map=i||tC;var s=a&&function(e,t,n,i){return Jk.visitor=t,Jk.h=n,Jk.options=i||Zk,Jk(e)}(a,nC,n,r);return nC.map=null,s&&s.props&&s.props.children||null}(r,i,d,this.map,h)}catch(e){s?s({error:e}):"undefined"!=typeof console&&console.error&&console.error("preact-markup: "+e)}if(!1===t)return n||null;var m=u.hasOwnProperty("className")?"className":"class",f=u[m];return f?f.splice?f.splice(0,0,"markup"):"string"==typeof f?u[m]+=" markup":"object"==typeof f&&(f.markup=!0):u[m]="markup",d("div",u,n||null)},t}(Sv);const rC=["h1","h2","h3","h4","h5","span","em","a","p","div","ul","ol","li","hr","blockquote","img","pre","code","br","strong"],oC=["align","alt","class","href","id","name","rel","target","src"],aC=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,sC=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g,pC=document.createElement("form");function lC(e){const t=(new DOMParser).parseFromString(`<!DOCTYPE html>\n<html><body><div>${e}`,"text/html");t.normalize();const n=t.body.firstChild;return n?(cC(n),(new XMLSerializer).serializeToString(n)):""}function cC(e){if(3===e.nodeType)return;if(1!==e.nodeType)return e.remove();const t=e.tagName.toLowerCase();if(!rC.includes(t))return e.remove();const n=e.attributes;for(let i=n.length;i--;){const r=n[i],o=r.name,a=o.toLowerCase(),s=r.value.trim();e.removeAttribute(o);uC(t,a,s)&&e.setAttribute(o,s)}"a"===t&&"_blank"===e.getAttribute("target")&&"noopener"!==e.getAttribute("rel")&&e.setAttribute("rel","noopener");for(let t=e.childNodes.length;t--;)cC(e.childNodes[t])}function uC(e,t,n){return!!oC.includes(t)&&(("id"!==t&&"name"!==t||!(n in document)&&!(n in pC))&&(("target"!==t||"_blank"===n)&&!("href"===t&&!aC.test(n.replace(sC,"")))))}function dC(e){const{description:t}=e;return t&&gb(iC,{markup:lC(t),trim:!1})}const hC=["Boolean","Integer","String"],mC={id:"ElementTemplates__CustomProperties",label:"Custom properties"};function fC(e){const{element:t,elementTemplate:n}=e,i=[],{id:r,properties:o,groups:a}=n,s=function(e){return A(e,"group")}(o),p=[];return _(s,((e,n)=>{const o=function(e,t){return b(e,(e=>e.id===t))}(a,n);if(!o)return p.push(...e);yC(i,{element:t,id:`ElementTemplates__CustomProperties-${n}`,label:o.label,properties:e,templateId:`${r}-${n}`})})),p.length&&yC(i,{...mC,element:t,properties:p,templateId:r}),i}function yC(e,t){const{element:n,id:i,label:r,properties:o,templateId:a}=t,s={id:i,label:r,component:Yb,entries:[]};o.forEach(((e,t)=>{const n=function(e,t,n){let{type:i}=n;i||(i=function(e){const{binding:t}=e,{type:n}=t;if([bk,_k,xk,wk,Ek].includes(n))return"String"}(n));if("Boolean"===i)return{id:e,component:gC,isEdited:hx,property:n};if("Dropdown"===i)return{id:e,component:vC,isEdited:gx,property:n};if("String"===i)return{id:e,component:bC,isEdited:Sx,property:n};if("Text"===i)return{id:e,component:xC,isEdited:_x,property:n}}(`custom-entry-${a}-${t}`,0,e);n&&s.entries.push(n)})),s.entries.length&&e.push(s)}function gC(e){const{element:t,id:n,property:i}=e,{description:r,editable:o,label:a}=i,s=kE("bpmnFactory"),p=kE("commandStack");return dx({element:t,getValue:wC(t,i),id:n,label:a,description:dC({description:r}),setValue:_C(s,p,t,i),disabled:!1===o})}function vC(e){const{element:t,id:n,property:i}=e,{description:r,editable:o,label:a}=i,s=kE("bpmnFactory"),p=kE("commandStack");return yx({element:t,id:n,label:a,getOptions:()=>{const{choices:e}=i;return e.map((({name:e,value:t})=>({label:e,value:t})))},description:dC({description:r}),getValue:wC(t,i),setValue:_C(s,p,t,i),disabled:!1===o})}function bC(e){const{element:t,id:n,property:i}=e,{description:r,editable:o,label:a,feel:s}=i,p=kE("bpmnFactory"),l=kE("commandStack"),c=kE("debounceInput"),u=kE("translate");return Ox({debounce:c,element:t,getValue:wC(t,i),id:n,label:a,feel:s,description:dC({description:r}),setValue:_C(p,l,t,i),validate:EC(u,i),disabled:!1===o})}function xC(e){const{element:t,id:n,property:i}=e,{description:r,editable:o,label:a,feel:s}=i,p=kE("bpmnFactory"),l=kE("commandStack");return wx({debounce:kE("debounceInput"),element:t,id:n,label:a,feel:s,description:dC({description:r}),getValue:wC(t,i),setValue:_C(p,l,t,i),disabled:!1===o})}function wC(e,t){return function(){let n=Er(e);const{binding:i,optional:r,value:o=""}=t,{name:a,type:s}=i;if("property"===s){const e=n.get(a);return l(e)?o:e}if(Ok.includes(s)){const e=LS(n,"zeebe:TaskDefinition");return e&&s===_k?e.get("type"):o}if(Sk.includes(s)){const e=LS(n,"zeebe:IoMapping");if(!e)return o;if(s===xk){const t=IS(e,i);return t?t.get("source"):r?"":o}if(s===wk){const t=$S(e,i);return t?t.get("target"):r?"":o}}if(s===Ek){const e=LS(n,"zeebe:TaskHeaders");if(!e)return o;const t=FS(e,i);return t?t.get("value"):o}throw PC(e,t)}}function _C(e,t,n,i){return function(r){let o=Er(n);const{binding:a}=i,{name:s,type:p}=a;let c,u;const d=[];if(Pk.includes(p)&&(c=o.get("extensionElements"),c||(c=iP("bpmn:ExtensionElements",null,o,e),d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:o,properties:{extensionElements:c}}}))),"property"===p){const e=o.$descriptor.propertiesByName[s],{type:t}=e;if(!hC.includes(t))throw new Error(`cannot set property of type <${t}>`);"Boolean"===t?u=!!r:"Integer"===t?(u=parseInt(r,10),isNaN(u)&&(u=void 0)):u=r||"",l(u)||d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:o,properties:{[s]:u}}})}if(Ok.includes(p)){const t=LS(c,"zeebe:TaskDefinition");let o;if(p!==_k)return PC(n,i);o=ik(r,e);const a=c.get("values").filter((e=>e!==t));d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:c,properties:{values:[...a,o]}}})}if(Sk.includes(p)){let t=LS(c,"zeebe:IoMapping");if(t||(t=iP("zeebe:IoMapping",null,o,e),d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:c,properties:{values:[...c.get("values"),t]}}})),p===xk){const o=IS(t,a),s=t.get("inputParameters").filter((e=>e!==o));if(rk(r,i)){const t=ek(a,r,e);s.push(t)}d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:t,properties:{inputParameters:[...s]}}})}if(p===wk){const o=$S(t,a),s=t.get("outputParameters").filter((e=>e!==o));if(rk(r,i)){const t=tk(a,r,e);s.push(t)}d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:t,properties:{outputParameters:[...s]}}})}}if(p===Ek){let t=LS(c,"zeebe:TaskHeaders");t||(t=iP("zeebe:TaskHeaders",null,o,e),d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:c,properties:{values:[...c.get("values"),t]}}}));const i=FS(t,a),s=nk(a,r,e),p=t.get("values").filter((e=>e!==i));d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:t,properties:{values:[...p,s]}}})}if(!d.length)throw PC(n,i);t.execute("properties-panel.multi-command-executor",d)}}function EC(e,t){return function(n){const{constraints:i={}}=t,{maxLength:r,minLength:o,notEmpty:a}=i;if(a&&(!(s=n)||!s.trim().length))return e("Must not be empty.");var s;if(r&&n.length>r)return e("Must have max length {maxLength}.",{maxLength:r});if(o&&n.length<o)return e("Must have min length {minLength}.",{minLength:o});let{pattern:p}=i;if(p){let t;if(y(p)||(t=p.message,p=p.value),!function(e,t){return new RegExp(t).test(e)}(n,p))return t||e("Must match pattern {pattern}.",{pattern:p})}}}function PC(e,t){const n=Er(e).get("id"),{binding:i}=t,{type:r}=i;return new Error(`unknown binding <${r}> for element <${n}>, this should never happen`)}function OC(e,t){t.get("modeling").updateProperties(e,{"zeebe:modelerTemplate":null,"zeebe:modelerTemplateVersion":null})}function SC(e,t,n){return n.get("elementTemplates").applyTemplate(e,t)}class kC{constructor(e,t,n){t.registerProvider(300,this),this._elementTemplates=e,this._injector=n}getGroups(e){return t=>{if(!this._shouldShowTemplateProperties(e))return t;CC("documentation",t=t.slice(),[{element:e,id:"ElementTemplates__Template",label:"Template",component:jk({getTemplateId:NS,unlinkTemplate:OC,updateTemplate:SC}),entries:Uk({element:e,elementTemplates:this._elementTemplates})}]);const n=this._elementTemplates.get(e);if(n){CC("ElementTemplates__Template",t,[].concat(fC({element:e,elementTemplate:n})))}return NS(e)&&(t=function(e,t){if(!e.entriesVisible)return t.filter((e=>"general"===e.id||e.id.startsWith("ElementTemplates__")));return t}(n||{},t)),t}}_shouldShowTemplateProperties(e){return NS(e)||this._elementTemplates.getAll().some((t=>_r(e,t.appliesTo)))}}function CC(e,t,n){const i=t.findIndex((t=>t.id===e));-1!==i?t.splice(i+1,0,...n):t.unshift(...n)}kC.$inject=["elementTemplates","propertiesPanel","injector"];var MC={__depends__:[dk,Ck,zx,BS],__init__:["elementTemplatesLoader","replaceBehavior","elementTemplatesPropertiesProvider"],elementTemplates:["type",qS],elementTemplatesLoader:["type",JS],replaceBehavior:["type",QS],elementTemplatesPropertiesProvider:["type",kC]};const TC={assignmentDefinitionAssignee:e=>{const t=kE("translate");return gb("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/user-tasks/#assignments",target:"_blank",rel:"noopener",title:t("User task documentation"),children:t("How to configure a user task")})},conditionExpression:e=>{const t=kE("translate");return gb("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/exclusive-gateways/exclusive-gateways#conditions",target:"_blank",rel:"noopener",title:t("Conditions documentation"),children:t("How to define conditions")})},formType:e=>{const t=kE("translate");return gb("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/user-tasks/#user-task-forms",target:"_blank",rel:"noopener",title:t("User task form documentation"),children:t("How to link a form")})},messageSubscriptionCorrelationKey:e=>{const t=kE("translate");return wr(e,"bpmn:ReceiveTask")?gb("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/receive-tasks/receive-tasks/#messages",target:"_blank",rel:"noopener",title:t("Receive task documentation"),children:t("How to configure a receive task")}):gb("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/message-events/message-events/#messages",target:"_blank",rel:"noopener",title:t("Message event documentation"),children:t("How to configure a message event")})},messageName:e=>{const t=kE("translate");if(wr(e,"bpmn:StartEvent")&&!function(e){const t=Er(e).$parent;return wr(t,"bpmn:SubProcess")&&t.triggeredByEvent}(e))return gb("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/message-events/message-events/#messages",target:"_blank",rel:"noopener",title:t("Message event documentation"),children:t("How to configure a message event")})},targetProcessId:e=>{const t=kE("translate");return gb("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/call-activities/call-activities",target:"_blank",rel:"noopener",title:t("Call activity documentation"),children:t("How to call another process")})},taskDefinitionType:e=>{const t=kE("translate");return wr(e,"bpmn:ServiceTask")?gb("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/service-tasks/service-tasks/#task-definition",target:"_blank",rel:"noopener",title:t("Service task documentation"),children:t("How to configure a service task")}):wr(e,"bpmn:BusinessRuleTask")?gb("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/business-rule-tasks/business-rule-tasks/#defining-a-task",target:"_blank",rel:"noopener",title:t("Business rule task documentation"),children:t("How to configure a business rule task")}):wr(e,"bpmn:ScriptTask")?gb("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/script-tasks/script-tasks/#defining-a-task",target:"_blank",rel:"noopener",title:t("Script task documentation"),children:t("How to configure a script task")}):wr(e,"bpmn:SendTask")?gb("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/send-tasks/send-tasks/#defining-a-task",target:"_blank",rel:"noopener",title:t("Send task documentation"),children:t("How to configure a send task")}):wr(e,"bpmn:ThrowEvent")?gb("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/message-events/#message-throw-events",target:"_blank",rel:"noopener",title:t("Message throw event documentation"),children:t("How to configure a message throw event")}):void 0},"multiInstance-inputCollection":e=>{const t=kE("translate");return gb("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/multi-instance/#defining-the-collection-to-iterate-over",target:"_blank",rel:"noopener",title:t("Multi instance documentation"),children:t("How to configure a multi instance activity")})},errorCode:e=>{const t=kE("translate");return gb("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/error-events/error-events/#defining-the-error",target:"_blank",rel:"noopener",title:t("Error event documentation"),children:t("How to configure an error event")})}};function AC(e={}){this._injectOriginModule(e),qg.call(this,e)}i(AC,qg),AC.prototype._injectOriginModule=function(e){this._modules=[].concat(this._modules,e&&e.disableAdjustOrigin?sv:cv)},AC.prototype._extensionModules=[nv,gv,SE,lO],AC.prototype._modules=[].concat(qg.prototype._modules,AC.prototype._extensionModules);var RC="replace-with-collapsed-subprocess",zC="replace-with-expanded-subprocess";function DC(e,t,n){e.registerProvider("bpmn-replace",this),this._bpmnReplace=t,this._translate=n}function jC(e){return wr(e,"bpmn:SubProcess")&&!wr(e,"bpmn:Transaction")&&!Ir(e)}DC.$inject=["popupMenu","bpmnReplace","translate"],DC.prototype.getPopupMenuEntries=function(e){var t=this._bpmnReplace,n=this._translate,i={"expand-subprocess":{className:"bpmn-icon-subprocess-expanded",label:n("Expand (not reversible)"),action:function(){t.replaceElement(e,{type:"bpmn:SubProcess",isExpanded:!0})}}};return function(r){return function(e){return wr(e,"bpmn:Task")}(e)?(delete r[zC],delete r[RC],r["replace-with-subprocess"]={className:"bpmn-icon-subprocess-collapsed",label:n("Sub Process"),action:function(){t.replaceElement(e,{type:"bpmn:SubProcess",isExpanded:!1})}},r):jC(e)&&Nr(e)?(delete r[RC],r):jC(e)&&!Nr(e)?function(e){return e.children&&e.children.length}(e)?i:(delete r[RC],delete r[zC],q(r,i)):r}};var BC={__depends__:["popupMenu","bpmnReplace"],__init__:["disabledCollapsedSubprocessPopupProvider"],disabledCollapsedSubprocessPopupProvider:["type",DC]};function NC(e){this._eventBus=e}NC.$inject=["eventBus"],NC.prototype.on=function(e,t,n,i,r,o){if((f(t)||m(t))&&(o=r,r=i,i=n,n=t,t=null),f(n)&&(o=r,r=i,i=n,n=1e3),h(r)&&(o=r,r=!1),!f(i))throw new Error("handlerFn must be a function");d(e)||(e=[e]);var a=this._eventBus;_(e,(function(e){var s=["commandStack",e,t].filter((function(e){return e})).join(".");a.on(s,n,r?function(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}(i,o):i,o)}))};function LC(e,t){const n=Er(e).get("extensionElements");if(!n)return[];const i=n.get("values");return i&&i.length?t?i.filter((e=>wr(e,t))):i:[]}function IC(e,t,n,i){d(n)||(n=[n]);const r=t.get("extensionElements"),o=r.get("values").filter((e=>!n.includes(e)));i.execute("element.updateModdleProperties",{element:e,moddleElement:r,properties:{values:o}})}_(["canExecute","preExecute","preExecuted","execute","executed","postExecute","postExecuted","revert","reverted"],(function(e){NC.prototype[e]=function(t,n,i,r,o){(f(t)||m(t))&&(o=r,r=i,i=n,n=t,t=null),this.on(t,e,n,i,r,o)}}));class $C extends NC{constructor(e,t){super(t),this.preExecute("element.updateModdleProperties",5e3,(function(e){const{element:t,moddleElement:n,properties:i}=e;if(!wr(t,"bpmn:BusinessRuleTask")||!wr(n,"bpmn:ExtensionElements")||!i.values)return;const r=FC(t),o=VC(t);r&&!o&&i.values.find((e=>wr(e,"zeebe:CalledDecision")))&&i.values.find((e=>wr(e,"zeebe:TaskDefinition")))&&(i.values=E(i.values,r))}),!0),this.preExecute("element.updateModdleProperties",5e3,(function(e){const{element:t,moddleElement:n,properties:i}=e;if(!wr(t,"bpmn:BusinessRuleTask")||!wr(n,"bpmn:ExtensionElements")||!i.values)return;const r=FC(t),o=VC(t),a=function(e){return LC(Er(e),"zeebe:TaskHeaders")[0]}(t);!r&&(o||a)&&i.values.find((e=>wr(e,"zeebe:CalledDecision")))&&i.values.find((e=>wr(e,"zeebe:TaskDefinition")||wr(e,"zeebe:TaskHeaders")))&&(i.values=E(i.values,(e=>e===o||e===a)))}),!0)}}function FC(e){return LC(Er(e),"zeebe:CalledDecision")[0]}function VC(e){return LC(Er(e),"zeebe:TaskDefinition")[0]}$C.$inject=["commandStack","eventBus"];class HC extends NC{constructor(e,t,n){super(n),this.preExecute("shape.create",5e3,(function(n){const{shape:i,host:r}=n,o=Er(i);let a,s,p,l,c={cancelActivity:!0};r&&wr(i,"bpmn:IntermediateCatchEvent")&&(s=Er(r),c={...c,attachedToRef:s},l=o.eventDefinitions,a=e.create("bpmn:BoundaryEvent",c),p={type:"bpmn:BoundaryEvent",businessObject:a},l&&l[0]&&(p={...p,eventDefinitionType:l[0].$type}),n.shape=t.createShape(p))}),!0)}}function qC(e,t,n,i){var r=i.create(e,t);return r.$parent=n,r}function UC(e){const t=Er(e).get("extensionElements");if(t)return t.get("values").find((e=>wr(e,"zeebe:IoMapping")))}function GC(e){const t=UC(e);return t?t.get("zeebe:outputParameters"):[]}function WC(e){return function(e){return LC(Er(e),"zeebe:CalledElement")}(e)[0]}function KC(e){if(!wr(e,"bpmn:CallActivity"))return!1;const t=WC(Er(e));return t&&v(t,"propagateAllChildVariables")?t.get("propagateAllChildVariables")||!1:function(e){if(!wr(e,"bpmn:CallActivity"))return!1;const t=GC(e);return t?!t.length:void 0}(e)}HC.$inject=["bpmnFactory","elementFactory","eventBus"];class YC extends NC{constructor(e,t,n){super(t),this.postExecuted("shape.create",5e3,(function(t){const{shape:i}=t;if(!wr(i,"bpmn:CallActivity"))return;const r=Er(i);let o=WC(r);if(o)v(o,"propagateAllChildVariables")||n.updateModdleProperties(i,o,{propagateAllChildVariables:!1});else{o=e.create("zeebe:CalledElement",{propagateAllChildVariables:!1});let t=r.get("extensionElements");t||(t=qC("bpmn:ExtensionElements",{values:[]},r,e),n.updateProperties(i,{extensionElements:t})),n.updateModdleProperties(i,t,{values:[...t.values||[],o]})}}),!0)}}YC.$inject=["bpmnFactory","eventBus","modeling"];function XC(){return function(e){return new o([32,32,1]).nextPrefixed(e)}("UserTaskForm_")}function ZC(e){return`camunda-forms:bpmn:${e}`}function JC(e){return LC(Er(e),"zeebe:FormDefinition")[0]}function QC(e,t){const n=t||function(e){for(var t=Er(e);t.$parent&&!wr(t,"bpmn:Process");)t=t.$parent;return t}(e),i=JC(e);if(!i)return;return function(e,t){return b(LC(t,"zeebe:UserTaskForm"),(t=>ZC(t.get("zeebe:id"))===e))}(i.get("zeebe:formKey"),n)}class eM extends NC{constructor(e,t,n){super(t),this.postExecute("shape.delete",(function(e){const{oldParent:t,shape:i}=e,r=tM(t),o=QC(i,r);if(!wr(i,"bpmn:UserTask")||!o)return;const a=r.get("extensionElements"),s=a.get("values").filter((e=>e!==o));n.updateModdleProperties(i,a,{values:s})}),!0),this.postExecute("shape.create",(function(t){const{shape:i}=t,r=JC(i);if(!wr(i,"bpmn:UserTask")||!r)return;const o=QC(i),a=tM(i),s=Er(i).get("extensionElements");let p=a.get("extensionElements");p||(p=qC("bpmn:ExtensionElements",{values:[]},a,e),n.updateModdleProperties(i,a,{extensionElements:p}));let l=s.get("values").filter((e=>e!==r));const c=XC(),u=function(e,t,n){return qC("zeebe:FormDefinition",e,t,n)}({formKey:ZC(c)},s,e);l=[...l,u],n.updateModdleProperties(i,s,{values:l});const d=function(e,t,n){return qC("zeebe:UserTaskForm",e,t,n)}({id:c,body:o?o.get("body"):""},p,e);n.updateModdleProperties(i,p,{values:[...p.get("values")||[],d]})}),!0)}}function tM(e){for(var t=Er(e);t.$parent&&!wr(t,"bpmn:Process");)t=t.$parent;return t}eM.$inject=["bpmnFactory","eventBus","modeling"];class nM extends NC{constructor(e,t){super(t),this.postExecuted("element.updateModdleProperties",5e3,(function(t){const{element:n,moddleElement:i}=t;if(!wr(i,"zeebe:AssignmentDefinition"))return;const r=i;if(wr(n,"bpmn:UserTask")&&l(r.get("zeebe:assignee"))&&l(r.get("zeebe:candidateGroups"))){IC(n,Er(n),r,e)}}),!0)}}nM.$inject=["commandStack","eventBus"];class iM extends NC{constructor(e,t,n){super(t),this.postExecute("element.updateModdleProperties",5e3,(function(t){const{element:i,moddleElement:r,properties:o={}}=t,a=o.propagateAllChildVariables||o["zeebe:propagateAllChildVariables"];if(!wr(i,"bpmn:CallActivity")||!wr(r,"zeebe:CalledElement")||!a)return;const s=function(e){const t=UC(e);return t?t.get("zeebe:inputParameters"):[]}(i),p=GC(i);if(!p||!p.length)return;const l=UC(i);n.updateModdleProperties(i,l,{"zeebe:outputParameters":[]}),s&&s.length||IC(i,Er(i),l,e)}),!0),this.preExecute("element.updateModdleProperties",5e3,(function(e){const{element:t,moddleElement:i,properties:r}=e;if(!wr(t,"bpmn:CallActivity")||!KC(t))return;const o=WC(Er(t));if(wr(i,"bpmn:ExtensionElements")&&r.values){const e=r.values.find((e=>wr(e,"zeebe:IoMapping")));e&&e.get("outputParameters").length&&!UC(t)&&n.updateModdleProperties(t,o,{"zeebe:propagateAllChildVariables":!1})}if(wr(i,"zeebe:IoMapping")){const e=r.outputParameters||r["zeebe:outputParameters"];e&&e.length&&n.updateModdleProperties(t,o,{"zeebe:propagateAllChildVariables":!1})}}),!0)}}iM.$inject=["commandStack","eventBus","modeling"];var rM={__depends__:[{__init__:["cleanUpBusinessRuleTaskBehavior","createZeebeBoundaryEventBehavior","createZeebeCallActivityBehavior","formDefinitionBehavior","removeAssignmentDefinitionBehavior","updatePropagateAllChildVariablesBehavior"],cleanUpBusinessRuleTaskBehavior:["type",$C],createZeebeBoundaryEventBehavior:["type",HC],createZeebeCallActivityBehavior:["type",YC],formDefinitionBehavior:["type",eM],removeAssignmentDefinitionBehavior:["type",nM],updatePropagateAllChildVariablesBehavior:["type",iM]}]};const oM=["hand-tool","lasso-tool","space-tool","global-connect-tool","tool-separator","create.start-event","create.intermediate-event","create.end-event","create.exclusive-gateway","create.task","create.subprocess-expanded","create.participant-expanded","create.group"];class aM{constructor(e){e.registerProvider(500,this)}getPaletteEntries(e){return function(e){return _(e,(function(t,n){oM.includes(n)||delete e[n]})),e}}}aM.$inject=["palette"];var sM={__init__:["zeebePaletteProvider"],zeebePaletteProvider:["type",aM]};const pM=["append.message-intermediate-event","append.timer-intermediate-event","append.append-task","append.intermediate-event","append.text-annotation","append.end-event","append.gateway","delete","connect","replace","lane-insert-above","lane-divide-two","lane-divide-three","lane-insert-below"];class lM{constructor(e,t,n,i){i.autoPlace=void 0,!1!==e.autoPlace&&(i.autoPlace=t.get("autoPlace",!1)),n.registerProvider(500,this)}getContextPadEntries(e){return function(e){return _(e,(function(t,n){pM.includes(n)||delete e[n]})),e}}}lM.$inject=["config","injector","contextPad","contextPadProvider"];var cM={__init__:["zeebeContextPadProvider"],zeebeContextPadProvider:["type",lM]};const uM=["replace-with-service-task","replace-with-script-task","replace-with-send-task","replace-with-rule-task","replace-with-message-intermediate-catch","replace-with-message-intermediate-throw","replace-with-timer-intermediate-catch","replace-with-none-start","replace-with-none-end","replace-with-conditional-flow","replace-with-default-flow","replace-with-sequence-flow","replace-with-parallel-gateway","replace-with-exclusive-gateway","replace-with-collapsed-subprocess","replace-with-expanded-subprocess","replace-with-timer-boundary","replace-with-message-boundary","replace-with-event-based-gateway","replace-with-receive-task","replace-with-task","replace-with-manual-task","replace-with-message-start","replace-with-message-end","replace-with-timer-start","replace-with-none-intermediate-throw","replace-with-none-intermediate-throwing","replace-with-non-interrupting-message-boundary","replace-with-non-interrupting-timer-boundary","replace-with-error-boundary","replace-with-error-end","replace-with-event-subprocess","replace-with-subprocess","replace-with-error-start","replace-with-non-interrupting-message-start","replace-with-non-interrupting-timer-start","replace-with-expanded-pool","replace-with-collapsed-pool","replace-with-call-activity","replace-with-user-task"],dM=["toggle-parallel-mi","toggle-sequential-mi"];class hM{constructor(e){e.registerProvider("bpmn-replace",this)}getPopupMenuHeaderEntries(e){return function(t){let n={};return _r(e,["bpmn:Task","bpmn:ReceiveTask","bpmn:ServiceTask","bpmn:SubProcess","bpmn:CallActivity"])&&!Ir(e)&&_(t,(function(e,t){dM.includes(t)&&(n={...n,[t]:e})})),t=n}}getPopupMenuEntries(e){return function(e){return _(e,(function(t,n){uM.includes(n)||delete e[n]})),e}}}hM.$inject=["popupMenu"];var mM={__init__:["zeebeReplaceMenuProvider"],zeebeReplaceMenuProvider:["type",hM]};class fM extends Oh{constructor(e){super(e)}init(){super.init(),this.addRule("shape.attach",5e3,(e=>this.canAttach(e.shape,e.target,null,e.position)))}canAttach(e,t,n,i){if(Array.isArray(e)||(e=[e]),n)return!1;if(1!==e.length)return!1;const r=e[0];return!mo(r)&&(!!function(e){return function(e){return!mo(e)&&wr(e,"bpmn:BoundaryEvent")}(e)||(wr(e,"bpmn:IntermediateCatchEvent")||wr(e,"bpmn:IntermediateThrowEvent"))&&!e.parent}(r)&&(!t||!Ir(t)&&(!(!wr(t,"bpmn:Activity")||function(e){return Er(e).isForCompensation}(t))&&(!(i&&!Ph(i,t))&&(!function(e){return wr(e,"bpmn:ReceiveTask")&&b(e.incoming,(function(e){return wr(e.source,"bpmn:EventBasedGateway")}))}(t)&&"attach")))))}}fM.$inject=["eventBus"];var yM={__init__:["bpmnRules"],bpmnRules:["type",fM]},gM={name:"zeebe",prefix:"zeebe",uri:"http://camunda.org/schema/zeebe/1.0",xml:{tagAlias:"lowerCase"},associations:[],types:[{name:"ZeebeServiceTask",extends:["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:SendTask","bpmn:EndEvent","bpmn:IntermediateThrowEvent"],properties:[{name:"retryCounter",type:"String",isAttr:!0}]},{name:"IoMapping",superClass:["Element"],properties:[{name:"ioMapping",type:"IoMapping"},{name:"inputParameters",isMany:!0,type:"Input"},{name:"outputParameters",isMany:!0,type:"Output"}],meta:{allowedIn:["bpmn:CallActivity","bpmn:Event","bpmn:ReceiveTask","zeebe:ZeebeServiceTask","bpmn:SubProcess"]}},{name:"InputOutputParameter",properties:[{name:"source",isAttr:!0,type:"String"},{name:"target",isAttr:!0,type:"String"}]},{name:"Subscription",superClass:["Element"],properties:[{name:"correlationKey",isAttr:!0,type:"String"}]},{name:"Input",superClass:["InputOutputParameter"],meta:{allowedIn:["bpmn:CallActivity","zeebe:ZeebeServiceTask","bpmn:SubProcess"]}},{name:"Output",superClass:["InputOutputParameter"],meta:{allowedIn:["bpmn:CallActivity","bpmn:Event","bpmn:ReceiveTask","zeebe:ZeebeServiceTask","bpmn:SubProcess"]}},{name:"TaskHeaders",superClass:["Element"],meta:{allowedIn:["zeebe:ZeebeServiceTask"]},properties:[{name:"values",type:"Header",isMany:!0}]},{name:"Header",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"key",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"TaskDefinition",superClass:["Element"],meta:{allowedIn:["zeebe:ZeebeServiceTask"]},properties:[{name:"type",type:"String",isAttr:!0},{name:"retries",type:"String",isAttr:!0}]},{name:"LoopCharacteristics",superClass:["Element"],meta:{allowedIn:["zeebe:ZeebeServiceTask","bpmn:ReceiveTask","bpmn:SubProcess"]},properties:[{name:"inputCollection",type:"String",isAttr:!0},{name:"inputElement",type:"String",isAttr:!0},{name:"outputCollection",type:"String",isAttr:!0},{name:"outputElement",type:"String",isAttr:!0}]},{name:"CalledElement",superClass:["Element"],meta:{allowedIn:["bpmn:CallActivity"]},properties:[{name:"processId",type:"String",isAttr:!0},{name:"processIdExpression",type:"String",isAttr:!0},{name:"propagateAllChildVariables",isAttr:!0,type:"Boolean"}]},{name:"UserTaskForm",superClass:["Element"],meta:{allowedIn:["bpmn:Process"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"body",type:"String",isBody:!0}]},{name:"FormDefinition",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"formKey",type:"String",isAttr:!0}]},{name:"CalledDecision",superClass:["Element"],meta:{allowedIn:["bpmn:BusinessRuleTask"]},properties:[{name:"decisionId",type:"String",isAttr:!0},{name:"resultVariable",type:"String",isAttr:!0}]},{name:"AssignmentDefinition",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"assignee",type:"String",isAttr:!0},{name:"candidateGroups",type:"String",isAttr:!0}]},{name:"TemplateSupported",isAbstract:!0,extends:["bpmn:Collaboration","bpmn:Process","bpmn:FlowElement"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"},{name:"modelerTemplateVersion",isAttr:!0,type:"Integer"}]}]},vM=t(Y),bM=vM.isFunction,xM=vM.isObject,wM=vM.some;const _M=["zeebe:TaskDefinition","zeebe:Subscription","zeebe:TaskHeaders","zeebe:LoopCharacteristics","zeebe:Input"];function EM(e){var t=this;e.on("moddleCopy.canCopyProperty",(function(e){var n=e.property,i=e.parent;return t.canCopyProperty(n,i)}))}function PM(e,t){return e&&bM(e.$instanceOf)&&e.$instanceOf(t)}function OM(e,t){return t?PM(e,t)?e:e.$parent?OM(e.$parent,t):void 0:e.$parent}EM.$inject=["eventBus"],EM.prototype.canCopyProperty=function(e,t){return!(xM(e)&&!function(e,t){var n=e.$type&&e.$model.getTypeDescriptor(e.$type),i=n&&n.meta&&n.meta.allowedIn;if(!i||function(e){return-1!==e.indexOf("*")}(i))return!0;return wM(i,(function(e){return OM(t,e)}))}(e,t))&&(!!this.canHostServiceTaskLikeProperties(e,t)&&void 0)},EM.prototype.canHostServiceTaskLikeProperties=function(e,t){if(function(e){return _M.some((function(t){return PM(e,t)}))}(e)){var n=OM(t,"bpmn:IntermediateThrowEvent")||OM(t,"bpmn:EndEvent");if(n)return n.get("eventDefinitions").some((function(e){return PM(e,"bpmn:MessageEventDefinition")}))}return!0};var SM={__init__:["zeebeModdleExtension"],zeebeModdleExtension:["type",EM]};function kM(e={}){e={...e,moddleExtensions:{zeebe:gM,...e.moddleExtensions},propertiesPanel:{description:TC,...e.propertiesPanel}},AC.call(this,e)}return i(kM,AC),kM.prototype._camundaCloudModules=[rM,cM,BC,{drilldownOverlayBehavior:["value",null]},sM,mM,yM,BS,MC,SM],kM.prototype._modules=[].concat(AC.prototype._modules,kM.prototype._camundaCloudModules),kM}));
|
|
13
|
+
*/var gb=n((function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],i=0;i<arguments.length;i++){var r=arguments[i];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var s in r)t.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));function vb(e,t){for(var n in t)e[n]=t[n];return e}function bb(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function xb(e){this.props=e}(xb.prototype=new Sv).isPureReactComponent=!0,xb.prototype.shouldComponentUpdate=function(e,t){return bb(this.props,e)||bb(this.state,t)};var wb=dv.__b;dv.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),wb&&wb(e)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var _b=dv.__e;dv.__e=function(e,t,n){if(e.then)for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);_b(e,t,n)};var Eb=dv.unmount;function Pb(){this.__u=0,this.t=null,this.__b=null}function Ob(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Sb(){this.u=null,this.o=null}dv.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Eb&&Eb(e)},(Pb.prototype=new Sv).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=Ob(i.__v),o=!1,a=function(){o||(o=!0,n.__R=null,r?r(s):s())};n.__R=a;var s=function(){if(!--i.__u){if(i.state.__e){var e=i.state.__e;i.__v.__k[0]=function e(t,n,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,i)})),t.__c&&t.__c.__P===n&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()}},p=!0===t.__h;i.__u++||p||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(a,a)},Pb.prototype.componentWillUnmount=function(){this.t=[]},Pb.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=vb({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,i)}))),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__e&&Ev(Ov,null,e.fallback);return r&&(r.__h=null),[Ev(Ov,null,t.__e?null:e.children),r]};var kb=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(Sb.prototype=new Sv).__e=function(e){var t=this,n=Ob(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),kb(t,e,i)):r()};n?n(o):o()}},Sb.prototype.render=function(e){this.u=null,this.o=new Map;var t=zv(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Sb.prototype.componentDidUpdate=Sb.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){kb(e,n,t)}))};var Cb="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Mb=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Tb=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Sv.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Sv.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ab=dv.event;function Rb(){}function zb(){return this.cancelBubble}function Db(){return this.defaultPrevented}dv.event=function(e){return Ab&&(e=Ab(e)),e.persist=Rb,e.isPropagationStopped=zb,e.isDefaultPrevented=Db,e.nativeEvent=e};var jb={configurable:!0,get:function(){return this.class}},Bb=dv.vnode;dv.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){for(var r in i={},n){var o=n[r];"value"===r&&"defaultValue"in n&&null==o||("defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===o?o="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!Tb(n.type)?r="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(r)?r=r.toLowerCase():Mb.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),i[r]=o)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=zv(n.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==t&&null!=i.defaultValue&&(i.value=zv(n.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),e.props=i}t&&n.class!=n.className&&(jb.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",jb)),e.$$typeof=Cb,Bb&&Bb(e)};var Nb=dv.__r;dv.__r=function(e){Nb&&Nb(e),e.__c};"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);var Lb=Ev;function Ib(e,t,n,i,r){var o={};for(var a in t)"ref"!=a&&(o[a]=t[a]);var s,p,l={type:e,props:o,key:n,ref:t&&t.ref,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:++dv.__v,__source:i,__self:r};if("function"==typeof e&&(s=e.defaultProps))for(p in s)void 0===o[p]&&(o[p]=s[p]);return dv.vnode&&dv.vnode(l),l}var $b=function(e){return Ib("svg",{...e,children:Ib("path",{fillRule:"evenodd",d:"m11.657 8-4.95 4.95a1 1 0 0 1-1.414-1.414L8.828 8 5.293 4.464A1 1 0 1 1 6.707 3.05L11.657 8z"})})};$b.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var Fb=function(e){return Ib("svg",{...e,children:Ib("path",{fillRule:"evenodd",d:"M9 13V9h4a1 1 0 0 0 0-2H9V3a1 1 0 1 0-2 0v4H3a1 1 0 1 0 0 2h4v4a1 1 0 0 0 2 0z"})})};Fb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var Vb=function(e){return Ib("svg",{...e,children:Ib("path",{fillRule:"evenodd",d:"M12 6v7c0 1.1-.4 1.55-1.5 1.55h-5C4.4 14.55 4 14.1 4 13V6h8zm-1.5 1.5h-5v4.3c0 .66.5 1.2 1.111 1.2H9.39c.611 0 1.111-.54 1.111-1.2V7.5zM13 3h-2l-1-1H6L5 3H3v1.5h10V3z"})})};Vb.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var Hb=function(e){return Ib("svg",{...e,children:Ib("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.637 12.637v-4.72h1.362v4.721c0 .36-.137.676-.411.95-.275.275-.591.412-.95.412H3.362c-.38 0-.703-.132-.967-.396A1.315 1.315 0 0 1 2 12.638V3.362c0-.38.132-.703.396-.967S2.982 2 3.363 2h4.553v1.363H3.363v9.274h9.274zM14 2H9.28l-.001 1.362h2.408L5.065 9.984l.95.95 6.622-6.622v2.409H14V2z",fill:"#818798"})})};Hb.defaultProps={width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var qb=function(e){return Ib("svg",{...e,children:[Ib("path",{d:"M5.8 7.06V5.95h4.307v1.11H5.8zm0 3.071v-1.11h4.307v1.11H5.8z",fill:"#505562"}),Ib("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3.268A4.732 4.732 0 1 0 12.732 8H14a6 6 0 1 1-6-6v1.268z",fill:"#505562"}),Ib("path",{d:"m11.28 6.072-.832-.56 1.016-1.224L10 3.848l.312-.912 1.392.584L11.632 2h1.032l-.072 1.52 1.392-.584.312.912-1.464.44 1.008 1.224-.832.552-.864-1.296-.864 1.304z",fill:"#505562"})]})};qb.defaultProps={viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Ub=function(e){return Ib("svg",{...e,children:[Ib("path",{d:"M5.845 7.04V5.93h4.307v1.11H5.845zm0 3.07V9h4.307v1.11H5.845z",fill:"#505562"}),Ib("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.286 8a4.714 4.714 0 1 0 9.428 0 4.714 4.714 0 0 0-9.428 0zM8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2z",fill:"#505562"})]})};function Gb(e){const{element:t,headerProvider:n}=e,{getElementIcon:i,getDocumentationRef:r,getElementLabel:o,getTypeLabel:a}=n,s=o(t),p=a(t),l=r&&r(t),c=i(t);return Ib("div",{class:"bio-properties-panel-header",children:[Ib("div",{class:"bio-properties-panel-header-icon",children:c&&Ib(c,{width:"32",height:"32",viewBox:"0 0 32 32"})}),Ib("div",{class:"bio-properties-panel-header-labels",children:[Ib("div",{title:p,class:"bio-properties-panel-header-type",children:p}),s?Ib("div",{title:s,class:"bio-properties-panel-header-label",children:s}):null]}),Ib("div",{class:"bio-properties-panel-header-actions",children:l?Ib("a",{rel:"noopener",class:"bio-properties-panel-header-link",href:l,title:"Open documentation",target:"_blank",children:Ib(Hb,{})}):null})]})}Ub.defaultProps={viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const Wb=Gv({description:{},getDescriptionForId:()=>{}}),Kb=Gv({eventBus:null}),Yb=Gv({layout:{},setLayout:()=>{},getLayoutForKey:()=>{},setLayoutForKey:()=>{}});function Xb(e,t,n=1e3){const{eventBus:i}=cb(Kb);ab((()=>{if(i)return i.on(e,n,t),()=>i.off(e,t)}),[t,e,i,n])}function Zb(e,t){const{getLayoutForKey:n,setLayoutForKey:i}=cb(Yb),r=n(e,t),[o,a]=rb(r);return[o,t=>{a(t),i(e,t)}]}function Jb(e){const t=sb();return ab((()=>{t.current=e})),t.current}function Qb(e){const{onShow:t}=cb(Yb),n=sb(),[i,r]=rb(!1),o=lb((n=>{e(n)&&(f(t)&&t(),n.focus&&!i&&r(!0))}),[e]);return ab((()=>{i&&n.current&&(f(n.current.focus)&&n.current.focus(),f(n.current.select)&&n.current.select(),r(!1))}),[i]),Xb("propertiesPanel.showEntry",o),n}function ex(e){const{eventBus:t}=cb(Kb),[n,i]=rb(null);Xb("propertiesPanel.updated",lb((()=>i(null)),[]));return Xb("propertiesPanel.showError",lb((n=>{i(null),e(n)&&(t&&t.fire("propertiesPanel.showEntry",n),i(n.message))}),[e])),n}function tx(e){const{element:t,entries:n=[],id:i,label:r,shouldOpen:o=!1}=e,[a,s]=Zb(["groups",i,"open"],o),p=lb((()=>s(!0)),[s]),[l,c]=rb(!1);ab((()=>{const e=n.find((e=>{const{id:t,isEdited:n}=e,i=ve(`[data-entry-id="${t}"]`);if(!f(n)||!i)return!1;return n(ve(".bio-properties-panel-input",i))}));c(e)}),[n]);const u={...cb(Yb),onShow:p};return Ib("div",{class:"bio-properties-panel-group","data-group-id":"group-"+i,children:[Ib("div",{class:gb("bio-properties-panel-group-header",l?"":"empty",a?"open":""),onClick:()=>s(!a),children:[Ib("div",{title:r,class:"bio-properties-panel-group-header-title",children:r}),Ib("div",{class:"bio-properties-panel-group-header-buttons",children:[l&&Ib(nx,{}),Ib("button",{title:"Toggle section",class:"bio-properties-panel-group-header-button bio-properties-panel-arrow",children:Ib($b,{class:a?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})})]})]}),Ib("div",{class:gb("bio-properties-panel-group-entries",a?"open":""),children:Ib(Yb.Provider,{value:u,children:n.map((e=>{const{component:n,id:i}=e;return Ev(n,{...e,element:t,key:i})}))})})]})}function nx(){return Ib("div",{title:"Section contains data",class:"bio-properties-panel-dot"})}const ix={open:!0},rx={},ox=["propertiesPanel.showEntry","propertiesPanel.showError"];function ax(e){const{element:t,headerProvider:n,groups:i,layoutConfig:r={},layoutChanged:o,descriptionConfig:a={},descriptionLoaded:s,eventBus:p}=e,[l,c]=rb((u=r,{...ix,...u}));var u;ab((()=>{"function"==typeof o&&o(l)}),[l,o]);const d={layout:l,setLayout:c,getLayoutForKey:(e,t)=>G(l,e,t),setLayoutForKey:(e,t)=>{const n=q({},l);U(n,e,t),c(n)}},h=function(e){return{...rx,...e}}(a);"function"==typeof s&&s(h);const m={description:h,getDescriptionForId:(e,t)=>h[e]&&h[e](t)};!function(e,t){const n=sb([]),i=sb(!0),r=e=>t=>{!0===i.current&&n.current.unshift([e,t])};ab((()=>{if(!t)return;const n=e.map((e=>[e,r(e)]));return n.forEach((([e,n])=>{t.on(e,1e4,n)})),()=>{n.forEach((([e,n])=>{t.off(e,n)}))}}),[e,t]),ab((()=>{if(t){for(i.current=!1;n.current.length;){const[e,i]=n.current.pop();t.fire(e,i)}i.current=!0}}))}(ox,p);const f={eventBus:p},y={element:t};return t?Ib(Yb.Provider,{value:y,children:Ib(Wb.Provider,{value:m,children:Ib(Yb.Provider,{value:d,children:Ib(Kb.Provider,{value:f,children:Ib("div",{class:gb("bio-properties-panel",l.open?"open":""),children:[Ib(Gb,{element:t,headerProvider:n}),Ib("div",{class:"bio-properties-panel-scroll-container",children:i.map((e=>{const{component:n=tx,id:i}=e;return Ev(n,{...e,key:i,element:t})}))})]})})})})}):Ib("div",{class:"bio-properties-panel-placeholder",children:"Select an element to edit its properties."})}function sx(e){const{class:t,children:n,menuItems:i=[]}=e,r=sb(null),o=sb(null),[a,s]=rb(!1),p=()=>s(!1);function l(e,t){e.stopPropagation(),p(),t()}var c,u;return c=[r.current],u=()=>p(),ab((()=>{function e(e){c.some((t=>t&&t.contains(e.target)))||u()}return document.addEventListener("click",e,{capture:!0}),()=>document.removeEventListener("click",e,{capture:!0})}),[...c,u]),Ib("div",{class:gb("bio-properties-panel-dropdown-button",{open:a},t),onClick:function(e){o.current&&o.current.contains(e.target)||(e.stopPropagation(),s((e=>!e)))},ref:r,children:[n,Ib("div",{class:"bio-properties-panel-dropdown-button__menu",ref:o,children:i.map(((e,t)=>Ib(px,{onClick:l,item:e},t)))})]})}function px({item:e,onClick:t}){return e.separator?Ib("div",{class:"bio-properties-panel-dropdown-button__menu-item bio-properties-panel-dropdown-button__menu-item--separator"}):e.action?Ib("button",{class:"bio-properties-panel-dropdown-button__menu-item bio-properties-panel-dropdown-button__menu-item--actionable",onClick:n=>t(n,e.action),children:e.entry}):Ib("div",{class:"bio-properties-panel-dropdown-button__menu-item",children:e.entry})}function lx(e){const{children:t=null,class:n,onClick:i=(()=>{}),...r}=e;return Ib("button",{...r,onClick:i,class:gb("bio-properties-panel-group-header-button",n),children:t})}function cx(e){const{element:t,entries:n=[],id:i,label:r,open:o,remove:a}=e,[s,p]=rb(o),{onShow:l}=cb(Yb),c={...cb(Yb),onShow:lb((()=>{p(!0),f(l)&&l()}),[l,p])},u="<empty>";return Ib("div",{"data-entry-id":i,class:gb("bio-properties-panel-collapsible-entry",s?"open":""),children:[Ib("div",{class:"bio-properties-panel-collapsible-entry-header",onClick:()=>p(!s),children:[Ib("div",{title:r||u,class:gb("bio-properties-panel-collapsible-entry-header-title",!r&&"empty"),children:r||u}),Ib("button",{title:"Toggle list item",class:"bio-properties-panel-arrow bio-properties-panel-collapsible-entry-arrow",children:Ib($b,{class:s?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})}),a?Ib("button",{title:"Delete item",class:"bio-properties-panel-remove-entry",onClick:a,children:Ib(Vb,{})}):null]}),Ib("div",{class:gb("bio-properties-panel-collapsible-entry-entries",s?"open":""),children:Ib(Yb.Provider,{value:c,children:n.map((e=>{const{component:n,id:i}=e;return Ev(n,{...e,element:t,key:i})}))})})]})}function ux(e){const{autoFocusEntry:t,autoOpen:n}=e;return ab((()=>{if(n&&t){const e=ve(`[data-entry-id="${t}"]`),n=ve(".bio-properties-panel-input",e);n&&(f(n.select)?n.select():f(n.focus)&&n.focus())}}),[n,t]),Ib("div",{class:"bio-properties-panel-list-item",children:Ib(cx,{...e,open:n})})}const dx=()=>{};function hx(e){const{add:t,element:n,id:i,items:r,label:o,shouldOpen:a=!0,shouldSort:s=!0}=e,[p,l]=Zb(["groups",i,"open"],!1),c=lb((()=>l(!0)),[l]),[u,d]=rb([]),[h,m]=rb(!1),f=Jb(r),y=Jb(n),g=n!==y,v=!g&&(s||a);g&&d(yx(s?mx(r):r)),ab((()=>{f&&s||d(yx(r))}),[r,n]),ab((()=>{if(v&&f&&r.length>f.length){let e=[];r.forEach((t=>{u.includes(t.id)||e.push(t.id)}));let t=u;!p&&a&&(b(),s&&(t=yx(mx(r)))),t=t.filter((t=>!e.includes(t))),s?t.unshift(...e):t.push(...e),d(t),m(!0)}else m(!1)}),[r,p,v]),ab((()=>{s&&p&&!h&&d(yx(mx(r)))}),[p,s]),ab((()=>{if(v&&f&&r.length<f.length){let e=[];u.forEach((t=>{fx(r,t)&&e.push(t)})),d(e)}}),[r,v]);const b=()=>l(!p),x=!!r.length,w={...cb(Yb),onShow:c};return Ib("div",{class:"bio-properties-panel-group","data-group-id":"group-"+i,children:[Ib("div",{class:gb("bio-properties-panel-group-header",x?"":"empty",x&&p?"open":""),onClick:x?b:dx,children:[Ib("div",{title:o,class:"bio-properties-panel-group-header-title",children:o}),Ib("div",{class:"bio-properties-panel-group-header-buttons",children:[t?Ib("button",{title:"Create new list item",class:"bio-properties-panel-group-header-button bio-properties-panel-add-entry",onClick:t,children:[Ib(Fb,{}),x?null:Ib("span",{class:"bio-properties-panel-add-entry-label",children:"Create"})]}):null,x?Ib("div",{title:`List contains ${r.length} item${1!=r.length?"s":""}`,class:"bio-properties-panel-list-badge",children:r.length}):null,x?Ib("button",{title:"Toggle section",class:"bio-properties-panel-group-header-button bio-properties-panel-arrow",children:Ib($b,{class:p?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})}):null]})]}),Ib("div",{class:gb("bio-properties-panel-list",p&&x?"open":""),children:Ib(Yb.Provider,{value:w,children:u.map(((e,t)=>{const i=fx(r,e);if(!i)return;const{id:o}=i,a=h&&(s?0===t:t===u.length-1);return Ev(ux,{...i,autoOpen:a,element:n,index:t,key:o})}))})})]})}function mx(e){return D(e,(e=>e.label.toLowerCase()))}function fx(e,t){return b(e,(e=>e.id===t))}function yx(e){return e.map((e=>e.id))}function gx(e){const{element:t,forId:n,value:i}=e,r=function(e,t){const{getDescriptionForId:n}=cb(Wb);return n(e,t)}(n,t),o=i||r;if(o)return Ib("div",{class:"bio-properties-panel-description",children:o})}const vx=()=>{};function bx(e){const{id:t,label:n,onChange:i,disabled:r,value:o=!1,show:a=vx}=e;return Ib("div",{class:"bio-properties-panel-checkbox",children:[Ib("input",{ref:Qb(a),id:_x(t),name:t,type:"checkbox",class:"bio-properties-panel-input",onChange:({target:e})=>{i(e.checked)},checked:o,disabled:r}),Ib("label",{for:_x(t),class:"bio-properties-panel-label",children:n})]})}function xx(e){const{element:t,id:n,description:i,label:r,getValue:o,setValue:a,disabled:s,show:p=vx}=e,l=o(t),c=ex(p);return Ib("div",{class:"bio-properties-panel-entry bio-properties-panel-checkbox-entry","data-entry-id":n,children:[Ib(bx,{disabled:s,id:n,label:r,onChange:a,show:p,value:l}),c&&Ib("div",{class:"bio-properties-panel-error",children:c}),Ib(gx,{forId:n,element:t,value:i})]})}function wx(e){return e&&!!e.checked}function _x(e){return`bio-properties-panel-${e}`}const Ex=()=>{};function Px(e){const{id:t,label:n,onChange:i,options:r=[],value:o,disabled:a,show:s=Ex}=e,p=Qb(s);return Ib("div",{class:"bio-properties-panel-select",children:[Ib("label",{for:kx(t),class:"bio-properties-panel-label",children:n}),Ib("select",{ref:p,id:kx(t),name:t,class:"bio-properties-panel-input",onInput:({target:e})=>{i(e.value)},value:o,disabled:a,children:r.map(((e,t)=>Ib("option",{value:e.value,disabled:e.disabled,children:e.label},t)))})]})}function Ox(e){const{element:t,id:n,description:i,label:r,getValue:o,setValue:a,getOptions:s,disabled:p,show:l=Ex}=e,c=o(t),u=s(t),d=ex(l);return Ib("div",{class:gb("bio-properties-panel-entry",d?"has-error":""),"data-entry-id":n,children:[Ib(Px,{id:n,label:r,value:c,onChange:a,options:u,disabled:p,show:l}),d&&Ib("div",{class:"bio-properties-panel-error",children:d}),Ib(gx,{forId:n,element:t,value:i})]})}function Sx(e){return e&&!!e.value}function kx(e){return`bio-properties-panel-${e}`}function Cx(e){const{label:t,feel:n=!1}=e;return Ib("i",{class:"bio-properties-panel-feel-icon",title:t+("required"===n?" must be a FEEL expression":" can optionally be a FEEL expression"),children:Ib("required"===n?qb:Ub,{})})}function Mx(e){const{id:t,label:n,rows:i=2,debounce:r,feel:o,onInput:a,value:s="",disabled:p,monospace:l}=e,c=pb((()=>r((({target:e})=>a(e.value.length?e.value:void 0)))),[a,r]);return Ib("div",{class:"bio-properties-panel-textarea",children:[Ib("label",{for:Rx(t),class:"bio-properties-panel-label",children:[n,o&&Ib(Cx,{feel:o,label:n})]}),Ib("textarea",{id:Rx(t),name:t,spellCheck:"false",class:gb("bio-properties-panel-input",l?"bio-properties-panel-input-monospace":""),onInput:c,onFocus:e.onFocus,onBlur:e.onBlur,rows:i,value:s,disabled:p})]})}function Tx(e){const{element:t,id:n,description:i,debounce:r,feel:o,label:a,getValue:s,setValue:p,rows:l,monospace:c,disabled:u}=e;return Ib("div",{class:"bio-properties-panel-entry","data-entry-id":n,children:[Ib(Mx,{id:n,label:a,value:s(t),onInput:p,rows:l,debounce:r,monospace:c,feel:o,disabled:u}),Ib(gx,{forId:n,element:t,value:i})]})}function Ax(e){return e&&!!e.value}function Rx(e){return`bio-properties-panel-${e}`}const zx=()=>{};function Dx(e){const{debounce:t,disabled:n=!1,id:i,label:r,onInput:o,feel:a=!1,value:s="",show:p=zx}=e,l=Qb(p),c=pb((()=>t((({target:e})=>o(e.value.length?e.value:void 0)))),[o,t]);return Ib("div",{class:"bio-properties-panel-textfield",children:[Ib("label",{for:Nx(i),class:"bio-properties-panel-label",children:[r,a&&Ib(Cx,{feel:a,label:r})]}),Ib("input",{ref:l,id:Nx(i),type:"text",name:i,spellCheck:"false",autoComplete:"off",disabled:n,class:"bio-properties-panel-input",onInput:c,onFocus:e.onFocus,onBlur:e.onBlur,value:s||""})]})}function jx(e){const{element:t,id:n,description:i,debounce:r,disabled:o,feel:a,label:s,getValue:p,setValue:l,validate:c,show:u=zx}=e,[d,h]=rb(null),[m,y]=rb(null);let g=p(t);const v=Jb(g);ab((()=>{if(f(c)){const e=c(g)||null;y(e)}}),[g]);v===g&&m&&(g=d);const b=ex(u)||m;return Ib("div",{class:gb("bio-properties-panel-entry",b?"has-error":""),"data-entry-id":n,children:[Ib(Dx,{debounce:r,disabled:o,feel:a,id:n,label:s,onInput:e=>{let t=null;f(c)&&(t=c(e)||null),t?h(e):l(e),y(t)},show:u,value:g}),b&&Ib("div",{class:"bio-properties-panel-error",children:b}),Ib(gx,{forId:n,element:t,value:i})]})}function Bx(e){return e&&!!e.value}function Nx(e){return`bio-properties-panel-${e}`}function Lx(e){const{id:t,label:n,onInput:i,value:r,switcherLabel:o}=e;return Ib("div",{class:"bio-properties-panel-toggle-switch",children:[Ib("label",{class:"bio-properties-panel-label",for:$x(t),children:n}),Ib("div",{class:"bio-properties-panel-field-wrapper",children:[Ib("label",{class:"bio-properties-panel-toggle-switch__switcher",children:[Ib("input",{id:$x(t),class:"bio-properties-panel-input",type:"checkbox",name:t,onInput:async()=>{i(!r)},checked:r}),Ib("span",{class:"bio-properties-panel-toggle-switch__slider"})]}),Ib("p",{class:"bio-properties-panel-toggle-switch__label",children:o})]})]})}function Ix(e){return e&&!!e.checked}function $x(e){return`bio-properties-panel-${e}`}function Fx(e){return function(t){return!1!==e?$(t,m(e)?e:300):t}}Fx.$inject=["config.debounceInput"];var Vx={debounceInput:["factory",Fx]},Hx=t(Y);const{isNil:qx,isString:Ux,isUndefined:Gx}=Hx;var Wx=function(e,t){if(!e)return null;if(e===t)return[];let n,i=[];do{if(n=e.$parent,!n){if(e.$instanceOf("bpmn:Definitions"))break;return null}if(i=[...Kx(e,n),...i],e=n,t&&e===t)break}while(n);return i};function Kx(e,t){for(let n of Object.values(t.$descriptor.propertiesByName))if(n.isMany){if(t.get(n.name).includes(e))return[n.name,t.get(n.name).indexOf(e)]}else if(t.get(n.name)===e)return[n.name];return[]}var Yx=function(...e){let t=[];for(let n of e){if(qx(n)||Gx(n))return null;Ux(n)&&(n=[n]),t=t.concat(n)}return t},Xx=function(e,t,n="."){return!(qx(e)||Gx(e)||qx(t)||Gx(t))&&(Ux(e)||(e=Zx(e,n)),Ux(t)||(t=Zx(t,n)),e===t)};function Zx(e,t="."){return qx(e)||Gx(e)?null:e.join(t)}var Jx={translate:["value",function(e,t){return t=t||{},e.replace(/{([^}]+)}/g,(function(e,n){return t[n]||"{"+n+"}"}))}]},Qx=function(e,t){for(var n=e.split("."),i=t.split("."),r=0;r<3;r++){var o=Number(n[r]),a=Number(i[r]);if(o>a)return 1;if(a>o)return-1;if(!isNaN(o)&&isNaN(a))return 1;if(isNaN(o)&&!isNaN(a))return-1}return 0},ew=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var i,r,o;if(Array.isArray(t)){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((i=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,o[r]))return!1;for(r=i;0!=r--;){var a=o[r];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},tw=cw,nw=cw;const iw={type:"object",allOf:[{required:["name","id","appliesTo","properties"],properties:{name:{$id:"#/name",type:"string",description:"The name of the element template."},id:{$id:"#/id",type:"string",description:"The identifier of the element template."},description:{$id:"#/description",type:"string",description:"The description of the element template."},version:{$id:"#/version",type:"number",description:"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},isDefault:{$id:"#/isDefault",type:"boolean",description:"Indicates whether the element template is a default template."},appliesTo:{$id:"#/appliesTo",type:"array",description:"List of BPMN types the template can be applied to.",default:[],items:{$id:"#/appliesTo/items",type:"string",pattern:"^(.*?:)",errorMessage:{pattern:'invalid item for "appliesTo", should contain namespaced property, example: "bpmn:Task"'},allOf:[{examples:["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}]}},metadata:{$id:"#/metadata",type:"object",description:"Some custom properties for further configuration.",default:{}},entriesVisible:{$id:"#/entriesVisible",type:"boolean",description:"Select whether non-template entries are visible in the properties panel."},groups:{$id:"#/groups",type:"array",description:"Custom fields can be ordered together via groups.",allOf:[{examples:[[{id:"group-1",label:"My Group"}]]}],items:{$id:"#/groups/group",type:"object",default:{},required:["id","label"],errorMessage:{required:{id:'missing id for group "${0#}"',label:'missing label for group "${0#}"'}},properties:{id:{$id:"#/groups/group/id",type:"string",description:"The id of the custom group"},label:{$id:"#/groups/group/label",type:"string",description:"The label of the custom group"}}}}},errorMessage:{required:{name:"missing template name",id:"missing template id",appliesTo:"missing appliesTo=[]",properties:"missing properties=[]"}}}],properties:{properties:{$ref:"#/definitions/properties",$id:"#/properties"},scopes:{$id:"#/scopes",type:"array",description:"Special scoped bindings that allow you to configure nested elements.",allOf:[{examples:[[{type:"bpmn:Error",id:"Error_1",properties:[{value:"error-code",binding:{type:"property",name:"errorCode"}},{value:"error-message",binding:{type:"property",name:"camunda:errorMessage"}},{value:"error-name",binding:{type:"property",name:"name"}}]}]]}],items:{$id:"#/scopes/item",type:"object",default:{},properties:{type:{$id:"#scopes/item/type",type:"string",description:"The type of a scope.",enum:["camunda:Connector","bpmn:Error"],errorMessage:"invalid scope type ${0}; must be any of { camunda:Connector, bpmn:Error }"},properties:{$id:"#/scopes/properties",description:"List of properties of a scope.",default:[],allOf:[{$ref:"#/definitions/properties/allOf/0"},{$ref:"#/definitions/properties/allOf/1"}]}},required:["type","properties"],errorMessage:{required:{type:"invalid scope, missing type",properties:"invalid scope ${0/type}, missing properties=[]"}},allOf:[{if:{properties:{type:{enum:["bpmn:Error"]}},required:["type"]},then:{required:["id"],errorMessage:"invalid scope ${0/type}, missing id"}}]}}}},rw={allOf:[{type:"array",description:"List of properties of the element template.",allOf:[{examples:[[{label:"Name",type:"String",binding:{type:"property",name:"name"}}]]}],items:{type:"object",default:{},allOf:[{if:{properties:{type:{const:"Dropdown"}},required:["type"]},then:{required:["choices"],errorMessage:'must provide choices=[] with "Dropdown" type'}}],properties:{value:{$id:"#/properties/property/value",type:["string","boolean"],description:"The value of a control field."},description:{$id:"#/properties/property/description",type:"string",description:"The description of a control field."},label:{$id:"#/properties/property/label",type:"string",description:"The label of a control field."},type:{$id:"#/properties/property/type",type:"string",description:"The type of a control field."},editable:{$id:"#/properties/property/editable",type:"boolean",description:"Indicates whether a control field is editable or not."},choices:{$id:"#/properties/property/choices",type:"array",description:"The choices for dropdown fields.",default:[],items:{$id:"#/properties/property/choices/item",type:"object",default:{},properties:{name:{$id:"#/properties/property/choices/item/name",type:"string",description:"The name of a choice."},value:{$id:"#/properties/property/choices/item/value",type:"string",description:"The value of a choice."}},required:["value","name"],errorMessage:'{ name, value } must be specified for "Dropdown" choices'}},constraints:{$id:"#/properties/property/constraints",type:"object",description:"The validation constraints of a control field.",allOf:[{examples:[{notEmpty:!0}]}],properties:{notEmpty:{$id:"#/properties/property/constraints/notEmpty",type:"boolean",description:"The control field must not be empty."},minLength:{$id:"#/properties/property/constraints/minLength",type:"number",description:"The minimal length of a control field value."},maxLength:{$id:"#/properties/property/constraints/maxLength",type:"number",description:"The maximal length for a control field value."},pattern:{$id:"#/properties/property/constraints/pattern",description:"A regular expression pattern for a constraint.",oneOf:[{type:"object",default:{},properties:{value:{$id:"#/properties/property/constraints/pattern/value",type:"string",description:"The regular expression of a pattern."},message:{$id:"#/properties/property/constraints/pattern/message",type:"string",description:"The validation message of a pattern."}}},{type:"string"}]}}},group:{$id:"#/properties/property/group",type:"string",description:"The custom group of a control field."}}}},{$schema:"http://json-schema.org/draft-07/schema",type:"array",description:"List of properties of the element template.",items:{type:"object",default:{},required:["binding"],errorMessage:{required:{binding:'missing binding for property "${0#}"'}},allOf:[{if:{properties:{binding:{properties:{type:{const:"property"}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown","Boolean"],errorMessage:'invalid property type ${0} for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'}}}},{if:{properties:{binding:{properties:{type:{const:"camunda:executionListener"}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["Hidden"],errorMessage:'invalid property type ${1/type} for binding type "camunda:executionListener"; must be "Hidden"'}}}},{if:{properties:{binding:{properties:{type:{enum:["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Hidden","Dropdown"],errorMessage:"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{if:{properties:{binding:{properties:{type:{enum:["camunda:inputParameter","camunda:field"]}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown"],errorMessage:"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],properties:{binding:{$id:"#/properties/property/binding",type:"object",description:"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.",required:["type"],allOf:[{if:{properties:{type:{enum:["property","camunda:property","camunda:inputParameter","camunda:field"]}},required:["type"]},then:{required:["name"],errorMessage:"property.binding ${0/type} requires name"}},{if:{properties:{type:{const:"camunda:outputParameter"}},required:["type"]},then:{required:["source"],errorMessage:"property.binding ${0/type} requires source"}},{if:{properties:{type:{const:"camunda:in"}},required:["type"]},then:{anyOf:[{required:["variables"]},{required:["target"]}],errorMessage:"property.binding ${0/type} requires variables, target, or both"}},{if:{properties:{type:{const:"camunda:out"}},required:["type"]},then:{oneOf:[{required:["variables"],not:{anyOf:[{required:["source"]},{required:["sourceExpression"]}]}},{required:["source"],not:{anyOf:[{required:["variables"]},{required:["sourceExpression"]}]}},{required:["sourceExpression"],not:{anyOf:[{required:["variables"]},{required:["source"]}]}},{required:["variables","sourceExpression"],not:{required:["source"]}},{required:["variables","source"],not:{required:["sourceExpression"]}}],errorMessage:"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{if:{properties:{type:{const:"camunda:errorEventDefinition"}},required:["type"]},then:{oneOf:[{required:["errorRef"]}],errorMessage:"property.binding ${0/type} requires errorRef"}},{examples:[{type:"property",name:"name"},{type:"camunda:property",name:"property"},{type:"camunda:inputParameter",name:"input"},{type:"camunda:outputParameter",source:"output"},{type:"camunda:in",target:"target"},{type:"camunda:in:businessKey"},{type:"camunda:out",source:"output"},{type:"camunda:executionListener",event:"start"},{type:"camunda:field",name:"field"},{type:"camunda:errorEventDefinition",errorRef:"error"},{type:"camunda:errorEventDefinition",errorRef:"error"}]}],properties:{type:{$id:"#/properties/property/binding/type",type:"string",enum:["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],errorMessage:"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }",description:"The type of a property binding."},name:{$id:"#/properties/property/binding/name",type:"string",description:"The name of a property binding."},event:{$id:"#/properties/property/binding/event",type:"string",description:"The event type of a property binding (camunda:executionListener)."},scriptFormat:{$id:"#/properties/property/binding/scriptFormat",type:"string",description:"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},source:{$id:"#/properties/property/binding/source",type:"string",description:"The source value of a property binding (camunda:outputParameter, camunda:out)."},target:{$id:"#/properties/property/binding/target",type:"string",description:"The target value of a property binding (camunda:in)."},expression:{$id:"#/properties/property/binding/expression",type:"boolean",description:"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},variables:{$id:"#/properties/property/binding/variables",type:"string",enum:["all","local"],description:"The variable mapping of a property binding (camunda:in)."},sourceExpression:{$id:"#/properties/property/binding/sourceExpression",type:"string",description:"The string containing the expression for the source attribute (camunda:out)."}}}}}}]},ow={type:"array",description:"List of properties of the element template.",allOf:[{examples:[[{label:"Name",type:"String",binding:{type:"property",name:"name"}}]]}],items:{type:"object",default:{},allOf:[{if:{properties:{type:{const:"Dropdown"}},required:["type"]},then:{required:["choices"],errorMessage:'must provide choices=[] with "Dropdown" type'}}],properties:{value:{$id:"#/properties/property/value",type:["string","boolean"],description:"The value of a control field."},description:{$id:"#/properties/property/description",type:"string",description:"The description of a control field."},label:{$id:"#/properties/property/label",type:"string",description:"The label of a control field."},type:{$id:"#/properties/property/type",type:"string",description:"The type of a control field."},editable:{$id:"#/properties/property/editable",type:"boolean",description:"Indicates whether a control field is editable or not."},choices:{$id:"#/properties/property/choices",type:"array",description:"The choices for dropdown fields.",default:[],items:{$id:"#/properties/property/choices/item",type:"object",default:{},properties:{name:{$id:"#/properties/property/choices/item/name",type:"string",description:"The name of a choice."},value:{$id:"#/properties/property/choices/item/value",type:"string",description:"The value of a choice."}},required:["value","name"],errorMessage:'{ name, value } must be specified for "Dropdown" choices'}},constraints:{$id:"#/properties/property/constraints",type:"object",description:"The validation constraints of a control field.",allOf:[{examples:[{notEmpty:!0}]}],properties:{notEmpty:{$id:"#/properties/property/constraints/notEmpty",type:"boolean",description:"The control field must not be empty."},minLength:{$id:"#/properties/property/constraints/minLength",type:"number",description:"The minimal length of a control field value."},maxLength:{$id:"#/properties/property/constraints/maxLength",type:"number",description:"The maximal length for a control field value."},pattern:{$id:"#/properties/property/constraints/pattern",description:"A regular expression pattern for a constraint.",oneOf:[{type:"object",default:{},properties:{value:{$id:"#/properties/property/constraints/pattern/value",type:"string",description:"The regular expression of a pattern."},message:{$id:"#/properties/property/constraints/pattern/message",type:"string",description:"The validation message of a pattern."}}},{type:"string"}]}}},group:{$id:"#/properties/property/group",type:"string",description:"The custom group of a control field."}}}},aw={$schema:"http://json-schema.org/draft-07/schema",type:"array",description:"List of properties of the element template.",items:{type:"object",default:{},required:["binding"],errorMessage:{required:{binding:'missing binding for property "${0#}"'}},allOf:[{if:{properties:{binding:{properties:{type:{const:"property"}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown","Boolean"],errorMessage:'invalid property type ${0} for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'}}}},{if:{properties:{binding:{properties:{type:{const:"camunda:executionListener"}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["Hidden"],errorMessage:'invalid property type ${1/type} for binding type "camunda:executionListener"; must be "Hidden"'}}}},{if:{properties:{binding:{properties:{type:{enum:["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Hidden","Dropdown"],errorMessage:"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{if:{properties:{binding:{properties:{type:{enum:["camunda:inputParameter","camunda:field"]}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown"],errorMessage:"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],properties:{binding:{$id:"#/properties/property/binding",type:"object",description:"Specifying how the property is mapped to BPMN or Camunda extension elements and attributes.",required:["type"],allOf:[{if:{properties:{type:{enum:["property","camunda:property","camunda:inputParameter","camunda:field"]}},required:["type"]},then:{required:["name"],errorMessage:"property.binding ${0/type} requires name"}},{if:{properties:{type:{const:"camunda:outputParameter"}},required:["type"]},then:{required:["source"],errorMessage:"property.binding ${0/type} requires source"}},{if:{properties:{type:{const:"camunda:in"}},required:["type"]},then:{anyOf:[{required:["variables"]},{required:["target"]}],errorMessage:"property.binding ${0/type} requires variables, target, or both"}},{if:{properties:{type:{const:"camunda:out"}},required:["type"]},then:{oneOf:[{required:["variables"],not:{anyOf:[{required:["source"]},{required:["sourceExpression"]}]}},{required:["source"],not:{anyOf:[{required:["variables"]},{required:["sourceExpression"]}]}},{required:["sourceExpression"],not:{anyOf:[{required:["variables"]},{required:["source"]}]}},{required:["variables","sourceExpression"],not:{required:["source"]}},{required:["variables","source"],not:{required:["sourceExpression"]}}],errorMessage:"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{if:{properties:{type:{const:"camunda:errorEventDefinition"}},required:["type"]},then:{oneOf:[{required:["errorRef"]}],errorMessage:"property.binding ${0/type} requires errorRef"}},{examples:[{type:"property",name:"name"},{type:"camunda:property",name:"property"},{type:"camunda:inputParameter",name:"input"},{type:"camunda:outputParameter",source:"output"},{type:"camunda:in",target:"target"},{type:"camunda:in:businessKey"},{type:"camunda:out",source:"output"},{type:"camunda:executionListener",event:"start"},{type:"camunda:field",name:"field"},{type:"camunda:errorEventDefinition",errorRef:"error"},{type:"camunda:errorEventDefinition",errorRef:"error"}]}],properties:{type:{$id:"#/properties/property/binding/type",type:"string",enum:["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],errorMessage:"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }",description:"The type of a property binding."},name:{$id:"#/properties/property/binding/name",type:"string",description:"The name of a property binding."},event:{$id:"#/properties/property/binding/event",type:"string",description:"The event type of a property binding (camunda:executionListener)."},scriptFormat:{$id:"#/properties/property/binding/scriptFormat",type:"string",description:"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},source:{$id:"#/properties/property/binding/source",type:"string",description:"The source value of a property binding (camunda:outputParameter, camunda:out)."},target:{$id:"#/properties/property/binding/target",type:"string",description:"The target value of a property binding (camunda:in)."},expression:{$id:"#/properties/property/binding/expression",type:"boolean",description:"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},variables:{$id:"#/properties/property/binding/variables",type:"string",enum:["all","local"],description:"The variable mapping of a property binding (camunda:in)."},sourceExpression:{$id:"#/properties/property/binding/sourceExpression",type:"string",description:"The string containing the expression for the source attribute (camunda:out)."}}}}}},sw=new RegExp("^(.*?:)","u"),pw={required:"missingProperty",dependencies:"property",dependentRequired:"property"};function lw(e,{dataPath:t="",parentData:n,parentDataProperty:i,rootData:r=e}={}){let o=null,a=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.name){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.id){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"id"},message:"should have required property 'id'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.appliesTo){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"appliesTo"},message:"should have required property 'appliesTo'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.properties){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"properties"},message:"should have required property 'properties'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.name&&"string"!=typeof e.name){const e={keyword:"type",dataPath:t+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.id&&"string"!=typeof e.id){const e={keyword:"type",dataPath:t+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.description&&"string"!=typeof e.description){const e={keyword:"type",dataPath:t+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.version&&"number"!=typeof e.version){const e={keyword:"type",dataPath:t+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.isDefault&&"boolean"!=typeof e.isDefault){const e={keyword:"type",dataPath:t+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.appliesTo){let n=e.appliesTo;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];if("string"==typeof e){if(!sw.test(e)){const e={keyword:"pattern",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern:"^(.*?:)"},message:'should match pattern "^(.*?:)"'};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(a>0){const e={pattern:[]},n={};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/appliesTo/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(36))&&(e[n.keyword].push(n),n.emUsed=!0);for(const r in e)if(e[r].length){const s={keyword:"errorMessage",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors:e[r]},message:r in n?n[r]():iw.allOf[0].properties.appliesTo.items.errorMessage[r]};null===o?o=[s]:o.push(s),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}}else{const e={keyword:"type",dataPath:t+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.metadata){let n=e.metadata;if(!n||"object"!=typeof n||Array.isArray(n)){const e={keyword:"type",dataPath:t+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.entriesVisible&&"boolean"!=typeof e.entriesVisible){const e={keyword:"type",dataPath:t+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.groups){let n=e.groups;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.id){const e={keyword:"required",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty:"id"},message:"should have required property 'id'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.label){const e={keyword:"required",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty:"label"},message:"should have required property 'label'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.id&&"string"!=typeof e.id){const e={keyword:"type",dataPath:t+"/groups/"+i+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.label&&"string"!=typeof e.label){const e={keyword:"type",dataPath:t+"/groups/"+i+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e={required:{id:[],label:[]}},n={required:{id:function(){return'missing id for group "'+JSON.stringify(i)+'"'},label:function(){return'missing label for group "'+JSON.stringify(i)+'"'}}};let r,s;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/groups/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/groups/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(33))&&(r=pw[n.keyword],s=e[n.keyword][n.params[r]],s&&(s.push(n),n.emUsed=!0));for(const r in e)for(const p in e[r])if(s=e[r][p],s.length){const e=n[r]&&n[r][p],l={keyword:"errorMessage",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors:s},message:e?e():iw.allOf[0].properties.groups.items.errorMessage[r][p]};null===o?o=[l]:o.push(l),a++}const p=[];for(const e of o)e.emUsed||p.push(e);o=p,a=p.length}}}else{const e={keyword:"type",dataPath:t+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}}if(a>0){const e={required:{name:[],id:[],appliesTo:[],properties:[]}},n={required:{}};let i,r;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0")&&/^\/[^\/]*$/.test(n.schemaPath.slice(9))&&(i=pw[n.keyword],r=e[n.keyword][n.params[i]],r&&(r.push(n),n.emUsed=!0));for(const i in e)for(const s in e[i])if(r=e[i][s],r.length){const e=n[i]&&n[i][s],p={keyword:"errorMessage",dataPath:t,schemaPath:"#/allOf/0/errorMessage",params:{errors:r},message:e?e():iw.allOf[0].errorMessage[i][s]};null===o?o=[p]:o.push(p),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.properties){let n=e.properties;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];const r=a;let l=!0;const c=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.type&&!ew(e.type,"Dropdown")){const e={};null===o?o=[e]:o.push(e),a++}var s=c===a;if(a=r,null!==o&&(r?o.length=r:o=null),s){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.choices){const e={keyword:"required",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty:"choices"},message:"should have required property 'choices'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i&&(0!==n.dataPath.indexOf(t+"/properties/"+i)||"/"!==n.dataPath[t+"/properties/"+i.length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors:e},message:'must provide choices=[] with "Dropdown" type'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}l=s=n===a}if(!l){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.value){let n=e.value;if("string"!=typeof n&&"boolean"!=typeof n){const e={keyword:"type",dataPath:t+"/properties/"+i+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type:rw.allOf[0].items.properties.value.type},message:"should be string,boolean"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.description&&"string"!=typeof e.description){const e={keyword:"type",dataPath:t+"/properties/"+i+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.label&&"string"!=typeof e.label){const e={keyword:"type",dataPath:t+"/properties/"+i+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.type&&"string"!=typeof e.type){const e={keyword:"type",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.editable&&"boolean"!=typeof e.editable){const e={keyword:"type",dataPath:t+"/properties/"+i+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.choices){let n=e.choices;if(Array.isArray(n)){const e=n.length;for(let r=0;r<e;r++){let e=n[r];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.value){const e={keyword:"required",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty:"value"},message:"should have required property 'value'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.name){const e={keyword:"required",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.name&&"string"!=typeof e.name){const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices/"+r+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.value&&"string"!=typeof e.value){const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices/"+r+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/choices/"+r&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/choices/"+r)||"/"!==n.dataPath[t+"/properties/"+i+"/choices/"+r.length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items")||"/"!==n.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors:e},message:'{ name, value } must be specified for "Dropdown" choices'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.constraints){let n=e.constraints;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0!==n.notEmpty&&"boolean"!=typeof n.notEmpty){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.minLength&&"number"!=typeof n.minLength){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.maxLength&&"number"!=typeof n.maxLength){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.pattern){let e=n.pattern;const r=a;let s=!1,l=null;const c=a;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.value&&"string"!=typeof e.value){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.message&&"string"!=typeof e.message){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}(p=c===a)&&(s=!0,l=0);const u=a;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}var p;if((p=u===a)&&s?(s=!1,l=[l,1]):p&&(s=!0,l=1),s)a=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/properties/"+i+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.group&&"string"!=typeof e.group){const e={keyword:"type",dataPath:t+"/properties/"+i+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];const r=a;let s=!0;const p=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type&&!ew(t.type,"property")){const e={};null===o?o=[e]:o.push(e),a++}}var l=p===a;if(a=r,null!==o&&(r?o.length=r:o=null),l){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n&&"Hidden"!==n&&"Dropdown"!==n&&"Boolean"!==n){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues:rw.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/type"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/type")||"/"!==n.dataPath[t+"/properties/"+i+"/type".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors:e},message:"invalid property type "+JSON.stringify(n)+' for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}s=l=n===a}if(!s){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const E=a;let P=!0;const O=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type&&!ew(t.type,"camunda:executionListener")){const e={};null===o?o=[e]:o.push(e),a++}}var c=O===a;if(a=E,null!==o&&(E?o.length=E:o=null),c){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){if("Hidden"!==e.type){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues:rw.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/properties/"+i+"/type"&&(0!==e.dataPath.indexOf(t+"/properties/"+i+"/type")||"/"!==e.dataPath[t+"/properties/"+i+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors:n},message:"invalid property type "+JSON.stringify(e&&e.type)+' for binding type "camunda:executionListener"; must be "Hidden"'};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}P=c=n===a}if(!P){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const S=a;let k=!0;const C=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type){let e=t.type;if("camunda:property"!==e&&"camunda:outputParameter"!==e&&"camunda:in"!==e&&"camunda:in:businessKey"!==e&&"camunda:out"!==e&&"camunda:errorEventDefinition"!==e){const e={};null===o?o=[e]:o.push(e),a++}}}var u=C===a;if(a=S,null!==o&&(S?o.length=S:o=null),u){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Hidden"!==n&&"Dropdown"!==n){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues:rw.allOf[1].items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const r=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/properties/"+i+"/type"&&(0!==e.dataPath.indexOf(t+"/properties/"+i+"/type")||"/"!==e.dataPath[t+"/properties/"+i+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length]||(r.push(e),e.emUsed=!0);if(r.length){const s={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors:r},message:"invalid property type "+JSON.stringify(n)+" for binding type "+JSON.stringify(e&&e.binding&&e.binding.type)+"; must be any of { String, Hidden, Dropdown }"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}}k=u=n===a}if(!k){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const M=a;let T=!0;const A=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type){let e=t.type;if("camunda:inputParameter"!==e&&"camunda:field"!==e){const e={};null===o?o=[e]:o.push(e),a++}}}var d=A===a;if(a=M,null!==o&&(M?o.length=M:o=null),d){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n&&"Hidden"!==n&&"Dropdown"!==n){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues:rw.allOf[1].items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const r=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/properties/"+i+"/type"&&(0!==e.dataPath.indexOf(t+"/properties/"+i+"/type")||"/"!==e.dataPath[t+"/properties/"+i+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length]||(r.push(e),e.emUsed=!0);if(r.length){const s={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors:r},message:"invalid property type "+JSON.stringify(n)+" for binding type "+JSON.stringify(e&&e.binding&&e.binding.type)+"; must be any of { String, Text, Hidden, Dropdown }"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}}T=d=n===a}if(!T){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.binding){const e={keyword:"required",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty:"binding"},message:"should have required property 'binding'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.binding){let n=e.binding;const r=a;let s=!0;const p=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type){let e=n.type;if("property"!==e&&"camunda:property"!==e&&"camunda:inputParameter"!==e&&"camunda:field"!==e){const e={};null===o?o=[e]:o.push(e),a++}}var h=p===a;if(a=r,null!==o&&(r?o.length=r:o=null),h){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.name){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires name"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}s=h=e===a}if(!s){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const l=a;let c=!0;const u=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!ew(n.type,"camunda:outputParameter")){const e={};null===o?o=[e]:o.push(e),a++}var m=u===a;if(a=l,null!==o&&(l?o.length=l:o=null),m){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires source"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}c=m=e===a}if(!c){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const d=a;let E=!0;const P=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!ew(n.type,"camunda:in")){const e={};null===o?o=[e]:o.push(e),a++}var f=P===a;if(a=d,null!==o&&(d?o.length=d:o=null),f){const e=a,r=a;let s=!1;const p=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}var y=p===a;if(s=s||y,!s){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.target){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",params:{missingProperty:"target"},message:"should have required property 'target'"};null===o?o=[e]:o.push(e),a++}y=e===a;s=s||y}if(s)a=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"anyOf",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf",params:{},message:"should match some schema in anyOf"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires variables, target, or both"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}E=f=e===a}if(!E){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const O=a;let S=!0;const k=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!ew(n.type,"camunda:out")){const e={};null===o?o=[e]:o.push(e),a++}var g=k===a;if(a=O,null!==o&&(O?o.length=O:o=null),g){const e=a,r=a;let s=!1,p=null;const l=a,c=a,u=a,d=a;let h=!1;const m=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={};null===o?o=[e]:o.push(e),a++}var v=m===a;if(h=h||v,!h){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={};null===o?o=[e]:o.push(e),a++}v=e===a;h=h||v}if(h)a=d,null!==o&&(d?o.length=d:o=null);else{const e={};null===o?o=[e]:o.push(e),a++}if(u===a){const e={keyword:"not",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=c,null!==o&&(c?o.length=c:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}(w=l===a)&&(s=!0,p=0);const f=a,y=a,_=a,E=a;let P=!1;const O=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={};null===o?o=[e]:o.push(e),a++}var b=O===a;if(P=P||b,!P){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={};null===o?o=[e]:o.push(e),a++}b=e===a;P=P||b}if(P)a=E,null!==o&&(E?o.length=E:o=null);else{const e={};null===o?o=[e]:o.push(e),a++}if(_===a){const e={keyword:"not",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=y,null!==o&&(y?o.length=y:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),a++}if((w=f===a)&&s)s=!1,p=[p,1];else{w&&(s=!0,p=1);const e=a,r=a,l=a,c=a;let u=!1;const d=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={};null===o?o=[e]:o.push(e),a++}var x=d===a;if(u=u||x,!u){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={};null===o?o=[e]:o.push(e),a++}x=e===a;u=u||x}if(u)a=c,null!==o&&(c?o.length=c:o=null);else{const e={};null===o?o=[e]:o.push(e),a++}if(l===a){const e={keyword:"not",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=r,null!==o&&(r?o.length=r:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty:"sourceExpression"},message:"should have required property 'sourceExpression'"};null===o?o=[e]:o.push(e),a++}if((w=e===a)&&s)s=!1,p=[p,2];else{w&&(s=!0,p=2);const e=a,r=a,l=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={};null===o?o=[e]:o.push(e),a++}if(l===a){const e={keyword:"not",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=r,null!==o&&(r?o.length=r:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.variables){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}if(void 0===n.sourceExpression){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty:"sourceExpression"},message:"should have required property 'sourceExpression'"};null===o?o=[e]:o.push(e),a++}}if((w=e===a)&&s)s=!1,p=[p,3];else{w&&(s=!0,p=3);const e=a,r=a,l=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={};null===o?o=[e]:o.push(e),a++}var w;if(l===a){const e={keyword:"not",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=r,null!==o&&(r?o.length=r:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.variables){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}if(void 0===n.source){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),a++}}(w=e===a)&&s?(s=!1,p=[p,4]):w&&(s=!0,p=4)}}}if(s)a=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas:p},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}S=g=e===a}if(!S){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const C=a;let M=!0;const T=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!ew(n.type,"camunda:errorEventDefinition")){const e={};null===o?o=[e]:o.push(e),a++}var _=T===a;if(a=C,null!==o&&(C?o.length=C:o=null),_){const e=a,r=a;let s=!1,p=null;const l=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.errorRef){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty:"errorRef"},message:"should have required property 'errorRef'"};null===o?o=[e]:o.push(e),a++}if(l===a&&(s=!0,p=0),s)a=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas:p},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires errorRef"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}M=_=e===a}if(!M){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.type){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.type){let e=n.type;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if("property"!==e&&"camunda:property"!==e&&"camunda:inputParameter"!==e&&"camunda:outputParameter"!==e&&"camunda:in"!==e&&"camunda:out"!==e&&"camunda:in:businessKey"!==e&&"camunda:executionListener"!==e&&"camunda:field"!==e&&"camunda:errorEventDefinition"!==e){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues:rw.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/properties/"+i+"/binding/type"&&(0!==e.dataPath.indexOf(t+"/properties/"+i+"/binding/type")||"/"!==e.dataPath[t+"/properties/"+i+"/binding/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors:n},message:"invalid property.binding type "+JSON.stringify(e)+"; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}if(void 0!==n.name&&"string"!=typeof n.name){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.event&&"string"!=typeof n.event){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.scriptFormat&&"string"!=typeof n.scriptFormat){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.source&&"string"!=typeof n.source){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.target&&"string"!=typeof n.target){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.expression&&"boolean"!=typeof n.expression){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.variables){let e=n.variables;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if("all"!==e&&"local"!==e){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues:rw.allOf[1].items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}}if(void 0!==n.sourceExpression&&"string"!=typeof n.sourceExpression){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e={required:{binding:[]}},n={required:{binding:function(){return'missing binding for property "'+JSON.stringify(i)+'"'}}};let r,s;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/properties/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/definitions/properties/allOf/1/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(38))&&(r=pw[n.keyword],s=e[n.keyword][n.params[r]],s&&(s.push(n),n.emUsed=!0));for(const r in e)for(const p in e[r])if(s=e[r][p],s.length){const e=n[r]&&n[r][p],l={keyword:"errorMessage",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors:s},message:e?e():rw.allOf[1].items.errorMessage[r][p]};null===o?o=[l]:o.push(l),a++}const p=[];for(const e of o)e.emUsed||p.push(e);o=p,a=p.length}}}else{const e={keyword:"type",dataPath:t+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.scopes){let n=e.scopes;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];const r=a;let s=!0;const p=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.type&&"bpmn:Error"!==e.type){const e={};null===o?o=[e]:o.push(e),a++}var E=p===a;if(a=r,null!==o&&(r?o.length=r:o=null),E){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.id){const e={keyword:"required",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/allOf/0/then/required",params:{missingProperty:"id"},message:"should have required property 'id'"};null===o?o=[e]:o.push(e),a++}if(a>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/scopes/"+i&&(0!==e.dataPath.indexOf(t+"/scopes/"+i)||"/"!==e.dataPath[t+"/scopes/"+i.length])||0!==e.schemaPath.indexOf("#/properties/scopes/items/allOf/0/then")||"/"!==e.schemaPath["#/properties/scopes/items/allOf/0/then".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/allOf/0/then/errorMessage",params:{errors:n},message:"invalid scope "+JSON.stringify(e&&e.type)+", missing id"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}s=E=n===a}if(!s){const e={keyword:"if",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={keyword:"required",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.properties){const e={keyword:"required",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/required",params:{missingProperty:"properties"},message:"should have required property 'properties'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.type){let n=e.type;if("string"!=typeof n){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/type",schemaPath:"#/properties/scopes/items/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if("camunda:Connector"!==n&&"bpmn:Error"!==n){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/type",schemaPath:"#/properties/scopes/items/properties/type/enum",params:{allowedValues:iw.properties.scopes.items.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/type"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/type")||"/"!==n.dataPath[t+"/scopes/"+i+"/type".length])||0!==n.schemaPath.indexOf("#/properties/scopes/items/properties/type")||"/"!==n.schemaPath["#/properties/scopes/items/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/type",schemaPath:"#/properties/scopes/items/properties/type/errorMessage",params:{errors:e},message:"invalid scope type "+JSON.stringify(n)+"; must be any of { camunda:Connector, bpmn:Error }"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}if(void 0!==e.properties){let n=e.properties;if(Array.isArray(n)){const e=n.length;for(let r=0;r<e;r++){let e=n[r];const s=a;let p=!0;const l=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.type&&!ew(e.type,"Dropdown")){const e={};null===o?o=[e]:o.push(e),a++}var P=l===a;if(a=s,null!==o&&(s?o.length=s:o=null),P){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.choices){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty:"choices"},message:"should have required property 'choices'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r)||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r.length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors:e},message:'must provide choices=[] with "Dropdown" type'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}p=P=n===a}if(!p){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.value){let n=e.value;if("string"!=typeof n&&"boolean"!=typeof n){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type:ow.items.properties.value.type},message:"should be string,boolean"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.description&&"string"!=typeof e.description){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.label&&"string"!=typeof e.label){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.type&&"string"!=typeof e.type){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.editable&&"boolean"!=typeof e.editable){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.choices){let n=e.choices;if(Array.isArray(n)){const e=n.length;for(let s=0;s<e;s++){let e=n[s];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.value){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/choices/"+s,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty:"value"},message:"should have required property 'value'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.name){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/choices/"+s,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.name&&"string"!=typeof e.name){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/choices/"+s+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.value&&"string"!=typeof e.value){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/choices/"+s+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/choices/"+s,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/choices/"+s&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/choices/"+s)||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/choices/"+s.length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items")||"/"!==n.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/choices/"+s,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors:e},message:'{ name, value } must be specified for "Dropdown" choices'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.constraints){let n=e.constraints;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0!==n.notEmpty&&"boolean"!=typeof n.notEmpty){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.minLength&&"number"!=typeof n.minLength){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.maxLength&&"number"!=typeof n.maxLength){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.pattern){let e=n.pattern;const s=a;let p=!1,l=null;const c=a;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.value&&"string"!=typeof e.value){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.message&&"string"!=typeof e.message){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}(O=c===a)&&(p=!0,l=0);const u=a;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}var O;if((O=u===a)&&p?(p=!1,l=[l,1]):O&&(p=!0,l=1),p)a=s,null!==o&&(s?o.length=s:o=null);else{const e={keyword:"oneOf",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.group&&"string"!=typeof e.group){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}if(Array.isArray(n)){const e=n.length;for(let r=0;r<e;r++){let e=n[r];const s=a;let p=!0;const l=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type&&!ew(t.type,"property")){const e={};null===o?o=[e]:o.push(e),a++}}var S=l===a;if(a=s,null!==o&&(s?o.length=s:o=null),S){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n&&"Hidden"!==n&&"Dropdown"!==n&&"Boolean"!==n){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues:aw.items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/type"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/type")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/type".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors:e},message:"invalid property type "+JSON.stringify(n)+' for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}}p=S=n===a}if(!p){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const c=a;let u=!0;const d=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type&&!ew(t.type,"camunda:executionListener")){const e={};null===o?o=[e]:o.push(e),a++}}var k=d===a;if(a=c,null!==o&&(c?o.length=c:o=null),k){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){if("Hidden"!==e.type){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues:aw.items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/type"&&(0!==e.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/type")||"/"!==e.dataPath[t+"/scopes/"+i+"/properties/"+r+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors:n},message:"invalid property type "+JSON.stringify(e&&e.type)+' for binding type "camunda:executionListener"; must be "Hidden"'};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}}u=k=n===a}if(!u){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const h=a;let m=!0;const f=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type){let e=t.type;if("camunda:property"!==e&&"camunda:outputParameter"!==e&&"camunda:in"!==e&&"camunda:in:businessKey"!==e&&"camunda:out"!==e&&"camunda:errorEventDefinition"!==e){const e={};null===o?o=[e]:o.push(e),a++}}}var C=f===a;if(a=h,null!==o&&(h?o.length=h:o=null),C){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Hidden"!==n&&"Dropdown"!==n){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",params:{allowedValues:aw.items.allOf[2].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const s=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/type"&&(0!==e.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/type")||"/"!==e.dataPath[t+"/scopes/"+i+"/properties/"+r+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length]||(s.push(e),e.emUsed=!0);if(s.length){const p={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",params:{errors:s},message:"invalid property type "+JSON.stringify(n)+" for binding type "+JSON.stringify(e&&e.binding&&e.binding.type)+"; must be any of { String, Hidden, Dropdown }"};null===o?o=[p]:o.push(p),a++}const p=[];for(const e of o)e.emUsed||p.push(e);o=p,a=p.length}}m=C=n===a}if(!m){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const y=a;let g=!0;const v=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type){let e=t.type;if("camunda:inputParameter"!==e&&"camunda:field"!==e){const e={};null===o?o=[e]:o.push(e),a++}}}var M=v===a;if(a=y,null!==o&&(y?o.length=y:o=null),M){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n&&"Hidden"!==n&&"Dropdown"!==n){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",params:{allowedValues:aw.items.allOf[3].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const s=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/type"&&(0!==e.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/type")||"/"!==e.dataPath[t+"/scopes/"+i+"/properties/"+r+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length]||(s.push(e),e.emUsed=!0);if(s.length){const p={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",params:{errors:s},message:"invalid property type "+JSON.stringify(n)+" for binding type "+JSON.stringify(e&&e.binding&&e.binding.type)+"; must be any of { String, Text, Hidden, Dropdown }"};null===o?o=[p]:o.push(p),a++}const p=[];for(const e of o)e.emUsed||p.push(e);o=p,a=p.length}}g=M=n===a}if(!g){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.binding){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty:"binding"},message:"should have required property 'binding'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.binding){let n=e.binding;const s=a;let p=!0;const l=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type){let e=n.type;if("property"!==e&&"camunda:property"!==e&&"camunda:inputParameter"!==e&&"camunda:field"!==e){const e={};null===o?o=[e]:o.push(e),a++}}var T=l===a;if(a=s,null!==o&&(s?o.length=s:o=null),T){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.name){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires name"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}p=T=e===a}if(!p){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const c=a;let u=!0;const d=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!ew(n.type,"camunda:outputParameter")){const e={};null===o?o=[e]:o.push(e),a++}var A=d===a;if(a=c,null!==o&&(c?o.length=c:o=null),A){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires source"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}u=A=e===a}if(!u){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const h=a;let m=!0;const f=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!ew(n.type,"camunda:in")){const e={};null===o?o=[e]:o.push(e),a++}var R=f===a;if(a=h,null!==o&&(h?o.length=h:o=null),R){const e=a,s=a;let p=!1;const l=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}var z=l===a;if(p=p||z,!p){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.target){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",params:{missingProperty:"target"},message:"should have required property 'target'"};null===o?o=[e]:o.push(e),a++}z=e===a;p=p||z}if(p)a=s,null!==o&&(s?o.length=s:o=null);else{const e={keyword:"anyOf",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf",params:{},message:"should match some schema in anyOf"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires variables, target, or both"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}m=R=e===a}if(!m){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const y=a;let g=!0;const v=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!ew(n.type,"camunda:out")){const e={};null===o?o=[e]:o.push(e),a++}var D=v===a;if(a=y,null!==o&&(y?o.length=y:o=null),D){const e=a,s=a;let p=!1,l=null;const c=a,u=a,d=a,h=a;let m=!1;const f=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={};null===o?o=[e]:o.push(e),a++}var j=f===a;if(m=m||j,!m){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={};null===o?o=[e]:o.push(e),a++}j=e===a;m=m||j}if(m)a=h,null!==o&&(h?o.length=h:o=null);else{const e={};null===o?o=[e]:o.push(e),a++}if(d===a){const e={keyword:"not",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=u,null!==o&&(u?o.length=u:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}(L=c===a)&&(p=!0,l=0);const y=a,v=a,b=a,x=a;let w=!1;const _=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={};null===o?o=[e]:o.push(e),a++}var B=_===a;if(w=w||B,!w){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={};null===o?o=[e]:o.push(e),a++}B=e===a;w=w||B}if(w)a=x,null!==o&&(x?o.length=x:o=null);else{const e={};null===o?o=[e]:o.push(e),a++}if(b===a){const e={keyword:"not",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=v,null!==o&&(v?o.length=v:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),a++}if((L=y===a)&&p)p=!1,l=[l,1];else{L&&(p=!0,l=1);const e=a,s=a,c=a,u=a;let d=!1;const h=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.variables){const e={};null===o?o=[e]:o.push(e),a++}var N=h===a;if(d=d||N,!d){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={};null===o?o=[e]:o.push(e),a++}N=e===a;d=d||N}if(d)a=u,null!==o&&(u?o.length=u:o=null);else{const e={};null===o?o=[e]:o.push(e),a++}if(c===a){const e={keyword:"not",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=s,null!==o&&(s?o.length=s:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",params:{missingProperty:"sourceExpression"},message:"should have required property 'sourceExpression'"};null===o?o=[e]:o.push(e),a++}if((L=e===a)&&p)p=!1,l=[l,2];else{L&&(p=!0,l=2);const e=a,s=a,c=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={};null===o?o=[e]:o.push(e),a++}if(c===a){const e={keyword:"not",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=s,null!==o&&(s?o.length=s:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.variables){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}if(void 0===n.sourceExpression){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",params:{missingProperty:"sourceExpression"},message:"should have required property 'sourceExpression'"};null===o?o=[e]:o.push(e),a++}}if((L=e===a)&&p)p=!1,l=[l,3];else{L&&(p=!0,l=3);const e=a,s=a,c=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.sourceExpression){const e={};null===o?o=[e]:o.push(e),a++}var L;if(c===a){const e={keyword:"not",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",params:{},message:"should NOT be valid"};null===o?o=[e]:o.push(e),a++}else a=s,null!==o&&(s?o.length=s:o=null);if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.variables){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty:"variables"},message:"should have required property 'variables'"};null===o?o=[e]:o.push(e),a++}if(void 0===n.source){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),a++}}(L=e===a)&&p?(p=!1,l=[l,4]):L&&(p=!0,l=4)}}}if(p)a=s,null!==o&&(s?o.length=s:o=null);else{const e={keyword:"oneOf",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}g=D=e===a}if(!g){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const b=a;let x=!0;const w=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!ew(n.type,"camunda:errorEventDefinition")){const e={};null===o?o=[e]:o.push(e),a++}var I=w===a;if(a=b,null!==o&&(b?o.length=b:o=null),I){const e=a,s=a;let p=!1,l=null;const c=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.errorRef){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",params:{missingProperty:"errorRef"},message:"should have required property 'errorRef'"};null===o?o=[e]:o.push(e),a++}if(c===a&&(p=!0,l=0),p)a=s,null!==o&&(s?o.length=s:o=null);else{const e={keyword:"oneOf",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding"&&(0!==n.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding")||"/"!==n.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires errorRef"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}x=I=e===a}if(!x){const e={keyword:"if",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.type){const e={keyword:"required",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.type){let e=n.type;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if("property"!==e&&"camunda:property"!==e&&"camunda:inputParameter"!==e&&"camunda:outputParameter"!==e&&"camunda:in"!==e&&"camunda:out"!==e&&"camunda:in:businessKey"!==e&&"camunda:executionListener"!==e&&"camunda:field"!==e&&"camunda:errorEventDefinition"!==e){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues:aw.items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/scopes/"+i+"/properties/"+r+"/binding/type"&&(0!==e.dataPath.indexOf(t+"/scopes/"+i+"/properties/"+r+"/binding/type")||"/"!==e.dataPath[t+"/scopes/"+i+"/properties/"+r+"/binding/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const s={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors:n},message:"invalid property.binding type "+JSON.stringify(e)+"; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}}if(void 0!==n.name&&"string"!=typeof n.name){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.event&&"string"!=typeof n.event){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.scriptFormat&&"string"!=typeof n.scriptFormat){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.source&&"string"!=typeof n.source){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.target&&"string"!=typeof n.target){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.expression&&"boolean"!=typeof n.expression){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.variables){let e=n.variables;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if("all"!==e&&"local"!==e){const e={keyword:"enum",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",params:{allowedValues:aw.items.properties.binding.properties.variables.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}}if(void 0!==n.sourceExpression&&"string"!=typeof n.sourceExpression){const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e={required:{binding:[]}},n={required:{binding:function(){return'missing binding for property "'+JSON.stringify(r)+'"'}}};let s,p;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/scopes/"+i+"/properties/"+r&&n.keyword in e&&0===n.schemaPath.indexOf("#/definitions/properties/allOf/1/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(38))&&(s=pw[n.keyword],p=e[n.keyword][n.params[s]],p&&(p.push(n),n.emUsed=!0));for(const s in e)for(const l in e[s])if(p=e[s][l],p.length){const e=n[s]&&n[s][l],c={keyword:"errorMessage",dataPath:t+"/scopes/"+i+"/properties/"+r,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors:p},message:e?e():aw.items.errorMessage[s][l]};null===o?o=[c]:o.push(c),a++}const l=[];for(const e of o)e.emUsed||l.push(e);o=l,a=l.length}}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const n={required:{type:[],properties:[]}},r={required:{properties:function(){return"invalid scope "+JSON.stringify(e&&e.type)+", missing properties=[]"}}};let s,p;for(const e of o)"errorMessage"!==e.keyword&&!e.emUsed&&e.dataPath===t+"/scopes/"+i&&e.keyword in n&&0===e.schemaPath.indexOf("#/properties/scopes/items")&&/^\/[^\/]*$/.test(e.schemaPath.slice(25))&&(s=pw[e.keyword],p=n[e.keyword][e.params[s]],p&&(p.push(e),e.emUsed=!0));for(const e in n)for(const s in n[e])if(p=n[e][s],p.length){const n=r[e]&&r[e][s],l={keyword:"errorMessage",dataPath:t+"/scopes/"+i,schemaPath:"#/properties/scopes/items/errorMessage",params:{errors:p},message:n?n():iw.properties.scopes.items.errorMessage[e][s]};null===o?o=[l]:o.push(l),a++}const l=[];for(const e of o)e.emUsed||l.push(e);o=l,a=l.length}}}else{const e={keyword:"type",dataPath:t+"/scopes",schemaPath:"#/properties/scopes/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t,schemaPath:"#/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}return lw.errors=o,0===a}function cw(e,{dataPath:t="",parentData:n,parentDataProperty:i,rootData:r=e}={}){let o=null,a=0;const s=a;let p=!1,l=null;const c=a;lw(e,{dataPath:t,parentData:n,parentDataProperty:i,rootData:r})||(o=null===o?lw.errors:o.concat(lw.errors),a=o.length),(d=c===a)&&(p=!0,l=0);const u=a;if(Array.isArray(e)){const n=e.length;for(let i=0;i<n;i++)lw(e[i],{dataPath:t+"/"+i,parentData:e,parentDataProperty:i,rootData:r})||(o=null===o?lw.errors:o.concat(lw.errors),a=o.length)}else{const e={keyword:"type",dataPath:t,schemaPath:"#/oneOf/1/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}var d;if((d=u===a)&&p?(p=!1,l=[l,1]):d&&(p=!0,l=1),p)a=s,null!==o&&(s?o.length=s:o=null);else{const e={keyword:"oneOf",dataPath:t,schemaPath:"#/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}return cw.errors=o,0===a}tw.default=nw;"a".charCodeAt();var uw=["number","bigint","boolean","string","object"];function dw(e){return uw.indexOf(typeof e)>=0}var hw=/"|\\/g,mw=/[\b]/g,fw=/\f/g,yw=/\n/g,gw=/\r/g,vw=/\t/g;function bw(e){return'"'+(e=e.replace(hw,"\\$&").replace(fw,"\\f").replace(mw,"\\b").replace(yw,"\\n").replace(gw,"\\r").replace(vw,"\\t"))+'"'}var xw=/~/g,ww=/\//g;function _w(e){return e.replace(xw,"~0").replace(ww,"~1")}var Ew=function(e,t,n){if(dw(e)){var i,r,o=0,a="object"==typeof n?n.space:n;switch(typeof a){case"number":var s=a>10?10:a<0?0:Math.floor(a);a=s&&v(s," "),i=s,r=s;break;case"string":a=a.slice(0,10),i=0,r=0;for(var p=0;p<a.length;p++){switch(a[p]){case" ":r++;break;case"\t":r+=4;break;case"\r":r=0;break;case"\n":r=0,o++;break;default:throw new Error("whitespace characters not allowed in JSON")}i++}break;default:a=void 0}var l="",c={},u=0,d=0,h=0,m=n&&n.es6&&"function"==typeof Map;return function e(t,n,i){switch(g(i,"value"),typeof t){case"number":case"bigint":case"boolean":f(""+t);break;case"string":f(bw(t));break;case"object":null===t?f("null"):"function"==typeof t.toJSON?f(bw(t.toJSON())):Array.isArray(t)?r():m?t.constructor.BYTES_PER_ELEMENT?r():t instanceof Map?s():t instanceof Set?s(!0):o():o()}function r(){if(t.length){f("[");for(var r=n+1,o=0;o<t.length;o++){o&&f(","),y(r);var a=dw(t[o])?t[o]:null;e(a,r,i+"/"+o)}y(n),f("]")}else f("[]")}function o(){var r=Object.keys(t);if(r.length){f("{");for(var o=n+1,s=0;s<r.length;s++){var p=r[s],l=t[p];if(dw(l)){s&&f(",");var c=i+"/"+_w(p);y(o),g(c,"key"),f(bw(p)),g(c,"keyEnd"),f(":"),a&&f(" "),e(l,o,c)}}y(n),f("}")}else f("{}")}function s(r){if(t.size){f("{");for(var o=n+1,s=!0,p=t.entries(),l=p.next();!l.done;){var c=l.value,u=c[0],d=!!r||c[1];if(dw(d)){s||f(","),s=!1;var h=i+"/"+_w(u);y(o),g(h,"key"),f(bw(u)),g(h,"keyEnd"),f(":"),a&&f(" "),e(d,o,h)}l=p.next()}y(n),f("}")}else f("{}")}g(i,"valueEnd")}(e,0,""),{json:l,pointers:c}}function f(e){d+=e.length,h+=e.length,l+=e}function y(e){if(a){for(l+="\n"+v(e,a),u++,d=0;e--;)o?(u+=o,d=r):d+=r,h+=i;h+=1}}function g(e,t){c[e]=c[e]||{},c[e][t]={line:u,column:d,pos:h}}function v(e,t){return Array(e+1).join(t)}};function Pw(e,t){const n=function(e){return Ew(e,null,2).pointers}(e),i=t(e);let r=t.errors;return r&&r.length&&(_(r,Ow),r=function(e){return w(e,(function(e){return"if"!==e.keyword}))}(r),_(r,(function(e){!function(e,t){const n=e.dataPath,i=t[n];e.dataPointer=i}(e,n)}))),{valid:i,object:e,errors:r}}function Ow(e){const t=e.params;t&&t.errors&&(t.rawErrors=t.errors,delete t.errors)}var Sw=zw,kw=zw;const Cw={type:"object",allOf:[{required:["name","id","appliesTo","properties"],properties:{name:{$id:"#/name",type:"string",description:"The name of the element template."},id:{$id:"#/id",type:"string",description:"The identifier of the element template."},description:{$id:"#/description",type:"string",description:"The description of the element template."},version:{$id:"#/version",type:"number",description:"Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."},isDefault:{$id:"#/isDefault",type:"boolean",description:"Indicates whether the element template is a default template."},appliesTo:{$id:"#/appliesTo",type:"array",description:"List of BPMN types the template can be applied to.",default:[],items:{$id:"#/appliesTo/items",type:"string",pattern:"^(.*?:)",errorMessage:{pattern:'invalid item for "appliesTo", should contain namespaced property, example: "bpmn:Task"'},allOf:[{examples:["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}]}},metadata:{$id:"#/metadata",type:"object",description:"Some custom properties for further configuration.",default:{}},entriesVisible:{$id:"#/entriesVisible",type:"boolean",description:"Select whether non-template entries are visible in the properties panel."},groups:{$id:"#/groups",type:"array",description:"Custom fields can be ordered together via groups.",allOf:[{examples:[[{id:"group-1",label:"My Group"}]]}],items:{$id:"#/groups/group",type:"object",default:{},required:["id","label"],errorMessage:{required:{id:'missing id for group "${0#}"',label:'missing label for group "${0#}"'}},properties:{id:{$id:"#/groups/group/id",type:"string",description:"The id of the custom group"},label:{$id:"#/groups/group/label",type:"string",description:"The label of the custom group"}}}}},errorMessage:{required:{name:"missing template name",id:"missing template id",appliesTo:"missing appliesTo=[]",properties:"missing properties=[]"}}}],properties:{properties:{$ref:"#/definitions/properties",$id:"#/properties"}}},Mw={allOf:[{type:"array",description:"List of properties of the element template.",allOf:[{examples:[[{label:"Name",type:"String",binding:{type:"property",name:"name"}}]]}],items:{type:"object",default:{},allOf:[{if:{properties:{type:{const:"Dropdown"}},required:["type"]},then:{required:["choices"],errorMessage:'must provide choices=[] with "Dropdown" type'}}],properties:{value:{$id:"#/properties/property/value",type:["string","boolean"],description:"The value of a control field."},description:{$id:"#/properties/property/description",type:"string",description:"The description of a control field."},label:{$id:"#/properties/property/label",type:"string",description:"The label of a control field."},type:{$id:"#/properties/property/type",type:"string",description:"The type of a control field."},editable:{$id:"#/properties/property/editable",type:"boolean",description:"Indicates whether a control field is editable or not."},choices:{$id:"#/properties/property/choices",type:"array",description:"The choices for dropdown fields.",default:[],items:{$id:"#/properties/property/choices/item",type:"object",default:{},properties:{name:{$id:"#/properties/property/choices/item/name",type:"string",description:"The name of a choice."},value:{$id:"#/properties/property/choices/item/value",type:"string",description:"The value of a choice."}},required:["value","name"],errorMessage:'{ name, value } must be specified for "Dropdown" choices'}},constraints:{$id:"#/properties/property/constraints",type:"object",description:"The validation constraints of a control field.",allOf:[{examples:[{notEmpty:!0}]}],properties:{notEmpty:{$id:"#/properties/property/constraints/notEmpty",type:"boolean",description:"The control field must not be empty."},minLength:{$id:"#/properties/property/constraints/minLength",type:"number",description:"The minimal length of a control field value."},maxLength:{$id:"#/properties/property/constraints/maxLength",type:"number",description:"The maximal length for a control field value."},pattern:{$id:"#/properties/property/constraints/pattern",description:"A regular expression pattern for a constraint.",oneOf:[{type:"object",default:{},properties:{value:{$id:"#/properties/property/constraints/pattern/value",type:"string",description:"The regular expression of a pattern."},message:{$id:"#/properties/property/constraints/pattern/message",type:"string",description:"The validation message of a pattern."}}},{type:"string"}]}}},group:{$id:"#/properties/property/group",type:"string",description:"The custom group of a control field."}}}},{$schema:"http://json-schema.org/draft-07/schema",type:"array",description:"List of properties of the element template.",items:{type:"object",default:{},required:["binding"],errorMessage:{required:{binding:'missing binding for property "${0#}"'}},allOf:[{if:{properties:{binding:{properties:{type:{const:"property"}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown","Boolean"],errorMessage:'invalid property type ${0} for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'}}}},{if:{properties:{binding:{properties:{type:{enum:["zeebe:input","zeebe:output","zeebe:taskHeader","zeebe:taskDefinition:type"]}},required:["type"]}},required:["binding"]},then:{properties:{type:{enum:["String","Text","Hidden","Dropdown"],errorMessage:"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}},{if:{properties:{optional:{const:!0}},required:["optional"]},then:{properties:{binding:{properties:{type:{enum:["zeebe:input","zeebe:output"],errorMessage:"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output }"}},required:["type"]}}}},{if:{properties:{optional:{const:!0}},required:["optional"]},then:{properties:{constraints:{properties:{notEmpty:{const:!1,errorMessage:'optional is not allowed for truthy "notEmpty" constraint'}},required:["notEmpty"]}}}},{if:{properties:{feel:{not:{const:null}}},required:["feel"]},then:{properties:{type:{enum:["String","Text"],errorMessage:'feel is only supported for "String" and "Text" type'}},required:["type"]}}],properties:{binding:{$id:"#/properties/property/binding",type:"object",description:"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.",required:["type"],allOf:[{if:{properties:{type:{enum:["property","zeebe:input"]}},required:["type"]},then:{required:["name"],errorMessage:"property.binding ${0/type} requires name"}},{if:{properties:{type:{const:"zeebe:output"}},required:["type"]},then:{required:["source"],errorMessage:"property.binding ${0/type} requires source"}},{if:{properties:{type:{const:"zeebe:taskHeader"}},required:["type"]},then:{required:["key"],errorMessage:"property.binding ${0/type} requires key"}},{examples:[{type:"property",name:"name"},{type:"zeebe:input",name:"input"},{type:"zeebe:output",source:"output"},{type:"zeebe:taskDefinition:type"},{type:"zeebe:taskHeader",key:"key"}]}],properties:{type:{$id:"#/properties/property/binding/type",type:"string",description:"The type of a property binding.",enum:["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:taskHeader"],errorMessage:"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"},name:{$id:"#/properties/property/binding/name",type:"string",description:"The name of a property binding."},source:{$id:"#/properties/property/binding/source",type:"string",description:"The source value of a property binding (zeebe:output)."},key:{$id:"#/properties/property/binding/key",type:"string",description:"The key value of a property binding (zeebe:taskHeader)."}}},optional:{$id:"#/optional",type:"boolean",description:"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},feel:{$id:"#/properties/property/feel",type:"string",default:null,description:"Indicates whether the property can be a feel expression",enum:[null,"optional","required"]}}}}]},Tw=new RegExp("^(.*?:)","u"),Aw={required:"missingProperty",dependencies:"property",dependentRequired:"property"};function Rw(e,{dataPath:t="",parentData:n,parentDataProperty:i,rootData:r=e}={}){let o=null,a=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.name){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.id){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"id"},message:"should have required property 'id'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.appliesTo){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"appliesTo"},message:"should have required property 'appliesTo'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.properties){const e={keyword:"required",dataPath:t,schemaPath:"#/allOf/0/required",params:{missingProperty:"properties"},message:"should have required property 'properties'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.name&&"string"!=typeof e.name){const e={keyword:"type",dataPath:t+"/name",schemaPath:"#/allOf/0/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.id&&"string"!=typeof e.id){const e={keyword:"type",dataPath:t+"/id",schemaPath:"#/allOf/0/properties/id/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.description&&"string"!=typeof e.description){const e={keyword:"type",dataPath:t+"/description",schemaPath:"#/allOf/0/properties/description/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.version&&"number"!=typeof e.version){const e={keyword:"type",dataPath:t+"/version",schemaPath:"#/allOf/0/properties/version/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.isDefault&&"boolean"!=typeof e.isDefault){const e={keyword:"type",dataPath:t+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.appliesTo){let n=e.appliesTo;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];if("string"==typeof e){if(!Tw.test(e)){const e={keyword:"pattern",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",params:{pattern:"^(.*?:)"},message:'should match pattern "^(.*?:)"'};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(a>0){const e={pattern:[]},n={};for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/appliesTo/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(36))&&(e[n.keyword].push(n),n.emUsed=!0);for(const r in e)if(e[r].length){const s={keyword:"errorMessage",dataPath:t+"/appliesTo/"+i,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",params:{errors:e[r]},message:r in n?n[r]():Cw.allOf[0].properties.appliesTo.items.errorMessage[r]};null===o?o=[s]:o.push(s),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}}else{const e={keyword:"type",dataPath:t+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.metadata){let n=e.metadata;if(!n||"object"!=typeof n||Array.isArray(n)){const e={keyword:"type",dataPath:t+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.entriesVisible&&"boolean"!=typeof e.entriesVisible){const e={keyword:"type",dataPath:t+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.groups){let n=e.groups;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.id){const e={keyword:"required",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty:"id"},message:"should have required property 'id'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.label){const e={keyword:"required",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/required",params:{missingProperty:"label"},message:"should have required property 'label'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.id&&"string"!=typeof e.id){const e={keyword:"type",dataPath:t+"/groups/"+i+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.label&&"string"!=typeof e.label){const e={keyword:"type",dataPath:t+"/groups/"+i+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e={required:{id:[],label:[]}},n={required:{id:function(){return'missing id for group "'+JSON.stringify(i)+'"'},label:function(){return'missing label for group "'+JSON.stringify(i)+'"'}}};let r,s;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/groups/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0/properties/groups/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(33))&&(r=Aw[n.keyword],s=e[n.keyword][n.params[r]],s&&(s.push(n),n.emUsed=!0));for(const r in e)for(const p in e[r])if(s=e[r][p],s.length){const e=n[r]&&n[r][p],l={keyword:"errorMessage",dataPath:t+"/groups/"+i,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",params:{errors:s},message:e?e():Cw.allOf[0].properties.groups.items.errorMessage[r][p]};null===o?o=[l]:o.push(l),a++}const p=[];for(const e of o)e.emUsed||p.push(e);o=p,a=p.length}}}else{const e={keyword:"type",dataPath:t+"/groups",schemaPath:"#/allOf/0/properties/groups/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}}if(a>0){const e={required:{name:[],id:[],appliesTo:[],properties:[]}},n={required:{}};let i,r;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t&&n.keyword in e&&0===n.schemaPath.indexOf("#/allOf/0")&&/^\/[^\/]*$/.test(n.schemaPath.slice(9))&&(i=Aw[n.keyword],r=e[n.keyword][n.params[i]],r&&(r.push(n),n.emUsed=!0));for(const i in e)for(const s in e[i])if(r=e[i][s],r.length){const e=n[i]&&n[i][s],p={keyword:"errorMessage",dataPath:t,schemaPath:"#/allOf/0/errorMessage",params:{errors:r},message:e?e():Cw.allOf[0].errorMessage[i][s]};null===o?o=[p]:o.push(p),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.properties){let n=e.properties;if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];const r=a;let l=!0;const c=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.type&&!ew(e.type,"Dropdown")){const e={};null===o?o=[e]:o.push(e),a++}var s=c===a;if(a=r,null!==o&&(r?o.length=r:o=null),s){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e.choices){const e={keyword:"required",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/required",params:{missingProperty:"choices"},message:"should have required property 'choices'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i&&(0!==n.dataPath.indexOf(t+"/properties/"+i)||"/"!==n.dataPath[t+"/properties/"+i.length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/0/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/0/items/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/then/errorMessage",params:{errors:e},message:'must provide choices=[] with "Dropdown" type'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}l=s=n===a}if(!l){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.value){let n=e.value;if("string"!=typeof n&&"boolean"!=typeof n){const e={keyword:"type",dataPath:t+"/properties/"+i+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/value/type",params:{type:Mw.allOf[0].items.properties.value.type},message:"should be string,boolean"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.description&&"string"!=typeof e.description){const e={keyword:"type",dataPath:t+"/properties/"+i+"/description",schemaPath:"#/definitions/properties/allOf/0/items/properties/description/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.label&&"string"!=typeof e.label){const e={keyword:"type",dataPath:t+"/properties/"+i+"/label",schemaPath:"#/definitions/properties/allOf/0/items/properties/label/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.type&&"string"!=typeof e.type){const e={keyword:"type",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/0/items/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.editable&&"boolean"!=typeof e.editable){const e={keyword:"type",dataPath:t+"/properties/"+i+"/editable",schemaPath:"#/definitions/properties/allOf/0/items/properties/editable/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.choices){let n=e.choices;if(Array.isArray(n)){const e=n.length;for(let r=0;r<e;r++){let e=n[r];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.value){const e={keyword:"required",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty:"value"},message:"should have required property 'value'"};null===o?o=[e]:o.push(e),a++}if(void 0===e.name){const e={keyword:"required",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.name&&"string"!=typeof e.name){const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices/"+r+"/name",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.value&&"string"!=typeof e.value){const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices/"+r+"/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/choices/"+r&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/choices/"+r)||"/"!==n.dataPath[t+"/properties/"+i+"/choices/"+r.length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/0/items/properties/choices/items")||"/"!==n.schemaPath["#/definitions/properties/allOf/0/items/properties/choices/items".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/choices/"+r,schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/items/errorMessage",params:{errors:e},message:'{ name, value } must be specified for "Dropdown" choices'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/choices",schemaPath:"#/definitions/properties/allOf/0/items/properties/choices/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.constraints){let n=e.constraints;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0!==n.notEmpty&&"boolean"!=typeof n.notEmpty){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/notEmpty/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.minLength&&"number"!=typeof n.minLength){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/minLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/minLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.maxLength&&"number"!=typeof n.maxLength){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/maxLength",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/maxLength/type",params:{type:"number"},message:"should be number"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.pattern){let e=n.pattern;const r=a;let s=!1,l=null;const c=a;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.value&&"string"!=typeof e.value){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern/value",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.message&&"string"!=typeof e.message){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern/message",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}(p=c===a)&&(s=!0,l=0);const u=a;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}var p;if((p=u===a)&&s?(s=!1,l=[l,1]):p&&(s=!0,l=1),s)a=r,null!==o&&(r?o.length=r:o=null);else{const e={keyword:"oneOf",dataPath:t+"/properties/"+i+"/constraints/pattern",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/properties/pattern/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/constraints",schemaPath:"#/definitions/properties/allOf/0/items/properties/constraints/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.group&&"string"!=typeof e.group){const e={keyword:"type",dataPath:t+"/properties/"+i+"/group",schemaPath:"#/definitions/properties/allOf/0/items/properties/group/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/0/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/properties",schemaPath:"#/definitions/properties/allOf/0/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++){let e=n[i];const r=a;let s=!0;const p=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type&&!ew(t.type,"property")){const e={};null===o?o=[e]:o.push(e),a++}}var l=p===a;if(a=r,null!==o&&(r?o.length=r:o=null),l){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n&&"Hidden"!==n&&"Dropdown"!==n&&"Boolean"!==n){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",params:{allowedValues:Mw.allOf[1].items.allOf[0].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/type"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/type")||"/"!==n.dataPath[t+"/properties/"+i+"/type".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",params:{errors:e},message:"invalid property type "+JSON.stringify(n)+' for binding type "property"; must be any of { String, Text, Hidden, Dropdown, Boolean }'};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}s=l=n===a}if(!s){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const g=a;let v=!0;const b=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.binding){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.binding){let t=e.binding;if(t&&"object"==typeof t&&!Array.isArray(t))if(void 0===t.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==t.type){let e=t.type;if("zeebe:input"!==e&&"zeebe:output"!==e&&"zeebe:taskHeader"!==e&&"zeebe:taskDefinition:type"!==e){const e={};null===o?o=[e]:o.push(e),a++}}}var c=b===a;if(a=g,null!==o&&(g?o.length=g:o=null),c){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n&&"Hidden"!==n&&"Dropdown"!==n){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",params:{allowedValues:Mw.allOf[1].items.allOf[1].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const r=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/properties/"+i+"/type"&&(0!==e.dataPath.indexOf(t+"/properties/"+i+"/type")||"/"!==e.dataPath[t+"/properties/"+i+"/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length]||(r.push(e),e.emUsed=!0);if(r.length){const s={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",params:{errors:r},message:"invalid property type "+JSON.stringify(n)+" for binding type "+JSON.stringify(e&&e.binding&&e.binding.type)+"; must be any of { String, Text, Hidden, Dropdown }"};null===o?o=[s]:o.push(s),a++}const s=[];for(const e of o)e.emUsed||s.push(e);o=s,a=s.length}}v=c=n===a}if(!v){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const x=a;let w=!0;const _=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.optional){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.optional&&!ew(e.optional,!0)){const e={};null===o?o=[e]:o.push(e),a++}var u=_===a;if(a=x,null!==o&&(x?o.length=x:o=null),u){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.binding){let n=e.binding;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.type){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.type){let e=n.type;if("zeebe:input"!==e&&"zeebe:output"!==e){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",params:{allowedValues:Mw.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/properties/"+i+"/binding/type"&&(0!==e.dataPath.indexOf(t+"/properties/"+i+"/binding/type")||"/"!==e.dataPath[t+"/properties/"+i+"/binding/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",params:{errors:n},message:"optional is not supported for binding type "+JSON.stringify(e)+"; must be any of { zeebe:input, zeebe:output }"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}}}w=u=n===a}if(!w){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const E=a;let P=!0;const O=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.optional){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.optional&&!ew(e.optional,!0)){const e={};null===o?o=[e]:o.push(e),a++}var d=O===a;if(a=E,null!==o&&(E?o.length=E:o=null),d){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0!==e.constraints){let n=e.constraints;if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.notEmpty){const e={keyword:"required",dataPath:t+"/properties/"+i+"/constraints",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/required",params:{missingProperty:"notEmpty"},message:"should have required property 'notEmpty'"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.notEmpty){if(!ew(n.notEmpty,!1)){const e={keyword:"const",dataPath:t+"/properties/"+i+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",params:{allowedValue:!1},message:"should be equal to constant"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/constraints/notEmpty"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/constraints/notEmpty")||"/"!==n.dataPath[t+"/properties/"+i+"/constraints/notEmpty".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/constraints/notEmpty",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",params:{errors:e},message:'optional is not allowed for truthy "notEmpty" constraint'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}}}}P=d=n===a}if(!P){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const S=a;let k=!0;const C=a;if(e&&"object"==typeof e&&!Array.isArray(e))if(void 0===e.feel){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==e.feel){const t=a,n=a;if(!ew(e.feel,Mw.allOf[1].items.allOf[4].if.properties.feel.not.const)){const e={};null===o?o=[e]:o.push(e),a++}if(n===a){const e={};null===o?o=[e]:o.push(e),a++}else a=t,null!==o&&(t?o.length=t:o=null)}var h=C===a;if(a=S,null!==o&&(S?o.length=S:o=null),h){const n=a;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={keyword:"required",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.type){let n=e.type;if("String"!==n&&"Text"!==n){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/properties/type/enum",params:{allowedValues:Mw.allOf[1].items.allOf[4].then.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/type"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/type")||"/"!==n.dataPath[t+"/properties/"+i+"/type".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/4/then/properties/type")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/allOf/4/then/properties/type".length]||(e.push(n),n.emUsed=!0);if(e.length){const n={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/then/properties/type/errorMessage",params:{errors:e},message:'feel is only supported for "String" and "Text" type'};null===o?o=[n]:o.push(n),a++}const n=[];for(const e of o)e.emUsed||n.push(e);o=n,a=n.length}}}k=h=n===a}if(!k){const e={keyword:"if",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/allOf/4/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.binding){const e={keyword:"required",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/required",params:{missingProperty:"binding"},message:"should have required property 'binding'"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.binding){let n=e.binding;const r=a;let s=!0;const p=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type){let e=n.type;if("property"!==e&&"zeebe:input"!==e){const e={};null===o?o=[e]:o.push(e),a++}}var m=p===a;if(a=r,null!==o&&(r?o.length=r:o=null),m){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.name){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",params:{missingProperty:"name"},message:"should have required property 'name'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires name"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}s=m=e===a}if(!s){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const l=a;let c=!0;const u=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!ew(n.type,"zeebe:output")){const e={};null===o?o=[e]:o.push(e),a++}var f=u===a;if(a=l,null!==o&&(l?o.length=l:o=null),f){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.source){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",params:{missingProperty:"source"},message:"should have required property 'source'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires source"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}c=f=e===a}if(!c){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}const d=a;let h=!0;const g=a;if(n&&"object"==typeof n&&!Array.isArray(n))if(void 0===n.type){const e={};null===o?o=[e]:o.push(e),a++}else if(void 0!==n.type&&!ew(n.type,"zeebe:taskHeader")){const e={};null===o?o=[e]:o.push(e),a++}var y=g===a;if(a=d,null!==o&&(d?o.length=d:o=null),y){const e=a;if(n&&"object"==typeof n&&!Array.isArray(n)&&void 0===n.key){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/required",params:{missingProperty:"key"},message:"should have required property 'key'"};null===o?o=[e]:o.push(e),a++}if(a>0){const e=[];for(const n of o)"errorMessage"===n.keyword||n.emUsed||n.dataPath!==t+"/properties/"+i+"/binding"&&(0!==n.dataPath.indexOf(t+"/properties/"+i+"/binding")||"/"!==n.dataPath[t+"/properties/"+i+"/binding".length])||0!==n.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then")||"/"!==n.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length]||(e.push(n),n.emUsed=!0);if(e.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",params:{errors:e},message:"property.binding "+JSON.stringify(n&&n.type)+" requires key"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}h=y=e===a}if(!h){const e={keyword:"if",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",params:{failingKeyword:"then"},message:'should match "then" schema'};null===o?o=[e]:o.push(e),a++}if(n&&"object"==typeof n&&!Array.isArray(n)){if(void 0===n.type){const e={keyword:"required",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",params:{missingProperty:"type"},message:"should have required property 'type'"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.type){let e=n.type;if("string"!=typeof e){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if("property"!==e&&"zeebe:taskDefinition:type"!==e&&"zeebe:input"!==e&&"zeebe:output"!==e&&"zeebe:taskHeader"!==e){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",params:{allowedValues:Mw.allOf[1].items.properties.binding.properties.type.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}if(a>0){const n=[];for(const e of o)"errorMessage"===e.keyword||e.emUsed||e.dataPath!==t+"/properties/"+i+"/binding/type"&&(0!==e.dataPath.indexOf(t+"/properties/"+i+"/binding/type")||"/"!==e.dataPath[t+"/properties/"+i+"/binding/type".length])||0!==e.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type")||"/"!==e.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length]||(n.push(e),e.emUsed=!0);if(n.length){const r={keyword:"errorMessage",dataPath:t+"/properties/"+i+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",params:{errors:n},message:"invalid property.binding type "+JSON.stringify(e)+"; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:taskHeader }"};null===o?o=[r]:o.push(r),a++}const r=[];for(const e of o)e.emUsed||r.push(e);o=r,a=r.length}}if(void 0!==n.name&&"string"!=typeof n.name){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.source&&"string"!=typeof n.source){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(void 0!==n.key&&"string"!=typeof n.key){const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding/key",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/key/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}}else{const e={keyword:"type",dataPath:t+"/properties/"+i+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}}if(void 0!==e.optional&&"boolean"!=typeof e.optional){const e={keyword:"type",dataPath:t+"/properties/"+i+"/optional",schemaPath:"#/definitions/properties/allOf/1/items/properties/optional/type",params:{type:"boolean"},message:"should be boolean"};null===o?o=[e]:o.push(e),a++}if(void 0!==e.feel){let n=e.feel;if("string"!=typeof n){const e={keyword:"type",dataPath:t+"/properties/"+i+"/feel",schemaPath:"#/definitions/properties/allOf/1/items/properties/feel/type",params:{type:"string"},message:"should be string"};null===o?o=[e]:o.push(e),a++}if(null!==n&&"optional"!==n&&"required"!==n){const e={keyword:"enum",dataPath:t+"/properties/"+i+"/feel",schemaPath:"#/definitions/properties/allOf/1/items/properties/feel/enum",params:{allowedValues:Mw.allOf[1].items.properties.feel.enum},message:"should be equal to one of the allowed values"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}if(a>0){const e={required:{binding:[]}},n={required:{binding:function(){return'missing binding for property "'+JSON.stringify(i)+'"'}}};let r,s;for(const n of o)"errorMessage"!==n.keyword&&!n.emUsed&&n.dataPath===t+"/properties/"+i&&n.keyword in e&&0===n.schemaPath.indexOf("#/definitions/properties/allOf/1/items")&&/^\/[^\/]*$/.test(n.schemaPath.slice(38))&&(r=Aw[n.keyword],s=e[n.keyword][n.params[r]],s&&(s.push(n),n.emUsed=!0));for(const r in e)for(const p in e[r])if(s=e[r][p],s.length){const e=n[r]&&n[r][p],l={keyword:"errorMessage",dataPath:t+"/properties/"+i,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",params:{errors:s},message:e?e():Mw.allOf[1].items.errorMessage[r][p]};null===o?o=[l]:o.push(l),a++}const p=[];for(const e of o)e.emUsed||p.push(e);o=p,a=p.length}}}else{const e={keyword:"type",dataPath:t+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}}}else{const e={keyword:"type",dataPath:t,schemaPath:"#/type",params:{type:"object"},message:"should be object"};null===o?o=[e]:o.push(e),a++}return Rw.errors=o,0===a}function zw(e,{dataPath:t="",parentData:n,parentDataProperty:i,rootData:r=e}={}){let o=null,a=0;const s=a;let p=!1,l=null;const c=a;Rw(e,{dataPath:t,parentData:n,parentDataProperty:i,rootData:r})||(o=null===o?Rw.errors:o.concat(Rw.errors),a=o.length),(d=c===a)&&(p=!0,l=0);const u=a;if(Array.isArray(e)){const n=e.length;for(let i=0;i<n;i++)Rw(e[i],{dataPath:t+"/"+i,parentData:e,parentDataProperty:i,rootData:r})||(o=null===o?Rw.errors:o.concat(Rw.errors),a=o.length)}else{const e={keyword:"type",dataPath:t,schemaPath:"#/oneOf/1/type",params:{type:"array"},message:"should be array"};null===o?o=[e]:o.push(e),a++}var d;if((d=u===a)&&p?(p=!1,l=[l,1]):d&&(p=!0,l=1),p)a=s,null!==o&&(s?o.length=s:o=null);else{const e={keyword:"oneOf",dataPath:t,schemaPath:"#/oneOf",params:{passingSchemas:l},message:"should match exactly one schema in oneOf"};null===o?o=[e]:o.push(e),a++}return zw.errors=o,0===a}Sw.default=kw;function Dw(e){this._eventBus=e}Dw.$inject=["eventBus"],Dw.prototype.on=function(e,t,n,i,r,o){if((f(t)||m(t))&&(o=r,r=i,i=n,n=t,t=null),f(n)&&(o=r,r=i,i=n,n=1e3),h(r)&&(o=r,r=!1),!f(i))throw new Error("handlerFn must be a function");d(e)||(e=[e]);var a=this._eventBus;_(e,(function(e){var s=["commandStack",e,t].filter((function(e){return e})).join(".");a.on(s,n,r?function(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}(i,o):i,o)}))};_(["canExecute","preExecute","preExecuted","execute","executed","postExecute","postExecuted","revert","reverted"],(function(e){Dw.prototype[e]=function(t,n,i,r,o){(f(t)||m(t))&&(o=r,r=i,i=n,n=t,t=null),this.on(t,e,n,i,r,o)}}));const jw=Gv({selectedElement:null,injector:null,getService:()=>null});function Bw(e,t){const{getService:n}=cb(jw);return n(e,t)}function Nw(e,t){return lb((n=>{const{id:i,path:r}=n;return i===e.get("id")&&(d(t)?r&&Xx(r,t):!!f(t)&&!!t(n))}),[e,t])}function Lw(){return(Lw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Iw(){return(Iw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function $w(){return($w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Fw(){return(Fw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Vw(){return(Vw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Hw(){return(Hw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function qw(){return(qw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Uw=({styles:e={},...t})=>Lb("svg",qw({width:"32",height:"32",xmlns:"http://www.w3.org/2000/svg"},t),Lb("path",{stroke:"#000",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"1.1,4.3",d:"M1.5 30.5L27 5"}),Lb("path",{d:"M31.803.197L26.5 16.107l-1.52-1.52 3.783-11.35-11.35 3.783-1.52-1.52z"}));function Gw(){return(Gw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ww(){return(Ww=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Kw(){return(Kw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Yw(){return(Yw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Xw(){return(Xw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Zw(){return(Zw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Jw(){return(Jw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Qw(){return(Qw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function e_(){return(e_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function t_(){return(t_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function n_(){return(n_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function i_(){return(i_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function r_(){return(r_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function o_(){return(o_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function a_(){return(a_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function s_(){return(s_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function p_(){return(p_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l_(){return(l_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function c_(){return(c_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function u_(){return(u_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function d_(){return(d_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function h_(){return(h_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function m_(){return(m_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function f_(){return(f_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var y_=({styles:e={},...t})=>Lb("svg",f_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.111.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.454 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.215-2.282-2.022-5.3-3.217-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.082 11.082 0 0116 5.021zm-3.956 3.946l-3.096 3.097 3.985 3.985-3.913 3.913 3.047 3.048 3.913-3.913 3.988 3.987 3.097-3.096L19.076 16l3.914-3.913-3.048-3.048-3.913 3.913-3.986-3.985zm-.002 1.222l3.988 3.987 3.913-3.913 1.826 1.826-3.913 3.913 3.985 3.986-1.873 1.873-3.985-3.985-3.913 3.913-1.827-1.827 3.914-3.913-3.988-3.987 1.873-1.873z"}));function g_(){return(g_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var v_=({styles:e={},...t})=>Lb("svg",g_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm-.56 5.772l-7.408 5.231 7.409 5.234v-5.057c2.385 1.687 4.771 3.371 7.157 5.057V10.793l-7.157 5.055v-5.055zm-.865 1.665v7.125l-5.048-3.562 5.048-3.563zm7.161 0v7.132l-5.048-3.566 5.048-3.566z"}));function b_(){return(b_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var x_=({styles:e={},...t})=>Lb("svg",b_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.97.04h-.127C8.713-.018 2.003 5.334.437 12.286c-1.51 6.123.98 13.005 6.136 16.665 5.125 3.788 12.546 4.105 17.912.623 5.272-3.276 8.33-9.766 7.325-15.916-.904-6.241-5.79-11.7-11.95-13.143A16.082 16.082 0 0015.97.04zm-.181 1.724c.115 0 .23 0 .347.003 6.625-.066 12.823 5.149 13.89 11.69 1.13 5.91-1.908 12.349-7.262 15.138-5.473 3.013-12.866 1.884-17.116-2.726C1.291 21.372.444 13.914 3.802 8.602c2.493-4.112 7.169-6.819 11.987-6.838zm.283 1.554c-.117 0-.234.002-.351.005-6.1 0-11.691 5.049-12.346 11.114-.78 5.684 2.795 11.612 8.218 13.52 5.139 1.943 11.416.101 14.624-4.38 3.461-4.583 3.262-11.538-.596-15.831-2.36-2.747-5.924-4.423-9.549-4.428zm-.078 1.695c.078 0 .156 0 .234.003 5.4 0 10.321 4.556 10.734 9.942.563 5.13-2.958 10.364-7.971 11.678-4.832 1.41-10.457-.935-12.746-5.446-2.463-4.559-1.2-10.795 3.014-13.883a11.072 11.072 0 016.735-2.294zm-5.352 4.266V22.761h10.716V9.279H10.642zm.863.866h8.987v11.75h-8.987v-11.75zm.927 1.323v.862h7.133v-.862h-7.133zm0 2.602v.866h7.133v-.866h-7.133zm0 3.008v.862h7.133v-.862h-7.133zm0 2.717v.863h7.133v-.863h-7.133z"}));function w_(){return(w_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var __=({styles:e={},...t})=>Lb("svg",w_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm6.132 4.194c-1.21 2.455-2.422 4.91-3.633 7.364l-4.516-5.875-4.103 12.133 4.6-5.912c1.58 1.81 3.162 3.619 4.744 5.429L22.13 9.215zM14.383 13.1l4.295 5.445 1.073-2.387-1.027 4.131-4.384-5.157-1.778 2.75 1.821-4.782z"}));function E_(){return(E_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var P_=({styles:e={},...t})=>Lb("svg",E_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.927c-1.672 4.654-2.734 9.502-4.406 14.155 1.534-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.496-4.71-2.91-9.446-4.406-14.156zm.032 2.929c.822 2.586 1.598 5.186 2.42 7.771l-2.42-2.612c-.682.597-2.452 2.884-2.338 2.388.87-2.487 1.447-5.067 2.338-7.547z"}));function O_(){return(O_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var S_=({styles:e={},...t})=>Lb("svg",O_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912zm.974 2.584l3.61 4.295-3.61 4.294v-1.933h-7.88v-4.688h7.88v-1.968z"}));function k_(){return(k_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var C_=({styles:e={},...t})=>Lb("svg",k_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm-7.245 5.475v11.06h14.502v-11.06H8.754zm3.222 1.728h8.057c-1.427.878-2.854 2.806-4.281 3.016l-3.776-3.016zm9.554 1.017v6.587H10.48V13.24l5.524 4.414 5.526-4.414z"}));function M_(){return(M_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var T_=({styles:e={},...t})=>Lb("svg",M_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.073l-7.62 5.531 2.91 8.95h9.42l2.91-8.95-7.62-5.53zm0 1.067l6.604 4.794-2.523 7.757h-8.162l-2.522-7.757 6.603-4.794z"}));function A_(){return(A_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var R_=({styles:e={},...t})=>Lb("svg",A_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M10.638 9.563V23.056h10.724V9.563H10.638zm.863.866h8.995v11.76H11.5V10.43zm.928 1.324v.862h7.139v-.862h-7.14zm0 2.605v.866h7.139v-.866h-7.14zm0 3.01v.863h7.139v-.863h-7.14zm0 2.72v.863h7.139v-.864h-7.14zM15.999.308h-.004l-.188.001h-.011l-.188.004h-.011L15.41.32h-.011l-.187.008h-.005L15.2.33l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.37h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003.178-.001h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 1.023l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.62h-.005l-.005-.002-.182-.035h-.006L18.938.58l-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.43 17.783.41l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.37h-.005L17.38.368l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.328h-.011L16.6.32h-.011l-.187-.006h-.011L16.204.31h-.011L16.005.31H16zm9.016 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zm-18.381.344l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003L4.682 5l-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.595h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01L16.32 3.6h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 13.135l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187V16.7l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zm-30.21.572l-.161.001-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158-.074-.155-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178-.001-.177v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057-.159-.028zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14v-.005l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 23.019l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 27.127l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z"}));function z_(){return(z_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var D_=({styles:e={},...t})=>Lb("svg",z_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.012 9.222c-1.673 4.657-2.735 9.508-4.409 14.164 1.536-1.526 2.874-3.236 4.41-4.762l4.408 4.762c-1.497-4.712-2.911-9.451-4.409-14.164zm.032 2.93c.823 2.588 1.599 5.19 2.421 7.777l-2.42-2.614c-.683.598-2.454 2.886-2.34 2.39.871-2.489 1.448-5.07 2.34-7.552zM16.012.312c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"}));function j_(){return(j_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var B_=({styles:e={},...t})=>Lb("svg",j_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M8.742 10.464v11.072h14.516V10.464H8.742zm3.224 1.73h8.066a69569 69569 0 00-4.034 3.22l-4.032-3.22zm9.565 1.018v6.594H10.469v-6.593L16 17.63l5.532-4.419zM16 0h-.005l-.188.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06h-.005L17.38.06l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0H16zm9.015 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zM6.634 3.28l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.286h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 12.826l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zM.938 15L.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 22.71l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 26.818l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z"}));function N_(){return(N_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var L_=({styles:e={},...t})=>Lb("svg",N_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M23.637 13.902l-7.625-5.535-7.624 5.535 2.912 8.956h9.425l2.912-8.956zm-1.017.33l-2.524 7.762H11.93l-2.524-7.762 6.607-4.796 6.608 4.796zM16.012.311c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"}));function I_(){return(I_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var $_=({styles:e={},...t})=>Lb("svg",I_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M13.51 9.081v4.428H9.08v4.982h4.428v4.428h4.982V18.49h4.428v-4.982H18.49V9.081h-4.982zm.83.83h3.32v4.428h4.429v3.322H17.66v4.428h-3.32v-4.454H9.91v-3.296h4.428V9.911zM16 0h-.005l-.188.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06h-.005L17.38.06l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0H16zm9.015 2.935l-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027zM6.634 3.28l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023zM16 3.286h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.011l-.147-.001H16zm-5.482 1.366l-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022zm13.91 2.116l-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023zM4.45 12.826l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029zm26.698 1.601l-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02zM.938 15L.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15zm26.798 2.024l-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022zM6.841 22.71l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006zm15.063 2.701l-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016zM6.33 26.818l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006zm19.215.087l-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02z",opacity:".98"}));function F_(){return(F_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var V_=({styles:e={},...t})=>Lb("svg",F_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.012 8.816L9.21 21.026h13.606l-6.803-12.21zm0 1.776l5.332 9.57H10.681l5.331-9.57zm0-10.281c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 00-5.06-6.006c-.1-.044-.203-.07-.31-.082zM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 014.327-5.56c.476-.515.09-1.419-.612-1.431zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 00-.453-.153zM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 01-.334-5.808.874.874 0 00-.794-.865zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 001.821-8.372.876.876 0 00-.812-.667zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 01-1.603-6.861.876.876 0 00-.778-.707zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 00-.825-.835zM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 01-4.723-3.396.899.899 0 00-.599-.197zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521zM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 01-6.345-3.066.929.929 0 00-.466-.107zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423z"}));function H_(){return(H_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var q_=({styles:e={},...t})=>Lb("svg",H_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.998 8.406c-3.018-.041-5.92 1.926-7.031 4.727-1.138 2.695-.51 6.012 1.537 8.103 1.99 2.141 5.268 2.93 8.014 1.927 2.878-.98 4.992-3.827 5.068-6.87.153-2.957-1.624-5.88-4.3-7.137a7.552 7.552 0 00-3.288-.75zm0 1.384c2.759-.052 5.373 1.973 6.015 4.655.704 2.578-.482 5.517-2.791 6.867-2.358 1.48-5.682 1.086-7.618-.918-2.043-1.971-2.407-5.381-.84-7.745 1.11-1.763 3.15-2.88 5.234-2.86zm1.962 1.765l-2.074 3.762c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.182l1.993-3.615c-.252-.14-.505-.278-.757-.417zm-1.965-8.268h-.158l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.048.12.047.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.138-.107-.121-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.005-.002-.006-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.141-.031-.006-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.001-.143-.026-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.01l-.148-.001h-.01zM10.357 4.66l-.156.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.004.003-.005.004-.11.096-.004.004-.004.003-.109.098-.004.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.003.004-.004.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.005-.086.117-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.029.15-.058.138-.085.119-.108.082-.106.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022-.16.008zm13.91 2.116l-.158.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.026.159.054.152.082.139.086.102.09.09.094.098.093.099.092.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.115.068.117.067.115.065.118.064.117.062.118.061.12.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.049.127.046.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.086.137.109.119.129.096.145.07.155.043.16.013.161-.017.155-.046.143-.074.126-.1.106-.122.082-.138.055-.152.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.059-.132-.002-.005-.002-.004-.061-.132-.003-.004-.002-.005-.062-.13-.003-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.073-.125-.003-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.08-.12-.004-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.117-.003-.005-.003-.004-.088-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.093-.113-.004-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.109-.004-.004-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023-.16.008zM4.288 12.828l-.158.032-.15.06-.135.088-.117.11-.095.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.006-.019.144v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.006l-.001.005-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.006.033.14v.006l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.103.102-.126.076-.142.049-.153.02-.16-.01-.161-.032-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.132-.024-.134-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.132.01-.139.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029-.16.002zm23.286 4.202l-.156.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.134-.026.132-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.062.119-.063.116-.067.119-.066.116-.068.115-.07.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.108-.085.109-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.082-.12.003-.005.002-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.004.003-.005.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.003-.005.002-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.002-.006.04-.138.002-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.141.001-.006.001-.005.031-.141.002-.006v-.005l.03-.142.001-.005.001-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022-.16.007zM6.681 22.734l-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.11.04.047.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.106.004.003.004.004.103.105.004.004.004.004.105.103.004.004.003.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.005.004.004.003.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.003.126.072.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.068.005.002.004.002.13.066.004.003.005.002.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.003.133.056.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.161-.015.155-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.158-.061-.15-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.079-.11-.08-.109-.082-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006-.16.024zm15.063 2.691l-.156.044-.12.057-.06.034-.12.066-.116.064-.119.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.036-.13.035-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021h.005l.006-.002.143-.022h.006l.005-.002.143-.024h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.036.005-.002.005-.001.14-.038.005-.001.005-.002.14-.04h.005l.005-.002.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.056.005-.003.005-.002.132-.057.005-.002.005-.003.132-.059.005-.002.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.002.005-.003.129-.066.004-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.002.065-.038.132-.093.112-.115.089-.135.062-.149.034-.157.004-.161-.027-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.045-.16-.017-.161.014zM15.994 0l-.187.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.01L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.184.027h-.006l-.005.001-.184.029h-.005l-.005.001-.183.031-.005.001-.006.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.177.027.17.03.173.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.088-.135.06-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.144-.073-.129-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.005-.001-.184-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06 17.385.06h-.005l-.187-.015h-.005l-.005-.001-.187-.013h-.01L16.799.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0h-.01zm8.86 2.939l-.157.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.127.125.123.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.085.152.083.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.161-.016.155-.046.143-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.002-.005-.003-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.002-.005-.102-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.004-.003-.005-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.003-.004-.004-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.003-.004-.133-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027-.16.004zm-18.381.348l-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.005-.003.004-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.005-.003.004-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023-.161.008zm24.514 11.15l-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.024.175-.027.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.161-.061.164-.063.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.078.158-.081.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.12.13.096.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.004.002-.005.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.17.002-.006.001-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.18.001-.006.001-.005.038-.182v-.005l.002-.005.035-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02-.161.009zM.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.005.074.169.002.005.002.004.076.169.002.005.002.004.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.156-.07-.162-.068-.16-.067-.164-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15 .777 15zM6.17 26.842l-.152.052-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.005.003.004.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.003.162.088.005.002.004.002.164.087.005.002.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.169.076.004.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.061.005.002.005.001.175.06.005.001.005.002.176.057.005.001.005.002.177.055.005.001.005.002.177.052.005.002.005.001.178.051.005.001.005.002.178.048.006.002h.005l.179.047.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.169-.044-.17-.045-.166-.048-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006-.16.024zm19.214.073l-.156.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.157.073-.158.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.048-.17.045-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.008.133-.017.115-.024h.005l.005-.002.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002h.005l.18-.047.004-.001.005-.002.179-.048.005-.002.005-.001.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.005-.002.004-.002.172-.068.005-.001.005-.002.171-.07.005-.002.005-.002.17-.072.005-.002.005-.002.169-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.002.167-.08.004-.003.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.002.163-.087.005-.002.005-.002.162-.088.005-.003.005-.003.161-.09.005-.002.004-.003.16-.092.005-.002.005-.003.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.002.155-.102.005-.003.004-.003.154-.104.004-.003.005-.003.152-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.111.004-.004.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02-.16.009z"}));function U_(){return(U_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var G_=({styles:e={},...t})=>Lb("svg",U_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.157.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.408 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.215-2.282-2.022-5.3-3.217-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.082 11.082 0 0116 4.975zm-2.15 3.281v5.534H8.213v4.38h5.636v5.534h4.31V18.17h5.639v-4.38h-5.64V8.256h-4.31zm.865.865h2.583v5.534h5.635v2.65h-5.635v5.533h-2.583v-5.534h-5.64v-2.649h5.64V9.121z"}));function W_(){return(W_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var K_=({styles:e={},...t})=>Lb("svg",W_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.521L9.206 20.745h13.598L16.005 8.542zm0 1.775l5.329 9.564H10.677l5.328-9.564z"}));function Y_(){return(Y_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var X_=({styles:e={},...t})=>Lb("svg",Y_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.97.04h-.127C8.713-.018 2.003 5.334.437 12.286c-1.51 6.123.98 13.005 6.136 16.665 5.125 3.788 12.546 4.105 17.912.623 5.272-3.276 8.33-9.766 7.325-15.916-.904-6.241-5.79-11.7-11.95-13.143A16.082 16.082 0 0015.97.04zm-.181 1.724c.115 0 .23 0 .347.003 6.625-.066 12.823 5.149 13.89 11.69 1.13 5.91-1.908 12.349-7.262 15.138-5.473 3.013-12.866 1.884-17.116-2.726C1.291 21.372.444 13.914 3.802 8.602c2.493-4.112 7.169-6.819 11.987-6.838zm.283 1.554c-.117 0-.234.002-.351.005-6.1 0-11.691 5.049-12.346 11.114-.78 5.684 2.795 11.612 8.218 13.52 5.139 1.943 11.416.101 14.624-4.38 3.461-4.583 3.262-11.538-.596-15.831-2.36-2.747-5.924-4.423-9.549-4.428zm-.078 1.695c.078 0 .156 0 .234.003 5.4 0 10.321 4.556 10.734 9.942.563 5.13-2.958 10.364-7.971 11.678-4.832 1.41-10.457-.935-12.746-5.446-2.463-4.559-1.2-10.795 3.014-13.883a11.072 11.072 0 016.735-2.294zm-.137 3.42c-2.965.02-5.792 1.968-6.884 4.722-1.137 2.693-.509 6.007 1.536 8.096 1.988 2.14 5.263 2.929 8.007 1.926 2.875-.98 4.987-3.824 5.063-6.865.154-2.954-1.622-5.875-4.295-7.13a7.545 7.545 0 00-3.427-.75zm.27 1.381c2.708.013 5.249 2.014 5.88 4.652.704 2.576-.481 5.512-2.788 6.862-2.356 1.478-5.677 1.084-7.611-.918-2.042-1.97-2.405-5.376-.839-7.738 1.11-1.762 3.146-2.877 5.229-2.857h.13zm1.831 1.764l-2.072 3.76c-.64.068-.792 1.039-.202 1.298.39.27.696-.18 1.051-.164h3.168v-.864h-3.18l1.992-3.612-.757-.418z"}));function Z_(){return(Z_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var J_=({styles:e={},...t})=>Lb("svg",Z_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.848.001C8.113-.093.931 6.281.125 13.983c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.207C29.105 4.938 23.55.48 17.367.06A16.448 16.448 0 0015.848 0v.001zm.293 1.727c7.113-.099 13.662 5.97 14.077 13.08.56 6.299-3.516 12.735-9.582 14.679-5.798 2.004-12.806-.12-16.283-5.237C.717 19.159.874 11.638 5.016 6.876 7.722 3.638 11.902 1.63 16.14 1.728zm-.415 1.555C9.157 3.258 3.256 9.156 3.278 15.729c-.16 5.965 4.365 11.725 10.293 12.737 5.409 1.065 11.37-1.744 13.775-6.753 2.534-4.986 1.386-11.627-2.953-15.251-2.364-2.077-5.512-3.27-8.667-3.18zm.507 1.692c5.82-.026 11.013 5.318 10.79 11.143-.024 5.3-4.313 10.267-9.636 10.803-5.075.667-10.426-2.588-11.885-7.553-1.535-4.744.494-10.46 4.925-12.885a11.072 11.072 0 015.806-1.508z"}));function Q_(){return(Q_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function eE(){return(eE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function tE(){return(tE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function nE(){return(nE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function iE(){return(iE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function rE(){return(rE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function oE(){return(oE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function aE(){return(aE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function sE(){return(sE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function pE(){return(pE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function lE(){return(lE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function cE(){return(cE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function uE(){return(uE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function dE(){return(dE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function hE(){return(hE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function mE(){return(mE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function fE(){return(fE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function yE(){return(yE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function gE(){return(gE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function vE(){return(vE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function bE(){return(bE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function xE(){return(xE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function wE(){return(wE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _E(){return(_E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function EE(){return(EE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function PE(){return(PE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function OE(){return(OE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function SE(){return(SE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function kE(){return(kE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function CE(){return(CE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ME(){return(ME=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function TE(){return(TE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function AE(){return(AE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var RE=({styles:e={},...t})=>Lb("svg",AE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M5.637 3A5.644 5.644 0 000 8.637v15.417a5.644 5.644 0 005.637 5.637h20.726A5.644 5.644 0 0032 24.054V8.637A5.644 5.644 0 0026.363 3H5.637zm0 1.778h20.726a3.83 3.83 0 013.859 3.859v15.417a3.83 3.83 0 01-3.859 3.858h-4.201V16.695H9.838v11.217H5.637a3.83 3.83 0 01-3.859-3.858V8.637a3.83 3.83 0 013.859-3.859zm5.33 13.046h10.066v10.065H10.967V17.824zm4.189 1.431V22.06H12.35v1.689h2.804V26.554h1.69V23.749h2.804V22.06h-2.804V19.255h-1.69z"}));function zE(){return(zE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var DE=({styles:e={},...t})=>Lb("svg",zE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M5.636 3A5.642 5.642 0 000 8.636v15.418a5.643 5.643 0 005.636 5.636h20.728A5.643 5.643 0 0032 24.054V8.636A5.642 5.642 0 0026.364 3H5.636zm0 1.778h20.728a3.83 3.83 0 013.858 3.858v15.418a3.83 3.83 0 01-3.858 3.858h-4.203V16.723H9.84v11.189H5.636a3.83 3.83 0 01-3.858-3.858V8.636a3.83 3.83 0 013.858-3.858zm5.331 13.074h10.066v10.06H10.967v-10.06zm1.336 3.996v1.711h7.394v-1.71h-7.394z"}));function jE(){return(jE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function BE(){return(BE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function NE(){return(NE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function LE(){return(LE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var IE={Association:({styles:e={},...t})=>Lb("svg",Lw({width:"32",height:"32",xmlns:"http://www.w3.org/2000/svg"},t),Lb("path",{stroke:"#000",strokeWidth:"2",fill:"none",strokeDasharray:"3.3,6",strokeLinecap:"square",d:"M1.5 30.5l29-29"})),BusinessRuleTask:({styles:e={},...t})=>Lb("svg",Iw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zM5.296 7.398v12.665h16.87V7.398H5.296zm.718 4.386h15.433v3.44H9.985v-3.432h-.719v3.431H6.014v-3.44zm0 4.158h3.252v3.403H6.014v-3.403zm3.97 0h11.463v3.403H9.985v-3.403z"}),Lb("path",{d:"M6.079 8.209v3.587H21.44V8.209z"})),CallActivity:({styles:e={},...t})=>Lb("svg",$w({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M24.978 3c3.761 0 6.89 2.979 7.018 6.695l.004.238V22.4c0 3.747-3.05 6.804-6.783 6.93l-.24.003H7.023c-3.761 0-6.89-2.978-7.018-6.695L0 22.4V9.933C0 6.187 3.05 3.13 6.783 3.004L7.023 3h17.955zm0 3.667H7.022c-1.842 0-3.255 1.344-3.35 3.079l-.005.187V22.4c0 1.761 1.35 3.167 3.16 3.262l.195.005L10 25.666V15h12v10.666h2.978c1.842 0 3.255-1.344 3.35-3.079l.005-.187V9.933c0-1.761-1.35-3.166-3.16-3.261l-.195-.005zm-3.732 9.087H10.754v9.912h10.491v-9.912zm-4.475 1.817v2.658h2.658v1.542H16.77v2.658H15.23V21.77H12.57V20.23h2.658V17.57h1.542z"})),Collaboration:({styles:e={},...t})=>Lb("svg",Fw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("g",{fillRule:"evenodd"},Lb("path",{fillRule:"nonzero",d:"M0 0v8.62h32V0H0zm1.655 7.054v-5.37h28.62v5.37H1.656zM0 23.38V32h32v-8.62H0zm1.655 7.054v-5.37h28.62v5.37H1.656z"}),Lb("path",{d:"M24 8l4 7h-8l4-7zm0 2l-2.28 4h4.56L24 10zM23.5 21h1v3h-1zM23.5 15h1v3h-1zM8 24l-4-7h8l-4 7zm0-2l2.28-4H5.72L8 22zM7.5 8h1v3h-1zM7.5 14h1v3h-1z"}))),ConditionalFlow:({styles:e={},...t})=>Lb("svg",Vw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M32 .041S20.42 5.95 14.537 8.713c1.26 1.15 2.432 2.392 3.648 3.588-5.703 5.78-3.15 3.303-8.087 8.316l-8.472 1.377L0 32l10.006-1.626.098-.598 1.279-7.873c4.975-5.052 2.403-2.555 8.118-8.346 1.218 1.214 2.43 2.435 3.648 3.648C26.29 11.018 32 .041 32 .041zM9.603 22.397L8.54 28.91 2.03 29.97l1.061-6.515 6.512-1.058z"})),SequenceFlow:({styles:e={},...t})=>Lb("svg",Hw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M32 .06S20.33 6.014 14.403 8.798c1.27 1.16 2.451 2.41 3.676 3.616L0 30.734 1.325 32l18.08-18.32c1.227 1.223 2.448 2.453 3.676 3.676C26.247 11.12 32 .06 32 .06z"})),DataInput:({styles:e={},...t})=>Lb("svg",Gw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M20.833 0H3.488v32H28V7.36L20.833 0zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422zm1.818.493l5.06 5.196h-5.06V2.311zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354zm.808 1.868l3.711 3.487-3.71 3.487V9.329H7.888V7.723h4.283V5.039z"})),DataInputAssociation:Uw,DataOutput:({styles:e={},...t})=>Lb("svg",Kw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M20.833 0H3.488v32H28V7.36L20.833 0zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422zm1.818.493l5.06 5.196h-5.06V2.311zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354z"})),DataOutputAssociation:Uw,DataObjectReference:({styles:e={},...t})=>Lb("svg",Ww({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M21.345 0H4v32h24.512V7.36L21.345 0zM19.24 1.818v7.507h7.454v20.857H5.818V1.818H19.24zm1.818.493l5.06 5.196h-5.06V2.311z"})),DataStoreReference:({styles:e={},...t})=>Lb("svg",Yw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.008 1c-3.712 0-7.417.306-10.319.939-1.45.316-2.7.71-3.68 1.226C1.065 3.662.297 4.304.061 5.23a.823.823 0 00-.035.15L0 5.502l.017.084c-.012 7.41 0 14.46 0 22.08l.017.082c.203.985.995 1.656 1.975 2.172.98.517 2.23.91 3.68 1.226 2.902.633 6.607.94 10.319.94 3.711 0 7.416-.307 10.318-.94 1.451-.316 2.701-.71 3.68-1.226.98-.516 1.772-1.187 1.975-2.172l.017-.082V5.541a.825.825 0 000-.106v-.016l-.002-.013a.823.823 0 00-.046-.197c-.244-.916-1.007-1.55-1.943-2.044-.98-.516-2.23-.91-3.68-1.226C23.423 1.306 19.718 1 16.006 1zm0 1.646c3.62 0 7.245.308 9.968.901 1.36.297 2.497.67 3.263 1.074.612.323.932.643 1.063.882-.131.24-.451.56-1.063.882-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.901-1.361-.297-2.497-.67-3.264-1.074-.611-.322-.931-.642-1.062-.882.13-.24.451-.56 1.062-.882.767-.403 1.903-.777 3.264-1.074 2.723-.593 6.348-.9 9.968-.9zM1.664 7.647c.112.067.227.132.345.194.98.517 2.23.91 3.68 1.226 2.902.633 6.607.94 10.319.94 3.711 0 7.416-.307 10.318-.94 1.451-.316 2.701-.71 3.68-1.226.119-.062.234-.127.346-.194v1.93c-.08.245-.398.619-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.9-1.361-.298-2.497-.671-3.264-1.075-.714-.376-1.032-.75-1.112-.995v-1.93zm0 4.187c.112.067.227.132.345.195.98.516 2.23.91 3.68 1.226 2.902.632 6.607.938 10.319.938 3.711 0 7.416-.306 10.318-.938 1.451-.317 2.701-.71 3.68-1.226.119-.063.234-.128.346-.195v1.93c-.08.245-.398.619-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.9-1.361-.298-2.497-.67-3.264-1.075-.714-.376-1.032-.75-1.112-.995v-1.93zm0 4.188c.112.067.227.131.345.194.98.516 2.23.91 3.68 1.226 2.902.633 6.607.939 10.319.939 3.711 0 7.416-.306 10.318-.94 1.451-.316 2.701-.709 3.68-1.225.119-.063.234-.127.346-.194V27.47c-.08.245-.398.618-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.9-9.968.9-3.62 0-7.245-.306-9.968-.9-1.361-.297-2.497-.67-3.264-1.074-.714-.377-1.032-.75-1.112-.995V16.022z"})),DefaultFlow:({styles:e={},...t})=>Lb("svg",Xw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M32 .06S20.33 6.014 14.403 8.798c1.27 1.16 2.451 2.41 3.676 3.616L6.84 23.804H.046v1.755h5.063L0 30.735 1.325 32l6.357-6.441h7.145v-1.756H9.414l9.99-10.123c1.228 1.223 2.45 2.453 3.677 3.676C26.247 11.12 32 .06 32 .06z"})),CancelEndEvent:({styles:e={},...t})=>Lb("svg",Zw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-3.955 3.918L8.94 12.072l3.985 3.985-3.913 3.913 3.048 3.047 3.913-3.913 3.987 3.987 3.096-3.096-3.987-3.987 3.913-3.913-3.047-3.048-3.913 3.913-3.985-3.985z"})),CompensateEndEvent:({styles:e={},...t})=>Lb("svg",Jw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-.56 5.744l-7.407 5.23 7.408 5.234v-5.057c2.384 1.687 4.771 3.371 7.157 5.057V10.801l-7.157 5.054v-5.054z"})),ErrorEndEvent:({styles:e={},...t})=>Lb("svg",Qw({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm6.132 4.166l-3.633 7.363-4.516-5.874-4.102 12.131 4.599-5.91 4.743 5.427 2.909-13.137z"})),EscalationEndEvent:({styles:e={},...t})=>Lb("svg",e_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 3.9c-1.672 4.653-2.733 9.5-4.406 14.153 1.535-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.497-4.71-2.91-9.445-4.406-14.155z"})),LinkEndEvent:({styles:e={},...t})=>Lb("svg",t_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.532 18.532 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm1.78 4.065v3.555H9.779v6.713h7.994v3.554l5.828-6.91-5.828-6.912z"})),MessageEndEvent:({styles:e={},...t})=>Lb("svg",n_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.532 18.532 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm-5.91 5.448l6.041 4.9 6.04-4.9H10.084zm-1.34 1.137v9.92h14.513v-9.718l-7.132 5.786-7.381-5.988z"})),MultipleEndEvent:({styles:e={},...t})=>Lb("svg",i_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.529 18.529 0 0015.676 0zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.011 3.039l-7.619 5.53 2.91 8.95h9.418l2.91-8.95-7.619-5.53z"})),EndEvent:({styles:e={},...t})=>Lb("svg",r_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.84.042C8.654-.01 1.913 5.437.4 12.454-1.057 18.62 1.554 25.495 6.784 29.09c5.076 3.636 12.31 3.92 17.59.544 5.309-3.251 8.435-9.744 7.445-15.921C30.91 7.307 25.795 1.738 19.442.422a16.064 16.064 0 00-3.602-.38zm.382 5.01c5.28-.017 10.13 4.353 10.669 9.61.687 5.025-2.552 10.281-7.423 11.792-4.754 1.617-10.486-.447-12.962-4.856-2.74-4.575-1.574-11.094 2.768-14.27a11.05 11.05 0 016.948-2.276z"})),SignalEndEvent:({styles:e={},...t})=>Lb("svg",o_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 3.492c-2.261 4.07-4.532 8.136-6.797 12.204h13.595L15.999 8.55z"})),TerminateEndEvent:({styles:e={},...t})=>Lb("svg",a_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0015.676.05zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 015.592-1.522zm.006 2.859c-5.264-.2-9.495 5.551-7.755 10.516 1.366 5.085 8.108 7.436 12.339 4.301 4.455-2.807 4.708-9.943.462-13.058A8.128 8.128 0 0016 7.915z"})),EventSubProcess:({styles:e={},...t})=>Lb("svg",s_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M7.295 4.78h1.779V3.003h-1.78V4.78zm3.558 0h1.779V3.003h-1.78V4.78zm3.557 0h1.78V3.003h-1.78V4.78zm3.558 0h1.78V3.003h-1.78V4.78zm3.558 0h1.779V3.003h-1.779V4.78zm3.558 0c.55.014 1.106-.034 1.654.045l.245-1.762c-.629-.096-1.266-.05-1.9-.061V4.78zM5.732 3.004a5.933 5.933 0 00-.915.093c.111.582.226 1.164.315 1.75.358-.101.947.098.746-.483-.096-.382.164-1.208-.146-1.36zm22.372 2.281c.427.234.812.547 1.13.915.42-.4 1.002-.777 1.33-1.18a5.863 5.863 0 00-1.593-1.289l-.867 1.554zm-25.27-1.44c-.587.354-1.11.811-1.539 1.345.47.333.96.86 1.417 1.077.299-.362.66-.673 1.065-.913-.328-.493-.55-1.055-.944-1.509zM30.515 7.26c-.563.046-.557.342-.378.784.154.25-.097.862.25.85.525-.023 1.14.043 1.612-.032a5.891 5.891 0 00-.362-2.027l-1.122.425zM.268 7.114A6.042 6.042 0 000 9.052h1.78c-.013-.5.047-1.003.208-1.478L.296 7.027l-.026.079-.002.008zM30.22 12.45H32v-1.779h-1.779v1.779zm-30.22.16h1.78v-1.779H0v1.78zm30.22 3.398H32v-1.78h-1.779v1.78zm-30.22.16h1.78v-1.779H0v1.779zm30.22 3.398H32v-1.78h-1.779v1.78zm-30.22.16h1.78v-1.78H0v1.78zm30.22 3.397H32v-1.779h-1.779v1.78zm-30.22.16h1.78v-1.778H0v1.778zm30.137 1.47a4.059 4.059 0 01-.522 1.32c.506.283 1.046.715 1.53.908a5.836 5.836 0 00.744-1.918c-.576-.094-1.209-.264-1.752-.31zm-29.984.51c.157.676.435 1.325.82 1.904l1.486-.977a4.065 4.065 0 01-.577-1.347l-1.73.42zm28.427 1.943c-.371.277-.79.49-1.234.627l.548 1.693a5.84 5.84 0 001.835-.96l-1.082-1.412-.066.05-.001.002zm-26.164 1.47c.567.413 1.21.722 1.886.907.14-.569.343-1.175.444-1.722a4.062 4.062 0 01-1.283-.624l-1.047 1.438zm3.88 1.119h1.779v-1.78h-1.78v1.78zm3.55 0h1.787v-1.78H9.846v1.78zm3.565 0h1.78v-1.78h-1.78v1.78zm3.558 0h1.78v-1.78h-1.78v1.78zm3.451 0h1.743v-1.78h-1.743v1.78zm3.665 0h1.779v-1.78h-1.78v1.78zm-1.922-.545V16.776H9.846V29.25h12.318zM10.967 17.905h10.068V27.97H10.967V17.905zm1.336 3.998v1.711h7.396v-1.711h-7.396z",opacity:".97"})),ComplexGateway:({styles:e={},...t})=>Lb("svg",p_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm-.327 6.79v.007l-.145.027-.118.08-.083.123-.028.145v4.954L11.793 10.8l-.125-.08-.14-.029-.144.027-.122.082-.46.46-.085.125-.026.142.028.14.08.125 3.505 3.505H9.347l-.001-.002-.145.032-.118.08-.083.122-.028.146v.652l.029.147.082.119.12.08.144.032h4.956L10.8 20.207v-.001l-.084.124-.026.142.028.14.08.124.46.461.126.082.14.029.143-.027.124-.084L15.3 17.69v4.964-.001l.028.147.082.12.12.08.144.031h.652l.148-.03.118-.08.083-.12.028-.146v-4.962l3.505 3.505.126.082.14.027.142-.027.124-.084.461-.46.083-.123s.028-.144.027-.146l-.028-.14-.082-.126-3.496-3.496h4.948l.148-.03.119-.08.082-.12.028-.147v-.652l-.028-.145-.083-.122-.119-.08s-.147-.033-.147-.031h-4.964l3.512-3.512.082-.122.029-.144-.028-.14-.084-.124-.46-.461-.123-.082-.14-.027-.145.027-.122.082-3.507 3.507V9.348l-.028-.146-.082-.122-.12-.08-.147-.029h-.652z"})),EventBasedGateway:({styles:e={},...t})=>Lb("svg",l_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16 0a1.29 1.29 0 00-.918.373L.371 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.915.372A1.294 1.294 0 0016 0zm-.002 2.181l13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18zm0 5.876l-.254.185-7.377 5.355 2.915 8.964h9.433l2.915-8.964-7.631-5.54zm0 1.07l6.614 4.8-2.526 7.769h-8.175l-2.526-7.768 6.614-4.802z"})),ExclusiveGateway:({styles:e={},...t})=>Lb("svg",h_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16 0a1.29 1.29 0 00-.918.373L.371 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.915.372A1.294 1.294 0 0016 0zm-.002 2.181l13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18zm-5.162 7.69l-.166.032-.141.096-.532.532s-.097.142-.097.144l-.03.164.032.162.093.144 4.857 4.858-4.855 4.855v-.001L9.9 21l-.03.164.032.162s.093.142.093.144l.531.532.146.095.162.032.164-.03.144-.097 4.855-4.856 4.857 4.857.145.095.162.032.164-.03.144-.097.531-.532.095-.14.033-.168-.033-.162-.095-.146L17.144 16 22 11.144l.095-.14.033-.166-.033-.163-.097-.144-.532-.532-.14-.095-.163-.032-.166.032-.141.095L16 14.855l-4.858-4.858v-.002l-.144-.092-.162-.032z"})),Gateway:({styles:e={},...t})=>Lb("svg",c_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.373a1.313 1.313 0 00-1.833 0L.373 15.084zm1.806.918L16 2.182l13.821 13.82L16 29.823 2.179 16.003z"})),InclusiveGateway:({styles:e={},...t})=>Lb("svg",u_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm0 6.379a7.447 7.447 0 00-7.44 7.441A7.447 7.447 0 0016 23.443 7.447 7.447 0 0023.443 16a7.447 7.447 0 00-7.441-7.441zm0 .825a6.61 6.61 0 016.617 6.616A6.61 6.61 0 0116 22.618 6.61 6.61 0 019.385 16 6.61 6.61 0 0116 9.385z"})),ParallelGateway:({styles:e={},...t})=>Lb("svg",d_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.001 0a1.29 1.29 0 00-.917.373L.373 15.084a1.316 1.316 0 00.002 1.834l14.71 14.709a1.313 1.313 0 001.833 0l14.711-14.711a1.316 1.316 0 00-.002-1.834L16.917.372A1.294 1.294 0 0016.002 0zM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18zm-.377 5.708l-.168.032-.136.092-.096.14-.032.168v6.868h-6.87l-.002-.002-.166.037-.137.092v-.002l-.095.141-.033.167v.753s.032.169.034.17l.094.138.138.092.167.036h6.87v6.867l-.001-.001.033.17.095.138.138.092s.166.035.167.037h.752l.17-.036.137-.092.095-.137.033-.17v-6.867h6.868l.17-.035.137-.092.095-.137.033-.17v-.753s-.033-.165-.032-.167l-.096-.14-.138-.093s-.17-.037-.17-.035H16.81V8.323l-.033-.168-.094-.14-.138-.092-.17-.034h-.752z"})),Group:({styles:e={},...t})=>Lb("svg",m_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.34.016c-2.333.025-4.684 1.77-5.29 4.17C.608 5.848.88 7.608.804 9.314v2.922h2.041c.038-2.332-.076-4.673.062-7C3.14 3.355 4.869 1.938 6.643 2.04h8.956V.009c-3.086 0-6.173-.02-9.258 0v.007zm13.094 2.023h1.92V.009h-1.92v2.03zm5.756 0c1.265-.069 2.66.045 3.602 1.055 1.036.983 1.201 2.523 1.122 3.91v6.313h2.078c-.03-2.677.062-5.36-.047-8.032-.17-2.743-2.62-5.111-5.215-5.236-.511-.064-1.027-.02-1.54-.033v2.023zM.803 18.319h2.041v-2.026H.804v2.026zm29.11 1.084h2.08v-2.03h-2.08v2.03zM.804 26.148c.004 2.218 1.393 4.366 3.313 5.28 1.728.853 3.681.448 5.521.544.43-.112 1.29.231 1.435-.183v-1.847c-1.788-.043-3.584.094-5.365-.082-1.67-.354-2.919-2.048-2.863-3.844v-3.644H.804v3.777zm29.11-.068c.04 1.961-1.508 3.787-3.381 3.842-1.954.06-3.914.02-5.87.026v2.03c2.118-.042 4.242.08 6.355-.063 2.524-.264 4.818-2.644 4.94-5.323.08-1.039.014-2.085.035-3.126h-2.078v2.613zm-15.006 5.898h1.92v-2.03h-1.92v2.03z"})),CancelIntermediateCatchEvent:y_,CompensateIntermediateCatchEvent:v_,ConditionalIntermediateCatchEvent:x_,ErrorIntermediateCatchEvent:__,EscalationIntermediateCatchEvent:P_,LinkIntermediateCatchEvent:S_,MessageIntermediateCatchEvent:C_,MultipleIntermediateCatchEvent:T_,ConditionalIntermediateCatchEventNonInterrupting:R_,EscalationIntermediateCatchEventNonInterrupting:D_,MessageIntermediateCatchEventNonInterrupting:B_,MultipleIntermediateCatchEventNonInterrupting:L_,ParallelIntermediateCatchEventNonInterrupting:$_,SignalIntermediateCatchEventNonInterrupting:V_,TimerIntermediateCatchEventNonInterrupting:q_,ParallelMultipleIntermediateCatchEvent:G_,SignalIntermediateCatchEvent:K_,TimerIntermediateCatchEvent:X_,IntermediateThrowEvent:J_,CompensateIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",Q_({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm-.56 5.772l-7.408 5.231 7.409 5.234v-5.057c2.385 1.687 4.771 3.371 7.157 5.057V10.747l-7.157 5.055v-5.055z"})),EscalationIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",eE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm.006 3.927c-1.672 4.654-2.734 9.502-4.406 14.155 1.534-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.496-4.71-2.91-9.446-4.406-14.156z"})),LinkIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",tE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 5.021zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912z"})),MessageIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",nE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm-5.91 5.475l6.04 4.901 6.042-4.9H10.088zm-1.341 1.138v9.921h14.514V11.79l-7.132 5.787-7.382-5.99z"})),MultipleIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",iE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.073l-7.62 5.532 2.91 8.95h9.42l2.91-8.95-7.62-5.532z"})),SignalIntermediateThrowEvent:({styles:e={},...t})=>Lb("svg",rE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22zM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0116 4.975zm.006 3.52c-2.261 4.07-4.533 8.136-6.798 12.205h13.596L16.005 8.495z"})),Lane:({styles:e={},...t})=>Lb("svg",oE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M0 7v18.62h32V7H0zm1.655 17.056V8.684h28.62v15.372H1.656z"})),ManualTask:({styles:e={},...t})=>Lb("svg",aE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm4.43 1.328c-.222.005-.43.09-.606.203-.985.638-4.356 2.977-5.096 3.486-.67.46-1.12 1.153-1.38 1.974-.27.858-.235 1.793-.232 2.576.002.59.016 1.104.17 1.727.22.908.634 1.63 1.23 2.118.597.49 1.363.732 2.23.734 3.038.012 6.078.016 9.119 0 .327-.002.645-.127.848-.37.204-.241.287-.56.291-.914a1.732 1.732 0 00-.097-.625h.327c.335 0 .641-.11.852-.316.21-.206.317-.475.374-.754a1.783 1.783 0 00-.126-1.143 1.18 1.18 0 00.877-.521c.196-.306.257-.666.258-1.025.001-.375-.088-.738-.293-1.033a1.179 1.179 0 00-.958-.512h-.478c.108-.237.156-.505.155-.782-.003-.373-.098-.721-.316-.99a1.21 1.21 0 00-.943-.43c-2.273-.004-4.236.018-6.412.012l-.19-.001c.102-.104.202-.205.312-.314.337-.336.662-.652.83-.869.4-.516.46-1.215.123-1.729-.178-.272-.439-.456-.72-.494a.93.93 0 00-.148-.008zm.029.728l.022.001c.055.008.115.027.209.172.132.201.126.606-.09.884-.079.102-.431.465-.767.8-.337.334-.657.643-.815.836-.153.186-.096.338-.056.435.04.096.085.212.298.263.063.014.066.01.086.012l.066.003c2.429.027 4.986-.004 7.223-.003.194 0 .293.056.379.162.086.105.151.286.153.533 0 .257-.065.467-.155.59-.09.124-.183.182-.37.183-1.706-.001-3.411-.005-5.117-.009v.731c2.23.004 4.461.01 6.692.012.17 0 .265.06.361.2.096.138.164.364.163.615 0 .268-.058.501-.143.634-.085.132-.162.193-.385.195-2.32-.001-4.554-.006-6.688-.003v.73c1.905 0 3.809.003 5.713.001.194.005.316.09.416.26.102.173.151.442.093.728-.04.193-.102.313-.17.38-.067.065-.148.108-.343.108h-5.71l.002.734c1.445 0 2.89-.01 4.334-.001.162 0 .232.041.297.123.064.081.123.238.12.488-.003.244-.061.385-.12.455-.06.07-.127.11-.296.11-3.037.016-6.076.012-9.113 0-.735-.002-1.316-.196-1.77-.568-.454-.372-.793-.935-.986-1.728-.134-.546-.146-.978-.148-1.558-.003-.796-.018-1.664.199-2.354.222-.705.582-1.24 1.096-1.593.75-.515 4.14-2.866 5.079-3.474a.504.504 0 01.241-.087z"})),MessageFlow:({styles:e={},...t})=>Lb("svg",sE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M4.073 26.607l1.295 1.296L1.325 32l-.662-.633L0 30.735l4.073-4.128zm6.953-7.046l1.296 1.296L1.325 32l7.555-7.656-1.295-1.296 1.455-1.474 1.986-2.013zM32 .06s-2.699 5.189-5.417 10.462l-.326.633c-1.14 2.214-2.265 4.407-3.176 6.2-1.228-1.222-2.449-2.452-3.676-3.675l-3.57 3.618-1.297-1.296 3.541-3.588c-.98-.964-1.932-1.958-2.923-2.91l-.753-.706c2.68-1.258 6.533-3.165 9.95-4.876l.617-.309C28.838 1.673 32 .06 32 .06zm-4.126 4.06l-.015.007-.115.057-.048.024-.115.057L17.7 9.172l5.017 4.948 5.157-10z"})),Participant:({styles:e={},...t})=>Lb("svg",pE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M0 5v22.069h32V5H0zm30.276 1.684v18.82H6.62V6.684h23.655zm-28.62 0h3.31v18.82h-3.31V6.684z"})),Process:({styles:e={},...t})=>Lb("svg",lE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{fillRule:"evenodd",d:"M16.177 0l.137.002c.452.009.9.037 1.342.082.346.036.62.303.68.646l.437 2.536c.055.319.296.57.608.655.986.269 1.923.653 2.796 1.14.28.155.624.145.885-.039l2.083-1.47a.775.775 0 01.937.022c.86.699 1.645 1.484 2.343 2.343.22.27.223.653.023.937l-1.439 2.038a.833.833 0 00-.031.896c.512.889.92 1.846 1.204 2.855a.833.833 0 00.653.601l2.435.42c.342.059.61.333.645.679a15.928 15.928 0 01.08 2.064l-.003.114c-.012.382-.038.76-.077 1.134a.775.775 0 01-.645.68l-2.396.412a.835.835 0 00-.656.61 12.511 12.511 0 01-1.2 2.917.832.832 0 00.034.892l1.396 1.978c.2.284.196.667-.023.936a16.104 16.104 0 01-2.343 2.343.775.775 0 01-.937.023l-1.99-1.404a.833.833 0 00-.88-.026c-.907.516-1.886.922-2.916 1.2a.833.833 0 00-.61.656l-.414 2.396a.775.775 0 01-.679.646 16.096 16.096 0 01-3.312 0 .775.775 0 01-.679-.646l-.423-2.452a.834.834 0 00-.598-.636 12.474 12.474 0 01-1.468-.514 12.49 12.49 0 01-1.417-.68.833.833 0 00-.878.03l-2.026 1.43a.775.775 0 01-.937-.023 16.069 16.069 0 01-2.342-2.342.774.774 0 01-.024-.936l1.402-1.986a.833.833 0 00.032-.896 12.507 12.507 0 01-1.214-2.911.833.833 0 00-.655-.606l-2.386-.412a.775.775 0 01-.646-.678 16.097 16.097 0 010-3.314.775.775 0 01.646-.678l2.386-.412a.833.833 0 00.655-.606 12.507 12.507 0 011.214-2.911.833.833 0 00-.032-.896L3.552 6.853a.774.774 0 01.023-.936 16.091 16.091 0 012.343-2.343.775.775 0 01.937-.023l2.03 1.433c.26.177.6.182.874.028.915-.512 1.88-.9 2.87-1.167a.833.833 0 00.612-.656l.424-2.46a.775.775 0 01.679-.645C14.845.032 15.348.004 15.85 0h.326zM16 6.4c-5.302 0-9.6 4.297-9.6 9.599 0 5.302 4.298 9.6 9.6 9.6s9.6-4.298 9.6-9.6-4.298-9.6-9.6-9.6zm-3 4.283c0-1.425 1.637-2.203 2.715-1.29l5.69 4.815c.794.672.794 1.91 0 2.583l-5.69 4.815c-1.078.913-2.715.134-2.715-1.29z"})),ReceiveTask:({styles:e={},...t})=>Lb("svg",cE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zM5.23 7.764v11.577h17.55V7.764H5.23zm1.816.758h13.917l-6.959 4.577-6.958-4.577zm-1.06.21l8.018 5.274 8.018-5.275v9.853H5.987V8.73z"})),ScriptTask:({styles:e={},...t})=>Lb("svg",uE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm2.99 3.077l-.077.045-.026.015c-1.09.646-1.84 1.239-2.336 1.818-.496.579-.735 1.162-.742 1.725-.014 1.119.812 1.958 1.544 2.708.732.75 1.385 1.456 1.446 2.041.032.298-.039.598-.364 1.008-.324.408-.911.897-1.85 1.445l-1.388.808h8.56l.101-.059c.996-.58 1.667-1.116 2.094-1.655.429-.54.603-1.107.547-1.638-.11-1.052-.967-1.818-1.688-2.556-.721-.739-1.306-1.436-1.298-2.092.004-.331.132-.7.535-1.171.402-.47 1.08-1.02 2.119-1.636l1.362-.806h-8.54zm.241.867h5.271a6.83 6.83 0 00-1.113 1.01c-.496.58-.736 1.163-.743 1.726-.014 1.119.812 1.958 1.544 2.708.732.75 1.385 1.456 1.446 2.041.032.298-.039.598-.364 1.008-.312.393-.872.862-1.753 1.386H8.728c.367-.286.658-.566.88-.847.43-.54.604-1.107.548-1.638-.11-1.052-.968-1.818-1.688-2.556-.721-.739-1.306-1.435-1.298-2.092.004-.331.132-.7.534-1.171.389-.454 1.04-.984 2.021-1.575zm-1.233 1.48v.4h4.12v-.4h-4.12zm-.154 2.158v.4H12.6v-.4H8.34zm1.931 2.158v.4h4.126v-.4H10.27zm.59 2.158v.4h4.276v-.4h-4.276z"})),SendTask:({styles:e={},...t})=>Lb("svg",dE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm-1.38 3.16l8.332 4.717L21.78 8.16H5.114zm.021 1.745v9.309H21.8V9.905l-8.353 4.655-8.31-4.655z"})),ServiceTask:({styles:e={},...t})=>Lb("svg",hE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5zm1.22 1.681V7.84c-.329.093-.63.223-.914.382l-.83-.82-1.554 1.561.83.82c-.16.288-.285.594-.372.911l-1.177.002v2.2l1.189-.004c.109.431.345.819.58 1.165v-1.898l-1.038.004v-.737l1.034-.002.058-.294c.084-.429.252-.838.493-1.203l.165-.25-.727-.718.523-.526.728.719.247-.165c.379-.25.793-.417 1.206-.505l.291-.06-.002-1.01h.75L9.19 8.417H11.16c-.185-.221-.951-.508-1.237-.588L9.93 6.68H7.713zm2.078 2.105l.003 1.158a4.19 4.19 0 00-.915.383l-.83-.821-1.553 1.562.83.82c-.16.288-.286.593-.373.91l-1.176.003v2.2l1.188-.004c.094.326.224.624.383.905l-.85.847 1.57 1.543.847-.843c.29.161.599.286.919.373v1.198c.756.006 1.56.003 2.206.003V17.81a4.19 4.19 0 00.915-.383l.847.835 1.554-1.56-.848-.836c.16-.288.286-.594.373-.912l1.152-.007V12.75l-1.165.007a4.09 4.09 0 00-.382-.905l.805-.807-1.57-1.546-.804.806a4.16 4.16 0 00-.915-.372l.007-1.147H9.792zm.732.73h.751l-.006 1.005.297.058c.43.085.844.252 1.21.492l.25.162.701-.704.528.52-.702.704.169.25c.248.374.412.779.505 1.196l.061.292 1.016-.006v.737l-1.01.006-.058.292c-.085.43-.252.838-.494 1.205l-.165.25.744.733-.523.525-.743-.734-.248.165c-.378.247-.789.418-1.203.503l-.294.058v1.067h-.745v-1.059l-.295-.057a3.395 3.395 0 01-1.21-.492l-.248-.162-.747.743-.528-.52.747-.744-.17-.25a3.546 3.546 0 01-.506-1.196l-.06-.291-1.04.004v-.738l1.034-.002.058-.294c.085-.428.252-.837.493-1.203l.165-.25-.726-.718.522-.526.728.72.248-.166a3.546 3.546 0 011.205-.504l.292-.06-.003-1.01zm.388 2.685a1.65 1.65 0 00-1.645 1.645c0 .904.74 1.645 1.645 1.645a1.65 1.65 0 001.645-1.645 1.65 1.65 0 00-1.645-1.645zm0 .73a.91.91 0 01.915.915.91.91 0 01-.915.914.91.91 0 01-.915-.914.91.91 0 01.915-.915z"})),CompensateStartEvent:({styles:e={},...t})=>Lb("svg",mE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm-.566 9.03l-7.415 5.235 7.415 5.238v-5.062c2.386 1.689 4.775 3.375 7.163 5.062V10.761l-7.163 5.058v-5.058zm-.866 1.666v7.13L9.51 15.993l5.052-3.565zm7.166 0v7.137l-5.052-3.568 5.052-3.569z"})),ConditionalStartEvent:({styles:e={},...t})=>Lb("svg",fE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16 0C7.174 0 0 7.174 0 16s7.174 16 16 16 16-7.174 16-16S24.826 0 16 0zm0 1.73c7.892 0 14.27 6.378 14.27 14.27 0 7.891-6.379 14.27-14.27 14.27S1.73 23.891 1.73 16C1.73 8.108 8.108 1.73 16 1.73zm-5.362 7.523v13.493h10.724V9.253H10.638zm.863.866h8.995V21.88H11.501V10.12zm.928 1.324v.863h7.139v-.863h-7.139zm0 2.605v.867h7.139v-.867h-7.139zm0 3.01v.864h7.139v-.863h-7.139zm0 2.72v.863h7.139v-.863h-7.139z"})),ErrorStartEvent:({styles:e={},...t})=>Lb("svg",yE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.005C9.705-.08 3.643 3.968 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994.005zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626-4.814-3.838-6.538-10.939-4.067-16.57 2.14-5.205 7.515-8.774 13.147-8.708zm6.13 7.45l-3.635 7.37-4.52-5.88c-1.37 4.048-2.738 8.095-4.106 12.143l4.603-5.917 4.748 5.433 2.91-13.149zm-7.754 3.889l4.299 5.449 1.073-2.39-1.028 4.135-4.387-5.16-1.78 2.75 1.823-4.784z"})),EscalationStartEvent:({styles:e={},...t})=>Lb("svg",gE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm0 7.183c-1.674 4.658-2.736 9.509-4.41 14.166 1.535-1.526 2.874-3.236 4.41-4.763l4.41 4.763c-1.499-4.713-2.913-9.453-4.41-14.166zm.032 2.931c.822 2.588 1.598 5.19 2.42 7.778l-2.42-2.615c-.683.598-2.455 2.887-2.34 2.39.871-2.489 1.448-5.07 2.34-7.553z"})),MessageStartEvent:({styles:e={},...t})=>Lb("svg",vE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm-7.257 8.732v11.069h14.513v-11.07H8.738zm3.224 1.73h8.064c-1.428.878-2.857 2.807-4.285 3.018l-3.779-3.019zm9.562 1.017v6.593H10.465V13.21l5.528 4.417 5.53-4.418z"})),MultipleStartEvent:({styles:e={},...t})=>Lb("svg",bE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994 0zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708zm0 6.328l-7.626 5.536c.97 2.986 1.942 5.971 2.913 8.957h9.426l2.912-8.957-7.625-5.536zm0 1.068l6.609 4.798-2.525 7.763H11.91l-2.524-7.763 6.609-4.798z"})),ConditionalStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",xE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M10.632 9.189V22.68h10.723V9.189H10.632zm.862.865h8.994v11.76H11.494v-11.76zm.928 1.324v.863h7.138v-.863h-7.138zm0 2.605v.866h7.138v-.866h-7.138zm0 3.01v.863h7.138v-.863h-7.138zm0 2.72v.862h7.138v-.863h-7.138zM16.12 0h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136-.109-.118-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006l-.216-.042-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006l-.006-.001-.22-.017-.005-.001h-.006L17.06.03h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012L16.132 0h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zM6.377 3.21l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1v.003l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114v-.008l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V15.95l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z"})),EscalationStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",wE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16 9.209c-1.674 4.655-2.735 9.504-4.408 14.16 1.534-1.526 2.873-3.235 4.407-4.761l4.408 4.76c-1.497-4.71-2.91-9.448-4.408-14.16zm.031 2.93c.822 2.586 1.598 5.187 2.42 7.774l-2.42-2.614c-.682.598-2.453 2.886-2.34 2.389.873-2.488 1.45-5.068 2.34-7.55zM16.132.364c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.564c-.734.078-1.196.762-1.735 1.206C3.552 6.02 2.55 7.511 1.681 9.053c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786A15.932 15.932 0 011.728 16a.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"})),MessageStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",_E({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M8.746 10.393v11.064h14.506V10.393H8.746zm3.223 1.728h8.06c-1.428.879-2.856 2.807-4.283 3.018l-3.777-3.018zm9.557 1.018v6.59H10.473v-6.59l5.525 4.416 5.528-4.416zM16.132 0c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.2c-.734.078-1.196.762-1.735 1.206C3.552 5.656 2.55 7.147 1.681 8.69c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786a15.932 15.932 0 01-1.672-6.874.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"})),MultipleStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",EE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M23.621 13.524L16 7.99l-7.622 5.534 2.911 8.952h9.422l2.911-8.952zm-1.016.33l-2.523 7.759h-8.165l-2.524-7.76L16 9.059l6.606 4.796zM16.132 0c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 00-.372-.117zM6.55 3.2c-.734.078-1.196.762-1.735 1.206C3.552 5.656 2.55 7.147 1.681 8.69c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 00-.822-.839zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 001.761-8.54.865.865 0 00-.785-.579zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786a15.932 15.932 0 01-1.672-6.874.876.876 0 00-.79-.692zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443z"})),ParallelMultipleStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",PE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M13.503 9.016v4.428H9.075v4.98h4.428v4.428h4.98v-4.427h4.428v-4.981h-4.427V9.016h-4.981zm.83.83h3.32v4.428h4.428v3.32h-4.428v4.428h-3.32v-4.454H9.905v-3.294h4.428V9.846zM16.12 0h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136-.109-.118-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006l-.216-.042-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006l-.006-.001-.22-.017-.005-.001h-.006L17.06.03h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012L16.132 0h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zM6.377 3.21l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1v.003l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114v-.008l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V15.95l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z",opacity:".98"})),SignalStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",OE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16.007 8.82L9.21 21.022h13.596L16.007 8.82zm0 1.775l5.328 9.563H10.68l5.327-9.563zM16.14.386c-1.571.236-4.195-.284-4.9 1.381.619 1.703 2.745.069 4.085.365 1.421-.13 2.84.2 4.235.259C21.27.784 18.19.344 17 .413a20.456 20.456 0 00-.86-.027zM25 3.162c-2.19.694.401 2.26 1.181 3.094 1.083 1.152 1.954 2.484 2.715 3.864 1.48 1.005 1.845-1.26.81-2.03-1.158-1.897-2.613-3.704-4.513-4.89l-.192-.038zm-18.438.423c-1.793.712-2.909 2.548-4.01 4.061-.773.814-2.211 3.653.005 3.211 1.123-1.469 1.87-3.306 3.267-4.614.664-.7 2.73-2.013.738-2.658zm24.57 11.072c-1.659.435-.468 2.667-.99 3.895a13.427 13.427 0 01-1.497 4.435c-.23 1.659 1.991 1.165 2.018-.199a14.277 14.277 0 001.254-7.552.865.865 0 00-.785-.579zm-30.18.666c-1.677.386-.633 2.667-.608 3.876.371 1.623.792 3.35 1.79 4.696 2.382.321.571-2.338.292-3.492a15.92 15.92 0 01-.684-4.39.877.877 0 00-.79-.69zm24.558 11.81c-1.755.865-3.303 2.266-5.274 2.765-1.162-.016-3.074 1.271-1.331 2.102 2.66-.447 5.163-1.733 7.236-3.445.472-.506.06-1.432-.631-1.421zm-19.151.043c-2.004.786.416 2.405 1.43 2.913 1.608.904 3.379 1.636 5.208 1.877 1.77-.804-.228-2.094-1.357-2.073-1.75-.537-3.403-1.396-4.798-2.586l-.227-.104-.256-.027z"})),TimerStartEventNonInterrupting:({styles:e={},...t})=>Lb("svg",SE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.991 8.7c-3.018-.042-5.92 1.925-7.03 4.725-1.138 2.695-.509 6.011 1.537 8.102 1.99 2.142 5.267 2.93 8.013 1.927 2.877-.98 4.99-3.826 5.067-6.87.153-2.956-1.624-5.88-4.299-7.135a7.551 7.551 0 00-3.288-.75zm0 1.383c2.758-.052 5.372 1.972 6.014 4.654.704 2.578-.482 5.516-2.79 6.867-2.358 1.48-5.682 1.085-7.617-.919-2.043-1.97-2.407-5.38-.84-7.743 1.11-1.764 3.149-2.88 5.233-2.86zm1.962 1.764l-2.074 3.762c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.182l1.993-3.614-.757-.418zM16.12.358h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136L19.823.9l-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006L19.135.64l-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006L17.512.42l-.22-.017-.005-.001h-.006l-.22-.015h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012l-.221-.003h-.012zm8.715 2.783l-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004zm-18.458.426l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1V9.5l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007zm24.596 11.088l-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114V16.5l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01zm-30.213.66l-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V16.308l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004zm24.585 11.83l-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01zm-19.17.054l-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022z"})),CancelBoundaryEvent:y_,CompensateBoundaryEvent:v_,ConditionalBoundaryEvent:x_,ErrorBoundaryEvent:__,EscalationBoundaryEvent:P_,LinkBoundaryEvent:S_,MessageBoundaryEvent:C_,MultipleBoundaryEvent:T_,BoundaryEvent:J_,ConditionalBoundaryEventNonInterrupting:R_,EscalationBoundaryEventNonInterrupting:D_,MessageBoundaryEventNonInterrupting:B_,MultipleBoundaryEventNonInterrupting:L_,ParallelBoundaryEventNonInterrupting:$_,SignalBoundaryEventNonInterrupting:V_,TimerBoundaryEventNonInterrupting:q_,ParallelMultipleBoundaryEvent:G_,SignalBoundaryEvent:K_,TimerBoundaryEvent:X_,StartEvent:({styles:e={},...t})=>Lb("svg",kE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.847.004C9.61-.016 3.624 4.014 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.101 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.268.403-6.228-3.26-12.441-8.87-15.154A15.924 15.924 0 0015.846.004zm.439 1.729c6.105.033 11.856 4.45 13.435 10.359 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.625-4.814-3.84-6.538-10.94-4.067-16.57 2.14-5.206 7.515-8.775 13.147-8.71.097-.001.194-.002.29-.001z"})),ParallelMultipleStartEvent:({styles:e={},...t})=>Lb("svg",CE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.847 0C9.61-.02 3.624 4.01 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.101 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.268.403-6.228-3.26-12.441-8.87-15.154A15.924 15.924 0 0015.846 0zm.439 1.729c6.105.033 11.856 4.45 13.435 10.359 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.625C2.101 23.17.377 16.07 2.848 10.44c2.134-5.2 7.522-8.78 13.147-8.71.097-.001.194-.002.29-.001zM13.504 9.08v4.427H9.077v4.98h4.427v4.427h4.98v-4.427h4.428v-4.98h-4.427V9.08h-4.98zm.83.83h3.32v4.427h4.428v3.32h-4.427v4.427h-3.32v-4.453H9.906v-3.294h4.427V9.91z"})),SignalStartEvent:({styles:e={},...t})=>Lb("svg",ME({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M15.995.005C9.705-.08 3.643 3.968 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0015.994.005zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626-4.814-3.838-6.538-10.939-4.067-16.57 2.14-5.205 7.515-8.774 13.147-8.708zm0 6.776L9.19 20.724H22.8L15.995 8.511zm0 1.777l5.332 9.572H10.662l5.333-9.572z"})),TimerStartEvent:({styles:e={},...t})=>Lb("svg",TE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M16 0C7.174 0 0 7.174 0 16s7.174 16 16 16 16-7.174 16-16S24.826 0 16 0zm0 1.73c7.892 0 14.27 6.378 14.27 14.27 0 7.891-6.379 14.27-14.27 14.27S1.73 23.891 1.73 16C1.73 8.108 8.108 1.73 16 1.73zm-.143 6.676c-2.967.02-5.797 1.97-6.89 4.727-1.138 2.695-.51 6.012 1.537 8.102 1.99 2.142 5.268 2.932 8.014 1.928 2.878-.98 4.992-3.827 5.068-6.87.153-2.957-1.624-5.881-4.3-7.137a7.552 7.552 0 00-3.43-.75zm.27 1.383c2.71.012 5.254 2.015 5.886 4.656.704 2.577-.482 5.517-2.791 6.867-2.358 1.48-5.682 1.085-7.618-.918-2.043-1.971-2.407-5.381-.84-7.745 1.11-1.763 3.15-2.88 5.234-2.86h.13zm1.833 1.765l-2.074 3.763c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.181l1.992-3.615-.757-.418z"})),CollapsedSubProcess:RE,CollapsedAdHocSubProcess:RE,ExpandedSubProcess:DE,ExpandedAdHocSubProcess:DE,Task:({styles:e={},...t})=>Lb("svg",jE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M6.494 2.667C2.916 2.667 0 5.57 0 9.142v13.383C0 26.097 2.916 29 6.494 29h19.012C29.084 29 32 26.097 32 22.525V9.142c0-3.572-2.916-6.475-6.494-6.475H6.494zm0 2h19.012c2.509 0 4.494 1.98 4.494 4.475v13.383C30 25.02 28.015 27 25.506 27H6.494C3.985 27 2 25.02 2 22.525V9.142c0-2.495 1.985-4.475 4.494-4.475z"})),TextAnnotation:({styles:e={},...t})=>Lb("svg",BE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M22.087 0v31.647H32v-1.788h-8.125V1.788H32V0h-9.913zm-2.924 13.999l-2.737 2.167 2.167 2.738 2.738-2.167-2.168-2.738zm-5.475 4.335L10.95 20.5l2.168 2.738 2.737-2.168-2.167-2.737zm-5.475 4.335l-2.738 2.167 2.168 2.738 2.737-2.168-2.167-2.737zm-5.476 4.335L0 29.17l2.167 2.738 2.738-2.168-2.168-2.737z"})),Transaction:({styles:e={},...t})=>Lb("svg",NE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{d:"M5.422 3A5.424 5.424 0 000 8.422v15.822a5.424 5.424 0 005.422 5.423h21.156A5.424 5.424 0 0032 24.244V8.422A5.424 5.424 0 0026.578 3H5.422zm0 1.244h21.156a4.155 4.155 0 014.178 4.178v15.822a4.155 4.155 0 01-4.178 4.178H5.422a4.155 4.155 0 01-4.178-4.178V8.422a4.155 4.155 0 014.178-4.178zm1.056 1.778a3.373 3.373 0 00-3.367 3.366v13.89a3.373 3.373 0 003.367 3.366h19.044a3.373 3.373 0 003.367-3.366V9.388a3.373 3.373 0 00-3.367-3.366H6.478zm0 1.245h19.044c1.187 0 2.122.935 2.122 2.121v13.89a2.104 2.104 0 01-2.122 2.122H6.478a2.104 2.104 0 01-2.122-2.122V9.388c0-1.186.935-2.121 2.122-2.121z"})),UserTask:({styles:e={},...t})=>Lb("svg",LE({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),Lb("path",{fillRule:"evenodd",d:"M10.263 7.468c-1.698 0-2.912 1.305-2.915 2.791v.001c0 .45.121.924.311 1.352.138.309.308.593.516.82-1.235.423-2.683 1.119-3.414 2.49l-.04.075v4.44h11.083v-4.44l-.04-.074c-.72-1.352-2.136-2.047-3.36-2.471.597-.608.774-1.392.774-2.192-.004-1.487-1.218-2.792-2.915-2.792zm-1.16 1.583c.08 0 .165.003.26.008.757.045 1.012.181 1.207.31.196.13.334.252.851.268.404-.016.598-.087.737-.169.056-.033.103-.067.152-.1.128.275.197.578.198.893 0 .894-.154 1.52-.975 2.034l.08.604c.171.052.348.11.527.171.025.105.054.242.073.387.02.153.029.311.016.43a.422.422 0 01-.056.19c-.417.417-1.157.66-1.908.66-.75 0-1.49-.243-1.908-.66a.422.422 0 01-.056-.19 1.949 1.949 0 01.016-.43c.02-.146.049-.284.074-.388.177-.062.352-.118.521-.17l.048-.648a.616.616 0 00-.126-.118c-.183-.138-.405-.44-.562-.793-.157-.353-.254-.757-.254-1.08 0-.387.105-.758.297-1.079l.11-.04c.143-.046.339-.09.679-.09zm-1.448 4.304l-.002.014c-.025.185-.04.387-.018.589.021.202.074.42.248.593.595.594 1.494.857 2.382.857.889 0 1.788-.263 2.382-.857.174-.174.227-.391.249-.593a2.496 2.496 0 00-.018-.59l-.002-.01c.903.396 1.776.963 2.258 1.81v3.599H13.53v-2.538h-.67v2.538H7.651v-2.538h-.67v2.538H5.39v-3.599c.483-.849 1.359-1.416 2.264-1.813zM6.495 3C2.914 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494zm0 2h19.01C28.016 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5z"}))};function $E(e){const{type:t}=e;let n=VE(t);const i=function(e){const t=Er(e).eventDefinitions;return t&&t[0]}(e);if(i)return n=`${function(e){return VE(e.$type).replace("EventDefinition","")}(i)}${n}`,(wr(e,"bpmn:StartEvent")&&!Lr(e)||wr(e,"bpmn:BoundaryEvent")&&!function(e){const t=Er(e);return t&&!1!==t.cancelActivity}(e))&&(n=`${n}NonInterrupting`),n;if(wr(e,"bpmn:SubProcess")&&!wr(e,"bpmn:Transaction"))if(Ir(e))n=`Event${n}`;else{n=`${Nr(e)&&!function(e){return wr(e&&(e.di||Er(e).di),"bpmndi:BPMNPlane")}(e)?"Expanded":"Collapsed"}${n}`}return function(e){const t=Er(e),n=Er(e.source);if(!wr(e,"bpmn:SequenceFlow")||!n)return!1;return n.default&&n.default===t&&(wr(n,"bpmn:Gateway")||wr(n,"bpmn:Activity"))}(e)&&(n="DefaultFlow"),function(e){const t=Er(e),n=Er(e.source);if(!wr(e,"bpmn:SequenceFlow")||!n)return!1;return t.conditionExpression&&wr(n,"bpmn:Activity")}(e)&&(n="ConditionalFlow"),n}const FE={getDocumentationRef:e=>{const t=Bw("elementTemplates",!1);if(t)return function(e,t){const n=HE(e,t);return n&&n.documentationRef}(e,t)},getElementLabel:e=>wr(e,"bpmn:Process")?Er(e).name:Vr(e),getElementIcon:e=>{const t=$E(e);return IE[t]},getTypeLabel:e=>{const t=Bw("elementTemplates",!1);if(t){const n=HE(e,t);if(n&&n.name)return n.name}return $E(e).replace(/(\B[A-Z])/g," $1").replace(/(\bNon Interrupting)/g,"($1)")}};function VE(e){return e.split(":")[1]}function HE(e,t){const n=t._getTemplateId(e);return n&&t.get(n)}function qE(e){const{element:t,injector:n,getProviders:i,layoutConfig:r,descriptionConfig:o}=e,a=n.get("canvas"),s=n.get("elementRegistry"),p=n.get("eventBus"),[l,c]=rb({selectedElement:t}),u=l.selectedElement,d=e=>{if(!e)return;let t=e;t&&"label"===t.type&&(t=t.labelTarget),c({...l,selectedElement:t}),p.fire("propertiesPanel.updated",{element:t})};ab((()=>{const e=e=>{const t=e.newSelection[0],n=a.getRootElement();(function(e){return e&&(e.isImplicit||"__implicitroot"===e.id)})(n)||d(t||n)};return p.on("selection.changed",e),()=>{p.off("selection.changed",e)}}),[]),ab((()=>{const e=e=>{const t=function(e,t){return b(e,(e=>e===t))}(e.elements,u);t&&function(e,t){return e&&t.get(e.id)}(t,s)&&d(t)};return p.on("elements.changed",e),()=>{p.off("elements.changed",e)}}),[u]),ab((()=>{const e=e=>{const t=e.element;d(t)};return p.on("root.added",e),()=>{p.off("root.added",e)}}),[u]),ab((()=>{const e=()=>{d(u)};return p.on("propertiesPanel.providersChanged",e),()=>{p.off("propertiesPanel.providersChanged",e)}}),[u]),ab((()=>{const e=()=>{d(u)};return p.on("elementTemplates.changed",e),()=>{p.off("elementTemplates.changed",e)}}),[u]);const h={selectedElement:u,injector:n,getService:(e,t)=>n.get(e,t)},m=i(u),f=pb((()=>P(m,(function(e,t){return t.getGroups(u)(e)}),[])),[m,u]);return Ib(jw.Provider,{value:h,children:Ib(ax,{element:u,headerProvider:FE,groups:f,layoutConfig:r,layoutChanged:e=>{p.fire("propertiesPanel.layoutChanged",{layout:e})},descriptionConfig:o,descriptionLoaded:e=>{p.fire("propertiesPanel.descriptionLoaded",{description:e})},eventBus:p})})}class UE{constructor(e,t,n){const{parent:i,layout:r,description:o}=e||{};this._eventBus=n,this._injector=t,this._layoutConfig=r,this._descriptionConfig=o,this._container=fe('<div style="height: 100%" class="bio-properties-panel-container" input-handle-modified-keys="y,z"></div>'),n.on("diagram.init",(()=>{i&&this.attachTo(i)})),n.on("diagram.destroy",(()=>{this.detach()})),n.on("root.added",(e=>{const{element:t}=e;this._render(t)}))}attachTo(e){if(!e)throw new Error("container required");"string"==typeof e&&(e=ve(e)),this.detach(),e.appendChild(this._container),this._eventBus.fire("propertiesPanel.attach")}detach(){const e=this._container.parentNode;e&&(e.removeChild(this._container),this._eventBus.fire("propertiesPanel.detach"))}registerProvider(e,t){t||(t=e,e=1e3),"function"==typeof t.getGroups?(this._eventBus.on("propertiesPanel.getProviders",e,(function(e){e.providers.push(t)})),this._eventBus.fire("propertiesPanel.providersChanged")):console.error("Properties provider does not implement #getGroups(element) API")}_getProviders(){const e=this._eventBus.createEvent({type:"propertiesPanel.getProviders",providers:[]});return this._eventBus.fire(e),e.providers}_render(e){const t=this._injector.get("canvas");e||(e=t.getRootElement()),function(e){return e&&(e.isImplicit||"__implicitroot"===e.id)}(e)||(Uv(Ib(qE,{element:e,injector:this._injector,getProviders:this._getProviders.bind(this),layoutConfig:this._layoutConfig,descriptionConfig:this._descriptionConfig}),this._container),this._eventBus.fire("propertiesPanel.rendered"))}_destroy(){this._container&&(Uv(null,this._container),this._eventBus.fire("propertiesPanel.destroyed"))}}UE.$inject=["config.propertiesPanel","injector","eventBus"];class GE{constructor(e){this._commandStack=e}preExecute(e){const t=this._commandStack;_(e,(function(e){t.execute(e.cmd,e.context)}))}}GE.$inject=["commandStack"];const WE={"properties-panel.multi-command-executor":GE};function KE(e,t){e.on("diagram.init",(function(){_(WE,(function(e,n){t.registerHandler(n,e)}))}))}KE.$inject=["eventBus","commandStack"];var YE={__depends__:[{__init__:[KE]},Vx],__init__:["propertiesPanel"],propertiesPanel:["type",UE]};function XE(e){const{autoFocusEntry:t,element:n,getOptions:i}=e,r=i(n),o=Jb(r);return ab((()=>{if(t&&o&&r.length>o.length){const e=ve(`[data-entry-id="${t}"]`),n=ve(".bio-properties-panel-input",e);n&&n.select()}}),[r]),Ib(Ox,{...e})}function ZE(e){return nP(e,"bpmn:ErrorEventDefinition")}function JE(e){return _r(e,["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"])&&!!eP(e)}function QE(e){if(!e)return;if(void 0!==e.get("timeDate"))return"timeDate";if(void 0!==e.get("timeCycle"))return"timeCycle";return void 0!==e.get("timeDuration")?"timeDuration":void 0}function eP(e){return nP(e,"bpmn:TimerEventDefinition")}function tP(e){const t=ZE(e);return t&&t.get("errorRef")}function nP(e,t){return b(Er(e).get("eventDefinitions")||[],(function(e){return wr(e,t)}))}function iP(e){return wr(e,"bpmn:ReceiveTask")?Er(e):nP(e,"bpmn:MessageEventDefinition")}function rP(e){const t=iP(e);return t&&t.get("messageRef")}function oP(e){return nP(e,"bpmn:LinkEventDefinition")}function aP(e){return nP(e,"bpmn:SignalEventDefinition")}function sP(e){const t=aP(e);return t&&t.get("signalRef")}function pP(e){return nP(e,"bpmn:EscalationEventDefinition")}function lP(e){const t=pP(e);return t&&t.get("escalationRef")}function cP(e){return nP(e,"bpmn:CompensateEventDefinition")}function uP(e){const{element:t}=e;return function(e){return _r(e,["bpmn:EndEvent","bpmn:IntermediateThrowEvent"])&&!!cP(e)}(t)?[{id:"waitForCompletion",component:dP,isEdited:wx},{id:"activityRef",component:hP,isEdited:Sx}]:[]}function dP(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("translate"),r=cP(t);return xx({element:t,id:"waitForCompletion",label:i("Wait for completion"),getValue:()=>r.get("waitForCompletion"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:r,properties:{waitForCompletion:e}})}})}function hP(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("elementRegistry"),r=Bw("translate"),o=cP(t);return XE({element:t,id:"activityRef",label:r("Activity reference"),getValue:()=>{const e=function(e){const t=cP(e);return t&&t.get("activityRef")}(t);return e&&e.get("id")},setValue:e=>{const r=e?Er(i.get(e)):void 0;n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{activityRef:r}})},getOptions:()=>{let e=[{value:"",label:r("<none>")}];const n=function(e){let t=Er(e).$parent,n=yP(t);wr(t,"bpmn:SubProcess")&&t.triggeredByEvent&&(t=t.$parent,t&&(n=[...n,...yP(t)]));return n}(t);var i;return(i=n,D(i,(e=>(e.name||"").toLowerCase()))).forEach((function(t){e.push({value:t.id,label:gP(t)})})),e}})}function mP(e,t){const{flowElements:n}=e;return n.filter((function(e){return wr(e,t)}))}function fP(e,t){return wr(e,"bpmn:CallActivity")||wr(e,"bpmn:SubProcess")&&!e.triggeredByEvent&&!e.isForCompensation||function(e,t){const{id:n}=e;return!!b(t,(function(e){const{attachedToRef:t}=e,i=cP(e);return t&&i&&t.id===n}))}(e,t)}function yP(e){const t=function(e){return mP(e,"bpmn:Activity")}(e),n=function(e){return mP(e,"bpmn:BoundaryEvent")}(e);return t.filter((function(e){return fP(e,n)}))}function gP(e){const{id:t,name:n}=e;return`${n?n+" ":""}(id=${t})`}const vP="text/plain";function bP(e){const{element:t}=e,n=[{id:"documentation",component:xP,isEdited:Ax}];return function(e){return wr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)&&n.push({id:"processDocumentation",component:wP,isEdited:Ax}),n}function xP(e){const{element:t}=e,n=Bw("bpmnFactory"),i=Bw("commandStack"),r=Bw("translate"),o=Bw("debounceInput"),a=EP(Er(t)),s=PP(t,Er(t),n,i);return Tx({element:t,id:"documentation",label:r("Element documentation"),getValue:a,setValue:s,debounce:o})}function wP(e){const{element:t}=e,n=Bw("bpmnFactory"),i=Bw("commandStack"),r=Bw("translate"),o=Bw("debounceInput"),a=Er(t).processRef,s=EP(a),p=PP(t,a,n,i);return Tx({element:t,id:"processDocumentation",label:r("Process documentation"),getValue:s,setValue:p,debounce:o})}function _P(e){return e.find((function(e){return(e.textFormat||vP)===vP}))}function EP(e){return function(){const t=_P(e&&e.get("documentation"));return t&&t.text}}function PP(e,t,n,i){return function(r){let o=_P(t&&t.get("documentation"));return o?r?i.execute("element.updateModdleProperties",{element:e,moddleElement:o,properties:{text:r}}):i.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:{documentation:E(t.get("documentation"),o)}}):r?(o=n.create("bpmn:Documentation",{text:r}),i.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:{documentation:[...t.get("documentation"),o]}})):void 0}}function OP(e,t,n,i){const r=i.create(e,t);return n&&(r.$parent=n),r}function SP(e){return new o([32,32,1]).nextPrefixed(e)}function kP(e){let t=e;for(;t.$parent;)t=t.$parent;return t}function CP(e,t){const n=kP(e);return i=n.get("rootElements"),r=t,(i||[]).filter((e=>wr(e,r)));var i,r}function MP(e,t,n){return CP(e,t).find((e=>e.id===n))}const TP="create-new";function AP(e){const{element:t}=e;if(!function(e){return _r(e,["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:EndEvent"])&&!!ZE(e)}(t))return[];let n=[{id:"errorRef",component:RP,isEdited:Sx}];return tP(t)&&(n=[...n,{id:"errorName",component:zP,isEdited:Bx},{id:"errorCode",component:DP,isEdited:Bx}]),n}function RP(e){const{element:t}=e,n=Bw("bpmnFactory"),i=Bw("commandStack"),r=Bw("translate"),o=ZE(t),a=Er(t),s=Nw(a,Yx(Wx(o,a),"errorRef"));return XE({element:t,id:"errorRef",label:r("Global error reference"),autoFocusEntry:"errorName",getValue:()=>{const e=tP(t);return e?e.get("id"):""},setValue:e=>{const r=kP(o),a=[];let s;return e===TP&&(s=OP("bpmn:Error",{name:SP("Error_")},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})),s=s||MP(o,"bpmn:Error",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{errorRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:TP,label:r("Create new ...")}];const n=CP(Er(t),"bpmn:Error");var i;return(i=n,D(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e},show:s})}function zP(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("translate"),r=Bw("debounceInput"),o=tP(t);return jx({element:t,id:"errorName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function DP(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("translate"),r=Bw("debounceInput"),o=tP(t);return jx({element:t,id:"errorCode",label:i("Code"),getValue:()=>o.get("errorCode"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{errorCode:e}}),debounce:r})}const jP="create-new";function BP(e){const{element:t}=e;if(!function(e){return wr(e,"bpmn:Event")&&!!pP(e)}(t))return[];let n=[{id:"escalationRef",component:NP,isEdited:Sx}];return lP(t)&&(n=[...n,{id:"escalationName",component:LP,isEdited:Bx},{id:"escalationCode",component:IP,isEdited:Bx}]),n}function NP(e){const{element:t}=e,n=Bw("bpmnFactory"),i=Bw("commandStack"),r=Bw("translate"),o=pP(t);return XE({element:t,id:"escalationRef",label:r("Global escalation reference"),autoFocusEntry:"escalationName",getValue:()=>{const e=lP(t);return e&&e.get("id")},setValue:e=>{const r=kP(o),a=[];let s;if(e===jP){const i=SP("Escalation_");s=OP("bpmn:Escalation",{id:i,name:i},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})}return s=s||MP(o,"bpmn:Escalation",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{escalationRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:jP,label:r("Create new ...")}];const n=CP(Er(t),"bpmn:Escalation");var i;return(i=n,D(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function LP(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("translate"),r=Bw("debounceInput"),o=lP(t);return jx({element:t,id:"escalationName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function IP(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("translate"),r=Bw("debounceInput"),o=lP(t);return jx({element:t,id:"escalationCode",label:i("Code"),getValue:()=>o.get("escalationCode"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{escalationCode:e}}),debounce:r})}function $P(e){const{element:t}=e;return wr(t,"bpmn:Process")||function(e){return wr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)?[{id:"isExecutable",component:FP,isEdited:wx}]:[]}function FP(e){const{element:t}=e,n=Bw("modeling"),i=Bw("commandStack"),r=Bw("translate");let o,a;if(a=e=>{n.updateProperties(t,{isExecutable:e})},o=e=>e.businessObject.isExecutable,wr(t,"bpmn:Participant")){const e=t.businessObject.get("processRef");a=n=>{i.execute("element.updateModdleProperties",{element:t,moddleElement:e,properties:{isExecutable:n}})},o=()=>e.get("isExecutable")}return xx({element:t,id:"isExecutable",label:r("Executable"),getValue:o,setValue:a})}const VP=/\s/,HP=/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i,qP=/^[a-z_][\w-.]*$/i;function UP(e,t,n){const i=e.$model.ids.assigned(t);return t?i&&i!==e?n("ID must be unique."):function(e,t){if(n=e,VP.test(n))return t("ID must not contain spaces.");var n;if(!qP.test(e))return HP.test(e)?t("ID must not contain prefix."):t("ID must be a valid QName.")}(t,n):n("ID must not be empty.")}function GP(e){const{element:t}=e,n=Bw("modeling"),i=Bw("debounceInput"),r=Bw("translate");return jx({element:t,id:"id",label:r(wr(t,"bpmn:Participant")?"Participant ID":"ID"),getValue:e=>e.businessObject.id,setValue:e=>{n.updateProperties(t,{id:e})},debounce:i,validate:e=>UP(Er(t),e,r)})}function WP(e){const{element:t}=e;return function(e){return _r(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!oP(e)}(t)?[{id:"linkName",component:KP,isEdited:Bx}]:[]}function KP(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("translate"),r=Bw("debounceInput"),o=oP(t);return jx({element:t,id:"linkName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}})},debounce:r})}const YP="create-new";function XP(e){const{element:t}=e;if(!function(e){return wr(e,"bpmn:ReceiveTask")||_r(e,["bpmn:StartEvent","bpmn:EndEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent"])&&!!iP(e)}(t))return[];let n=[{id:"messageRef",component:ZP,isEdited:Sx}];return rP(t)&&(n=[...n,{id:"messageName",component:JP,isEdited:Bx}]),n}function ZP(e){const{element:t}=e,n=Bw("bpmnFactory"),i=Bw("commandStack"),r=Bw("translate"),o=iP(t),a=Er(t),s=Nw(a,Yx(Wx(o,a),"messageRef"));return XE({element:t,id:"messageRef",label:r("Global message reference"),autoFocusEntry:"messageName",getValue:()=>{const e=rP(t);return e?e.get("id"):""},setValue:e=>{const r=kP(o),a=[];let s;if(e===YP){const i=SP("Message_");s=OP("bpmn:Message",{id:i,name:i},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})}return s=s||MP(o,"bpmn:Message",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{messageRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:YP,label:r("Create new ...")}];const n=CP(Er(t),"bpmn:Message");var i;return(i=n,D(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e},show:s})}function JP(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("translate"),r=Bw("debounceInput"),o=rP(t);return jx({element:t,id:"messageName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function QP(e){const{element:t}=e;if(!function(e){const t=rO(e);return!!t&&wr(t,"bpmn:MultiInstanceLoopCharacteristics")}(t))return[];return[{id:"loopCardinality",component:eO,isEdited:Bx},{id:"completionCondition",component:tO,isEdited:Bx}]}function eO(e){const{element:t}=e,n=Bw("bpmnFactory"),i=Bw("debounceInput"),r=Bw("commandStack"),o=Bw("translate");return jx({element:t,id:"loopCardinality",label:o("Loop cardinality"),getValue:()=>function(e){return nO(function(e){return iO(e,"loopCardinality")}(e))}(t),setValue:e=>r.execute("element.updateModdleProperties",oO(t,"loopCardinality",e,n)),debounce:i})}function tO(e){const{element:t}=e,n=Bw("bpmnFactory"),i=Bw("debounceInput"),r=Bw("commandStack"),o=Bw("translate");return jx({element:t,id:"completionCondition",label:o("Completion condition"),getValue:()=>function(e){return nO(function(e){return iO(e,"completionCondition")}(e))}(t),setValue:e=>r.execute("element.updateModdleProperties",oO(t,"completionCondition",e,n)),debounce:i})}function nO(e){return e&&e.get("body")}function iO(e,t){const n=rO(e);return n&&n.get(t)}function rO(e){return Er(e).loopCharacteristics}function oO(e,t,n,i){const r=rO(e),o={};if(!n)return o[t]=void 0,{element:e,moddleElement:r,properties:o};const a=r.get(t);return a?{element:e,moddleElement:a,properties:{body:n}}:(o[t]=function(e,t,n){return OP("bpmn:FormalExpression",{body:t},e,n)}(r,n,i),{element:e,moddleElement:r,properties:o})}function aO(e){const{element:t}=e;return _r(t,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"])?[]:[{id:"name",component:sO,isEdited:Bx}]}function sO(e){const{element:t}=e,n=Bw("modeling"),i=Bw("debounceInput"),r=Bw("canvas"),o=Bw("bpmnFactory"),a=Bw("translate");let s={element:t,id:"name",label:a("Name"),debounce:i,setValue:e=>{n.updateProperties(t,{name:e})},getValue:e=>e.businessObject.name};return wr(t,"bpmn:TextAnnotation")?s={...s,setValue:e=>{n.updateProperties(t,{text:e})},getValue:e=>e.businessObject.text}:wr(t,"bpmn:Group")?s={...s,setValue:e=>{const i=Er(t);i.categoryValueRef||function(e,t,n){const i=function(e,t){const n=t.create("bpmn:CategoryValue"),i=t.create("bpmn:Category",{categoryValue:[n]});return function(e,t,n){if(e&&t){"number"!=typeof n&&(n=-1);var i=e.indexOf(t);if(-1!==i){if(i===n)return;if(-1===n)return;e.splice(i,1)}-1!==n?e.splice(n,0,t):e.push(t)}}(e.get("rootElements"),i),Er(i).$parent=e,Er(n).$parent=i,n}(Er(t).$parent,n);e.categoryValueRef=i}(i,r.getRootElement(),o),n.updateLabel(t,e)},getValue:e=>{const t=Er(e).categoryValueRef;return t&&t.value}}:wr(t,"bpmn:Participant")&&(s.label=a("Participant Name")),jx(s)}function pO(e){const{element:t}=e;return function(e){return wr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)?[{id:"processId",component:cO,isEdited:Bx},{id:"processName",component:lO,isEdited:Bx}]:[]}function lO(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("translate"),r=Bw("debounceInput"),o=t.businessObject.get("processRef");return jx({element:t,id:"processName",label:i("Process name"),getValue:()=>o.get("name"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}})},debounce:r})}function cO(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("translate"),r=Bw("debounceInput"),o=t.businessObject.get("processRef");return jx({element:t,id:"processId",label:i("Process ID"),getValue:()=>o.get("id"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{id:e}})},debounce:r,validate:e=>UP(o,e,i)})}const uO="create-new";function dO(e){const{element:t}=e;if(!function(e){return wr(e,"bpmn:Event")&&!!aP(e)}(t))return[];let n=[{id:"signalRef",component:hO,isEdited:Sx}];return sP(t)&&(n=[...n,{id:"signalName",component:mO,isEdited:Bx}]),n}function hO(e){const{element:t}=e,n=Bw("bpmnFactory"),i=Bw("commandStack"),r=Bw("translate"),o=aP(t);return XE({element:t,id:"signalRef",label:r("Global signal reference"),autoFocusEntry:"signalName",getValue:()=>{const e=sP(t);return e?e.get("id"):""},setValue:e=>{const r=kP(o),a=[];let s;if(e===uO){const i=SP("Signal_");s=OP("bpmn:Signal",{id:i,name:i},r,n),e=s.get("id"),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),s]}}})}return s=s||MP(o,"bpmn:Signal",e),a.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{signalRef:s}}}),i.execute("properties-panel.multi-command-executor",a)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:uO,label:r("Create new ...")}];const n=CP(Er(t),"bpmn:Signal");var i;return(i=n,D(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function mO(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("translate"),r=Bw("debounceInput"),o=sP(t);return jx({element:t,id:"signalName",label:i("Name"),getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function fO(e){const{element:t,listener:n,idPrefix:i}=e;let{timerEventDefinition:r}=e;if(!r){r=eP(Er(t))}const o=QE(r);if(!JE(t)&&!function(e){return e&&wr(e,"camunda:TaskListener")&&eP(e)}(n))return[];const a=[];return a.push({id:bO(i,"timerEventDefinitionType"),component:yO,isEdited:Sx,timerEventDefinition:r,timerEventDefinitionType:o}),o&&a.push({id:bO(i,"timerEventDefinitionValue"),component:gO,isEdited:Bx,timerEventDefinition:r,timerEventDefinitionType:o}),a}function yO(e){const{element:t,timerEventDefinition:n,timerEventDefinitionType:i}=e,r=Bw("commandStack"),o=Bw("bpmnFactory"),a=Bw("translate");return Ox({element:t,id:"timerEventDefinitionType",label:a("Type"),getValue:()=>i||"",setValue:e=>{if(e===i)return;const a=o.create("bpmn:FormalExpression",{body:void 0});a.$parent=n;const s={timeDuration:void 0,timeDate:void 0,timeCycle:void 0};""!==e&&(s[e]=a),r.execute("element.updateModdleProperties",{element:t,moddleElement:n,properties:s})},getOptions:e=>[{value:"",label:a("<none>")},{value:"timeDate",label:a("Date")},{value:"timeDuration",label:a("Duration")},{value:"timeCycle",label:a("Cycle")}]})}function gO(e){const{element:t,timerEventDefinition:n,timerEventDefinitionType:i}=e,r=Bw("commandStack"),o=Bw("translate"),a=Bw("debounceInput"),s=n.get(i);return jx({element:t,id:"timerEventDefinitionValue",label:o("Value"),getValue:()=>s&&s.get("body"),setValue:e=>{r.execute("element.updateModdleProperties",{element:t,moddleElement:s,properties:{body:e}})},debounce:a,description:vO(i,o)})}function vO(e,t){switch(e){case"timeDate":return Ib("div",{children:[Ib("p",{children:t("A specific point in time defined as ISO 8601 combined date and time representation.")}),Ib("ul",{children:[Ib("li",{children:[Ib("code",{children:"2019-10-01T12:00:00Z"})," - ",t("UTC time")]}),Ib("li",{children:[Ib("code",{children:"2019-10-02T08:09:40+02:00"})," - ",t("UTC plus 2 hours zone offset")]})]}),Ib("a",{href:"https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-date",target:"_blank",rel:"noopener",children:t("Documentation: Timer events")})]});case"timeCycle":return Ib("div",{children:[Ib("p",{children:t("A cycle defined as ISO 8601 repeating intervals format.")}),Ib("ul",{children:[Ib("li",{children:[Ib("code",{children:"R5/PT10S"})," - ",t("every 10 seconds, up to 5 times")]}),Ib("li",{children:[Ib("code",{children:"R/P1D"})," - ",t("every day, infinitely")]})]}),Ib("a",{href:"https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-cycle",target:"_blank",rel:"noopener",children:t("Documentation: Timer events")})]});case"timeDuration":return Ib("div",{children:[Ib("p",{children:t("A time duration defined as ISO 8601 durations format.")}),Ib("ul",{children:[Ib("li",{children:[Ib("code",{children:"PT15S"})," - ",t("15 seconds")]}),Ib("li",{children:[Ib("code",{children:"PT1H30M"})," - ",t("1 hour and 30 minutes")]}),Ib("li",{children:[Ib("code",{children:"P14D"})," - ",t("14 days")]})]}),Ib("a",{href:"https://docs.camunda.org/manual/latest/reference/bpmn20/events/timer-events/#time-duration",target:"_blank",rel:"noopener",children:t("Documentation: Timer events")})]})}}function bO(e,t){return e?e+t:t}function xO(e){return{id:"general",label:"General",entries:[...aO({element:e}),{id:"id",component:GP,isEdited:Bx},...pO({element:e}),...$P({element:e})],component:tx}}function wO(e){const t={label:"Compensation",id:"compensation",component:tx,entries:[...uP({element:e})]};return t.entries.length?t:null}function _O(e){return{id:"documentation",label:"Documentation",entries:[...bP({element:e})],component:tx}}function EO(e){const t={id:"error",label:"Error",component:tx,entries:[...AP({element:e})]};return t.entries.length?t:null}function PO(e){const t={id:"message",label:"Message",component:tx,entries:[...XP({element:e})]};return t.entries.length?t:null}function OO(e){const t={id:"signal",label:"Signal",component:tx,entries:[...dO({element:e})]};return t.entries.length?t:null}function SO(e){const t={label:"Link",id:"link",component:tx,entries:[...WP({element:e})]};return t.entries.length?t:null}function kO(e){const t={id:"escalation",label:"Escalation",component:tx,entries:[...BP({element:e})]};return t.entries.length?t:null}function CO(e){const t={label:"Timer",id:"timer",component:tx,entries:[...fO({element:e})]};return t.entries.length?t:null}function MO(e){const t={label:"Multi-instance",id:"multiInstance",component:tx,entries:[...QP({element:e})]};return t.entries.length?t:null}class TO{constructor(e){e.registerProvider(this)}getGroups(e){return t=>t=t.concat(function(e){return[xO(e),_O(e),wO(e),EO(e),SO(e),PO(e),MO(e),OO(e),kO(e),CO(e)].filter((e=>null!==e))}(e))}}TO.$inject=["propertiesPanel"];var AO={__init__:["bpmnPropertiesProvider"],bpmnPropertiesProvider:["type",TO]};function RO(e,t){const n=e.get("extensionElements");if(!n)return[];const i=n.get("values");return i&&i.length?t?i.filter((e=>wr(e,t))):i:[]}function zO(e,t,n,i){d(n)||(n=[n]);const r=t.get("extensionElements"),o=r.get("values").filter((e=>!n.includes(e)));i.execute("element.updateModdleProperties",{element:e,moddleElement:r,properties:{values:o}})}function DO(e){const{element:t}=e;return wr(t,"bpmn:UserTask")?[{id:"assignmentDefinitionAssignee",component:jO,isEdited:Bx},{id:"assignmentDefinitionCandidateGroups",component:BO,isEdited:Bx}]:[]}function jO(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("bpmnFactory"),r=Bw("translate"),o=Bw("debounceInput");return jx({element:t,id:"assignmentDefinitionAssignee",label:r("Assignee"),feel:"optional",getValue:()=>(NO(t)||{}).assignee,setValue:e=>{const r=[],o=Er(t);let a=o.get("extensionElements");a||(a=OP("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=NO(t);s||(s=OP("zeebe:AssignmentDefinition",{},a,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{assignee:e}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}function BO(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("bpmnFactory"),r=Bw("translate"),o=Bw("debounceInput");return jx({element:t,id:"assignmentDefinitionCandidateGroups",label:r("Candidate groups"),feel:"optional",getValue:()=>(NO(t)||{}).candidateGroups,setValue:e=>{let r=[];const o=Er(t);let a=o.get("extensionElements");a||(a=OP("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=NO(t);s||(s=OP("zeebe:AssignmentDefinition",{},a,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{candidateGroups:e}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}function NO(e){return RO(Er(e),"zeebe:AssignmentDefinition")[0]}const LO="dmn",IO="jobWorker";function $O(e){const{element:t}=e;return wr(t,"bpmn:BusinessRuleTask")?[{id:"businessRuleImplementation",component:FO,isEdited:()=>function(e){return VO(e)}(t)}]:[]}function FO(e){const{element:t,id:n}=e,i=Bw("commandStack"),r=Bw("bpmnFactory"),o=Bw("translate"),a=Nw(Er(t),(e=>{const{error:t}=e;if(!t)return!1;const{requiredExtensionElement:n,type:i}=t;return"extensionElementRequired"===i&&["zeebe:CalledDecision","zeebe:TaskDefinition"].includes(n)}));return Ox({element:t,id:n,label:o("Implementation"),getValue:()=>HO(t)?LO:VO(t)?IO:"",setValue:e=>{let n,o;e===LO?(n=HO(t),o="zeebe:CalledDecision"):e===IO?(n=VO(t),o="zeebe:TaskDefinition"):function(e,t){const n=Er(e),i=VO(e),r=HO(e);i&&zO(e,n,i,t);r&&zO(e,n,r,t)}(t,i),!n&&o&&(n=OP(o,{},null,r),function(e,t,n,i){const r=Er(e),o=[];let a,s=r.get("extensionElements");s||(s=OP("bpmn:ExtensionElements",{values:[]},r,n),o.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:r,properties:{extensionElements:s}}}));t.$parent=s,wr(t,"zeebe:TaskDefinition")?a=E(s.get("values"),HO(e)):wr(t,"zeebe:CalledDecision")&&(a=E(s.get("values"),VO(e)));o.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:s,properties:{values:[...a,t]}}}),i.execute("properties-panel.multi-command-executor",o)}(t,n,r,i))},getOptions:()=>[{value:"",label:o("<none>")},{value:LO,label:o("DMN decision")},{value:IO,label:o("Job worker")}],show:a})}function VO(e){return RO(Er(e),"zeebe:TaskDefinition")[0]}function HO(e){return RO(Er(e),"zeebe:CalledDecision")[0]}function qO(e){const{element:t}=e;return wr(t,"bpmn:BusinessRuleTask")&&WO(t)?[{id:"decisionId",component:UO,isEdited:Bx},{id:"resultVariable",component:GO,isEdited:Bx}]:[]}function UO(e){const{element:t,id:n}=e,i=Bw("commandStack"),r=Bw("bpmnFactory"),o=Bw("translate"),a=Bw("debounceInput"),s=Er(t),p=WO(t),l=Nw(s,Yx(Wx(p,s),"decisionId"));return jx({element:t,id:n,label:o("ID"),feel:"optional",getValue:()=>(WO(t)||{}).decisionId,setValue:e=>{const n=[],o=Er(t);let a=o.get("extensionElements");a||(a=OP("bpmn:ExtensionElements",{values:[]},o,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=WO(t);s||(s=OP("zeebe:CalledDecision",{},a,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{decisionId:e}}}),i.execute("properties-panel.multi-command-executor",n)},debounce:a,show:l})}function GO(e){const{element:t,id:n}=e,i=Bw("commandStack"),r=Bw("bpmnFactory"),o=Bw("translate"),a=Bw("debounceInput"),s=Er(t),p=WO(t),l=Nw(s,Yx(Wx(p,s),"resultVariable"));return jx({element:t,id:n,label:o("Result variable"),getValue:()=>(WO(t)||{}).resultVariable,setValue:e=>{const n=[],o=Er(t);let a=o.get("extensionElements");a||(a=OP("bpmn:ExtensionElements",{values:[]},o,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=WO(t);s||(s=OP("zeebe:CalledDecision",{},a,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{resultVariable:e}}}),i.execute("properties-panel.multi-command-executor",n)},debounce:a,show:l})}function WO(e){return RO(Er(e),"zeebe:CalledDecision")[0]}function KO(e){const{element:t}=e;if(!wr(t,"bpmn:SequenceFlow"))return[];const n=[];return function(e){return _r(e,XO)}(t.source)&&n.push({id:"conditionExpression",component:YO,isEdited:Bx}),n}function YO(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("bpmnFactory"),r=Bw("translate"),o=Bw("debounceInput");return jx({element:t,id:"conditionExpression",label:r("Condition expression"),feel:"required",getValue:()=>function(e){const t=Er(e).conditionExpression;if(t)return t.get("body")}(t),setValue:e=>{const r=[],o=Er(t),a=t.source;a.businessObject.default===o&&r.push({cmd:"element.updateProperties",context:{element:a,properties:{default:void 0}}});const s=e&&""!=e?OP("bpmn:FormalExpression",{body:e},o,i):void 0;r.push({cmd:"element.updateProperties",context:{element:t,properties:{conditionExpression:s}}}),n.execute("properties-panel.multi-command-executor",r)},debounce:o})}const XO=["bpmn:Activity","bpmn:ExclusiveGateway"];function ZO(e){const{element:t,injector:n}=e,i=n.invoke(nS);if(!wr(t,"bpmn:UserTask"))return[];const r=[{id:"formType",component:JO,isEdited:Sx}];return!function(e,t){const n=t.getFormDefinition(e),i=t.getUserTaskForm(e);return n&&i}(t,i)?function(e,t){const n=t.getFormDefinition(e),i=t.getUserTaskForm(e);return n&&!i}(t,i)&&r.push({id:"customFormKey",component:eS,isEdited:Bx}):r.push({id:"formConfiguration",component:QO,isEdited:Ax}),r}function JO(e){const{element:t}=e,n=Bw("translate"),i=Bw("injector").invoke(nS);return Ox({element:t,id:"formType",label:n("Type"),getValue:()=>{const e=i.getFormDefinition(t),n=i.getUserTaskForm(t);return e?n?"camundaForm":"formKey":""},setValue:e=>{i.resetForm(t),"camundaForm"===e?i.setUserTaskForm(t,""):"formKey"===e&&i.setFormDefinition(t,"")},getOptions:()=>[{value:"",label:n("<none>")},{value:"camundaForm",label:n("Camunda forms")},{value:"formKey",label:n("Custom form key")}]})}function QO(e){const{element:t}=e,n=Bw("injector"),i=Bw("debounceInput"),r=Bw("translate"),o=n.invoke(nS);return Tx({element:t,id:"formConfiguration",label:r("Form JSON configuration"),rows:4,getValue:()=>o.getUserTaskForm(t).get("body"),setValue:e=>{o.setUserTaskForm(t,e)},debounce:i})}function eS(e){const{element:t}=e,n=Bw("injector"),i=Bw("debounceInput"),r=Bw("translate"),o=n.invoke(nS);return jx({element:t,id:"customFormKey",label:r("Form Key"),getValue:()=>o.getFormDefinition(t).get("formKey"),setValue:e=>{o.setFormDefinition(t,e)},debounce:i})}const tS="userTaskForm_";function nS(e,t){function n(e){return RO(Er(e),"zeebe:FormDefinition")[0]}function i(e,t){const i=t||s(e),r=n(e);if(l(r))return;return function(e,t){return b(RO(t,"zeebe:UserTaskForm"),(function(t){return a(t.id)===e}))}(r.get("formKey"),i)}function r(t,n){let r=[];const o=s(t);let a=o.get("extensionElements");a||(a=OP("bpmn:ExtensionElements",{values:[]},o,e),r.push(iS(t,o,{extensionElements:a})));let p=i(t);return p||(p=function(e,t,n){return OP("zeebe:UserTaskForm",e,t,n)}(n,a,e),r.push(iS(t,a,{values:[...a.get("values"),p]}))),r.push(iS(t,p,n)),r}function o(t,i){const r=Er(t);let o=[],s=r.get("extensionElements");l(s)&&(s=OP("bpmn:ExtensionElements",{values:[]},r,e),o.push(iS(t,r,{extensionElements:s})));let p=n(t);if(p)i&&o.push(iS(t,p,{formKey:i}));else{let n=i;if(l(n)){n=a(SP(tS))}p=function(e,t,n){return OP("zeebe:FormDefinition",e,t,n)}({formKey:n},s,e),o.push(iS(t,s,{values:[...s.get("values"),p]}))}return{formId:(c=p.get("formKey"),c.split(":")[2]),commands:o};var c}function a(e){return"camunda-forms:bpmn:"+e}function s(e){let t=Er(e);for(;t.$parent&&!wr(t,"bpmn:Process");)t=t.$parent;return t}return{getFormDefinition:n,getUserTaskForm:i,setFormDefinition:function(e,n){const{commands:i}=o(e,n);t.execute("properties-panel.multi-command-executor",i)},setUserTaskForm:function(e,n){const{formId:i,commands:a}=o(e),s=r(e,{id:i,body:n}),p=a.concat(s);t.execute("properties-panel.multi-command-executor",p)},resetForm:function(e){const r=s(e).get("extensionElements"),o=function(e){const t=Er(e).get("extensionElements");let i=[];const r=n(e);if(!r)return i;let o=E(t.get("values"),r);return i.push(iS(e,t,{values:o})),i}(e),a=i(e);if(!a)return void t.execute("properties-panel.multi-command-executor",o);const p=E(r.get("values"),a);o.push(iS(e,r,{values:p})),t.execute("properties-panel.multi-command-executor",o)}}}function iS(e,t,n){return{cmd:"element.updateModdleProperties",context:{element:e,moddleElement:t,properties:n}}}function rS(e){const{idPrefix:t,header:n}=e;return[{id:t+"-key",component:oS,header:n,idPrefix:t},{id:t+"-value",component:aS,header:n,idPrefix:t}]}function oS(e){const{idPrefix:t,element:n,header:i}=e,r=Bw("commandStack"),o=Bw("translate"),a=Bw("debounceInput");return jx({element:i,id:t+"-key",label:o("Key"),getValue:e=>e.key,setValue:e=>{r.execute("element.updateModdleProperties",{element:n,moddleElement:i,properties:{key:e}})},debounce:a})}function aS(e){const{idPrefix:t,element:n,header:i}=e,r=Bw("commandStack"),o=Bw("translate"),a=Bw("debounceInput");return jx({element:i,id:t+"-value",label:o("Value"),getValue:e=>e.value,setValue:e=>{r.execute("element.updateModdleProperties",{element:n,moddleElement:i,properties:{value:e}})},debounce:a})}function sS(e){return!!wr(e,"zeebe:ZeebeServiceTask")&&(wr(e,"bpmn:EndEvent")||wr(e,"bpmn:IntermediateThrowEvent")?!!iP(e):!(wr(e,"bpmn:BusinessRuleTask")&&!function(e){return RO(Er(e),"zeebe:TaskDefinition")[0]}(e)))}function pS(e){return RO(Er(e),"zeebe:TaskHeaders")[0]}function lS({element:e,injector:t}){if(!function(e){return wr(e,"bpmn:UserTask")||sS(e)}(e))return null;const n=function(e){const t=pS(e);return t?t.get("values"):[]}(e)||[],i=t.get("bpmnFactory"),r=t.get("commandStack");return{items:n.map(((t,n)=>{const i=e.id+"-header-"+n;return{id:i,label:t.get("key")||"",entries:rS({idPrefix:i,element:e,header:t}),autoFocusEntry:i+"-key",remove:cS({commandStack:r,element:e,header:t})}})),add:uS({bpmnFactory:i,commandStack:r,element:e})}}function cS({commandStack:e,element:t,header:n}){return function(i){i.stopPropagation();let r=[];const o=pS(t);if(!o)return;const a=E(o.get("values"),n);if(r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{values:a}}}),!a.length){const e=Er(t).get("extensionElements");r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:e,properties:{values:E(e.get("values"),o)}}})}e.execute("properties-panel.multi-command-executor",r)}}function uS({bpmnFactory:e,commandStack:t,element:n}){return function(i){i.stopPropagation();let r=[];const o=Er(n);let a=o.get("extensionElements");a||(a=OP("bpmn:ExtensionElements",{values:[]},o,e),r.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:o,properties:{extensionElements:a}}}));let s=pS(n);if(!s){s=OP("zeebe:TaskHeaders",{values:[]},a,e),r.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:a,properties:{values:[...a.get("values"),s]}}})}const p=OP("zeebe:Header",{},s,e);r.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:s,properties:{values:[...s.get("values"),p]}}}),t.execute("properties-panel.multi-command-executor",r)}}function dS(e){const{idPrefix:t,parameter:n}=e;return[{id:t+"-target",component:hS,idPrefix:t,parameter:n},{id:t+"-source",component:mS,idPrefix:t,parameter:n}]}function hS(e){const{idPrefix:t,element:n,parameter:i}=e,r=Bw("commandStack"),o=Bw("translate"),a=Bw("debounceInput");return jx({element:i,id:t+"-target",label:o(wr(i,"zeebe:Input")?"Local variable name":"Process variable name"),getValue:e=>e.target,setValue:e=>{r.execute("element.updateModdleProperties",{element:n,moddleElement:i,properties:{target:e}})},debounce:a})}function mS(e){const{idPrefix:t,element:n,parameter:i}=e,r=Bw("commandStack"),o=Bw("translate"),a=Bw("debounceInput");return jx({element:i,id:t+"-source",label:o("Variable assignment value"),feel:"required",getValue:e=>e.source,setValue:e=>{r.execute("element.updateModdleProperties",{element:n,moddleElement:i,properties:{source:e}})},debounce:a})}function fS(e,t){const n=yS(e);return n&&n.get(t)||[]}function yS(e){return(function(e,t,n){const i=RO(e,t);return n?(i[0]||{})[n]||[]:i}(Er(e),"zeebe:IoMapping")||[])[0]}function gS(e){return fS.apply(this,[e,"outputParameters"])}function vS(e,t,n){return OP("zeebe:IoMapping",e,t,n)}function bS({element:e,injector:t}){if(!function(e){return _r(e,["bpmn:UserTask","bpmn:SubProcess","bpmn:CallActivity","bpmn:BusinessRuleTask"])||sS(e)}(e))return null;const n=function(e){return fS.apply(this,[e,"inputParameters"])}(e)||[],i=t.get("bpmnFactory"),r=t.get("commandStack");return{items:n.map(((t,n)=>{const i=e.id+"-input-"+n;return{id:i,label:t.get("target")||"",entries:dS({idPrefix:i,element:e,parameter:t}),autoFocusEntry:i+"-target",remove:xS({commandStack:r,element:e,parameter:t})}})),add:wS({element:e,bpmnFactory:i,commandStack:r})}}function xS({commandStack:e,element:t,parameter:n}){return function(i){i.stopPropagation();const r=[],o=yS(t);if(!o)return;const a=E(o.get("inputParameters"),n);r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{inputParameters:a}}});const s=Er(t).get("extensionElements"),p=E(s.get("values"),o);a.length||o.get("outputParameters").length||r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:p}}}),e.execute("properties-panel.multi-command-executor",r)}}function wS({element:e,bpmnFactory:t,commandStack:n}){return function(i){i.stopPropagation();const r=[],o=Er(e);let a=o.get("extensionElements");a||(a=OP("bpmn:ExtensionElements",{values:[]},o,t),r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:o,properties:{extensionElements:a}}}));let s=yS(e);s||(s=vS({inputParameters:[],outputParameters:[]},a,t),r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:a,properties:{values:[...a.get("values"),s]}}}));const p=OP("zeebe:Input",{source:"= source",target:SP("InputVariable_")},s,t);r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:s,properties:{inputParameters:[...s.get("inputParameters"),p]}}}),n.execute("properties-panel.multi-command-executor",r)}}function _S(e){const{element:t}=e,n=rP(t),i=[];return n&&i.push({id:"messageName",component:ES,isEdited:Bx}),n&&function(e){if(wr(e,"bpmn:ReceiveTask"))return!0;if(!wr(e,"bpmn:StartEvent"))return!0;if(wr(e,"bpmn:StartEvent")&&Ir(e.parent))return!0;return!1}(t)&&i.push({id:"messageSubscriptionCorrelationKey",component:PS,isEdited:Bx}),i}function ES(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("translate"),r=Bw("debounceInput"),o=rP(t);return jx({element:t,id:"messageName",label:i("Name"),feel:"optional",getValue:()=>o.get("name"),setValue:e=>n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{name:e}}),debounce:r})}function PS(e){const{element:t}=e,n=Bw("bpmnFactory"),i=Bw("commandStack"),r=Bw("translate"),o=Bw("debounceInput"),a=Er(t),s=OS(a),p=Yx(Wx(s,a),"correlationKey"),l=Nw(a,(e=>{const{error:t={}}=e;return Xx(e.path,p)||"extensionElementRequired"===t.type&&"zeebe:Subscription"===t.requiredExtensionElement}));return jx({element:t,id:"messageSubscriptionCorrelationKey",label:r("Subscription correlation key"),feel:"required",getValue:()=>function(e){const t=OS(e);return t?t.get("correlationKey"):""}(t),setValue:e=>{const r=[],o=rP(t);let a=o.get("extensionElements");a||(a=OP("bpmn:ExtensionElements",{values:[]},o,n),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=OS(t);s||(s=OP("zeebe:Subscription",{},a,n),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{correlationKey:e}}}),i.execute("properties-panel.multi-command-executor",r)},debounce:o,show:l})}function OS(e){return function(e){return RO(e,"zeebe:Subscription")}(rP(e))[0]}function SS(e){const{element:t}=e;return function(e){return!!RS(e)}(t)?[{id:"multiInstance-inputCollection",component:kS,isEdited:Bx},{id:"multiInstance-inputElement",component:CS,isEdited:Bx},{id:"multiInstance-outputCollection",component:MS,isEdited:Bx},{id:"multiInstance-outputElement",component:TS,isEdited:Bx},{id:"multiInstance-completionCondition",component:AS,isEdited:Bx}]:[]}function kS(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("bpmnFactory"),r=Bw("translate"),o=Bw("debounceInput"),a=Er(t),s=zS(RS(t)),p=Yx(Wx(s,a),"inputCollection"),l=Nw(a,(e=>{const{error:t={}}=e,{requiredExtensionElement:n,type:i}=t;return Xx(e.path,p)||"extensionElementRequired"===i&&"zeebe:LoopCharacteristics"===n}));return jx({element:t,id:"multiInstance-inputCollection",label:r("Input collection"),feel:"required",getValue:()=>jS(t,"inputCollection"),setValue:e=>BS(t,"inputCollection",e,n,i),debounce:o,show:l})}function CS(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("bpmnFactory"),r=Bw("translate"),o=Bw("debounceInput");return jx({element:t,id:"multiInstance-inputElement",label:r("Input element"),getValue:()=>jS(t,"inputElement"),setValue:e=>BS(t,"inputElement",e,n,i),debounce:o})}function MS(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("bpmnFactory"),r=Bw("translate"),o=Bw("debounceInput"),a=Er(t),s=zS(RS(t)),p=Nw(a,Yx(Wx(s,a),"outputCollection"));return jx({element:t,id:"multiInstance-outputCollection",label:r("Output collection"),getValue:()=>jS(t,"outputCollection"),setValue:e=>BS(t,"outputCollection",e,n,i),debounce:o,show:p})}function TS(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("bpmnFactory"),r=Bw("translate"),o=Bw("debounceInput"),a=Er(t),s=zS(RS(t)),p=Nw(a,Yx(Wx(s,a),"outputElement"));return jx({element:t,id:"multiInstance-outputElement",label:r("Output element"),feel:"required",getValue:()=>jS(t,"outputElement"),setValue:e=>BS(t,"outputElement",e,n,i),debounce:o,show:p})}function AS(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("bpmnFactory"),r=Bw("translate"),o=Bw("debounceInput");return jx({element:t,id:"multiInstance-completionCondition",label:r("Completion condition"),feel:"required",getValue:()=>{const e=function(e){return RS(e).get("completionCondition")}(t);return e&&e.get("body")},setValue:e=>{if(e&&""!==e){const r=OP("bpmn:FormalExpression",{body:e},RS(t),i);DS(t,n,r)}else DS(t,n,void 0)},debounce:o})}function RS(e){return Er(e).get("loopCharacteristics")}function zS(e){const t=RO(e,"zeebe:LoopCharacteristics");return t&&t[0]}function DS(e,t,n){t.execute("element.updateModdleProperties",{element:e,moddleElement:RS(e),properties:{completionCondition:n}})}function jS(e,t){const n=zS(RS(e));return n&&n.get(t)}function BS(e,t,n,i,r){const o=RS(e),a=[];let s=o.get("extensionElements");s||(s=OP("bpmn:ExtensionElements",{values:[]},o,r),a.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:o,properties:{extensionElements:s}}}));let p=zS(o);p||(p=OP("zeebe:LoopCharacteristics",{},s,r),a.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:s,properties:{values:[...s.get("values"),p]}}})),a.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:p,properties:{[t]:n}}}),i.execute("properties-panel.multi-command-executor",a)}function NS(e){return function(e){const t=Er(e);return RO(t,"zeebe:CalledElement")}(e)[0]}function LS(e){const{element:t}=e;return wr(t,"bpmn:CallActivity")?[{id:"propagateAllChildVariables",component:IS,isEdited:Ix}]:[]}function IS(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("bpmnFactory"),r=Bw("translate"),o=function(e){if(!wr(e,"bpmn:CallActivity"))return;const t=NS(Er(e));return t&&v(t,"propagateAllChildVariables")?t.get("propagateAllChildVariables"):function(e){const t=gS(e);if(t)return!(t.length>0)}(e)}(t);return function(e){const{element:t,id:n,description:i,label:r,switcherLabel:o,getValue:a,setValue:s}=e;return Ib("div",{class:"bio-properties-panel-entry bio-properties-panel-toggle-switch-entry","data-entry-id":n,children:[Ib(Lx,{id:n,label:r,value:a(t),onInput:s,switcherLabel:o}),Ib(gx,{forId:n,element:t,value:i})]})}({id:"propagateAllChildVariables",label:r("Propagate all child process variables"),switcherLabel:r(o?"On":"Off"),description:r(o?"All variables from the child process instance will be propagated to the parent process instance":"Only variables defined via output mappings will be propagated from the child to the parent process instance"),getValue:()=>o,setValue:e=>{const r=[],o=Er(t);let a=o.get("extensionElements");a||(a=OP("bpmn:ExtensionElements",{values:[]},o,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=NS(o);s||(s=OP("zeebe:CalledElement",{},a,i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{propagateAllChildVariables:e}}}),n.execute("properties-panel.multi-command-executor",r)}})}function $S({element:e,injector:t}){if(!function(e){return _r(e,["zeebe:ZeebeServiceTask","bpmn:UserTask","bpmn:SubProcess","bpmn:ReceiveTask","bpmn:CallActivity","bpmn:Event","bpmn:BusinessRuleTask"])}(e))return null;const n=gS(e)||[],i=t.get("bpmnFactory"),r=t.get("commandStack");return{items:n.map(((t,n)=>{const i=e.id+"-output-"+n;return{id:i,label:t.get("target")||"",entries:dS({idPrefix:i,element:e,parameter:t}),autoFocusEntry:i+"-target",remove:FS({commandStack:r,element:e,parameter:t})}})),add:VS({element:e,bpmnFactory:i,commandStack:r})}}function FS({commandStack:e,element:t,parameter:n}){return function(i){i.stopPropagation();let r=[];const o=yS(t);if(!o)return;const a=E(o.get("outputParameters"),n);if(r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{outputParameters:a}}}),!o.get("inputParameters").length&&!a.length){const e=Er(t).get("extensionElements"),n=E(e.get("values"),o);r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:e,properties:{values:n}}})}e.execute("properties-panel.multi-command-executor",r)}}function VS({element:e,bpmnFactory:t,commandStack:n}){return function(i){i.stopPropagation();let r=[];const o=Er(e);let a=o.get("extensionElements");a||(a=OP("bpmn:ExtensionElements",{values:[]},o,t),r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:o,properties:{extensionElements:a}}}));let s=yS(e);if(!s){s=vS({inputParameters:[],outputParameters:[]},a,t),r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:a,properties:{values:[...a.get("values"),s]}}})}const p=OP("zeebe:Output",{source:"= source",target:SP("OutputVariable_")},s,t);r.push({cmd:"element.updateModdleProperties",context:{element:e,moddleElement:s,properties:{outputParameters:[...s.get("outputParameters"),p]}}}),n.execute("properties-panel.multi-command-executor",r)}}function HS(e){const{element:t}=e;return wr(t,"bpmn:CallActivity")?[{id:"targetProcessId",component:qS,isEdited:Bx}]:[]}function qS(e){const{element:t,id:n}=e,i=Bw("commandStack"),r=Bw("bpmnFactory"),o=Bw("translate"),a=Bw("debounceInput"),s=Er(t),p=NS(t),l=Yx(Wx(p,s),"processId"),c=Nw(s,(e=>{const{error:t={}}=e,{type:n,requiredExtensionElement:i}=t;return Xx(e.path,l)||"extensionElementRequired"===n&&"zeebe:CalledElement"===i}));return jx({element:t,id:n,label:o("Process ID"),feel:"optional",getValue:()=>function(e){const t=NS(e);return t?t.get("processId"):""}(t),setValue:e=>{const n=[],o=Er(t);let a=o.get("extensionElements");a||(a=OP("bpmn:ExtensionElements",{values:[]},o,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=NS(o);s||(s=OP("zeebe:CalledElement",{},a,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{processId:e}}}),i.execute("properties-panel.multi-command-executor",n)},debounce:a,show:c})}function US(e){const{element:t}=e;return sS(t)?[{id:"taskDefinitionType",component:GS,isEdited:Bx},{id:"taskDefinitionRetries",component:WS,isEdited:Bx}]:[]}function GS(e){const{element:t,id:n}=e,i=Bw("commandStack"),r=Bw("bpmnFactory"),o=Bw("translate"),a=Bw("debounceInput"),s=Er(t),p=KS(s),l=Yx(Wx(p,s),"type"),c=Nw(s,(e=>{const{error:t={}}=e,{type:n,requiredExtensionElement:i}=t;return Xx(e.path,l)||"extensionElementRequired"===n&&"zeebe:TaskDefinition"===i}));return jx({element:t,id:n,label:o("Type"),feel:"optional",getValue:()=>(KS(t)||{}).type,setValue:e=>{const n=[],o=Er(t);let a=o.get("extensionElements");a||(a=OP("bpmn:ExtensionElements",{values:[]},o,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=KS(t);s||(s=OP("zeebe:TaskDefinition",{},a,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{type:e}}}),i.execute("properties-panel.multi-command-executor",n)},debounce:a,show:c})}function WS(e){const{element:t,id:n}=e,i=Bw("commandStack"),r=Bw("bpmnFactory"),o=Bw("translate"),a=Bw("debounceInput"),s=Er(t),p=KS(s),l=Nw(s,Yx(Wx(p,s),"retries"));return jx({element:t,id:n,label:o("Retries"),feel:"optional",getValue:()=>(KS(t)||{}).retries,setValue:e=>{let n=[];const o=Er(t);let a=o.get("extensionElements");a||(a=OP("bpmn:ExtensionElements",{values:[]},o,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{extensionElements:a}}}));let s=KS(t);s||(s=OP("zeebe:TaskDefinition",{},a,r),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:{values:[...a.get("values"),s]}}})),n.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{retries:e}}}),i.execute("properties-panel.multi-command-executor",n)},debounce:a,show:l})}function KS(e){return RO(Er(e),"zeebe:TaskDefinition")[0]}function YS(e){const{element:t}=e,n=QE(eP(Er(t)));if(!JE(t))return[];const i=[];return!QS("timeCycle",t)&&!QS("timeDate",t)?i.push({id:"timerEventDefinitionDurationValue",component:JS,isEdited:Bx}):(i.push({id:"timerEventDefinitionType",component:XS,isEdited:Sx}),n&&i.push({id:"timerEventDefinitionValue",component:ZS,isEdited:Bx})),i}function XS(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("bpmnFactory"),r=Bw("translate"),o=eP(Er(t)),a=QE(o);return Ox({element:t,id:"timerEventDefinitionType",label:r("Type"),getValue:()=>a||"",setValue:e=>{if(e===a)return;const r=i.create("bpmn:FormalExpression",{body:void 0});r.$parent=o;const s={timeDuration:void 0,timeDate:void 0,timeCycle:void 0};s[e]=r,n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:s})},getOptions:e=>{const t=[{value:"",label:r("<none>")}];return QS("timeDate",e)&&t.push({value:"timeDate",label:r("Date")}),QS("timeDuration",e)&&t.push({value:"timeDuration",label:r("Duration")}),QS("timeCycle",e)&&t.push({value:"timeCycle",label:r("Cycle")}),t}})}function ZS(e){const{element:t}=e,n=Bw("commandStack"),i=Bw("translate"),r=Bw("debounceInput"),o=eP(Er(t)),a=QE(o),s=o.get(a);return jx({element:t,id:"timerEventDefinitionValue",label:i("Value"),feel:"optional",getValue:()=>s&&s.get("body"),setValue:e=>{n.execute("element.updateModdleProperties",{element:t,moddleElement:s,properties:{body:e}})},debounce:r,description:ek(a,i)})}function JS(e){const{element:t}=e,n=Bw("bpmnFactory"),i=Bw("commandStack"),r=Bw("translate"),o=Bw("debounceInput"),a=eP(Er(t));let s=a.get("timeDuration");return jx({element:t,id:"timerEventDefinitionDurationValue",label:r("Timer duration"),feel:"optional",getValue:()=>s&&s.get("body"),setValue:e=>{const r=[];if(!s){s=n.create("bpmn:FormalExpression",{body:void 0}),s.$parent=a;const e={timeDuration:s,timeDate:void 0,timeCycle:void 0};r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:a,properties:e}})}r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{body:e}}}),i.execute("properties-panel.multi-command-executor",r)},debounce:o,description:ek("timeDuration",r)})}function QS(e,t){const n=Er(t);switch(e){case"timeDate":return!!wr(t,"bpmn:StartEvent");case"timeCycle":return!!wr(t,"bpmn:StartEvent")||!(!wr(t,"bpmn:BoundaryEvent")||n.cancelActivity);case"timeDuration":return!!wr(t,"bpmn:IntermediateCatchEvent")||!(!wr(t,"bpmn:BoundaryEvent")||n.cancelActivity);default:return}}function ek(e,t){switch(e){case"timeDate":return Ib("div",{children:[Ib("p",{children:t("A specific point in time defined as ISO 8601 combined date and time representation.")}),Ib("ul",{children:[Ib("li",{children:[Ib("code",{children:"2019-10-01T12:00:00Z"})," - ",t("UTC time")]}),Ib("li",{children:[Ib("code",{children:"2019-10-02T08:09:40+02:00"})," - ",t("UTC plus 2 hours zone offset")]})]}),Ib("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-date",target:"_blank",rel:"noopener",title:t("Timer documentation"),children:t("How to configure a timer")})]});case"timeCycle":return Ib("div",{children:[Ib("p",{children:t("A cycle defined as ISO 8601 repeating intervals format.")}),Ib("ul",{children:[Ib("li",{children:[Ib("code",{children:"R5/PT10S"})," - ",t("every 10 seconds, up to 5 times")]}),Ib("li",{children:[Ib("code",{children:"R/P1D"})," - ",t("every day, infinitely")]})]}),Ib("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-cycle",target:"_blank",rel:"noopener",title:t("Timer documentation"),children:t("How to configure a timer")})]});case"timeDuration":return Ib("div",{children:[Ib("p",{children:t("A time duration defined as ISO 8601 durations format.")}),Ib("ul",{children:[Ib("li",{children:[Ib("code",{children:"PT15S"})," - ",t("15 seconds")]}),Ib("li",{children:[Ib("code",{children:"PT1H30M"})," - ",t("1 hour and 30 minutes")]}),Ib("li",{children:[Ib("code",{children:"P14D"})," - ",t("14 days")]})]}),Ib("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/timer-events/timer-events#time-duration",target:"_blank",rel:"noopener",title:t("Timer documentation"),children:t("How to configure a timer")})]})}}nS.$inject=["bpmnFactory","commandStack"];const tk=[function(e){const t={id:"businessRuleImplementation",label:"Implementation",entries:[...$O({element:e})],component:tx};return t.entries.length?t:null},function(e){const t={id:"calledDecision",label:"Called decision",entries:[...qO({element:e})],component:tx};return t.entries.length?t:null},function(e){const t={id:"taskDefinition",label:"Task definition",entries:[...US({element:e})],component:tx};return t.entries.length?t:null},function(e){const t={id:"assignmentDefinition",label:"Assignment",entries:[...DO({element:e})],component:tx};return t.entries.length?t:null},function(e,t){const n={id:"form",label:"Form",entries:[...ZO({element:e,injector:t})],component:tx};return n.entries.length?n:null},function(e){const t={id:"condition",label:"Condition",entries:[...KO({element:e})],component:tx};return t.entries.length?t:null},function(e){const t={id:"calledElement",label:"Called element",entries:[...HS({element:e})],component:tx};return t.entries.length?t:null},function(e,t){const n={id:"inputs",label:"Inputs",component:hx,...bS({element:e,injector:t})};return n.items?n:null},function(e){const t={id:"outputPropagation",label:"Output propagation",entries:[...LS({element:e})],component:tx};return t.entries.length?t:null},function(e,t){const n={id:"outputs",label:"Outputs",component:hx,...$S({element:e,injector:t})};return n.items?n:null},function(e,t){const n={id:"headers",label:"Headers",component:hx,...lS({element:e,injector:t})};return n.items?n:null}];class nk{constructor(e,t){e.registerProvider(500,this),this._injector=t}getGroups(e){return t=>(function(e,t){const n=ik(e,"message");if(!n)return;n.entries=(i=n.entries,r=_S({element:t}),[...i.filter((e=>!r.find((t=>t.id===e.id)))),...r]);var i,r}(t=t.concat(this._getGroups(e)),e),function(e,t){const n=ik(e,"timer");if(!n)return;n.entries=[...YS({element:t})]}(t,e),function(e,t){const n=ik(e,"multiInstance");if(!n)return;n.entries=[...SS({element:t})]}(t,e),t=function(e,t){const n=ik(e,"message");(function(e){return wr(e,"bpmn:EndEvent")&&!!iP(e)}(t)||function(e){return wr(e,"bpmn:IntermediateThrowEvent")&&!!iP(e)}(t))&&(e=e.filter((e=>e!=n)));return e}(t,e))}_getGroups(e){return tk.map((t=>t(e,this._injector))).filter((e=>null!==e))}}function ik(e,t){return e.find((e=>e.id===t))}nk.$inject=["propertiesPanel","injector"];var rk={__init__:["zeebePropertiesProvider"],zeebePropertiesProvider:["type",nk]};function ok(e){const t=Er(e);if(t)return t.get("zeebe:modelerTemplate")}function ak(e,t){const n=Er(e);let i;return i=wr(n,"bpmn:ExtensionElements")?n:n.get("extensionElements"),i?i.get("values").find((e=>wr(e,t))):null}function sk(e,t){return e.get("inputParameters").find((e=>e.target===t.name))}function pk(e,t){return e.get("outputParameters").find((e=>e.source===t.source))}function lk(e,t){return e.get("values").find((e=>e.key===t.key))}function ck(e){const t=Er(e);if(t)return t.get("camunda:modelerTemplate")}class uk{constructor(e){this._commandStack=e,this._templates={}}get(e,t){const n=this._templates;let i;return l(e)?null:y(e)?(l(t)&&(t="_"),n[e]&&n[e][t]?n[e][t]:null):(i=e,this.get(this._getTemplateId(i),this._getTemplateVersion(i)))}getDefault(e){return b(this.getAll(),(function(t){return _r(e,t.appliesTo)&&t.isDefault}))||null}getAll(e){return!l(e)&&this._templates[e]?T(this._templates[e]):a(T(this._templates).map(T))}set(e){this._templates={},e.forEach((e=>{const t=e.id,n=l(e.version)?"_":e.version;this._templates[t]||(this._templates[t]={}),this._templates[t][n]=e}))}_getTemplateId(e){return ck(e)}_getTemplateVersion(e){return function(e){const t=Er(e);if(t)return t.get("camunda:modelerTemplateVersion")}(e)}applyTemplate(e,t){const n=this.get(e);return this._commandStack.execute("propertiesPanel.camunda.changeTemplate",{element:e,newTemplate:t,oldTemplate:n}),e}}uk.$inject=["commandStack"];class dk extends uk{constructor(e,t){super(t),this._commandStack=t,this._templateElementFactory=e}_getTemplateId(e){return ok(e)}_getTemplateVersion(e){return function(e){const t=Er(e);if(t)return t.get("zeebe:modelerTemplateVersion")}(e)}createElement(e){if(!e)throw new Error("template is missing");return this._templateElementFactory.create(e)}applyTemplate(e,t){const n=this.get(e);return this._commandStack.execute("propertiesPanel.zeebe.changeTemplate",{element:e,newTemplate:t,oldTemplate:n}),e}}dk.$inject=["templateElementFactory","commandStack"];const hk="0.8.0";class mk{constructor(){this._templatesById={},this._validTemplates=[],this._errors=[]}addAll(e){return d(e)?e.forEach(this.add,this):this._logError("templates must be []"),this}add(e){let t,n;return this._validateTemplate(e)||(t=e.id,n=e.version||"_",this._templatesById[t]||(this._templatesById[t]={}),this._templatesById[t][n]=e,this._validTemplates.push(e)),this}_validateTemplate(e){let t;const n=e.id,i=e.version||"_",r=e.$schema&&fk(e.$schema);if(r&&Qx(hk,r)<0)return this._logError(`unsupported element template schema version <${r}>. Your installation only supports up to version <0.8.0>. Please update your installation`,e);if(this._templatesById[n]&&this._templatesById[n][i])return"_"===i?this._logError(`template id <${n}> already used`,e):this._logError(`template id <${n}> and version <${i}> already used`,e);const o=Pw(e,tw);const{errors:a,valid:s}=o;return s||(t=new Error("invalid template"),yk(a).forEach((t=>{this._logError(t.message,e)}))),t}_logError(e,t){if(y(e)){if(t){const{id:n,name:i}=t;e=`template(id: <${n}>, name: <${i}>): ${e}`}e=new Error(e)}return this._errors.push(e),e}getErrors(){return this._errors}getValidTemplates(){return this._validTemplates}}function fk(e){const t=e.match(/\d+\.\d+\.\d+/g);return null===t?void 0:t[0]}function yk(e){return w(e,(e=>{const{dataPath:t,keyword:n}=e;return"errorMessage"===n||!("type"!==n||!t||t.startsWith("/scopes/"))}))}const gk="0.2.0";class vk extends mk{constructor(){super()}_validateTemplate(e){let t;const n=e.id,i=e.version||"_",r=e.$schema,o=r&&fk(r);if(!r)return this._logError("missing $schema attribute.",e);if(!this.isSchemaValid(r))return this._logError(`unsupported $schema attribute <${r}>.`,e);if(o&&Qx(gk,o)<0)return this._logError(`unsupported element template schema version <${o}>. Your installation only supports up to version <0.2.0>. Please update your installation`,e);if(this._templatesById[n]&&this._templatesById[n][i])return"_"===i?this._logError(`template id <${n}> already used`,e):this._logError(`template id <${n}> and version <${i}> already used`,e);const a=Pw(e,Sw);const{errors:s,valid:p}=a;return p||(t=new Error("invalid template"),yk(s).forEach((t=>{this._logError(t.message,e)}))),t}isSchemaValid(e){return e&&e.includes("@camunda/zeebe-element-templates-json-schema")}}class bk{constructor(e,t,n){this._loadTemplates=e,this._eventBus=t,this._elementTemplates=n,t.on("diagram.init",(()=>{this.reload()}))}reload(){const e=this._loadTemplates;if(!l(e))return f(e)?e(((e,t)=>{if(e)return this.templateErrors([e]);this.setTemplates(t)})):e.length?this.setTemplates(e):void 0}setTemplates(e){const t=this._elementTemplates,n=(new mk).addAll(e),i=n.getErrors(),r=n.getValidTemplates();t.set(r),i.length&&this.templateErrors(i),this.templatesChanged()}templatesChanged(){this._eventBus.fire("elementTemplates.changed")}templateErrors(e){this._eventBus.fire("elementTemplates.errors",{errors:e})}}bk.$inject=["config.elementTemplates","eventBus","elementTemplates"];class xk extends bk{constructor(e,t,n){super(e,t,n),this._elementTemplates=n}setTemplates(e){const t=this._elementTemplates,n=(new vk).addAll(e),i=n.getErrors(),r=n.getValidTemplates();t.set(r),i.length&&this.templateErrors(i),this.templatesChanged()}}function wk(e,t){t.get("modeling").updateProperties(e,{"camunda:modelerTemplate":null,"camunda:modelerTemplateVersion":null})}function _k(e,t){const n=t.get("replace"),i=t.get("selection"),r=Er(e),o=r.$type,a=function(e){if(!e.eventDefinitions)return null;var t=e.eventDefinitions[0];if(!t)return null;return t.$type}(r),s=n.replaceElement(e,{type:o,eventDefinitionType:a});i.select(s)}function Ek(e,t,n){return n.get("elementTemplates").applyTemplate(e,t)}function Pk(e){var t=e.metadata,n=e.version;if(t){if(!l(t.created))return Ok(t.created);if(!l(t.updated))return Ok(t.updated)}return l(n)?null:n}function Ok(e){var t=new Date(e),n=t.getFullYear(),i=Sk(String(t.getMonth()+1),2,"0");return Sk(String(t.getDate()),2,"0")+"."+i+"."+n}function Sk(e,t,n){for(;e.length<t;)e=n+e;return e}function kk(e,t){t.get("modeling").updateProperties(e,{"zeebe:modelerTemplate":null,"zeebe:modelerTemplateVersion":null})}function Ck(e,t,n){return n.get("elementTemplates").applyTemplate(e,t)}xk.$inject=["config.elementTemplates","eventBus","elementTemplates"];class Mk extends Dw{constructor(e,t){super(t.get("eventBus")),this.postExecuted("shape.replace",(function(n){var i=n.context,r=Er(i.oldShape),o=i.newShape,a=Er(o);if(!r.modelerTemplate)return;const s=a.modelerTemplate,p=a.modelerTemplateVersion,l=e.get(s,p);if(!l)return void kk(o,t);const{appliesTo:c}=l;c.reduce(((e,t)=>e||wr(a,t)),!1)||kk(o,t)}))}}function Tk(e,t,n){const{name:i}=e;return n.create("zeebe:Input",{source:t,target:i})}function Ak(e,t,n){const{source:i}=e;return n.create("zeebe:Output",{source:i,target:t})}function Rk(e,t,n){const{key:i}=e;return n.create("zeebe:Header",{key:i,value:t})}function zk(e,t){return t.create("zeebe:TaskDefinition",{type:e})}function Dk(e,t){const{optional:n}=t;return e||!n}function jk(e,t,n){const i=Er(e).get("extensionElements");let r=ak(i,t);return r||(r=n.create(t),r.$parent=i,i.get("values").push(r)),r}Mk.$inject=["elementTemplates","injector"];class Bk{constructor(e,t,n){this._bpmnFactory=e,this._commandStack=t,this._modeling=n}preExecute(e){const t=e.element,n=e.newTemplate,i=e.oldTemplate;this._updateZeebeModelerTemplate(t,n),n&&(this._updateProperties(t,i,n),this._updateZeebeTaskDefinition(t,i,n),this._updateZeebeInputOutputParameterProperties(t,i,n),this._updateZeebeTaskHeaderProperties(t,i,n))}_getOrCreateExtensionElements(e){const t=this._bpmnFactory,n=this._modeling,i=Er(e);let r=i.get("extensionElements");return r||(r=t.create("bpmn:ExtensionElements",{values:[]}),r.$parent=i,n.updateProperties(e,{extensionElements:r})),r}_updateZeebeModelerTemplate(e,t){this._modeling.updateProperties(e,{"zeebe:modelerTemplate":t&&t.id,"zeebe:modelerTemplateVersion":t&&t.version})}_updateProperties(e,t,n){const i=this._commandStack,r=n.properties.filter((e=>"property"===e.binding.type));if(!r.length)return;const o=Er(e);r.forEach((n=>{const r=Lk(t,n),a=n.binding.name,s=n.value;let p={};r&&Ik(o,r)||(p[a]=s,i.execute("element.updateModdleProperties",{element:e,moddleElement:o,properties:p}))}))}_updateZeebeTaskDefinition(e,t,n){const i=this._bpmnFactory,r=this._commandStack,o=n.properties.filter((e=>"zeebe:taskDefinition:type"===e.binding.type));if(!o.length)return;const a=this._getOrCreateExtensionElements(e);o.forEach((n=>{const o=Lk(t,n),s=o&&o.binding,p=s&&s.type,l=o&&Nk(a,o),c=n.value,u=n.binding.type;if(o&&l){if(!Ik(l,o)){let t={};"zeebe:taskDefinition:type"===p&&(t={type:c}),r.execute("element.updateModdleProperties",{element:e,moddleElement:l,properties:t})}}else{let t;"zeebe:taskDefinition:type"===u&&(t=zk(c,i)),r.execute("element.updateModdleProperties",{element:e,moddleElement:a,properties:{values:[...a.get("values"),t]}})}}))}_updateZeebeInputOutputParameterProperties(e,t,n){const i=this._bpmnFactory,r=this._commandStack,o=n.properties.filter((e=>{const t=e.binding.type;return"zeebe:input"===t||"zeebe:output"===t}));if(!o.length)return;const a=this._getOrCreateExtensionElements(e);let s=ak(a,"zeebe:IoMapping");s||(s=i.create("zeebe:IoMapping"),r.execute("element.updateModdleProperties",{element:e,moddleElement:a,properties:{values:[...a.get("values"),s]}}));const p=s.get("zeebe:inputParameters")?s.get("zeebe:inputParameters").slice():[],l=s.get("zeebe:outputParameters")?s.get("zeebe:outputParameters").slice():[];let c;o.forEach((n=>{const o=Lk(t,n),u=o&&Nk(a,o),d=n.value,h=n.binding,m=h.type;let f,y;o&&u?((Dk(d,n)||Ik(u,o))&&(wr(u,"zeebe:Input")?$k(p,u):$k(l,u)),Ik(u,o)||(y=wr(u,"zeebe:Input")?{source:d}:{target:d},r.execute("element.updateModdleProperties",{element:e,moddleElement:u,properties:y}))):Dk(d,n)&&("zeebe:input"===m?(c="inputParameters",f=Tk(h,d,i)):(c="outputParameters",f=Ak(h,d,i)),r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{[c]:[...s.get(c),f]}}))})),p.length&&r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{inputParameters:E(s.get("inputParameters"),(e=>p.includes(e)))}}),l.length&&r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{outputParameters:E(s.get("outputParameters"),(e=>l.includes(e)))}})}_updateZeebeTaskHeaderProperties(e,t,n){const i=this._bpmnFactory,r=this._commandStack,o=n.properties.filter((e=>"zeebe:taskHeader"===e.binding.type));if(!o.length)return;const a=this._getOrCreateExtensionElements(e);let s=ak(a,"zeebe:TaskHeaders");s||(s=i.create("zeebe:TaskHeaders"),r.execute("element.updateModdleProperties",{element:e,moddleElement:a,properties:{values:[...a.get("values"),s]}}));const p=s.get("zeebe:values")?s.get("zeebe:values").slice():[];o.forEach((n=>{const o=Lk(t,n),l=o&&Nk(a,o),c=n.value,u=n.binding;if(o&&l){if(!Ik(l,o)){const t={value:c};r.execute("element.updateModdleProperties",{element:e,moddleElement:l,properties:t})}$k(p,l)}else{const t=Rk(u,c,i);r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{values:[...s.get("values"),t]}})}})),p.length&&r.execute("element.updateModdleProperties",{element:e,moddleElement:s,properties:{values:E(s.get("values"),(e=>p.includes(e)))}})}}function Nk(e,t){let n=Er(e);const i=t.binding,r=i.type;if("zeebe:taskDefinition:type"===r)return ak(n,"zeebe:TaskDefinition");if("zeebe:input"===r||"zeebe:output"===r){if(n=ak(n,"zeebe:IoMapping"),!n)return;return"zeebe:input"===r?b(n.get("zeebe:inputParameters"),(function(e){return e.get("zeebe:target")===i.name})):b(n.get("zeebe:outputParameters"),(function(e){return e.get("zeebe:source")===i.source}))}if("zeebe:taskHeader"===r){if(n=ak(n,"zeebe:TaskHeaders"),!n)return;return b(n.get("zeebe:values"),(function(e){return e.get("zeebe:key")===i.key}))}}function Lk(e,t){if(!e)return;const n=e.properties,i=t.binding,r=i.name,o=i.type;return"property"===o?b(n,(function(e){const t=e.binding,n=t.name;return"property"===t.type&&n===r})):"zeebe:taskDefinition:type"===o?b(n,(function(e){return"zeebe:taskDefinition:type"===e.binding.type})):"zeebe:input"===o?b(n,(function(e){const t=e.binding,n=t.name;if("zeebe:input"===t.type)return n===r})):"zeebe:output"===o?b(n,(function(e){const t=e.binding;if("zeebe:output"===t.type)return t.source===i.source})):"zeebe:taskHeader"===o?b(n,(function(e){const t=e.binding;if("zeebe:taskHeader"===t.type)return t.key===i.key})):void 0}function Ik(e,t){const n=Er(e),i=t.binding,r=i.name,o=i.type,a=t.value;return"property"===o?n.get(r)!==a:"zeebe:taskDefinition:type"===o?n.get("zeebe:type")!==a:"zeebe:input"===o?n.get("zeebe:source")!==a:"zeebe:output"===o?n.get("zeebe:target")!==a:"zeebe:taskHeader"===o?n.get("zeebe:value")!==a:void 0}function $k(e,t){const n=e.indexOf(t);return l(n)||e.splice(n,1),e}function Fk(e,t,n){e.registerHandler("propertiesPanel.zeebe.changeTemplate",Bk),n.on(["commandStack.shape.create.postExecuted"],(function(n){Hk(n.context.shape,t,e)})),n.on(["commandStack.connection.create.postExecuted"],(function(n){Hk(n.context.connection,t,e)}))}Bk.$inject=["bpmnFactory","commandStack","modeling"],Fk.$inject=["commandStack","elementTemplates","eventBus"];var Vk={__init__:[Fk]};function Hk(e,t,n){if(!t.get(e)&&t.getDefault(e)){const i="propertiesPanel.zeebe.changeTemplate",r={element:e,newTemplate:t.getDefault(e)};n.execute(i,r)}}class qk{static create(e,t){const{property:n}=t,{binding:i,value:r}=n,{name:o}=i;Er(e)[o]=r}}class Uk{static create(e,t){const{property:n,bpmnFactory:i}=t,{value:r}=n,o=Er(e).get("extensionElements"),a=zk(r,i);a.$parent=o,o.get("values").push(a)}}class Gk{static create(e,t){const{property:n,bpmnFactory:i}=t,{binding:r,value:o}=n,a=jk(e,"zeebe:IoMapping",i);if(!Dk(o,n))return;const s=Tk(r,o,i);s.$parent=a,a.get("inputParameters").push(s)}}class Wk{static create(e,t){const{property:n,bpmnFactory:i}=t,{binding:r,value:o}=n,a=jk(e,"zeebe:IoMapping",i);if(!Dk(o,n))return;const s=Ak(r,o,i);s.$parent=a,a.get("outputParameters").push(s)}}class Kk{static create(e,t){const{property:n,bpmnFactory:i}=t,{binding:r,value:o}=n,a=jk(e,"zeebe:TaskHeaders",i),s=Rk(r,o,i);s.$parent=a,a.get("values").push(s)}}const Yk="property",Xk="zeebe:input",Zk="zeebe:output",Jk="zeebe:taskDefinition:type",Qk="zeebe:taskHeader",eC=[Xk,Zk,Jk,Qk],tC=[Jk],nC=[Xk,Zk];class iC{constructor(e,t){this._bpmnFactory=e,this._elementFactory=t,this._providers={[Yk]:qk,[Jk]:Uk,[Xk]:Gk,[Zk]:Wk,[Qk]:Kk}}create(e){const{appliesTo:t,properties:n}=e,i=this._elementFactory,r=this._bpmnFactory,o=this._providers,a=(s=[e],(new vk).addAll(s).getErrors());var s;if(a&&a.length)throw new Error("template is invalid");const p=t[0],l=i.createShape({type:p});return function(e){const{properties:t}=e;return b(t,(function(e){const{binding:t}=e;return eC.includes(t.type)}))}(e)&&this._ensureExtensionElements(l),this._setModelerTemplate(l,e),n.forEach((function(e){const{binding:t}=e,{type:n}=t;o[n].create(l,{property:e,bpmnFactory:r})})),l}_ensureExtensionElements(e){const t=this._bpmnFactory,n=Er(e);let i=n.get("extensionElements");return i||(i=t.create("bpmn:ExtensionElements",{values:[]}),i.$parent=n,n.set("extensionElements",i)),i}_setModelerTemplate(e,t){const{id:n,version:i}=t,r=Er(e);r.set("zeebe:modelerTemplate",n),r.set("zeebe:modelerTemplateVersion",i)}}iC.$inject=["bpmnFactory","elementFactory"];var rC={__init__:["templateElementFactory"],templateElementFactory:["type",iC]};function oC(e={}){const{getTemplateId:t=ck,unlinkTemplate:n=wk,updateTemplate:i=Ek}=e;return function(e){const{id:r,label:o,element:a,entries:s=[]}=e,[p,l]=Zb(["groups",r,"open"],!1),c=!s.length;return Ib("div",{class:"bio-properties-panel-group bio-properties-panel-templates-group","data-group-id":"group-"+r,children:[Ib("div",{class:gb("bio-properties-panel-group-header",{empty:c,open:p&&!c}),onClick:()=>!c&&l(!p),children:[Ib("div",{title:o,class:"bio-properties-panel-group-header-title",children:o}),Ib("div",{class:"bio-properties-panel-group-header-buttons",children:[Ib(sC,{element:a,getTemplateId:t,unlinkTemplate:n,updateTemplate:i}),!c&&Ib(aC,{open:p})]})]}),Ib("div",{class:gb("bio-properties-panel-group-entries",{open:p&&!c}),children:s.map((e=>{const{component:t,id:n}=e;return Ev(t,{...e,key:n,element:a})}))})]})}}function aC({open:e}){return Ib(lx,{title:"Toggle section",class:"bio-properties-panel-arrow",children:Ib($b,{class:e?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})})}function sC({element:e,getTemplateId:t,unlinkTemplate:n,updateTemplate:i}){const r=function(e,t,n){const i=n(t),r=e.get(t);if(!i)return{type:"NO_TEMPLATE"};if(!r)return{type:"UNKNOWN_TEMPLATE",templateId:i};const o=function(e,t){if(l(t.version))return null;return e.getAll().filter((function(e){return t.id===e.id&&!l(e.version)})).reduce((function(e,n){return t.version<n.version||e&&e.version<n.version?n:e}),null)}(e,r);if(o)return{type:"OUTDATED_TEMPLATE",template:r,newerTemplate:o};return{type:"KNOWN_TEMPLATE",template:r}}(Bw("elementTemplates"),e,t);return"NO_TEMPLATE"===r.type?Ib(pC,{element:e}):"KNOWN_TEMPLATE"===r.type?Ib(lC,{element:e,unlinkTemplate:n}):"UNKNOWN_TEMPLATE"===r.type?Ib(uC,{element:e,unlinkTemplate:n}):"OUTDATED_TEMPLATE"===r.type?Ib(hC,{element:e,templateState:r,unlinkTemplate:n,updateTemplate:i}):void 0}function pC({element:e}){const t=Bw("translate"),n=Bw("eventBus");return Ib(lx,{title:"Select a template",class:"bio-properties-panel-select-template-button",onClick:()=>n.fire("elementTemplates.select",{element:e}),children:[Ib(Fb,{}),Ib("span",{children:t("Select")})]})}function lC({element:e,unlinkTemplate:t}){const n=Bw("translate"),i=Bw("injector"),r=[{entry:n("Unlink"),action:()=>t(e,i)},{entry:Ib(cC,{}),action:()=>_k(e,i)}];return Ib(sx,{menuItems:r,class:"bio-properties-panel-applied-template-button",children:Ib(lx,{children:[Ib("span",{children:n("Applied")}),Ib($b,{class:"bio-properties-panel-arrow-down"})]})})}function cC(){return Ib("span",{class:"bio-properties-panel-remove-template",children:Bw("translate")("Remove")})}function uC({element:e,unlinkTemplate:t}){const n=Bw("translate"),i=Bw("injector"),r=[{entry:Ib(dC,{})},{separator:!0},{entry:n("Unlink"),action:()=>t(e,i)},{entry:Ib(cC,{}),action:()=>_k(e,i)}];return Ib(sx,{menuItems:r,class:"bio-properties-panel-template-not-found",children:Ib(lx,{children:[Ib("span",{children:n("Not found")}),Ib($b,{class:"bio-properties-panel-arrow-down"})]})})}function dC(){return Ib("div",{class:"bio-properties-panel-template-not-found-text",children:Bw("translate")("The template applied was not found. Therefore, its properties cannot be shown. Unlink to access the data.")})}function hC({element:e,templateState:t,unlinkTemplate:n,updateTemplate:i}){const{newerTemplate:r}=t,o=Bw("translate"),a=Bw("injector"),s=[{entry:Ib(mC,{newerTemplate:r})},{separator:!0},{entry:o("Update"),action:()=>i(e,r,a)},{entry:o("Unlink"),action:()=>n(e,a)},{entry:Ib(cC,{}),action:()=>_k(e,a)}];return Ib(sx,{menuItems:s,class:"bio-properties-panel-template-update-available",children:Ib(lx,{children:[Ib("span",{children:o("Update available")}),Ib($b,{class:"bio-properties-panel-arrow-down"})]})})}function mC({newerTemplate:e}){return Ib("div",{class:"bio-properties-panel-template-update-available-text",children:Bw("translate")("A new version of the template is available: {templateVersion}",{templateVersion:Pk(e)})})}function fC({element:e,elementTemplates:t}){const n=t.get(e);return n?[{id:"template-name",component:yC,template:n},{id:"template-version",component:gC,template:n},{id:"template-description",component:vC,template:n}].filter((e=>!!e.component)):[]}function yC({id:e,template:t}){return Ib(bC,{id:e,label:Bw("translate")("Name"),content:t.name})}function gC({id:e,template:t}){const n=Bw("translate"),i=Pk(t);return i?Ib(bC,{id:e,label:n("Version"),content:i}):null}function vC({id:e,template:t}){const n=Bw("translate"),{description:i}=t;return i?Ib(bC,{id:e,label:n("Description"),content:t.description}):null}function bC({id:e,label:t,content:n}){return Ib("div",{"data-entry-id":e,class:"bio-properties-panel-entry bio-properties-panel-text-entry",children:[Ib("span",{class:"bio-properties-panel-label",children:t}),Ib("span",{class:"bio-properties-panel-text-entry__content",children:n})]})}var xC,wC={};function _C(e,t,n){if(3===e.nodeType){var i="textContent"in e?e.textContent:e.nodeValue||"";if(!1!==_C.options.trim){var r=0===t||t===n.length-1;if((!(i=i.match(/^[\s\n]+$/g)&&"all"!==_C.options.trim?" ":i.replace(/(^[\s\n]+|[\s\n]+$)/g,"all"===_C.options.trim||r?"":" "))||" "===i)&&n.length>1&&r)return null}return i}if(1!==e.nodeType)return null;var o=String(e.nodeName).toLowerCase();if("script"===o&&!_C.options.allowScripts)return null;var a,s,p=_C.h(o,function(e){var t=e&&e.length;if(!t)return null;for(var n={},i=0;i<t;i++){var r=e[i],o=r.name,a=r.value;"on"===o.substring(0,2)&&_C.options.allowEvents&&(a=new Function(a)),n[o]=a}return n}(e.attributes),(s=(a=e.childNodes)&&Array.prototype.map.call(a,_C).filter(PC))&&s.length?s:null);return _C.visitor&&_C.visitor(p),p}var EC,PC=function(e){return e},OC={};function SC(e){var t=(e.type||"").toLowerCase(),n=SC.map;n&&n.hasOwnProperty(t)?(e.type=n[t],e.props=Object.keys(e.props||{}).reduce((function(t,n){var i;return t[(i=n,i.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=e.props[n],t}),{})):e.type=t.replace(/[^a-z0-9-]/i,"")}var kC=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.setReviver=function(e){EC=e},t.prototype.shouldComponentUpdate=function(e){var t=this.props;return e.wrap!==t.wrap||e.type!==t.type||e.markup!==t.markup},t.prototype.setComponents=function(e){if(this.map={},e)for(var t in e)if(e.hasOwnProperty(t)){var n=t.replace(/([A-Z]+)([A-Z][a-z0-9])|([a-z0-9]+)([A-Z])/g,"$1$3-$2$4").toLowerCase();this.map[n]=e[t]}},t.prototype.render=function(e){var t=e.wrap;void 0===t&&(t=!0);var n,i=e.type,r=e.markup,o=e.components,a=e.reviver,s=e.onError,p=e["allow-scripts"],l=e["allow-events"],c=e.trim,u=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&-1===t.indexOf(i)&&(n[i]=e[i]);return n}(e,["wrap","type","markup","components","reviver","onError","allow-scripts","allow-events","trim"]),d=a||this.reviver||this.constructor.prototype.reviver||EC||Ev;this.setComponents(o);var h={allowScripts:p,allowEvents:l,trim:c};try{n=function(e,t,n,i,r){var o=function(e,t){var n,i,r,o,a="html"===t?"text/html":"application/xml";"html"===t?(o="body",r="<!DOCTYPE html>\n<html><body>"+e+"</body></html>"):(o="xml",r='<?xml version="1.0" encoding="UTF-8"?>\n<xml>'+e+"</xml>");try{n=(new DOMParser).parseFromString(r,a)}catch(e){i=e}if(n||"html"!==t||((n=xC||(xC=function(){if(document.implementation&&document.implementation.createHTMLDocument)return document.implementation.createHTMLDocument("");var e=document.createElement("iframe");return e.style.cssText="position:absolute; left:0; top:-999em; width:1px; height:1px; overflow:hidden;",e.setAttribute("sandbox","allow-forms"),document.body.appendChild(e),e.contentWindow.document}())).open(),n.write(r),n.close()),n){var s=n.getElementsByTagName(o)[0],p=s.firstChild;return e&&!p&&(s.error="Document parse failed."),p&&"parsererror"===String(p.nodeName).toLowerCase()&&(p.removeChild(p.firstChild),p.removeChild(p.lastChild),s.error=p.textContent||p.nodeValue||i||"Unknown error",s.removeChild(p)),s}}(e,t);if(o&&o.error)throw new Error(o.error);var a=o&&o.body||o;SC.map=i||OC;var s=a&&function(e,t,n,i){return _C.visitor=t,_C.h=n,_C.options=i||wC,_C(e)}(a,SC,n,r);return SC.map=null,s&&s.props&&s.props.children||null}(r,i,d,this.map,h)}catch(e){s?s({error:e}):"undefined"!=typeof console&&console.error&&console.error("preact-markup: "+e)}if(!1===t)return n||null;var m=u.hasOwnProperty("className")?"className":"class",f=u[m];return f?f.splice?f.splice(0,0,"markup"):"string"==typeof f?u[m]+=" markup":"object"==typeof f&&(f.markup=!0):u[m]="markup",d("div",u,n||null)},t}(Sv);const CC=["h1","h2","h3","h4","h5","span","em","a","p","div","ul","ol","li","hr","blockquote","img","pre","code","br","strong"],MC=["align","alt","class","href","id","name","rel","target","src"],TC=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,AC=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g,RC=document.createElement("form");function zC(e){const t=(new DOMParser).parseFromString(`<!DOCTYPE html>\n<html><body><div>${e}`,"text/html");t.normalize();const n=t.body.firstChild;return n?(DC(n),(new XMLSerializer).serializeToString(n)):""}function DC(e){if(3===e.nodeType)return;if(1!==e.nodeType)return e.remove();const t=e.tagName.toLowerCase();if(!CC.includes(t))return e.remove();const n=e.attributes;for(let i=n.length;i--;){const r=n[i],o=r.name,a=o.toLowerCase(),s=r.value.trim();e.removeAttribute(o);jC(t,a,s)&&e.setAttribute(o,s)}"a"===t&&"_blank"===e.getAttribute("target")&&"noopener"!==e.getAttribute("rel")&&e.setAttribute("rel","noopener");for(let t=e.childNodes.length;t--;)DC(e.childNodes[t])}function jC(e,t,n){return!!MC.includes(t)&&(("id"!==t&&"name"!==t||!(n in document)&&!(n in RC))&&(("target"!==t||"_blank"===n)&&!("href"===t&&!TC.test(n.replace(AC,"")))))}function BC(e){const{description:t}=e;return t&&Ib(kC,{markup:zC(t),trim:!1})}const NC=["Boolean","Integer","String"],LC={id:"ElementTemplates__CustomProperties",label:"Custom properties"};function IC(e){const{element:t,elementTemplate:n}=e,i=[],{id:r,properties:o,groups:a}=n,s=function(e){return A(e,"group")}(o),p=[];return _(s,((e,n)=>{const o=function(e,t){return b(e,(e=>e.id===t))}(a,n);if(!o)return p.push(...e);$C(i,{element:t,id:`ElementTemplates__CustomProperties-${n}`,label:o.label,properties:e,templateId:`${r}-${n}`})})),p.length&&$C(i,{...LC,element:t,properties:p,templateId:r}),i}function $C(e,t){const{element:n,id:i,label:r,properties:o,templateId:a}=t,s={id:i,label:r,component:tx,entries:[],shouldOpen:!0};o.forEach(((e,t)=>{const n=function(e,t,n){let{type:i}=n;i||(i=function(e){const{binding:t}=e,{type:n}=t;if([Yk,Jk,Xk,Zk,Qk].includes(n))return"String"}(n));if("Boolean"===i)return{id:e,component:FC,isEdited:wx,property:n};if("Dropdown"===i)return{id:e,component:VC,isEdited:Sx,property:n};if("String"===i)return{id:e,component:HC,isEdited:Bx,property:n};if("Text"===i)return{id:e,component:qC,isEdited:Ax,property:n}}(`custom-entry-${a}-${t}`,0,e);n&&s.entries.push(n)})),s.entries.length&&e.push(s)}function FC(e){const{element:t,id:n,property:i}=e,{description:r,editable:o,label:a}=i,s=Bw("bpmnFactory"),p=Bw("commandStack");return xx({element:t,getValue:UC(t,i),id:n,label:a,description:BC({description:r}),setValue:GC(s,p,t,i),disabled:!1===o})}function VC(e){const{element:t,id:n,property:i}=e,{description:r,editable:o,label:a}=i,s=Bw("bpmnFactory"),p=Bw("commandStack");return Ox({element:t,id:n,label:a,getOptions:()=>{const{choices:e}=i;return e.map((({name:e,value:t})=>({label:e,value:t})))},description:BC({description:r}),getValue:UC(t,i),setValue:GC(s,p,t,i),disabled:!1===o})}function HC(e){const{element:t,id:n,property:i}=e,{description:r,editable:o,label:a,feel:s}=i,p=Bw("bpmnFactory"),l=Bw("commandStack"),c=Bw("debounceInput"),u=Bw("translate");return jx({debounce:c,element:t,getValue:UC(t,i),id:n,label:a,feel:s,description:BC({description:r}),setValue:GC(p,l,t,i),validate:WC(u,i),disabled:!1===o})}function qC(e){const{element:t,id:n,property:i}=e,{description:r,editable:o,label:a,feel:s}=i,p=Bw("bpmnFactory"),l=Bw("commandStack");return Tx({debounce:Bw("debounceInput"),element:t,id:n,label:a,feel:s,description:BC({description:r}),getValue:UC(t,i),setValue:GC(p,l,t,i),disabled:!1===o})}function UC(e,t){return function(){let n=Er(e);const{binding:i,optional:r,value:o=""}=t,{name:a,type:s}=i;if("property"===s){const e=n.get(a);return l(e)?o:e}if(tC.includes(s)){const e=ak(n,"zeebe:TaskDefinition");return e&&s===Jk?e.get("type"):o}if(nC.includes(s)){const e=ak(n,"zeebe:IoMapping");if(!e)return o;if(s===Xk){const t=sk(e,i);return t?t.get("source"):r?"":o}if(s===Zk){const t=pk(e,i);return t?t.get("target"):r?"":o}}if(s===Qk){const e=ak(n,"zeebe:TaskHeaders");if(!e)return o;const t=lk(e,i);return t?t.get("value"):o}throw KC(e,t)}}function GC(e,t,n,i){return function(r){let o=Er(n);const{binding:a}=i,{name:s,type:p}=a;let c,u;const d=[];if(eC.includes(p)&&(c=o.get("extensionElements"),c||(c=OP("bpmn:ExtensionElements",null,o,e),d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:o,properties:{extensionElements:c}}}))),"property"===p){const e=o.$descriptor.propertiesByName[s],{type:t}=e;if(!NC.includes(t))throw new Error(`cannot set property of type <${t}>`);"Boolean"===t?u=!!r:"Integer"===t?(u=parseInt(r,10),isNaN(u)&&(u=void 0)):u=r||"",l(u)||d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:o,properties:{[s]:u}}})}if(tC.includes(p)){const t=ak(c,"zeebe:TaskDefinition");let o;if(p!==Jk)return KC(n,i);o=zk(r,e);const a=c.get("values").filter((e=>e!==t));d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:c,properties:{values:[...a,o]}}})}if(nC.includes(p)){let t=ak(c,"zeebe:IoMapping");if(t||(t=OP("zeebe:IoMapping",null,o,e),d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:c,properties:{values:[...c.get("values"),t]}}})),p===Xk){const o=sk(t,a),s=t.get("inputParameters").filter((e=>e!==o));if(Dk(r,i)){const t=Tk(a,r,e);s.push(t)}d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:t,properties:{inputParameters:[...s]}}})}if(p===Zk){const o=pk(t,a),s=t.get("outputParameters").filter((e=>e!==o));if(Dk(r,i)){const t=Ak(a,r,e);s.push(t)}d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:t,properties:{outputParameters:[...s]}}})}}if(p===Qk){let t=ak(c,"zeebe:TaskHeaders");t||(t=OP("zeebe:TaskHeaders",null,o,e),d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:c,properties:{values:[...c.get("values"),t]}}}));const i=lk(t,a),s=Rk(a,r,e),p=t.get("values").filter((e=>e!==i));d.push({cmd:"element.updateModdleProperties",context:{element:n,moddleElement:t,properties:{values:[...p,s]}}})}if(!d.length)throw KC(n,i);t.execute("properties-panel.multi-command-executor",d)}}function WC(e,t){return function(n){const{constraints:i={}}=t,{maxLength:r,minLength:o,notEmpty:a}=i;if(a&&(!(s=n)||!s.trim().length))return e("Must not be empty.");var s;if(r&&n.length>r)return e("Must have max length {maxLength}.",{maxLength:r});if(o&&n.length<o)return e("Must have min length {minLength}.",{minLength:o});let{pattern:p}=i;if(p){let t;if(y(p)||(t=p.message,p=p.value),!function(e,t){return new RegExp(t).test(e)}(n,p))return t||e("Must match pattern {pattern}.",{pattern:p})}}}function KC(e,t){const n=Er(e).get("id"),{binding:i}=t,{type:r}=i;return new Error(`unknown binding <${r}> for element <${n}>, this should never happen`)}class YC{constructor(e,t,n){t.registerProvider(300,this),this._elementTemplates=e,this._injector=n}getGroups(e){return t=>{if(!this._shouldShowTemplateProperties(e))return t;XC("documentation",t=t.slice(),[{element:e,id:"ElementTemplates__Template",label:"Template",component:oC({getTemplateId:ok,unlinkTemplate:kk,updateTemplate:Ck}),entries:fC({element:e,elementTemplates:this._elementTemplates})}]);const n=this._elementTemplates.get(e);if(n){XC("ElementTemplates__Template",t,[].concat(IC({element:e,elementTemplate:n})))}return ok(e)&&(t=function(e,t){if(!e.entriesVisible)return t.filter((e=>"general"===e.id||e.id.startsWith("ElementTemplates__")));return t}(n||{},t)),t}}_shouldShowTemplateProperties(e){return ok(e)||this._elementTemplates.getAll().some((t=>_r(e,t.appliesTo)))}}function XC(e,t,n){const i=t.findIndex((t=>t.id===e));-1!==i?t.splice(i+1,0,...n):t.unshift(...n)}YC.$inject=["elementTemplates","propertiesPanel","injector"];var ZC={__depends__:[Vk,rC,Jx,rk],__init__:["elementTemplatesLoader","replaceBehavior","elementTemplatesPropertiesProvider"],elementTemplates:["type",dk],elementTemplatesLoader:["type",xk],replaceBehavior:["type",Mk],elementTemplatesPropertiesProvider:["type",YC]};const JC={assignmentDefinitionAssignee:e=>{const t=Bw("translate");return Ib("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/user-tasks/#assignments",target:"_blank",rel:"noopener",title:t("User task documentation"),children:t("How to configure a user task")})},conditionExpression:e=>{const t=Bw("translate");return Ib("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/exclusive-gateways/exclusive-gateways#conditions",target:"_blank",rel:"noopener",title:t("Conditions documentation"),children:t("How to define conditions")})},formType:e=>{const t=Bw("translate");return Ib("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/user-tasks/#user-task-forms",target:"_blank",rel:"noopener",title:t("User task form documentation"),children:t("How to link a form")})},messageSubscriptionCorrelationKey:e=>{const t=Bw("translate");return wr(e,"bpmn:ReceiveTask")?Ib("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/receive-tasks/receive-tasks/#messages",target:"_blank",rel:"noopener",title:t("Receive task documentation"),children:t("How to configure a receive task")}):Ib("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/message-events/message-events/#messages",target:"_blank",rel:"noopener",title:t("Message event documentation"),children:t("How to configure a message event")})},messageName:e=>{const t=Bw("translate");if(wr(e,"bpmn:StartEvent")&&!function(e){const t=Er(e).$parent;return wr(t,"bpmn:SubProcess")&&t.triggeredByEvent}(e))return Ib("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/message-events/message-events/#messages",target:"_blank",rel:"noopener",title:t("Message event documentation"),children:t("How to configure a message event")})},targetProcessId:e=>{const t=Bw("translate");return Ib("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/call-activities/call-activities",target:"_blank",rel:"noopener",title:t("Call activity documentation"),children:t("How to call another process")})},taskDefinitionType:e=>{const t=Bw("translate");return wr(e,"bpmn:ServiceTask")?Ib("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/service-tasks/service-tasks/#task-definition",target:"_blank",rel:"noopener",title:t("Service task documentation"),children:t("How to configure a service task")}):wr(e,"bpmn:BusinessRuleTask")?Ib("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/business-rule-tasks/business-rule-tasks/#defining-a-task",target:"_blank",rel:"noopener",title:t("Business rule task documentation"),children:t("How to configure a business rule task")}):wr(e,"bpmn:ScriptTask")?Ib("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/script-tasks/script-tasks/#defining-a-task",target:"_blank",rel:"noopener",title:t("Script task documentation"),children:t("How to configure a script task")}):wr(e,"bpmn:SendTask")?Ib("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/send-tasks/send-tasks/#defining-a-task",target:"_blank",rel:"noopener",title:t("Send task documentation"),children:t("How to configure a send task")}):wr(e,"bpmn:ThrowEvent")?Ib("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/message-events/#message-throw-events",target:"_blank",rel:"noopener",title:t("Message throw event documentation"),children:t("How to configure a message throw event")}):void 0},"multiInstance-inputCollection":e=>{const t=Bw("translate");return Ib("a",{href:"https://docs.camunda.io/docs/components/modeler/bpmn/multi-instance/#defining-the-collection-to-iterate-over",target:"_blank",rel:"noopener",title:t("Multi instance documentation"),children:t("How to configure a multi instance activity")})},errorCode:e=>{const t=Bw("translate");return Ib("a",{href:"https://docs.camunda.io/docs/reference/bpmn-processes/error-events/error-events/#defining-the-error",target:"_blank",rel:"noopener",title:t("Error event documentation"),children:t("How to configure an error event")})}};function QC(e={}){this._injectOriginModule(e),qg.call(this,e)}i(QC,qg),QC.prototype._injectOriginModule=function(e){this._modules=[].concat(this._modules,e&&e.disableAdjustOrigin?sv:cv)},QC.prototype._extensionModules=[nv,gv,YE,AO],QC.prototype._modules=[].concat(qg.prototype._modules,QC.prototype._extensionModules);var eM="replace-with-collapsed-subprocess",tM="replace-with-expanded-subprocess";function nM(e,t,n){e.registerProvider("bpmn-replace",this),this._bpmnReplace=t,this._translate=n}function iM(e){return wr(e,"bpmn:SubProcess")&&!wr(e,"bpmn:Transaction")&&!Ir(e)}nM.$inject=["popupMenu","bpmnReplace","translate"],nM.prototype.getPopupMenuEntries=function(e){var t=this._bpmnReplace,n=this._translate,i={"expand-subprocess":{className:"bpmn-icon-subprocess-expanded",label:n("Expand (not reversible)"),action:function(){t.replaceElement(e,{type:"bpmn:SubProcess",isExpanded:!0})}}};return function(r){return function(e){return wr(e,"bpmn:Task")}(e)?(delete r[tM],delete r[eM],r["replace-with-subprocess"]={className:"bpmn-icon-subprocess-collapsed",label:n("Sub Process"),action:function(){t.replaceElement(e,{type:"bpmn:SubProcess",isExpanded:!1})}},r):iM(e)&&Nr(e)?(delete r[eM],r):iM(e)&&!Nr(e)?function(e){return e.children&&e.children.length}(e)?i:(delete r[eM],delete r[tM],q(r,i)):r}};var rM={__depends__:["popupMenu","bpmnReplace"],__init__:["disabledCollapsedSubprocessPopupProvider"],disabledCollapsedSubprocessPopupProvider:["type",nM]};function oM(e,t){const n=Er(e).get("extensionElements");if(!n)return[];const i=n.get("values");return i&&i.length?t?i.filter((e=>wr(e,t))):i:[]}function aM(e,t,n,i){d(n)||(n=[n]);const r=t.get("extensionElements"),o=r.get("values").filter((e=>!n.includes(e)));i.execute("element.updateModdleProperties",{element:e,moddleElement:r,properties:{values:o}})}class sM extends Dw{constructor(e,t){super(t),this.preExecute("element.updateModdleProperties",5e3,(function(e){const{element:t,moddleElement:n,properties:i}=e;if(!wr(t,"bpmn:BusinessRuleTask")||!wr(n,"bpmn:ExtensionElements")||!i.values)return;const r=pM(t),o=lM(t);r&&!o&&i.values.find((e=>wr(e,"zeebe:CalledDecision")))&&i.values.find((e=>wr(e,"zeebe:TaskDefinition")))&&(i.values=E(i.values,r))}),!0),this.preExecute("element.updateModdleProperties",5e3,(function(e){const{element:t,moddleElement:n,properties:i}=e;if(!wr(t,"bpmn:BusinessRuleTask")||!wr(n,"bpmn:ExtensionElements")||!i.values)return;const r=pM(t),o=lM(t),a=function(e){return oM(Er(e),"zeebe:TaskHeaders")[0]}(t);!r&&(o||a)&&i.values.find((e=>wr(e,"zeebe:CalledDecision")))&&i.values.find((e=>wr(e,"zeebe:TaskDefinition")||wr(e,"zeebe:TaskHeaders")))&&(i.values=E(i.values,(e=>e===o||e===a)))}),!0)}}function pM(e){return oM(Er(e),"zeebe:CalledDecision")[0]}function lM(e){return oM(Er(e),"zeebe:TaskDefinition")[0]}sM.$inject=["commandStack","eventBus"];class cM extends Dw{constructor(e,t,n){super(n),this.preExecute("shape.create",5e3,(function(n){const{shape:i,host:r}=n,o=Er(i);let a,s,p,l,c={cancelActivity:!0};r&&wr(i,"bpmn:IntermediateCatchEvent")&&(s=Er(r),c={...c,attachedToRef:s},l=o.eventDefinitions,a=e.create("bpmn:BoundaryEvent",c),p={type:"bpmn:BoundaryEvent",businessObject:a},l&&l[0]&&(p={...p,eventDefinitionType:l[0].$type}),n.shape=t.createShape(p))}),!0)}}function uM(e,t,n,i){var r=i.create(e,t);return r.$parent=n,r}function dM(e){const t=Er(e).get("extensionElements");if(t)return t.get("values").find((e=>wr(e,"zeebe:IoMapping")))}function hM(e){const t=dM(e);return t?t.get("zeebe:outputParameters"):[]}function mM(e){return function(e){return oM(Er(e),"zeebe:CalledElement")}(e)[0]}function fM(e){if(!wr(e,"bpmn:CallActivity"))return!1;const t=mM(Er(e));return t&&v(t,"propagateAllChildVariables")?t.get("propagateAllChildVariables")||!1:function(e){if(!wr(e,"bpmn:CallActivity"))return!1;const t=hM(e);return t?!t.length:void 0}(e)}cM.$inject=["bpmnFactory","elementFactory","eventBus"];class yM extends Dw{constructor(e,t,n){super(t),this.postExecuted("shape.create",5e3,(function(t){const{shape:i}=t;if(!wr(i,"bpmn:CallActivity"))return;const r=Er(i);let o=mM(r);if(o)v(o,"propagateAllChildVariables")||n.updateModdleProperties(i,o,{propagateAllChildVariables:!1});else{let t=r.get("extensionElements");t||(t=uM("bpmn:ExtensionElements",{values:[]},r,e),n.updateProperties(i,{extensionElements:t})),o=uM("zeebe:CalledElement",{propagateAllChildVariables:!1},t,e),n.updateModdleProperties(i,t,{values:[...t.values||[],o]})}}),!0)}}yM.$inject=["bpmnFactory","eventBus","modeling"];function gM(){return function(e){return new o([32,32,1]).nextPrefixed(e)}("UserTaskForm_")}function vM(e){return`camunda-forms:bpmn:${e}`}function bM(e){return oM(Er(e),"zeebe:FormDefinition")[0]}function xM(e,t){const n=t||function(e){for(var t=Er(e);t.$parent&&!wr(t,"bpmn:Process");)t=t.$parent;return t}(e),i=bM(e);if(!i)return;return function(e,t){return b(oM(t,"zeebe:UserTaskForm"),(t=>vM(t.get("zeebe:id"))===e))}(i.get("zeebe:formKey"),n)}class wM extends Dw{constructor(e,t,n){super(t),this.postExecute("shape.delete",(function(e){const{oldParent:t,shape:i}=e,r=_M(t),o=xM(i,r);if(!wr(i,"bpmn:UserTask")||!o)return;const a=r.get("extensionElements"),s=a.get("values").filter((e=>e!==o));n.updateModdleProperties(i,a,{values:s})}),!0),this.postExecute("shape.create",(function(t){const{shape:i}=t,r=bM(i);if(!wr(i,"bpmn:UserTask")||!r)return;const o=xM(i),a=_M(i),s=Er(i).get("extensionElements");let p=a.get("extensionElements");p||(p=uM("bpmn:ExtensionElements",{values:[]},a,e),n.updateModdleProperties(i,a,{extensionElements:p}));let l=s.get("values").filter((e=>e!==r));const c=gM(),u=function(e,t,n){return uM("zeebe:FormDefinition",e,t,n)}({formKey:vM(c)},s,e);l=[...l,u],n.updateModdleProperties(i,s,{values:l});const d=function(e,t,n){return uM("zeebe:UserTaskForm",e,t,n)}({id:c,body:o?o.get("body"):""},p,e);n.updateModdleProperties(i,p,{values:[...p.get("values")||[],d]})}),!0)}}function _M(e){for(var t=Er(e);t.$parent&&!wr(t,"bpmn:Process");)t=t.$parent;return t}wM.$inject=["bpmnFactory","eventBus","modeling"];class EM extends Dw{constructor(e,t){super(t),this.postExecuted("element.updateModdleProperties",5e3,(function(t){const{element:n,moddleElement:i}=t;if(!wr(i,"zeebe:AssignmentDefinition"))return;const r=i;if(wr(n,"bpmn:UserTask")&&l(r.get("zeebe:assignee"))&&l(r.get("zeebe:candidateGroups"))){aM(n,Er(n),r,e)}}),!0)}}EM.$inject=["commandStack","eventBus"];class PM extends Dw{constructor(e,t,n){super(t),this.postExecute("element.updateModdleProperties",5e3,(function(t){const{element:i,moddleElement:r,properties:o={}}=t,a=o.propagateAllChildVariables||o["zeebe:propagateAllChildVariables"];if(!wr(i,"bpmn:CallActivity")||!wr(r,"zeebe:CalledElement")||!a)return;const s=function(e){const t=dM(e);return t?t.get("zeebe:inputParameters"):[]}(i),p=hM(i);if(!p||!p.length)return;const l=dM(i);n.updateModdleProperties(i,l,{"zeebe:outputParameters":[]}),s&&s.length||aM(i,Er(i),l,e)}),!0),this.preExecute("element.updateModdleProperties",5e3,(function(e){const{element:t,moddleElement:i,properties:r}=e;if(!wr(t,"bpmn:CallActivity")||!fM(t))return;const o=mM(Er(t));if(wr(i,"bpmn:ExtensionElements")&&r.values){const e=r.values.find((e=>wr(e,"zeebe:IoMapping")));e&&e.get("outputParameters").length&&!dM(t)&&n.updateModdleProperties(t,o,{"zeebe:propagateAllChildVariables":!1})}if(wr(i,"zeebe:IoMapping")){const e=r.outputParameters||r["zeebe:outputParameters"];e&&e.length&&n.updateModdleProperties(t,o,{"zeebe:propagateAllChildVariables":!1})}}),!0)}}PM.$inject=["commandStack","eventBus","modeling"];var OM={__depends__:[{__init__:["cleanUpBusinessRuleTaskBehavior","createZeebeBoundaryEventBehavior","createZeebeCallActivityBehavior","formDefinitionBehavior","removeAssignmentDefinitionBehavior","updatePropagateAllChildVariablesBehavior"],cleanUpBusinessRuleTaskBehavior:["type",sM],createZeebeBoundaryEventBehavior:["type",cM],createZeebeCallActivityBehavior:["type",yM],formDefinitionBehavior:["type",wM],removeAssignmentDefinitionBehavior:["type",EM],updatePropagateAllChildVariablesBehavior:["type",PM]}]};const SM=["hand-tool","lasso-tool","space-tool","global-connect-tool","tool-separator","create.start-event","create.intermediate-event","create.end-event","create.exclusive-gateway","create.task","create.subprocess-expanded","create.participant-expanded","create.group"];class kM{constructor(e){e.registerProvider(500,this)}getPaletteEntries(e){return function(e){return _(e,(function(t,n){SM.includes(n)||delete e[n]})),e}}}kM.$inject=["palette"];var CM={__init__:["zeebePaletteProvider"],zeebePaletteProvider:["type",kM]};const MM=["append.message-intermediate-event","append.timer-intermediate-event","append.append-task","append.intermediate-event","append.text-annotation","append.end-event","append.gateway","delete","connect","replace","lane-insert-above","lane-divide-two","lane-divide-three","lane-insert-below"];class TM{constructor(e,t,n,i){i.autoPlace=void 0,!1!==e.autoPlace&&(i.autoPlace=t.get("autoPlace",!1)),n.registerProvider(500,this)}getContextPadEntries(e){return function(e){return _(e,(function(t,n){MM.includes(n)||delete e[n]})),e}}}TM.$inject=["config","injector","contextPad","contextPadProvider"];var AM={__init__:["zeebeContextPadProvider"],zeebeContextPadProvider:["type",TM]};const RM=["replace-with-service-task","replace-with-script-task","replace-with-send-task","replace-with-rule-task","replace-with-message-intermediate-catch","replace-with-message-intermediate-throw","replace-with-timer-intermediate-catch","replace-with-none-start","replace-with-none-end","replace-with-conditional-flow","replace-with-default-flow","replace-with-sequence-flow","replace-with-parallel-gateway","replace-with-exclusive-gateway","replace-with-collapsed-subprocess","replace-with-expanded-subprocess","replace-with-timer-boundary","replace-with-message-boundary","replace-with-event-based-gateway","replace-with-receive-task","replace-with-task","replace-with-manual-task","replace-with-message-start","replace-with-message-end","replace-with-timer-start","replace-with-none-intermediate-throw","replace-with-none-intermediate-throwing","replace-with-non-interrupting-message-boundary","replace-with-non-interrupting-timer-boundary","replace-with-error-boundary","replace-with-error-end","replace-with-event-subprocess","replace-with-subprocess","replace-with-error-start","replace-with-non-interrupting-message-start","replace-with-non-interrupting-timer-start","replace-with-expanded-pool","replace-with-collapsed-pool","replace-with-call-activity","replace-with-user-task"],zM=["toggle-parallel-mi","toggle-sequential-mi"];class DM{constructor(e){e.registerProvider("bpmn-replace",this)}getPopupMenuHeaderEntries(e){return function(t){let n={};return _r(e,["bpmn:Task","bpmn:ReceiveTask","bpmn:ServiceTask","bpmn:SubProcess","bpmn:CallActivity"])&&!Ir(e)&&_(t,(function(e,t){zM.includes(t)&&(n={...n,[t]:e})})),t=n}}getPopupMenuEntries(e){return function(e){return _(e,(function(t,n){RM.includes(n)||delete e[n]})),e}}}DM.$inject=["popupMenu"];var jM={__init__:["zeebeReplaceMenuProvider"],zeebeReplaceMenuProvider:["type",DM]};class BM extends Oh{constructor(e){super(e)}init(){super.init(),this.addRule("shape.attach",5e3,(e=>this.canAttach(e.shape,e.target,null,e.position)))}canAttach(e,t,n,i){if(Array.isArray(e)||(e=[e]),n)return!1;if(1!==e.length)return!1;const r=e[0];return!mo(r)&&(!!function(e){return function(e){return!mo(e)&&wr(e,"bpmn:BoundaryEvent")}(e)||(wr(e,"bpmn:IntermediateCatchEvent")||wr(e,"bpmn:IntermediateThrowEvent"))&&!e.parent}(r)&&(!t||!Ir(t)&&(!(!wr(t,"bpmn:Activity")||function(e){return Er(e).isForCompensation}(t))&&(!(i&&!Ph(i,t))&&(!function(e){return wr(e,"bpmn:ReceiveTask")&&b(e.incoming,(function(e){return wr(e.source,"bpmn:EventBasedGateway")}))}(t)&&"attach")))))}}BM.$inject=["eventBus"];var NM={__init__:["bpmnRules"],bpmnRules:["type",BM]},LM={name:"zeebe",prefix:"zeebe",uri:"http://camunda.org/schema/zeebe/1.0",xml:{tagAlias:"lowerCase"},associations:[],types:[{name:"ZeebeServiceTask",extends:["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:SendTask","bpmn:EndEvent","bpmn:IntermediateThrowEvent"],properties:[{name:"retryCounter",type:"String",isAttr:!0}]},{name:"IoMapping",superClass:["Element"],properties:[{name:"ioMapping",type:"IoMapping"},{name:"inputParameters",isMany:!0,type:"Input"},{name:"outputParameters",isMany:!0,type:"Output"}],meta:{allowedIn:["bpmn:CallActivity","bpmn:Event","bpmn:ReceiveTask","zeebe:ZeebeServiceTask","bpmn:SubProcess"]}},{name:"InputOutputParameter",properties:[{name:"source",isAttr:!0,type:"String"},{name:"target",isAttr:!0,type:"String"}]},{name:"Subscription",superClass:["Element"],properties:[{name:"correlationKey",isAttr:!0,type:"String"}]},{name:"Input",superClass:["InputOutputParameter"],meta:{allowedIn:["bpmn:CallActivity","zeebe:ZeebeServiceTask","bpmn:SubProcess"]}},{name:"Output",superClass:["InputOutputParameter"],meta:{allowedIn:["bpmn:CallActivity","bpmn:Event","bpmn:ReceiveTask","zeebe:ZeebeServiceTask","bpmn:SubProcess"]}},{name:"TaskHeaders",superClass:["Element"],meta:{allowedIn:["zeebe:ZeebeServiceTask"]},properties:[{name:"values",type:"Header",isMany:!0}]},{name:"Header",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"key",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"TaskDefinition",superClass:["Element"],meta:{allowedIn:["zeebe:ZeebeServiceTask"]},properties:[{name:"type",type:"String",isAttr:!0},{name:"retries",type:"String",isAttr:!0}]},{name:"LoopCharacteristics",superClass:["Element"],meta:{allowedIn:["zeebe:ZeebeServiceTask","bpmn:ReceiveTask","bpmn:SubProcess"]},properties:[{name:"inputCollection",type:"String",isAttr:!0},{name:"inputElement",type:"String",isAttr:!0},{name:"outputCollection",type:"String",isAttr:!0},{name:"outputElement",type:"String",isAttr:!0}]},{name:"CalledElement",superClass:["Element"],meta:{allowedIn:["bpmn:CallActivity"]},properties:[{name:"processId",type:"String",isAttr:!0},{name:"processIdExpression",type:"String",isAttr:!0},{name:"propagateAllChildVariables",isAttr:!0,type:"Boolean"}]},{name:"UserTaskForm",superClass:["Element"],meta:{allowedIn:["bpmn:Process"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"body",type:"String",isBody:!0}]},{name:"FormDefinition",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"formKey",type:"String",isAttr:!0}]},{name:"CalledDecision",superClass:["Element"],meta:{allowedIn:["bpmn:BusinessRuleTask"]},properties:[{name:"decisionId",type:"String",isAttr:!0},{name:"resultVariable",type:"String",isAttr:!0}]},{name:"AssignmentDefinition",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"assignee",type:"String",isAttr:!0},{name:"candidateGroups",type:"String",isAttr:!0}]},{name:"TemplateSupported",isAbstract:!0,extends:["bpmn:Collaboration","bpmn:Process","bpmn:FlowElement"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"},{name:"modelerTemplateVersion",isAttr:!0,type:"Integer"}]}]},IM=Hx.isFunction,$M=Hx.isObject,FM=Hx.some;const VM=["zeebe:TaskDefinition","zeebe:Subscription","zeebe:TaskHeaders","zeebe:LoopCharacteristics","zeebe:Input"];function HM(e){var t=this;e.on("moddleCopy.canCopyProperty",(function(e){var n=e.property,i=e.parent;return t.canCopyProperty(n,i)}))}function qM(e,t){return e&&IM(e.$instanceOf)&&e.$instanceOf(t)}function UM(e,t){return t?qM(e,t)?e:e.$parent?UM(e.$parent,t):void 0:e.$parent}HM.$inject=["eventBus"],HM.prototype.canCopyProperty=function(e,t){return!($M(e)&&!function(e,t){var n=e.$type&&e.$model.getTypeDescriptor(e.$type),i=n&&n.meta&&n.meta.allowedIn;if(!i||function(e){return-1!==e.indexOf("*")}(i))return!0;return FM(i,(function(e){return UM(t,e)}))}(e,t))&&(!!this.canHostServiceTaskLikeProperties(e,t)&&void 0)},HM.prototype.canHostServiceTaskLikeProperties=function(e,t){if(function(e){return VM.some((function(t){return qM(e,t)}))}(e)){var n=UM(t,"bpmn:IntermediateThrowEvent")||UM(t,"bpmn:EndEvent");if(n)return n.get("eventDefinitions").some((function(e){return qM(e,"bpmn:MessageEventDefinition")}))}return!0};var GM={__init__:["zeebeModdleExtension"],zeebeModdleExtension:["type",HM]};function WM(e={}){e={...e,moddleExtensions:{zeebe:LM,...e.moddleExtensions},propertiesPanel:{description:JC,...e.propertiesPanel}},QC.call(this,e)}return i(WM,QC),WM.prototype._camundaCloudModules=[OM,AM,rM,{drilldownOverlayBehavior:["value",null]},CM,jM,NM,rk,ZC,GM],WM.prototype._modules=[].concat(QC.prototype._modules,WM.prototype._camundaCloudModules),WM}));
|