camunda-bpmn-js 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/bpmn-font/css/bpmn.css +1 -0
- package/dist/assets/bpmn-js.css +1 -0
- package/dist/base-modeler.development.js +476 -585
- package/dist/base-modeler.production.min.js +31 -31
- package/dist/base-navigated-viewer.development.js +12 -139
- package/dist/base-navigated-viewer.production.min.js +1 -1
- package/dist/base-viewer.development.js +12 -139
- package/dist/base-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +476 -585
- package/dist/camunda-cloud-modeler.production.min.js +32 -32
- package/dist/camunda-cloud-navigated-viewer.development.js +12 -139
- package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-viewer.development.js +12 -139
- package/dist/camunda-cloud-viewer.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +476 -585
- package/dist/camunda-platform-modeler.production.min.js +31 -31
- package/dist/camunda-platform-navigated-viewer.development.js +12 -139
- package/dist/camunda-platform-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-platform-viewer.development.js +12 -139
- package/dist/camunda-platform-viewer.production.min.js +1 -1
- package/lib/base/Modeler.d.ts +15 -15
- package/lib/base/NavigatedViewer.d.ts +2 -2
- package/lib/base/Viewer.d.ts +2 -2
- package/lib/camunda-cloud/ElementTemplatesValidator.d.ts +1 -1
- package/lib/camunda-cloud/Modeler.d.ts +3 -3
- package/lib/camunda-cloud/NavigatedViewer.d.ts +3 -3
- package/lib/camunda-cloud/Viewer.d.ts +3 -3
- package/lib/camunda-cloud/features/rules/BpmnRules.d.ts +32 -32
- package/lib/camunda-cloud/features/rules/index.d.ts +6 -6
- package/lib/camunda-cloud/util/commonModules.d.ts +9 -9
- package/lib/camunda-platform/Modeler.d.ts +3 -3
- package/lib/camunda-platform/NavigatedViewer.d.ts +5 -5
- package/lib/camunda-platform/Viewer.d.ts +5 -5
- package/lib/camunda-platform/util/commonModules.d.ts +9 -9
- package/lib/util/ExtensionElementsUtil.d.ts +24 -24
- package/package.json +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).BpmnModeler=t()}(this,(function(){"use strict";function e(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}var t=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=e.exports=function(e,n){if(n||(n=16),void 0===e&&(e=128),e<=0)return"0";for(var i=Math.log(Math.pow(2,e))/Math.log(n),r=2;i===1/0;r*=2)i=Math.log(Math.pow(2,e/r))/Math.log(n)*r;var o=i-Math.floor(i),s="";for(r=0;r<Math.floor(i);r++){s=Math.floor(Math.random()*n).toString(n)+s}if(o){var a=Math.pow(n,o);s=Math.floor(Math.random()*a).toString(n)+s}var l=parseInt(s,n);return l!==1/0&&l>=Math.pow(2,e)?t(e,n):s};t.rack=function(e,n,i){var r=function(r){var s=0;do{if(s++>10){if(!i)throw new Error("too many ID collisions, use more bits");e+=i}var a=t(e,n)}while(Object.hasOwnProperty.call(o,a));return o[a]=r,a},o=r.hats={};return r.get=function(e){return r.hats[e]},r.set=function(e,t){return r.hats[e]=t,r},r.bits=e||128,r.base=n||16,r}}));function n(e){if(!(this instanceof n))return new n(e);e=e||[128,36,1],this._seed=e.length?t.rack(e[0],e[1],e[2]):e}function i(e){return Array.prototype.concat.apply([],e)}n.prototype.next=function(e){return this._seed(e||!0)},n.prototype.nextPrefixed=function(e,t){var n;do{n=e+this.next(!0)}while(this.assigned(n));return this.claim(n,t),n},n.prototype.claim=function(e,t){this._seed.set(e,t||!0)},n.prototype.assigned=function(e){return this._seed.get(e)||!1},n.prototype.unclaim=function(e){delete this._seed.hats[e]},n.prototype.clear=function(){var e,t=this._seed.hats;for(e in t)this.unclaim(e)};const r=Object.prototype.toString,o=Object.prototype.hasOwnProperty;function s(e){return void 0===e}function a(e){return void 0!==e}function l(e){return null==e}function c(e){return"[object Array]"===r.call(e)}function h(e){return"[object Object]"===r.call(e)}function u(e){return"[object Number]"===r.call(e)}function p(e){const t=r.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t||"[object Proxy]"===t}function d(e){return"[object String]"===r.call(e)}function f(e){if(!c(e))throw new Error("must supply array")}function m(e,t){return o.call(e,t)}function g(e,t){const n=D(t);let i;return b(e,(function(e,t){if(n(e,t))return i=e,!1})),i}function v(e,t){const n=D(t);let i=c(e)?-1:void 0;return b(e,(function(e,t){if(n(e,t))return i=t,!1})),i}function y(e,t){const n=D(t);let i=[];return b(e,(function(e,t){n(e,t)&&i.push(e)})),i}function b(e,t){let n,i;if(s(e))return;const r=c(e)?L:B;for(let o in e)if(m(e,o)&&(n=e[o],i=t(n,r(o)),!1===i))return n}function x(e,t){if(s(e))return[];f(e);const n=D(t);return e.filter((function(e,t){return!n(e,t)}))}function w(e,t,n){return b(e,(function(e,i){n=t(n,e,i)})),n}function _(e,t){return!!w(e,(function(e,n,i){return e&&t(n,i)}),!0)}function O(e,t){return!!g(e,t)}function E(e,t){let n=[];return b(e,(function(e,i){n.push(t(e,i))})),n}function k(e){return e&&Object.keys(e)||[]}function S(e){return k(e).length}function C(e){return E(e,(e=>e))}function P(e,t,n={}){return t=M(t),b(e,(function(e){let i=t(e)||"_",r=n[i];r||(r=n[i]=[]),r.push(e)})),n}function $(e,...t){e=M(e);let n={};return b(t,(t=>P(t,e,n))),E(n,(function(e,t){return e[0]}))}const A=$;function R(e,t){t=M(t);let n=[];return b(e,(function(e,i){let r=t(e,i),o={d:r,v:e};for(var s=0;s<n.length;s++){let{d:e}=n[s];if(r<e)return void n.splice(s,0,o)}n.push(o)})),E(n,(e=>e.v))}function T(e){return function(t){return _(e,(function(e,n){return t[n]===e}))}}function M(e){return p(e)?e:t=>t[e]}function D(e){return p(e)?e:t=>t===e}function B(e){return e}function L(e){return Number(e)}function N(e,t){let n,i,r,o;function s(n){let s=Date.now(),c=n?0:o+t-s;if(c>0)return a(c);e.apply(r,i),l()}function a(e){n=setTimeout(s,e)}function l(){n&&clearTimeout(n),n=o=i=r=void 0}function c(...e){o=Date.now(),i=e,r=this,n||a(t)}return c.flush=function(){n&&s(!0),l()},c.cancel=l,c}function j(e,t){let n=!1;return function(...i){n||(e(...i),n=!0,setTimeout((()=>{n=!1}),t))}}function z(e,t){return e.bind(t)}function I(e,...t){return Object.assign(e,...t)}function X(e,t,n){let i=e;return b(t,(function(e,r){if("number"!=typeof e&&"string"!=typeof e)throw new Error("illegal key type: "+typeof e+". Key should be of type number or string.");if("constructor"===e)throw new Error("illegal key: constructor");if("__proto__"===e)throw new Error("illegal key: __proto__");let o=t[r+1],c=i[e];a(o)&&l(c)&&(c=i[e]=isNaN(+o)?{}:[]),s(o)?s(n)?delete i[e]:i[e]=n:i=c})),e}function Q(e,t,n){let i=e;return b(t,(function(e){if(l(i))return i=void 0,!1;i=i[e]})),s(i)?n:i}function F(e,t){let n={},i=Object(e);return b(t,(function(t){t in i&&(n[t]=e[t])})),n}function V(e,t){let n={};return b(Object(e),(function(e,i){-1===t.indexOf(i)&&(n[i]=e)})),n}var q=Object.freeze({__proto__:null,assign:I,bind:z,debounce:N,ensureArray:f,every:_,filter:y,find:g,findIndex:v,flatten:i,forEach:b,get:Q,groupBy:P,has:m,isArray:c,isDefined:a,isFunction:p,isNil:l,isNumber:u,isObject:h,isString:d,isUndefined:s,keys:k,map:E,matchPattern:T,merge:function e(t,...n){return n.length?(b(n,(function(n){n&&h(n)&&b(n,(function(n,i){if("__proto__"===i)return;let r=t[i];h(n)?(h(r)||(r={}),t[i]=e(r,n)):t[i]=n}))})),t):t},omit:V,pick:F,reduce:w,set:X,size:S,some:O,sortBy:R,throttle:j,unionBy:A,uniqueBy:$,values:C,without:x});function H(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}const W=Object.prototype.toString,Y=Object.prototype.hasOwnProperty;function G(e,t){return Y.call(e,t)}function U(e,t){let n,i;if(void 0===e)return;const r=function(e){return"[object Array]"===W.call(e)}(e)?K:Z;for(let o in e)if(G(e,o)&&(n=e[o],i=t(n,r(o)),!1===i))return n}function Z(e){return e}function K(e){return Number(e)}function J(e,...t){const n=e.style;return U(t,(function(e){e&&U(e,(function(e,t){n[t]=e}))})),e}function ee(e,t,n){return 2==arguments.length?e.getAttribute(t):null===n?e.removeAttribute(t):(e.setAttribute(t,n),e)}const te=Object.prototype.toString;function ne(e){return new ie(e)}function ie(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function re(e){for(var t;e.childNodes.length;)t=e.childNodes[0],e.removeChild(t);return e}function oe(e,t){return e&&"function"==typeof e.matches&&e.matches(t)}function se(e,t,n){for(var i=n?e:e.parentNode;i&&i.nodeType!==document.DOCUMENT_NODE&&i.nodeType!==document.DOCUMENT_FRAGMENT_NODE;){if(oe(i,t))return i;i=i.parentNode}return oe(i,t)?i:null}ie.prototype.add=function(e){return this.list.add(e),this},ie.prototype.remove=function(e){return"[object RegExp]"==te.call(e)?this.removeMatching(e):(this.list.remove(e),this)},ie.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},ie.prototype.toggle=function(e,t){return void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},ie.prototype.array=function(){return Array.from(this.list)},ie.prototype.has=ie.prototype.contains=function(e){return this.list.contains(e)};var ae,le,ce,he={};function ue(){ae=window.addEventListener?"addEventListener":"attachEvent",le=window.removeEventListener?"removeEventListener":"detachEvent",ce="addEventListener"!==ae?"on":""}var pe=he.bind=function(e,t,n,i){return ae||ue(),e[ae](ce+t,n,i||!1),n},de=he.unbind=function(e,t,n,i){return le||ue(),e[le](ce+t,n,i||!1),n},fe=H({__proto__:null,bind:pe,unbind:de,default:he},[he]),me=["focus","blur"];var ge,ve={bind:function(e,t,n,i,r){return-1!==me.indexOf(n)&&(r=!0),fe.bind(e,n,(function(n){var r=n.target||n.srcElement;n.delegateTarget=se(r,t,!0),n.delegateTarget&&i.call(e,n)}),r)},unbind:function(e,t,n,i){return-1!==me.indexOf(t)&&(i=!0),fe.unbind(e,t,n,i)}},ye=function(e,t){if("string"!=typeof e)throw new TypeError("String expected");t||(t=document);var n=/<([\w:]+)/.exec(e);if(!n)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var i=n[1];if("body"==i){return(l=t.createElement("html")).innerHTML=e,l.removeChild(l.lastChild)}var r=Object.prototype.hasOwnProperty.call(xe,i)?xe[i]:xe._default,o=r[0],s=r[1],a=r[2],l=t.createElement("div");l.innerHTML=s+e+a;for(;o--;)l=l.lastChild;if(l.firstChild==l.lastChild)return l.removeChild(l.firstChild);var c=t.createDocumentFragment();for(;l.firstChild;)c.appendChild(l.removeChild(l.firstChild));return c},be=!1;"undefined"!=typeof document&&((ge=document.createElement("div")).innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',be=!ge.getElementsByTagName("link").length,ge=void 0);var xe={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:be?[1,"X<div>","</div>"]:[0,"",""]};xe.td=xe.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],xe.option=xe.optgroup=[1,'<select multiple="multiple">',"</select>"],xe.thead=xe.tbody=xe.colgroup=xe.caption=xe.tfoot=[1,"<table>","</table>"],xe.polyline=xe.ellipse=xe.polygon=xe.circle=xe.text=xe.line=xe.path=xe.rect=xe.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];var we=ye;function _e(e,t){return(t=t||document).querySelector(e)}function Oe(e,t){return(t=t||document).querySelectorAll(e)}function Ee(e){e.parentNode&&e.parentNode.removeChild(e)}function ke(e,t){return t.appendChild(function(e,t){if(e.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(e,!0)}catch(e){}return e}(e,t))}function Se(e,t){return ke(t,e),e}var Ce=2,Pe={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":Ce,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":Ce,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function $e(e,t,n){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=Pe[i];r?(r===Ce&&"number"==typeof n&&(n=String(n)+"px"),e.style[i]=n):e.setAttributeNS(null,t,n)}function Ae(e,t,n){if("string"==typeof t){if(void 0===n)return function(e,t){return Pe[t]?e.style[t]:e.getAttributeNS(null,t)}(e,t);$e(e,t,n)}else!function(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)$e(e,i,t[i])}(e,t);return e}const Re=Object.prototype.toString;function Te(e){return new Me(e)}function Me(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function De(e){var t=e.parentNode;return t&&t.removeChild(e),e}function Be(e){for(var t;t=e.firstChild;)De(t);return e}function Le(e){return e.cloneNode(!0)}Me.prototype.add=function(e){return this.list.add(e),this},Me.prototype.remove=function(e){return"[object RegExp]"==Re.call(e)?this.removeMatching(e):(this.list.remove(e),this)},Me.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},Me.prototype.toggle=function(e,t){return void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},Me.prototype.array=function(){return Array.from(this.list)},Me.prototype.has=Me.prototype.contains=function(e){return this.list.contains(e)};var Ne={svg:"http://www.w3.org/2000/svg"},je='<svg xmlns="'+Ne.svg+'"';function ze(e){var t=!1;"<svg"===e.substring(0,4)?-1===e.indexOf(Ne.svg)&&(e=je+e.substring(4)):(e=je+">"+e+"</svg>",t=!0);var n=function(e){var t;return t=new DOMParser,t.async=!1,t.parseFromString(e,"text/xml")}(e);if(!t)return n;for(var i=document.createDocumentFragment(),r=n.firstChild;r.firstChild;)i.appendChild(r.firstChild);return i}function Ie(e,t){var n;return"<"===e.charAt(0)?(n=ze(e).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(Ne.svg,e),t&&Ae(n,t),n}var Xe=null;function Qe(){return null===Xe&&(Xe=Ie("svg")),Xe}function Fe(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)e[i]=t[i];return e}function Ve(e){return e?Qe().createSVGTransformFromMatrix(e):Qe().createSVGTransform()}var qe=/([&<>]{1})/g,He=/([\n\r"]{1})/g,We={"&":"&","<":"<",">":">",'"':"'"};function Ye(e,t){return e.replace(t,(function(e,t){return We[t]||t}))}function Ge(e,t){var n,i,r,o,s;switch(e.nodeType){case 3:t.push(Ye(e.textContent,qe));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(n=0,i=(r=e.attributes).length;n<i;++n)o=r.item(n),t.push(" ",o.name,'="',Ye(o.value,He),'"');if(e.hasChildNodes()){for(t.push(">"),n=0,i=(s=e.childNodes).length;n<i;++n)Ge(s.item(n),t);t.push("</",e.tagName,">")}else t.push("/>");break;case 8:t.push("\x3c!--",Ye(e.nodeValue,qe),"--\x3e");break;case 4:t.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function Ue(e,t){var n=ze(t);if(Be(e),t){(function(e){return"#document-fragment"===e.nodeName})(n)||(n=n.documentElement);for(var i,r=(i=n.childNodes,Array.prototype.slice.call(i)),o=0;o<r.length;o++)ke(r[o],e)}}function Ze(e,t){if(void 0!==t){try{Ue(e,t)}catch(e){throw new Error("error parsing SVG: "+e.message)}return e}return function(e){for(var t=e.firstChild,n=[];t;)Ge(t,n),t=t.nextSibling;return n.join("")}(e)}function Ke(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function Je(e,t){var n=e.transform.baseVal;return t&&(Array.isArray(t)||(t=[t]),function(e,t){var n,i;for(e.clear(),n=0;i=t[n];n++)e.appendItem(Ke(e,i))}(n,t)),n.consolidate()}const et=/^class[ {]/;function tt(e){return Array.isArray(e)}function nt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function it(...e){1===e.length&&tt(e[0])&&(e=e[0]);const t=(e=[...e]).pop();return t.$inject=e,t}const rt=/constructor\s*[^(]*\(\s*([^)]*)\)/m,ot=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,st=/\/\*([^*]*)\*\//m;function at(e){if("function"!=typeof e)throw new Error(`Cannot annotate "${e}". Expected a function!`);const t=e.toString().match(function(e){return et.test(e.toString())}(e)?rt:ot);if(!t)return[];const n=t[1]||t[2];return n&&n.split(",").map((e=>{const t=e.match(st);return(t&&t[1]||e).trim()}))||[]}function lt(e,t){t=t||{get:function(e,t){if(n.push(e),!1===t)return null;throw s(`No provider for "${e}"!`)}};const n=[],i=this._providers=Object.create(t._providers||null),r=this._instances=Object.create(null),o=r.injector=this,s=function(e){const t=n.join(" -> ");return n.length=0,new Error(t?`${e} (Resolving: ${t})`:e)};function a(e,o){if(!i[e]&&-1!==e.indexOf(".")){const t=e.split(".");let n=a(t.shift());for(;t.length;)n=n[t.shift()];return n}if(nt(r,e))return r[e];if(nt(i,e)){if(-1!==n.indexOf(e))throw n.push(e),s("Cannot resolve circular dependency!");return n.push(e),r[e]=i[e][0](i[e][1]),n.pop(),r[e]}return t.get(e,o)}function l(e,t){if(void 0===t&&(t={}),"function"!=typeof e){if(!tt(e))throw s(`Cannot invoke "${e}". Expected a function!`);e=it(e.slice())}return{fn:e,dependencies:(e.$inject||at(e)).map((e=>nt(t,e)?t[e]:a(e)))}}function c(e){const{fn:t,dependencies:n}=l(e);return new(Function.prototype.bind.apply(t,[null].concat(n)))}function h(e,t,n){const{fn:i,dependencies:r}=l(e,n);return i.apply(t,r)}function u(e){return it((t=>e.get(t)))}function p(e,t){if(t&&t.length){const n=Object.create(null),r=Object.create(null),o=[],s=[],a=[];let l,c,h,p;for(let e in i)l=i[e],-1!==t.indexOf(e)&&("private"===l[2]?(c=o.indexOf(l[3]),-1===c?(h=l[3].createChild([],t),p=u(h),o.push(l[3]),s.push(h),a.push(p),n[e]=[p,e,"private",h]):n[e]=[a[c],e,"private",s[c]]):n[e]=[l[2],l[1]],r[e]=!0),"factory"!==l[2]&&"type"!==l[2]||!l[1].$scope||t.forEach((t=>{-1!==l[1].$scope.indexOf(t)&&(n[e]=[l[2],l[1]],r[t]=!0)}));t.forEach((e=>{if(!r[e])throw new Error('No provider for "'+e+'". Cannot use provider from the parent!')})),e.unshift(n)}return new lt(e,o)}const d={factory:h,type:c,value:function(e){return e}};function f(e,t){const n=e.__init__||[];return function(){n.forEach((e=>{"string"==typeof e?t.get(e):t.invoke(e)}))}}function m(e){const t=e.__exports__;if(t){const n=e.__modules__,r=Object.keys(e).reduce(((t,n)=>("__exports__"!==n&&"__modules__"!==n&&"__init__"!==n&&"__depends__"!==n&&(t[n]=e[n]),t)),Object.create(null)),o=p((n||[]).concat(r)),s=it((function(e){return o.get(e)}));t.forEach((function(e){i[e]=[s,e,"private",o]}));const a=(e.__init__||[]).slice();return a.unshift((function(){o.init()})),f(e=Object.assign({},e,{__init__:a}),o)}return Object.keys(e).forEach((function(t){if("__init__"===t||"__depends__"===t)return;if("private"===e[t][2])return void(i[t]=e[t]);const n=e[t][0],r=e[t][1];i[t]=[d[n],ct(n,r),n]})),f(e,o)}function g(e,t){return-1!==e.indexOf(t)||-1!==(e=(t.__depends__||[]).reduce(g,e)).indexOf(t)?e:e.concat(t)}this.get=a,this.invoke=h,this.instantiate=c,this.createChild=p,this.init=function(e){const t=e.reduce(g,[]).map(m);let n=!1;return function(){n||(n=!0,t.forEach((e=>e())))}}(e)}function ct(e,t){return"value"!==e&&tt(t)&&(t=it(t.slice())),t}var ht=1e3;function ut(e,t){var n=this;t=t||ht,e.on(["render.shape","render.connection"],t,(function(e,t){var i=e.type,r=t.element,o=t.gfx,s=t.attrs;if(n.canRender(r))return"render.shape"===i?n.drawShape(o,r,s):n.drawConnection(o,r,s)})),e.on(["render.getShapePath","render.getConnectionPath"],t,(function(e,t){if(n.canRender(t))return"render.getShapePath"===e.type?n.getShapePath(t):n.getConnectionPath(t)}))}function pt(e){return e.flat().join(",").replace(/,?([A-z]),?/g,"$1")}function dt(e){return["L",e.x,e.y]}function ft(e,t){const n=e.length,i=[(r=e[0],["M",r.x,r.y])];var r,o,s,a;for(let r=1;r<n;r++){const n=e[r-1],l=e[r],c=e[r+1];if(!c||!t){i.push(dt(l));continue}const h=Math.min(t,gt(l.x-n.x,l.y-n.y),gt(c.x-l.x,c.y-l.y));if(!h){i.push(dt(l));continue}const u=mt(l,n,h),p=mt(l,n,.5*h),d=mt(l,c,h),f=mt(l,c,.5*h);i.push(dt(u)),i.push((s=f,a=d,["C",(o=p).x,o.y,s.x,s.y,a.x,a.y]))}return i}function mt(e,t,n){const i=t.x-e.x,r=t.y-e.y,o=n/gt(i,r);return{x:e.x+i*o,y:e.y+r*o}}function gt(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))}function vt(e,t,n){u(t)&&(n=t,t=null),t||(t={});const i=Ie("path",t);return u(n)&&(i.dataset.cornerRadius=String(n)),yt(i,e)}function yt(e,t){return Ae(e,{d:pt(ft(t,parseInt(e.dataset.cornerRadius,10)||0))}),e}function bt(e){return y(e,(function(t){return!g(e,(function(e){return e!==t&&xt(t,e)}))}))}function xt(e,t){if(t){if(e===t)return t;if(e.parent)return xt(e.parent,t)}}function wt(e,t,n){var i=!n||-1===e.indexOf(t);return i&&e.push(t),i}function _t(e,t,n){n=n||0,c(e)||(e=[e]),b(e,(function(e,i){var r=t(e,i,n);c(r)&&r.length&&_t(r,t,n+1)}))}function Ot(e,t){return function(e,t,n){var i=[],r=[];return _t(e,(function(e,o,s){wt(i,e,t);var a=e.children;if((-1===n||s<n)&&a&&wt(r,a,t))return a})),i}(e,!t,-1)}function Et(e,t){var n,i,r,o;return t=!!t,c(e)||(e=[e]),b(e,(function(e){var s=e;e.waypoints&&!t&&(s=Et(e.waypoints,!0));var a=s.x,l=s.y,c=s.height||0,h=s.width||0;(a<n||void 0===n)&&(n=a),(l<i||void 0===i)&&(i=l),(a+h>r||void 0===r)&&(r=a+h),(l+c>o||void 0===o)&&(o=l+c)})),{x:n,y:i,height:o-i,width:r-n}}function kt(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function St(e){return!(!e||!e.isFrame)}function Ct(e,t){return I({},e||{},t||{})}ut.prototype.canRender=function(e){},ut.prototype.drawShape=function(e,t){},ut.prototype.drawConnection=function(e,t){},ut.prototype.getShapePath=function(e){},ut.prototype.getConnectionPath=function(e){};var Pt=1;function $t(e,t){ut.call(this,e,Pt),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=t.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}e($t,ut),$t.prototype.canRender=function(){return!0},$t.prototype.drawShape=function(e,t,n){var i=Ie("rect");return Ae(i,{x:0,y:0,width:t.width||0,height:t.height||0}),St(t)?Ae(i,I({},this.FRAME_STYLE,n||{})):Ae(i,I({},this.SHAPE_STYLE,n||{})),Se(e,i),i},$t.prototype.drawConnection=function(e,t,n){var i=vt(t.waypoints,I({},this.CONNECTION_STYLE,n||{}));return Se(e,i),i},$t.prototype.getShapePath=function(e){var t=e.x,n=e.y,i=e.width;return pt([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])},$t.prototype.getConnectionPath=function(e){var t,n,i=e.waypoints,r=[];for(t=0;n=i[t];t++)n=n.original||n,r.push([0===t?"M":"L",n.x,n.y]);return pt(r)},$t.$inject=["eventBus","styles"];var At={__init__:["defaultRenderer"],defaultRenderer:["type",$t],styles:["type",function(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},t=this;this.cls=function(e,t,n){return I(this.style(t,n),{class:e})},this.style=function(t,n){c(t)||n||(n=t,t=[]);var i=w(t,(function(t,n){return I(t,e[n]||{})}),{});return n?I(i,n):i},this.computeStyle=function(e,n,i){return c(n)||(i=n,n=[]),t.style(n||[],I({},i,e||{}))}}]};function Rt(e,t){if(!e||!t)return-1;var n=e.indexOf(t);return-1!==n&&e.splice(n,1),n}function Tt(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)}}function Mt(e,t){return e&&t?e.indexOf(t):-1}function Dt(e,t){return e&&t?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):-1}function Bt(e,t,n,i){if(void 0===i&&(i=5),!e||!t||!n)return!1;var r=(t.x-e.x)*(n.y-e.y)-(t.y-e.y)*(n.x-e.x),o=Dt(e,t);return Math.abs(r/o)<=i}var Lt=2;function Nt(e,t){var n=Array.from(arguments).flat();const i={x:"v",y:"h"};for(const[e,t]of Object.entries(i))if(jt(e,n))return t;return!1}function jt(e,t){const n=t[0];return _(t,(function(t){return Math.abs(n[e]-t[e])<=Lt}))}function zt(e,t,n){return n=n||0,e.x>t.x-n&&e.y>t.y-n&&e.x<t.x+t.width+n&&e.y<t.y+t.height+n}function It(e,t){return{x:Math.round(e.x+(t.x-e.x)/2),y:Math.round(e.y+(t.y-e.y)/2)}}function Xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qt(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})})),n}var Ft=/,?([a-z]),?/gi,Vt=parseFloat,qt=Math,Ht=qt.PI,Wt=qt.min,Yt=qt.max,Gt=qt.pow,Ut=qt.abs,Zt=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi,Kt=/(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi,Jt=Array.isArray||function(e){return e instanceof Array};function en(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function tn(e){if("function"==typeof e||Object(e)!==e)return e;var t=new e.constructor;for(var n in e)en(e,n)&&(t[n]=tn(e[n]));return t}function nn(e){var t=nn.ps=nn.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout((function(){for(var n in t)en(t,n)&&n!=e&&(t[n].sleep--,!t[n].sleep&&delete t[n])})),t[e]}function rn(e,t,n,i){return 1===arguments.length&&(t=e.y,n=e.width,i=e.height,e=e.x),{x:e,y:t,width:n,height:i,x2:e+n,y2:t+i}}function on(){return this.join(",").replace(Ft,"$1")}function sn(e){var t=tn(e);return t.toString=on,t}function an(e,t,n,i,r,o,s,a,l){var c=1-l,h=Gt(c,3),u=Gt(c,2),p=l*l*l,d=h*t+3*u*l*i+3*c*l*l*o+p*a;return{x:dn(h*e+3*u*l*n+3*c*l*l*r+p*s),y:dn(d)}}function ln(e){var t=xn.apply(null,e);return rn(t.x0,t.y0,t.x1-t.x0,t.y1-t.y0)}function cn(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function hn(e,t,n,i,r){return e*(e*(-3*t+9*n-9*i+3*r)+6*t-12*n+6*i)-3*t+3*n}function un(e,t,n,i,r,o,s,a,l){null==l&&(l=1);for(var c=(l=l>1?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],u=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,d=0;d<12;d++){var f=c*h[d]+c,m=hn(f,e,n,r,s),g=hn(f,t,i,o,a),v=m*m+g*g;p+=u[d]*qt.sqrt(v)}return c*p}function pn(e,t,n,i,r,o,s,a){if(!(Yt(e,n)<Wt(r,s)||Wt(e,n)>Yt(r,s)||Yt(t,i)<Wt(o,a)||Wt(t,i)>Yt(o,a))){var l=(e*i-t*n)*(o-a)-(t-i)*(r*a-o*s),c=(e-n)*(o-a)-(t-i)*(r-s);if(c){var h=dn(((e*i-t*n)*(r-s)-(e-n)*(r*a-o*s))/c),u=dn(l/c),p=+h.toFixed(2),d=+u.toFixed(2);if(!(p<+Wt(e,n).toFixed(2)||p>+Yt(e,n).toFixed(2)||p<+Wt(r,s).toFixed(2)||p>+Yt(r,s).toFixed(2)||d<+Wt(t,i).toFixed(2)||d>+Yt(t,i).toFixed(2)||d<+Wt(o,a).toFixed(2)||d>+Yt(o,a).toFixed(2)))return{x:h,y:u}}}}function dn(e){return Math.round(1e11*e)/1e11}function fn(e,t,n){if(!function(e,t){return e=rn(e),cn(t=rn(t),e.x,e.y)||cn(t,e.x2,e.y)||cn(t,e.x,e.y2)||cn(t,e.x2,e.y2)||cn(e,t.x,t.y)||cn(e,t.x2,t.y)||cn(e,t.x,t.y2)||cn(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)}(ln(e),ln(t)))return n?0:[];for(var i=un.apply(0,e),r=un.apply(0,t),o=gn(e)?1:~~(i/5)||1,s=gn(t)?1:~~(r/5)||1,a=[],l=[],c={},h=n?0:[],u=0;u<o+1;u++){var p=an.apply(0,e.concat(u/o));a.push({x:p.x,y:p.y,t:u/o})}for(u=0;u<s+1;u++)p=an.apply(0,t.concat(u/s)),l.push({x:p.x,y:p.y,t:u/s});for(u=0;u<o;u++)for(var d=0;d<s;d++){var f,m=a[u],g=a[u+1],v=l[d],y=l[d+1],b=Ut(g.x-m.x)<.01?"y":"x",x=Ut(y.x-v.x)<.01?"y":"x",w=pn(m.x,m.y,g.x,g.y,v.x,v.y,y.x,y.y);if(w){if(c[f=w.x.toFixed(9)+"#"+w.y.toFixed(9)])continue;c[f]=!0;var _=m.t+Ut((w[b]-m[b])/(g[b]-m[b]))*(g.t-m.t),O=v.t+Ut((w[x]-v[x])/(y[x]-v[x]))*(y.t-v.t);_>=0&&_<=1&&O>=0&&O<=1&&(n?h++:h.push({x:w.x,y:w.y,t1:_,t2:O}))}}return h}function mn(e){var t=nn(e);if(t.abs)return sn(t.abs);if(Jt(e)&&Jt(e&&e[0])||(e=function(e){if(!e)return null;var t=nn(e);if(t.arr)return tn(t.arr);var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=[];return Jt(e)&&Jt(e[0])&&(i=tn(e)),i.length||String(e).replace(Zt,(function(e,t,r){var o=[],s=t.toLowerCase();for(r.replace(Kt,(function(e,t){t&&o.push(+t)})),"m"==s&&o.length>2&&(i.push([t].concat(o.splice(0,2))),s="l",t="m"==t?"l":"L");o.length>=n[s]&&(i.push([t].concat(o.splice(0,n[s]))),n[s]););})),i.toString=nn.toString,t.arr=tn(i),i}(e)),!e||!e.length)return[["M",0,0]];var n,i=[],r=0,o=0,s=0,a=0,l=0;"M"==e[0][0]&&(s=r=+e[0][1],a=o=+e[0][2],l++,i[0]=["M",r,o]);for(var c,h,u=l,p=e.length;u<p;u++){if(i.push(c=[]),(n=(h=e[u])[0])!=n.toUpperCase())switch(c[0]=n.toUpperCase(),c[0]){case"A":c[1]=h[1],c[2]=h[2],c[3]=h[3],c[4]=h[4],c[5]=h[5],c[6]=+h[6]+r,c[7]=+h[7]+o;break;case"V":c[1]=+h[1]+o;break;case"H":c[1]=+h[1]+r;break;case"M":s=+h[1]+r,a=+h[2]+o;default:for(var d=1,f=h.length;d<f;d++)c[d]=+h[d]+(d%2?r:o)}else for(var m=0,g=h.length;m<g;m++)c[m]=h[m];switch(n=n.toUpperCase(),c[0]){case"Z":r=+s,o=+a;break;case"H":r=c[1];break;case"V":o=c[1];break;case"M":s=c[c.length-2],a=c[c.length-1];default:r=c[c.length-2],o=c[c.length-1]}}return i.toString=on,t.abs=sn(i),i}function gn(e){return e[0]===e[2]&&e[1]===e[3]&&e[4]===e[6]&&e[5]===e[7]}function vn(e,t,n,i){return[e,t,n,i,n,i]}function yn(e,t,n,i,r,o){var s=1/3,a=2/3;return[s*e+a*n,s*t+a*i,s*r+a*n,s*o+a*i,r,o]}function bn(e,t,n,i,r,o,s,a,l,c){var h,u=120*Ht/180,p=Ht/180*(+r||0),d=[],f=function(e){return function t(){var n=Array.prototype.slice.call(arguments,0),i=n.join("␀"),r=t.cache=t.cache||{},o=t.count=t.count||[];return en(r,i)?(function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return e.push(e.splice(n,1)[0])}(o,i),r[i]):(o.length>=1e3&&delete r[o.shift()],o.push(i),r[i]=e.apply(0,n),r[i])}}((function(e,t,n){return{x:e*qt.cos(n)-t*qt.sin(n),y:e*qt.sin(n)+t*qt.cos(n)}}));if(c)O=c[0],E=c[1],w=c[2],_=c[3];else{e=(h=f(e,t,-p)).x,t=h.y;var m=(e-(a=(h=f(a,l,-p)).x))/2,g=(t-(l=h.y))/2,v=m*m/(n*n)+g*g/(i*i);v>1&&(n*=v=qt.sqrt(v),i*=v);var y=n*n,b=i*i,x=(o==s?-1:1)*qt.sqrt(Ut((y*b-y*g*g-b*m*m)/(y*g*g+b*m*m))),w=x*n*g/i+(e+a)/2,_=x*-i*m/n+(t+l)/2,O=qt.asin(((t-_)/i).toFixed(9)),E=qt.asin(((l-_)/i).toFixed(9));(O=e<w?Ht-O:O)<0&&(O=2*Ht+O),(E=a<w?Ht-E:E)<0&&(E=2*Ht+E),s&&O>E&&(O-=2*Ht),!s&&E>O&&(E-=2*Ht)}var k=E-O;if(Ut(k)>u){var S=E,C=a,P=l;E=O+u*(s&&E>O?1:-1),d=bn(a=w+n*qt.cos(E),l=_+i*qt.sin(E),n,i,r,0,s,C,P,[E,S,w,_])}k=E-O;var $=qt.cos(O),A=qt.sin(O),R=qt.cos(E),T=qt.sin(E),M=qt.tan(k/4),D=4/3*n*M,B=4/3*i*M,L=[e,t],N=[e+D*A,t-B*$],j=[a+D*T,l-B*R],z=[a,l];if(N[0]=2*L[0]-N[0],N[1]=2*L[1]-N[1],c)return[N,j,z].concat(d);for(var I=[],X=0,Q=(d=[N,j,z].concat(d).join().split(",")).length;X<Q;X++)I[X]=X%2?f(d[X-1],d[X],p).y:f(d[X],d[X+1],p).x;return I}function xn(e,t,n,i,r,o,s,a){for(var l,c,h,u,p,d,f,m,g=[],v=[[],[]],y=0;y<2;++y)if(0==y?(c=6*e-12*n+6*r,l=-3*e+9*n-9*r+3*s,h=3*n-3*e):(c=6*t-12*i+6*o,l=-3*t+9*i-9*o+3*a,h=3*i-3*t),Ut(l)<1e-12){if(Ut(c)<1e-12)continue;0<(u=-h/c)&&u<1&&g.push(u)}else f=c*c-4*h*l,m=qt.sqrt(f),f<0||(0<(p=(-c+m)/(2*l))&&p<1&&g.push(p),0<(d=(-c-m)/(2*l))&&d<1&&g.push(d));for(var b,x=g.length,w=x;x--;)b=1-(u=g[x]),v[0][x]=b*b*b*e+3*b*b*u*n+3*b*u*u*r+u*u*u*s,v[1][x]=b*b*b*t+3*b*b*u*i+3*b*u*u*o+u*u*u*a;return v[0][w]=e,v[1][w]=t,v[0][w+1]=s,v[1][w+1]=a,v[0].length=v[1].length=w+2,{x0:Wt.apply(0,v[0]),y0:Wt.apply(0,v[1]),x1:Yt.apply(0,v[0]),y1:Yt.apply(0,v[1])}}function wn(e){var t=nn(e);if(t.curve)return sn(t.curve);for(var n=mn(e),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},r=function(e,t,n){var i,r;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"].concat(bn.apply(0,[t.x,t.y].concat(e.slice(1))));break;case"S":"C"==n||"S"==n?(i=2*t.x-t.bx,r=2*t.y-t.by):(i=t.x,r=t.y),e=["C",i,r].concat(e.slice(1));break;case"T":"Q"==n||"T"==n?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=["C"].concat(yn(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"].concat(yn(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"].concat(vn(t.x,t.y,e[1],e[2]));break;case"H":e=["C"].concat(vn(t.x,t.y,e[1],t.y));break;case"V":e=["C"].concat(vn(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"].concat(vn(t.x,t.y,t.X,t.Y))}return e},o=function(e,t){if(e[t].length>7){e[t].shift();for(var i=e[t];i.length;)s[t]="A",e.splice(t++,0,["C"].concat(i.splice(0,6)));e.splice(t,1),h=n.length}},s=[],a="",l="",c=0,h=n.length;c<h;c++){n[c]&&(a=n[c][0]),"C"!=a&&(s[c]=a,c&&(l=s[c-1])),n[c]=r(n[c],i,l),"A"!=s[c]&&"C"==a&&(s[c]="C"),o(n,c);var u=n[c],p=u.length;i.x=u[p-2],i.y=u[p-1],i.bx=Vt(u[p-4])||i.x,i.by=Vt(u[p-3])||i.y}return t.curve=sn(n),n}var _n=function(e,t,n){e=wn(e),t=wn(t);for(var i,r,o,s,a,l,c,h,u,p,d=n?0:[],f=0,m=e.length;f<m;f++){var g=e[f];if("M"==g[0])i=a=g[1],r=l=g[2];else{"C"==g[0]?(u=[i,r].concat(g.slice(1)),i=u[6],r=u[7]):(u=[i,r,i,r,a,l,a,l],i=a,r=l);for(var v=0,y=t.length;v<y;v++){var b=t[v];if("M"==b[0])o=c=b[1],s=h=b[2];else{"C"==b[0]?(p=[o,s].concat(b.slice(1)),o=p[6],s=p[7]):(p=[o,s,o,s,c,h,c,h],o=c,s=h);var x=fn(u,p,n);if(n)d+=x;else{for(var w=0,_=x.length;w<_;w++)x[w].segment1=f,x[w].segment2=v,x[w].bez1=u,x[w].bez2=p;d=d.concat(x)}}}}}return d},On=Xt(_n);function En(e){return h(e)&&m(e,"waypoints")}function kn(e){return h(e)&&m(e,"labelTarget")}function Sn(e){return{x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height)}}function Cn(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function Pn(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function $n(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function An(e){for(var t=e.waypoints,n=t.reduce((function(e,n,i){var r=t[i-1];if(r){var o=e[e.length-1],s=o&&o.endLength||0,a=function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}(r,n);e.push({start:r,end:n,startLength:s,endLength:s+a,length:a})}return e}),[]),i=n.reduce((function(e,t){return e+t.length}),0),r=i/2,o=0,s=n[o];s.endLength<r;)s=n[++o];var a=(r-s.startLength)/s.length;return{x:s.start.x+(s.end.x-s.start.x)*a,y:s.start.y+(s.end.y-s.start.y)*a}}function Rn(e){return En(e)?An(e):Cn({x:(t=e).x+(t.width||0)/2,y:t.y+(t.height||0)/2});var t}function Tn(e,t,n){h(n=n||0)||(n={x:n,y:n});var i=Pn(e),r=Pn(t),o=i.bottom+n.y<=r.top,s=i.left-n.x>=r.right,a=i.top-n.y>=r.bottom,l=o?"top":a?"bottom":null,c=i.right+n.x<=r.left?"left":s?"right":null;return c&&l?l+"-"+c:c||l||"intersect"}function Mn(e,t,n){var i=function(e,t){return On(e,t)}(e,t);return 1===i.length||2===i.length&&Dt(i[0],i[1])<1?Cn(i[0]):i.length>1?(i=R(i,(function(e){var t=Math.floor(100*e.t2)||1;return t=((t=100-t)<10?"0":"")+t,e.segment2+"#"+t})),Cn(i[n?0:i.length-1])):null}function Dn(e,t){return Math.round(e*t)/t}function Bn(e){return u(e)?e+"px":e}function Ln(e,t,n){const i=Ie("g");Te(i).add(t);const r=void 0!==n?n:e.childNodes.length-1;return e.insertBefore(i,e.childNodes[r]||null),i}const Nn={shape:["x","y","width","height"],connection:["waypoints"]};function jn(e,t,n,i){this._eventBus=t,this._elementRegistry=i,this._graphicsFactory=n,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._init(e||{})}function zn(e,t){const n="matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")";e.setAttribute("transform",n)}jn.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],jn.prototype._init=function(e){const t=this._eventBus,n=this._container=function(e){const t=(e=I({},{width:"100%",height:"100%"},e)).container||document.body,n=document.createElement("div");return n.setAttribute("class","djs-container djs-parent"),J(n,{position:"relative",overflow:"hidden",width:Bn(e.width),height:Bn(e.height)}),t.appendChild(n),n}(e),i=this._svg=Ie("svg");Ae(i,{width:"100%",height:"100%"}),Se(n,i);const r=this._viewport=Ln(i,"viewport");e.deferUpdate&&(this._viewboxChanged=N(z(this._viewboxChanged,this),300)),t.on("diagram.init",(()=>{t.fire("canvas.init",{svg:i,viewport:r})})),t.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],(()=>{delete this._cachedViewbox})),t.on("diagram.destroy",500,this._destroy,this),t.on("diagram.clear",500,this._clear,this)},jn.prototype._destroy=function(){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});const e=this._container.parentNode;e&&e.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},jn.prototype._clear=function(){this._elementRegistry.getAll().forEach((e=>{const t=kt(e);"root"===t?this.removeRootElement(e):this._removeElement(e,t)})),this._planes=[],this._rootElement=null,delete this._cachedViewbox},jn.prototype.getDefaultLayer=function(){return this.getLayer("base",0)},jn.prototype.getLayer=function(e,t){if(!e)throw new Error("must specify a name");let n=this._layers[e];if(n||(n=this._layers[e]=this._createLayer(e,t)),void 0!==t&&n.index!==t)throw new Error("layer <"+e+"> already created at index <"+t+">");return n.group},jn.prototype._getChildIndex=function(e){return w(this._layers,(function(t,n){return n.visible&&e>=n.index&&t++,t}),0)},jn.prototype._createLayer=function(e,t){void 0===t&&(t=1);const n=this._getChildIndex(t);return{group:Ln(this._viewport,"layer-"+e,n),index:t,visible:!0}},jn.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const n=this._viewport,i=t.group,r=t.index;if(t.visible)return i;const o=this._getChildIndex(r);return n.insertBefore(i,n.childNodes[o]||null),t.visible=!0,i},jn.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const n=t.group;return t.visible?(De(n),t.visible=!1,n):n},jn.prototype._removeLayer=function(e){const t=this._layers[e];t&&(delete this._layers[e],De(t.group))},jn.prototype.getActiveLayer=function(){const e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null},jn.prototype.findRoot=function(e){if("string"==typeof e&&(e=this._elementRegistry.get(e)),!e)return;const t=this._findPlaneForRoot(function(e){for(;e.parent;)e=e.parent;return e}(e))||{};return t.rootElement},jn.prototype.getRootElements=function(){return this._planes.map((function(e){return e.rootElement}))},jn.prototype._findPlaneForRoot=function(e){return g(this._planes,(function(t){return t.rootElement===e}))},jn.prototype.getContainer=function(){return this._container},jn.prototype._updateMarker=function(e,t,n){let i;e.id||(e=this._elementRegistry.get(e)),i=this._elementRegistry._elements[e.id],i&&(b([i.gfx,i.secondaryGfx],(function(e){e&&(n?Te(e).add(t):Te(e).remove(t))})),this._eventBus.fire("element.marker.update",{element:e,gfx:i.gfx,marker:t,add:!!n}))},jn.prototype.addMarker=function(e,t){this._updateMarker(e,t,!0)},jn.prototype.removeMarker=function(e,t){this._updateMarker(e,t,!1)},jn.prototype.hasMarker=function(e,t){e.id||(e=this._elementRegistry.get(e));return Te(this.getGraphics(e)).has(t)},jn.prototype.toggleMarker=function(e,t){this.hasMarker(e,t)?this.removeMarker(e,t):this.addMarker(e,t)},jn.prototype.getRootElement=function(){const e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))},jn.prototype.addRootElement=function(e){const t=this._rootsIdx++;e||(e={id:"__implicitroot_"+t,children:[],isImplicit:!0});const n=e.layer="root-"+t;this._ensureValid("root",e);const i=this.getLayer(n,0);return this.hideLayer(n),this._addRoot(e,i),this._planes.push({rootElement:e,layer:i}),e},jn.prototype.removeRootElement=function(e){"string"==typeof e&&(e=this._elementRegistry.get(e));if(this._findPlaneForRoot(e))return this._removeRoot(e),this._removeLayer(e.layer),this._planes=this._planes.filter((function(t){return t.rootElement!==e})),this._rootElement===e&&(this._rootElement=null),e},jn.prototype.setRootElement=function(e){if(e===this._rootElement)return;let t;if(!e)throw new Error("rootElement required");return t=this._findPlaneForRoot(e),t||(e=this.addRootElement(e)),this._setRoot(e),e},jn.prototype._removeRoot=function(e){const t=this._elementRegistry,n=this._eventBus;n.fire("root.remove",{element:e}),n.fire("root.removed",{element:e}),t.remove(e)},jn.prototype._addRoot=function(e,t){const n=this._elementRegistry,i=this._eventBus;i.fire("root.add",{element:e}),n.add(e,t),i.fire("root.added",{element:e,gfx:t})},jn.prototype._setRoot=function(e,t){const n=this._rootElement;n&&(this._elementRegistry.updateGraphics(n,null,!0),this.hideLayer(n.layer)),e&&(t||(t=this._findPlaneForRoot(e).layer),this._elementRegistry.updateGraphics(e,this._svg,!0),this.showLayer(e.layer)),this._rootElement=e,this._eventBus.fire("root.set",{element:e})},jn.prototype._ensureValid=function(e,t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element <"+t.id+"> already exists");const n=Nn[e],i=_(n,(function(e){return void 0!==t[e]}));if(!i)throw new Error("must supply { "+n.join(", ")+" } with "+e)},jn.prototype._setParent=function(e,t,n){Tt(t.children,e,n),e.parent=t},jn.prototype._addElement=function(e,t,n,i){n=n||this.getRootElement();const r=this._eventBus,o=this._graphicsFactory;this._ensureValid(e,t),r.fire(e+".add",{element:t,parent:n}),this._setParent(t,n,i);const s=o.create(e,t,i);return this._elementRegistry.add(t,s),o.update(e,t,s),r.fire(e+".added",{element:t,gfx:s}),t},jn.prototype.addShape=function(e,t,n){return this._addElement("shape",e,t,n)},jn.prototype.addConnection=function(e,t,n){return this._addElement("connection",e,t,n)},jn.prototype._removeElement=function(e,t){const n=this._elementRegistry,i=this._graphicsFactory,r=this._eventBus;if(e=n.get(e.id||e))return r.fire(t+".remove",{element:e}),i.remove(e),Rt(e.parent&&e.parent.children,e),e.parent=null,r.fire(t+".removed",{element:e}),n.remove(e),e},jn.prototype.removeShape=function(e){return this._removeElement(e,"shape")},jn.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},jn.prototype.getGraphics=function(e,t){return this._elementRegistry.getGraphics(e,t)},jn.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},jn.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},jn.prototype.viewbox=function(e){if(void 0===e&&this._cachedViewbox)return this._cachedViewbox;const t=this._viewport,n=this.getSize();let i,r,o,s,a,l,c;return e?(this._changeViewbox((function(){a=Math.min(n.width/e.width,n.height/e.height);const i=this._svg.createSVGMatrix().scale(a).translate(-e.x,-e.y);Je(t,i)})),e):(o=this._rootElement?this.getActiveLayer():null,i=o&&o.getBBox()||{},s=Je(t),r=s?s.matrix:function(e,t,n,i,r,o){var s=Qe().createSVGMatrix();switch(arguments.length){case 0:return s;case 1:return Fe(s,e);case 6:return Fe(s,{a:e,b:t,c:n,d:i,e:r,f:o})}}(),a=Dn(r.a,1e3),l=Dn(-r.e||0,1e3),c=Dn(-r.f||0,1e3),e=this._cachedViewbox={x:l?l/a:0,y:c?c/a:0,width:n.width/a,height:n.height/a,scale:a,inner:{width:i.width||0,height:i.height||0,x:i.x||0,y:i.y||0},outer:n})},jn.prototype.scroll=function(e){const t=this._viewport;let n=t.getCTM();return e&&this._changeViewbox((function(){e=I({dx:0,dy:0},e||{}),n=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(n),zn(t,n)})),{x:n.e,y:n.f}},jn.prototype.scrollToElement=function(e,t){let n=100;"string"==typeof e&&(e=this._elementRegistry.get(e));const i=this.findRoot(e);if(i!==this.getRootElement()&&this.setRootElement(i),i===e)return;t||(t={}),"number"==typeof t&&(n=t),t={top:t.top||n,right:t.right||n,bottom:t.bottom||n,left:t.left||n};const r=Et(e),o=Pn(r),s=this.viewbox(),a=this.zoom();let l,c;s.y+=t.top/a,s.x+=t.left/a,s.width-=(t.right+t.left)/a,s.height-=(t.bottom+t.top)/a;const h=Pn(s);if(r.width<s.width&&r.height<s.height){const e=Math.max(0,o.right-h.right),t=Math.min(0,o.left-h.left),n=Math.max(0,o.bottom-h.bottom),i=Math.min(0,o.top-h.top);l=e||t,c=n||i}else l=r.x-s.x,c=r.y-s.y;this.scroll({dx:-l*a,dy:-c*a})},jn.prototype.zoom=function(e,t){if(!e)return this.viewbox(e).scale;if("fit-viewport"===e)return this._fitViewport(t);let n,i;return this._changeViewbox((function(){"object"!=typeof t&&(n=this.viewbox().outer,t={x:n.width/2,y:n.height/2}),i=this._setZoom(e,t)})),Dn(i.a,1e3)},jn.prototype._fitViewport=function(e){const t=this.viewbox(),n=t.outer,i=t.inner;let r,o;return i.x>=0&&i.y>=0&&i.x+i.width<=n.width&&i.y+i.height<=n.height&&!e?o={x:0,y:0,width:Math.max(i.width+i.x,n.width),height:Math.max(i.height+i.y,n.height)}:(r=Math.min(1,n.width/i.width,n.height/i.height),o={x:i.x+(e?i.width/2-n.width/r/2:0),y:i.y+(e?i.height/2-n.height/r/2:0),width:n.width/r,height:n.height/r}),this.viewbox(o),this.viewbox(!1).scale},jn.prototype._setZoom=function(e,t){const n=this._svg,i=this._viewport,r=n.createSVGMatrix(),o=n.createSVGPoint();let s,a,l,c,h;l=i.getCTM();const u=l.a;return t?(s=I(o,t),a=s.matrixTransform(l.inverse()),c=r.translate(a.x,a.y).scale(1/u*e).translate(-a.x,-a.y),h=l.multiply(c)):h=r.scale(e),zn(this._viewport,h),h},jn.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},jn.prototype.getAbsoluteBBox=function(e){const t=this.viewbox();let n;if(e.waypoints){n=this.getGraphics(e).getBBox()}else n=e;return{x:n.x*t.scale-t.x*t.scale,y:n.y*t.scale-t.y*t.scale,width:n.width*t.scale,height:n.height*t.scale}},jn.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var In="data-element-id";function Xn(e){this._elements={},this._eventBus=e}Xn.$inject=["eventBus"],Xn.prototype.add=function(e,t,n){var i=e.id;this._validateId(i),Ae(t,In,i),n&&Ae(n,In,i),this._elements[i]={element:e,gfx:t,secondaryGfx:n}},Xn.prototype.remove=function(e){var t=this._elements,n=e.id||e,i=n&&t[n];i&&(Ae(i.gfx,In,""),i.secondaryGfx&&Ae(i.secondaryGfx,In,""),delete t[n])},Xn.prototype.updateId=function(e,t){this._validateId(t),"string"==typeof e&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:t});var n=this.getGraphics(e),i=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,n,i)},Xn.prototype.updateGraphics=function(e,t,n){var i=e.id||e,r=this._elements[i];return n?r.secondaryGfx=t:r.gfx=t,t&&Ae(t,In,i),t},Xn.prototype.get=function(e){var t;t="string"==typeof e?e:e&&Ae(e,In);var n=this._elements[t];return n&&n.element},Xn.prototype.filter=function(e){var t=[];return this.forEach((function(n,i){e(n,i)&&t.push(n)})),t},Xn.prototype.find=function(e){for(var t=this._elements,n=Object.keys(t),i=0;i<n.length;i++){var r=t[n[i]],o=r.element;if(e(o,r.gfx))return o}},Xn.prototype.getAll=function(){return this.filter((function(e){return e}))},Xn.prototype.forEach=function(e){var t=this._elements;Object.keys(t).forEach((function(n){var i=t[n],r=i.element,o=i.gfx;return e(r,o)}))},Xn.prototype.getGraphics=function(e,t){var n=e.id||e,i=this._elements[n];return i&&(t?i.secondaryGfx:i.gfx)},Xn.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")};var Qn={exports:{}},Fn={};Fn.extend=function(e,t,n,i){var r=n.inverse;return Object.defineProperty(e,"remove",{value:function(e){var n=this.indexOf(e);return-1!==n&&(this.splice(n,1),t.unset(e,r,i)),e}}),Object.defineProperty(e,"contains",{value:function(e){return-1!==this.indexOf(e)}}),Object.defineProperty(e,"add",{value:function(e,n){var o=this.indexOf(e);if(void 0===n){if(-1!==o)return;n=this.length}-1!==o&&this.splice(o,1),this.splice(n,0,e),-1===o&&t.set(e,r,i)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e},Fn.isExtended=function(e){return!0===e.__refs_collection};var Vn=Fn;function qn(e,t,n){var i=Vn.extend(n[t.name]||[],e,t,n);Object.defineProperty(n,t.name,{enumerable:t.enumerable,value:i}),i.length&&i.forEach((function(i){e.set(i,t.inverse,n)}))}function Hn(e,t){if(!(this instanceof Hn))return new Hn(e,t);e.inverse=t,t.inverse=e,this.props={},this.props[e.name]=e,this.props[t.name]=t}Hn.prototype.bind=function(e,t){if("string"==typeof t){if(!this.props[t])throw new Error("no property <"+t+"> in ref");t=this.props[t]}t.collection?qn(this,t,e):function(e,t,n){var i=t.inverse,r=n[t.name];Object.defineProperty(n,t.name,{configurable:t.configurable,enumerable:t.enumerable,get:function(){return r},set:function(t){if(t!==r){var o=r;r=null,o&&e.unset(o,i,n),r=t,e.set(r,i,n)}}})}(this,t,e)},Hn.prototype.ensureRefsCollection=function(e,t){var n=e[t.name];return Vn.isExtended(n)||qn(this,t,e),n},Hn.prototype.ensureBound=function(e,t){(function(e,t){return Object.prototype.hasOwnProperty.call(e,t.name||t)})(e,t)||this.bind(e,t)},Hn.prototype.unset=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(n):e[t.name]=void 0)},Hn.prototype.set=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).add(n):e[t.name]=n)};var Wn=Hn;Qn.exports=Wn,Qn.exports.Collection=Fn;var Yn=Xt(Qn.exports),Gn=new Yn({name:"children",enumerable:!0,collection:!0},{name:"parent"}),Un=new Yn({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),Zn=new Yn({name:"attachers",collection:!0},{name:"host"}),Kn=new Yn({name:"outgoing",collection:!0},{name:"source"}),Jn=new Yn({name:"incoming",collection:!0},{name:"target"});function ei(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var t=this.label,n=this.labels;!e&&t?n.remove(t):n.add(e,0)}}),Gn.bind(this,"parent"),Un.bind(this,"labels"),Kn.bind(this,"outgoing"),Jn.bind(this,"incoming")}function ti(){ei.call(this),Gn.bind(this,"children"),Zn.bind(this,"host"),Zn.bind(this,"attachers")}function ni(){ei.call(this),Gn.bind(this,"children")}function ii(){ti.call(this),Un.bind(this,"labelTarget")}function ri(){ei.call(this),Kn.bind(this,"source"),Jn.bind(this,"target")}e(ti,ei),e(ni,ti),e(ii,ti),e(ri,ei);var oi={connection:ri,shape:ti,label:ii,root:ni};function si(){this._uid=12}si.prototype.createRoot=function(e){return this.create("root",e)},si.prototype.createLabel=function(e){return this.create("label",e)},si.prototype.createShape=function(e){return this.create("shape",e)},si.prototype.createConnection=function(e){return this.create("connection",e)},si.prototype.create=function(e,t){return(t=I({},t||{})).id||(t.id=e+"_"+this._uid++),function(e,t){var n=oi[e];if(!n)throw new Error("unknown type: <"+e+">");return I(new n,t)}(e,t)};var ai="__fn",li=Array.prototype.slice;function ci(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}function hi(){}function ui(e){return e.childNodes[0]}function pi(e,t,n,i,r){var o=Ve();o.setTranslate(t,n);var s=Ve();s.setRotate(i||0,0,0);var a=Ve();a.setScale(r||1,r||1),Je(e,[o,s,a])}function di(e,t,n){var i=Ve();i.setTranslate(t,n),Je(e,i)}function fi(e,t){var n=Ve();n.setRotate(t,0,0),Je(e,n)}function mi(e,t){this._eventBus=e,this._elementRegistry=t}function gi(e,t,n){var i=n||t.firstChild;e!==i&&t.insertBefore(e,i)}ci.prototype.on=function(e,t,n,i){if(e=c(e)?e:[e],p(t)&&(i=n,n=t,t=1e3),!u(t))throw new Error("priority must be a number");var r=n;i&&((r=z(n,i))[ai]=n[ai]||n);var o=this;e.forEach((function(e){o._addListener(e,{priority:t,callback:r,next:null})}))},ci.prototype.once=function(e,t,n,i){var r=this;if(p(t)&&(i=n,n=t,t=1e3),!u(t))throw new Error("priority must be a number");function o(){o.__isTomb=!0;var t=n.apply(i,arguments);return r.off(e,o),t}o[ai]=n,this.on(e,t,o)},ci.prototype.off=function(e,t){e=c(e)?e:[e];var n=this;e.forEach((function(e){n._removeListener(e,t)}))},ci.prototype.createEvent=function(e){var t=new hi;return t.init(e),t},ci.prototype.fire=function(e,t){var n,i,r,o;if(o=li.call(arguments),"object"==typeof e&&(e=(t=e).type),!e)throw new Error("no event type specified");if(i=this._listeners[e]){n=t instanceof hi?t:this.createEvent(t),o[0]=n;var s=n.type;e!==s&&(n.type=e);try{r=this._invokeListeners(n,o,i)}finally{e!==s&&(n.type=s)}return void 0===r&&n.defaultPrevented&&(r=!1),r}},ci.prototype.handleError=function(e){return!1===this.fire("error",{error:e})},ci.prototype._destroy=function(){this._listeners={}},ci.prototype._invokeListeners=function(e,t,n){for(var i;n&&!e.cancelBubble;)i=this._invokeListener(e,t,n),n=n.next;return i},ci.prototype._invokeListener=function(e,t,n){var i;if(n.callback.__isTomb)return i;try{i=function(e,t){return e.apply(null,t)}(n.callback,t),void 0!==i&&(e.returnValue=i,e.stopPropagation()),!1===i&&e.preventDefault()}catch(e){if(!this.handleError(e))throw console.error("unhandled error in event listener",e),e}return i},ci.prototype._addListener=function(e,t){var n,i=this._getListeners(e);if(i){for(;i;){if(i.priority<t.priority)return t.next=i,void(n?n.next=t:this._setListeners(e,t));n=i,i=i.next}n.next=t}else this._setListeners(e,t)},ci.prototype._getListeners=function(e){return this._listeners[e]},ci.prototype._setListeners=function(e,t){this._listeners[e]=t},ci.prototype._removeListener=function(e,t){var n,i,r,o=this._getListeners(e);if(t)for(;o;)n=o.next,(r=o.callback)!==t&&r[ai]!==t||(i?i.next=n:this._setListeners(e,n)),i=o,o=n;else this._setListeners(e,null)},hi.prototype.stopPropagation=function(){this.cancelBubble=!0},hi.prototype.preventDefault=function(){this.defaultPrevented=!0},hi.prototype.init=function(e){I(this,e||{})},mi.$inject=["eventBus","elementRegistry"],mi.prototype._getChildrenContainer=function(e){var t,n=this._elementRegistry.getGraphics(e);return e.parent?(t=function(e){return e.parentNode.childNodes[1]}(n),t||(Te(t=Ie("g")).add("djs-children"),Se(n.parentNode,t))):t=n,t},mi.prototype._clear=function(e){var t=ui(e);return re(t),t},mi.prototype._createContainer=function(e,t,n,i){var r=Ie("g");Te(r).add("djs-group"),void 0!==n?gi(r,t,t.childNodes[n]):Se(t,r);var o=Ie("g");Te(o).add("djs-element"),Te(o).add("djs-"+e),i&&Te(o).add("djs-frame"),Se(r,o);var s=Ie("g");return Te(s).add("djs-visual"),Se(o,s),o},mi.prototype.create=function(e,t,n){var i=this._getChildrenContainer(t.parent);return this._createContainer(e,i,n,St(t))},mi.prototype.updateContainments=function(e){var t,n=this,i=this._elementRegistry;t=w(e,(function(e,t){return t.parent&&(e[t.parent.id]=t.parent),e}),{}),b(t,(function(e){var t=e.children;if(t){var r=n._getChildrenContainer(e);b(t.slice().reverse(),(function(e){gi(i.getGraphics(e).parentNode,r)}))}}))},mi.prototype.drawShape=function(e,t){return this._eventBus.fire("render.shape",{gfx:e,element:t})},mi.prototype.getShapePath=function(e){return this._eventBus.fire("render.getShapePath",e)},mi.prototype.drawConnection=function(e,t){return this._eventBus.fire("render.connection",{gfx:e,element:t})},mi.prototype.getConnectionPath=function(e){return this._eventBus.fire("render.getConnectionPath",e)},mi.prototype.update=function(e,t,n){if(t.parent){var i=this._clear(n);if("shape"===e)this.drawShape(i,t),di(n,t.x,t.y);else{if("connection"!==e)throw new Error("unknown type: "+e);this.drawConnection(i,t)}t.hidden?Ae(n,"display","none"):Ae(n,"display","block")}},mi.prototype.remove=function(e){De(this._elementRegistry.getGraphics(e).parentNode)};var vi={__depends__:[At],__init__:["canvas"],canvas:["type",jn],elementRegistry:["type",Xn],elementFactory:["type",si],eventBus:["type",ci],graphicsFactory:["type",mi]};function yi(e){return function(e){var t=new lt(e);return t.init(),t}([{config:["value",e=e||{}]},vi].concat(e.modules||[]))}function bi(e,t){this._injector=t=t||yi(e),this.get=t.get,this.invoke=t.invoke,this.get("eventBus").fire("diagram.init")}function xi(){}function wi(e,t){this.model=e,this.properties=t}bi.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},bi.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")},xi.prototype.get=function(e){return this.$model.properties.get(this,e)},xi.prototype.set=function(e,t){this.$model.properties.set(this,e,t)},wi.prototype.createType=function(e){var t=this.model,n=this.properties,i=Object.create(xi.prototype);b(e.properties,(function(e){e.isMany||void 0===e.default||(i[e.name]=e.default)})),n.defineModel(i,t),n.defineDescriptor(i,e);var r=e.ns.name;function o(e){n.define(this,"$type",{value:r,enumerable:!0}),n.define(this,"$attrs",{value:{}}),n.define(this,"$parent",{writable:!0}),b(e,z((function(e,t){this.set(t,e)}),this))}return o.prototype=i,o.hasType=i.$instanceOf=this.model.hasType,n.defineModel(o,t),n.defineDescriptor(o,e),o};var _i={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},Oi={String:function(e){return e},Boolean:function(e){return"true"===e},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function Ei(e,t){var n=Oi[e];return n?n(t):t}function ki(e){return!!_i[e]}function Si(e){return!!Oi[e]}function Ci(e,t){var n,i,r=e.split(/:/);if(1===r.length)n=e,i=t;else{if(2!==r.length)throw new Error("expected <prefix:localName> or <localName>, got "+e);n=r[1],i=r[0]}return{name:e=(i?i+":":"")+n,prefix:i,localName:n}}function Pi(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}function $i(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,b(e,z(this.registerPackage,this))}function Ai(e,t,n){var i=t[n];if(i in e)throw new Error("package with "+n+" <"+i+"> already defined")}function Ri(e){this.model=e}function Ti(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}function Mi(e){this.properties=new Ri(this),this.factory=new wi(this,this.properties),this.registry=new $i(e,this.properties),this.typeCache={}}Pi.prototype.build=function(){return F(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},Pi.prototype.addProperty=function(e,t,n){"boolean"==typeof t&&(n=t,t=void 0),this.addNamedProperty(e,!1!==n);var i=this.properties;void 0!==t?i.splice(t,0,e):i.push(e)},Pi.prototype.replaceProperty=function(e,t,n){var i=e.ns,r=this.properties,o=this.propertiesByName,s=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var a=r.indexOf(e);if(-1===a)throw new Error("property <"+i.name+"> not found in property list");r.splice(a,1),this.addProperty(t,n?void 0:a,s),o[i.name]=o[i.localName]=t},Pi.prototype.redefineProperty=function(e,t,n){var i=e.ns.prefix,r=t.split("#"),o=Ci(r[0],i),s=Ci(r[1],o.prefix).name,a=this.propertiesByName[s];if(!a)throw new Error("refined property <"+s+"> not found");this.replaceProperty(a,e,n),delete e.redefines},Pi.prototype.addNamedProperty=function(e,t){var n=e.ns,i=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),i[n.name]=i[n.localName]=e},Pi.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},Pi.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},Pi.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},Pi.prototype.assertNotDefined=function(e,t){var n=e.name,i=this.propertiesByName[n];if(i)throw new Error("property <"+n+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},Pi.prototype.hasProperty=function(e){return this.propertiesByName[e]},Pi.prototype.addTrait=function(e,t){var n=this.allTypesByName,i=this.allTypes,r=e.name;r in n||(b(e.properties,z((function(n){n=I({},n,{name:n.ns.localName,inherited:t}),Object.defineProperty(n,"definedBy",{value:e});var i=n.replaces,r=n.redefines;i||r?this.redefineProperty(n,i||r,i):(n.isBody&&this.setBodyProperty(n),n.isId&&this.setIdProperty(n),this.addProperty(n))}),this)),i.push(e),n[r]=e)},$i.prototype.getPackage=function(e){return this.packageMap[e]},$i.prototype.getPackages=function(){return this.packages},$i.prototype.registerPackage=function(e){e=I({},e);var t=this.packageMap;Ai(t,e,"prefix"),Ai(t,e,"uri"),b(e.types,z((function(t){this.registerType(t,e)}),this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},$i.prototype.registerType=function(e,t){var n=Ci((e=I({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:I(e.meta||{})})).name,t.prefix),i=n.name,r={};b(e.properties,z((function(e){var t=Ci(e.name,n.prefix),i=t.name;ki(e.type)||(e.type=Ci(e.type,t.prefix).name),I(e,{ns:t,name:i}),r[i]=e}),this)),I(e,{ns:n,name:i,propertiesByName:r}),b(e.extends,z((function(e){var t=this.typeMap[e];t.traits=t.traits||[],t.traits.push(i)}),this)),this.definePackage(e,t),this.typeMap[i]=e},$i.prototype.mapTypes=function(e,t,n){var i=ki(e.name)?{name:e.name}:this.typeMap[e.name],r=this;function o(e){return s(e,!0)}function s(n,i){var o=Ci(n,ki(n)?"":e.prefix);r.mapTypes(o,t,i)}if(!i)throw new Error("unknown type <"+e.name+">");b(i.superClass,n?o:s),t(i,!n),b(i.traits,o)},$i.prototype.getEffectiveDescriptor=function(e){var t=Ci(e),n=new Pi(t);this.mapTypes(t,(function(e,t){n.addTrait(e,t)}));var i=n.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i},$i.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})},Ri.prototype.set=function(e,t,n){if(!d(t)||!t.length)throw new TypeError("property name must be a non-empty string");var i=this.model.getPropertyDescriptor(e,t),r=i&&i.name;void 0===n?i?delete e[r]:delete e.$attrs[t]:i?r in e?e[r]=n:Ti(e,i,n):e.$attrs[t]=n},Ri.prototype.get=function(e,t){var n=this.model.getPropertyDescriptor(e,t);if(!n)return e.$attrs[t];var i=n.name;return!e[i]&&n.isMany&&Ti(e,n,[]),e[i]},Ri.prototype.define=function(e,t,n){if(!n.writable){var i=n.value;delete(n=I({},n,{get:function(){return i}})).value}Object.defineProperty(e,t,n)},Ri.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},Ri.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},Mi.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)},Mi.prototype.getType=function(e){var t=this.typeCache,n=d(e)?e:e.ns.name,i=t[n];return i||(e=this.registry.getEffectiveDescriptor(n),i=t[n]=this.factory.createType(e)),i},Mi.prototype.createAny=function(e,t,n){var i=Ci(e),r={$type:e,$instanceOf:function(e){return e===this.$type}},o={name:e,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:t}};return this.properties.defineDescriptor(r,o),this.properties.defineModel(r,this),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),b(n,(function(e,t){h(e)&&void 0!==e.value?r[e.name]=e.value:r[t]=e})),r},Mi.prototype.getPackage=function(e){return this.registry.getPackage(e)},Mi.prototype.getPackages=function(){return this.registry.getPackages()},Mi.prototype.getElementDescriptor=function(e){return e.$descriptor},Mi.prototype.hasType=function(e,t){return void 0===t&&(t=e,e=this),t in e.$model.getElementDescriptor(e).allTypesByName},Mi.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},Mi.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var Di=String.fromCharCode,Bi=Object.prototype.hasOwnProperty,Li=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,Ni={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};function ji(e,t,n,i){return i?Bi.call(Ni,i)?Ni[i]:"&"+i+";":Di(t||parseInt(n,16))}function zi(e){return e.length>3&&-1!==e.indexOf("&")?e.replace(Li,ji):e}Object.keys(Ni).forEach((function(e){Ni[e.toUpperCase()]=Ni[e]}));var Ii="http://www.w3.org/2001/XMLSchema-instance",Xi="xsi",Qi="xsi:type",Fi="non-whitespace outside of root node";function Vi(e){return new Error(e)}function qi(e){return"missing namespace for prefix <"+e+">"}function Hi(e){return{get:e,enumerable:!0}}function Wi(e){var t,n={};for(t in e)n[t]=e[t];return n}function Yi(e){return e+"$uri"}function Gi(){return{line:0,column:0}}function Ui(e){throw e}function Zi(e){if(!this)return new Zi(e);var t,n,i,r,o,s,a,l,c,h=e&&e.proxy,u=Ui,p=Gi,d=!1,f=!1,m=null,g=!1;function v(e){e instanceof Error||(e=Vi(e)),m=e,u(e,p)}function y(e){o&&(e instanceof Error||(e=Vi(e)),o(e,p))}this.on=function(e,c){if("function"!=typeof c)throw Vi("required args <name, cb>");switch(e){case"openTag":n=c;break;case"text":t=c;break;case"closeTag":i=c;break;case"error":u=c;break;case"warn":o=c;break;case"cdata":r=c;break;case"attention":l=c;break;case"question":a=c;break;case"comment":s=c;break;default:throw Vi("unsupported event: "+e)}return this},this.ns=function(e){if(void 0===e&&(e={}),"object"!=typeof e)throw Vi("required args <nsMap={}>");var t,n={};for(t in e)n[t]=e[t];return n[Ii]=Xi,f=!0,c=n,this},this.parse=function(e){if("string"!=typeof e)throw Vi("required args <xml=string>");return m=null,function(e){var o,u,m,b,x,w,_,O,E,k,S,C=f?[]:null,P=f?function(e){var t,n,i={};for(t in e)i[n=e[t]]=n,i[Yi(n)]=t;return i}(c):null,$=[],A=0,R=!1,T=!1,M=0,D=0,B="",L=0;function N(){if(null!==S)return S;var e,t,n,i,r,o,s,a,l,h,u,p=f&&P.xmlns,m=f&&d?[]:null,g=L,v=B,b=v.length,x={},w={};e:for(;g<b;g++)if(l=!1,!(32===(h=v.charCodeAt(g))||h<14&&h>8)){for((h<65||h>122||h>90&&h<97)&&95!==h&&58!==h&&(y("illegal first char attribute name"),l=!0),u=g+1;u<b;u++)if(!((h=v.charCodeAt(u))>96&&h<123||h>64&&h<91||h>47&&h<59||46===h||45===h||95===h)){if(32===h||h<14&&h>8){y("missing attribute value"),g=u;continue e}if(61===h)break;y("illegal attribute name char"),l=!0}if("xmlns:xmlns"===(a=v.substring(g,u))&&(y("illegal declaration of xmlns"),l=!0),34===(h=v.charCodeAt(u+1)))-1===(u=v.indexOf('"',g=u+2))&&-1!==(u=v.indexOf("'",g))&&(y("attribute value quote missmatch"),l=!0);else if(39===h)-1===(u=v.indexOf("'",g=u+2))&&-1!==(u=v.indexOf('"',g))&&(y("attribute value quote missmatch"),l=!0);else for(y("missing attribute value quotes"),l=!0,u+=1;u<b&&!(32===(h=v.charCodeAt(u+1))||h<14&&h>8);u++);for(-1===u&&(y("missing closing quotes"),u=b,l=!0),l||(o=v.substring(g,u)),g=u;u+1<b&&!(32===(h=v.charCodeAt(u+1))||h<14&&h>8);u++)g===u&&(y("illegal character after attribute end"),l=!0);if(g=u+1,!l)if(a in w)y("attribute <"+a+"> already defined");else if(w[a]=!0,f)if(d){if(null!==(r="xmlns"===a?"xmlns":120===a.charCodeAt(0)&&"xmlns:"===a.substr(0,6)?a.substr(6):null)){if(e=zi(o),t=Yi(r),!(s=c[e])){if("xmlns"===r||t in P&&P[t]!==e)do{s="ns"+A++}while(void 0!==P[s]);else s=r;c[e]=s}P[r]!==s&&(i||(P=Wi(P),i=!0),P[r]=s,"xmlns"===r&&(P[Yi(s)]=e,p=s),P[t]=e),x[a]=o;continue}m.push(a,o)}else-1!==(h=a.indexOf(":"))?(n=P[a.substring(0,h)])?((a=p===n?a.substr(h+1):n+a.substr(h))===Qi&&(-1!==(h=o.indexOf(":"))?(n=o.substring(0,h),o=(n=P[n]||n)+o.substring(h)):o=p+":"+o),x[a]=o):y(qi(a.substring(0,h))):x[a]=o;else x[a]=o}if(d)for(g=0,b=m.length;g<b;g++){if(a=m[g++],o=m[g],-1!==(h=a.indexOf(":"))){if(!(n=P[a.substring(0,h)])){y(qi(a.substring(0,h)));continue}(a=p===n?a.substr(h+1):n+a.substr(h))===Qi&&(-1!==(h=o.indexOf(":"))?(n=o.substring(0,h),o=(n=P[n]||n)+o.substring(h)):o=p+":"+o)}x[a]=o}return S=x}function j(){for(var t,n,i=/(\r\n|\r|\n)/g,r=0,o=0,s=0,a=D;M>=s&&(t=i.exec(e))&&!((a=t[0].length+t.index)>M);)r+=1,s=a;return-1==M?(o=a,n=e.substring(D)):0===D?n=e.substring(D,M):(o=M-s,n=-1==D?e.substring(M):e.substring(M,D+1)),{data:n,line:r,column:o}}p=j,h&&(k=Object.create({},{name:Hi((function(){return O})),originalName:Hi((function(){return E})),attrs:Hi(N),ns:Hi((function(){return P}))}));for(;-1!==D;){if(-1===(M=60===e.charCodeAt(D)?D:e.indexOf("<",D)))return $.length?v("unexpected end of file"):0===D?v("missing start tag"):void(D<e.length&&e.substring(D).trim()&&y(Fi));if(D!==M)if($.length){if(t&&(t(e.substring(D,M),zi,p),g))return}else if(e.substring(D,M).trim()&&(y(Fi),g))return;if(33===(x=e.charCodeAt(M+1))){if(91===(b=e.charCodeAt(M+2))&&"CDATA["===e.substr(M+3,6)){if(-1===(D=e.indexOf("]]>",M)))return v("unclosed cdata");if(r&&(r(e.substring(M+9,D),p),g))return;D+=3;continue}if(45===b&&45===e.charCodeAt(M+3)){if(-1===(D=e.indexOf("--\x3e",M)))return v("unclosed comment");if(s&&(s(e.substring(M+4,D),zi,p),g))return;D+=3;continue}}if(63!==x){for(u=M+1;;u++){if(w=e.charCodeAt(u),isNaN(w))return D=-1,v("unclosed tag");if(34===w)u=-1!==(b=e.indexOf('"',u+1))?b:u;else if(39===w)u=-1!==(b=e.indexOf("'",u+1))?b:u;else if(62===w){D=u;break}}if(33!==x){if(S={},47===x){if(R=!1,T=!0,!$.length)return v("missing open tag");if(u=O=$.pop(),b=M+2+u.length,e.substring(M+2,b)!==u)return v("closing tag mismatch");for(;b<D;b++)if(!(32===(x=e.charCodeAt(b))||x>8&&x<14))return v("close tag")}else{if(47===e.charCodeAt(D-1)?(u=O=e.substring(M+1,D-1),R=!0,T=!0):(u=O=e.substring(M+1,D),R=!0,T=!1),!(x>96&&x<123||x>64&&x<91||95===x||58===x))return v("illegal first char nodeName");for(b=1,m=u.length;b<m;b++)if(!((x=u.charCodeAt(b))>96&&x<123||x>64&&x<91||x>47&&x<59||45===x||95===x||46==x)){if(32===x||x<14&&x>8){O=u.substring(0,b),S=null;break}return v("invalid nodeName")}T||$.push(O)}if(f){if(o=P,R&&(T||C.push(o),null===S&&(d=-1!==u.indexOf("xmlns",b))&&(L=b,B=u,N(),d=!1)),E=O,-1!==(x=O.indexOf(":"))){if(!(_=P[O.substring(0,x)]))return v("missing namespace on <"+E+">");O=O.substr(x+1)}else _=P.xmlns;_&&(O=_+":"+O)}if(R&&(L=b,B=u,n&&(h?n(k,zi,T,p):n(O,N,zi,T,p),g)))return;if(T){if(i&&(i(h?k:O,zi,R,p),g))return;f&&(P=R?o:C.pop())}D+=1}else{if(l&&(l(e.substring(M,D+1),zi,p),g))return;D+=1}}else{if(-1===(D=e.indexOf("?>",M)))return v("unclosed question");if(a&&(a(e.substring(M,D+2),p),g))return;D+=2}}}(e),p=Gi,g=!1,m},this.stop=function(){g=!0}}function Ki(e){return e.xml&&"lowerCase"===e.xml.tagAlias}var Ji={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},er="xsi:type";function tr(e){return e.xml&&e.xml.serialize}function nr(e){return tr(e)===er}function ir(e,t){return Ki(t)?e.prefix+":"+((n=e.localName).charAt(0).toUpperCase()+n.slice(1)):e.name;var n}function rr(e){return new Error(e)}function or(e){return e.$descriptor}function sr(e){I(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw rr("expected element");var t,n=this.elementsById,i=or(e).idProperty;if(i&&(t=e.get(i.name))){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(t))throw new Error("illegal ID <"+t+">");if(n[t])throw rr("duplicate ID <"+t+">");n[t]=e}},this.addWarning=function(e){this.warnings.push(e)}}function ar(){}function lr(){}function cr(){}function hr(e,t){this.property=e,this.context=t}function ur(e,t){this.element=t,this.propertyDesc=e}function pr(){}function dr(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}function fr(e,t,n){dr.call(this,e,t,n)}function mr(e,t,n){this.model=e,this.context=n}function gr(e){e instanceof Mi&&(e={model:e}),I(this,{lax:!1},e)}ar.prototype.handleEnd=function(){},ar.prototype.handleText=function(){},ar.prototype.handleNode=function(){},lr.prototype=Object.create(ar.prototype),lr.prototype.handleNode=function(){return this},cr.prototype=Object.create(ar.prototype),cr.prototype.handleText=function(e){this.body=(this.body||"")+e},hr.prototype=Object.create(cr.prototype),hr.prototype.handleNode=function(e){if(this.element)throw rr("expected no sub nodes");return this.element=this.createReference(e),this},hr.prototype.handleEnd=function(){this.element.id=this.body},hr.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}},ur.prototype=Object.create(cr.prototype),ur.prototype.handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=Ei(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)},pr.prototype=Object.create(cr.prototype),pr.prototype.handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t},dr.prototype=Object.create(pr.prototype),dr.prototype.addReference=function(e){this.context.addReference(e)},dr.prototype.handleText=function(e){if(!or(this.element).bodyProperty)throw rr("unexpected body text <"+e+">");cr.prototype.handleText.call(this,e)},dr.prototype.handleEnd=function(){var e=this.body,t=this.element,n=or(t).bodyProperty;n&&void 0!==e&&(e=Ei(n.type,e),t.set(n.name,e))},dr.prototype.createElement=function(e){var t,n=e.attributes,i=this.type,r=or(i),o=this.context,s=new i({}),a=this.model;return b(n,(function(e,n){var i=r.propertiesByName[n];i&&i.isReference?i.isMany?b(e.split(" "),(function(e){o.addReference({element:s,property:i.ns.name,id:e})})):o.addReference({element:s,property:i.ns.name,id:e}):(i?e=Ei(i.type,e):"xmlns"!==n&&(t=Ci(n,r.ns.prefix),a.getPackage(t.prefix)&&o.addWarning({message:"unknown attribute <"+n+">",element:s,property:n,value:e})),s.set(n,e))})),s},dr.prototype.getPropertyForNode=function(e){var t,n,i=Ci(e.name),r=this.type,o=this.model,s=or(r),a=i.name,l=s.propertiesByName[a];if(l&&!l.isAttr)return nr(l)&&(t=e.attributes[er])?(t=function(e,t){var n=Ci(e);return function(e,t){var n=e.name,i=e.localName,r=t.xml&&t.xml.typePrefix;return r&&0===i.indexOf(r)?e.prefix+":"+i.slice(r.length):n}(n,t.getPackage(n.prefix))}(t,o),I({},l,{effectiveType:or(n=o.getType(t)).name})):l;var c=o.getPackage(i.prefix);if(c){if(t=ir(i,c),n=o.getType(t),l=g(s.properties,(function(e){return!e.isVirtual&&!e.isReference&&!e.isAttribute&&n.hasType(e.type)})),l)return I({},l,{effectiveType:or(n).name})}else if(l=g(s.properties,(function(e){return!e.isReference&&!e.isAttribute&&"Element"===e.type})),l)return l;throw rr("unrecognized element <"+i.name+">")},dr.prototype.toString=function(){return"ElementDescriptor["+or(this.type).name+"]"},dr.prototype.valueHandler=function(e,t){return new ur(e,t)},dr.prototype.referenceHandler=function(e){return new hr(e,this.context)},dr.prototype.handler=function(e){return"Element"===e?new mr(this.model,e,this.context):new dr(this.model,e,this.context)},dr.prototype.handleChild=function(e){var t,n,i,r;if(t=this.getPropertyForNode(e),i=this.element,Si(n=t.effectiveType||t.type))return this.valueHandler(t,i);var o=(r=t.isReference?this.referenceHandler(t).handleNode(e):this.handler(n).handleNode(e)).element;return void 0!==o&&(t.isMany?i.get(t.name).push(o):i.set(t.name,o),t.isReference?(I(o,{element:i}),this.context.addReference(o)):o.$parent=i),r},fr.prototype=Object.create(dr.prototype),fr.prototype.createElement=function(e){var t=e.name,n=Ci(t),i=this.model,r=this.type,o=i.getPackage(n.prefix),s=o&&ir(n,o)||t;if(!r.hasType(s))throw rr("unexpected element <"+e.originalName+">");return dr.prototype.createElement.call(this,e)},mr.prototype=Object.create(pr.prototype),mr.prototype.createElement=function(e){var t=e.name,n=Ci(t).prefix,i=e.ns[n+"$uri"],r=e.attributes;return this.model.createAny(t,i,r)},mr.prototype.handleChild=function(e){var t=new mr(this.model,"Element",this.context).handleNode(e),n=this.element,i=t.element;return void 0!==i&&((n.$children=n.$children||[]).push(i),i.$parent=n),t},mr.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},gr.prototype.fromXML=function(e,t,n){var i=t.rootHandler;t instanceof dr?(i=t,t={}):"string"==typeof t?(i=this.handler(t),t={}):"string"==typeof i&&(i=this.handler(i));var r=this.model,o=this.lax,s=new sr(I({},t,{rootHandler:i})),a=new Zi({proxy:!0}),l=function(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}();function c(e,t,n){var i=t(),r=i.line,o=i.column,a=i.data;"<"===a.charAt(0)&&-1!==a.indexOf(" ")&&(a=a.slice(0,a.indexOf(" "))+">");var l="unparsable content "+(a?a+" ":"")+"detected\n\tline: "+r+"\n\tcolumn: "+o+"\n\tnested error: "+e.message;if(n)return s.addWarning({message:l,error:e}),!0;throw rr(l)}function h(e,t){return c(e,t,!0)}i.context=s,l.push(i);var u=/^<\?xml /i,p=/ encoding="([^"]+)"/i,d=/^utf-8$/i;function f(e,t){try{l.peek().handleText(e)}catch(e){h(e,t)}}var m=r.getPackages().reduce((function(e,t){return e[t.uri]=t.prefix,e}),{"http://www.w3.org/XML/1998/namespace":"xml"});return a.ns(m).on("openTag",(function(e,t,n,i){var r=e.attrs||{},s=Object.keys(r).reduce((function(e,n){var i=t(r[n]);return e[n]=i,e}),{});!function(e,t){var n=l.peek();try{l.push(n.handleNode(e))}catch(e){c(e,t,o)&&l.push(new lr)}}({name:e.name,originalName:e.originalName,attributes:s,ns:e.ns},i)})).on("question",(function(e){if(u.test(e)){var t=p.exec(e),n=t&&t[1];n&&!d.test(n)&&s.addWarning({message:"unsupported document encoding <"+n+">, falling back to UTF-8"})}})).on("closeTag",(function(){l.pop().handleEnd()})).on("cdata",f).on("text",(function(e,t,n){!function(e,t){e.trim()&&f(e,t)}(t(e),n)})).on("error",c).on("warn",h),new Promise((function(t,n){var r;try{a.parse(e),function(){var e,t,n=s.elementsById,i=s.references;for(e=0;t=i[e];e++){var r=t.element,o=n[t.id],a=or(r).propertiesByName[t.property];if(o||s.addWarning({message:"unresolved reference <"+t.id+">",element:t.element,property:t.property,value:t.id}),a.isMany){var l=r.get(a.name),c=l.indexOf(t);-1===c&&(c=l.length),o?l[c]=o:l.splice(c,1)}else r.set(a.name,o)}}()}catch(e){r=e}var o=i.element;r||o||(r=rr("failed to parse document as <"+i.type.$descriptor.name+">"));var l=s.warnings,c=s.references,h=s.elementsById;return r?(r.warnings=l,n(r)):t({rootElement:o,elementsById:h,references:c,warnings:l})}))},gr.prototype.handler=function(e){return new fr(this.model,e)};var vr='<?xml version="1.0" encoding="UTF-8"?>\n',yr=/<|>|'|"|&|\n\r|\n/g,br=/<|>|&/g;function xr(e){var t={},n={},i={},r=[],o=[];this.byUri=function(t){return n[t]||e&&e.byUri(t)},this.add=function(e,t){n[e.uri]=e,t?r.push(e):o.push(e),this.mapPrefix(e.prefix,e.uri)},this.uriByPrefix=function(e){return t[e||"xmlns"]},this.mapPrefix=function(e,n){t[e||"xmlns"]=n},this.getNSKey=function(e){return void 0!==e.prefix?e.uri+"|"+e.prefix:e.uri},this.logUsed=function(t){var n=t.uri,r=this.getNSKey(t);i[r]=this.byUri(n),e&&e.logUsed(t)},this.getUsed=function(e){var t=this;return[].concat(r,o).filter((function(e){var n=t.getNSKey(e);return i[n]}))}}function wr(e,t){return Ki(t)?function(e){return e.charAt(0).toLowerCase()+e.slice(1)}(e):e}function _r(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Or(e){return d(e)?e:(e.prefix?e.prefix+":":"")+e.localName}var Er={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},kr={"<":"lt",">":"gt","&":"amp"};function Sr(e,t,n){return(e=d(e)?e:""+e).replace(t,(function(e){return"&"+n[e]+";"}))}function Cr(e){this.tagName=e}function Pr(){}function $r(e){this.tagName=e}function Ar(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}function Rr(e,t){Ar.call(this,e,t)}function Tr(){this.value="",this.write=function(e){this.value+=e}}function Mr(e,t){var n=[""];this.append=function(t){return e.write(t),this},this.appendNewLine=function(){return t&&e.write("\n"),this},this.appendIndent=function(){return t&&e.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}function Dr(e){return e=I({format:!1,preamble:!0},e||{}),{toXML:function(t,n){var i=n||new Tr,r=new Mr(i,e.format);if(e.preamble&&r.append(vr),(new Ar).build(t).serializeTo(r),!n)return i.value}}}function Br(e,t){Mi.call(this,e,t)}Cr.prototype.build=function(e){return this.element=e,this},Cr.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"</"+this.tagName+">").appendNewLine()},Pr.prototype.serializeValue=Pr.prototype.serializeTo=function(e){e.append(this.escape?Sr(this.value,br,kr):this.value)},Pr.prototype.build=function(e,t){return this.value=t,"String"===e.type&&-1!==t.search(br)&&(this.escape=!0),this},_r($r,Pr),$r.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("</"+this.tagName+">").appendNewLine()},Ar.prototype.build=function(e){this.element=e;var t,n,i=e.$descriptor,r=this.propertyDescriptor,o=i.isGeneric;return t=o?this.parseGeneric(e):this.parseNsAttributes(e),this.ns=r?this.nsPropertyTagName(r):this.nsTagName(i),this.tagName=this.addTagName(this.ns),o||(n=function(e){return y(e.$descriptor.properties,(function(t){var n=t.name;if(t.isVirtual)return!1;if(!m(e,n))return!1;var i=e[n];return i!==t.default&&null!==i&&(!t.isMany||i.length)}))}(e),this.parseAttributes(y(n,(function(e){return e.isAttr}))),this.parseContainments(function(e){return y(e,(function(e){return!e.isAttr}))}(n))),this.parseGenericAttributes(e,t),this},Ar.prototype.nsTagName=function(e){return function(e,t){return t.isGeneric?I({localName:t.ns.localName},e):I({localName:wr(t.ns.localName,t.$pkg)},e)}(this.logNamespaceUsed(e.ns),e)},Ar.prototype.nsPropertyTagName=function(e){return function(e,t){return I({localName:t.ns.localName},e)}(this.logNamespaceUsed(e.ns),e)},Ar.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},Ar.prototype.nsAttributeName=function(e){var t;if(t=d(e)?Ci(e):e.ns,e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:t.localName}:I({localName:t.localName},n)},Ar.prototype.parseGeneric=function(e){var t=this,n=this.body,i=[];return b(e,(function(r,o){"$body"===o?n.push((new Pr).build({type:"String"},r)):"$children"===o?b(r,(function(e){n.push(new Ar(t).build(e))})):0!==o.indexOf("$")&&t.parseNsAttribute(e,o,r)&&i.push({name:o,value:r})})),i},Ar.prototype.parseNsAttribute=function(e,t,n){var i,r=e.$model,o=Ci(t);if("xmlns"===o.prefix&&(i={prefix:o.localName,uri:n}),o.prefix||"xmlns"!==o.localName||(i={uri:n}),!i)return{name:t,value:n};if(r&&r.getPackage(n))this.logNamespace(i,!0,!0);else{var s=this.logNamespaceUsed(i,!0);this.getNamespaces().logUsed(s)}},Ar.prototype.parseNsAttributes=function(e,t){var n=this,i=e.$attrs,r=[];return b(i,(function(t,i){var o=n.parseNsAttribute(e,i,t);o&&r.push(o)})),r},Ar.prototype.parseGenericAttributes=function(e,t){var n=this;b(t,(function(t){if(t.name!==er)try{n.addAttribute(n.nsAttributeName(t.name),t.value)}catch(n){console.warn("missing namespace information for ",t.name,"=",t.value,"on",e,n)}}))},Ar.prototype.parseContainments=function(e){var t=this,n=this.body,i=this.element;b(e,(function(e){var r=i.get(e.name),o=e.isReference;if(e.isMany||(r=[r]),e.isBody)n.push((new Pr).build(e,r[0]));else if(Si(e.type))b(r,(function(i){n.push(new $r(t.addTagName(t.nsPropertyTagName(e))).build(e,i))}));else if(o)b(r,(function(i){n.push(new Cr(t.addTagName(t.nsPropertyTagName(e))).build(i))}));else{var s=nr(e),a=function(e){return"property"===tr(e)}(e);b(r,(function(i){var r;r=s?new Rr(t,e):a?new Ar(t,e):new Ar(t),n.push(r.build(i))}))}}))},Ar.prototype.getNamespaces=function(e){var t,n=this.namespaces,i=this.parent;return n||(t=i&&i.getNamespaces(),e||!t?this.namespaces=n=new xr(t):n=t),n},Ar.prototype.logNamespace=function(e,t,n){var i=this.getNamespaces(n),r=e.uri,o=e.prefix;return i.byUri(r)&&!n||i.add(e,t),i.mapPrefix(o,r),e},Ar.prototype.logNamespaceUsed=function(e,t){var n,i,r,o=this.element.$model,s=this.getNamespaces(t),a=e.prefix,l=e.uri;if(!a&&!l)return{localName:e.localName};if(r=Ji[a]||o&&(o.getPackage(a)||{}).uri,!(l=l||r||s.uriByPrefix(a)))throw new Error("no namespace uri given for prefix <"+a+">");if(!(e=s.byUri(l))){for(n=a,i=1;s.uriByPrefix(n);)n=a+"_"+i++;e=this.logNamespace({prefix:n,uri:l},r===l)}return a&&s.mapPrefix(a,l),e},Ar.prototype.parseAttributes=function(e){var t=this,n=this.element;b(e,(function(e){var i=n.get(e.name);if(e.isReference)if(e.isMany){var r=[];b(i,(function(e){r.push(e.id)})),i=r.join(" ")}else i=i.id;t.addAttribute(t.nsAttributeName(e),i)}))},Ar.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),Or(e)},Ar.prototype.addAttribute=function(e,t){var n=this.attrs;d(t)&&(t=Sr(t,yr,Er));var i=v(n,(function(t){return t.name.localName===e.localName&&t.name.uri===e.uri&&t.name.prefix===e.prefix})),r={name:e,value:t};-1!==i?n.splice(i,1,r):n.push(r)},Ar.prototype.serializeAttributes=function(e){var t=this.attrs,n=this.namespaces;n&&(t=function(e){return e.getUsed().filter((function(e){return"xml"!==e.prefix})).map((function(e){return{name:"xmlns"+(e.prefix?":"+e.prefix:""),value:e.uri}}))}(n).concat(t)),b(t,(function(t){e.append(" ").append(Or(t.name)).append('="').append(t.value).append('"')}))},Ar.prototype.serializeTo=function(e){var t=this.body[0],n=t&&t.constructor!==Pr;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(t?">":" />"),t&&(n&&e.appendNewLine().indent(),b(this.body,(function(t){t.serializeTo(e)})),n&&e.unindent().appendIndent(),e.append("</"+this.tagName+">")),e.appendNewLine()},_r(Rr,Ar),Rr.prototype.parseNsAttributes=function(e){var t=Ar.prototype.parseNsAttributes.call(this,e),n=e.$descriptor;if(n.name===this.propertyDescriptor.type)return t;var i=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var r=e.$model.getPackage(i.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(er),(i.prefix?i.prefix+":":"")+o+n.ns.localName),t},Rr.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri},Br.prototype=Object.create(Mi.prototype),Br.prototype.fromXML=function(e,t,n){d(t)||(n=t,t="bpmn:Definitions");var i=new gr(I({model:this,lax:!0},n)),r=i.handler(t);return i.fromXML(e,r)},Br.prototype.toXML=function(e,t){var n=new Dr(t);return new Promise((function(t,i){try{return t({xml:n.toXML(e)})}catch(e){return i(e)}}))};var Lr={bpmn:{name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",prefix:"bpmn",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],enumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],xml:{tagAlias:"lowerCase",typePrefix:"t"}},bpmndi:{name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",prefix:"bpmndi",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],enumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[]},dc:{name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",prefix:"dc",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],associations:[]},di:{name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",prefix:"di",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],associations:[],xml:{tagAlias:"lowerCase"}},bioc:{name:"bpmn.io colors for BPMN",uri:"http://bpmn.io/schema/bpmn/biocolor/1.0",prefix:"bioc",types:[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]},color:{name:"BPMN in Color",uri:"http://www.omg.org/spec/BPMN/non-normative/color/1.0",prefix:"color",types:[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]}};function Nr(e,t){return new Br(I({},Lr,e),t)}function jr(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}function zr(e){return function(){if(!window.Promise)throw new Error("Promises is not supported in this environment. Please polyfill Promise.");var t=arguments.length;if(!(t>=1&&p(arguments[t-1])))return e.apply(this,arguments);var n=arguments[t-1];console.warn(new Error("Passing callbacks to "+e.name+" is deprecated and will be removed in a future major release. Please switch to promises: https://bpmn.io/l/moving-to-promises.html"));var i=Array.prototype.slice.call(arguments,0,-1);e.apply(this,i).then((function(e){var t=Object.keys(e)[0];return n(null,e[t])}),(function(e){return n(e,e.warnings)}))}}var Ir="Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472";function Xr(e){m(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(Ir)}})}function Qr(e,t){return e.$instanceOf(t)}function Fr(e,t){var n={},i=[],r={};function o(e,t){return function(n){e(n,t)}}function s(e){n[e.id]=e}function a(n,i){try{var o=r[n.id]&&function(n,i){if(n.gfx)throw new Error(t("already rendered {element}",{element:jr(n)}));return e.element(n,r[n.id],i)}(n,i);return s(n),o}catch(e){l(e.message,{element:n,error:e}),console.error(t("failed to import {element}",{element:jr(n)})),console.error(e)}}function l(t,n){e.error(t,n)}var c=this.registerDi=function(e){var n=e.bpmnElement;n?r[n.id]?l(t("multiple DI elements defined for {element}",{element:jr(n)}),{element:n}):(r[n.id]=e,Xr(n)):l(t("no bpmnElement referenced in {element}",{element:jr(e)}),{element:e})};function h(e){var t;t=e.plane,c(t),b(t.planeElement,u)}function u(e){c(e)}this.handleDefinitions=function(s,a){var u=s.diagrams;if(a&&-1===u.indexOf(a))throw new Error(t("diagram not part of bpmn:Definitions"));if(!a&&u&&u.length&&(a=u[0]),!a)throw new Error(t("no diagram to display"));r={},h(a);var m=a.plane;if(!m)throw new Error(t("no plane for {element}",{element:jr(a)}));var v=m.bpmnElement;if(!v){if(v=function(e){return g(e.rootElements,(function(e){return Qr(e,"bpmn:Process")||Qr(e,"bpmn:Collaboration")}))}(s),!v)throw new Error(t("no process or collaboration to display"));l(t("correcting missing bpmnElement on {plane} to {rootElement}",{plane:jr(m),rootElement:jr(v)})),m.bpmnElement=v,c(m)}var x,w,O=function(t,n){return e.root(t,r[t.id],n)}(v,m);if(Qr(v,"bpmn:Process")||Qr(v,"bpmn:SubProcess"))d(v,O);else{if(!Qr(v,"bpmn:Collaboration"))throw new Error(t("unsupported bpmnElement for {plane}: {rootElement}",{plane:jr(m),rootElement:jr(v)}));w=O,b((x=v).participants,o(A,w)),_(x.artifacts,w),i.push((function(){!function(e,t){b(e,o(f,t))}(x.messageFlows,w)})),function(e,t){var i=y(e,(function(e){return!n[e.id]&&Qr(e,"bpmn:Process")&&e.laneSets}));i.forEach(o(d,t))}(s.rootElements,O)}p(i)};var p=this.handleDeferred=function(){for(;i.length;)i.shift()()};function d(e,t){$(e,t),O(e.ioSpecification,t),_(e.artifacts,t),s(e)}function f(e,t){a(e,t)}function m(e,t){a(e,t)}function v(e,t){a(e,t)}function x(e,t){a(e,t)}function w(e,t){a(e,t)}function _(e,t){b(e,(function(e){Qr(e,"bpmn:Association")?i.push((function(){w(e,t)})):w(e,t)}))}function O(e,t){e&&(b(e.dataInputs,o(v,t)),b(e.dataOutputs,o(x,t)))}var E=this.handleSubProcess=function(e,t){$(e,t),_(e.artifacts,t)};function k(e,t){var n=a(e,t);Qr(e,"bpmn:SubProcess")&&E(e,n||t),Qr(e,"bpmn:Activity")&&O(e.ioSpecification,t),i.push((function(){b(e.dataInputAssociations,o(m,t)),b(e.dataOutputAssociations,o(m,t))}))}function S(e,t){a(e,t)}function C(e,t){i.push((function(){var n=a(e,t);e.childLaneSet&&P(e.childLaneSet,n||t),function(e){b(e.flowNodeRef,(function(t){var n=t.get("lanes");n&&n.push(e)}))}(e)}))}function P(e,t){b(e.lanes,o(C,t))}function $(e,n){!function(e,n){b(e,(function(e){Qr(e,"bpmn:SequenceFlow")?i.push((function(){!function(e,t){a(e,t)}(e,n)})):Qr(e,"bpmn:BoundaryEvent")?i.unshift((function(){k(e,n)})):Qr(e,"bpmn:FlowNode")?k(e,n):Qr(e,"bpmn:DataObject")||(Qr(e,"bpmn:DataStoreReference")||Qr(e,"bpmn:DataObjectReference")?S(e,n):l(t("unrecognized flowElement {element} in context {context}",{element:jr(e),context:n?jr(n.businessObject):"null"}),{element:e,context:n}))}))}(e.flowElements,n),e.laneSets&&function(e,t){b(e,o(P,t))}(e.laneSets,n)}function A(e,t){var n=a(e,t),i=e.processRef;i&&d(i,n||t)}}function Vr(e,t){var n=Hr(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}function qr(e,t){return O(t,(function(t){return Vr(e,t)}))}function Hr(e){return e&&e.businessObject||e}function Wr(e){return e&&e.di}function Yr(e,t,n){var i,r,o,s,a=[];function l(e,t){var n=new Fr({root:function(e,t){return i.add(e,t)},element:function(e,t,n){return i.add(e,t,n)},error:function(e,t){a.push({message:e,context:t})}},o);t=t||e.diagrams&&e.diagrams[0];var r=function(e,t){if(!t)return;var n,i=t.plane.bpmnElement,r=i;Vr(i,"bpmn:Process")||Vr(i,"bpmn:Collaboration")||(r=function(e){var t=e;for(;t;){if(Vr(t,"bpmn:Process"))return t;t=t.$parent}}(i));n=Vr(r,"bpmn:Collaboration")?r:g(e.rootElements,(function(e){if(Vr(e,"bpmn:Collaboration"))return g(e.participants,(function(e){return e.processRef===r}))}));var o=[r];n&&(o=E(n.participants,(function(e){return e.processRef}))).push(n);var s=Gr(o),a=[t],l=[i];return b(e.diagrams,(function(e){var t=e.plane.bpmnElement;-1!==s.indexOf(t)&&-1===l.indexOf(t)&&(a.push(e),l.push(t))})),a}(e,t);if(!r)throw new Error(o("no diagram to display"));b(r,(function(t){n.handleDefinitions(e,t)}));var l=t.plane.bpmnElement.id;s.setRootElement(s.findRoot(l+"_plane")||s.findRoot(l))}return new Promise((function(c,h){try{return i=e.get("bpmnImporter"),r=e.get("eventBus"),o=e.get("translate"),s=e.get("canvas"),r.fire("import.render.start",{definitions:t}),l(t,n),r.fire("import.render.complete",{error:undefined,warnings:a}),c({warnings:a})}catch(e){return e.warnings=a,h(e)}}))}function Gr(e){var t=[];return b(e,(function(e){e&&(t.push(e),t=t.concat(Gr(e.flowElements)))})),t}var Ur,Zr='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',Kr={verticalAlign:"middle"},Jr={color:"#404040"},eo={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},to={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},no={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},io='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+Zr+'</a><span>Web-based tooling for BPMN, DMN and forms powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>';function ro(){Ur||(J(Ur=we(io),eo),J(_e("svg",Ur),Kr),J(_e(".backdrop",Ur),to),J(_e(".notice",Ur),no),J(_e(".link",Ur),Jr,{margin:"15px 20px 15px 10px",alignSelf:"center"}),ve.bind(Ur,".backdrop","click",(function(e){document.body.removeChild(Ur)}))),document.body.appendChild(Ur)}function oo(e){e=I({},ao,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),function(e){const t=we('<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+Zr+"</a>");J(_e("svg",t),Kr),J(t,Jr,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(t),fe.bind(t,"click",(function(e){ro(),e.preventDefault()}))}(this._container),this._init(this._container,this._moddle,e)}function so(e,t){return e.warnings=t,e}e(oo,bi),oo.prototype.importXML=async function(e,t){const n=this;let i=[];try{let r;e=this._emit("import.parse.start",{xml:e})||e;try{r=await this._moddle.fromXML(e,"bpmn:Definitions")}catch(e){throw this._emit("import.parse.complete",{error:e}),e}let o=r.rootElement;const s=r.references,a=r.warnings,l=r.elementsById;i=i.concat(a),o=this._emit("import.parse.complete",function(e){const t=n.get("eventBus").createEvent(e);return Object.defineProperty(t,"context",{enumerable:!0,get:function(){return console.warn(new Error("import.parse.complete <context> is deprecated and will be removed in future library versions")),{warnings:e.warnings,references:e.references,elementsById:e.elementsById}}}),t}({error:null,definitions:o,elementsById:l,references:s,warnings:i}))||o;const c=await this.importDefinitions(o,t);return i=i.concat(c.warnings),this._emit("import.done",{error:null,warnings:i}),{warnings:i}}catch(e){let t=e;throw i=i.concat(t.warnings||[]),so(t,i),t=function(e){const t=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);t&&(e.message="unparsable content <"+t[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+t[2]);return e}(t),this._emit("import.done",{error:t,warnings:t.warnings}),t}},oo.prototype.importXML=zr(oo.prototype.importXML),oo.prototype.importDefinitions=async function(e,t){this._setDefinitions(e);return{warnings:(await this.open(t)).warnings}},oo.prototype.importDefinitions=zr(oo.prototype.importDefinitions),oo.prototype.open=async function(e){const t=this._definitions;let n=e;if(!t){const e=new Error("no XML imported");throw so(e,[]),e}if("string"==typeof e&&(n=function(e,t){if(!t)return null;return g(e.diagrams,(function(e){return e.id===t}))||null}(t,e),!n)){const t=new Error("BPMNDiagram <"+e+"> not found");throw so(t,[]),t}try{this.clear()}catch(e){throw so(e,[]),e}const{warnings:i}=await Yr(this,t,n);return{warnings:i}},oo.prototype.open=zr(oo.prototype.open),oo.prototype.saveXML=async function(e){e=e||{};let t,n,i=this._definitions;try{if(!i)throw new Error("no definitions loaded");i=this._emit("saveXML.start",{definitions:i})||i;n=(await this._moddle.toXML(i,e)).xml,n=this._emit("saveXML.serialized",{xml:n})||n}catch(e){t=e}const r=t?{error:t}:{xml:n};if(this._emit("saveXML.done",r),t)throw t;return r},oo.prototype.saveXML=zr(oo.prototype.saveXML),oo.prototype.saveSVG=async function(){let e,t;this._emit("saveSVG.start");try{const t=this.get("canvas"),n=t.getActiveLayer(),i=_e("defs",t._svg),r=Ze(n),o=i?"<defs>"+Ze(i)+"</defs>":"",s=n.getBBox();e='<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- created with bpmn-js / http://bpmn.io --\x3e\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+s.width+'" height="'+s.height+'" viewBox="'+s.x+" "+s.y+" "+s.width+" "+s.height+'" version="1.1">'+o+r+"</svg>"}catch(e){t=e}if(this._emit("saveSVG.done",{error:t,svg:e}),t)throw t;return{svg:e}},oo.prototype.saveSVG=zr(oo.prototype.saveSVG),oo.prototype._setDefinitions=function(e){this._definitions=e},oo.prototype.getModules=function(){return this._modules},oo.prototype.clear=function(){this.getDefinitions()&&bi.prototype.clear.call(this)},oo.prototype.destroy=function(){bi.prototype.destroy.call(this),Ee(this._container)},oo.prototype.on=function(e,t,n,i){return this.get("eventBus").on(e,t,n,i)},oo.prototype.off=function(e,t){this.get("eventBus").off(e,t)},oo.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),"string"==typeof e&&(e=_e(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},oo.prototype.getDefinitions=function(){return this._definitions},oo.prototype.detach=function(){const e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))},oo.prototype._init=function(e,t,n){const i=n.modules||this.getModules(n),r=n.additionalModules||[],o=[].concat([{bpmnjs:["value",this],moddle:["value",t]}],i,r),s=I(V(n,["additionalModules"]),{canvas:I({},n.canvas,{container:e}),modules:o});bi.call(this,s),n&&n.container&&this.attachTo(n.container)},oo.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},oo.prototype._createContainer=function(e){const t=we('<div class="bjs-container"></div>');return J(t,{width:lo(e.width),height:lo(e.height),position:e.position}),t},oo.prototype._createModdle=function(e){return new Nr(I({},this._moddleExtensions,e.moddleExtensions))},oo.prototype._modules=[];const ao={width:"100%",height:"100%",position:"relative"};function lo(e){return e+(u(e)?"px":"")}function co(e){oo.call(this,e),this.on("import.parse.complete",(function(e){e.error||this._collectIds(e.definitions,e.elementsById)}),this),this.on("diagram.destroy",(function(){this.get("moddle").ids.clear()}),this)}function ho(e,t){return!Vr(e,"bpmn:CallActivity")&&(Vr(e,"bpmn:SubProcess")?!(!(t=t||Wr(e))||!Vr(t,"bpmndi:BPMNPlane"))||t&&!!t.isExpanded:!Vr(e,"bpmn:Participant")||!!Hr(e).processRef)}function uo(e){return e&&!1!==Hr(e).isInterrupting}function po(e){return e&&!!Hr(e).triggeredByEvent}function fo(e,t){return O(Hr(e).eventDefinitions,(function(e){return Vr(e,t)}))}e(co,oo),co.prototype._createModdle=function(e){var t=oo.prototype._createModdle.call(this,e);return t.ids=new n([32,36,1]),t},co.prototype._collectIds=function(e,t){var n,i=e.$model.ids;for(n in i.clear(),t)i.claim(n,t[n])};var mo={width:90,height:20},go=15;function vo(e){return Vr(e,"bpmn:Event")||Vr(e,"bpmn:Gateway")||Vr(e,"bpmn:DataStoreReference")||Vr(e,"bpmn:DataObjectReference")||Vr(e,"bpmn:DataInput")||Vr(e,"bpmn:DataOutput")||Vr(e,"bpmn:SequenceFlow")||Vr(e,"bpmn:MessageFlow")||Vr(e,"bpmn:Group")}function yo(e){return kn(e.label)}function bo(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)],r=function(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)];return{x:n.x+(i.x-n.x)/2,y:n.y+(i.y-n.y)/2}}(e),o=Math.atan((i.y-n.y)/(i.x-n.x)),s=r.x,a=r.y;return Math.abs(o)<Math.PI/2?a-=go:s+=go,{x:s,y:a}}function xo(e){return e.waypoints?bo(e.waypoints):Vr(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+mo.height/2}:{x:e.x+e.width/2,y:e.y+e.height+mo.height/2}}function wo(e){return Vr(e,"bpmn:FlowElement")||Vr(e,"bpmn:Participant")||Vr(e,"bpmn:Lane")||Vr(e,"bpmn:SequenceFlow")||Vr(e,"bpmn:MessageFlow")||Vr(e,"bpmn:DataInput")||Vr(e,"bpmn:DataOutput")?"name":Vr(e,"bpmn:TextAnnotation")?"text":Vr(e,"bpmn:Group")?"categoryValueRef":void 0}function _o(e){var t=e.businessObject,n=wo(t);if(n)return"categoryValueRef"===n?function(e){var t=e.categoryValueRef;return t&&t.value||""}(t):t[n]||""}var Oo="hsl(225, 10%, 15%)";function Eo(e,t){return O(e.eventDefinitions,(function(e){return e.$type===t}))}function ko(e,t){var n=Wr(e);return n.get("color:background-color")||n.get("bioc:fill")||t||"white"}function So(e,t){var n=Wr(e);return n.get("color:border-color")||n.get("bioc:stroke")||t||Oo}function Co(e,t,n){var i=Wr(e).get("label");return i&&i.get("color:color")||t||So(e,n)}var Po=new n,$o=10,Ao=3,Ro=.95,To=.35,Mo=10;function Do(e,t,n,i,r,o,s){ut.call(this,t,s);var a=e&&e.defaultFillColor,l=e&&e.defaultStrokeColor,c=e&&e.defaultLabelColor,u=Po.next(),p={};function d(e){return n.computeStyle(e,{strokeLinecap:"round",strokeLinejoin:"round",stroke:Oo,strokeWidth:2,fill:"white"})}function f(e){return n.computeStyle(e,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:Oo,strokeWidth:2})}function m(e,t){var{ref:n={x:0,y:0},scale:i=1,element:o}=t,s=Ie("marker",{id:e,viewBox:"0 0 20 20",refX:n.x,refY:n.y,markerWidth:20*i,markerHeight:20*i,orient:"auto"});Se(s,o);var a=_e("defs",r._svg);a||(a=Ie("defs"),Se(r._svg,a)),Se(a,s),p[e]=s}function g(e){return e.replace(/[^0-9a-zA-Z]+/g,"_")}function v(e,t,n){var i=e+"-"+g(t)+"-"+g(n)+"-"+u;return p[i]||function(e,t,n,i){if("sequenceflow-end"===t){m(e,{element:Ie("path",{d:"M 1 5 L 11 10 L 1 15 Z",...d({fill:i,stroke:i,strokeWidth:1})}),ref:{x:11,y:10},scale:.5})}if("messageflow-start"===t){m(e,{element:Ie("circle",{cx:6,cy:6,r:3.5,...d({fill:n,stroke:i,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:6,y:6}})}if("messageflow-end"===t){m(e,{element:Ie("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...d({fill:n,stroke:i,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:8.5,y:5}})}if("association-start"===t){m(e,{element:Ie("path",{d:"M 11 5 L 1 10 L 11 15",...f({fill:"none",stroke:i,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:1,y:10},scale:.5})}if("association-end"===t){m(e,{element:Ie("path",{d:"M 1 5 L 11 10 L 1 15",...f({fill:"none",stroke:i,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:11,y:10},scale:.5})}if("conditional-flow-marker"===t){m(e,{element:Ie("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...d({fill:n,stroke:i})}),ref:{x:-1,y:10},scale:.5})}if("conditional-default-flow-marker"===t){m(e,{element:Ie("path",{d:"M 6 4 L 10 16",...d({stroke:i})}),ref:{x:0,y:10},scale:.5})}}(i,e,t,n),"url(#"+i+")"}function y(e,t,n,i,r){h(i)&&(r=i,i=0),i=i||0,"none"===(r=d(r)).fill&&delete r.fillOpacity;var o=Ie("circle",{cx:t/2,cy:n/2,r:Math.round((t+n)/4-i),...r});return Se(e,o),o}function x(e,t,n,i,r,o){h(r)&&(o=r,r=0),r=r||0,o=d(o);var s=Ie("rect",{x:r,y:r,width:t-2*r,height:n-2*r,rx:i,ry:i,...o});return Se(e,s),s}function w(e,t,n,i){var r=vt(t,n=f(n),i);return Se(e,r),r}function _(e,t,n){return w(e,t,n,5)}function O(e,t,n){n=f(n);var i=Ie("path",{...n,d:t});return Se(e,i),i}function E(e,t,n,i){return O(t,n,I({"data-marker":e},i))}function k(e){return R[e]}function S(e){return function(t,n,i){return k(e)(t,n,i)}}function C(e,t){var n=Hr(e),i=function(e){return"bpmn:IntermediateThrowEvent"===e.$type||"bpmn:EndEvent"===e.$type}(n);return n.eventDefinitions&&n.eventDefinitions.length>1?n.parallelMultiple?k("bpmn:ParallelMultipleEventDefinition")(t,e,i):k("bpmn:MultipleEventDefinition")(t,e,i):Eo(n,"bpmn:MessageEventDefinition")?k("bpmn:MessageEventDefinition")(t,e,i):Eo(n,"bpmn:TimerEventDefinition")?k("bpmn:TimerEventDefinition")(t,e,i):Eo(n,"bpmn:ConditionalEventDefinition")?k("bpmn:ConditionalEventDefinition")(t,e):Eo(n,"bpmn:SignalEventDefinition")?k("bpmn:SignalEventDefinition")(t,e,i):Eo(n,"bpmn:EscalationEventDefinition")?k("bpmn:EscalationEventDefinition")(t,e,i):Eo(n,"bpmn:LinkEventDefinition")?k("bpmn:LinkEventDefinition")(t,e,i):Eo(n,"bpmn:ErrorEventDefinition")?k("bpmn:ErrorEventDefinition")(t,e,i):Eo(n,"bpmn:CancelEventDefinition")?k("bpmn:CancelEventDefinition")(t,e,i):Eo(n,"bpmn:CompensateEventDefinition")?k("bpmn:CompensateEventDefinition")(t,e,i):Eo(n,"bpmn:TerminateEventDefinition")?k("bpmn:TerminateEventDefinition")(t,e,i):null}function P(e,t,n){n=I({size:{width:100}},n);var i=o.createText(t||"",n);return Te(i).add("djs-label"),Se(e,i),i}function $(e,t,n){return P(e,Hr(t).name,{box:t,align:n,padding:7,style:{fill:Co(t,c,l)}})}function A(e,t,n){pi(P(e,t,{box:{height:30,width:n.height},align:"center-middle",style:{fill:Co(n,c,l)}}),0,-(-1*n.height),270)}var R=this.handlers={"bpmn:Event":function(e,t,n){return"fillOpacity"in n||(n.fillOpacity=Ro),y(e,t.width,t.height,n)},"bpmn:StartEvent":function(e,t,n){var i={fill:ko(t,a),stroke:So(t,l)};Hr(t).isInterrupting||(i={strokeDasharray:"6",fill:ko(t,a),stroke:So(t,l)});var r=k("bpmn:Event")(e,t,i);return n&&!1===n.renderIcon||C(t,e),r},"bpmn:MessageEventDefinition":function(e,t,n){return O(e,i.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.235,my:.315}}),{strokeWidth:1,fill:n?So(t,l):ko(t,a),stroke:n?ko(t,a):So(t,l)})},"bpmn:TimerEventDefinition":function(e,t){var n=y(e,t.width,t.height,.2*t.height,{strokeWidth:2,fill:ko(t,a),stroke:So(t,l)});O(e,i.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),{strokeWidth:2,stroke:So(t,l)});for(var r=0;r<12;r++){var o=i.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),s=t.width/2;O(e,o,{strokeWidth:1,transform:"rotate("+30*r+","+t.height/2+","+s+")",stroke:So(t,l)})}return n},"bpmn:EscalationEventDefinition":function(e,t,n){return O(e,i.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:n?So(t,l):"none",stroke:So(t,l)})},"bpmn:ConditionalEventDefinition":function(e,t){return O(e,i.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.222}}),{strokeWidth:1,stroke:So(t,l)})},"bpmn:LinkEventDefinition":function(e,t,n){return O(e,i.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.57,my:.263}}),{strokeWidth:1,fill:n?So(t,l):"none",stroke:So(t,l)})},"bpmn:ErrorEventDefinition":function(e,t,n){return O(e,i.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.2,my:.722}}),{strokeWidth:1,fill:n?So(t,l):"none",stroke:So(t,l)})},"bpmn:CancelEventDefinition":function(e,t,n){var r=O(e,i.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.638,my:-.055}}),{strokeWidth:1,fill:n?So(t,l):"none",stroke:So(t,l)});return fi(r,45),r},"bpmn:CompensateEventDefinition":function(e,t,n){return O(e,i.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.22,my:.5}}),{strokeWidth:1,fill:n?So(t,l):"none",stroke:So(t,l)})},"bpmn:SignalEventDefinition":function(e,t,n){return O(e,i.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:n?So(t,l):"none",stroke:So(t,l)})},"bpmn:MultipleEventDefinition":function(e,t,n){return O(e,i.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.222,my:.36}}),{strokeWidth:1,fill:n?So(t,l):"none"})},"bpmn:ParallelMultipleEventDefinition":function(e,t){return O(e,i.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:t.width,containerHeight:t.height,position:{mx:.458,my:.194}}),{strokeWidth:1,fill:So(t,l),stroke:So(t,l)})},"bpmn:EndEvent":function(e,t,n){var i=k("bpmn:Event")(e,t,{strokeWidth:4,fill:ko(t,a),stroke:So(t,l)});return n&&!1===n.renderIcon||C(t,e),i},"bpmn:TerminateEventDefinition":function(e,t){return y(e,t.width,t.height,8,{strokeWidth:4,fill:So(t,l),stroke:So(t,l)})},"bpmn:IntermediateEvent":function(e,t,n){var i=k("bpmn:Event")(e,t,{strokeWidth:1.5,fill:ko(t,a),stroke:So(t,l)});return y(e,t.width,t.height,Ao,{strokeWidth:1.5,fill:ko(t,"none"),stroke:So(t,l)}),n&&!1===n.renderIcon||C(t,e),i},"bpmn:IntermediateCatchEvent":S("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":S("bpmn:IntermediateEvent"),"bpmn:Activity":function(e,t,n){return"fillOpacity"in(n=n||{})||(n.fillOpacity=Ro),x(e,t.width,t.height,$o,n)},"bpmn:Task":function(e,t){var n={fill:ko(t,a),stroke:So(t,l)},i=k("bpmn:Activity")(e,t,n);return $(e,t,"center-middle"),T(e,t),i},"bpmn:ServiceTask":function(e,t){var n=k("bpmn:Task")(e,t);return O(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}}),{strokeWidth:1,fill:ko(t,a),stroke:So(t,l)}),O(e,i.getScaledPath("TASK_TYPE_SERVICE_FILL",{abspos:{x:17.2,y:18}}),{strokeWidth:0,fill:ko(t,a)}),O(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}}),{strokeWidth:1,fill:ko(t,a),stroke:So(t,l)}),n},"bpmn:UserTask":function(e,t){var n=k("bpmn:Task")(e,t);return O(e,i.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:ko(t,a),stroke:So(t,l)}),O(e,i.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:ko(t,a),stroke:So(t,l)}),O(e,i.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:So(t,l),stroke:So(t,l)}),n},"bpmn:ManualTask":function(e,t){var n=k("bpmn:Task")(e,t);return O(e,i.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{strokeWidth:.5,fill:ko(t,a),stroke:So(t,l)}),n},"bpmn:SendTask":function(e,t){var n=k("bpmn:Task")(e,t);return O(e,i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}}),{strokeWidth:1,fill:So(t,l),stroke:ko(t,a)}),n},"bpmn:ReceiveTask":function(e,t){var n,r=Hr(t),o=k("bpmn:Task")(e,t);return r.instantiate?(y(e,28,28,4.4,{strokeWidth:1}),n=i.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):n=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),O(e,n,{strokeWidth:1,fill:ko(t,a),stroke:So(t,l)}),o},"bpmn:ScriptTask":function(e,t){var n=k("bpmn:Task")(e,t);return O(e,i.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}}),{strokeWidth:1,stroke:So(t,l)}),n},"bpmn:BusinessRuleTask":function(e,t){var n=k("bpmn:Task")(e,t);return Ae(O(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}})),{strokeWidth:1,fill:ko(t,"#aaaaaa"),stroke:So(t,l)}),Ae(O(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}})),{strokeWidth:1,stroke:So(t,l)}),n},"bpmn:SubProcess":function(e,t,n){n={fill:ko(t,a),stroke:So(t,l),...n};var i=k("bpmn:Activity")(e,t,n),r=ho(t);return po(t)&&Ae(i,{strokeDasharray:"0, 5.5",strokeWidth:2.5}),$(e,t,r?"center-top":"center-middle"),r?T(e,t):T(e,t,["SubProcessMarker"]),i},"bpmn:AdHocSubProcess":function(e,t){return k("bpmn:SubProcess")(e,t)},"bpmn:Transaction":function(e,t){var i=k("bpmn:SubProcess")(e,t,{strokeWidth:1.5}),r=n.style(["no-fill","no-events"],{stroke:So(t,l),strokeWidth:1.5});return x(e,t.width,t.height,$o-3,Ao,r),i},"bpmn:CallActivity":function(e,t){return k("bpmn:SubProcess")(e,t,{strokeWidth:5})},"bpmn:Participant":function(e,t){var n={fillOpacity:Ro,fill:ko(t,a),stroke:So(t,l),strokeWidth:1.5},i=k("bpmn:Lane")(e,t,n);ho(t)?(w(e,[{x:30,y:0},{x:30,y:t.height}],{stroke:So(t,l),strokeWidth:1.5}),A(e,Hr(t).name,t)):P(e,Hr(t).name,{box:t,align:"center-middle",style:{fill:Co(t,c,l)}});return!!Hr(t).participantMultiplicity&&k("ParticipantMultiplicityMarker")(e,t),i},"bpmn:Lane":function(e,t,n){var i=x(e,t.width,t.height,0,{fill:ko(t,a),fillOpacity:To,stroke:So(t,l),strokeWidth:1.5,...n}),r=Hr(t);"bpmn:Lane"===r.$type&&A(e,r.name,t);return i},"bpmn:InclusiveGateway":function(e,t){var n=k("bpmn:Gateway")(e,t);return y(e,t.width,t.height,.24*t.height,{strokeWidth:2.5,fill:ko(t,a),stroke:So(t,l)}),n},"bpmn:ExclusiveGateway":function(e,t){var n=k("bpmn:Gateway")(e,t),r=i.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.32,my:.3}});return Wr(t).isMarkerVisible&&O(e,r,{strokeWidth:1,fill:So(t,l),stroke:So(t,l)}),n},"bpmn:ComplexGateway":function(e,t){var n=k("bpmn:Gateway")(e,t);return O(e,i.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.26}}),{strokeWidth:1,fill:So(t,l),stroke:So(t,l)}),n},"bpmn:ParallelGateway":function(e,t){var n=k("bpmn:Gateway")(e,t);return O(e,i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.2}}),{strokeWidth:1,fill:So(t,l),stroke:So(t,l)}),n},"bpmn:EventBasedGateway":function(e,t){var n=Hr(t),r=k("bpmn:Gateway")(e,t);y(e,t.width,t.height,.2*t.height,{strokeWidth:1,fill:"none",stroke:So(t,l)});var o=n.eventGatewayType,s=!!n.instantiate;if("Parallel"===o){var a=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}});O(e,a,{strokeWidth:1,fill:"none"})}else"Exclusive"===o&&(s||y(e,t.width,t.height,.26*t.height,{strokeWidth:1,fill:"none",stroke:So(t,l)}),function(){var n=i.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:t.width,containerHeight:t.height,position:{mx:.36,my:.44}});O(e,n,{strokeWidth:2,fill:ko(t,"none"),stroke:So(t,l)})}());return r},"bpmn:Gateway":function(e,t){return function(e,t,n,i){var r=t/2,o=n/2,s=[{x:r,y:0},{x:t,y:o},{x:r,y:n},{x:0,y:o}].map((function(e){return e.x+","+e.y})).join(" ");i=d(i);var a=Ie("polygon",{...i,points:s});return Se(e,a),a}(e,t.width,t.height,{fill:ko(t,a),fillOpacity:Ro,stroke:So(t,l)})},"bpmn:SequenceFlow":function(e,t){var n,i=ko(t,a),r=So(t,l),o=_(e,t.waypoints,{markerEnd:v("sequenceflow-end",i,r),stroke:So(t,l)}),s=Hr(t);return t.source&&(n=t.source.businessObject,s.conditionExpression&&n.$instanceOf("bpmn:Activity")&&Ae(o,{markerStart:v("conditional-flow-marker",i,r)}),n.default&&(n.$instanceOf("bpmn:Gateway")||n.$instanceOf("bpmn:Activity"))&&n.default===s&&Ae(o,{markerStart:v("conditional-default-flow-marker",i,r)})),o},"bpmn:Association":function(e,t,n){var i=Hr(t),r=ko(t,a),o=So(t,l);return n={strokeDasharray:"0, 5",stroke:So(t,l),...n},"One"!==i.associationDirection&&"Both"!==i.associationDirection||(n.markerEnd=v("association-end",r,o)),"Both"===i.associationDirection&&(n.markerStart=v("association-start",r,o)),_(e,t.waypoints,n)},"bpmn:DataInputAssociation":function(e,t){var n=ko(t,a),i=So(t,l);return k("bpmn:Association")(e,t,{markerEnd:v("association-end",n,i)})},"bpmn:DataOutputAssociation":function(e,t){var n=ko(t,a),i=So(t,l);return k("bpmn:Association")(e,t,{markerEnd:v("association-end",n,i)})},"bpmn:MessageFlow":function(e,t){var n=Hr(t),r=Wr(t),o=ko(t,a),s=So(t,l),h=_(e,t.waypoints,{markerEnd:v("messageflow-end",o,s),markerStart:v("messageflow-start",o,s),strokeDasharray:"10, 11",strokeWidth:1.5,stroke:So(t,l)});if(n.messageRef){var u=h.getPointAtLength(h.getTotalLength()/2),p=i.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:u.x,y:u.y}}),d={strokeWidth:1};"initiating"===r.messageVisibleKind?(d.fill="white",d.stroke=Oo):(d.fill="#888",d.stroke="white");var f=O(e,p,d),m=P(e,n.messageRef.name,{align:"center-top",fitBox:!0,style:{fill:So(t,c)}}),g=f.getBBox(),y=m.getBBox();pi(m,u.x-y.width/2,u.y+g.height/2+Mo,0)}return h},"bpmn:DataObject":function(e,t){var n=O(e,i.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}}),{fill:ko(t,a),fillOpacity:Ro,stroke:So(t,l)});return function(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection}(Hr(t))&&function(e,t){var n=(t.height-18)/t.height,r=i.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.33,my:n}});O(e,r,{strokeWidth:2})}(e,t),n},"bpmn:DataObjectReference":S("bpmn:DataObject"),"bpmn:DataInput":function(e,t){var n=i.getRawPath("DATA_ARROW"),r=k("bpmn:DataObject")(e,t);return O(e,n,{strokeWidth:1}),r},"bpmn:DataOutput":function(e,t){var n=i.getRawPath("DATA_ARROW"),r=k("bpmn:DataObject")(e,t);return O(e,n,{strokeWidth:1,fill:Oo}),r},"bpmn:DataStoreReference":function(e,t){return O(e,i.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:.133}}),{strokeWidth:2,fill:ko(t,a),fillOpacity:Ro,stroke:So(t,l)})},"bpmn:BoundaryEvent":function(e,t,n){var i=Hr(t).cancelActivity,r={strokeWidth:1.5,fill:ko(t,a),stroke:So(t,l)};i||(r.strokeDasharray="6");var o={...r,fillOpacity:1},s={...r,fill:"none"},c=k("bpmn:Event")(e,t,o);return y(e,t.width,t.height,Ao,s),n&&!1===n.renderIcon||C(t,e),c},"bpmn:Group":function(e,t){return x(e,t.width,t.height,$o,{stroke:So(t,l),strokeWidth:1.5,strokeDasharray:"10,6,0,6",fill:"none",pointerEvents:"none"})},label:function(e,t){return function(e,t){var n={width:90,height:30,x:t.width/2+t.x,y:t.height/2+t.y};return P(e,_o(t),{box:n,fitBox:!0,style:I({},o.getExternalStyle(),{fill:Co(t,c,l)})})}(e,t)},"bpmn:TextAnnotation":function(e,t){var n=x(e,t.width,t.height,0,0,{fill:"none",stroke:"none"});return O(e,i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:0}}),{stroke:So(t,l)}),P(e,Hr(t).text||"",{box:t,align:"left-top",padding:7,style:{fill:Co(t,c,l)}}),n},ParticipantMultiplicityMarker:function(e,t){E("participant-multiplicity",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:t.width/2/t.width,my:(t.height-15)/t.height}}),{strokeWidth:2,fill:ko(t,a),stroke:So(t,l)})},SubProcessMarker:function(e,t){di(x(e,14,14,0,{strokeWidth:1,fill:ko(t,a),stroke:So(t,l)}),t.width/2-7.5,t.height-20),E("sub-process",e,i.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2-7.5)/t.width,my:(t.height-20)/t.height}}),{fill:ko(t,a),stroke:So(t,l)})},ParallelMarker:function(e,t,n){E("parallel",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.parallel)/t.width,my:(t.height-20)/t.height}}),{fill:ko(t,a),stroke:So(t,l)})},SequentialMarker:function(e,t,n){E("sequential",e,i.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.seq)/t.width,my:(t.height-19)/t.height}}),{fill:ko(t,a),stroke:So(t,l)})},CompensationMarker:function(e,t,n){E("compensation",e,i.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.compensation)/t.width,my:(t.height-13)/t.height}}),{strokeWidth:1,fill:ko(t,a),stroke:So(t,l)})},LoopMarker:function(e,t,n){E("loop",e,i.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.loop)/t.width,my:(t.height-7)/t.height}}),{strokeWidth:1.5,fill:ko(t,a),stroke:So(t,l),strokeMiterlimit:.5})},AdhocMarker:function(e,t,n){E("adhoc",e,i.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.adhoc)/t.width,my:(t.height-15)/t.height}}),{strokeWidth:1,fill:So(t,l),stroke:So(t,l)})}};function T(e,t,n){var i,r=Hr(t),o=n&&-1!==n.indexOf("SubProcessMarker");i=o?{seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:{seq:-3,parallel:-6,compensation:-27,loop:0,adhoc:10},b(n,(function(n){k(n)(e,t,i)})),r.isForCompensation&&k("CompensationMarker")(e,t,i),"bpmn:AdHocSubProcess"===r.$type&&k("AdhocMarker")(e,t,i);var s=r.loopCharacteristics,a=s&&s.isSequential;s&&(void 0===a&&k("LoopMarker")(e,t,i),!1===a&&k("ParallelMarker")(e,t,i),!0===a&&k("SequentialMarker")(e,t,i))}this._drawPath=O,this._renderer=k}e(Do,ut),Do.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],Do.prototype.canRender=function(e){return Vr(e,"bpmn:BaseElement")},Do.prototype.drawShape=function(e,t){var n=t.type;return this._renderer(n)(e,t)},Do.prototype.drawConnection=function(e,t){var n=t.type;return this._renderer(n)(e,t)},Do.prototype.getShapePath=function(e){return Vr(e,"bpmn:Event")?(n=(t=e).x+t.width/2,i=t.y+t.height/2,r=t.width/2,pt([["M",n,i],["m",0,-r],["a",r,r,0,1,1,0,2*r],["a",r,r,0,1,1,0,-2*r],["z"]])):Vr(e,"bpmn:Activity")?function(e,t){var n=e.x,i=e.y,r=e.width,o=e.height;return pt([["M",n+t,i],["l",r-2*t,0],["a",t,t,0,0,1,t,t],["l",0,o-2*t],["a",t,t,0,0,1,-t,t],["l",2*t-r,0],["a",t,t,0,0,1,-t,-t],["l",0,2*t-o],["a",t,t,0,0,1,t,-t],["z"]])}(e,$o):Vr(e,"bpmn:Gateway")?function(e){var t=e.width/2,n=e.height/2;return pt([["M",e.x+t,e.y],["l",t,n],["l",-t,n],["l",-t,-n],["z"]])}(e):function(e){var t=e.x,n=e.y,i=e.width;return pt([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])}(e);var t,n,i,r};var Bo=0,Lo={width:150,height:50};function No(e,t){var n;t.textContent=e;try{var i,r=""===e;return t.textContent=r?"dummy":e,i={width:(n=t.getBBox()).width+2*n.x,height:n.height},r&&(i.width=0),i}catch(e){return{width:0,height:0}}}function jo(e,t,n){for(var i,r=e.shift(),o=r;;){if((i=No(o,n)).width=o?i.width:0," "===o||""===o||i.width<Math.round(t)||o.length<2)return zo(e,o,r,i);o=Xo(o,i.width,t)}}function zo(e,t,n,i){if(t.length<n.length){var r=n.slice(t.length).trim();e.unshift(r)}return{width:i.width,height:i.height,text:t}}var Io="";function Xo(e,t,n){var i=Math.max(e.length*(n/t),1),r=function(e,t){var n,i=e.split(/(\s|-|\u00AD)/g),r=[],o=0;if(i.length>1)for(;n=i.shift();){if(!(n.length+o<t)){"-"!==n&&n!==Io||r.pop();break}r.push(n),o+=n.length}var s=r[r.length-1];return s&&s===Io&&(r[r.length-1]="-"),r.join("")}(e,i);return r||(r=e.slice(0,Math.max(Math.round(i-1),1))),r}function Qo(e){this._config=I({},{size:Lo,padding:Bo,style:{},align:"center-top"},e||{})}Qo.prototype.createText=function(e,t){return this.layoutText(e,t).element},Qo.prototype.getDimensions=function(e,t){return this.layoutText(e,t).dimensions},Qo.prototype.layoutText=function(e,t){var n=I({},this._config.size,t.box),i=I({},this._config.style,t.style),r=function(e){var t=e.split("-");return{horizontal:t[0]||"center",vertical:t[1]||"top"}}(t.align||this._config.align),o=function(e){return h(e)?I({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}(void 0!==t.padding?t.padding:this._config.padding),s=t.fitBox||!1,a=function(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}(i),l=e.split(/\u00AD?\r?\n/),c=[],u=n.width-o.left-o.right,p=Ie("text");for(Ae(p,{x:0,y:0}),Ae(p,i),Se(function(){var e=document.getElementById("helper-svg");return e||(Ae(e=Ie("svg"),{id:"helper-svg"}),J(e,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(e)),e}(),p);l.length;)c.push(jo(l,u,p));"middle"===r.vertical&&(o.top=o.bottom=0);var d=w(c,(function(e,t,n){return e+(a||t.height)}),0)+o.top+o.bottom,f=w(c,(function(e,t,n){return t.width>e?t.width:e}),0),m=o.top;"middle"===r.vertical&&(m+=(n.height-d)/2),m-=(a||c[0].height)/4;var g=Ie("text");return Ae(g,i),b(c,(function(e){var t;switch(m+=a||e.height,r.horizontal){case"left":t=o.left;break;case"right":t=(s?f:u)-o.right-e.width;break;default:t=Math.max(((s?f:u)-e.width)/2+o.left,0)}var n=Ie("tspan");Ae(n,{x:t,y:m}),n.textContent=e.text,Se(g,n)})),De(p),{dimensions:{width:f,height:d},element:g}};var Fo=12,Vo=1.2,qo=30;function Ho(e){var t=I({fontFamily:"Arial, sans-serif",fontSize:Fo,fontWeight:"normal",lineHeight:Vo},e&&e.defaultStyle||{}),n=parseInt(t.fontSize,10)-1,i=I({},t,{fontSize:n},e&&e.externalStyle||{}),r=new Qo({style:t});this.getExternalLabelBounds=function(e,t){var n=r.getDimensions(t,{box:{width:90,height:30},style:i});return{x:Math.round(e.x+e.width/2-n.width/2),y:Math.round(e.y),width:Math.ceil(n.width),height:Math.ceil(n.height)}},this.getTextAnnotationBounds=function(e,n){var i=r.getDimensions(n,{box:e,style:t,align:"left-top",padding:5});return{x:e.x,y:e.y,width:e.width,height:Math.max(qo,Math.round(i.height))}},this.createText=function(e,t){return r.createText(e,t||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return i}}Ho.$inject=["config.textRenderer"];var Wo=/\{([^{}]+)\}/g,Yo=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;var Go={__init__:["bpmnRenderer"],bpmnRenderer:["type",Do],textRenderer:["type",Ho],pathMap:["type",function(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(e){return this.pathMap[e].d},this.getScaledPath=function(e,t){var n,i,r=this.pathMap[e];t.abspos?(n=t.abspos.x,i=t.abspos.y):(n=t.containerWidth*t.position.mx,i=t.containerHeight*t.position.my);var o={};if(t.position){for(var s=t.containerHeight/r.height*t.yScaleFactor,a=t.containerWidth/r.width*t.xScaleFactor,l=0;l<r.heightElements.length;l++)o["y"+l]=r.heightElements[l]*s;for(var c=0;c<r.widthElements.length;c++)o["x"+c]=r.widthElements[c]*a}var h,u,p=(h=r.d,u={mx:n,my:i,e:o},String(h).replace(Wo,(function(e,t){return function(e,t,n){var i=n;return t.replace(Yo,(function(e,t,n,r,o){t=t||r,i&&(t in i&&(i=i[t]),"function"==typeof i&&o&&(i=i()))})),i=(null==i||i==n?e:i)+""}(e,t,u)})));return p}}]};var Uo={translate:["value",function(e,t){return t=t||{},e.replace(/{([^}]+)}/g,(function(e,n){return t[n]||"{"+n+"}"}))}]};function Zo(e,t,n){return I({id:e.id,type:e.$type,businessObject:e,di:t},n)}function Ko(e,t,n){var i=e.waypoint;return!i||i.length<2?[Rn(t),Rn(n)]:i.map((function(e){return{x:e.x,y:e.y}}))}function Jo(e,t,n,i){return new Error(e("element {element} referenced by {referenced}#{property} not yet drawn",{element:jr(n),referenced:jr(t),property:i}))}function es(e,t,n,i,r,o){this._eventBus=e,this._canvas=t,this._elementFactory=n,this._elementRegistry=i,this._translate=r,this._textRenderer=o}es.$inject=["eventBus","canvas","elementFactory","elementRegistry","translate","textRenderer"],es.prototype.add=function(e,t,n){var i,r,o,s=this._translate;if(Vr(t,"bpmndi:BPMNPlane")){var a=Vr(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};i=this._elementFactory.createRoot(Zo(e,t,a)),this._canvas.addRootElement(i)}else if(Vr(t,"bpmndi:BPMNShape")){var l=!ho(e,t),c=function(e){return Vr(e,"bpmn:Group")}(e);r=n&&(n.hidden||n.collapsed);var h=t.bounds;i=this._elementFactory.createShape(Zo(e,t,{collapsed:l,hidden:r,x:Math.round(h.x),y:Math.round(h.y),width:Math.round(h.width),height:Math.round(h.height),isFrame:c})),Vr(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,i),Vr(e,"bpmn:Lane")&&(o=0),Vr(e,"bpmn:DataStoreReference")&&(function(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}(n,Rn(h))||(n=this._canvas.findRoot(n))),this._canvas.addShape(i,n,o)}else{if(!Vr(t,"bpmndi:BPMNEdge"))throw new Error(s("unknown di {di} for element {semantic}",{di:jr(t),semantic:jr(e)}));var u=this._getSource(e),p=this._getTarget(e);r=n&&(n.hidden||n.collapsed),i=this._elementFactory.createConnection(Zo(e,t,{hidden:r,source:u,target:p,waypoints:Ko(t,u,p)})),Vr(e,"bpmn:DataAssociation")&&(n=this._canvas.findRoot(n)),this._canvas.addConnection(i,n,o)}return vo(e)&&_o(i)&&this.addLabel(e,t,i),this._eventBus.fire("bpmnElement.added",{element:i}),i},es.prototype._attachBoundary=function(e,t){var n=this._translate,i=e.attachedToRef;if(!i)throw new Error(n("missing {semantic}#attachedToRef",{semantic:jr(e)}));var r=this._elementRegistry.get(i.id),o=r&&r.attachers;if(!r)throw Jo(n,e,i,"attachedToRef");t.host=r,o||(r.attachers=o=[]),-1===o.indexOf(t)&&o.push(t)},es.prototype.addLabel=function(e,t,n){var i,r,o;return i=function(e,t){var n,i,r,o=e.label;return o&&o.bounds?(r=o.bounds,i={width:Math.max(mo.width,r.width),height:r.height},n={x:r.x+r.width/2,y:r.y+r.height/2}):(n=xo(t),i=mo),I({x:n.x-i.width/2,y:n.y-i.height/2},i)}(t,n),(r=_o(n))&&(i=this._textRenderer.getExternalLabelBounds(i,r)),o=this._elementFactory.createLabel(Zo(e,t,{id:e.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!_o(n),x:Math.round(i.x),y:Math.round(i.y),width:Math.round(i.width),height:Math.round(i.height)})),this._canvas.addShape(o,n.parent)},es.prototype._getConnectedElement=function(e,t){var n,i,r=e.$type,o=this._translate;if(i=e[t+"Ref"],"source"===t&&"bpmn:DataInputAssociation"===r&&(i=i&&i[0]),("source"===t&&"bpmn:DataOutputAssociation"===r||"target"===t&&"bpmn:DataInputAssociation"===r)&&(i=e.$parent),n=i&&this._getElement(i))return n;throw i?Jo(o,e,i,t+"Ref"):new Error(o("{semantic}#{side} Ref not specified",{semantic:jr(e),side:t}))},es.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},es.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},es.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};var ts={__depends__:[Go,{__depends__:[Uo],bpmnImporter:["type",es]}]};function ns(e){e&&"function"==typeof e.stopPropagation&&e.stopPropagation()}function is(e){return e.originalEvent||e.srcEvent}function rs(e){ns(e),ns(is(e))}function os(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}function ss(e,t){return(is(e)||e).button===t}function as(e){return ss(e,0)}function ls(e){var t=is(e)||e;return!!as(e)&&(/mac/i.test(navigator.platform)?t.metaKey:t.ctrlKey)}function cs(e){var t=is(e)||e;return as(e)&&t.shiftKey}function hs(e){return!0}function us(e){return as(e)||function(e){return ss(e,1)}(e)}var ps=500;function ds(e,t,n){var i=this;function r(n,i,r){var o,s;(function(e,t){var n=l[e]||as;return!n(t)})(n,i)||(r?s=t.getGraphics(r):(o=i.delegateTarget||i.target)&&(s=o,r=t.get(s)),s&&r&&!1===e.fire(n,{element:r,gfx:s,originalEvent:i})&&(i.stopPropagation(),i.preventDefault()))}var o={};function s(e){return o[e]}var a={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},l={"element.contextmenu":hs,"element.mousedown":us,"element.mouseup":us,"element.click":us,"element.dblclick":us};var c="svg, .djs-element";function h(e,t,n,i){var s=o[n]=function(e){r(n,e)};i&&(l[n]=i),s.$delegate=ve.bind(e,c,t,s)}function u(e,t,n){var i=s(n);i&&ve.unbind(e,t,i.$delegate)}e.on("canvas.destroy",(function(e){!function(e){b(a,(function(t,n){u(e,n,t)}))}(e.svg)})),e.on("canvas.init",(function(e){!function(e){b(a,(function(t,n){h(e,n,t)}))}(e.svg)})),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"],ps,(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.updateHit",{element:n,gfx:i})})),e.on("interactionEvents.createHit",ps,(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 p=m("djs-hit djs-hit-stroke"),d=m("djs-hit djs-hit-click-stroke"),f={all:m("djs-hit djs-hit-all"),"click-stroke":d,stroke:p,"no-move":m("djs-hit djs-hit-no-move")};function m(e,t){return t=I({stroke:"white",strokeWidth:15},t||{}),n.cls(e,["no-fill","no-border"],t)}function g(e,t){var n=f[t];if(!n)throw new Error("invalid hit type <"+t+">");return Ae(e,n),e}function v(e,t){Se(e,t)}this.removeHits=function(e){b(Oe(".djs-hit",e),De)},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=vt(t);return g(n,"stroke"),v(e,n),n},this.createBoxHit=function(e,t,n){n=I({x:0,y:0},n);var i=Ie("rect");return g(i,t),Ae(i,n),v(e,i),i},this.updateDefaultHit=function(e,t){var n=_e(".djs-hit",t);if(n)return e.waypoints?yt(n,e.waypoints):Ae(n,{width:e.width,height:e.height}),n},this.fire=r,this.triggerMouseEvent=function(e,t,n){var i=a[e];if(!i)throw new Error("unmapped DOM event name <"+e+">");return r(i,t,n)},this.mouseHandler=s,this.registerEvent=h,this.unregisterEvent=u}ds.$inject=["eventBus","elementRegistry","styles"];var fs={__init__:["interactionEvents"],interactionEvents:["type",ds]},ms=500;function gs(e,t){this.offset=6;var n=t.cls("djs-outline",["no-fill"]),i=this;function r(e,t){var i=Ie("rect");return Ae(i,I({x:10,y:10,rx:4,width:100,height:100},n)),Se(e,i),i}e.on(["shape.added","shape.changed"],ms,(function(e){var t=e.element,n=e.gfx,o=_e(".djs-outline",n);o||(o=r(n)),i.updateShapeOutline(o,t)})),e.on(["connection.added","connection.changed"],(function(e){var t=e.element,n=e.gfx,o=_e(".djs-outline",n);o||(o=r(n)),i.updateConnectionOutline(o,t)}))}gs.prototype.updateShapeOutline=function(e,t){Ae(e,{x:-this.offset,y:-this.offset,width:t.width+2*this.offset,height:t.height+2*this.offset})},gs.prototype.updateConnectionOutline=function(e,t){var n=Et(t);Ae(e,{x:n.x-this.offset,y:n.y-this.offset,width:n.width+2*this.offset,height:n.height+2*this.offset})},gs.$inject=["eventBus","styles","elementRegistry"];var vs={__init__:["outline"],outline:["type",gs]};function ys(e,t){this._eventBus=e,this._canvas=t,this._selectedElements=[];var n=this;e.on(["shape.remove","connection.remove"],(function(e){var t=e.element;n.deselect(t)})),e.on(["diagram.clear","root.set"],(function(e){n.select(null)}))}ys.$inject=["eventBus","canvas"],ys.prototype.deselect=function(e){var t=this._selectedElements,n=t.indexOf(e);if(-1!==n){var i=t.slice();t.splice(n,1),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:t})}},ys.prototype.get=function(){return this._selectedElements},ys.prototype.isSelected=function(e){return-1!==this._selectedElements.indexOf(e)},ys.prototype.select=function(e,t){var n=this._selectedElements,i=n.slice();c(e)||(e=e?[e]:[]);var r=this._canvas,o=r.getRootElement();e=e.filter((function(e){var t=r.findRoot(e);return o===t})),t?b(e,(function(e){-1===n.indexOf(e)&&n.push(e)})):this._selectedElements=n=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:n})};var bs="hover",xs="selected",ws=6;function _s(e,t,n){this._canvas=e;var i=this;function r(t,n){e.addMarker(t,n)}function o(t,n){e.removeMarker(t,n)}this._multiSelectionBox=null,t.on("element.hover",(function(e){r(e.element,bs)})),t.on("element.out",(function(e){o(e.element,bs)})),t.on("selection.changed",(function(e){var t=e.oldSelection,n=e.newSelection;b(t,(function(e){-1===n.indexOf(e)&&function(e){o(e,xs)}(e)})),b(n,(function(e){-1===t.indexOf(e)&&function(e){r(e,xs)}(e)})),i._updateSelectionOutline(n)})),t.on("element.changed",(function(e){n.isSelected(e.element)&&i._updateSelectionOutline(n.get())}))}function Os(e,t,n,i){e.on("create.end",500,(function(e){var n=e.context,i=n.canExecute,r=n.elements,o=(n.hints||{}).autoSelect;if(i){if(!1===o)return;c(o)?t.select(o):t.select(r.filter(Es))}})),e.on("connect.end",500,(function(e){var n=e.context.connection;n&&t.select(n)})),e.on("shape.move.end",500,(function(e){var n=e.previousSelection||[],r=i.get(e.context.shape.id);g(n,(function(e){return r.id===e.id}))||t.select(r)})),e.on("element.click",(function(e){if(as(e)){var i=e.element;i===n.getRootElement()&&(i=null);var r=t.isSelected(i),o=t.get().length>1,s=ls(e)||cs(e);if(r&&o)return s?t.deselect(i):t.select(i);r?t.deselect(i):t.select(i,s)}}))}function Es(e){return!e.hidden}_s.$inject=["canvas","eventBus","selection"],_s.prototype._updateSelectionOutline=function(e){var t=this._canvas.getLayer("selectionOutline");Be(t);var n=e.length>1;if(Te(this._canvas.getContainer())[n?"add":"remove"]("djs-multi-select"),n){var i=function(e){return{x:e.x-ws,y:e.y-ws,width:e.width+2*ws,height:e.height+2*ws}}(Et(e)),r=Ie("rect");Ae(r,I({rx:3},i)),Te(r).add("djs-selection-outline"),Se(t,r)}},Os.$inject=["eventBus","selection","canvas","elementRegistry"];var ks={__init__:["selectionVisuals","selectionBehavior"],__depends__:[fs,vs],selection:["type",ys],selectionVisuals:["type",_s],selectionBehavior:["type",Os]};function Ss(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(1e9*Math.random())+"-"}Ss.prototype.next=function(){return this._prefix+ ++this._counter};var Cs=new Ss("ov");function Ps(e,t,n,i){var r,o;this._eventBus=t,this._canvas=n,this._elementRegistry=i,this._ids=Cs,this._overlayDefaults=I({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=(r=n.getContainer(),J(o=we('<div class="djs-overlay-container" />'),{position:"absolute",width:0,height:0}),r.insertBefore(o,r.firstChild),o),this._init()}function $s(e,t,n){J(e,{left:t+"px",top:n+"px"})}function As(e,t){e.style.display=!1===t?"none":""}function Rs(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(n){e.style[n+"transform"]=t}))}Ps.$inject=["config.overlays","eventBus","canvas","elementRegistry"],Ps.prototype.get=function(e){if(d(e)&&(e={id:e}),d(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?y(t.overlays,T({type:e.type})):t.overlays.slice():[]}return e.type?y(this._overlays,T({type:e.type})):e.id?this._overlays[e.id]:null},Ps.prototype.add=function(e,t,n){if(h(t)&&(n=t,t=null),e.id||(e=this._elementRegistry.get(e)),!n.position)throw new Error("must specifiy overlay position");if(!n.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var i=this._ids.next();return n=I({},this._overlayDefaults,n,{id:i,type:t,element:e,html:n.html}),this._addOverlay(n),i},Ps.prototype.remove=function(e){var t=this.get(e)||[];c(t)||(t=[t]);var n=this;b(t,(function(e){var t=n._getOverlayContainer(e.element,!0);if(e&&(Ee(e.html),Ee(e.htmlContainer),delete e.htmlContainer,delete e.element,delete n._overlays[e.id]),t){var i=t.overlays.indexOf(e);-1!==i&&t.overlays.splice(i,1)}}))},Ps.prototype.isShown=function(){return"none"!==this._overlayRoot.style.display},Ps.prototype.show=function(){As(this._overlayRoot)},Ps.prototype.hide=function(){As(this._overlayRoot,!1)},Ps.prototype.clear=function(){this._overlays={},this._overlayContainers=[],re(this._overlayRoot)},Ps.prototype._updateOverlayContainer=function(e){var t=e.element,n=e.html,i=t.x,r=t.y;if(t.waypoints){var o=Et(t);i=o.x,r=o.y}$s(n,i,r),ee(e.html,"data-container-id",t.id)},Ps.prototype._updateOverlay=function(e){var t,n,i=e.position,r=e.htmlContainer,o=e.element,s=i.left,a=i.top;void 0!==i.right&&(t=o.waypoints?Et(o).width:o.width,s=-1*i.right+t);void 0!==i.bottom&&(n=o.waypoints?Et(o).height:o.height,a=-1*i.bottom+n);$s(r,s||0,a||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Ps.prototype._createOverlayContainer=function(e){var t=we('<div class="djs-overlays" />');J(t,{position:"absolute"}),this._overlayRoot.appendChild(t);var n={html:t,element:e,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},Ps.prototype._updateRoot=function(e){var t=e.scale||1,n="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";Rs(this._overlayRoot,n)},Ps.prototype._getOverlayContainer=function(e,t){var n=g(this._overlayContainers,(function(t){return t.element===e}));return n||t?n:this._createOverlayContainer(e)},Ps.prototype._addOverlay=function(e){var t,n,i=e.id,r=e.element,o=e.html;o.get&&o.constructor.prototype.jquery&&(o=o.get(0)),d(o)&&(o=we(o)),n=this._getOverlayContainer(r),J(t=we('<div class="djs-overlay" data-overlay-id="'+i+'">'),{position:"absolute"}),t.appendChild(o),e.type&&ne(t).add("djs-overlay-"+e.type),As(t,this._canvas.findRoot(r)===this._canvas.getRootElement()),e.htmlContainer=t,n.overlays.push(e),n.html.appendChild(t),this._overlays[i]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Ps.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,i=this._canvas.findRoot(e.element),r=n&&n.minZoom,o=n&&n.maxZoom,s=e.htmlContainer,l=!0;(i!==this._canvas.getRootElement()||n&&(a(r)&&r>t.scale||a(o)&&o<t.scale))&&(l=!1),As(s,l),this._updateOverlayScale(e,t)},Ps.prototype._updateOverlayScale=function(e,t){var n,i,r,o=e.scale,s=e.htmlContainer,l="";!0!==o&&(!1===o?(n=1,i=1):(n=o.min,i=o.max),a(n)&&t.scale<n&&(r=(1/t.scale||1)*n),a(i)&&t.scale>i&&(r=(1/t.scale||1)*i)),a(r)&&(l="scale("+r+","+r+")"),Rs(s,l)},Ps.prototype._updateOverlaysVisibilty=function(e){var t=this;b(this._overlays,(function(n){t._updateOverlayVisibilty(n,e)}))},Ps.prototype._init=function(){var e=this._eventBus,t=this;e.on("canvas.viewbox.changing",(function(e){t.hide()})),e.on("canvas.viewbox.changed",(function(e){var n;n=e.viewbox,t._updateRoot(n),t._updateOverlaysVisibilty(n),t.show()})),e.on(["shape.remove","connection.remove"],(function(e){var n=e.element;b(t.get({element:n}),(function(e){t.remove(e.id)}));var i=t._getOverlayContainer(n);if(i){Ee(i.html);var r=t._overlayContainers.indexOf(i);-1!==r&&t._overlayContainers.splice(r,1)}})),e.on("element.changed",500,(function(e){var n=e.element,i=t._getOverlayContainer(n,!0);i&&(b(i.overlays,(function(e){t._updateOverlay(e)})),t._updateOverlayContainer(i))})),e.on("element.marker.update",(function(e){var n=t._getOverlayContainer(e.element,!0);n&&ne(n.html)[e.add?"add":"remove"](e.marker)})),e.on("root.set",(function(){t._updateOverlaysVisibilty(t._canvas.viewbox())})),e.on("diagram.clear",this.clear,this)};var Ts={__init__:["overlays"],overlays:["type",Ps]};function Ms(e,t,n,i){e.on("element.changed",(function(i){var r=i.element;(r.parent||r===t.getRootElement())&&(i.gfx=n.getGraphics(r)),i.gfx&&e.fire(kt(r)+".changed",i)})),e.on("elements.changed",(function(t){var n=t.elements;n.forEach((function(t){e.fire("element.changed",{element:t})})),i.updateContainments(n)})),e.on("shape.changed",(function(e){i.update("shape",e.element,e.gfx)})),e.on("connection.changed",(function(e){i.update("connection",e.element,e.gfx)}))}Ms.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];var Ds={__init__:["changeSupport"],changeSupport:["type",Ms]};function Bs(e){this._eventBus=e}function Ls(e){return function(t,n,i,r,o){(p(t)||u(t))&&(o=r,r=i,i=n,n=t,t=null),this.on(t,e,n,i,r,o)}}function Ns(e,t){t.invoke(Bs,this),this.executed((function(t){var n=t.context;n.rootElement?e.setRootElement(n.rootElement):n.rootElement=e.getRootElement()})),this.revert((function(t){var n=t.context;n.rootElement&&e.setRootElement(n.rootElement)}))}Bs.$inject=["eventBus"],Bs.prototype.on=function(e,t,n,i,r,o){if((p(t)||u(t))&&(o=r,r=i,i=n,n=t,t=null),p(n)&&(o=r,r=i,i=n,n=1e3),h(r)&&(o=r,r=!1),!p(i))throw new Error("handlerFn must be a function");c(e)||(e=[e]);var s=this._eventBus;b(e,(function(e){var a=["commandStack",e,t].filter((function(e){return e})).join(".");s.on(a,n,r?function(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}(i,o):i,o)}))},Bs.prototype.canExecute=Ls("canExecute"),Bs.prototype.preExecute=Ls("preExecute"),Bs.prototype.preExecuted=Ls("preExecuted"),Bs.prototype.execute=Ls("execute"),Bs.prototype.executed=Ls("executed"),Bs.prototype.postExecute=Ls("postExecute"),Bs.prototype.postExecuted=Ls("postExecuted"),Bs.prototype.revert=Ls("revert"),Bs.prototype.reverted=Ls("reverted"),e(Ns,Bs),Ns.$inject=["canvas","injector"];var js={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",Ns]};function zs(e){return CSS.escape(e)}var Is={"&":"&","<":"<",">":">",'"':""","'":"'"};function Xs(e){return(e=""+e)&&e.replace(/[&<>"']/g,(function(e){return Is[e]}))}var Qs="_plane";function Fs(e){return function(e){return e.replace(new RegExp(Qs+"$"),"")}(e.id)}function Vs(e){var t=e.id;return Vr(e,"bpmn:SubProcess")?Ws(t):t}function qs(e){return Ws(e)}function Hs(e){return Vr(Wr(e),"bpmndi:BPMNPlane")}function Ws(e){return e+Qs}var Ys="bjs-breadcrumbs-shown";function Gs(e,t,n){var i=we('<ul class="bjs-breadcrumbs"></ul>'),r=n.getContainer(),o=ne(r);r.appendChild(i);var s=[];function a(e){e&&(s=function(e){for(var t=Hr(e),n=[],i=t;i;i=i.$parent)(Vr(i,"bpmn:SubProcess")||Vr(i,"bpmn:Process"))&&n.push(i);return n.reverse()}(e));var r=s.map((function(e){var i=Xs(e.name||e.id),r=we('<li><span class="bjs-crumb"><a title="'+i+'">'+i+"</a></span></li>"),o=n.findRoot(Vs(e))||n.findRoot(e.id);if(!o&&Vr(e,"bpmn:Process")){var s=t.find((function(t){var n=Hr(t);return n&&n.get("processRef")&&n.get("processRef")===e}));o=n.findRoot(s.id)}return r.addEventListener("click",(function(){n.setRootElement(o)})),r}));i.innerHTML="";var a=r.length>1;o.toggle(Ys,a),r.forEach((function(e){i.appendChild(e)}))}e.on("element.changed",(function(e){var t=Hr(e.element);g(s,(function(e){return e===t}))&&a()})),e.on("root.set",(function(e){a(e.element)}))}function Us(e,t){var n=null,i=new Zs;e.on("root.set",(function(e){var r=e.element,o=t.viewbox(),s=i.get(r);if(i.set(n,{x:o.x,y:o.y,zoom:o.scale}),n=r,!Vr(r,"bpmn:Collaboration")||s){s=s||{x:0,y:0,zoom:1};var a=(o.x-s.x)*o.scale,l=(o.y-s.y)*o.scale;0===a&&0===l||t.scroll({dx:a,dy:l}),s.zoom!==o.scale&&t.zoom(s.zoom,{x:0,y:0})}})),e.on("diagram.clear",(function(){i.clear(),n=null}))}function Zs(){this._entries=[],this.set=function(e,t){var n=!1;for(var i in this._entries)if(this._entries[i][0]===e){this._entries[i][1]=t,n=!0;break}n||this._entries.push([e,t])},this.get=function(e){for(var t in this._entries)if(this._entries[t][0]===e)return this._entries[t][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var t=-1;for(var n in this._entries)if(this._entries[n][0]===e){t=n;break}-1!==t&&this._entries.splice(t,1)}}Gs.$inject=["eventBus","elementRegistry","canvas"],Us.$inject=["eventBus","canvas"];var Ks=180,Js=160;function ea(e,t){this._eventBus=e,this._moddle=t;var n=this;e.on("import.render.start",1500,(function(e,t){n._handleImport(t.definitions)}))}function ta(e){return Vr(e,"bpmndi:BPMNDiagram")?e:ta(e.$parent)}ea.prototype._handleImport=function(e){if(e.diagrams){var t=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach((function(e){e.plane&&e.plane.bpmnElement&&(t._processToDiagramMap[e.plane.bpmnElement.id]=e)}));var n=[];e.diagrams.forEach((function(e){var i=t._createNewDiagrams(e.plane);Array.prototype.push.apply(n,i)})),n.forEach((function(e){t._movePlaneElementsToOrigin(e.plane)}))}},ea.prototype._createNewDiagrams=function(e){var t=this,n=[],i=[];e.get("planeElement").forEach((function(t){var r=t.bpmnElement;if(r){var o=r.$parent;Vr(r,"bpmn:SubProcess")&&!t.isExpanded&&n.push(r),function(e,t){var n=e.$parent;if(!Vr(n,"bpmn:SubProcess")||n===t.bpmnElement)return!1;if(qr(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))return!1;return!0}(r,e)&&i.push({diElement:t,parent:o})}}));var r=[];return n.forEach((function(e){if(!t._processToDiagramMap[e.id]){var n=t._createDiagram(e);t._processToDiagramMap[e.id]=n,r.push(n)}})),i.forEach((function(e){for(var i=e.diElement,r=e.parent;r&&-1===n.indexOf(r);)r=r.$parent;if(r){var o=t._processToDiagramMap[r.id];t._moveToDiPlane(i,o.plane)}})),r},ea.prototype._movePlaneElementsToOrigin=function(e){var t=e.get("planeElement"),n=function(e){var t={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach((function(e){if(e.bounds){var n=Pn(e.bounds);t.top=Math.min(n.top,t.top),t.left=Math.min(n.left,t.left)}})),$n(t)}(e),i=n.x-Ks,r=n.y-Js;t.forEach((function(e){e.waypoint?e.waypoint.forEach((function(e){e.x=e.x-i,e.y=e.y-r})):e.bounds&&(e.bounds.x=e.bounds.x-i,e.bounds.y=e.bounds.y-r)}))},ea.prototype._moveToDiPlane=function(e,t){var n=ta(e).plane.get("planeElement");n.splice(n.indexOf(e),1),t.get("planeElement").push(e)},ea.prototype._createDiagram=function(e){var t=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),n=this._moddle.create("bpmndi:BPMNDiagram",{plane:t});return t.$parent=n,t.bpmnElement=e,n.$parent=this._definitions,this._definitions.diagrams.push(n),n},ea.$inject=["eventBus","moddle"];var na=250;function ia(e,t,n,i){Bs.call(this,t),this._canvas=e,this._eventBus=t,this._elementRegistry=n,this._overlays=i;var r=this;this.executed("shape.toggleCollapse",na,(function(e){var t=e.shape;r._canDrillDown(t)?r._addOverlay(t):r._removeOverlay(t)}),!0),this.reverted("shape.toggleCollapse",na,(function(e){var t=e.shape;r._canDrillDown(t)?r._addOverlay(t):r._removeOverlay(t)}),!0),this.executed(["shape.create","shape.move","shape.delete"],na,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;r._canDrillDown(i)&&r._addOverlay(i),r._updateDrilldownOverlay(t),r._updateDrilldownOverlay(n),r._updateDrilldownOverlay(i)}),!0),this.reverted(["shape.create","shape.move","shape.delete"],na,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;r._canDrillDown(i)&&r._addOverlay(i),r._updateDrilldownOverlay(t),r._updateDrilldownOverlay(n),r._updateDrilldownOverlay(i)}),!0),t.on("import.render.complete",(function(){n.filter((function(e){return r._canDrillDown(e)})).map((function(e){r._addOverlay(e)}))}))}e(ia,Bs),ia.prototype._updateDrilldownOverlay=function(e){var t=this._canvas;if(e){var n=t.findRoot(e);n&&this._updateOverlayVisibility(n)}},ia.prototype._canDrillDown=function(e){var t=this._canvas;return Vr(e,"bpmn:SubProcess")&&t.findRoot(Vs(e))},ia.prototype._updateOverlayVisibility=function(e){var t=this._overlays,n=Hr(e),i=t.get({element:n.id,type:"drilldown"})[0];if(i){var r=n&&n.get("flowElements")&&n.get("flowElements").length;ne(i.html).toggle("bjs-drilldown-empty",!r)}},ia.prototype._addOverlay=function(e){var t=this._canvas,n=this._overlays;n.get({element:e,type:"drilldown"}).length&&this._removeOverlay(e);var i=we('<button class="bjs-drilldown"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg></button>');i.addEventListener("click",(function(){t.setRootElement(t.findRoot(Vs(e)))})),n.add(e,"drilldown",{position:{bottom:-7,right:-8},html:i}),this._updateOverlayVisibility(e)},ia.prototype._removeOverlay=function(e){this._overlays.remove({element:e,type:"drilldown"})},ia.$inject=["canvas","eventBus","elementRegistry","overlays"];var ra={__depends__:[Ts,Ds,js],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",Gs],drilldownCentering:["type",Us],drilldownOverlayBehavior:["type",ia],subprocessCompatibility:["type",ea]};function oa(e){oo.call(this,e)}e(oa,oo),oa.prototype._modules=[ts,Uo,ks,Ts,ra],oa.prototype._moddleExtensions={};var sa=["c","C"],aa=["v","V"],la=["y","Y"],ca=["z","Z"];function ha(e){return!e.altKey&&(e.ctrlKey||e.metaKey)}function ua(e,t){return-1!==(e=c(e)?e:[e]).indexOf(t.key)||-1!==e.indexOf(t.code)}function pa(e){return e.shiftKey}function da(e){return ha(e)&&!pa(e)&&ua(ca,e)}function fa(e){return ha(e)&&(ua(la,e)||ua(ca,e)&&pa(e))}var ma="keyboard.keydown",ga="input-handle-modified-keys";function va(e,t){var n=this;this._config=e||{},this._eventBus=t,this._keydownHandler=this._keydownHandler.bind(this),this._keyupHandler=this._keyupHandler.bind(this),t.on("diagram.destroy",(function(){n._fire("destroy"),n.unbind()})),t.on("diagram.init",(function(){n._fire("init")})),t.on("attach",(function(){e&&e.bindTo&&n.bind(e.bindTo)})),t.on("detach",(function(){n.unbind()}))}va.$inject=["config.keyboard","eventBus"],va.prototype._keydownHandler=function(e){this._keyHandler(e,ma)},va.prototype._keyupHandler=function(e){this._keyHandler(e,"keyboard.keyup")},va.prototype._keyHandler=function(e,t){if(!this._isEventIgnored(e)){var n={keyEvent:e};this._eventBus.fire(t||ma,n)&&e.preventDefault()}},va.prototype._isEventIgnored=function(e){return!!e.defaultPrevented||(t=e.target)&&(oe(t,"input, textarea")||"true"===t.contentEditable)&&this._isModifiedKeyIgnored(e);var t},va.prototype._isModifiedKeyIgnored=function(e){return!ha(e)||-1===this._getAllowedModifiers(e.target).indexOf(e.key)},va.prototype._getAllowedModifiers=function(e){var t=se(e,"["+ga+"]",!0);return!t||this._node&&!this._node.contains(t)?[]:t.getAttribute(ga).split(",")},va.prototype.bind=function(e){this.unbind(),this._node=e,fe.bind(e,"keydown",this._keydownHandler),fe.bind(e,"keyup",this._keyupHandler),this._fire("bind")},va.prototype.getBinding=function(){return this._node},va.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),fe.unbind(e,"keydown",this._keydownHandler),fe.unbind(e,"keyup",this._keyupHandler)),this._node=null},va.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node})},va.prototype.addListener=function(e,t,n){p(e)&&(n=t,t=e,e=1e3),this._eventBus.on(n||ma,e,t)},va.prototype.removeListener=function(e,t){this._eventBus.off(t||ma,e)},va.prototype.hasModifier=function(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey},va.prototype.isCmd=ha,va.prototype.isShift=pa,va.prototype.isKey=ua;var ya=500;function ba(e,t){var n=this;e.on("editorActions.init",ya,(function(e){var i=e.editorActions;n.registerBindings(t,i)}))}ba.$inject=["eventBus","keyboard"],ba.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}n("undo",(function(e){if(da(e.keyEvent))return t.trigger("undo"),!0})),n("redo",(function(e){if(fa(e.keyEvent))return t.trigger("redo"),!0})),n("copy",(function(e){if(function(e){return ha(e)&&ua(sa,e)}(e.keyEvent))return t.trigger("copy"),!0})),n("paste",(function(e){if(function(e){return ha(e)&&ua(aa,e)}(e.keyEvent))return t.trigger("paste"),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(ua(["+","Add","="],n)&&ha(n))return t.trigger("stepZoom",{value:1}),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(ua(["-","Subtract"],n)&&ha(n))return t.trigger("stepZoom",{value:-1}),!0})),n("zoom",(function(e){var n=e.keyEvent;if(ua("0",n)&&ha(n))return t.trigger("zoom",{value:1}),!0})),n("removeSelection",(function(e){if(ua(["Backspace","Delete","Del"],e.keyEvent))return t.trigger("removeSelection"),!0}))};var xa={__init__:["keyboard","keyboardBindings"],keyboard:["type",va],keyboardBindings:["type",ba]},wa={moveSpeed:50,moveSpeedAccelerated:200};function _a(e,t,n){var i=this;this._config=I({},wa,e||{}),t.addListener((function(e){var n=e.keyEvent,r=i._config;if(!t.isCmd(n))return;if(t.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],n)){var o,s=t.isShift(n)?r.moveSpeedAccelerated:r.moveSpeed;switch(n.key){case"ArrowLeft":case"Left":o="left";break;case"ArrowUp":case"Up":o="up";break;case"ArrowRight":case"Right":o="right";break;case"ArrowDown":case"Down":o="down"}return i.moveCanvas({speed:s,direction:o}),!0}})),this.moveCanvas=function(e){var t=0,i=0,r=e.speed/Math.min(Math.sqrt(n.viewbox().scale),1);switch(e.direction){case"left":t=r;break;case"up":i=r;break;case"right":t=-r;break;case"down":i=-r}n.scroll({dx:t,dy:i})}}_a.$inject=["config.keyboardMove","keyboard","canvas"];var Oa={__depends__:[xa],__init__:["keyboardMove"],keyboardMove:["type",_a]},Ea=/^djs-cursor-.*$/;function ka(e){var t=ne(document.body);t.removeMatching(Ea),e&&t.add("djs-cursor-"+e)}function Sa(){ka(null)}var Ca=5e3;function Pa(e,t){function n(){return!1}return t=t||"element.click",e.once(t,Ca,n),function(){e.off(t,n)}}function $a(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function Aa(e,t){return{x:e.x-t.x,y:e.y-t.y}}var Ra=15;function Ta(e,t){var n;function i(i){var r,o=n.start,s=n.button,a=os(i),l=Aa(a,o);(!n.dragging&&(r=l,Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2))>Ra)&&(n.dragging=!0,0===s&&Pa(e),ka("grab")),n.dragging)&&(l=Aa(a,n.last||n.start),t.scroll({dx:l.x,dy:l.y}),n.last=a);i.preventDefault()}function r(e){fe.unbind(document,"mousemove",i),fe.unbind(document,"mouseup",r),n=null,Sa()}e.on("element.mousedown",500,(function(e){return function(e){if(se(e.target,".djs-draggable"))return;var t=e.button;if(t>=2||e.ctrlKey||e.shiftKey||e.altKey)return;return n={button:t,start:os(e)},fe.bind(document,"mousemove",i),fe.bind(document,"mouseup",r),!0}(e.originalEvent)})),this.isActive=function(){return!!n}}Ta.$inject=["eventBus","canvas"];var Ma={__init__:["moveCanvas"],moveCanvas:["type",Ta]};function Da(e){return Math.log(e)/Math.log(10)}function Ba(e,t){var n=Da(e.min),i=Da(e.max);return(Math.abs(n)+Math.abs(i))/t}var La=Math.sign||function(e){return e>=0?1:-1},Na={min:.2,max:4},ja=.75;function za(e,t,n){e=e||{},this._enabled=!1,this._canvas=n,this._container=n._container,this._handleWheel=z(this._handleWheel,this),this._totalDelta=0,this._scale=e.scale||ja;var i=this;t.on("canvas.init",(function(t){i._init(!1!==e.enabled)}))}za.$inject=["config.zoomScroll","eventBus","canvas"],za.prototype.scroll=function(e){this._canvas.scroll(e)},za.prototype.reset=function(){this._canvas.zoom("fit-viewport")},za.prototype.zoom=function(e,t){var n=Ba(Na,20);this._totalDelta+=e,Math.abs(this._totalDelta)>.1&&(this._zoom(e,t,n),this._totalDelta=0)},za.prototype._handleWheel=function(e){if(!se(e.target,".djs-scrollable",!0)){var t=this._container;e.preventDefault();var n,i=e.ctrlKey,r=e.shiftKey,o=-1*this._scale;if(o*=i?0===e.deltaMode?.02:.32:0===e.deltaMode?1:16,i){var s=t.getBoundingClientRect(),a={x:e.clientX-s.left,y:e.clientY-s.top};n=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*La(e.deltaY)*o,this.zoom(n,a)}else n=r?{dx:o*e.deltaY,dy:0}:{dx:o*e.deltaX,dy:o*e.deltaY},this.scroll(n)}},za.prototype.stepZoom=function(e,t){var n=Ba(Na,10);this._zoom(e,t,n)},za.prototype._zoom=function(e,t,n){var i=this._canvas,r=e>0?1:-1,o=Da(i.zoom()),s=Math.round(o/n)*n;s+=n*r;var a,l,c=Math.pow(10,s);i.zoom((a=Na,l=c,Math.max(a.min,Math.min(a.max,l))),t)},za.prototype.toggle=function(e){var t=this._container,n=this._handleWheel,i=this._enabled;return void 0===e&&(e=!i),i!==e&&fe[e?"bind":"unbind"](t,"wheel",n,!1),this._enabled=e,e},za.prototype._init=function(e){this.toggle(e)};var Ia={__init__:["zoomScroll"],zoomScroll:["type",za]};function Xa(e){oa.call(this,e)}e(Xa,oa),Xa.prototype._navigationModules=[Oa,Ma,Ia],Xa.prototype._modules=[].concat(oa.prototype._modules,Xa.prototype._navigationModules);var Qa={exports:{}};
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).BpmnModeler=t()}(this,(function(){"use strict";function e(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}var t=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=e.exports=function(e,n){if(n||(n=16),void 0===e&&(e=128),e<=0)return"0";for(var i=Math.log(Math.pow(2,e))/Math.log(n),r=2;i===1/0;r*=2)i=Math.log(Math.pow(2,e/r))/Math.log(n)*r;var o=i-Math.floor(i),s="";for(r=0;r<Math.floor(i);r++){s=Math.floor(Math.random()*n).toString(n)+s}if(o){var a=Math.pow(n,o);s=Math.floor(Math.random()*a).toString(n)+s}var l=parseInt(s,n);return l!==1/0&&l>=Math.pow(2,e)?t(e,n):s};t.rack=function(e,n,i){var r=function(r){var s=0;do{if(s++>10){if(!i)throw new Error("too many ID collisions, use more bits");e+=i}var a=t(e,n)}while(Object.hasOwnProperty.call(o,a));return o[a]=r,a},o=r.hats={};return r.get=function(e){return r.hats[e]},r.set=function(e,t){return r.hats[e]=t,r},r.bits=e||128,r.base=n||16,r}}));function n(e){if(!(this instanceof n))return new n(e);e=e||[128,36,1],this._seed=e.length?t.rack(e[0],e[1],e[2]):e}function i(e){return Array.prototype.concat.apply([],e)}n.prototype.next=function(e){return this._seed(e||!0)},n.prototype.nextPrefixed=function(e,t){var n;do{n=e+this.next(!0)}while(this.assigned(n));return this.claim(n,t),n},n.prototype.claim=function(e,t){this._seed.set(e,t||!0)},n.prototype.assigned=function(e){return this._seed.get(e)||!1},n.prototype.unclaim=function(e){delete this._seed.hats[e]},n.prototype.clear=function(){var e,t=this._seed.hats;for(e in t)this.unclaim(e)};const r=Object.prototype.toString,o=Object.prototype.hasOwnProperty;function s(e){return void 0===e}function a(e){return void 0!==e}function l(e){return null==e}function c(e){return"[object Array]"===r.call(e)}function h(e){return"[object Object]"===r.call(e)}function u(e){return"[object Number]"===r.call(e)}function p(e){const t=r.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t||"[object Proxy]"===t}function d(e){return"[object String]"===r.call(e)}function f(e){if(!c(e))throw new Error("must supply array")}function m(e,t){return o.call(e,t)}function g(e,t){const n=D(t);let i;return b(e,(function(e,t){if(n(e,t))return i=e,!1})),i}function v(e,t){const n=D(t);let i=c(e)?-1:void 0;return b(e,(function(e,t){if(n(e,t))return i=t,!1})),i}function y(e,t){const n=D(t);let i=[];return b(e,(function(e,t){n(e,t)&&i.push(e)})),i}function b(e,t){let n,i;if(s(e))return;const r=c(e)?L:B;for(let o in e)if(m(e,o)&&(n=e[o],i=t(n,r(o)),!1===i))return n}function x(e,t){if(s(e))return[];f(e);const n=D(t);return e.filter((function(e,t){return!n(e,t)}))}function w(e,t,n){return b(e,(function(e,i){n=t(n,e,i)})),n}function _(e,t){return!!w(e,(function(e,n,i){return e&&t(n,i)}),!0)}function O(e,t){return!!g(e,t)}function E(e,t){let n=[];return b(e,(function(e,i){n.push(t(e,i))})),n}function k(e){return e&&Object.keys(e)||[]}function S(e){return k(e).length}function C(e){return E(e,(e=>e))}function P(e,t,n={}){return t=M(t),b(e,(function(e){let i=t(e)||"_",r=n[i];r||(r=n[i]=[]),r.push(e)})),n}function $(e,...t){e=M(e);let n={};return b(t,(t=>P(t,e,n))),E(n,(function(e,t){return e[0]}))}const A=$;function R(e,t){t=M(t);let n=[];return b(e,(function(e,i){let r=t(e,i),o={d:r,v:e};for(var s=0;s<n.length;s++){let{d:e}=n[s];if(r<e)return void n.splice(s,0,o)}n.push(o)})),E(n,(e=>e.v))}function T(e){return function(t){return _(e,(function(e,n){return t[n]===e}))}}function M(e){return p(e)?e:t=>t[e]}function D(e){return p(e)?e:t=>t===e}function B(e){return e}function L(e){return Number(e)}function N(e,t){let n,i,r,o;function s(n){let s=Date.now(),c=n?0:o+t-s;if(c>0)return a(c);e.apply(r,i),l()}function a(e){n=setTimeout(s,e)}function l(){n&&clearTimeout(n),n=o=i=r=void 0}function c(...e){o=Date.now(),i=e,r=this,n||a(t)}return c.flush=function(){n&&s(!0),l()},c.cancel=l,c}function j(e,t){let n=!1;return function(...i){n||(e(...i),n=!0,setTimeout((()=>{n=!1}),t))}}function z(e,t){return e.bind(t)}function I(e,...t){return Object.assign(e,...t)}function X(e,t,n){let i=e;return b(t,(function(e,r){if("number"!=typeof e&&"string"!=typeof e)throw new Error("illegal key type: "+typeof e+". Key should be of type number or string.");if("constructor"===e)throw new Error("illegal key: constructor");if("__proto__"===e)throw new Error("illegal key: __proto__");let o=t[r+1],c=i[e];a(o)&&l(c)&&(c=i[e]=isNaN(+o)?{}:[]),s(o)?s(n)?delete i[e]:i[e]=n:i=c})),e}function Q(e,t,n){let i=e;return b(t,(function(e){if(l(i))return i=void 0,!1;i=i[e]})),s(i)?n:i}function F(e,t){let n={},i=Object(e);return b(t,(function(t){t in i&&(n[t]=e[t])})),n}function V(e,t){let n={};return b(Object(e),(function(e,i){-1===t.indexOf(i)&&(n[i]=e)})),n}var q=Object.freeze({__proto__:null,assign:I,bind:z,debounce:N,ensureArray:f,every:_,filter:y,find:g,findIndex:v,flatten:i,forEach:b,get:Q,groupBy:P,has:m,isArray:c,isDefined:a,isFunction:p,isNil:l,isNumber:u,isObject:h,isString:d,isUndefined:s,keys:k,map:E,matchPattern:T,merge:function e(t,...n){return n.length?(b(n,(function(n){n&&h(n)&&b(n,(function(n,i){if("__proto__"===i)return;let r=t[i];h(n)?(h(r)||(r={}),t[i]=e(r,n)):t[i]=n}))})),t):t},omit:V,pick:F,reduce:w,set:X,size:S,some:O,sortBy:R,throttle:j,unionBy:A,uniqueBy:$,values:C,without:x});function H(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}const W=Object.prototype.toString,Y=Object.prototype.hasOwnProperty;function G(e,t){return Y.call(e,t)}function U(e,t){let n,i;if(void 0===e)return;const r=function(e){return"[object Array]"===W.call(e)}(e)?K:Z;for(let o in e)if(G(e,o)&&(n=e[o],i=t(n,r(o)),!1===i))return n}function Z(e){return e}function K(e){return Number(e)}function J(e,...t){const n=e.style;return U(t,(function(e){e&&U(e,(function(e,t){n[t]=e}))})),e}function ee(e,t,n){return 2==arguments.length?e.getAttribute(t):null===n?e.removeAttribute(t):(e.setAttribute(t,n),e)}const te=Object.prototype.toString;function ne(e){return new ie(e)}function ie(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function re(e){for(var t;e.childNodes.length;)t=e.childNodes[0],e.removeChild(t);return e}function oe(e,t){return e&&"function"==typeof e.matches&&e.matches(t)}function se(e,t,n){for(var i=n?e:e.parentNode;i&&i.nodeType!==document.DOCUMENT_NODE&&i.nodeType!==document.DOCUMENT_FRAGMENT_NODE;){if(oe(i,t))return i;i=i.parentNode}return oe(i,t)?i:null}ie.prototype.add=function(e){return this.list.add(e),this},ie.prototype.remove=function(e){return"[object RegExp]"==te.call(e)?this.removeMatching(e):(this.list.remove(e),this)},ie.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},ie.prototype.toggle=function(e,t){return void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},ie.prototype.array=function(){return Array.from(this.list)},ie.prototype.has=ie.prototype.contains=function(e){return this.list.contains(e)};var ae,le,ce,he={};function ue(){ae=window.addEventListener?"addEventListener":"attachEvent",le=window.removeEventListener?"removeEventListener":"detachEvent",ce="addEventListener"!==ae?"on":""}var pe=he.bind=function(e,t,n,i){return ae||ue(),e[ae](ce+t,n,i||!1),n},de=he.unbind=function(e,t,n,i){return le||ue(),e[le](ce+t,n,i||!1),n},fe=H({__proto__:null,bind:pe,unbind:de,default:he},[he]),me=["focus","blur"];var ge,ve={bind:function(e,t,n,i,r){return-1!==me.indexOf(n)&&(r=!0),fe.bind(e,n,(function(n){var r=n.target||n.srcElement;n.delegateTarget=se(r,t,!0),n.delegateTarget&&i.call(e,n)}),r)},unbind:function(e,t,n,i){return-1!==me.indexOf(t)&&(i=!0),fe.unbind(e,t,n,i)}},ye=function(e,t){if("string"!=typeof e)throw new TypeError("String expected");t||(t=document);var n=/<([\w:]+)/.exec(e);if(!n)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var i=n[1];if("body"==i){return(l=t.createElement("html")).innerHTML=e,l.removeChild(l.lastChild)}var r=Object.prototype.hasOwnProperty.call(xe,i)?xe[i]:xe._default,o=r[0],s=r[1],a=r[2],l=t.createElement("div");l.innerHTML=s+e+a;for(;o--;)l=l.lastChild;if(l.firstChild==l.lastChild)return l.removeChild(l.firstChild);var c=t.createDocumentFragment();for(;l.firstChild;)c.appendChild(l.removeChild(l.firstChild));return c},be=!1;"undefined"!=typeof document&&((ge=document.createElement("div")).innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',be=!ge.getElementsByTagName("link").length,ge=void 0);var xe={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:be?[1,"X<div>","</div>"]:[0,"",""]};xe.td=xe.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],xe.option=xe.optgroup=[1,'<select multiple="multiple">',"</select>"],xe.thead=xe.tbody=xe.colgroup=xe.caption=xe.tfoot=[1,"<table>","</table>"],xe.polyline=xe.ellipse=xe.polygon=xe.circle=xe.text=xe.line=xe.path=xe.rect=xe.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];var we=ye;function _e(e,t){return(t=t||document).querySelector(e)}function Oe(e,t){return(t=t||document).querySelectorAll(e)}function Ee(e){e.parentNode&&e.parentNode.removeChild(e)}function ke(e,t){return t.appendChild(function(e,t){if(e.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(e,!0)}catch(e){}return e}(e,t))}function Se(e,t){return ke(t,e),e}var Ce=2,Pe={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":Ce,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":Ce,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function $e(e,t,n){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=Pe[i];r?(r===Ce&&"number"==typeof n&&(n=String(n)+"px"),e.style[i]=n):e.setAttributeNS(null,t,n)}function Ae(e,t,n){if("string"==typeof t){if(void 0===n)return function(e,t){return Pe[t]?e.style[t]:e.getAttributeNS(null,t)}(e,t);$e(e,t,n)}else!function(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)$e(e,i,t[i])}(e,t);return e}const Re=Object.prototype.toString;function Te(e){return new Me(e)}function Me(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function De(e){var t=e.parentNode;return t&&t.removeChild(e),e}function Be(e){for(var t;t=e.firstChild;)De(t);return e}function Le(e){return e.cloneNode(!0)}Me.prototype.add=function(e){return this.list.add(e),this},Me.prototype.remove=function(e){return"[object RegExp]"==Re.call(e)?this.removeMatching(e):(this.list.remove(e),this)},Me.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},Me.prototype.toggle=function(e,t){return void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},Me.prototype.array=function(){return Array.from(this.list)},Me.prototype.has=Me.prototype.contains=function(e){return this.list.contains(e)};var Ne={svg:"http://www.w3.org/2000/svg"},je='<svg xmlns="'+Ne.svg+'"';function ze(e){var t=!1;"<svg"===e.substring(0,4)?-1===e.indexOf(Ne.svg)&&(e=je+e.substring(4)):(e=je+">"+e+"</svg>",t=!0);var n=function(e){var t;return t=new DOMParser,t.async=!1,t.parseFromString(e,"text/xml")}(e);if(!t)return n;for(var i=document.createDocumentFragment(),r=n.firstChild;r.firstChild;)i.appendChild(r.firstChild);return i}function Ie(e,t){var n;return"<"===e.charAt(0)?(n=ze(e).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(Ne.svg,e),t&&Ae(n,t),n}var Xe=null;function Qe(){return null===Xe&&(Xe=Ie("svg")),Xe}function Fe(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)e[i]=t[i];return e}function Ve(e){return e?Qe().createSVGTransformFromMatrix(e):Qe().createSVGTransform()}var qe=/([&<>]{1})/g,He=/([\n\r"]{1})/g,We={"&":"&","<":"<",">":">",'"':"'"};function Ye(e,t){return e.replace(t,(function(e,t){return We[t]||t}))}function Ge(e,t){var n,i,r,o,s;switch(e.nodeType){case 3:t.push(Ye(e.textContent,qe));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(n=0,i=(r=e.attributes).length;n<i;++n)o=r.item(n),t.push(" ",o.name,'="',Ye(o.value,He),'"');if(e.hasChildNodes()){for(t.push(">"),n=0,i=(s=e.childNodes).length;n<i;++n)Ge(s.item(n),t);t.push("</",e.tagName,">")}else t.push("/>");break;case 8:t.push("\x3c!--",Ye(e.nodeValue,qe),"--\x3e");break;case 4:t.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function Ue(e,t){var n=ze(t);if(Be(e),t){(function(e){return"#document-fragment"===e.nodeName})(n)||(n=n.documentElement);for(var i,r=(i=n.childNodes,Array.prototype.slice.call(i)),o=0;o<r.length;o++)ke(r[o],e)}}function Ze(e,t){if(void 0!==t){try{Ue(e,t)}catch(e){throw new Error("error parsing SVG: "+e.message)}return e}return function(e){for(var t=e.firstChild,n=[];t;)Ge(t,n),t=t.nextSibling;return n.join("")}(e)}function Ke(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function Je(e,t){var n=e.transform.baseVal;return t&&(Array.isArray(t)||(t=[t]),function(e,t){var n,i;for(e.clear(),n=0;i=t[n];n++)e.appendItem(Ke(e,i))}(n,t)),n.consolidate()}const et=/^class[ {]/;function tt(e){return Array.isArray(e)}function nt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function it(...e){1===e.length&&tt(e[0])&&(e=e[0]);const t=(e=[...e]).pop();return t.$inject=e,t}const rt=/constructor\s*[^(]*\(\s*([^)]*)\)/m,ot=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,st=/\/\*([^*]*)\*\//m;function at(e){if("function"!=typeof e)throw new Error(`Cannot annotate "${e}". Expected a function!`);const t=e.toString().match(function(e){return et.test(e.toString())}(e)?rt:ot);if(!t)return[];const n=t[1]||t[2];return n&&n.split(",").map((e=>{const t=e.match(st);return(t&&t[1]||e).trim()}))||[]}function lt(e,t){t=t||{get:function(e,t){if(n.push(e),!1===t)return null;throw s(`No provider for "${e}"!`)}};const n=[],i=this._providers=Object.create(t._providers||null),r=this._instances=Object.create(null),o=r.injector=this,s=function(e){const t=n.join(" -> ");return n.length=0,new Error(t?`${e} (Resolving: ${t})`:e)};function a(e,o){if(!i[e]&&-1!==e.indexOf(".")){const t=e.split(".");let n=a(t.shift());for(;t.length;)n=n[t.shift()];return n}if(nt(r,e))return r[e];if(nt(i,e)){if(-1!==n.indexOf(e))throw n.push(e),s("Cannot resolve circular dependency!");return n.push(e),r[e]=i[e][0](i[e][1]),n.pop(),r[e]}return t.get(e,o)}function l(e,t){if(void 0===t&&(t={}),"function"!=typeof e){if(!tt(e))throw s(`Cannot invoke "${e}". Expected a function!`);e=it(e.slice())}return{fn:e,dependencies:(e.$inject||at(e)).map((e=>nt(t,e)?t[e]:a(e)))}}function c(e){const{fn:t,dependencies:n}=l(e);return new(Function.prototype.bind.apply(t,[null].concat(n)))}function h(e,t,n){const{fn:i,dependencies:r}=l(e,n);return i.apply(t,r)}function u(e){return it((t=>e.get(t)))}function p(e,t){if(t&&t.length){const n=Object.create(null),r=Object.create(null),o=[],s=[],a=[];let l,c,h,p;for(let e in i)l=i[e],-1!==t.indexOf(e)&&("private"===l[2]?(c=o.indexOf(l[3]),-1===c?(h=l[3].createChild([],t),p=u(h),o.push(l[3]),s.push(h),a.push(p),n[e]=[p,e,"private",h]):n[e]=[a[c],e,"private",s[c]]):n[e]=[l[2],l[1]],r[e]=!0),"factory"!==l[2]&&"type"!==l[2]||!l[1].$scope||t.forEach((t=>{-1!==l[1].$scope.indexOf(t)&&(n[e]=[l[2],l[1]],r[t]=!0)}));t.forEach((e=>{if(!r[e])throw new Error('No provider for "'+e+'". Cannot use provider from the parent!')})),e.unshift(n)}return new lt(e,o)}const d={factory:h,type:c,value:function(e){return e}};function f(e,t){const n=e.__init__||[];return function(){n.forEach((e=>{"string"==typeof e?t.get(e):t.invoke(e)}))}}function m(e){const t=e.__exports__;if(t){const n=e.__modules__,r=Object.keys(e).reduce(((t,n)=>("__exports__"!==n&&"__modules__"!==n&&"__init__"!==n&&"__depends__"!==n&&(t[n]=e[n]),t)),Object.create(null)),o=p((n||[]).concat(r)),s=it((function(e){return o.get(e)}));t.forEach((function(e){i[e]=[s,e,"private",o]}));const a=(e.__init__||[]).slice();return a.unshift((function(){o.init()})),f(e=Object.assign({},e,{__init__:a}),o)}return Object.keys(e).forEach((function(t){if("__init__"===t||"__depends__"===t)return;if("private"===e[t][2])return void(i[t]=e[t]);const n=e[t][0],r=e[t][1];i[t]=[d[n],ct(n,r),n]})),f(e,o)}function g(e,t){return-1!==e.indexOf(t)||-1!==(e=(t.__depends__||[]).reduce(g,e)).indexOf(t)?e:e.concat(t)}this.get=a,this.invoke=h,this.instantiate=c,this.createChild=p,this.init=function(e){const t=e.reduce(g,[]).map(m);let n=!1;return function(){n||(n=!0,t.forEach((e=>e())))}}(e)}function ct(e,t){return"value"!==e&&tt(t)&&(t=it(t.slice())),t}var ht=1e3;function ut(e,t){var n=this;t=t||ht,e.on(["render.shape","render.connection"],t,(function(e,t){var i=e.type,r=t.element,o=t.gfx,s=t.attrs;if(n.canRender(r))return"render.shape"===i?n.drawShape(o,r,s):n.drawConnection(o,r,s)})),e.on(["render.getShapePath","render.getConnectionPath"],t,(function(e,t){if(n.canRender(t))return"render.getShapePath"===e.type?n.getShapePath(t):n.getConnectionPath(t)}))}function pt(e){return e.flat().join(",").replace(/,?([A-z]),?/g,"$1")}function dt(e){return["L",e.x,e.y]}function ft(e,t){const n=e.length,i=[(r=e[0],["M",r.x,r.y])];var r,o,s,a;for(let r=1;r<n;r++){const n=e[r-1],l=e[r],c=e[r+1];if(!c||!t){i.push(dt(l));continue}const h=Math.min(t,gt(l.x-n.x,l.y-n.y),gt(c.x-l.x,c.y-l.y));if(!h){i.push(dt(l));continue}const u=mt(l,n,h),p=mt(l,n,.5*h),d=mt(l,c,h),f=mt(l,c,.5*h);i.push(dt(u)),i.push((s=f,a=d,["C",(o=p).x,o.y,s.x,s.y,a.x,a.y]))}return i}function mt(e,t,n){const i=t.x-e.x,r=t.y-e.y,o=n/gt(i,r);return{x:e.x+i*o,y:e.y+r*o}}function gt(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))}function vt(e,t,n){u(t)&&(n=t,t=null),t||(t={});const i=Ie("path",t);return u(n)&&(i.dataset.cornerRadius=String(n)),yt(i,e)}function yt(e,t){return Ae(e,{d:pt(ft(t,parseInt(e.dataset.cornerRadius,10)||0))}),e}function bt(e){return y(e,(function(t){return!g(e,(function(e){return e!==t&&xt(t,e)}))}))}function xt(e,t){if(t){if(e===t)return t;if(e.parent)return xt(e.parent,t)}}function wt(e,t,n){var i=!n||-1===e.indexOf(t);return i&&e.push(t),i}function _t(e,t,n){n=n||0,c(e)||(e=[e]),b(e,(function(e,i){var r=t(e,i,n);c(r)&&r.length&&_t(r,t,n+1)}))}function Ot(e,t){return function(e,t,n){var i=[],r=[];return _t(e,(function(e,o,s){wt(i,e,t);var a=e.children;if((-1===n||s<n)&&a&&wt(r,a,t))return a})),i}(e,!t,-1)}function Et(e,t){var n,i,r,o;return t=!!t,c(e)||(e=[e]),b(e,(function(e){var s=e;e.waypoints&&!t&&(s=Et(e.waypoints,!0));var a=s.x,l=s.y,c=s.height||0,h=s.width||0;(a<n||void 0===n)&&(n=a),(l<i||void 0===i)&&(i=l),(a+h>r||void 0===r)&&(r=a+h),(l+c>o||void 0===o)&&(o=l+c)})),{x:n,y:i,height:o-i,width:r-n}}function kt(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function St(e){return!(!e||!e.isFrame)}function Ct(e,t){return I({},e||{},t||{})}ut.prototype.canRender=function(e){},ut.prototype.drawShape=function(e,t){},ut.prototype.drawConnection=function(e,t){},ut.prototype.getShapePath=function(e){},ut.prototype.getConnectionPath=function(e){};var Pt=1;function $t(e,t){ut.call(this,e,Pt),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=t.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}e($t,ut),$t.prototype.canRender=function(){return!0},$t.prototype.drawShape=function(e,t,n){var i=Ie("rect");return Ae(i,{x:0,y:0,width:t.width||0,height:t.height||0}),St(t)?Ae(i,I({},this.FRAME_STYLE,n||{})):Ae(i,I({},this.SHAPE_STYLE,n||{})),Se(e,i),i},$t.prototype.drawConnection=function(e,t,n){var i=vt(t.waypoints,I({},this.CONNECTION_STYLE,n||{}));return Se(e,i),i},$t.prototype.getShapePath=function(e){var t=e.x,n=e.y,i=e.width;return pt([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])},$t.prototype.getConnectionPath=function(e){var t,n,i=e.waypoints,r=[];for(t=0;n=i[t];t++)n=n.original||n,r.push([0===t?"M":"L",n.x,n.y]);return pt(r)},$t.$inject=["eventBus","styles"];var At={__init__:["defaultRenderer"],defaultRenderer:["type",$t],styles:["type",function(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},t=this;this.cls=function(e,t,n){return I(this.style(t,n),{class:e})},this.style=function(t,n){c(t)||n||(n=t,t=[]);var i=w(t,(function(t,n){return I(t,e[n]||{})}),{});return n?I(i,n):i},this.computeStyle=function(e,n,i){return c(n)||(i=n,n=[]),t.style(n||[],I({},i,e||{}))}}]};function Rt(e,t){if(!e||!t)return-1;var n=e.indexOf(t);return-1!==n&&e.splice(n,1),n}function Tt(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)}}function Mt(e,t){return e&&t?e.indexOf(t):-1}function Dt(e,t){return e&&t?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):-1}function Bt(e,t,n,i){if(void 0===i&&(i=5),!e||!t||!n)return!1;var r=(t.x-e.x)*(n.y-e.y)-(t.y-e.y)*(n.x-e.x),o=Dt(e,t);return Math.abs(r/o)<=i}var Lt=2;function Nt(e,t){var n=Array.from(arguments).flat();const i={x:"v",y:"h"};for(const[e,t]of Object.entries(i))if(jt(e,n))return t;return!1}function jt(e,t){const n=t[0];return _(t,(function(t){return Math.abs(n[e]-t[e])<=Lt}))}function zt(e,t,n){return n=n||0,e.x>t.x-n&&e.y>t.y-n&&e.x<t.x+t.width+n&&e.y<t.y+t.height+n}function It(e,t){return{x:Math.round(e.x+(t.x-e.x)/2),y:Math.round(e.y+(t.y-e.y)/2)}}function Xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qt(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})})),n}var Ft=/,?([a-z]),?/gi,Vt=parseFloat,qt=Math,Ht=qt.PI,Wt=qt.min,Yt=qt.max,Gt=qt.pow,Ut=qt.abs,Zt=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi,Kt=/(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi,Jt=Array.isArray||function(e){return e instanceof Array};function en(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function tn(e){if("function"==typeof e||Object(e)!==e)return e;var t=new e.constructor;for(var n in e)en(e,n)&&(t[n]=tn(e[n]));return t}function nn(e){var t=nn.ps=nn.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout((function(){for(var n in t)en(t,n)&&n!=e&&(t[n].sleep--,!t[n].sleep&&delete t[n])})),t[e]}function rn(e,t,n,i){return 1===arguments.length&&(t=e.y,n=e.width,i=e.height,e=e.x),{x:e,y:t,width:n,height:i,x2:e+n,y2:t+i}}function on(){return this.join(",").replace(Ft,"$1")}function sn(e){var t=tn(e);return t.toString=on,t}function an(e,t,n,i,r,o,s,a,l){var c=1-l,h=Gt(c,3),u=Gt(c,2),p=l*l*l,d=h*t+3*u*l*i+3*c*l*l*o+p*a;return{x:dn(h*e+3*u*l*n+3*c*l*l*r+p*s),y:dn(d)}}function ln(e){var t=xn.apply(null,e);return rn(t.x0,t.y0,t.x1-t.x0,t.y1-t.y0)}function cn(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function hn(e,t,n,i,r){return e*(e*(-3*t+9*n-9*i+3*r)+6*t-12*n+6*i)-3*t+3*n}function un(e,t,n,i,r,o,s,a,l){null==l&&(l=1);for(var c=(l=l>1?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],u=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,d=0;d<12;d++){var f=c*h[d]+c,m=hn(f,e,n,r,s),g=hn(f,t,i,o,a),v=m*m+g*g;p+=u[d]*qt.sqrt(v)}return c*p}function pn(e,t,n,i,r,o,s,a){if(!(Yt(e,n)<Wt(r,s)||Wt(e,n)>Yt(r,s)||Yt(t,i)<Wt(o,a)||Wt(t,i)>Yt(o,a))){var l=(e*i-t*n)*(o-a)-(t-i)*(r*a-o*s),c=(e-n)*(o-a)-(t-i)*(r-s);if(c){var h=dn(((e*i-t*n)*(r-s)-(e-n)*(r*a-o*s))/c),u=dn(l/c),p=+h.toFixed(2),d=+u.toFixed(2);if(!(p<+Wt(e,n).toFixed(2)||p>+Yt(e,n).toFixed(2)||p<+Wt(r,s).toFixed(2)||p>+Yt(r,s).toFixed(2)||d<+Wt(t,i).toFixed(2)||d>+Yt(t,i).toFixed(2)||d<+Wt(o,a).toFixed(2)||d>+Yt(o,a).toFixed(2)))return{x:h,y:u}}}}function dn(e){return Math.round(1e11*e)/1e11}function fn(e,t,n){if(!function(e,t){return e=rn(e),cn(t=rn(t),e.x,e.y)||cn(t,e.x2,e.y)||cn(t,e.x,e.y2)||cn(t,e.x2,e.y2)||cn(e,t.x,t.y)||cn(e,t.x2,t.y)||cn(e,t.x,t.y2)||cn(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)}(ln(e),ln(t)))return n?0:[];for(var i=un.apply(0,e),r=un.apply(0,t),o=gn(e)?1:~~(i/5)||1,s=gn(t)?1:~~(r/5)||1,a=[],l=[],c={},h=n?0:[],u=0;u<o+1;u++){var p=an.apply(0,e.concat(u/o));a.push({x:p.x,y:p.y,t:u/o})}for(u=0;u<s+1;u++)p=an.apply(0,t.concat(u/s)),l.push({x:p.x,y:p.y,t:u/s});for(u=0;u<o;u++)for(var d=0;d<s;d++){var f,m=a[u],g=a[u+1],v=l[d],y=l[d+1],b=Ut(g.x-m.x)<.01?"y":"x",x=Ut(y.x-v.x)<.01?"y":"x",w=pn(m.x,m.y,g.x,g.y,v.x,v.y,y.x,y.y);if(w){if(c[f=w.x.toFixed(9)+"#"+w.y.toFixed(9)])continue;c[f]=!0;var _=m.t+Ut((w[b]-m[b])/(g[b]-m[b]))*(g.t-m.t),O=v.t+Ut((w[x]-v[x])/(y[x]-v[x]))*(y.t-v.t);_>=0&&_<=1&&O>=0&&O<=1&&(n?h++:h.push({x:w.x,y:w.y,t1:_,t2:O}))}}return h}function mn(e){var t=nn(e);if(t.abs)return sn(t.abs);if(Jt(e)&&Jt(e&&e[0])||(e=function(e){if(!e)return null;var t=nn(e);if(t.arr)return tn(t.arr);var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=[];return Jt(e)&&Jt(e[0])&&(i=tn(e)),i.length||String(e).replace(Zt,(function(e,t,r){var o=[],s=t.toLowerCase();for(r.replace(Kt,(function(e,t){t&&o.push(+t)})),"m"==s&&o.length>2&&(i.push([t].concat(o.splice(0,2))),s="l",t="m"==t?"l":"L");o.length>=n[s]&&(i.push([t].concat(o.splice(0,n[s]))),n[s]););})),i.toString=nn.toString,t.arr=tn(i),i}(e)),!e||!e.length)return[["M",0,0]];var n,i=[],r=0,o=0,s=0,a=0,l=0;"M"==e[0][0]&&(s=r=+e[0][1],a=o=+e[0][2],l++,i[0]=["M",r,o]);for(var c,h,u=l,p=e.length;u<p;u++){if(i.push(c=[]),(n=(h=e[u])[0])!=n.toUpperCase())switch(c[0]=n.toUpperCase(),c[0]){case"A":c[1]=h[1],c[2]=h[2],c[3]=h[3],c[4]=h[4],c[5]=h[5],c[6]=+h[6]+r,c[7]=+h[7]+o;break;case"V":c[1]=+h[1]+o;break;case"H":c[1]=+h[1]+r;break;case"M":s=+h[1]+r,a=+h[2]+o;default:for(var d=1,f=h.length;d<f;d++)c[d]=+h[d]+(d%2?r:o)}else for(var m=0,g=h.length;m<g;m++)c[m]=h[m];switch(n=n.toUpperCase(),c[0]){case"Z":r=+s,o=+a;break;case"H":r=c[1];break;case"V":o=c[1];break;case"M":s=c[c.length-2],a=c[c.length-1];default:r=c[c.length-2],o=c[c.length-1]}}return i.toString=on,t.abs=sn(i),i}function gn(e){return e[0]===e[2]&&e[1]===e[3]&&e[4]===e[6]&&e[5]===e[7]}function vn(e,t,n,i){return[e,t,n,i,n,i]}function yn(e,t,n,i,r,o){var s=1/3,a=2/3;return[s*e+a*n,s*t+a*i,s*r+a*n,s*o+a*i,r,o]}function bn(e,t,n,i,r,o,s,a,l,c){var h,u=120*Ht/180,p=Ht/180*(+r||0),d=[],f=function(e){return function t(){var n=Array.prototype.slice.call(arguments,0),i=n.join("␀"),r=t.cache=t.cache||{},o=t.count=t.count||[];return en(r,i)?(function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return e.push(e.splice(n,1)[0])}(o,i),r[i]):(o.length>=1e3&&delete r[o.shift()],o.push(i),r[i]=e.apply(0,n),r[i])}}((function(e,t,n){return{x:e*qt.cos(n)-t*qt.sin(n),y:e*qt.sin(n)+t*qt.cos(n)}}));if(c)O=c[0],E=c[1],w=c[2],_=c[3];else{e=(h=f(e,t,-p)).x,t=h.y;var m=(e-(a=(h=f(a,l,-p)).x))/2,g=(t-(l=h.y))/2,v=m*m/(n*n)+g*g/(i*i);v>1&&(n*=v=qt.sqrt(v),i*=v);var y=n*n,b=i*i,x=(o==s?-1:1)*qt.sqrt(Ut((y*b-y*g*g-b*m*m)/(y*g*g+b*m*m))),w=x*n*g/i+(e+a)/2,_=x*-i*m/n+(t+l)/2,O=qt.asin(((t-_)/i).toFixed(9)),E=qt.asin(((l-_)/i).toFixed(9));(O=e<w?Ht-O:O)<0&&(O=2*Ht+O),(E=a<w?Ht-E:E)<0&&(E=2*Ht+E),s&&O>E&&(O-=2*Ht),!s&&E>O&&(E-=2*Ht)}var k=E-O;if(Ut(k)>u){var S=E,C=a,P=l;E=O+u*(s&&E>O?1:-1),d=bn(a=w+n*qt.cos(E),l=_+i*qt.sin(E),n,i,r,0,s,C,P,[E,S,w,_])}k=E-O;var $=qt.cos(O),A=qt.sin(O),R=qt.cos(E),T=qt.sin(E),M=qt.tan(k/4),D=4/3*n*M,B=4/3*i*M,L=[e,t],N=[e+D*A,t-B*$],j=[a+D*T,l-B*R],z=[a,l];if(N[0]=2*L[0]-N[0],N[1]=2*L[1]-N[1],c)return[N,j,z].concat(d);for(var I=[],X=0,Q=(d=[N,j,z].concat(d).join().split(",")).length;X<Q;X++)I[X]=X%2?f(d[X-1],d[X],p).y:f(d[X],d[X+1],p).x;return I}function xn(e,t,n,i,r,o,s,a){for(var l,c,h,u,p,d,f,m,g=[],v=[[],[]],y=0;y<2;++y)if(0==y?(c=6*e-12*n+6*r,l=-3*e+9*n-9*r+3*s,h=3*n-3*e):(c=6*t-12*i+6*o,l=-3*t+9*i-9*o+3*a,h=3*i-3*t),Ut(l)<1e-12){if(Ut(c)<1e-12)continue;0<(u=-h/c)&&u<1&&g.push(u)}else f=c*c-4*h*l,m=qt.sqrt(f),f<0||(0<(p=(-c+m)/(2*l))&&p<1&&g.push(p),0<(d=(-c-m)/(2*l))&&d<1&&g.push(d));for(var b,x=g.length,w=x;x--;)b=1-(u=g[x]),v[0][x]=b*b*b*e+3*b*b*u*n+3*b*u*u*r+u*u*u*s,v[1][x]=b*b*b*t+3*b*b*u*i+3*b*u*u*o+u*u*u*a;return v[0][w]=e,v[1][w]=t,v[0][w+1]=s,v[1][w+1]=a,v[0].length=v[1].length=w+2,{x0:Wt.apply(0,v[0]),y0:Wt.apply(0,v[1]),x1:Yt.apply(0,v[0]),y1:Yt.apply(0,v[1])}}function wn(e){var t=nn(e);if(t.curve)return sn(t.curve);for(var n=mn(e),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},r=function(e,t,n){var i,r;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"].concat(bn.apply(0,[t.x,t.y].concat(e.slice(1))));break;case"S":"C"==n||"S"==n?(i=2*t.x-t.bx,r=2*t.y-t.by):(i=t.x,r=t.y),e=["C",i,r].concat(e.slice(1));break;case"T":"Q"==n||"T"==n?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=["C"].concat(yn(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"].concat(yn(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"].concat(vn(t.x,t.y,e[1],e[2]));break;case"H":e=["C"].concat(vn(t.x,t.y,e[1],t.y));break;case"V":e=["C"].concat(vn(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"].concat(vn(t.x,t.y,t.X,t.Y))}return e},o=function(e,t){if(e[t].length>7){e[t].shift();for(var i=e[t];i.length;)s[t]="A",e.splice(t++,0,["C"].concat(i.splice(0,6)));e.splice(t,1),h=n.length}},s=[],a="",l="",c=0,h=n.length;c<h;c++){n[c]&&(a=n[c][0]),"C"!=a&&(s[c]=a,c&&(l=s[c-1])),n[c]=r(n[c],i,l),"A"!=s[c]&&"C"==a&&(s[c]="C"),o(n,c);var u=n[c],p=u.length;i.x=u[p-2],i.y=u[p-1],i.bx=Vt(u[p-4])||i.x,i.by=Vt(u[p-3])||i.y}return t.curve=sn(n),n}var _n=function(e,t,n){e=wn(e),t=wn(t);for(var i,r,o,s,a,l,c,h,u,p,d=n?0:[],f=0,m=e.length;f<m;f++){var g=e[f];if("M"==g[0])i=a=g[1],r=l=g[2];else{"C"==g[0]?(u=[i,r].concat(g.slice(1)),i=u[6],r=u[7]):(u=[i,r,i,r,a,l,a,l],i=a,r=l);for(var v=0,y=t.length;v<y;v++){var b=t[v];if("M"==b[0])o=c=b[1],s=h=b[2];else{"C"==b[0]?(p=[o,s].concat(b.slice(1)),o=p[6],s=p[7]):(p=[o,s,o,s,c,h,c,h],o=c,s=h);var x=fn(u,p,n);if(n)d+=x;else{for(var w=0,_=x.length;w<_;w++)x[w].segment1=f,x[w].segment2=v,x[w].bez1=u,x[w].bez2=p;d=d.concat(x)}}}}}return d},On=Xt(_n);function En(e){return h(e)&&m(e,"waypoints")}function kn(e){return h(e)&&m(e,"labelTarget")}function Sn(e){return{x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height)}}function Cn(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function Pn(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function $n(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function An(e){for(var t=e.waypoints,n=t.reduce((function(e,n,i){var r=t[i-1];if(r){var o=e[e.length-1],s=o&&o.endLength||0,a=function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}(r,n);e.push({start:r,end:n,startLength:s,endLength:s+a,length:a})}return e}),[]),i=n.reduce((function(e,t){return e+t.length}),0),r=i/2,o=0,s=n[o];s.endLength<r;)s=n[++o];var a=(r-s.startLength)/s.length;return{x:s.start.x+(s.end.x-s.start.x)*a,y:s.start.y+(s.end.y-s.start.y)*a}}function Rn(e){return En(e)?An(e):Cn({x:(t=e).x+(t.width||0)/2,y:t.y+(t.height||0)/2});var t}function Tn(e,t,n){h(n=n||0)||(n={x:n,y:n});var i=Pn(e),r=Pn(t),o=i.bottom+n.y<=r.top,s=i.left-n.x>=r.right,a=i.top-n.y>=r.bottom,l=o?"top":a?"bottom":null,c=i.right+n.x<=r.left?"left":s?"right":null;return c&&l?l+"-"+c:c||l||"intersect"}function Mn(e,t,n){var i=function(e,t){return On(e,t)}(e,t);return 1===i.length||2===i.length&&Dt(i[0],i[1])<1?Cn(i[0]):i.length>1?(i=R(i,(function(e){var t=Math.floor(100*e.t2)||1;return t=((t=100-t)<10?"0":"")+t,e.segment2+"#"+t})),Cn(i[n?0:i.length-1])):null}function Dn(e,t){return Math.round(e*t)/t}function Bn(e){return u(e)?e+"px":e}function Ln(e,t,n){const i=Ie("g");Te(i).add(t);const r=void 0!==n?n:e.childNodes.length-1;return e.insertBefore(i,e.childNodes[r]||null),i}const Nn={shape:["x","y","width","height"],connection:["waypoints"]};function jn(e,t,n,i){this._eventBus=t,this._elementRegistry=i,this._graphicsFactory=n,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._init(e||{})}function zn(e,t){const n="matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")";e.setAttribute("transform",n)}jn.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],jn.prototype._init=function(e){const t=this._eventBus,n=this._container=function(e){const t=(e=I({},{width:"100%",height:"100%"},e)).container||document.body,n=document.createElement("div");return n.setAttribute("class","djs-container djs-parent"),J(n,{position:"relative",overflow:"hidden",width:Bn(e.width),height:Bn(e.height)}),t.appendChild(n),n}(e),i=this._svg=Ie("svg");Ae(i,{width:"100%",height:"100%"}),Se(n,i);const r=this._viewport=Ln(i,"viewport");e.deferUpdate&&(this._viewboxChanged=N(z(this._viewboxChanged,this),300)),t.on("diagram.init",(()=>{t.fire("canvas.init",{svg:i,viewport:r})})),t.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],(()=>{delete this._cachedViewbox})),t.on("diagram.destroy",500,this._destroy,this),t.on("diagram.clear",500,this._clear,this)},jn.prototype._destroy=function(){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});const e=this._container.parentNode;e&&e.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},jn.prototype._clear=function(){this._elementRegistry.getAll().forEach((e=>{const t=kt(e);"root"===t?this.removeRootElement(e):this._removeElement(e,t)})),this._planes=[],this._rootElement=null,delete this._cachedViewbox},jn.prototype.getDefaultLayer=function(){return this.getLayer("base",0)},jn.prototype.getLayer=function(e,t){if(!e)throw new Error("must specify a name");let n=this._layers[e];if(n||(n=this._layers[e]=this._createLayer(e,t)),void 0!==t&&n.index!==t)throw new Error("layer <"+e+"> already created at index <"+t+">");return n.group},jn.prototype._getChildIndex=function(e){return w(this._layers,(function(t,n){return n.visible&&e>=n.index&&t++,t}),0)},jn.prototype._createLayer=function(e,t){void 0===t&&(t=1);const n=this._getChildIndex(t);return{group:Ln(this._viewport,"layer-"+e,n),index:t,visible:!0}},jn.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const n=this._viewport,i=t.group,r=t.index;if(t.visible)return i;const o=this._getChildIndex(r);return n.insertBefore(i,n.childNodes[o]||null),t.visible=!0,i},jn.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const n=t.group;return t.visible?(De(n),t.visible=!1,n):n},jn.prototype._removeLayer=function(e){const t=this._layers[e];t&&(delete this._layers[e],De(t.group))},jn.prototype.getActiveLayer=function(){const e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null},jn.prototype.findRoot=function(e){if("string"==typeof e&&(e=this._elementRegistry.get(e)),!e)return;const t=this._findPlaneForRoot(function(e){for(;e.parent;)e=e.parent;return e}(e))||{};return t.rootElement},jn.prototype.getRootElements=function(){return this._planes.map((function(e){return e.rootElement}))},jn.prototype._findPlaneForRoot=function(e){return g(this._planes,(function(t){return t.rootElement===e}))},jn.prototype.getContainer=function(){return this._container},jn.prototype._updateMarker=function(e,t,n){let i;e.id||(e=this._elementRegistry.get(e)),i=this._elementRegistry._elements[e.id],i&&(b([i.gfx,i.secondaryGfx],(function(e){e&&(n?Te(e).add(t):Te(e).remove(t))})),this._eventBus.fire("element.marker.update",{element:e,gfx:i.gfx,marker:t,add:!!n}))},jn.prototype.addMarker=function(e,t){this._updateMarker(e,t,!0)},jn.prototype.removeMarker=function(e,t){this._updateMarker(e,t,!1)},jn.prototype.hasMarker=function(e,t){e.id||(e=this._elementRegistry.get(e));return Te(this.getGraphics(e)).has(t)},jn.prototype.toggleMarker=function(e,t){this.hasMarker(e,t)?this.removeMarker(e,t):this.addMarker(e,t)},jn.prototype.getRootElement=function(){const e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))},jn.prototype.addRootElement=function(e){const t=this._rootsIdx++;e||(e={id:"__implicitroot_"+t,children:[],isImplicit:!0});const n=e.layer="root-"+t;this._ensureValid("root",e);const i=this.getLayer(n,0);return this.hideLayer(n),this._addRoot(e,i),this._planes.push({rootElement:e,layer:i}),e},jn.prototype.removeRootElement=function(e){"string"==typeof e&&(e=this._elementRegistry.get(e));if(this._findPlaneForRoot(e))return this._removeRoot(e),this._removeLayer(e.layer),this._planes=this._planes.filter((function(t){return t.rootElement!==e})),this._rootElement===e&&(this._rootElement=null),e},jn.prototype.setRootElement=function(e){if(e===this._rootElement)return;let t;if(!e)throw new Error("rootElement required");return t=this._findPlaneForRoot(e),t||(e=this.addRootElement(e)),this._setRoot(e),e},jn.prototype._removeRoot=function(e){const t=this._elementRegistry,n=this._eventBus;n.fire("root.remove",{element:e}),n.fire("root.removed",{element:e}),t.remove(e)},jn.prototype._addRoot=function(e,t){const n=this._elementRegistry,i=this._eventBus;i.fire("root.add",{element:e}),n.add(e,t),i.fire("root.added",{element:e,gfx:t})},jn.prototype._setRoot=function(e,t){const n=this._rootElement;n&&(this._elementRegistry.updateGraphics(n,null,!0),this.hideLayer(n.layer)),e&&(t||(t=this._findPlaneForRoot(e).layer),this._elementRegistry.updateGraphics(e,this._svg,!0),this.showLayer(e.layer)),this._rootElement=e,this._eventBus.fire("root.set",{element:e})},jn.prototype._ensureValid=function(e,t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element <"+t.id+"> already exists");const n=Nn[e],i=_(n,(function(e){return void 0!==t[e]}));if(!i)throw new Error("must supply { "+n.join(", ")+" } with "+e)},jn.prototype._setParent=function(e,t,n){Tt(t.children,e,n),e.parent=t},jn.prototype._addElement=function(e,t,n,i){n=n||this.getRootElement();const r=this._eventBus,o=this._graphicsFactory;this._ensureValid(e,t),r.fire(e+".add",{element:t,parent:n}),this._setParent(t,n,i);const s=o.create(e,t,i);return this._elementRegistry.add(t,s),o.update(e,t,s),r.fire(e+".added",{element:t,gfx:s}),t},jn.prototype.addShape=function(e,t,n){return this._addElement("shape",e,t,n)},jn.prototype.addConnection=function(e,t,n){return this._addElement("connection",e,t,n)},jn.prototype._removeElement=function(e,t){const n=this._elementRegistry,i=this._graphicsFactory,r=this._eventBus;if(e=n.get(e.id||e))return r.fire(t+".remove",{element:e}),i.remove(e),Rt(e.parent&&e.parent.children,e),e.parent=null,r.fire(t+".removed",{element:e}),n.remove(e),e},jn.prototype.removeShape=function(e){return this._removeElement(e,"shape")},jn.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},jn.prototype.getGraphics=function(e,t){return this._elementRegistry.getGraphics(e,t)},jn.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},jn.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},jn.prototype.viewbox=function(e){if(void 0===e&&this._cachedViewbox)return this._cachedViewbox;const t=this._viewport,n=this.getSize();let i,r,o,s,a,l,c;return e?(this._changeViewbox((function(){a=Math.min(n.width/e.width,n.height/e.height);const i=this._svg.createSVGMatrix().scale(a).translate(-e.x,-e.y);Je(t,i)})),e):(o=this._rootElement?this.getActiveLayer():null,i=o&&o.getBBox()||{},s=Je(t),r=s?s.matrix:function(e,t,n,i,r,o){var s=Qe().createSVGMatrix();switch(arguments.length){case 0:return s;case 1:return Fe(s,e);case 6:return Fe(s,{a:e,b:t,c:n,d:i,e:r,f:o})}}(),a=Dn(r.a,1e3),l=Dn(-r.e||0,1e3),c=Dn(-r.f||0,1e3),e=this._cachedViewbox={x:l?l/a:0,y:c?c/a:0,width:n.width/a,height:n.height/a,scale:a,inner:{width:i.width||0,height:i.height||0,x:i.x||0,y:i.y||0},outer:n})},jn.prototype.scroll=function(e){const t=this._viewport;let n=t.getCTM();return e&&this._changeViewbox((function(){e=I({dx:0,dy:0},e||{}),n=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(n),zn(t,n)})),{x:n.e,y:n.f}},jn.prototype.scrollToElement=function(e,t){let n=100;"string"==typeof e&&(e=this._elementRegistry.get(e));const i=this.findRoot(e);if(i!==this.getRootElement()&&this.setRootElement(i),i===e)return;t||(t={}),"number"==typeof t&&(n=t),t={top:t.top||n,right:t.right||n,bottom:t.bottom||n,left:t.left||n};const r=Et(e),o=Pn(r),s=this.viewbox(),a=this.zoom();let l,c;s.y+=t.top/a,s.x+=t.left/a,s.width-=(t.right+t.left)/a,s.height-=(t.bottom+t.top)/a;const h=Pn(s);if(r.width<s.width&&r.height<s.height){const e=Math.max(0,o.right-h.right),t=Math.min(0,o.left-h.left),n=Math.max(0,o.bottom-h.bottom),i=Math.min(0,o.top-h.top);l=e||t,c=n||i}else l=r.x-s.x,c=r.y-s.y;this.scroll({dx:-l*a,dy:-c*a})},jn.prototype.zoom=function(e,t){if(!e)return this.viewbox(e).scale;if("fit-viewport"===e)return this._fitViewport(t);let n,i;return this._changeViewbox((function(){"object"!=typeof t&&(n=this.viewbox().outer,t={x:n.width/2,y:n.height/2}),i=this._setZoom(e,t)})),Dn(i.a,1e3)},jn.prototype._fitViewport=function(e){const t=this.viewbox(),n=t.outer,i=t.inner;let r,o;return i.x>=0&&i.y>=0&&i.x+i.width<=n.width&&i.y+i.height<=n.height&&!e?o={x:0,y:0,width:Math.max(i.width+i.x,n.width),height:Math.max(i.height+i.y,n.height)}:(r=Math.min(1,n.width/i.width,n.height/i.height),o={x:i.x+(e?i.width/2-n.width/r/2:0),y:i.y+(e?i.height/2-n.height/r/2:0),width:n.width/r,height:n.height/r}),this.viewbox(o),this.viewbox(!1).scale},jn.prototype._setZoom=function(e,t){const n=this._svg,i=this._viewport,r=n.createSVGMatrix(),o=n.createSVGPoint();let s,a,l,c,h;l=i.getCTM();const u=l.a;return t?(s=I(o,t),a=s.matrixTransform(l.inverse()),c=r.translate(a.x,a.y).scale(1/u*e).translate(-a.x,-a.y),h=l.multiply(c)):h=r.scale(e),zn(this._viewport,h),h},jn.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},jn.prototype.getAbsoluteBBox=function(e){const t=this.viewbox();let n;if(e.waypoints){n=this.getGraphics(e).getBBox()}else n=e;return{x:n.x*t.scale-t.x*t.scale,y:n.y*t.scale-t.y*t.scale,width:n.width*t.scale,height:n.height*t.scale}},jn.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var In="data-element-id";function Xn(e){this._elements={},this._eventBus=e}Xn.$inject=["eventBus"],Xn.prototype.add=function(e,t,n){var i=e.id;this._validateId(i),Ae(t,In,i),n&&Ae(n,In,i),this._elements[i]={element:e,gfx:t,secondaryGfx:n}},Xn.prototype.remove=function(e){var t=this._elements,n=e.id||e,i=n&&t[n];i&&(Ae(i.gfx,In,""),i.secondaryGfx&&Ae(i.secondaryGfx,In,""),delete t[n])},Xn.prototype.updateId=function(e,t){this._validateId(t),"string"==typeof e&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:t});var n=this.getGraphics(e),i=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,n,i)},Xn.prototype.updateGraphics=function(e,t,n){var i=e.id||e,r=this._elements[i];return n?r.secondaryGfx=t:r.gfx=t,t&&Ae(t,In,i),t},Xn.prototype.get=function(e){var t;t="string"==typeof e?e:e&&Ae(e,In);var n=this._elements[t];return n&&n.element},Xn.prototype.filter=function(e){var t=[];return this.forEach((function(n,i){e(n,i)&&t.push(n)})),t},Xn.prototype.find=function(e){for(var t=this._elements,n=Object.keys(t),i=0;i<n.length;i++){var r=t[n[i]],o=r.element;if(e(o,r.gfx))return o}},Xn.prototype.getAll=function(){return this.filter((function(e){return e}))},Xn.prototype.forEach=function(e){var t=this._elements;Object.keys(t).forEach((function(n){var i=t[n],r=i.element,o=i.gfx;return e(r,o)}))},Xn.prototype.getGraphics=function(e,t){var n=e.id||e,i=this._elements[n];return i&&(t?i.secondaryGfx:i.gfx)},Xn.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")};var Qn={exports:{}},Fn={};Fn.extend=function(e,t,n,i){var r=n.inverse;return Object.defineProperty(e,"remove",{value:function(e){var n=this.indexOf(e);return-1!==n&&(this.splice(n,1),t.unset(e,r,i)),e}}),Object.defineProperty(e,"contains",{value:function(e){return-1!==this.indexOf(e)}}),Object.defineProperty(e,"add",{value:function(e,n){var o=this.indexOf(e);if(void 0===n){if(-1!==o)return;n=this.length}-1!==o&&this.splice(o,1),this.splice(n,0,e),-1===o&&t.set(e,r,i)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e},Fn.isExtended=function(e){return!0===e.__refs_collection};var Vn=Fn;function qn(e,t,n){var i=Vn.extend(n[t.name]||[],e,t,n);Object.defineProperty(n,t.name,{enumerable:t.enumerable,value:i}),i.length&&i.forEach((function(i){e.set(i,t.inverse,n)}))}function Hn(e,t){if(!(this instanceof Hn))return new Hn(e,t);e.inverse=t,t.inverse=e,this.props={},this.props[e.name]=e,this.props[t.name]=t}Hn.prototype.bind=function(e,t){if("string"==typeof t){if(!this.props[t])throw new Error("no property <"+t+"> in ref");t=this.props[t]}t.collection?qn(this,t,e):function(e,t,n){var i=t.inverse,r=n[t.name];Object.defineProperty(n,t.name,{configurable:t.configurable,enumerable:t.enumerable,get:function(){return r},set:function(t){if(t!==r){var o=r;r=null,o&&e.unset(o,i,n),r=t,e.set(r,i,n)}}})}(this,t,e)},Hn.prototype.ensureRefsCollection=function(e,t){var n=e[t.name];return Vn.isExtended(n)||qn(this,t,e),n},Hn.prototype.ensureBound=function(e,t){(function(e,t){return Object.prototype.hasOwnProperty.call(e,t.name||t)})(e,t)||this.bind(e,t)},Hn.prototype.unset=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(n):e[t.name]=void 0)},Hn.prototype.set=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).add(n):e[t.name]=n)};var Wn=Hn;Qn.exports=Wn,Qn.exports.Collection=Fn;var Yn=Xt(Qn.exports),Gn=new Yn({name:"children",enumerable:!0,collection:!0},{name:"parent"}),Un=new Yn({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),Zn=new Yn({name:"attachers",collection:!0},{name:"host"}),Kn=new Yn({name:"outgoing",collection:!0},{name:"source"}),Jn=new Yn({name:"incoming",collection:!0},{name:"target"});function ei(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var t=this.label,n=this.labels;!e&&t?n.remove(t):n.add(e,0)}}),Gn.bind(this,"parent"),Un.bind(this,"labels"),Kn.bind(this,"outgoing"),Jn.bind(this,"incoming")}function ti(){ei.call(this),Gn.bind(this,"children"),Zn.bind(this,"host"),Zn.bind(this,"attachers")}function ni(){ei.call(this),Gn.bind(this,"children")}function ii(){ti.call(this),Un.bind(this,"labelTarget")}function ri(){ei.call(this),Kn.bind(this,"source"),Jn.bind(this,"target")}e(ti,ei),e(ni,ti),e(ii,ti),e(ri,ei);var oi={connection:ri,shape:ti,label:ii,root:ni};function si(){this._uid=12}si.prototype.createRoot=function(e){return this.create("root",e)},si.prototype.createLabel=function(e){return this.create("label",e)},si.prototype.createShape=function(e){return this.create("shape",e)},si.prototype.createConnection=function(e){return this.create("connection",e)},si.prototype.create=function(e,t){return(t=I({},t||{})).id||(t.id=e+"_"+this._uid++),function(e,t){var n=oi[e];if(!n)throw new Error("unknown type: <"+e+">");return I(new n,t)}(e,t)};var ai="__fn",li=Array.prototype.slice;function ci(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}function hi(){}function ui(e){return e.childNodes[0]}function pi(e,t,n,i,r){var o=Ve();o.setTranslate(t,n);var s=Ve();s.setRotate(i||0,0,0);var a=Ve();a.setScale(r||1,r||1),Je(e,[o,s,a])}function di(e,t,n){var i=Ve();i.setTranslate(t,n),Je(e,i)}function fi(e,t){var n=Ve();n.setRotate(t,0,0),Je(e,n)}function mi(e,t){this._eventBus=e,this._elementRegistry=t}function gi(e,t,n){var i=n||t.firstChild;e!==i&&t.insertBefore(e,i)}ci.prototype.on=function(e,t,n,i){if(e=c(e)?e:[e],p(t)&&(i=n,n=t,t=1e3),!u(t))throw new Error("priority must be a number");var r=n;i&&((r=z(n,i))[ai]=n[ai]||n);var o=this;e.forEach((function(e){o._addListener(e,{priority:t,callback:r,next:null})}))},ci.prototype.once=function(e,t,n,i){var r=this;if(p(t)&&(i=n,n=t,t=1e3),!u(t))throw new Error("priority must be a number");function o(){o.__isTomb=!0;var t=n.apply(i,arguments);return r.off(e,o),t}o[ai]=n,this.on(e,t,o)},ci.prototype.off=function(e,t){e=c(e)?e:[e];var n=this;e.forEach((function(e){n._removeListener(e,t)}))},ci.prototype.createEvent=function(e){var t=new hi;return t.init(e),t},ci.prototype.fire=function(e,t){var n,i,r,o;if(o=li.call(arguments),"object"==typeof e&&(e=(t=e).type),!e)throw new Error("no event type specified");if(i=this._listeners[e]){n=t instanceof hi?t:this.createEvent(t),o[0]=n;var s=n.type;e!==s&&(n.type=e);try{r=this._invokeListeners(n,o,i)}finally{e!==s&&(n.type=s)}return void 0===r&&n.defaultPrevented&&(r=!1),r}},ci.prototype.handleError=function(e){return!1===this.fire("error",{error:e})},ci.prototype._destroy=function(){this._listeners={}},ci.prototype._invokeListeners=function(e,t,n){for(var i;n&&!e.cancelBubble;)i=this._invokeListener(e,t,n),n=n.next;return i},ci.prototype._invokeListener=function(e,t,n){var i;if(n.callback.__isTomb)return i;try{i=function(e,t){return e.apply(null,t)}(n.callback,t),void 0!==i&&(e.returnValue=i,e.stopPropagation()),!1===i&&e.preventDefault()}catch(e){if(!this.handleError(e))throw console.error("unhandled error in event listener",e),e}return i},ci.prototype._addListener=function(e,t){var n,i=this._getListeners(e);if(i){for(;i;){if(i.priority<t.priority)return t.next=i,void(n?n.next=t:this._setListeners(e,t));n=i,i=i.next}n.next=t}else this._setListeners(e,t)},ci.prototype._getListeners=function(e){return this._listeners[e]},ci.prototype._setListeners=function(e,t){this._listeners[e]=t},ci.prototype._removeListener=function(e,t){var n,i,r,o=this._getListeners(e);if(t)for(;o;)n=o.next,(r=o.callback)!==t&&r[ai]!==t||(i?i.next=n:this._setListeners(e,n)),i=o,o=n;else this._setListeners(e,null)},hi.prototype.stopPropagation=function(){this.cancelBubble=!0},hi.prototype.preventDefault=function(){this.defaultPrevented=!0},hi.prototype.init=function(e){I(this,e||{})},mi.$inject=["eventBus","elementRegistry"],mi.prototype._getChildrenContainer=function(e){var t,n=this._elementRegistry.getGraphics(e);return e.parent?(t=function(e){return e.parentNode.childNodes[1]}(n),t||(Te(t=Ie("g")).add("djs-children"),Se(n.parentNode,t))):t=n,t},mi.prototype._clear=function(e){var t=ui(e);return re(t),t},mi.prototype._createContainer=function(e,t,n,i){var r=Ie("g");Te(r).add("djs-group"),void 0!==n?gi(r,t,t.childNodes[n]):Se(t,r);var o=Ie("g");Te(o).add("djs-element"),Te(o).add("djs-"+e),i&&Te(o).add("djs-frame"),Se(r,o);var s=Ie("g");return Te(s).add("djs-visual"),Se(o,s),o},mi.prototype.create=function(e,t,n){var i=this._getChildrenContainer(t.parent);return this._createContainer(e,i,n,St(t))},mi.prototype.updateContainments=function(e){var t,n=this,i=this._elementRegistry;t=w(e,(function(e,t){return t.parent&&(e[t.parent.id]=t.parent),e}),{}),b(t,(function(e){var t=e.children;if(t){var r=n._getChildrenContainer(e);b(t.slice().reverse(),(function(e){gi(i.getGraphics(e).parentNode,r)}))}}))},mi.prototype.drawShape=function(e,t){return this._eventBus.fire("render.shape",{gfx:e,element:t})},mi.prototype.getShapePath=function(e){return this._eventBus.fire("render.getShapePath",e)},mi.prototype.drawConnection=function(e,t){return this._eventBus.fire("render.connection",{gfx:e,element:t})},mi.prototype.getConnectionPath=function(e){return this._eventBus.fire("render.getConnectionPath",e)},mi.prototype.update=function(e,t,n){if(t.parent){var i=this._clear(n);if("shape"===e)this.drawShape(i,t),di(n,t.x,t.y);else{if("connection"!==e)throw new Error("unknown type: "+e);this.drawConnection(i,t)}t.hidden?Ae(n,"display","none"):Ae(n,"display","block")}},mi.prototype.remove=function(e){De(this._elementRegistry.getGraphics(e).parentNode)};var vi={__depends__:[At],__init__:["canvas"],canvas:["type",jn],elementRegistry:["type",Xn],elementFactory:["type",si],eventBus:["type",ci],graphicsFactory:["type",mi]};function yi(e){return function(e){var t=new lt(e);return t.init(),t}([{config:["value",e=e||{}]},vi].concat(e.modules||[]))}function bi(e,t){this._injector=t=t||yi(e),this.get=t.get,this.invoke=t.invoke,this.get("eventBus").fire("diagram.init")}function xi(){}function wi(e,t){this.model=e,this.properties=t}bi.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},bi.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")},xi.prototype.get=function(e){return this.$model.properties.get(this,e)},xi.prototype.set=function(e,t){this.$model.properties.set(this,e,t)},wi.prototype.createType=function(e){var t=this.model,n=this.properties,i=Object.create(xi.prototype);b(e.properties,(function(e){e.isMany||void 0===e.default||(i[e.name]=e.default)})),n.defineModel(i,t),n.defineDescriptor(i,e);var r=e.ns.name;function o(e){n.define(this,"$type",{value:r,enumerable:!0}),n.define(this,"$attrs",{value:{}}),n.define(this,"$parent",{writable:!0}),b(e,z((function(e,t){this.set(t,e)}),this))}return o.prototype=i,o.hasType=i.$instanceOf=this.model.hasType,n.defineModel(o,t),n.defineDescriptor(o,e),o};var _i={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},Oi={String:function(e){return e},Boolean:function(e){return"true"===e},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function Ei(e,t){var n=Oi[e];return n?n(t):t}function ki(e){return!!_i[e]}function Si(e){return!!Oi[e]}function Ci(e,t){var n,i,r=e.split(/:/);if(1===r.length)n=e,i=t;else{if(2!==r.length)throw new Error("expected <prefix:localName> or <localName>, got "+e);n=r[1],i=r[0]}return{name:e=(i?i+":":"")+n,prefix:i,localName:n}}function Pi(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}function $i(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,b(e,z(this.registerPackage,this))}function Ai(e,t,n){var i=t[n];if(i in e)throw new Error("package with "+n+" <"+i+"> already defined")}function Ri(e){this.model=e}function Ti(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}function Mi(e){this.properties=new Ri(this),this.factory=new wi(this,this.properties),this.registry=new $i(e,this.properties),this.typeCache={}}Pi.prototype.build=function(){return F(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},Pi.prototype.addProperty=function(e,t,n){"boolean"==typeof t&&(n=t,t=void 0),this.addNamedProperty(e,!1!==n);var i=this.properties;void 0!==t?i.splice(t,0,e):i.push(e)},Pi.prototype.replaceProperty=function(e,t,n){var i=e.ns,r=this.properties,o=this.propertiesByName,s=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var a=r.indexOf(e);if(-1===a)throw new Error("property <"+i.name+"> not found in property list");r.splice(a,1),this.addProperty(t,n?void 0:a,s),o[i.name]=o[i.localName]=t},Pi.prototype.redefineProperty=function(e,t,n){var i=e.ns.prefix,r=t.split("#"),o=Ci(r[0],i),s=Ci(r[1],o.prefix).name,a=this.propertiesByName[s];if(!a)throw new Error("refined property <"+s+"> not found");this.replaceProperty(a,e,n),delete e.redefines},Pi.prototype.addNamedProperty=function(e,t){var n=e.ns,i=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),i[n.name]=i[n.localName]=e},Pi.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},Pi.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},Pi.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},Pi.prototype.assertNotDefined=function(e,t){var n=e.name,i=this.propertiesByName[n];if(i)throw new Error("property <"+n+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},Pi.prototype.hasProperty=function(e){return this.propertiesByName[e]},Pi.prototype.addTrait=function(e,t){var n=this.allTypesByName,i=this.allTypes,r=e.name;r in n||(b(e.properties,z((function(n){n=I({},n,{name:n.ns.localName,inherited:t}),Object.defineProperty(n,"definedBy",{value:e});var i=n.replaces,r=n.redefines;i||r?this.redefineProperty(n,i||r,i):(n.isBody&&this.setBodyProperty(n),n.isId&&this.setIdProperty(n),this.addProperty(n))}),this)),i.push(e),n[r]=e)},$i.prototype.getPackage=function(e){return this.packageMap[e]},$i.prototype.getPackages=function(){return this.packages},$i.prototype.registerPackage=function(e){e=I({},e);var t=this.packageMap;Ai(t,e,"prefix"),Ai(t,e,"uri"),b(e.types,z((function(t){this.registerType(t,e)}),this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},$i.prototype.registerType=function(e,t){var n=Ci((e=I({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:I(e.meta||{})})).name,t.prefix),i=n.name,r={};b(e.properties,z((function(e){var t=Ci(e.name,n.prefix),i=t.name;ki(e.type)||(e.type=Ci(e.type,t.prefix).name),I(e,{ns:t,name:i}),r[i]=e}),this)),I(e,{ns:n,name:i,propertiesByName:r}),b(e.extends,z((function(e){var t=this.typeMap[e];t.traits=t.traits||[],t.traits.push(i)}),this)),this.definePackage(e,t),this.typeMap[i]=e},$i.prototype.mapTypes=function(e,t,n){var i=ki(e.name)?{name:e.name}:this.typeMap[e.name],r=this;function o(e){return s(e,!0)}function s(n,i){var o=Ci(n,ki(n)?"":e.prefix);r.mapTypes(o,t,i)}if(!i)throw new Error("unknown type <"+e.name+">");b(i.superClass,n?o:s),t(i,!n),b(i.traits,o)},$i.prototype.getEffectiveDescriptor=function(e){var t=Ci(e),n=new Pi(t);this.mapTypes(t,(function(e,t){n.addTrait(e,t)}));var i=n.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i},$i.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})},Ri.prototype.set=function(e,t,n){if(!d(t)||!t.length)throw new TypeError("property name must be a non-empty string");var i=this.model.getPropertyDescriptor(e,t),r=i&&i.name;void 0===n?i?delete e[r]:delete e.$attrs[t]:i?r in e?e[r]=n:Ti(e,i,n):e.$attrs[t]=n},Ri.prototype.get=function(e,t){var n=this.model.getPropertyDescriptor(e,t);if(!n)return e.$attrs[t];var i=n.name;return!e[i]&&n.isMany&&Ti(e,n,[]),e[i]},Ri.prototype.define=function(e,t,n){if(!n.writable){var i=n.value;delete(n=I({},n,{get:function(){return i}})).value}Object.defineProperty(e,t,n)},Ri.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},Ri.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},Mi.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)},Mi.prototype.getType=function(e){var t=this.typeCache,n=d(e)?e:e.ns.name,i=t[n];return i||(e=this.registry.getEffectiveDescriptor(n),i=t[n]=this.factory.createType(e)),i},Mi.prototype.createAny=function(e,t,n){var i=Ci(e),r={$type:e,$instanceOf:function(e){return e===this.$type}},o={name:e,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:t}};return this.properties.defineDescriptor(r,o),this.properties.defineModel(r,this),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),b(n,(function(e,t){h(e)&&void 0!==e.value?r[e.name]=e.value:r[t]=e})),r},Mi.prototype.getPackage=function(e){return this.registry.getPackage(e)},Mi.prototype.getPackages=function(){return this.registry.getPackages()},Mi.prototype.getElementDescriptor=function(e){return e.$descriptor},Mi.prototype.hasType=function(e,t){return void 0===t&&(t=e,e=this),t in e.$model.getElementDescriptor(e).allTypesByName},Mi.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},Mi.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var Di=String.fromCharCode,Bi=Object.prototype.hasOwnProperty,Li=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,Ni={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};function ji(e,t,n,i){return i?Bi.call(Ni,i)?Ni[i]:"&"+i+";":Di(t||parseInt(n,16))}function zi(e){return e.length>3&&-1!==e.indexOf("&")?e.replace(Li,ji):e}Object.keys(Ni).forEach((function(e){Ni[e.toUpperCase()]=Ni[e]}));var Ii="http://www.w3.org/2001/XMLSchema-instance",Xi="xsi",Qi="xsi:type",Fi="non-whitespace outside of root node";function Vi(e){return new Error(e)}function qi(e){return"missing namespace for prefix <"+e+">"}function Hi(e){return{get:e,enumerable:!0}}function Wi(e){var t,n={};for(t in e)n[t]=e[t];return n}function Yi(e){return e+"$uri"}function Gi(){return{line:0,column:0}}function Ui(e){throw e}function Zi(e){if(!this)return new Zi(e);var t,n,i,r,o,s,a,l,c,h=e&&e.proxy,u=Ui,p=Gi,d=!1,f=!1,m=null,g=!1;function v(e){e instanceof Error||(e=Vi(e)),m=e,u(e,p)}function y(e){o&&(e instanceof Error||(e=Vi(e)),o(e,p))}this.on=function(e,c){if("function"!=typeof c)throw Vi("required args <name, cb>");switch(e){case"openTag":n=c;break;case"text":t=c;break;case"closeTag":i=c;break;case"error":u=c;break;case"warn":o=c;break;case"cdata":r=c;break;case"attention":l=c;break;case"question":a=c;break;case"comment":s=c;break;default:throw Vi("unsupported event: "+e)}return this},this.ns=function(e){if(void 0===e&&(e={}),"object"!=typeof e)throw Vi("required args <nsMap={}>");var t,n={};for(t in e)n[t]=e[t];return n[Ii]=Xi,f=!0,c=n,this},this.parse=function(e){if("string"!=typeof e)throw Vi("required args <xml=string>");return m=null,function(e){var o,u,m,b,x,w,_,O,E,k,S,C=f?[]:null,P=f?function(e){var t,n,i={};for(t in e)i[n=e[t]]=n,i[Yi(n)]=t;return i}(c):null,$=[],A=0,R=!1,T=!1,M=0,D=0,B="",L=0;function N(){if(null!==S)return S;var e,t,n,i,r,o,s,a,l,h,u,p=f&&P.xmlns,m=f&&d?[]:null,g=L,v=B,b=v.length,x={},w={};e:for(;g<b;g++)if(l=!1,!(32===(h=v.charCodeAt(g))||h<14&&h>8)){for((h<65||h>122||h>90&&h<97)&&95!==h&&58!==h&&(y("illegal first char attribute name"),l=!0),u=g+1;u<b;u++)if(!((h=v.charCodeAt(u))>96&&h<123||h>64&&h<91||h>47&&h<59||46===h||45===h||95===h)){if(32===h||h<14&&h>8){y("missing attribute value"),g=u;continue e}if(61===h)break;y("illegal attribute name char"),l=!0}if("xmlns:xmlns"===(a=v.substring(g,u))&&(y("illegal declaration of xmlns"),l=!0),34===(h=v.charCodeAt(u+1)))-1===(u=v.indexOf('"',g=u+2))&&-1!==(u=v.indexOf("'",g))&&(y("attribute value quote missmatch"),l=!0);else if(39===h)-1===(u=v.indexOf("'",g=u+2))&&-1!==(u=v.indexOf('"',g))&&(y("attribute value quote missmatch"),l=!0);else for(y("missing attribute value quotes"),l=!0,u+=1;u<b&&!(32===(h=v.charCodeAt(u+1))||h<14&&h>8);u++);for(-1===u&&(y("missing closing quotes"),u=b,l=!0),l||(o=v.substring(g,u)),g=u;u+1<b&&!(32===(h=v.charCodeAt(u+1))||h<14&&h>8);u++)g===u&&(y("illegal character after attribute end"),l=!0);if(g=u+1,!l)if(a in w)y("attribute <"+a+"> already defined");else if(w[a]=!0,f)if(d){if(null!==(r="xmlns"===a?"xmlns":120===a.charCodeAt(0)&&"xmlns:"===a.substr(0,6)?a.substr(6):null)){if(e=zi(o),t=Yi(r),!(s=c[e])){if("xmlns"===r||t in P&&P[t]!==e)do{s="ns"+A++}while(void 0!==P[s]);else s=r;c[e]=s}P[r]!==s&&(i||(P=Wi(P),i=!0),P[r]=s,"xmlns"===r&&(P[Yi(s)]=e,p=s),P[t]=e),x[a]=o;continue}m.push(a,o)}else-1!==(h=a.indexOf(":"))?(n=P[a.substring(0,h)])?((a=p===n?a.substr(h+1):n+a.substr(h))===Qi&&(-1!==(h=o.indexOf(":"))?(n=o.substring(0,h),o=(n=P[n]||n)+o.substring(h)):o=p+":"+o),x[a]=o):y(qi(a.substring(0,h))):x[a]=o;else x[a]=o}if(d)for(g=0,b=m.length;g<b;g++){if(a=m[g++],o=m[g],-1!==(h=a.indexOf(":"))){if(!(n=P[a.substring(0,h)])){y(qi(a.substring(0,h)));continue}(a=p===n?a.substr(h+1):n+a.substr(h))===Qi&&(-1!==(h=o.indexOf(":"))?(n=o.substring(0,h),o=(n=P[n]||n)+o.substring(h)):o=p+":"+o)}x[a]=o}return S=x}function j(){for(var t,n,i=/(\r\n|\r|\n)/g,r=0,o=0,s=0,a=D;M>=s&&(t=i.exec(e))&&!((a=t[0].length+t.index)>M);)r+=1,s=a;return-1==M?(o=a,n=e.substring(D)):0===D?n=e.substring(D,M):(o=M-s,n=-1==D?e.substring(M):e.substring(M,D+1)),{data:n,line:r,column:o}}p=j,h&&(k=Object.create({},{name:Hi((function(){return O})),originalName:Hi((function(){return E})),attrs:Hi(N),ns:Hi((function(){return P}))}));for(;-1!==D;){if(-1===(M=60===e.charCodeAt(D)?D:e.indexOf("<",D)))return $.length?v("unexpected end of file"):0===D?v("missing start tag"):void(D<e.length&&e.substring(D).trim()&&y(Fi));if(D!==M)if($.length){if(t&&(t(e.substring(D,M),zi,p),g))return}else if(e.substring(D,M).trim()&&(y(Fi),g))return;if(33===(x=e.charCodeAt(M+1))){if(91===(b=e.charCodeAt(M+2))&&"CDATA["===e.substr(M+3,6)){if(-1===(D=e.indexOf("]]>",M)))return v("unclosed cdata");if(r&&(r(e.substring(M+9,D),p),g))return;D+=3;continue}if(45===b&&45===e.charCodeAt(M+3)){if(-1===(D=e.indexOf("--\x3e",M)))return v("unclosed comment");if(s&&(s(e.substring(M+4,D),zi,p),g))return;D+=3;continue}}if(63!==x){for(u=M+1;;u++){if(w=e.charCodeAt(u),isNaN(w))return D=-1,v("unclosed tag");if(34===w)u=-1!==(b=e.indexOf('"',u+1))?b:u;else if(39===w)u=-1!==(b=e.indexOf("'",u+1))?b:u;else if(62===w){D=u;break}}if(33!==x){if(S={},47===x){if(R=!1,T=!0,!$.length)return v("missing open tag");if(u=O=$.pop(),b=M+2+u.length,e.substring(M+2,b)!==u)return v("closing tag mismatch");for(;b<D;b++)if(!(32===(x=e.charCodeAt(b))||x>8&&x<14))return v("close tag")}else{if(47===e.charCodeAt(D-1)?(u=O=e.substring(M+1,D-1),R=!0,T=!0):(u=O=e.substring(M+1,D),R=!0,T=!1),!(x>96&&x<123||x>64&&x<91||95===x||58===x))return v("illegal first char nodeName");for(b=1,m=u.length;b<m;b++)if(!((x=u.charCodeAt(b))>96&&x<123||x>64&&x<91||x>47&&x<59||45===x||95===x||46==x)){if(32===x||x<14&&x>8){O=u.substring(0,b),S=null;break}return v("invalid nodeName")}T||$.push(O)}if(f){if(o=P,R&&(T||C.push(o),null===S&&(d=-1!==u.indexOf("xmlns",b))&&(L=b,B=u,N(),d=!1)),E=O,-1!==(x=O.indexOf(":"))){if(!(_=P[O.substring(0,x)]))return v("missing namespace on <"+E+">");O=O.substr(x+1)}else _=P.xmlns;_&&(O=_+":"+O)}if(R&&(L=b,B=u,n&&(h?n(k,zi,T,p):n(O,N,zi,T,p),g)))return;if(T){if(i&&(i(h?k:O,zi,R,p),g))return;f&&(P=R?o:C.pop())}D+=1}else{if(l&&(l(e.substring(M,D+1),zi,p),g))return;D+=1}}else{if(-1===(D=e.indexOf("?>",M)))return v("unclosed question");if(a&&(a(e.substring(M,D+2),p),g))return;D+=2}}}(e),p=Gi,g=!1,m},this.stop=function(){g=!0}}function Ki(e){return e.xml&&"lowerCase"===e.xml.tagAlias}var Ji={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},er="xsi:type";function tr(e){return e.xml&&e.xml.serialize}function nr(e){return tr(e)===er}function ir(e,t){return Ki(t)?e.prefix+":"+((n=e.localName).charAt(0).toUpperCase()+n.slice(1)):e.name;var n}function rr(e){return new Error(e)}function or(e){return e.$descriptor}function sr(e){I(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw rr("expected element");var t,n=this.elementsById,i=or(e).idProperty;if(i&&(t=e.get(i.name))){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(t))throw new Error("illegal ID <"+t+">");if(n[t])throw rr("duplicate ID <"+t+">");n[t]=e}},this.addWarning=function(e){this.warnings.push(e)}}function ar(){}function lr(){}function cr(){}function hr(e,t){this.property=e,this.context=t}function ur(e,t){this.element=t,this.propertyDesc=e}function pr(){}function dr(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}function fr(e,t,n){dr.call(this,e,t,n)}function mr(e,t,n){this.model=e,this.context=n}function gr(e){e instanceof Mi&&(e={model:e}),I(this,{lax:!1},e)}ar.prototype.handleEnd=function(){},ar.prototype.handleText=function(){},ar.prototype.handleNode=function(){},lr.prototype=Object.create(ar.prototype),lr.prototype.handleNode=function(){return this},cr.prototype=Object.create(ar.prototype),cr.prototype.handleText=function(e){this.body=(this.body||"")+e},hr.prototype=Object.create(cr.prototype),hr.prototype.handleNode=function(e){if(this.element)throw rr("expected no sub nodes");return this.element=this.createReference(e),this},hr.prototype.handleEnd=function(){this.element.id=this.body},hr.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}},ur.prototype=Object.create(cr.prototype),ur.prototype.handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=Ei(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)},pr.prototype=Object.create(cr.prototype),pr.prototype.handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t},dr.prototype=Object.create(pr.prototype),dr.prototype.addReference=function(e){this.context.addReference(e)},dr.prototype.handleText=function(e){if(!or(this.element).bodyProperty)throw rr("unexpected body text <"+e+">");cr.prototype.handleText.call(this,e)},dr.prototype.handleEnd=function(){var e=this.body,t=this.element,n=or(t).bodyProperty;n&&void 0!==e&&(e=Ei(n.type,e),t.set(n.name,e))},dr.prototype.createElement=function(e){var t,n=e.attributes,i=this.type,r=or(i),o=this.context,s=new i({}),a=this.model;return b(n,(function(e,n){var i=r.propertiesByName[n];i&&i.isReference?i.isMany?b(e.split(" "),(function(e){o.addReference({element:s,property:i.ns.name,id:e})})):o.addReference({element:s,property:i.ns.name,id:e}):(i?e=Ei(i.type,e):"xmlns"!==n&&(t=Ci(n,r.ns.prefix),a.getPackage(t.prefix)&&o.addWarning({message:"unknown attribute <"+n+">",element:s,property:n,value:e})),s.set(n,e))})),s},dr.prototype.getPropertyForNode=function(e){var t,n,i=Ci(e.name),r=this.type,o=this.model,s=or(r),a=i.name,l=s.propertiesByName[a];if(l&&!l.isAttr)return nr(l)&&(t=e.attributes[er])?(t=function(e,t){var n=Ci(e);return function(e,t){var n=e.name,i=e.localName,r=t.xml&&t.xml.typePrefix;return r&&0===i.indexOf(r)?e.prefix+":"+i.slice(r.length):n}(n,t.getPackage(n.prefix))}(t,o),I({},l,{effectiveType:or(n=o.getType(t)).name})):l;var c=o.getPackage(i.prefix);if(c){if(t=ir(i,c),n=o.getType(t),l=g(s.properties,(function(e){return!e.isVirtual&&!e.isReference&&!e.isAttribute&&n.hasType(e.type)})),l)return I({},l,{effectiveType:or(n).name})}else if(l=g(s.properties,(function(e){return!e.isReference&&!e.isAttribute&&"Element"===e.type})),l)return l;throw rr("unrecognized element <"+i.name+">")},dr.prototype.toString=function(){return"ElementDescriptor["+or(this.type).name+"]"},dr.prototype.valueHandler=function(e,t){return new ur(e,t)},dr.prototype.referenceHandler=function(e){return new hr(e,this.context)},dr.prototype.handler=function(e){return"Element"===e?new mr(this.model,e,this.context):new dr(this.model,e,this.context)},dr.prototype.handleChild=function(e){var t,n,i,r;if(t=this.getPropertyForNode(e),i=this.element,Si(n=t.effectiveType||t.type))return this.valueHandler(t,i);var o=(r=t.isReference?this.referenceHandler(t).handleNode(e):this.handler(n).handleNode(e)).element;return void 0!==o&&(t.isMany?i.get(t.name).push(o):i.set(t.name,o),t.isReference?(I(o,{element:i}),this.context.addReference(o)):o.$parent=i),r},fr.prototype=Object.create(dr.prototype),fr.prototype.createElement=function(e){var t=e.name,n=Ci(t),i=this.model,r=this.type,o=i.getPackage(n.prefix),s=o&&ir(n,o)||t;if(!r.hasType(s))throw rr("unexpected element <"+e.originalName+">");return dr.prototype.createElement.call(this,e)},mr.prototype=Object.create(pr.prototype),mr.prototype.createElement=function(e){var t=e.name,n=Ci(t).prefix,i=e.ns[n+"$uri"],r=e.attributes;return this.model.createAny(t,i,r)},mr.prototype.handleChild=function(e){var t=new mr(this.model,"Element",this.context).handleNode(e),n=this.element,i=t.element;return void 0!==i&&((n.$children=n.$children||[]).push(i),i.$parent=n),t},mr.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},gr.prototype.fromXML=function(e,t,n){var i=t.rootHandler;t instanceof dr?(i=t,t={}):"string"==typeof t?(i=this.handler(t),t={}):"string"==typeof i&&(i=this.handler(i));var r=this.model,o=this.lax,s=new sr(I({},t,{rootHandler:i})),a=new Zi({proxy:!0}),l=function(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}();function c(e,t,n){var i=t(),r=i.line,o=i.column,a=i.data;"<"===a.charAt(0)&&-1!==a.indexOf(" ")&&(a=a.slice(0,a.indexOf(" "))+">");var l="unparsable content "+(a?a+" ":"")+"detected\n\tline: "+r+"\n\tcolumn: "+o+"\n\tnested error: "+e.message;if(n)return s.addWarning({message:l,error:e}),!0;throw rr(l)}function h(e,t){return c(e,t,!0)}i.context=s,l.push(i);var u=/^<\?xml /i,p=/ encoding="([^"]+)"/i,d=/^utf-8$/i;function f(e,t){try{l.peek().handleText(e)}catch(e){h(e,t)}}var m=r.getPackages().reduce((function(e,t){return e[t.uri]=t.prefix,e}),{"http://www.w3.org/XML/1998/namespace":"xml"});return a.ns(m).on("openTag",(function(e,t,n,i){var r=e.attrs||{},s=Object.keys(r).reduce((function(e,n){var i=t(r[n]);return e[n]=i,e}),{});!function(e,t){var n=l.peek();try{l.push(n.handleNode(e))}catch(e){c(e,t,o)&&l.push(new lr)}}({name:e.name,originalName:e.originalName,attributes:s,ns:e.ns},i)})).on("question",(function(e){if(u.test(e)){var t=p.exec(e),n=t&&t[1];n&&!d.test(n)&&s.addWarning({message:"unsupported document encoding <"+n+">, falling back to UTF-8"})}})).on("closeTag",(function(){l.pop().handleEnd()})).on("cdata",f).on("text",(function(e,t,n){!function(e,t){e.trim()&&f(e,t)}(t(e),n)})).on("error",c).on("warn",h),new Promise((function(t,n){var r;try{a.parse(e),function(){var e,t,n=s.elementsById,i=s.references;for(e=0;t=i[e];e++){var r=t.element,o=n[t.id],a=or(r).propertiesByName[t.property];if(o||s.addWarning({message:"unresolved reference <"+t.id+">",element:t.element,property:t.property,value:t.id}),a.isMany){var l=r.get(a.name),c=l.indexOf(t);-1===c&&(c=l.length),o?l[c]=o:l.splice(c,1)}else r.set(a.name,o)}}()}catch(e){r=e}var o=i.element;r||o||(r=rr("failed to parse document as <"+i.type.$descriptor.name+">"));var l=s.warnings,c=s.references,h=s.elementsById;return r?(r.warnings=l,n(r)):t({rootElement:o,elementsById:h,references:c,warnings:l})}))},gr.prototype.handler=function(e){return new fr(this.model,e)};var vr='<?xml version="1.0" encoding="UTF-8"?>\n',yr=/<|>|'|"|&|\n\r|\n/g,br=/<|>|&/g;function xr(e){var t={},n={},i={},r=[],o=[];this.byUri=function(t){return n[t]||e&&e.byUri(t)},this.add=function(e,t){n[e.uri]=e,t?r.push(e):o.push(e),this.mapPrefix(e.prefix,e.uri)},this.uriByPrefix=function(e){return t[e||"xmlns"]},this.mapPrefix=function(e,n){t[e||"xmlns"]=n},this.getNSKey=function(e){return void 0!==e.prefix?e.uri+"|"+e.prefix:e.uri},this.logUsed=function(t){var n=t.uri,r=this.getNSKey(t);i[r]=this.byUri(n),e&&e.logUsed(t)},this.getUsed=function(e){var t=this;return[].concat(r,o).filter((function(e){var n=t.getNSKey(e);return i[n]}))}}function wr(e,t){return Ki(t)?function(e){return e.charAt(0).toLowerCase()+e.slice(1)}(e):e}function _r(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Or(e){return d(e)?e:(e.prefix?e.prefix+":":"")+e.localName}var Er={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},kr={"<":"lt",">":"gt","&":"amp"};function Sr(e,t,n){return(e=d(e)?e:""+e).replace(t,(function(e){return"&"+n[e]+";"}))}function Cr(e){this.tagName=e}function Pr(){}function $r(e){this.tagName=e}function Ar(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}function Rr(e,t){Ar.call(this,e,t)}function Tr(){this.value="",this.write=function(e){this.value+=e}}function Mr(e,t){var n=[""];this.append=function(t){return e.write(t),this},this.appendNewLine=function(){return t&&e.write("\n"),this},this.appendIndent=function(){return t&&e.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}function Dr(e){return e=I({format:!1,preamble:!0},e||{}),{toXML:function(t,n){var i=n||new Tr,r=new Mr(i,e.format);if(e.preamble&&r.append(vr),(new Ar).build(t).serializeTo(r),!n)return i.value}}}function Br(e,t){Mi.call(this,e,t)}Cr.prototype.build=function(e){return this.element=e,this},Cr.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"</"+this.tagName+">").appendNewLine()},Pr.prototype.serializeValue=Pr.prototype.serializeTo=function(e){e.append(this.escape?Sr(this.value,br,kr):this.value)},Pr.prototype.build=function(e,t){return this.value=t,"String"===e.type&&-1!==t.search(br)&&(this.escape=!0),this},_r($r,Pr),$r.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("</"+this.tagName+">").appendNewLine()},Ar.prototype.build=function(e){this.element=e;var t,n,i=e.$descriptor,r=this.propertyDescriptor,o=i.isGeneric;return t=o?this.parseGeneric(e):this.parseNsAttributes(e),this.ns=r?this.nsPropertyTagName(r):this.nsTagName(i),this.tagName=this.addTagName(this.ns),o||(n=function(e){return y(e.$descriptor.properties,(function(t){var n=t.name;if(t.isVirtual)return!1;if(!m(e,n))return!1;var i=e[n];return i!==t.default&&null!==i&&(!t.isMany||i.length)}))}(e),this.parseAttributes(y(n,(function(e){return e.isAttr}))),this.parseContainments(function(e){return y(e,(function(e){return!e.isAttr}))}(n))),this.parseGenericAttributes(e,t),this},Ar.prototype.nsTagName=function(e){return function(e,t){return t.isGeneric?I({localName:t.ns.localName},e):I({localName:wr(t.ns.localName,t.$pkg)},e)}(this.logNamespaceUsed(e.ns),e)},Ar.prototype.nsPropertyTagName=function(e){return function(e,t){return I({localName:t.ns.localName},e)}(this.logNamespaceUsed(e.ns),e)},Ar.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},Ar.prototype.nsAttributeName=function(e){var t;if(t=d(e)?Ci(e):e.ns,e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:t.localName}:I({localName:t.localName},n)},Ar.prototype.parseGeneric=function(e){var t=this,n=this.body,i=[];return b(e,(function(r,o){"$body"===o?n.push((new Pr).build({type:"String"},r)):"$children"===o?b(r,(function(e){n.push(new Ar(t).build(e))})):0!==o.indexOf("$")&&t.parseNsAttribute(e,o,r)&&i.push({name:o,value:r})})),i},Ar.prototype.parseNsAttribute=function(e,t,n){var i,r=e.$model,o=Ci(t);if("xmlns"===o.prefix&&(i={prefix:o.localName,uri:n}),o.prefix||"xmlns"!==o.localName||(i={uri:n}),!i)return{name:t,value:n};if(r&&r.getPackage(n))this.logNamespace(i,!0,!0);else{var s=this.logNamespaceUsed(i,!0);this.getNamespaces().logUsed(s)}},Ar.prototype.parseNsAttributes=function(e,t){var n=this,i=e.$attrs,r=[];return b(i,(function(t,i){var o=n.parseNsAttribute(e,i,t);o&&r.push(o)})),r},Ar.prototype.parseGenericAttributes=function(e,t){var n=this;b(t,(function(t){if(t.name!==er)try{n.addAttribute(n.nsAttributeName(t.name),t.value)}catch(n){console.warn("missing namespace information for ",t.name,"=",t.value,"on",e,n)}}))},Ar.prototype.parseContainments=function(e){var t=this,n=this.body,i=this.element;b(e,(function(e){var r=i.get(e.name),o=e.isReference;if(e.isMany||(r=[r]),e.isBody)n.push((new Pr).build(e,r[0]));else if(Si(e.type))b(r,(function(i){n.push(new $r(t.addTagName(t.nsPropertyTagName(e))).build(e,i))}));else if(o)b(r,(function(i){n.push(new Cr(t.addTagName(t.nsPropertyTagName(e))).build(i))}));else{var s=nr(e),a=function(e){return"property"===tr(e)}(e);b(r,(function(i){var r;r=s?new Rr(t,e):a?new Ar(t,e):new Ar(t),n.push(r.build(i))}))}}))},Ar.prototype.getNamespaces=function(e){var t,n=this.namespaces,i=this.parent;return n||(t=i&&i.getNamespaces(),e||!t?this.namespaces=n=new xr(t):n=t),n},Ar.prototype.logNamespace=function(e,t,n){var i=this.getNamespaces(n),r=e.uri,o=e.prefix;return i.byUri(r)&&!n||i.add(e,t),i.mapPrefix(o,r),e},Ar.prototype.logNamespaceUsed=function(e,t){var n,i,r,o=this.element.$model,s=this.getNamespaces(t),a=e.prefix,l=e.uri;if(!a&&!l)return{localName:e.localName};if(r=Ji[a]||o&&(o.getPackage(a)||{}).uri,!(l=l||r||s.uriByPrefix(a)))throw new Error("no namespace uri given for prefix <"+a+">");if(!(e=s.byUri(l))){for(n=a,i=1;s.uriByPrefix(n);)n=a+"_"+i++;e=this.logNamespace({prefix:n,uri:l},r===l)}return a&&s.mapPrefix(a,l),e},Ar.prototype.parseAttributes=function(e){var t=this,n=this.element;b(e,(function(e){var i=n.get(e.name);if(e.isReference)if(e.isMany){var r=[];b(i,(function(e){r.push(e.id)})),i=r.join(" ")}else i=i.id;t.addAttribute(t.nsAttributeName(e),i)}))},Ar.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),Or(e)},Ar.prototype.addAttribute=function(e,t){var n=this.attrs;d(t)&&(t=Sr(t,yr,Er));var i=v(n,(function(t){return t.name.localName===e.localName&&t.name.uri===e.uri&&t.name.prefix===e.prefix})),r={name:e,value:t};-1!==i?n.splice(i,1,r):n.push(r)},Ar.prototype.serializeAttributes=function(e){var t=this.attrs,n=this.namespaces;n&&(t=function(e){return e.getUsed().filter((function(e){return"xml"!==e.prefix})).map((function(e){return{name:"xmlns"+(e.prefix?":"+e.prefix:""),value:e.uri}}))}(n).concat(t)),b(t,(function(t){e.append(" ").append(Or(t.name)).append('="').append(t.value).append('"')}))},Ar.prototype.serializeTo=function(e){var t=this.body[0],n=t&&t.constructor!==Pr;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(t?">":" />"),t&&(n&&e.appendNewLine().indent(),b(this.body,(function(t){t.serializeTo(e)})),n&&e.unindent().appendIndent(),e.append("</"+this.tagName+">")),e.appendNewLine()},_r(Rr,Ar),Rr.prototype.parseNsAttributes=function(e){var t=Ar.prototype.parseNsAttributes.call(this,e),n=e.$descriptor;if(n.name===this.propertyDescriptor.type)return t;var i=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var r=e.$model.getPackage(i.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(er),(i.prefix?i.prefix+":":"")+o+n.ns.localName),t},Rr.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri},Br.prototype=Object.create(Mi.prototype),Br.prototype.fromXML=function(e,t,n){d(t)||(n=t,t="bpmn:Definitions");var i=new gr(I({model:this,lax:!0},n)),r=i.handler(t);return i.fromXML(e,r)},Br.prototype.toXML=function(e,t){var n=new Dr(t);return new Promise((function(t,i){try{return t({xml:n.toXML(e)})}catch(e){return i(e)}}))};var Lr={bpmn:{name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",prefix:"bpmn",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],enumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],xml:{tagAlias:"lowerCase",typePrefix:"t"}},bpmndi:{name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",prefix:"bpmndi",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],enumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[]},dc:{name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",prefix:"dc",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],associations:[]},di:{name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",prefix:"di",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],associations:[],xml:{tagAlias:"lowerCase"}},bioc:{name:"bpmn.io colors for BPMN",uri:"http://bpmn.io/schema/bpmn/biocolor/1.0",prefix:"bioc",types:[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]},color:{name:"BPMN in Color",uri:"http://www.omg.org/spec/BPMN/non-normative/color/1.0",prefix:"color",types:[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]}};function Nr(e,t){return new Br(I({},Lr,e),t)}function jr(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}var zr="Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472";function Ir(e){m(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(zr)}})}function Xr(e,t){return e.$instanceOf(t)}function Qr(e,t){var n={},i=[],r={};function o(e,t){return function(n){e(n,t)}}function s(e){n[e.id]=e}function a(n,i){try{var o=r[n.id]&&function(n,i){if(n.gfx)throw new Error(t("already rendered {element}",{element:jr(n)}));return e.element(n,r[n.id],i)}(n,i);return s(n),o}catch(e){l(e.message,{element:n,error:e}),console.error(t("failed to import {element}",{element:jr(n)})),console.error(e)}}function l(t,n){e.error(t,n)}var c=this.registerDi=function(e){var n=e.bpmnElement;n?r[n.id]?l(t("multiple DI elements defined for {element}",{element:jr(n)}),{element:n}):(r[n.id]=e,Ir(n)):l(t("no bpmnElement referenced in {element}",{element:jr(e)}),{element:e})};function h(e){var t;t=e.plane,c(t),b(t.planeElement,u)}function u(e){c(e)}this.handleDefinitions=function(s,a){var u=s.diagrams;if(a&&-1===u.indexOf(a))throw new Error(t("diagram not part of bpmn:Definitions"));if(!a&&u&&u.length&&(a=u[0]),!a)throw new Error(t("no diagram to display"));r={},h(a);var m=a.plane;if(!m)throw new Error(t("no plane for {element}",{element:jr(a)}));var v=m.bpmnElement;if(!v){if(v=function(e){return g(e.rootElements,(function(e){return Xr(e,"bpmn:Process")||Xr(e,"bpmn:Collaboration")}))}(s),!v)throw new Error(t("no process or collaboration to display"));l(t("correcting missing bpmnElement on {plane} to {rootElement}",{plane:jr(m),rootElement:jr(v)})),m.bpmnElement=v,c(m)}var x,w,O=function(t,n){return e.root(t,r[t.id],n)}(v,m);if(Xr(v,"bpmn:Process")||Xr(v,"bpmn:SubProcess"))d(v,O);else{if(!Xr(v,"bpmn:Collaboration"))throw new Error(t("unsupported bpmnElement for {plane}: {rootElement}",{plane:jr(m),rootElement:jr(v)}));w=O,b((x=v).participants,o(A,w)),_(x.artifacts,w),i.push((function(){!function(e,t){b(e,o(f,t))}(x.messageFlows,w)})),function(e,t){var i=y(e,(function(e){return!n[e.id]&&Xr(e,"bpmn:Process")&&e.laneSets}));i.forEach(o(d,t))}(s.rootElements,O)}p(i)};var p=this.handleDeferred=function(){for(;i.length;)i.shift()()};function d(e,t){$(e,t),O(e.ioSpecification,t),_(e.artifacts,t),s(e)}function f(e,t){a(e,t)}function m(e,t){a(e,t)}function v(e,t){a(e,t)}function x(e,t){a(e,t)}function w(e,t){a(e,t)}function _(e,t){b(e,(function(e){Xr(e,"bpmn:Association")?i.push((function(){w(e,t)})):w(e,t)}))}function O(e,t){e&&(b(e.dataInputs,o(v,t)),b(e.dataOutputs,o(x,t)))}var E=this.handleSubProcess=function(e,t){$(e,t),_(e.artifacts,t)};function k(e,t){var n=a(e,t);Xr(e,"bpmn:SubProcess")&&E(e,n||t),Xr(e,"bpmn:Activity")&&O(e.ioSpecification,t),i.push((function(){b(e.dataInputAssociations,o(m,t)),b(e.dataOutputAssociations,o(m,t))}))}function S(e,t){a(e,t)}function C(e,t){i.push((function(){var n=a(e,t);e.childLaneSet&&P(e.childLaneSet,n||t),function(e){b(e.flowNodeRef,(function(t){var n=t.get("lanes");n&&n.push(e)}))}(e)}))}function P(e,t){b(e.lanes,o(C,t))}function $(e,n){!function(e,n){b(e,(function(e){Xr(e,"bpmn:SequenceFlow")?i.push((function(){!function(e,t){a(e,t)}(e,n)})):Xr(e,"bpmn:BoundaryEvent")?i.unshift((function(){k(e,n)})):Xr(e,"bpmn:FlowNode")?k(e,n):Xr(e,"bpmn:DataObject")||(Xr(e,"bpmn:DataStoreReference")||Xr(e,"bpmn:DataObjectReference")?S(e,n):l(t("unrecognized flowElement {element} in context {context}",{element:jr(e),context:n?jr(n.businessObject):"null"}),{element:e,context:n}))}))}(e.flowElements,n),e.laneSets&&function(e,t){b(e,o(P,t))}(e.laneSets,n)}function A(e,t){var n=a(e,t),i=e.processRef;i&&d(i,n||t)}}function Fr(e,t){var n=qr(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}function Vr(e,t){return O(t,(function(t){return Fr(e,t)}))}function qr(e){return e&&e.businessObject||e}function Hr(e){return e&&e.di}function Wr(e,t,n){var i,r,o,s,a=[];function l(e,t){var n=new Qr({root:function(e,t){return i.add(e,t)},element:function(e,t,n){return i.add(e,t,n)},error:function(e,t){a.push({message:e,context:t})}},o);t=t||e.diagrams&&e.diagrams[0];var r=function(e,t){if(!t)return;var n,i=t.plane.bpmnElement,r=i;Fr(i,"bpmn:Process")||Fr(i,"bpmn:Collaboration")||(r=function(e){var t=e;for(;t;){if(Fr(t,"bpmn:Process"))return t;t=t.$parent}}(i));n=Fr(r,"bpmn:Collaboration")?r:g(e.rootElements,(function(e){if(Fr(e,"bpmn:Collaboration"))return g(e.participants,(function(e){return e.processRef===r}))}));var o=[r];n&&(o=E(n.participants,(function(e){return e.processRef}))).push(n);var s=Yr(o),a=[t],l=[i];return b(e.diagrams,(function(e){var t=e.plane.bpmnElement;-1!==s.indexOf(t)&&-1===l.indexOf(t)&&(a.push(e),l.push(t))})),a}(e,t);if(!r)throw new Error(o("no diagram to display"));b(r,(function(t){n.handleDefinitions(e,t)}));var l=t.plane.bpmnElement.id;s.setRootElement(s.findRoot(l+"_plane")||s.findRoot(l))}return new Promise((function(c,h){try{return i=e.get("bpmnImporter"),r=e.get("eventBus"),o=e.get("translate"),s=e.get("canvas"),r.fire("import.render.start",{definitions:t}),l(t,n),r.fire("import.render.complete",{error:undefined,warnings:a}),c({warnings:a})}catch(e){return e.warnings=a,h(e)}}))}function Yr(e){var t=[];return b(e,(function(e){e&&(t.push(e),t=t.concat(Yr(e.flowElements)))})),t}var Gr,Ur='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',Zr={verticalAlign:"middle"},Kr={color:"#404040"},Jr={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},eo={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},to={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},no='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+Ur+'</a><span>Web-based tooling for BPMN, DMN and forms powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>';function io(){Gr||(J(Gr=we(no),Jr),J(_e("svg",Gr),Zr),J(_e(".backdrop",Gr),eo),J(_e(".notice",Gr),to),J(_e(".link",Gr),Kr,{margin:"15px 20px 15px 10px",alignSelf:"center"}),ve.bind(Gr,".backdrop","click",(function(e){document.body.removeChild(Gr)}))),document.body.appendChild(Gr)}function ro(e){e=I({},so,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),function(e){const t=we('<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+Ur+"</a>");J(_e("svg",t),Zr),J(t,Kr,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(t),fe.bind(t,"click",(function(e){io(),e.preventDefault()}))}(this._container),this._init(this._container,this._moddle,e)}function oo(e,t){return e.warnings=t,e}e(ro,bi),ro.prototype.importXML=async function(e,t){const n=this;let i=[];try{let o;e=this._emit("import.parse.start",{xml:e})||e;try{o=await this._moddle.fromXML(e,"bpmn:Definitions")}catch(e){throw this._emit("import.parse.complete",{error:e}),e}let s=o.rootElement;const a=o.references,l=o.warnings,c=o.elementsById;i=i.concat(l),s=this._emit("import.parse.complete",(r={error:null,definitions:s,elementsById:c,references:a,warnings:i},n.get("eventBus").createEvent(r)))||s;const h=await this.importDefinitions(s,t);return i=i.concat(h.warnings),this._emit("import.done",{error:null,warnings:i}),{warnings:i}}catch(e){let t=e;throw i=i.concat(t.warnings||[]),oo(t,i),t=function(e){const t=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);t&&(e.message="unparsable content <"+t[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+t[2]);return e}(t),this._emit("import.done",{error:t,warnings:t.warnings}),t}var r},ro.prototype.importDefinitions=async function(e,t){this._setDefinitions(e);return{warnings:(await this.open(t)).warnings}},ro.prototype.open=async function(e){const t=this._definitions;let n=e;if(!t){const e=new Error("no XML imported");throw oo(e,[]),e}if("string"==typeof e&&(n=function(e,t){if(!t)return null;return g(e.diagrams,(function(e){return e.id===t}))||null}(t,e),!n)){const t=new Error("BPMNDiagram <"+e+"> not found");throw oo(t,[]),t}try{this.clear()}catch(e){throw oo(e,[]),e}const{warnings:i}=await Wr(this,t,n);return{warnings:i}},ro.prototype.saveXML=async function(e){e=e||{};let t,n,i=this._definitions;try{if(!i)throw new Error("no definitions loaded");i=this._emit("saveXML.start",{definitions:i})||i;n=(await this._moddle.toXML(i,e)).xml,n=this._emit("saveXML.serialized",{xml:n})||n}catch(e){t=e}const r=t?{error:t}:{xml:n};if(this._emit("saveXML.done",r),t)throw t;return r},ro.prototype.saveSVG=async function(){let e,t;this._emit("saveSVG.start");try{const t=this.get("canvas"),n=t.getActiveLayer(),i=_e("defs",t._svg),r=Ze(n),o=i?"<defs>"+Ze(i)+"</defs>":"",s=n.getBBox();e='<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- created with bpmn-js / http://bpmn.io --\x3e\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+s.width+'" height="'+s.height+'" viewBox="'+s.x+" "+s.y+" "+s.width+" "+s.height+'" version="1.1">'+o+r+"</svg>"}catch(e){t=e}if(this._emit("saveSVG.done",{error:t,svg:e}),t)throw t;return{svg:e}},ro.prototype._setDefinitions=function(e){this._definitions=e},ro.prototype.getModules=function(){return this._modules},ro.prototype.clear=function(){this.getDefinitions()&&bi.prototype.clear.call(this)},ro.prototype.destroy=function(){bi.prototype.destroy.call(this),Ee(this._container)},ro.prototype.on=function(e,t,n,i){return this.get("eventBus").on(e,t,n,i)},ro.prototype.off=function(e,t){this.get("eventBus").off(e,t)},ro.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),"string"==typeof e&&(e=_e(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},ro.prototype.getDefinitions=function(){return this._definitions},ro.prototype.detach=function(){const e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))},ro.prototype._init=function(e,t,n){const i=n.modules||this.getModules(n),r=n.additionalModules||[],o=[].concat([{bpmnjs:["value",this],moddle:["value",t]}],i,r),s=I(V(n,["additionalModules"]),{canvas:I({},n.canvas,{container:e}),modules:o});bi.call(this,s),n&&n.container&&this.attachTo(n.container)},ro.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},ro.prototype._createContainer=function(e){const t=we('<div class="bjs-container"></div>');return J(t,{width:ao(e.width),height:ao(e.height),position:e.position}),t},ro.prototype._createModdle=function(e){return new Nr(I({},this._moddleExtensions,e.moddleExtensions))},ro.prototype._modules=[];const so={width:"100%",height:"100%",position:"relative"};function ao(e){return e+(u(e)?"px":"")}function lo(e){ro.call(this,e),this.on("import.parse.complete",(function(e){e.error||this._collectIds(e.definitions,e.elementsById)}),this),this.on("diagram.destroy",(function(){this.get("moddle").ids.clear()}),this)}function co(e,t){return!Fr(e,"bpmn:CallActivity")&&(Fr(e,"bpmn:SubProcess")?!(!(t=t||Hr(e))||!Fr(t,"bpmndi:BPMNPlane"))||t&&!!t.isExpanded:!Fr(e,"bpmn:Participant")||!!qr(e).processRef)}function ho(e){return e&&!1!==qr(e).isInterrupting}function uo(e){return e&&!!qr(e).triggeredByEvent}function po(e,t){return O(qr(e).eventDefinitions,(function(e){return Fr(e,t)}))}e(lo,ro),lo.prototype._createModdle=function(e){var t=ro.prototype._createModdle.call(this,e);return t.ids=new n([32,36,1]),t},lo.prototype._collectIds=function(e,t){var n,i=e.$model.ids;for(n in i.clear(),t)i.claim(n,t[n])};var fo={width:90,height:20},mo=15;function go(e){return Fr(e,"bpmn:Event")||Fr(e,"bpmn:Gateway")||Fr(e,"bpmn:DataStoreReference")||Fr(e,"bpmn:DataObjectReference")||Fr(e,"bpmn:DataInput")||Fr(e,"bpmn:DataOutput")||Fr(e,"bpmn:SequenceFlow")||Fr(e,"bpmn:MessageFlow")||Fr(e,"bpmn:Group")}function vo(e){return kn(e.label)}function yo(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)],r=function(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)];return{x:n.x+(i.x-n.x)/2,y:n.y+(i.y-n.y)/2}}(e),o=Math.atan((i.y-n.y)/(i.x-n.x)),s=r.x,a=r.y;return Math.abs(o)<Math.PI/2?a-=mo:s+=mo,{x:s,y:a}}function bo(e){return e.waypoints?yo(e.waypoints):Fr(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+fo.height/2}:{x:e.x+e.width/2,y:e.y+e.height+fo.height/2}}function xo(e){return Fr(e,"bpmn:FlowElement")||Fr(e,"bpmn:Participant")||Fr(e,"bpmn:Lane")||Fr(e,"bpmn:SequenceFlow")||Fr(e,"bpmn:MessageFlow")||Fr(e,"bpmn:DataInput")||Fr(e,"bpmn:DataOutput")?"name":Fr(e,"bpmn:TextAnnotation")?"text":Fr(e,"bpmn:Group")?"categoryValueRef":void 0}function wo(e){var t=e.businessObject,n=xo(t);if(n)return"categoryValueRef"===n?function(e){var t=e.categoryValueRef;return t&&t.value||""}(t):t[n]||""}var _o="hsl(225, 10%, 15%)";function Oo(e,t){return O(e.eventDefinitions,(function(e){return e.$type===t}))}function Eo(e,t){var n=Hr(e);return n.get("color:background-color")||n.get("bioc:fill")||t||"white"}function ko(e,t){var n=Hr(e);return n.get("color:border-color")||n.get("bioc:stroke")||t||_o}function So(e,t,n){var i=Hr(e).get("label");return i&&i.get("color:color")||t||ko(e,n)}var Co=new n,Po=10,$o=3,Ao=.95,Ro=.35,To=10;function Mo(e,t,n,i,r,o,s){ut.call(this,t,s);var a=e&&e.defaultFillColor,l=e&&e.defaultStrokeColor,c=e&&e.defaultLabelColor,u=Co.next(),p={};function d(e){return n.computeStyle(e,{strokeLinecap:"round",strokeLinejoin:"round",stroke:_o,strokeWidth:2,fill:"white"})}function f(e){return n.computeStyle(e,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:_o,strokeWidth:2})}function m(e,t){var{ref:n={x:0,y:0},scale:i=1,element:o}=t,s=Ie("marker",{id:e,viewBox:"0 0 20 20",refX:n.x,refY:n.y,markerWidth:20*i,markerHeight:20*i,orient:"auto"});Se(s,o);var a=_e("defs",r._svg);a||(a=Ie("defs"),Se(r._svg,a)),Se(a,s),p[e]=s}function g(e){return e.replace(/[^0-9a-zA-Z]+/g,"_")}function v(e,t,n){var i=e+"-"+g(t)+"-"+g(n)+"-"+u;return p[i]||function(e,t,n,i){if("sequenceflow-end"===t){m(e,{element:Ie("path",{d:"M 1 5 L 11 10 L 1 15 Z",...d({fill:i,stroke:i,strokeWidth:1})}),ref:{x:11,y:10},scale:.5})}if("messageflow-start"===t){m(e,{element:Ie("circle",{cx:6,cy:6,r:3.5,...d({fill:n,stroke:i,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:6,y:6}})}if("messageflow-end"===t){m(e,{element:Ie("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...d({fill:n,stroke:i,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:8.5,y:5}})}if("association-start"===t){m(e,{element:Ie("path",{d:"M 11 5 L 1 10 L 11 15",...f({fill:"none",stroke:i,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:1,y:10},scale:.5})}if("association-end"===t){m(e,{element:Ie("path",{d:"M 1 5 L 11 10 L 1 15",...f({fill:"none",stroke:i,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:11,y:10},scale:.5})}if("conditional-flow-marker"===t){m(e,{element:Ie("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...d({fill:n,stroke:i})}),ref:{x:-1,y:10},scale:.5})}if("conditional-default-flow-marker"===t){m(e,{element:Ie("path",{d:"M 6 4 L 10 16",...d({stroke:i})}),ref:{x:0,y:10},scale:.5})}}(i,e,t,n),"url(#"+i+")"}function y(e,t,n,i,r){h(i)&&(r=i,i=0),i=i||0,"none"===(r=d(r)).fill&&delete r.fillOpacity;var o=Ie("circle",{cx:t/2,cy:n/2,r:Math.round((t+n)/4-i),...r});return Se(e,o),o}function x(e,t,n,i,r,o){h(r)&&(o=r,r=0),r=r||0,o=d(o);var s=Ie("rect",{x:r,y:r,width:t-2*r,height:n-2*r,rx:i,ry:i,...o});return Se(e,s),s}function w(e,t,n,i){var r=vt(t,n=f(n),i);return Se(e,r),r}function _(e,t,n){return w(e,t,n,5)}function O(e,t,n){n=f(n);var i=Ie("path",{...n,d:t});return Se(e,i),i}function E(e,t,n,i){return O(t,n,I({"data-marker":e},i))}function k(e){return R[e]}function S(e){return function(t,n,i){return k(e)(t,n,i)}}function C(e,t){var n=qr(e),i=function(e){return"bpmn:IntermediateThrowEvent"===e.$type||"bpmn:EndEvent"===e.$type}(n);return n.eventDefinitions&&n.eventDefinitions.length>1?n.parallelMultiple?k("bpmn:ParallelMultipleEventDefinition")(t,e,i):k("bpmn:MultipleEventDefinition")(t,e,i):Oo(n,"bpmn:MessageEventDefinition")?k("bpmn:MessageEventDefinition")(t,e,i):Oo(n,"bpmn:TimerEventDefinition")?k("bpmn:TimerEventDefinition")(t,e,i):Oo(n,"bpmn:ConditionalEventDefinition")?k("bpmn:ConditionalEventDefinition")(t,e):Oo(n,"bpmn:SignalEventDefinition")?k("bpmn:SignalEventDefinition")(t,e,i):Oo(n,"bpmn:EscalationEventDefinition")?k("bpmn:EscalationEventDefinition")(t,e,i):Oo(n,"bpmn:LinkEventDefinition")?k("bpmn:LinkEventDefinition")(t,e,i):Oo(n,"bpmn:ErrorEventDefinition")?k("bpmn:ErrorEventDefinition")(t,e,i):Oo(n,"bpmn:CancelEventDefinition")?k("bpmn:CancelEventDefinition")(t,e,i):Oo(n,"bpmn:CompensateEventDefinition")?k("bpmn:CompensateEventDefinition")(t,e,i):Oo(n,"bpmn:TerminateEventDefinition")?k("bpmn:TerminateEventDefinition")(t,e,i):null}function P(e,t,n){n=I({size:{width:100}},n);var i=o.createText(t||"",n);return Te(i).add("djs-label"),Se(e,i),i}function $(e,t,n){return P(e,qr(t).name,{box:t,align:n,padding:7,style:{fill:So(t,c,l)}})}function A(e,t,n){pi(P(e,t,{box:{height:30,width:n.height},align:"center-middle",style:{fill:So(n,c,l)}}),0,-(-1*n.height),270)}var R=this.handlers={"bpmn:Event":function(e,t,n){return"fillOpacity"in n||(n.fillOpacity=Ao),y(e,t.width,t.height,n)},"bpmn:StartEvent":function(e,t,n){var i={fill:Eo(t,a),stroke:ko(t,l)};qr(t).isInterrupting||(i={strokeDasharray:"6",fill:Eo(t,a),stroke:ko(t,l)});var r=k("bpmn:Event")(e,t,i);return n&&!1===n.renderIcon||C(t,e),r},"bpmn:MessageEventDefinition":function(e,t,n){return O(e,i.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.235,my:.315}}),{strokeWidth:1,fill:n?ko(t,l):Eo(t,a),stroke:n?Eo(t,a):ko(t,l)})},"bpmn:TimerEventDefinition":function(e,t){var n=y(e,t.width,t.height,.2*t.height,{strokeWidth:2,fill:Eo(t,a),stroke:ko(t,l)});O(e,i.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),{strokeWidth:2,stroke:ko(t,l)});for(var r=0;r<12;r++){var o=i.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),s=t.width/2;O(e,o,{strokeWidth:1,transform:"rotate("+30*r+","+t.height/2+","+s+")",stroke:ko(t,l)})}return n},"bpmn:EscalationEventDefinition":function(e,t,n){return O(e,i.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:n?ko(t,l):"none",stroke:ko(t,l)})},"bpmn:ConditionalEventDefinition":function(e,t){return O(e,i.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.222}}),{strokeWidth:1,stroke:ko(t,l)})},"bpmn:LinkEventDefinition":function(e,t,n){return O(e,i.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.57,my:.263}}),{strokeWidth:1,fill:n?ko(t,l):"none",stroke:ko(t,l)})},"bpmn:ErrorEventDefinition":function(e,t,n){return O(e,i.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.2,my:.722}}),{strokeWidth:1,fill:n?ko(t,l):"none",stroke:ko(t,l)})},"bpmn:CancelEventDefinition":function(e,t,n){var r=O(e,i.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.638,my:-.055}}),{strokeWidth:1,fill:n?ko(t,l):"none",stroke:ko(t,l)});return fi(r,45),r},"bpmn:CompensateEventDefinition":function(e,t,n){return O(e,i.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.22,my:.5}}),{strokeWidth:1,fill:n?ko(t,l):"none",stroke:ko(t,l)})},"bpmn:SignalEventDefinition":function(e,t,n){return O(e,i.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:n?ko(t,l):"none",stroke:ko(t,l)})},"bpmn:MultipleEventDefinition":function(e,t,n){return O(e,i.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.222,my:.36}}),{strokeWidth:1,fill:n?ko(t,l):"none"})},"bpmn:ParallelMultipleEventDefinition":function(e,t){return O(e,i.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:t.width,containerHeight:t.height,position:{mx:.458,my:.194}}),{strokeWidth:1,fill:ko(t,l),stroke:ko(t,l)})},"bpmn:EndEvent":function(e,t,n){var i=k("bpmn:Event")(e,t,{strokeWidth:4,fill:Eo(t,a),stroke:ko(t,l)});return n&&!1===n.renderIcon||C(t,e),i},"bpmn:TerminateEventDefinition":function(e,t){return y(e,t.width,t.height,8,{strokeWidth:4,fill:ko(t,l),stroke:ko(t,l)})},"bpmn:IntermediateEvent":function(e,t,n){var i=k("bpmn:Event")(e,t,{strokeWidth:1.5,fill:Eo(t,a),stroke:ko(t,l)});return y(e,t.width,t.height,$o,{strokeWidth:1.5,fill:Eo(t,"none"),stroke:ko(t,l)}),n&&!1===n.renderIcon||C(t,e),i},"bpmn:IntermediateCatchEvent":S("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":S("bpmn:IntermediateEvent"),"bpmn:Activity":function(e,t,n){return"fillOpacity"in(n=n||{})||(n.fillOpacity=Ao),x(e,t.width,t.height,Po,n)},"bpmn:Task":function(e,t){var n={fill:Eo(t,a),stroke:ko(t,l)},i=k("bpmn:Activity")(e,t,n);return $(e,t,"center-middle"),T(e,t),i},"bpmn:ServiceTask":function(e,t){var n=k("bpmn:Task")(e,t);return O(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}}),{strokeWidth:1,fill:Eo(t,a),stroke:ko(t,l)}),O(e,i.getScaledPath("TASK_TYPE_SERVICE_FILL",{abspos:{x:17.2,y:18}}),{strokeWidth:0,fill:Eo(t,a)}),O(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}}),{strokeWidth:1,fill:Eo(t,a),stroke:ko(t,l)}),n},"bpmn:UserTask":function(e,t){var n=k("bpmn:Task")(e,t);return O(e,i.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:Eo(t,a),stroke:ko(t,l)}),O(e,i.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:Eo(t,a),stroke:ko(t,l)}),O(e,i.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:ko(t,l),stroke:ko(t,l)}),n},"bpmn:ManualTask":function(e,t){var n=k("bpmn:Task")(e,t);return O(e,i.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{strokeWidth:.5,fill:Eo(t,a),stroke:ko(t,l)}),n},"bpmn:SendTask":function(e,t){var n=k("bpmn:Task")(e,t);return O(e,i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}}),{strokeWidth:1,fill:ko(t,l),stroke:Eo(t,a)}),n},"bpmn:ReceiveTask":function(e,t){var n,r=qr(t),o=k("bpmn:Task")(e,t);return r.instantiate?(y(e,28,28,4.4,{strokeWidth:1}),n=i.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):n=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),O(e,n,{strokeWidth:1,fill:Eo(t,a),stroke:ko(t,l)}),o},"bpmn:ScriptTask":function(e,t){var n=k("bpmn:Task")(e,t);return O(e,i.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}}),{strokeWidth:1,stroke:ko(t,l)}),n},"bpmn:BusinessRuleTask":function(e,t){var n=k("bpmn:Task")(e,t);return Ae(O(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}})),{strokeWidth:1,fill:Eo(t,"#aaaaaa"),stroke:ko(t,l)}),Ae(O(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}})),{strokeWidth:1,stroke:ko(t,l)}),n},"bpmn:SubProcess":function(e,t,n){n={fill:Eo(t,a),stroke:ko(t,l),...n};var i=k("bpmn:Activity")(e,t,n),r=co(t);return uo(t)&&Ae(i,{strokeDasharray:"0, 5.5",strokeWidth:2.5}),$(e,t,r?"center-top":"center-middle"),r?T(e,t):T(e,t,["SubProcessMarker"]),i},"bpmn:AdHocSubProcess":function(e,t){return k("bpmn:SubProcess")(e,t)},"bpmn:Transaction":function(e,t){var i=k("bpmn:SubProcess")(e,t,{strokeWidth:1.5}),r=n.style(["no-fill","no-events"],{stroke:ko(t,l),strokeWidth:1.5});return x(e,t.width,t.height,Po-3,$o,r),i},"bpmn:CallActivity":function(e,t){return k("bpmn:SubProcess")(e,t,{strokeWidth:5})},"bpmn:Participant":function(e,t){var n={fillOpacity:Ao,fill:Eo(t,a),stroke:ko(t,l),strokeWidth:1.5},i=k("bpmn:Lane")(e,t,n);co(t)?(w(e,[{x:30,y:0},{x:30,y:t.height}],{stroke:ko(t,l),strokeWidth:1.5}),A(e,qr(t).name,t)):P(e,qr(t).name,{box:t,align:"center-middle",style:{fill:So(t,c,l)}});return!!qr(t).participantMultiplicity&&k("ParticipantMultiplicityMarker")(e,t),i},"bpmn:Lane":function(e,t,n){var i=x(e,t.width,t.height,0,{fill:Eo(t,a),fillOpacity:Ro,stroke:ko(t,l),strokeWidth:1.5,...n}),r=qr(t);"bpmn:Lane"===r.$type&&A(e,r.name,t);return i},"bpmn:InclusiveGateway":function(e,t){var n=k("bpmn:Gateway")(e,t);return y(e,t.width,t.height,.24*t.height,{strokeWidth:2.5,fill:Eo(t,a),stroke:ko(t,l)}),n},"bpmn:ExclusiveGateway":function(e,t){var n=k("bpmn:Gateway")(e,t),r=i.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.32,my:.3}});return Hr(t).isMarkerVisible&&O(e,r,{strokeWidth:1,fill:ko(t,l),stroke:ko(t,l)}),n},"bpmn:ComplexGateway":function(e,t){var n=k("bpmn:Gateway")(e,t);return O(e,i.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.26}}),{strokeWidth:1,fill:ko(t,l),stroke:ko(t,l)}),n},"bpmn:ParallelGateway":function(e,t){var n=k("bpmn:Gateway")(e,t);return O(e,i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.2}}),{strokeWidth:1,fill:ko(t,l),stroke:ko(t,l)}),n},"bpmn:EventBasedGateway":function(e,t){var n=qr(t),r=k("bpmn:Gateway")(e,t);y(e,t.width,t.height,.2*t.height,{strokeWidth:1,fill:"none",stroke:ko(t,l)});var o=n.eventGatewayType,s=!!n.instantiate;if("Parallel"===o){var a=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}});O(e,a,{strokeWidth:1,fill:"none"})}else"Exclusive"===o&&(s||y(e,t.width,t.height,.26*t.height,{strokeWidth:1,fill:"none",stroke:ko(t,l)}),function(){var n=i.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:t.width,containerHeight:t.height,position:{mx:.36,my:.44}});O(e,n,{strokeWidth:2,fill:Eo(t,"none"),stroke:ko(t,l)})}());return r},"bpmn:Gateway":function(e,t){return function(e,t,n,i){var r=t/2,o=n/2,s=[{x:r,y:0},{x:t,y:o},{x:r,y:n},{x:0,y:o}].map((function(e){return e.x+","+e.y})).join(" ");i=d(i);var a=Ie("polygon",{...i,points:s});return Se(e,a),a}(e,t.width,t.height,{fill:Eo(t,a),fillOpacity:Ao,stroke:ko(t,l)})},"bpmn:SequenceFlow":function(e,t){var n,i=Eo(t,a),r=ko(t,l),o=_(e,t.waypoints,{markerEnd:v("sequenceflow-end",i,r),stroke:ko(t,l)}),s=qr(t);return t.source&&(n=t.source.businessObject,s.conditionExpression&&n.$instanceOf("bpmn:Activity")&&Ae(o,{markerStart:v("conditional-flow-marker",i,r)}),n.default&&(n.$instanceOf("bpmn:Gateway")||n.$instanceOf("bpmn:Activity"))&&n.default===s&&Ae(o,{markerStart:v("conditional-default-flow-marker",i,r)})),o},"bpmn:Association":function(e,t,n){var i=qr(t),r=Eo(t,a),o=ko(t,l);return n={strokeDasharray:"0, 5",stroke:ko(t,l),...n},"One"!==i.associationDirection&&"Both"!==i.associationDirection||(n.markerEnd=v("association-end",r,o)),"Both"===i.associationDirection&&(n.markerStart=v("association-start",r,o)),_(e,t.waypoints,n)},"bpmn:DataInputAssociation":function(e,t){var n=Eo(t,a),i=ko(t,l);return k("bpmn:Association")(e,t,{markerEnd:v("association-end",n,i)})},"bpmn:DataOutputAssociation":function(e,t){var n=Eo(t,a),i=ko(t,l);return k("bpmn:Association")(e,t,{markerEnd:v("association-end",n,i)})},"bpmn:MessageFlow":function(e,t){var n=qr(t),r=Hr(t),o=Eo(t,a),s=ko(t,l),h=_(e,t.waypoints,{markerEnd:v("messageflow-end",o,s),markerStart:v("messageflow-start",o,s),strokeDasharray:"10, 11",strokeWidth:1.5,stroke:ko(t,l)});if(n.messageRef){var u=h.getPointAtLength(h.getTotalLength()/2),p=i.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:u.x,y:u.y}}),d={strokeWidth:1};"initiating"===r.messageVisibleKind?(d.fill="white",d.stroke=_o):(d.fill="#888",d.stroke="white");var f=O(e,p,d),m=P(e,n.messageRef.name,{align:"center-top",fitBox:!0,style:{fill:ko(t,c)}}),g=f.getBBox(),y=m.getBBox();pi(m,u.x-y.width/2,u.y+g.height/2+To,0)}return h},"bpmn:DataObject":function(e,t){var n=O(e,i.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}}),{fill:Eo(t,a),fillOpacity:Ao,stroke:ko(t,l)});return function(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection}(qr(t))&&function(e,t){var n=(t.height-18)/t.height,r=i.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.33,my:n}});O(e,r,{strokeWidth:2})}(e,t),n},"bpmn:DataObjectReference":S("bpmn:DataObject"),"bpmn:DataInput":function(e,t){var n=i.getRawPath("DATA_ARROW"),r=k("bpmn:DataObject")(e,t);return O(e,n,{strokeWidth:1}),r},"bpmn:DataOutput":function(e,t){var n=i.getRawPath("DATA_ARROW"),r=k("bpmn:DataObject")(e,t);return O(e,n,{strokeWidth:1,fill:_o}),r},"bpmn:DataStoreReference":function(e,t){return O(e,i.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:.133}}),{strokeWidth:2,fill:Eo(t,a),fillOpacity:Ao,stroke:ko(t,l)})},"bpmn:BoundaryEvent":function(e,t,n){var i=qr(t).cancelActivity,r={strokeWidth:1.5,fill:Eo(t,a),stroke:ko(t,l)};i||(r.strokeDasharray="6");var o={...r,fillOpacity:1},s={...r,fill:"none"},c=k("bpmn:Event")(e,t,o);return y(e,t.width,t.height,$o,s),n&&!1===n.renderIcon||C(t,e),c},"bpmn:Group":function(e,t){return x(e,t.width,t.height,Po,{stroke:ko(t,l),strokeWidth:1.5,strokeDasharray:"10,6,0,6",fill:"none",pointerEvents:"none"})},label:function(e,t){return function(e,t){var n={width:90,height:30,x:t.width/2+t.x,y:t.height/2+t.y};return P(e,wo(t),{box:n,fitBox:!0,style:I({},o.getExternalStyle(),{fill:So(t,c,l)})})}(e,t)},"bpmn:TextAnnotation":function(e,t){var n=x(e,t.width,t.height,0,0,{fill:"none",stroke:"none"});return O(e,i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:0}}),{stroke:ko(t,l)}),P(e,qr(t).text||"",{box:t,align:"left-top",padding:7,style:{fill:So(t,c,l)}}),n},ParticipantMultiplicityMarker:function(e,t){E("participant-multiplicity",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:t.width/2/t.width,my:(t.height-15)/t.height}}),{strokeWidth:2,fill:Eo(t,a),stroke:ko(t,l)})},SubProcessMarker:function(e,t){di(x(e,14,14,0,{strokeWidth:1,fill:Eo(t,a),stroke:ko(t,l)}),t.width/2-7.5,t.height-20),E("sub-process",e,i.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2-7.5)/t.width,my:(t.height-20)/t.height}}),{fill:Eo(t,a),stroke:ko(t,l)})},ParallelMarker:function(e,t,n){E("parallel",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.parallel)/t.width,my:(t.height-20)/t.height}}),{fill:Eo(t,a),stroke:ko(t,l)})},SequentialMarker:function(e,t,n){E("sequential",e,i.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.seq)/t.width,my:(t.height-19)/t.height}}),{fill:Eo(t,a),stroke:ko(t,l)})},CompensationMarker:function(e,t,n){E("compensation",e,i.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.compensation)/t.width,my:(t.height-13)/t.height}}),{strokeWidth:1,fill:Eo(t,a),stroke:ko(t,l)})},LoopMarker:function(e,t,n){E("loop",e,i.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.loop)/t.width,my:(t.height-7)/t.height}}),{strokeWidth:1.5,fill:Eo(t,a),stroke:ko(t,l),strokeMiterlimit:.5})},AdhocMarker:function(e,t,n){E("adhoc",e,i.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.adhoc)/t.width,my:(t.height-15)/t.height}}),{strokeWidth:1,fill:ko(t,l),stroke:ko(t,l)})}};function T(e,t,n){var i,r=qr(t),o=n&&-1!==n.indexOf("SubProcessMarker");i=o?{seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:{seq:-3,parallel:-6,compensation:-27,loop:0,adhoc:10},b(n,(function(n){k(n)(e,t,i)})),r.isForCompensation&&k("CompensationMarker")(e,t,i),"bpmn:AdHocSubProcess"===r.$type&&k("AdhocMarker")(e,t,i);var s=r.loopCharacteristics,a=s&&s.isSequential;s&&(void 0===a&&k("LoopMarker")(e,t,i),!1===a&&k("ParallelMarker")(e,t,i),!0===a&&k("SequentialMarker")(e,t,i))}this._drawPath=O,this._renderer=k}e(Mo,ut),Mo.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],Mo.prototype.canRender=function(e){return Fr(e,"bpmn:BaseElement")},Mo.prototype.drawShape=function(e,t){var n=t.type;return this._renderer(n)(e,t)},Mo.prototype.drawConnection=function(e,t){var n=t.type;return this._renderer(n)(e,t)},Mo.prototype.getShapePath=function(e){return Fr(e,"bpmn:Event")?(n=(t=e).x+t.width/2,i=t.y+t.height/2,r=t.width/2,pt([["M",n,i],["m",0,-r],["a",r,r,0,1,1,0,2*r],["a",r,r,0,1,1,0,-2*r],["z"]])):Fr(e,"bpmn:Activity")?function(e,t){var n=e.x,i=e.y,r=e.width,o=e.height;return pt([["M",n+t,i],["l",r-2*t,0],["a",t,t,0,0,1,t,t],["l",0,o-2*t],["a",t,t,0,0,1,-t,t],["l",2*t-r,0],["a",t,t,0,0,1,-t,-t],["l",0,2*t-o],["a",t,t,0,0,1,t,-t],["z"]])}(e,Po):Fr(e,"bpmn:Gateway")?function(e){var t=e.width/2,n=e.height/2;return pt([["M",e.x+t,e.y],["l",t,n],["l",-t,n],["l",-t,-n],["z"]])}(e):function(e){var t=e.x,n=e.y,i=e.width;return pt([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])}(e);var t,n,i,r};var Do=0,Bo={width:150,height:50};function Lo(e,t){var n;t.textContent=e;try{var i,r=""===e;return t.textContent=r?"dummy":e,i={width:(n=t.getBBox()).width+2*n.x,height:n.height},r&&(i.width=0),i}catch(e){return{width:0,height:0}}}function No(e,t,n){for(var i,r=e.shift(),o=r;;){if((i=Lo(o,n)).width=o?i.width:0," "===o||""===o||i.width<Math.round(t)||o.length<2)return jo(e,o,r,i);o=Io(o,i.width,t)}}function jo(e,t,n,i){if(t.length<n.length){var r=n.slice(t.length).trim();e.unshift(r)}return{width:i.width,height:i.height,text:t}}var zo="";function Io(e,t,n){var i=Math.max(e.length*(n/t),1),r=function(e,t){var n,i=e.split(/(\s|-|\u00AD)/g),r=[],o=0;if(i.length>1)for(;n=i.shift();){if(!(n.length+o<t)){"-"!==n&&n!==zo||r.pop();break}r.push(n),o+=n.length}var s=r[r.length-1];return s&&s===zo&&(r[r.length-1]="-"),r.join("")}(e,i);return r||(r=e.slice(0,Math.max(Math.round(i-1),1))),r}function Xo(e){this._config=I({},{size:Bo,padding:Do,style:{},align:"center-top"},e||{})}Xo.prototype.createText=function(e,t){return this.layoutText(e,t).element},Xo.prototype.getDimensions=function(e,t){return this.layoutText(e,t).dimensions},Xo.prototype.layoutText=function(e,t){var n=I({},this._config.size,t.box),i=I({},this._config.style,t.style),r=function(e){var t=e.split("-");return{horizontal:t[0]||"center",vertical:t[1]||"top"}}(t.align||this._config.align),o=function(e){return h(e)?I({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}(void 0!==t.padding?t.padding:this._config.padding),s=t.fitBox||!1,a=function(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}(i),l=e.split(/\u00AD?\r?\n/),c=[],u=n.width-o.left-o.right,p=Ie("text");for(Ae(p,{x:0,y:0}),Ae(p,i),Se(function(){var e=document.getElementById("helper-svg");return e||(Ae(e=Ie("svg"),{id:"helper-svg"}),J(e,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(e)),e}(),p);l.length;)c.push(No(l,u,p));"middle"===r.vertical&&(o.top=o.bottom=0);var d=w(c,(function(e,t,n){return e+(a||t.height)}),0)+o.top+o.bottom,f=w(c,(function(e,t,n){return t.width>e?t.width:e}),0),m=o.top;"middle"===r.vertical&&(m+=(n.height-d)/2),m-=(a||c[0].height)/4;var g=Ie("text");return Ae(g,i),b(c,(function(e){var t;switch(m+=a||e.height,r.horizontal){case"left":t=o.left;break;case"right":t=(s?f:u)-o.right-e.width;break;default:t=Math.max(((s?f:u)-e.width)/2+o.left,0)}var n=Ie("tspan");Ae(n,{x:t,y:m}),n.textContent=e.text,Se(g,n)})),De(p),{dimensions:{width:f,height:d},element:g}};var Qo=12,Fo=1.2,Vo=30;function qo(e){var t=I({fontFamily:"Arial, sans-serif",fontSize:Qo,fontWeight:"normal",lineHeight:Fo},e&&e.defaultStyle||{}),n=parseInt(t.fontSize,10)-1,i=I({},t,{fontSize:n},e&&e.externalStyle||{}),r=new Xo({style:t});this.getExternalLabelBounds=function(e,t){var n=r.getDimensions(t,{box:{width:90,height:30},style:i});return{x:Math.round(e.x+e.width/2-n.width/2),y:Math.round(e.y),width:Math.ceil(n.width),height:Math.ceil(n.height)}},this.getTextAnnotationBounds=function(e,n){var i=r.getDimensions(n,{box:e,style:t,align:"left-top",padding:5});return{x:e.x,y:e.y,width:e.width,height:Math.max(Vo,Math.round(i.height))}},this.createText=function(e,t){return r.createText(e,t||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return i}}qo.$inject=["config.textRenderer"];var Ho=/\{([^{}]+)\}/g,Wo=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;var Yo={__init__:["bpmnRenderer"],bpmnRenderer:["type",Mo],textRenderer:["type",qo],pathMap:["type",function(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(e){return this.pathMap[e].d},this.getScaledPath=function(e,t){var n,i,r=this.pathMap[e];t.abspos?(n=t.abspos.x,i=t.abspos.y):(n=t.containerWidth*t.position.mx,i=t.containerHeight*t.position.my);var o={};if(t.position){for(var s=t.containerHeight/r.height*t.yScaleFactor,a=t.containerWidth/r.width*t.xScaleFactor,l=0;l<r.heightElements.length;l++)o["y"+l]=r.heightElements[l]*s;for(var c=0;c<r.widthElements.length;c++)o["x"+c]=r.widthElements[c]*a}var h,u,p=(h=r.d,u={mx:n,my:i,e:o},String(h).replace(Ho,(function(e,t){return function(e,t,n){var i=n;return t.replace(Wo,(function(e,t,n,r,o){t=t||r,i&&(t in i&&(i=i[t]),"function"==typeof i&&o&&(i=i()))})),i=(null==i||i==n?e:i)+""}(e,t,u)})));return p}}]};var Go={translate:["value",function(e,t){return t=t||{},e.replace(/{([^}]+)}/g,(function(e,n){return t[n]||"{"+n+"}"}))}]};function Uo(e,t,n){return I({id:e.id,type:e.$type,businessObject:e,di:t},n)}function Zo(e,t,n){var i=e.waypoint;return!i||i.length<2?[Rn(t),Rn(n)]:i.map((function(e){return{x:e.x,y:e.y}}))}function Ko(e,t,n,i){return new Error(e("element {element} referenced by {referenced}#{property} not yet drawn",{element:jr(n),referenced:jr(t),property:i}))}function Jo(e,t,n,i,r,o){this._eventBus=e,this._canvas=t,this._elementFactory=n,this._elementRegistry=i,this._translate=r,this._textRenderer=o}Jo.$inject=["eventBus","canvas","elementFactory","elementRegistry","translate","textRenderer"],Jo.prototype.add=function(e,t,n){var i,r,o,s=this._translate;if(Fr(t,"bpmndi:BPMNPlane")){var a=Fr(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};i=this._elementFactory.createRoot(Uo(e,t,a)),this._canvas.addRootElement(i)}else if(Fr(t,"bpmndi:BPMNShape")){var l=!co(e,t),c=function(e){return Fr(e,"bpmn:Group")}(e);r=n&&(n.hidden||n.collapsed);var h=t.bounds;i=this._elementFactory.createShape(Uo(e,t,{collapsed:l,hidden:r,x:Math.round(h.x),y:Math.round(h.y),width:Math.round(h.width),height:Math.round(h.height),isFrame:c})),Fr(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,i),Fr(e,"bpmn:Lane")&&(o=0),Fr(e,"bpmn:DataStoreReference")&&(function(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}(n,Rn(h))||(n=this._canvas.findRoot(n))),this._canvas.addShape(i,n,o)}else{if(!Fr(t,"bpmndi:BPMNEdge"))throw new Error(s("unknown di {di} for element {semantic}",{di:jr(t),semantic:jr(e)}));var u=this._getSource(e),p=this._getTarget(e);r=n&&(n.hidden||n.collapsed),i=this._elementFactory.createConnection(Uo(e,t,{hidden:r,source:u,target:p,waypoints:Zo(t,u,p)})),Fr(e,"bpmn:DataAssociation")&&(n=this._canvas.findRoot(n)),this._canvas.addConnection(i,n,o)}return go(e)&&wo(i)&&this.addLabel(e,t,i),this._eventBus.fire("bpmnElement.added",{element:i}),i},Jo.prototype._attachBoundary=function(e,t){var n=this._translate,i=e.attachedToRef;if(!i)throw new Error(n("missing {semantic}#attachedToRef",{semantic:jr(e)}));var r=this._elementRegistry.get(i.id),o=r&&r.attachers;if(!r)throw Ko(n,e,i,"attachedToRef");t.host=r,o||(r.attachers=o=[]),-1===o.indexOf(t)&&o.push(t)},Jo.prototype.addLabel=function(e,t,n){var i,r,o;return i=function(e,t){var n,i,r,o=e.label;return o&&o.bounds?(r=o.bounds,i={width:Math.max(fo.width,r.width),height:r.height},n={x:r.x+r.width/2,y:r.y+r.height/2}):(n=bo(t),i=fo),I({x:n.x-i.width/2,y:n.y-i.height/2},i)}(t,n),(r=wo(n))&&(i=this._textRenderer.getExternalLabelBounds(i,r)),o=this._elementFactory.createLabel(Uo(e,t,{id:e.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!wo(n),x:Math.round(i.x),y:Math.round(i.y),width:Math.round(i.width),height:Math.round(i.height)})),this._canvas.addShape(o,n.parent)},Jo.prototype._getConnectedElement=function(e,t){var n,i,r=e.$type,o=this._translate;if(i=e[t+"Ref"],"source"===t&&"bpmn:DataInputAssociation"===r&&(i=i&&i[0]),("source"===t&&"bpmn:DataOutputAssociation"===r||"target"===t&&"bpmn:DataInputAssociation"===r)&&(i=e.$parent),n=i&&this._getElement(i))return n;throw i?Ko(o,e,i,t+"Ref"):new Error(o("{semantic}#{side} Ref not specified",{semantic:jr(e),side:t}))},Jo.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},Jo.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},Jo.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};var es={__depends__:[Yo,{__depends__:[Go],bpmnImporter:["type",Jo]}]};function ts(e){e&&"function"==typeof e.stopPropagation&&e.stopPropagation()}function ns(e){return e.originalEvent||e.srcEvent}function is(e){ts(e),ts(ns(e))}function rs(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}function os(e,t){return(ns(e)||e).button===t}function ss(e){return os(e,0)}function as(e){var t=ns(e)||e;return!!ss(e)&&(/mac/i.test(navigator.platform)?t.metaKey:t.ctrlKey)}function ls(e){var t=ns(e)||e;return ss(e)&&t.shiftKey}function cs(e){return!0}function hs(e){return ss(e)||function(e){return os(e,1)}(e)}var us=500;function ps(e,t,n){var i=this;function r(n,i,r){var o,s;(function(e,t){var n=l[e]||ss;return!n(t)})(n,i)||(r?s=t.getGraphics(r):(o=i.delegateTarget||i.target)&&(s=o,r=t.get(s)),s&&r&&!1===e.fire(n,{element:r,gfx:s,originalEvent:i})&&(i.stopPropagation(),i.preventDefault()))}var o={};function s(e){return o[e]}var a={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},l={"element.contextmenu":cs,"element.mousedown":hs,"element.mouseup":hs,"element.click":hs,"element.dblclick":hs};var c="svg, .djs-element";function h(e,t,n,i){var s=o[n]=function(e){r(n,e)};i&&(l[n]=i),s.$delegate=ve.bind(e,c,t,s)}function u(e,t,n){var i=s(n);i&&ve.unbind(e,t,i.$delegate)}e.on("canvas.destroy",(function(e){!function(e){b(a,(function(t,n){u(e,n,t)}))}(e.svg)})),e.on("canvas.init",(function(e){!function(e){b(a,(function(t,n){h(e,n,t)}))}(e.svg)})),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"],us,(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.updateHit",{element:n,gfx:i})})),e.on("interactionEvents.createHit",us,(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 p=m("djs-hit djs-hit-stroke"),d=m("djs-hit djs-hit-click-stroke"),f={all:m("djs-hit djs-hit-all"),"click-stroke":d,stroke:p,"no-move":m("djs-hit djs-hit-no-move")};function m(e,t){return t=I({stroke:"white",strokeWidth:15},t||{}),n.cls(e,["no-fill","no-border"],t)}function g(e,t){var n=f[t];if(!n)throw new Error("invalid hit type <"+t+">");return Ae(e,n),e}function v(e,t){Se(e,t)}this.removeHits=function(e){b(Oe(".djs-hit",e),De)},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=vt(t);return g(n,"stroke"),v(e,n),n},this.createBoxHit=function(e,t,n){n=I({x:0,y:0},n);var i=Ie("rect");return g(i,t),Ae(i,n),v(e,i),i},this.updateDefaultHit=function(e,t){var n=_e(".djs-hit",t);if(n)return e.waypoints?yt(n,e.waypoints):Ae(n,{width:e.width,height:e.height}),n},this.fire=r,this.triggerMouseEvent=function(e,t,n){var i=a[e];if(!i)throw new Error("unmapped DOM event name <"+e+">");return r(i,t,n)},this.mouseHandler=s,this.registerEvent=h,this.unregisterEvent=u}ps.$inject=["eventBus","elementRegistry","styles"];var ds={__init__:["interactionEvents"],interactionEvents:["type",ps]},fs=500;function ms(e,t){this.offset=6;var n=t.cls("djs-outline",["no-fill"]),i=this;function r(e,t){var i=Ie("rect");return Ae(i,I({x:10,y:10,rx:4,width:100,height:100},n)),Se(e,i),i}e.on(["shape.added","shape.changed"],fs,(function(e){var t=e.element,n=e.gfx,o=_e(".djs-outline",n);o||(o=r(n)),i.updateShapeOutline(o,t)})),e.on(["connection.added","connection.changed"],(function(e){var t=e.element,n=e.gfx,o=_e(".djs-outline",n);o||(o=r(n)),i.updateConnectionOutline(o,t)}))}ms.prototype.updateShapeOutline=function(e,t){Ae(e,{x:-this.offset,y:-this.offset,width:t.width+2*this.offset,height:t.height+2*this.offset})},ms.prototype.updateConnectionOutline=function(e,t){var n=Et(t);Ae(e,{x:n.x-this.offset,y:n.y-this.offset,width:n.width+2*this.offset,height:n.height+2*this.offset})},ms.$inject=["eventBus","styles","elementRegistry"];var gs={__init__:["outline"],outline:["type",ms]};function vs(e,t){this._eventBus=e,this._canvas=t,this._selectedElements=[];var n=this;e.on(["shape.remove","connection.remove"],(function(e){var t=e.element;n.deselect(t)})),e.on(["diagram.clear","root.set"],(function(e){n.select(null)}))}vs.$inject=["eventBus","canvas"],vs.prototype.deselect=function(e){var t=this._selectedElements,n=t.indexOf(e);if(-1!==n){var i=t.slice();t.splice(n,1),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:t})}},vs.prototype.get=function(){return this._selectedElements},vs.prototype.isSelected=function(e){return-1!==this._selectedElements.indexOf(e)},vs.prototype.select=function(e,t){var n=this._selectedElements,i=n.slice();c(e)||(e=e?[e]:[]);var r=this._canvas,o=r.getRootElement();e=e.filter((function(e){var t=r.findRoot(e);return o===t})),t?b(e,(function(e){-1===n.indexOf(e)&&n.push(e)})):this._selectedElements=n=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:n})};var ys="hover",bs="selected",xs=6;function ws(e,t,n){this._canvas=e;var i=this;function r(t,n){e.addMarker(t,n)}function o(t,n){e.removeMarker(t,n)}this._multiSelectionBox=null,t.on("element.hover",(function(e){r(e.element,ys)})),t.on("element.out",(function(e){o(e.element,ys)})),t.on("selection.changed",(function(e){var t=e.oldSelection,n=e.newSelection;b(t,(function(e){-1===n.indexOf(e)&&function(e){o(e,bs)}(e)})),b(n,(function(e){-1===t.indexOf(e)&&function(e){r(e,bs)}(e)})),i._updateSelectionOutline(n)})),t.on("element.changed",(function(e){n.isSelected(e.element)&&i._updateSelectionOutline(n.get())}))}function _s(e,t,n,i){e.on("create.end",500,(function(e){var n=e.context,i=n.canExecute,r=n.elements,o=(n.hints||{}).autoSelect;if(i){if(!1===o)return;c(o)?t.select(o):t.select(r.filter(Os))}})),e.on("connect.end",500,(function(e){var n=e.context.connection;n&&t.select(n)})),e.on("shape.move.end",500,(function(e){var n=e.previousSelection||[],r=i.get(e.context.shape.id);g(n,(function(e){return r.id===e.id}))||t.select(r)})),e.on("element.click",(function(e){if(ss(e)){var i=e.element;i===n.getRootElement()&&(i=null);var r=t.isSelected(i),o=t.get().length>1,s=as(e)||ls(e);if(r&&o)return s?t.deselect(i):t.select(i);r?t.deselect(i):t.select(i,s)}}))}function Os(e){return!e.hidden}ws.$inject=["canvas","eventBus","selection"],ws.prototype._updateSelectionOutline=function(e){var t=this._canvas.getLayer("selectionOutline");Be(t);var n=e.length>1;if(Te(this._canvas.getContainer())[n?"add":"remove"]("djs-multi-select"),n){var i=function(e){return{x:e.x-xs,y:e.y-xs,width:e.width+2*xs,height:e.height+2*xs}}(Et(e)),r=Ie("rect");Ae(r,I({rx:3},i)),Te(r).add("djs-selection-outline"),Se(t,r)}},_s.$inject=["eventBus","selection","canvas","elementRegistry"];var Es={__init__:["selectionVisuals","selectionBehavior"],__depends__:[ds,gs],selection:["type",vs],selectionVisuals:["type",ws],selectionBehavior:["type",_s]};function ks(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(1e9*Math.random())+"-"}ks.prototype.next=function(){return this._prefix+ ++this._counter};var Ss=new ks("ov");function Cs(e,t,n,i){var r,o;this._eventBus=t,this._canvas=n,this._elementRegistry=i,this._ids=Ss,this._overlayDefaults=I({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=(r=n.getContainer(),J(o=we('<div class="djs-overlay-container" />'),{position:"absolute",width:0,height:0}),r.insertBefore(o,r.firstChild),o),this._init()}function Ps(e,t,n){J(e,{left:t+"px",top:n+"px"})}function $s(e,t){e.style.display=!1===t?"none":""}function As(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(n){e.style[n+"transform"]=t}))}Cs.$inject=["config.overlays","eventBus","canvas","elementRegistry"],Cs.prototype.get=function(e){if(d(e)&&(e={id:e}),d(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?y(t.overlays,T({type:e.type})):t.overlays.slice():[]}return e.type?y(this._overlays,T({type:e.type})):e.id?this._overlays[e.id]:null},Cs.prototype.add=function(e,t,n){if(h(t)&&(n=t,t=null),e.id||(e=this._elementRegistry.get(e)),!n.position)throw new Error("must specifiy overlay position");if(!n.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var i=this._ids.next();return n=I({},this._overlayDefaults,n,{id:i,type:t,element:e,html:n.html}),this._addOverlay(n),i},Cs.prototype.remove=function(e){var t=this.get(e)||[];c(t)||(t=[t]);var n=this;b(t,(function(e){var t=n._getOverlayContainer(e.element,!0);if(e&&(Ee(e.html),Ee(e.htmlContainer),delete e.htmlContainer,delete e.element,delete n._overlays[e.id]),t){var i=t.overlays.indexOf(e);-1!==i&&t.overlays.splice(i,1)}}))},Cs.prototype.isShown=function(){return"none"!==this._overlayRoot.style.display},Cs.prototype.show=function(){$s(this._overlayRoot)},Cs.prototype.hide=function(){$s(this._overlayRoot,!1)},Cs.prototype.clear=function(){this._overlays={},this._overlayContainers=[],re(this._overlayRoot)},Cs.prototype._updateOverlayContainer=function(e){var t=e.element,n=e.html,i=t.x,r=t.y;if(t.waypoints){var o=Et(t);i=o.x,r=o.y}Ps(n,i,r),ee(e.html,"data-container-id",t.id)},Cs.prototype._updateOverlay=function(e){var t,n,i=e.position,r=e.htmlContainer,o=e.element,s=i.left,a=i.top;void 0!==i.right&&(t=o.waypoints?Et(o).width:o.width,s=-1*i.right+t);void 0!==i.bottom&&(n=o.waypoints?Et(o).height:o.height,a=-1*i.bottom+n);Ps(r,s||0,a||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Cs.prototype._createOverlayContainer=function(e){var t=we('<div class="djs-overlays" />');J(t,{position:"absolute"}),this._overlayRoot.appendChild(t);var n={html:t,element:e,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},Cs.prototype._updateRoot=function(e){var t=e.scale||1,n="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";As(this._overlayRoot,n)},Cs.prototype._getOverlayContainer=function(e,t){var n=g(this._overlayContainers,(function(t){return t.element===e}));return n||t?n:this._createOverlayContainer(e)},Cs.prototype._addOverlay=function(e){var t,n,i=e.id,r=e.element,o=e.html;o.get&&o.constructor.prototype.jquery&&(o=o.get(0)),d(o)&&(o=we(o)),n=this._getOverlayContainer(r),J(t=we('<div class="djs-overlay" data-overlay-id="'+i+'">'),{position:"absolute"}),t.appendChild(o),e.type&&ne(t).add("djs-overlay-"+e.type),$s(t,this._canvas.findRoot(r)===this._canvas.getRootElement()),e.htmlContainer=t,n.overlays.push(e),n.html.appendChild(t),this._overlays[i]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Cs.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,i=this._canvas.findRoot(e.element),r=n&&n.minZoom,o=n&&n.maxZoom,s=e.htmlContainer,l=!0;(i!==this._canvas.getRootElement()||n&&(a(r)&&r>t.scale||a(o)&&o<t.scale))&&(l=!1),$s(s,l),this._updateOverlayScale(e,t)},Cs.prototype._updateOverlayScale=function(e,t){var n,i,r,o=e.scale,s=e.htmlContainer,l="";!0!==o&&(!1===o?(n=1,i=1):(n=o.min,i=o.max),a(n)&&t.scale<n&&(r=(1/t.scale||1)*n),a(i)&&t.scale>i&&(r=(1/t.scale||1)*i)),a(r)&&(l="scale("+r+","+r+")"),As(s,l)},Cs.prototype._updateOverlaysVisibilty=function(e){var t=this;b(this._overlays,(function(n){t._updateOverlayVisibilty(n,e)}))},Cs.prototype._init=function(){var e=this._eventBus,t=this;e.on("canvas.viewbox.changing",(function(e){t.hide()})),e.on("canvas.viewbox.changed",(function(e){var n;n=e.viewbox,t._updateRoot(n),t._updateOverlaysVisibilty(n),t.show()})),e.on(["shape.remove","connection.remove"],(function(e){var n=e.element;b(t.get({element:n}),(function(e){t.remove(e.id)}));var i=t._getOverlayContainer(n);if(i){Ee(i.html);var r=t._overlayContainers.indexOf(i);-1!==r&&t._overlayContainers.splice(r,1)}})),e.on("element.changed",500,(function(e){var n=e.element,i=t._getOverlayContainer(n,!0);i&&(b(i.overlays,(function(e){t._updateOverlay(e)})),t._updateOverlayContainer(i))})),e.on("element.marker.update",(function(e){var n=t._getOverlayContainer(e.element,!0);n&&ne(n.html)[e.add?"add":"remove"](e.marker)})),e.on("root.set",(function(){t._updateOverlaysVisibilty(t._canvas.viewbox())})),e.on("diagram.clear",this.clear,this)};var Rs={__init__:["overlays"],overlays:["type",Cs]};function Ts(e,t,n,i){e.on("element.changed",(function(i){var r=i.element;(r.parent||r===t.getRootElement())&&(i.gfx=n.getGraphics(r)),i.gfx&&e.fire(kt(r)+".changed",i)})),e.on("elements.changed",(function(t){var n=t.elements;n.forEach((function(t){e.fire("element.changed",{element:t})})),i.updateContainments(n)})),e.on("shape.changed",(function(e){i.update("shape",e.element,e.gfx)})),e.on("connection.changed",(function(e){i.update("connection",e.element,e.gfx)}))}Ts.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];var Ms={__init__:["changeSupport"],changeSupport:["type",Ts]};function Ds(e){this._eventBus=e}function Bs(e){return function(t,n,i,r,o){(p(t)||u(t))&&(o=r,r=i,i=n,n=t,t=null),this.on(t,e,n,i,r,o)}}function Ls(e,t){t.invoke(Ds,this),this.executed((function(t){var n=t.context;n.rootElement?e.setRootElement(n.rootElement):n.rootElement=e.getRootElement()})),this.revert((function(t){var n=t.context;n.rootElement&&e.setRootElement(n.rootElement)}))}Ds.$inject=["eventBus"],Ds.prototype.on=function(e,t,n,i,r,o){if((p(t)||u(t))&&(o=r,r=i,i=n,n=t,t=null),p(n)&&(o=r,r=i,i=n,n=1e3),h(r)&&(o=r,r=!1),!p(i))throw new Error("handlerFn must be a function");c(e)||(e=[e]);var s=this._eventBus;b(e,(function(e){var a=["commandStack",e,t].filter((function(e){return e})).join(".");s.on(a,n,r?function(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}(i,o):i,o)}))},Ds.prototype.canExecute=Bs("canExecute"),Ds.prototype.preExecute=Bs("preExecute"),Ds.prototype.preExecuted=Bs("preExecuted"),Ds.prototype.execute=Bs("execute"),Ds.prototype.executed=Bs("executed"),Ds.prototype.postExecute=Bs("postExecute"),Ds.prototype.postExecuted=Bs("postExecuted"),Ds.prototype.revert=Bs("revert"),Ds.prototype.reverted=Bs("reverted"),e(Ls,Ds),Ls.$inject=["canvas","injector"];var Ns={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",Ls]};function js(e){return CSS.escape(e)}var zs={"&":"&","<":"<",">":">",'"':""","'":"'"};function Is(e){return(e=""+e)&&e.replace(/[&<>"']/g,(function(e){return zs[e]}))}var Xs="_plane";function Qs(e){return function(e){return e.replace(new RegExp(Xs+"$"),"")}(e.id)}function Fs(e){var t=e.id;return Fr(e,"bpmn:SubProcess")?Hs(t):t}function Vs(e){return Hs(e)}function qs(e){return Fr(Hr(e),"bpmndi:BPMNPlane")}function Hs(e){return e+Xs}var Ws="bjs-breadcrumbs-shown";function Ys(e,t,n){var i=we('<ul class="bjs-breadcrumbs"></ul>'),r=n.getContainer(),o=ne(r);r.appendChild(i);var s=[];function a(e){e&&(s=function(e){for(var t=qr(e),n=[],i=t;i;i=i.$parent)(Fr(i,"bpmn:SubProcess")||Fr(i,"bpmn:Process"))&&n.push(i);return n.reverse()}(e));var r=s.map((function(e){var i=Is(e.name||e.id),r=we('<li><span class="bjs-crumb"><a title="'+i+'">'+i+"</a></span></li>"),o=n.findRoot(Fs(e))||n.findRoot(e.id);if(!o&&Fr(e,"bpmn:Process")){var s=t.find((function(t){var n=qr(t);return n&&n.get("processRef")&&n.get("processRef")===e}));o=n.findRoot(s.id)}return r.addEventListener("click",(function(){n.setRootElement(o)})),r}));i.innerHTML="";var a=r.length>1;o.toggle(Ws,a),r.forEach((function(e){i.appendChild(e)}))}e.on("element.changed",(function(e){var t=qr(e.element);g(s,(function(e){return e===t}))&&a()})),e.on("root.set",(function(e){a(e.element)}))}function Gs(e,t){var n=null,i=new Us;e.on("root.set",(function(e){var r=e.element,o=t.viewbox(),s=i.get(r);if(i.set(n,{x:o.x,y:o.y,zoom:o.scale}),n=r,!Fr(r,"bpmn:Collaboration")||s){s=s||{x:0,y:0,zoom:1};var a=(o.x-s.x)*o.scale,l=(o.y-s.y)*o.scale;0===a&&0===l||t.scroll({dx:a,dy:l}),s.zoom!==o.scale&&t.zoom(s.zoom,{x:0,y:0})}})),e.on("diagram.clear",(function(){i.clear(),n=null}))}function Us(){this._entries=[],this.set=function(e,t){var n=!1;for(var i in this._entries)if(this._entries[i][0]===e){this._entries[i][1]=t,n=!0;break}n||this._entries.push([e,t])},this.get=function(e){for(var t in this._entries)if(this._entries[t][0]===e)return this._entries[t][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var t=-1;for(var n in this._entries)if(this._entries[n][0]===e){t=n;break}-1!==t&&this._entries.splice(t,1)}}Ys.$inject=["eventBus","elementRegistry","canvas"],Gs.$inject=["eventBus","canvas"];var Zs=180,Ks=160;function Js(e,t){this._eventBus=e,this._moddle=t;var n=this;e.on("import.render.start",1500,(function(e,t){n._handleImport(t.definitions)}))}function ea(e){return Fr(e,"bpmndi:BPMNDiagram")?e:ea(e.$parent)}Js.prototype._handleImport=function(e){if(e.diagrams){var t=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach((function(e){e.plane&&e.plane.bpmnElement&&(t._processToDiagramMap[e.plane.bpmnElement.id]=e)}));var n=[];e.diagrams.forEach((function(e){var i=t._createNewDiagrams(e.plane);Array.prototype.push.apply(n,i)})),n.forEach((function(e){t._movePlaneElementsToOrigin(e.plane)}))}},Js.prototype._createNewDiagrams=function(e){var t=this,n=[],i=[];e.get("planeElement").forEach((function(t){var r=t.bpmnElement;if(r){var o=r.$parent;Fr(r,"bpmn:SubProcess")&&!t.isExpanded&&n.push(r),function(e,t){var n=e.$parent;if(!Fr(n,"bpmn:SubProcess")||n===t.bpmnElement)return!1;if(Vr(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))return!1;return!0}(r,e)&&i.push({diElement:t,parent:o})}}));var r=[];return n.forEach((function(e){if(!t._processToDiagramMap[e.id]){var n=t._createDiagram(e);t._processToDiagramMap[e.id]=n,r.push(n)}})),i.forEach((function(e){for(var i=e.diElement,r=e.parent;r&&-1===n.indexOf(r);)r=r.$parent;if(r){var o=t._processToDiagramMap[r.id];t._moveToDiPlane(i,o.plane)}})),r},Js.prototype._movePlaneElementsToOrigin=function(e){var t=e.get("planeElement"),n=function(e){var t={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach((function(e){if(e.bounds){var n=Pn(e.bounds);t.top=Math.min(n.top,t.top),t.left=Math.min(n.left,t.left)}})),$n(t)}(e),i=n.x-Zs,r=n.y-Ks;t.forEach((function(e){e.waypoint?e.waypoint.forEach((function(e){e.x=e.x-i,e.y=e.y-r})):e.bounds&&(e.bounds.x=e.bounds.x-i,e.bounds.y=e.bounds.y-r)}))},Js.prototype._moveToDiPlane=function(e,t){var n=ea(e).plane.get("planeElement");n.splice(n.indexOf(e),1),t.get("planeElement").push(e)},Js.prototype._createDiagram=function(e){var t=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),n=this._moddle.create("bpmndi:BPMNDiagram",{plane:t});return t.$parent=n,t.bpmnElement=e,n.$parent=this._definitions,this._definitions.diagrams.push(n),n},Js.$inject=["eventBus","moddle"];var ta=250;function na(e,t,n,i){Ds.call(this,t),this._canvas=e,this._eventBus=t,this._elementRegistry=n,this._overlays=i;var r=this;this.executed("shape.toggleCollapse",ta,(function(e){var t=e.shape;r._canDrillDown(t)?r._addOverlay(t):r._removeOverlay(t)}),!0),this.reverted("shape.toggleCollapse",ta,(function(e){var t=e.shape;r._canDrillDown(t)?r._addOverlay(t):r._removeOverlay(t)}),!0),this.executed(["shape.create","shape.move","shape.delete"],ta,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;r._canDrillDown(i)&&r._addOverlay(i),r._updateDrilldownOverlay(t),r._updateDrilldownOverlay(n),r._updateDrilldownOverlay(i)}),!0),this.reverted(["shape.create","shape.move","shape.delete"],ta,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;r._canDrillDown(i)&&r._addOverlay(i),r._updateDrilldownOverlay(t),r._updateDrilldownOverlay(n),r._updateDrilldownOverlay(i)}),!0),t.on("import.render.complete",(function(){n.filter((function(e){return r._canDrillDown(e)})).map((function(e){r._addOverlay(e)}))}))}e(na,Ds),na.prototype._updateDrilldownOverlay=function(e){var t=this._canvas;if(e){var n=t.findRoot(e);n&&this._updateOverlayVisibility(n)}},na.prototype._canDrillDown=function(e){var t=this._canvas;return Fr(e,"bpmn:SubProcess")&&t.findRoot(Fs(e))},na.prototype._updateOverlayVisibility=function(e){var t=this._overlays,n=qr(e),i=t.get({element:n.id,type:"drilldown"})[0];if(i){var r=n&&n.get("flowElements")&&n.get("flowElements").length;ne(i.html).toggle("bjs-drilldown-empty",!r)}},na.prototype._addOverlay=function(e){var t=this._canvas,n=this._overlays;n.get({element:e,type:"drilldown"}).length&&this._removeOverlay(e);var i=we('<button class="bjs-drilldown"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg></button>');i.addEventListener("click",(function(){t.setRootElement(t.findRoot(Fs(e)))})),n.add(e,"drilldown",{position:{bottom:-7,right:-8},html:i}),this._updateOverlayVisibility(e)},na.prototype._removeOverlay=function(e){this._overlays.remove({element:e,type:"drilldown"})},na.$inject=["canvas","eventBus","elementRegistry","overlays"];var ia={__depends__:[Rs,Ms,Ns],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",Ys],drilldownCentering:["type",Gs],drilldownOverlayBehavior:["type",na],subprocessCompatibility:["type",Js]};function ra(e){ro.call(this,e)}e(ra,ro),ra.prototype._modules=[es,Go,Es,Rs,ia],ra.prototype._moddleExtensions={};var oa=["c","C"],sa=["v","V"],aa=["y","Y"],la=["z","Z"];function ca(e){return!e.altKey&&(e.ctrlKey||e.metaKey)}function ha(e,t){return-1!==(e=c(e)?e:[e]).indexOf(t.key)||-1!==e.indexOf(t.code)}function ua(e){return e.shiftKey}function pa(e){return ca(e)&&!ua(e)&&ha(la,e)}function da(e){return ca(e)&&(ha(aa,e)||ha(la,e)&&ua(e))}var fa="keyboard.keydown",ma="input-handle-modified-keys";function ga(e,t){var n=this;this._config=e||{},this._eventBus=t,this._keydownHandler=this._keydownHandler.bind(this),this._keyupHandler=this._keyupHandler.bind(this),t.on("diagram.destroy",(function(){n._fire("destroy"),n.unbind()})),t.on("diagram.init",(function(){n._fire("init")})),t.on("attach",(function(){e&&e.bindTo&&n.bind(e.bindTo)})),t.on("detach",(function(){n.unbind()}))}ga.$inject=["config.keyboard","eventBus"],ga.prototype._keydownHandler=function(e){this._keyHandler(e,fa)},ga.prototype._keyupHandler=function(e){this._keyHandler(e,"keyboard.keyup")},ga.prototype._keyHandler=function(e,t){if(!this._isEventIgnored(e)){var n={keyEvent:e};this._eventBus.fire(t||fa,n)&&e.preventDefault()}},ga.prototype._isEventIgnored=function(e){return!!e.defaultPrevented||(t=e.target)&&(oe(t,"input, textarea")||"true"===t.contentEditable)&&this._isModifiedKeyIgnored(e);var t},ga.prototype._isModifiedKeyIgnored=function(e){return!ca(e)||-1===this._getAllowedModifiers(e.target).indexOf(e.key)},ga.prototype._getAllowedModifiers=function(e){var t=se(e,"["+ma+"]",!0);return!t||this._node&&!this._node.contains(t)?[]:t.getAttribute(ma).split(",")},ga.prototype.bind=function(e){this.unbind(),this._node=e,fe.bind(e,"keydown",this._keydownHandler),fe.bind(e,"keyup",this._keyupHandler),this._fire("bind")},ga.prototype.getBinding=function(){return this._node},ga.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),fe.unbind(e,"keydown",this._keydownHandler),fe.unbind(e,"keyup",this._keyupHandler)),this._node=null},ga.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node})},ga.prototype.addListener=function(e,t,n){p(e)&&(n=t,t=e,e=1e3),this._eventBus.on(n||fa,e,t)},ga.prototype.removeListener=function(e,t){this._eventBus.off(t||fa,e)},ga.prototype.hasModifier=function(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey},ga.prototype.isCmd=ca,ga.prototype.isShift=ua,ga.prototype.isKey=ha;var va=500;function ya(e,t){var n=this;e.on("editorActions.init",va,(function(e){var i=e.editorActions;n.registerBindings(t,i)}))}ya.$inject=["eventBus","keyboard"],ya.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}n("undo",(function(e){if(pa(e.keyEvent))return t.trigger("undo"),!0})),n("redo",(function(e){if(da(e.keyEvent))return t.trigger("redo"),!0})),n("copy",(function(e){if(function(e){return ca(e)&&ha(oa,e)}(e.keyEvent))return t.trigger("copy"),!0})),n("paste",(function(e){if(function(e){return ca(e)&&ha(sa,e)}(e.keyEvent))return t.trigger("paste"),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(ha(["+","Add","="],n)&&ca(n))return t.trigger("stepZoom",{value:1}),!0})),n("stepZoom",(function(e){var n=e.keyEvent;if(ha(["-","Subtract"],n)&&ca(n))return t.trigger("stepZoom",{value:-1}),!0})),n("zoom",(function(e){var n=e.keyEvent;if(ha("0",n)&&ca(n))return t.trigger("zoom",{value:1}),!0})),n("removeSelection",(function(e){if(ha(["Backspace","Delete","Del"],e.keyEvent))return t.trigger("removeSelection"),!0}))};var ba={__init__:["keyboard","keyboardBindings"],keyboard:["type",ga],keyboardBindings:["type",ya]},xa={moveSpeed:50,moveSpeedAccelerated:200};function wa(e,t,n){var i=this;this._config=I({},xa,e||{}),t.addListener((function(e){var n=e.keyEvent,r=i._config;if(!t.isCmd(n))return;if(t.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],n)){var o,s=t.isShift(n)?r.moveSpeedAccelerated:r.moveSpeed;switch(n.key){case"ArrowLeft":case"Left":o="left";break;case"ArrowUp":case"Up":o="up";break;case"ArrowRight":case"Right":o="right";break;case"ArrowDown":case"Down":o="down"}return i.moveCanvas({speed:s,direction:o}),!0}})),this.moveCanvas=function(e){var t=0,i=0,r=e.speed/Math.min(Math.sqrt(n.viewbox().scale),1);switch(e.direction){case"left":t=r;break;case"up":i=r;break;case"right":t=-r;break;case"down":i=-r}n.scroll({dx:t,dy:i})}}wa.$inject=["config.keyboardMove","keyboard","canvas"];var _a={__depends__:[ba],__init__:["keyboardMove"],keyboardMove:["type",wa]},Oa=/^djs-cursor-.*$/;function Ea(e){var t=ne(document.body);t.removeMatching(Oa),e&&t.add("djs-cursor-"+e)}function ka(){Ea(null)}var Sa=5e3;function Ca(e,t){function n(){return!1}return t=t||"element.click",e.once(t,Sa,n),function(){e.off(t,n)}}function Pa(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function $a(e,t){return{x:e.x-t.x,y:e.y-t.y}}var Aa=15;function Ra(e,t){var n;function i(i){var r,o=n.start,s=n.button,a=rs(i),l=$a(a,o);(!n.dragging&&(r=l,Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2))>Aa)&&(n.dragging=!0,0===s&&Ca(e),Ea("grab")),n.dragging)&&(l=$a(a,n.last||n.start),t.scroll({dx:l.x,dy:l.y}),n.last=a);i.preventDefault()}function r(e){fe.unbind(document,"mousemove",i),fe.unbind(document,"mouseup",r),n=null,ka()}e.on("element.mousedown",500,(function(e){return function(e){if(se(e.target,".djs-draggable"))return;var t=e.button;if(t>=2||e.ctrlKey||e.shiftKey||e.altKey)return;return n={button:t,start:rs(e)},fe.bind(document,"mousemove",i),fe.bind(document,"mouseup",r),!0}(e.originalEvent)})),this.isActive=function(){return!!n}}Ra.$inject=["eventBus","canvas"];var Ta={__init__:["moveCanvas"],moveCanvas:["type",Ra]};function Ma(e){return Math.log(e)/Math.log(10)}function Da(e,t){var n=Ma(e.min),i=Ma(e.max);return(Math.abs(n)+Math.abs(i))/t}var Ba=Math.sign||function(e){return e>=0?1:-1},La={min:.2,max:4},Na=.75;function ja(e,t,n){e=e||{},this._enabled=!1,this._canvas=n,this._container=n._container,this._handleWheel=z(this._handleWheel,this),this._totalDelta=0,this._scale=e.scale||Na;var i=this;t.on("canvas.init",(function(t){i._init(!1!==e.enabled)}))}ja.$inject=["config.zoomScroll","eventBus","canvas"],ja.prototype.scroll=function(e){this._canvas.scroll(e)},ja.prototype.reset=function(){this._canvas.zoom("fit-viewport")},ja.prototype.zoom=function(e,t){var n=Da(La,20);this._totalDelta+=e,Math.abs(this._totalDelta)>.1&&(this._zoom(e,t,n),this._totalDelta=0)},ja.prototype._handleWheel=function(e){if(!se(e.target,".djs-scrollable",!0)){var t=this._container;e.preventDefault();var n,i=e.ctrlKey,r=e.shiftKey,o=-1*this._scale;if(o*=i?0===e.deltaMode?.02:.32:0===e.deltaMode?1:16,i){var s=t.getBoundingClientRect(),a={x:e.clientX-s.left,y:e.clientY-s.top};n=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*Ba(e.deltaY)*o,this.zoom(n,a)}else n=r?{dx:o*e.deltaY,dy:0}:{dx:o*e.deltaX,dy:o*e.deltaY},this.scroll(n)}},ja.prototype.stepZoom=function(e,t){var n=Da(La,10);this._zoom(e,t,n)},ja.prototype._zoom=function(e,t,n){var i=this._canvas,r=e>0?1:-1,o=Ma(i.zoom()),s=Math.round(o/n)*n;s+=n*r;var a,l,c=Math.pow(10,s);i.zoom((a=La,l=c,Math.max(a.min,Math.min(a.max,l))),t)},ja.prototype.toggle=function(e){var t=this._container,n=this._handleWheel,i=this._enabled;return void 0===e&&(e=!i),i!==e&&fe[e?"bind":"unbind"](t,"wheel",n,!1),this._enabled=e,e},ja.prototype._init=function(e){this.toggle(e)};var za={__init__:["zoomScroll"],zoomScroll:["type",ja]};function Ia(e){ra.call(this,e)}e(Ia,ra),Ia.prototype._navigationModules=[_a,Ta,za],Ia.prototype._modules=[].concat(ra.prototype._modules,Ia.prototype._navigationModules);var Xa={exports:{}};
|
|
2
2
|
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
3
3
|
* http://hammerjs.github.io/
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
6
|
-
* Licensed under the MIT license */!function(e){!function(t,n,i,r){var o,s=["","webkit","Moz","MS","ms","o"],a=n.createElement("div"),l="function",c=Math.round,h=Math.abs,u=Date.now;function p(e,t,n){return setTimeout(b(e,n),t)}function d(e,t,n){return!!Array.isArray(e)&&(f(e,n[t],n),!0)}function f(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 g=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`."),v=m((function(e,t){return g(e,t,!0)}),"merge","Use `assign`.");function y(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&o(i,n)}function b(e,t){return function(){return e.apply(t,arguments)}}function x(e,t){return typeof e==l?e.apply(t&&t[0]||r,t):e}function w(e,t){return e===r?t:e}function _(e,t,n){f(S(t),(function(t){e.addEventListener(t,n,!1)}))}function O(e,t,n){f(S(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 k(e,t){return e.indexOf(t)>-1}function S(e){return e.trim().split(/\s+/g)}function C(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 P(e){return Array.prototype.slice.call(e,0)}function $(e,t,n){for(var i=[],r=[],o=0;o<e.length;){var s=t?e[o][t]:e[o];C(r,s)<0&&i.push(e[o]),r[o]=s,o++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}function A(e,t){for(var n,i,o=t[0].toUpperCase()+t.slice(1),a=0;a<s.length;){if((i=(n=s[a])?n+o:t)in e)return i;a++}return r}var R=1;function T(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}var M="ontouchstart"in t,D=A(t,"PointerEvent")!==r,B=M&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),L="touch",N="mouse",j=25,z=1,I=2,X=4,Q=8,F=1,V=2,q=4,H=8,W=16,Y=V|q,G=H|W,U=Y|G,Z=["x","y"],K=["clientX","clientY"];function J(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){x(e.options.enable,[e])&&n.handler(t)},this.init()}function ee(e,t,n){var i=n.pointers.length,o=n.changedPointers.length,s=t&z&&i-o==0,a=t&(X|Q)&&i-o==0;n.isFirst=!!s,n.isFinal=!!a,s&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,o=i.length;n.firstInput||(n.firstInput=te(t));o>1&&!n.firstMultiple?n.firstMultiple=te(t):1===o&&(n.firstMultiple=!1);var s=n.firstInput,a=n.firstMultiple,l=a?a.center:s.center,c=t.center=ne(i);t.timeStamp=u(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=se(l,c),t.distance=oe(l,c),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};t.eventType!==z&&o.eventType!==X||(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=re(t.deltaX,t.deltaY);var p=ie(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=h(p.x)>h(p.y)?p.x:p.y,t.scale=a?(d=a.pointers,f=i,oe(f[0],f[1],K)/oe(d[0],d[1],K)):1,t.rotation=a?function(e,t){return se(t[1],t[0],K)+se(e[1],e[0],K)}(a.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,s,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(t.eventType!=Q&&(l>j||a.velocity===r)){var c=t.deltaX-a.deltaX,u=t.deltaY-a.deltaY,p=ie(l,c,u);i=p.x,o=p.y,n=h(p.x)>h(p.y)?p.x:p.y,s=re(c,u),e.lastInterval=t}else n=a.velocity,i=a.velocityX,o=a.velocityY,s=a.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=s}(n,t);var d,f;var m=e.element;E(t.srcEvent.target,m)&&(m=t.srcEvent.target);t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function te(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:c(e.pointers[n].clientX),clientY:c(e.pointers[n].clientY)},n++;return{timeStamp:u(),pointers:t,center:ne(t),deltaX:e.deltaX,deltaY:e.deltaY}}function ne(e){var t=e.length;if(1===t)return{x:c(e[0].clientX),y:c(e[0].clientY)};for(var n=0,i=0,r=0;r<t;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:c(n/t),y:c(i/t)}}function ie(e,t,n){return{x:t/e||0,y:n/e||0}}function re(e,t){return e===t?F:h(e)>=h(t)?e<0?V:q:t<0?H:W}function oe(e,t,n){n||(n=Z);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function se(e,t,n){n||(n=Z);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}J.prototype={handler:function(){},init:function(){this.evEl&&_(this.element,this.evEl,this.domHandler),this.evTarget&&_(this.target,this.evTarget,this.domHandler),this.evWin&&_(T(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(T(this.element),this.evWin,this.domHandler)}};var ae={mousedown:z,mousemove:I,mouseup:X},le="mousedown",ce="mousemove mouseup";function he(){this.evEl=le,this.evWin=ce,this.pressed=!1,J.apply(this,arguments)}y(he,J,{handler:function(e){var t=ae[e.type];t&z&&0===e.button&&(this.pressed=!0),t&I&&1!==e.which&&(t=X),this.pressed&&(t&X&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:N,srcEvent:e}))}});var ue={pointerdown:z,pointermove:I,pointerup:X,pointercancel:Q,pointerout:Q},pe={2:L,3:"pen",4:N,5:"kinect"},de="pointerdown",fe="pointermove pointerup pointercancel";function me(){this.evEl=de,this.evWin=fe,J.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(de="MSPointerDown",fe="MSPointerMove MSPointerUp MSPointerCancel"),y(me,J,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=ue[i],o=pe[e.pointerType]||e.pointerType,s=o==L,a=C(t,e.pointerId,"pointerId");r&z&&(0===e.button||s)?a<0&&(t.push(e),a=t.length-1):r&(X|Q)&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(a,1))}});var ge={touchstart:z,touchmove:I,touchend:X,touchcancel:Q},ve="touchstart",ye="touchstart touchmove touchend touchcancel";function be(){this.evTarget=ve,this.evWin=ye,this.started=!1,J.apply(this,arguments)}function xe(e,t){var n=P(e.touches),i=P(e.changedTouches);return t&(X|Q)&&(n=$(n.concat(i),"identifier",!0)),[n,i]}y(be,J,{handler:function(e){var t=ge[e.type];if(t===z&&(this.started=!0),this.started){var n=xe.call(this,e,t);t&(X|Q)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:L,srcEvent:e})}}});var we={touchstart:z,touchmove:I,touchend:X,touchcancel:Q},_e="touchstart touchmove touchend touchcancel";function Oe(){this.evTarget=_e,this.targetIds={},J.apply(this,arguments)}function Ee(e,t){var n=P(e.touches),i=this.targetIds;if(t&(z|I)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=P(e.changedTouches),a=[],l=this.target;if(o=n.filter((function(e){return E(e.target,l)})),t===z)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<s.length;)i[s[r].identifier]&&a.push(s[r]),t&(X|Q)&&delete i[s[r].identifier],r++;return a.length?[$(o.concat(a),"identifier",!0),a]:void 0}y(Oe,J,{handler:function(e){var t=we[e.type],n=Ee.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:L,srcEvent:e})}});var ke=2500,Se=25;function Ce(){J.apply(this,arguments);var e=b(this.handler,this);this.touch=new Oe(this.manager,e),this.mouse=new he(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function Pe(e,t){e&z?(this.primaryTouch=t.changedPointers[0].identifier,$e.call(this,t)):e&(X|Q)&&$e.call(this,t)}function $e(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)}),ke)}}function Ae(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),s=Math.abs(n-r.y);if(o<=Se&&s<=Se)return!0}return!1}y(Ce,J,{handler:function(e,t,n){var i=n.pointerType==L,r=n.pointerType==N;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)Pe.call(this,t,n);else if(r&&Ae.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Re=A(a.style,"touchAction"),Te=Re!==r,Me="compute",De="auto",Be="manipulation",Le="none",Ne="pan-x",je="pan-y",ze=function(){if(!Te)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 Ie(e,t){this.manager=e,this.set(t)}Ie.prototype={set:function(e){e==Me&&(e=this.compute()),Te&&this.manager.element.style&&ze[e]&&(this.manager.element.style[Re]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return f(this.manager.recognizers,(function(t){x(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(k(e,Le))return Le;var t=k(e,Ne),n=k(e,je);if(t&&n)return Le;if(t||n)return t?Ne:je;if(k(e,Be))return Be;return De}(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=k(i,Le)&&!ze[Le],o=k(i,je)&&!ze[je],s=k(i,Ne)&&!ze[Ne];if(r){var a=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(a&&l&&c)return}if(!s||!o)return r||o&&n&Y||s&&n&G?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Xe=1,Qe=2,Fe=4,Ve=8,qe=Ve,He=16,We=32;function Ye(e){this.options=o({},this.defaults,e||{}),this.id=R++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=Xe,this.simultaneous={},this.requireFail=[]}function Ge(e){return e&He?"cancel":e&Ve?"end":e&Fe?"move":e&Qe?"start":""}function Ue(e){return e==W?"down":e==H?"up":e==V?"left":e==q?"right":""}function Ze(e,t){var n=t.manager;return n?n.get(e):e}function Ke(){Ye.apply(this,arguments)}function Je(){Ke.apply(this,arguments),this.pX=null,this.pY=null}function et(){Ke.apply(this,arguments)}function tt(){Ye.apply(this,arguments),this._timer=null,this._input=null}function nt(){Ke.apply(this,arguments)}function it(){Ke.apply(this,arguments)}function rt(){Ye.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ot(e,t){return(t=t||{}).recognizers=w(t.recognizers,ot.defaults.preset),new st(e,t)}Ye.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=Ze(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return d(e,"dropRecognizeWith",this)||(e=Ze(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(d(e,"requireFailure",this))return this;var t=this.requireFail;return-1===C(t,e=Ze(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(d(e,"dropRequireFailure",this))return this;e=Ze(e,this);var t=C(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<Ve&&i(t.options.event+Ge(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=Ve&&i(t.options.event+Ge(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=We},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(We|Xe)))return!1;e++}return!0},recognize:function(e){var t=o({},e);if(!x(this.options.enable,[this,t]))return this.reset(),void(this.state=We);this.state&(qe|He|We)&&(this.state=Xe),this.state=this.process(t),this.state&(Qe|Fe|Ve|He)&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},y(Ke,Ye,{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=t&(Qe|Fe),r=this.attrTest(e);return i&&(n&Q||!r)?t|He:i||r?n&X?t|Ve:t&Qe?t|Fe:Qe:We}}),y(Je,Ke,{defaults:{event:"pan",threshold:10,pointers:1,direction:U},getTouchAction:function(){var e=this.options.direction,t=[];return e&Y&&t.push(je),e&G&&t.push(Ne),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,o=e.deltaX,s=e.deltaY;return r&t.direction||(t.direction&Y?(r=0===o?F:o<0?V:q,n=o!=this.pX,i=Math.abs(e.deltaX)):(r=0===s?F:s<0?H:W,n=s!=this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},attrTest:function(e){return Ke.prototype.attrTest.call(this,e)&&(this.state&Qe||!(this.state&Qe)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ue(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),y(et,Ke,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Le]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&Qe)},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)}}),y(tt,Ye,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[De]},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||e.eventType&(X|Q)&&!r)this.reset();else if(e.eventType&z)this.reset(),this._timer=p((function(){this.state=qe,this.tryEmit()}),t.time,this);else if(e.eventType&X)return qe;return We},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===qe&&(e&&e.eventType&X?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}}),y(nt,Ke,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Le]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&Qe)}}),y(it,Ke,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Y|G,pointers:1},getTouchAction:function(){return Je.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Y|G)?t=e.overallVelocity:n&Y?t=e.overallVelocityX:n&G&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&h(t)>this.options.velocity&&e.eventType&X},emit:function(e){var t=Ue(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),y(rt,Ye,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},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.reset(),e.eventType&z&&0===this.count)return this.failTimeout();if(i&&r&&n){if(e.eventType!=X)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,s=!this.pCenter||oe(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=qe,this.tryEmit()}),t.interval,this),Qe):qe}return We},failTimeout:function(){return this._timer=p((function(){this.state=We}),this.options.interval,this),We},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==qe&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ot.VERSION="2.0.7",ot.defaults={domEvents:!1,touchAction:Me,enable:!0,inputTarget:null,inputClass:null,preset:[[nt,{enable:!1}],[et,{enable:!1},["rotate"]],[it,{direction:Y}],[Je,{direction:Y},["swipe"]],[rt],[rt,{event:"doubletap",taps:2},["tap"]],[tt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function st(e,t){var n;this.options=o({},ot.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||(D?me:B?Oe:M?Ce:he))(n,ee),this.touchAction=new Ie(this,this.options.touchAction),at(this,!0),f(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 at(e,t){var n,i=e.element;i.style&&(f(e.options.cssProps,(function(r,o){n=A(i.style,o),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}st.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&&r.state&qe)&&(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&&n.state&(Qe|Fe|Ve)&&(r=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Ye)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=C(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 f(S(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==r){var n=this.handlers;return f(S(e),(function(e){t?n[e]&&n[e].splice(C(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&&at(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(ot,{INPUT_START:z,INPUT_MOVE:I,INPUT_END:X,INPUT_CANCEL:Q,STATE_POSSIBLE:Xe,STATE_BEGAN:Qe,STATE_CHANGED:Fe,STATE_ENDED:Ve,STATE_RECOGNIZED:qe,STATE_CANCELLED:He,STATE_FAILED:We,DIRECTION_NONE:F,DIRECTION_LEFT:V,DIRECTION_RIGHT:q,DIRECTION_UP:H,DIRECTION_DOWN:W,DIRECTION_HORIZONTAL:Y,DIRECTION_VERTICAL:G,DIRECTION_ALL:U,Manager:st,Input:J,TouchAction:Ie,TouchInput:Oe,MouseInput:he,PointerEventInput:me,TouchMouseInput:Ce,SingleTouchInput:be,Recognizer:Ye,AttrRecognizer:Ke,Tap:rt,Pan:Je,Swipe:it,Pinch:et,Rotate:nt,Press:tt,on:_,off:O,each:f,merge:v,extend:g,assign:o,inherit:y,bindFn:b,prefixed:A}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=ot,e.exports?e.exports=ot:t.Hammer=ot}(window,document)}(Qa);var Fa=Xt(Qa.exports),Va=.2,qa=4,Ha=["mousedown","mouseup","mouseover","mouseout","click","dblclick"];function Wa(e,t){return t.get(e,!1)}function Ya(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 Ga(e){function t(t){setTimeout((function(){b(Ha,(function(t){fe.unbind(e,t,Ya,!0)}))}),500)}fe.bind(e,"touchstart",(function(t){b(Ha,(function(t){fe.bind(e,t,Ya,!0)}))}),!0),fe.bind(e,"touchend",t,!0),fe.bind(e,"touchcancel",t,!0);var n=new Fa.Manager(e,{inputClass:Fa.TouchInput,recognizers:[],domEvents:!0}),i=new Fa.Tap,r=new Fa.Pan({threshold:10}),o=new Fa.Press,s=new Fa.Pinch,a=new Fa.Tap({event:"doubletap",taps:2});return s.requireFailure(r),s.requireFailure(o),n.add([r,o,s,a,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 Ua(e,t,n,i,r){var o,s=Wa("dragging",e),a=Wa("move",e),l=Wa("contextPad",e),c=Wa("palette",e);function h(e,t){return function(n){var o=u(n.target),s=o&&i.get(o);return t&&(n.srcEvent.button=t),r.fire(e,n,s)}}function u(e){return se(e,"svg, .djs-element",!0)}function p(e){function n(e){var n=u(e.target),r=n&&i.get(n);if(a&&t.getRootElement()!==r)return a.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 s(e){o.off("panmove",r),o.off("panend",s),o.off("pancancel",s)}o.on("panmove",r),o.on("panend",s),o.on("pancancel",s)}()}(o=Ga(e)).on("tap",h("element.click")),o.on("doubletap",h("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(Va,Math.min(qa,r*n));t.zoom(o,i),Ya(e)}function s(e){o.off("pinchmove",r),o.off("pinchend",s),o.off("pinchcancel",s),o.reset(!0)}o.on("pinchmove",r),o.on("pinchend",s),o.on("pinchcancel",s)}))}s&&n.on("drag.move",(function(e){var t=e.originalEvent;if(t&&!(t instanceof MouseEvent)){var n=os(t),r=u(document.elementFromPoint(n.x,n.y)),o=r&&i.get(r);o!==e.hover&&(e.hover&&s.out(e),o&&(s.hover({element:o,gfx:r}),e.hover=o,e.hoverGfx=r))}})),l&&n.on("contextPad.create",(function(e){var t=Ga(e.pad.html);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)}))})),c&&n.on("palette.create",(function(e){var t=Ga(e.container);t.on("panstart",(function(e){c.trigger("dragstart",e,!0)})),t.on("press",(function(e){c.trigger("dragstart",e,!0)})),t.on("tap",(function(e){c.trigger("click",e)}))})),n.on("canvas.init",(function(e){p(e.svg)}))}function Za(e){var t=this;e.on("canvas.init",(function(e){t.addBBoxMarker(e.svg)}))}Ua.$inject=["injector","canvas","eventBus","elementRegistry","interactionEvents","touchFix"],Za.$inject=["eventBus"],Za.prototype.addBBoxMarker=function(e){var t={fill:"none",class:"outer-bound-marker"},n=Ie("rect");Ae(n,{x:-1e4,y:1e4,width:10,height:10}),Ae(n,t),Se(e,n);var i=Ie("rect");Ae(i,{x:1e4,y:1e4,width:10,height:10}),Ae(i,t),Se(e,i)};var Ka={__depends__:[{__depends__:[fs],__init__:["touchInteractionEvents"],touchInteractionEvents:["type",Ua],touchFix:["type",Za]}]};function Ja(e){return e&&e[e.length-1]}function el(e){return e.y}function tl(e){return e.x}var nl={left:tl,center:tl,right:function(e){return e.x+e.width},top:el,middle:el,bottom:function(e){return e.y+e.height}};function il(e,t){this._modeling=e,this._rules=t}il.$inject=["modeling","rules"],il.prototype._getOrientationDetails=function(e){var t="x",n="width";return-1!==["top","bottom","middle"].indexOf(e)&&(t="y",n="height"),{axis:t,dimension:n}},il.prototype._isType=function(e,t){return-1!==t.indexOf(e)},il.prototype._alignmentPosition=function(e,t){var n,i,r,o=this._getOrientationDetails(e),s=o.axis,a=o.dimension,l={},c={},h=!1;if(this._isType(e,["left","top"]))l[e]=t[0][s];else if(this._isType(e,["right","bottom"]))r=Ja(t),l[e]=r[s]+r[a];else if(this._isType(e,["center","middle"])){if(b(t,(function(e){var t=e[s]+Math.round(e[a]/2);c[t]?c[t].elements.push(e):c[t]={elements:[e],center:t}})),n=R(c,(function(e){return e.elements.length>1&&(h=!0),e.elements.length})),h)return l[e]=Ja(n).center,l;i=t[0],r=Ja(t=R(t,(function(e){return e[s]+e[a]}))),l[e]=function(e,t){return Math.round((e[s]+t[s]+t[a])/2)}(i,r)}return l},il.prototype.trigger=function(e,t){var n,i=this._modeling,r=y(e,(function(e){return!(e.waypoints||e.host||e.labelTarget)}));if(c(n=this._rules.allowed("elements.align",{elements:r}))&&(r=n),!(r.length<2)&&n){var o=R(r,nl[t]),s=this._alignmentPosition(t,o);i.alignElements(o,s)}};var rl={__init__:["alignElements"],alignElements:["type",il]},ol=".entry";function sl(e,t,n,i){this._canvas=e,this._eventBus=n,this._overlays=i;var r=a(t&&t.scale)?t.scale:{min:1,max:1.5};this._overlaysConfig={scale:r},this._current=null,this._init()}function al(e,t){return-1!==e.indexOf(t)}sl.$inject=["canvas","config.contextPad","eventBus","overlays"],sl.prototype._init=function(){var e=this;this._eventBus.on("selection.changed",(function(t){var n=t.newSelection,i=n.length?1===n.length?n[0]:n:null;i?e.open(i,!0):e.close()})),this._eventBus.on("elements.changed",(function(t){var n=t.elements,i=e._current;if(i){var r=i.target;O(c(r)?r:[r],(function(e){return al(n,e)}))&&e.open(r,!0)}}))},sl.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("contextPad.getProviders",e,(function(e){e.providers.push(t)}))},sl.prototype.getEntries=function(e){var t=this._getProviders(),n=c(e)?"getMultiElementContextPadEntries":"getContextPadEntries",i={};return b(t,(function(t){if(p(t[n])){var r=t[n](e);p(r)?i=r(i):b(r,(function(e,t){i[t]=e}))}})),i},sl.prototype.trigger=function(e,t,n){var i,r,o=t.delegateTarget||t.target;return o?(i=ee(o,"data-action"),r=t.originalEvent||t,this.triggerEntry(i,e,r,n)):t.preventDefault()},sl.prototype.triggerEntry=function(e,t,n,i){if(this.isShown()){var r=this._current.target,o=this._current.entries[e];if(o){var s=o.action;if(!1!==this._eventBus.fire("contextPad.trigger",{entry:o,event:n})){if(p(s)){if("click"===t)return s(n,r,i)}else if(s[t])return s[t](n,r,i);n.preventDefault()}}}},sl.prototype.open=function(e,t){!t&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))},sl.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},sl.prototype._updateAndOpen=function(e){var t,n=this.getEntries(e),i=this.getPad(e),r=i.html;b(n,(function(e,n){var i,o=e.group||"default",s=we(e.html||'<div class="entry" draggable="true"></div>');ee(s,"data-action",n),(i=_e("[data-group="+zs(o)+"]",r))||(ee(i=we('<div class="group"></div>'),"data-group",o),r.appendChild(i)),i.appendChild(s),e.className&&function(e,t){var n=ne(e);(t=c(t)?t:t.split(/\s+/g)).forEach((function(e){n.add(e)}))}(s,e.className),e.title&&ee(s,"title",e.title),e.imageUrl&&(ee(t=we("<img>"),"src",e.imageUrl),t.style.width="100%",t.style.height="100%",s.appendChild(t))})),ne(r).add("open"),this._current={target:e,entries:n,pad:i},this._eventBus.fire("contextPad.open",{current:this._current})},sl.prototype.getPad=function(e){if(this.isOpen())return this._current.pad;var t=this,n=this._overlays,i=we('<div class="djs-context-pad"></div>'),r=this._getPosition(e),o=I({html:i},this._overlaysConfig,r);ve.bind(i,ol,"click",(function(e){t.trigger("click",e)})),ve.bind(i,ol,"dragstart",(function(e){t.trigger("dragstart",e)})),fe.bind(i,"mousedown",(function(e){e.stopPropagation()}));var s=this._canvas.getRootElement();this._overlayId=n.add(s,"context-pad",o);var a=n.get(this._overlayId);return this._eventBus.fire("contextPad.create",{target:e,pad:a}),a},sl.prototype.close=function(){this.isOpen()&&(this._overlays.remove(this._overlayId),this._overlayId=null,this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},sl.prototype.isOpen=function(e){var t=this._current;if(!t)return!1;if(!e)return!0;var n=t.target;return c(e)===c(n)&&(c(e)?e.length===n.length&&_(e,(function(e){return al(n,e)})):n===e)},sl.prototype.isShown=function(){return this.isOpen()&&this._overlays.isShown()},sl.prototype._getPosition=function(e){var t=Et(c(e)?e:[e]);return{position:{left:t.x+t.width+12,top:t.y-6}}};var ll,cl,hl,ul,pl,dl={__depends__:[fs,Ts],contextPad:["type",sl]},fl={},ml=[],gl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function vl(e,t){for(var n in t)e[n]=t[n];return e}function yl(e){var t=e.parentNode;t&&t.removeChild(e)}function bl(e,t,n){var i,r,o,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?ll.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return xl(e,s,i,r,null)}function xl(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?++hl:r};return null==r&&null!=cl.vnode&&cl.vnode(o),o}function wl(e){return e.children}function _l(e,t){this.props=e,this.context=t}function Ol(e,t){if(null==t)return e.__?Ol(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?Ol(e):null}function El(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 El(e)}}function kl(e){(!e.__d&&(e.__d=!0)&&ul.push(e)&&!Sl.__r++||pl!==cl.debounceRendering)&&((pl=cl.debounceRendering)||setTimeout)(Sl)}function Sl(){for(var e;Sl.__r=ul.length;)e=ul.sort((function(e,t){return e.__v.__b-t.__v.__b})),ul=[],e.some((function(e){var t,n,i,r,o,s;e.__d&&(o=(r=(t=e).__v).__e,(s=t.__P)&&(n=[],(i=vl({},r)).__v=r.__v+1,Dl(s,r,i,t.__n,void 0!==s.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?Ol(r):o,r.__h),Bl(n,r),r.__e!=o&&El(r)))}))}function Cl(e,t,n,i,r,o,s,a,l,c){var h,u,p,d,f,m,g,v=i&&i.__k||ml,y=v.length;for(n.__k=[],h=0;h<t.length;h++)if(null!=(d=n.__k[h]=null==(d=t[h])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?xl(null,d,null,null,d):Array.isArray(d)?xl(wl,{children:d},null,null,null):d.__b>0?xl(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(p=v[h])||p&&d.key==p.key&&d.type===p.type)v[h]=void 0;else for(u=0;u<y;u++){if((p=v[u])&&d.key==p.key&&d.type===p.type){v[u]=void 0;break}p=null}Dl(e,d,p=p||fl,r,o,s,a,l,c),f=d.__e,(u=d.ref)&&p.ref!=u&&(g||(g=[]),p.ref&&g.push(p.ref,null,d),g.push(u,d.__c||f,d)),null!=f?(null==m&&(m=f),"function"==typeof d.type&&d.__k===p.__k?d.__d=l=Pl(d,l,e):l=$l(e,d,p,v,f,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=Ol(p))}for(n.__e=m,h=y;h--;)null!=v[h]&&Nl(v[h],v[h]);if(g)for(h=0;h<g.length;h++)Ll(g[h],g[++h],g[++h])}function Pl(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t="function"==typeof i.type?Pl(i,t,n):$l(n,i,i,r,i.__e,t));return t}function $l(e,t,n,i,r,o){var s,a,l;if(void 0!==t.__d)s=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),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<i.length;l+=1)if(a==r)break e;e.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function Al(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||gl.test(t)?n:n+"px"}function Rl(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||Al(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||Al(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?Ml:Tl,o):e.removeEventListener(t,o?Ml:Tl,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&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function Tl(e){this.l[e.type+!1](cl.event?cl.event(e):e)}function Ml(e){this.l[e.type+!0](cl.event?cl.event(e):e)}function Dl(e,t,n,i,r,o,s,a,l){var c,h,u,p,d,f,m,g,v,y,b,x,w,_,O,E=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=cl.__b)&&c(t);try{e:if("function"==typeof E){if(g=t.props,v=(c=E.contextType)&&i[c.__c],y=c?v?v.props.value:c.__:i,n.__c?m=(h=t.__c=n.__c).__=h.__E:("prototype"in E&&E.prototype.render?t.__c=h=new E(g,y):(t.__c=h=new _l(g,y),h.constructor=E,h.render=jl),v&&v.sub(h),h.props=g,h.state||(h.state={}),h.context=y,h.__n=i,u=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=E.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=vl({},h.__s)),vl(h.__s,E.getDerivedStateFromProps(g,h.__s))),p=h.props,d=h.state,u)null==E.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==E.getDerivedStateFromProps&&g!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,y),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,y)||t.__v===n.__v){for(h.props=g,h.state=h.__s,t.__v!==n.__v&&(h.__d=!1),h.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b<h._sb.length;b++)h.__h.push(h._sb[b]);h._sb=[],h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,y),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(p,d,f)}))}if(h.context=y,h.props=g,h.__v=t,h.__P=e,x=cl.__r,w=0,"prototype"in E&&E.prototype.render){for(h.state=h.__s,h.__d=!1,x&&x(t),c=h.render(h.props,h.state,h.context),_=0;_<h._sb.length;_++)h.__h.push(h._sb[_]);h._sb=[]}else do{h.__d=!1,x&&x(t),c=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++w<25);h.state=h.__s,null!=h.getChildContext&&(i=vl(vl({},i),h.getChildContext())),u||null==h.getSnapshotBeforeUpdate||(f=h.getSnapshotBeforeUpdate(p,d)),O=null!=c&&c.type===wl&&null==c.key?c.props.children:c,Cl(e,Array.isArray(O)?O:[O],t,n,i,r,o,s,a,l),h.base=t.__e,t.__h=null,h.__h.length&&s.push(h),m&&(h.__E=h.__=null),h.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,r,o,s,a){var l,c,h,u=n.props,p=t.props,d=t.type,f=0;if("svg"===d&&(r=!0),null!=o)for(;f<o.length;f++)if((l=o[f])&&"setAttribute"in l==!!d&&(d?l.localName===d:3===l.nodeType)){e=l,o[f]=null;break}if(null==e){if(null===d)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,a=!1}if(null===d)u===p||a&&e.data===p||(e.data=p);else{if(o=o&&ll.call(e.childNodes),c=(u=n.props||fl).dangerouslySetInnerHTML,h=p.dangerouslySetInnerHTML,!a){if(null!=o)for(u={},f=0;f<e.attributes.length;f++)u[e.attributes[f].name]=e.attributes[f].value;(h||c)&&(h&&(c&&h.__html==c.__html||h.__html===e.innerHTML)||(e.innerHTML=h&&h.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||Rl(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]||Rl(e,o,t[o],n[o],i)}(e,p,u,r,a),h)t.__k=[];else if(f=t.props.children,Cl(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==d,o,s,o?o[0]:n.__k&&Ol(n,0),a),null!=o)for(f=o.length;f--;)null!=o[f]&&yl(o[f]);a||("value"in p&&void 0!==(f=p.value)&&(f!==e.value||"progress"===d&&!f||"option"===d&&f!==u.value)&&Rl(e,"value",f,u.value,!1),"checked"in p&&void 0!==(f=p.checked)&&f!==e.checked&&Rl(e,"checked",f,u.checked,!1))}return e}(n.__e,t,n,i,r,o,s,l);(c=cl.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=o)&&(t.__e=a,t.__h=!!l,o[o.indexOf(a)]=null),cl.__e(e,t,n)}}function Bl(e,t){cl.__c&&cl.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){cl.__e(e,t.__v)}}))}function Ll(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){cl.__e(e,n)}}function Nl(e,t,n){var i,r;if(cl.unmount&&cl.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||Ll(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){cl.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&Nl(i[r],t,n||"function"!=typeof e.type);n||null==e.__e||yl(e.__e),e.__=e.__e=e.__d=void 0}function jl(e,t,n){return this.constructor(e,n)}function zl(e,t,n){var i,r,o;cl.__&&cl.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,o=[],Dl(t,e=(!i&&n||t).__k=bl(wl,null,[e]),r||fl,fl,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?ll.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),Bl(o,e)}ll=ml.slice,cl={__e:function(e,t,n,i){for(var r,o,s;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),s=r.__d),s)return r.__E=r}catch(t){e=t}throw e}},hl=0,_l.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=vl({},this.state),"function"==typeof e&&(e=e(vl({},n),this.props)),e&&vl(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),kl(this))},_l.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),kl(this))},_l.prototype.render=wl,ul=[],Sl.__r=0;var Il=function(e,t,n,i){var r;t[0]=0;for(var o=1;o<t.length;o++){var s=t[o++],a=t[o]?(t[0]|=s?1:2,n[t[o++]]):t[++o];3===s?i[0]=a:4===s?i[1]=Object.assign(i[1]||{},a):5===s?(i[1]=i[1]||{})[t[++o]]=a:6===s?i[1][t[++o]]+=a+"":s?(r=e.apply(a,Il(e,a,n,["",null])),i.push(r),a[0]?t[0]|=2:(t[o-2]=0,t[o]=r)):i.push(a)}return i},Xl=new Map;var Ql,Fl,Vl,ql,Hl=function(e){var t=Xl.get(this);return t||(t=new Map,Xl.set(this,t)),(t=Il(this,t.get(e)||(t.set(e,t=function(e){for(var t,n,i=1,r="",o="",s=[0],a=function(e){1===i&&(e||(r=r.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?s.push(0,e,r):3===i&&(e||r)?(s.push(3,e,r),i=2):2===i&&"..."===r&&e?s.push(4,e,0):2===i&&r&&!e?s.push(5,0,!0,r):i>=5&&((r||!e&&5===i)&&(s.push(i,0,r,n),i=6),e&&(s.push(i,e,0,n),i=6)),r=""},l=0;l<e.length;l++){l&&(1===i&&a(),a(l));for(var c=0;c<e[l].length;c++)t=e[l][c],1===i?"<"===t?(a(),s=[s],i=3):r+=t:4===i?"--"===r&&">"===t?(i=1,r=""):r=t+r[0]:o?t===o?o="":r+=t:'"'===t||"'"===t?o=t:">"===t?(a(),i=1):i&&("="===t?(i=5,n=r,r=""):"/"===t&&(i<5||">"===e[l][c+1])?(a(),3===i&&(s=s[0]),i=s,(s=s[0]).push(2,0,i),i=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(a(),i=2):r+=t),3===i&&"!--"===r&&(i=4,s=s[0])}return a(),s}(e)),t),arguments,[])).length>1?t:t[0]}.bind(bl),Wl=0,Yl=[],Gl=[],Ul=cl.__b,Zl=cl.__r,Kl=cl.diffed,Jl=cl.__c,ec=cl.unmount;function tc(e,t){cl.__h&&cl.__h(Fl,e,Wl||t),Wl=0;var n=Fl.__H||(Fl.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Gl}),n.__[e]}function nc(e){return Wl=1,function(e,t,n){var i=tc(Ql++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):fc(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=Fl,!Fl.u)){Fl.u=!0;var r=Fl.shouldComponentUpdate;Fl.shouldComponentUpdate=function(e,t,n){if(!i.__c.__H)return!0;var o=i.__c.__H.__.filter((function(e){return e.__c}));if(o.every((function(e){return!e.__N})))return!r||r.call(this,e,t,n);var s=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&i.__c.props===e)&&(!r||r.call(this,e,t,n))}}return i.__N||i.__}(fc,e)}function ic(e,t){var n=tc(Ql++,3);!cl.__s&&dc(n.__H,t)&&(n.__=e,n.i=t,Fl.__H.__h.push(n))}function rc(e,t){var n=tc(Ql++,4);!cl.__s&&dc(n.__H,t)&&(n.__=e,n.i=t,Fl.__h.push(n))}function oc(e){return Wl=5,sc((function(){return{current:e}}),[])}function sc(e,t){var n=tc(Ql++,7);return dc(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ac(e,t){return Wl=8,sc((function(){return e}),t)}function lc(){for(var e;e=Yl.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(uc),e.__H.__h.forEach(pc),e.__H.__h=[]}catch(t){e.__H.__h=[],cl.__e(t,e.__v)}}cl.__b=function(e){Fl=null,Ul&&Ul(e)},cl.__r=function(e){Zl&&Zl(e),Ql=0;var t=(Fl=e.__c).__H;t&&(Vl===Fl?(t.__h=[],Fl.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Gl,e.__N=e.i=void 0}))):(t.__h.forEach(uc),t.__h.forEach(pc),t.__h=[])),Vl=Fl},cl.diffed=function(e){Kl&&Kl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Yl.push(t)&&ql===cl.requestAnimationFrame||((ql=cl.requestAnimationFrame)||hc)(lc)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Gl&&(e.__=e.__V),e.i=void 0,e.__V=Gl}))),Vl=Fl=null},cl.__c=function(e,t){t.some((function(e){try{e.__h.forEach(uc),e.__h=e.__h.filter((function(e){return!e.__||pc(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],cl.__e(n,e.__v)}})),Jl&&Jl(e,t)},cl.unmount=function(e){ec&&ec(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{uc(e)}catch(e){t=e}})),n.__H=void 0,t&&cl.__e(t,n.__v))};var cc="function"==typeof requestAnimationFrame;function hc(e){var t,n=function(){clearTimeout(i),cc&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);cc&&(t=requestAnimationFrame(n))}function uc(e){var t=Fl,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Fl=t}function pc(e){var t=Fl;e.__c=e.__(),Fl=t}function dc(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function fc(e,t){return"function"==typeof t?t(e):t}function mc(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=mc(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function gc(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=mc(e))&&(i&&(i+=" "),i+=t);return i}function vc(e){const{entry:t,selected:n,onMouseEnter:i,onMouseLeave:r,onAction:o}=e;return Hl`
|
|
6
|
+
* Licensed under the MIT license */!function(e){!function(t,n,i,r){var o,s=["","webkit","Moz","MS","ms","o"],a=n.createElement("div"),l="function",c=Math.round,h=Math.abs,u=Date.now;function p(e,t,n){return setTimeout(b(e,n),t)}function d(e,t,n){return!!Array.isArray(e)&&(f(e,n[t],n),!0)}function f(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 g=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`."),v=m((function(e,t){return g(e,t,!0)}),"merge","Use `assign`.");function y(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&o(i,n)}function b(e,t){return function(){return e.apply(t,arguments)}}function x(e,t){return typeof e==l?e.apply(t&&t[0]||r,t):e}function w(e,t){return e===r?t:e}function _(e,t,n){f(S(t),(function(t){e.addEventListener(t,n,!1)}))}function O(e,t,n){f(S(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 k(e,t){return e.indexOf(t)>-1}function S(e){return e.trim().split(/\s+/g)}function C(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 P(e){return Array.prototype.slice.call(e,0)}function $(e,t,n){for(var i=[],r=[],o=0;o<e.length;){var s=t?e[o][t]:e[o];C(r,s)<0&&i.push(e[o]),r[o]=s,o++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}function A(e,t){for(var n,i,o=t[0].toUpperCase()+t.slice(1),a=0;a<s.length;){if((i=(n=s[a])?n+o:t)in e)return i;a++}return r}var R=1;function T(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}var M="ontouchstart"in t,D=A(t,"PointerEvent")!==r,B=M&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),L="touch",N="mouse",j=25,z=1,I=2,X=4,Q=8,F=1,V=2,q=4,H=8,W=16,Y=V|q,G=H|W,U=Y|G,Z=["x","y"],K=["clientX","clientY"];function J(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){x(e.options.enable,[e])&&n.handler(t)},this.init()}function ee(e,t,n){var i=n.pointers.length,o=n.changedPointers.length,s=t&z&&i-o==0,a=t&(X|Q)&&i-o==0;n.isFirst=!!s,n.isFinal=!!a,s&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,o=i.length;n.firstInput||(n.firstInput=te(t));o>1&&!n.firstMultiple?n.firstMultiple=te(t):1===o&&(n.firstMultiple=!1);var s=n.firstInput,a=n.firstMultiple,l=a?a.center:s.center,c=t.center=ne(i);t.timeStamp=u(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=se(l,c),t.distance=oe(l,c),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};t.eventType!==z&&o.eventType!==X||(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=re(t.deltaX,t.deltaY);var p=ie(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=h(p.x)>h(p.y)?p.x:p.y,t.scale=a?(d=a.pointers,f=i,oe(f[0],f[1],K)/oe(d[0],d[1],K)):1,t.rotation=a?function(e,t){return se(t[1],t[0],K)+se(e[1],e[0],K)}(a.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,s,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(t.eventType!=Q&&(l>j||a.velocity===r)){var c=t.deltaX-a.deltaX,u=t.deltaY-a.deltaY,p=ie(l,c,u);i=p.x,o=p.y,n=h(p.x)>h(p.y)?p.x:p.y,s=re(c,u),e.lastInterval=t}else n=a.velocity,i=a.velocityX,o=a.velocityY,s=a.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=s}(n,t);var d,f;var m=e.element;E(t.srcEvent.target,m)&&(m=t.srcEvent.target);t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function te(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:c(e.pointers[n].clientX),clientY:c(e.pointers[n].clientY)},n++;return{timeStamp:u(),pointers:t,center:ne(t),deltaX:e.deltaX,deltaY:e.deltaY}}function ne(e){var t=e.length;if(1===t)return{x:c(e[0].clientX),y:c(e[0].clientY)};for(var n=0,i=0,r=0;r<t;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:c(n/t),y:c(i/t)}}function ie(e,t,n){return{x:t/e||0,y:n/e||0}}function re(e,t){return e===t?F:h(e)>=h(t)?e<0?V:q:t<0?H:W}function oe(e,t,n){n||(n=Z);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function se(e,t,n){n||(n=Z);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}J.prototype={handler:function(){},init:function(){this.evEl&&_(this.element,this.evEl,this.domHandler),this.evTarget&&_(this.target,this.evTarget,this.domHandler),this.evWin&&_(T(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(T(this.element),this.evWin,this.domHandler)}};var ae={mousedown:z,mousemove:I,mouseup:X},le="mousedown",ce="mousemove mouseup";function he(){this.evEl=le,this.evWin=ce,this.pressed=!1,J.apply(this,arguments)}y(he,J,{handler:function(e){var t=ae[e.type];t&z&&0===e.button&&(this.pressed=!0),t&I&&1!==e.which&&(t=X),this.pressed&&(t&X&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:N,srcEvent:e}))}});var ue={pointerdown:z,pointermove:I,pointerup:X,pointercancel:Q,pointerout:Q},pe={2:L,3:"pen",4:N,5:"kinect"},de="pointerdown",fe="pointermove pointerup pointercancel";function me(){this.evEl=de,this.evWin=fe,J.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(de="MSPointerDown",fe="MSPointerMove MSPointerUp MSPointerCancel"),y(me,J,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=ue[i],o=pe[e.pointerType]||e.pointerType,s=o==L,a=C(t,e.pointerId,"pointerId");r&z&&(0===e.button||s)?a<0&&(t.push(e),a=t.length-1):r&(X|Q)&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(a,1))}});var ge={touchstart:z,touchmove:I,touchend:X,touchcancel:Q},ve="touchstart",ye="touchstart touchmove touchend touchcancel";function be(){this.evTarget=ve,this.evWin=ye,this.started=!1,J.apply(this,arguments)}function xe(e,t){var n=P(e.touches),i=P(e.changedTouches);return t&(X|Q)&&(n=$(n.concat(i),"identifier",!0)),[n,i]}y(be,J,{handler:function(e){var t=ge[e.type];if(t===z&&(this.started=!0),this.started){var n=xe.call(this,e,t);t&(X|Q)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:L,srcEvent:e})}}});var we={touchstart:z,touchmove:I,touchend:X,touchcancel:Q},_e="touchstart touchmove touchend touchcancel";function Oe(){this.evTarget=_e,this.targetIds={},J.apply(this,arguments)}function Ee(e,t){var n=P(e.touches),i=this.targetIds;if(t&(z|I)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=P(e.changedTouches),a=[],l=this.target;if(o=n.filter((function(e){return E(e.target,l)})),t===z)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<s.length;)i[s[r].identifier]&&a.push(s[r]),t&(X|Q)&&delete i[s[r].identifier],r++;return a.length?[$(o.concat(a),"identifier",!0),a]:void 0}y(Oe,J,{handler:function(e){var t=we[e.type],n=Ee.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:L,srcEvent:e})}});var ke=2500,Se=25;function Ce(){J.apply(this,arguments);var e=b(this.handler,this);this.touch=new Oe(this.manager,e),this.mouse=new he(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function Pe(e,t){e&z?(this.primaryTouch=t.changedPointers[0].identifier,$e.call(this,t)):e&(X|Q)&&$e.call(this,t)}function $e(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)}),ke)}}function Ae(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),s=Math.abs(n-r.y);if(o<=Se&&s<=Se)return!0}return!1}y(Ce,J,{handler:function(e,t,n){var i=n.pointerType==L,r=n.pointerType==N;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)Pe.call(this,t,n);else if(r&&Ae.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Re=A(a.style,"touchAction"),Te=Re!==r,Me="compute",De="auto",Be="manipulation",Le="none",Ne="pan-x",je="pan-y",ze=function(){if(!Te)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 Ie(e,t){this.manager=e,this.set(t)}Ie.prototype={set:function(e){e==Me&&(e=this.compute()),Te&&this.manager.element.style&&ze[e]&&(this.manager.element.style[Re]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return f(this.manager.recognizers,(function(t){x(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(k(e,Le))return Le;var t=k(e,Ne),n=k(e,je);if(t&&n)return Le;if(t||n)return t?Ne:je;if(k(e,Be))return Be;return De}(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=k(i,Le)&&!ze[Le],o=k(i,je)&&!ze[je],s=k(i,Ne)&&!ze[Ne];if(r){var a=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(a&&l&&c)return}if(!s||!o)return r||o&&n&Y||s&&n&G?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Xe=1,Qe=2,Fe=4,Ve=8,qe=Ve,He=16,We=32;function Ye(e){this.options=o({},this.defaults,e||{}),this.id=R++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=Xe,this.simultaneous={},this.requireFail=[]}function Ge(e){return e&He?"cancel":e&Ve?"end":e&Fe?"move":e&Qe?"start":""}function Ue(e){return e==W?"down":e==H?"up":e==V?"left":e==q?"right":""}function Ze(e,t){var n=t.manager;return n?n.get(e):e}function Ke(){Ye.apply(this,arguments)}function Je(){Ke.apply(this,arguments),this.pX=null,this.pY=null}function et(){Ke.apply(this,arguments)}function tt(){Ye.apply(this,arguments),this._timer=null,this._input=null}function nt(){Ke.apply(this,arguments)}function it(){Ke.apply(this,arguments)}function rt(){Ye.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ot(e,t){return(t=t||{}).recognizers=w(t.recognizers,ot.defaults.preset),new st(e,t)}Ye.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=Ze(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return d(e,"dropRecognizeWith",this)||(e=Ze(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(d(e,"requireFailure",this))return this;var t=this.requireFail;return-1===C(t,e=Ze(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(d(e,"dropRequireFailure",this))return this;e=Ze(e,this);var t=C(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<Ve&&i(t.options.event+Ge(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=Ve&&i(t.options.event+Ge(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=We},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(We|Xe)))return!1;e++}return!0},recognize:function(e){var t=o({},e);if(!x(this.options.enable,[this,t]))return this.reset(),void(this.state=We);this.state&(qe|He|We)&&(this.state=Xe),this.state=this.process(t),this.state&(Qe|Fe|Ve|He)&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},y(Ke,Ye,{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=t&(Qe|Fe),r=this.attrTest(e);return i&&(n&Q||!r)?t|He:i||r?n&X?t|Ve:t&Qe?t|Fe:Qe:We}}),y(Je,Ke,{defaults:{event:"pan",threshold:10,pointers:1,direction:U},getTouchAction:function(){var e=this.options.direction,t=[];return e&Y&&t.push(je),e&G&&t.push(Ne),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,o=e.deltaX,s=e.deltaY;return r&t.direction||(t.direction&Y?(r=0===o?F:o<0?V:q,n=o!=this.pX,i=Math.abs(e.deltaX)):(r=0===s?F:s<0?H:W,n=s!=this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},attrTest:function(e){return Ke.prototype.attrTest.call(this,e)&&(this.state&Qe||!(this.state&Qe)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ue(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),y(et,Ke,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Le]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&Qe)},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)}}),y(tt,Ye,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[De]},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||e.eventType&(X|Q)&&!r)this.reset();else if(e.eventType&z)this.reset(),this._timer=p((function(){this.state=qe,this.tryEmit()}),t.time,this);else if(e.eventType&X)return qe;return We},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===qe&&(e&&e.eventType&X?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}}),y(nt,Ke,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Le]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&Qe)}}),y(it,Ke,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Y|G,pointers:1},getTouchAction:function(){return Je.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Y|G)?t=e.overallVelocity:n&Y?t=e.overallVelocityX:n&G&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&h(t)>this.options.velocity&&e.eventType&X},emit:function(e){var t=Ue(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),y(rt,Ye,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},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.reset(),e.eventType&z&&0===this.count)return this.failTimeout();if(i&&r&&n){if(e.eventType!=X)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,s=!this.pCenter||oe(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=qe,this.tryEmit()}),t.interval,this),Qe):qe}return We},failTimeout:function(){return this._timer=p((function(){this.state=We}),this.options.interval,this),We},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==qe&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ot.VERSION="2.0.7",ot.defaults={domEvents:!1,touchAction:Me,enable:!0,inputTarget:null,inputClass:null,preset:[[nt,{enable:!1}],[et,{enable:!1},["rotate"]],[it,{direction:Y}],[Je,{direction:Y},["swipe"]],[rt],[rt,{event:"doubletap",taps:2},["tap"]],[tt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function st(e,t){var n;this.options=o({},ot.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||(D?me:B?Oe:M?Ce:he))(n,ee),this.touchAction=new Ie(this,this.options.touchAction),at(this,!0),f(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 at(e,t){var n,i=e.element;i.style&&(f(e.options.cssProps,(function(r,o){n=A(i.style,o),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}st.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&&r.state&qe)&&(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&&n.state&(Qe|Fe|Ve)&&(r=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Ye)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=C(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 f(S(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==r){var n=this.handlers;return f(S(e),(function(e){t?n[e]&&n[e].splice(C(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&&at(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(ot,{INPUT_START:z,INPUT_MOVE:I,INPUT_END:X,INPUT_CANCEL:Q,STATE_POSSIBLE:Xe,STATE_BEGAN:Qe,STATE_CHANGED:Fe,STATE_ENDED:Ve,STATE_RECOGNIZED:qe,STATE_CANCELLED:He,STATE_FAILED:We,DIRECTION_NONE:F,DIRECTION_LEFT:V,DIRECTION_RIGHT:q,DIRECTION_UP:H,DIRECTION_DOWN:W,DIRECTION_HORIZONTAL:Y,DIRECTION_VERTICAL:G,DIRECTION_ALL:U,Manager:st,Input:J,TouchAction:Ie,TouchInput:Oe,MouseInput:he,PointerEventInput:me,TouchMouseInput:Ce,SingleTouchInput:be,Recognizer:Ye,AttrRecognizer:Ke,Tap:rt,Pan:Je,Swipe:it,Pinch:et,Rotate:nt,Press:tt,on:_,off:O,each:f,merge:v,extend:g,assign:o,inherit:y,bindFn:b,prefixed:A}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=ot,e.exports?e.exports=ot:t.Hammer=ot}(window,document)}(Xa);var Qa=Xt(Xa.exports),Fa=.2,Va=4,qa=["mousedown","mouseup","mouseover","mouseout","click","dblclick"];function Ha(e,t){return t.get(e,!1)}function Wa(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 Ya(e){function t(t){setTimeout((function(){b(qa,(function(t){fe.unbind(e,t,Wa,!0)}))}),500)}fe.bind(e,"touchstart",(function(t){b(qa,(function(t){fe.bind(e,t,Wa,!0)}))}),!0),fe.bind(e,"touchend",t,!0),fe.bind(e,"touchcancel",t,!0);var n=new Qa.Manager(e,{inputClass:Qa.TouchInput,recognizers:[],domEvents:!0}),i=new Qa.Tap,r=new Qa.Pan({threshold:10}),o=new Qa.Press,s=new Qa.Pinch,a=new Qa.Tap({event:"doubletap",taps:2});return s.requireFailure(r),s.requireFailure(o),n.add([r,o,s,a,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 Ga(e,t,n,i,r){var o,s=Ha("dragging",e),a=Ha("move",e),l=Ha("contextPad",e),c=Ha("palette",e);function h(e,t){return function(n){var o=u(n.target),s=o&&i.get(o);return t&&(n.srcEvent.button=t),r.fire(e,n,s)}}function u(e){return se(e,"svg, .djs-element",!0)}function p(e){function n(e){var n=u(e.target),r=n&&i.get(n);if(a&&t.getRootElement()!==r)return a.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 s(e){o.off("panmove",r),o.off("panend",s),o.off("pancancel",s)}o.on("panmove",r),o.on("panend",s),o.on("pancancel",s)}()}(o=Ya(e)).on("tap",h("element.click")),o.on("doubletap",h("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(Fa,Math.min(Va,r*n));t.zoom(o,i),Wa(e)}function s(e){o.off("pinchmove",r),o.off("pinchend",s),o.off("pinchcancel",s),o.reset(!0)}o.on("pinchmove",r),o.on("pinchend",s),o.on("pinchcancel",s)}))}s&&n.on("drag.move",(function(e){var t=e.originalEvent;if(t&&!(t instanceof MouseEvent)){var n=rs(t),r=u(document.elementFromPoint(n.x,n.y)),o=r&&i.get(r);o!==e.hover&&(e.hover&&s.out(e),o&&(s.hover({element:o,gfx:r}),e.hover=o,e.hoverGfx=r))}})),l&&n.on("contextPad.create",(function(e){var t=Ya(e.pad.html);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)}))})),c&&n.on("palette.create",(function(e){var t=Ya(e.container);t.on("panstart",(function(e){c.trigger("dragstart",e,!0)})),t.on("press",(function(e){c.trigger("dragstart",e,!0)})),t.on("tap",(function(e){c.trigger("click",e)}))})),n.on("canvas.init",(function(e){p(e.svg)}))}function Ua(e){var t=this;e.on("canvas.init",(function(e){t.addBBoxMarker(e.svg)}))}Ga.$inject=["injector","canvas","eventBus","elementRegistry","interactionEvents","touchFix"],Ua.$inject=["eventBus"],Ua.prototype.addBBoxMarker=function(e){var t={fill:"none",class:"outer-bound-marker"},n=Ie("rect");Ae(n,{x:-1e4,y:1e4,width:10,height:10}),Ae(n,t),Se(e,n);var i=Ie("rect");Ae(i,{x:1e4,y:1e4,width:10,height:10}),Ae(i,t),Se(e,i)};var Za={__depends__:[{__depends__:[ds],__init__:["touchInteractionEvents"],touchInteractionEvents:["type",Ga],touchFix:["type",Ua]}]};function Ka(e){return e&&e[e.length-1]}function Ja(e){return e.y}function el(e){return e.x}var tl={left:el,center:el,right:function(e){return e.x+e.width},top:Ja,middle:Ja,bottom:function(e){return e.y+e.height}};function nl(e,t){this._modeling=e,this._rules=t}nl.$inject=["modeling","rules"],nl.prototype._getOrientationDetails=function(e){var t="x",n="width";return-1!==["top","bottom","middle"].indexOf(e)&&(t="y",n="height"),{axis:t,dimension:n}},nl.prototype._isType=function(e,t){return-1!==t.indexOf(e)},nl.prototype._alignmentPosition=function(e,t){var n,i,r,o=this._getOrientationDetails(e),s=o.axis,a=o.dimension,l={},c={},h=!1;if(this._isType(e,["left","top"]))l[e]=t[0][s];else if(this._isType(e,["right","bottom"]))r=Ka(t),l[e]=r[s]+r[a];else if(this._isType(e,["center","middle"])){if(b(t,(function(e){var t=e[s]+Math.round(e[a]/2);c[t]?c[t].elements.push(e):c[t]={elements:[e],center:t}})),n=R(c,(function(e){return e.elements.length>1&&(h=!0),e.elements.length})),h)return l[e]=Ka(n).center,l;i=t[0],r=Ka(t=R(t,(function(e){return e[s]+e[a]}))),l[e]=function(e,t){return Math.round((e[s]+t[s]+t[a])/2)}(i,r)}return l},nl.prototype.trigger=function(e,t){var n,i=this._modeling,r=y(e,(function(e){return!(e.waypoints||e.host||e.labelTarget)}));if(c(n=this._rules.allowed("elements.align",{elements:r}))&&(r=n),!(r.length<2)&&n){var o=R(r,tl[t]),s=this._alignmentPosition(t,o);i.alignElements(o,s)}};var il={__init__:["alignElements"],alignElements:["type",nl]},rl=".entry";function ol(e,t,n,i){this._canvas=e,this._eventBus=n,this._overlays=i;var r=a(t&&t.scale)?t.scale:{min:1,max:1.5};this._overlaysConfig={scale:r},this._current=null,this._init()}function sl(e,t){return-1!==e.indexOf(t)}ol.$inject=["canvas","config.contextPad","eventBus","overlays"],ol.prototype._init=function(){var e=this;this._eventBus.on("selection.changed",(function(t){var n=t.newSelection,i=n.length?1===n.length?n[0]:n:null;i?e.open(i,!0):e.close()})),this._eventBus.on("elements.changed",(function(t){var n=t.elements,i=e._current;if(i){var r=i.target;O(c(r)?r:[r],(function(e){return sl(n,e)}))&&e.open(r,!0)}}))},ol.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("contextPad.getProviders",e,(function(e){e.providers.push(t)}))},ol.prototype.getEntries=function(e){var t=this._getProviders(),n=c(e)?"getMultiElementContextPadEntries":"getContextPadEntries",i={};return b(t,(function(t){if(p(t[n])){var r=t[n](e);p(r)?i=r(i):b(r,(function(e,t){i[t]=e}))}})),i},ol.prototype.trigger=function(e,t,n){var i,r,o=t.delegateTarget||t.target;return o?(i=ee(o,"data-action"),r=t.originalEvent||t,this.triggerEntry(i,e,r,n)):t.preventDefault()},ol.prototype.triggerEntry=function(e,t,n,i){if(this.isShown()){var r=this._current.target,o=this._current.entries[e];if(o){var s=o.action;if(!1!==this._eventBus.fire("contextPad.trigger",{entry:o,event:n})){if(p(s)){if("click"===t)return s(n,r,i)}else if(s[t])return s[t](n,r,i);n.preventDefault()}}}},ol.prototype.open=function(e,t){!t&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))},ol.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},ol.prototype._updateAndOpen=function(e){var t,n=this.getEntries(e),i=this.getPad(e),r=i.html;b(n,(function(e,n){var i,o=e.group||"default",s=we(e.html||'<div class="entry" draggable="true"></div>');ee(s,"data-action",n),(i=_e("[data-group="+js(o)+"]",r))||(ee(i=we('<div class="group"></div>'),"data-group",o),r.appendChild(i)),i.appendChild(s),e.className&&function(e,t){var n=ne(e);(t=c(t)?t:t.split(/\s+/g)).forEach((function(e){n.add(e)}))}(s,e.className),e.title&&ee(s,"title",e.title),e.imageUrl&&(ee(t=we("<img>"),"src",e.imageUrl),t.style.width="100%",t.style.height="100%",s.appendChild(t))})),ne(r).add("open"),this._current={target:e,entries:n,pad:i},this._eventBus.fire("contextPad.open",{current:this._current})},ol.prototype.getPad=function(e){if(this.isOpen())return this._current.pad;var t=this,n=this._overlays,i=we('<div class="djs-context-pad"></div>'),r=this._getPosition(e),o=I({html:i},this._overlaysConfig,r);ve.bind(i,rl,"click",(function(e){t.trigger("click",e)})),ve.bind(i,rl,"dragstart",(function(e){t.trigger("dragstart",e)})),fe.bind(i,"mousedown",(function(e){e.stopPropagation()}));var s=this._canvas.getRootElement();this._overlayId=n.add(s,"context-pad",o);var a=n.get(this._overlayId);return this._eventBus.fire("contextPad.create",{target:e,pad:a}),a},ol.prototype.close=function(){this.isOpen()&&(this._overlays.remove(this._overlayId),this._overlayId=null,this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},ol.prototype.isOpen=function(e){var t=this._current;if(!t)return!1;if(!e)return!0;var n=t.target;return c(e)===c(n)&&(c(e)?e.length===n.length&&_(e,(function(e){return sl(n,e)})):n===e)},ol.prototype.isShown=function(){return this.isOpen()&&this._overlays.isShown()},ol.prototype._getPosition=function(e){var t=Et(c(e)?e:[e]);return{position:{left:t.x+t.width+12,top:t.y-6}}};var al,ll,cl,hl,ul,pl={__depends__:[ds,Rs],contextPad:["type",ol]},dl={},fl=[],ml=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function gl(e,t){for(var n in t)e[n]=t[n];return e}function vl(e){var t=e.parentNode;t&&t.removeChild(e)}function yl(e,t,n){var i,r,o,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?al.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return bl(e,s,i,r,null)}function bl(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?++cl:r};return null==r&&null!=ll.vnode&&ll.vnode(o),o}function xl(e){return e.children}function wl(e,t){this.props=e,this.context=t}function _l(e,t){if(null==t)return e.__?_l(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?_l(e):null}function Ol(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 Ol(e)}}function El(e){(!e.__d&&(e.__d=!0)&&hl.push(e)&&!kl.__r++||ul!==ll.debounceRendering)&&((ul=ll.debounceRendering)||setTimeout)(kl)}function kl(){for(var e;kl.__r=hl.length;)e=hl.sort((function(e,t){return e.__v.__b-t.__v.__b})),hl=[],e.some((function(e){var t,n,i,r,o,s;e.__d&&(o=(r=(t=e).__v).__e,(s=t.__P)&&(n=[],(i=gl({},r)).__v=r.__v+1,Ml(s,r,i,t.__n,void 0!==s.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?_l(r):o,r.__h),Dl(n,r),r.__e!=o&&Ol(r)))}))}function Sl(e,t,n,i,r,o,s,a,l,c){var h,u,p,d,f,m,g,v=i&&i.__k||fl,y=v.length;for(n.__k=[],h=0;h<t.length;h++)if(null!=(d=n.__k[h]=null==(d=t[h])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?bl(null,d,null,null,d):Array.isArray(d)?bl(xl,{children:d},null,null,null):d.__b>0?bl(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(p=v[h])||p&&d.key==p.key&&d.type===p.type)v[h]=void 0;else for(u=0;u<y;u++){if((p=v[u])&&d.key==p.key&&d.type===p.type){v[u]=void 0;break}p=null}Ml(e,d,p=p||dl,r,o,s,a,l,c),f=d.__e,(u=d.ref)&&p.ref!=u&&(g||(g=[]),p.ref&&g.push(p.ref,null,d),g.push(u,d.__c||f,d)),null!=f?(null==m&&(m=f),"function"==typeof d.type&&d.__k===p.__k?d.__d=l=Cl(d,l,e):l=Pl(e,d,p,v,f,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=_l(p))}for(n.__e=m,h=y;h--;)null!=v[h]&&Ll(v[h],v[h]);if(g)for(h=0;h<g.length;h++)Bl(g[h],g[++h],g[++h])}function Cl(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t="function"==typeof i.type?Cl(i,t,n):Pl(n,i,i,r,i.__e,t));return t}function Pl(e,t,n,i,r,o){var s,a,l;if(void 0!==t.__d)s=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),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<i.length;l+=1)if(a==r)break e;e.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function $l(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||ml.test(t)?n:n+"px"}function Al(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||$l(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||$l(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?Tl:Rl,o):e.removeEventListener(t,o?Tl:Rl,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&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function Rl(e){this.l[e.type+!1](ll.event?ll.event(e):e)}function Tl(e){this.l[e.type+!0](ll.event?ll.event(e):e)}function Ml(e,t,n,i,r,o,s,a,l){var c,h,u,p,d,f,m,g,v,y,b,x,w,_,O,E=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=ll.__b)&&c(t);try{e:if("function"==typeof E){if(g=t.props,v=(c=E.contextType)&&i[c.__c],y=c?v?v.props.value:c.__:i,n.__c?m=(h=t.__c=n.__c).__=h.__E:("prototype"in E&&E.prototype.render?t.__c=h=new E(g,y):(t.__c=h=new wl(g,y),h.constructor=E,h.render=Nl),v&&v.sub(h),h.props=g,h.state||(h.state={}),h.context=y,h.__n=i,u=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=E.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=gl({},h.__s)),gl(h.__s,E.getDerivedStateFromProps(g,h.__s))),p=h.props,d=h.state,u)null==E.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==E.getDerivedStateFromProps&&g!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,y),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,y)||t.__v===n.__v){for(h.props=g,h.state=h.__s,t.__v!==n.__v&&(h.__d=!1),h.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b<h._sb.length;b++)h.__h.push(h._sb[b]);h._sb=[],h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,y),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(p,d,f)}))}if(h.context=y,h.props=g,h.__v=t,h.__P=e,x=ll.__r,w=0,"prototype"in E&&E.prototype.render){for(h.state=h.__s,h.__d=!1,x&&x(t),c=h.render(h.props,h.state,h.context),_=0;_<h._sb.length;_++)h.__h.push(h._sb[_]);h._sb=[]}else do{h.__d=!1,x&&x(t),c=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++w<25);h.state=h.__s,null!=h.getChildContext&&(i=gl(gl({},i),h.getChildContext())),u||null==h.getSnapshotBeforeUpdate||(f=h.getSnapshotBeforeUpdate(p,d)),O=null!=c&&c.type===xl&&null==c.key?c.props.children:c,Sl(e,Array.isArray(O)?O:[O],t,n,i,r,o,s,a,l),h.base=t.__e,t.__h=null,h.__h.length&&s.push(h),m&&(h.__E=h.__=null),h.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,r,o,s,a){var l,c,h,u=n.props,p=t.props,d=t.type,f=0;if("svg"===d&&(r=!0),null!=o)for(;f<o.length;f++)if((l=o[f])&&"setAttribute"in l==!!d&&(d?l.localName===d:3===l.nodeType)){e=l,o[f]=null;break}if(null==e){if(null===d)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,a=!1}if(null===d)u===p||a&&e.data===p||(e.data=p);else{if(o=o&&al.call(e.childNodes),c=(u=n.props||dl).dangerouslySetInnerHTML,h=p.dangerouslySetInnerHTML,!a){if(null!=o)for(u={},f=0;f<e.attributes.length;f++)u[e.attributes[f].name]=e.attributes[f].value;(h||c)&&(h&&(c&&h.__html==c.__html||h.__html===e.innerHTML)||(e.innerHTML=h&&h.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||Al(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]||Al(e,o,t[o],n[o],i)}(e,p,u,r,a),h)t.__k=[];else if(f=t.props.children,Sl(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==d,o,s,o?o[0]:n.__k&&_l(n,0),a),null!=o)for(f=o.length;f--;)null!=o[f]&&vl(o[f]);a||("value"in p&&void 0!==(f=p.value)&&(f!==e.value||"progress"===d&&!f||"option"===d&&f!==u.value)&&Al(e,"value",f,u.value,!1),"checked"in p&&void 0!==(f=p.checked)&&f!==e.checked&&Al(e,"checked",f,u.checked,!1))}return e}(n.__e,t,n,i,r,o,s,l);(c=ll.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=o)&&(t.__e=a,t.__h=!!l,o[o.indexOf(a)]=null),ll.__e(e,t,n)}}function Dl(e,t){ll.__c&&ll.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){ll.__e(e,t.__v)}}))}function Bl(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){ll.__e(e,n)}}function Ll(e,t,n){var i,r;if(ll.unmount&&ll.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||Bl(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){ll.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&Ll(i[r],t,n||"function"!=typeof e.type);n||null==e.__e||vl(e.__e),e.__=e.__e=e.__d=void 0}function Nl(e,t,n){return this.constructor(e,n)}function jl(e,t,n){var i,r,o;ll.__&&ll.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,o=[],Ml(t,e=(!i&&n||t).__k=yl(xl,null,[e]),r||dl,dl,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?al.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),Dl(o,e)}al=fl.slice,ll={__e:function(e,t,n,i){for(var r,o,s;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),s=r.__d),s)return r.__E=r}catch(t){e=t}throw e}},cl=0,wl.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=gl({},this.state),"function"==typeof e&&(e=e(gl({},n),this.props)),e&&gl(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),El(this))},wl.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),El(this))},wl.prototype.render=xl,hl=[],kl.__r=0;var zl=function(e,t,n,i){var r;t[0]=0;for(var o=1;o<t.length;o++){var s=t[o++],a=t[o]?(t[0]|=s?1:2,n[t[o++]]):t[++o];3===s?i[0]=a:4===s?i[1]=Object.assign(i[1]||{},a):5===s?(i[1]=i[1]||{})[t[++o]]=a:6===s?i[1][t[++o]]+=a+"":s?(r=e.apply(a,zl(e,a,n,["",null])),i.push(r),a[0]?t[0]|=2:(t[o-2]=0,t[o]=r)):i.push(a)}return i},Il=new Map;var Xl,Ql,Fl,Vl,ql=function(e){var t=Il.get(this);return t||(t=new Map,Il.set(this,t)),(t=zl(this,t.get(e)||(t.set(e,t=function(e){for(var t,n,i=1,r="",o="",s=[0],a=function(e){1===i&&(e||(r=r.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?s.push(0,e,r):3===i&&(e||r)?(s.push(3,e,r),i=2):2===i&&"..."===r&&e?s.push(4,e,0):2===i&&r&&!e?s.push(5,0,!0,r):i>=5&&((r||!e&&5===i)&&(s.push(i,0,r,n),i=6),e&&(s.push(i,e,0,n),i=6)),r=""},l=0;l<e.length;l++){l&&(1===i&&a(),a(l));for(var c=0;c<e[l].length;c++)t=e[l][c],1===i?"<"===t?(a(),s=[s],i=3):r+=t:4===i?"--"===r&&">"===t?(i=1,r=""):r=t+r[0]:o?t===o?o="":r+=t:'"'===t||"'"===t?o=t:">"===t?(a(),i=1):i&&("="===t?(i=5,n=r,r=""):"/"===t&&(i<5||">"===e[l][c+1])?(a(),3===i&&(s=s[0]),i=s,(s=s[0]).push(2,0,i),i=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(a(),i=2):r+=t),3===i&&"!--"===r&&(i=4,s=s[0])}return a(),s}(e)),t),arguments,[])).length>1?t:t[0]}.bind(yl),Hl=0,Wl=[],Yl=[],Gl=ll.__b,Ul=ll.__r,Zl=ll.diffed,Kl=ll.__c,Jl=ll.unmount;function ec(e,t){ll.__h&&ll.__h(Ql,e,Hl||t),Hl=0;var n=Ql.__H||(Ql.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Yl}),n.__[e]}function tc(e){return Hl=1,function(e,t,n){var i=ec(Xl++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):dc(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=Ql,!Ql.u)){Ql.u=!0;var r=Ql.shouldComponentUpdate;Ql.shouldComponentUpdate=function(e,t,n){if(!i.__c.__H)return!0;var o=i.__c.__H.__.filter((function(e){return e.__c}));if(o.every((function(e){return!e.__N})))return!r||r.call(this,e,t,n);var s=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&i.__c.props===e)&&(!r||r.call(this,e,t,n))}}return i.__N||i.__}(dc,e)}function nc(e,t){var n=ec(Xl++,3);!ll.__s&&pc(n.__H,t)&&(n.__=e,n.i=t,Ql.__H.__h.push(n))}function ic(e,t){var n=ec(Xl++,4);!ll.__s&&pc(n.__H,t)&&(n.__=e,n.i=t,Ql.__h.push(n))}function rc(e){return Hl=5,oc((function(){return{current:e}}),[])}function oc(e,t){var n=ec(Xl++,7);return pc(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function sc(e,t){return Hl=8,oc((function(){return e}),t)}function ac(){for(var e;e=Wl.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(hc),e.__H.__h.forEach(uc),e.__H.__h=[]}catch(t){e.__H.__h=[],ll.__e(t,e.__v)}}ll.__b=function(e){Ql=null,Gl&&Gl(e)},ll.__r=function(e){Ul&&Ul(e),Xl=0;var t=(Ql=e.__c).__H;t&&(Fl===Ql?(t.__h=[],Ql.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Yl,e.__N=e.i=void 0}))):(t.__h.forEach(hc),t.__h.forEach(uc),t.__h=[])),Fl=Ql},ll.diffed=function(e){Zl&&Zl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Wl.push(t)&&Vl===ll.requestAnimationFrame||((Vl=ll.requestAnimationFrame)||cc)(ac)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Yl&&(e.__=e.__V),e.i=void 0,e.__V=Yl}))),Fl=Ql=null},ll.__c=function(e,t){t.some((function(e){try{e.__h.forEach(hc),e.__h=e.__h.filter((function(e){return!e.__||uc(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ll.__e(n,e.__v)}})),Kl&&Kl(e,t)},ll.unmount=function(e){Jl&&Jl(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{hc(e)}catch(e){t=e}})),n.__H=void 0,t&&ll.__e(t,n.__v))};var lc="function"==typeof requestAnimationFrame;function cc(e){var t,n=function(){clearTimeout(i),lc&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);lc&&(t=requestAnimationFrame(n))}function hc(e){var t=Ql,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Ql=t}function uc(e){var t=Ql;e.__c=e.__(),Ql=t}function pc(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function dc(e,t){return"function"==typeof t?t(e):t}function fc(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=fc(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function mc(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=fc(e))&&(i&&(i+=" "),i+=t);return i}function gc(e){const{entry:t,selected:n,onMouseEnter:i,onMouseLeave:r,onAction:o}=e;return ql`
|
|
7
7
|
<li
|
|
8
|
-
class=${
|
|
8
|
+
class=${mc("entry",{selected:n})}
|
|
9
9
|
data-id=${t.id}
|
|
10
10
|
title=${t.title||t.label}
|
|
11
11
|
onClick=${o}
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
>
|
|
17
17
|
<div class="djs-popup-entry-content">
|
|
18
18
|
<span
|
|
19
|
-
class=${
|
|
19
|
+
class=${mc("djs-popup-entry-name",t.className)}
|
|
20
20
|
>
|
|
21
|
-
${t.imageUrl&&
|
|
21
|
+
${t.imageUrl&&ql`<img class="djs-popup-entry-icon" src=${t.imageUrl} alt="" />`||t.imageHtml&&ql`<div class="djs-popup-entry-icon" dangerouslySetInnerHTML=${{__html:t.imageHtml}} />`}
|
|
22
22
|
|
|
23
|
-
${t.label?
|
|
23
|
+
${t.label?ql`
|
|
24
24
|
<span class="djs-popup-label">
|
|
25
25
|
${t.label}
|
|
26
26
|
</span>
|
|
27
27
|
`:null}
|
|
28
28
|
</span>
|
|
29
|
-
${t.description&&
|
|
29
|
+
${t.description&&ql`
|
|
30
30
|
<span
|
|
31
31
|
class="djs-popup-entry-description"
|
|
32
32
|
title=${t.description}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
</span>
|
|
36
36
|
`}
|
|
37
37
|
</div>
|
|
38
|
-
${t.documentationRef&&
|
|
38
|
+
${t.documentationRef&&ql`
|
|
39
39
|
<div class="djs-popup-entry-docs">
|
|
40
40
|
<a
|
|
41
41
|
href="${t.documentationRef}"
|
|
@@ -51,17 +51,17 @@
|
|
|
51
51
|
</div>
|
|
52
52
|
`}
|
|
53
53
|
</li>
|
|
54
|
-
`}function
|
|
54
|
+
`}function vc(e){const{selectedEntry:t,setSelectedEntry:n,entries:i,...r}=e,o=rc(),s=oc((()=>function(e){const t=[],n=e=>t.find((t=>e.id===t.id)),i=e=>!!n(e),r=e=>"string"==typeof e?{id:e}:e;return e.forEach((e=>{const o=e.group?r(e.group):{id:"default"};i(o)?n(o).entries.push(e):t.push({...o,entries:[e]})})),t}(i)),[i]);return ic((()=>{const e=o.current;if(!e)return;const t=e.querySelector(".selected");var n;t&&("function"==typeof(n=t).scrollIntoViewIfNeeded?n.scrollIntoViewIfNeeded():n.scrollIntoView({scrollMode:"if-needed",block:"nearest"}))}),[t]),ql`
|
|
55
55
|
<div class="djs-popup-results" ref=${o}>
|
|
56
|
-
${s.map((e=>
|
|
57
|
-
${e.name&&
|
|
56
|
+
${s.map((e=>ql`
|
|
57
|
+
${e.name&&ql`
|
|
58
58
|
<div key=${e.id} class="entry-header" title=${e.name}>
|
|
59
59
|
${e.name}
|
|
60
60
|
</div>
|
|
61
61
|
`}
|
|
62
62
|
<ul class="djs-popup-group" data-group=${e.id}>
|
|
63
|
-
${e.entries.map((e=>
|
|
64
|
-
<${
|
|
63
|
+
${e.entries.map((e=>ql`
|
|
64
|
+
<${gc}
|
|
65
65
|
key=${e.id}
|
|
66
66
|
entry=${e}
|
|
67
67
|
selected=${e===t}
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
</ul>
|
|
74
74
|
`))}
|
|
75
75
|
</div>
|
|
76
|
-
`}function
|
|
77
|
-
<${
|
|
76
|
+
`}function yc(e){const{onClose:t,onSelect:n,className:i,headerEntries:r,position:o,title:s,width:l,scale:c,search:h,entries:u,onOpened:p,onClosed:d}=e,f=oc((()=>!!a(h)&&u.length>5),[h,u]),m=rc(),[g,v]=tc(""),y=sc(((e,t)=>{if(!f)return e;return e.filter((e=>{if(!t)return(e.rank||0)>=0;const n=[e.description||"",e.label||"",e.search||""].join("---").toLowerCase();return t.toLowerCase().split(/\s/g).every((e=>n.includes(e)))}))}),[f]),[b,x]=tc(y(u,g)),[w,_]=tc(b[0]),O=sc((e=>{w&&e.includes(w)||_(e[0]),x(e)}),[w,x,_]);nc((()=>{O(y(u,g))}),[g,u]),nc((()=>{const e=e=>{if("Escape"===e.key)return e.preventDefault(),t()};return document.documentElement.addEventListener("keydown",e),()=>{document.documentElement.removeEventListener("keydown",e)}}),[]),ic((()=>{m.current&&m.current.focus()}),[]);const E=sc((e=>{let t=b.indexOf(w)+e;t<0&&(t=b.length-1),t>=b.length&&(t=0),_(b[t])}),[b,w,_]),k=sc((e=>"Enter"===e.key&&w?n(e,w):"ArrowUp"===e.key||"Tab"===e.key&&e.shiftKey?(E(-1),e.preventDefault()):"ArrowDown"===e.key||"Tab"===e.key?(E(1),e.preventDefault()):void 0),[n,t,w,E]),S=sc((e=>{oe(e.target,"input")&&v((()=>e.target.value))}),[v]);nc((()=>(p(),()=>{d()})),[]);const C=oc((()=>s||r.length>0),[s,r]);return ql`
|
|
77
|
+
<${bc}
|
|
78
78
|
onClose=${t}
|
|
79
79
|
onKeyup=${S}
|
|
80
80
|
onKeydown=${k}
|
|
@@ -83,33 +83,33 @@
|
|
|
83
83
|
width=${l}
|
|
84
84
|
scale=${c}
|
|
85
85
|
>
|
|
86
|
-
${C&&
|
|
86
|
+
${C&&ql`
|
|
87
87
|
<div class="djs-popup-header">
|
|
88
88
|
<h3 class="djs-popup-title" title=${s}>${s}</h3>
|
|
89
|
-
${r.map((e=>
|
|
89
|
+
${r.map((e=>ql`
|
|
90
90
|
<span
|
|
91
|
-
class=${function(e,t){return
|
|
91
|
+
class=${function(e,t){return mc("entry",e.className,e.active?"active":"",e.disabled?"disabled":"",t?"selected":"")}(e,e===w)}
|
|
92
92
|
onClick=${t=>n(t,e)}
|
|
93
93
|
title=${e.title||e.label}
|
|
94
94
|
data-id=${e.id}
|
|
95
95
|
onMouseEnter=${()=>_(e)}
|
|
96
96
|
onMouseLeave=${()=>_(null)}
|
|
97
97
|
>
|
|
98
|
-
${e.imageUrl?
|
|
98
|
+
${e.imageUrl?ql`
|
|
99
99
|
<img class="djs-popup-entry-icon" src=${e.imageUrl} alt="" />
|
|
100
100
|
`:null}
|
|
101
101
|
|
|
102
|
-
${e.label?
|
|
102
|
+
${e.label?ql`
|
|
103
103
|
<span class="djs-popup-label">${e.label}</span>
|
|
104
104
|
`:null}
|
|
105
105
|
</span>
|
|
106
106
|
`))}
|
|
107
107
|
</div>
|
|
108
108
|
`}
|
|
109
|
-
${u.length>0&&
|
|
109
|
+
${u.length>0&&ql`
|
|
110
110
|
<div class="djs-popup-body">
|
|
111
111
|
|
|
112
|
-
${f&&
|
|
112
|
+
${f&&ql`
|
|
113
113
|
<div class="djs-popup-search">
|
|
114
114
|
<svg class="djs-popup-search-icon" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
115
115
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.0325 8.5H9.625L13.3675 12.25L12.25 13.3675L8.5 9.625V9.0325L8.2975 8.8225C7.4425 9.5575 6.3325 10 5.125 10C2.4325 10 0.25 7.8175 0.25 5.125C0.25 2.4325 2.4325 0.25 5.125 0.25C7.8175 0.25 10 2.4325 10 5.125C10 6.3325 9.5575 7.4425 8.8225 8.2975L9.0325 8.5ZM1.75 5.125C1.75 6.9925 3.2575 8.5 5.125 8.5C6.9925 8.5 8.5 6.9925 8.5 5.125C8.5 3.2575 6.9925 1.75 5.125 1.75C3.2575 1.75 1.75 3.2575 1.75 5.125Z" fill="#22242A"/>
|
|
@@ -121,25 +121,25 @@
|
|
|
121
121
|
</div>
|
|
122
122
|
`}
|
|
123
123
|
|
|
124
|
-
<${
|
|
124
|
+
<${vc}
|
|
125
125
|
entries=${b}
|
|
126
126
|
selectedEntry=${w}
|
|
127
127
|
setSelectedEntry=${_}
|
|
128
128
|
onAction=${n}
|
|
129
129
|
/>
|
|
130
130
|
</div>
|
|
131
|
-
${0===b.length&&
|
|
131
|
+
${0===b.length&&ql`
|
|
132
132
|
<div class="djs-popup-no-results">No matching entries found.</div>
|
|
133
133
|
`}
|
|
134
134
|
`}
|
|
135
|
-
</${
|
|
136
|
-
`}function
|
|
135
|
+
</${bc}>
|
|
136
|
+
`}function bc(e){const{onClose:t,onKeydown:n,onKeyup:i,className:r,children:o,position:s}=e,a=rc(),l=sc((e=>{se(e.target,".djs-popup",!0)||t()}),[t]);return ic((()=>{if("function"!=typeof s)return;const e=a.current,t=s(e);e.style.left=`${t.x}px`,e.style.top=`${t.y}px`}),[a.current,s]),ic((()=>{a.current&&a.current.focus()}),[]),ql`
|
|
137
137
|
<div
|
|
138
138
|
class="djs-popup-backdrop"
|
|
139
139
|
onClick=${l}
|
|
140
140
|
>
|
|
141
141
|
<div
|
|
142
|
-
class=${
|
|
142
|
+
class=${mc("djs-popup",r)}
|
|
143
143
|
style=${function(e){return{transform:`scale(${e.scale})`,width:`${e.width}px`}}(e)}
|
|
144
144
|
onKeydown=${n}
|
|
145
145
|
onKeyup=${i}
|
|
@@ -149,8 +149,8 @@
|
|
|
149
149
|
${o}
|
|
150
150
|
</div>
|
|
151
151
|
</div>
|
|
152
|
-
`}var
|
|
153
|
-
<${
|
|
152
|
+
`}var xc=["contextPad.close","canvas.viewbox.changing","commandStack.changed"];function wc(e,t,n){this._eventBus=t,this._canvas=n,this._current=null;var i=a(e&&e.scale)?e.scale:{min:1,max:1.5};this._config={scale:i},t.on("diagram.destroy",(()=>{this.close()})),t.on("element.changed",(e=>{const t=this.isOpen()&&this._current.target;e.element===t&&this._render()}))}wc.$inject=["config.popupMenu","eventBus","canvas"],wc.prototype._render=function(){const{position:e,className:t,entries:n,headerEntries:i,options:r}=this._current,o=Object.entries(n).map((([e,t])=>({id:e,...t}))),s=Object.entries(i).map((([e,t])=>({id:e,...t}))),a=e&&(t=>this._ensureVisible(t,e)),l=this._updateScale(this._current.container);jl(ql`
|
|
153
|
+
<${yc}
|
|
154
154
|
onClose=${e=>this.close(e)}
|
|
155
155
|
onSelect=${(e,t,n)=>this.trigger(e,t,n)}
|
|
156
156
|
position=${a}
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
onClosed=${this._onClosed.bind(this)}
|
|
163
163
|
...${{...r}}
|
|
164
164
|
/>
|
|
165
|
-
`,this._current.container)},_c.prototype.open=function(e,t,n,i){if(!e)throw new Error("target is missing");if(!t)throw new Error("providers for <"+t+"> not found");if(!n)throw new Error("position is missing");this.isOpen()&&this.close();const{entries:r,headerEntries:o}=this._getContext(e,t);this._current={position:n,className:t,target:e,entries:r,headerEntries:o,container:this._createContainer({provider:t}),options:i},this._emit("open"),this._bindAutoClose(),this._render()},_c.prototype._getContext=function(e,t){const n=this._getProviders(t);if(!n||!n.length)throw new Error("provider for <"+t+"> not found");const i=this._getEntries(e,n),r=this._getHeaderEntries(e,n);return{entries:i,headerEntries:r,empty:!(Object.keys(i).length||Object.keys(r).length)}},_c.prototype.close=function(){this.isOpen()&&(this._emit("close"),this.reset(),this._current=null)},_c.prototype.reset=function(){const e=this._current.container;zl(null,e),Ee(e)},_c.prototype._emit=function(e,t){this._eventBus.fire(`popupMenu.${e}`,t)},_c.prototype._onOpened=function(){this._emit("opened")},_c.prototype._onClosed=function(){this._emit("closed")},_c.prototype._createContainer=function(e){var t=this._canvas.getContainer();const n=we(`<div class="djs-popup-parent djs-scrollable" data-popup=${e.provider}></div>`);return t.appendChild(n),n},_c.prototype._bindAutoClose=function(){this._eventBus.once(wc,this.close,this)},_c.prototype._unbindAutoClose=function(){this._eventBus.off(wc,this.close,this)},_c.prototype._updateScale=function(){var e,t,n=this._canvas.zoom(),i=this._config.scale,r=n;return!0!==i&&(!1===i?(e=1,t=1):(e=i.min,t=i.max),a(e)&&n<e&&(r=e),a(t)&&n>t&&(r=t)),r},_c.prototype._ensureVisible=function(e,t){var n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect(),r={},o=t.x,s=t.y;return t.x+i.width>n.width&&(r.x=!0),t.y+i.height>n.height&&(r.y=!0),r.x&&r.y?(o=t.x-i.width,s=t.y-i.height):r.x?(o=t.x-i.width,s=t.y):r.y&&t.y<i.height?(o=t.x,s=10):r.y&&(o=t.x,s=t.y-i.height),{x:o,y:s}},_c.prototype.isEmpty=function(e,t){if(!e)throw new Error("target is missing");if(!t)throw new Error("provider ID is missing");const n=this._getProviders(t);return!n||!n.length||this._getContext(e,t).empty},_c.prototype.registerProvider=function(e,t,n){n||(n=t,t=1e3),this._eventBus.on("popupMenu.getProviders."+e,t,(function(e){e.providers.push(n)}))},_c.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"popupMenu.getProviders."+e,providers:[]});return this._eventBus.fire(t),t.providers},_c.prototype._getEntries=function(e,t){var n={};return b(t,(function(t){if(t.getPopupMenuEntries){var i=t.getPopupMenuEntries(e);p(i)?n=i(n):b(i,(function(e,t){n[t]=e}))}else b(t.getEntries(e),(function(e){var t=e.id;if(!t)throw new Error("entry ID is missing");n[t]=V(e,["id"])}))})),n},_c.prototype._getHeaderEntries=function(e,t){var n={};return b(t,(function(t){if(t.getPopupMenuHeaderEntries){var i=t.getPopupMenuHeaderEntries(e);p(i)?n=i(n):b(i,(function(e,t){n[t]=e}))}else{if(!t.getHeaderEntries)return;b(t.getHeaderEntries(e),(function(e){var t=e.id;if(!t)throw new Error("entry ID is missing");n[t]=V(e,["id"])}))}})),n},_c.prototype.isOpen=function(){return!!this._current},_c.prototype.trigger=function(e,t,n="click"){if(e.preventDefault(),!t){let n=ee(se(e.delegateTarget||e.target,".entry",!0),"data-id");t={id:n,...this._getEntry(n)}}const i=t.action;if(!1!==this._emit("trigger",{entry:t,event:e}))if(p(i)){if("click"===n)return i(e,t)}else if(i[n])return i[n](e,t)},_c.prototype._getEntry=function(e){var t=this._current.entries[e]||this._current.headerEntries[e];if(!t)throw new Error("entry not found");return t};var Oc={__init__:["popupMenu"],popupMenu:["type",_c]},Ec={align:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 2000">\n <line x1="200" y1="150" x2="200" y2="1850" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="500" y="150" width="1300" height="700" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="500" y="1150" width="700" height="700" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',bottom:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="150" y1="1650" x2="1650" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="150" y="350" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="850" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',center:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="900" y1="150" x2="900" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="250" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="500" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',left:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="100" y1="150" x2="100" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="100" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="100" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',right:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="1650" y1="150" x2="1650" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="350" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="850" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',top:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="150" y1="150" x2="1650" y2="150" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="150" y="150" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="150" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',middle:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="150" y1="900" x2="1650" y2="900" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="150" y="250" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="500" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>'},kc=900;function Sc(e,t,n,i){e.registerProvider(kc,this),this._contextPad=e,this._popupMenu=t,this._translate=n,this._canvas=i}Sc.$inject=["contextPad","popupMenu","translate","canvas"],Sc.prototype.getMultiElementContextPadEntries=function(e){var t={};return this._isAllowed(e)&&I(t,this._getEntries(e)),t},Sc.prototype._isAllowed=function(e){return!this._popupMenu.isEmpty(e,"align-elements")},Sc.prototype._getEntries=function(){var e=this;return{"align-elements":{group:"align-elements",title:e._translate("Align elements"),html:`<div class="entry">${Ec.align}</div>`,action:{click:function(t,n){var i=e._getMenuPosition(n);I(i,{cursor:{x:t.x,y:t.y}}),e._popupMenu.open(n,"align-elements",i)}}}}},Sc.prototype._getMenuPosition=function(e){var t=this._contextPad.getPad(e).html.getBoundingClientRect();return{x:t.left,y:t.bottom+5}};var Cc=["left","center","right","top","middle","bottom"];function Pc(e,t,n,i){this._alignElements=t,this._translate=n,this._popupMenu=e,this._rules=i,e.registerProvider("align-elements",this)}function $c(e){Bs.call(this,e),this.init()}function Ac(e){$c.call(this,e)}Pc.$inject=["popupMenu","alignElements","translate","rules"],Pc.prototype.getPopupMenuEntries=function(e){var t={};return this._isAllowed(e)&&I(t,this._getEntries(e)),t},Pc.prototype._isAllowed=function(e){return this._rules.allowed("elements.align",{elements:e})},Pc.prototype._getEntries=function(e){var t=this._alignElements,n=this._translate,i=this._popupMenu,r={};return b(Cc,(function(o){r["align-elements-"+o]={group:"align",title:n("Align elements "+o),className:"bjs-align-elements-menu-entry",imageHtml:Ec[o],action:function(){t.trigger(e,o),i.close()}}})),r},$c.$inject=["eventBus"],e($c,Bs),$c.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)}))},$c.prototype.init=function(){},Ac.$inject=["eventBus"],e(Ac,$c),Ac.prototype.init=function(){this.addRule("elements.align",(function(e){var t=y(e.elements,(function(e){return!(e.waypoints||e.host||e.labelTarget)}));return!((t=bt(t)).length<2)&&t}))};var Rc={__depends__:[rl,dl,Oc],__init__:["alignElementsContextPadProvider","alignElementsMenuProvider","bpmnAlignElements"],alignElementsContextPadProvider:["type",Sc],alignElementsMenuProvider:["type",Pc],bpmnAlignElements:["type",Ac]},Tc=10,Mc=50,Dc=250;function Bc(e,t,n,i){for(var r;r=Nc(e,n,t);)n=i(t,n,r);return n}function Lc(e){return function(t,n,i){var r={x:n.x,y:n.y};return["x","y"].forEach((function(o){var s=e[o];if(s){var a="x"===o?"width":"height",l=s.margin,c=s.minDistance;r[o]=l<0?Math.min(i[o]+l-t[a]/2,n[o]-c+l):Math.max(i[o]+i[a]+l+t[a]/2,n[o]+c+l)}})),r}}function Nc(e,t,n){var i={x:t.x-n.width/2,y:t.y-n.height/2,width:n.width,height:n.height},r=function(e){var t=jc(e);e.host&&(t=t.concat(jc(e.host)));e.attachers&&(t=t.concat(e.attachers.reduce((function(e,t){return e.concat(jc(t))}),[])));return t}(e);return g(r,(function(e){return e!==n&&"intersect"===Tn(e,i,Tc)}))}function jc(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 zc(){return!0}var Ic=100;function Xc(e,t,n){e.on("autoPlace",Ic,(function(e){var t=e.shape;return function(e,t,n){n||(n={});var i=n.defaultDistance||Mc,r=Rn(e),o=Pn(e);return{x:o.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}),s=t.appendShape(n,i,o,n.parent,r);return e.fire("autoPlace.end",{source:n,shape:s}),s}}function Qc(e,t){e.on("autoPlace.end",500,(function(e){t.select(e.shape)}))}Xc.$inject=["eventBus","modeling","canvas"],Qc.$inject=["eventBus","selection"];var Fc={__init__:["autoPlaceSelectionBehavior"],autoPlace:["type",Xc],autoPlaceSelectionBehavior:["type",Qc]};function Vc(e,t){for(d(t)&&(t=[t]);e=e.parent;)if(qr(e,t))return e;return null}function qc(e,t){return Vr(t,"bpmn:TextAnnotation")?function(e,t){var n=Pn(e),i={x:n.right+t.width/2,y:n.top-50-t.height/2};En(e)&&((i=Rn(e)).x+=100,i.y-=50);return Bc(e,t,i,Lc({y:{margin:-30,minDistance:20}}))}(e,t):qr(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])?function(e,t){var n=Pn(e),i={x:n.right-10+t.width/2,y:n.bottom+40+t.width/2};return Bc(e,t,i,Lc({x:{margin:30,minDistance:30}}))}(e,t):Vr(t,"bpmn:FlowNode")?function(e,t){var n=Pn(e),i=Rn(e),r=function(e,t){t||(t={});var n=t.defaultDistance||Mc,i=t.direction||"e",r=t.filter,o=t.getWeight||function(t){return t.source===e?1:-1},s=t.maxDistance||Dc,a=t.reference||"start";function l(e,t){return"n"===i?"start"===a?Pn(e).top-Pn(t).bottom:"center"===a?Pn(e).top-Rn(t).y:Pn(e).top-Pn(t).top:"w"===i?"start"===a?Pn(e).left-Pn(t).right:"center"===a?Pn(e).left-Rn(t).x:Pn(e).left-Pn(t).left:"s"===i?"start"===a?Pn(t).top-Pn(e).bottom:"center"===a?Rn(t).y-Pn(e).bottom:Pn(t).bottom-Pn(e).bottom:"start"===a?Pn(t).left-Pn(e).right:"center"===a?Rn(t).x-Pn(e).right:Pn(t).right-Pn(e).right}r||(r=zc);var c=e.incoming.filter(r).map((function(t){var n=o(t),i=n<0?l(t.source,e):l(e,t.source);return{id:t.source.id,distance:i,weight:n}})),h=e.outgoing.filter(r).map((function(t){var n=o(t),i=n>0?l(e,t.target):l(t.target,e);return{id:t.target.id,distance:i,weight:n}})),u=w(c.concat(h).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>s||(e[String(n)]||(e[String(n)]=0),e[String(n)]+=1*i,(!e.distance||e[e.distance]<e[String(n)])&&(e.distance=n)),e}),{});return u.distance||n}(e,{filter:function(e){return Vr(e,"bpmn:SequenceFlow")}}),o=30,s=80,a="left";Vr(e,"bpmn:BoundaryEvent")&&-1!==(a=Tn(e,e.host,-25)).indexOf("top")&&(o*=-1);var l={x:n.right+r+t.width/2,y:i.y+Hc(a,s)};return Bc(e,t,l,Lc({y:{margin:o,minDistance:s}}))}(e,t):void 0}function Hc(e,t){return e.includes("top")?-1*t:e.includes("bottom")?t:0}function Wc(e){e.on("autoPlace",(function(e){var t=e.shape;return qc(e.source,t)}))}Wc.$inject=["eventBus"];var Yc={__depends__:[Fc],__init__:["bpmnAutoPlace"],bpmnAutoPlace:["type",Wc]};function Gc(e,t,n,r){Bs.call(this,e),this._elementRegistry=t,this._modeling=n,this._rules=r;var o=this;this.postExecuted(["shape.create"],(function(e){var t=e.context,n=t.hints||{},i=t.shape,r=t.parent||t.newParent;!1!==n.autoResize&&o._expand([i],r)})),this.postExecuted(["elements.move"],(function(e){var t=e.context,n=i(C(t.closure.topLevel)),r=t.hints,s=!r||r.autoResize;!1!==s&&b(P(n,(function(e){return e.parent.id})),(function(e,t){c(s)&&(e=e.filter((function(e){return g(s,T({id:e.id}))}))),o._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||o._expand(i.children||[],i)})),this.postExecuted(["shape.resize"],(function(e){var t=e.context,n=t.hints,i=t.shape,r=i.parent;n&&!1===n.autoResize||r&&o._expand([i],r)}))}function Uc(e){e.invoke(Gc,this)}function Zc(e){$c.call(this,e);var t=this;this.addRule("element.autoResize",(function(e){return t.canResize(e.elements,e.target)}))}function Kc(e,t){Zc.call(this,e),this._modeling=t}Gc.$inject=["eventBus","elementRegistry","modeling","rules"],e(Gc,Bs),Gc.prototype._getOptimalBounds=function(e,t){var n=this.getOffset(t),i=this.getPadding(t),r=Pn(Et(e)),o=Pn(t),s={};return r.top-o.top<i.top&&(s.top=r.top-n.top),r.left-o.left<i.left&&(s.left=r.left-n.left),o.right-r.right<i.right&&(s.right=r.right+n.right),o.bottom-r.bottom<i.bottom&&(s.bottom=r.bottom+n.bottom),$n(I({},o,s))},Gc.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=Pn(e),t=Pn(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}(F(t,["x","y","width","height"]),n);this.resize(t,n,{autoResize:i});var r=t.parent;r&&this._expand([t],r)}}},Gc.prototype.getOffset=function(e){return{top:60,bottom:60,left:100,right:100}},Gc.prototype.getPadding=function(e){return{top:2,bottom:2,left:15,right:15}},Gc.prototype.resize=function(e,t,n){this._modeling.resizeShape(e,t,null,n)},Uc.$inject=["injector"],e(Uc,Gc),Uc.prototype.resize=function(e,t,n){Vr(e,"bpmn:Participant")?this._modeling.resizeLane(e,t,null,n):this._modeling.resizeShape(e,t,null,n)},Zc.$inject=["eventBus"],e(Zc,$c),Zc.prototype.canResize=function(e,t){return!1},e(Kc,Zc),Kc.$inject=["eventBus","modeling"],Kc.prototype.canResize=function(e,t){if(Vr(t.di,"bpmndi:BPMNPlane"))return!1;if(!Vr(t,"bpmn:Participant")&&!Vr(t,"bpmn:Lane")&&!Vr(t,"bpmn:SubProcess"))return!1;var n=!0;return b(e,(function(e){(Vr(e,"bpmn:Lane")||kn(e))&&(n=!1)})),n};var Jc={__init__:["bpmnAutoResize","bpmnAutoResizeProvider"],bpmnAutoResize:["type",Uc],bpmnAutoResizeProvider:["type",Kc]},eh=1500;function th(e,t,n){var i,r,o=this,s=n.get("dragging",!1);s&&t.on("drag.start",(function(n){t.once("drag.move",eh,(function(t){!function(t){if(!t.hover){var n=t.originalEvent,i=o._findTargetGfx(n),r=i&&e.get(i);i&&r&&(t.stopPropagation(),s.hover({element:r,gfx:i}),s.move(n))}}(t)}))})),t.on("element.hover",(function(e){i=e.gfx,r=e.element})),t.on("element.hover",eh,(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=os(e),function(e){return se(e,"svg, .djs-element",!0)}(document.elementFromPoint(t.x,t.y))}}th.$inject=["elementRegistry","eventBus","injector"];var nh={__init__:["hoverFix"],hoverFix:["type",th]},ih=Math.round,rh="djs-drag-active";function oh(e){e.preventDefault()}function sh(e,t,n,i){var r,o={threshold:5,trapClick:!0};function s(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 a(t,n){n=n||r;var i=e.createEvent(I({},n.payload,n.data,{isTouch:n.isTouch}));return!1!==e.fire("drag."+t,i)&&e.fire(n.prefix+"."+t,i)}function l(e,i){var o,l=r.payload,c=r.displacement,h=r.globalStart,u=os(e),p=Aa(u,h),d=r.localStart,f=s(u),g=Aa(f,d);if(!r.active&&(i||(o=p,Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2))>r.threshold))){if(I(l,{x:ih(d.x+c.x),y:ih(d.y+c.y),dx:0,dy:0},{originalEvent:e}),!1===a("start"))return m();r.active=!0,r.keepSelection||(l.previousSelection=n.get(),n.select(null)),r.cursor&&ka(r.cursor),t.addMarker(t.getRootElement(),rh)}rs(e),r.active&&(I(l,{x:ih(f.x+c.x),y:ih(f.y+c.y),dx:ih(g.x),dy:ih(g.y)},{originalEvent:e}),a("move"))}function c(e){var t=!0;r.active&&(e&&(r.payload.originalEvent=e,rs(e)),t=a("end")),!1===t&&a("rejected"),a("ended",g(!0!==t))}function h(e){ua("Escape",e)&&(oh(e),m())}function u(t){var n;r.active&&(n=Pa(e),setTimeout(n,400),oh(t)),c(t)}function p(e){l(e)}function d(e){var t=r.payload;t.hoverGfx=e.gfx,t.hover=e.element,a("hover")}function f(e){a("out");var t=r.payload;t.hoverGfx=null,t.hover=null}function m(e){var t;if(r){var n=r.active;n&&a("cancel"),t=g(e),n&&a("canceled",t)}}function g(o){var s,g;a("cleanup"),Sa(),g=r.trapClick?u:c,fe.unbind(document,"mousemove",l),fe.unbind(document,"dragstart",oh),fe.unbind(document,"selectstart",oh),fe.unbind(document,"mousedown",g,!0),fe.unbind(document,"mouseup",g,!0),fe.unbind(document,"keyup",h),fe.unbind(document,"touchstart",p,!0),fe.unbind(document,"touchcancel",m,!0),fe.unbind(document,"touchmove",l,!0),fe.unbind(document,"touchend",c,!0),e.off("element.hover",d),e.off("element.out",f),t.removeMarker(t.getRootElement(),rh);var v=r.payload.previousSelection;return!1!==o&&v&&!n.get().length&&function(e){var t=e.filter((function(e){return i.get(e.id)}));t.length&&n.select(t)}(v),s=r,r=null,s}e.on("diagram.destroy",m),this.init=function(t,n,i,g){r&&m(!1),"string"==typeof n&&(g=i,i=n,n=null);var v,y,b,x,w,_=(g=I({},o,g||{})).data||{};x=g.trapClick?u:c,t?(v=is(t)||t,y=os(t),rs(t),"dragstart"===v.type&&oh(v)):(v=null,y={x:0,y:0}),b=s(y),n||(n=b),w=function(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}(v),r=I({prefix:i,data:_,payload:{},globalStart:y,displacement:Aa(n,b),localStart:b,isTouch:w},g),g.manual||(w?(fe.bind(document,"touchstart",p,!0),fe.bind(document,"touchcancel",m,!0),fe.bind(document,"touchmove",l,!0),fe.bind(document,"touchend",c,!0)):(fe.bind(document,"mousemove",l),fe.bind(document,"dragstart",oh),fe.bind(document,"selectstart",oh),fe.bind(document,"mousedown",x,!0),fe.bind(document,"mouseup",x,!0)),fe.bind(document,"keyup",h),e.on("element.hover",d),e.on("element.out",f)),a("init"),g.autoActivate&&l(t,!0)},this.move=l,this.hover=d,this.out=f,this.end=c,this.cancel=m,this.context=function(){return r},this.setOptions=function(e){I(o,e)}}sh.$inject=["eventBus","canvas","selection","elementRegistry"];var ah={__depends__:[nh,ks],dragging:["type",sh]};function lh(e,t,n){this._canvas=n,this._opts=I({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 ch(e,t,n){return t<e&&e<n}lh.$inject=["config.autoScroll","eventBus","canvas"],lh.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 s=0,a=0,l=0;l<4;l++)ch(o[l],n.scrollThresholdOut[l],n.scrollThresholdIn[l])&&(0===l?s=n.scrollStep:1==l?a=n.scrollStep:2==l?s=-n.scrollStep:3==l&&(a=-n.scrollStep));0===s&&0===a||(t.scroll({dx:s,dy:a}),this._scrolling=setTimeout((function(){i.startScroll(e)}),n.scrollRepeatTimeout))},lh.prototype.stopScroll=function(){clearTimeout(this._scrolling)},lh.prototype.setOptions=function(e){this._opts=I({},this._opts,e)},lh.prototype._toBorderPoint=function(e){var t=this._canvas._container.getBoundingClientRect(),n=os(e.originalEvent);return{x:n.x-t.left,y:n.y-t.top}};var hh={__depends__:[ah],__init__:["autoScroll"],autoScroll:["type",lh]};function uh(e){this._commandStack=e.get("commandStack",!1)}uh.$inject=["injector"],uh.prototype.allowed=function(e,t){var n=!0,i=this._commandStack;return i&&(n=i.canExecute(e,t)),void 0===n||n};var ph={__init__:["rules"],rules:["type",uh]},dh=Math.round,fh=Math.max;var mh=10;function gh(e,t){return function(e,t){var n,i;for(n=0;i=e[n];n++)if(Dt(i,t)<=mh)return{point:e[n],bendpoint:!0,index:n};return null}(e,t)||function(e,t){var n,i,r=On(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,mh),(n=[],e.forEach((function(e,t){n.push([0===t?"M":"L",e.x,e.y])})),n)),o=r[0],s=r[r.length-1];return o?o!==s?o.segment2!==s.segment2?{point:e[i=fh(o.segment2,s.segment2)-1],bendpoint:!0,index:i}:{point:{x:dh(o.x+s.x)/2,y:dh(o.y+s.y)/2},index:o.segment2}:{point:{x:dh(o.x),y:dh(o.y)},index:o.segment2}:null}(e,t)}function vh(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function yh(e){return Math.atan((e[1].y-e[0].y)/(e[1].x-e[0].x))}function bh(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 xh(e,t){var n=bh(e,t);return vh({x:n.x-e.x,y:n.y-e.y})}function wh(e,t){return vh({x:e.x-t.x,y:e.y-t.y})}var _h="djs-bendpoint",Oh="djs-segment-dragger";function Eh(e,t,n){var i=function(e,t){var n,i=os(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);return gh(t,i)}function kh(e,t){var n=Ie("g");Te(n).add(_h),Se(e,n);var i=Ie("circle");Ae(i,{cx:0,cy:0,r:4}),Te(i).add("djs-visual"),Se(n,i);var r=Ie("circle");return Ae(r,{cx:0,cy:0,r:10}),Te(r).add("djs-hit"),Se(n,r),t&&Te(n).add(t),n}function Sh(e,t,n,i){var r=Ie("g");Se(e,r);var o=function(e,t,n){var i=t.x-e.x,r=t.y-e.y;return Ph("h"===n?i:r)}(t,n,i),s=Ie("rect");Ae(s,{x:-9,y:-3,width:18,height:6}),Te(s).add("djs-visual"),Se(r,s);var a=Ie("rect");return Ae(a,{x:-o/2,y:-8.5,width:o,height:17}),Te(a).add("djs-hit"),Se(r,a),fi(r,"v"===i?90:0),r}function Ch(e,t,n){var i=Ie("g"),r=It(t,n),o=Nt(t,n);return Se(e,i),Sh(i,t,n,o),Te(i).add(Oh),Te(i).add("h"===o?"horizontal":"vertical"),di(i,r.x,r.y),i}function Ph(e){return Math.abs(Math.round(2*e/3))}function $h(e,t){var n=function(e,t){for(var n,i=t.waypoints,r=1/0,o=0;o<i.length-1;o++){var s=xh(e,[i[o],i[o+1]]);s<r&&(r=s,n=o)}return[i[n],i[n+1]]}(e,t);return bh(e,n)}function Ah(e,t,n,i,r){function o(e,n){var o,s=n.waypoints,a=Eh(t,s,e);if(a)return o=function(e,t){var n,i,r=e.waypoints;return t.index<=0||t.bendpoint?null:(i=Nt((n={start:r[t.index-1],end:r[t.index]}).start,n.end))?Ph("h"===i?n.end.x-n.start.x:n.end.y-n.start.y)/2:null}(n,a),!function(e,t,n){var i,r,o,s,a,l,c=e.index,h=e.point;return!(c<=0||e.bendpoint)&&(o=It(i=t[c-1],r=t[c]),s=Nt(i,r),a=Math.abs(h.x-o.x),l=Math.abs(h.y-o.y),s&&a<=n&&l<=n)}(a,s,o)?i.start(e,n,a.index,!a.bendpoint):r.start(e,n,a.index),!0}function s(e,t,i){fe.bind(e,t,(function(e){n.triggerMouseEvent(t,e,i),e.stopPropagation()}))}function a(e,n){var i=t.getLayer("overlays"),r=_e('.djs-bendpoints[data-element-id="'+zs(e.id)+'"]',i);return!r&&n&&(Ae(r=Ie("g"),{"data-element-id":e.id}),Te(r).add("djs-bendpoints"),Se(i,r),s(r,"mousedown",e),s(r,"click",e),s(r,"dblclick",e)),r}function l(e,t){return _e('.djs-segment-dragger[data-segment-idx="'+e+'"]',t)}function c(e,t){t.waypoints.forEach((function(t,n){var i=kh(e);Se(e,i),di(i,t.x,t.y)})),kh(e,"floating")}function h(e,t){for(var n,i,r,o=t.waypoints,a=1;a<o.length;a++)Nt(n=o[a-1],i=o[a])&&(Ae(r=Ch(e,n,i),{"data-segment-idx":a}),s(r,"mousemove",t))}function u(e){var t=a(e);return t||(c(t=a(e,!0),e),h(t,e)),t}function p(e){var t=a(e);t&&(!function(e){b(Oe("."+Oh,e),(function(e){De(e)}))}(t),function(e){b(Oe("."+_h,e),(function(e){De(e)}))}(t),h(t,e),c(t,e))}function d(e,t,n){var i,r,o=l(t.index,e),s=n[t.index-1],a=n[t.index],c=t.point,h=It(s,a),u=Nt(s,a);o&&(i=function(e){return _e(".djs-visual",e)}(o),r={x:c.x-h.x,y:c.y-h.y},"v"===u&&(r={x:r.y,y:r.x}),di(i,r.x,r.y))}e.on("connection.changed",(function(e){p(e.element)})),e.on("connection.remove",(function(e){var t=a(e.element);t&&De(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=a(r,!0),!(i=Eh(t,o,e.originalEvent)))return;!function(e,t){var n=_e(".floating",e),i=t.point;n&&di(n,i.x,i.y)}(n,i),i.bendpoint||d(n,i,o)}})),e.on("element.mousedown",(function(e){if(as(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=a(t);i&&Ae(i,{"data-element-id":n})}})),this.addHandles=u,this.updateHandles=p,this.getBendpointsContainer=a,this.getSegmentDragger=l}Ah.$inject=["eventBus","canvas","interactionEvents","bendpointMove","connectionSegmentMove"];var Rh=Math.round,Th="reconnectStart",Mh="reconnectEnd",Dh="updateWaypoints";function Bh(e,t,n,i,r,o){this._injector=e,this.start=function(e,t,o,s){var a,l=n.getGraphics(t),c=t.source,h=t.target,u=t.waypoints,p=(a=s||0!==o?s||o!==u.length-1?Dh:Mh:Th)===Dh?"connection.updateWaypoints":"connection.reconnect",d=r.allowed(p,{connection:t,source:c,target:h});!1===d&&(d=r.allowed(p,{connection:t,source:h,target:c})),!1!==d&&i.init(e,"bendpoint.move",{data:{connection:t,connectionGfx:l,context:{allowed:d,bendpointIndex:o,connection:t,source:c,target:h,insert:s,type:a}}})},t.on("bendpoint.move.hover",(function(e){var t,n=e.context,i=n.connection,o=i.source,s=i.target,a=e.hover,l=n.type;if(n.hover=a,a){var c=l===Dh?"connection.updateWaypoints":"connection.reconnect";if(t=n.allowed=r.allowed(c,{connection:i,source:l===Th?a:o,target:l===Mh?a:s}))return n.source=l===Th?a:o,void(n.target=l===Mh?a:s);!1===t&&(t=n.allowed=r.allowed(c,{connection:i,source:l===Mh?a:s,target:l===Th?a:o})),t&&(n.source=l===Mh?a:s,n.target=l===Th?a: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!==Dh&&(t.allowed=!1)})),t.on("bendpoint.move.end",(function(e){var t=e.context,n=t.allowed,i=t.bendpointIndex,r=t.connection,s=t.insert,a=r.waypoints.slice(),l=t.source,c=t.target,h=t.type,u=t.hints||{},p={x:Rh(e.x),y:Rh(e.y)};if(!n)return!1;h===Dh?(s?a.splice(i,0,p):a[i]=p,u.bendpointMove={insert:s,bendpointIndex:i},a=this.cropWaypoints(r,a),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===Dt(t,i=e[r+1])||Bt(n,i,t)?e.splice(r,1):r++;return e}(a),u)):(h===Th?(u.docking="source",Lh(t)&&(u.docking="target",u.newWaypoints=a.reverse())):h===Mh&&(u.docking="target",Lh(t)&&(u.docking="source",u.newWaypoints=a.reverse())),o.reconnect(r,l,c,p,u))}),this)}function Lh(e){var t=e.hover,n=e.source,i=e.target,r=e.type;return r===Th?t&&i&&t===i&&n!==i:r===Mh?t&&n&&t===n&&n!==i:void 0}Bh.$inject=["injector","eventBus","canvas","dragging","rules","modeling"],Bh.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 Nh="reconnectStart",jh="reconnectEnd",zh="updateWaypoints",Ih="connect-ok",Xh="connect-not-ok",Qh="connect-hover",Fh="djs-updating",Vh="djs-element-hidden",qh=1100;function Hh(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,s=r.waypoints,a=s.slice();t.waypoints=s,o&&a.splice(n,0,{x:e.x,y:e.y}),r.waypoints=a,Te(t.draggerGfx=kh(i.getLayer("overlays"))).add("djs-dragging"),i.addMarker(r,Vh),i.addMarker(r,Fh)})),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,Qh),o===zh)return;n?(i.removeMarker(r,Xh),i.addMarker(r,Ih)):!1===n&&(i.removeMarker(r,Ih),i.addMarker(r,Xh))}})),n.on(["bendpoint.move.out","bendpoint.move.cleanup"],qh,(function(e){var t=e.context,n=t.hover,r=t.target;n&&(i.removeMarker(n,Qh),i.removeMarker(n,r?Ih:Xh))})),n.on("bendpoint.move.move",(function(t){var n=t.context,i=n.allowed,o=n.bendpointIndex,s=n.draggerGfx,a=n.hover,l=n.type,c=n.connection,h=c.source,u=c.target,p=c.waypoints.slice(),d={x:t.x,y:t.y},f=n.hints||{},m={};r&&(f.connectionStart&&(m.connectionStart=f.connectionStart),f.connectionEnd&&(m.connectionEnd=f.connectionEnd),l===Nh?Lh(n)?(m.connectionEnd=m.connectionEnd||d,m.source=u,m.target=a||h,p=p.reverse()):(m.connectionStart=m.connectionStart||d,m.source=a||h,m.target=u):l===jh?Lh(n)?(m.connectionStart=m.connectionStart||d,m.source=a||u,m.target=h,p=p.reverse()):(m.connectionEnd=m.connectionEnd||d,m.source=h,m.target=a||u):(m.noCropping=!0,m.noLayout=!0,p[o]=d),l===zh&&(p=e.cropWaypoints(c,p)),m.waypoints=p,r.drawPreview(n,i,m)),di(s,t.x,t.y)}),this),n.on(["bendpoint.move.end","bendpoint.move.cancel"],qh,(function(e){var t=e.context,n=t.connection,o=t.draggerGfx,s=t.hover,a=t.target,l=t.waypoints;n.waypoints=l,De(o),i.removeMarker(n,Fh),i.removeMarker(n,Vh),s&&(i.removeMarker(s,Ih),i.removeMarker(s,a?Ih:Xh)),r&&r.cleanUp(t)}))}Hh.$inject=["bendpointMove","injector","eventBus","canvas"];var Wh="connect-hover",Yh="djs-updating";function Gh(e,t,n){return Uh(e,t,e[t]+n)}function Uh(e,t,n){return{x:"x"===t?n:e.x,y:"y"===t?n:e.y}}function Zh(e){return"x"===e?"y":"x"}function Kh(e,t,n){var i,r;return e.original?e.original:(i=Rn(t),Uh(e,r=Zh(n),i[r]))}function Jh(e,t,n,i,r,o){var s=e.get("connectionDocking",!1);function a(e,t){if(!s)return t;var n,i=e.waypoints;return e.waypoints=t,n=s.getCroppedWaypoints(e),e.waypoints=i,n}function l(e){r.update("connection",e.connection,e.connectionGfx)}function c(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 Uh(t,i,Math.min(Math.max(o+20,e[i]),r-20))}(n,i[e.segmentStartIndex+t],i[e.segmentEndIndex+t],Zh(e.axis));di(e.draggerGfx,r.x,r.y)}this.start=function(e,t,r){var o,s,a,l,c=n.getGraphics(t),h=r-1,u=r,p=t.waypoints,d=p[h],f=p[u],m=Eh(n,p,e);(s=Nt(d,f))&&(a="v"===s?"x":"y",0===h&&(d=Kh(d,t.source,a)),u===p.length-1&&(f=Kh(f,t.target,a)),o={connection:t,segmentStartIndex:h,segmentEndIndex:u,segmentStart:d,segmentEnd:f,axis:a,dragPosition:l=m?m.point:{x:(d.x+f.x)/2,y:(d.y+f.y)/2}},i.init(e,l,"connectionSegment.move",{cursor:"x"===a?"resize-ew":"resize-ns",data:{connection:t,connectionGfx:c,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=Ch(r,t.segmentStart,t.segmentEnd),Te(t.draggerGfx).add("djs-dragging"),n.addMarker(i,Yh)})),t.on("connectionSegment.move.move",(function(e){var t,n,i=e.context,r=i.connection,o=i.segmentStartIndex,s=i.segmentEndIndex,h=i.segmentStart,u=i.segmentEnd,p=i.axis,d=i.originalWaypoints.slice(),f=Gh(h,p,e["d"+p]),m=Gh(u,p,e["d"+p]),g=d.length,v=0;d[o]=f,d[s]=m,o<2&&(t=Tn(r.source,f),1===o?"intersect"===t&&(d.shift(),d[0]=f,v--):"intersect"!==t&&(d.unshift(h),v++)),s>g-3&&(n=Tn(r.target,m),s===g-2?"intersect"===n&&(d.pop(),d[d.length-1]=m):"intersect"!==n&&d.push(u)),i.newWaypoints=r.waypoints=a(r,d),c(i,v,e),i.newSegmentStartIndex=o+v,l(e)})),t.on("connectionSegment.move.hover",(function(e){e.context.hover=e.hover,n.addMarker(e.hover,Wh)})),t.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],(function(e){var t=e.context.hover;t&&n.removeMarker(t,Wh)})),t.on("connectionSegment.move.cleanup",(function(e){var t=e.context,i=t.connection;t.draggerGfx&&De(t.draggerGfx),n.removeMarker(i,Yh)})),t.on(["connectionSegment.move.cancel","connectionSegment.move.end"],(function(e){var t=e.context;t.connection.waypoints=t.originalWaypoints,l(e)})),t.on("connectionSegment.move.end",(function(e){var t=e.context,n=t.connection,i=t.newWaypoints,r=t.newSegmentStartIndex;i=i.map((function(e){return{original:e.original,x:Math.round(e.x),y:Math.round(e.y)}}));var s=function(e,t){var n=0,i=e.filter((function(i,r){return!Bt(e[r-1],e[r+1],i)||(n=r<=t?n-1:n,!1)}));return{waypoints:i,segmentOffset:n}}(i,r),l=a(n,s.waypoints),c=s.segmentOffset,h={segmentMove:{segmentStartIndex:t.segmentStartIndex,newSegmentStartIndex:r+c}};o.updateWaypoints(n,l,h)}))}Jh.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];var eu=Math.abs,tu=Math.round;function nu(e){return{x:e.x,y:e.y}}function iu(e){return{x:e.x+e.width,y:e.y+e.height}}function ru(e,t){return!e||isNaN(e.x)||isNaN(e.y)?t:{x:tu(e.x+e.width/2),y:tu(e.y+e.height/2)}}function ou(e,t){var n=e.snapped;return!!n&&("string"==typeof t?n[t]:n.x&&n.y)}function su(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 au(e){return e.children||[]}var lu=Math.abs,cu=Math.round,hu=10;function uu(e){function t(e,t){if(c(e)){for(var n=e.length;n--;)if(lu(e[n]-t)<=hu)return e[n]}else{var i=t%(e=+e);if(i<hu)return t-i;if(i>e-hu)return t-i+e}return t}function n(e,t){return e.waypoints?$h(t,e):e.width?{x:cu(e.width/2+e.x),y:cu(e.height/2+e.y)}:void 0}e.on("connectionSegment.move.move",1500,(function(e){var i,r,o=function(e){var t=e.context,i=t.snapPoints,r=t.connection,o=r.waypoints,s=t.segmentStart,a=t.segmentStartIndex,l=t.segmentEnd,c=t.segmentEndIndex,h=t.axis;if(i)return i;var u=[o[a-1],s,l,o[c+1]];return a<2&&u.unshift(n(r.source,e)),c>o.length-3&&u.unshift(n(r.target,e)),t.snapPoints=i={horizontal:[],vertical:[]},b(u,(function(e){e&&(e=e.original||e,"y"===h&&i.horizontal.push(e.y),"x"===h&&i.vertical.push(e.x))})),i}(e),s=e.x,a=e.y;if(o){var l=s-(i=t(o.vertical,s)),c=a-(r=t(o.horizontal,a));I(e,{dx:e.dx-l,dy:e.dy-c,x:i,y:r}),(l||-1!==o.vertical.indexOf(s))&&su(e,"x",i),(c||-1!==o.horizontal.indexOf(a))&&su(e,"y",r)}})),e.on(["connect.hover","connect.move","connect.end"],1500,(function(e){var t=e.context.hover,i=t&&n(t,e);En(t)&&i&&i.x&&i.y&&(su(e,"x",i.x),su(e,"y",i.y))})),e.on(["bendpoint.move.move","bendpoint.move.end"],1500,(function(e){var i,r,o=e.context,s=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:[]},b(r,(function(e){e&&(e=e.original||e,t.horizontal.push(e.y),t.vertical.push(e.x))})),t}(o),a=o.hover,l=a&&n(a,e),c=e.x,h=e.y;if(s){var u=c-(i=t(l?s.vertical.concat([l.x]):s.vertical,c)),p=h-(r=t(l?s.horizontal.concat([l.y]):s.horizontal,h));I(e,{dx:e.dx-u,dy:e.dy-p,x:e.x-u,y:e.y-p}),(u||-1!==s.vertical.indexOf(c))&&su(e,"x",i),(p||-1!==s.horizontal.indexOf(h))&&su(e,"y",r)}}))}uu.$inject=["eventBus"];var pu={__depends__:[ah,ph],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",Ah],bendpointMove:["type",Bh],bendpointMovePreview:["type",Hh],connectionSegmentMove:["type",Jh],bendpointSnapping:["type",uu]};function du(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,!l(t=n.canExecute=r(i,o))){if(!1!==t)return n.source=i,void(n.target=o);l(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},s=t.source,a=t.target;if(!i)return!1;var l=null,c={connectionStart:fu(t)?o:r,connectionEnd:fu(t)?r:o};h(i)&&(l=i),t.connection=n.connect(s,a,l,c)})),this.start=function(e,n,i,r){h(i)||(r=i,i=Rn(n)),t.init(e,"connect",{autoActivate:r,data:{shape:n,context:{start:n,connectionStart:i}}})}}function fu(e){var t=e.hover,n=e.source,i=e.target;return t&&n&&t===n&&n!==i}du.$inject=["eventBus","dragging","modeling","rules"];var mu=1100,gu=900,vu="connect-ok",yu="connect-not-ok";function bu(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,s=t.start,a=t.startPosition,l=t.target,c=t.connectionStart||a,h=t.connectionEnd||{x:e.x,y:e.y},u=c,p=h;fu(t)&&(u=h,p=c),i.drawPreview(t,n,{source:o||s,target:l||r,connectionStart:u,connectionEnd:p})})),t.on("connect.hover",gu,(function(e){var t=e.context,i=e.hover,r=t.canExecute;null!==r&&n.addMarker(i,r?vu:yu)})),t.on(["connect.out","connect.cleanup"],mu,(function(e){var t=e.hover;t&&(n.removeMarker(t,vu),n.removeMarker(t,yu))})),i&&t.on("connect.cleanup",(function(e){i.cleanUp(e.context)}))}bu.$inject=["injector","eventBus","canvas"];var xu={__depends__:[ks,ph,ah],__init__:["connectPreview"],connect:["type",du],connectPreview:["type",bu]};function wu(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)}wu.$inject=["injector","canvas","graphicsFactory","elementFactory"],wu.prototype.drawPreview=function(e,t,n){n=n||{};var i,r=e.connectionPreviewGfx,o=e.getConnection,s=n.source,a=n.target,l=n.waypoints,c=n.connectionStart,h=n.connectionEnd,u=n.noLayout,p=n.noCropping,d=n.noNoop,f=this;r||(r=e.connectionPreviewGfx=this.createConnectionPreviewGfx()),Be(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 f.getConnection(e,t,n)}))),t&&(i=o(t,s,a)),i?(i.waypoints=l||[],this._layouter&&!u&&(i.waypoints=this._layouter.layoutConnection(i,{source:s,target:a,connectionStart:c,connectionEnd:h,waypoints:n.waypoints||i.waypoints})),i.waypoints&&i.waypoints.length||(i.waypoints=[s?Rn(s):c,a?Rn(a):h]),this._connectionDocking&&(s||a)&&!p&&(i.waypoints=this._connectionDocking.getCroppedWaypoints(i,s,a)),this._graphicsFactory.drawConnection(r,i)):!d&&this.drawNoopPreview(r,n)},wu.prototype.drawNoopPreview=function(e,t){var n=t.source,i=t.target,r=t.connectionStart||Rn(n),o=t.connectionEnd||Rn(i),s=this.cropWaypoints(r,o,n,i);Se(e,this.createNoopConnection(s[0],s[1]))},wu.prototype.cropWaypoints=function(e,t,n,i){var r=this._graphicsFactory,o=n&&r.getShapePath(n),s=i&&r.getShapePath(i),a=r.getConnectionPath({waypoints:[e,t]});return[e=n&&Mn(o,a,!0)||e,t=i&&Mn(s,a,!1)||t]},wu.prototype.cleanUp=function(e){e&&e.connectionPreviewGfx&&De(e.connectionPreviewGfx)},wu.prototype.getConnection=function(e){var t=function(e){return h(e)?e:{}}(e);return this._elementFactory.createConnection(t)},wu.prototype.createConnectionPreviewGfx=function(){var e=Ie("g");return Ae(e,{pointerEvents:"none"}),Te(e).add("djs-connection-preview"),Se(this._canvas.getActiveLayer(),e),e},wu.prototype.createNoopConnection=function(e,t){return vt([e,t],{stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"})};var _u={__init__:["connectionPreview"],connectionPreview:["type",wu]},Ou=Math.min,Eu=Math.max;function ku(e){e.preventDefault()}function Su(e){e.stopPropagation()}function Cu(e){this.container=e.container,this.parent=we('<div class="djs-direct-editing-parent"><div class="djs-direct-editing-content" contenteditable="true"></div></div>'),this.content=_e("[contenteditable]",this.parent),this.keyHandler=e.keyHandler||function(){},this.resizeHandler=e.resizeHandler||function(){},this.autoResize=z(this.autoResize,this),this.handlePaste=z(this.handlePaste,this)}function Pu(e,t){this._eventBus=e,this._providers=[],this._textbox=new Cu({container:t.getContainer(),keyHandler:z(this._handleKey,this),resizeHandler:z(this._handleResize,this)})}Cu.prototype.create=function(e,t,n,i){var r=this.parent,o=this.content,s=this.container;i=this.options=i||{};var a=F(t=this.style=t||{},["width","height","maxWidth","maxHeight","minWidth","minHeight","left","top","backgroundColor","position","overflow","border","wordWrap","textAlign","outline","transform"]);I(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"},a);var l=F(t,["fontFamily","fontSize","fontWeight","lineHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);return I(o.style,{boxSizing:"border-box",width:"100%",outline:"none",wordWrap:"break-word"},l),i.centerVertically&&I(o.style,{position:"absolute",top:"50%",transform:"translate(0, -50%)"},l),o.innerText=n,fe.bind(o,"keydown",this.keyHandler),fe.bind(o,"mousedown",Su),fe.bind(o,"paste",this.handlePaste),i.autoResize&&fe.bind(o,"input",this.autoResize),i.resizable&&this.resizable(t),s.appendChild(r),this.setSelection(o.lastChild,o.lastChild&&o.lastChild.length),r},Cu.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)}},Cu.prototype.insertText=function(e){e=function(e){return e.replace(/\r\n|\r|\n/g,"\n")}(e),document.execCommand("insertText",!1,e)||this._insertTextIE(e)},Cu.prototype._insertTextIE=function(e){var t,n,i,r=this.getSelection(),o=r.startContainer,s=r.endContainer,a=r.startOffset,l=r.endOffset,c=r.commonAncestorContainer,h=(t=c.childNodes,[].slice.call(t));if(function(e){return e.nodeType===Node.TEXT_NODE}(c)){var u=o.textContent;o.textContent=u.substring(0,a)+e+u.substring(l),n=o,i=a+e.length}else if(o===this.content&&s===this.content){var p=document.createTextNode(e);this.content.insertBefore(p,h[a]),n=p,i=p.textContent.length}else{var d=h.indexOf(o),f=h.indexOf(s);h.forEach((function(t,n){n===d?t.textContent=o.textContent.substring(0,a)+e+s.textContent.substring(l):n>d&&n<=f&&Ee(t)})),n=o,i=a+e.length}n&&void 0!==i&&setTimeout((function(){self.setSelection(n,i)}))},Cu.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})}},Cu.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,s=parseInt(this.style.maxHeight)||1/0;if(!n){var a,l,c,h;n=this.resizeHandle=we('<div class="djs-direct-editing-resize-handle"></div>');var u=function(n){ku(n),Su(n);var u=Ou(Eu(c+n.clientX-a,i),o),p=Ou(Eu(h+n.clientY-l,r),s);t.style.width=u+"px",t.style.height=p+"px",e.resizeHandler({width:c,height:h,dx:n.clientX-a,dy:n.clientY-l})},p=function(e){ku(e),Su(e),fe.unbind(document,"mousemove",u,!1),fe.unbind(document,"mouseup",p,!1)};fe.bind(n,"mousedown",(function(e){ku(e),Su(e),a=e.clientX,l=e.clientY;var n=t.getBoundingClientRect();c=n.width,h=n.height,fe.bind(document,"mousemove",u),fe.bind(document,"mouseup",p)}))}I(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)},Cu.prototype.destroy=function(){var e=this.parent,t=this.content,n=this.resizeHandle;t.innerText="",e.removeAttribute("style"),t.removeAttribute("style"),fe.unbind(t,"keydown",this.keyHandler),fe.unbind(t,"mousedown",Su),fe.unbind(t,"input",this.autoResize),fe.unbind(t,"paste",this.handlePaste),n&&(n.removeAttribute("style"),Ee(n)),Ee(e)},Cu.prototype.getValue=function(){return this.content.innerText.trim()},Cu.prototype.getSelection=function(){return window.getSelection().getRangeAt(0)},Cu.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)},Pu.$inject=["eventBus","canvas"],Pu.prototype.registerProvider=function(e){this._providers.push(e)},Pu.prototype.isActive=function(e){return!(!this._active||e&&this._active.element!==e)},Pu.prototype.cancel=function(){this._active&&(this._fire("cancel"),this.close())},Pu.prototype._fire=function(e,t){this._eventBus.fire("directEditing."+e,t||{active:this._active})},Pu.prototype.close=function(){this._textbox.destroy(),this._fire("deactivate"),this._active=null,this.resizable=void 0},Pu.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()}},Pu.prototype.getValue=function(){return this._textbox.getValue()},Pu.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())},Pu.prototype._handleResize=function(e){this._fire("resize",e)},Pu.prototype.activate=function(e){var t;this.isActive()&&this.cancel();var n=g(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 $u={__depends__:[fs],__init__:["directEditing"],directEditing:["type",Pu]},Au=["marker-start","marker-mid","marker-end"],Ru=["circle","ellipse","line","path","polygon","polyline","path","rect"];function Tu(e,t,n,i){this._elementRegistry=e,this._canvas=n,this._styles=i,this._clonedMarkers={};var r=this;t.on("drag.cleanup",(function(){b(r._clonedMarkers,(function(e){De(e)})),r._clonedMarkers={}}))}Tu.$inject=["elementRegistry","eventBus","canvas","styles"],Tu.prototype.getGfx=function(e){return this._elementRegistry.getGraphics(e)},Tu.prototype.addDragger=function(e,t,n){var i=Le(n=n||this.getGfx(e)),r=n.getBoundingClientRect();return this._cloneMarkers(ui(i)),Ae(i,this._styles.cls("djs-dragger",[],{x:r.top,y:r.left})),Se(t,i),i},Tu.prototype.addFrame=function(e,t){var n=Ie("rect",{class:"djs-resize-overlay",width:e.width,height:e.height,x:e.x,y:e.y});return Se(t,n),n},Tu.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!==Ru.indexOf(e.nodeName)})(e)&&Au.forEach((function(n){if(Ae(e,n)){var i=function(e,t,n){var i=(r=Ae(e,t),r.match(/url\(['"]?#([^'"]*)['"]?\)/)[1]);var r;return _e("marker#"+i,n||document)}(e,n,t._canvas.getContainer());t._cloneMarker(e,i,n)}}))},Tu.prototype._cloneMarker=function(e,t,n){var i=t.id,r=this._clonedMarkers[i];if(!r){var o=i+"-clone";(r=Le(t)).id=o,Te(r).add("djs-dragger").add("djs-dragger-marker"),this._clonedMarkers[i]=r;var s=_e("defs",this._canvas._svg);s||(s=Ie("defs"),Se(this._canvas._svg,s)),Se(s,r)}var a=function(e){return"url(#"+e+")"}(this._clonedMarkers[i].id);Ae(e,n,a)};var Mu={__init__:["previewSupport"],previewSupport:["type",Tu]},Du="drop-ok",Bu="drop-not-ok",Lu="attach-ok",Nu="new-parent",ju="create",zu=2e3;function Iu(e,t,n,i,r){function o(t,n){[Lu,Du,Bu,Nu].forEach((function(i){i===n?e.addMarker(t,i):e.removeMarker(t,i)}))}function s(){var e=t.context();e&&e.prefix===ju&&t.cancel()}n.on(["create.move","create.hover"],(function(e){var t=e.context,n=t.elements,i=e.hover,s=t.source,a=t.hints||{};if(!i)return t.canExecute=!1,void(t.target=null);Xu(e);var l={x:e.x,y:e.y},c=t.canExecute=i&&function(e,t,n,i,o){if(!t)return!1;var s=g(e=y(e,(function(t){var n=t.labelTarget;return!(t.parent||kn(t)&&-1!==e.indexOf(n))})),(function(e){return!En(e)})),a=!1,l=!1,c=!1;Qu(e)&&(a=r.allowed("shape.attach",{position:n,shape:s,target:t})),a||(c=Qu(e)?r.allowed("shape.create",{position:n,shape:s,source:i,target:t}):r.allowed("elements.create",{elements:e,position:n,target:t}));var h=o.connectionTarget;return c||a?(s&&i&&(l=r.allowed("connection.create",{source:h===i?s:i,target:h===i?i:s,hints:{targetParent:t,targetAttach:a}})),{attach:a,connect:l}):(null===c||null===a)&&null}(n,i,l,s,a);i&&null!==c&&(t.target=i,c&&c.attach?o(i,Lu):o(i,c?Nu:Bu))})),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,s=t.target,a=t.canExecute,l=a&&a.attach,c=a&&a.connect,h=t.hints||{};if(!1===a||!s)return!1;Xu(e);var u={x:e.x,y:e.y};r=c?i.appendShape(n,r,u,s,{attach:l,connection:!0===c?{}:c,connectionTarget:h.connectionTarget}):g(o=i.createElements(o,u,s,I({},h,{attach:l})),(function(e){return!En(e)})),I(t,{elements:o,shape:r}),I(e,{elements:o,shape:r})})),n.on("create.init",(function(){n.on("elements.changed",s),n.once(["create.cancel","create.end"],zu,(function(){n.off("elements.changed",s)}))})),this.start=function(e,n,i){c(n)||(n=[n]);var r=g(n,(function(e){return!En(e)}));if(r){i=I({elements:n,hints:{},shape:r},i||{}),b(n,(function(e){u(e.x)||(e.x=0),u(e.y)||(e.y=0)}));var o=Et(y(n,(function(e){return!e.hidden})));b(n,(function(e){En(e)&&(e.waypoints=E(e.waypoints,(function(e){return{x:e.x-o.x-o.width/2,y:e.y-o.y-o.height/2}}))),I(e,{x:e.x-o.x-o.width/2,y:e.y-o.y-o.height/2})})),t.init(e,ju,{cursor:"grabbing",autoActivate:!0,data:{shape:r,elements:n,context:i}})}}}function Xu(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 Qu(e){return e&&1===e.length&&!En(e[0])}Iu.$inject=["canvas","dragging","eventBus","modeling","rules"];var Fu=750;function Vu(e,t,n,i,r){t.on("create.move",Fu,(function(t){var o=t.hover,s=t.context,a=s.elements,l=s.dragGroup;l||(l=s.dragGroup=function(e){var t=Ie("g");Ae(t,r.cls("djs-drag-group",["no-events"]));var o=Ie("g");return e.forEach((function(e){var r;e.hidden||(e.waypoints?(r=n._createContainer("connection",o),n.drawConnection(ui(r),e)):(r=n._createContainer("shape",o),n.drawShape(ui(r),e),di(r,e.x,e.y)),i.addDragger(e,t,r))})),t}(a)),o?(l.parentNode||Se(e.getActiveLayer(),l),di(l,t.x,t.y)):De(l)})),t.on("create.cleanup",(function(e){var t=e.context.dragGroup;t&&De(t)}))}Vu.$inject=["canvas","eventBus","graphicsFactory","previewSupport","styles"];var qu={__depends__:[ah,Mu,ph,ks],__init__:["create","createPreview"],create:["type",Iu],createPreview:["type",Vu]};function Hu(){}Hu.prototype.get=function(){return this._data},Hu.prototype.set=function(e){this._data=e},Hu.prototype.clear=function(){var e=this._data;return delete this._data,e},Hu.prototype.isEmpty=function(){return!this._data};var Wu={clipboard:["type",Hu]};function Yu(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)}))}Yu.$inject=["eventBus"],Yu.prototype.getLastMoveEvent=function(){return this._lastMoveEvent||function(e,t){var n=document.createEvent("MouseEvent"),i=e,r=t,o=e,s=t;n.initMouseEvent&&n.initMouseEvent("mousemove",!0,!0,window,0,i,r,o,s,!1,!1,!1,!1,0,null);return n}(0,0)};var Gu={__init__:["mouse"],mouse:["type",Yu]};function Uu(e,t,n,i,r,o,s,a){this._canvas=e,this._create=t,this._clipboard=n,this._elementFactory=i,this._eventBus=r,this._modeling=o,this._mouse=s,this._rules=a,r.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element,i=e.elements;t.priority=1,t.id=n.id;var r=g(i,(function(e){return e===n.parent}));r&&(t.parent=n.parent.id),function(e){return!!e.host}(n)&&(t.priority=2,t.host=n.host.id),En(n)&&(t.priority=3,t.source=n.source.id,t.target=n.target.id,t.waypoints=function(e){return E(e.waypoints,(function(e){return(e=Zu(e)).original&&(e.original=Zu(e.original)),e}))}(n)),kn(n)&&(t.priority=4,t.labelTarget=n.labelTarget.id),b(["x","y","width","height"],(function(e){u(n[e])&&(t[e]=n[e])})),t.hidden=n.hidden,t.collapsed=n.collapsed})),r.on("copyPaste.pasteElements",(function(e){I(e.hints,{createElementsBehavior:!1})}))}function Zu(e){return I({},e)}function Ku(e,t){var n=t.indexOf(e);return-1===n?t:t.splice(n,1)}Uu.$inject=["canvas","create","clipboard","elementFactory","eventBus","modeling","mouse","rules"],Uu.prototype.copy=function(e){var t,n;return c(e)||(e=e?[e]:[]),n=!1===(t=this._eventBus.fire("copyPaste.canCopyElements",{elements:e}))?{}:this.createTree(c(t)?t:e),this._clipboard.set(n),this._eventBus.fire("copyPaste.elementsCopied",{elements:e,tree:n}),n},Uu.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||{}})}},Uu.prototype._paste=function(e,t,n,i){b(e,(function(e){u(e.x)||(e.x=0),u(e.y)||(e.y=0)}));var r=Et(e);return b(e,(function(e){En(e)&&(e.waypoints=E(e.waypoints,(function(e){return{x:e.x-r.x-r.width/2,y:e.y-r.y-r.height/2}}))),I(e,{x:e.x-r.x-r.width/2,y:e.y-r.y-r.height/2})})),this._modeling.createElements(e,n,t,I({},i))},Uu.prototype._createElements=function(e){var t=this,n=this._eventBus,i={},r=[];return b(e,(function(e,o){b(e=R(e,"priority"),(function(e){var o,s=I({},V(e,["priority"]));return i[e.parent]?s.parent=i[e.parent]:delete s.parent,n.fire("copyPaste.pasteElement",{cache:i,descriptor:s}),En(s)?(s.source=i[e.source],s.target=i[e.target],o=i[e.id]=t.createConnection(s),void r.push(o)):kn(s)?(s.labelTarget=i[s.labelTarget],o=i[e.id]=t.createLabel(s),void r.push(o)):(s.host&&(s.host=i[s.host]),o=i[e.id]=t.createShape(s),void r.push(o))}))})),r},Uu.prototype.createConnection=function(e){return this._elementFactory.createConnection(V(e,["id"]))},Uu.prototype.createLabel=function(e){return this._elementFactory.createLabel(V(e,["id"]))},Uu.prototype.createShape=function(e){return this._elementFactory.createShape(V(e,["id"]))},Uu.prototype.hasRelations=function(e,t){var n,i;return!(En(e)&&(n=g(t,T({id:e.source.id})),i=g(t,T({id:e.target.id})),!n||!i))&&!(kn(e)&&!g(t,T({id:e.labelTarget.id})))},Uu.prototype.createTree=function(e){var t=this._rules,n=this,i={},r=[];function o(e,t){var n=g(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),r.push({element:n.element,depth:t})):r.push({element:e,depth:t})}return _t(bt(e),(function(e,t,i){if(!kn(e)){b(e.labels,(function(e){o(e,i)})),b([e.attachers,e.incoming,e.outgoing],(function(e){e&&e.length&&b(e,(function(e){b(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=E(r,(function(e){return e.element})),r=E(r,(function(t){return t.descriptor={},n._eventBus.fire("copyPaste.copyElement",{descriptor:t.descriptor,element:t.element,elements:e}),t})),r=R(r,(function(e){return e.descriptor.priority})),e=E(r,(function(e){return e.element})),b(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)?Ku(r.element,e):(i[o]||(i[o]=[]),i[o].push(r.descriptor)):Ku(r.element,e)})),i};var Ju={__depends__:[Wu,qu,Gu,ph],__init__:["copyPaste"],copyPaste:["type",Uu]};function ep(e,t,n){c(n)||(n=[n]),b(n,(function(n){s(e[n])||(t[n]=e[n])}))}var tp=750;function np(e,t,n){function i(t,i){var r=e.create(t.$type);return n.copyElement(t,r,null,i)}t.on("copyPaste.copyElement",tp,(function(e){var t=e.descriptor,n=e.element,r=Hr(n);if(kn(n))return t;var o=t.businessObject=i(r,!0),s=t.di=i(Wr(n),!0);s.bpmnElement=o,ep(o,t,"name"),ep(s,t,"isExpanded"),r.default&&(t.default=r.default.id)}));var r="-bpmn-js-refs";t.on("copyPaste.pasteElement",(function(e){var t=e.cache,n=e.descriptor,r=n.businessObject,o=n.di;if(kn(n))return n.businessObject=Hr(t[n.labelTarget]),void(n.di=Wr(t[n.labelTarget]));r=n.businessObject=i(r),(o=n.di=i(o)).bpmnElement=r,ep(n,r,["isExpanded","name"]),n.type=r.$type})),t.on("copyPaste.copyElement",tp,(function(e){var t=e.descriptor,n=e.element;if(Vr(n,"bpmn:Participant")){var r=Hr(n);r.processRef&&(t.processRef=i(r.processRef,!0))}})),t.on("copyPaste.pasteElement",(function(e){var t=e.descriptor,n=t.processRef;n&&(t.processRef=i(n))})),t.on("copyPaste.pasteElement",tp,(function(e){var t=e.cache;!function(e,t){e[r]=t}(t,function(e,t,n){var i=Hr(e);return e.default&&(n[e.default]={element:i,property:"default"}),e.host&&(Hr(e).attachedToRef=Hr(t[e.host])),V(n,w(n,(function(t,n,r){var o=n.element,s=n.property;return r===e.id&&(o[s]=i,t.push(e.id)),t}),[]))}(e.descriptor,t,function(e){return e[r]=e[r]||{}}(t)))}))}np.$inject=["bpmnFactory","eventBus","moddleCopy"];var ip=["artifacts","dataInputAssociations","dataOutputAssociations","default","flowElements","lanes","incoming","outgoing","categoryValue"];function rp(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 R(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===ip.indexOf(i))&&(!(i&&n&&!g(n.properties,T({name:i})))&&void 0)})),e.on("moddleCopy.canSetCopiedProperty",(function(e){var t,n,i=e.property;if(n="bpmn:ExtensionElements",(t=i)&&p(t.$instanceOf)&&t.$instanceOf(n)&&(!i.values||!i.values.length))return!1}))}function op(e,t){return w(e.properties,(function(e,n){return t&&n.default?e:e.concat(n.name)}),[])}rp.$inject=["eventBus","bpmnFactory","moddle"],rp.prototype.copyElement=function(e,t,n,i=!1){var r=this;n&&!c(n)&&(n=[n]),n=n||op(e.$descriptor);var o=this._eventBus.fire("moddleCopy.canCopyProperties",{propertyNames:n,sourceElement:e,targetElement:t,clone:i});return!1===o||(c(o)&&(n=o),b(n,(function(n){var o;m(e,n)&&(o=e.get(n));var s=r.copyProperty(o,t,n,i);a(s)&&(!1!==r._eventBus.fire("moddleCopy.canSetCopiedProperty",{parent:t,property:s,propertyName:n})&&t.set(n,s))}))),t},rp.prototype.copyProperty=function(e,t,n,i=!1){var r=this,o=this._eventBus.fire("moddleCopy.canCopyProperty",{parent:t,property:e,propertyName:n,clone:i});if(!1!==o){if(o)return h(o)&&o.$type&&!o.$parent&&(o.$parent=t),o;var s=this._moddle.getPropertyDescriptor(t,n);if(!s.isReference){if(s.isId)return e&&this._copyId(e,t,i);if(c(e))return w(e,(function(e,s){return(o=r.copyProperty(s,t,n,i))?e.concat(o):e}),[]);if(h(e)&&e.$type){if(this._moddle.getElementDescriptor(e).isGeneric)return;return(o=r._bpmnFactory.create(e.$type)).$parent=t,o=r.copyElement(e,o,null,i)}return e}}},rp.prototype._copyId=function(e,t,n=!1){return n?e:this._moddle.ids.assigned(e)?void 0:(this._moddle.ids.claim(e,t),e)};var sp={__depends__:[Ju],__init__:["bpmnCopyPaste","moddleCopy"],bpmnCopyPaste:["type",np],moddleCopy:["type",rp]},ap=Math.round;function lp(e,t){this._modeling=e,this._eventBus=t}function cp(e,t){t.on("replace.end",500,(function(t){const{newElement:n,hints:i={}}=t;!1!==i.select&&e.select(n)}))}lp.$inject=["modeling","eventBus"],lp.prototype.replaceElement=function(e,t,n){if(e.waypoints)return null;var i=this._modeling,r=this._eventBus;r.fire("replace.start",{element:e,attrs:t,hints:n});var o=t.width||e.width,s=t.height||e.height,a=t.x||e.x,l=t.y||e.y,c=ap(a+o/2),h=ap(l+s/2),u=i.replaceShape(e,I({},t,{x:c,y:h,width:o,height:s}),n);return r.fire("replace.end",{element:e,newElement:u,hints:n}),u},cp.$inject=["selection","eventBus"];var hp={__init__:["replace","replaceSelectionBehavior"],replaceSelectionBehavior:["type",cp],replace:["type",lp]};var up=["cancelActivity","instantiate","eventGatewayType","triggeredByEvent","isInterrupting"];function pp(e,t,n,i,r,o){this.replaceElement=function(a,l,h){h=h||{};var u=l.type,p=a.businessObject;if(dp(p)&&"bpmn:SubProcess"===u&&function(e,t){var n=e&&m(e,"collapsed")?e.collapsed:!ho(e);return n!==(t&&(m(t,"collapsed")||m(t,"isExpanded"))?m(t,"collapsed")?t.collapsed:!t.isExpanded:n)}(a,l))return i.toggleCollapse(a),a;var d=e.create(u),f={type:u,businessObject:d,di:{}};!function(e,t,n){c(n)||(n=[n]),b(n,(function(n){s(e[n])||(t[n]=e[n])}))}(a.di,f.di,["fill","stroke","background-color","border-color","color"]);var g=function(e,t){return e.filter((function(e){return t.includes(e)}))}(op(p.$descriptor),op(d.$descriptor,!0));I(d,F(l,up));var v=y(g,(function(e){return"eventDefinitions"===e?fp(a,l.eventDefinitionType):"loopCharacteristics"===e?!po(d):!m(d,e)&&(("processRef"!==e||!1!==l.isExpanded)&&"triggeredByEvent"!==e)}));if(d=n.copyElement(p,d,v),l.eventDefinitionType&&(fp(d,l.eventDefinitionType)||(f.eventDefinitionType=l.eventDefinitionType,f.eventDefinitionAttrs=l.eventDefinitionAttrs)),Vr(p,"bpmn:Activity")){if(dp(p))f.isExpanded=ho(a);else if(l&&m(l,"isExpanded")){f.isExpanded=l.isExpanded;var x=t.getDefaultSize(d,{isExpanded:f.isExpanded});f.width=x.width,f.height=x.height,f.x=a.x-(f.width-a.width)/2,f.y=a.y-(f.height-a.height)/2}ho(a)&&!Vr(p,"bpmn:Task")&&f.isExpanded&&(f.width=a.width,f.height=a.height)}return dp(p)&&!dp(d)&&(h.moveChildren=!1),Vr(p,"bpmn:Participant")&&(!0===l.isExpanded?d.processRef=e.create("bpmn:Process"):h.moveChildren=!1,f.width=a.width,f.height=t.getDefaultSize(f).height),o.allowed("shape.resize",{shape:d})||(f.height=t.getDefaultSize(f).height,f.width=t.getDefaultSize(f).width),d.name=p.name,qr(p,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&qr(d,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&(d.default=p.default),l.host&&!Vr(p,"bpmn:BoundaryEvent")&&Vr(d,"bpmn:BoundaryEvent")&&(f.host=l.host),"bpmn:DataStoreReference"!==f.type&&"bpmn:DataObjectReference"!==f.type||(f.x=a.x+(a.width-f.width)/2),r.replaceElement(a,f,h)}}function dp(e){return Vr(e,"bpmn:SubProcess")}function fp(e,t){var n=Hr(e);return t&&n.get("eventDefinitions").some((function(e){return Vr(e,t)}))}pp.$inject=["bpmnFactory","elementFactory","moddleCopy","modeling","replace","rules"];var mp={__depends__:[sp,hp,ks],bpmnReplace:["type",pp]};function gp(e){return function(t){var n=t.target,i=Hr(e),r=i.eventDefinitions&&i.eventDefinitions[0],o=i.$type===n.type,s=(r&&r.$type)===n.eventDefinitionType,a=!!n.triggeredByEvent==!!i.triggeredByEvent,l=void 0===n.isExpanded||n.isExpanded===ho(e);return!(o&&s&&a&&l)}}var vp=[{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"}}],yp=[{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"}}],bp=[{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"}}],xp=[{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"}}],wp=[{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"}}],_p=[{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}}],Op=[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{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}}],Ep=Op,kp=[{label:"Task",actionName:"replace-with-task",className:"bpmn-icon-task",target:{type:"bpmn:Task"}},{label:"User Task",actionName:"replace-with-user-task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},{label:"Service Task",actionName:"replace-with-service-task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},{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:"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:"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}}],Sp=[{label:"Data Store Reference",actionName:"replace-with-data-store-reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}}],Cp=[{label:"Data Object Reference",actionName:"replace-with-data-object-reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}}],Pp=[{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}}],$p=[{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}}],Ap=[{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"}],Rp=[{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 Tp(e,t,n,i,r,o,s){this._bpmnFactory=e,this._popupMenu=t,this._modeling=n,this._moddle=i,this._bpmnReplace=r,this._rules=o,this._translate=s,this._register()}Tp.$inject=["bpmnFactory","popupMenu","modeling","moddle","bpmnReplace","rules","translate"],Tp.prototype._register=function(){this._popupMenu.registerProvider("bpmn-replace",this)},Tp.prototype.getPopupMenuEntries=function(e){var t=e.businessObject,n=this._rules,i=[];if(c(e)||!n.allowed("shape.replace",{element:e}))return{};var r=gp(e);return Vr(t,"bpmn:DataObjectReference")?this._createEntries(e,Sp):Vr(t,"bpmn:DataStoreReference")&&!Vr(e.parent,"bpmn:Collaboration")?this._createEntries(e,Cp):Vr(t,"bpmn:StartEvent")&&!Vr(t.$parent,"bpmn:SubProcess")?(i=y(vp,r),this._createEntries(e,i)):Vr(t,"bpmn:Participant")?(i=y(Rp,(function(t){return ho(e)!==t.target.isExpanded})),this._createEntries(e,i)):Vr(t,"bpmn:StartEvent")&&po(t.$parent)?(i=y($p,(function(e){var n=!1!==e.target.isInterrupting,i=t.isInterrupting===n;return r(e)||!r(e)&&!i})),this._createEntries(e,i)):Vr(t,"bpmn:StartEvent")&&!po(t.$parent)&&Vr(t.$parent,"bpmn:SubProcess")?(i=y(yp,r),this._createEntries(e,i)):Vr(t,"bpmn:EndEvent")?(i=y(xp,(function(e){return!("bpmn:CancelEventDefinition"==e.target.eventDefinitionType&&!Vr(t.$parent,"bpmn:Transaction"))&&r(e)})),this._createEntries(e,i)):Vr(t,"bpmn:BoundaryEvent")?(i=y(Pp,(function(e){var n=e.target;if("bpmn:CancelEventDefinition"==n.eventDefinitionType&&!Vr(t.attachedToRef,"bpmn:Transaction"))return!1;var i=!1!==n.cancelActivity,o=t.cancelActivity==i;return r(e)||!r(e)&&!o})),this._createEntries(e,i)):Vr(t,"bpmn:IntermediateCatchEvent")||Vr(t,"bpmn:IntermediateThrowEvent")?(i=y(bp,r),this._createEntries(e,i)):Vr(t,"bpmn:Gateway")?(i=y(wp,r),this._createEntries(e,i)):Vr(t,"bpmn:Transaction")?(i=y(Op,r),this._createEntries(e,i)):po(t)&&ho(e)?(i=y(Ep,r),this._createEntries(e,i)):Vr(t,"bpmn:SubProcess")&&ho(e)?(i=y(_p,r),this._createEntries(e,i)):Vr(t,"bpmn:AdHocSubProcess")&&!ho(e)?(i=y(kp,(function(e){var t=e.target,n="bpmn:SubProcess"===t.type,i=!0===t.isExpanded;return gp(t)&&(!n||i)})),this._createEntries(e,i)):Vr(t,"bpmn:SequenceFlow")?this._createSequenceFlowEntries(e,Ap):Vr(t,"bpmn:FlowNode")?(i=y(kp,r),Vr(t,"bpmn:SubProcess")&&!ho(e)&&(i=y(i,(function(e){return"Sub Process (collapsed)"!==e.label}))),this._createEntries(e,i)):{}},Tp.prototype.getPopupMenuHeaderEntries=function(e){var t={};return Vr(e,"bpmn:Activity")&&!po(e)&&(t={...t,...this._getLoopCharacteristicsHeaderEntries(e)}),Vr(e,"bpmn:DataObjectReference")&&(t={...t,...this._getCollectionHeaderEntries(e)}),Vr(e,"bpmn:Participant")&&(t={...t,...this._getParticipantMultiplicityHeaderEntries(e)}),!Vr(e,"bpmn:SubProcess")||Vr(e,"bpmn:Transaction")||po(e)||(t={...t,...this._getAdHocHeaderEntries(e)}),t},Tp.prototype._createEntries=function(e,t){var n={},i=this;return b(t,(function(t){n[t.actionName]=i._createEntry(t,e)})),n},Tp.prototype._createSequenceFlowEntries=function(e,t){var n=Hr(e),i={},r=this._modeling,o=this._moddle,s=this;return b(t,(function(t){switch(t.actionName){case"replace-with-default-flow":n.sourceRef.default!==n&&(Vr(n.sourceRef,"bpmn:ExclusiveGateway")||Vr(n.sourceRef,"bpmn:InclusiveGateway")||Vr(n.sourceRef,"bpmn:ComplexGateway")||Vr(n.sourceRef,"bpmn:Activity"))&&(i={...i,[t.actionName]:s._createEntry(t,e,(function(){r.updateProperties(e.source,{default:n})}))});break;case"replace-with-conditional-flow":!n.conditionExpression&&Vr(n.sourceRef,"bpmn:Activity")&&(i={...i,[t.actionName]:s._createEntry(t,e,(function(){var t=o.create("bpmn:FormalExpression",{body:""});r.updateProperties(e,{conditionExpression:t})}))});break;default:Vr(n.sourceRef,"bpmn:Activity")&&n.conditionExpression&&(i={...i,[t.actionName]:s._createEntry(t,e,(function(){r.updateProperties(e,{conditionExpression:void 0})}))}),(Vr(n.sourceRef,"bpmn:ExclusiveGateway")||Vr(n.sourceRef,"bpmn:InclusiveGateway")||Vr(n.sourceRef,"bpmn:ComplexGateway")||Vr(n.sourceRef,"bpmn:Activity"))&&n.sourceRef.default===n&&(i={...i,[t.actionName]:s._createEntry(t,e,(function(){r.updateProperties(e.source,{default:void 0})}))})}})),i},Tp.prototype._createEntry=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,action:n}},Tp.prototype._getLoopCharacteristicsHeaderEntries=function(e){var t=this,n=this._translate;function i(n,i){var r=Hr(e).loopCharacteristics;i.active?r=void 0:(!s(i.options.isSequential)&&r&&Vr(r,i.options.loopCharacteristics)||(r=t._moddle.create(i.options.loopCharacteristics)),r.isSequential=i.options.isSequential),t._modeling.updateProperties(e,{loopCharacteristics:r})}var r,o,a,l=Hr(e).loopCharacteristics;return l&&(r=l.isSequential,o=void 0===l.isSequential,a=void 0!==l.isSequential&&!l.isSequential),{"toggle-parallel-mi":{className:"bpmn-icon-parallel-mi-marker",title:n("Parallel Multi Instance"),active:a,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!1}},"toggle-sequential-mi":{className:"bpmn-icon-sequential-mi-marker",title:n("Sequential Multi Instance"),active:r,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!0}},"toggle-loop":{className:"bpmn-icon-loop-marker",title:n("Loop"),active:o,action:i,options:{loopCharacteristics:"bpmn:StandardLoopCharacteristics"}}}},Tp.prototype._getCollectionHeaderEntries=function(e){var t=this,n=this._translate,i=e.businessObject.dataObjectRef;if(!i)return{};var r=i.isCollection;return{"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})}}}},Tp.prototype._getParticipantMultiplicityHeaderEntries=function(e){var t=this,n=this._bpmnFactory,i=this._translate;var r=e.businessObject.participantMultiplicity;return{"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})}}}},Tp.prototype._getAdHocHeaderEntries=function(e){var t=this._translate,n=Vr(Hr(e),"bpmn:AdHocSubProcess"),i=this._bpmnReplace.replaceElement;return{"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 Mp={__depends__:[Oc,mp,Yc],__init__:["replaceMenuProvider"],replaceMenuProvider:["type",Tp]},Dp=Math.max,Bp=Math.min,Lp=20;function Np(e,t){return{top:e.top-t.top,right:e.right-t.right,bottom:e.bottom-t.bottom,left:e.left-t.left}}function jp(e,t,n){var i=t[e],r=n.min&&n.min[e],o=n.max&&n.max[e];return u(r)&&(i=(/top|left/.test(e)?Bp:Dp)(i,r)),u(o)&&(i=(/top|left/.test(e)?Dp:Bp)(i,o)),i}function zp(e,t){return void 0!==e?e:Lp}function Ip(e){return!e.waypoints&&"label"!==e.type}function Xp(e,t){var n;if((n=void 0===e.length?y(e.children,Ip):e).length)return function(e,t){var n,i,r,o;return"object"==typeof t?(n=zp(t.left),i=zp(t.right),r=zp(t.top),o=zp(t.bottom)):n=i=r=o=zp(t),{x:e.x-n,y:e.y-r,width:e.width+n+i,height:e.height+r+o}}(Et(n),t)}var Qp=Math.abs;var Fp=["bpmn:Participant","bpmn:Process","bpmn:SubProcess"],Vp=30;function qp(e,t){return t=t||[],e.children.filter((function(e){Vr(e,"bpmn:Lane")&&(qp(e,t),t.push(e))})),t}function Hp(e){return e.children.filter((function(e){return Vr(e,"bpmn:Lane")}))}function Wp(e){return Vc(e,Fp)||e}function Yp(e,t){var n=Wp(e),i=qp(n,Vr(n,"bpmn:Process")?[]:[n]),r=Pn(e),o=Pn(t),s=function(e,t){return Np(Pn(t),Pn(e))}(e,t),a=[];return i.forEach((function(t){if(t!==e){var n,i,l=0,c=s.right,h=0,u=s.left,p=Pn(t);s.top&&(Qp(p.bottom-r.top)<10&&(h=o.top-p.bottom),Qp(p.top-r.top)<5&&(l=o.top-p.top)),s.bottom&&(Qp(p.top-r.bottom)<10&&(l=o.bottom-p.top),Qp(p.bottom-r.bottom)<5&&(h=o.bottom-p.bottom)),(l||c||h||u)&&a.push({shape:t,newBounds:(n=t,i={top:l,right:c,bottom:h,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)})})}})),a}function Gp(e,t,n,i,r,o,s,a,l,c,h,u){e=e||{},i.registerProvider(this),this._contextPad=i,this._modeling=r,this._elementFactory=o,this._connect=s,this._create=a,this._popupMenu=l,this._canvas=c,this._rules=h,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(ls(e)&&i.isOpen(t)){var n=i.getEntries(t);n.replace&&n.replace.action.click(e,t)}}))}function Up(e,t,n){var i=e.$instanceOf(t),r=!1;return b(e.eventDefinitions||[],(function(e){e.$type===n&&(r=!0)})),i&&r}Gp.$inject=["config.contextPad","injector","eventBus","contextPad","modeling","elementFactory","connect","create","popupMenu","canvas","rules","translate"],Gp.prototype.getMultiElementContextPadEntries=function(e){var t=this._modeling,n={};return this._isDeleteAllowed(e)&&I(n,{delete:{group:"edit",className:"bpmn-icon-trash",title:this._translate("Remove"),action:{click:function(e,n){t.removeElements(n.slice())}}}}),n},Gp.prototype._isDeleteAllowed=function(e){var t=this._rules.allowed("elements.delete",{elements:e});return c(t)?_(t,(function(e){return n=e,-1!==t.indexOf(n);var n})):t},Gp.prototype.getContextPadEntries=function(e){var t=this._contextPad,n=this._modeling,i=this._elementFactory,r=this._connect,o=this._create,s=this._popupMenu,a=this._rules,l=this._autoPlace,h=this._translate,u={};if("label"===e.type)return u;var p=e.businessObject;function d(e,t){r.start(e,t)}function f(e,t,n,r){function s(t,n){var s=i.createShape(I({type:e},r));o.start(t,s,{source:n})}"string"!=typeof n&&(r=n,n=h("Append {type}",{type:e.replace(/^bpmn:/,"")}));var a=l?function(t,n){var o=i.createShape(I({type:e},r));l.append(n,o)}:s;return{group:"model",className:t,title:n,action:{dragstart:s,click:a}}}function m(e){return function(i,r){n.splitLane(r,e),t.open(r,!0)}}if(qr(p,["bpmn:Lane","bpmn:Participant"])&&ho(e)){var g=Hp(e);I(u,{"lane-insert-above":{group:"lane-insert-above",className:"bpmn-icon-lane-insert-above",title:h("Add Lane above"),action:{click:function(e,t){n.addLane(t,"top")}}}}),g.length<2&&(e.height>=120&&I(u,{"lane-divide-two":{group:"lane-divide",className:"bpmn-icon-lane-divide-two",title:h("Divide into two Lanes"),action:{click:m(2)}}}),e.height>=180&&I(u,{"lane-divide-three":{group:"lane-divide",className:"bpmn-icon-lane-divide-three",title:h("Divide into three Lanes"),action:{click:m(3)}}})),I(u,{"lane-insert-below":{group:"lane-insert-below",className:"bpmn-icon-lane-insert-below",title:h("Add Lane below"),action:{click:function(e,t){n.addLane(t,"bottom")}}}})}Vr(p,"bpmn:FlowNode")&&(Vr(p,"bpmn:EventBasedGateway")?I(u,{"append.receive-task":f("bpmn:ReceiveTask","bpmn-icon-receive-task",h("Append ReceiveTask")),"append.message-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-message",h("Append MessageIntermediateCatchEvent"),{eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-timer",h("Append TimerIntermediateCatchEvent"),{eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condition-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-condition",h("Append ConditionIntermediateCatchEvent"),{eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-signal",h("Append SignalIntermediateCatchEvent"),{eventDefinitionType:"bpmn:SignalEventDefinition"})}):Up(p,"bpmn:BoundaryEvent","bpmn:CompensateEventDefinition")?I(u,{"append.compensation-activity":f("bpmn:Task","bpmn-icon-task",h("Append compensation activity"),{isForCompensation:!0})}):Vr(p,"bpmn:EndEvent")||p.isForCompensation||Up(p,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")||po(p)||I(u,{"append.end-event":f("bpmn:EndEvent","bpmn-icon-end-event-none",h("Append EndEvent")),"append.gateway":f("bpmn:ExclusiveGateway","bpmn-icon-gateway-none",h("Append Gateway")),"append.append-task":f("bpmn:Task","bpmn-icon-task",h("Append Task")),"append.intermediate-event":f("bpmn:IntermediateThrowEvent","bpmn-icon-intermediate-event-none",h("Append Intermediate/Boundary Event"))})),s.isEmpty(e,"bpmn-replace")||I(u,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:h("Change type"),action:{click:function(e,n){var i=I(function(e){var n=t.getPad(e).html.getBoundingClientRect();return{x:n.left,y:n.bottom+5}}(n),{cursor:{x:e.x,y:e.y}});s.open(n,"bpmn-replace",i,{title:h("Change element"),width:300,search:!0})}}}}),Vr(p,"bpmn:SequenceFlow")&&I(u,{"append.text-annotation":f("bpmn:TextAnnotation","bpmn-icon-text-annotation")}),qr(p,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference"])&&I(u,{"append.text-annotation":f("bpmn:TextAnnotation","bpmn-icon-text-annotation"),connect:{group:"connect",className:"bpmn-icon-connection-multi",title:h("Connect using "+(p.isForCompensation?"":"Sequence/MessageFlow or ")+"Association"),action:{click:d,dragstart:d}}}),Vr(p,"bpmn:TextAnnotation")&&I(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:h("Connect using Association"),action:{click:d,dragstart:d}}}),qr(p,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&I(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:h("Connect using DataInputAssociation"),action:{click:d,dragstart:d}}}),Vr(p,"bpmn:Group")&&I(u,{"append.text-annotation":f("bpmn:TextAnnotation","bpmn-icon-text-annotation")});var v=a.allowed("elements.delete",{elements:[e]});return c(v)&&(v=v[0]===e),v&&I(u,{delete:{group:"edit",className:"bpmn-icon-trash",title:h("Remove"),action:{click:function(e,t){n.removeElements([t])}}}}),u};var Zp={__depends__:[$u,dl,ks,xu,qu,Mp],__init__:["contextPadProvider"],contextPadProvider:["type",Gp]},Kp={horizontal:["x","width"],vertical:["y","height"]};function Jp(e,t){this._modeling=e,this._filters=[],this.registerFilter((function(e){var n=t.allowed("elements.distribute",{elements:e});return c(n)?n:n?e:[]}))}Jp.$inject=["modeling","rules"],Jp.prototype.registerFilter=function(e){if("function"!=typeof e)throw new Error("the filter has to be a function");this._filters.push(e)},Jp.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},Jp.prototype._filterElements=function(e){var t=this._filters,n=this._axis,i=this._dimension,r=[].concat(e);return t.length?(b(t,(function(e){r=e(r,n,i)})),r):e},Jp.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 b(R(e,i),(function(e,o){var s,a=n._findRange(e,i,r),l=t[t.length-1];l&&n._hasIntersection(l.range,a)?t[t.length-1].elements.push(e):(s={range:a,elements:[e]},t.push(s))})),t},Jp.prototype._setOrientation=function(e){var t=Kp[e];this._axis=t[0],this._dimension=t[1]},Jp.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)},Jp.prototype._findRange=function(e){var t=e[this._axis];return{min:t+5,max:t+e[this._dimension]-5}};var ed={__init__:["distributeElements"],distributeElements:["type",Jp]};function td(e){$c.call(this,e)}td.$inject=["eventBus"],e(td,$c),td.prototype.init=function(){this.addRule("elements.distribute",(function(e){var t=e.elements;return!((t=bt(t=y(t,(function(e){var t=qr(e,["bpmn:Association","bpmn:BoundaryEvent","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:Lane","bpmn:MessageFlow","bpmn:SequenceFlow","bpmn:TextAnnotation"]);return!(e.labelTarget||t)})))).length<3)&&t}))};var nd={horizontal:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <polyline points="450 400 450 150 1350 150 1350 400" style="fill:none;stroke:currentColor;stroke-width:100;stroke-linejoin:round;"/>\n <rect x="150" y="450" width="600" height="1200" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="450" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',vertical:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <polyline points="400 1350 150 1350 150 450 400 450" style="fill:none;stroke:currentColor;stroke-width:100;stroke-linejoin:round;"/>\n <rect x="450" y="150" width="1200" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="450" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>'},id=900;function rd(e,t,n,i){this._distributeElements=t,this._translate=n,this._popupMenu=e,this._rules=i,e.registerProvider("align-elements",id,this)}rd.$inject=["popupMenu","distributeElements","translate","rules"],rd.prototype.getPopupMenuEntries=function(e){var t={};return this._isAllowed(e)&&I(t,this._getEntries(e)),t},rd.prototype._isAllowed=function(e){return this._rules.allowed("elements.distribute",{elements:e})},rd.prototype._getEntries=function(e){var t=this._distributeElements,n=this._translate,i=this._popupMenu;return{"distribute-elements-horizontal":{group:"distribute",title:n("Distribute elements horizontally"),className:"bjs-align-elements-menu-entry",imageHtml:nd.horizontal,action:function(n,r){t.trigger(e,"horizontal"),i.close()}},"distribute-elements-vertical":{group:"distribute",title:n("Distribute elements vertically"),imageHtml:nd.vertical,action:function(n,r){t.trigger(e,"vertical"),i.close()}}}};var od={__depends__:[Oc,ed],__init__:["bpmnDistributeElements","distributeElementsMenuProvider"],bpmnDistributeElements:["type",td],distributeElementsMenuProvider:["type",rd]},sd="is not a registered action";function ad(e,t){this._actions={};var n=this;e.on("diagram.init",(function(){n._registerDefaultActions(t),e.fire("editorActions.init",{editorActions:n})}))}function ld(e,t){return new Error(e+" "+t)}ad.$inject=["eventBus","injector"],ad.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),s=e.get("canvas",!1),a=e.get("rules",!1),l=e.get("keyboardMove",!1),h=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();if(e.length)return o.copy(e)})),o&&this.register("paste",(function(){o.paste()})),r&&this.register("stepZoom",(function(e){r.stepZoom(e.value)})),s&&this.register("zoom",(function(e){s.zoom(e.value)})),n&&i&&a&&this.register("removeSelection",(function(){var e=i.get();if(e.length){var t,r=a.allowed("elements.delete",{elements:e});!1!==r&&(t=c(r)?r:e).length&&n.removeElements(t.slice())}})),l&&this.register("moveCanvas",(function(e){l.moveCanvas(e)})),h&&this.register("moveSelection",(function(e){h.moveSelection(e.direction,e.accelerated)}))},ad.prototype.trigger=function(e,t){if(!this._actions[e])throw ld(e,sd);return this._actions[e](t)},ad.prototype.register=function(e,t){var n=this;if("string"==typeof e)return this._registerAction(e,t);b(e,(function(e,t){n._registerAction(t,e)}))},ad.prototype._registerAction=function(e,t){if(this.isRegistered(e))throw ld(e,"is already registered");this._actions[e]=t},ad.prototype.unregister=function(e){if(!this.isRegistered(e))throw ld(e,sd);this._actions[e]=void 0},ad.prototype.getActions=function(){return Object.keys(this._actions)},ad.prototype.isRegistered=function(e){return!!this._actions[e]};var cd={__init__:["editorActions"],editorActions:["type",ad]};function hd(e){e.invoke(ad,this)}e(hd,ad),hd.$inject=["injector"],hd.prototype._registerDefaultActions=function(e){ad.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),s=e.get("handTool",!1),a=e.get("globalConnect",!1),l=e.get("distributeElements",!1),c=e.get("alignElements",!1),h=e.get("directEditing",!1),u=e.get("searchPad",!1),p=e.get("modeling",!1),d=e.get("contextPad",!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()})),s&&this._registerAction("handTool",(function(){s.toggle()})),a&&this._registerAction("globalConnectTool",(function(){a.toggle()})),i&&l&&this._registerAction("distributeElements",(function(e){var t=i.get(),n=e.type;t.length&&l.trigger(t,n)})),i&&c&&this._registerAction("alignElements",(function(e){var t=i.get(),n=[],r=e.type;t.length&&(n=y(t,(function(e){return!Vr(e,"bpmn:Lane")})),c.trigger(n,r))})),i&&p&&this._registerAction("setColor",(function(e){var t=i.get();t.length&&p.setColor(t,e)})),i&&h&&this._registerAction("directEditing",(function(){var e=i.get();e.length&&h.activate(e[0])})),u&&this._registerAction("find",(function(){u.toggle()})),t&&p&&this._registerAction("moveToOrigin",(function(){var e,i,r=t.getRootElement();e=Et(i=Vr(r,"bpmn:Collaboration")?n.filter((function(e){return Vr(e.parent,"bpmn:Collaboration")})):n.filter((function(e){return e!==r&&!Vr(e.parent,"bpmn:SubProcess")}))),p.moveElements(i,{x:-e.x,y:-e.y},r)})),i&&d&&this._registerAction("replaceElement",(function(e){d.triggerEntry("replace","click",e)}))};var ud={__depends__:[cd],editorActions:["type",hd]};function pd(e){e.on(["create.init","shape.move.init"],(function(e){var t=e.context;qr(e.shape,["bpmn:Participant","bpmn:SubProcess","bpmn:TextAnnotation"])&&(t.gridSnappingContext||(t.gridSnappingContext={}),t.gridSnappingContext.snapLocation="top-left")}))}pd.$inject=["eventBus"];var dd=10;function fd(e,t,n){return n||(n="round"),Math[n](e/t)*t}var md=1200,gd=800;function vd(e,t,n){var i=!n||!1!==n.active;this._eventBus=t;var r=this;t.on("diagram.init",gd,(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"],md,(function(t){var n=t.originalEvent;if(!(!r.active||n&&ha(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,s=o.snapLocation,a=o.snapOffset;if(a&&u(a[t]))return a[t];a||(a=o.snapOffset={});u(a[t])||(a[t]=0);if(!r)return a[t];n.get(r.id)||(yd(t)?a[t]+=r[t]+r.width/2:a[t]+=r[t]+r.height/2);if(!s)return a[t];"x"===t?/left/.test(s)?a[t]-=r.width/2:/right/.test(s)&&(a[t]+=r.width/2):/top/.test(s)?a[t]-=r.height/2:/bottom/.test(s)&&(a[t]+=r.height/2);return a[t]}(t,n,e);o&&(i.offset=o);var s=function(e,t){var n=e.context,i=n.createConstraints,r=n.resizeConstraints||{},o=n.gridSnappingContext,s=o.snapConstraints;if(s&&s[t])return s[t];s||(s=o.snapConstraints={});s[t]||(s[t]={});var a=n.direction;i&&(yd(t)?(s.x.min=i.left,s.x.max=i.right):(s.y.min=i.top,s.y.max=i.bottom));var l=r.min,c=r.max;l&&(yd(t)?xd(a)?s.x.max=l.left:s.x.min=l.right:bd(a)?s.y.max=l.top:s.y.min=l.bottom);c&&(yd(t)?xd(a)?s.x.min=c.left:s.x.max=c.right:bd(a)?s.y.min=c.top:s.y.max=c.bottom);return s[t]}(t,n);s&&I(i,s),ou(t,n)||r.snapEvent(t,n,i)}))}}))}function yd(e){return"x"===e}function bd(e){return-1!==e.indexOf("n")}function xd(e){return-1!==e.indexOf("w")}function wd(e,t){Bs.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;d(i)?t.newBounds=n.snapComplex(o,i):t.newBounds=n.snapSimple(r,o)}}))}vd.prototype.snapEvent=function(e,t,n){su(e,t,this.snapValue(e[t],n))},vd.prototype.getGridSpacing=function(){return dd},vd.prototype.snapValue=function(e,t){var n,i,r=0;return t&&t.offset&&(r=t.offset),e=fd(e+=r,dd),t&&t.min&&u(n=t.min)&&(n=fd(n+r,dd,"ceil"),e=Math.max(e,n)),t&&t.max&&u(i=t.max)&&(i=fd(i+r,dd,"floor"),e=Math.min(e,i)),e-=r},vd.prototype.isActive=function(){return this.active},vd.prototype.setActive=function(e){this.active=e,this._eventBus.fire("gridSnapping.toggle",{active:e})},vd.prototype.toggleActive=function(){this.setActive(!this.active)},vd.$inject=["elementRegistry","eventBus","config.gridSnapping"],wd.$inject=["eventBus","gridSnapping","modeling"],e(wd,Bs),wd.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},wd.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},wd.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),I(e,o),e},wd.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),I(e,o),e};var _d=2e3;function Od(e,t){e.on(["spaceTool.move","spaceTool.end"],_d,(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))}))}Od.$inject=["eventBus","gridSnapping"];var Ed={__depends__:[{__init__:["gridSnappingResizeBehavior","gridSnappingSpaceToolBehavior"],gridSnappingResizeBehavior:["type",wd],gridSnappingSpaceToolBehavior:["type",Od]}],__init__:["gridSnapping"],gridSnapping:["type",vd]},kd=2e3;function Sd(e,t){e.on("autoPlace",kd,(function(e){var n=e.source,i=Rn(n),r=e.shape,o=qc(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],Vr(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}))}Sd.$inject=["eventBus","gridSnapping"];var Cd=1750;function Pd(e,t,n){t.on(["create.start","shape.move.start"],Cd,(function(t){var i=t.context,r=i.shape,o=e.getRootElement();Vr(r,"bpmn:Participant")&&Vr(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})))}))}Pd.$inject=["canvas","eventBus","gridSnapping"];var $d=3e3;function Ad(e,t,n){Bs.call(this,e),this._gridSnapping=t;var i=this;this.postExecuted(["connection.create","connection.layout"],$d,(function(e){var t=e.context,r=t.connection,o=t.hints||{},s=r.waypoints;o.connectionStart||o.connectionEnd||!1===o.createElementsBehavior||function(e){return e.length>3}(s)&&n.updateWaypoints(r,i.snapMiddleSegments(s))}))}function Rd(e,t,n){var i=Nt(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=I({},t,r),n=I({},n,r)),[t,n]}Ad.$inject=["eventBus","gridSnapping","modeling"],e(Ad,Bs),Ad.prototype.snapMiddleSegments=function(e){var t,n=this._gridSnapping;e=e.slice();for(var i=1;i<e.length-2;i++)t=Rd(n,e[i],e[i+1]),e[i]=t[0],e[i+1]=t[1];return e};var Td={__depends__:[Ed,{__init__:["gridSnappingAutoPlaceBehavior","gridSnappingParticipantBehavior","gridSnappingLayoutConnectionBehavior"],gridSnappingAutoPlaceBehavior:["type",Sd],gridSnappingParticipantBehavior:["type",Pd],gridSnappingLayoutConnectionBehavior:["type",Ad]}],__init__:["bpmnGridSnapping"],bpmnGridSnapping:["type",pd]};function Md(e,t){this._interactionEvents=t;var n=this;e.on(["interactionEvents.createHit","interactionEvents.updateHit"],(function(e){var t=e.element,i=e.gfx;return Vr(t,"bpmn:Lane")?n._createParticipantHit(t,i):Vr(t,"bpmn:Participant")?ho(t)?n._createParticipantHit(t,i):n._createDefaultHit(t,i):Vr(t,"bpmn:SubProcess")?ho(t)?n._createSubProcessHit(t,i):n._createDefaultHit(t,i):void 0}))}Md.$inject=["eventBus","interactionEvents"],Md.prototype._createDefaultHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createDefaultHit(e,t),!0},Md.prototype._createParticipantHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"no-move",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"all",{width:30,height:e.height}),!0},Md.prototype._createSubProcessHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"no-move",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"all",{width:e.width,height:30}),!0};var Dd={__init__:["bpmnInteractionEvents"],bpmnInteractionEvents:["type",Md]};function Bd(e){e.invoke(ba,this)}e(Bd,ba),Bd.$inject=["injector"],Bd.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}ba.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})),n("replaceElement",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["r","R"],i)?(t.trigger("replaceElement",i),!0):void 0}))};var Ld={__depends__:[xa],__init__:["keyboardBindings"],keyboardBindings:["type",Bd]},Nd={moveSpeed:1,moveSpeedAccelerated:10},jd=1500,zd="left",Id="right",Xd="down",Qd={ArrowLeft:zd,Left:zd,ArrowUp:"up",Up:"up",ArrowRight:Id,Right:Id,ArrowDown:Xd,Down:Xd},Fd={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 Vd(e,t,n,i,r){var o=this;this._config=I({},Nd,e||{}),t.addListener(jd,(function(e){var n=e.keyEvent,i=Qd[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 s=this._config[t?"moveSpeedAccelerated":"moveSpeed"],a=Fd[e](s);i.allowed("elements.move",{shapes:o})&&n.moveElements(o,a)}}}Vd.$inject=["config.keyboardMoveSelection","keyboard","modeling","rules","selection"];var qd={__depends__:[xa,ks],__init__:["keyboardMoveSelection"],keyboardMoveSelection:["type",Vd]};function Hd(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,s=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=Pn(e);return $n({top:jp("top",n,t),right:jp("right",n,t),bottom:jp("bottom",n,t),left:jp("left",n,t)})}(n,s),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:Pn(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=Sn(r)))return;n.resizeShape(t,r)}}(e.context)}))}function Wd(e,t){var n=Rn(e),i=Pn(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 Yd(e){var t="resize-";return"n"===e||"s"===e?t+"ns":"e"===e||"w"===e?t+"ew":"nw"===e||"se"===e?t+"nwse":t+"nesw"}Hd.prototype.canResize=function(e){var t=this._rules,n=F(e,["newBounds","shape","delta","direction"]);return t.allowed("shape.resize",n)},Hd.prototype.activate=function(e,t,n){var i,r,o=this._dragging;if("string"==typeof n&&(n={direction:n}),!(r=(i=I({shape:t},n)).direction))throw new Error("must provide a direction (n|w|s|e|nw|se|ne|sw)");o.init(e,Wd(t,r),"resize",{autoActivate:!0,cursor:Yd(r),data:{shape:t,context:i}})},Hd.prototype.computeMinResizeBox=function(e){var t=e.shape;return function(e,t,n,i){var r=Pn(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},s=i?Pn(i):o;return $n({top:Bp(o.top,s.top),left:Bp(o.left,s.left),bottom:Dp(o.bottom,s.bottom),right:Dp(o.right,s.right)})}(e.direction,t,e.minDimensions||{width:10,height:10},Xp(t,e.childrenBoxPadding))},Hd.$inject=["eventBus","rules","modeling","dragging"];var Gd="djs-resizing",Ud="resize-not-ok",Zd=500;function Kd(e,t,n){e.on("resize.move",Zd,(function(e){var i,r,o,s;i=e.context,r=i.shape,o=i.newBounds,(s=i.frame)||(s=i.frame=n.addFrame(r,t.getActiveLayer()),t.addMarker(r,Gd)),o.width>5&&Ae(s,{x:o.x,width:o.width}),o.height>5&&Ae(s,{y:o.y,height:o.height}),i.canExecute?Te(s).remove(Ud):Te(s).add(Ud)})),e.on("resize.cleanup",(function(e){var n,i;n=e.context,i=n.shape,n.frame&&De(n.frame),t.removeMarker(i,Gd)}))}Kd.$inject=["eventBus","canvas","previewSupport"];var Jd=-6,ef="djs-resizer",tf=["n","w","s","e","nw","ne","se","sw"];function nf(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&&b(t,z(r.addResizer,r))})),e.on("shape.changed",(function(e){var t=e.element;n.isSelected(t)&&(r.removeResizers(),r.addResizer(t))}))}nf.prototype.makeDraggable=function(e,t,n){var i=this._resize;function r(t){as(t)&&i.activate(t,e,n)}fe.bind(t,"mousedown",r),fe.bind(t,"touchstart",r)},nf.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=-Jd:-1!==e.indexOf("w")&&(t.x=Jd);-1!==e.indexOf("s")?t.y=-Jd:-1!==e.indexOf("n")&&(t.y=Jd);return t}(i),s=Ie("g");Te(s).add(ef),Te(s).add(ef+"-"+e.id),Te(s).add(ef+"-"+i),Se(r,s);var a=Ie("rect");Ae(a,{x:-4+o.x,y:-4+o.y,width:8,height:8}),Te(a).add(ef+"-visual"),Se(s,a);var l=Ie("rect");return Ae(l,{x:-10+o.x,y:-10+o.y,width:20,height:20}),Te(l).add(ef+"-hit"),Se(s,l),pi(s,t,n),s},nf.prototype.createResizer=function(e,t){var n=Wd(e,t),i=this._createResizer(e,n.x,n.y,t);this.makeDraggable(e,i,t)},nf.prototype.addResizer=function(e){var t=this;!En(e)&&this._resize.canResize({shape:e})&&b(tf,(function(n){t.createResizer(e,n)}))},nf.prototype.removeResizers=function(){Be(this._getResizersParent())},nf.prototype._getResizersParent=function(){return this._canvas.getLayer("resizers")},nf.$inject=["eventBus","canvas","selection","resize"];var rf={__depends__:[ph,ah,Mu],__init__:["resize","resizePreview","resizeHandles"],resize:["type",Hd],resizePreview:["type",Kd],resizeHandles:["type",nf]},of=2e3;function sf(e,t,n,i,r,o,s){function a(e,t){(t||qr(e,["bpmn:Task","bpmn:TextAnnotation","bpmn:Participant"])||af(e))&&i.activate(e)}this._bpmnFactory=t,this._canvas=n,this._modeling=r,this._textRenderer=s,i.registerProvider(this),e.on("element.dblclick",(function(e){a(e.element,!0)})),e.on(["autoPlace.start","canvas.viewbox.changing","drag.init","element.mousedown","popupMenu.open","root.set","selection.changed"],(function(){i.isActive()&&i.complete()})),e.on(["shape.remove","connection.remove"],of,(function(e){i.isActive(e.element)&&i.cancel()})),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||a(n))})),e.on("autoPlace.end",500,(function(e){a(e.shape)}))}function af(e){return Vr(e,"bpmn:SubProcess")&&!ho(e)}sf.$inject=["eventBus","bpmnFactory","canvas","directEditing","modeling","resizeHandles","textRenderer"],sf.prototype.activate=function(e){var t=_o(e);if(void 0!==t){var n={text:t};I(n,this.getEditingBBox(e));var i={};return(qr(e,["bpmn:Task","bpmn:Participant","bpmn:Lane","bpmn:CallActivity"])||af(e))&&I(i,{centerVertically:!0}),vo(e)&&I(i,{autoResize:!0}),Vr(e,"bpmn:TextAnnotation")&&I(i,{resizable:!0,autoResize:!0}),I(n,{options:i}),n}},sf.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,s={x:i.x,y:i.y},a=t.zoom(),l=this._textRenderer.getDefaultStyle(),c=this._textRenderer.getExternalStyle(),h=c.fontSize*a,u=c.lineHeight,p=l.fontSize*a,d=l.lineHeight,f={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};(Vr(e,"bpmn:Lane")||function(e){return Vr(e,"bpmn:Participant")&&ho(e)}(e))&&(I(s,{width:i.height,height:30*a,x:i.x-i.height/2+15*a,y:o-30*a/2}),I(f,{fontSize:p+"px",lineHeight:d,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px",transform:"rotate(-90deg)"})),(qr(e,["bpmn:Task","bpmn:CallActivity"])||function(e){return Vr(e,"bpmn:Participant")&&!ho(e)}(e)||af(e))&&(I(s,{width:i.width,height:i.height}),I(f,{fontSize:p+"px",lineHeight:d,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"})),function(e){return Vr(e,"bpmn:SubProcess")&&ho(e)}(e)&&(I(s,{width:i.width,x:i.x}),I(f,{fontSize:p+"px",lineHeight:d,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"}));var m=90*a,g=7*a,v=4*a;if(n.labelTarget&&(I(s,{width:m,height:i.height+g+v,x:r-m/2,y:i.y-g}),I(f,{fontSize:h+"px",lineHeight:u,paddingTop:g+"px",paddingBottom:v+"px"})),vo(n)&&!yo(n)&&!kn(n)){var y=xo(e),b=t.getAbsoluteBBox({x:y.x,y:y.y,width:0,height:0}),x=h+g+v;I(s,{width:m,height:x,x:b.x-m/2,y:b.y-x/2}),I(f,{fontSize:h+"px",lineHeight:u,paddingTop:g+"px",paddingBottom:v+"px"})}return Vr(e,"bpmn:TextAnnotation")&&(I(s,{width:i.width,height:i.height,minWidth:30*a,minHeight:10*a}),I(f,{textAlign:"left",paddingTop:5*a+"px",paddingBottom:7*a+"px",paddingLeft:7*a+"px",paddingRight:5*a+"px",fontSize:p+"px",lineHeight:d})),{bounds:s,style:f}},sf.prototype.update=function(e,t,n,i){var r,o,s;Vr(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}),(s=t)&&s.trim()||(t=null),this._modeling.updateLabel(e,t,r)};var lf="djs-element-hidden",cf="djs-label-hidden";function hf(e,t,n){var i,r,o,s=this,a=t.getDefaultLayer();e.on("directEditing.activate",(function(e){var l=e.active;if(Vr(i=l.element.label||l.element,"bpmn:TextAnnotation")){r=t.getAbsoluteBBox(i),o=Ie("g");var c=n.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:i.width,containerHeight:i.height,position:{mx:0,my:0}}),h=s.path=Ie("path");Ae(h,{d:c,strokeWidth:2,stroke:uf(i)}),Se(o,h),Se(a,o),di(o,i.x,i.y)}Vr(i,"bpmn:TextAnnotation")||i.labelTarget?t.addMarker(i,lf):(Vr(i,"bpmn:Task")||Vr(i,"bpmn:CallActivity")||Vr(i,"bpmn:SubProcess")||Vr(i,"bpmn:Participant"))&&t.addMarker(i,cf)})),e.on("directEditing.resize",(function(e){if(Vr(i,"bpmn:TextAnnotation")){var t=e.height,o=e.dy,a=Math.max(i.height/r.height*(t+o),0),l=n.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:i.width,containerHeight:a,position:{mx:0,my:0}});Ae(s.path,{d:l})}})),e.on(["directEditing.complete","directEditing.cancel"],(function(e){var n=e.active;n&&(t.removeMarker(n.element.label||n.element,lf),t.removeMarker(i,cf)),i=void 0,r=void 0,o&&(De(o),o=void 0)}))}function uf(e,t){return Wr(e).get("stroke")||t||"black"}hf.$inject=["eventBus","canvas","pathMap"];var pf={__depends__:[Ds,rf,$u],__init__:["labelEditingProvider","labelEditingPreview"],labelEditingProvider:["type",sf],labelEditingPreview:["type",hf]},df=["top","bottom","left","right"],ff=10;function mf(e,t){function n(e){if(yo(e)){var n=function(e){var t=Rn(e.label),n=Rn(e),i=gf(n,t);if(r=i,-1===df.indexOf(r))return;var r;var o=function(e){var t=Rn(e),n=[].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 gf(t,e)}));return n}(e);if(e.host){var s=function(e){var t,n=e.host,i=Rn(e),r=Tn(i,n);t=r.indexOf("-")>=0?r.split("-"):[r];var o=df.filter((function(e){return-1===t.indexOf(e)}));return o}(e);o=o.concat(s)}var a=df.filter((function(e){return-1===o.indexOf(e)}));if(-1!==a.indexOf(i))return;return a[0]}(e);n&&function(e,n){var i=Rn(e),r=e.label,o=Rn(r);if(!r.parent)return;var s,a=Pn(e);switch(n){case"top":s={x:i.x,y:a.top-ff-r.height/2};break;case"left":s={x:a.left-ff-r.width/2,y:i.y};break;case"bottom":s={x:i.x,y:a.bottom+ff+r.height/2};break;case"right":s={x:a.right+ff+r.width/2,y:i.y}}var l=Aa(s,o);t.moveShape(r,l)}(e,n)}}Bs.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 gf(e,t){return Tn(t,e,5)}function vf(e){Bs.call(this,e),this.preExecute("shape.append",(function(e){var t=e.source,n=e.shape;e.position||(Vr(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 yf(e,t){e.invoke(Bs,this),this.postExecute("shape.move",(function(e){var n=e.newParent,i=e.shape;b(y(i.incoming.concat(i.outgoing),(function(e){return Vr(e,"bpmn:Association")})),(function(e){t.moveConnection(e,{x:0,y:0},n)}))}),!0)}e(mf,Bs),mf.$inject=["eventBus","modeling"],e(vf,Bs),vf.$inject=["eventBus"],e(yf,Bs),yf.$inject=["injector","modeling"];var bf=500;function xf(e,t){t.invoke(Bs,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",bf,(function(e){var t=e.elements;1===(t=t.filter((function(e){return wf(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",bf,(function(e){var t=e.shapes,i=e.newHost;if(1===t.length){var r=t[0];wf(r,i)&&(e.shapes=[n._replaceShape(r,i)])}}),!0)}function wf(e,t){return!kn(e)&&qr(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!t}function _f(e,t){function n(e){return y(e.attachers,(function(e){return Vr(e,"bpmn:BoundaryEvent")}))}Bs.call(this,e),this.postExecute("connection.create",(function(e){var i=e.context.source,r=e.context.target,o=n(r);Vr(i,"bpmn:EventBasedGateway")&&Vr(r,"bpmn:ReceiveTask")&&o.length>0&&t.removeElements(o)})),this.postExecute("connection.reconnect",(function(e){var i=e.context.oldSource,r=e.context.newSource;Vr(i,"bpmn:Gateway")&&Vr(r,"bpmn:EventBasedGateway")&&b(r.outgoing,(function(e){var i=e.target,r=n(i);Vr(i,"bpmn:ReceiveTask")&&r.length>0&&t.removeElements(r)}))}))}function Of(e){e.invoke(Bs,this),this.preExecute("shape.create",1500,(function(e){var t=e.context,n=t.parent,i=t.shape;Vr(n,"bpmn:Lane")&&!Vr(i,"bpmn:Lane")&&(t.parent=Vc(n,"bpmn:Participant"))}))}function Ef(e,t){Bs.call(this,e),this.preExecute("shape.create",(function(e){var n=e.context.shape;if(Vr(n,"bpmn:DataObjectReference")&&"label"!==n.type){var i=t.create("bpmn:DataObject");n.businessObject.dataObjectRef=i}}))}xf.$inject=["bpmnReplace","injector"],e(xf,Bs),xf.prototype._replaceShape=function(e,t){var n,i=(n=Hr(e).eventDefinitions)&&n[0],r={type:"bpmn:BoundaryEvent",host:t};return i&&(r.eventDefinitionType=i.$type),this._bpmnReplace.replaceElement(e,r,{layoutConnection:!1})},_f.$inject=["eventBus","modeling"],e(_f,Bs),Of.$inject=["injector"],e(Of,Bs),Ef.$inject=["eventBus","bpmnFactory"],e(Ef,Bs);var kf=20,Sf=20,Cf=30,Pf=2e3;function $f(e,t,n){function i(){var t=e.getRootElement();return Vr(t,"bpmn:Collaboration")?t:n.makeCollaboration()}Bs.call(this,t),t.on(["create.start","shape.move.start"],Pf,(function(t){var n=t.context,i=n.shape,r=e.getRootElement();if(Vr(i,"bpmn:Participant")&&Vr(r,"bpmn:Process")&&r.children.length){var o=r.children.filter((function(e){return!Vr(e,"bpmn:Group")&&!kn(e)&&!En(e)}));if(o.length){var s=Et(o),a=function(e,t){t={width:t.width+2*kf+Cf,height:t.height+2*Sf};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,s);I(i,a),n.createConstraints=function(e,t){return t=Pn(t),{bottom:t.top+e.height/2-Sf,left:t.right-e.width/2+kf,top:t.bottom-e.height/2+Sf,right:t.left+e.width/2-kf-Cf}}(i,s)}}})),t.on("create.start",Pf,(function(n){var i=n.context.shape,r=e.getRootElement(),o=e.getGraphics(r);function s(e){e.element=r,e.gfx=o}Vr(i,"bpmn:Participant")&&Vr(r,"bpmn:Process")&&(t.on("element.hover",Pf,s),t.once("create.cleanup",(function(){t.off("element.hover",s)})))})),this.preExecute("elements.create",Pf,(function(e){var t,n=e.elements,r=e.parent,o=function(e){return g(e,(function(e){return Vr(e,"bpmn:Participant")}))}(n);o&&Vr(r,"bpmn:Process")&&(e.parent=i(),(t=e.hints=e.hints||{}).participant=o,t.process=r,t.processRef=Hr(o).get("processRef"))}),!0),this.preExecute("shape.create",(function(e){var t=e.parent,n=e.shape;Vr(n,"bpmn:Participant")&&Vr(t,"bpmn:Process")&&(e.parent=i(),e.process=t,e.processRef=Hr(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||Hr(i).set("processRef",Hr(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||Hr(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 s=i.children.slice();o?r===o&&n.moveElements(s,{x:0,y:0},o):n.moveElements(s,{x:0,y:0},r)}}),!0)}$f.$inject=["canvas","eventBus","modeling"],e($f,Bs);var Af="__targetRef_placeholder";function Rf(e,t){function n(e,n){var i=e.get("properties"),r=g(i,(function(e){return e.name===Af}));return!r&&n&&Tt(i,r=t.create("bpmn:Property",{name:Af})),r}function i(e,t){var i=n(e);i&&(function(e,t,n){return g(e.get("dataInputAssociations"),(function(e){return e!==n&&e.targetRef===t}))}(e,i,t)||Rt(e.get("properties"),i))}function r(e){var t,r=e.context,o=r.connection,s=o.businessObject,a=o.target,l=a&&a.businessObject,c=r.newTarget,h=c&&c.businessObject,u=r.oldTarget||r.target,p=u&&u.businessObject,d=o.businessObject;p&&p!==l&&i(p,s),h&&h!==l&&i(h,s),l?(t=n(l,!0),d.targetRef=t):d.targetRef=null}Bs.call(this,e),this.executed(["connection.create","connection.delete","connection.move","connection.reconnect"],Tf(r)),this.reverted(["connection.create","connection.delete","connection.move","connection.reconnect"],Tf(r))}function Tf(e){return function(t){if(Vr(t.context.connection,"bpmn:DataInputAssociation"))return e(t)}}function Mf(e){this._bpmnUpdater=e}function Df(e,t,n,i){function r(e){return e.children.filter((function(e){return Vr(e,"bpmn:DataStoreReference")&&!e.labelTarget}))}function o(e,i){var r=e.businessObject||e;if(i=i||n.filter((function(e){return Vr(e,"bpmn:Participant")&&Hr(e).processRef}))[0]){var o=i.businessObject||i;t.execute("dataStore.updateContainment",{dataStoreBo:r,dataStoreDi:Wr(e),newSemanticParent:o.processRef||o,newDiParent:Wr(i)})}}Bs.call(this,i),t.registerHandler("dataStore.updateContainment",Mf),this.preExecute("shape.create",(function(e){var t=e.context,n=t.shape;Vr(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 Vr(e,"bpmn:DataStoreReference")})).length&&(t.hints||(t.hints={}),t.hints.autoResize=n.filter((function(e){return!Vr(e,"bpmn:DataStoreReference")})))})),this.postExecute("shape.create",(function(e){var t=e.context.shape,n=t.parent;Vr(t,"bpmn:DataStoreReference")&&"label"!==t.type&&Vr(n,"bpmn:Collaboration")&&o(t)})),this.postExecute("shape.move",(function(e){var t=e.context,n=t.shape,i=t.oldParent,r=n.parent;Vr(i,"bpmn:Collaboration")||Vr(n,"bpmn:DataStoreReference")&&"label"!==n.type&&Vr(r,"bpmn:Collaboration")&&o(n,Vr(i,"bpmn:Participant")?i:function(e,t){for(;e.parent;){if(Vr(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();qr(n,["bpmn:Participant","bpmn:SubProcess"])&&Vr(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){Vr(i,"bpmn:Process")&&o(e,i)}))}))}Rf.$inject=["eventBus","bpmnFactory"],e(Rf,Bs),Mf.$inject=["bpmnUpdater"],Mf.prototype.execute=function(e){var t=e.dataStoreBo,n=e.dataStoreDi,i=e.newSemanticParent,r=e.newDiParent;return e.oldSemanticParent=t.$parent,e.oldDiParent=n.$parent,this._bpmnUpdater.updateSemanticParent(t,i),this._bpmnUpdater.updateDiParent(n,r),[]},Mf.prototype.revert=function(e){var t=e.dataStoreBo,n=e.dataStoreDi,i=e.oldSemanticParent,r=e.oldDiParent;return this._bpmnUpdater.updateSemanticParent(t,i),this._bpmnUpdater.updateDiParent(n,r),[]},Df.$inject=["canvas","commandStack","elementRegistry","eventBus"],e(Df,Bs);var Bf=500;function Lf(e,t){Bs.call(this,e),this.postExecuted("shape.delete",Bf,(function(e){var n=e.context,i=n.hints,r=n.shape,o=n.oldParent;Vr(r,"bpmn:Lane")&&(i&&i.nested||function(e,n){var i,r,o,s=Hp(n),a=[],l=[];_t(s,(function(t){return t.y>e.y?l.push(t):a.push(t),t.children})),s.length&&(i=l.length&&a.length?e.height/2:e.height,a.length&&(r=t.calculateAdjustments(a,"y",i,e.y-10),t.makeSpace(r.movingShapes,r.resizingShapes,{x:0,y:i},"s")),l.length&&(o=t.calculateAdjustments(l,"y",-i,e.y+e.height+10),t.makeSpace(o.movingShapes,o.resizingShapes,{x:0,y:-i},"n")))}(r,o))}))}Lf.$inject=["eventBus","spaceTool"],e(Lf,Bs);var Nf=500;function jf(e,t){t.invoke(Bs,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",Nf,(function(e){var t=e.elements;t.filter((function(e){return zf(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",Nf,(function(e){var t=e.shapes,i=e.newHost;t.forEach((function(e,r){var o,s=e.host;zf(e,(o=s,-1!==t.indexOf(o)?s:i))&&(t[r]=n._replaceShape(e))}))}),!0)}function zf(e,t){return!kn(e)&&Vr(e,"bpmn:BoundaryEvent")&&!t}function If(e,t,n){function i(e,i,r){var o,s,a,l,c,h,p,d,f=i.waypoints,m=e.outgoing.slice(),g=e.incoming.slice(),v=gh(f,d=u(r.width)?Rn(r):r);if(v){if(o=f.slice(0,v.index),s=f.slice(v.index+(v.bendpoint?1:0)),!o.length||!s.length)return;a=v.bendpoint?f[v.index]:d,1!==o.length&&Xf(e,o[o.length-1])||o.push(Qf(a)),1!==s.length&&Xf(e,s[0])||s.unshift(Qf(a))}l=i.source,c=i.target,t.canConnect(l,e,i)&&(n.reconnectEnd(i,e,o||d),h=i),t.canConnect(e,c,i)&&(h?p=n.connect(e,c,{type:i.type,waypoints:s}):(n.reconnectStart(i,e,s||d),p=i));var b=[].concat(h&&y(g,(function(e){return e.source===h.source}))||[],p&&y(m,(function(e){return e.target===p.target}))||[]);b.length&&n.removeElements(b)}Bs.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 s=Rn(o),a={x:s.x+r.x,y:s.y+r.y},l=g(n.children,(function(e){return t.canInsert(i,e)&&gh(e.waypoints,a)}));l&&(e.targetFlow=l,e.position=a)}}),!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 Xf(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 Qf(e){return I({},e)}function Ff(e,t){Bs.call(this,e),this.preExecuted("connection.create",(function(e){var n=e.context,i=n.connection,r=n.source,o=n.target,s=n.hints;if((!s||!1!==s.createElementsBehavior)&&Vf(i)){var a=[];a=Vr(r,"bpmn:EventBasedGateway")?o.incoming.filter(Vf):o.incoming.filter((function(e){return Vf(e)&&Vr(e.source,"bpmn:EventBasedGateway")})),a.forEach((function(e){t.removeConnection(e)}))}})),this.preExecuted("shape.replace",(function(e){var n=e.context.newShape;Vr(n,"bpmn:EventBasedGateway")&&n.outgoing.filter(Vf).reduce((function(e,t){return e.includes(t.target)?e:e.concat(t.target)}),[]).forEach((function(e){e.incoming.filter(Vf).forEach((function(i){const r=e.incoming.filter(Vf).filter((function(e){return e.source===n}));(i.source!==n||r.length>1)&&t.removeConnection(i)}))}))}))}function Vf(e){return Vr(e,"bpmn:SequenceFlow")}jf.$inject=["bpmnReplace","injector"],e(jf,Bs),jf.prototype._replaceShape=function(e){var t,n,i=(n=Hr(e).eventDefinitions)&&n[0];return t=i?{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:i.$type}:{type:"bpmn:IntermediateThrowEvent"},this._bpmnReplace.replaceElement(e,t,{layoutConnection:!1})},e(If,Bs),If.$inject=["eventBus","bpmnRules","modeling"],Ff.$inject=["eventBus","modeling"],e(Ff,Bs);var qf=1500,Hf=2e3;function Wf(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"],qf,(function(t){var i=t.context.shape||t.shape,r=t.hover;Vr(r,"bpmn:Lane")&&!qr(i,["bpmn:Lane","bpmn:Participant"])&&(t.hover=Wp(r),t.hoverGfx=e.getGraphics(t.hover));var o=n.getRootElement();r!==o&&(i.labelTarget||Vr(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"],qf,(function(t){var n=t.hover;Vr(n,"bpmn:Lane")&&(t.hover=Wp(n)||n,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["bendpoint.move.hover"],qf,(function(t){var n=t.context,i=t.hover,r=n.type;Vr(i,"bpmn:Lane")&&/reconnect/.test(r)&&(t.hover=Wp(i)||i,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["connect.start"],qf,(function(e){var t=e.context,n=t.start;Vr(n,"bpmn:Lane")&&(t.start=Wp(n)||n)})),t.on("shape.move.start",Hf,(function(e){var t=e.shape;Vr(t,"bpmn:Lane")&&(e.shape=Wp(t)||t)}))}Wf.$inject=["elementRegistry","eventBus","canvas"];var Yf=770;function Gf(e,t,n,i,r,o){function s(e,t,i){var r=n.filter((function(e){return Vr(e,"bpmn:Group")})).filter((function(e){return e.businessObject!==i}));t&&!function(e,t){return e.some((function(e){var n=Hr(e);return(n.categoryValueRef&&n.categoryValueRef.$parent)===t}))}(r,t)&&function(e){var t=e.$parent;t&&(Rt(t.get("rootElements"),e),e.$parent=null)}(t),e&&!function(e,t){return e.some((function(e){return Hr(e).categoryValueRef===t}))}(r,e)&&function(e){var t=e.$parent;t&&(Rt(t.get("categoryValue"),e),e.$parent=null)}(e)}function a(e,n){return function(e,t,n){return Tt(t.get("categoryValue"),e),e.$parent=t,Tt(n.get("rootElements"),t),t.$parent=n,e}(e,n,t.getDefinitions())}function l(n,i){var r=Hr(n),o=r.categoryValueRef;o||(o=r.categoryValueRef=i.categoryValue=i.categoryValue||function(e){return e.create("bpmn:CategoryValue")}(e));var s=o.$parent;s||(s=o.$parent=i.category=i.category||function(e){return e.create("bpmn:Category")}(e)),a(o,s,t.getDefinitions())}function c(e,t){var n=t.category,i=t.categoryValue,r=Hr(e);i?(r.categoryValueRef=null,s(i,n,r)):s(null,r.categoryValueRef.$parent,r)}function h(t,n){var i=e.create(t.$type);return o.copyElement(t,i,null,n)}r.invoke(Bs,this),this.execute("label.create",(function(e){var t=e.context,n=t.labelTarget;Vr(n,"bpmn:Group")&&l(n,t)})),this.revert("label.create",(function(e){var t=e.context,n=t.labelTarget;Vr(n,"bpmn:Group")&&c(n,t)})),this.execute("shape.delete",(function(e){var t=e.context,n=t.shape,i=Hr(n);if(Vr(n,"bpmn:Group")&&!n.labelTarget){var r=t.categoryValue=i.categoryValueRef;r&&(s(r,t.category=r.$parent,i),i.categoryValueRef=null)}})),this.reverted("shape.delete",(function(e){var t=e.context,n=t.shape;if(Vr(n,"bpmn:Group")&&!n.labelTarget){var i=t.category,r=t.categoryValue,o=Hr(n);r&&(o.categoryValueRef=r,a(r,i))}})),this.execute("shape.create",(function(e){var t=e.context,n=t.shape;Vr(n,"bpmn:Group")&&!n.labelTarget&&Hr(n).categoryValueRef&&l(n,t)})),this.reverted("shape.create",(function(e){var t=e.context,n=t.shape;Vr(n,"bpmn:Group")&&!n.labelTarget&&Hr(n).categoryValueRef&&c(n,t)})),i.on("copyPaste.copyElement",Yf,(function(e){var t=e.descriptor,n=e.element;if(Vr(n,"bpmn:Group")&&!n.labelTarget){var i=Hr(n);if(i.categoryValueRef){var r=i.categoryValueRef;t.categoryValue=h(r,!0),r.$parent&&(t.category=h(r.$parent,!0))}}})),i.on("copyPaste.pasteElement",Yf,(function(e){var t=e.descriptor,n=t.businessObject,i=t.categoryValue,r=t.category;i&&(i=n.categoryValueRef=h(i)),r&&(i.$parent=h(r)),delete t.category,delete t.categoryValue}))}function Uf(e,t,n,i){var r,o,s,a;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,s=e.x-n.x,a=((i.x-n.x)*o-(i.y-n.y)*s)/r,{x:Math.round(e.x+a*(t.x-e.x)),y:Math.round(e.y+a*(t.y-e.y))})}function Zf(e){function t(e,t,n){var i,r={x:n.x,y:n.y-50},o={x:n.x-50,y:n.y},s=Uf(e,t,n,r),a=Uf(e,t,n,o);i=s&&a?Kf(s,n)>Kf(a,n)?a:s:s||a,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],Rn(n.source)),t(i[i.length-1],i[i.length-2],Rn(n.target)))}))}function Kf(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Jf(e){Bs.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=Hr(n),r=Wr(n);qr(i,t)&&!r.get("isHorizontal")&&r.set("isHorizontal",!0)}))}Gf.$inject=["bpmnFactory","bpmnjs","elementRegistry","eventBus","injector","moddleCopy"],e(Gf,Bs),Zf.$inject=["eventBus"],Jf.$inject=["eventBus"],e(Jf,Bs);var em=Math.sqrt,tm=Math.min,nm=Math.max,im=Math.abs;function rm(e){return Math.pow(e,2)}function om(e,t){return em(rm(e.x-t.x)+rm(e.y-t.y))}function sm(e,t,n,i){var r=t.x-e.x,o=t.y-e.y,s=n.x-e.x,a=n.y-e.y,l=r*r+o*o,c=(r*s+o*a)/l,h=c*c-(s*s+a*a-i*i)/l;if(h<0&&h>-1e-6&&(h=0),h<0)return[];var u=em(h),p=-c+u,d=-c-u,f={x:e.x-r*p,y:e.y-o*p};return 0===h?[f]:[f,{x:e.x-r*d,y:e.y-o*d}].filter((function(n){return function(e,t,n){return am(e.x,t.x,n.x)&&am(e.y,t.y,n.y)}(n,e,t)}))}function am(e,t,n){return e>=tm(t,n)-lm&&e<=nm(t,n)+lm}var lm=.1;function cm(e,t){return im(e.x-t.x)<=lm&&im(e.y-t.y)<=lm}function hm(e,t,n,i){var r=0,o=0,s={point:e,delta:{x:0,y:0}},a=function(e,t){var n,i,r,o,s,a,l,c,h,u,p,d,f=0;for(f=0;f<t.length-1;f++){if(cm(n=t[f],i=t[f+1])?a=[n]:(r=om(e,n),o=om(e,i),a=sm(n,i,e,tm(r,o))),a.length<1)throw new Error("expected between [1, 2] circle -> line intersections");1===a.length&&(l={type:"bendpoint",position:a[0],segmentIndex:f,bendpointIndex:cm(n,a[0])?f:f+1}),2===a.length&&(p=a[0],d=a[1],l={type:"segment",position:s={x:(p.x+d.x)/2,y:(p.y+d.y)/2},segmentIndex:f,relativeLocation:om(n,s)/om(n,i)}),c=om(l.position,e),(!u||h>c)&&(u=l,h=c)}return u}(e,n),l=a.segmentIndex,c=function(e,t,n,i){var r=n.segmentIndex,o=t.length-e.length;if(i.segmentMove){var s=i.segmentMove.segmentStartIndex,a=i.segmentMove.newSegmentStartIndex;return r===s?a:r>=a?r+o<a?a:r+o:r}if(i.bendpointMove){var l,c=i.bendpointMove.insert,h=i.bendpointMove.bendpointIndex;return 0===o?r:(r>=h&&(l=c?r+1:r-1),r<h&&(l=r,c&&"bendpoint"!==n.type&&h-1===r&&um(t,h)<n.relativeLocation&&l++),l)}return 0===o?r:i.connectionStart&&0===r?0:i.connectionEnd&&r===e.length-2?t.length-2:Math.floor((t.length-2)/2)}(n,t,a,i);if(c<0||c>t.length-2||null===c)return s;var h,u,p=pm(n,l),d=pm(t,c),f=a.position,m=function(e,t){var n=wh(e[0],e[1]),i=wh(e[0],t);return 0===n?0:i/n}(p,f),g=(h=d,u=yh(p),yh(h)-u);if("bendpoint"===a.type){var v=t.length-n.length,y=a.bendpointIndex,b=n[y];if(-1!==t.indexOf(b))return s;if(0===v){var x=t[y];return{delta:{x:r=x.x-a.position.x,y:o=x.y-a.position.y},point:{x:e.x+r,y:e.y+o}}}v<0&&0!==y&&y<n.length-1&&(m=um(n,y))}var w,_,O={x:(d[1].x-d[0].x)*m+d[0].x,y:(d[1].y-d[0].y)*m+d[0].y},E=(w={x:e.x-f.x,y:e.y-f.y},(_=g)?{x:Math.cos(_)*w.x-Math.sin(_)*w.y,y:Math.sin(_)*w.x+Math.cos(_)*w.y}:w);return r=O.x+E.x-e.x,o=O.y+E.y-e.y,{point:Cn(O),delta:Cn({x:r,y:o})}}function um(e,t){var n=wh(e[t-1],e[t]);return n/(n+wh(e[t],e[t+1]))}function pm(e,t){return[e[t],e[t+1]]}function dm(e,t,n){var i=$a(t),r=$a(n),o=Aa(e,i),s=o.x*(n.width/t.width),a=o.y*(n.height/t.height);return Cn({x:r.x+s,y:r.y+a})}function fm(e,t,n){var i=$a(e),r=$a(t),o=$a(n),s=Aa(e,i),a=Aa(i,r),l=function(e,t,n){var i=Pn(t),r=Pn(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,s,a,l=Tn(t,e);if("top"===l)o={x:0,y:r.bottom-i.bottom};else if("bottom"===l)o={x:0,y:r.top-i.top};else if("right"===l)o={x:r.left-i.left,y:0};else{if("left"!==l)return null;o={x:r.right-i.right,y:0}}if(s={x:e.x+o.x,y:e.y+o.y},a=Tn(n,s),a!==l)return null;return o}(i,t,n);if(l)return l;var c=a.x*(n.width/t.width),h=a.y*(n.height/t.height),u=o.x+c,p=o.y+h;return Cn({x:u+s.x-e.x,y:p+s.y-e.y})}var mm="name",gm="text";function vm(e,t,n,i){function r(e){var n=e.context,r=n.element,o=n.properties;if(mm in o&&t.updateLabel(r,o[mm]),gm in o&&Vr(r,"bpmn:TextAnnotation")){var s=i.getTextAnnotationBounds({x:r.x,y:r.y,width:r.width,height:r.height},o[gm]||"");t.updateLabel(r,o.text,s)}}function o(e){var t=e.context,n=t.connection,i=n.label,r=I({},t.hints),o=t.newWaypoints||n.waypoints,s=t.oldWaypoints;return void 0===r.startChanged&&(r.startChanged=!!r.connectionStart),void 0===r.endChanged&&(r.endChanged=!!r.connectionEnd),function(e,t,n,i){return hm(Rn(e),t,n,i).delta}(i,o,s,r)}Bs.call(this,e),this.postExecute("element.updateProperties",r),this.postExecute("element.updateModdleProperties",(e=>{Hr(e.context.element)===e.context.moddleElement&&r(e)})),this.postExecute(["shape.create","connection.create"],(function(e){var n=e.context;if(!1!==(n.hints||{}).createElementsBehavior){var i=n.shape||n.connection;!kn(i)&&vo(i)&&_o(i)&&t.updateLabel(i,_o(i))}})),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(["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=o(e),t.moveShape(r,i))}})),this.postExecute(["shape.replace"],(function(e){var t=e.context,n=t.newShape,i=t.oldShape,r=Hr(n);r&&vo(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,s=i.oldBounds;if(yo(r)){var a=r.label,l=function(e,t){if(!t.length)return;var n=function(e,t){var n=t.map((function(t){return{line:t,distance:xh(e,t)}}));return R(n,"distance")[0].line}(e,t);return bh(e,n)}(Rn(a),[[{x:(n=s).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)}]]),c=ym(l,s,o);t.moveShape(a,c)}}))}function ym(e,t,n){return Cn(Aa(dm(e,t,n),e))}function bm(e,t){function n(e,t){var n=e.context,i=n.connection,r=I({},n.hints),o=n.newWaypoints||i.waypoints,s=n.oldWaypoints;return void 0===r.startChanged&&(r.startChanged=!!r.connectionStart),void 0===r.endChanged&&(r.endChanged=!!r.connectionEnd),function(e,t,n,i){return hm(e,t,n,i).point}(t,o,s,r)}Bs.call(this,e),this.postExecute(["connection.layout","connection.updateWaypoints"],(function(e){var i=e.context.connection,r=i.outgoing;i.incoming.forEach((function(i){var r=i.waypoints[i.waypoints.length-1],o=n(e,r),s=[].concat(i.waypoints.slice(0,-1),[o]);t.updateWaypoints(i,s)})),r.forEach((function(i){var r=i.waypoints[0],o=n(e,r),s=[].concat([o],i.waypoints.slice(1));t.updateWaypoints(i,s)}))})),this.postExecute(["connection.move"],(function(e){var n=e.context,i=n.connection,r=i.outgoing,o=i.incoming,s=n.delta;o.forEach((function(e){var n=e.waypoints[e.waypoints.length-1],i={x:n.x+s.x,y:n.y+s.y},r=[].concat(e.waypoints.slice(0,-1),[i]);t.updateWaypoints(e,r)})),r.forEach((function(e){var n=e.waypoints[0],i={x:n.x+s.x,y:n.y+s.y},r=[].concat([i],e.waypoints.slice(1));t.updateWaypoints(e,r)}))}))}function xm(e,t,n){var i=km(e),r=Sm(i,t),o=i[0];return r.length?r[r.length-1]:dm(o.original||o,n,t)}function wm(e,t,n){var i=km(e),r=Sm(i,t),o=i[i.length-1];return r.length?r[0]:dm(o.original||o,n,t)}function _m(e,t,n){var i=km(e),r=Em(t,n),o=i[0];return dm(o.original||o,r,t)}function Om(e,t,n){var i=km(e),r=Em(t,n),o=i[i.length-1];return dm(o.original||o,r,t)}function Em(e,t){return{x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height}}function km(e){var t=e.waypoints;if(!t.length)throw new Error("connection#"+e.id+": no waypoints");return t}function Sm(e,t){return y(E(e,Cm),(function(e){return function(e,t){return"intersect"===Tn(t,e,1)}(e,t)}))}function Cm(e){return e.original||e}function Pm(e,t){Bs.call(this,e),this.postExecute("shape.replace",(function(e){var n=e.oldShape,i=e.newShape;if(function(e,t){return Vr(e,"bpmn:Participant")&&ho(e)&&Vr(t,"bpmn:Participant")&&!ho(t)}(n,i)){var r,o,s,a,l=(o=Ot([r=n],!1),s=[],a=[],o.forEach((function(e){e!==r&&(e.incoming.forEach((function(e){Vr(e,"bpmn:MessageFlow")&&s.push(e)})),e.outgoing.forEach((function(e){Vr(e,"bpmn:MessageFlow")&&a.push(e)})))}),[]),{incoming:s,outgoing:a});l.incoming.forEach((function(e){var r=wm(e,i,n);t.reconnectEnd(e,i,r)})),l.outgoing.forEach((function(e){var r=xm(e,i,n);t.reconnectStart(e,i,r)}))}}),!0)}e(vm,Bs),vm.$inject=["eventBus","modeling","bpmnFactory","textRenderer"],e(bm,Bs),bm.$inject=["eventBus","modeling"],Pm.$inject=["eventBus","modeling"],e(Pm,Bs);var $m="flow elements must be children of pools/participants";function Am(e,t,n){e.on(["shape.move.rejected","create.rejected"],(function(e){var i,r,o,s=e.context,a=s.shape;Vr(s.target,"bpmn:Collaboration")&&Vr(a,"bpmn:FlowNode")&&(i=e,r=n($m),t.add({position:{x:i.x+5,y:i.y+5},type:"error",timeout:o||2e3,html:"<div>"+r+"</div>"}))}))}function Rm(e,t){Bs.call(this,e),this.preExecute("shape.resize",(function(e){var n=e.shape,i=Wr(n),r=i&&i.get("label");r&&r.get("bounds")&&t.updateModdleProperties(n,r,{bounds:void 0})}),!0)}function Tm(e,t,n){Bs.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(Vr(r,"bpmn:SequenceFlow")&&Vr(o,"bpmn:SequenceFlow")&&t.canConnect(r.source,o.target,r)){var s=function(e,t){var n=Uf(Mm(e[e.length-2]),Mm(e[e.length-1]),Mm(t[1]),Mm(t[0]));return n?[].concat(e.slice(0,e.length-1),[n],t.slice(1)):[Mm(e[0]),Mm(t[t.length-1])]}(r.waypoints,o.waypoints);n.reconnectEnd(r,o.target,s)}}}))}function Mm(e){return e.original||e}function Dm(e,t){Bs.call(this,e),this.preExecute("shape.delete",(function(e){var t=e.shape,n=t.parent;Vr(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 Bm(e,t,n,i){Bs.call(this,e);var r=i.get("dragging",!1);function o(e){var i,r,o=e.source,s=e.target;e.parent&&(Vr(e,"bpmn:SequenceFlow")&&(n.canConnectSequenceFlow(o,s)||(r=!0),n.canConnectMessageFlow(o,s)&&(i="bpmn:MessageFlow")),Vr(e,"bpmn:MessageFlow")&&(n.canConnectMessageFlow(o,s)||(r=!0),n.canConnectSequenceFlow(o,s)&&(i="bpmn:SequenceFlow")),Vr(e,"bpmn:Association")&&!n.canConnectAssociation(o,s)&&(r=!0),r&&t.removeConnection(e),i&&t.connect(o,s,{type:i,waypoints:e.waypoints.slice()}))}this.postExecuted("elements.move",(function(e){b(e.closure.allConnections,o)}),!0),this.preExecute("connection.reconnect",(function(e){var i,o,s=e.context,a=s.connection,l=s.newSource||a.source,c=s.newTarget||a.target;(i=n.canConnect(l,c))&&i.type!==a.type&&(o=t.connect(l,c,{type:i.type,waypoints:a.waypoints.slice()}),t.removeConnection(a),s.connection=o,r&&function(e,t){var n,i=r.context(),o=i&&i.payload.previousSelection;if(!o||!o.length)return;if(n=o.indexOf(e),-1===n)return;o.splice(n,1,t)}(a,o))})),this.postExecuted("element.updateProperties",(function(e){var n,i=e.context,r=i.properties,o=i.element,s=o.businessObject;r.default&&(n=g(o.outgoing,T({id:o.businessObject.default.id})))&&t.updateProperties(n,{conditionExpression:void 0}),r.conditionExpression&&s.sourceRef.default===s&&t.updateProperties(o.source,{default:void 0})}))}function Lm(e,t,n,i,r,o){i.invoke(Bs,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=w(r,(function(e,n){var r=t.canReplace([n],n.host||n.parent||i);return r?e.concat(r.replacements):e}),[]);o.length&&this._replaceElements(r,o)}),this),this.postExecuted(["elements.move"],500,(function(e){var n=e.context,i=n.newParent,r=n.newHost,o=[];b(n.closure.topLevel,(function(e){o=po(e)?o.concat(e.children):o.concat(e)})),1===o.length&&r&&(i=r);var s=t.canReplace(o,i);s&&this._replaceElements(o,s.replacements,r)}),this),this.postExecute(["shape.replace"],1500,(function(e){var n,i=e.context,r=i.oldShape,o=i.newShape,s=r.attachers;s&&s.length&&(n=t.canReplace(s,o),this._replaceElements(s,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})}))}Am.$inject=["eventBus","tooltips","translate"],e(Rm,Bs),Rm.$inject=["eventBus","modeling"],e(Tm,Bs),Tm.$inject=["eventBus","bpmnRules","modeling"],Dm.$inject=["eventBus","modeling"],e(Dm,Bs),e(Bm,Bs),Bm.$inject=["eventBus","modeling","bpmnRules","injector"],e(Lm,Bs),Lm.prototype._replaceElements=function(e,t){var n=this._elementRegistry,i=this._bpmnReplace,r=this._selection;b(t,(function(t){var r={type:t.newElementType},o=n.get(t.oldElementId),s=e.indexOf(o);e[s]=i.replaceElement(o,r,{select:!1})})),t&&r.select(e)},Lm.$inject=["bpmnReplace","bpmnRules","elementRegistry","injector","modeling","selection"];var Nm=1500,jm={width:140,height:120},zm={width:300,height:60},Im={width:300,height:150},Xm={width:140,height:120},Qm={width:50,height:30};function Fm(e){e.on("resize.start",Nm,(function(e){var t=e.context,n=t.shape,i=t.direction,r=t.balanced;(Vr(n,"bpmn:Lane")||Vr(n,"bpmn:Participant"))&&(t.resizeConstraints=function(e,t,n){var i=Wp(e),r=!0,o=!0,s=qp(i,[i]),a=Pn(e),l={},c={};/e/.test(t)?c.right=a.left+zm.width:/w/.test(t)&&(c.left=a.right-zm.width);s.forEach((function(e){var i=Pn(e);/n/.test(t)&&(i.top<a.top-10&&(r=!1),n&&Vm(a.top-i.bottom)<10&&Gm(l,"top",i.top+zm.height),Vm(a.top-i.top)<5&&Ym(c,"top",i.bottom-zm.height)),/s/.test(t)&&(i.bottom>a.bottom+10&&(o=!1),n&&Vm(a.bottom-i.top)<10&&Ym(l,"bottom",i.bottom-zm.height),Vm(a.bottom-i.bottom)<5&&Gm(c,"bottom",i.top+zm.height))}));var h=i.children.filter((function(e){return!e.hidden&&!e.waypoints&&(Vr(e,"bpmn:FlowElement")||Vr(e,"bpmn:Artifact"))}));return h.forEach((function(e){var n=Pn(e);r&&/n/.test(t)&&Ym(c,"top",n.top-Km),/e/.test(t)&&Gm(c,"right",n.right+Um),o&&/s/.test(t)&&Gm(c,"bottom",n.bottom+Jm),/w/.test(t)&&Ym(c,"left",n.left-Zm)})),{min:c,max:l}}(n,i,r)),Vr(n,"bpmn:Participant")&&(t.minDimensions=Im),Vr(n,"bpmn:SubProcess")&&ho(n)&&(t.minDimensions=Xm),Vr(n,"bpmn:TextAnnotation")&&(t.minDimensions=Qm)}))}Fm.$inject=["eventBus"];var Vm=Math.abs,qm=Math.min,Hm=Math.max;function Wm(e,t,n,i){var r=e[t];e[t]=void 0===r?n:i(n,r)}function Ym(e,t,n){return Wm(e,t,n,qm)}function Gm(e,t,n){return Wm(e,t,n,Hm)}var Um=20,Zm=50,Km=20,Jm=20;var eg=1001;function tg(e,t){e.on("resize.start",eg+500,(function(e){var t=e.context,n=t.shape;(Vr(n,"bpmn:Lane")||Vr(n,"bpmn:Participant"))&&(t.balanced=!ls(e))})),e.on("resize.end",eg,(function(e){var n=e.context,i=n.shape,r=n.canExecute,o=n.newBounds;if(Vr(i,"bpmn:Lane")||Vr(i,"bpmn:Participant"))return r&&(o=Sn(o),t.resizeLane(i,o,n.balanced)),!1}))}tg.$inject=["eventBus","modeling"];var ng=500;function ig(e,t,n,i,r){function o(e){return qr(e,["bpmn:ReceiveTask","bpmn:SendTask"])||function(e,t){c(t)||(t=[t]);return O(t,(function(t){return fo(e,t)}))}(e,["bpmn:ErrorEventDefinition","bpmn:EscalationEventDefinition","bpmn:MessageEventDefinition","bpmn:SignalEventDefinition"])}function s(t){return!!g(e.getDefinitions().get("rootElements"),T({id:t.id}))}function a(e){return Vr(e,"bpmn:ErrorEventDefinition")?"errorRef":Vr(e,"bpmn:EscalationEventDefinition")?"escalationRef":Vr(e,"bpmn:MessageEventDefinition")?"messageRef":Vr(e,"bpmn:SignalEventDefinition")?"signalRef":void 0}function l(e){if(qr(e,["bpmn:ReceiveTask","bpmn:SendTask"]))return e.get("messageRef");var t=e.get("eventDefinitions")[0];return t.get(a(t))}n.invoke(Bs,this),this.executed(["shape.create","element.updateProperties","element.updateModdleProperties"],(function(t){var n=t.shape||t.element;if(o(n)){var i=l(Hr(n));i&&!s(i)&&(Tt(e.getDefinitions().get("rootElements"),i),t.addedRootElement=i)}}),!0),this.reverted(["shape.create","element.updateProperties","element.updateModdleProperties"],(function(t){var n=t.addedRootElement;n&&Rt(e.getDefinitions().get("rootElements"),n)}),!0),t.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element;if(!n.labelTarget&&o(n)){var i=l(Hr(n));i&&(t.referencedRootElement=i)}})),t.on("copyPaste.pasteElement",ng,(function(e){var t=e.descriptor,n=t.businessObject,o=t.referencedRootElement;o&&(s(o)||(o=i.copyElement(o,r.create(o.$type))),function(e,t){if(qr(e,["bpmn:ReceiveTask","bpmn:SendTask"]))return e.set("messageRef",t);var n=e.get("eventDefinitions")[0];n.set(a(n),t)}(n,o),delete t.referencedRootElement)}))}ig.$inject=["bpmnjs","eventBus","injector","moddleCopy","bpmnFactory"],e(ig,Bs);var rg=Math.max;function og(e){e.on("spaceTool.getMinDimensions",(function(e){var t=e.shapes,n=e.axis,i=e.start,r={};return b(t,(function(e){var t=e.id;Vr(e,"bpmn:Participant")&&(!function(e){return"x"===e}(n)?r[t]={width:Im.width,height:sg(e,i)}:r[t]=Im),Vr(e,"bpmn:SubProcess")&&ho(e)&&(r[t]=Xm),Vr(e,"bpmn:TextAnnotation")&&(r[t]=Qm),Vr(e,"bpmn:Group")&&(r[t]=jm)})),r}))}function sg(e,t){var n;return Hp(e).length?(n=function(e,t){var n,i=Hp(e);return n=ag(i,t),e.height-n.height+zm.height}(e,t),rg(Im.height,n)):Im.height}function ag(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=Hp(i)).length?ag(r,t):i}og.$inject=["eventBus"];var lg=400,cg=600,hg=180,ug=160;function pg(e,t,n,i,r,o,s){Bs.call(this,t),this._canvas=e,this._eventBus=t,this._modeling=n,this._elementFactory=i,this._bpmnFactory=r,this._bpmnjs=o,this._elementRegistry=s;var a=this;function l(e){return Vr(e,"bpmn:SubProcess")&&!ho(e)}function c(t){var n=t.shape,i=t.newRootElement,r=Hr(n);i=a._addDiagram(i||r),t.newRootElement=e.addRootElement(i)}function h(t){var n=Hr(t.shape);a._removeDiagram(n);var i=t.newRootElement=s.get(Vs(n));e.removeRootElement(i)}this.executed("shape.create",(function(e){l(e.shape)&&c(e)}),!0),this.postExecuted("shape.create",(function(e){var t=e.shape,n=e.newRootElement;n&&t.children&&(a._showRecursively(t.children),a._moveChildrenToShape(t,n))}),!0),this.reverted("shape.create",(function(e){l(e.shape)&&h(e)}),!0),this.preExecuted("shape.delete",(function(e){var t=e.shape;if(l(t)){var i=s.get(Vs(t));i&&n.removeElements(i.children.slice())}}),!0),this.executed("shape.delete",(function(e){l(e.shape)&&h(e)}),!0),this.reverted("shape.delete",(function(e){l(e.shape)&&c(e)}),!0),this.preExecuted("shape.replace",(function(t){var n=t.oldShape,i=t.newShape;l(n)&&l(i)&&(t.oldRoot=e.removeRootElement(Vs(n)))}),!0),this.postExecuted("shape.replace",(function(t){var i=t.newShape,r=t.oldRoot,o=e.findRoot(Vs(i));if(r&&o){var s=r.children;n.moveElements(s,{x:0,y:0},o)}}),!0),this.executed("element.updateProperties",(function(e){var t=e.element;if(Vr(t,"bpmn:SubProcess")){var n=e.properties,i=e.oldProperties.id,r=n.id;if(i!==r){if(Hs(t))return s.updateId(t,qs(r)),void s.updateId(i,r);s.get(qs(i))&&s.updateId(qs(i),qs(r))}}}),!0),this.reverted("element.updateProperties",(function(e){var t=e.element;if(Vr(t,"bpmn:SubProcess")){var n=e.properties,i=e.oldProperties.id,r=n.id;if(i!==r){if(Hs(t))return s.updateId(t,qs(i)),void s.updateId(r,i);var o=s.get(qs(r));o&&s.updateId(o,qs(i))}}}),!0),t.on("element.changed",(function(e){var n=e.element;if(Hs(n)){var i=n,r=s.get(Fs(i));r&&r!==i&&t.fire("element.changed",{element:r})}})),this.executed("shape.toggleCollapse",lg,(function(e){var t=e.shape;Vr(t,"bpmn:SubProcess")&&(ho(t)?h(e):(c(e),a._showRecursively(t.children)))}),!0),this.reverted("shape.toggleCollapse",lg,(function(e){var t=e.shape;Vr(t,"bpmn:SubProcess")&&(ho(t)?h(e):(c(e),a._showRecursively(t.children)))}),!0),this.postExecuted("shape.toggleCollapse",cg,(function(e){var t=e.shape;if(Vr(t,"bpmn:SubProcess")){var n=e.newRootElement;n&&(ho(t)?a._moveChildrenToShape(n,t):a._moveChildrenToShape(t,n))}}),!0),t.on("copyPaste.createTree",(function(e){var t=e.element,n=e.children;if(l(t)){var i=Vs(t),r=s.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(Vr(Wr(r),"bpmndi:BPMNPlane")){var o=Fs(r),s=g(i,(function(e){return e.id===o}));s&&(t.parent=s.id)}})),t.on("copyPaste.pasteElement",(function(e){var t=e.descriptor;t.parent&&(l(t.parent)||t.parent.hidden)&&(t.hidden=!0)}))}function dg(e,t){e.invoke(Bs,this),this.postExecuted("shape.replace",(function(e){var n=e.context.oldShape,i=e.context.newShape;if(Vr(i,"bpmn:SubProcess")&&(Vr(n,"bpmn:Task")||Vr(n,"bpmn:CallActivity"))&&ho(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 fg(e,t){Bs.call(this,e),this.postExecuted("shape.toggleCollapse",1500,(function(e){var n=e.shape;if(!ho(n)){var i=Ot(n);i.forEach((function(e){var t=e.incoming.slice(),n=e.outgoing.slice();b(t,(function(e){r(e,!0)})),b(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,Rn(n)):t.reconnectStart(e,n,Rn(n)))}}),!0)}e(pg,Bs),pg.prototype._moveChildrenToShape=function(e,t){var n,i=this._modeling,r=e.children;if(r){var o=(r=r.concat(r.reduce((function(t,n){return n.label&&n.label.parent!==e?t.concat(n.label):t}),[]))).filter((function(e){return!e.hidden}));if(o.length){var s=Et(o);if(t.x){var a=Rn(t),l=Rn(s);n={x:a.x-l.x,y:a.y-l.y}}else n={x:hg-s.x,y:ug-s.y};i.moveElements(r,n,t,{autoResize:!1})}else i.moveElements(r,{x:0,y:0},t,{autoResize:!1})}},pg.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},pg.prototype._addDiagram=function(e){var t=this._bpmnjs.getDefinitions().diagrams;return e.businessObject||(e=this._createNewDiagram(e)),t.push(e.di.$parent),e},pg.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:Vs(e),type:e.$type,di:i,businessObject:e,collapsed:!0})},pg.prototype._removeDiagram=function(e){var t=this._bpmnjs.getDefinitions().diagrams,n=g(t,(function(t){return t.plane.bpmnElement.id===e.id}));return t.splice(t.indexOf(n),1),n},pg.$inject=["canvas","eventBus","modeling","elementFactory","bpmnFactory","bpmnjs","elementRegistry"],dg.$inject=["injector","modeling"],e(dg,Bs),e(fg,Bs),fg.$inject=["eventBus","modeling"];var mg=500;function gg(e,t,n){Bs.call(this,e),this.executed(["shape.toggleCollapse"],mg,(function(e){var t,n=e.context.shape;Vr(n,"bpmn:SubProcess")&&(n.collapsed?Wr(n).isExpanded=!1:((t=n.children).length&&t.forEach((function(e){"label"!==e.type||e.businessObject.name||(e.hidden=!0)})),Wr(n).isExpanded=!0))})),this.reverted(["shape.toggleCollapse"],mg,(function(e){var t=e.context.shape;t.collapsed?Wr(t).isExpanded=!1:Wr(t).isExpanded=!0})),this.postExecuted(["shape.toggleCollapse"],mg,(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,o=e.children,s=t;return n=(r=o,r.filter((function(e){return!e.hidden}))).concat([e]),(i=Xp(n))?(s.width=Math.max(i.width,s.width),s.height=Math.max(i.height,s.height),s.x=i.x+(i.width-s.width)/2,s.y=i.y+(i.height-s.height)/2):(s.x=e.x+(e.width-s.width)/2,s.y=e.y+(e.height-s.height)/2),s}(r,o),n.resizeShape(r,i,null,{autoResize:!r.collapsed&&"nwse"})}))}function vg(e,t,n,i){t.invoke(Bs,this),this.preExecute("shape.delete",(function(e){var t=e.context.shape,r=t.businessObject;kn(t)||(Vr(t,"bpmn:Participant")&&ho(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;Vr(t,"bpmn:Collaboration")&&n.ids.unclaim(i.id)}))}function yg(e,t){Bs.call(this,e),this.preExecute("connection.delete",(function(e){var n=e.context.connection,i=n.source;(function(e,t){if(!Vr(e,"bpmn:SequenceFlow"))return!1;var n=Hr(t),i=Hr(e);return n.get("default")===i})(n,i)&&t.updateProperties(i,{default:null})}))}e(gg,Bs),gg.$inject=["eventBus","elementFactory","modeling"],e(vg,Bs),vg.$inject=["canvas","injector","moddle","modeling"],e(yg,Bs),yg.$inject=["eventBus","modeling"];var bg=500,xg=5e3;function wg(e,t,n){var i;function r(){if(!i)throw new Error(n("out of bounds release"));return i}Bs.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,xg,(function(e){(i=i||new _g).enter()})),this.postExecuted(o,bg,(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||(Vr(t,"bpmn:Lane")&&n.addLane(t),Vr(t,"bpmn:FlowNode")&&n.addFlowNode(t))}))}function _g(){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}}wg.$inject=["eventBus","modeling","translate"],e(wg,Bs);var Og={__init__:["adaptiveLabelPositioningBehavior","appendBehavior","associationBehavior","attachEventBehavior","boundaryEventBehavior","createBehavior","createDataObjectBehavior","createParticipantBehavior","dataInputAssociationBehavior","dataStoreBehavior","deleteLaneBehavior","detachEventBehavior","dropOnFlowBehavior","eventBasedGatewayBehavior","fixHoverBehavior","groupBehavior","importDockingFix","isHorizontalFix","labelBehavior","layoutConnectionBehavior","messageFlowBehavior","modelingFeedback","removeElementBehavior","removeEmbeddedLabelBoundsBehavior","removeParticipantBehavior","replaceConnectionBehavior","replaceElementBehaviour","resizeBehavior","resizeLaneBehavior","rootElementReferenceBehavior","spaceToolBehavior","subProcessPlaneBehavior","subProcessStartEventBehavior","toggleCollapseConnectionBehaviour","toggleElementCollapseBehaviour","unclaimIdBehavior","updateFlowNodeRefsBehavior","unsetDefaultFlowBehavior"],adaptiveLabelPositioningBehavior:["type",mf],appendBehavior:["type",vf],associationBehavior:["type",yf],attachEventBehavior:["type",xf],boundaryEventBehavior:["type",_f],createBehavior:["type",Of],createDataObjectBehavior:["type",Ef],createParticipantBehavior:["type",$f],dataInputAssociationBehavior:["type",Rf],dataStoreBehavior:["type",Df],deleteLaneBehavior:["type",Lf],detachEventBehavior:["type",jf],dropOnFlowBehavior:["type",If],eventBasedGatewayBehavior:["type",Ff],fixHoverBehavior:["type",Wf],groupBehavior:["type",Gf],importDockingFix:["type",Zf],isHorizontalFix:["type",Jf],labelBehavior:["type",vm],layoutConnectionBehavior:["type",bm],messageFlowBehavior:["type",Pm],modelingFeedback:["type",Am],removeElementBehavior:["type",Tm],removeEmbeddedLabelBoundsBehavior:["type",Rm],removeParticipantBehavior:["type",Dm],replaceConnectionBehavior:["type",Bm],replaceElementBehaviour:["type",Lm],resizeBehavior:["type",Fm],resizeLaneBehavior:["type",tg],rootElementReferenceBehavior:["type",ig],spaceToolBehavior:["type",og],subProcessPlaneBehavior:["type",pg],subProcessStartEventBehavior:["type",dg],toggleCollapseConnectionBehaviour:["type",fg],toggleElementCollapseBehaviour:["type",gg],unclaimIdBehavior:["type",vg],unsetDefaultFlowBehavior:["type",yg],updateFlowNodeRefsBehavior:["type",wg]};function Eg(e,t){var n=Tn(e,t,-15);return"intersect"!==n?n:null}function kg(e){$c.call(this,e)}function Sg(e){return!e||kn(e)}function Cg(e){do{if(Vr(e,"bpmn:Process"))return Hr(e);if(Vr(e,"bpmn:Participant"))return Hr(e).processRef||Hr(e)}while(e=e.parent)}function Pg(e){return Vr(e,"bpmn:TextAnnotation")}function $g(e){return Vr(e,"bpmn:Group")&&!e.labelTarget}function Ag(e){return Vr(e,"bpmn:BoundaryEvent")&&Mg(e,"bpmn:CompensateEventDefinition")}function Rg(e){return Hr(e).isForCompensation}function Tg(e){for(var t=e;t=t.parent;){if(Vr(t,"bpmn:FlowElementsContainer"))return Hr(t);if(Vr(t,"bpmn:Participant"))return Hr(t).processRef}return null}function Mg(e,t){return!!g(Hr(e).eventDefinitions||[],(function(e){return Vr(e,t)}))}function Dg(e,t){return(Hr(e).eventDefinitions||[]).every((function(e){return Vr(e,t)}))}function Bg(e,t){var n=function(e){for(var t=[];e;)(e=e.parent)&&t.push(e);return t}(t);return-1!==n.indexOf(e)}function Lg(e,t,n){if(Sg(e)||Sg(t))return null;if(!Vr(n,"bpmn:DataAssociation")){if(Gg(e,t))return{type:"bpmn:MessageFlow"};if(Ug(e,t))return{type:"bpmn:SequenceFlow"}}var i=Zg(e,t);return i||(Ag(e)&&Rg(t)?{type:"bpmn:Association",associationDirection:"One"}:!!Yg(e,t)&&{type:"bpmn:Association"})}function Ng(e,t){return!(!kn(e)&&!$g(e))||!(Vr(t,"bpmn:Participant")&&!ho(t))&&(Vr(e,"bpmn:Participant")?Vr(t,"bpmn:Process")||Vr(t,"bpmn:Collaboration"):qr(e,["bpmn:DataInput","bpmn:DataOutput"])&&e.parent?t===e.parent:Vr(e,"bpmn:Lane")?Vr(t,"bpmn:Participant")||Vr(t,"bpmn:Lane"):!(Vr(e,"bpmn:BoundaryEvent")&&!function(e){return Hr(e).cancelActivity&&(Ig(e)||Xg(e))}(e))&&(Vr(e,"bpmn:FlowElement")&&!Vr(e,"bpmn:DataStoreReference")?Vr(t,"bpmn:FlowElementsContainer")?ho(t):qr(t,["bpmn:Participant","bpmn:Lane"]):Vr(e,"bpmn:DataStoreReference")&&Vr(t,"bpmn:Collaboration")?O(Hr(t).get("participants"),(function(e){return!!e.get("processRef")})):qr(e,["bpmn:Artifact","bpmn:DataAssociation","bpmn:DataStoreReference"])?qr(t,["bpmn:Collaboration","bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"]):!!Vr(e,"bpmn:MessageFlow")&&(Vr(t,"bpmn:Collaboration")||e.source.parent==t||e.target.parent==t)))}function jg(e){return Vr(e,"bpmn:Lane")}function zg(e){return!!function(e){return!kn(e)&&Vr(e,"bpmn:BoundaryEvent")}(e)||(!(!Vr(e,"bpmn:IntermediateThrowEvent")||!Ig(e))||Vr(e,"bpmn:IntermediateCatchEvent")&&Xg(e))}function Ig(e){var t=Hr(e);return t&&!(t.eventDefinitions&&t.eventDefinitions.length)}function Xg(e){return Qg(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])}function Qg(e,t){return t.some((function(t){return Mg(e,t)}))}function Fg(e,t,n,i){if(Array.isArray(e)||(e=[e]),1!==e.length)return!1;var r=e[0];return!kn(r)&&(!!zg(r)&&(!po(t)&&(!(!Vr(t,"bpmn:Activity")||Rg(t))&&(!(i&&!Eg(i,t))&&(!function(e){return Vr(e,"bpmn:ReceiveTask")&&g(e.incoming,(function(e){return Vr(e.source,"bpmn:EventBasedGateway")}))}(t)&&"attach")))))}function Vg(e,t,n){if(!t)return!1;var i={replacements:[]};return b(e,(function(e){po(t)||Vr(e,"bpmn:StartEvent")&&"label"!==e.type&&Ng(e,t)&&(uo(e)||i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"}),(function(e){return fo(e,"bpmn:ErrorEventDefinition")}(e)||function(e){return fo(e,"bpmn:EscalationEventDefinition")}(e)||function(e){return fo(e,"bpmn:CompensateEventDefinition")}(e))&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"}),Qg(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])&&Vr(t,"bpmn:SubProcess")&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"})),Vr(t,"bpmn:Transaction")||Mg(e,"bpmn:CancelEventDefinition")&&"label"!==e.type&&(Vr(e,"bpmn:EndEvent")&&Ng(e,t)&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:EndEvent"}),Vr(e,"bpmn:BoundaryEvent")&&Fg(e,t,0,n)&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:BoundaryEvent"}))})),!!i.replacements.length&&i}function qg(e,t){return!O(e,jg)&&(!t||e.every((function(e){return Ng(e,t)})))}function Hg(e,t,n,i){return!!t&&(!(!kn(e)&&!$g(e))||!function(e,t){return e===t}(n,t)&&((!n||!Bg(n,t))&&(Ng(e,t)||Kg(e,t))))}function Wg(e,t){return Vr(e,"bpmn:SubProcess")?ho(e)&&(!t||t.width>=100&&t.height>=80):Vr(e,"bpmn:Lane")?!t||t.width>=130&&t.height>=60:Vr(e,"bpmn:Participant")?!t||t.width>=250&&t.height>=50:!!Pg(e)||!!$g(e)}function Yg(e,t){return!(!Ag(e)||!Rg(t))||!Bg(t,e)&&!Bg(e,t)&&(!!function(e,t){var n=Pg(e),i=Pg(t);return(n||i)&&n!==i}(e,t)||!!Zg(e,t))}function Gg(e,t){return!(ev(e)&&!ev(t))&&(Vr(n=e,"bpmn:InteractionNode")&&!Vr(n,"bpmn:BoundaryEvent")&&(!Vr(n,"bpmn:Event")||Vr(n,"bpmn:ThrowEvent")&&Dg(n,"bpmn:MessageEventDefinition"))&&function(e){return Vr(e,"bpmn:InteractionNode")&&!Rg(e)&&(!Vr(e,"bpmn:Event")||Vr(e,"bpmn:CatchEvent")&&Dg(e,"bpmn:MessageEventDefinition"))&&!(Vr(e,"bpmn:BoundaryEvent")&&!Mg(e,"bpmn:MessageEventDefinition"))}(t)&&!function(e,t){return Cg(e)===Cg(t)}(e,t));var n}function Ug(e,t){return Vr(n=e,"bpmn:FlowNode")&&!Vr(n,"bpmn:EndEvent")&&!po(n)&&!(Vr(n,"bpmn:IntermediateThrowEvent")&&Mg(n,"bpmn:LinkEventDefinition"))&&!Ag(n)&&!Rg(n)&&function(e){return Vr(e,"bpmn:FlowNode")&&!Vr(e,"bpmn:StartEvent")&&!Vr(e,"bpmn:BoundaryEvent")&&!po(e)&&!(Vr(e,"bpmn:IntermediateCatchEvent")&&Mg(e,"bpmn:LinkEventDefinition"))&&!Rg(e)}(t)&&function(e,t){return Tg(e)===Tg(t)}(e,t)&&!(Vr(e,"bpmn:EventBasedGateway")&&!function(e){return Vr(e,"bpmn:ReceiveTask")||Vr(e,"bpmn:IntermediateCatchEvent")&&(Mg(e,"bpmn:MessageEventDefinition")||Mg(e,"bpmn:TimerEventDefinition")||Mg(e,"bpmn:ConditionalEventDefinition")||Mg(e,"bpmn:SignalEventDefinition"))}(t));var n}function Zg(e,t){return qr(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&qr(t,["bpmn:Activity","bpmn:ThrowEvent"])?{type:"bpmn:DataInputAssociation"}:!(!qr(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])||!qr(e,["bpmn:Activity","bpmn:CatchEvent"]))&&{type:"bpmn:DataOutputAssociation"}}function Kg(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&&(qr(t,["bpmn:SequenceFlow","bpmn:MessageFlow"])&&!kn(t)&&Vr(e,"bpmn:FlowNode")&&!Vr(e,"bpmn:BoundaryEvent")&&Ng(e,t.parent))}function Jg(e,t){return!!kn(t)||!(Vr(t,"bpmn:Lane")&&!function(e,t){return e&&t&&-1!==e.indexOf(t)}(e,t.parent))}function ev(e){return Vc(e,"bpmn:Process")||Vc(e,"bpmn:Collaboration")}e(kg,$c),kg.$inject=["eventBus"],kg.prototype.init=function(){this.addRule("connection.start",(function(e){return function(e){if(Sg(e))return null;return qr(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 Lg(t,n)}finally{r&&(n.parent=null)}})),this.addRule("connection.reconnect",(function(e){var t=e.connection;return Lg(e.source,e.target,t)})),this.addRule("connection.updateWaypoints",(function(e){return{type:e.connection.type}})),this.addRule("shape.resize",(function(e){return Wg(e.shape,e.newBounds)})),this.addRule("elements.create",(function(e){var t=e.elements,n=e.position,i=e.target;return!(En(i)&&!Kg(t,i))&&_(t,(function(e){return En(e)?Lg(e.source,e.target,e):e.host?Fg(e,e.host,null,n):Hg(e,i,null)}))})),this.addRule("elements.move",(function(e){var t=e.target,n=e.shapes,i=e.position;return Fg(n,t,null,i)||Vg(n,t,i)||qg(n,t)||Kg(n,t)})),this.addRule("shape.create",(function(e){return Hg(e.shape,e.target,e.source,e.position)})),this.addRule("shape.attach",(function(e){return Fg(e.shape,e.target,null,e.position)})),this.addRule("element.copy",(function(e){var t=e.element;return Jg(e.elements,t)}))},kg.prototype.canConnectMessageFlow=Gg,kg.prototype.canConnectSequenceFlow=Ug,kg.prototype.canConnectDataAssociation=Zg,kg.prototype.canConnectAssociation=Yg,kg.prototype.canMove=qg,kg.prototype.canAttach=Fg,kg.prototype.canReplace=Vg,kg.prototype.canDrop=Ng,kg.prototype.canInsert=Kg,kg.prototype.canCreate=Hg,kg.prototype.canConnect=Lg,kg.prototype.canResize=Wg,kg.prototype.canCopy=Jg;var tv={__depends__:[ph],__init__:["bpmnRules"],bpmnRules:["type",kg]},nv=2e3;function iv(e,t){e.on("saveXML.start",nv,(function(){b(t.getRootElements(),(function(e){var t,n=Wr(e);t=E(y(Ot([e],!1),(function(t){return t!==e&&!t.labelTarget})),Wr),n.set("planeElement",t)}))}))}iv.$inject=["eventBus","canvas"];var rv={__init__:["bpmnDiOrdering"],bpmnDiOrdering:["type",iv]};function ov(e){Bs.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 sv(e,t,n){ov.call(this,e);var i=[{type:"bpmn:SubProcess",order:{level:6}},{type:"bpmn:SequenceFlow",order:{level:9,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=g(i,(function(t){return qr(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(n)||t.getRootElement(),index:-1};var i=r(e);i.containers&&(n=function(e,t,n){for(var i=t;i&&!qr(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),s=v(n.children,(function(t){return!(!e.labelTarget&&t.labelTarget)&&i.level<r(t).level}));return-1!==s&&-1!==o&&o<s&&(s-=1),{index:s,parent:n}}}ov.prototype.getOrdering=function(e,t){return null},e(ov,Bs),sv.$inject=["eventBus","canvas","translate"],e(sv,ov);var av={__depends__:[Uo],__init__:["bpmnOrderingProvider"],bpmnOrderingProvider:["type",sv]};function lv(e,t){this._eventBus=e,this._dragging=t,this._tools=[],this._active=null}lv.$inject=["eventBus","dragging"],lv.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)},lv.prototype.isActive=function(e){return e&&this._active===e},lv.prototype.length=function(e){return this._tools.length},lv.prototype.setActive=function(e){var t=this._eventBus;this._active!==e&&(this._active=e,t.fire("tool-manager.update",{tool:e}))},lv.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),b(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 cv={__depends__:[ah],__init__:["toolManager"],toolManager:["type",lv]};function hv(e,t){return-1!==e.indexOf(t)}var uv=Math.abs,pv=Math.round,dv={x:"width",y:"height"},fv="crosshair",mv={n:"top",w:"left",s:"bottom",e:"right"},gv=1500,vv={n:"s",w:"e",s:"n",e:"w"},yv=20;function bv(e,t,n,i,r,o,s){this._canvas=e,this._dragging=t,this._eventBus=n,this._modeling=i,this._rules=r,this._toolManager=o,this._mouse=s;var a=this;o.registerTool("space",{tool:"spaceTool.selection",dragging:"spaceTool"}),n.on("spaceTool.selection.end",(function(e){n.once("spaceTool.selection.ended",(function(){a.activateMakeSpace(e.originalEvent)}))})),n.on("spaceTool.move",gv,(function(e){var t=e.context,n=t.initialized;n||(n=t.initialized=a.init(e,t)),n&&wv(e)})),n.on("spaceTool.end",(function(e){var t=e.context,i=t.axis,r=t.direction,o=t.movingShapes,s=t.resizingShapes,l=t.start;if(t.initialized){wv(e);var c={x:0,y:0};c[i]=pv(e["d"+i]),a.makeSpace(o,s,c,r,l),n.once("spaceTool.ended",(function(e){a.activateSelection(e.originalEvent,!0,!0)}))}}))}function xv(e){return{top:e.top-yv,right:e.right+yv,bottom:e.bottom+yv,left:e.left-yv}}function wv(e){var t,n,i=e.context.spaceToolConstraints;i&&(u(i.left)&&(t=Math.max(e.x,i.left),e.dx=e.dx+t-e.x,e.x=t),u(i.right)&&(t=Math.min(e.x,i.right),e.dx=e.dx+t-e.x,e.x=t),u(i.top)&&(n=Math.max(e.y,i.top),e.dy=e.dy+n-e.y,e.y=n),u(i.bottom)&&(n=Math.min(e.y,i.bottom),e.dy=e.dy+n-e.y,e.y=n))}function _v(e,t){return-1!==e.indexOf(t)}bv.$inject=["canvas","dragging","eventBus","modeling","rules","toolManager","mouse"],bv.prototype.activateSelection=function(e,t,n){this._dragging.init(e,"spaceTool.selection",{autoActivate:t,cursor:fv,data:{context:{reactivate:n}},trapClick:!1})},bv.prototype.activateMakeSpace=function(e){this._dragging.init(e,"spaceTool",{autoActivate:!0,cursor:fv,data:{context:{}}})},bv.prototype.makeSpace=function(e,t,n,i,r){return this._modeling.createSpace(e,t,n,i,r)},bv.prototype.init=function(e,t){var n=uv(e.dx)>uv(e.dy)?"x":"y",i=e["d"+n],r=e[n]-i;if(uv(i)<5)return!1;i<0&&(i*=-1),ls(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),s=Ot(this._canvas.getRootElement(),!0),a=this.calculateAdjustments(s,n,i,r),l=function(e,t,n,i,r){var o=e.movingShapes,s=e.resizingShapes;if(!s.length)return;var a,l,c={};return b(s,(function(e){var h,p,d,f,m,g,v=e.attachers,b=e.children,x=Pn(e),w=y(b,(function(e){return!(En(e)||kn(e)||_v(o,e)||_v(s,e))})),_=y(b,(function(e){return!En(e)&&!kn(e)&&_v(o,e)})),O=[],E=[];w.length&&(p=xv(Pn(Et(w))),h=i-x[mv[n]]+p[mv[n]],"n"===n?c.bottom=l=u(l)?Math.min(l,h):h:"w"===n?c.right=l=u(l)?Math.min(l,h):h:"s"===n?c.top=a=u(a)?Math.max(a,h):h:"e"===n&&(c.left=a=u(a)?Math.max(a,h):h)),_.length&&(d=xv(Pn(Et(_))),h=i-d[mv[vv[n]]]+x[mv[vv[n]]],"n"===n?c.bottom=l=u(l)?Math.min(l,h):h:"w"===n?c.right=l=u(l)?Math.min(l,h):h:"s"===n?c.top=a=u(a)?Math.max(a,h):h:"e"===n&&(c.left=a=u(a)?Math.max(a,h):h)),v&&v.length&&(v.forEach((function(e){_v(o,e)?O.push(e):E.push(e)})),O.length&&(f=Pn(Et(O.map(Rn))),m=x[mv[vv[n]]]-(f[mv[vv[n]]]-i)),E.length&&(g=Pn(Et(E.map(Rn)))[mv[n]]-(x[mv[n]]-i)),"n"===n?(h=Math.min(m||1/0,g||1/0),c.bottom=l=u(l)?Math.min(l,h):h):"w"===n?(h=Math.min(m||1/0,g||1/0),c.right=l=u(l)?Math.min(l,h):h):"s"===n?(h=Math.max(m||-1/0,g||-1/0),c.top=a=u(a)?Math.max(a,h):h):"e"===n&&(h=Math.max(m||-1/0,g||-1/0),c.left=a=u(a)?Math.max(a,h):h));var k=r&&r[e.id];k&&("n"===n?(h=i+e[dv[t]]-k[dv[t]],c.bottom=l=u(l)?Math.min(l,h):h):"w"===n?(h=i+e[dv[t]]-k[dv[t]],c.right=l=u(l)?Math.min(l,h):h):"s"===n?(h=i-e[dv[t]]+k[dv[t]],c.top=a=u(a)?Math.max(a,h):h):"e"===n&&(h=i-e[dv[t]]+k[dv[t]],c.left=a=u(a)?Math.max(a,h):h))})),c}(a,n,o,r,this._eventBus.fire("spaceTool.getMinDimensions",{axis:n,direction:o,shapes:a.resizingShapes,start:r}));return I(t,a,{axis:n,direction:o,spaceToolConstraints:l,start:r}),ka("resize-"+("x"===n?"ew":"ns")),!0},bv.prototype.calculateAdjustments=function(e,t,n,i){var r=this._rules,o=[],s=[],a=[],l=[];function c(e){o.includes(e)||o.push(e);var t=e.label;t&&!o.includes(t)&&o.push(t)}b(e,(function(e){if(e.parent&&!kn(e))if(En(e))l.push(e);else{var o=e[t],h=o+e[dv[t]];if(function(e){return!!e.host}(e)&&(n>0&&Rn(e)[t]>i||n<0&&Rn(e)[t]<i))a.push(e);else{var u;if(!(n>0&&o>i||n<0&&h<i))return o<i&&h>i&&r.allowed("shape.resize",{shape:e})?(u=e,void(s.includes(u)||s.push(u))):void 0;c(e)}}})),b(o,(function(e){var t=e.attachers;t&&b(t,(function(e){c(e)}))}));var h=o.concat(s);return b(a,(function(e){var t=e.host;_v(h,t)&&c(e)})),h=o.concat(s),b(l,(function(e){var t=e.source,n=e.target,i=e.label;_v(h,t)&&_v(h,n)&&i&&c(i)})),{movingShapes:o,resizingShapes:s}},bv.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)},bv.prototype.isActive=function(){var e=this._dragging.context();return!!e&&/^spaceTool/.test(e.prefix)};var Ov="djs-dragging",Ev="djs-resizing",kv=250,Sv=Math.max;function Cv(e,t,n,i,r){function o(e,t){b(e,(function(e){r.addDragger(e,t),n.addMarker(e,Ov)}))}e.on("spaceTool.selection.start",(function(e){var t=n.getLayer("space"),r=e.context,o="M 0,-10000 L 0,10000",s="M -10000,0 L 10000,0",a=Ie("g");Ae(a,i.cls("djs-crosshair-group",["no-events"])),Se(t,a);var l=Ie("path");Ae(l,"d",o),Te(l).add("djs-crosshair"),Se(a,l);var c=Ie("path");Ae(c,"d",s),Te(c).add("djs-crosshair"),Se(a,c),r.crosshairGroup=a})),e.on("spaceTool.selection.move",(function(e){di(e.context.crosshairGroup,e.x,e.y)})),e.on("spaceTool.selection.cleanup",(function(e){var t=e.context.crosshairGroup;t&&De(t)})),e.on("spaceTool.move",kv,(function(e){var s=e.context,a=s.line,l=s.axis,c=s.movingShapes,h=s.resizingShapes;if(s.initialized){if(!s.dragGroup){var u=n.getLayer("space");Ae(a=Ie("path"),"d","M0,0 L0,0"),Te(a).add("djs-crosshair"),Se(u,a),s.line=a;var p=Ie("g");Ae(p,i.cls("djs-drag-group",["no-events"])),Se(n.getActiveLayer(),p),o(c,p),o(s.movingConnections=t.filter((function(e){var t=!1;b(c,(function(n){b(n.outgoing,(function(n){e===n&&(t=!0)}))}));var n=!1;b(c,(function(t){b(t.incoming,(function(t){e===t&&(n=!0)}))}));var i=!1;b(h,(function(t){b(t.outgoing,(function(t){e===t&&(i=!0)}))}));var r=!1;return b(h,(function(t){b(t.incoming,(function(t){e===t&&(r=!0)}))})),En(e)&&(t||i)&&(n||r)})),p),s.dragGroup=p}if(!s.frameGroup){var d=Ie("g");Ae(d,i.cls("djs-frame-group",["no-events"])),Se(n.getActiveLayer(),d);var f=[];b(h,(function(e){var t=r.addFrame(e,d),i=t.getBBox();f.push({element:t,initialBounds:i}),n.addMarker(e,Ev)})),s.frameGroup=d,s.frames=f}Ae(a,{d:{x:"M"+e.x+", -10000 L"+e.x+", 10000",y:"M -10000, "+e.y+" L 10000, "+e.y}[l]});var m={x:e.dx,y:e.dy};m[{x:"y",y:"x"}[s.axis]]=0,di(s.dragGroup,m.x,m.y),b(s.frames,(function(e){var t,n,i=e.element,r=e.initialBounds;"e"===s.direction?Ae(i,{width:Sv(r.width+m.x,5)}):Ae(i,{width:t=Sv(r.width-m.x,5),x:r.x+r.width-t}),"s"===s.direction?Ae(i,{height:Sv(r.height+m.y,5)}):Ae(i,{height:n=Sv(r.height-m.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,s=t.line,a=t.dragGroup,l=t.frameGroup;b(i,(function(e){n.removeMarker(e,Ov)})),b(r,(function(e){n.removeMarker(e,Ov)})),a&&(De(s),De(a)),b(o,(function(e){n.removeMarker(e,Ev)})),l&&De(l)}))}Cv.$inject=["eventBus","elementRegistry","canvas","styles","previewSupport"];var Pv={__init__:["spaceToolPreview"],__depends__:[ah,ph,cv,Mu,Gu],spaceTool:["type",bv],spaceToolPreview:["type",Cv]};function $v(e){e.invoke(bv,this)}$v.$inject=["injector"],e($v,bv),$v.prototype.calculateAdjustments=function(e,t,n,i){var r=bv.prototype.calculateAdjustments.call(this,e,t,n,i);return r.resizingShapes=r.resizingShapes.filter((function(e){return!Vr(e,"bpmn:TextAnnotation")&&("y"!==t||!function(e){return Vr(e,"bpmn:Participant")&&!Hr(e).processRef}(e))})),r};var Av={__depends__:[Pv],spaceTool:["type",$v]};function Rv(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)}Rv.$inject=["eventBus","injector"],Rv.prototype.execute=function(e,t){if(!e)throw new Error("command required");this._currentExecution.trigger="execute";const n={command:e,context:t};this._pushAction(n),this._internalExecute(n),this._popAction()},Rv.prototype.canExecute=function(e,t){const n={command:e,context:t},i=this._getHandler(e);let r=this._fire(e,"canExecute",n);if(void 0===r){if(!i)return!1;i.canExecute&&(r=i.canExecute(t))}return r},Rv.prototype.clear=function(e){this._stack.length=0,this._stackIdx=-1,!1!==e&&this._fire("changed",{trigger:"clear"})},Rv.prototype.undo=function(){let e,t=this._getUndoAction();if(t){for(this._currentExecution.trigger="undo",this._pushAction(t);t&&(this._internalUndo(t),e=this._getUndoAction(),e&&e.id===t.id);)t=e;this._popAction()}},Rv.prototype.redo=function(){let e,t=this._getRedoAction();if(t){for(this._currentExecution.trigger="redo",this._pushAction(t);t&&(this._internalExecute(t,!0),e=this._getRedoAction(),e&&e.id===t.id);)t=e;this._popAction()}},Rv.prototype.register=function(e,t){this._setHandler(e,t)},Rv.prototype.registerHandler=function(e,t){if(!e||!t)throw new Error("command and handlerCls must be defined");const n=this._injector.instantiate(t);this.register(e,n)},Rv.prototype.canUndo=function(){return!!this._getUndoAction()},Rv.prototype.canRedo=function(){return!!this._getRedoAction()},Rv.prototype._getRedoAction=function(){return this._stack[this._stackIdx+1]},Rv.prototype._getUndoAction=function(){return this._stack[this._stackIdx]},Rv.prototype._internalUndo=function(e){const t=e.command,n=e.context,i=this._getHandler(t);this._atomicDo((()=>{this._fire(t,"revert",e),i.revert&&this._markDirty(i.revert(n)),this._revertedAction(e),this._fire(t,"reverted",e)}))},Rv.prototype._fire=function(e,t,n){arguments.length<3&&(n=t,t=null);const i=t?[e+"."+t,t]:[e];let r;n=this._eventBus.createEvent(n);for(const e of i)if(r=this._eventBus.fire("commandStack."+e,n),n.cancelBubble)break;return r},Rv.prototype._createId=function(){return this._uid++},Rv.prototype._atomicDo=function(e){const t=this._currentExecution;t.atomic=!0;try{e()}finally{t.atomic=!1}},Rv.prototype._internalExecute=function(e,t){const n=e.command,i=e.context,r=this._getHandler(n);if(!r)throw new Error("no command handler registered for <"+n+">");this._pushAction(e),t||(this._fire(n,"preExecute",e),r.preExecute&&r.preExecute(i),this._fire(n,"preExecuted",e)),this._atomicDo((()=>{this._fire(n,"execute",e),r.execute&&this._markDirty(r.execute(i)),this._executedAction(e,t),this._fire(n,"executed",e)})),t||(this._fire(n,"postExecute",e),r.postExecute&&r.postExecute(i),this._fire(n,"postExecuted",e)),this._popAction()},Rv.prototype._pushAction=function(e){const 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)},Rv.prototype._popAction=function(){const e=this._currentExecution,t=e.trigger,n=e.actions,i=e.dirty;n.pop(),n.length||(this._eventBus.fire("elements.changed",{elements:$("id",i.reverse())}),i.length=0,this._fire("changed",{trigger:t}),e.trigger=null)},Rv.prototype._markDirty=function(e){const t=this._currentExecution;e&&(e=c(e)?e:[e],t.dirty=t.dirty.concat(e))},Rv.prototype._executedAction=function(e,t){const n=++this._stackIdx;t||this._stack.splice(n,this._stack.length,e)},Rv.prototype._revertedAction=function(e){this._stackIdx--},Rv.prototype._getHandler=function(e){return this._handlerMap[e]},Rv.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 Tv={commandStack:["type",Rv]},Mv=new Ss("tt");function Dv(e,t){e.style.display=!1===t?"none":""}var Bv="djs-tooltip",Lv="."+Bv;function Nv(e,t){var n,i;this._eventBus=e,this._canvas=t,this._ids=Mv,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=(n=t.getContainer(),J(i=we('<div class="djs-tooltip-container" />'),{position:"absolute",width:"0",height:"0"}),n.insertBefore(i,n.firstChild),i);var r=this;ve.bind(this._tooltipRoot,Lv,"mousedown",(function(e){e.stopPropagation()})),ve.bind(this._tooltipRoot,Lv,"mouseover",(function(e){r.trigger("mouseover",e)})),ve.bind(this._tooltipRoot,Lv,"mouseout",(function(e){r.trigger("mouseout",e)})),this._init()}Nv.$inject=["eventBus","canvas"],Nv.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=I({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t},Nv.prototype.trigger=function(e,t){var n=t.delegateTarget||t.target,i=this.get(ee(n,"data-tooltip-id"));i&&("mouseover"===e&&i.timeout&&this.clearTimeout(i),"mouseout"===e&&i.timeout&&(i.timeout=1e3,this.setTimeout(i)))},Nv.prototype.get=function(e){return"string"!=typeof e&&(e=e.id),this._tooltips[e]},Nv.prototype.clearTimeout=function(e){if(e=this.get(e)){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}},Nv.prototype.setTimeout=function(e){if(e=this.get(e)){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout((function(){t.remove(e)}),e.timeout)}},Nv.prototype.remove=function(e){var t=this.get(e);t&&(Ee(t.html),Ee(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])},Nv.prototype.show=function(){Dv(this._tooltipRoot)},Nv.prototype.hide=function(){Dv(this._tooltipRoot,!1)},Nv.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},Nv.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)),d(i)&&(i=we(i)),J(t=we('<div data-tooltip-id="'+n+'" class="'+Bv+'">'),{position:"absolute"}),t.appendChild(i),e.type&&ne(t).add("djs-tooltip-"+e.type),e.className&&ne(t).add(e.className),e.htmlContainer=t,r.appendChild(t),this._tooltips[n]=e,this._updateTooltip(e)},Nv.prototype._updateTooltip=function(e){var t=e.position;!function(e,t,n){J(e,{left:t+"px",top:n+"px"})}(e.htmlContainer,t.x,t.y)},Nv.prototype._updateTooltipVisibilty=function(e){b(this._tooltips,(function(t){var n=t.show,i=t.htmlContainer,r=!0;n&&((n.minZoom>e.scale||n.maxZoom<e.scale)&&(r=!1),Dv(i,r))}))},Nv.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 jv={__init__:["tooltips"],tooltips:["type",Nv]};function zv(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}}var Iv=250,Xv=1400;function Qv(e,t,n){Bs.call(this,t);var i=e.get("movePreview",!1);t.on("shape.move.start",Xv,(function(e){var t=e.context,n=t.shapes,i=t.validatedShapes;t.shapes=Fv(n),t.validatedShapes=Fv(i)})),i&&t.on("shape.move.start",Iv,(function(e){var t=e.context,n=t.shapes,r=[];b(n,(function(e){b(e.labels,(function(n){n.hidden||-1!==t.shapes.indexOf(n)||r.push(n),e.labelTarget&&r.push(e)}))})),b(r,(function(e){i.makeDraggable(t,e,!0)}))})),this.preExecuted("elements.move",Xv,(function(e){var t=e.context.closure,n=t.enclosedElements,i=[];b(n,(function(e){b(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;zv((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=Mt(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&&(Tt(i.labels,n,r),n.labelTarget=i)}))}function Fv(e){return y(e,(function(t){return-1===e.indexOf(t.labelTarget)}))}e(Qv,Bs),Qv.$inject=["injector","eventBus","modeling"];var Vv={__init__:["labelSupport"],labelSupport:["type",Qv]},qv=251,Hv=1401,Wv="attach-ok";function Yv(e,t,n,i,r){Bs.call(this,t);var o=e.get("movePreview",!1);t.on("shape.move.start",Hv,(function(e){var t,n,i=e.context,r=i.shapes,o=i.validatedShapes;i.shapes=(n=Gv(t=r),A("id",t,n)),i.validatedShapes=function(e){var t=P(e,"id");return y(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",qv,(function(e){var t=e.context;b(Gv(t.shapes),(function(e){o.makeDraggable(t,e,!0),b(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,Wv),t.once(["shape.move.out","shape.move.cleanup"],(function(){n.removeMarker(r,Wv)})))}})),this.preExecuted("elements.move",Hv,(function(e){var t=e.context,n=t.closure;b(Gv(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||b(i?n:y(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){b(e.context.shapes,(function(e){b(e.attachers,(function(e){b(e.outgoing.slice(),(function(e){i.allowed("connection.reconnect",{connection:e,source:e.source,target:e.target})||r.removeConnection(e)})),b(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;zv(n.attachers,(function(e){"attach"===i.allowed("elements.move",{target:o,shapes:[e]})?r.updateAttachment(e,o):r.removeShape(e)})),o.attachers.length&&b(o.attachers,(function(e){var t=fm(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,s=n.attachers;!1!==(t.hints||{}).attachSupport&&b(s,(function(e){var t=fm(e,i,o);r.moveShape(e,t,e.parent),b(e.labels,(function(e){r.moveShape(e,t,e.parent)}))}))})),this.preExecute("shape.delete",(function(e){var t=e.context.shape;zv(t.attachers,(function(e){r.removeShape(e)})),t.host&&r.updateAttachment(t,null)}))}function Gv(e){return i(E(e,(function(e){return e.attachers||[]})))}e(Yv,Bs),Yv.$inject=["injector","eventBus","canvas","rules","modeling"];var Uv={__depends__:[ph],__init__:["attachSupport"],attachSupport:["type",Yv]};function Zv(e){this._model=e}function Kv(e,t,n,i){Bs.call(this,e),this._bpmnFactory=t,this._translate=i;var r=this;function o(e){b(e.context.oldRoot.children,(function(e){Vr(e,"bpmn:BaseElement")&&r.updateParent(e)}))}function s(e){var t=e.context.shape;Vr(t,"bpmn:BaseElement")&&r.updateBounds(t)}function a(e){r.updateConnection(e.context)}function l(e){r.updateConnectionWaypoints(e.context.connection)}function c(e){r.updateAttachment(e.context)}function h(e){const{element:n}=e.context,i=_o(n),r=Wr(n),o=r&&r.get("label");vo(n)||(i&&!o?r.set("label",t.create("bpmndi:BPMNLabel")):!i&&o&&r.set("label",void 0))}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"],Jv((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"],Jv((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"],Jv((function(e){"label"!==e.context.shape.type&&s(e)}))),this.reverted(["shape.move","shape.create","shape.resize"],Jv((function(e){"label"!==e.context.shape.type&&s(e)}))),e.on("shape.changed",(function(e){"label"===e.element.type&&s({context:{shape:e.element}})})),this.executed(["connection.create","connection.move","connection.delete","connection.reconnect"],Jv(a)),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnect"],Jv(a)),this.executed(["connection.layout","connection.move","connection.updateWaypoints"],Jv(l)),this.reverted(["connection.layout","connection.move","connection.updateWaypoints"],Jv(l)),this.executed("connection.reconnect",Jv((function(e){var t=e.context,n=t.connection,i=t.oldSource,r=t.newSource,o=Hr(n),s=Hr(i),a=Hr(r);o.conditionExpression&&!qr(a,["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"])&&(t.oldConditionExpression=o.conditionExpression,delete o.conditionExpression),i!==r&&s.default===o&&(t.oldDefault=s.default,delete s.default)}))),this.reverted("connection.reconnect",Jv((function(e){var t=e.context,n=t.connection,i=t.oldSource,r=t.newSource,o=Hr(n),s=Hr(i),a=Hr(r);t.oldConditionExpression&&(o.conditionExpression=t.oldConditionExpression),t.oldDefault&&(s.default=t.oldDefault,delete a.default)}))),this.executed(["element.updateAttachment"],Jv(c)),this.reverted(["element.updateAttachment"],Jv(c)),this.executed("element.updateLabel",Jv(h)),this.reverted("element.updateLabel",Jv(h))}function Jv(e){return function(t){var n=t.context;Vr(n.shape||n.connection||n.element,"bpmn:BaseElement")&&e(t)}}function ey(e,t,n){si.call(this),this._bpmnFactory=e,this._moddle=t,this._translate=n}function ty(e,t,n){return void 0===t[n]?t:(e[n]=t[n],V(t,[n]))}function ny(e,t){this._modeling=e,this._canvas=t}function iy(e){this._modeling=e}function ry(e,t){this._canvas=e,this._layouter=t}Zv.$inject=["moddle"],Zv.prototype._needsId=function(e){return qr(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"])},Zv.prototype._ensureId=function(e){var t;e.id?this._model.ids.claim(e.id,e):(t=Vr(e,"bpmn:Activity")?"Activity":Vr(e,"bpmn:Event")?"Event":Vr(e,"bpmn:Gateway")?"Gateway":qr(e,["bpmn:SequenceFlow","bpmn:MessageFlow"])?"Flow":(e.$type||"").replace(/^[^:]*:/g,""),t+="_",!e.id&&this._needsId(e)&&(e.id=this._model.ids.nextPrefixed(t,e)))},Zv.prototype.create=function(e,t){var n=this._model.create(e,t||{});return this._ensureId(n),n},Zv.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})},Zv.prototype.createDiShape=function(e,t){return this.create("bpmndi:BPMNShape",I({bpmnElement:e,bounds:this.createDiBounds()},t))},Zv.prototype.createDiBounds=function(e){return this.create("dc:Bounds",e)},Zv.prototype.createDiWaypoints=function(e){var t=this;return E(e,(function(e){return t.createDiWaypoint(e)}))},Zv.prototype.createDiWaypoint=function(e){return this.create("dc:Point",F(e,["x","y"]))},Zv.prototype.createDiEdge=function(e,t){return this.create("bpmndi:BPMNEdge",I({bpmnElement:e,waypoint:this.createDiWaypoints([])},t))},Zv.prototype.createDiPlane=function(e,t){return this.create("bpmndi:BPMNPlane",I({bpmnElement:e},t))},e(Kv,Bs),Kv.$inject=["eventBus","bpmnFactory","connectionDocking","translate"],Kv.prototype.updateAttachment=function(e){var t=e.shape,n=t.businessObject,i=t.host;n.attachedToRef=i&&i.businessObject},Kv.prototype.updateParent=function(e,t){if(!(kn(e)||Vr(e,"bpmn:DataStoreReference")&&e.parent&&Vr(e.parent,"bpmn:Collaboration"))){var n=e.parent,i=e.businessObject,r=Wr(e),o=n&&n.businessObject,s=Wr(n);Vr(e,"bpmn:FlowNode")&&this.updateFlowNodeRefs(i,o,t&&t.businessObject),Vr(e,"bpmn:DataOutputAssociation")&&(o=e.source?e.source.businessObject:null),Vr(e,"bpmn:DataInputAssociation")&&(o=e.target?e.target.businessObject:null),this.updateSemanticParent(i,o),Vr(e,"bpmn:DataObjectReference")&&i.dataObjectRef&&this.updateSemanticParent(i.dataObjectRef,o),this.updateDiParent(r,s)}},Kv.prototype.updateBounds=function(e){var t=Wr(e),n=function(e){if(!Vr(e,"bpmn:Activity"))return;var t=Wr(e);if(!t)return;var n=t.get("label");if(!n)return;return n.get("bounds")}(e);if(n){var i=Aa(n,t.get("bounds"));I(n,{x:e.x+i.x,y:e.y+i.y})}var r=kn(e)?this._getLabel(t):t,o=r.bounds;o||(o=this._bpmnFactory.createDiBounds(),r.set("bounds",o)),I(o,{x:e.x,y:e.y,width:e.width,height:e.height})},Kv.prototype.updateFlowNodeRefs=function(e,t,n){n!==t&&(Vr(n,"bpmn:Lane")&&Rt(n.get("flowNodeRef"),e),Vr(t,"bpmn:Lane")&&Tt(t.get("flowNodeRef"),e))},Kv.prototype.updateDiConnection=function(e,t,n){var i=Wr(e),r=Wr(t),o=Wr(n);i.sourceElement&&i.sourceElement.bpmnElement!==Hr(t)&&(i.sourceElement=t&&r),i.targetElement&&i.targetElement.bpmnElement!==Hr(n)&&(i.targetElement=n&&o)},Kv.prototype.updateDiParent=function(e,t){if(t&&!Vr(t,"bpmndi:BPMNPlane")&&(t=t.$parent),e.$parent!==t){var n=(t||e.$parent).get("planeElement");t?(n.push(e),e.$parent=t):(Rt(n,e),e.$parent=null)}},Kv.prototype.getLaneSet=function(e){var t,n;return Vr(e,"bpmn:Lane")?((t=e.childLaneSet)||(t=this._bpmnFactory.create("bpmn:LaneSet"),e.childLaneSet=t,t.$parent=e),t):(Vr(e,"bpmn:Participant")&&(e=e.processRef),(t=(n=e.get("laneSets"))[0])||((t=this._bpmnFactory.create("bpmn:LaneSet")).$parent=e,n.push(t)),t)},Kv.prototype.updateSemanticParent=function(e,t,n){var i,r=this._translate;if(e.$parent!==t&&(!Vr(e,"bpmn:DataInput")&&!Vr(e,"bpmn:DataOutput")||(Vr(t,"bpmn:Participant")&&"processRef"in t&&(t=t.processRef),!("ioSpecification"in t)||t.ioSpecification!==e.$parent))){if(Vr(e,"bpmn:Lane"))t&&(t=this.getLaneSet(t)),i="lanes";else if(Vr(e,"bpmn:FlowElement")){if(t)if(Vr(t,"bpmn:Participant"))t=t.processRef;else if(Vr(t,"bpmn:Lane"))do{t=t.$parent.$parent}while(Vr(t,"bpmn:Lane"));i="flowElements"}else if(Vr(e,"bpmn:Artifact")){for(;t&&!Vr(t,"bpmn:Process")&&!Vr(t,"bpmn:SubProcess")&&!Vr(t,"bpmn:Collaboration");){if(Vr(t,"bpmn:Participant")){t=t.processRef;break}t=t.$parent}i="artifacts"}else if(Vr(e,"bpmn:MessageFlow"))i="messageFlows";else if(Vr(e,"bpmn:Participant")){i="participants";var o,s=e.processRef;s&&(o=function(e){for(;e&&!Vr(e,"bpmn:Definitions");)e=e.$parent;return e}(e.$parent||t),e.$parent&&(Rt(o.get("rootElements"),s),s.$parent=null),t&&(Tt(o.get("rootElements"),s),s.$parent=o))}else Vr(e,"bpmn:DataOutputAssociation")?i="dataOutputAssociations":Vr(e,"bpmn:DataInputAssociation")&&(i="dataInputAssociations");if(!i)throw new Error(r("no parent for {element} in {parent}",{element:e.id,parent:t.id}));var a;if(e.$parent&&Rt(a=e.$parent.get(i),e),t?((a=t.get(i)).push(e),e.$parent=t):e.$parent=null,n){var l=n.get(i);Rt(a,e),t&&(l||(l=[],t.set(i,l)),l.push(e))}}},Kv.prototype.updateConnectionWaypoints=function(e){Wr(e).set("waypoint",this._bpmnFactory.createDiWaypoints(e.waypoints))},Kv.prototype.updateConnection=function(e){var t,n=e.connection,i=Hr(n),r=n.source,o=Hr(r),s=n.target,a=Hr(n.target);if(Vr(i,"bpmn:DataAssociation"))Vr(i,"bpmn:DataInputAssociation")?(i.get("sourceRef")[0]=o,t=e.parent||e.newParent||a,this.updateSemanticParent(i,a,t)):Vr(i,"bpmn:DataOutputAssociation")&&(t=e.parent||e.newParent||o,this.updateSemanticParent(i,o,t),i.targetRef=a);else{var l=Vr(i,"bpmn:SequenceFlow");i.sourceRef!==o&&(l&&(Rt(i.sourceRef&&i.sourceRef.get("outgoing"),i),o&&o.get("outgoing")&&o.get("outgoing").push(i)),i.sourceRef=o),i.targetRef!==a&&(l&&(Rt(i.targetRef&&i.targetRef.get("incoming"),i),a&&a.get("incoming")&&a.get("incoming").push(i)),i.targetRef=a)}this.updateConnectionWaypoints(n),this.updateDiConnection(n,r,s)},Kv.prototype._getLabel=function(e){return e.label||(e.label=this._bpmnFactory.createDiLabel()),e.label},e(ey,si),ey.$inject=["bpmnFactory","moddle","translate"],ey.prototype._baseCreate=si.prototype.create,ey.prototype.create=function(e,t){if("label"===e){var n=t.di||this._bpmnFactory.createDiLabel();return this._baseCreate(e,I({type:"label",di:n},mo,t))}return this.createElement(e,t)},ey.prototype.createElement=function(e,t){var n,i,r,o=this._translate,s=(t=I({},t||{})).businessObject,l=t.di;if(!s){if(!t.type)throw new Error(o("no shape type specified"));Xr(s=this._bpmnFactory.create(t.type))}if(!qr(l,["bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane"])){var c=I({},l||{},{id:s.id+"_di"});l="root"===e?this._bpmnFactory.createDiPlane(s,c):"connection"===e?this._bpmnFactory.createDiEdge(s,c):this._bpmnFactory.createDiShape(s,c)}return Vr(s,"bpmn:Group")&&(t=I({isFrame:!0},t)),t=function(e,t,n){return b(n,(function(n){t=ty(e,t,n)})),t}(s,t,["processRef","isInterrupting","associationDirection","isForCompensation"]),t.isExpanded&&(t=ty(l,t,"isExpanded")),Vr(s,"bpmn:SubProcess")&&(t.collapsed=!ho(s,l)),Vr(s,"bpmn:ExclusiveGateway")&&(l.isMarkerVisible=!0),a(t.triggeredByEvent)&&(s.triggeredByEvent=t.triggeredByEvent,delete t.triggeredByEvent),a(t.cancelActivity)&&(s.cancelActivity=t.cancelActivity,delete t.cancelActivity),t.eventDefinitionType&&(i=s.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=s,s.eventDefinitions=i,delete t.eventDefinitionType),n=this.getDefaultSize(s,l),t=I({id:s.id},n,t,{businessObject:s,di:l}),this._baseCreate(e,t)},ey.prototype.getDefaultSize=function(e,t){var n=Hr(e);return t=t||Wr(e),Vr(n,"bpmn:SubProcess")?ho(n,t)?{width:350,height:200}:{width:100,height:80}:Vr(n,"bpmn:Task")?{width:100,height:80}:Vr(n,"bpmn:Gateway")?{width:50,height:50}:Vr(n,"bpmn:Event")?{width:36,height:36}:Vr(n,"bpmn:Participant")?ho(n,t)?{width:600,height:250}:{width:400,height:60}:Vr(n,"bpmn:Lane")?{width:400,height:100}:Vr(n,"bpmn:DataObjectReference")?{width:36,height:50}:Vr(n,"bpmn:DataStoreReference")?{width:50,height:50}:Vr(n,"bpmn:TextAnnotation")?{width:100,height:30}:Vr(n,"bpmn:Group")?{width:300,height:300}:{width:100,height:80}},ey.prototype.createParticipantShape=function(e){return h(e)||(e={isExpanded:e}),!1!==(e=I({type:"bpmn:Participant"},e||{})).isExpanded&&(e.processRef=this._bpmnFactory.create("bpmn:Process")),this.createShape(e)},ny.$inject=["modeling","canvas"],ny.prototype.preExecute=function(e){var t=this._modeling,n=e.elements,i=e.alignment;b(n,(function(e){var n={x:0,y:0};a(i.left)?n.x=i.left-e.x:a(i.right)?n.x=i.right-e.width-e.x:a(i.center)?n.x=i.center-Math.round(e.width/2)-e.x:a(i.top)?n.y=i.top-e.y:a(i.bottom)?n.y=i.bottom-e.height-e.y:a(i.middle)&&(n.y=i.middle-Math.round(e.height/2)-e.y),t.moveElements([e],n,e.parent)}))},ny.prototype.postExecute=function(e){},iy.$inject=["modeling"],iy.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},iy.prototype.postExecute=function(e){var t,n,i=e.hints||{};t=e.source,n=e.shape,O(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))},ry.$inject=["canvas","layouter"],ry.prototype.execute=function(e){var t=e.connection,n=e.source,i=e.target,r=e.parent,o=e.parentIndex,s=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,s)),this._canvas.addConnection(t,r,o),t},ry.prototype.revert=function(e){var t=e.connection;return this._canvas.removeConnection(t),t.source=null,t.target=null,t};var oy=Math.round;function sy(e){this._modeling=e}sy.$inject=["modeling"],sy.prototype.preExecute=function(e){var t=e.elements,n=e.parent,i=e.parentIndex,r=e.position,o=e.hints,s=this._modeling;b(t,(function(e){u(e.x)||(e.x=0),u(e.y)||(e.y=0)}));var a=Et(y(t,(function(e){return!e.hidden})));b(t,(function(e){En(e)&&(e.waypoints=E(e.waypoints,(function(e){return{x:oy(e.x-a.x-a.width/2+r.x),y:oy(e.y-a.y-a.height/2+r.y)}}))),I(e,{x:oy(e.x-a.x-a.width/2+r.x),y:oy(e.y-a.y-a.height/2+r.y)})}));var l=bt(t),c={};b(t,(function(e){if(En(e))c[e.id]=u(i)?s.createConnection(c[e.source.id],c[e.target.id],i,e,e.parent||n,o):s.createConnection(c[e.source.id],c[e.target.id],e,e.parent||n,o);else{var t=I({},o);-1===l.indexOf(e)&&(t.autoResize=!1),kn(e)&&(t=V(t,["attach"])),c[e.id]=u(i)?s.createShape(e,F(e,["x","y","width","height"]),e.parent||n,i,t):s.createShape(e,F(e,["x","y","width","height"]),e.parent||n,t)}})),e.elements=C(c)};var ay=Math.round;function ly(e){this._canvas=e}function cy(e){ly.call(this,e)}ly.$inject=["canvas"],ly.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?I(t,n):I(t,{x:n.x-ay(t.width/2),y:n.y-ay(t.height/2)}),this._canvas.addShape(t,i,r),t},ly.prototype.revert=function(e){var t=e.shape;return this._canvas.removeShape(t),t},e(cy,ly),cy.$inject=["canvas"];var hy=ly.prototype.execute;cy.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,hy.call(this,e)};var uy=ly.prototype.revert;function py(e,t){this._canvas=e,this._modeling=t}function dy(e,t){this._modeling=e,this._elementRegistry=t}function fy(e,t){this._canvas=e,this._modeling=t}function my(e){this._modeling=e}cy.prototype.revert=function(e){return e.shape.labelTarget=null,uy.call(this,e)},py.$inject=["canvas","modeling"],py.prototype.preExecute=function(e){var t=this._modeling,n=e.connection;zv(n.incoming,(function(e){t.removeConnection(e,{nested:!0})})),zv(n.outgoing,(function(e){t.removeConnection(e,{nested:!0})}))},py.prototype.execute=function(e){var t=e.connection,n=t.parent;return e.parent=n,e.parentIndex=Mt(n.children,t),e.source=t.source,e.target=t.target,this._canvas.removeConnection(t),t.source=null,t.target=null,t},py.prototype.revert=function(e){var t=e.connection,n=e.parent,i=e.parentIndex;return t.source=e.source,t.target=e.target,Tt(n.children,t,i),this._canvas.addConnection(t,n),t},dy.$inject=["modeling","elementRegistry"],dy.prototype.postExecute=function(e){var t=this._modeling,n=this._elementRegistry;b(e.elements,(function(e){n.get(e.id)&&(e.waypoints?t.removeConnection(e):t.removeShape(e))}))},fy.$inject=["canvas","modeling"],fy.prototype.preExecute=function(e){var t=this._modeling,n=e.shape;zv(n.incoming,(function(e){t.removeConnection(e,{nested:!0})})),zv(n.outgoing,(function(e){t.removeConnection(e,{nested:!0})})),zv(n.children,(function(e){En(e)?t.removeConnection(e,{nested:!0}):t.removeShape(e,{nested:!0})}))},fy.prototype.execute=function(e){var t=this._canvas,n=e.shape,i=n.parent;return e.oldParent=i,e.oldParentIndex=Mt(i.children,n),t.removeShape(n),n},fy.prototype.revert=function(e){var t=this._canvas,n=e.shape,i=e.oldParent,r=e.oldParentIndex;return Tt(i.children,n,r),t.addShape(n,i),n},my.$inject=["modeling"];var gy={x:"y",y:"x"};function vy(e,t){this._layouter=e,this._canvas=t}function yy(){}function by(){this.allShapes={},this.allConnections={},this.enclosedElements={},this.enclosedConnections={},this.topLevel={}}function xy(e){this._modeling=e}function wy(e){this._helper=new xy(e)}function _y(e){this._modeling=e,this._helper=new xy(e)}function Oy(e){this._modeling=e}function Ey(e){return e.original||e}function ky(e,t){this._modeling=e,this._rules=t}function Sy(e){this._modeling=e}function Cy(e){this._modeling=e}function Py(e){return I({},e)}function $y(e){switch(e){case"n":case"s":return"y";case"w":case"e":return"x"}}function Ay(e,t,n){var i=$y(n);return/e|s/.test(n)?e[i]>t:/n|w/.test(n)?e[i]<t:void 0}function Ry(e,t){return-1!==e.indexOf(t)}function Ty(e){this._modeling=e}function My(e){var t={};return b(e,(function(e){t[e.id]=e.hidden,e.children&&(t=I({},t,My(e.children)))})),t}function Dy(e,t){var n=[];return b(e,(function(e){e.hidden=t,n=n.concat(e),e.children&&(n=n.concat(Dy(e.children,e.collapsed||t)))})),n}function By(e,t){var n=[];return b(e,(function(e){e.hidden=t[e.id],n=n.concat(e),e.children&&(n=n.concat(By(e.children,t)))})),n}function Ly(e){this._modeling=e}function Ny(e,t){return Rt(e&&e.attachers,t)}function jy(e,t,n){if(e){var i=e.attachers;i||(e.attachers=i=[]),Tt(i,t,n)}}function zy(){}function Iy(e,t,n){this._eventBus=e,this._elementFactory=t,this._commandStack=n;var i=this;e.on("diagram.init",(function(){i.registerHandlers(n)}))}function Xy(e){this._elementRegistry=e}function Qy(e,t){b(t,(function(t,n){e.set(n,t)}))}my.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 s(e){return e[i]+e[r]/2}function a(e){return e.length-1}function l(e){return e.max-e.min}var c,h,u=n[0],p=a(n),d=n[p],f=0;b(n,(function(e,c){var h,u,d;e.elements.length<2?c&&c!==n.length-1&&(o(e,e.elements[0]),f+=l(e.range)):(u=(h=R(e.elements,i))[0],c===p&&(u=h[a(h)]),d=s(u),e.range=null,b(h,(function(n){!function(e,n){var r={y:0};r[i]=e-s(n),r[i]&&(r[gy[i]]=0,t.moveElements([n],r,n.parent))}(d,n),null!==e.range?o(e,n):e.range={min:n[i],max:n[i]+n[r]}})),c&&c!==n.length-1&&(f+=l(e.range)))})),h=Math.abs(d.range.min-u.range.max),(c=Math.round((h-f)/(n.length-1)))<n.length-1||b(n,(function(e,o){var s,a={};e!==u&&e!==d&&(s=n[o-1],e.range.max=0,b(e.elements,(function(n,o){a[gy[i]]=0,a[i]=s.range.max-n[i]+c,e.range.min!==n[i]&&(a[i]+=n[i]-e.range.min),a[i]&&t.moveElements([n],a,n.parent),e.range.max=Math.max(n[i]+n[r],o?e.range.max:0)})))}))},my.prototype.postExecute=function(e){},vy.$inject=["layouter","canvas"],vy.prototype.execute=function(e){var t=e.connection;return I(e,{oldWaypoints:t.waypoints}),t.waypoints=this._layouter.layoutConnection(t,e.hints),t},vy.prototype.revert=function(e){var t=e.connection;return t.waypoints=e.oldWaypoints,t},yy.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=Rt(o.children,t),Tt(i.children,t,r),t.parent=i,b(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},yy.prototype.revert=function(e){var t=e.connection,n=t.parent,i=e.oldParent,r=e.oldParentIndex,o=e.delta;return Rt(n.children,t),Tt(i.children,t,r),t.parent=i,b(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},by.prototype.add=function(e,t){return this.addAll([e],t)},by.prototype.addAll=function(e,t){var n=function(e,t,n){s(t)&&(t=!0),h(t)&&(n=t,t=!0);var i=Ct((n=n||{}).allShapes),r=Ct(n.allConnections),o=Ct(n.enclosedElements),a=Ct(n.enclosedConnections),l=Ct(n.topLevel,t&&P(e,(function(e){return e.id})));function c(e){l[e.source.id]&&l[e.target.id]&&(l[e.id]=[e]),i[e.source.id]&&i[e.target.id]&&(a[e.id]=o[e.id]=e),r[e.id]=e}return _t(e,(function(e){if(o[e.id]=e,!e.waypoints)return i[e.id]=e,b(e.incoming,c),b(e.outgoing,c),e.children;a[e.id]=r[e.id]=e})),{allShapes:i,allConnections:r,topLevel:l,enclosedConnections:a,enclosedElements:o}}(e,!!t,this);return I(this,n),this},xy.prototype.moveRecursive=function(e,t,n){return e?this.moveClosure(this.getClosure(e),t,n):[]},xy.prototype.moveClosure=function(e,t,n,i,r){var o=this._modeling,s=e.allShapes,a=e.allConnections,l=e.enclosedConnections,c=e.topLevel,h=!1;r&&r.parent===n&&(h=!0),b(s,(function(e){o.moveShape(e,t,c[e.id]&&!h&&n,{recurse:!1,layout:!1})})),b(a,(function(e){var i=!!s[e.source.id],r=!!s[e.target.id];l[e.id]&&i&&r?o.moveConnection(e,t,c[e.id]&&!h&&n):o.layoutConnection(e,{connectionStart:i&&_m(e,e.source,t),connectionEnd:r&&Om(e,e.target,t)})}))},xy.prototype.getClosure=function(e){return(new by).addAll(e,!0)},wy.$inject=["modeling"],wy.prototype.preExecute=function(e){e.closure=this._helper.getClosure(e.shapes)},wy.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)},_y.$inject=["modeling"],_y.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=F(t,["x","y","width","height"]),e.oldParent=o,e.oldParentIndex=Rt(o.children,t),Tt(i.children,t,r),I(t,{parent:i,x:t.x+n.x,y:t.y+n.y}),t},_y.prototype.postExecute=function(e){var t=e.shape,n=e.delta,i=e.hints,r=this._modeling;!1!==i.layout&&(b(t.incoming,(function(e){r.layoutConnection(e,{connectionEnd:Om(e,t,n)})})),b(t.outgoing,(function(e){r.layoutConnection(e,{connectionStart:_m(e,t,n)})}))),!1!==i.recurse&&this.moveChildren(e)},_y.prototype.revert=function(e){var t=e.shape,n=e.oldParent,i=e.oldParentIndex,r=e.delta;return Tt(n.children,t,i),I(t,{parent:n,x:t.x-r.x,y:t.y-r.y}),t},_y.prototype.moveChildren=function(e){var t=e.delta,n=e.shape;this._helper.moveRecursive(n.children,t,null)},_y.prototype.getNewParent=function(e){return e.newParent||e.shape.parent},Oy.$inject=["modeling"],Oy.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 c(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},Oy.prototype.postExecute=function(e){var t=e.connection,n=e.newSource,i=e.newTarget,r=e.dockingOrPoints,o=e.hints||{},s={};o.connectionStart&&(s.connectionStart=o.connectionStart),o.connectionEnd&&(s.connectionEnd=o.connectionEnd),!1!==o.layoutConnection&&(!n||i&&"source"!==o.docking||(s.connectionStart=s.connectionStart||Ey(c(r)?r[0]:r)),!i||n&&"target"!==o.docking||(s.connectionEnd=s.connectionEnd||Ey(c(r)?r[r.length-1]:r)),o.newWaypoints&&(s.waypoints=o.newWaypoints),this._modeling.layoutConnection(t,s))},Oy.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},ky.$inject=["modeling","rules"],ky.prototype.preExecute=function(e){var t,n=this,i=this._modeling,r=this._rules,o=e.oldShape,s=e.newData,a=e.hints||{};function l(e,t,n){return r.allowed("connection.reconnect",{connection:n,source:e,target:t})}var c,h={x:s.x,y:s.y},u={x:o.x,y:o.y,width:o.width,height:o.height};t=e.newShape=e.newShape||n.createShape(s,h,o.parent,a),o.host&&i.updateAttachment(t,o.host),!1!==a.moveChildren&&(c=o.children.slice(),i.moveElements(c,{x:0,y:0},t,a));var p=o.incoming.slice(),d=o.outgoing.slice();b(p,(function(e){l(e.source,t,e)&&n.reconnectEnd(e,t,wm(e,t,u),a)})),b(d,(function(e){var i=e.target;l(t,i,e)&&n.reconnectStart(e,t,xm(e,t,u),a)}))},ky.prototype.postExecute=function(e){var t=e.oldShape;this._modeling.removeShape(t)},ky.prototype.execute=function(e){},ky.prototype.revert=function(e){},ky.prototype.createShape=function(e,t,n,i){return this._modeling.createShape(e,t,n,i)},ky.prototype.reconnectStart=function(e,t,n,i){this._modeling.reconnectStart(e,t,n,i)},ky.prototype.reconnectEnd=function(e,t,n,i){this._modeling.reconnectEnd(e,t,n,i)},Sy.$inject=["modeling"],Sy.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},I(t,{width:n.width,height:n.height,x:n.x,y:n.y}),t},Sy.prototype.postExecute=function(e){var t=this._modeling,n=e.shape,i=e.oldBounds;!1!==(e.hints||{}).layout&&(b(n.incoming,(function(e){t.layoutConnection(e,{connectionEnd:wm(e,n,i)})})),b(n.outgoing,(function(e){t.layoutConnection(e,{connectionStart:xm(e,n,i)})})))},Sy.prototype.revert=function(e){var t=e.shape,n=e.oldBounds;return I(t,{width:n.width,height:n.height,x:n.x,y:n.y}),t},Cy.$inject=["modeling"],Cy.prototype.preExecute=function(e){var t=e.delta,n=e.direction,i=e.movingShapes,r=e.resizingShapes,o=e.start,s={};this.moveShapes(i,t),b(r,(function(e){s[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 b(e.concat(t),(function(i){var r=i.incoming,o=i.outgoing;b(r.concat(o),(function(i){var r=i.source,o=i.target;(hv(e,r)||hv(e,o)||hv(t,r)||hv(t,o))&&(hv(n,i)||n.push(i))}))})),n}(i,r),t,n,o,i,r,s)},Cy.prototype.execute=function(){},Cy.prototype.revert=function(){},Cy.prototype.moveShapes=function(e,t){var n=this;b(e,(function(e){n._modeling.moveShape(e,t,null,{autoResize:!1,layout:!1,recurse:!1})}))},Cy.prototype.resizeShapes=function(e,t,n){var i=this;b(e,(function(e){var r=function(e,t,n){var i=e.x,r=e.y,o=e.width,s=e.height,a=n.x,l=n.y;switch(t){case"n":return{x:i,y:r+l,width:o,height:s-l};case"s":return{x:i,y:r,width:o,height:s+l};case"w":return{x:i+a,y:r,width:o-a,height:s};case"e":return{x:i,y:r,width:o+a,height:s};default:throw new Error("unknown direction: "+t)}}(e,n,t);i._modeling.resizeShape(e,r,null,{attachSupport:!1,autoResize:!1,layout:!1})}))},Cy.prototype.updateConnectionWaypoints=function(e,t,n,i,r,o,s){var a=this,l=r.concat(o);b(e,(function(e){var c=e.source,h=e.target,u=function(e){return E(e.waypoints,(function(e){return(e=Py(e)).original&&(e.original=Py(e.original)),e}))}(e),p=$y(n),d={};Ry(l,c)&&Ry(l,h)?(u=E(u,(function(e){return Ay(e,i,n)&&(e[p]=e[p]+t[p]),e.original&&Ay(e.original,i,n)&&(e.original[p]=e.original[p]+t[p]),e})),a._modeling.updateWaypoints(e,u,{labelBehavior:!1})):(Ry(l,c)||Ry(l,h))&&(Ry(r,c)?d.connectionStart=_m(e,c,t):Ry(r,h)?d.connectionEnd=Om(e,h,t):Ry(o,c)?d.connectionStart=xm(e,c,s[c.id]):Ry(o,h)&&(d.connectionEnd=wm(e,h,s[h.id])),a._modeling.layoutConnection(e,d))}))},Ty.$inject=["modeling"],Ty.prototype.execute=function(e){var t=e.shape,n=t.children;e.oldChildrenVisibility=My(n),t.collapsed=!t.collapsed;var i=Dy(n,t.collapsed);return[t].concat(i)},Ty.prototype.revert=function(e){var t=e.shape,n=e.oldChildrenVisibility,i=By(t.children,n);return t.collapsed=!t.collapsed,[t].concat(i)},Ly.$inject=["modeling"],Ly.prototype.execute=function(e){var t=e.shape,n=e.newHost,i=t.host;return e.oldHost=i,e.attacherIdx=Ny(i,t),jy(n,t),t.host=n,t},Ly.prototype.revert=function(e){var t=e.shape,n=e.newHost,i=e.oldHost,r=e.attacherIdx;return t.host=i,Ny(n,t),jy(i,t,r),t},zy.prototype.execute=function(e){var t=e.connection,n=e.newWaypoints;return e.oldWaypoints=t.waypoints,t.waypoints=n,t},zy.prototype.revert=function(e){var t=e.connection,n=e.oldWaypoints;return t.waypoints=n,t},Iy.$inject=["eventBus","elementFactory","commandStack"],Iy.prototype.getHandlers=function(){return{"shape.append":iy,"shape.create":ly,"shape.delete":fy,"shape.move":_y,"shape.resize":Sy,"shape.replace":ky,"shape.toggleCollapse":Ty,spaceTool:Cy,"label.create":cy,"connection.create":ry,"connection.delete":py,"connection.move":yy,"connection.layout":vy,"connection.updateWaypoints":zy,"connection.reconnect":Oy,"elements.create":sy,"elements.move":wy,"elements.delete":dy,"elements.distribute":my,"elements.align":ny,"element.updateAttachment":Ly}},Iy.prototype.registerHandlers=function(e){b(this.getHandlers(),(function(t,n){e.registerHandler(n,t)}))},Iy.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)},Iy.prototype.updateAttachment=function(e,t){var n={shape:e,newHost:t};this._commandStack.execute("element.updateAttachment",n)},Iy.prototype.moveElements=function(e,t,n,i){var r,o=(i=i||{}).attach,s=n;!0===o?(r=n,s=n.parent):!1===o&&(r=null);var a={shapes:e,delta:t,newParent:s,newHost:r,hints:i};this._commandStack.execute("elements.move",a)},Iy.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)},Iy.prototype.layoutConnection=function(e,t){var n={connection:e,hints:t||{}};this._commandStack.execute("connection.layout",n)},Iy.prototype.createConnection=function(e,t,n,i,r,o){"object"==typeof n&&(o=r,r=i,i=n,n=void 0);var s={source:e,target:t,parent:r,parentIndex:n,connection:i=this._create("connection",i),hints:o};return this._commandStack.execute("connection.create",s),s.connection},Iy.prototype.createShape=function(e,t,n,i,r){"number"!=typeof i&&(r=i,i=void 0);var o,s,a=(r=r||{}).attach;e=this._create("shape",e),a?(o=n.parent,s=n):o=n;var l={position:t,shape:e,parent:o,parentIndex:i,host:s,hints:r};return this._commandStack.execute("shape.create",l),l.shape},Iy.prototype.createElements=function(e,t,n,i,r){c(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},Iy.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},Iy.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},Iy.prototype.removeElements=function(e){var t={elements:e};this._commandStack.execute("elements.delete",t)},Iy.prototype.distributeElements=function(e,t,n){var i={groups:e,axis:t,dimension:n};this._commandStack.execute("elements.distribute",i)},Iy.prototype.removeShape=function(e,t){var n={shape:e,hints:t||{}};this._commandStack.execute("shape.delete",n)},Iy.prototype.removeConnection=function(e,t){var n={connection:e,hints:t||{}};this._commandStack.execute("connection.delete",n)},Iy.prototype.replaceShape=function(e,t,n){var i={oldShape:e,newData:t,hints:n||{}};return this._commandStack.execute("shape.replace",i),i.newShape},Iy.prototype.alignElements=function(e,t){var n={elements:e,alignment:t};this._commandStack.execute("elements.align",n)},Iy.prototype.resizeShape=function(e,t,n,i){var r={shape:e,newBounds:t,minBounds:n,hints:i};this._commandStack.execute("shape.resize",r)},Iy.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)},Iy.prototype.updateWaypoints=function(e,t,n){var i={connection:e,newWaypoints:t,hints:n||{}};this._commandStack.execute("connection.updateWaypoints",i)},Iy.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)},Iy.prototype.reconnectStart=function(e,t,n,i){i||(i={}),this.reconnect(e,t,e.target,n,I(i,{docking:"source"}))},Iy.prototype.reconnectEnd=function(e,t,n,i){i||(i={}),this.reconnect(e,e.source,t,n,I(i,{docking:"target"}))},Iy.prototype.connect=function(e,t,n,i){return this.createConnection(e,t,n||{},e.parent,i)},Iy.prototype._create=function(e,t){return t instanceof ei?t:this._elementFactory.create(e,t)},Iy.prototype.toggleCollapse=function(e,t){var n={shape:e,hints:t||{}};this._commandStack.execute("shape.toggleCollapse",n)},Xy.$inject=["elementRegistry"],Xy.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 w(t,(function(t,n){return t[n]=e.get(n),t}),{})}(n,k(i));return Qy(n,i),e.oldProperties=o,e.changed=r,r},Xy.prototype.revert=function(e){var t=e.oldProperties,n=e.moddleElement,i=e.changed;return Qy(n,t),i},Xy.prototype._getVisualReferences=function(e){var t=this._elementRegistry;return Vr(e,"bpmn:DataObject")?function(e,t){return t.filter((function(t){return Vr(t,"bpmn:DataObjectReference")&&Hr(t).dataObjectRef===e}))}(e,t):[]};var Fy="default",Vy="id",qy="di",Hy={width:0,height:0};function Wy(e,t,n,i,r){this._elementRegistry=e,this._moddle=t,this._translate=n,this._modeling=i,this._textRenderer=r}function Yy(e,t){return Vy in e&&e[Vy]!==t[Vy]}function Gy(e,t){var n=e.businessObject,i=Wr(e);b(t,(function(e,t){t!==qy?n.set(t,e):i&&function(e,t){b(t,(function(t,n){e.set(n,t)}))}(i,e)}))}Wy.$inject=["elementRegistry","moddle","translate","modeling","textRenderer"],Wy.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,s=t.businessObject,a=function(e){var t=I({},e);return Uy.forEach((function(n){n in e&&(t[n]=Hr(t[n]))})),t}(e.properties),l=e.oldProperties||function(e,t){var n=k(t),i=e.businessObject,r=Wr(e);return w(n,(function(e,n){return e[n]=n!==qy?i.get(n):function(e,t){return w(t,(function(t,n){return t[n]=e&&e.get(n),t}),{})}(r,k(t.di)),e}),{})}(t,a);return Yy(a,s)&&(o.unclaim(s[Vy]),r.updateId(t,a[Vy]),o.claim(a[Vy],s)),Fy in a&&(a[Fy]&&n.push(r.get(a[Fy].id)),s[Fy]&&n.push(r.get(s[Fy].id))),Gy(t,a),e.oldProperties=l,e.changed=n,n},Wy.prototype.postExecute=function(e){var t=e.element.label,n=t&&Hr(t).name;if(n){var i=this._textRenderer.getExternalLabelBounds(t,n);this._modeling.resizeShape(t,i,Hy)}},Wy.prototype.revert=function(e){var t=e.element,n=e.properties,i=e.oldProperties,r=t.businessObject,o=this._elementRegistry,s=this._moddle.ids;return Gy(t,i),Yy(n,r)&&(s.unclaim(n[Vy]),o.updateId(t,i[Vy]),s.claim(i[Vy],r)),e.changed};var Uy=["default"];function Zy(e,t){this._canvas=e,this._modeling=t}function Ky(e,t){this._modeling=e,this._spaceTool=t}function Jy(e,t){this._modeling=e,this._translate=t}function eb(e,t){this._modeling=e,this._spaceTool=t}Zy.$inject=["canvas","modeling"],Zy.prototype.execute=function(e){var t=this._canvas,n=e.newRoot,i=n.businessObject,r=t.getRootElement(),o=r.businessObject,s=o.$parent,a=Wr(r);return t.setRootElement(n),t.removeRootElement(r),Tt(s.rootElements,i),i.$parent=s,Rt(s.rootElements,o),o.$parent=null,r.di=null,a.bpmnElement=i,n.di=a,e.oldRoot=r,[]},Zy.prototype.revert=function(e){var t=this._canvas,n=e.newRoot,i=n.businessObject,r=e.oldRoot,o=r.businessObject,s=i.$parent,a=Wr(n);return t.setRootElement(r),t.removeRootElement(n),Rt(s.rootElements,i),i.$parent=null,Tt(s.rootElements,o),o.$parent=s,n.di=null,a.bpmnElement=o,r.di=a,[]},Ky.$inject=["modeling","spaceTool"],Ky.prototype.preExecute=function(e){var t=this._spaceTool,n=this._modeling,i=e.shape,r=e.location,o=Wp(i),s=o===i,a=s?i:i.parent;Hp(a).length||n.createShape({type:"bpmn:Lane"},{x:i.x+Vp,y:i.y,width:i.width-Vp,height:i.height},a);var l=[];_t(o,(function(e){return l.push(e),e.label&&l.push(e.label),e===i?[]:y(e.children,(function(e){return e!==i}))}));var c="top"===r?-120:120,h="top"===r?i.y:i.y+i.height,u=h+("top"===r?10:-10),p="top"===r?"n":"s",d=t.calculateAdjustments(l,"y",c,u);t.makeSpace(d.movingShapes,d.resizingShapes,{x:0,y:c},p,u),e.newLane=n.createShape({type:"bpmn:Lane"},{x:i.x+(s?Vp:0),y:h-("top"===r?120:0),width:i.width-(s?Vp:0),height:120},a)},Jy.$inject=["modeling","translate"],Jy.prototype.preExecute=function(e){var t=this._modeling,n=this._translate,i=e.shape,r=e.count,o=Hp(i),s=o.length;if(s>r)throw new Error(n("more than {count} child lanes",{count:r}));var a,l,c,h,u,p=Math.round(i.height/r);for(u=0;u<r;u++)a=i.y+u*p,l=u===r-1?i.height-p*u:p,c={x:i.x+Vp,y:a,width:i.width-Vp,height:l},u<s?t.resizeShape(o[u],c):(h={type:"bpmn:Lane"},t.createShape(h,c,i))},eb.$inject=["modeling","spaceTool"],eb.prototype.preExecute=function(e){var t=e.shape,n=e.newBounds;!1!==e.balanced?this.resizeBalanced(t,n):this.resizeSpace(t,n)},eb.prototype.resizeBalanced=function(e,t){var n=this._modeling,i=Yp(e,t);n.resizeShape(e,t),i.forEach((function(e){n.resizeShape(e.shape,e.newBounds)}))},eb.prototype.resizeSpace=function(e,t){var n,i,r,o,s,a=this._spaceTool,l=Pn(e),c=Np(Pn(t),l),h=Wp(e),u=[],p=[];_t(h,(function(e){return u.push(e),(Vr(e,"bpmn:Lane")||Vr(e,"bpmn:Participant"))&&p.push(e),e.children})),(c.bottom||c.top)&&(n=c.bottom||c.top,i=e.y+(c.bottom?e.height:0)+(c.bottom?-10:10),r=c.bottom?"s":"n",o=c.top>0||c.bottom<0?-n:n,s=a.calculateAdjustments(u,"y",o,i),a.makeSpace(s.movingShapes,s.resizingShapes,{x:0,y:n},r)),(c.left||c.right)&&(n=c.right||c.left,i=e.x+(c.right?e.width:0)+(c.right?-10:100),r=c.right?"e":"w",o=c.left>0||c.right<0?-n:n,s=a.calculateAdjustments(p,"x",o,i),a.makeSpace(s.movingShapes,s.resizingShapes,{x:n,y:0},r))};var tb="flowNodeRef",nb="lanes";function ib(e){this._elementRegistry=e}function rb(e){this._moddle=e}ib.$inject=["elementRegistry"],ib.prototype._computeUpdates=function(e,t){var n=[],i=[],r={},o=[];function s(e){-1===n.indexOf(e)&&(o.push(e),n.push(e))}function a(e){if(!e.parent)return[];var t=function(e){var t=Wp(e);return r[t.id]||(r[t.id]=qp(t)),r[t.id]}(e);return t.filter((function(t){return n=e,i=Pn(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=Wp(e);if(t&&-1===n.indexOf(t)){var i=t.children.filter((function(e){return Vr(e,"bpmn:FlowNode")}));i.forEach(s),n.push(t)}})),e.forEach(s),o.forEach((function(e){var t=e.businessObject,n=t.get(nb).slice(),r=a(e);i.push({flowNode:t,remove:n,add:r})})),t.forEach((function(e){var t=e.businessObject;e.parent||t.get(tb).forEach((function(e){i.push({flowNode:e,remove:[t],add:[]})}))})),i},ib.prototype.execute=function(e){var t=e.updates;return t||(t=e.updates=this._computeUpdates(e.flowNodeShapes,e.laneShapes)),t.forEach((function(e){var t=e.flowNode,n=t.get(nb);e.remove.forEach((function(e){Rt(n,e),Rt(e.get(tb),t)})),e.add.forEach((function(e){Tt(n,e),Tt(e.get(tb),t)}))})),[]},ib.prototype.revert=function(e){return e.updates.forEach((function(e){var t=e.flowNode,n=t.get(nb);e.add.forEach((function(e){Rt(n,e),Rt(e.get(tb),t)})),e.remove.forEach((function(e){Tt(n,e),Tt(e.get(tb),t)}))})),[]},rb.$inject=["moddle"],rb.prototype.execute=function(e){var t=this._moddle.ids,n=e.id,i=e.element;return e.claiming?t.claim(n,i):t.unclaim(n),[]},rb.prototype.revert=function(e){var t=this._moddle.ids,n=e.id,i=e.element;return e.claiming?t.unclaim(n):t.claim(n,i),[]};var ob={fill:void 0,stroke:void 0};function sb(e){this._commandStack=e,this._normalizeColor=function(e){if(e){if(d(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)}}}sb.$inject=["commandStack"],sb.prototype.postExecute=function(e){var t=e.elements,n=e.colors||ob,i=this,r={};"fill"in n&&I(r,{"background-color":this._normalizeColor(n.fill)}),"stroke"in n&&I(r,{"border-color":this._normalizeColor(n.stroke)}),b(t,(function(e){var t=En(e)?F(r,["border-color"]):r,n=Wr(e);if(function(e){"border-color"in e&&(e.stroke=e["border-color"]);"background-color"in e&&(e.fill=e["background-color"])}(t),kn(e))i._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:n.label,properties:{color:r["border-color"]}});else{if(!qr(n,["bpmndi:BPMNEdge","bpmndi:BPMNShape"]))return;i._commandStack.execute("element.updateProperties",{element:e,properties:{di:t}})}}))};var ab={width:0,height:0};function lb(e,t,n){function i(e,t){var n=e.label||e,i=e.labelTarget||e;return function(e,t){var n=e.businessObject,i=wo(n);i&&("categoryValueRef"===i?n.categoryValueRef.value=t:n[i]=t)}(n,t),[n,i]}this.preExecute=function(t){var n=t.element,i=n.businessObject,r=t.newLabel;if(!kn(n)&&vo(n)&&!yo(n)&&!cb(r)){var o=xo(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=_o(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,s=n.newBounds,a=n.hints||{};if(kn(r)||Vr(r,"bpmn:TextAnnotation"))if(kn(r)&&cb(o))!1!==a.removeShape&&e.removeShape(r,{unsetLabel:!1});else{var l=_o(i);void 0===s&&(s=t.getExternalLabelBounds(r,l)),s&&e.resizeShape(r,s,ab)}}}function cb(e){return!e||!e.trim()}function hb(e,t,n,i){Iy.call(this,e,t,n),this._bpmnRules=i}function ub(){}lb.$inject=["modeling","textRenderer","bpmnFactory"],e(hb,Iy),hb.$inject=["eventBus","elementFactory","commandStack","bpmnRules"],hb.prototype.getHandlers=function(){var e=Iy.prototype.getHandlers.call(this);return e["element.updateModdleProperties"]=Xy,e["element.updateProperties"]=Wy,e["canvas.updateRoot"]=Zy,e["lane.add"]=Ky,e["lane.resize"]=eb,e["lane.split"]=Jy,e["lane.updateRefs"]=ib,e["id.updateClaim"]=rb,e["element.setColor"]=sb,e["element.updateLabel"]=lb,e},hb.prototype.updateLabel=function(e,t,n,i){this._commandStack.execute("element.updateLabel",{element:e,newLabel:t,newBounds:n,hints:i||{}})},hb.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)},hb.prototype.updateModdleProperties=function(e,t,n){this._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:n})},hb.prototype.updateProperties=function(e,t){this._commandStack.execute("element.updateProperties",{element:e,properties:t})},hb.prototype.resizeLane=function(e,t,n){this._commandStack.execute("lane.resize",{shape:e,newBounds:t,balanced:n})},hb.prototype.addLane=function(e,t){var n={shape:e,location:t};return this._commandStack.execute("lane.add",n),n.newLane},hb.prototype.splitLane=function(e,t){this._commandStack.execute("lane.split",{shape:e,count:t})},hb.prototype.makeCollaboration=function(){var e=this._create("root",{type:"bpmn:Collaboration"}),t={newRoot:e};return this._commandStack.execute("canvas.updateRoot",t),e},hb.prototype.makeProcess=function(){var e={newRoot:this._create("root",{type:"bpmn:Process"})};this._commandStack.execute("canvas.updateRoot",e)},hb.prototype.updateLaneRefs=function(e,t){this._commandStack.execute("lane.updateRefs",{flowNodeShapes:e,laneShapes:t})},hb.prototype.claimId=function(e,t){this._commandStack.execute("id.updateClaim",{id:e,element:t,claiming:!0})},hb.prototype.unclaimId=function(e,t){this._commandStack.execute("id.updateClaim",{id:e,element:t})},hb.prototype.setColor=function(e,t){e.length||(e=[e]),this._commandStack.execute("element.setColor",{elements:e,colors:t})},ub.prototype.layoutConnection=function(e,t){return[(t=t||{}).connectionStart||Rn(t.source||e.source),t.connectionEnd||Rn(t.target||e.target)]};var pb=20,db=5,fb=Math.round,mb=20,gb={"h:h":20,"v:v":20,"h:v":-10,"v:h":-10};function vb(e,t,n){var i,r,o,s=Tn(t,e,db),a=n.split(":")[0],l=fb((t.x-e.x)/2+e.x),c=fb((t.y-e.y)/2+e.y),h=(o=s,{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/left|right/,v:/top|bottom/}[a].test(o)),u=/h|r|l/.test(a),p=!1,d=!1;return h?(i=u?{x:l,y:e.y}:{x:e.x,y:c},r=u?"h:h":"v:v"):(p=function(e,t){return!{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/./,v:/./}[t].test(e)}(s,a),r=u?"h:v":"v:h",p?u?(d=c===e.y,i={x:e.x+pb*(/l/.test(a)?-1:1),y:d?c+pb:c}):i={x:(d=l===e.x)?l+pb:l,y:e.y+pb*(/t/.test(a)?-1:1)}:i={x:l,y:c}),{waypoints:bb(e,i,r).concat(i),directions:r,turnNextDirections:d}}function yb(e){return e.split(":").reverse().join(":")}function bb(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(Eb(n)){var i=function(e,t,n){return vb(e,t,n)}(e,t,n),r=function(e,t,n){var i=vb(t,e,yb(n));return{waypoints:i.waypoints.slice().reverse(),directions:yb(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:bb(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=fb((t.x-e.x)/2+e.x),r=fb((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 xb(e,t,n,i,r){var o=x(r&&r.preferredLayouts||[],"straight")[0]||"h:h",s=Tn(e,t,gb[o]||0),a=function(e,t){if(Eb(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}}(s,o);n=n||Rn(e),i=i||Rn(t);var l=a.split(":"),c=kb(n,e,l[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]}(s));return function(e,t,n){var i=bb(e,t,n);return i.unshift(e),i.push(t),Sb(i)}(c,kb(i,t,l[1],s),a)}function wb(e,t,n,i,r,o){var s;return c(n)&&(r=n,o=i,n=Rn(e),i=Rn(t)),r=r||[],s=-1!==(o=I({preferredLayouts:[]},o)).preferredLayouts.indexOf("straight")&&function(e,t,n,i,r){var o,s,a={};if(s=Tn(e,t),!/^(top|bottom|left|right)$/.test(s))return null;/top|bottom/.test(s)&&(o="x");/left|right/.test(s)&&(o="y");return"target"===r.preserveDocking?_b(o,i,e)?(a[o]=i[o],[{x:void 0!==a.x?a.x:n.x,y:void 0!==a.y?a.y:n.y,original:{x:void 0!==a.x?a.x:n.x,y:void 0!==a.y?a.y:n.y}},{x:i.x,y:i.y}]):null:_b(o,n,t)?(a[o]=n[o],[{x:n.x,y:n.y},{x:void 0!==a.x?a.x:i.x,y:void 0!==a.y?a.y:i.y,original:{x:void 0!==a.x?a.x:i.x,y:void 0!==a.y?a.y:i.y}}]):null}(e,t,n,i,o),s||(s=o.connectionEnd&&function(e,t,n,i){var r=i.slice().reverse();return r=Ob(e,t,n,r),r?r.reverse():null}(t,e,i,r),s||((s=o.connectionStart&&Ob(e,t,n,r))||(!o.connectionStart&&!o.connectionEnd&&r&&r.length?r:xb(e,t,n,i,o))))}function _b(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 Ob(e,t,n,i){if(function(e){return e.length<3||!(e.length>4)&&!!g(e,(function(t,n){var i=e[n-1];return i&&Dt(t,i)<3}))}(i))return null;var r,o=i[0],s=i.slice();return s[0]=n,s[1]=function(e,t,n){switch(Nt(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}}(s[1],o,n),r=function(e,t,n){var i;for(i=e.length-2;0!==i;i--)if(zt(e[i],t,mb)||zt(e[i],n,mb))return e.slice(i);return e}(s,e,t),r!==s&&(s=Ob(e,t,n,r)),s&&Nt(s)?null:s}function Eb(e){return e&&/t|r|b|l/.test(e)}function kb(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 Sb(e){return e.reduce((function(t,n,i){return Bt(t[t.length-1],e[i+1],n,0)||t.push(n),t}),[])}var Cb=-10,Pb=40,$b={top:"bottom","top-right":"bottom-left","top-left":"bottom-right",right:"left",bottom:"top","bottom-right":"top-left","bottom-left":"top-right",left:"right"},Ab={top:"t",right:"r",bottom:"b",left:"l"};function Rb(){}function Tb(e,t){return Vr(t,"bpmn:Participant")?"source":Vr(e,"bpmn:Participant")?"target":Lb(t)?"source":Lb(e)||Vr(t,"bpmn:Event")?"target":Vr(e,"bpmn:Event")?"source":null}function Mb(e){return Lb(e)?"target":"source"}function Db(e,t){return e?e.original||e:Rn(t)}function Bb(e,t){return Vr(t,"bpmn:Activity")&&Vr(e,"bpmn:BoundaryEvent")&&t.businessObject.isForCompensation}function Lb(e){return Vr(e,"bpmn:SubProcess")&&ho(e)}function Nb(e,t){return e===t}function jb(e){var t=/right|left/.exec(e);return t&&t[0]}function zb(e){var t=/top|bottom/.exec(e);return t&&t[0]}function Ib(e){return"right"===e||"left"===e}function Xb(e,t){var n=t.waypoints,i=n&&n.length&&Tn(n[0],e);return"top"===i?["t:r"]:"right"===i?["r:b"]:"left"===i?["l:t"]:["b:l"]}function Qb(e,t,n){var i,r,o,s,a=Rn(e),l=Rn(t),c=(s=(o=e).host,Tn(Rn(o),s,Cb)),h=Nb(e.host,t),u=-1!==["top","right","bottom","left"].indexOf(c),p=Tn(l,a,{x:e.width/2+t.width/2,y:e.height/2+t.height/2});return h?function(e,t,n,i,r){var o,s=t?e:zb(e),a=Ab[s];o=t?Ib(e)?Fb("y",n,i,r)?"h":"b":Fb("x",n,i,r)?"v":"l":"v";return[a+":"+o]}(c,u,e,t,n):(i=function(e,t,n){if(n)return Ab[e];if(Nb(zb(e),zb(t))||function(e,t){return $b[e]===t}(jb(e),jb(t)))return Ab[zb(e)];return Ab[jb(e)]}(c,p,u),r=function(e,t,n){if(n)return Ib(e)?function(e,t){var n=jb(e),i=$b[n];return-1!==t.indexOf(i)}(e,t)||Nb(e,t)?"h":"v":function(e,t){var n=zb(e),i=$b[n];return-1!==t.indexOf(i)}(e,t)||Nb(e,t)?"v":"h";return Ib(t)||Nb(zb(e),zb(t))&&jb(t)?"h":"v"}(c,p,u),[i+":"+r])}function Fb(e,t,n,i){var r=Pb;return!(Vb(e,i,n,r)||Vb(e,i,{x:n.x+n.width,y:n.y+n.height},r)||Vb(e,i,Rn(t),r))}function Vb(e,t,n,i){return Math.abs(t[e]-n[e])<i}function qb(e){return I({original:e.point.original||e.point},e.actual)}function Hb(e,t){this._elementRegistry=e,this._graphicsFactory=t}e(Rb,ub),Rb.prototype.layoutConnection=function(e,t){t||(t={});var n,i,r=t.source||e.source,o=t.target||e.target,s=t.waypoints||e.waypoints,a=t.connectionStart,l=t.connectionEnd;return a||(a=Db(s&&s[0],r)),l||(l=Db(s&&s[s.length-1],o)),(Vr(e,"bpmn:Association")||Vr(e,"bpmn:DataAssociation"))&&s&&!Bb(r,o)?[].concat([a],s.slice(1,-1),[l]):(Vr(e,"bpmn:MessageFlow")?n=function(e,t){return{preferredLayouts:["straight","v:v"],preserveDocking:Tb(e,t)}}(r,o):(Vr(e,"bpmn:SequenceFlow")||Bb(r,o))&&(n=r===o?{preferredLayouts:Xb(r,e)}:Vr(r,"bpmn:BoundaryEvent")?{preferredLayouts:Qb(r,o,l)}:Lb(r)||Lb(o)?function(e){return{preferredLayouts:["straight","h:h"],preserveDocking:Mb(e)}}(r):Vr(r,"bpmn:Gateway")?{preferredLayouts:["v:h"]}:Vr(o,"bpmn:Gateway")?{preferredLayouts:["h:v"]}:{preferredLayouts:["h:h"]}),n&&(i=Sb(wb(r,o,a,l,s,n=I(n,t)))),i||[a,l])},Hb.$inject=["elementRegistry","graphicsFactory"],Hb.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(qb(i)),o.push(qb(r)),o},Hb.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}},Hb.prototype._getIntersection=function(e,t,n){return Mn(this._getShapePath(e),this._getConnectionPath(t),n)},Hb.prototype._getConnectionPath=function(e){return this._graphicsFactory.getConnectionPath(e)},Hb.prototype._getShapePath=function(e){return this._graphicsFactory.getShapePath(e)},Hb.prototype._getGfx=function(e){return this._elementRegistry.getGraphics(e)};var Wb={__init__:["modeling","bpmnUpdater"],__depends__:[Og,tv,rv,av,mp,Tv,jv,Vv,Uv,ks,Ds,Av],bpmnFactory:["type",Zv],bpmnUpdater:["type",Kv],elementFactory:["type",ey],modeling:["type",hb],layouter:["type",Rb],connectionDocking:["type",Hb]},Yb=500,Gb=1250,Ub=1500,Zb=Math.round;function Kb(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 s(e,n,i,r){if(h(i)&&(r=i,i=!1),!n.waypoints&&n.parent&&!Te(e.target).has("djs-hit-no-move")){var o=function(e){return{x:e.x+Zb(e.width/2),y:e.y+Zb(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",Ub,(function(e){var t=e.context,n=e.shape,r=i.get().slice();-1===r.indexOf(n)&&(r=[n]),r=function(e){var t=P(e,"id");return y(e,(function(e){for(;e=e.parent;)if(t[e.id])return!1;return!0}))}(r),I(t,{shapes:r,validatedShapes:r,shape:n})})),e.on("shape.move.start",Gb,(function(e){var t=e.context,n=t.validatedShapes;if(!(t.canExecute=o(n)))return!1})),e.on("shape.move.move",Yb,(function(e){var t,n=e.context,i=n.validatedShapes,r=e.hover,s={x:e.dx,y:e.dy};t=o(i,s,{x:e.x,y:e.y},r),n.delta=s,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,s=t.shapes;if(!1===r)return!1;i.x=Zb(i.x),i.y=Zb(i.y),0===i.x&&0===i.y||n.moveElements(s,i,t.target,{primaryShape:t.shape,attach:o})})),e.on("element.mousedown",(function(e){if(as(e)){var t=is(e);if(!t)throw new Error("must supply DOM mousedown event");return s(t,e.element)}})),this.start=s}Kb.$inject=["eventBus","dragging","modeling","selection","rules"];var Jb=499,ex="djs-dragging",tx="drop-ok",nx="drop-not-ok",ix="new-parent",rx="attach-ok";function ox(e,t,n,r){function o(e){var t=function(e){var t=y(e,(function(t){return!En(t)||g(e,T({id:t.source.id}))&&g(e,T({id:t.target.id}))}));return t}(s(e));return t}function s(e){var t=Ot(e,!0),n=E(t,(function(e){return(e.incoming||[]).concat(e.outgoing||[])}));return i(t.concat(n))}function a(e,n){[rx,tx,nx,ix].forEach((function(i){i===n?t.addMarker(e,i):t.removeMarker(e,i)}))}e.on("shape.move.start",Jb,(function(e){var a=e.context,l=a.shapes,c=a.allDraggedElements,h=o(l);if(!a.dragGroup){var u=Ie("g");Ae(u,n.cls("djs-drag-group",["no-events"])),Se(t.getActiveLayer(),u),a.dragGroup=u}h.forEach((function(e){r.addDragger(e,a.dragGroup)})),b(c=c?i([c,s(l)]):s(l),(function(e){t.addMarker(e,ex)})),a.allDraggedElements=c,a.differentParents=1!==S(P(l,(function(e){return e.parent&&e.parent.id})))})),e.on("shape.move.move",Jb,(function(e){var t=e.context,n=t.dragGroup,i=t.target,r=t.shape.parent,o=t.canExecute;i&&("attach"===o?a(i,rx):t.canExecute&&i&&i.id!==r.id?a(i,ix):a(i,t.canExecute?tx:nx)),di(n,e.dx,e.dy)})),e.on(["shape.move.out","shape.move.cleanup"],(function(e){var t=e.context.target;t&&a(t,null)})),e.on("shape.move.cleanup",(function(e){var n=e.context,i=n.allDraggedElements,r=n.dragGroup;b(i,(function(e){t.removeMarker(e,ex)})),r&&De(r)})),this.makeDraggable=function(e,n,i){r.addDragger(n,e.dragGroup),i&&t.addMarker(n,ex),e.allDraggedElements?e.allDraggedElements.push(n):e.allDraggedElements=[n]}}ox.$inject=["eventBus","canvas","styles","previewSupport"];var sx={__depends__:[fs,ks,vs,ph,ah,Mu],__init__:["move","movePreview"],move:["type",Kb],movePreview:["type",ox]},ax=".djs-palette-toggle",lx=".entry",cx=ax+", "+lx,hx="djs-palette-",ux="open",px="two-column";function dx(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 fx(e,t){var n=t.getPaletteEntries();return p(n)?n(e):(b(n,(function(t,n){e[n]=t})),e)}dx.$inject=["eventBus","canvas"],dx.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("palette.getProviders",e,(function(e){e.providers.push(t)})),this._rebuild()},dx.prototype.getEntries=function(){return this._getProviders().reduce(fx,{})},dx.prototype._rebuild=function(){this._diagramInitialized&&(this._getProviders().length&&(this._container||this._init(),this._update()))},dx.prototype._init=function(){var e=this,t=this._eventBus,n=this._getParentContainer(),i=this._container=we(dx.HTML_MARKUP);n.appendChild(i),ne(n).add(hx+"shown"),ve.bind(i,cx,"click",(function(t){if(oe(t.delegateTarget,ax))return e.toggle();e.trigger("click",t)})),fe.bind(i,"mousedown",(function(e){e.stopPropagation()})),ve.bind(i,lx,"dragstart",(function(t){e.trigger("dragstart",t)})),t.on("canvas.resized",this._layoutChanged,this),t.fire("palette.create",{container:i})},dx.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"palette.getProviders",providers:[]});return this._eventBus.fire(t),t.providers},dx.prototype._toggleState=function(e){e=e||{};var t,n=this._getParentContainer(),i=this._container,r=this._eventBus,o=ne(i),s=ne(n);t="twoColumn"in e?e.twoColumn:this._needsCollapse(n.clientHeight,this._entries||{}),o.toggle(px,t),s.toggle(hx+px,t),"open"in e&&(o.toggle(ux,e.open),s.toggle(hx+ux,e.open)),r.fire("palette.changed",{twoColumn:t,open:this.isOpen()})},dx.prototype._update=function(){var e=_e(".djs-palette-entries",this._container),t=this._entries=this.getEntries();re(e),b(t,(function(t,n){var i=t.group||"default",r=_e("[data-group="+zs(i)+"]",e);r||(ee(r=we('<div class="group"></div>'),"data-group",i),e.appendChild(r));var o=t.html||(t.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),s=we(o);if(r.appendChild(s),!t.separator&&(ee(s,"data-action",n),t.title&&ee(s,"title",t.title),t.className&&function(e,t){var n=ne(e);(c(t)?t:t.split(/\s+/g)).forEach((function(e){n.add(e)}))}(s,t.className),t.imageUrl)){var a=we("<img>");ee(a,"src",t.imageUrl),s.appendChild(a)}})),this.open()},dx.prototype.trigger=function(e,t,n){var i,r,o=t.delegateTarget||t.target;return o?(i=ee(o,"data-action"),r=t.originalEvent||t,this.triggerEntry(i,e,r,n)):t.preventDefault()},dx.prototype.triggerEntry=function(e,t,n,i){var r,o;if((r=this._entries[e])&&(o=r.action,!1!==this._eventBus.fire("palette.trigger",{entry:r,event:n}))){if(p(o)){if("click"===t)return o(n,i)}else if(o[t])return o[t](n,i);n.preventDefault()}},dx.prototype._layoutChanged=function(){this._toggleState({})},dx.prototype._needsCollapse=function(e,t){return e<46*Object.keys(t).length+50},dx.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})},dx.prototype.open=function(){this._toggleState({open:!0})},dx.prototype.toggle=function(){this.isOpen()?this.close():this.open()},dx.prototype.isActiveTool=function(e){return e&&this._activeTool===e},dx.prototype.updateToolHighlight=function(e){var t;this._toolsContainer||(t=_e(".djs-palette-entries",this._container),this._toolsContainer=_e("[data-group=tools]",t)),b(this._toolsContainer.children,(function(t){var n=t.getAttribute("data-action");if(n){var i=ne(t);n=n.replace("-tool",""),i.contains("entry")&&n===e?i.add("highlighted-entry"):i.remove("highlighted-entry")}}))},dx.prototype.isOpen=function(){return ne(this._container).has(ux)},dx.prototype._getParentContainer=function(){return this._canvas.getContainer()},dx.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';var mx={__init__:["palette"],palette:["type",dx]},gx="crosshair";function vx(e,t,n,i,r,o,s){this._selection=r,this._dragging=n,this._mouse=s;var a=this,l=function(e){var n,i=t.getActiveLayer();Ae(n=e.frame=Ie("rect"),{class:"djs-lasso-overlay",width:1,height:1,x:0,y:0}),Se(i,n)},c=function(e){var t=e.frame,n=e.bbox;Ae(t,{x:n.x,y:n.y,width:n.width,height:n.height})},h=function(e){e.frame&&De(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(){a.activateLasso(t.originalEvent,!0)}))})),e.on("lasso.end",(function(e){var t=yx(e),n=i.filter((function(e){return e}));a.select(n,t)})),e.on("lasso.start",(function(e){var t=e.context;t.bbox=yx(e),l(t)})),e.on("lasso.move",(function(e){var t=e.context;t.bbox=yx(e),c(t)})),e.on("lasso.cleanup",(function(e){var t=e.context;h(t)})),e.on("element.mousedown",1500,(function(e){if(cs(e))return a.activateLasso(e.originalEvent),!0}))}function yx(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}}vx.$inject=["eventBus","canvas","dragging","elementRegistry","selection","toolManager","mouse"],vx.prototype.activateLasso=function(e,t){this._dragging.init(e,"lasso",{autoActivate:t,cursor:gx,data:{context:{}}})},vx.prototype.activateSelection=function(e,t){this._dragging.init(e,"lasso.selection",{trapClick:!1,autoActivate:t,cursor:gx,data:{context:{}}})},vx.prototype.select=function(e,t){var n=function(e,t){var n={};return b(e,(function(e){var i=e;i.waypoints&&(i=Et(i)),!u(t.y)&&i.x>t.x&&(n[e.id]=e),!u(t.x)&&i.y>t.y&&(n[e.id]=e),i.x>t.x&&i.y>t.y&&(u(t.width)&&u(t.height)&&i.width+i.x<t.width+t.x&&i.height+i.y<t.height+t.y?n[e.id]=e:u(t.width)&&u(t.height)||(n[e.id]=e))})),n}(e,t);this._selection.select(C(n))},vx.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)},vx.prototype.isActive=function(){var e=this._dragging.context();return e&&/^lasso/.test(e.prefix)};var bx={__depends__:[cv,Gu],__init__:["lassoTool"],lassoTool:["type",vx]},xx=1500,wx="grab";function _x(e,t,n,i,r,o){this._dragging=n,this._mouse=o;var s=this,a=i.get("keyboard",!1);r.registerTool("hand",{tool:"hand",dragging:"hand.move"}),e.on("element.mousedown",xx,(function(e){if(ls(e))return s.activateMove(e.originalEvent,!0),!1})),a&&a.addListener(xx,(function(e){if(Ox(e.keyEvent)&&!s.isActive()){var t=s._mouse.getLastMoveEvent();s.activateMove(t,!!t)}}),"keyboard.keydown"),a&&a.addListener(xx,(function(e){Ox(e.keyEvent)&&s.isActive()&&s.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(){s.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!ls(t)&&n&&e.once("hand.move.ended",(function(e){s.activateHand(e.originalEvent,!0,!0)})),!1}))}function Ox(e){return ua("Space",e)}_x.$inject=["eventBus","canvas","dragging","injector","toolManager","mouse"],_x.prototype.activateMove=function(e,t,n){"object"==typeof t&&(n=t,t=!1),this._dragging.init(e,"hand.move",{autoActivate:t,cursor:wx,data:{context:n||{}}})},_x.prototype.activateHand=function(e,t,n){this._dragging.init(e,"hand",{trapClick:!1,autoActivate:t,cursor:wx,data:{context:{reactivate:n}}})},_x.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateHand(e,!!e)},_x.prototype.isActive=function(){var e=this._dragging.context();return!!e&&/^(hand|hand\.move)$/.test(e.prefix)};var Ex={__depends__:[cv,Gu],__init__:["handTool"],handTool:["type",_x]},kx="connect-ok",Sx="connect-not-ok";function Cx(e,t,n,i,r,o,s){var a=this;this._dragging=t,this._rules=o,this._mouse=s,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=a.canStartConnect(n);null!==r&&(t.startTarget=n,i.addMarker(n,r?kx:Sx))})),e.on(["global-connect.out","global-connect.cleanup"],(function(e){var t=e.context.startTarget,n=e.context.canStartConnect;t&&i.removeMarker(t,n?kx:Sx)})),e.on(["global-connect.ended"],(function(t){var i=t.context.startTarget,r={x:t.x,y:t.y};if(a.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}))}Cx.$inject=["eventBus","dragging","connect","canvas","toolManager","rules","mouse"],Cx.prototype.start=function(e,t){this._dragging.init(e,"global-connect",{autoActivate:t,trapClick:!1,data:{context:{}}})},Cx.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();return this.start(e,!!e)},Cx.prototype.isActive=function(){var e=this._dragging.context();return e&&/^global-connect/.test(e.prefix)},Cx.prototype.canStartConnect=function(e){return this._rules.allowed("connection.start",{source:e})};var Px={__depends__:[xu,ph,ah,cv,Gu],globalConnect:["type",Cx]};function $x(e,t,n,i,r,o,s,a){this._palette=e,this._create=t,this._elementFactory=n,this._spaceTool=i,this._lassoTool=r,this._handTool=o,this._globalConnect=s,this._translate=a,e.registerProvider(this)}$x.$inject=["palette","create","elementFactory","spaceTool","lassoTool","handTool","globalConnect","translate"],$x.prototype.getPaletteEntries=function(){var e={},t=this._create,n=this._elementFactory,i=this._spaceTool,r=this._lassoTool,o=this._handTool,s=this._globalConnect,a=this._translate;function l(e,i,r,o,s){function l(i){var r=n.createShape(I({type:e},s));s&&(Wr(r).isExpanded=s.isExpanded);t.start(i,r)}var c=e.replace(/^bpmn:/,"");return{group:i,className:r,title:o||a("Create {type}",{type:c}),action:{dragstart:l,click:l}}}function c(e){var i=n.createShape({type:"bpmn:SubProcess",x:0,y:0,isExpanded:!0}),r=n.createShape({type:"bpmn:StartEvent",x:40,y:82,parent:i});t.start(e,[i,r],{hints:{autoSelect:[i]}})}function h(e){t.start(e,n.createParticipantShape())}return I(e,{"hand-tool":{group:"tools",className:"bpmn-icon-hand-tool",title:a("Activate the hand tool"),action:{click:function(e){o.activateHand(e)}}},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:a("Activate the lasso tool"),action:{click:function(e){r.activateSelection(e)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:a("Activate the create/remove space tool"),action:{click:function(e){i.activateSelection(e)}}},"global-connect-tool":{group:"tools",className:"bpmn-icon-connection-multi",title:a("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",a("Create StartEvent")),"create.intermediate-event":l("bpmn:IntermediateThrowEvent","event","bpmn-icon-intermediate-event-none",a("Create Intermediate/Boundary Event")),"create.end-event":l("bpmn:EndEvent","event","bpmn-icon-end-event-none",a("Create EndEvent")),"create.exclusive-gateway":l("bpmn:ExclusiveGateway","gateway","bpmn-icon-gateway-none",a("Create Gateway")),"create.task":l("bpmn:Task","activity","bpmn-icon-task",a("Create Task")),"create.data-object":l("bpmn:DataObjectReference","data-object","bpmn-icon-data-object",a("Create DataObjectReference")),"create.data-store":l("bpmn:DataStoreReference","data-store","bpmn-icon-data-store",a("Create DataStoreReference")),"create.subprocess-expanded":{group:"activity",className:"bpmn-icon-subprocess-expanded",title:a("Create expanded SubProcess"),action:{dragstart:c,click:c}},"create.participant-expanded":{group:"collaboration",className:"bpmn-icon-participant",title:a("Create Pool/Participant"),action:{dragstart:h,click:h}},"create.group":l("bpmn:Group","artifact","bpmn-icon-group",a("Create Group"))}),e};var Ax={__depends__:[mx,qu,Av,bx,Ex,Px,Uo],__init__:["paletteProvider"],paletteProvider:["type",$x]},Rx=250;function Tx(e,t,n,i,r){Bs.call(this,e),e.on("shape.move.move",Rx,(function(e){var o=e.context,s=o.canExecute;o.visualReplacements||(o.visualReplacements={}),s&&s.replacements?function(e){b(e.canExecute.replacements,(function(o){var s=o.oldElementId,a={type:o.newElementType};if(!e.visualReplacements[s]){var l=t.get(s);I(a,{x:l.x,y:l.y});var c=n.createShape(a);i.addShape(c,l.parent);var h=_e('[data-element-id="'+zs(l.id)+'"]',e.dragGroup);h&&Ae(h,{display:"none"});var u=r.addDragger(c,e.dragGroup);e.visualReplacements[s]=u,i.removeShape(c)}}))}(o):function(e){var t=e.visualReplacements;b(t,(function(n,i){var r=_e('[data-element-id="'+zs(i)+'"]',e.dragGroup);r&&Ae(r,{display:"inline"}),n.remove(),t[i]&&delete t[i]}))}(o)}))}Tx.$inject=["eventBus","elementRegistry","elementFactory","canvas","previewSupport"],e(Tx,Bs);var Mx={__depends__:[Mu],__init__:["bpmnReplacePreview"],bpmnReplacePreview:["type",Tx]},Dx=1250,Bx=40,Lx=20,Nx=10,jx=20,zx=["x","y"],Ix=Math.abs;function Xx(e){e.on(["connect.hover","connect.move","connect.end"],Dx,(function(e){var t=e.context,n=t.canExecute,i=t.start,r=t.hover,o=t.source,s=t.target;e.originalEvent&&ha(e.originalEvent)||(t.initialConnectionStart||(t.initialConnectionStart=t.connectionStart),n&&r&&function(e,t,n){zx.forEach((function(i){var r=Vx(i,t);e[i]<t[i]+n?su(e,i,t[i]+n):e[i]>t[i]+r-n&&su(e,i,t[i]+r-n)}))}(e,r,function(e){return Vr(e,"bpmn:Task")?Nx:Lx}(r)),r&&function(e,t){return O(t,(function(t){return Fx(e,t)}))}(n,["bpmn:Association","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:SequenceFlow"])?(t.connectionStart=ru(i),qr(r,["bpmn:Event","bpmn:Gateway"])&&Qx(e,ru(r)),qr(r,["bpmn:Task","bpmn:SubProcess"])&&function(e,t){var n=ru(t);zx.forEach((function(i){(function(e,t,n){return e[n]>t[n]+jx&&e[n]<t[n]+Vx(n,t)-jx})(e,t,i)&&su(e,i,n[i])}))}(e,r),Vr(o,"bpmn:BoundaryEvent")&&s===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=ru(n),o=Tn(r,i,-10),s=[];/top|bottom/.test(o)&&s.push("x");/left|right/.test(o)&&s.push("y");s.forEach((function(t){var n,i=e[t];Ix(i-r[t])<Bx&&(n=i>r[t]?r[t]+Bx:r[t]-Bx,su(e,t,n))}))}(e)):Fx(n,"bpmn:MessageFlow")?(Vr(i,"bpmn:Event")&&(t.connectionStart=ru(i)),Vr(r,"bpmn:Event")&&Qx(e,ru(r))):t.connectionStart=t.initialConnectionStart)}))}function Qx(e,t){su(e,"x",t.x),su(e,"y",t.y)}function Fx(e,t){return e&&e.type===t}function Vx(e,t){return"x"===e?t.width:t.height}function qx(){this._targets={},this._snapOrigins={},this._snapLocations=[],this._defaultSnaps={}}function Hx(){this._snapValues={}}Xx.$inject=["eventBus"],qx.prototype.getSnapOrigin=function(e){return this._snapOrigins[e]},qx.prototype.setSnapOrigin=function(e,t){this._snapOrigins[e]=t,-1===this._snapLocations.indexOf(e)&&this._snapLocations.push(e)},qx.prototype.addDefaultSnap=function(e,t){var n=this._defaultSnaps[e];n||(n=this._defaultSnaps[e]=[]),n.push(t)},qx.prototype.getSnapLocations=function(){return this._snapLocations},qx.prototype.setSnapLocations=function(e){this._snapLocations=e},qx.prototype.pointsForTarget=function(e){var t=e.id||e,n=this._targets[t];return n||(n=this._targets[t]=new Hx).initDefaults(this._defaultSnaps),n},Hx.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)},Hx.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],eu(r-e)<=n)return r}(e[n],r[n],i)},Hx.prototype.initDefaults=function(e){var t=this;b(e||{},(function(e,n){b(e,(function(e){t.add(n,e)}))}))};var Wx=1250;function Yx(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"],Wx,(function(e){var t=e.context,r=t.shape,o=t.snapContext,s=t.target;if((!e.originalEvent||!ha(e.originalEvent))&&!ou(e)&&s){var a=o.pointsForTarget(s);a.initialized||((a=i.addSnapTargetPoints(a,r,s)).initialized=!0),n.snap(e,a)}})),t.on(["create.cleanup","shape.move.cleanup"],(function(){n.hide()}))}Yx.$inject=["elementRegistry","eventBus","snapping"],Yx.prototype.initSnap=function(e){var t,n=this._elementRegistry,i=e.context,r=i.shape,o=i.snapContext;o||(o=i.snapContext=new qx);var s=(t=n.get(r.id)?ru(r,e):{x:e.x+ru(r).x,y:e.y+ru(r).y}).x-r.width/2,a=t.y-r.height/2,l=t.x+r.width/2,c=t.y+r.height/2;return o.setSnapOrigin("mid",{x:t.x-e.x,y:t.y-e.y}),kn(r)||(o.setSnapOrigin("top-left",{x:s-e.x,y:a-e.y}),o.setSnapOrigin("bottom-right",{x:l-e.x,y:c-e.y})),o},Yx.prototype.addSnapTargetPoints=function(e,t,n){return b(this.getSnapTargets(t,n),(function(n){if(kn(n))kn(t)&&e.add("mid",ru(n));else if(En(n)){if(n.waypoints.length<3)return;b(n.waypoints.slice(1,-1),(function(t){e.add("mid",t)}))}else e.add("mid",ru(n))})),u(t.x)&&u(t.y)?(this._elementRegistry.get(t.id)&&e.add("mid",ru(t)),e):e},Yx.prototype.getSnapTargets=function(e,t){return au(t).filter((function(e){return!e.hidden}))};var Gx=1500;function Ux(e,t){t.invoke(Yx,this),e.on(["create.move","create.end"],Gx,Zx),e.on(["create.move","create.end","shape.move.move","shape.move.end"],Gx,(function(e){var t=e.context,n=t.canExecute,i=t.target;n&&("attach"===n||n.attach)&&!ou(e)&&function(e,t){var n,i=Pn(t),r=Eg(e,t),o=e.context,s=o.shape;n=s.parent?{x:0,y:0}:Rn(s);/top/.test(r)?su(e,"y",i.top-n.y):/bottom/.test(r)&&su(e,"y",i.bottom-n.y);/left/.test(r)?su(e,"x",i.left-n.x):/right/.test(r)&&su(e,"x",i.right-n.x)}(e,i)}))}function Zx(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)&&su(e,"x",e.x),(n&&n>=e.y||r&&r<=e.y)&&su(e,"y",e.y)}}function Kx(e,t){return-1!==e.indexOf(t)}function Jx(e,t,n){return t?{x:e.x-n.x,y:e.y-n.y}:{x:e.x,y:e.y}}e(Ux,Yx),Ux.$inject=["eventBus","injector"],Ux.prototype.initSnap=function(e){var t=Yx.prototype.initSnap.call(this,e),n=e.shape,i=!!this._elementRegistry.get(n.id);return b(n.outgoing,(function(n){var r=n.waypoints[0];r=r.original||r,t.setSnapOrigin(n.id+"-docking",Jx(r,i,e))})),b(n.incoming,(function(n){var r=n.waypoints[n.waypoints.length-1];r=r.original||r,t.setSnapOrigin(n.id+"-docking",Jx(r,i,e))})),Vr(n,"bpmn:Participant")&&t.setSnapLocations(["top-left","bottom-right","mid"]),t},Ux.prototype.addSnapTargetPoints=function(e,t,n){Yx.prototype.addSnapTargetPoints.call(this,e,t,n);var i=this.getSnapTargets(t,n);b(i,(function(n){var i;(function(e){if(Vr(e,"bpmn:SubProcess")&&ho(e))return!0;return Vr(e,"bpmn:Participant")}(n)||(i="bpmn:TextAnnotation",[t,n].every((function(e){return Vr(e,i)}))))&&(e.add("top-left",nu(n)),e.add("bottom-right",iu(n)))}));var r=this._elementRegistry;return b(t.incoming,(function(n){if(r.get(t.id)){Kx(i,n.source)||e.add("mid",Rn(n.source));var o=n.waypoints[0];e.add(n.id+"-docking",o.original||o)}})),b(t.outgoing,(function(n){if(r.get(t.id)){Kx(i,n.target)||e.add("mid",Rn(n.target));var o=n.waypoints[n.waypoints.length-1];e.add(n.id+"-docking",o.original||o)}})),Vr(n,"bpmn:SequenceFlow")&&(e=this.addSnapTargetPoints(e,t,n.parent)),e},Ux.prototype.getSnapTargets=function(e,t){return Yx.prototype.getSnapTargets.call(this,e,t).filter((function(e){return!Vr(e,"bpmn:Lane")}))};var ew=1250;function tw(e,t){var n=this;e.on(["resize.start"],(function(e){n.initSnap(e)})),e.on(["resize.move","resize.end"],ew,(function(e){var i=e.context,r=i.shape,o=r.parent,s=i.direction,a=i.snapContext;if(!(e.originalEvent&&ha(e.originalEvent)||ou(e))){var l=a.pointsForTarget(o);l.initialized||((l=n.addSnapTargetPoints(l,r,o,s)).initialized=!0),function(e){return"n"===e||"s"===e}(s)&&su(e,"x",e.x),function(e){return"e"===e||"w"===e}(s)&&su(e,"y",e.y),t.snap(e,l)}})),e.on(["resize.cleanup"],(function(){t.hide()}))}function nw(e,t){var n=Rn(e),i=Pn(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}tw.prototype.initSnap=function(e){var t=e.context,n=t.shape,i=t.direction,r=t.snapContext;r||(r=t.snapContext=new qx);var o=nw(n,i);return r.setSnapOrigin("corner",{x:o.x-e.x,y:o.y-e.y}),r},tw.prototype.addSnapTargetPoints=function(e,t,n,i){return b(this.getSnapTargets(t,n),(function(t){e.add("corner",iu(t)),e.add("corner",nu(t))})),e.add("corner",nw(t,i)),e},tw.$inject=["eventBus","snapping"],tw.prototype.getSnapTargets=function(e,t){return au(t).filter((function(t){return!(n=t,i=e,n.host===i||En(t)||function(e){return!!e.hidden}(t)||kn(t));var n,i}))};var iw=1e3;function rw(e){this._canvas=e,this._asyncHide=N(z(this.hide,this),iw)}rw.$inject=["canvas"],rw.prototype.snap=function(e,t){var n=e.context.snapContext,i=n.getSnapLocations(),r={x:ou(e,"x"),y:ou(e,"y")};b(i,(function(i){var o=n.getSnapOrigin(i),s={x:e.x+o.x,y:e.y+o.y};if(b(["x","y"],(function(e){var n;r[e]||void 0!==(n=t.snap(s,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),b(["x","y"],(function(t){var n=r[t];h(n)&&su(e,t,n.originValue)}))},rw.prototype._createLine=function(e){var t=this._canvas.getLayer("snap"),n=Ie("path");return Ae(n,{d:"M0,0 L0,0"}),Te(n).add("djs-snap-line"),Se(t,n),{update:function(t){u(t)?Ae(n,"horizontal"===e?{d:"M-100000,"+t+" L+100000,"+t,display:""}:{d:"M "+t+",-100000 L "+t+", +100000",display:""}):Ae(n,{display:"none"})}}},rw.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}},rw.prototype.showSnapLine=function(e,t){var n=this.getSnapLine(e);n&&n.update(t),this._asyncHide()},rw.prototype.getSnapLine=function(e){return this._snapLines||this._createSnapLines(),this._snapLines[e]},rw.prototype.hide=function(){b(this._snapLines,(function(e){e.update()}))};var ow={__depends__:[{__init__:["createMoveSnapping","resizeSnapping","snapping"],createMoveSnapping:["type",Yx],resizeSnapping:["type",tw],snapping:["type",rw]}],__init__:["connectSnapping","createMoveSnapping"],connectSnapping:["type",Xx],createMoveSnapping:["type",Ux]};function sw(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=we(sw.BOX_HTML),this._searchInput=_e(sw.INPUT_SELECTOR,this._container),this._resultsContainer=_e(sw.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),t.on(["canvas.destroy","diagram.destroy"],this.close,this)}function aw(e,t,n){var i=function(e){var t="";return e.forEach((function(e){e.matched?t+='<strong class="'+sw.RESULT_HIGHLIGHT_CLASS+'">'+Xs(e.matched)+"</strong>":t+=Xs(e.normal)})),""!==t?t:null}(t),r=we(n);r.innerHTML=i,e.appendChild(r)}sw.$inject=["canvas","eventBus","overlays","selection"],sw.prototype._bindEvents=function(){var e=this;function t(t,n,i,r){e._eventMaps.push({el:t,type:i,listener:ve.bind(t,n,i,r)})}t(document,"html","click",(function(t){e.close()})),t(this._container,sw.INPUT_SELECTOR,"click",(function(e){e.stopPropagation(),e.delegateTarget.focus()})),t(this._container,sw.RESULT_SELECTOR,"mouseover",(function(t){t.stopPropagation(),e._scrollToNode(t.delegateTarget),e._preselect(t.delegateTarget)})),t(this._container,sw.RESULT_SELECTOR,"click",(function(t){t.stopPropagation(),e._select(t.delegateTarget)})),t(this._container,sw.INPUT_SELECTOR,"keydown",(function(e){ua("ArrowUp",e)&&e.preventDefault(),ua("ArrowDown",e)&&e.preventDefault()})),t(this._container,sw.INPUT_SELECTOR,"keyup",(function(t){if(ua("Escape",t))return e.close();if(ua("Enter",t)){var n=e._getCurrentResult();return n?e._select(n):e.close()}return ua("ArrowUp",t)?e._scrollToDirection(!0):ua("ArrowDown",t)?e._scrollToDirection():void(ua(["ArrowLeft","ArrowRight"],t)||e._search(t.delegateTarget.value))}))},sw.prototype._unbindEvents=function(){this._eventMaps.forEach((function(e){ve.unbind(e.el,e.type,e.listener)}))},sw.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=_e(sw.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(i),this._preselect(i)}}},sw.prototype._scrollToDirection=function(e){var t=this._getCurrentResult();if(t){var n=e?t.previousElementSibling:t.nextElementSibling;n&&(this._scrollToNode(n),this._preselect(n))}},sw.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)}},sw.prototype._clearResults=function(){re(this._resultsContainer),this._results=[],this._resetOverlay(),this._eventBus.fire("searchPad.cleared")},sw.prototype._getCurrentResult=function(){return _e(sw.RESULT_SELECTED_SELECTOR,this._resultsContainer)},sw.prototype._createResultNode=function(e,t){var n=we(sw.RESULT_HTML);return e.primaryTokens.length>0&&aw(n,e.primaryTokens,sw.RESULT_PRIMARY_HTML),aw(n,e.secondaryTokens,sw.RESULT_SECONDARY_HTML),ee(n,sw.RESULT_ID_ATTRIBUTE,t),this._resultsContainer.appendChild(n),n},sw.prototype.registerProvider=function(e){this._searchProvider=e},sw.prototype.open=function(){if(!this._searchProvider)throw new Error("no search provider registered");this.isOpen()||(this._bindEvents(),this._open=!0,ne(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))},sw.prototype.close=function(){this.isOpen()&&(this._unbindEvents(),this._open=!1,ne(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._resetOverlay(),this._eventBus.fire("searchPad.closed"))},sw.prototype.toggle=function(){this.isOpen()?this.close():this.open()},sw.prototype.isOpen=function(){return this._open},sw.prototype._preselect=function(e){var t=this._getCurrentResult();if(e!==t){t&&ne(t).remove(sw.RESULT_SELECTED_CLASS);var n=ee(e,sw.RESULT_ID_ATTRIBUTE),i=this._results[n].element;ne(e).add(sw.RESULT_SELECTED_CLASS),this._resetOverlay(i),this._canvas.scrollToElement(i,{top:400}),this._selection.select(i),this._eventBus.fire("searchPad.preselected",i)}},sw.prototype._select=function(e){var t=ee(e,sw.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)},sw.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"},o=we('<div class="'+sw.OVERLAY_CLASS+'"></div>');return J(o,r),{position:{bottom:i-t,right:n-t},show:!0,html:o}}(Et(e));this._overlayId=this._overlays.add(e,t)}},sw.CONTAINER_SELECTOR=".djs-search-container",sw.INPUT_SELECTOR=".djs-search-input input",sw.RESULTS_CONTAINER_SELECTOR=".djs-search-results",sw.RESULT_SELECTOR=".djs-search-result",sw.RESULT_SELECTED_CLASS="djs-search-result-selected",sw.RESULT_SELECTED_SELECTOR="."+sw.RESULT_SELECTED_CLASS,sw.RESULT_ID_ATTRIBUTE="data-result-id",sw.RESULT_HIGHLIGHT_CLASS="djs-search-highlight",sw.OVERLAY_CLASS="djs-search-overlay",sw.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>',sw.RESULT_HTML='<div class="djs-search-result"></div>',sw.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>',sw.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';var lw={__depends__:[Ts,ks],searchPad:["type",sw]};function cw(e,t,n){this._elementRegistry=e,this._canvas=n,t.registerProvider(this)}function hw(e){return y(e,(function(e){return!!e.matched})).length>0}function uw(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}cw.$inject=["elementRegistry","searchPad","canvas"],cw.prototype.find=function(e){var t=this._canvas.getRootElement(),n=this._elementRegistry.filter((function(e){return!e.labelTarget}));return n=y(n,(function(e){return e!==t})),n=R(n=y(n=E(n,(function(t){return{primaryTokens:uw(_o(t),e),secondaryTokens:uw(t.id,e),element:t}})),(function(e){return hw(e.primaryTokens)||hw(e.secondaryTokens)})),(function(e){return _o(e.element)+e.element.id}))};var pw={__depends__:[lw],__init__:["bpmnSearch"],bpmnSearch:["type",cw]};function dw(e){co.call(this,e)}e(dw,co),dw.Viewer=oa,dw.NavigatedViewer=Xa,dw.prototype.createDiagram=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>')},dw.prototype.createDiagram=zr(dw.prototype.createDiagram),dw.prototype._interactionModules=[Oa,Ma,Ka,Ia],dw.prototype._modelingModules=[Rc,Yc,hh,Jc,pu,xu,_u,Zp,sp,qu,od,ud,Td,Dd,Ld,qd,pf,Wb,sx,Ax,Mx,rf,ow,pw],dw.prototype._modules=[].concat(oa.prototype._modules,dw.prototype._interactionModules,dw.prototype._modelingModules);var fw={min:.2,max:4},mw=10,gw=.1,vw=250;function yw(e,t,n,i,r){var o=this;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();var s=new Fa.Manager(document);s.add(new Fa.Pan),s.on("panmove",u),s.on("panend",p);var a=new Fa.Manager(this._svg);a.add(new Fa.Pan),a.on("panstart",h(!0)),a.add(new Fa.Tap),a.on("tap",(function(e){c(Pw(e))}));var l=new Fa.Manager(this._viewportDom);function c(e){o._state._svgClientRect&&!Ow(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),xw(bw({x:e.x-o._state._svgClientRect.left,y:e.y-o._state._svgClientRect.top},o._svg,o._lastViewbox),o._canvas),o._update()}function h(e){return function(t){var n=Pw(t);o._state._svgClientRect&&!Ow(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),e&&c(n);var r=bw({x:n.x-o._state._svgClientRect.left,y:n.y-o._state._svgClientRect.top},o._svg,o._lastViewbox),s=i.viewbox(),a=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}}(r,s),l=o._viewportDom.getBoundingClientRect(),h={x:n.x-l.left+1,y:n.y-l.top+1};I(o._state,{cachedViewbox:s,initialDragPosition:{x:n.x,y:n.y},isDragging:!0,offsetViewport:a,offsetViewportDom:h,viewportClientRect:o._viewport.getBoundingClientRect(),parentClientRect:o._parent.getBoundingClientRect()}),fe.bind(document,"mousemove",u),fe.bind(document,"mouseup",p)}}function u(e){var t=Pw(e);if(o._state.isDragging){o._state._svgClientRect&&!Ow(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect());var n=o._state.offsetViewportDom,i=o._state.viewportClientRect,r=o._state.parentClientRect;I(o._viewportDom.style,{top:t.y-n.y-r.top+"px",left:t.x-n.x-r.left+"px"});var s=kw(r,{top:t.y-n.y-r.top,left:t.x-n.x-r.left,width:i.width,height:i.height});I(o._overlay.style,{clipPath:s});var a=bw({x:t.x-o._state._svgClientRect.left,y:t.y-o._state._svgClientRect.top},o._svg,o._lastViewbox);xw({x:a.x-o._state.offsetViewport.x,y:a.y-o._state.offsetViewport.y},o._canvas)}}function p(e){var t=Pw(e);o._state.isDragging&&(o._state.initialDragPosition.x===t.x&&o._state.initialDragPosition.y===t.y&&c(e),o._update(),I(o._state,{cachedViewbox:null,initialDragPosition:null,isDragging:!1,offsetViewport:null,offsetViewportDom:null}),fe.unbind(document,"mousemove",u),fe.unbind(document,"mouseup",p))}l.add(new Fa.Pan),l.on("panstart",h(!1)),this.toggle(e&&e.open||!1),fe.bind(this._viewportDom,"mousedown",h(!1)),fe.bind(this._svg,"mousedown",h(!0)),fe.bind(this._parent,"wheel",(function(e){if(e.preventDefault(),e.stopPropagation(),e.ctrlKey&&(o._state._svgClientRect&&!Ow(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,s,a,l,c=0===e.deltaMode?.02:.32,h=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*Ew(e.deltaY)*-c;if(o._state.zoomDelta+=h,Math.abs(o._state.zoomDelta)>gw){var u=h>0?1:-1,p=Math.log(i.zoom())/Math.log(10),d=(r=fw,s=2*mw,a=Math.log(r.min)/Math.log(10),l=Math.log(r.max)/Math.log(10),(Math.abs(a)+Math.abs(l))/s),f=Math.round(p/d)*d;f+=d*u;var m=Math.pow(10,f);i.zoom(function(e,t){return Math.max(e.min,Math.min(e.max,t))}(fw,m),g),o._state.zoomDelta=0;var g=bw({x:e.clientX-o._state._svgClientRect.left,y:e.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox);xw(g,o._canvas),o._update()}}})),fe.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",vw,(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","plane.set"],(function(e){o._clear(),(e.element||e.plane.rootElement).children.forEach((function(e){o._addElement(e)})),o._update()}))}function bw(e,t,n){var i=t.getBoundingClientRect(),r=function(e,t){var n=e.width/e.height,i=I({},{x:e.x,y:e.y,width:e.width,height:e.height});if(n>t){var r=i.width*(1/t);I(i,{y:i.y-(r-i.height)/2,height:r})}else if(n<t){var o=i.height*t;I(i,{x:i.x-(o-i.width)/2,width:o})}return i}(n,i.width/i.height);return{x:ww(e.x,0,i.width,r.x,r.x+r.width),y:ww(e.y,0,i.height,r.y,r.y+r.height)}}function xw(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 ww(e,t,n,i,r){return(e-t)*(r-i)/(n-t)+i}function _w(e,t,n){var i=function(e){var t=_e(".children",e);t||Se(e,t=Ie("g",{class:"children"}));return t}(t),r=[].slice.call(i.childNodes)[n];r?t.insertBefore(e,r.nextSibling):t.appendChild(e)}function Ow(e){return 0===e.width&&0===e.height}yw.$inject=["config.minimap","injector","eventBus","canvas","elementRegistry"],yw.prototype._init=function(){var e=this._canvas.getContainer(),t=this._parent=document.createElement("div");ne(t).add("djs-minimap"),e.appendChild(t);var n=this._toggle=document.createElement("div");ne(n).add("toggle"),t.appendChild(n);var i=this._map=document.createElement("div");ne(i).add("map"),t.appendChild(i);var r=this._svg=Ie("svg");Ae(r,{width:"100%",height:"100%"}),Se(i,r),Se(r,this._elementsGroup=Ie("g"));var o=this._viewportGroup=Ie("g");Se(r,o);var s=this._viewport=Ie("rect");Te(s).add("viewport"),Se(o,s),fe.bind(t,"mousedown",(function(e){e.stopPropagation()}));var a=this._viewportDom=document.createElement("div");ne(a).add("viewport-dom"),this._parent.appendChild(a);var l=this._overlay=document.createElement("div");ne(l).add("overlay"),this._parent.appendChild(l)},yw.prototype._update=function(){var e=this._canvas.viewbox(),t=e.inner,n=e.outer;if(Cw(e)){var i,r,o,s,a=n.width-t.width,l=n.height-t.height;t.width<n.width?(i=t.x-a/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-l/2,s=n.height,t.y+t.height<n.height&&(r=Math.min(0,t.y))):(r=t.y,s=t.height),i-=50,r-=50,o+=100,s+=100,this._lastViewbox={x:i,y:r,width:o,height:s},Ae(this._svg,{viewBox:i+", "+r+", "+o+", "+s}),Ae(this._viewport,{x:e.x,y:e.y,width:e.width,height:e.height});var c=this._state._parentClientRect=this._parent.getBoundingClientRect(),h=this._viewport.getBoundingClientRect(),u={top:h.top-c.top,left:h.left-c.left,width:h.width,height:h.height};I(this._viewportDom.style,{top:u.top+"px",left:u.left+"px",width:u.width+"px",height:u.height+"px"});var p=kw(c,u);I(this._overlay.style,{clipPath:p})}},yw.prototype.open=function(){I(this._state,{isOpen:!0}),ne(this._parent).add("open");var e=this._injector.get("translate",!1)||function(e){return e};ee(this._toggle,"title",e("Close minimap")),this._update(),this._eventBus.fire("minimap.toggle",{open:!0})},yw.prototype.close=function(){I(this._state,{isOpen:!1}),ne(this._parent).remove("open");var e=this._injector.get("translate",!1)||function(e){return e};ee(this._toggle,"title",e("Open minimap")),this._eventBus.fire("minimap.toggle",{open:!1})},yw.prototype.toggle=function(e){var t=this.isOpen();void 0===e&&(e=!t),e!=t&&(e?this.open():this.close())},yw.prototype.isOpen=function(){return this._state.isOpen},yw.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)}},yw.prototype._updateElementId=function(e,t){try{var n=_e("#"+zs(e.id),this._elementsGroup);n&&(n.id=t)}catch(e){console.warn("Minimap#_updateElementId errored",e)}},yw.prototype.isOnActivePlane=function(e){var t=this._canvas;return t.findRoot?t.findRoot(e)===t.getRootElement():!t.findPlane||t.findPlane(e)===t.getActivePlane()},yw.prototype._addElement=function(e){var t=this;if(this._removeElement(e),this.isOnActivePlane(e)){var n,i,r,o=this._createElement(e),s=_e("#"+zs(e.parent.id),this._elementsGroup);if(o){var a=function(e,t){var n=_e(".djs-children",t.parentNode);if(!n)return;var i=[].slice.call(n.childNodes),r=-1;return i.forEach((function(t,n){_e(".djs-element",t)===e&&(r=n)})),r}(this._elementRegistry.getGraphics(e),this._elementRegistry.getGraphics(e.parent));return"undefined"!==a&&s?s.childNodes.length>a?_w(o,s,a):_w(o,s,s.childNodes.length-1):this._elementsGroup.appendChild(o),!function(e){return e.waypoints}(e)?(i=e.x,r=e.y,s&&(i-=(n=e.parent).x,r-=n.y),Ae(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),Ae(o,{transform:"translate("+i+" "+r+")"})),e.children&&e.children.length&&e.children.forEach((function(e){t._addElement(e)})),o}}},yw.prototype._removeElement=function(e){var t=this._svg.getElementById(e.id);t&&De(t)},yw.prototype._createElement=function(e){var t,n=this._elementRegistry.getGraphics(e);if(n&&(t=ui(n))){var i=Le(t);return Ae(i,{id:e.id}),i}},yw.prototype._clear=function(){Be(this._elementsGroup)};var Ew=Math.sign||function(e){return e>=0?1:-1};function kw(e,t){return"polygon("+[Sw(t.left,t.top),Sw(t.left+t.width,t.top),Sw(t.left+t.width,t.top+t.height),Sw(t.left,t.top+t.height),Sw(t.left,e.height),Sw(e.width,e.height),Sw(e.width,0),Sw(0,0),Sw(0,e.height),Sw(t.left,e.height)].join(", ")+")"}function Sw(e,t){return e+"px "+t+"px"}function Cw(e){return _(e,(function(e){return h(e)?Cw(e):u(e)&&isFinite(e)}))}function Pw(e){return e.center?e.center:{x:e.clientX,y:e.clientY}}var $w={__init__:["minimap"],minimap:["type",yw]},Aw=1e5,Rw=1e5;function Tw(e,t){this._canvas=e,this._visible=!1;var n=this;t.on("diagram.init",(function(){n._init()})),t.on("gridSnapping.toggle",(function(e){var t=e.active;n.toggle(t),n._centerGridAroundViewbox()})),t.on("canvas.viewbox.changed",(function(e){var t=e.viewbox;n._centerGridAroundViewbox(t)}))}Tw.prototype._init=function(){var e=_e("defs",this._canvas._svg);e||(e=Ie("defs"),Se(this._canvas._svg,e));var t=this._pattern=Ie("pattern"),n="djs-grid-pattern-"+Math.trunc(1e6*Math.random());Ae(t,{id:n,width:dd,height:dd,patternUnits:"userSpaceOnUse"});var i=this._circle=Ie("circle");Ae(i,{cx:.5,cy:.5,r:.5,fill:"#ccc"}),Se(t,i),Se(e,t),Ae(this._gfx=Ie("rect"),{x:-Aw/2,y:-Rw/2,width:Aw,height:Rw,fill:`url(#${n})`})},Tw.prototype._centerGridAroundViewbox=function(e){e||(e=this._canvas.viewbox());var t=Rn(e);Ae(this._gfx,{x:-Aw/2+fd(t.x,dd),y:-Rw/2+fd(t.y,dd)})},Tw.prototype.isVisible=function(){return this._visible},Tw.prototype.toggle=function(e){if(void 0===e&&(e=!this._visible),e!==this._visible){var t=this._getParent();e?Se(t,this._gfx):Be(t),this._visible=e}},Tw.prototype._getParent=function(){return this._canvas.getLayer("djs-grid",-2)},Tw.$inject=["canvas","eventBus"];var Mw={__init__:["grid"],grid:["type",Tw]},Dw="#CCC",Bw="rgba(0,0,0,0.1)";function Lw(e,t){var n,i,r=(e=e||{}).borderColor||Bw,o=e.crossColor||Dw,s=-1;Se(t.getLayer("djs-origin",-1),n=zw("g",{"pointer-events":"none"})),!1!==e.showBorder&&Se(n,zw("path",{class:jw("border"),d:Nw(["M",-22,s,"H",-1e3,"M",22,s,"H",6e3,"M",s,-22,"V",-1e3,"M",s,22,"V",3e3]),fill:"none",stroke:r,"stroke-width":"2px","stroke-dasharray":"6, 6","shape-rendering":"crispedges"})),Se(n,zw("path",{d:Nw(["M",-15,s,"H",15,"M",s,-15,"V",15]),class:jw("cross"),fill:"none",stroke:o,"stroke-width":"2px","stroke-linecap":"round"})),(i=zw("text",{x:-40,y:-10,fill:o,class:jw("label")})).textContent="(0, 0)",Se(n,i)}function Nw(e){return e.join(" ")}function jw(e){return"djs-origin-"+e}function zw(e,t){var n=Ie(e);return Ae(n,t),n}Lw.$inject=["config.origin","canvas"];var Iw={__init__:[Lw]},Xw={offset:{x:150,y:75},tolerance:50,alignOnSave:!0},Qw=1250;function Fw(e,t,n,i,r,o){function s(e,n){var i=n.offset,r=n.tolerance,o={};return["x","y"].forEach((function(n){var s=-e[n]+i[n],a=t.get("gridSnapping",!1);a&&(s=function(e,t,n){n||(n="round");return Math[n](e/t)*t}(s,a.getGridSpacing())),o[n]=Math.abs(s)<r?0:s})),o}function a(){var t=r.viewbox().inner,n=r.getRootElement().children;if(n.length){var o=s(t,e);0===o.x&&0===o.y||i.execute("elements.alignToOrigin",{elements:n,delta:o})}}function l(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 c,h,p;e=function(e){var t=I({},Xw,e||{});return u(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:l(-1),revert:l(1)}),e.alignOnSave&&(c=t.get("_parent",!1),h=n,((p=c&&c._eventBus)||h).on("saveXML.start",Qw,a),p&&h.on("diagram.destroy",(function(){p.off("saveXML.start",a)}))),this.align=a,this.computeAdjustment=s,this._config=e}Fw.$inject=["config.alignToOrigin","injector","eventBus","commandStack","canvas","modeling"];var Vw={__init__:["alignToOrigin"],alignToOrigin:["type",Fw]};function qw(e){function t(e){if(!e.labelTarget){var t=Hr(e);Vr(t,"bpmn:Participant")&&(t=t.processRef),Vr(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)}))}))}qw.$inject=["eventBus"];var Hw,Ww,Yw,Gw,Uw,Zw,Kw,Jw,e_={__init__:[qw]},t_={},n_=[],i_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,r_=Array.isArray;function o_(e,t){for(var n in t)e[n]=t[n];return e}function s_(e){var t=e.parentNode;t&&t.removeChild(e)}function a_(e,t,n){var i,r,o,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Hw.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return l_(e,s,i,r,null)}function l_(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?++Yw:r};return null==r&&null!=Ww.vnode&&Ww.vnode(o),o}function c_(e){return e.children}function h_(e,t){this.props=e,this.context=t}function u_(e,t){if(null==t)return e.__?u_(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?u_(e):null}function p_(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 p_(e)}}function d_(e){(!e.__d&&(e.__d=!0)&&Gw.push(e)&&!f_.__r++||Uw!==Ww.debounceRendering)&&((Uw=Ww.debounceRendering)||Zw)(f_)}function f_(){var e,t,n,i,r,o,s,a;for(Gw.sort(Kw);e=Gw.shift();)e.__d&&(t=Gw.length,i=void 0,r=void 0,s=(o=(n=e).__v).__e,(a=n.__P)&&(i=[],(r=o_({},o)).__v=o.__v+1,E_(a,o,r,n.__n,void 0!==a.ownerSVGElement,null!=o.__h?[s]:null,i,null==s?u_(o):s,o.__h),k_(i,o),o.__e!=s&&p_(o)),Gw.length>t&&Gw.sort(Kw));f_.__r=0}function m_(e,t,n,i,r,o,s,a,l,c){var h,u,p,d,f,m,g,v=i&&i.__k||n_,y=v.length;for(n.__k=[],h=0;h<t.length;h++)if(null!=(d=n.__k[h]=null==(d=t[h])||"boolean"==typeof d||"function"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?l_(null,d,null,null,d):r_(d)?l_(c_,{children:d},null,null,null):d.__b>0?l_(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(p=v[h])||p&&d.key==p.key&&d.type===p.type)v[h]=void 0;else for(u=0;u<y;u++){if((p=v[u])&&d.key==p.key&&d.type===p.type){v[u]=void 0;break}p=null}E_(e,d,p=p||t_,r,o,s,a,l,c),f=d.__e,(u=d.ref)&&p.ref!=u&&(g||(g=[]),p.ref&&g.push(p.ref,null,d),g.push(u,d.__c||f,d)),null!=f?(null==m&&(m=f),"function"==typeof d.type&&d.__k===p.__k?d.__d=l=g_(d,l,e):l=y_(e,d,p,v,f,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=u_(p))}for(n.__e=m,h=y;h--;)null!=v[h]&&("function"==typeof n.type&&null!=v[h].__e&&v[h].__e==n.__d&&(n.__d=b_(i).nextSibling),P_(v[h],v[h]));if(g)for(h=0;h<g.length;h++)C_(g[h],g[++h],g[++h])}function g_(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t="function"==typeof i.type?g_(i,t,n):y_(n,i,i,r,i.__e,t));return t}function v_(e,t){return t=t||[],null==e||"boolean"==typeof e||(r_(e)?e.some((function(e){v_(e,t)})):t.push(e)),t}function y_(e,t,n,i,r,o){var s,a,l;if(void 0!==t.__d)s=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),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<i.length;l+=1)if(a==r)break e;e.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function b_(e){var t,n,i;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(i=b_(n)))return i;return null}function x_(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||i_.test(t)?n:n+"px"}function w_(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||x_(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||x_(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?O_:__,o):e.removeEventListener(t,o?O_:__,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function __(e){return this.l[e.type+!1](Ww.event?Ww.event(e):e)}function O_(e){return this.l[e.type+!0](Ww.event?Ww.event(e):e)}function E_(e,t,n,i,r,o,s,a,l){var c,h,u,p,d,f,m,g,v,y,b,x,w,_,O,E=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=Ww.__b)&&c(t);try{e:if("function"==typeof E){if(g=t.props,v=(c=E.contextType)&&i[c.__c],y=c?v?v.props.value:c.__:i,n.__c?m=(h=t.__c=n.__c).__=h.__E:("prototype"in E&&E.prototype.render?t.__c=h=new E(g,y):(t.__c=h=new h_(g,y),h.constructor=E,h.render=$_),v&&v.sub(h),h.props=g,h.state||(h.state={}),h.context=y,h.__n=i,u=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=E.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=o_({},h.__s)),o_(h.__s,E.getDerivedStateFromProps(g,h.__s))),p=h.props,d=h.state,h.__v=t,u)null==E.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==E.getDerivedStateFromProps&&g!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,y),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(h.props=g,h.state=h.__s,h.__d=!1),h.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b<h._sb.length;b++)h.__h.push(h._sb[b]);h._sb=[],h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,y),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(p,d,f)}))}if(h.context=y,h.props=g,h.__P=e,x=Ww.__r,w=0,"prototype"in E&&E.prototype.render){for(h.state=h.__s,h.__d=!1,x&&x(t),c=h.render(h.props,h.state,h.context),_=0;_<h._sb.length;_++)h.__h.push(h._sb[_]);h._sb=[]}else do{h.__d=!1,x&&x(t),c=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++w<25);h.state=h.__s,null!=h.getChildContext&&(i=o_(o_({},i),h.getChildContext())),u||null==h.getSnapshotBeforeUpdate||(f=h.getSnapshotBeforeUpdate(p,d)),m_(e,r_(O=null!=c&&c.type===c_&&null==c.key?c.props.children:c)?O:[O],t,n,i,r,o,s,a,l),h.base=t.__e,t.__h=null,h.__h.length&&s.push(h),m&&(h.__E=h.__=null),h.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=S_(n.__e,t,n,i,r,o,s,l);(c=Ww.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=o)&&(t.__e=a,t.__h=!!l,o[o.indexOf(a)]=null),Ww.__e(e,t,n)}}function k_(e,t){Ww.__c&&Ww.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Ww.__e(e,t.__v)}}))}function S_(e,t,n,i,r,o,s,a){var l,c,h,u=n.props,p=t.props,d=t.type,f=0;if("svg"===d&&(r=!0),null!=o)for(;f<o.length;f++)if((l=o[f])&&"setAttribute"in l==!!d&&(d?l.localName===d:3===l.nodeType)){e=l,o[f]=null;break}if(null==e){if(null===d)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,a=!1}if(null===d)u===p||a&&e.data===p||(e.data=p);else{if(o=o&&Hw.call(e.childNodes),c=(u=n.props||t_).dangerouslySetInnerHTML,h=p.dangerouslySetInnerHTML,!a){if(null!=o)for(u={},f=0;f<e.attributes.length;f++)u[e.attributes[f].name]=e.attributes[f].value;(h||c)&&(h&&(c&&h.__html==c.__html||h.__html===e.innerHTML)||(e.innerHTML=h&&h.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||w_(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]||w_(e,o,t[o],n[o],i)}(e,p,u,r,a),h)t.__k=[];else if(m_(e,r_(f=t.props.children)?f:[f],t,n,i,r&&"foreignObject"!==d,o,s,o?o[0]:n.__k&&u_(n,0),a),null!=o)for(f=o.length;f--;)null!=o[f]&&s_(o[f]);a||("value"in p&&void 0!==(f=p.value)&&(f!==e.value||"progress"===d&&!f||"option"===d&&f!==u.value)&&w_(e,"value",f,u.value,!1),"checked"in p&&void 0!==(f=p.checked)&&f!==e.checked&&w_(e,"checked",f,u.checked,!1))}return e}function C_(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Ww.__e(e,n)}}function P_(e,t,n){var i,r;if(Ww.unmount&&Ww.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||C_(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){Ww.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&P_(i[r],t,n||"function"!=typeof e.type);n||null==e.__e||s_(e.__e),e.__=e.__e=e.__d=void 0}function $_(e,t,n){return this.constructor(e,n)}function A_(e,t,n){var i,r,o;Ww.__&&Ww.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,o=[],E_(t,e=(!i&&n||t).__k=a_(c_,null,[e]),r||t_,t_,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?Hw.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),k_(o,e)}function R_(e,t){var n={__c:t="__cC"+Jw++,__: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((function(e){e.__e=!0,d_(e)}))},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}Hw=n_.slice,Ww={__e:function(e,t,n,i){for(var r,o,s;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),s=r.__d),s)return r.__E=r}catch(t){e=t}throw e}},Yw=0,h_.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=o_({},this.state),"function"==typeof e&&(e=e(o_({},n),this.props)),e&&o_(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),d_(this))},h_.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),d_(this))},h_.prototype.render=c_,Gw=[],Zw="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Kw=function(e,t){return e.__v.__b-t.__v.__b},f_.__r=0,Jw=0;var T_,M_,D_,B_,L_=0,N_=[],j_=[],z_=Ww.__b,I_=Ww.__r,X_=Ww.diffed,Q_=Ww.__c,F_=Ww.unmount;function V_(e,t){Ww.__h&&Ww.__h(M_,e,L_||t),L_=0;var n=M_.__H||(M_.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:j_}),n.__[e]}function q_(e){return L_=1,H_(oO,e)}function H_(e,t,n){var i=V_(T_++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):oO(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=M_,!M_.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var s=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&i.__c.props===e)&&(!o||o.call(this,e,t,n))};M_.u=!0;var o=M_.shouldComponentUpdate,s=M_.componentWillUpdate;M_.componentWillUpdate=function(e,t,n){if(this.__e){var i=o;o=void 0,r(e,t,n),o=i}s&&s.call(this,e,t,n)},M_.shouldComponentUpdate=r}return i.__N||i.__}function W_(e,t){var n=V_(T_++,3);!Ww.__s&&rO(n.__H,t)&&(n.__=e,n.i=t,M_.__H.__h.push(n))}function Y_(e,t){var n=V_(T_++,4);!Ww.__s&&rO(n.__H,t)&&(n.__=e,n.i=t,M_.__h.push(n))}function G_(e){return L_=5,U_((function(){return{current:e}}),[])}function U_(e,t){var n=V_(T_++,7);return rO(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Z_(e,t){return L_=8,U_((function(){return e}),t)}function K_(e){var t=M_.context[e.__c],n=V_(T_++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(M_)),t.props.value):e.__}function J_(){for(var e;e=N_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(nO),e.__H.__h.forEach(iO),e.__H.__h=[]}catch(t){e.__H.__h=[],Ww.__e(t,e.__v)}}Ww.__b=function(e){M_=null,z_&&z_(e)},Ww.__r=function(e){I_&&I_(e),T_=0;var t=(M_=e.__c).__H;t&&(D_===M_?(t.__h=[],M_.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=j_,e.__N=e.i=void 0}))):(t.__h.forEach(nO),t.__h.forEach(iO),t.__h=[],T_=0)),D_=M_},Ww.diffed=function(e){X_&&X_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==N_.push(t)&&B_===Ww.requestAnimationFrame||((B_=Ww.requestAnimationFrame)||tO)(J_)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==j_&&(e.__=e.__V),e.i=void 0,e.__V=j_}))),D_=M_=null},Ww.__c=function(e,t){t.some((function(e){try{e.__h.forEach(nO),e.__h=e.__h.filter((function(e){return!e.__||iO(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Ww.__e(n,e.__v)}})),Q_&&Q_(e,t)},Ww.unmount=function(e){F_&&F_(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{nO(e)}catch(e){t=e}})),n.__H=void 0,t&&Ww.__e(t,n.__v))};var eO="function"==typeof requestAnimationFrame;function tO(e){var t,n=function(){clearTimeout(i),eO&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);eO&&(t=requestAnimationFrame(n))}function nO(e){var t=M_,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),M_=t}function iO(e){var t=M_;e.__c=e.__(),M_=t}function rO(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function oO(e,t){return"function"==typeof t?t(e):t}function sO(e,t){for(var n in t)e[n]=t[n];return e}function aO(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 lO(e){this.props=e}(lO.prototype=new h_).isPureReactComponent=!0,lO.prototype.shouldComponentUpdate=function(e,t){return aO(this.props,e)||aO(this.state,t)};var cO=Ww.__b;Ww.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),cO&&cO(e)};var hO="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function uO(e){function t(t){var n=sO({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=hO,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var pO=Ww.__e;Ww.__e=function(e,t,n,i){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);pO(e,t,n,i)};var dO=Ww.unmount;function fO(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=sO({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return fO(e,t,n)}))),e}function mO(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return mO(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function gO(){this.__u=0,this.t=null,this.__b=null}function vO(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function yO(){this.u=null,this.o=null}Ww.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),dO&&dO(e)},(gO.prototype=new h_).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=vO(i.__v),o=!1,s=function(){o||(o=!0,n.__R=null,r?r(a):a())};n.__R=s;var a=function(){if(!--i.__u){if(i.state.__a){var e=i.state.__a;i.__v.__k[0]=mO(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__a:i.__b=null});t=i.t.pop();)t.forceUpdate()}},l=!0===t.__h;i.__u++||l||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(s,s)},gO.prototype.componentWillUnmount=function(){this.t=[]},gO.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]=fO(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__a&&a_(c_,null,e.fallback);return r&&(r.__h=null),[a_(c_,null,t.__a?null:e.children),r]};var bO=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]}};function xO(e){return this.getChildContext=function(){return e.context},e.children}function wO(e){var t=this,n=e.i;t.componentWillUnmount=function(){A_(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),A_(a_(xO,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function _O(e,t){var n=a_(wO,{__v:e,i:t});return n.containerInfo=t,n}(yO.prototype=new h_).__a=function(e){var t=this,n=vO(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),bO(t,e,i)):r()};n?n(o):o()}},yO.prototype.render=function(e){this.u=null,this.o=new Map;var t=v_(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},yO.prototype.componentDidUpdate=yO.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){bO(e,n,t)}))};var OO="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,EO=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,kO=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,SO=/[A-Z0-9]/g,CO="undefined"!=typeof document,PO=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};h_.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(h_.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var $O=Ww.event;function AO(){}function RO(){return this.cancelBubble}function TO(){return this.defaultPrevented}Ww.event=function(e){return $O&&(e=$O(e)),e.persist=AO,e.isPropagationStopped=RO,e.isDefaultPrevented=TO,e.nativeEvent=e};var MO={enumerable:!1,configurable:!0,get:function(){return this.class}},DO=Ww.vnode;Ww.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var r in t){var o=t[r];if(!("value"===r&&"defaultValue"in t&&null==o||CO&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var s=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===s?r="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||PO(t.type)?"onfocus"===s?r="onfocusin":"onblur"===s?r="onfocusout":kO.test(r)?r=s:-1===n.indexOf("-")&&EO.test(r)?r=r.replace(SO,"-$&").toLowerCase():null===o&&(o=void 0):s=r="oninput","oninput"===s&&i[r=s]&&(r="oninputCapture"),i[r]=o}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=v_(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=v_(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",MO)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=OO,DO&&DO(e)};var BO=Ww.__r;Ww.__r=function(e){BO&&BO(e),e.__c};var LO=Ww.diffed;Ww.diffed=function(e){LO&&LO(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),null};var NO=a_,jO=0;function zO(e,t,n,i,r,o){var s,a,l={};for(a in t)"ref"==a?s=t[a]:l[a]=t[a];var c={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--jO,__source:r,__self:o};if("function"==typeof e&&(s=e.defaultProps))for(a in s)void 0===l[a]&&(l[a]=s[a]);return Ww.vnode&&Ww.vnode(c),c}var IO={exports:{}};
|
|
165
|
+
`,this._current.container)},wc.prototype.open=function(e,t,n,i){if(!e)throw new Error("target is missing");if(!t)throw new Error("providers for <"+t+"> not found");if(!n)throw new Error("position is missing");this.isOpen()&&this.close();const{entries:r,headerEntries:o}=this._getContext(e,t);this._current={position:n,className:t,target:e,entries:r,headerEntries:o,container:this._createContainer({provider:t}),options:i},this._emit("open"),this._bindAutoClose(),this._render()},wc.prototype._getContext=function(e,t){const n=this._getProviders(t);if(!n||!n.length)throw new Error("provider for <"+t+"> not found");const i=this._getEntries(e,n),r=this._getHeaderEntries(e,n);return{entries:i,headerEntries:r,empty:!(Object.keys(i).length||Object.keys(r).length)}},wc.prototype.close=function(){this.isOpen()&&(this._emit("close"),this.reset(),this._current=null)},wc.prototype.reset=function(){const e=this._current.container;jl(null,e),Ee(e)},wc.prototype._emit=function(e,t){this._eventBus.fire(`popupMenu.${e}`,t)},wc.prototype._onOpened=function(){this._emit("opened")},wc.prototype._onClosed=function(){this._emit("closed")},wc.prototype._createContainer=function(e){var t=this._canvas.getContainer();const n=we(`<div class="djs-popup-parent djs-scrollable" data-popup=${e.provider}></div>`);return t.appendChild(n),n},wc.prototype._bindAutoClose=function(){this._eventBus.once(xc,this.close,this)},wc.prototype._unbindAutoClose=function(){this._eventBus.off(xc,this.close,this)},wc.prototype._updateScale=function(){var e,t,n=this._canvas.zoom(),i=this._config.scale,r=n;return!0!==i&&(!1===i?(e=1,t=1):(e=i.min,t=i.max),a(e)&&n<e&&(r=e),a(t)&&n>t&&(r=t)),r},wc.prototype._ensureVisible=function(e,t){var n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect(),r={},o=t.x,s=t.y;return t.x+i.width>n.width&&(r.x=!0),t.y+i.height>n.height&&(r.y=!0),r.x&&r.y?(o=t.x-i.width,s=t.y-i.height):r.x?(o=t.x-i.width,s=t.y):r.y&&t.y<i.height?(o=t.x,s=10):r.y&&(o=t.x,s=t.y-i.height),{x:o,y:s}},wc.prototype.isEmpty=function(e,t){if(!e)throw new Error("target is missing");if(!t)throw new Error("provider ID is missing");const n=this._getProviders(t);return!n||!n.length||this._getContext(e,t).empty},wc.prototype.registerProvider=function(e,t,n){n||(n=t,t=1e3),this._eventBus.on("popupMenu.getProviders."+e,t,(function(e){e.providers.push(n)}))},wc.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"popupMenu.getProviders."+e,providers:[]});return this._eventBus.fire(t),t.providers},wc.prototype._getEntries=function(e,t){var n={};return b(t,(function(t){if(t.getPopupMenuEntries){var i=t.getPopupMenuEntries(e);p(i)?n=i(n):b(i,(function(e,t){n[t]=e}))}else b(t.getEntries(e),(function(e){var t=e.id;if(!t)throw new Error("entry ID is missing");n[t]=V(e,["id"])}))})),n},wc.prototype._getHeaderEntries=function(e,t){var n={};return b(t,(function(t){if(t.getPopupMenuHeaderEntries){var i=t.getPopupMenuHeaderEntries(e);p(i)?n=i(n):b(i,(function(e,t){n[t]=e}))}else{if(!t.getHeaderEntries)return;b(t.getHeaderEntries(e),(function(e){var t=e.id;if(!t)throw new Error("entry ID is missing");n[t]=V(e,["id"])}))}})),n},wc.prototype.isOpen=function(){return!!this._current},wc.prototype.trigger=function(e,t,n="click"){if(e.preventDefault(),!t){let n=ee(se(e.delegateTarget||e.target,".entry",!0),"data-id");t={id:n,...this._getEntry(n)}}const i=t.action;if(!1!==this._emit("trigger",{entry:t,event:e}))if(p(i)){if("click"===n)return i(e,t)}else if(i[n])return i[n](e,t)},wc.prototype._getEntry=function(e){var t=this._current.entries[e]||this._current.headerEntries[e];if(!t)throw new Error("entry not found");return t};var _c={__init__:["popupMenu"],popupMenu:["type",wc]},Oc={align:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 2000">\n <line x1="200" y1="150" x2="200" y2="1850" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="500" y="150" width="1300" height="700" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="500" y="1150" width="700" height="700" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',bottom:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="150" y1="1650" x2="1650" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="150" y="350" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="850" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',center:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="900" y1="150" x2="900" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="250" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="500" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',left:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="100" y1="150" x2="100" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="100" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="100" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',right:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="1650" y1="150" x2="1650" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="350" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="850" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',top:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="150" y1="150" x2="1650" y2="150" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="150" y="150" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="150" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',middle:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="150" y1="900" x2="1650" y2="900" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="150" y="250" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="500" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>'},Ec=900;function kc(e,t,n,i){e.registerProvider(Ec,this),this._contextPad=e,this._popupMenu=t,this._translate=n,this._canvas=i}kc.$inject=["contextPad","popupMenu","translate","canvas"],kc.prototype.getMultiElementContextPadEntries=function(e){var t={};return this._isAllowed(e)&&I(t,this._getEntries(e)),t},kc.prototype._isAllowed=function(e){return!this._popupMenu.isEmpty(e,"align-elements")},kc.prototype._getEntries=function(){var e=this;return{"align-elements":{group:"align-elements",title:e._translate("Align elements"),html:`<div class="entry">${Oc.align}</div>`,action:{click:function(t,n){var i=e._getMenuPosition(n);I(i,{cursor:{x:t.x,y:t.y}}),e._popupMenu.open(n,"align-elements",i)}}}}},kc.prototype._getMenuPosition=function(e){var t=this._contextPad.getPad(e).html.getBoundingClientRect();return{x:t.left,y:t.bottom+5}};var Sc=["left","center","right","top","middle","bottom"];function Cc(e,t,n,i){this._alignElements=t,this._translate=n,this._popupMenu=e,this._rules=i,e.registerProvider("align-elements",this)}function Pc(e){Ds.call(this,e),this.init()}function $c(e){Pc.call(this,e)}Cc.$inject=["popupMenu","alignElements","translate","rules"],Cc.prototype.getPopupMenuEntries=function(e){var t={};return this._isAllowed(e)&&I(t,this._getEntries(e)),t},Cc.prototype._isAllowed=function(e){return this._rules.allowed("elements.align",{elements:e})},Cc.prototype._getEntries=function(e){var t=this._alignElements,n=this._translate,i=this._popupMenu,r={};return b(Sc,(function(o){r["align-elements-"+o]={group:"align",title:n("Align elements "+o),className:"bjs-align-elements-menu-entry",imageHtml:Oc[o],action:function(){t.trigger(e,o),i.close()}}})),r},Pc.$inject=["eventBus"],e(Pc,Ds),Pc.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)}))},Pc.prototype.init=function(){},$c.$inject=["eventBus"],e($c,Pc),$c.prototype.init=function(){this.addRule("elements.align",(function(e){var t=y(e.elements,(function(e){return!(e.waypoints||e.host||e.labelTarget)}));return!((t=bt(t)).length<2)&&t}))};var Ac={__depends__:[il,pl,_c],__init__:["alignElementsContextPadProvider","alignElementsMenuProvider","bpmnAlignElements"],alignElementsContextPadProvider:["type",kc],alignElementsMenuProvider:["type",Cc],bpmnAlignElements:["type",$c]},Rc=10,Tc=50,Mc=250;function Dc(e,t,n,i){for(var r;r=Lc(e,n,t);)n=i(t,n,r);return n}function Bc(e){return function(t,n,i){var r={x:n.x,y:n.y};return["x","y"].forEach((function(o){var s=e[o];if(s){var a="x"===o?"width":"height",l=s.margin,c=s.minDistance;r[o]=l<0?Math.min(i[o]+l-t[a]/2,n[o]-c+l):Math.max(i[o]+i[a]+l+t[a]/2,n[o]+c+l)}})),r}}function Lc(e,t,n){var i={x:t.x-n.width/2,y:t.y-n.height/2,width:n.width,height:n.height},r=function(e){var t=Nc(e);e.host&&(t=t.concat(Nc(e.host)));e.attachers&&(t=t.concat(e.attachers.reduce((function(e,t){return e.concat(Nc(t))}),[])));return t}(e);return g(r,(function(e){return e!==n&&"intersect"===Tn(e,i,Rc)}))}function Nc(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 jc(){return!0}var zc=100;function Ic(e,t,n){e.on("autoPlace",zc,(function(e){var t=e.shape;return function(e,t,n){n||(n={});var i=n.defaultDistance||Tc,r=Rn(e),o=Pn(e);return{x:o.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}),s=t.appendShape(n,i,o,n.parent,r);return e.fire("autoPlace.end",{source:n,shape:s}),s}}function Xc(e,t){e.on("autoPlace.end",500,(function(e){t.select(e.shape)}))}Ic.$inject=["eventBus","modeling","canvas"],Xc.$inject=["eventBus","selection"];var Qc={__init__:["autoPlaceSelectionBehavior"],autoPlace:["type",Ic],autoPlaceSelectionBehavior:["type",Xc]};function Fc(e,t){for(d(t)&&(t=[t]);e=e.parent;)if(Vr(e,t))return e;return null}function Vc(e,t){return Fr(t,"bpmn:TextAnnotation")?function(e,t){var n=Pn(e),i={x:n.right+t.width/2,y:n.top-50-t.height/2};En(e)&&((i=Rn(e)).x+=100,i.y-=50);return Dc(e,t,i,Bc({y:{margin:-30,minDistance:20}}))}(e,t):Vr(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])?function(e,t){var n=Pn(e),i={x:n.right-10+t.width/2,y:n.bottom+40+t.width/2};return Dc(e,t,i,Bc({x:{margin:30,minDistance:30}}))}(e,t):Fr(t,"bpmn:FlowNode")?function(e,t){var n=Pn(e),i=Rn(e),r=function(e,t){t||(t={});var n=t.defaultDistance||Tc,i=t.direction||"e",r=t.filter,o=t.getWeight||function(t){return t.source===e?1:-1},s=t.maxDistance||Mc,a=t.reference||"start";function l(e,t){return"n"===i?"start"===a?Pn(e).top-Pn(t).bottom:"center"===a?Pn(e).top-Rn(t).y:Pn(e).top-Pn(t).top:"w"===i?"start"===a?Pn(e).left-Pn(t).right:"center"===a?Pn(e).left-Rn(t).x:Pn(e).left-Pn(t).left:"s"===i?"start"===a?Pn(t).top-Pn(e).bottom:"center"===a?Rn(t).y-Pn(e).bottom:Pn(t).bottom-Pn(e).bottom:"start"===a?Pn(t).left-Pn(e).right:"center"===a?Rn(t).x-Pn(e).right:Pn(t).right-Pn(e).right}r||(r=jc);var c=e.incoming.filter(r).map((function(t){var n=o(t),i=n<0?l(t.source,e):l(e,t.source);return{id:t.source.id,distance:i,weight:n}})),h=e.outgoing.filter(r).map((function(t){var n=o(t),i=n>0?l(e,t.target):l(t.target,e);return{id:t.target.id,distance:i,weight:n}})),u=w(c.concat(h).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>s||(e[String(n)]||(e[String(n)]=0),e[String(n)]+=1*i,(!e.distance||e[e.distance]<e[String(n)])&&(e.distance=n)),e}),{});return u.distance||n}(e,{filter:function(e){return Fr(e,"bpmn:SequenceFlow")}}),o=30,s=80,a="left";Fr(e,"bpmn:BoundaryEvent")&&-1!==(a=Tn(e,e.host,-25)).indexOf("top")&&(o*=-1);var l={x:n.right+r+t.width/2,y:i.y+qc(a,s)};return Dc(e,t,l,Bc({y:{margin:o,minDistance:s}}))}(e,t):void 0}function qc(e,t){return e.includes("top")?-1*t:e.includes("bottom")?t:0}function Hc(e){e.on("autoPlace",(function(e){var t=e.shape;return Vc(e.source,t)}))}Hc.$inject=["eventBus"];var Wc={__depends__:[Qc],__init__:["bpmnAutoPlace"],bpmnAutoPlace:["type",Hc]};function Yc(e,t,n,r){Ds.call(this,e),this._elementRegistry=t,this._modeling=n,this._rules=r;var o=this;this.postExecuted(["shape.create"],(function(e){var t=e.context,n=t.hints||{},i=t.shape,r=t.parent||t.newParent;!1!==n.autoResize&&o._expand([i],r)})),this.postExecuted(["elements.move"],(function(e){var t=e.context,n=i(C(t.closure.topLevel)),r=t.hints,s=!r||r.autoResize;!1!==s&&b(P(n,(function(e){return e.parent.id})),(function(e,t){c(s)&&(e=e.filter((function(e){return g(s,T({id:e.id}))}))),o._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||o._expand(i.children||[],i)})),this.postExecuted(["shape.resize"],(function(e){var t=e.context,n=t.hints,i=t.shape,r=i.parent;n&&!1===n.autoResize||r&&o._expand([i],r)}))}function Gc(e){e.invoke(Yc,this)}function Uc(e){Pc.call(this,e);var t=this;this.addRule("element.autoResize",(function(e){return t.canResize(e.elements,e.target)}))}function Zc(e,t){Uc.call(this,e),this._modeling=t}Yc.$inject=["eventBus","elementRegistry","modeling","rules"],e(Yc,Ds),Yc.prototype._getOptimalBounds=function(e,t){var n=this.getOffset(t),i=this.getPadding(t),r=Pn(Et(e)),o=Pn(t),s={};return r.top-o.top<i.top&&(s.top=r.top-n.top),r.left-o.left<i.left&&(s.left=r.left-n.left),o.right-r.right<i.right&&(s.right=r.right+n.right),o.bottom-r.bottom<i.bottom&&(s.bottom=r.bottom+n.bottom),$n(I({},o,s))},Yc.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=Pn(e),t=Pn(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}(F(t,["x","y","width","height"]),n);this.resize(t,n,{autoResize:i});var r=t.parent;r&&this._expand([t],r)}}},Yc.prototype.getOffset=function(e){return{top:60,bottom:60,left:100,right:100}},Yc.prototype.getPadding=function(e){return{top:2,bottom:2,left:15,right:15}},Yc.prototype.resize=function(e,t,n){this._modeling.resizeShape(e,t,null,n)},Gc.$inject=["injector"],e(Gc,Yc),Gc.prototype.resize=function(e,t,n){Fr(e,"bpmn:Participant")?this._modeling.resizeLane(e,t,null,n):this._modeling.resizeShape(e,t,null,n)},Uc.$inject=["eventBus"],e(Uc,Pc),Uc.prototype.canResize=function(e,t){return!1},e(Zc,Uc),Zc.$inject=["eventBus","modeling"],Zc.prototype.canResize=function(e,t){if(Fr(t.di,"bpmndi:BPMNPlane"))return!1;if(!Fr(t,"bpmn:Participant")&&!Fr(t,"bpmn:Lane")&&!Fr(t,"bpmn:SubProcess"))return!1;var n=!0;return b(e,(function(e){(Fr(e,"bpmn:Lane")||kn(e))&&(n=!1)})),n};var Kc={__init__:["bpmnAutoResize","bpmnAutoResizeProvider"],bpmnAutoResize:["type",Gc],bpmnAutoResizeProvider:["type",Zc]},Jc=1500;function eh(e,t,n){var i,r,o=this,s=n.get("dragging",!1);s&&t.on("drag.start",(function(n){t.once("drag.move",Jc,(function(t){!function(t){if(!t.hover){var n=t.originalEvent,i=o._findTargetGfx(n),r=i&&e.get(i);i&&r&&(t.stopPropagation(),s.hover({element:r,gfx:i}),s.move(n))}}(t)}))})),t.on("element.hover",(function(e){i=e.gfx,r=e.element})),t.on("element.hover",Jc,(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=rs(e),function(e){return se(e,"svg, .djs-element",!0)}(document.elementFromPoint(t.x,t.y))}}eh.$inject=["elementRegistry","eventBus","injector"];var th={__init__:["hoverFix"],hoverFix:["type",eh]},nh=Math.round,ih="djs-drag-active";function rh(e){e.preventDefault()}function oh(e,t,n,i){var r,o={threshold:5,trapClick:!0};function s(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 a(t,n){n=n||r;var i=e.createEvent(I({},n.payload,n.data,{isTouch:n.isTouch}));return!1!==e.fire("drag."+t,i)&&e.fire(n.prefix+"."+t,i)}function l(e,i){var o,l=r.payload,c=r.displacement,h=r.globalStart,u=rs(e),p=$a(u,h),d=r.localStart,f=s(u),g=$a(f,d);if(!r.active&&(i||(o=p,Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2))>r.threshold))){if(I(l,{x:nh(d.x+c.x),y:nh(d.y+c.y),dx:0,dy:0},{originalEvent:e}),!1===a("start"))return m();r.active=!0,r.keepSelection||(l.previousSelection=n.get(),n.select(null)),r.cursor&&Ea(r.cursor),t.addMarker(t.getRootElement(),ih)}is(e),r.active&&(I(l,{x:nh(f.x+c.x),y:nh(f.y+c.y),dx:nh(g.x),dy:nh(g.y)},{originalEvent:e}),a("move"))}function c(e){var t=!0;r.active&&(e&&(r.payload.originalEvent=e,is(e)),t=a("end")),!1===t&&a("rejected"),a("ended",g(!0!==t))}function h(e){ha("Escape",e)&&(rh(e),m())}function u(t){var n;r.active&&(n=Ca(e),setTimeout(n,400),rh(t)),c(t)}function p(e){l(e)}function d(e){var t=r.payload;t.hoverGfx=e.gfx,t.hover=e.element,a("hover")}function f(e){a("out");var t=r.payload;t.hoverGfx=null,t.hover=null}function m(e){var t;if(r){var n=r.active;n&&a("cancel"),t=g(e),n&&a("canceled",t)}}function g(o){var s,g;a("cleanup"),ka(),g=r.trapClick?u:c,fe.unbind(document,"mousemove",l),fe.unbind(document,"dragstart",rh),fe.unbind(document,"selectstart",rh),fe.unbind(document,"mousedown",g,!0),fe.unbind(document,"mouseup",g,!0),fe.unbind(document,"keyup",h),fe.unbind(document,"touchstart",p,!0),fe.unbind(document,"touchcancel",m,!0),fe.unbind(document,"touchmove",l,!0),fe.unbind(document,"touchend",c,!0),e.off("element.hover",d),e.off("element.out",f),t.removeMarker(t.getRootElement(),ih);var v=r.payload.previousSelection;return!1!==o&&v&&!n.get().length&&function(e){var t=e.filter((function(e){return i.get(e.id)}));t.length&&n.select(t)}(v),s=r,r=null,s}e.on("diagram.destroy",m),this.init=function(t,n,i,g){r&&m(!1),"string"==typeof n&&(g=i,i=n,n=null);var v,y,b,x,w,_=(g=I({},o,g||{})).data||{};x=g.trapClick?u:c,t?(v=ns(t)||t,y=rs(t),is(t),"dragstart"===v.type&&rh(v)):(v=null,y={x:0,y:0}),b=s(y),n||(n=b),w=function(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}(v),r=I({prefix:i,data:_,payload:{},globalStart:y,displacement:$a(n,b),localStart:b,isTouch:w},g),g.manual||(w?(fe.bind(document,"touchstart",p,!0),fe.bind(document,"touchcancel",m,!0),fe.bind(document,"touchmove",l,!0),fe.bind(document,"touchend",c,!0)):(fe.bind(document,"mousemove",l),fe.bind(document,"dragstart",rh),fe.bind(document,"selectstart",rh),fe.bind(document,"mousedown",x,!0),fe.bind(document,"mouseup",x,!0)),fe.bind(document,"keyup",h),e.on("element.hover",d),e.on("element.out",f)),a("init"),g.autoActivate&&l(t,!0)},this.move=l,this.hover=d,this.out=f,this.end=c,this.cancel=m,this.context=function(){return r},this.setOptions=function(e){I(o,e)}}oh.$inject=["eventBus","canvas","selection","elementRegistry"];var sh={__depends__:[th,Es],dragging:["type",oh]};function ah(e,t,n){this._canvas=n,this._opts=I({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 lh(e,t,n){return t<e&&e<n}ah.$inject=["config.autoScroll","eventBus","canvas"],ah.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 s=0,a=0,l=0;l<4;l++)lh(o[l],n.scrollThresholdOut[l],n.scrollThresholdIn[l])&&(0===l?s=n.scrollStep:1==l?a=n.scrollStep:2==l?s=-n.scrollStep:3==l&&(a=-n.scrollStep));0===s&&0===a||(t.scroll({dx:s,dy:a}),this._scrolling=setTimeout((function(){i.startScroll(e)}),n.scrollRepeatTimeout))},ah.prototype.stopScroll=function(){clearTimeout(this._scrolling)},ah.prototype.setOptions=function(e){this._opts=I({},this._opts,e)},ah.prototype._toBorderPoint=function(e){var t=this._canvas._container.getBoundingClientRect(),n=rs(e.originalEvent);return{x:n.x-t.left,y:n.y-t.top}};var ch={__depends__:[sh],__init__:["autoScroll"],autoScroll:["type",ah]};function hh(e){this._commandStack=e.get("commandStack",!1)}hh.$inject=["injector"],hh.prototype.allowed=function(e,t){var n=!0,i=this._commandStack;return i&&(n=i.canExecute(e,t)),void 0===n||n};var uh={__init__:["rules"],rules:["type",hh]},ph=Math.round,dh=Math.max;var fh=10;function mh(e,t){return function(e,t){var n,i;for(n=0;i=e[n];n++)if(Dt(i,t)<=fh)return{point:e[n],bendpoint:!0,index:n};return null}(e,t)||function(e,t){var n,i,r=On(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,fh),(n=[],e.forEach((function(e,t){n.push([0===t?"M":"L",e.x,e.y])})),n)),o=r[0],s=r[r.length-1];return o?o!==s?o.segment2!==s.segment2?{point:e[i=dh(o.segment2,s.segment2)-1],bendpoint:!0,index:i}:{point:{x:ph(o.x+s.x)/2,y:ph(o.y+s.y)/2},index:o.segment2}:{point:{x:ph(o.x),y:ph(o.y)},index:o.segment2}:null}(e,t)}function gh(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function vh(e){return Math.atan((e[1].y-e[0].y)/(e[1].x-e[0].x))}function yh(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 bh(e,t){var n=yh(e,t);return gh({x:n.x-e.x,y:n.y-e.y})}function xh(e,t){return gh({x:e.x-t.x,y:e.y-t.y})}var wh="djs-bendpoint",_h="djs-segment-dragger";function Oh(e,t,n){var i=function(e,t){var n,i=rs(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);return mh(t,i)}function Eh(e,t){var n=Ie("g");Te(n).add(wh),Se(e,n);var i=Ie("circle");Ae(i,{cx:0,cy:0,r:4}),Te(i).add("djs-visual"),Se(n,i);var r=Ie("circle");return Ae(r,{cx:0,cy:0,r:10}),Te(r).add("djs-hit"),Se(n,r),t&&Te(n).add(t),n}function kh(e,t,n,i){var r=Ie("g");Se(e,r);var o=function(e,t,n){var i=t.x-e.x,r=t.y-e.y;return Ch("h"===n?i:r)}(t,n,i),s=Ie("rect");Ae(s,{x:-9,y:-3,width:18,height:6}),Te(s).add("djs-visual"),Se(r,s);var a=Ie("rect");return Ae(a,{x:-o/2,y:-8.5,width:o,height:17}),Te(a).add("djs-hit"),Se(r,a),fi(r,"v"===i?90:0),r}function Sh(e,t,n){var i=Ie("g"),r=It(t,n),o=Nt(t,n);return Se(e,i),kh(i,t,n,o),Te(i).add(_h),Te(i).add("h"===o?"horizontal":"vertical"),di(i,r.x,r.y),i}function Ch(e){return Math.abs(Math.round(2*e/3))}function Ph(e,t){var n=function(e,t){for(var n,i=t.waypoints,r=1/0,o=0;o<i.length-1;o++){var s=bh(e,[i[o],i[o+1]]);s<r&&(r=s,n=o)}return[i[n],i[n+1]]}(e,t);return yh(e,n)}function $h(e,t,n,i,r){function o(e,n){var o,s=n.waypoints,a=Oh(t,s,e);if(a)return o=function(e,t){var n,i,r=e.waypoints;return t.index<=0||t.bendpoint?null:(i=Nt((n={start:r[t.index-1],end:r[t.index]}).start,n.end))?Ch("h"===i?n.end.x-n.start.x:n.end.y-n.start.y)/2:null}(n,a),!function(e,t,n){var i,r,o,s,a,l,c=e.index,h=e.point;return!(c<=0||e.bendpoint)&&(o=It(i=t[c-1],r=t[c]),s=Nt(i,r),a=Math.abs(h.x-o.x),l=Math.abs(h.y-o.y),s&&a<=n&&l<=n)}(a,s,o)?i.start(e,n,a.index,!a.bendpoint):r.start(e,n,a.index),!0}function s(e,t,i){fe.bind(e,t,(function(e){n.triggerMouseEvent(t,e,i),e.stopPropagation()}))}function a(e,n){var i=t.getLayer("overlays"),r=_e('.djs-bendpoints[data-element-id="'+js(e.id)+'"]',i);return!r&&n&&(Ae(r=Ie("g"),{"data-element-id":e.id}),Te(r).add("djs-bendpoints"),Se(i,r),s(r,"mousedown",e),s(r,"click",e),s(r,"dblclick",e)),r}function l(e,t){return _e('.djs-segment-dragger[data-segment-idx="'+e+'"]',t)}function c(e,t){t.waypoints.forEach((function(t,n){var i=Eh(e);Se(e,i),di(i,t.x,t.y)})),Eh(e,"floating")}function h(e,t){for(var n,i,r,o=t.waypoints,a=1;a<o.length;a++)Nt(n=o[a-1],i=o[a])&&(Ae(r=Sh(e,n,i),{"data-segment-idx":a}),s(r,"mousemove",t))}function u(e){var t=a(e);return t||(c(t=a(e,!0),e),h(t,e)),t}function p(e){var t=a(e);t&&(!function(e){b(Oe("."+_h,e),(function(e){De(e)}))}(t),function(e){b(Oe("."+wh,e),(function(e){De(e)}))}(t),h(t,e),c(t,e))}function d(e,t,n){var i,r,o=l(t.index,e),s=n[t.index-1],a=n[t.index],c=t.point,h=It(s,a),u=Nt(s,a);o&&(i=function(e){return _e(".djs-visual",e)}(o),r={x:c.x-h.x,y:c.y-h.y},"v"===u&&(r={x:r.y,y:r.x}),di(i,r.x,r.y))}e.on("connection.changed",(function(e){p(e.element)})),e.on("connection.remove",(function(e){var t=a(e.element);t&&De(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=a(r,!0),!(i=Oh(t,o,e.originalEvent)))return;!function(e,t){var n=_e(".floating",e),i=t.point;n&&di(n,i.x,i.y)}(n,i),i.bendpoint||d(n,i,o)}})),e.on("element.mousedown",(function(e){if(ss(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=a(t);i&&Ae(i,{"data-element-id":n})}})),this.addHandles=u,this.updateHandles=p,this.getBendpointsContainer=a,this.getSegmentDragger=l}$h.$inject=["eventBus","canvas","interactionEvents","bendpointMove","connectionSegmentMove"];var Ah=Math.round,Rh="reconnectStart",Th="reconnectEnd",Mh="updateWaypoints";function Dh(e,t,n,i,r,o){this._injector=e,this.start=function(e,t,o,s){var a,l=n.getGraphics(t),c=t.source,h=t.target,u=t.waypoints,p=(a=s||0!==o?s||o!==u.length-1?Mh:Th:Rh)===Mh?"connection.updateWaypoints":"connection.reconnect",d=r.allowed(p,{connection:t,source:c,target:h});!1===d&&(d=r.allowed(p,{connection:t,source:h,target:c})),!1!==d&&i.init(e,"bendpoint.move",{data:{connection:t,connectionGfx:l,context:{allowed:d,bendpointIndex:o,connection:t,source:c,target:h,insert:s,type:a}}})},t.on("bendpoint.move.hover",(function(e){var t,n=e.context,i=n.connection,o=i.source,s=i.target,a=e.hover,l=n.type;if(n.hover=a,a){var c=l===Mh?"connection.updateWaypoints":"connection.reconnect";if(t=n.allowed=r.allowed(c,{connection:i,source:l===Rh?a:o,target:l===Th?a:s}))return n.source=l===Rh?a:o,void(n.target=l===Th?a:s);!1===t&&(t=n.allowed=r.allowed(c,{connection:i,source:l===Th?a:s,target:l===Rh?a:o})),t&&(n.source=l===Th?a:s,n.target=l===Rh?a: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!==Mh&&(t.allowed=!1)})),t.on("bendpoint.move.end",(function(e){var t=e.context,n=t.allowed,i=t.bendpointIndex,r=t.connection,s=t.insert,a=r.waypoints.slice(),l=t.source,c=t.target,h=t.type,u=t.hints||{},p={x:Ah(e.x),y:Ah(e.y)};if(!n)return!1;h===Mh?(s?a.splice(i,0,p):a[i]=p,u.bendpointMove={insert:s,bendpointIndex:i},a=this.cropWaypoints(r,a),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===Dt(t,i=e[r+1])||Bt(n,i,t)?e.splice(r,1):r++;return e}(a),u)):(h===Rh?(u.docking="source",Bh(t)&&(u.docking="target",u.newWaypoints=a.reverse())):h===Th&&(u.docking="target",Bh(t)&&(u.docking="source",u.newWaypoints=a.reverse())),o.reconnect(r,l,c,p,u))}),this)}function Bh(e){var t=e.hover,n=e.source,i=e.target,r=e.type;return r===Rh?t&&i&&t===i&&n!==i:r===Th?t&&n&&t===n&&n!==i:void 0}Dh.$inject=["injector","eventBus","canvas","dragging","rules","modeling"],Dh.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 Lh="reconnectStart",Nh="reconnectEnd",jh="updateWaypoints",zh="connect-ok",Ih="connect-not-ok",Xh="connect-hover",Qh="djs-updating",Fh="djs-element-hidden",Vh=1100;function qh(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,s=r.waypoints,a=s.slice();t.waypoints=s,o&&a.splice(n,0,{x:e.x,y:e.y}),r.waypoints=a,Te(t.draggerGfx=Eh(i.getLayer("overlays"))).add("djs-dragging"),i.addMarker(r,Fh),i.addMarker(r,Qh)})),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,Xh),o===jh)return;n?(i.removeMarker(r,Ih),i.addMarker(r,zh)):!1===n&&(i.removeMarker(r,zh),i.addMarker(r,Ih))}})),n.on(["bendpoint.move.out","bendpoint.move.cleanup"],Vh,(function(e){var t=e.context,n=t.hover,r=t.target;n&&(i.removeMarker(n,Xh),i.removeMarker(n,r?zh:Ih))})),n.on("bendpoint.move.move",(function(t){var n=t.context,i=n.allowed,o=n.bendpointIndex,s=n.draggerGfx,a=n.hover,l=n.type,c=n.connection,h=c.source,u=c.target,p=c.waypoints.slice(),d={x:t.x,y:t.y},f=n.hints||{},m={};r&&(f.connectionStart&&(m.connectionStart=f.connectionStart),f.connectionEnd&&(m.connectionEnd=f.connectionEnd),l===Lh?Bh(n)?(m.connectionEnd=m.connectionEnd||d,m.source=u,m.target=a||h,p=p.reverse()):(m.connectionStart=m.connectionStart||d,m.source=a||h,m.target=u):l===Nh?Bh(n)?(m.connectionStart=m.connectionStart||d,m.source=a||u,m.target=h,p=p.reverse()):(m.connectionEnd=m.connectionEnd||d,m.source=h,m.target=a||u):(m.noCropping=!0,m.noLayout=!0,p[o]=d),l===jh&&(p=e.cropWaypoints(c,p)),m.waypoints=p,r.drawPreview(n,i,m)),di(s,t.x,t.y)}),this),n.on(["bendpoint.move.end","bendpoint.move.cancel"],Vh,(function(e){var t=e.context,n=t.connection,o=t.draggerGfx,s=t.hover,a=t.target,l=t.waypoints;n.waypoints=l,De(o),i.removeMarker(n,Qh),i.removeMarker(n,Fh),s&&(i.removeMarker(s,zh),i.removeMarker(s,a?zh:Ih)),r&&r.cleanUp(t)}))}qh.$inject=["bendpointMove","injector","eventBus","canvas"];var Hh="connect-hover",Wh="djs-updating";function Yh(e,t,n){return Gh(e,t,e[t]+n)}function Gh(e,t,n){return{x:"x"===t?n:e.x,y:"y"===t?n:e.y}}function Uh(e){return"x"===e?"y":"x"}function Zh(e,t,n){var i,r;return e.original?e.original:(i=Rn(t),Gh(e,r=Uh(n),i[r]))}function Kh(e,t,n,i,r,o){var s=e.get("connectionDocking",!1);function a(e,t){if(!s)return t;var n,i=e.waypoints;return e.waypoints=t,n=s.getCroppedWaypoints(e),e.waypoints=i,n}function l(e){r.update("connection",e.connection,e.connectionGfx)}function c(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 Gh(t,i,Math.min(Math.max(o+20,e[i]),r-20))}(n,i[e.segmentStartIndex+t],i[e.segmentEndIndex+t],Uh(e.axis));di(e.draggerGfx,r.x,r.y)}this.start=function(e,t,r){var o,s,a,l,c=n.getGraphics(t),h=r-1,u=r,p=t.waypoints,d=p[h],f=p[u],m=Oh(n,p,e);(s=Nt(d,f))&&(a="v"===s?"x":"y",0===h&&(d=Zh(d,t.source,a)),u===p.length-1&&(f=Zh(f,t.target,a)),o={connection:t,segmentStartIndex:h,segmentEndIndex:u,segmentStart:d,segmentEnd:f,axis:a,dragPosition:l=m?m.point:{x:(d.x+f.x)/2,y:(d.y+f.y)/2}},i.init(e,l,"connectionSegment.move",{cursor:"x"===a?"resize-ew":"resize-ns",data:{connection:t,connectionGfx:c,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=Sh(r,t.segmentStart,t.segmentEnd),Te(t.draggerGfx).add("djs-dragging"),n.addMarker(i,Wh)})),t.on("connectionSegment.move.move",(function(e){var t,n,i=e.context,r=i.connection,o=i.segmentStartIndex,s=i.segmentEndIndex,h=i.segmentStart,u=i.segmentEnd,p=i.axis,d=i.originalWaypoints.slice(),f=Yh(h,p,e["d"+p]),m=Yh(u,p,e["d"+p]),g=d.length,v=0;d[o]=f,d[s]=m,o<2&&(t=Tn(r.source,f),1===o?"intersect"===t&&(d.shift(),d[0]=f,v--):"intersect"!==t&&(d.unshift(h),v++)),s>g-3&&(n=Tn(r.target,m),s===g-2?"intersect"===n&&(d.pop(),d[d.length-1]=m):"intersect"!==n&&d.push(u)),i.newWaypoints=r.waypoints=a(r,d),c(i,v,e),i.newSegmentStartIndex=o+v,l(e)})),t.on("connectionSegment.move.hover",(function(e){e.context.hover=e.hover,n.addMarker(e.hover,Hh)})),t.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],(function(e){var t=e.context.hover;t&&n.removeMarker(t,Hh)})),t.on("connectionSegment.move.cleanup",(function(e){var t=e.context,i=t.connection;t.draggerGfx&&De(t.draggerGfx),n.removeMarker(i,Wh)})),t.on(["connectionSegment.move.cancel","connectionSegment.move.end"],(function(e){var t=e.context;t.connection.waypoints=t.originalWaypoints,l(e)})),t.on("connectionSegment.move.end",(function(e){var t=e.context,n=t.connection,i=t.newWaypoints,r=t.newSegmentStartIndex;i=i.map((function(e){return{original:e.original,x:Math.round(e.x),y:Math.round(e.y)}}));var s=function(e,t){var n=0,i=e.filter((function(i,r){return!Bt(e[r-1],e[r+1],i)||(n=r<=t?n-1:n,!1)}));return{waypoints:i,segmentOffset:n}}(i,r),l=a(n,s.waypoints),c=s.segmentOffset,h={segmentMove:{segmentStartIndex:t.segmentStartIndex,newSegmentStartIndex:r+c}};o.updateWaypoints(n,l,h)}))}Kh.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];var Jh=Math.abs,eu=Math.round;function tu(e){return{x:e.x,y:e.y}}function nu(e){return{x:e.x+e.width,y:e.y+e.height}}function iu(e,t){return!e||isNaN(e.x)||isNaN(e.y)?t:{x:eu(e.x+e.width/2),y:eu(e.y+e.height/2)}}function ru(e,t){var n=e.snapped;return!!n&&("string"==typeof t?n[t]:n.x&&n.y)}function ou(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 su(e){return e.children||[]}var au=Math.abs,lu=Math.round,cu=10;function hu(e){function t(e,t){if(c(e)){for(var n=e.length;n--;)if(au(e[n]-t)<=cu)return e[n]}else{var i=t%(e=+e);if(i<cu)return t-i;if(i>e-cu)return t-i+e}return t}function n(e,t){return e.waypoints?Ph(t,e):e.width?{x:lu(e.width/2+e.x),y:lu(e.height/2+e.y)}:void 0}e.on("connectionSegment.move.move",1500,(function(e){var i,r,o=function(e){var t=e.context,i=t.snapPoints,r=t.connection,o=r.waypoints,s=t.segmentStart,a=t.segmentStartIndex,l=t.segmentEnd,c=t.segmentEndIndex,h=t.axis;if(i)return i;var u=[o[a-1],s,l,o[c+1]];return a<2&&u.unshift(n(r.source,e)),c>o.length-3&&u.unshift(n(r.target,e)),t.snapPoints=i={horizontal:[],vertical:[]},b(u,(function(e){e&&(e=e.original||e,"y"===h&&i.horizontal.push(e.y),"x"===h&&i.vertical.push(e.x))})),i}(e),s=e.x,a=e.y;if(o){var l=s-(i=t(o.vertical,s)),c=a-(r=t(o.horizontal,a));I(e,{dx:e.dx-l,dy:e.dy-c,x:i,y:r}),(l||-1!==o.vertical.indexOf(s))&&ou(e,"x",i),(c||-1!==o.horizontal.indexOf(a))&&ou(e,"y",r)}})),e.on(["connect.hover","connect.move","connect.end"],1500,(function(e){var t=e.context.hover,i=t&&n(t,e);En(t)&&i&&i.x&&i.y&&(ou(e,"x",i.x),ou(e,"y",i.y))})),e.on(["bendpoint.move.move","bendpoint.move.end"],1500,(function(e){var i,r,o=e.context,s=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:[]},b(r,(function(e){e&&(e=e.original||e,t.horizontal.push(e.y),t.vertical.push(e.x))})),t}(o),a=o.hover,l=a&&n(a,e),c=e.x,h=e.y;if(s){var u=c-(i=t(l?s.vertical.concat([l.x]):s.vertical,c)),p=h-(r=t(l?s.horizontal.concat([l.y]):s.horizontal,h));I(e,{dx:e.dx-u,dy:e.dy-p,x:e.x-u,y:e.y-p}),(u||-1!==s.vertical.indexOf(c))&&ou(e,"x",i),(p||-1!==s.horizontal.indexOf(h))&&ou(e,"y",r)}}))}hu.$inject=["eventBus"];var uu={__depends__:[sh,uh],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",$h],bendpointMove:["type",Dh],bendpointMovePreview:["type",qh],connectionSegmentMove:["type",Kh],bendpointSnapping:["type",hu]};function pu(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,!l(t=n.canExecute=r(i,o))){if(!1!==t)return n.source=i,void(n.target=o);l(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},s=t.source,a=t.target;if(!i)return!1;var l=null,c={connectionStart:du(t)?o:r,connectionEnd:du(t)?r:o};h(i)&&(l=i),t.connection=n.connect(s,a,l,c)})),this.start=function(e,n,i,r){h(i)||(r=i,i=Rn(n)),t.init(e,"connect",{autoActivate:r,data:{shape:n,context:{start:n,connectionStart:i}}})}}function du(e){var t=e.hover,n=e.source,i=e.target;return t&&n&&t===n&&n!==i}pu.$inject=["eventBus","dragging","modeling","rules"];var fu=1100,mu=900,gu="connect-ok",vu="connect-not-ok";function yu(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,s=t.start,a=t.startPosition,l=t.target,c=t.connectionStart||a,h=t.connectionEnd||{x:e.x,y:e.y},u=c,p=h;du(t)&&(u=h,p=c),i.drawPreview(t,n,{source:o||s,target:l||r,connectionStart:u,connectionEnd:p})})),t.on("connect.hover",mu,(function(e){var t=e.context,i=e.hover,r=t.canExecute;null!==r&&n.addMarker(i,r?gu:vu)})),t.on(["connect.out","connect.cleanup"],fu,(function(e){var t=e.hover;t&&(n.removeMarker(t,gu),n.removeMarker(t,vu))})),i&&t.on("connect.cleanup",(function(e){i.cleanUp(e.context)}))}yu.$inject=["injector","eventBus","canvas"];var bu={__depends__:[Es,uh,sh],__init__:["connectPreview"],connect:["type",pu],connectPreview:["type",yu]};function xu(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)}xu.$inject=["injector","canvas","graphicsFactory","elementFactory"],xu.prototype.drawPreview=function(e,t,n){n=n||{};var i,r=e.connectionPreviewGfx,o=e.getConnection,s=n.source,a=n.target,l=n.waypoints,c=n.connectionStart,h=n.connectionEnd,u=n.noLayout,p=n.noCropping,d=n.noNoop,f=this;r||(r=e.connectionPreviewGfx=this.createConnectionPreviewGfx()),Be(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 f.getConnection(e,t,n)}))),t&&(i=o(t,s,a)),i?(i.waypoints=l||[],this._layouter&&!u&&(i.waypoints=this._layouter.layoutConnection(i,{source:s,target:a,connectionStart:c,connectionEnd:h,waypoints:n.waypoints||i.waypoints})),i.waypoints&&i.waypoints.length||(i.waypoints=[s?Rn(s):c,a?Rn(a):h]),this._connectionDocking&&(s||a)&&!p&&(i.waypoints=this._connectionDocking.getCroppedWaypoints(i,s,a)),this._graphicsFactory.drawConnection(r,i)):!d&&this.drawNoopPreview(r,n)},xu.prototype.drawNoopPreview=function(e,t){var n=t.source,i=t.target,r=t.connectionStart||Rn(n),o=t.connectionEnd||Rn(i),s=this.cropWaypoints(r,o,n,i);Se(e,this.createNoopConnection(s[0],s[1]))},xu.prototype.cropWaypoints=function(e,t,n,i){var r=this._graphicsFactory,o=n&&r.getShapePath(n),s=i&&r.getShapePath(i),a=r.getConnectionPath({waypoints:[e,t]});return[e=n&&Mn(o,a,!0)||e,t=i&&Mn(s,a,!1)||t]},xu.prototype.cleanUp=function(e){e&&e.connectionPreviewGfx&&De(e.connectionPreviewGfx)},xu.prototype.getConnection=function(e){var t=function(e){return h(e)?e:{}}(e);return this._elementFactory.createConnection(t)},xu.prototype.createConnectionPreviewGfx=function(){var e=Ie("g");return Ae(e,{pointerEvents:"none"}),Te(e).add("djs-connection-preview"),Se(this._canvas.getActiveLayer(),e),e},xu.prototype.createNoopConnection=function(e,t){return vt([e,t],{stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"})};var wu={__init__:["connectionPreview"],connectionPreview:["type",xu]},_u=Math.min,Ou=Math.max;function Eu(e){e.preventDefault()}function ku(e){e.stopPropagation()}function Su(e){this.container=e.container,this.parent=we('<div class="djs-direct-editing-parent"><div class="djs-direct-editing-content" contenteditable="true"></div></div>'),this.content=_e("[contenteditable]",this.parent),this.keyHandler=e.keyHandler||function(){},this.resizeHandler=e.resizeHandler||function(){},this.autoResize=z(this.autoResize,this),this.handlePaste=z(this.handlePaste,this)}function Cu(e,t){this._eventBus=e,this._providers=[],this._textbox=new Su({container:t.getContainer(),keyHandler:z(this._handleKey,this),resizeHandler:z(this._handleResize,this)})}Su.prototype.create=function(e,t,n,i){var r=this.parent,o=this.content,s=this.container;i=this.options=i||{};var a=F(t=this.style=t||{},["width","height","maxWidth","maxHeight","minWidth","minHeight","left","top","backgroundColor","position","overflow","border","wordWrap","textAlign","outline","transform"]);I(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"},a);var l=F(t,["fontFamily","fontSize","fontWeight","lineHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);return I(o.style,{boxSizing:"border-box",width:"100%",outline:"none",wordWrap:"break-word"},l),i.centerVertically&&I(o.style,{position:"absolute",top:"50%",transform:"translate(0, -50%)"},l),o.innerText=n,fe.bind(o,"keydown",this.keyHandler),fe.bind(o,"mousedown",ku),fe.bind(o,"paste",this.handlePaste),i.autoResize&&fe.bind(o,"input",this.autoResize),i.resizable&&this.resizable(t),s.appendChild(r),this.setSelection(o.lastChild,o.lastChild&&o.lastChild.length),r},Su.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)}},Su.prototype.insertText=function(e){e=function(e){return e.replace(/\r\n|\r|\n/g,"\n")}(e),document.execCommand("insertText",!1,e)||this._insertTextIE(e)},Su.prototype._insertTextIE=function(e){var t,n,i,r=this.getSelection(),o=r.startContainer,s=r.endContainer,a=r.startOffset,l=r.endOffset,c=r.commonAncestorContainer,h=(t=c.childNodes,[].slice.call(t));if(function(e){return e.nodeType===Node.TEXT_NODE}(c)){var u=o.textContent;o.textContent=u.substring(0,a)+e+u.substring(l),n=o,i=a+e.length}else if(o===this.content&&s===this.content){var p=document.createTextNode(e);this.content.insertBefore(p,h[a]),n=p,i=p.textContent.length}else{var d=h.indexOf(o),f=h.indexOf(s);h.forEach((function(t,n){n===d?t.textContent=o.textContent.substring(0,a)+e+s.textContent.substring(l):n>d&&n<=f&&Ee(t)})),n=o,i=a+e.length}n&&void 0!==i&&setTimeout((function(){self.setSelection(n,i)}))},Su.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})}},Su.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,s=parseInt(this.style.maxHeight)||1/0;if(!n){var a,l,c,h;n=this.resizeHandle=we('<div class="djs-direct-editing-resize-handle"></div>');var u=function(n){Eu(n),ku(n);var u=_u(Ou(c+n.clientX-a,i),o),p=_u(Ou(h+n.clientY-l,r),s);t.style.width=u+"px",t.style.height=p+"px",e.resizeHandler({width:c,height:h,dx:n.clientX-a,dy:n.clientY-l})},p=function(e){Eu(e),ku(e),fe.unbind(document,"mousemove",u,!1),fe.unbind(document,"mouseup",p,!1)};fe.bind(n,"mousedown",(function(e){Eu(e),ku(e),a=e.clientX,l=e.clientY;var n=t.getBoundingClientRect();c=n.width,h=n.height,fe.bind(document,"mousemove",u),fe.bind(document,"mouseup",p)}))}I(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)},Su.prototype.destroy=function(){var e=this.parent,t=this.content,n=this.resizeHandle;t.innerText="",e.removeAttribute("style"),t.removeAttribute("style"),fe.unbind(t,"keydown",this.keyHandler),fe.unbind(t,"mousedown",ku),fe.unbind(t,"input",this.autoResize),fe.unbind(t,"paste",this.handlePaste),n&&(n.removeAttribute("style"),Ee(n)),Ee(e)},Su.prototype.getValue=function(){return this.content.innerText.trim()},Su.prototype.getSelection=function(){return window.getSelection().getRangeAt(0)},Su.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)},Cu.$inject=["eventBus","canvas"],Cu.prototype.registerProvider=function(e){this._providers.push(e)},Cu.prototype.isActive=function(e){return!(!this._active||e&&this._active.element!==e)},Cu.prototype.cancel=function(){this._active&&(this._fire("cancel"),this.close())},Cu.prototype._fire=function(e,t){this._eventBus.fire("directEditing."+e,t||{active:this._active})},Cu.prototype.close=function(){this._textbox.destroy(),this._fire("deactivate"),this._active=null,this.resizable=void 0},Cu.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()}},Cu.prototype.getValue=function(){return this._textbox.getValue()},Cu.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())},Cu.prototype._handleResize=function(e){this._fire("resize",e)},Cu.prototype.activate=function(e){var t;this.isActive()&&this.cancel();var n=g(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 Pu={__depends__:[ds],__init__:["directEditing"],directEditing:["type",Cu]},$u=["marker-start","marker-mid","marker-end"],Au=["circle","ellipse","line","path","polygon","polyline","path","rect"];function Ru(e,t,n,i){this._elementRegistry=e,this._canvas=n,this._styles=i,this._clonedMarkers={};var r=this;t.on("drag.cleanup",(function(){b(r._clonedMarkers,(function(e){De(e)})),r._clonedMarkers={}}))}Ru.$inject=["elementRegistry","eventBus","canvas","styles"],Ru.prototype.getGfx=function(e){return this._elementRegistry.getGraphics(e)},Ru.prototype.addDragger=function(e,t,n){var i=Le(n=n||this.getGfx(e)),r=n.getBoundingClientRect();return this._cloneMarkers(ui(i)),Ae(i,this._styles.cls("djs-dragger",[],{x:r.top,y:r.left})),Se(t,i),i},Ru.prototype.addFrame=function(e,t){var n=Ie("rect",{class:"djs-resize-overlay",width:e.width,height:e.height,x:e.x,y:e.y});return Se(t,n),n},Ru.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!==Au.indexOf(e.nodeName)})(e)&&$u.forEach((function(n){if(Ae(e,n)){var i=function(e,t,n){var i=(r=Ae(e,t),r.match(/url\(['"]?#([^'"]*)['"]?\)/)[1]);var r;return _e("marker#"+i,n||document)}(e,n,t._canvas.getContainer());t._cloneMarker(e,i,n)}}))},Ru.prototype._cloneMarker=function(e,t,n){var i=t.id,r=this._clonedMarkers[i];if(!r){var o=i+"-clone";(r=Le(t)).id=o,Te(r).add("djs-dragger").add("djs-dragger-marker"),this._clonedMarkers[i]=r;var s=_e("defs",this._canvas._svg);s||(s=Ie("defs"),Se(this._canvas._svg,s)),Se(s,r)}var a=function(e){return"url(#"+e+")"}(this._clonedMarkers[i].id);Ae(e,n,a)};var Tu={__init__:["previewSupport"],previewSupport:["type",Ru]},Mu="drop-ok",Du="drop-not-ok",Bu="attach-ok",Lu="new-parent",Nu="create",ju=2e3;function zu(e,t,n,i,r){function o(t,n){[Bu,Mu,Du,Lu].forEach((function(i){i===n?e.addMarker(t,i):e.removeMarker(t,i)}))}function s(){var e=t.context();e&&e.prefix===Nu&&t.cancel()}n.on(["create.move","create.hover"],(function(e){var t=e.context,n=t.elements,i=e.hover,s=t.source,a=t.hints||{};if(!i)return t.canExecute=!1,void(t.target=null);Iu(e);var l={x:e.x,y:e.y},c=t.canExecute=i&&function(e,t,n,i,o){if(!t)return!1;var s=g(e=y(e,(function(t){var n=t.labelTarget;return!(t.parent||kn(t)&&-1!==e.indexOf(n))})),(function(e){return!En(e)})),a=!1,l=!1,c=!1;Xu(e)&&(a=r.allowed("shape.attach",{position:n,shape:s,target:t})),a||(c=Xu(e)?r.allowed("shape.create",{position:n,shape:s,source:i,target:t}):r.allowed("elements.create",{elements:e,position:n,target:t}));var h=o.connectionTarget;return c||a?(s&&i&&(l=r.allowed("connection.create",{source:h===i?s:i,target:h===i?i:s,hints:{targetParent:t,targetAttach:a}})),{attach:a,connect:l}):(null===c||null===a)&&null}(n,i,l,s,a);i&&null!==c&&(t.target=i,c&&c.attach?o(i,Bu):o(i,c?Lu:Du))})),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,s=t.target,a=t.canExecute,l=a&&a.attach,c=a&&a.connect,h=t.hints||{};if(!1===a||!s)return!1;Iu(e);var u={x:e.x,y:e.y};r=c?i.appendShape(n,r,u,s,{attach:l,connection:!0===c?{}:c,connectionTarget:h.connectionTarget}):g(o=i.createElements(o,u,s,I({},h,{attach:l})),(function(e){return!En(e)})),I(t,{elements:o,shape:r}),I(e,{elements:o,shape:r})})),n.on("create.init",(function(){n.on("elements.changed",s),n.once(["create.cancel","create.end"],ju,(function(){n.off("elements.changed",s)}))})),this.start=function(e,n,i){c(n)||(n=[n]);var r=g(n,(function(e){return!En(e)}));if(r){i=I({elements:n,hints:{},shape:r},i||{}),b(n,(function(e){u(e.x)||(e.x=0),u(e.y)||(e.y=0)}));var o=Et(y(n,(function(e){return!e.hidden})));b(n,(function(e){En(e)&&(e.waypoints=E(e.waypoints,(function(e){return{x:e.x-o.x-o.width/2,y:e.y-o.y-o.height/2}}))),I(e,{x:e.x-o.x-o.width/2,y:e.y-o.y-o.height/2})})),t.init(e,Nu,{cursor:"grabbing",autoActivate:!0,data:{shape:r,elements:n,context:i}})}}}function Iu(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 Xu(e){return e&&1===e.length&&!En(e[0])}zu.$inject=["canvas","dragging","eventBus","modeling","rules"];var Qu=750;function Fu(e,t,n,i,r){t.on("create.move",Qu,(function(t){var o=t.hover,s=t.context,a=s.elements,l=s.dragGroup;l||(l=s.dragGroup=function(e){var t=Ie("g");Ae(t,r.cls("djs-drag-group",["no-events"]));var o=Ie("g");return e.forEach((function(e){var r;e.hidden||(e.waypoints?(r=n._createContainer("connection",o),n.drawConnection(ui(r),e)):(r=n._createContainer("shape",o),n.drawShape(ui(r),e),di(r,e.x,e.y)),i.addDragger(e,t,r))})),t}(a)),o?(l.parentNode||Se(e.getActiveLayer(),l),di(l,t.x,t.y)):De(l)})),t.on("create.cleanup",(function(e){var t=e.context.dragGroup;t&&De(t)}))}Fu.$inject=["canvas","eventBus","graphicsFactory","previewSupport","styles"];var Vu={__depends__:[sh,Tu,uh,Es],__init__:["create","createPreview"],create:["type",zu],createPreview:["type",Fu]};function qu(){}qu.prototype.get=function(){return this._data},qu.prototype.set=function(e){this._data=e},qu.prototype.clear=function(){var e=this._data;return delete this._data,e},qu.prototype.isEmpty=function(){return!this._data};var Hu={clipboard:["type",qu]};function Wu(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)}))}Wu.$inject=["eventBus"],Wu.prototype.getLastMoveEvent=function(){return this._lastMoveEvent||function(e,t){var n=document.createEvent("MouseEvent"),i=e,r=t,o=e,s=t;n.initMouseEvent&&n.initMouseEvent("mousemove",!0,!0,window,0,i,r,o,s,!1,!1,!1,!1,0,null);return n}(0,0)};var Yu={__init__:["mouse"],mouse:["type",Wu]};function Gu(e,t,n,i,r,o,s,a){this._canvas=e,this._create=t,this._clipboard=n,this._elementFactory=i,this._eventBus=r,this._modeling=o,this._mouse=s,this._rules=a,r.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element,i=e.elements;t.priority=1,t.id=n.id;var r=g(i,(function(e){return e===n.parent}));r&&(t.parent=n.parent.id),function(e){return!!e.host}(n)&&(t.priority=2,t.host=n.host.id),En(n)&&(t.priority=3,t.source=n.source.id,t.target=n.target.id,t.waypoints=function(e){return E(e.waypoints,(function(e){return(e=Uu(e)).original&&(e.original=Uu(e.original)),e}))}(n)),kn(n)&&(t.priority=4,t.labelTarget=n.labelTarget.id),b(["x","y","width","height"],(function(e){u(n[e])&&(t[e]=n[e])})),t.hidden=n.hidden,t.collapsed=n.collapsed})),r.on("copyPaste.pasteElements",(function(e){I(e.hints,{createElementsBehavior:!1})}))}function Uu(e){return I({},e)}function Zu(e,t){var n=t.indexOf(e);return-1===n?t:t.splice(n,1)}Gu.$inject=["canvas","create","clipboard","elementFactory","eventBus","modeling","mouse","rules"],Gu.prototype.copy=function(e){var t,n;return c(e)||(e=e?[e]:[]),n=!1===(t=this._eventBus.fire("copyPaste.canCopyElements",{elements:e}))?{}:this.createTree(c(t)?t:e),this._clipboard.set(n),this._eventBus.fire("copyPaste.elementsCopied",{elements:e,tree:n}),n},Gu.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||{}})}},Gu.prototype._paste=function(e,t,n,i){b(e,(function(e){u(e.x)||(e.x=0),u(e.y)||(e.y=0)}));var r=Et(e);return b(e,(function(e){En(e)&&(e.waypoints=E(e.waypoints,(function(e){return{x:e.x-r.x-r.width/2,y:e.y-r.y-r.height/2}}))),I(e,{x:e.x-r.x-r.width/2,y:e.y-r.y-r.height/2})})),this._modeling.createElements(e,n,t,I({},i))},Gu.prototype._createElements=function(e){var t=this,n=this._eventBus,i={},r=[];return b(e,(function(e,o){b(e=R(e,"priority"),(function(e){var o,s=I({},V(e,["priority"]));return i[e.parent]?s.parent=i[e.parent]:delete s.parent,n.fire("copyPaste.pasteElement",{cache:i,descriptor:s}),En(s)?(s.source=i[e.source],s.target=i[e.target],o=i[e.id]=t.createConnection(s),void r.push(o)):kn(s)?(s.labelTarget=i[s.labelTarget],o=i[e.id]=t.createLabel(s),void r.push(o)):(s.host&&(s.host=i[s.host]),o=i[e.id]=t.createShape(s),void r.push(o))}))})),r},Gu.prototype.createConnection=function(e){return this._elementFactory.createConnection(V(e,["id"]))},Gu.prototype.createLabel=function(e){return this._elementFactory.createLabel(V(e,["id"]))},Gu.prototype.createShape=function(e){return this._elementFactory.createShape(V(e,["id"]))},Gu.prototype.hasRelations=function(e,t){var n,i;return!(En(e)&&(n=g(t,T({id:e.source.id})),i=g(t,T({id:e.target.id})),!n||!i))&&!(kn(e)&&!g(t,T({id:e.labelTarget.id})))},Gu.prototype.createTree=function(e){var t=this._rules,n=this,i={},r=[];function o(e,t){var n=g(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),r.push({element:n.element,depth:t})):r.push({element:e,depth:t})}return _t(bt(e),(function(e,t,i){if(!kn(e)){b(e.labels,(function(e){o(e,i)})),b([e.attachers,e.incoming,e.outgoing],(function(e){e&&e.length&&b(e,(function(e){b(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=E(r,(function(e){return e.element})),r=E(r,(function(t){return t.descriptor={},n._eventBus.fire("copyPaste.copyElement",{descriptor:t.descriptor,element:t.element,elements:e}),t})),r=R(r,(function(e){return e.descriptor.priority})),e=E(r,(function(e){return e.element})),b(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)?Zu(r.element,e):(i[o]||(i[o]=[]),i[o].push(r.descriptor)):Zu(r.element,e)})),i};var Ku={__depends__:[Hu,Vu,Yu,uh],__init__:["copyPaste"],copyPaste:["type",Gu]};function Ju(e,t,n){c(n)||(n=[n]),b(n,(function(n){s(e[n])||(t[n]=e[n])}))}var ep=750;function tp(e,t,n){function i(t,i){var r=e.create(t.$type);return n.copyElement(t,r,null,i)}t.on("copyPaste.copyElement",ep,(function(e){var t=e.descriptor,n=e.element,r=qr(n);if(kn(n))return t;var o=t.businessObject=i(r,!0),s=t.di=i(Hr(n),!0);s.bpmnElement=o,Ju(o,t,"name"),Ju(s,t,"isExpanded"),r.default&&(t.default=r.default.id)}));var r="-bpmn-js-refs";t.on("copyPaste.pasteElement",(function(e){var t=e.cache,n=e.descriptor,r=n.businessObject,o=n.di;if(kn(n))return n.businessObject=qr(t[n.labelTarget]),void(n.di=Hr(t[n.labelTarget]));r=n.businessObject=i(r),(o=n.di=i(o)).bpmnElement=r,Ju(n,r,["isExpanded","name"]),n.type=r.$type})),t.on("copyPaste.copyElement",ep,(function(e){var t=e.descriptor,n=e.element;if(Fr(n,"bpmn:Participant")){var r=qr(n);r.processRef&&(t.processRef=i(r.processRef,!0))}})),t.on("copyPaste.pasteElement",(function(e){var t=e.descriptor,n=t.processRef;n&&(t.processRef=i(n))})),t.on("copyPaste.pasteElement",ep,(function(e){var t=e.cache;!function(e,t){e[r]=t}(t,function(e,t,n){var i=qr(e);return e.default&&(n[e.default]={element:i,property:"default"}),e.host&&(qr(e).attachedToRef=qr(t[e.host])),V(n,w(n,(function(t,n,r){var o=n.element,s=n.property;return r===e.id&&(o.set(s,i),t.push(e.id)),t}),[]))}(e.descriptor,t,function(e){return e[r]=e[r]||{}}(t)))}))}tp.$inject=["bpmnFactory","eventBus","moddleCopy"];var np=["artifacts","dataInputAssociations","dataOutputAssociations","default","flowElements","lanes","incoming","outgoing","categoryValue"];function ip(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 R(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===np.indexOf(i))&&(!(i&&n&&!g(n.properties,T({name:i})))&&void 0)})),e.on("moddleCopy.canSetCopiedProperty",(function(e){var t,n,i=e.property;if(n="bpmn:ExtensionElements",(t=i)&&p(t.$instanceOf)&&t.$instanceOf(n)&&(!i.values||!i.values.length))return!1}))}function rp(e,t){return w(e.properties,(function(e,n){return t&&n.default?e:e.concat(n.name)}),[])}ip.$inject=["eventBus","bpmnFactory","moddle"],ip.prototype.copyElement=function(e,t,n,i=!1){var r=this;n&&!c(n)&&(n=[n]),n=n||rp(e.$descriptor);var o=this._eventBus.fire("moddleCopy.canCopyProperties",{propertyNames:n,sourceElement:e,targetElement:t,clone:i});return!1===o||(c(o)&&(n=o),b(n,(function(n){var o;m(e,n)&&(o=e.get(n));var s=r.copyProperty(o,t,n,i);a(s)&&(!1!==r._eventBus.fire("moddleCopy.canSetCopiedProperty",{parent:t,property:s,propertyName:n})&&t.set(n,s))}))),t},ip.prototype.copyProperty=function(e,t,n,i=!1){var r=this,o=this._eventBus.fire("moddleCopy.canCopyProperty",{parent:t,property:e,propertyName:n,clone:i});if(!1!==o){if(o)return h(o)&&o.$type&&!o.$parent&&(o.$parent=t),o;var s=this._moddle.getPropertyDescriptor(t,n);if(!s.isReference){if(s.isId)return e&&this._copyId(e,t,i);if(c(e))return w(e,(function(e,s){return(o=r.copyProperty(s,t,n,i))?e.concat(o):e}),[]);if(h(e)&&e.$type){if(this._moddle.getElementDescriptor(e).isGeneric)return;return(o=r._bpmnFactory.create(e.$type)).$parent=t,o=r.copyElement(e,o,null,i)}return e}}},ip.prototype._copyId=function(e,t,n=!1){return n?e:this._moddle.ids.assigned(e)?void 0:(this._moddle.ids.claim(e,t),e)};var op={__depends__:[Ku],__init__:["bpmnCopyPaste","moddleCopy"],bpmnCopyPaste:["type",tp],moddleCopy:["type",ip]},sp=Math.round;function ap(e,t){this._modeling=e,this._eventBus=t}function lp(e,t){t.on("replace.end",500,(function(t){const{newElement:n,hints:i={}}=t;!1!==i.select&&e.select(n)}))}ap.$inject=["modeling","eventBus"],ap.prototype.replaceElement=function(e,t,n){if(e.waypoints)return null;var i=this._modeling,r=this._eventBus;r.fire("replace.start",{element:e,attrs:t,hints:n});var o=t.width||e.width,s=t.height||e.height,a=t.x||e.x,l=t.y||e.y,c=sp(a+o/2),h=sp(l+s/2),u=i.replaceShape(e,I({},t,{x:c,y:h,width:o,height:s}),n);return r.fire("replace.end",{element:e,newElement:u,hints:n}),u},lp.$inject=["selection","eventBus"];var cp={__init__:["replace","replaceSelectionBehavior"],replaceSelectionBehavior:["type",lp],replace:["type",ap]};var hp=["cancelActivity","instantiate","eventGatewayType","triggeredByEvent","isInterrupting"];function up(e,t,n,i,r,o){this.replaceElement=function(a,l,h){h=h||{};var u=l.type,p=a.businessObject;if(pp(p)&&"bpmn:SubProcess"===u&&function(e,t){var n=e&&m(e,"collapsed")?e.collapsed:!co(e);return n!==(t&&(m(t,"collapsed")||m(t,"isExpanded"))?m(t,"collapsed")?t.collapsed:!t.isExpanded:n)}(a,l))return i.toggleCollapse(a),a;var d=e.create(u),f={type:u,businessObject:d,di:{}};!function(e,t,n){c(n)||(n=[n]),b(n,(function(n){s(e[n])||(t[n]=e[n])}))}(a.di,f.di,["fill","stroke","background-color","border-color","color"]);var g=function(e,t){return e.filter((function(e){return t.includes(e)}))}(rp(p.$descriptor),rp(d.$descriptor,!0));I(d,F(l,hp));var v=y(g,(function(e){return"eventDefinitions"===e?dp(a,l.eventDefinitionType):"loopCharacteristics"===e?!uo(d):!m(d,e)&&(("processRef"!==e||!1!==l.isExpanded)&&"triggeredByEvent"!==e)}));if(d=n.copyElement(p,d,v),l.eventDefinitionType&&(dp(d,l.eventDefinitionType)||(f.eventDefinitionType=l.eventDefinitionType,f.eventDefinitionAttrs=l.eventDefinitionAttrs)),Fr(p,"bpmn:Activity")){if(pp(p))f.isExpanded=co(a);else if(l&&m(l,"isExpanded")){f.isExpanded=l.isExpanded;var x=t.getDefaultSize(d,{isExpanded:f.isExpanded});f.width=x.width,f.height=x.height,f.x=a.x-(f.width-a.width)/2,f.y=a.y-(f.height-a.height)/2}co(a)&&!Fr(p,"bpmn:Task")&&f.isExpanded&&(f.width=a.width,f.height=a.height)}return pp(p)&&!pp(d)&&(h.moveChildren=!1),Fr(p,"bpmn:Participant")&&(!0===l.isExpanded?d.processRef=e.create("bpmn:Process"):h.moveChildren=!1,f.width=a.width,f.height=t.getDefaultSize(f).height),o.allowed("shape.resize",{shape:d})||(f.height=t.getDefaultSize(f).height,f.width=t.getDefaultSize(f).width),d.name=p.name,Vr(p,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&Vr(d,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&(d.default=p.default),l.host&&!Fr(p,"bpmn:BoundaryEvent")&&Fr(d,"bpmn:BoundaryEvent")&&(f.host=l.host),"bpmn:DataStoreReference"!==f.type&&"bpmn:DataObjectReference"!==f.type||(f.x=a.x+(a.width-f.width)/2),r.replaceElement(a,f,h)}}function pp(e){return Fr(e,"bpmn:SubProcess")}function dp(e,t){var n=qr(e);return t&&n.get("eventDefinitions").some((function(e){return Fr(e,t)}))}up.$inject=["bpmnFactory","elementFactory","moddleCopy","modeling","replace","rules"];var fp={__depends__:[op,cp,Es],bpmnReplace:["type",up]};function mp(e){return function(t){var n=t.target,i=qr(e),r=i.eventDefinitions&&i.eventDefinitions[0],o=i.$type===n.type,s=(r&&r.$type)===n.eventDefinitionType,a=!!n.triggeredByEvent==!!i.triggeredByEvent,l=void 0===n.isExpanded||n.isExpanded===co(e);return!(o&&s&&a&&l)}}var gp=[{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"}}],vp=[{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"}}],yp=[{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"}}],bp=[{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"}}],xp=[{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"}}],wp=[{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}}],_p=[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{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}}],Op=_p,Ep=[{label:"Task",actionName:"replace-with-task",className:"bpmn-icon-task",target:{type:"bpmn:Task"}},{label:"User Task",actionName:"replace-with-user-task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},{label:"Service Task",actionName:"replace-with-service-task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},{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:"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:"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}}],kp=[{label:"Data Store Reference",actionName:"replace-with-data-store-reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}}],Sp=[{label:"Data Object Reference",actionName:"replace-with-data-object-reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}}],Cp=[{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}}],Pp=[{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}}],$p=[{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"}],Ap=[{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 Rp(e,t,n,i,r,o,s){this._bpmnFactory=e,this._popupMenu=t,this._modeling=n,this._moddle=i,this._bpmnReplace=r,this._rules=o,this._translate=s,this._register()}Rp.$inject=["bpmnFactory","popupMenu","modeling","moddle","bpmnReplace","rules","translate"],Rp.prototype._register=function(){this._popupMenu.registerProvider("bpmn-replace",this)},Rp.prototype.getPopupMenuEntries=function(e){var t=e.businessObject,n=this._rules,i=[];if(c(e)||!n.allowed("shape.replace",{element:e}))return{};var r=mp(e);return Fr(t,"bpmn:DataObjectReference")?this._createEntries(e,kp):Fr(t,"bpmn:DataStoreReference")&&!Fr(e.parent,"bpmn:Collaboration")?this._createEntries(e,Sp):Fr(t,"bpmn:StartEvent")&&!Fr(t.$parent,"bpmn:SubProcess")?(i=y(gp,r),this._createEntries(e,i)):Fr(t,"bpmn:Participant")?(i=y(Ap,(function(t){return co(e)!==t.target.isExpanded})),this._createEntries(e,i)):Fr(t,"bpmn:StartEvent")&&uo(t.$parent)?(i=y(Pp,(function(e){var n=!1!==e.target.isInterrupting,i=t.isInterrupting===n;return r(e)||!r(e)&&!i})),this._createEntries(e,i)):Fr(t,"bpmn:StartEvent")&&!uo(t.$parent)&&Fr(t.$parent,"bpmn:SubProcess")?(i=y(vp,r),this._createEntries(e,i)):Fr(t,"bpmn:EndEvent")?(i=y(bp,(function(e){return!("bpmn:CancelEventDefinition"==e.target.eventDefinitionType&&!Fr(t.$parent,"bpmn:Transaction"))&&r(e)})),this._createEntries(e,i)):Fr(t,"bpmn:BoundaryEvent")?(i=y(Cp,(function(e){var n=e.target;if("bpmn:CancelEventDefinition"==n.eventDefinitionType&&!Fr(t.attachedToRef,"bpmn:Transaction"))return!1;var i=!1!==n.cancelActivity,o=t.cancelActivity==i;return r(e)||!r(e)&&!o})),this._createEntries(e,i)):Fr(t,"bpmn:IntermediateCatchEvent")||Fr(t,"bpmn:IntermediateThrowEvent")?(i=y(yp,r),this._createEntries(e,i)):Fr(t,"bpmn:Gateway")?(i=y(xp,r),this._createEntries(e,i)):Fr(t,"bpmn:Transaction")?(i=y(_p,r),this._createEntries(e,i)):uo(t)&&co(e)?(i=y(Op,r),this._createEntries(e,i)):Fr(t,"bpmn:SubProcess")&&co(e)?(i=y(wp,r),this._createEntries(e,i)):Fr(t,"bpmn:AdHocSubProcess")&&!co(e)?(i=y(Ep,(function(e){var t=e.target,n="bpmn:SubProcess"===t.type,i=!0===t.isExpanded;return mp(t)&&(!n||i)})),this._createEntries(e,i)):Fr(t,"bpmn:SequenceFlow")?this._createSequenceFlowEntries(e,$p):Fr(t,"bpmn:FlowNode")?(i=y(Ep,r),Fr(t,"bpmn:SubProcess")&&!co(e)&&(i=y(i,(function(e){return"Sub Process (collapsed)"!==e.label}))),this._createEntries(e,i)):{}},Rp.prototype.getPopupMenuHeaderEntries=function(e){var t={};return Fr(e,"bpmn:Activity")&&!uo(e)&&(t={...t,...this._getLoopCharacteristicsHeaderEntries(e)}),Fr(e,"bpmn:DataObjectReference")&&(t={...t,...this._getCollectionHeaderEntries(e)}),Fr(e,"bpmn:Participant")&&(t={...t,...this._getParticipantMultiplicityHeaderEntries(e)}),!Fr(e,"bpmn:SubProcess")||Fr(e,"bpmn:Transaction")||uo(e)||(t={...t,...this._getAdHocHeaderEntries(e)}),t},Rp.prototype._createEntries=function(e,t){var n={},i=this;return b(t,(function(t){n[t.actionName]=i._createEntry(t,e)})),n},Rp.prototype._createSequenceFlowEntries=function(e,t){var n=qr(e),i={},r=this._modeling,o=this._moddle,s=this;return b(t,(function(t){switch(t.actionName){case"replace-with-default-flow":n.sourceRef.default!==n&&(Fr(n.sourceRef,"bpmn:ExclusiveGateway")||Fr(n.sourceRef,"bpmn:InclusiveGateway")||Fr(n.sourceRef,"bpmn:ComplexGateway")||Fr(n.sourceRef,"bpmn:Activity"))&&(i={...i,[t.actionName]:s._createEntry(t,e,(function(){r.updateProperties(e.source,{default:n})}))});break;case"replace-with-conditional-flow":!n.conditionExpression&&Fr(n.sourceRef,"bpmn:Activity")&&(i={...i,[t.actionName]:s._createEntry(t,e,(function(){var t=o.create("bpmn:FormalExpression",{body:""});r.updateProperties(e,{conditionExpression:t})}))});break;default:Fr(n.sourceRef,"bpmn:Activity")&&n.conditionExpression&&(i={...i,[t.actionName]:s._createEntry(t,e,(function(){r.updateProperties(e,{conditionExpression:void 0})}))}),(Fr(n.sourceRef,"bpmn:ExclusiveGateway")||Fr(n.sourceRef,"bpmn:InclusiveGateway")||Fr(n.sourceRef,"bpmn:ComplexGateway")||Fr(n.sourceRef,"bpmn:Activity"))&&n.sourceRef.default===n&&(i={...i,[t.actionName]:s._createEntry(t,e,(function(){r.updateProperties(e.source,{default:void 0})}))})}})),i},Rp.prototype._createEntry=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,action:n}},Rp.prototype._getLoopCharacteristicsHeaderEntries=function(e){var t=this,n=this._translate;function i(n,i){var r=qr(e).loopCharacteristics;i.active?r=void 0:(!s(i.options.isSequential)&&r&&Fr(r,i.options.loopCharacteristics)||(r=t._moddle.create(i.options.loopCharacteristics)),r.isSequential=i.options.isSequential),t._modeling.updateProperties(e,{loopCharacteristics:r})}var r,o,a,l=qr(e).loopCharacteristics;return l&&(r=l.isSequential,o=void 0===l.isSequential,a=void 0!==l.isSequential&&!l.isSequential),{"toggle-parallel-mi":{className:"bpmn-icon-parallel-mi-marker",title:n("Parallel Multi Instance"),active:a,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!1}},"toggle-sequential-mi":{className:"bpmn-icon-sequential-mi-marker",title:n("Sequential Multi Instance"),active:r,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!0}},"toggle-loop":{className:"bpmn-icon-loop-marker",title:n("Loop"),active:o,action:i,options:{loopCharacteristics:"bpmn:StandardLoopCharacteristics"}}}},Rp.prototype._getCollectionHeaderEntries=function(e){var t=this,n=this._translate,i=e.businessObject.dataObjectRef;if(!i)return{};var r=i.isCollection;return{"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})}}}},Rp.prototype._getParticipantMultiplicityHeaderEntries=function(e){var t=this,n=this._bpmnFactory,i=this._translate;var r=e.businessObject.participantMultiplicity;return{"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})}}}},Rp.prototype._getAdHocHeaderEntries=function(e){var t=this._translate,n=Fr(qr(e),"bpmn:AdHocSubProcess"),i=this._bpmnReplace.replaceElement;return{"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 Tp={__depends__:[_c,fp,Wc],__init__:["replaceMenuProvider"],replaceMenuProvider:["type",Rp]},Mp=Math.max,Dp=Math.min,Bp=20;function Lp(e,t){return{top:e.top-t.top,right:e.right-t.right,bottom:e.bottom-t.bottom,left:e.left-t.left}}function Np(e,t,n){var i=t[e],r=n.min&&n.min[e],o=n.max&&n.max[e];return u(r)&&(i=(/top|left/.test(e)?Dp:Mp)(i,r)),u(o)&&(i=(/top|left/.test(e)?Mp:Dp)(i,o)),i}function jp(e,t){return void 0!==e?e:Bp}function zp(e){return!e.waypoints&&"label"!==e.type}function Ip(e,t){var n;if((n=void 0===e.length?y(e.children,zp):e).length)return function(e,t){var n,i,r,o;return"object"==typeof t?(n=jp(t.left),i=jp(t.right),r=jp(t.top),o=jp(t.bottom)):n=i=r=o=jp(t),{x:e.x-n,y:e.y-r,width:e.width+n+i,height:e.height+r+o}}(Et(n),t)}var Xp=Math.abs;var Qp=["bpmn:Participant","bpmn:Process","bpmn:SubProcess"],Fp=30;function Vp(e,t){return t=t||[],e.children.filter((function(e){Fr(e,"bpmn:Lane")&&(Vp(e,t),t.push(e))})),t}function qp(e){return e.children.filter((function(e){return Fr(e,"bpmn:Lane")}))}function Hp(e){return Fc(e,Qp)||e}function Wp(e,t){var n=Hp(e),i=Vp(n,Fr(n,"bpmn:Process")?[]:[n]),r=Pn(e),o=Pn(t),s=function(e,t){return Lp(Pn(t),Pn(e))}(e,t),a=[];return i.forEach((function(t){if(t!==e){var n,i,l=0,c=s.right,h=0,u=s.left,p=Pn(t);s.top&&(Xp(p.bottom-r.top)<10&&(h=o.top-p.bottom),Xp(p.top-r.top)<5&&(l=o.top-p.top)),s.bottom&&(Xp(p.top-r.bottom)<10&&(l=o.bottom-p.top),Xp(p.bottom-r.bottom)<5&&(h=o.bottom-p.bottom)),(l||c||h||u)&&a.push({shape:t,newBounds:(n=t,i={top:l,right:c,bottom:h,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)})})}})),a}function Yp(e,t,n,i,r,o,s,a,l,c,h,u){e=e||{},i.registerProvider(this),this._contextPad=i,this._modeling=r,this._elementFactory=o,this._connect=s,this._create=a,this._popupMenu=l,this._canvas=c,this._rules=h,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(as(e)&&i.isOpen(t)){var n=i.getEntries(t);n.replace&&n.replace.action.click(e,t)}}))}function Gp(e,t,n){var i=e.$instanceOf(t),r=!1;return b(e.eventDefinitions||[],(function(e){e.$type===n&&(r=!0)})),i&&r}Yp.$inject=["config.contextPad","injector","eventBus","contextPad","modeling","elementFactory","connect","create","popupMenu","canvas","rules","translate"],Yp.prototype.getMultiElementContextPadEntries=function(e){var t=this._modeling,n={};return this._isDeleteAllowed(e)&&I(n,{delete:{group:"edit",className:"bpmn-icon-trash",title:this._translate("Remove"),action:{click:function(e,n){t.removeElements(n.slice())}}}}),n},Yp.prototype._isDeleteAllowed=function(e){var t=this._rules.allowed("elements.delete",{elements:e});return c(t)?_(t,(function(e){return n=e,-1!==t.indexOf(n);var n})):t},Yp.prototype.getContextPadEntries=function(e){var t=this._contextPad,n=this._modeling,i=this._elementFactory,r=this._connect,o=this._create,s=this._popupMenu,a=this._rules,l=this._autoPlace,h=this._translate,u={};if("label"===e.type)return u;var p=e.businessObject;function d(e,t){r.start(e,t)}function f(e,t,n,r){function s(t,n){var s=i.createShape(I({type:e},r));o.start(t,s,{source:n})}"string"!=typeof n&&(r=n,n=h("Append {type}",{type:e.replace(/^bpmn:/,"")}));var a=l?function(t,n){var o=i.createShape(I({type:e},r));l.append(n,o)}:s;return{group:"model",className:t,title:n,action:{dragstart:s,click:a}}}function m(e){return function(i,r){n.splitLane(r,e),t.open(r,!0)}}if(Vr(p,["bpmn:Lane","bpmn:Participant"])&&co(e)){var g=qp(e);I(u,{"lane-insert-above":{group:"lane-insert-above",className:"bpmn-icon-lane-insert-above",title:h("Add Lane above"),action:{click:function(e,t){n.addLane(t,"top")}}}}),g.length<2&&(e.height>=120&&I(u,{"lane-divide-two":{group:"lane-divide",className:"bpmn-icon-lane-divide-two",title:h("Divide into two Lanes"),action:{click:m(2)}}}),e.height>=180&&I(u,{"lane-divide-three":{group:"lane-divide",className:"bpmn-icon-lane-divide-three",title:h("Divide into three Lanes"),action:{click:m(3)}}})),I(u,{"lane-insert-below":{group:"lane-insert-below",className:"bpmn-icon-lane-insert-below",title:h("Add Lane below"),action:{click:function(e,t){n.addLane(t,"bottom")}}}})}Fr(p,"bpmn:FlowNode")&&(Fr(p,"bpmn:EventBasedGateway")?I(u,{"append.receive-task":f("bpmn:ReceiveTask","bpmn-icon-receive-task",h("Append ReceiveTask")),"append.message-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-message",h("Append MessageIntermediateCatchEvent"),{eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-timer",h("Append TimerIntermediateCatchEvent"),{eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condition-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-condition",h("Append ConditionIntermediateCatchEvent"),{eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":f("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-signal",h("Append SignalIntermediateCatchEvent"),{eventDefinitionType:"bpmn:SignalEventDefinition"})}):Gp(p,"bpmn:BoundaryEvent","bpmn:CompensateEventDefinition")?I(u,{"append.compensation-activity":f("bpmn:Task","bpmn-icon-task",h("Append compensation activity"),{isForCompensation:!0})}):Fr(p,"bpmn:EndEvent")||p.isForCompensation||Gp(p,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")||uo(p)||I(u,{"append.end-event":f("bpmn:EndEvent","bpmn-icon-end-event-none",h("Append EndEvent")),"append.gateway":f("bpmn:ExclusiveGateway","bpmn-icon-gateway-none",h("Append Gateway")),"append.append-task":f("bpmn:Task","bpmn-icon-task",h("Append Task")),"append.intermediate-event":f("bpmn:IntermediateThrowEvent","bpmn-icon-intermediate-event-none",h("Append Intermediate/Boundary Event"))})),s.isEmpty(e,"bpmn-replace")||I(u,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:h("Change type"),action:{click:function(e,n){var i=I(function(e){var n=t.getPad(e).html.getBoundingClientRect();return{x:n.left,y:n.bottom+5}}(n),{cursor:{x:e.x,y:e.y}});s.open(n,"bpmn-replace",i,{title:h("Change element"),width:300,search:!0})}}}}),Fr(p,"bpmn:SequenceFlow")&&I(u,{"append.text-annotation":f("bpmn:TextAnnotation","bpmn-icon-text-annotation",h("Append TextAnnotation"))}),Vr(p,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference"])&&I(u,{"append.text-annotation":f("bpmn:TextAnnotation","bpmn-icon-text-annotation",h("Append TextAnnotation")),connect:{group:"connect",className:"bpmn-icon-connection-multi",title:h("Connect using "+(p.isForCompensation?"":"Sequence/MessageFlow or ")+"Association"),action:{click:d,dragstart:d}}}),Fr(p,"bpmn:TextAnnotation")&&I(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:h("Connect using Association"),action:{click:d,dragstart:d}}}),Vr(p,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&I(u,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:h("Connect using DataInputAssociation"),action:{click:d,dragstart:d}}}),Fr(p,"bpmn:Group")&&I(u,{"append.text-annotation":f("bpmn:TextAnnotation","bpmn-icon-text-annotation",h("Append TextAnnotation"))});var v=a.allowed("elements.delete",{elements:[e]});return c(v)&&(v=v[0]===e),v&&I(u,{delete:{group:"edit",className:"bpmn-icon-trash",title:h("Remove"),action:{click:function(e,t){n.removeElements([t])}}}}),u};var Up={__depends__:[Pu,pl,Es,bu,Vu,Tp],__init__:["contextPadProvider"],contextPadProvider:["type",Yp]},Zp={horizontal:["x","width"],vertical:["y","height"]};function Kp(e,t){this._modeling=e,this._filters=[],this.registerFilter((function(e){var n=t.allowed("elements.distribute",{elements:e});return c(n)?n:n?e:[]}))}Kp.$inject=["modeling","rules"],Kp.prototype.registerFilter=function(e){if("function"!=typeof e)throw new Error("the filter has to be a function");this._filters.push(e)},Kp.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},Kp.prototype._filterElements=function(e){var t=this._filters,n=this._axis,i=this._dimension,r=[].concat(e);return t.length?(b(t,(function(e){r=e(r,n,i)})),r):e},Kp.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 b(R(e,i),(function(e,o){var s,a=n._findRange(e,i,r),l=t[t.length-1];l&&n._hasIntersection(l.range,a)?t[t.length-1].elements.push(e):(s={range:a,elements:[e]},t.push(s))})),t},Kp.prototype._setOrientation=function(e){var t=Zp[e];this._axis=t[0],this._dimension=t[1]},Kp.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)},Kp.prototype._findRange=function(e){var t=e[this._axis];return{min:t+5,max:t+e[this._dimension]-5}};var Jp={__init__:["distributeElements"],distributeElements:["type",Kp]};function ed(e){Pc.call(this,e)}ed.$inject=["eventBus"],e(ed,Pc),ed.prototype.init=function(){this.addRule("elements.distribute",(function(e){var t=e.elements;return!((t=bt(t=y(t,(function(e){var t=Vr(e,["bpmn:Association","bpmn:BoundaryEvent","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:Lane","bpmn:MessageFlow","bpmn:SequenceFlow","bpmn:TextAnnotation"]);return!(e.labelTarget||t)})))).length<3)&&t}))};var td={horizontal:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <polyline points="450 400 450 150 1350 150 1350 400" style="fill:none;stroke:currentColor;stroke-width:100;stroke-linejoin:round;"/>\n <rect x="150" y="450" width="600" height="1200" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="450" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',vertical:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <polyline points="400 1350 150 1350 150 450 400 450" style="fill:none;stroke:currentColor;stroke-width:100;stroke-linejoin:round;"/>\n <rect x="450" y="150" width="1200" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="450" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>'},nd=900;function id(e,t,n,i){this._distributeElements=t,this._translate=n,this._popupMenu=e,this._rules=i,e.registerProvider("align-elements",nd,this)}id.$inject=["popupMenu","distributeElements","translate","rules"],id.prototype.getPopupMenuEntries=function(e){var t={};return this._isAllowed(e)&&I(t,this._getEntries(e)),t},id.prototype._isAllowed=function(e){return this._rules.allowed("elements.distribute",{elements:e})},id.prototype._getEntries=function(e){var t=this._distributeElements,n=this._translate,i=this._popupMenu;return{"distribute-elements-horizontal":{group:"distribute",title:n("Distribute elements horizontally"),className:"bjs-align-elements-menu-entry",imageHtml:td.horizontal,action:function(n,r){t.trigger(e,"horizontal"),i.close()}},"distribute-elements-vertical":{group:"distribute",title:n("Distribute elements vertically"),imageHtml:td.vertical,action:function(n,r){t.trigger(e,"vertical"),i.close()}}}};var rd={__depends__:[_c,Jp],__init__:["bpmnDistributeElements","distributeElementsMenuProvider"],bpmnDistributeElements:["type",ed],distributeElementsMenuProvider:["type",id]},od="is not a registered action";function sd(e,t){this._actions={};var n=this;e.on("diagram.init",(function(){n._registerDefaultActions(t),e.fire("editorActions.init",{editorActions:n})}))}function ad(e,t){return new Error(e+" "+t)}sd.$inject=["eventBus","injector"],sd.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),s=e.get("canvas",!1),a=e.get("rules",!1),l=e.get("keyboardMove",!1),h=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();if(e.length)return o.copy(e)})),o&&this.register("paste",(function(){o.paste()})),r&&this.register("stepZoom",(function(e){r.stepZoom(e.value)})),s&&this.register("zoom",(function(e){s.zoom(e.value)})),n&&i&&a&&this.register("removeSelection",(function(){var e=i.get();if(e.length){var t,r=a.allowed("elements.delete",{elements:e});!1!==r&&(t=c(r)?r:e).length&&n.removeElements(t.slice())}})),l&&this.register("moveCanvas",(function(e){l.moveCanvas(e)})),h&&this.register("moveSelection",(function(e){h.moveSelection(e.direction,e.accelerated)}))},sd.prototype.trigger=function(e,t){if(!this._actions[e])throw ad(e,od);return this._actions[e](t)},sd.prototype.register=function(e,t){var n=this;if("string"==typeof e)return this._registerAction(e,t);b(e,(function(e,t){n._registerAction(t,e)}))},sd.prototype._registerAction=function(e,t){if(this.isRegistered(e))throw ad(e,"is already registered");this._actions[e]=t},sd.prototype.unregister=function(e){if(!this.isRegistered(e))throw ad(e,od);this._actions[e]=void 0},sd.prototype.getActions=function(){return Object.keys(this._actions)},sd.prototype.isRegistered=function(e){return!!this._actions[e]};var ld={__init__:["editorActions"],editorActions:["type",sd]};function cd(e){e.invoke(sd,this)}e(cd,sd),cd.$inject=["injector"],cd.prototype._registerDefaultActions=function(e){sd.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),s=e.get("handTool",!1),a=e.get("globalConnect",!1),l=e.get("distributeElements",!1),c=e.get("alignElements",!1),h=e.get("directEditing",!1),u=e.get("searchPad",!1),p=e.get("modeling",!1),d=e.get("contextPad",!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()})),s&&this._registerAction("handTool",(function(){s.toggle()})),a&&this._registerAction("globalConnectTool",(function(){a.toggle()})),i&&l&&this._registerAction("distributeElements",(function(e){var t=i.get(),n=e.type;t.length&&l.trigger(t,n)})),i&&c&&this._registerAction("alignElements",(function(e){var t=i.get(),n=[],r=e.type;t.length&&(n=y(t,(function(e){return!Fr(e,"bpmn:Lane")})),c.trigger(n,r))})),i&&p&&this._registerAction("setColor",(function(e){var t=i.get();t.length&&p.setColor(t,e)})),i&&h&&this._registerAction("directEditing",(function(){var e=i.get();e.length&&h.activate(e[0])})),u&&this._registerAction("find",(function(){u.toggle()})),t&&p&&this._registerAction("moveToOrigin",(function(){var e,i,r=t.getRootElement();e=Et(i=Fr(r,"bpmn:Collaboration")?n.filter((function(e){return Fr(e.parent,"bpmn:Collaboration")})):n.filter((function(e){return e!==r&&!Fr(e.parent,"bpmn:SubProcess")}))),p.moveElements(i,{x:-e.x,y:-e.y},r)})),i&&d&&this._registerAction("replaceElement",(function(e){d.triggerEntry("replace","click",e)}))};var hd={__depends__:[ld],editorActions:["type",cd]};function ud(e){e.on(["create.init","shape.move.init"],(function(e){var t=e.context;Vr(e.shape,["bpmn:Participant","bpmn:SubProcess","bpmn:TextAnnotation"])&&(t.gridSnappingContext||(t.gridSnappingContext={}),t.gridSnappingContext.snapLocation="top-left")}))}ud.$inject=["eventBus"];var pd=10;function dd(e,t,n){return n||(n="round"),Math[n](e/t)*t}var fd=1200,md=800;function gd(e,t,n){var i=!n||!1!==n.active;this._eventBus=t;var r=this;t.on("diagram.init",md,(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"],fd,(function(t){var n=t.originalEvent;if(!(!r.active||n&&ca(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,s=o.snapLocation,a=o.snapOffset;if(a&&u(a[t]))return a[t];a||(a=o.snapOffset={});u(a[t])||(a[t]=0);if(!r)return a[t];n.get(r.id)||(vd(t)?a[t]+=r[t]+r.width/2:a[t]+=r[t]+r.height/2);if(!s)return a[t];"x"===t?/left/.test(s)?a[t]-=r.width/2:/right/.test(s)&&(a[t]+=r.width/2):/top/.test(s)?a[t]-=r.height/2:/bottom/.test(s)&&(a[t]+=r.height/2);return a[t]}(t,n,e);o&&(i.offset=o);var s=function(e,t){var n=e.context,i=n.createConstraints,r=n.resizeConstraints||{},o=n.gridSnappingContext,s=o.snapConstraints;if(s&&s[t])return s[t];s||(s=o.snapConstraints={});s[t]||(s[t]={});var a=n.direction;i&&(vd(t)?(s.x.min=i.left,s.x.max=i.right):(s.y.min=i.top,s.y.max=i.bottom));var l=r.min,c=r.max;l&&(vd(t)?bd(a)?s.x.max=l.left:s.x.min=l.right:yd(a)?s.y.max=l.top:s.y.min=l.bottom);c&&(vd(t)?bd(a)?s.x.min=c.left:s.x.max=c.right:yd(a)?s.y.min=c.top:s.y.max=c.bottom);return s[t]}(t,n);s&&I(i,s),ru(t,n)||r.snapEvent(t,n,i)}))}}))}function vd(e){return"x"===e}function yd(e){return-1!==e.indexOf("n")}function bd(e){return-1!==e.indexOf("w")}function xd(e,t){Ds.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;d(i)?t.newBounds=n.snapComplex(o,i):t.newBounds=n.snapSimple(r,o)}}))}gd.prototype.snapEvent=function(e,t,n){ou(e,t,this.snapValue(e[t],n))},gd.prototype.getGridSpacing=function(){return pd},gd.prototype.snapValue=function(e,t){var n,i,r=0;return t&&t.offset&&(r=t.offset),e=dd(e+=r,pd),t&&t.min&&u(n=t.min)&&(n=dd(n+r,pd,"ceil"),e=Math.max(e,n)),t&&t.max&&u(i=t.max)&&(i=dd(i+r,pd,"floor"),e=Math.min(e,i)),e-=r},gd.prototype.isActive=function(){return this.active},gd.prototype.setActive=function(e){this.active=e,this._eventBus.fire("gridSnapping.toggle",{active:e})},gd.prototype.toggleActive=function(){this.setActive(!this.active)},gd.$inject=["elementRegistry","eventBus","config.gridSnapping"],xd.$inject=["eventBus","gridSnapping","modeling"],e(xd,Ds),xd.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},xd.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},xd.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),I(e,o),e},xd.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),I(e,o),e};var wd=2e3;function _d(e,t){e.on(["spaceTool.move","spaceTool.end"],wd,(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))}))}_d.$inject=["eventBus","gridSnapping"];var Od={__depends__:[{__init__:["gridSnappingResizeBehavior","gridSnappingSpaceToolBehavior"],gridSnappingResizeBehavior:["type",xd],gridSnappingSpaceToolBehavior:["type",_d]}],__init__:["gridSnapping"],gridSnapping:["type",gd]},Ed=2e3;function kd(e,t){e.on("autoPlace",Ed,(function(e){var n=e.source,i=Rn(n),r=e.shape,o=Vc(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],Fr(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}))}kd.$inject=["eventBus","gridSnapping"];var Sd=1750;function Cd(e,t,n){t.on(["create.start","shape.move.start"],Sd,(function(t){var i=t.context,r=i.shape,o=e.getRootElement();Fr(r,"bpmn:Participant")&&Fr(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})))}))}Cd.$inject=["canvas","eventBus","gridSnapping"];var Pd=3e3;function $d(e,t,n){Ds.call(this,e),this._gridSnapping=t;var i=this;this.postExecuted(["connection.create","connection.layout"],Pd,(function(e){var t=e.context,r=t.connection,o=t.hints||{},s=r.waypoints;o.connectionStart||o.connectionEnd||!1===o.createElementsBehavior||function(e){return e.length>3}(s)&&n.updateWaypoints(r,i.snapMiddleSegments(s))}))}function Ad(e,t,n){var i=Nt(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=I({},t,r),n=I({},n,r)),[t,n]}$d.$inject=["eventBus","gridSnapping","modeling"],e($d,Ds),$d.prototype.snapMiddleSegments=function(e){var t,n=this._gridSnapping;e=e.slice();for(var i=1;i<e.length-2;i++)t=Ad(n,e[i],e[i+1]),e[i]=t[0],e[i+1]=t[1];return e};var Rd={__depends__:[Od,{__init__:["gridSnappingAutoPlaceBehavior","gridSnappingParticipantBehavior","gridSnappingLayoutConnectionBehavior"],gridSnappingAutoPlaceBehavior:["type",kd],gridSnappingParticipantBehavior:["type",Cd],gridSnappingLayoutConnectionBehavior:["type",$d]}],__init__:["bpmnGridSnapping"],bpmnGridSnapping:["type",ud]};function Td(e,t){this._interactionEvents=t;var n=this;e.on(["interactionEvents.createHit","interactionEvents.updateHit"],(function(e){var t=e.element,i=e.gfx;return Fr(t,"bpmn:Lane")?n._createParticipantHit(t,i):Fr(t,"bpmn:Participant")?co(t)?n._createParticipantHit(t,i):n._createDefaultHit(t,i):Fr(t,"bpmn:SubProcess")?co(t)?n._createSubProcessHit(t,i):n._createDefaultHit(t,i):void 0}))}Td.$inject=["eventBus","interactionEvents"],Td.prototype._createDefaultHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createDefaultHit(e,t),!0},Td.prototype._createParticipantHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"no-move",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"all",{width:30,height:e.height}),!0},Td.prototype._createSubProcessHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"no-move",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"all",{width:e.width,height:30}),!0};var Md={__init__:["bpmnInteractionEvents"],bpmnInteractionEvents:["type",Td]};function Dd(e){e.invoke(ya,this)}e(Dd,ya),Dd.$inject=["injector"],Dd.prototype.registerBindings=function(e,t){function n(n,i){t.isRegistered(n)&&e.addListener(i)}ya.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})),n("replaceElement",(function(n){var i=n.keyEvent;if(!e.hasModifier(i))return e.isKey(["r","R"],i)?(t.trigger("replaceElement",i),!0):void 0}))};var Bd={__depends__:[ba],__init__:["keyboardBindings"],keyboardBindings:["type",Dd]},Ld={moveSpeed:1,moveSpeedAccelerated:10},Nd=1500,jd="left",zd="right",Id="down",Xd={ArrowLeft:jd,Left:jd,ArrowUp:"up",Up:"up",ArrowRight:zd,Right:zd,ArrowDown:Id,Down:Id},Qd={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 Fd(e,t,n,i,r){var o=this;this._config=I({},Ld,e||{}),t.addListener(Nd,(function(e){var n=e.keyEvent,i=Xd[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 s=this._config[t?"moveSpeedAccelerated":"moveSpeed"],a=Qd[e](s);i.allowed("elements.move",{shapes:o})&&n.moveElements(o,a)}}}Fd.$inject=["config.keyboardMoveSelection","keyboard","modeling","rules","selection"];var Vd={__depends__:[ba,Es],__init__:["keyboardMoveSelection"],keyboardMoveSelection:["type",Fd]};function qd(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,s=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=Pn(e);return $n({top:Np("top",n,t),right:Np("right",n,t),bottom:Np("bottom",n,t),left:Np("left",n,t)})}(n,s),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:Pn(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=Sn(r)))return;n.resizeShape(t,r)}}(e.context)}))}function Hd(e,t){var n=Rn(e),i=Pn(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 Wd(e){var t="resize-";return"n"===e||"s"===e?t+"ns":"e"===e||"w"===e?t+"ew":"nw"===e||"se"===e?t+"nwse":t+"nesw"}qd.prototype.canResize=function(e){var t=this._rules,n=F(e,["newBounds","shape","delta","direction"]);return t.allowed("shape.resize",n)},qd.prototype.activate=function(e,t,n){var i,r,o=this._dragging;if("string"==typeof n&&(n={direction:n}),!(r=(i=I({shape:t},n)).direction))throw new Error("must provide a direction (n|w|s|e|nw|se|ne|sw)");o.init(e,Hd(t,r),"resize",{autoActivate:!0,cursor:Wd(r),data:{shape:t,context:i}})},qd.prototype.computeMinResizeBox=function(e){var t=e.shape;return function(e,t,n,i){var r=Pn(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},s=i?Pn(i):o;return $n({top:Dp(o.top,s.top),left:Dp(o.left,s.left),bottom:Mp(o.bottom,s.bottom),right:Mp(o.right,s.right)})}(e.direction,t,e.minDimensions||{width:10,height:10},Ip(t,e.childrenBoxPadding))},qd.$inject=["eventBus","rules","modeling","dragging"];var Yd="djs-resizing",Gd="resize-not-ok",Ud=500;function Zd(e,t,n){e.on("resize.move",Ud,(function(e){var i,r,o,s;i=e.context,r=i.shape,o=i.newBounds,(s=i.frame)||(s=i.frame=n.addFrame(r,t.getActiveLayer()),t.addMarker(r,Yd)),o.width>5&&Ae(s,{x:o.x,width:o.width}),o.height>5&&Ae(s,{y:o.y,height:o.height}),i.canExecute?Te(s).remove(Gd):Te(s).add(Gd)})),e.on("resize.cleanup",(function(e){var n,i;n=e.context,i=n.shape,n.frame&&De(n.frame),t.removeMarker(i,Yd)}))}Zd.$inject=["eventBus","canvas","previewSupport"];var Kd=-6,Jd="djs-resizer",ef=["n","w","s","e","nw","ne","se","sw"];function tf(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&&b(t,z(r.addResizer,r))})),e.on("shape.changed",(function(e){var t=e.element;n.isSelected(t)&&(r.removeResizers(),r.addResizer(t))}))}tf.prototype.makeDraggable=function(e,t,n){var i=this._resize;function r(t){ss(t)&&i.activate(t,e,n)}fe.bind(t,"mousedown",r),fe.bind(t,"touchstart",r)},tf.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=-Kd:-1!==e.indexOf("w")&&(t.x=Kd);-1!==e.indexOf("s")?t.y=-Kd:-1!==e.indexOf("n")&&(t.y=Kd);return t}(i),s=Ie("g");Te(s).add(Jd),Te(s).add(Jd+"-"+e.id),Te(s).add(Jd+"-"+i),Se(r,s);var a=Ie("rect");Ae(a,{x:-4+o.x,y:-4+o.y,width:8,height:8}),Te(a).add(Jd+"-visual"),Se(s,a);var l=Ie("rect");return Ae(l,{x:-10+o.x,y:-10+o.y,width:20,height:20}),Te(l).add(Jd+"-hit"),Se(s,l),pi(s,t,n),s},tf.prototype.createResizer=function(e,t){var n=Hd(e,t),i=this._createResizer(e,n.x,n.y,t);this.makeDraggable(e,i,t)},tf.prototype.addResizer=function(e){var t=this;!En(e)&&this._resize.canResize({shape:e})&&b(ef,(function(n){t.createResizer(e,n)}))},tf.prototype.removeResizers=function(){Be(this._getResizersParent())},tf.prototype._getResizersParent=function(){return this._canvas.getLayer("resizers")},tf.$inject=["eventBus","canvas","selection","resize"];var nf={__depends__:[uh,sh,Tu],__init__:["resize","resizePreview","resizeHandles"],resize:["type",qd],resizePreview:["type",Zd],resizeHandles:["type",tf]},rf=2e3;function of(e,t,n,i,r,o,s){function a(e,t){(t||Vr(e,["bpmn:Task","bpmn:TextAnnotation","bpmn:Participant"])||sf(e))&&i.activate(e)}this._bpmnFactory=t,this._canvas=n,this._modeling=r,this._textRenderer=s,i.registerProvider(this),e.on("element.dblclick",(function(e){a(e.element,!0)})),e.on(["autoPlace.start","canvas.viewbox.changing","drag.init","element.mousedown","popupMenu.open","root.set","selection.changed"],(function(){i.isActive()&&i.complete()})),e.on(["shape.remove","connection.remove"],rf,(function(e){i.isActive(e.element)&&i.cancel()})),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||a(n))})),e.on("autoPlace.end",500,(function(e){a(e.shape)}))}function sf(e){return Fr(e,"bpmn:SubProcess")&&!co(e)}of.$inject=["eventBus","bpmnFactory","canvas","directEditing","modeling","resizeHandles","textRenderer"],of.prototype.activate=function(e){var t=wo(e);if(void 0!==t){var n={text:t};I(n,this.getEditingBBox(e));var i={};return(Vr(e,["bpmn:Task","bpmn:Participant","bpmn:Lane","bpmn:CallActivity"])||sf(e))&&I(i,{centerVertically:!0}),go(e)&&I(i,{autoResize:!0}),Fr(e,"bpmn:TextAnnotation")&&I(i,{resizable:!0,autoResize:!0}),I(n,{options:i}),n}},of.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,s={x:i.x,y:i.y},a=t.zoom(),l=this._textRenderer.getDefaultStyle(),c=this._textRenderer.getExternalStyle(),h=c.fontSize*a,u=c.lineHeight,p=l.fontSize*a,d=l.lineHeight,f={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};(Fr(e,"bpmn:Lane")||function(e){return Fr(e,"bpmn:Participant")&&co(e)}(e))&&(I(s,{width:i.height,height:30*a,x:i.x-i.height/2+15*a,y:o-30*a/2}),I(f,{fontSize:p+"px",lineHeight:d,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px",transform:"rotate(-90deg)"})),(Vr(e,["bpmn:Task","bpmn:CallActivity"])||function(e){return Fr(e,"bpmn:Participant")&&!co(e)}(e)||sf(e))&&(I(s,{width:i.width,height:i.height}),I(f,{fontSize:p+"px",lineHeight:d,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"})),function(e){return Fr(e,"bpmn:SubProcess")&&co(e)}(e)&&(I(s,{width:i.width,x:i.x}),I(f,{fontSize:p+"px",lineHeight:d,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"}));var m=90*a,g=7*a,v=4*a;if(n.labelTarget&&(I(s,{width:m,height:i.height+g+v,x:r-m/2,y:i.y-g}),I(f,{fontSize:h+"px",lineHeight:u,paddingTop:g+"px",paddingBottom:v+"px"})),go(n)&&!vo(n)&&!kn(n)){var y=bo(e),b=t.getAbsoluteBBox({x:y.x,y:y.y,width:0,height:0}),x=h+g+v;I(s,{width:m,height:x,x:b.x-m/2,y:b.y-x/2}),I(f,{fontSize:h+"px",lineHeight:u,paddingTop:g+"px",paddingBottom:v+"px"})}return Fr(e,"bpmn:TextAnnotation")&&(I(s,{width:i.width,height:i.height,minWidth:30*a,minHeight:10*a}),I(f,{textAlign:"left",paddingTop:5*a+"px",paddingBottom:7*a+"px",paddingLeft:7*a+"px",paddingRight:5*a+"px",fontSize:p+"px",lineHeight:d})),{bounds:s,style:f}},of.prototype.update=function(e,t,n,i){var r,o,s;Fr(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}),(s=t)&&s.trim()||(t=null),this._modeling.updateLabel(e,t,r)};var af="djs-element-hidden",lf="djs-label-hidden";function cf(e,t,n){var i,r,o,s=this,a=t.getDefaultLayer();e.on("directEditing.activate",(function(e){var l=e.active;if(Fr(i=l.element.label||l.element,"bpmn:TextAnnotation")){r=t.getAbsoluteBBox(i),o=Ie("g");var c=n.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:i.width,containerHeight:i.height,position:{mx:0,my:0}}),h=s.path=Ie("path");Ae(h,{d:c,strokeWidth:2,stroke:hf(i)}),Se(o,h),Se(a,o),di(o,i.x,i.y)}Fr(i,"bpmn:TextAnnotation")||i.labelTarget?t.addMarker(i,af):(Fr(i,"bpmn:Task")||Fr(i,"bpmn:CallActivity")||Fr(i,"bpmn:SubProcess")||Fr(i,"bpmn:Participant"))&&t.addMarker(i,lf)})),e.on("directEditing.resize",(function(e){if(Fr(i,"bpmn:TextAnnotation")){var t=e.height,o=e.dy,a=Math.max(i.height/r.height*(t+o),0),l=n.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:i.width,containerHeight:a,position:{mx:0,my:0}});Ae(s.path,{d:l})}})),e.on(["directEditing.complete","directEditing.cancel"],(function(e){var n=e.active;n&&(t.removeMarker(n.element.label||n.element,af),t.removeMarker(i,lf)),i=void 0,r=void 0,o&&(De(o),o=void 0)}))}function hf(e,t){return Hr(e).get("stroke")||t||"black"}cf.$inject=["eventBus","canvas","pathMap"];var uf={__depends__:[Ms,nf,Pu],__init__:["labelEditingProvider","labelEditingPreview"],labelEditingProvider:["type",of],labelEditingPreview:["type",cf]},pf=["top","bottom","left","right"],df=10;function ff(e,t){function n(e){if(vo(e)){var n=function(e){var t=Rn(e.label),n=Rn(e),i=mf(n,t);if(r=i,-1===pf.indexOf(r))return;var r;var o=function(e){var t=Rn(e),n=[].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 mf(t,e)}));return n}(e);if(e.host){var s=function(e){var t,n=e.host,i=Rn(e),r=Tn(i,n);t=r.indexOf("-")>=0?r.split("-"):[r];var o=pf.filter((function(e){return-1===t.indexOf(e)}));return o}(e);o=o.concat(s)}var a=pf.filter((function(e){return-1===o.indexOf(e)}));if(-1!==a.indexOf(i))return;return a[0]}(e);n&&function(e,n){var i=Rn(e),r=e.label,o=Rn(r);if(!r.parent)return;var s,a=Pn(e);switch(n){case"top":s={x:i.x,y:a.top-df-r.height/2};break;case"left":s={x:a.left-df-r.width/2,y:i.y};break;case"bottom":s={x:i.x,y:a.bottom+df+r.height/2};break;case"right":s={x:a.right+df+r.width/2,y:i.y}}var l=$a(s,o);t.moveShape(r,l)}(e,n)}}Ds.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 mf(e,t){return Tn(t,e,5)}function gf(e){Ds.call(this,e),this.preExecute("shape.append",(function(e){var t=e.source,n=e.shape;e.position||(Fr(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 vf(e,t){e.invoke(Ds,this),this.postExecute("shape.move",(function(e){var n=e.newParent,i=e.shape;b(y(i.incoming.concat(i.outgoing),(function(e){return Fr(e,"bpmn:Association")})),(function(e){t.moveConnection(e,{x:0,y:0},n)}))}),!0)}e(ff,Ds),ff.$inject=["eventBus","modeling"],e(gf,Ds),gf.$inject=["eventBus"],e(vf,Ds),vf.$inject=["injector","modeling"];var yf=500;function bf(e,t){t.invoke(Ds,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",yf,(function(e){var t=e.elements;1===(t=t.filter((function(e){return xf(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",yf,(function(e){var t=e.shapes,i=e.newHost;if(1===t.length){var r=t[0];xf(r,i)&&(e.shapes=[n._replaceShape(r,i)])}}),!0)}function xf(e,t){return!kn(e)&&Vr(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!t}function wf(e,t){function n(e){return y(e.attachers,(function(e){return Fr(e,"bpmn:BoundaryEvent")}))}Ds.call(this,e),this.postExecute("connection.create",(function(e){var i=e.context.source,r=e.context.target,o=n(r);Fr(i,"bpmn:EventBasedGateway")&&Fr(r,"bpmn:ReceiveTask")&&o.length>0&&t.removeElements(o)})),this.postExecute("connection.reconnect",(function(e){var i=e.context.oldSource,r=e.context.newSource;Fr(i,"bpmn:Gateway")&&Fr(r,"bpmn:EventBasedGateway")&&b(r.outgoing,(function(e){var i=e.target,r=n(i);Fr(i,"bpmn:ReceiveTask")&&r.length>0&&t.removeElements(r)}))}))}function _f(e){e.invoke(Ds,this),this.preExecute("shape.create",1500,(function(e){var t=e.context,n=t.parent,i=t.shape;Fr(n,"bpmn:Lane")&&!Fr(i,"bpmn:Lane")&&(t.parent=Fc(n,"bpmn:Participant"))}))}function Of(e,t){Ds.call(this,e),this.preExecute("shape.create",(function(e){var n=e.context.shape;if(Fr(n,"bpmn:DataObjectReference")&&"label"!==n.type){var i=t.create("bpmn:DataObject");n.businessObject.dataObjectRef=i}}))}bf.$inject=["bpmnReplace","injector"],e(bf,Ds),bf.prototype._replaceShape=function(e,t){var n,i=(n=qr(e).eventDefinitions)&&n[0],r={type:"bpmn:BoundaryEvent",host:t};return i&&(r.eventDefinitionType=i.$type),this._bpmnReplace.replaceElement(e,r,{layoutConnection:!1})},wf.$inject=["eventBus","modeling"],e(wf,Ds),_f.$inject=["injector"],e(_f,Ds),Of.$inject=["eventBus","bpmnFactory"],e(Of,Ds);var Ef=20,kf=20,Sf=30,Cf=2e3;function Pf(e,t,n){function i(){var t=e.getRootElement();return Fr(t,"bpmn:Collaboration")?t:n.makeCollaboration()}Ds.call(this,t),t.on(["create.start","shape.move.start"],Cf,(function(t){var n=t.context,i=n.shape,r=e.getRootElement();if(Fr(i,"bpmn:Participant")&&Fr(r,"bpmn:Process")&&r.children.length){var o=r.children.filter((function(e){return!Fr(e,"bpmn:Group")&&!kn(e)&&!En(e)}));if(o.length){var s=Et(o),a=function(e,t){t={width:t.width+2*Ef+Sf,height:t.height+2*kf};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,s);I(i,a),n.createConstraints=function(e,t){return t=Pn(t),{bottom:t.top+e.height/2-kf,left:t.right-e.width/2+Ef,top:t.bottom-e.height/2+kf,right:t.left+e.width/2-Ef-Sf}}(i,s)}}})),t.on("create.start",Cf,(function(n){var i=n.context.shape,r=e.getRootElement(),o=e.getGraphics(r);function s(e){e.element=r,e.gfx=o}Fr(i,"bpmn:Participant")&&Fr(r,"bpmn:Process")&&(t.on("element.hover",Cf,s),t.once("create.cleanup",(function(){t.off("element.hover",s)})))})),this.preExecute("elements.create",Cf,(function(e){var t,n=e.elements,r=e.parent,o=function(e){return g(e,(function(e){return Fr(e,"bpmn:Participant")}))}(n);o&&Fr(r,"bpmn:Process")&&(e.parent=i(),(t=e.hints=e.hints||{}).participant=o,t.process=r,t.processRef=qr(o).get("processRef"))}),!0),this.preExecute("shape.create",(function(e){var t=e.parent,n=e.shape;Fr(n,"bpmn:Participant")&&Fr(t,"bpmn:Process")&&(e.parent=i(),e.process=t,e.processRef=qr(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||qr(i).set("processRef",qr(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||qr(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 s=i.children.slice();o?r===o&&n.moveElements(s,{x:0,y:0},o):n.moveElements(s,{x:0,y:0},r)}}),!0)}Pf.$inject=["canvas","eventBus","modeling"],e(Pf,Ds);var $f="__targetRef_placeholder";function Af(e,t){function n(e,n){var i=e.get("properties"),r=g(i,(function(e){return e.name===$f}));return!r&&n&&Tt(i,r=t.create("bpmn:Property",{name:$f})),r}function i(e,t){var i=n(e);i&&(function(e,t,n){return g(e.get("dataInputAssociations"),(function(e){return e!==n&&e.targetRef===t}))}(e,i,t)||Rt(e.get("properties"),i))}function r(e){var t,r=e.context,o=r.connection,s=o.businessObject,a=o.target,l=a&&a.businessObject,c=r.newTarget,h=c&&c.businessObject,u=r.oldTarget||r.target,p=u&&u.businessObject,d=o.businessObject;p&&p!==l&&i(p,s),h&&h!==l&&i(h,s),l?(t=n(l,!0),d.targetRef=t):d.targetRef=null}Ds.call(this,e),this.executed(["connection.create","connection.delete","connection.move","connection.reconnect"],Rf(r)),this.reverted(["connection.create","connection.delete","connection.move","connection.reconnect"],Rf(r))}function Rf(e){return function(t){if(Fr(t.context.connection,"bpmn:DataInputAssociation"))return e(t)}}function Tf(e){this._bpmnUpdater=e}function Mf(e,t,n,i){function r(e){return e.children.filter((function(e){return Fr(e,"bpmn:DataStoreReference")&&!e.labelTarget}))}function o(e,i){var r=e.businessObject||e;if(i=i||n.filter((function(e){return Fr(e,"bpmn:Participant")&&qr(e).processRef}))[0]){var o=i.businessObject||i;t.execute("dataStore.updateContainment",{dataStoreBo:r,dataStoreDi:Hr(e),newSemanticParent:o.processRef||o,newDiParent:Hr(i)})}}Ds.call(this,i),t.registerHandler("dataStore.updateContainment",Tf),this.preExecute("shape.create",(function(e){var t=e.context,n=t.shape;Fr(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 Fr(e,"bpmn:DataStoreReference")})).length&&(t.hints||(t.hints={}),t.hints.autoResize=n.filter((function(e){return!Fr(e,"bpmn:DataStoreReference")})))})),this.postExecute("shape.create",(function(e){var t=e.context.shape,n=t.parent;Fr(t,"bpmn:DataStoreReference")&&"label"!==t.type&&Fr(n,"bpmn:Collaboration")&&o(t)})),this.postExecute("shape.move",(function(e){var t=e.context,n=t.shape,i=t.oldParent,r=n.parent;Fr(i,"bpmn:Collaboration")||Fr(n,"bpmn:DataStoreReference")&&"label"!==n.type&&Fr(r,"bpmn:Collaboration")&&o(n,Fr(i,"bpmn:Participant")?i:function(e,t){for(;e.parent;){if(Fr(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();Vr(n,["bpmn:Participant","bpmn:SubProcess"])&&Fr(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){Fr(i,"bpmn:Process")&&o(e,i)}))}))}Af.$inject=["eventBus","bpmnFactory"],e(Af,Ds),Tf.$inject=["bpmnUpdater"],Tf.prototype.execute=function(e){var t=e.dataStoreBo,n=e.dataStoreDi,i=e.newSemanticParent,r=e.newDiParent;return e.oldSemanticParent=t.$parent,e.oldDiParent=n.$parent,this._bpmnUpdater.updateSemanticParent(t,i),this._bpmnUpdater.updateDiParent(n,r),[]},Tf.prototype.revert=function(e){var t=e.dataStoreBo,n=e.dataStoreDi,i=e.oldSemanticParent,r=e.oldDiParent;return this._bpmnUpdater.updateSemanticParent(t,i),this._bpmnUpdater.updateDiParent(n,r),[]},Mf.$inject=["canvas","commandStack","elementRegistry","eventBus"],e(Mf,Ds);var Df=500;function Bf(e,t){Ds.call(this,e),this.postExecuted("shape.delete",Df,(function(e){var n=e.context,i=n.hints,r=n.shape,o=n.oldParent;Fr(r,"bpmn:Lane")&&(i&&i.nested||function(e,n){var i,r,o,s=qp(n),a=[],l=[];_t(s,(function(t){return t.y>e.y?l.push(t):a.push(t),t.children})),s.length&&(i=l.length&&a.length?e.height/2:e.height,a.length&&(r=t.calculateAdjustments(a,"y",i,e.y-10),t.makeSpace(r.movingShapes,r.resizingShapes,{x:0,y:i},"s")),l.length&&(o=t.calculateAdjustments(l,"y",-i,e.y+e.height+10),t.makeSpace(o.movingShapes,o.resizingShapes,{x:0,y:-i},"n")))}(r,o))}))}Bf.$inject=["eventBus","spaceTool"],e(Bf,Ds);var Lf=500;function Nf(e,t){t.invoke(Ds,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",Lf,(function(e){var t=e.elements;t.filter((function(e){return jf(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",Lf,(function(e){var t=e.shapes,i=e.newHost;t.forEach((function(e,r){var o,s=e.host;jf(e,(o=s,-1!==t.indexOf(o)?s:i))&&(t[r]=n._replaceShape(e))}))}),!0)}function jf(e,t){return!kn(e)&&Fr(e,"bpmn:BoundaryEvent")&&!t}function zf(e,t,n){function i(e,i,r){var o,s,a,l,c,h,p,d,f=i.waypoints,m=e.outgoing.slice(),g=e.incoming.slice(),v=mh(f,d=u(r.width)?Rn(r):r);if(v){if(o=f.slice(0,v.index),s=f.slice(v.index+(v.bendpoint?1:0)),!o.length||!s.length)return;a=v.bendpoint?f[v.index]:d,1!==o.length&&If(e,o[o.length-1])||o.push(Xf(a)),1!==s.length&&If(e,s[0])||s.unshift(Xf(a))}l=i.source,c=i.target,t.canConnect(l,e,i)&&(n.reconnectEnd(i,e,o||d),h=i),t.canConnect(e,c,i)&&(h?p=n.connect(e,c,{type:i.type,waypoints:s}):(n.reconnectStart(i,e,s||d),p=i));var b=[].concat(h&&y(g,(function(e){return e.source===h.source}))||[],p&&y(m,(function(e){return e.target===p.target}))||[]);b.length&&n.removeElements(b)}Ds.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 s=Rn(o),a={x:s.x+r.x,y:s.y+r.y},l=g(n.children,(function(e){return t.canInsert(i,e)&&mh(e.waypoints,a)}));l&&(e.targetFlow=l,e.position=a)}}),!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 If(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 Xf(e){return I({},e)}function Qf(e,t){Ds.call(this,e),this.preExecuted("connection.create",(function(e){var n=e.context,i=n.connection,r=n.source,o=n.target,s=n.hints;if((!s||!1!==s.createElementsBehavior)&&Ff(i)){(Fr(r,"bpmn:EventBasedGateway")?o.incoming.filter((e=>e!==i&&Ff(e))):o.incoming.filter((e=>e!==i&&Ff(e)&&Fr(e.source,"bpmn:EventBasedGateway")))).forEach((function(e){t.removeConnection(e)}))}})),this.preExecuted("shape.replace",(function(e){var n=e.context.newShape;Fr(n,"bpmn:EventBasedGateway")&&n.outgoing.filter(Ff).reduce((function(e,t){return e.includes(t.target)?e:e.concat(t.target)}),[]).forEach((function(e){e.incoming.filter(Ff).forEach((function(i){const r=e.incoming.filter(Ff).filter((function(e){return e.source===n}));(i.source!==n||r.length>1)&&t.removeConnection(i)}))}))}))}function Ff(e){return Fr(e,"bpmn:SequenceFlow")}Nf.$inject=["bpmnReplace","injector"],e(Nf,Ds),Nf.prototype._replaceShape=function(e){var t,n,i=(n=qr(e).eventDefinitions)&&n[0];return t=i?{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:i.$type}:{type:"bpmn:IntermediateThrowEvent"},this._bpmnReplace.replaceElement(e,t,{layoutConnection:!1})},e(zf,Ds),zf.$inject=["eventBus","bpmnRules","modeling"],Qf.$inject=["eventBus","modeling"],e(Qf,Ds);var Vf=1500,qf=2e3;function Hf(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"],Vf,(function(t){var i=t.context.shape||t.shape,r=t.hover;Fr(r,"bpmn:Lane")&&!Vr(i,["bpmn:Lane","bpmn:Participant"])&&(t.hover=Hp(r),t.hoverGfx=e.getGraphics(t.hover));var o=n.getRootElement();r!==o&&(i.labelTarget||Fr(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"],Vf,(function(t){var n=t.hover;Fr(n,"bpmn:Lane")&&(t.hover=Hp(n)||n,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["bendpoint.move.hover"],Vf,(function(t){var n=t.context,i=t.hover,r=n.type;Fr(i,"bpmn:Lane")&&/reconnect/.test(r)&&(t.hover=Hp(i)||i,t.hoverGfx=e.getGraphics(t.hover))})),t.on(["connect.start"],Vf,(function(e){var t=e.context,n=t.start;Fr(n,"bpmn:Lane")&&(t.start=Hp(n)||n)})),t.on("shape.move.start",qf,(function(e){var t=e.shape;Fr(t,"bpmn:Lane")&&(e.shape=Hp(t)||t)}))}Hf.$inject=["elementRegistry","eventBus","canvas"];var Wf=770;function Yf(e,t,n,i,r,o){function s(e,t,i){var r=n.filter((function(e){return Fr(e,"bpmn:Group")})).filter((function(e){return e.businessObject!==i}));t&&!function(e,t){return e.some((function(e){var n=qr(e);return(n.categoryValueRef&&n.categoryValueRef.$parent)===t}))}(r,t)&&function(e){var t=e.$parent;t&&(Rt(t.get("rootElements"),e),e.$parent=null)}(t),e&&!function(e,t){return e.some((function(e){return qr(e).categoryValueRef===t}))}(r,e)&&function(e){var t=e.$parent;t&&(Rt(t.get("categoryValue"),e),e.$parent=null)}(e)}function a(e,n){return function(e,t,n){return Tt(t.get("categoryValue"),e),e.$parent=t,Tt(n.get("rootElements"),t),t.$parent=n,e}(e,n,t.getDefinitions())}function l(n,i){var r=qr(n),o=r.categoryValueRef;o||(o=r.categoryValueRef=i.categoryValue=i.categoryValue||function(e){return e.create("bpmn:CategoryValue")}(e));var s=o.$parent;s||(s=o.$parent=i.category=i.category||function(e){return e.create("bpmn:Category")}(e)),a(o,s,t.getDefinitions())}function c(e,t){var n=t.category,i=t.categoryValue,r=qr(e);i?(r.categoryValueRef=null,s(i,n,r)):s(null,r.categoryValueRef.$parent,r)}function h(t,n){var i=e.create(t.$type);return o.copyElement(t,i,null,n)}r.invoke(Ds,this),this.execute("label.create",(function(e){var t=e.context,n=t.labelTarget;Fr(n,"bpmn:Group")&&l(n,t)})),this.revert("label.create",(function(e){var t=e.context,n=t.labelTarget;Fr(n,"bpmn:Group")&&c(n,t)})),this.execute("shape.delete",(function(e){var t=e.context,n=t.shape,i=qr(n);if(Fr(n,"bpmn:Group")&&!n.labelTarget){var r=t.categoryValue=i.categoryValueRef;r&&(s(r,t.category=r.$parent,i),i.categoryValueRef=null)}})),this.reverted("shape.delete",(function(e){var t=e.context,n=t.shape;if(Fr(n,"bpmn:Group")&&!n.labelTarget){var i=t.category,r=t.categoryValue,o=qr(n);r&&(o.categoryValueRef=r,a(r,i))}})),this.execute("shape.create",(function(e){var t=e.context,n=t.shape;Fr(n,"bpmn:Group")&&!n.labelTarget&&qr(n).categoryValueRef&&l(n,t)})),this.reverted("shape.create",(function(e){var t=e.context,n=t.shape;Fr(n,"bpmn:Group")&&!n.labelTarget&&qr(n).categoryValueRef&&c(n,t)})),i.on("copyPaste.copyElement",Wf,(function(e){var t=e.descriptor,n=e.element;if(Fr(n,"bpmn:Group")&&!n.labelTarget){var i=qr(n);if(i.categoryValueRef){var r=i.categoryValueRef;t.categoryValue=h(r,!0),r.$parent&&(t.category=h(r.$parent,!0))}}})),i.on("copyPaste.pasteElement",Wf,(function(e){var t=e.descriptor,n=t.businessObject,i=t.categoryValue,r=t.category;i&&(i=n.categoryValueRef=h(i)),r&&(i.$parent=h(r)),delete t.category,delete t.categoryValue}))}function Gf(e,t,n,i){var r,o,s,a;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,s=e.x-n.x,a=((i.x-n.x)*o-(i.y-n.y)*s)/r,{x:Math.round(e.x+a*(t.x-e.x)),y:Math.round(e.y+a*(t.y-e.y))})}function Uf(e){function t(e,t,n){var i,r={x:n.x,y:n.y-50},o={x:n.x-50,y:n.y},s=Gf(e,t,n,r),a=Gf(e,t,n,o);i=s&&a?Zf(s,n)>Zf(a,n)?a:s:s||a,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],Rn(n.source)),t(i[i.length-1],i[i.length-2],Rn(n.target)))}))}function Zf(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Kf(e){Ds.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=qr(n),r=Hr(n);Vr(i,t)&&!r.get("isHorizontal")&&r.set("isHorizontal",!0)}))}Yf.$inject=["bpmnFactory","bpmnjs","elementRegistry","eventBus","injector","moddleCopy"],e(Yf,Ds),Uf.$inject=["eventBus"],Kf.$inject=["eventBus"],e(Kf,Ds);var Jf=Math.sqrt,em=Math.min,tm=Math.max,nm=Math.abs;function im(e){return Math.pow(e,2)}function rm(e,t){return Jf(im(e.x-t.x)+im(e.y-t.y))}function om(e,t,n,i){var r=t.x-e.x,o=t.y-e.y,s=n.x-e.x,a=n.y-e.y,l=r*r+o*o,c=(r*s+o*a)/l,h=c*c-(s*s+a*a-i*i)/l;if(h<0&&h>-1e-6&&(h=0),h<0)return[];var u=Jf(h),p=-c+u,d=-c-u,f={x:e.x-r*p,y:e.y-o*p};return 0===h?[f]:[f,{x:e.x-r*d,y:e.y-o*d}].filter((function(n){return function(e,t,n){return sm(e.x,t.x,n.x)&&sm(e.y,t.y,n.y)}(n,e,t)}))}function sm(e,t,n){return e>=em(t,n)-am&&e<=tm(t,n)+am}var am=.1;function lm(e,t){return nm(e.x-t.x)<=am&&nm(e.y-t.y)<=am}function cm(e,t,n,i){var r=0,o=0,s={point:e,delta:{x:0,y:0}},a=function(e,t){var n,i,r,o,s,a,l,c,h,u,p,d,f=0;for(f=0;f<t.length-1;f++){if(lm(n=t[f],i=t[f+1])?a=[n]:(r=rm(e,n),o=rm(e,i),a=om(n,i,e,em(r,o))),a.length<1)throw new Error("expected between [1, 2] circle -> line intersections");1===a.length&&(l={type:"bendpoint",position:a[0],segmentIndex:f,bendpointIndex:lm(n,a[0])?f:f+1}),2===a.length&&(p=a[0],d=a[1],l={type:"segment",position:s={x:(p.x+d.x)/2,y:(p.y+d.y)/2},segmentIndex:f,relativeLocation:rm(n,s)/rm(n,i)}),c=rm(l.position,e),(!u||h>c)&&(u=l,h=c)}return u}(e,n),l=a.segmentIndex,c=function(e,t,n,i){var r=n.segmentIndex,o=t.length-e.length;if(i.segmentMove){var s=i.segmentMove.segmentStartIndex,a=i.segmentMove.newSegmentStartIndex;return r===s?a:r>=a?r+o<a?a:r+o:r}if(i.bendpointMove){var l,c=i.bendpointMove.insert,h=i.bendpointMove.bendpointIndex;return 0===o?r:(r>=h&&(l=c?r+1:r-1),r<h&&(l=r,c&&"bendpoint"!==n.type&&h-1===r&&hm(t,h)<n.relativeLocation&&l++),l)}return 0===o?r:i.connectionStart&&0===r?0:i.connectionEnd&&r===e.length-2?t.length-2:Math.floor((t.length-2)/2)}(n,t,a,i);if(c<0||c>t.length-2||null===c)return s;var h,u,p=um(n,l),d=um(t,c),f=a.position,m=function(e,t){var n=xh(e[0],e[1]),i=xh(e[0],t);return 0===n?0:i/n}(p,f),g=(h=d,u=vh(p),vh(h)-u);if("bendpoint"===a.type){var v=t.length-n.length,y=a.bendpointIndex,b=n[y];if(-1!==t.indexOf(b))return s;if(0===v){var x=t[y];return{delta:{x:r=x.x-a.position.x,y:o=x.y-a.position.y},point:{x:e.x+r,y:e.y+o}}}v<0&&0!==y&&y<n.length-1&&(m=hm(n,y))}var w,_,O={x:(d[1].x-d[0].x)*m+d[0].x,y:(d[1].y-d[0].y)*m+d[0].y},E=(w={x:e.x-f.x,y:e.y-f.y},(_=g)?{x:Math.cos(_)*w.x-Math.sin(_)*w.y,y:Math.sin(_)*w.x+Math.cos(_)*w.y}:w);return r=O.x+E.x-e.x,o=O.y+E.y-e.y,{point:Cn(O),delta:Cn({x:r,y:o})}}function hm(e,t){var n=xh(e[t-1],e[t]);return n/(n+xh(e[t],e[t+1]))}function um(e,t){return[e[t],e[t+1]]}function pm(e,t,n){var i=Pa(t),r=Pa(n),o=$a(e,i),s=o.x*(n.width/t.width),a=o.y*(n.height/t.height);return Cn({x:r.x+s,y:r.y+a})}function dm(e,t,n){var i=Pa(e),r=Pa(t),o=Pa(n),s=$a(e,i),a=$a(i,r),l=function(e,t,n){var i=Pn(t),r=Pn(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,s,a,l=Tn(t,e);if("top"===l)o={x:0,y:r.bottom-i.bottom};else if("bottom"===l)o={x:0,y:r.top-i.top};else if("right"===l)o={x:r.left-i.left,y:0};else{if("left"!==l)return null;o={x:r.right-i.right,y:0}}if(s={x:e.x+o.x,y:e.y+o.y},a=Tn(n,s),a!==l)return null;return o}(i,t,n);if(l)return l;var c=a.x*(n.width/t.width),h=a.y*(n.height/t.height),u=o.x+c,p=o.y+h;return Cn({x:u+s.x-e.x,y:p+s.y-e.y})}var fm="name",mm="text";function gm(e,t,n,i){function r(e){var n=e.context,r=n.element,o=n.properties;if(fm in o&&t.updateLabel(r,o[fm]),mm in o&&Fr(r,"bpmn:TextAnnotation")){var s=i.getTextAnnotationBounds({x:r.x,y:r.y,width:r.width,height:r.height},o[mm]||"");t.updateLabel(r,o.text,s)}}function o(e){var t=e.context,n=t.connection,i=n.label,r=I({},t.hints),o=t.newWaypoints||n.waypoints,s=t.oldWaypoints;return void 0===r.startChanged&&(r.startChanged=!!r.connectionStart),void 0===r.endChanged&&(r.endChanged=!!r.connectionEnd),function(e,t,n,i){return cm(Rn(e),t,n,i).delta}(i,o,s,r)}Ds.call(this,e),this.postExecute("element.updateProperties",r),this.postExecute("element.updateModdleProperties",(e=>{qr(e.context.element)===e.context.moddleElement&&r(e)})),this.postExecute(["shape.create","connection.create"],(function(e){var n=e.context;if(!1!==(n.hints||{}).createElementsBehavior){var i=n.shape||n.connection;!kn(i)&&go(i)&&wo(i)&&t.updateLabel(i,wo(i))}})),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(["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=o(e),t.moveShape(r,i))}})),this.postExecute(["shape.replace"],(function(e){var t=e.context,n=t.newShape,i=t.oldShape,r=qr(n);r&&go(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,s=i.oldBounds;if(vo(r)){var a=r.label,l=function(e,t){if(!t.length)return;var n=function(e,t){var n=t.map((function(t){return{line:t,distance:bh(e,t)}}));return R(n,"distance")[0].line}(e,t);return yh(e,n)}(Rn(a),[[{x:(n=s).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)}]]),c=vm(l,s,o);t.moveShape(a,c)}}))}function vm(e,t,n){return Cn($a(pm(e,t,n),e))}function ym(e,t){function n(e,t){var n=e.context,i=n.connection,r=I({},n.hints),o=n.newWaypoints||i.waypoints,s=n.oldWaypoints;return void 0===r.startChanged&&(r.startChanged=!!r.connectionStart),void 0===r.endChanged&&(r.endChanged=!!r.connectionEnd),function(e,t,n,i){return cm(e,t,n,i).point}(t,o,s,r)}Ds.call(this,e),this.postExecute(["connection.layout","connection.updateWaypoints"],(function(e){var i=e.context.connection,r=i.outgoing;i.incoming.forEach((function(i){var r=i.waypoints[i.waypoints.length-1],o=n(e,r),s=[].concat(i.waypoints.slice(0,-1),[o]);t.updateWaypoints(i,s)})),r.forEach((function(i){var r=i.waypoints[0],o=n(e,r),s=[].concat([o],i.waypoints.slice(1));t.updateWaypoints(i,s)}))})),this.postExecute(["connection.move"],(function(e){var n=e.context,i=n.connection,r=i.outgoing,o=i.incoming,s=n.delta;o.forEach((function(e){var n=e.waypoints[e.waypoints.length-1],i={x:n.x+s.x,y:n.y+s.y},r=[].concat(e.waypoints.slice(0,-1),[i]);t.updateWaypoints(e,r)})),r.forEach((function(e){var n=e.waypoints[0],i={x:n.x+s.x,y:n.y+s.y},r=[].concat([i],e.waypoints.slice(1));t.updateWaypoints(e,r)}))}))}function bm(e,t,n){var i=Em(e),r=km(i,t),o=i[0];return r.length?r[r.length-1]:pm(o.original||o,n,t)}function xm(e,t,n){var i=Em(e),r=km(i,t),o=i[i.length-1];return r.length?r[0]:pm(o.original||o,n,t)}function wm(e,t,n){var i=Em(e),r=Om(t,n),o=i[0];return pm(o.original||o,r,t)}function _m(e,t,n){var i=Em(e),r=Om(t,n),o=i[i.length-1];return pm(o.original||o,r,t)}function Om(e,t){return{x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height}}function Em(e){var t=e.waypoints;if(!t.length)throw new Error("connection#"+e.id+": no waypoints");return t}function km(e,t){return y(E(e,Sm),(function(e){return function(e,t){return"intersect"===Tn(t,e,1)}(e,t)}))}function Sm(e){return e.original||e}function Cm(e,t){Ds.call(this,e),this.postExecute("shape.replace",(function(e){var n=e.oldShape,i=e.newShape;if(function(e,t){return Fr(e,"bpmn:Participant")&&co(e)&&Fr(t,"bpmn:Participant")&&!co(t)}(n,i)){var r,o,s,a,l=(o=Ot([r=n],!1),s=[],a=[],o.forEach((function(e){e!==r&&(e.incoming.forEach((function(e){Fr(e,"bpmn:MessageFlow")&&s.push(e)})),e.outgoing.forEach((function(e){Fr(e,"bpmn:MessageFlow")&&a.push(e)})))}),[]),{incoming:s,outgoing:a});l.incoming.forEach((function(e){var r=xm(e,i,n);t.reconnectEnd(e,i,r)})),l.outgoing.forEach((function(e){var r=bm(e,i,n);t.reconnectStart(e,i,r)}))}}),!0)}function Pm(e,t){Ds.call(this,e),this.preExecute("shape.resize",(function(e){var n=e.shape,i=Hr(n),r=i&&i.get("label");r&&r.get("bounds")&&t.updateModdleProperties(n,r,{bounds:void 0})}),!0)}function $m(e,t,n){Ds.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(Fr(r,"bpmn:SequenceFlow")&&Fr(o,"bpmn:SequenceFlow")&&t.canConnect(r.source,o.target,r)){var s=function(e,t){var n=Gf(Am(e[e.length-2]),Am(e[e.length-1]),Am(t[1]),Am(t[0]));return n?[].concat(e.slice(0,e.length-1),[n],t.slice(1)):[Am(e[0]),Am(t[t.length-1])]}(r.waypoints,o.waypoints);n.reconnectEnd(r,o.target,s)}}}))}function Am(e){return e.original||e}function Rm(e,t){Ds.call(this,e),this.preExecute("shape.delete",(function(e){var t=e.shape,n=t.parent;Fr(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 Tm(e,t,n,i){Ds.call(this,e);var r=i.get("dragging",!1);function o(e){var i,r,o=e.source,s=e.target;e.parent&&(Fr(e,"bpmn:SequenceFlow")&&(n.canConnectSequenceFlow(o,s)||(r=!0),n.canConnectMessageFlow(o,s)&&(i="bpmn:MessageFlow")),Fr(e,"bpmn:MessageFlow")&&(n.canConnectMessageFlow(o,s)||(r=!0),n.canConnectSequenceFlow(o,s)&&(i="bpmn:SequenceFlow")),Fr(e,"bpmn:Association")&&!n.canConnectAssociation(o,s)&&(r=!0),r&&t.removeConnection(e),i&&t.connect(o,s,{type:i,waypoints:e.waypoints.slice()}))}this.postExecuted("elements.move",(function(e){b(e.closure.allConnections,o)}),!0),this.preExecute("connection.reconnect",(function(e){var i,o,s=e.context,a=s.connection,l=s.newSource||a.source,c=s.newTarget||a.target;(i=n.canConnect(l,c))&&i.type!==a.type&&(o=t.connect(l,c,{type:i.type,waypoints:a.waypoints.slice()}),t.removeConnection(a),s.connection=o,r&&function(e,t){var n,i=r.context(),o=i&&i.payload.previousSelection;if(!o||!o.length)return;if(n=o.indexOf(e),-1===n)return;o.splice(n,1,t)}(a,o))})),this.postExecuted("element.updateProperties",(function(e){var n,i=e.context,r=i.properties,o=i.element,s=o.businessObject;r.default&&(n=g(o.outgoing,T({id:o.businessObject.default.id})))&&t.updateProperties(n,{conditionExpression:void 0}),r.conditionExpression&&s.sourceRef.default===s&&t.updateProperties(o.source,{default:void 0})}))}function Mm(e,t,n,i,r,o){i.invoke(Ds,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=w(r,(function(e,n){var r=t.canReplace([n],n.host||n.parent||i);return r?e.concat(r.replacements):e}),[]);o.length&&this._replaceElements(r,o)}),this),this.postExecuted(["elements.move"],500,(function(e){var n=e.context,i=n.newParent,r=n.newHost,o=[];b(n.closure.topLevel,(function(e){o=uo(e)?o.concat(e.children):o.concat(e)})),1===o.length&&r&&(i=r);var s=t.canReplace(o,i);s&&this._replaceElements(o,s.replacements,r)}),this),this.postExecute(["shape.replace"],1500,(function(e){var n,i=e.context,r=i.oldShape,o=i.newShape,s=r.attachers;s&&s.length&&(n=t.canReplace(s,o),this._replaceElements(s,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})}))}e(gm,Ds),gm.$inject=["eventBus","modeling","bpmnFactory","textRenderer"],e(ym,Ds),ym.$inject=["eventBus","modeling"],Cm.$inject=["eventBus","modeling"],e(Cm,Ds),e(Pm,Ds),Pm.$inject=["eventBus","modeling"],e($m,Ds),$m.$inject=["eventBus","bpmnRules","modeling"],Rm.$inject=["eventBus","modeling"],e(Rm,Ds),e(Tm,Ds),Tm.$inject=["eventBus","modeling","bpmnRules","injector"],e(Mm,Ds),Mm.prototype._replaceElements=function(e,t){var n=this._elementRegistry,i=this._bpmnReplace,r=this._selection;b(t,(function(t){var r={type:t.newElementType},o=n.get(t.oldElementId),s=e.indexOf(o);e[s]=i.replaceElement(o,r,{select:!1})})),t&&r.select(e)},Mm.$inject=["bpmnReplace","bpmnRules","elementRegistry","injector","modeling","selection"];var Dm=1500,Bm={width:140,height:120},Lm={width:300,height:60},Nm={width:300,height:150},jm={width:140,height:120},zm={width:50,height:30};function Im(e){e.on("resize.start",Dm,(function(e){var t=e.context,n=t.shape,i=t.direction,r=t.balanced;(Fr(n,"bpmn:Lane")||Fr(n,"bpmn:Participant"))&&(t.resizeConstraints=function(e,t,n){var i=Hp(e),r=!0,o=!0,s=Vp(i,[i]),a=Pn(e),l={},c={};/e/.test(t)?c.right=a.left+Lm.width:/w/.test(t)&&(c.left=a.right-Lm.width);s.forEach((function(e){var i=Pn(e);/n/.test(t)&&(i.top<a.top-10&&(r=!1),n&&Xm(a.top-i.bottom)<10&&Hm(l,"top",i.top+Lm.height),Xm(a.top-i.top)<5&&qm(c,"top",i.bottom-Lm.height)),/s/.test(t)&&(i.bottom>a.bottom+10&&(o=!1),n&&Xm(a.bottom-i.top)<10&&qm(l,"bottom",i.bottom-Lm.height),Xm(a.bottom-i.bottom)<5&&Hm(c,"bottom",i.top+Lm.height))}));var h=i.children.filter((function(e){return!e.hidden&&!e.waypoints&&(Fr(e,"bpmn:FlowElement")||Fr(e,"bpmn:Artifact"))}));return h.forEach((function(e){var n=Pn(e);r&&/n/.test(t)&&qm(c,"top",n.top-Gm),/e/.test(t)&&Hm(c,"right",n.right+Wm),o&&/s/.test(t)&&Hm(c,"bottom",n.bottom+Um),/w/.test(t)&&qm(c,"left",n.left-Ym)})),{min:c,max:l}}(n,i,r)),Fr(n,"bpmn:Participant")&&(t.minDimensions=Nm),Fr(n,"bpmn:SubProcess")&&co(n)&&(t.minDimensions=jm),Fr(n,"bpmn:TextAnnotation")&&(t.minDimensions=zm)}))}Im.$inject=["eventBus"];var Xm=Math.abs,Qm=Math.min,Fm=Math.max;function Vm(e,t,n,i){var r=e[t];e[t]=void 0===r?n:i(n,r)}function qm(e,t,n){return Vm(e,t,n,Qm)}function Hm(e,t,n){return Vm(e,t,n,Fm)}var Wm=20,Ym=50,Gm=20,Um=20;var Zm=1001;function Km(e,t){e.on("resize.start",Zm+500,(function(e){var t=e.context,n=t.shape;(Fr(n,"bpmn:Lane")||Fr(n,"bpmn:Participant"))&&(t.balanced=!as(e))})),e.on("resize.end",Zm,(function(e){var n=e.context,i=n.shape,r=n.canExecute,o=n.newBounds;if(Fr(i,"bpmn:Lane")||Fr(i,"bpmn:Participant"))return r&&(o=Sn(o),t.resizeLane(i,o,n.balanced)),!1}))}Km.$inject=["eventBus","modeling"];var Jm=500;function eg(e,t,n,i,r){function o(e){return Vr(e,["bpmn:ReceiveTask","bpmn:SendTask"])||function(e,t){c(t)||(t=[t]);return O(t,(function(t){return po(e,t)}))}(e,["bpmn:ErrorEventDefinition","bpmn:EscalationEventDefinition","bpmn:MessageEventDefinition","bpmn:SignalEventDefinition"])}function s(t){return!!g(e.getDefinitions().get("rootElements"),T({id:t.id}))}function a(e){return Fr(e,"bpmn:ErrorEventDefinition")?"errorRef":Fr(e,"bpmn:EscalationEventDefinition")?"escalationRef":Fr(e,"bpmn:MessageEventDefinition")?"messageRef":Fr(e,"bpmn:SignalEventDefinition")?"signalRef":void 0}function l(e){if(Vr(e,["bpmn:ReceiveTask","bpmn:SendTask"]))return e.get("messageRef");var t=e.get("eventDefinitions")[0];return t.get(a(t))}n.invoke(Ds,this),this.executed(["shape.create","element.updateProperties","element.updateModdleProperties"],(function(t){var n=t.shape||t.element;if(o(n)){var i=l(qr(n));i&&!s(i)&&(Tt(e.getDefinitions().get("rootElements"),i),t.addedRootElement=i)}}),!0),this.reverted(["shape.create","element.updateProperties","element.updateModdleProperties"],(function(t){var n=t.addedRootElement;n&&Rt(e.getDefinitions().get("rootElements"),n)}),!0),t.on("copyPaste.copyElement",(function(e){var t=e.descriptor,n=e.element;if(!n.labelTarget&&o(n)){var i=l(qr(n));i&&(t.referencedRootElement=i)}})),t.on("copyPaste.pasteElement",Jm,(function(e){var t=e.descriptor,n=t.businessObject,o=t.referencedRootElement;o&&(s(o)||(o=i.copyElement(o,r.create(o.$type))),function(e,t){if(Vr(e,["bpmn:ReceiveTask","bpmn:SendTask"]))return e.set("messageRef",t);var n=e.get("eventDefinitions")[0];n.set(a(n),t)}(n,o),delete t.referencedRootElement)}))}eg.$inject=["bpmnjs","eventBus","injector","moddleCopy","bpmnFactory"],e(eg,Ds);var tg=Math.max;function ng(e){e.on("spaceTool.getMinDimensions",(function(e){var t=e.shapes,n=e.axis,i=e.start,r={};return b(t,(function(e){var t=e.id;Fr(e,"bpmn:Participant")&&(!function(e){return"x"===e}(n)?r[t]={width:Nm.width,height:ig(e,i)}:r[t]=Nm),Fr(e,"bpmn:SubProcess")&&co(e)&&(r[t]=jm),Fr(e,"bpmn:TextAnnotation")&&(r[t]=zm),Fr(e,"bpmn:Group")&&(r[t]=Bm)})),r}))}function ig(e,t){var n;return qp(e).length?(n=function(e,t){var n,i=qp(e);return n=rg(i,t),e.height-n.height+Lm.height}(e,t),tg(Nm.height,n)):Nm.height}function rg(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=qp(i)).length?rg(r,t):i}ng.$inject=["eventBus"];var og=400,sg=600,ag=180,lg=160;function cg(e,t,n,i,r,o,s){Ds.call(this,t),this._canvas=e,this._eventBus=t,this._modeling=n,this._elementFactory=i,this._bpmnFactory=r,this._bpmnjs=o,this._elementRegistry=s;var a=this;function l(e){return Fr(e,"bpmn:SubProcess")&&!co(e)}function c(t){var n=t.shape,i=t.newRootElement,r=qr(n);i=a._addDiagram(i||r),t.newRootElement=e.addRootElement(i)}function h(t){var n=qr(t.shape);a._removeDiagram(n);var i=t.newRootElement=s.get(Fs(n));e.removeRootElement(i)}this.executed("shape.create",(function(e){l(e.shape)&&c(e)}),!0),this.postExecuted("shape.create",(function(e){var t=e.shape,n=e.newRootElement;n&&t.children&&(a._showRecursively(t.children),a._moveChildrenToShape(t,n))}),!0),this.reverted("shape.create",(function(e){l(e.shape)&&h(e)}),!0),this.preExecuted("shape.delete",(function(e){var t=e.shape;if(l(t)){var i=s.get(Fs(t));i&&n.removeElements(i.children.slice())}}),!0),this.executed("shape.delete",(function(e){l(e.shape)&&h(e)}),!0),this.reverted("shape.delete",(function(e){l(e.shape)&&c(e)}),!0),this.preExecuted("shape.replace",(function(t){var n=t.oldShape,i=t.newShape;l(n)&&l(i)&&(t.oldRoot=e.removeRootElement(Fs(n)))}),!0),this.postExecuted("shape.replace",(function(t){var i=t.newShape,r=t.oldRoot,o=e.findRoot(Fs(i));if(r&&o){var s=r.children;n.moveElements(s,{x:0,y:0},o)}}),!0),this.executed("element.updateProperties",(function(e){var t=e.element;if(Fr(t,"bpmn:SubProcess")){var n=e.properties,i=e.oldProperties.id,r=n.id;if(i!==r){if(qs(t))return s.updateId(t,Vs(r)),void s.updateId(i,r);s.get(Vs(i))&&s.updateId(Vs(i),Vs(r))}}}),!0),this.reverted("element.updateProperties",(function(e){var t=e.element;if(Fr(t,"bpmn:SubProcess")){var n=e.properties,i=e.oldProperties.id,r=n.id;if(i!==r){if(qs(t))return s.updateId(t,Vs(i)),void s.updateId(r,i);var o=s.get(Vs(r));o&&s.updateId(o,Vs(i))}}}),!0),t.on("element.changed",(function(e){var n=e.element;if(qs(n)){var i=n,r=s.get(Qs(i));r&&r!==i&&t.fire("element.changed",{element:r})}})),this.executed("shape.toggleCollapse",og,(function(e){var t=e.shape;Fr(t,"bpmn:SubProcess")&&(co(t)?h(e):(c(e),a._showRecursively(t.children)))}),!0),this.reverted("shape.toggleCollapse",og,(function(e){var t=e.shape;Fr(t,"bpmn:SubProcess")&&(co(t)?h(e):(c(e),a._showRecursively(t.children)))}),!0),this.postExecuted("shape.toggleCollapse",sg,(function(e){var t=e.shape;if(Fr(t,"bpmn:SubProcess")){var n=e.newRootElement;n&&(co(t)?a._moveChildrenToShape(n,t):a._moveChildrenToShape(t,n))}}),!0),t.on("copyPaste.createTree",(function(e){var t=e.element,n=e.children;if(l(t)){var i=Fs(t),r=s.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(Fr(Hr(r),"bpmndi:BPMNPlane")){var o=Qs(r),s=g(i,(function(e){return e.id===o}));s&&(t.parent=s.id)}})),t.on("copyPaste.pasteElement",(function(e){var t=e.descriptor;t.parent&&(l(t.parent)||t.parent.hidden)&&(t.hidden=!0)}))}function hg(e,t){e.invoke(Ds,this),this.postExecuted("shape.replace",(function(e){var n=e.context.oldShape,i=e.context.newShape;if(Fr(i,"bpmn:SubProcess")&&(Fr(n,"bpmn:Task")||Fr(n,"bpmn:CallActivity"))&&co(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 ug(e,t){Ds.call(this,e),this.postExecuted("shape.toggleCollapse",1500,(function(e){var n=e.shape;if(!co(n)){var i=Ot(n);i.forEach((function(e){var t=e.incoming.slice(),n=e.outgoing.slice();b(t,(function(e){r(e,!0)})),b(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,Rn(n)):t.reconnectStart(e,n,Rn(n)))}}),!0)}e(cg,Ds),cg.prototype._moveChildrenToShape=function(e,t){var n,i=this._modeling,r=e.children;if(r){var o=(r=r.concat(r.reduce((function(t,n){return n.label&&n.label.parent!==e?t.concat(n.label):t}),[]))).filter((function(e){return!e.hidden}));if(o.length){var s=Et(o);if(t.x){var a=Rn(t),l=Rn(s);n={x:a.x-l.x,y:a.y-l.y}}else n={x:ag-s.x,y:lg-s.y};i.moveElements(r,n,t,{autoResize:!1})}else i.moveElements(r,{x:0,y:0},t,{autoResize:!1})}},cg.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},cg.prototype._addDiagram=function(e){var t=this._bpmnjs.getDefinitions().diagrams;return e.businessObject||(e=this._createNewDiagram(e)),t.push(e.di.$parent),e},cg.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:Fs(e),type:e.$type,di:i,businessObject:e,collapsed:!0})},cg.prototype._removeDiagram=function(e){var t=this._bpmnjs.getDefinitions().diagrams,n=g(t,(function(t){return t.plane.bpmnElement.id===e.id}));return t.splice(t.indexOf(n),1),n},cg.$inject=["canvas","eventBus","modeling","elementFactory","bpmnFactory","bpmnjs","elementRegistry"],hg.$inject=["injector","modeling"],e(hg,Ds),e(ug,Ds),ug.$inject=["eventBus","modeling"];var pg=500;function dg(e,t,n){Ds.call(this,e),this.executed(["shape.toggleCollapse"],pg,(function(e){var t,n=e.context.shape;Fr(n,"bpmn:SubProcess")&&(n.collapsed?Hr(n).isExpanded=!1:((t=n.children).length&&t.forEach((function(e){"label"!==e.type||e.businessObject.name||(e.hidden=!0)})),Hr(n).isExpanded=!0))})),this.reverted(["shape.toggleCollapse"],pg,(function(e){var t=e.context.shape;t.collapsed?Hr(t).isExpanded=!1:Hr(t).isExpanded=!0})),this.postExecuted(["shape.toggleCollapse"],pg,(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,o=e.children,s=t;return n=(r=o,r.filter((function(e){return!e.hidden}))).concat([e]),(i=Ip(n))?(s.width=Math.max(i.width,s.width),s.height=Math.max(i.height,s.height),s.x=i.x+(i.width-s.width)/2,s.y=i.y+(i.height-s.height)/2):(s.x=e.x+(e.width-s.width)/2,s.y=e.y+(e.height-s.height)/2),s}(r,o),n.resizeShape(r,i,null,{autoResize:!r.collapsed&&"nwse"})}))}function fg(e,t,n,i){t.invoke(Ds,this),this.preExecute("shape.delete",(function(e){var t=e.context.shape,r=t.businessObject;kn(t)||(Fr(t,"bpmn:Participant")&&co(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;Fr(t,"bpmn:Collaboration")&&n.ids.unclaim(i.id)}))}function mg(e,t){Ds.call(this,e),this.preExecute("connection.delete",(function(e){var n=e.context.connection,i=n.source;(function(e,t){if(!Fr(e,"bpmn:SequenceFlow"))return!1;var n=qr(t),i=qr(e);return n.get("default")===i})(n,i)&&t.updateProperties(i,{default:null})}))}e(dg,Ds),dg.$inject=["eventBus","elementFactory","modeling"],e(fg,Ds),fg.$inject=["canvas","injector","moddle","modeling"],e(mg,Ds),mg.$inject=["eventBus","modeling"];var gg=500,vg=5e3;function yg(e,t,n){var i;function r(){if(!i)throw new Error(n("out of bounds release"));return i}Ds.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,vg,(function(e){(i=i||new bg).enter()})),this.postExecuted(o,gg,(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||(Fr(t,"bpmn:Lane")&&n.addLane(t),Fr(t,"bpmn:FlowNode")&&n.addFlowNode(t))}))}function bg(){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}}yg.$inject=["eventBus","modeling","translate"],e(yg,Ds);var xg={__init__:["adaptiveLabelPositioningBehavior","appendBehavior","associationBehavior","attachEventBehavior","boundaryEventBehavior","createBehavior","createDataObjectBehavior","createParticipantBehavior","dataInputAssociationBehavior","dataStoreBehavior","deleteLaneBehavior","detachEventBehavior","dropOnFlowBehavior","eventBasedGatewayBehavior","fixHoverBehavior","groupBehavior","importDockingFix","isHorizontalFix","labelBehavior","layoutConnectionBehavior","messageFlowBehavior","removeElementBehavior","removeEmbeddedLabelBoundsBehavior","removeParticipantBehavior","replaceConnectionBehavior","replaceElementBehaviour","resizeBehavior","resizeLaneBehavior","rootElementReferenceBehavior","spaceToolBehavior","subProcessPlaneBehavior","subProcessStartEventBehavior","toggleCollapseConnectionBehaviour","toggleElementCollapseBehaviour","unclaimIdBehavior","updateFlowNodeRefsBehavior","unsetDefaultFlowBehavior"],adaptiveLabelPositioningBehavior:["type",ff],appendBehavior:["type",gf],associationBehavior:["type",vf],attachEventBehavior:["type",bf],boundaryEventBehavior:["type",wf],createBehavior:["type",_f],createDataObjectBehavior:["type",Of],createParticipantBehavior:["type",Pf],dataInputAssociationBehavior:["type",Af],dataStoreBehavior:["type",Mf],deleteLaneBehavior:["type",Bf],detachEventBehavior:["type",Nf],dropOnFlowBehavior:["type",zf],eventBasedGatewayBehavior:["type",Qf],fixHoverBehavior:["type",Hf],groupBehavior:["type",Yf],importDockingFix:["type",Uf],isHorizontalFix:["type",Kf],labelBehavior:["type",gm],layoutConnectionBehavior:["type",ym],messageFlowBehavior:["type",Cm],removeElementBehavior:["type",$m],removeEmbeddedLabelBoundsBehavior:["type",Pm],removeParticipantBehavior:["type",Rm],replaceConnectionBehavior:["type",Tm],replaceElementBehaviour:["type",Mm],resizeBehavior:["type",Im],resizeLaneBehavior:["type",Km],rootElementReferenceBehavior:["type",eg],spaceToolBehavior:["type",ng],subProcessPlaneBehavior:["type",cg],subProcessStartEventBehavior:["type",hg],toggleCollapseConnectionBehaviour:["type",ug],toggleElementCollapseBehaviour:["type",dg],unclaimIdBehavior:["type",fg],unsetDefaultFlowBehavior:["type",mg],updateFlowNodeRefsBehavior:["type",yg]};function wg(e,t){var n=Tn(e,t,-15);return"intersect"!==n?n:null}function _g(e){Pc.call(this,e)}function Og(e){return!e||kn(e)}function Eg(e){do{if(Fr(e,"bpmn:Process"))return qr(e);if(Fr(e,"bpmn:Participant"))return qr(e).processRef||qr(e)}while(e=e.parent)}function kg(e){return Fr(e,"bpmn:TextAnnotation")}function Sg(e){return Fr(e,"bpmn:Group")&&!e.labelTarget}function Cg(e){return Fr(e,"bpmn:BoundaryEvent")&&Ag(e,"bpmn:CompensateEventDefinition")}function Pg(e){return qr(e).isForCompensation}function $g(e){for(var t=e;t=t.parent;){if(Fr(t,"bpmn:FlowElementsContainer"))return qr(t);if(Fr(t,"bpmn:Participant"))return qr(t).processRef}return null}function Ag(e,t){return!!g(qr(e).eventDefinitions||[],(function(e){return Fr(e,t)}))}function Rg(e,t){return(qr(e).eventDefinitions||[]).every((function(e){return Fr(e,t)}))}function Tg(e,t){var n=function(e){for(var t=[];e;)(e=e.parent)&&t.push(e);return t}(t);return-1!==n.indexOf(e)}function Mg(e,t,n){if(Og(e)||Og(t))return null;if(!Fr(n,"bpmn:DataAssociation")){if(Hg(e,t))return{type:"bpmn:MessageFlow"};if(Wg(e,t))return{type:"bpmn:SequenceFlow"}}var i=Yg(e,t);return i||(Cg(e)&&Pg(t)?{type:"bpmn:Association",associationDirection:"One"}:!!qg(e,t)&&{type:"bpmn:Association"})}function Dg(e,t){return!(!kn(e)&&!Sg(e))||!(Fr(t,"bpmn:Participant")&&!co(t))&&(Fr(e,"bpmn:Participant")?Fr(t,"bpmn:Process")||Fr(t,"bpmn:Collaboration"):Vr(e,["bpmn:DataInput","bpmn:DataOutput"])&&e.parent?t===e.parent:Fr(e,"bpmn:Lane")?Fr(t,"bpmn:Participant")||Fr(t,"bpmn:Lane"):!(Fr(e,"bpmn:BoundaryEvent")&&!function(e){return qr(e).cancelActivity&&(Ng(e)||jg(e))}(e))&&(Fr(e,"bpmn:FlowElement")&&!Fr(e,"bpmn:DataStoreReference")?Fr(t,"bpmn:FlowElementsContainer")?co(t):Vr(t,["bpmn:Participant","bpmn:Lane"]):Fr(e,"bpmn:DataStoreReference")&&Fr(t,"bpmn:Collaboration")?O(qr(t).get("participants"),(function(e){return!!e.get("processRef")})):Vr(e,["bpmn:Artifact","bpmn:DataAssociation","bpmn:DataStoreReference"])?Vr(t,["bpmn:Collaboration","bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"]):!!Fr(e,"bpmn:MessageFlow")&&(Fr(t,"bpmn:Collaboration")||e.source.parent==t||e.target.parent==t)))}function Bg(e){return Fr(e,"bpmn:Lane")}function Lg(e){return!!function(e){return!kn(e)&&Fr(e,"bpmn:BoundaryEvent")}(e)||(!(!Fr(e,"bpmn:IntermediateThrowEvent")||!Ng(e))||Fr(e,"bpmn:IntermediateCatchEvent")&&jg(e))}function Ng(e){var t=qr(e);return t&&!(t.eventDefinitions&&t.eventDefinitions.length)}function jg(e){return zg(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])}function zg(e,t){return t.some((function(t){return Ag(e,t)}))}function Ig(e,t,n,i){if(Array.isArray(e)||(e=[e]),1!==e.length)return!1;var r=e[0];return!kn(r)&&(!!Lg(r)&&(!uo(t)&&(!(!Fr(t,"bpmn:Activity")||Pg(t))&&(!(i&&!wg(i,t))&&(!function(e){return Fr(e,"bpmn:ReceiveTask")&&g(e.incoming,(function(e){return Fr(e.source,"bpmn:EventBasedGateway")}))}(t)&&"attach")))))}function Xg(e,t,n){if(!t)return!1;var i={replacements:[]};return b(e,(function(e){uo(t)||Fr(e,"bpmn:StartEvent")&&"label"!==e.type&&Dg(e,t)&&(ho(e)||i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"}),(function(e){return po(e,"bpmn:ErrorEventDefinition")}(e)||function(e){return po(e,"bpmn:EscalationEventDefinition")}(e)||function(e){return po(e,"bpmn:CompensateEventDefinition")}(e))&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"}),zg(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])&&Fr(t,"bpmn:SubProcess")&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:StartEvent"})),Fr(t,"bpmn:Transaction")||Ag(e,"bpmn:CancelEventDefinition")&&"label"!==e.type&&(Fr(e,"bpmn:EndEvent")&&Dg(e,t)&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:EndEvent"}),Fr(e,"bpmn:BoundaryEvent")&&Ig(e,t,0,n)&&i.replacements.push({oldElementId:e.id,newElementType:"bpmn:BoundaryEvent"}))})),!!i.replacements.length&&i}function Qg(e,t){return!O(e,Bg)&&(!t||e.every((function(e){return Dg(e,t)})))}function Fg(e,t,n,i){return!!t&&(!(!kn(e)&&!Sg(e))||!function(e,t){return e===t}(n,t)&&((!n||!Tg(n,t))&&(Dg(e,t)||Gg(e,t))))}function Vg(e,t){return Fr(e,"bpmn:SubProcess")?co(e)&&(!t||t.width>=100&&t.height>=80):Fr(e,"bpmn:Lane")?!t||t.width>=130&&t.height>=60:Fr(e,"bpmn:Participant")?!t||t.width>=250&&t.height>=50:!!kg(e)||!!Sg(e)}function qg(e,t){return!(!Cg(e)||!Pg(t))||!Tg(t,e)&&!Tg(e,t)&&(!!function(e,t){var n=kg(e),i=kg(t);return(n||i)&&n!==i}(e,t)||!!Yg(e,t))}function Hg(e,t){return!(Zg(e)&&!Zg(t))&&(Fr(n=e,"bpmn:InteractionNode")&&!Fr(n,"bpmn:BoundaryEvent")&&(!Fr(n,"bpmn:Event")||Fr(n,"bpmn:ThrowEvent")&&Rg(n,"bpmn:MessageEventDefinition"))&&function(e){return Fr(e,"bpmn:InteractionNode")&&!Pg(e)&&(!Fr(e,"bpmn:Event")||Fr(e,"bpmn:CatchEvent")&&Rg(e,"bpmn:MessageEventDefinition"))&&!(Fr(e,"bpmn:BoundaryEvent")&&!Ag(e,"bpmn:MessageEventDefinition"))}(t)&&!function(e,t){return Eg(e)===Eg(t)}(e,t));var n}function Wg(e,t){return Fr(n=e,"bpmn:FlowNode")&&!Fr(n,"bpmn:EndEvent")&&!uo(n)&&!(Fr(n,"bpmn:IntermediateThrowEvent")&&Ag(n,"bpmn:LinkEventDefinition"))&&!Cg(n)&&!Pg(n)&&function(e){return Fr(e,"bpmn:FlowNode")&&!Fr(e,"bpmn:StartEvent")&&!Fr(e,"bpmn:BoundaryEvent")&&!uo(e)&&!(Fr(e,"bpmn:IntermediateCatchEvent")&&Ag(e,"bpmn:LinkEventDefinition"))&&!Pg(e)}(t)&&function(e,t){return $g(e)===$g(t)}(e,t)&&!(Fr(e,"bpmn:EventBasedGateway")&&!function(e){return Fr(e,"bpmn:ReceiveTask")||Fr(e,"bpmn:IntermediateCatchEvent")&&(Ag(e,"bpmn:MessageEventDefinition")||Ag(e,"bpmn:TimerEventDefinition")||Ag(e,"bpmn:ConditionalEventDefinition")||Ag(e,"bpmn:SignalEventDefinition"))}(t));var n}function Yg(e,t){return Vr(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&Vr(t,["bpmn:Activity","bpmn:ThrowEvent"])?{type:"bpmn:DataInputAssociation"}:!(!Vr(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])||!Vr(e,["bpmn:Activity","bpmn:CatchEvent"]))&&{type:"bpmn:DataOutputAssociation"}}function Gg(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&&(Vr(t,["bpmn:SequenceFlow","bpmn:MessageFlow"])&&!kn(t)&&Fr(e,"bpmn:FlowNode")&&!Fr(e,"bpmn:BoundaryEvent")&&Dg(e,t.parent))}function Ug(e,t){return!!kn(t)||!(Fr(t,"bpmn:Lane")&&!function(e,t){return e&&t&&-1!==e.indexOf(t)}(e,t.parent))}function Zg(e){return Fc(e,"bpmn:Process")||Fc(e,"bpmn:Collaboration")}e(_g,Pc),_g.$inject=["eventBus"],_g.prototype.init=function(){this.addRule("connection.start",(function(e){return function(e){if(Og(e))return null;return Vr(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 Mg(t,n)}finally{r&&(n.parent=null)}})),this.addRule("connection.reconnect",(function(e){var t=e.connection;return Mg(e.source,e.target,t)})),this.addRule("connection.updateWaypoints",(function(e){return{type:e.connection.type}})),this.addRule("shape.resize",(function(e){return Vg(e.shape,e.newBounds)})),this.addRule("elements.create",(function(e){var t=e.elements,n=e.position,i=e.target;return!(En(i)&&!Gg(t,i))&&_(t,(function(e){return En(e)?Mg(e.source,e.target,e):e.host?Ig(e,e.host,null,n):Fg(e,i,null)}))})),this.addRule("elements.move",(function(e){var t=e.target,n=e.shapes,i=e.position;return Ig(n,t,null,i)||Xg(n,t,i)||Qg(n,t)||Gg(n,t)})),this.addRule("shape.create",(function(e){return Fg(e.shape,e.target,e.source,e.position)})),this.addRule("shape.attach",(function(e){return Ig(e.shape,e.target,null,e.position)})),this.addRule("element.copy",(function(e){var t=e.element;return Ug(e.elements,t)}))},_g.prototype.canConnectMessageFlow=Hg,_g.prototype.canConnectSequenceFlow=Wg,_g.prototype.canConnectDataAssociation=Yg,_g.prototype.canConnectAssociation=qg,_g.prototype.canMove=Qg,_g.prototype.canAttach=Ig,_g.prototype.canReplace=Xg,_g.prototype.canDrop=Dg,_g.prototype.canInsert=Gg,_g.prototype.canCreate=Fg,_g.prototype.canConnect=Mg,_g.prototype.canResize=Vg,_g.prototype.canCopy=Ug;var Kg={__depends__:[uh],__init__:["bpmnRules"],bpmnRules:["type",_g]},Jg=2e3;function ev(e,t){e.on("saveXML.start",Jg,(function(){b(t.getRootElements(),(function(e){var t,n=Hr(e);t=E(y(Ot([e],!1),(function(t){return t!==e&&!t.labelTarget})),Hr),n.set("planeElement",t)}))}))}ev.$inject=["eventBus","canvas"];var tv={__init__:["bpmnDiOrdering"],bpmnDiOrdering:["type",ev]};function nv(e){Ds.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 iv(e,t,n){nv.call(this,e);var i=[{type:"bpmn:SubProcess",order:{level:6}},{type:"bpmn:SequenceFlow",order:{level:9,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=g(i,(function(t){return Vr(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(n)||t.getRootElement(),index:-1};var i=r(e);i.containers&&(n=function(e,t,n){for(var i=t;i&&!Vr(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),s=v(n.children,(function(t){return!(!e.labelTarget&&t.labelTarget)&&i.level<r(t).level}));return-1!==s&&-1!==o&&o<s&&(s-=1),{index:s,parent:n}}}nv.prototype.getOrdering=function(e,t){return null},e(nv,Ds),iv.$inject=["eventBus","canvas","translate"],e(iv,nv);var rv={__depends__:[Go],__init__:["bpmnOrderingProvider"],bpmnOrderingProvider:["type",iv]};function ov(e,t){this._eventBus=e,this._dragging=t,this._tools=[],this._active=null}ov.$inject=["eventBus","dragging"],ov.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)},ov.prototype.isActive=function(e){return e&&this._active===e},ov.prototype.length=function(e){return this._tools.length},ov.prototype.setActive=function(e){var t=this._eventBus;this._active!==e&&(this._active=e,t.fire("tool-manager.update",{tool:e}))},ov.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),b(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 sv={__depends__:[sh],__init__:["toolManager"],toolManager:["type",ov]};function av(e,t){return-1!==e.indexOf(t)}var lv=Math.abs,cv=Math.round,hv={x:"width",y:"height"},uv="crosshair",pv={n:"top",w:"left",s:"bottom",e:"right"},dv=1500,fv={n:"s",w:"e",s:"n",e:"w"},mv=20;function gv(e,t,n,i,r,o,s){this._canvas=e,this._dragging=t,this._eventBus=n,this._modeling=i,this._rules=r,this._toolManager=o,this._mouse=s;var a=this;o.registerTool("space",{tool:"spaceTool.selection",dragging:"spaceTool"}),n.on("spaceTool.selection.end",(function(e){n.once("spaceTool.selection.ended",(function(){a.activateMakeSpace(e.originalEvent)}))})),n.on("spaceTool.move",dv,(function(e){var t=e.context,n=t.initialized;n||(n=t.initialized=a.init(e,t)),n&&yv(e)})),n.on("spaceTool.end",(function(e){var t=e.context,i=t.axis,r=t.direction,o=t.movingShapes,s=t.resizingShapes,l=t.start;if(t.initialized){yv(e);var c={x:0,y:0};c[i]=cv(e["d"+i]),a.makeSpace(o,s,c,r,l),n.once("spaceTool.ended",(function(e){a.activateSelection(e.originalEvent,!0,!0)}))}}))}function vv(e){return{top:e.top-mv,right:e.right+mv,bottom:e.bottom+mv,left:e.left-mv}}function yv(e){var t,n,i=e.context.spaceToolConstraints;i&&(u(i.left)&&(t=Math.max(e.x,i.left),e.dx=e.dx+t-e.x,e.x=t),u(i.right)&&(t=Math.min(e.x,i.right),e.dx=e.dx+t-e.x,e.x=t),u(i.top)&&(n=Math.max(e.y,i.top),e.dy=e.dy+n-e.y,e.y=n),u(i.bottom)&&(n=Math.min(e.y,i.bottom),e.dy=e.dy+n-e.y,e.y=n))}function bv(e,t){return-1!==e.indexOf(t)}gv.$inject=["canvas","dragging","eventBus","modeling","rules","toolManager","mouse"],gv.prototype.activateSelection=function(e,t,n){this._dragging.init(e,"spaceTool.selection",{autoActivate:t,cursor:uv,data:{context:{reactivate:n}},trapClick:!1})},gv.prototype.activateMakeSpace=function(e){this._dragging.init(e,"spaceTool",{autoActivate:!0,cursor:uv,data:{context:{}}})},gv.prototype.makeSpace=function(e,t,n,i,r){return this._modeling.createSpace(e,t,n,i,r)},gv.prototype.init=function(e,t){var n=lv(e.dx)>lv(e.dy)?"x":"y",i=e["d"+n],r=e[n]-i;if(lv(i)<5)return!1;i<0&&(i*=-1),as(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),s=Ot(this._canvas.getRootElement(),!0),a=this.calculateAdjustments(s,n,i,r),l=function(e,t,n,i,r){var o=e.movingShapes,s=e.resizingShapes;if(!s.length)return;var a,l,c={};return b(s,(function(e){var h,p,d,f,m,g,v=e.attachers,b=e.children,x=Pn(e),w=y(b,(function(e){return!(En(e)||kn(e)||bv(o,e)||bv(s,e))})),_=y(b,(function(e){return!En(e)&&!kn(e)&&bv(o,e)})),O=[],E=[];w.length&&(p=vv(Pn(Et(w))),h=i-x[pv[n]]+p[pv[n]],"n"===n?c.bottom=l=u(l)?Math.min(l,h):h:"w"===n?c.right=l=u(l)?Math.min(l,h):h:"s"===n?c.top=a=u(a)?Math.max(a,h):h:"e"===n&&(c.left=a=u(a)?Math.max(a,h):h)),_.length&&(d=vv(Pn(Et(_))),h=i-d[pv[fv[n]]]+x[pv[fv[n]]],"n"===n?c.bottom=l=u(l)?Math.min(l,h):h:"w"===n?c.right=l=u(l)?Math.min(l,h):h:"s"===n?c.top=a=u(a)?Math.max(a,h):h:"e"===n&&(c.left=a=u(a)?Math.max(a,h):h)),v&&v.length&&(v.forEach((function(e){bv(o,e)?O.push(e):E.push(e)})),O.length&&(f=Pn(Et(O.map(Rn))),m=x[pv[fv[n]]]-(f[pv[fv[n]]]-i)),E.length&&(g=Pn(Et(E.map(Rn)))[pv[n]]-(x[pv[n]]-i)),"n"===n?(h=Math.min(m||1/0,g||1/0),c.bottom=l=u(l)?Math.min(l,h):h):"w"===n?(h=Math.min(m||1/0,g||1/0),c.right=l=u(l)?Math.min(l,h):h):"s"===n?(h=Math.max(m||-1/0,g||-1/0),c.top=a=u(a)?Math.max(a,h):h):"e"===n&&(h=Math.max(m||-1/0,g||-1/0),c.left=a=u(a)?Math.max(a,h):h));var k=r&&r[e.id];k&&("n"===n?(h=i+e[hv[t]]-k[hv[t]],c.bottom=l=u(l)?Math.min(l,h):h):"w"===n?(h=i+e[hv[t]]-k[hv[t]],c.right=l=u(l)?Math.min(l,h):h):"s"===n?(h=i-e[hv[t]]+k[hv[t]],c.top=a=u(a)?Math.max(a,h):h):"e"===n&&(h=i-e[hv[t]]+k[hv[t]],c.left=a=u(a)?Math.max(a,h):h))})),c}(a,n,o,r,this._eventBus.fire("spaceTool.getMinDimensions",{axis:n,direction:o,shapes:a.resizingShapes,start:r}));return I(t,a,{axis:n,direction:o,spaceToolConstraints:l,start:r}),Ea("resize-"+("x"===n?"ew":"ns")),!0},gv.prototype.calculateAdjustments=function(e,t,n,i){var r=this._rules,o=[],s=[],a=[],l=[];function c(e){o.includes(e)||o.push(e);var t=e.label;t&&!o.includes(t)&&o.push(t)}b(e,(function(e){if(e.parent&&!kn(e))if(En(e))l.push(e);else{var o=e[t],h=o+e[hv[t]];if(function(e){return!!e.host}(e)&&(n>0&&Rn(e)[t]>i||n<0&&Rn(e)[t]<i))a.push(e);else{var u;if(!(n>0&&o>i||n<0&&h<i))return o<i&&h>i&&r.allowed("shape.resize",{shape:e})?(u=e,void(s.includes(u)||s.push(u))):void 0;c(e)}}})),b(o,(function(e){var t=e.attachers;t&&b(t,(function(e){c(e)}))}));var h=o.concat(s);return b(a,(function(e){var t=e.host;bv(h,t)&&c(e)})),h=o.concat(s),b(l,(function(e){var t=e.source,n=e.target,i=e.label;bv(h,t)&&bv(h,n)&&i&&c(i)})),{movingShapes:o,resizingShapes:s}},gv.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)},gv.prototype.isActive=function(){var e=this._dragging.context();return!!e&&/^spaceTool/.test(e.prefix)};var xv="djs-dragging",wv="djs-resizing",_v=250,Ov=Math.max;function Ev(e,t,n,i,r){function o(e,t){b(e,(function(e){r.addDragger(e,t),n.addMarker(e,xv)}))}e.on("spaceTool.selection.start",(function(e){var t=n.getLayer("space"),r=e.context,o="M 0,-10000 L 0,10000",s="M -10000,0 L 10000,0",a=Ie("g");Ae(a,i.cls("djs-crosshair-group",["no-events"])),Se(t,a);var l=Ie("path");Ae(l,"d",o),Te(l).add("djs-crosshair"),Se(a,l);var c=Ie("path");Ae(c,"d",s),Te(c).add("djs-crosshair"),Se(a,c),r.crosshairGroup=a})),e.on("spaceTool.selection.move",(function(e){di(e.context.crosshairGroup,e.x,e.y)})),e.on("spaceTool.selection.cleanup",(function(e){var t=e.context.crosshairGroup;t&&De(t)})),e.on("spaceTool.move",_v,(function(e){var s=e.context,a=s.line,l=s.axis,c=s.movingShapes,h=s.resizingShapes;if(s.initialized){if(!s.dragGroup){var u=n.getLayer("space");Ae(a=Ie("path"),"d","M0,0 L0,0"),Te(a).add("djs-crosshair"),Se(u,a),s.line=a;var p=Ie("g");Ae(p,i.cls("djs-drag-group",["no-events"])),Se(n.getActiveLayer(),p),o(c,p),o(s.movingConnections=t.filter((function(e){var t=!1;b(c,(function(n){b(n.outgoing,(function(n){e===n&&(t=!0)}))}));var n=!1;b(c,(function(t){b(t.incoming,(function(t){e===t&&(n=!0)}))}));var i=!1;b(h,(function(t){b(t.outgoing,(function(t){e===t&&(i=!0)}))}));var r=!1;return b(h,(function(t){b(t.incoming,(function(t){e===t&&(r=!0)}))})),En(e)&&(t||i)&&(n||r)})),p),s.dragGroup=p}if(!s.frameGroup){var d=Ie("g");Ae(d,i.cls("djs-frame-group",["no-events"])),Se(n.getActiveLayer(),d);var f=[];b(h,(function(e){var t=r.addFrame(e,d),i=t.getBBox();f.push({element:t,initialBounds:i}),n.addMarker(e,wv)})),s.frameGroup=d,s.frames=f}Ae(a,{d:{x:"M"+e.x+", -10000 L"+e.x+", 10000",y:"M -10000, "+e.y+" L 10000, "+e.y}[l]});var m={x:e.dx,y:e.dy};m[{x:"y",y:"x"}[s.axis]]=0,di(s.dragGroup,m.x,m.y),b(s.frames,(function(e){var t,n,i=e.element,r=e.initialBounds;"e"===s.direction?Ae(i,{width:Ov(r.width+m.x,5)}):Ae(i,{width:t=Ov(r.width-m.x,5),x:r.x+r.width-t}),"s"===s.direction?Ae(i,{height:Ov(r.height+m.y,5)}):Ae(i,{height:n=Ov(r.height-m.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,s=t.line,a=t.dragGroup,l=t.frameGroup;b(i,(function(e){n.removeMarker(e,xv)})),b(r,(function(e){n.removeMarker(e,xv)})),a&&(De(s),De(a)),b(o,(function(e){n.removeMarker(e,wv)})),l&&De(l)}))}Ev.$inject=["eventBus","elementRegistry","canvas","styles","previewSupport"];var kv={__init__:["spaceToolPreview"],__depends__:[sh,uh,sv,Tu,Yu],spaceTool:["type",gv],spaceToolPreview:["type",Ev]};function Sv(e){e.invoke(gv,this)}Sv.$inject=["injector"],e(Sv,gv),Sv.prototype.calculateAdjustments=function(e,t,n,i){var r=gv.prototype.calculateAdjustments.call(this,e,t,n,i);return r.resizingShapes=r.resizingShapes.filter((function(e){return!Fr(e,"bpmn:TextAnnotation")&&("y"!==t||!function(e){return Fr(e,"bpmn:Participant")&&!qr(e).processRef}(e))})),r};var Cv={__depends__:[kv],spaceTool:["type",Sv]};function Pv(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)}Pv.$inject=["eventBus","injector"],Pv.prototype.execute=function(e,t){if(!e)throw new Error("command required");this._currentExecution.trigger="execute";const n={command:e,context:t};this._pushAction(n),this._internalExecute(n),this._popAction()},Pv.prototype.canExecute=function(e,t){const n={command:e,context:t},i=this._getHandler(e);let r=this._fire(e,"canExecute",n);if(void 0===r){if(!i)return!1;i.canExecute&&(r=i.canExecute(t))}return r},Pv.prototype.clear=function(e){this._stack.length=0,this._stackIdx=-1,!1!==e&&this._fire("changed",{trigger:"clear"})},Pv.prototype.undo=function(){let e,t=this._getUndoAction();if(t){for(this._currentExecution.trigger="undo",this._pushAction(t);t&&(this._internalUndo(t),e=this._getUndoAction(),e&&e.id===t.id);)t=e;this._popAction()}},Pv.prototype.redo=function(){let e,t=this._getRedoAction();if(t){for(this._currentExecution.trigger="redo",this._pushAction(t);t&&(this._internalExecute(t,!0),e=this._getRedoAction(),e&&e.id===t.id);)t=e;this._popAction()}},Pv.prototype.register=function(e,t){this._setHandler(e,t)},Pv.prototype.registerHandler=function(e,t){if(!e||!t)throw new Error("command and handlerCls must be defined");const n=this._injector.instantiate(t);this.register(e,n)},Pv.prototype.canUndo=function(){return!!this._getUndoAction()},Pv.prototype.canRedo=function(){return!!this._getRedoAction()},Pv.prototype._getRedoAction=function(){return this._stack[this._stackIdx+1]},Pv.prototype._getUndoAction=function(){return this._stack[this._stackIdx]},Pv.prototype._internalUndo=function(e){const t=e.command,n=e.context,i=this._getHandler(t);this._atomicDo((()=>{this._fire(t,"revert",e),i.revert&&this._markDirty(i.revert(n)),this._revertedAction(e),this._fire(t,"reverted",e)}))},Pv.prototype._fire=function(e,t,n){arguments.length<3&&(n=t,t=null);const i=t?[e+"."+t,t]:[e];let r;n=this._eventBus.createEvent(n);for(const e of i)if(r=this._eventBus.fire("commandStack."+e,n),n.cancelBubble)break;return r},Pv.prototype._createId=function(){return this._uid++},Pv.prototype._atomicDo=function(e){const t=this._currentExecution;t.atomic=!0;try{e()}finally{t.atomic=!1}},Pv.prototype._internalExecute=function(e,t){const n=e.command,i=e.context,r=this._getHandler(n);if(!r)throw new Error("no command handler registered for <"+n+">");this._pushAction(e),t||(this._fire(n,"preExecute",e),r.preExecute&&r.preExecute(i),this._fire(n,"preExecuted",e)),this._atomicDo((()=>{this._fire(n,"execute",e),r.execute&&this._markDirty(r.execute(i)),this._executedAction(e,t),this._fire(n,"executed",e)})),t||(this._fire(n,"postExecute",e),r.postExecute&&r.postExecute(i),this._fire(n,"postExecuted",e)),this._popAction()},Pv.prototype._pushAction=function(e){const 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)},Pv.prototype._popAction=function(){const e=this._currentExecution,t=e.trigger,n=e.actions,i=e.dirty;n.pop(),n.length||(this._eventBus.fire("elements.changed",{elements:$("id",i.reverse())}),i.length=0,this._fire("changed",{trigger:t}),e.trigger=null)},Pv.prototype._markDirty=function(e){const t=this._currentExecution;e&&(e=c(e)?e:[e],t.dirty=t.dirty.concat(e))},Pv.prototype._executedAction=function(e,t){const n=++this._stackIdx;t||this._stack.splice(n,this._stack.length,e)},Pv.prototype._revertedAction=function(e){this._stackIdx--},Pv.prototype._getHandler=function(e){return this._handlerMap[e]},Pv.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 $v={commandStack:["type",Pv]};function Av(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}}var Rv=250,Tv=1400;function Mv(e,t,n){Ds.call(this,t);var i=e.get("movePreview",!1);t.on("shape.move.start",Tv,(function(e){var t=e.context,n=t.shapes,i=t.validatedShapes;t.shapes=Dv(n),t.validatedShapes=Dv(i)})),i&&t.on("shape.move.start",Rv,(function(e){var t=e.context,n=t.shapes,r=[];b(n,(function(e){b(e.labels,(function(n){n.hidden||-1!==t.shapes.indexOf(n)||r.push(n),e.labelTarget&&r.push(e)}))})),b(r,(function(e){i.makeDraggable(t,e,!0)}))})),this.preExecuted("elements.move",Tv,(function(e){var t=e.context.closure,n=t.enclosedElements,i=[];b(n,(function(e){b(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;Av((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=Mt(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&&(Tt(i.labels,n,r),n.labelTarget=i)}))}function Dv(e){return y(e,(function(t){return-1===e.indexOf(t.labelTarget)}))}e(Mv,Ds),Mv.$inject=["injector","eventBus","modeling"];var Bv={__init__:["labelSupport"],labelSupport:["type",Mv]},Lv=251,Nv=1401,jv="attach-ok";function zv(e,t,n,i,r){Ds.call(this,t);var o=e.get("movePreview",!1);t.on("shape.move.start",Nv,(function(e){var t,n,i=e.context,r=i.shapes,o=i.validatedShapes;i.shapes=(n=Iv(t=r),A("id",t,n)),i.validatedShapes=function(e){var t=P(e,"id");return y(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",Lv,(function(e){var t=e.context;b(Iv(t.shapes),(function(e){o.makeDraggable(t,e,!0),b(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,jv),t.once(["shape.move.out","shape.move.cleanup"],(function(){n.removeMarker(r,jv)})))}})),this.preExecuted("elements.move",Nv,(function(e){var t=e.context,n=t.closure;b(Iv(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||b(i?n:y(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){b(e.context.shapes,(function(e){b(e.attachers,(function(e){b(e.outgoing.slice(),(function(e){i.allowed("connection.reconnect",{connection:e,source:e.source,target:e.target})||r.removeConnection(e)})),b(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;Av(n.attachers,(function(e){"attach"===i.allowed("elements.move",{target:o,shapes:[e]})?r.updateAttachment(e,o):r.removeShape(e)})),o.attachers.length&&b(o.attachers,(function(e){var t=dm(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,s=n.attachers;!1!==(t.hints||{}).attachSupport&&b(s,(function(e){var t=dm(e,i,o);r.moveShape(e,t,e.parent),b(e.labels,(function(e){r.moveShape(e,t,e.parent)}))}))})),this.preExecute("shape.delete",(function(e){var t=e.context.shape;Av(t.attachers,(function(e){r.removeShape(e)})),t.host&&r.updateAttachment(t,null)}))}function Iv(e){return i(E(e,(function(e){return e.attachers||[]})))}e(zv,Ds),zv.$inject=["injector","eventBus","canvas","rules","modeling"];var Xv={__depends__:[uh],__init__:["attachSupport"],attachSupport:["type",zv]};function Qv(e){this._model=e}function Fv(e,t,n,i){Ds.call(this,e),this._bpmnFactory=t,this._translate=i;var r=this;function o(e){b(e.context.oldRoot.children,(function(e){Fr(e,"bpmn:BaseElement")&&r.updateParent(e)}))}function s(e){var t=e.context.shape;Fr(t,"bpmn:BaseElement")&&r.updateBounds(t)}function a(e){r.updateConnection(e.context)}function l(e){r.updateConnectionWaypoints(e.context.connection)}function c(e){r.updateAttachment(e.context)}function h(e){const{element:n}=e.context,i=wo(n),r=Hr(n),o=r&&r.get("label");go(n)||(i&&!o?r.set("label",t.create("bpmndi:BPMNLabel")):!i&&o&&r.set("label",void 0))}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"],Vv((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"],Vv((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"],Vv((function(e){"label"!==e.context.shape.type&&s(e)}))),this.reverted(["shape.move","shape.create","shape.resize"],Vv((function(e){"label"!==e.context.shape.type&&s(e)}))),e.on("shape.changed",(function(e){"label"===e.element.type&&s({context:{shape:e.element}})})),this.executed(["connection.create","connection.move","connection.delete","connection.reconnect"],Vv(a)),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnect"],Vv(a)),this.executed(["connection.layout","connection.move","connection.updateWaypoints"],Vv(l)),this.reverted(["connection.layout","connection.move","connection.updateWaypoints"],Vv(l)),this.executed("connection.reconnect",Vv((function(e){var t=e.context,n=t.connection,i=t.oldSource,r=t.newSource,o=qr(n),s=qr(i),a=qr(r);o.conditionExpression&&!Vr(a,["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"])&&(t.oldConditionExpression=o.conditionExpression,delete o.conditionExpression),i!==r&&s.default===o&&(t.oldDefault=s.default,delete s.default)}))),this.reverted("connection.reconnect",Vv((function(e){var t=e.context,n=t.connection,i=t.oldSource,r=t.newSource,o=qr(n),s=qr(i),a=qr(r);t.oldConditionExpression&&(o.conditionExpression=t.oldConditionExpression),t.oldDefault&&(s.default=t.oldDefault,delete a.default)}))),this.executed(["element.updateAttachment"],Vv(c)),this.reverted(["element.updateAttachment"],Vv(c)),this.executed("element.updateLabel",Vv(h)),this.reverted("element.updateLabel",Vv(h))}function Vv(e){return function(t){var n=t.context;Fr(n.shape||n.connection||n.element,"bpmn:BaseElement")&&e(t)}}function qv(e,t,n){si.call(this),this._bpmnFactory=e,this._moddle=t,this._translate=n}function Hv(e,t,n){return void 0===t[n]?t:(e[n]=t[n],V(t,[n]))}function Wv(e,t){this._modeling=e,this._canvas=t}function Yv(e){this._modeling=e}function Gv(e,t){this._canvas=e,this._layouter=t}Qv.$inject=["moddle"],Qv.prototype._needsId=function(e){return Vr(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"])},Qv.prototype._ensureId=function(e){var t;e.id?this._model.ids.claim(e.id,e):(t=Fr(e,"bpmn:Activity")?"Activity":Fr(e,"bpmn:Event")?"Event":Fr(e,"bpmn:Gateway")?"Gateway":Vr(e,["bpmn:SequenceFlow","bpmn:MessageFlow"])?"Flow":(e.$type||"").replace(/^[^:]*:/g,""),t+="_",!e.id&&this._needsId(e)&&(e.id=this._model.ids.nextPrefixed(t,e)))},Qv.prototype.create=function(e,t){var n=this._model.create(e,t||{});return this._ensureId(n),n},Qv.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})},Qv.prototype.createDiShape=function(e,t){return this.create("bpmndi:BPMNShape",I({bpmnElement:e,bounds:this.createDiBounds()},t))},Qv.prototype.createDiBounds=function(e){return this.create("dc:Bounds",e)},Qv.prototype.createDiWaypoints=function(e){var t=this;return E(e,(function(e){return t.createDiWaypoint(e)}))},Qv.prototype.createDiWaypoint=function(e){return this.create("dc:Point",F(e,["x","y"]))},Qv.prototype.createDiEdge=function(e,t){return this.create("bpmndi:BPMNEdge",I({bpmnElement:e,waypoint:this.createDiWaypoints([])},t))},Qv.prototype.createDiPlane=function(e,t){return this.create("bpmndi:BPMNPlane",I({bpmnElement:e},t))},e(Fv,Ds),Fv.$inject=["eventBus","bpmnFactory","connectionDocking","translate"],Fv.prototype.updateAttachment=function(e){var t=e.shape,n=t.businessObject,i=t.host;n.attachedToRef=i&&i.businessObject},Fv.prototype.updateParent=function(e,t){if(!(kn(e)||Fr(e,"bpmn:DataStoreReference")&&e.parent&&Fr(e.parent,"bpmn:Collaboration"))){var n=e.parent,i=e.businessObject,r=Hr(e),o=n&&n.businessObject,s=Hr(n);Fr(e,"bpmn:FlowNode")&&this.updateFlowNodeRefs(i,o,t&&t.businessObject),Fr(e,"bpmn:DataOutputAssociation")&&(o=e.source?e.source.businessObject:null),Fr(e,"bpmn:DataInputAssociation")&&(o=e.target?e.target.businessObject:null),this.updateSemanticParent(i,o),Fr(e,"bpmn:DataObjectReference")&&i.dataObjectRef&&this.updateSemanticParent(i.dataObjectRef,o),this.updateDiParent(r,s)}},Fv.prototype.updateBounds=function(e){var t=Hr(e),n=function(e){if(!Fr(e,"bpmn:Activity"))return;var t=Hr(e);if(!t)return;var n=t.get("label");if(!n)return;return n.get("bounds")}(e);if(n){var i=$a(n,t.get("bounds"));I(n,{x:e.x+i.x,y:e.y+i.y})}var r=kn(e)?this._getLabel(t):t,o=r.bounds;o||(o=this._bpmnFactory.createDiBounds(),r.set("bounds",o)),I(o,{x:e.x,y:e.y,width:e.width,height:e.height})},Fv.prototype.updateFlowNodeRefs=function(e,t,n){n!==t&&(Fr(n,"bpmn:Lane")&&Rt(n.get("flowNodeRef"),e),Fr(t,"bpmn:Lane")&&Tt(t.get("flowNodeRef"),e))},Fv.prototype.updateDiConnection=function(e,t,n){var i=Hr(e),r=Hr(t),o=Hr(n);i.sourceElement&&i.sourceElement.bpmnElement!==qr(t)&&(i.sourceElement=t&&r),i.targetElement&&i.targetElement.bpmnElement!==qr(n)&&(i.targetElement=n&&o)},Fv.prototype.updateDiParent=function(e,t){if(t&&!Fr(t,"bpmndi:BPMNPlane")&&(t=t.$parent),e.$parent!==t){var n=(t||e.$parent).get("planeElement");t?(n.push(e),e.$parent=t):(Rt(n,e),e.$parent=null)}},Fv.prototype.getLaneSet=function(e){var t,n;return Fr(e,"bpmn:Lane")?((t=e.childLaneSet)||(t=this._bpmnFactory.create("bpmn:LaneSet"),e.childLaneSet=t,t.$parent=e),t):(Fr(e,"bpmn:Participant")&&(e=e.processRef),(t=(n=e.get("laneSets"))[0])||((t=this._bpmnFactory.create("bpmn:LaneSet")).$parent=e,n.push(t)),t)},Fv.prototype.updateSemanticParent=function(e,t,n){var i,r=this._translate;if(e.$parent!==t&&(!Fr(e,"bpmn:DataInput")&&!Fr(e,"bpmn:DataOutput")||(Fr(t,"bpmn:Participant")&&"processRef"in t&&(t=t.processRef),!("ioSpecification"in t)||t.ioSpecification!==e.$parent))){if(Fr(e,"bpmn:Lane"))t&&(t=this.getLaneSet(t)),i="lanes";else if(Fr(e,"bpmn:FlowElement")){if(t)if(Fr(t,"bpmn:Participant"))t=t.processRef;else if(Fr(t,"bpmn:Lane"))do{t=t.$parent.$parent}while(Fr(t,"bpmn:Lane"));i="flowElements"}else if(Fr(e,"bpmn:Artifact")){for(;t&&!Fr(t,"bpmn:Process")&&!Fr(t,"bpmn:SubProcess")&&!Fr(t,"bpmn:Collaboration");){if(Fr(t,"bpmn:Participant")){t=t.processRef;break}t=t.$parent}i="artifacts"}else if(Fr(e,"bpmn:MessageFlow"))i="messageFlows";else if(Fr(e,"bpmn:Participant")){i="participants";var o,s=e.processRef;s&&(o=function(e){for(;e&&!Fr(e,"bpmn:Definitions");)e=e.$parent;return e}(e.$parent||t),e.$parent&&(Rt(o.get("rootElements"),s),s.$parent=null),t&&(Tt(o.get("rootElements"),s),s.$parent=o))}else Fr(e,"bpmn:DataOutputAssociation")?i="dataOutputAssociations":Fr(e,"bpmn:DataInputAssociation")&&(i="dataInputAssociations");if(!i)throw new Error(r("no parent for {element} in {parent}",{element:e.id,parent:t.id}));var a;if(e.$parent&&Rt(a=e.$parent.get(i),e),t?((a=t.get(i)).push(e),e.$parent=t):e.$parent=null,n){var l=n.get(i);Rt(a,e),t&&(l||(l=[],t.set(i,l)),l.push(e))}}},Fv.prototype.updateConnectionWaypoints=function(e){Hr(e).set("waypoint",this._bpmnFactory.createDiWaypoints(e.waypoints))},Fv.prototype.updateConnection=function(e){var t,n=e.connection,i=qr(n),r=n.source,o=qr(r),s=n.target,a=qr(n.target);if(Fr(i,"bpmn:DataAssociation"))Fr(i,"bpmn:DataInputAssociation")?(i.get("sourceRef")[0]=o,t=e.parent||e.newParent||a,this.updateSemanticParent(i,a,t)):Fr(i,"bpmn:DataOutputAssociation")&&(t=e.parent||e.newParent||o,this.updateSemanticParent(i,o,t),i.targetRef=a);else{var l=Fr(i,"bpmn:SequenceFlow");i.sourceRef!==o&&(l&&(Rt(i.sourceRef&&i.sourceRef.get("outgoing"),i),o&&o.get("outgoing")&&o.get("outgoing").push(i)),i.sourceRef=o),i.targetRef!==a&&(l&&(Rt(i.targetRef&&i.targetRef.get("incoming"),i),a&&a.get("incoming")&&a.get("incoming").push(i)),i.targetRef=a)}this.updateConnectionWaypoints(n),this.updateDiConnection(n,r,s)},Fv.prototype._getLabel=function(e){return e.label||(e.label=this._bpmnFactory.createDiLabel()),e.label},e(qv,si),qv.$inject=["bpmnFactory","moddle","translate"],qv.prototype._baseCreate=si.prototype.create,qv.prototype.create=function(e,t){if("label"===e){var n=t.di||this._bpmnFactory.createDiLabel();return this._baseCreate(e,I({type:"label",di:n},fo,t))}return this.createElement(e,t)},qv.prototype.createElement=function(e,t){var n,i,r,o=this._translate,s=(t=I({},t||{})).businessObject,l=t.di;if(!s){if(!t.type)throw new Error(o("no shape type specified"));Ir(s=this._bpmnFactory.create(t.type))}if(!Vr(l,["bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane"])){var c=I({},l||{},{id:s.id+"_di"});l="root"===e?this._bpmnFactory.createDiPlane(s,c):"connection"===e?this._bpmnFactory.createDiEdge(s,c):this._bpmnFactory.createDiShape(s,c)}return Fr(s,"bpmn:Group")&&(t=I({isFrame:!0},t)),t=function(e,t,n){return b(n,(function(n){t=Hv(e,t,n)})),t}(s,t,["processRef","isInterrupting","associationDirection","isForCompensation"]),t.isExpanded&&(t=Hv(l,t,"isExpanded")),Fr(s,"bpmn:SubProcess")&&(t.collapsed=!co(s,l)),Fr(s,"bpmn:ExclusiveGateway")&&(l.isMarkerVisible=!0),a(t.triggeredByEvent)&&(s.triggeredByEvent=t.triggeredByEvent,delete t.triggeredByEvent),a(t.cancelActivity)&&(s.cancelActivity=t.cancelActivity,delete t.cancelActivity),t.eventDefinitionType&&(i=s.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=s,s.eventDefinitions=i,delete t.eventDefinitionType),n=this.getDefaultSize(s,l),t=I({id:s.id},n,t,{businessObject:s,di:l}),this._baseCreate(e,t)},qv.prototype.getDefaultSize=function(e,t){var n=qr(e);return t=t||Hr(e),Fr(n,"bpmn:SubProcess")?co(n,t)?{width:350,height:200}:{width:100,height:80}:Fr(n,"bpmn:Task")?{width:100,height:80}:Fr(n,"bpmn:Gateway")?{width:50,height:50}:Fr(n,"bpmn:Event")?{width:36,height:36}:Fr(n,"bpmn:Participant")?co(n,t)?{width:600,height:250}:{width:400,height:60}:Fr(n,"bpmn:Lane")?{width:400,height:100}:Fr(n,"bpmn:DataObjectReference")?{width:36,height:50}:Fr(n,"bpmn:DataStoreReference")?{width:50,height:50}:Fr(n,"bpmn:TextAnnotation")?{width:100,height:30}:Fr(n,"bpmn:Group")?{width:300,height:300}:{width:100,height:80}},qv.prototype.createParticipantShape=function(e){return h(e)||(e={isExpanded:e}),!1!==(e=I({type:"bpmn:Participant"},e||{})).isExpanded&&(e.processRef=this._bpmnFactory.create("bpmn:Process")),this.createShape(e)},Wv.$inject=["modeling","canvas"],Wv.prototype.preExecute=function(e){var t=this._modeling,n=e.elements,i=e.alignment;b(n,(function(e){var n={x:0,y:0};a(i.left)?n.x=i.left-e.x:a(i.right)?n.x=i.right-e.width-e.x:a(i.center)?n.x=i.center-Math.round(e.width/2)-e.x:a(i.top)?n.y=i.top-e.y:a(i.bottom)?n.y=i.bottom-e.height-e.y:a(i.middle)&&(n.y=i.middle-Math.round(e.height/2)-e.y),t.moveElements([e],n,e.parent)}))},Wv.prototype.postExecute=function(e){},Yv.$inject=["modeling"],Yv.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},Yv.prototype.postExecute=function(e){var t,n,i=e.hints||{};t=e.source,n=e.shape,O(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))},Gv.$inject=["canvas","layouter"],Gv.prototype.execute=function(e){var t=e.connection,n=e.source,i=e.target,r=e.parent,o=e.parentIndex,s=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,s)),this._canvas.addConnection(t,r,o),t},Gv.prototype.revert=function(e){var t=e.connection;return this._canvas.removeConnection(t),t.source=null,t.target=null,t};var Uv=Math.round;function Zv(e){this._modeling=e}Zv.$inject=["modeling"],Zv.prototype.preExecute=function(e){var t=e.elements,n=e.parent,i=e.parentIndex,r=e.position,o=e.hints,s=this._modeling;b(t,(function(e){u(e.x)||(e.x=0),u(e.y)||(e.y=0)}));var a=Et(y(t,(function(e){return!e.hidden})));b(t,(function(e){En(e)&&(e.waypoints=E(e.waypoints,(function(e){return{x:Uv(e.x-a.x-a.width/2+r.x),y:Uv(e.y-a.y-a.height/2+r.y)}}))),I(e,{x:Uv(e.x-a.x-a.width/2+r.x),y:Uv(e.y-a.y-a.height/2+r.y)})}));var l=bt(t),c={};b(t,(function(e){if(En(e))c[e.id]=u(i)?s.createConnection(c[e.source.id],c[e.target.id],i,e,e.parent||n,o):s.createConnection(c[e.source.id],c[e.target.id],e,e.parent||n,o);else{var t=I({},o);-1===l.indexOf(e)&&(t.autoResize=!1),kn(e)&&(t=V(t,["attach"])),c[e.id]=u(i)?s.createShape(e,F(e,["x","y","width","height"]),e.parent||n,i,t):s.createShape(e,F(e,["x","y","width","height"]),e.parent||n,t)}})),e.elements=C(c)};var Kv=Math.round;function Jv(e){this._canvas=e}function ey(e){Jv.call(this,e)}Jv.$inject=["canvas"],Jv.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?I(t,n):I(t,{x:n.x-Kv(t.width/2),y:n.y-Kv(t.height/2)}),this._canvas.addShape(t,i,r),t},Jv.prototype.revert=function(e){var t=e.shape;return this._canvas.removeShape(t),t},e(ey,Jv),ey.$inject=["canvas"];var ty=Jv.prototype.execute;ey.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,ty.call(this,e)};var ny=Jv.prototype.revert;function iy(e,t){this._canvas=e,this._modeling=t}function ry(e,t){this._modeling=e,this._elementRegistry=t}function oy(e,t){this._canvas=e,this._modeling=t}function sy(e){this._modeling=e}ey.prototype.revert=function(e){return e.shape.labelTarget=null,ny.call(this,e)},iy.$inject=["canvas","modeling"],iy.prototype.preExecute=function(e){var t=this._modeling,n=e.connection;Av(n.incoming,(function(e){t.removeConnection(e,{nested:!0})})),Av(n.outgoing,(function(e){t.removeConnection(e,{nested:!0})}))},iy.prototype.execute=function(e){var t=e.connection,n=t.parent;return e.parent=n,e.parentIndex=Mt(n.children,t),e.source=t.source,e.target=t.target,this._canvas.removeConnection(t),t.source=null,t.target=null,t},iy.prototype.revert=function(e){var t=e.connection,n=e.parent,i=e.parentIndex;return t.source=e.source,t.target=e.target,Tt(n.children,t,i),this._canvas.addConnection(t,n),t},ry.$inject=["modeling","elementRegistry"],ry.prototype.postExecute=function(e){var t=this._modeling,n=this._elementRegistry;b(e.elements,(function(e){n.get(e.id)&&(e.waypoints?t.removeConnection(e):t.removeShape(e))}))},oy.$inject=["canvas","modeling"],oy.prototype.preExecute=function(e){var t=this._modeling,n=e.shape;Av(n.incoming,(function(e){t.removeConnection(e,{nested:!0})})),Av(n.outgoing,(function(e){t.removeConnection(e,{nested:!0})})),Av(n.children,(function(e){En(e)?t.removeConnection(e,{nested:!0}):t.removeShape(e,{nested:!0})}))},oy.prototype.execute=function(e){var t=this._canvas,n=e.shape,i=n.parent;return e.oldParent=i,e.oldParentIndex=Mt(i.children,n),t.removeShape(n),n},oy.prototype.revert=function(e){var t=this._canvas,n=e.shape,i=e.oldParent,r=e.oldParentIndex;return Tt(i.children,n,r),t.addShape(n,i),n},sy.$inject=["modeling"];var ay={x:"y",y:"x"};function ly(e,t){this._layouter=e,this._canvas=t}function cy(){}function hy(){this.allShapes={},this.allConnections={},this.enclosedElements={},this.enclosedConnections={},this.topLevel={}}function uy(e){this._modeling=e}function py(e){this._helper=new uy(e)}function dy(e){this._modeling=e,this._helper=new uy(e)}function fy(e){this._modeling=e}function my(e){return e.original||e}function gy(e,t){this._modeling=e,this._rules=t}function vy(e){this._modeling=e}function yy(e){this._modeling=e}function by(e){return I({},e)}function xy(e){switch(e){case"n":case"s":return"y";case"w":case"e":return"x"}}function wy(e,t,n){var i=xy(n);return/e|s/.test(n)?e[i]>t:/n|w/.test(n)?e[i]<t:void 0}function _y(e,t){return-1!==e.indexOf(t)}function Oy(e){this._modeling=e}function Ey(e){var t={};return b(e,(function(e){t[e.id]=e.hidden,e.children&&(t=I({},t,Ey(e.children)))})),t}function ky(e,t){var n=[];return b(e,(function(e){e.hidden=t,n=n.concat(e),e.children&&(n=n.concat(ky(e.children,e.collapsed||t)))})),n}function Sy(e,t){var n=[];return b(e,(function(e){e.hidden=t[e.id],n=n.concat(e),e.children&&(n=n.concat(Sy(e.children,t)))})),n}function Cy(e){this._modeling=e}function Py(e,t){return Rt(e&&e.attachers,t)}function $y(e,t,n){if(e){var i=e.attachers;i||(e.attachers=i=[]),Tt(i,t,n)}}function Ay(){}function Ry(e,t,n){this._eventBus=e,this._elementFactory=t,this._commandStack=n;var i=this;e.on("diagram.init",(function(){i.registerHandlers(n)}))}function Ty(e){this._elementRegistry=e}function My(e,t){b(t,(function(t,n){e.set(n,t)}))}sy.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 s(e){return e[i]+e[r]/2}function a(e){return e.length-1}function l(e){return e.max-e.min}var c,h,u=n[0],p=a(n),d=n[p],f=0;b(n,(function(e,c){var h,u,d;e.elements.length<2?c&&c!==n.length-1&&(o(e,e.elements[0]),f+=l(e.range)):(u=(h=R(e.elements,i))[0],c===p&&(u=h[a(h)]),d=s(u),e.range=null,b(h,(function(n){!function(e,n){var r={y:0};r[i]=e-s(n),r[i]&&(r[ay[i]]=0,t.moveElements([n],r,n.parent))}(d,n),null!==e.range?o(e,n):e.range={min:n[i],max:n[i]+n[r]}})),c&&c!==n.length-1&&(f+=l(e.range)))})),h=Math.abs(d.range.min-u.range.max),(c=Math.round((h-f)/(n.length-1)))<n.length-1||b(n,(function(e,o){var s,a={};e!==u&&e!==d&&(s=n[o-1],e.range.max=0,b(e.elements,(function(n,o){a[ay[i]]=0,a[i]=s.range.max-n[i]+c,e.range.min!==n[i]&&(a[i]+=n[i]-e.range.min),a[i]&&t.moveElements([n],a,n.parent),e.range.max=Math.max(n[i]+n[r],o?e.range.max:0)})))}))},sy.prototype.postExecute=function(e){},ly.$inject=["layouter","canvas"],ly.prototype.execute=function(e){var t=e.connection;return I(e,{oldWaypoints:t.waypoints}),t.waypoints=this._layouter.layoutConnection(t,e.hints),t},ly.prototype.revert=function(e){var t=e.connection;return t.waypoints=e.oldWaypoints,t},cy.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=Rt(o.children,t),Tt(i.children,t,r),t.parent=i,b(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},cy.prototype.revert=function(e){var t=e.connection,n=t.parent,i=e.oldParent,r=e.oldParentIndex,o=e.delta;return Rt(n.children,t),Tt(i.children,t,r),t.parent=i,b(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},hy.prototype.add=function(e,t){return this.addAll([e],t)},hy.prototype.addAll=function(e,t){var n=function(e,t,n){s(t)&&(t=!0),h(t)&&(n=t,t=!0);var i=Ct((n=n||{}).allShapes),r=Ct(n.allConnections),o=Ct(n.enclosedElements),a=Ct(n.enclosedConnections),l=Ct(n.topLevel,t&&P(e,(function(e){return e.id})));function c(e){l[e.source.id]&&l[e.target.id]&&(l[e.id]=[e]),i[e.source.id]&&i[e.target.id]&&(a[e.id]=o[e.id]=e),r[e.id]=e}return _t(e,(function(e){if(o[e.id]=e,!e.waypoints)return i[e.id]=e,b(e.incoming,c),b(e.outgoing,c),e.children;a[e.id]=r[e.id]=e})),{allShapes:i,allConnections:r,topLevel:l,enclosedConnections:a,enclosedElements:o}}(e,!!t,this);return I(this,n),this},uy.prototype.moveRecursive=function(e,t,n){return e?this.moveClosure(this.getClosure(e),t,n):[]},uy.prototype.moveClosure=function(e,t,n,i,r){var o=this._modeling,s=e.allShapes,a=e.allConnections,l=e.enclosedConnections,c=e.topLevel,h=!1;r&&r.parent===n&&(h=!0),b(s,(function(e){o.moveShape(e,t,c[e.id]&&!h&&n,{recurse:!1,layout:!1})})),b(a,(function(e){var i=!!s[e.source.id],r=!!s[e.target.id];l[e.id]&&i&&r?o.moveConnection(e,t,c[e.id]&&!h&&n):o.layoutConnection(e,{connectionStart:i&&wm(e,e.source,t),connectionEnd:r&&_m(e,e.target,t)})}))},uy.prototype.getClosure=function(e){return(new hy).addAll(e,!0)},py.$inject=["modeling"],py.prototype.preExecute=function(e){e.closure=this._helper.getClosure(e.shapes)},py.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)},dy.$inject=["modeling"],dy.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=F(t,["x","y","width","height"]),e.oldParent=o,e.oldParentIndex=Rt(o.children,t),Tt(i.children,t,r),I(t,{parent:i,x:t.x+n.x,y:t.y+n.y}),t},dy.prototype.postExecute=function(e){var t=e.shape,n=e.delta,i=e.hints,r=this._modeling;!1!==i.layout&&(b(t.incoming,(function(e){r.layoutConnection(e,{connectionEnd:_m(e,t,n)})})),b(t.outgoing,(function(e){r.layoutConnection(e,{connectionStart:wm(e,t,n)})}))),!1!==i.recurse&&this.moveChildren(e)},dy.prototype.revert=function(e){var t=e.shape,n=e.oldParent,i=e.oldParentIndex,r=e.delta;return Tt(n.children,t,i),I(t,{parent:n,x:t.x-r.x,y:t.y-r.y}),t},dy.prototype.moveChildren=function(e){var t=e.delta,n=e.shape;this._helper.moveRecursive(n.children,t,null)},dy.prototype.getNewParent=function(e){return e.newParent||e.shape.parent},fy.$inject=["modeling"],fy.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 c(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},fy.prototype.postExecute=function(e){var t=e.connection,n=e.newSource,i=e.newTarget,r=e.dockingOrPoints,o=e.hints||{},s={};o.connectionStart&&(s.connectionStart=o.connectionStart),o.connectionEnd&&(s.connectionEnd=o.connectionEnd),!1!==o.layoutConnection&&(!n||i&&"source"!==o.docking||(s.connectionStart=s.connectionStart||my(c(r)?r[0]:r)),!i||n&&"target"!==o.docking||(s.connectionEnd=s.connectionEnd||my(c(r)?r[r.length-1]:r)),o.newWaypoints&&(s.waypoints=o.newWaypoints),this._modeling.layoutConnection(t,s))},fy.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},gy.$inject=["modeling","rules"],gy.prototype.preExecute=function(e){var t,n=this,i=this._modeling,r=this._rules,o=e.oldShape,s=e.newData,a=e.hints||{};function l(e,t,n){return r.allowed("connection.reconnect",{connection:n,source:e,target:t})}var c,h={x:s.x,y:s.y},u={x:o.x,y:o.y,width:o.width,height:o.height};t=e.newShape=e.newShape||n.createShape(s,h,o.parent,a),o.host&&i.updateAttachment(t,o.host),!1!==a.moveChildren&&(c=o.children.slice(),i.moveElements(c,{x:0,y:0},t,a));var p=o.incoming.slice(),d=o.outgoing.slice();b(p,(function(e){l(e.source,t,e)&&n.reconnectEnd(e,t,xm(e,t,u),a)})),b(d,(function(e){var i=e.target;l(t,i,e)&&n.reconnectStart(e,t,bm(e,t,u),a)}))},gy.prototype.postExecute=function(e){var t=e.oldShape;this._modeling.removeShape(t)},gy.prototype.execute=function(e){},gy.prototype.revert=function(e){},gy.prototype.createShape=function(e,t,n,i){return this._modeling.createShape(e,t,n,i)},gy.prototype.reconnectStart=function(e,t,n,i){this._modeling.reconnectStart(e,t,n,i)},gy.prototype.reconnectEnd=function(e,t,n,i){this._modeling.reconnectEnd(e,t,n,i)},vy.$inject=["modeling"],vy.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},I(t,{width:n.width,height:n.height,x:n.x,y:n.y}),t},vy.prototype.postExecute=function(e){var t=this._modeling,n=e.shape,i=e.oldBounds;!1!==(e.hints||{}).layout&&(b(n.incoming,(function(e){t.layoutConnection(e,{connectionEnd:xm(e,n,i)})})),b(n.outgoing,(function(e){t.layoutConnection(e,{connectionStart:bm(e,n,i)})})))},vy.prototype.revert=function(e){var t=e.shape,n=e.oldBounds;return I(t,{width:n.width,height:n.height,x:n.x,y:n.y}),t},yy.$inject=["modeling"],yy.prototype.preExecute=function(e){var t=e.delta,n=e.direction,i=e.movingShapes,r=e.resizingShapes,o=e.start,s={};this.moveShapes(i,t),b(r,(function(e){s[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 b(e.concat(t),(function(i){var r=i.incoming,o=i.outgoing;b(r.concat(o),(function(i){var r=i.source,o=i.target;(av(e,r)||av(e,o)||av(t,r)||av(t,o))&&(av(n,i)||n.push(i))}))})),n}(i,r),t,n,o,i,r,s)},yy.prototype.execute=function(){},yy.prototype.revert=function(){},yy.prototype.moveShapes=function(e,t){var n=this;b(e,(function(e){n._modeling.moveShape(e,t,null,{autoResize:!1,layout:!1,recurse:!1})}))},yy.prototype.resizeShapes=function(e,t,n){var i=this;b(e,(function(e){var r=function(e,t,n){var i=e.x,r=e.y,o=e.width,s=e.height,a=n.x,l=n.y;switch(t){case"n":return{x:i,y:r+l,width:o,height:s-l};case"s":return{x:i,y:r,width:o,height:s+l};case"w":return{x:i+a,y:r,width:o-a,height:s};case"e":return{x:i,y:r,width:o+a,height:s};default:throw new Error("unknown direction: "+t)}}(e,n,t);i._modeling.resizeShape(e,r,null,{attachSupport:!1,autoResize:!1,layout:!1})}))},yy.prototype.updateConnectionWaypoints=function(e,t,n,i,r,o,s){var a=this,l=r.concat(o);b(e,(function(e){var c=e.source,h=e.target,u=function(e){return E(e.waypoints,(function(e){return(e=by(e)).original&&(e.original=by(e.original)),e}))}(e),p=xy(n),d={};_y(l,c)&&_y(l,h)?(u=E(u,(function(e){return wy(e,i,n)&&(e[p]=e[p]+t[p]),e.original&&wy(e.original,i,n)&&(e.original[p]=e.original[p]+t[p]),e})),a._modeling.updateWaypoints(e,u,{labelBehavior:!1})):(_y(l,c)||_y(l,h))&&(_y(r,c)?d.connectionStart=wm(e,c,t):_y(r,h)?d.connectionEnd=_m(e,h,t):_y(o,c)?d.connectionStart=bm(e,c,s[c.id]):_y(o,h)&&(d.connectionEnd=xm(e,h,s[h.id])),a._modeling.layoutConnection(e,d))}))},Oy.$inject=["modeling"],Oy.prototype.execute=function(e){var t=e.shape,n=t.children;e.oldChildrenVisibility=Ey(n),t.collapsed=!t.collapsed;var i=ky(n,t.collapsed);return[t].concat(i)},Oy.prototype.revert=function(e){var t=e.shape,n=e.oldChildrenVisibility,i=Sy(t.children,n);return t.collapsed=!t.collapsed,[t].concat(i)},Cy.$inject=["modeling"],Cy.prototype.execute=function(e){var t=e.shape,n=e.newHost,i=t.host;return e.oldHost=i,e.attacherIdx=Py(i,t),$y(n,t),t.host=n,t},Cy.prototype.revert=function(e){var t=e.shape,n=e.newHost,i=e.oldHost,r=e.attacherIdx;return t.host=i,Py(n,t),$y(i,t,r),t},Ay.prototype.execute=function(e){var t=e.connection,n=e.newWaypoints;return e.oldWaypoints=t.waypoints,t.waypoints=n,t},Ay.prototype.revert=function(e){var t=e.connection,n=e.oldWaypoints;return t.waypoints=n,t},Ry.$inject=["eventBus","elementFactory","commandStack"],Ry.prototype.getHandlers=function(){return{"shape.append":Yv,"shape.create":Jv,"shape.delete":oy,"shape.move":dy,"shape.resize":vy,"shape.replace":gy,"shape.toggleCollapse":Oy,spaceTool:yy,"label.create":ey,"connection.create":Gv,"connection.delete":iy,"connection.move":cy,"connection.layout":ly,"connection.updateWaypoints":Ay,"connection.reconnect":fy,"elements.create":Zv,"elements.move":py,"elements.delete":ry,"elements.distribute":sy,"elements.align":Wv,"element.updateAttachment":Cy}},Ry.prototype.registerHandlers=function(e){b(this.getHandlers(),(function(t,n){e.registerHandler(n,t)}))},Ry.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)},Ry.prototype.updateAttachment=function(e,t){var n={shape:e,newHost:t};this._commandStack.execute("element.updateAttachment",n)},Ry.prototype.moveElements=function(e,t,n,i){var r,o=(i=i||{}).attach,s=n;!0===o?(r=n,s=n.parent):!1===o&&(r=null);var a={shapes:e,delta:t,newParent:s,newHost:r,hints:i};this._commandStack.execute("elements.move",a)},Ry.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)},Ry.prototype.layoutConnection=function(e,t){var n={connection:e,hints:t||{}};this._commandStack.execute("connection.layout",n)},Ry.prototype.createConnection=function(e,t,n,i,r,o){"object"==typeof n&&(o=r,r=i,i=n,n=void 0);var s={source:e,target:t,parent:r,parentIndex:n,connection:i=this._create("connection",i),hints:o};return this._commandStack.execute("connection.create",s),s.connection},Ry.prototype.createShape=function(e,t,n,i,r){"number"!=typeof i&&(r=i,i=void 0);var o,s,a=(r=r||{}).attach;e=this._create("shape",e),a?(o=n.parent,s=n):o=n;var l={position:t,shape:e,parent:o,parentIndex:i,host:s,hints:r};return this._commandStack.execute("shape.create",l),l.shape},Ry.prototype.createElements=function(e,t,n,i,r){c(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},Ry.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},Ry.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},Ry.prototype.removeElements=function(e){var t={elements:e};this._commandStack.execute("elements.delete",t)},Ry.prototype.distributeElements=function(e,t,n){var i={groups:e,axis:t,dimension:n};this._commandStack.execute("elements.distribute",i)},Ry.prototype.removeShape=function(e,t){var n={shape:e,hints:t||{}};this._commandStack.execute("shape.delete",n)},Ry.prototype.removeConnection=function(e,t){var n={connection:e,hints:t||{}};this._commandStack.execute("connection.delete",n)},Ry.prototype.replaceShape=function(e,t,n){var i={oldShape:e,newData:t,hints:n||{}};return this._commandStack.execute("shape.replace",i),i.newShape},Ry.prototype.alignElements=function(e,t){var n={elements:e,alignment:t};this._commandStack.execute("elements.align",n)},Ry.prototype.resizeShape=function(e,t,n,i){var r={shape:e,newBounds:t,minBounds:n,hints:i};this._commandStack.execute("shape.resize",r)},Ry.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)},Ry.prototype.updateWaypoints=function(e,t,n){var i={connection:e,newWaypoints:t,hints:n||{}};this._commandStack.execute("connection.updateWaypoints",i)},Ry.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)},Ry.prototype.reconnectStart=function(e,t,n,i){i||(i={}),this.reconnect(e,t,e.target,n,I(i,{docking:"source"}))},Ry.prototype.reconnectEnd=function(e,t,n,i){i||(i={}),this.reconnect(e,e.source,t,n,I(i,{docking:"target"}))},Ry.prototype.connect=function(e,t,n,i){return this.createConnection(e,t,n||{},e.parent,i)},Ry.prototype._create=function(e,t){return t instanceof ei?t:this._elementFactory.create(e,t)},Ry.prototype.toggleCollapse=function(e,t){var n={shape:e,hints:t||{}};this._commandStack.execute("shape.toggleCollapse",n)},Ty.$inject=["elementRegistry"],Ty.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 w(t,(function(t,n){return t[n]=e.get(n),t}),{})}(n,k(i));return My(n,i),e.oldProperties=o,e.changed=r,r},Ty.prototype.revert=function(e){var t=e.oldProperties,n=e.moddleElement,i=e.changed;return My(n,t),i},Ty.prototype._getVisualReferences=function(e){var t=this._elementRegistry;return Fr(e,"bpmn:DataObject")?function(e,t){return t.filter((function(t){return Fr(t,"bpmn:DataObjectReference")&&qr(t).dataObjectRef===e}))}(e,t):[]};var Dy="default",By="id",Ly="di",Ny={width:0,height:0};function jy(e,t,n,i,r){this._elementRegistry=e,this._moddle=t,this._translate=n,this._modeling=i,this._textRenderer=r}function zy(e,t){return By in e&&e[By]!==t[By]}function Iy(e,t){var n=e.businessObject,i=Hr(e);b(t,(function(e,t){t!==Ly?n.set(t,e):i&&function(e,t){b(t,(function(t,n){e.set(n,t)}))}(i,e)}))}jy.$inject=["elementRegistry","moddle","translate","modeling","textRenderer"],jy.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,s=t.businessObject,a=function(e){var t=I({},e);return Xy.forEach((function(n){n in e&&(t[n]=qr(t[n]))})),t}(e.properties),l=e.oldProperties||function(e,t){var n=k(t),i=e.businessObject,r=Hr(e);return w(n,(function(e,n){return e[n]=n!==Ly?i.get(n):function(e,t){return w(t,(function(t,n){return t[n]=e&&e.get(n),t}),{})}(r,k(t.di)),e}),{})}(t,a);return zy(a,s)&&(o.unclaim(s[By]),r.updateId(t,a[By]),o.claim(a[By],s)),Dy in a&&(a[Dy]&&n.push(r.get(a[Dy].id)),s[Dy]&&n.push(r.get(s[Dy].id))),Iy(t,a),e.oldProperties=l,e.changed=n,n},jy.prototype.postExecute=function(e){var t=e.element.label,n=t&&qr(t).name;if(n){var i=this._textRenderer.getExternalLabelBounds(t,n);this._modeling.resizeShape(t,i,Ny)}},jy.prototype.revert=function(e){var t=e.element,n=e.properties,i=e.oldProperties,r=t.businessObject,o=this._elementRegistry,s=this._moddle.ids;return Iy(t,i),zy(n,r)&&(s.unclaim(n[By]),o.updateId(t,i[By]),s.claim(i[By],r)),e.changed};var Xy=["default"];function Qy(e,t){this._canvas=e,this._modeling=t}function Fy(e,t){this._modeling=e,this._spaceTool=t}function Vy(e,t){this._modeling=e,this._translate=t}function qy(e,t){this._modeling=e,this._spaceTool=t}Qy.$inject=["canvas","modeling"],Qy.prototype.execute=function(e){var t=this._canvas,n=e.newRoot,i=n.businessObject,r=t.getRootElement(),o=r.businessObject,s=o.$parent,a=Hr(r);return t.setRootElement(n),t.removeRootElement(r),Tt(s.rootElements,i),i.$parent=s,Rt(s.rootElements,o),o.$parent=null,r.di=null,a.bpmnElement=i,n.di=a,e.oldRoot=r,[]},Qy.prototype.revert=function(e){var t=this._canvas,n=e.newRoot,i=n.businessObject,r=e.oldRoot,o=r.businessObject,s=i.$parent,a=Hr(n);return t.setRootElement(r),t.removeRootElement(n),Rt(s.rootElements,i),i.$parent=null,Tt(s.rootElements,o),o.$parent=s,n.di=null,a.bpmnElement=o,r.di=a,[]},Fy.$inject=["modeling","spaceTool"],Fy.prototype.preExecute=function(e){var t=this._spaceTool,n=this._modeling,i=e.shape,r=e.location,o=Hp(i),s=o===i,a=s?i:i.parent;qp(a).length||n.createShape({type:"bpmn:Lane"},{x:i.x+Fp,y:i.y,width:i.width-Fp,height:i.height},a);var l=[];_t(o,(function(e){return l.push(e),e.label&&l.push(e.label),e===i?[]:y(e.children,(function(e){return e!==i}))}));var c="top"===r?-120:120,h="top"===r?i.y:i.y+i.height,u=h+("top"===r?10:-10),p="top"===r?"n":"s",d=t.calculateAdjustments(l,"y",c,u);t.makeSpace(d.movingShapes,d.resizingShapes,{x:0,y:c},p,u),e.newLane=n.createShape({type:"bpmn:Lane"},{x:i.x+(s?Fp:0),y:h-("top"===r?120:0),width:i.width-(s?Fp:0),height:120},a)},Vy.$inject=["modeling","translate"],Vy.prototype.preExecute=function(e){var t=this._modeling,n=this._translate,i=e.shape,r=e.count,o=qp(i),s=o.length;if(s>r)throw new Error(n("more than {count} child lanes",{count:r}));var a,l,c,h,u,p=Math.round(i.height/r);for(u=0;u<r;u++)a=i.y+u*p,l=u===r-1?i.height-p*u:p,c={x:i.x+Fp,y:a,width:i.width-Fp,height:l},u<s?t.resizeShape(o[u],c):(h={type:"bpmn:Lane"},t.createShape(h,c,i))},qy.$inject=["modeling","spaceTool"],qy.prototype.preExecute=function(e){var t=e.shape,n=e.newBounds;!1!==e.balanced?this.resizeBalanced(t,n):this.resizeSpace(t,n)},qy.prototype.resizeBalanced=function(e,t){var n=this._modeling,i=Wp(e,t);n.resizeShape(e,t),i.forEach((function(e){n.resizeShape(e.shape,e.newBounds)}))},qy.prototype.resizeSpace=function(e,t){var n,i,r,o,s,a=this._spaceTool,l=Pn(e),c=Lp(Pn(t),l),h=Hp(e),u=[],p=[];_t(h,(function(e){return u.push(e),(Fr(e,"bpmn:Lane")||Fr(e,"bpmn:Participant"))&&p.push(e),e.children})),(c.bottom||c.top)&&(n=c.bottom||c.top,i=e.y+(c.bottom?e.height:0)+(c.bottom?-10:10),r=c.bottom?"s":"n",o=c.top>0||c.bottom<0?-n:n,s=a.calculateAdjustments(u,"y",o,i),a.makeSpace(s.movingShapes,s.resizingShapes,{x:0,y:n},r)),(c.left||c.right)&&(n=c.right||c.left,i=e.x+(c.right?e.width:0)+(c.right?-10:100),r=c.right?"e":"w",o=c.left>0||c.right<0?-n:n,s=a.calculateAdjustments(p,"x",o,i),a.makeSpace(s.movingShapes,s.resizingShapes,{x:n,y:0},r))};var Hy="flowNodeRef",Wy="lanes";function Yy(e){this._elementRegistry=e}function Gy(e){this._moddle=e}Yy.$inject=["elementRegistry"],Yy.prototype._computeUpdates=function(e,t){var n=[],i=[],r={},o=[];function s(e){-1===n.indexOf(e)&&(o.push(e),n.push(e))}function a(e){if(!e.parent)return[];var t=function(e){var t=Hp(e);return r[t.id]||(r[t.id]=Vp(t)),r[t.id]}(e);return t.filter((function(t){return n=e,i=Pn(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=Hp(e);if(t&&-1===n.indexOf(t)){var i=t.children.filter((function(e){return Fr(e,"bpmn:FlowNode")}));i.forEach(s),n.push(t)}})),e.forEach(s),o.forEach((function(e){var t=e.businessObject,n=t.get(Wy).slice(),r=a(e);i.push({flowNode:t,remove:n,add:r})})),t.forEach((function(e){var t=e.businessObject;e.parent||t.get(Hy).forEach((function(e){i.push({flowNode:e,remove:[t],add:[]})}))})),i},Yy.prototype.execute=function(e){var t=e.updates;return t||(t=e.updates=this._computeUpdates(e.flowNodeShapes,e.laneShapes)),t.forEach((function(e){var t=e.flowNode,n=t.get(Wy);e.remove.forEach((function(e){Rt(n,e),Rt(e.get(Hy),t)})),e.add.forEach((function(e){Tt(n,e),Tt(e.get(Hy),t)}))})),[]},Yy.prototype.revert=function(e){return e.updates.forEach((function(e){var t=e.flowNode,n=t.get(Wy);e.add.forEach((function(e){Rt(n,e),Rt(e.get(Hy),t)})),e.remove.forEach((function(e){Tt(n,e),Tt(e.get(Hy),t)}))})),[]},Gy.$inject=["moddle"],Gy.prototype.execute=function(e){var t=this._moddle.ids,n=e.id,i=e.element;return e.claiming?t.claim(n,i):t.unclaim(n),[]},Gy.prototype.revert=function(e){var t=this._moddle.ids,n=e.id,i=e.element;return e.claiming?t.unclaim(n):t.claim(n,i),[]};var Uy={fill:void 0,stroke:void 0};function Zy(e){this._commandStack=e,this._normalizeColor=function(e){if(e){if(d(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)}}}Zy.$inject=["commandStack"],Zy.prototype.postExecute=function(e){var t=e.elements,n=e.colors||Uy,i=this,r={};"fill"in n&&I(r,{"background-color":this._normalizeColor(n.fill)}),"stroke"in n&&I(r,{"border-color":this._normalizeColor(n.stroke)}),b(t,(function(e){var t=En(e)?F(r,["border-color"]):r,n=Hr(e);if(function(e){"border-color"in e&&(e.stroke=e["border-color"]);"background-color"in e&&(e.fill=e["background-color"])}(t),kn(e))i._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:n.label,properties:{color:r["border-color"]}});else{if(!Vr(n,["bpmndi:BPMNEdge","bpmndi:BPMNShape"]))return;i._commandStack.execute("element.updateProperties",{element:e,properties:{di:t}})}}))};var Ky={width:0,height:0};function Jy(e,t,n){function i(e,t){var n=e.label||e,i=e.labelTarget||e;return function(e,t){var n=e.businessObject,i=xo(n);i&&("categoryValueRef"===i?n.categoryValueRef.value=t:n[i]=t)}(n,t),[n,i]}this.preExecute=function(t){var n=t.element,i=n.businessObject,r=t.newLabel;if(!kn(n)&&go(n)&&!vo(n)&&!eb(r)){var o=bo(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=wo(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,s=n.newBounds,a=n.hints||{};if(kn(r)||Fr(r,"bpmn:TextAnnotation"))if(kn(r)&&eb(o))!1!==a.removeShape&&e.removeShape(r,{unsetLabel:!1});else{var l=wo(i);void 0===s&&(s=t.getExternalLabelBounds(r,l)),s&&e.resizeShape(r,s,Ky)}}}function eb(e){return!e||!e.trim()}function tb(e,t,n,i){Ry.call(this,e,t,n),this._bpmnRules=i}function nb(){}Jy.$inject=["modeling","textRenderer","bpmnFactory"],e(tb,Ry),tb.$inject=["eventBus","elementFactory","commandStack","bpmnRules"],tb.prototype.getHandlers=function(){var e=Ry.prototype.getHandlers.call(this);return e["element.updateModdleProperties"]=Ty,e["element.updateProperties"]=jy,e["canvas.updateRoot"]=Qy,e["lane.add"]=Fy,e["lane.resize"]=qy,e["lane.split"]=Vy,e["lane.updateRefs"]=Yy,e["id.updateClaim"]=Gy,e["element.setColor"]=Zy,e["element.updateLabel"]=Jy,e},tb.prototype.updateLabel=function(e,t,n,i){this._commandStack.execute("element.updateLabel",{element:e,newLabel:t,newBounds:n,hints:i||{}})},tb.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)},tb.prototype.updateModdleProperties=function(e,t,n){this._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:t,properties:n})},tb.prototype.updateProperties=function(e,t){this._commandStack.execute("element.updateProperties",{element:e,properties:t})},tb.prototype.resizeLane=function(e,t,n){this._commandStack.execute("lane.resize",{shape:e,newBounds:t,balanced:n})},tb.prototype.addLane=function(e,t){var n={shape:e,location:t};return this._commandStack.execute("lane.add",n),n.newLane},tb.prototype.splitLane=function(e,t){this._commandStack.execute("lane.split",{shape:e,count:t})},tb.prototype.makeCollaboration=function(){var e=this._create("root",{type:"bpmn:Collaboration"}),t={newRoot:e};return this._commandStack.execute("canvas.updateRoot",t),e},tb.prototype.makeProcess=function(){var e={newRoot:this._create("root",{type:"bpmn:Process"})};this._commandStack.execute("canvas.updateRoot",e)},tb.prototype.updateLaneRefs=function(e,t){this._commandStack.execute("lane.updateRefs",{flowNodeShapes:e,laneShapes:t})},tb.prototype.claimId=function(e,t){this._commandStack.execute("id.updateClaim",{id:e,element:t,claiming:!0})},tb.prototype.unclaimId=function(e,t){this._commandStack.execute("id.updateClaim",{id:e,element:t})},tb.prototype.setColor=function(e,t){e.length||(e=[e]),this._commandStack.execute("element.setColor",{elements:e,colors:t})},nb.prototype.layoutConnection=function(e,t){return[(t=t||{}).connectionStart||Rn(t.source||e.source),t.connectionEnd||Rn(t.target||e.target)]};var ib=20,rb=5,ob=Math.round,sb=20,ab={"h:h":20,"v:v":20,"h:v":-10,"v:h":-10};function lb(e,t,n){var i,r,o,s=Tn(t,e,rb),a=n.split(":")[0],l=ob((t.x-e.x)/2+e.x),c=ob((t.y-e.y)/2+e.y),h=(o=s,{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/left|right/,v:/top|bottom/}[a].test(o)),u=/h|r|l/.test(a),p=!1,d=!1;return h?(i=u?{x:l,y:e.y}:{x:e.x,y:c},r=u?"h:h":"v:v"):(p=function(e,t){return!{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/./,v:/./}[t].test(e)}(s,a),r=u?"h:v":"v:h",p?u?(d=c===e.y,i={x:e.x+ib*(/l/.test(a)?-1:1),y:d?c+ib:c}):i={x:(d=l===e.x)?l+ib:l,y:e.y+ib*(/t/.test(a)?-1:1)}:i={x:l,y:c}),{waypoints:hb(e,i,r).concat(i),directions:r,turnNextDirections:d}}function cb(e){return e.split(":").reverse().join(":")}function hb(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(mb(n)){var i=function(e,t,n){return lb(e,t,n)}(e,t,n),r=function(e,t,n){var i=lb(t,e,cb(n));return{waypoints:i.waypoints.slice().reverse(),directions:cb(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:hb(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=ob((t.x-e.x)/2+e.x),r=ob((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 ub(e,t,n,i,r){var o=x(r&&r.preferredLayouts||[],"straight")[0]||"h:h",s=Tn(e,t,ab[o]||0),a=function(e,t){if(mb(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}}(s,o);n=n||Rn(e),i=i||Rn(t);var l=a.split(":"),c=gb(n,e,l[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]}(s));return function(e,t,n){var i=hb(e,t,n);return i.unshift(e),i.push(t),vb(i)}(c,gb(i,t,l[1],s),a)}function pb(e,t,n,i,r,o){var s;return c(n)&&(r=n,o=i,n=Rn(e),i=Rn(t)),r=r||[],s=-1!==(o=I({preferredLayouts:[]},o)).preferredLayouts.indexOf("straight")&&function(e,t,n,i,r){var o,s,a={};if(s=Tn(e,t),!/^(top|bottom|left|right)$/.test(s))return null;/top|bottom/.test(s)&&(o="x");/left|right/.test(s)&&(o="y");return"target"===r.preserveDocking?db(o,i,e)?(a[o]=i[o],[{x:void 0!==a.x?a.x:n.x,y:void 0!==a.y?a.y:n.y,original:{x:void 0!==a.x?a.x:n.x,y:void 0!==a.y?a.y:n.y}},{x:i.x,y:i.y}]):null:db(o,n,t)?(a[o]=n[o],[{x:n.x,y:n.y},{x:void 0!==a.x?a.x:i.x,y:void 0!==a.y?a.y:i.y,original:{x:void 0!==a.x?a.x:i.x,y:void 0!==a.y?a.y:i.y}}]):null}(e,t,n,i,o),s||(s=o.connectionEnd&&function(e,t,n,i){var r=i.slice().reverse();return r=fb(e,t,n,r),r?r.reverse():null}(t,e,i,r),s||((s=o.connectionStart&&fb(e,t,n,r))||(!o.connectionStart&&!o.connectionEnd&&r&&r.length?r:ub(e,t,n,i,o))))}function db(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 fb(e,t,n,i){if(function(e){return e.length<3||!(e.length>4)&&!!g(e,(function(t,n){var i=e[n-1];return i&&Dt(t,i)<3}))}(i))return null;var r,o=i[0],s=i.slice();return s[0]=n,s[1]=function(e,t,n){switch(Nt(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}}(s[1],o,n),r=function(e,t,n){var i;for(i=e.length-2;0!==i;i--)if(zt(e[i],t,sb)||zt(e[i],n,sb))return e.slice(i);return e}(s,e,t),r!==s&&(s=fb(e,t,n,r)),s&&Nt(s)?null:s}function mb(e){return e&&/t|r|b|l/.test(e)}function gb(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 vb(e){return e.reduce((function(t,n,i){return Bt(t[t.length-1],e[i+1],n,0)||t.push(n),t}),[])}var yb=-10,bb=40,xb={top:"bottom","top-right":"bottom-left","top-left":"bottom-right",right:"left",bottom:"top","bottom-right":"top-left","bottom-left":"top-right",left:"right"},wb={top:"t",right:"r",bottom:"b",left:"l"};function _b(){}function Ob(e,t){return Fr(t,"bpmn:Participant")?"source":Fr(e,"bpmn:Participant")?"target":Cb(t)?"source":Cb(e)||Fr(t,"bpmn:Event")?"target":Fr(e,"bpmn:Event")?"source":null}function Eb(e){return Cb(e)?"target":"source"}function kb(e,t){return e?e.original||e:Rn(t)}function Sb(e,t){return Fr(t,"bpmn:Activity")&&Fr(e,"bpmn:BoundaryEvent")&&t.businessObject.isForCompensation}function Cb(e){return Fr(e,"bpmn:SubProcess")&&co(e)}function Pb(e,t){return e===t}function $b(e){var t=/right|left/.exec(e);return t&&t[0]}function Ab(e){var t=/top|bottom/.exec(e);return t&&t[0]}function Rb(e){return"right"===e||"left"===e}function Tb(e,t){var n=t.waypoints,i=n&&n.length&&Tn(n[0],e);return"top"===i?["t:r"]:"right"===i?["r:b"]:"left"===i?["l:t"]:["b:l"]}function Mb(e,t,n){var i,r,o,s,a=Rn(e),l=Rn(t),c=(s=(o=e).host,Tn(Rn(o),s,yb)),h=Pb(e.host,t),u=-1!==["top","right","bottom","left"].indexOf(c),p=Tn(l,a,{x:e.width/2+t.width/2,y:e.height/2+t.height/2});return h?function(e,t,n,i,r){var o,s=t?e:Ab(e),a=wb[s];o=t?Rb(e)?Db("y",n,i,r)?"h":"b":Db("x",n,i,r)?"v":"l":"v";return[a+":"+o]}(c,u,e,t,n):(i=function(e,t,n){if(n)return wb[e];if(Pb(Ab(e),Ab(t))||function(e,t){return xb[e]===t}($b(e),$b(t)))return wb[Ab(e)];return wb[$b(e)]}(c,p,u),r=function(e,t,n){if(n)return Rb(e)?function(e,t){var n=$b(e),i=xb[n];return-1!==t.indexOf(i)}(e,t)||Pb(e,t)?"h":"v":function(e,t){var n=Ab(e),i=xb[n];return-1!==t.indexOf(i)}(e,t)||Pb(e,t)?"v":"h";return Rb(t)||Pb(Ab(e),Ab(t))&&$b(t)?"h":"v"}(c,p,u),[i+":"+r])}function Db(e,t,n,i){var r=bb;return!(Bb(e,i,n,r)||Bb(e,i,{x:n.x+n.width,y:n.y+n.height},r)||Bb(e,i,Rn(t),r))}function Bb(e,t,n,i){return Math.abs(t[e]-n[e])<i}function Lb(e){return I({original:e.point.original||e.point},e.actual)}function Nb(e,t){this._elementRegistry=e,this._graphicsFactory=t}e(_b,nb),_b.prototype.layoutConnection=function(e,t){t||(t={});var n,i,r=t.source||e.source,o=t.target||e.target,s=t.waypoints||e.waypoints,a=t.connectionStart,l=t.connectionEnd;return a||(a=kb(s&&s[0],r)),l||(l=kb(s&&s[s.length-1],o)),(Fr(e,"bpmn:Association")||Fr(e,"bpmn:DataAssociation"))&&s&&!Sb(r,o)?[].concat([a],s.slice(1,-1),[l]):(Fr(e,"bpmn:MessageFlow")?n=function(e,t){return{preferredLayouts:["straight","v:v"],preserveDocking:Ob(e,t)}}(r,o):(Fr(e,"bpmn:SequenceFlow")||Sb(r,o))&&(n=r===o?{preferredLayouts:Tb(r,e)}:Fr(r,"bpmn:BoundaryEvent")?{preferredLayouts:Mb(r,o,l)}:Cb(r)||Cb(o)?function(e){return{preferredLayouts:["straight","h:h"],preserveDocking:Eb(e)}}(r):Fr(r,"bpmn:Gateway")?{preferredLayouts:["v:h"]}:Fr(o,"bpmn:Gateway")?{preferredLayouts:["h:v"]}:{preferredLayouts:["h:h"]}),n&&(i=vb(pb(r,o,a,l,s,n=I(n,t)))),i||[a,l])},Nb.$inject=["elementRegistry","graphicsFactory"],Nb.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(Lb(i)),o.push(Lb(r)),o},Nb.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}},Nb.prototype._getIntersection=function(e,t,n){return Mn(this._getShapePath(e),this._getConnectionPath(t),n)},Nb.prototype._getConnectionPath=function(e){return this._graphicsFactory.getConnectionPath(e)},Nb.prototype._getShapePath=function(e){return this._graphicsFactory.getShapePath(e)},Nb.prototype._getGfx=function(e){return this._elementRegistry.getGraphics(e)};var jb={__init__:["modeling","bpmnUpdater"],__depends__:[xg,Kg,tv,rv,fp,$v,Bv,Xv,Es,Ms,Cv],bpmnFactory:["type",Qv],bpmnUpdater:["type",Fv],elementFactory:["type",qv],modeling:["type",tb],layouter:["type",_b],connectionDocking:["type",Nb]},zb=new ks("tt");function Ib(e,t){e.style.display=!1===t?"none":""}var Xb="djs-tooltip",Qb="."+Xb;function Fb(e,t){var n,i;this._eventBus=e,this._canvas=t,this._ids=zb,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=(n=t.getContainer(),J(i=we('<div class="djs-tooltip-container" />'),{position:"absolute",width:"0",height:"0"}),n.insertBefore(i,n.firstChild),i);var r=this;ve.bind(this._tooltipRoot,Qb,"mousedown",(function(e){e.stopPropagation()})),ve.bind(this._tooltipRoot,Qb,"mouseover",(function(e){r.trigger("mouseover",e)})),ve.bind(this._tooltipRoot,Qb,"mouseout",(function(e){r.trigger("mouseout",e)})),this._init()}Fb.$inject=["eventBus","canvas"],Fb.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=I({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t},Fb.prototype.trigger=function(e,t){var n=t.delegateTarget||t.target,i=this.get(ee(n,"data-tooltip-id"));i&&("mouseover"===e&&i.timeout&&this.clearTimeout(i),"mouseout"===e&&i.timeout&&(i.timeout=1e3,this.setTimeout(i)))},Fb.prototype.get=function(e){return"string"!=typeof e&&(e=e.id),this._tooltips[e]},Fb.prototype.clearTimeout=function(e){if(e=this.get(e)){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}},Fb.prototype.setTimeout=function(e){if(e=this.get(e)){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout((function(){t.remove(e)}),e.timeout)}},Fb.prototype.remove=function(e){var t=this.get(e);t&&(Ee(t.html),Ee(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])},Fb.prototype.show=function(){Ib(this._tooltipRoot)},Fb.prototype.hide=function(){Ib(this._tooltipRoot,!1)},Fb.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},Fb.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)),d(i)&&(i=we(i)),J(t=we('<div data-tooltip-id="'+n+'" class="'+Xb+'">'),{position:"absolute"}),t.appendChild(i),e.type&&ne(t).add("djs-tooltip-"+e.type),e.className&&ne(t).add(e.className),e.htmlContainer=t,r.appendChild(t),this._tooltips[n]=e,this._updateTooltip(e)},Fb.prototype._updateTooltip=function(e){var t=e.position;!function(e,t,n){J(e,{left:t+"px",top:n+"px"})}(e.htmlContainer,t.x,t.y)},Fb.prototype._updateTooltipVisibilty=function(e){b(this._tooltips,(function(t){var n=t.show,i=t.htmlContainer,r=!0;n&&((n.minZoom>e.scale||n.maxZoom<e.scale)&&(r=!1),Ib(i,r))}))},Fb.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 Vb={__init__:["tooltips"],tooltips:["type",Fb]},qb="flow elements must be children of pools/participants";function Hb(e,t,n){e.on(["shape.move.rejected","create.rejected"],(function(e){var i,r,o,s=e.context,a=s.shape;Fr(s.target,"bpmn:Collaboration")&&Fr(a,"bpmn:FlowNode")&&(i=e,r=n(qb),t.add({position:{x:i.x+5,y:i.y+5},type:"error",timeout:o||2e3,html:"<div>"+r+"</div>"}))}))}Hb.$inject=["eventBus","tooltips","translate"];var Wb={__depends__:[Vb],__init__:["modelingFeedback"],modelingFeedback:["type",Hb]},Yb=500,Gb=1250,Ub=1500,Zb=Math.round;function Kb(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 s(e,n,i,r){if(h(i)&&(r=i,i=!1),!n.waypoints&&n.parent&&!Te(e.target).has("djs-hit-no-move")){var o=function(e){return{x:e.x+Zb(e.width/2),y:e.y+Zb(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",Ub,(function(e){var t=e.context,n=e.shape,r=i.get().slice();-1===r.indexOf(n)&&(r=[n]),r=function(e){var t=P(e,"id");return y(e,(function(e){for(;e=e.parent;)if(t[e.id])return!1;return!0}))}(r),I(t,{shapes:r,validatedShapes:r,shape:n})})),e.on("shape.move.start",Gb,(function(e){var t=e.context,n=t.validatedShapes;if(!(t.canExecute=o(n)))return!1})),e.on("shape.move.move",Yb,(function(e){var t,n=e.context,i=n.validatedShapes,r=e.hover,s={x:e.dx,y:e.dy};t=o(i,s,{x:e.x,y:e.y},r),n.delta=s,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,s=t.shapes;if(!1===r)return!1;i.x=Zb(i.x),i.y=Zb(i.y),0===i.x&&0===i.y||n.moveElements(s,i,t.target,{primaryShape:t.shape,attach:o})})),e.on("element.mousedown",(function(e){if(ss(e)){var t=ns(e);if(!t)throw new Error("must supply DOM mousedown event");return s(t,e.element)}})),this.start=s}Kb.$inject=["eventBus","dragging","modeling","selection","rules"];var Jb=499,ex="djs-dragging",tx="drop-ok",nx="drop-not-ok",ix="new-parent",rx="attach-ok";function ox(e,t,n,r){function o(e){var t=function(e){var t=y(e,(function(t){return!En(t)||g(e,T({id:t.source.id}))&&g(e,T({id:t.target.id}))}));return t}(s(e));return t}function s(e){var t=Ot(e,!0),n=E(t,(function(e){return(e.incoming||[]).concat(e.outgoing||[])}));return i(t.concat(n))}function a(e,n){[rx,tx,nx,ix].forEach((function(i){i===n?t.addMarker(e,i):t.removeMarker(e,i)}))}e.on("shape.move.start",Jb,(function(e){var a=e.context,l=a.shapes,c=a.allDraggedElements,h=o(l);if(!a.dragGroup){var u=Ie("g");Ae(u,n.cls("djs-drag-group",["no-events"])),Se(t.getActiveLayer(),u),a.dragGroup=u}h.forEach((function(e){r.addDragger(e,a.dragGroup)})),b(c=c?i([c,s(l)]):s(l),(function(e){t.addMarker(e,ex)})),a.allDraggedElements=c,a.differentParents=1!==S(P(l,(function(e){return e.parent&&e.parent.id})))})),e.on("shape.move.move",Jb,(function(e){var t=e.context,n=t.dragGroup,i=t.target,r=t.shape.parent,o=t.canExecute;i&&("attach"===o?a(i,rx):t.canExecute&&i&&i.id!==r.id?a(i,ix):a(i,t.canExecute?tx:nx)),di(n,e.dx,e.dy)})),e.on(["shape.move.out","shape.move.cleanup"],(function(e){var t=e.context.target;t&&a(t,null)})),e.on("shape.move.cleanup",(function(e){var n=e.context,i=n.allDraggedElements,r=n.dragGroup;b(i,(function(e){t.removeMarker(e,ex)})),r&&De(r)})),this.makeDraggable=function(e,n,i){r.addDragger(n,e.dragGroup),i&&t.addMarker(n,ex),e.allDraggedElements?e.allDraggedElements.push(n):e.allDraggedElements=[n]}}ox.$inject=["eventBus","canvas","styles","previewSupport"];var sx={__depends__:[ds,Es,gs,uh,sh,Tu],__init__:["move","movePreview"],move:["type",Kb],movePreview:["type",ox]},ax=".djs-palette-toggle",lx=".entry",cx=ax+", "+lx,hx="djs-palette-",ux="open",px="two-column";function dx(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 fx(e,t){var n=t.getPaletteEntries();return p(n)?n(e):(b(n,(function(t,n){e[n]=t})),e)}dx.$inject=["eventBus","canvas"],dx.prototype.registerProvider=function(e,t){t||(t=e,e=1e3),this._eventBus.on("palette.getProviders",e,(function(e){e.providers.push(t)})),this._rebuild()},dx.prototype.getEntries=function(){return this._getProviders().reduce(fx,{})},dx.prototype._rebuild=function(){this._diagramInitialized&&(this._getProviders().length&&(this._container||this._init(),this._update()))},dx.prototype._init=function(){var e=this,t=this._eventBus,n=this._getParentContainer(),i=this._container=we(dx.HTML_MARKUP);n.appendChild(i),ne(n).add(hx+"shown"),ve.bind(i,cx,"click",(function(t){if(oe(t.delegateTarget,ax))return e.toggle();e.trigger("click",t)})),fe.bind(i,"mousedown",(function(e){e.stopPropagation()})),ve.bind(i,lx,"dragstart",(function(t){e.trigger("dragstart",t)})),t.on("canvas.resized",this._layoutChanged,this),t.fire("palette.create",{container:i})},dx.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"palette.getProviders",providers:[]});return this._eventBus.fire(t),t.providers},dx.prototype._toggleState=function(e){e=e||{};var t,n=this._getParentContainer(),i=this._container,r=this._eventBus,o=ne(i),s=ne(n);t="twoColumn"in e?e.twoColumn:this._needsCollapse(n.clientHeight,this._entries||{}),o.toggle(px,t),s.toggle(hx+px,t),"open"in e&&(o.toggle(ux,e.open),s.toggle(hx+ux,e.open)),r.fire("palette.changed",{twoColumn:t,open:this.isOpen()})},dx.prototype._update=function(){var e=_e(".djs-palette-entries",this._container),t=this._entries=this.getEntries();re(e),b(t,(function(t,n){var i=t.group||"default",r=_e("[data-group="+js(i)+"]",e);r||(ee(r=we('<div class="group"></div>'),"data-group",i),e.appendChild(r));var o=t.html||(t.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),s=we(o);if(r.appendChild(s),!t.separator&&(ee(s,"data-action",n),t.title&&ee(s,"title",t.title),t.className&&function(e,t){var n=ne(e);(c(t)?t:t.split(/\s+/g)).forEach((function(e){n.add(e)}))}(s,t.className),t.imageUrl)){var a=we("<img>");ee(a,"src",t.imageUrl),s.appendChild(a)}})),this.open()},dx.prototype.trigger=function(e,t,n){var i,r,o=t.delegateTarget||t.target;return o?(i=ee(o,"data-action"),r=t.originalEvent||t,this.triggerEntry(i,e,r,n)):t.preventDefault()},dx.prototype.triggerEntry=function(e,t,n,i){var r,o;if((r=this._entries[e])&&(o=r.action,!1!==this._eventBus.fire("palette.trigger",{entry:r,event:n}))){if(p(o)){if("click"===t)return o(n,i)}else if(o[t])return o[t](n,i);n.preventDefault()}},dx.prototype._layoutChanged=function(){this._toggleState({})},dx.prototype._needsCollapse=function(e,t){return e<46*Object.keys(t).length+50},dx.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})},dx.prototype.open=function(){this._toggleState({open:!0})},dx.prototype.toggle=function(){this.isOpen()?this.close():this.open()},dx.prototype.isActiveTool=function(e){return e&&this._activeTool===e},dx.prototype.updateToolHighlight=function(e){var t;this._toolsContainer||(t=_e(".djs-palette-entries",this._container),this._toolsContainer=_e("[data-group=tools]",t)),b(this._toolsContainer.children,(function(t){var n=t.getAttribute("data-action");if(n){var i=ne(t);n=n.replace("-tool",""),i.contains("entry")&&n===e?i.add("highlighted-entry"):i.remove("highlighted-entry")}}))},dx.prototype.isOpen=function(){return ne(this._container).has(ux)},dx.prototype._getParentContainer=function(){return this._canvas.getContainer()},dx.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';var mx={__init__:["palette"],palette:["type",dx]},gx="crosshair";function vx(e,t,n,i,r,o,s){this._selection=r,this._dragging=n,this._mouse=s;var a=this,l=function(e){var n,i=t.getActiveLayer();Ae(n=e.frame=Ie("rect"),{class:"djs-lasso-overlay",width:1,height:1,x:0,y:0}),Se(i,n)},c=function(e){var t=e.frame,n=e.bbox;Ae(t,{x:n.x,y:n.y,width:n.width,height:n.height})},h=function(e){e.frame&&De(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(){a.activateLasso(t.originalEvent,!0)}))})),e.on("lasso.end",(function(e){var t=yx(e),n=i.filter((function(e){return e}));a.select(n,t)})),e.on("lasso.start",(function(e){var t=e.context;t.bbox=yx(e),l(t)})),e.on("lasso.move",(function(e){var t=e.context;t.bbox=yx(e),c(t)})),e.on("lasso.cleanup",(function(e){var t=e.context;h(t)})),e.on("element.mousedown",1500,(function(e){if(ls(e))return a.activateLasso(e.originalEvent),!0}))}function yx(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}}vx.$inject=["eventBus","canvas","dragging","elementRegistry","selection","toolManager","mouse"],vx.prototype.activateLasso=function(e,t){this._dragging.init(e,"lasso",{autoActivate:t,cursor:gx,data:{context:{}}})},vx.prototype.activateSelection=function(e,t){this._dragging.init(e,"lasso.selection",{trapClick:!1,autoActivate:t,cursor:gx,data:{context:{}}})},vx.prototype.select=function(e,t){var n=function(e,t){var n={};return b(e,(function(e){var i=e;i.waypoints&&(i=Et(i)),!u(t.y)&&i.x>t.x&&(n[e.id]=e),!u(t.x)&&i.y>t.y&&(n[e.id]=e),i.x>t.x&&i.y>t.y&&(u(t.width)&&u(t.height)&&i.width+i.x<t.width+t.x&&i.height+i.y<t.height+t.y?n[e.id]=e:u(t.width)&&u(t.height)||(n[e.id]=e))})),n}(e,t);this._selection.select(C(n))},vx.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)},vx.prototype.isActive=function(){var e=this._dragging.context();return e&&/^lasso/.test(e.prefix)};var bx={__depends__:[sv,Yu],__init__:["lassoTool"],lassoTool:["type",vx]},xx=1500,wx="grab";function _x(e,t,n,i,r,o){this._dragging=n,this._mouse=o;var s=this,a=i.get("keyboard",!1);r.registerTool("hand",{tool:"hand",dragging:"hand.move"}),e.on("element.mousedown",xx,(function(e){if(as(e))return s.activateMove(e.originalEvent,!0),!1})),a&&a.addListener(xx,(function(e){if(Ox(e.keyEvent)&&!s.isActive()){var t=s._mouse.getLastMoveEvent();s.activateMove(t,!!t)}}),"keyboard.keydown"),a&&a.addListener(xx,(function(e){Ox(e.keyEvent)&&s.isActive()&&s.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(){s.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!as(t)&&n&&e.once("hand.move.ended",(function(e){s.activateHand(e.originalEvent,!0,!0)})),!1}))}function Ox(e){return ha("Space",e)}_x.$inject=["eventBus","canvas","dragging","injector","toolManager","mouse"],_x.prototype.activateMove=function(e,t,n){"object"==typeof t&&(n=t,t=!1),this._dragging.init(e,"hand.move",{autoActivate:t,cursor:wx,data:{context:n||{}}})},_x.prototype.activateHand=function(e,t,n){this._dragging.init(e,"hand",{trapClick:!1,autoActivate:t,cursor:wx,data:{context:{reactivate:n}}})},_x.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateHand(e,!!e)},_x.prototype.isActive=function(){var e=this._dragging.context();return!!e&&/^(hand|hand\.move)$/.test(e.prefix)};var Ex={__depends__:[sv,Yu],__init__:["handTool"],handTool:["type",_x]},kx="connect-ok",Sx="connect-not-ok";function Cx(e,t,n,i,r,o,s){var a=this;this._dragging=t,this._rules=o,this._mouse=s,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=a.canStartConnect(n);null!==r&&(t.startTarget=n,i.addMarker(n,r?kx:Sx))})),e.on(["global-connect.out","global-connect.cleanup"],(function(e){var t=e.context.startTarget,n=e.context.canStartConnect;t&&i.removeMarker(t,n?kx:Sx)})),e.on(["global-connect.ended"],(function(t){var i=t.context.startTarget,r={x:t.x,y:t.y};if(a.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}))}Cx.$inject=["eventBus","dragging","connect","canvas","toolManager","rules","mouse"],Cx.prototype.start=function(e,t){this._dragging.init(e,"global-connect",{autoActivate:t,trapClick:!1,data:{context:{}}})},Cx.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();return this.start(e,!!e)},Cx.prototype.isActive=function(){var e=this._dragging.context();return e&&/^global-connect/.test(e.prefix)},Cx.prototype.canStartConnect=function(e){return this._rules.allowed("connection.start",{source:e})};var Px={__depends__:[bu,uh,sh,sv,Yu],globalConnect:["type",Cx]};function $x(e,t,n,i,r,o,s,a){this._palette=e,this._create=t,this._elementFactory=n,this._spaceTool=i,this._lassoTool=r,this._handTool=o,this._globalConnect=s,this._translate=a,e.registerProvider(this)}$x.$inject=["palette","create","elementFactory","spaceTool","lassoTool","handTool","globalConnect","translate"],$x.prototype.getPaletteEntries=function(){var e={},t=this._create,n=this._elementFactory,i=this._spaceTool,r=this._lassoTool,o=this._handTool,s=this._globalConnect,a=this._translate;function l(e,i,r,o,s){function l(i){var r=n.createShape(I({type:e},s));s&&(Hr(r).isExpanded=s.isExpanded);t.start(i,r)}var c=e.replace(/^bpmn:/,"");return{group:i,className:r,title:o||a("Create {type}",{type:c}),action:{dragstart:l,click:l}}}function c(e){var i=n.createShape({type:"bpmn:SubProcess",x:0,y:0,isExpanded:!0}),r=n.createShape({type:"bpmn:StartEvent",x:40,y:82,parent:i});t.start(e,[i,r],{hints:{autoSelect:[i]}})}function h(e){t.start(e,n.createParticipantShape())}return I(e,{"hand-tool":{group:"tools",className:"bpmn-icon-hand-tool",title:a("Activate the hand tool"),action:{click:function(e){o.activateHand(e)}}},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:a("Activate the lasso tool"),action:{click:function(e){r.activateSelection(e)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:a("Activate the create/remove space tool"),action:{click:function(e){i.activateSelection(e)}}},"global-connect-tool":{group:"tools",className:"bpmn-icon-connection-multi",title:a("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",a("Create StartEvent")),"create.intermediate-event":l("bpmn:IntermediateThrowEvent","event","bpmn-icon-intermediate-event-none",a("Create Intermediate/Boundary Event")),"create.end-event":l("bpmn:EndEvent","event","bpmn-icon-end-event-none",a("Create EndEvent")),"create.exclusive-gateway":l("bpmn:ExclusiveGateway","gateway","bpmn-icon-gateway-none",a("Create Gateway")),"create.task":l("bpmn:Task","activity","bpmn-icon-task",a("Create Task")),"create.data-object":l("bpmn:DataObjectReference","data-object","bpmn-icon-data-object",a("Create DataObjectReference")),"create.data-store":l("bpmn:DataStoreReference","data-store","bpmn-icon-data-store",a("Create DataStoreReference")),"create.subprocess-expanded":{group:"activity",className:"bpmn-icon-subprocess-expanded",title:a("Create expanded SubProcess"),action:{dragstart:c,click:c}},"create.participant-expanded":{group:"collaboration",className:"bpmn-icon-participant",title:a("Create Pool/Participant"),action:{dragstart:h,click:h}},"create.group":l("bpmn:Group","artifact","bpmn-icon-group",a("Create Group"))}),e};var Ax={__depends__:[mx,Vu,Cv,bx,Ex,Px,Go],__init__:["paletteProvider"],paletteProvider:["type",$x]},Rx=250;function Tx(e,t,n,i,r){Ds.call(this,e),e.on("shape.move.move",Rx,(function(e){var o=e.context,s=o.canExecute;o.visualReplacements||(o.visualReplacements={}),s&&s.replacements?function(e){b(e.canExecute.replacements,(function(o){var s=o.oldElementId,a={type:o.newElementType};if(!e.visualReplacements[s]){var l=t.get(s);I(a,{x:l.x,y:l.y});var c=n.createShape(a);i.addShape(c,l.parent);var h=_e('[data-element-id="'+js(l.id)+'"]',e.dragGroup);h&&Ae(h,{display:"none"});var u=r.addDragger(c,e.dragGroup);e.visualReplacements[s]=u,i.removeShape(c)}}))}(o):function(e){var t=e.visualReplacements;b(t,(function(n,i){var r=_e('[data-element-id="'+js(i)+'"]',e.dragGroup);r&&Ae(r,{display:"inline"}),n.remove(),t[i]&&delete t[i]}))}(o)}))}Tx.$inject=["eventBus","elementRegistry","elementFactory","canvas","previewSupport"],e(Tx,Ds);var Mx={__depends__:[Tu],__init__:["bpmnReplacePreview"],bpmnReplacePreview:["type",Tx]},Dx=1250,Bx=40,Lx=20,Nx=10,jx=20,zx=["x","y"],Ix=Math.abs;function Xx(e){e.on(["connect.hover","connect.move","connect.end"],Dx,(function(e){var t=e.context,n=t.canExecute,i=t.start,r=t.hover,o=t.source,s=t.target;e.originalEvent&&ca(e.originalEvent)||(t.initialConnectionStart||(t.initialConnectionStart=t.connectionStart),n&&r&&function(e,t,n){zx.forEach((function(i){var r=Vx(i,t);e[i]<t[i]+n?ou(e,i,t[i]+n):e[i]>t[i]+r-n&&ou(e,i,t[i]+r-n)}))}(e,r,function(e){return Fr(e,"bpmn:Task")?Nx:Lx}(r)),r&&function(e,t){return O(t,(function(t){return Fx(e,t)}))}(n,["bpmn:Association","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:SequenceFlow"])?(t.connectionStart=iu(i),Vr(r,["bpmn:Event","bpmn:Gateway"])&&Qx(e,iu(r)),Vr(r,["bpmn:Task","bpmn:SubProcess"])&&function(e,t){var n=iu(t);zx.forEach((function(i){(function(e,t,n){return e[n]>t[n]+jx&&e[n]<t[n]+Vx(n,t)-jx})(e,t,i)&&ou(e,i,n[i])}))}(e,r),Fr(o,"bpmn:BoundaryEvent")&&s===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=iu(n),o=Tn(r,i,-10),s=[];/top|bottom/.test(o)&&s.push("x");/left|right/.test(o)&&s.push("y");s.forEach((function(t){var n,i=e[t];Ix(i-r[t])<Bx&&(n=i>r[t]?r[t]+Bx:r[t]-Bx,ou(e,t,n))}))}(e)):Fx(n,"bpmn:MessageFlow")?(Fr(i,"bpmn:Event")&&(t.connectionStart=iu(i)),Fr(r,"bpmn:Event")&&Qx(e,iu(r))):t.connectionStart=t.initialConnectionStart)}))}function Qx(e,t){ou(e,"x",t.x),ou(e,"y",t.y)}function Fx(e,t){return e&&e.type===t}function Vx(e,t){return"x"===e?t.width:t.height}function qx(){this._targets={},this._snapOrigins={},this._snapLocations=[],this._defaultSnaps={}}function Hx(){this._snapValues={}}Xx.$inject=["eventBus"],qx.prototype.getSnapOrigin=function(e){return this._snapOrigins[e]},qx.prototype.setSnapOrigin=function(e,t){this._snapOrigins[e]=t,-1===this._snapLocations.indexOf(e)&&this._snapLocations.push(e)},qx.prototype.addDefaultSnap=function(e,t){var n=this._defaultSnaps[e];n||(n=this._defaultSnaps[e]=[]),n.push(t)},qx.prototype.getSnapLocations=function(){return this._snapLocations},qx.prototype.setSnapLocations=function(e){this._snapLocations=e},qx.prototype.pointsForTarget=function(e){var t=e.id||e,n=this._targets[t];return n||(n=this._targets[t]=new Hx).initDefaults(this._defaultSnaps),n},Hx.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)},Hx.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],Jh(r-e)<=n)return r}(e[n],r[n],i)},Hx.prototype.initDefaults=function(e){var t=this;b(e||{},(function(e,n){b(e,(function(e){t.add(n,e)}))}))};var Wx=1250;function Yx(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"],Wx,(function(e){var t=e.context,r=t.shape,o=t.snapContext,s=t.target;if((!e.originalEvent||!ca(e.originalEvent))&&!ru(e)&&s){var a=o.pointsForTarget(s);a.initialized||((a=i.addSnapTargetPoints(a,r,s)).initialized=!0),n.snap(e,a)}})),t.on(["create.cleanup","shape.move.cleanup"],(function(){n.hide()}))}Yx.$inject=["elementRegistry","eventBus","snapping"],Yx.prototype.initSnap=function(e){var t,n=this._elementRegistry,i=e.context,r=i.shape,o=i.snapContext;o||(o=i.snapContext=new qx);var s=(t=n.get(r.id)?iu(r,e):{x:e.x+iu(r).x,y:e.y+iu(r).y}).x-r.width/2,a=t.y-r.height/2,l=t.x+r.width/2,c=t.y+r.height/2;return o.setSnapOrigin("mid",{x:t.x-e.x,y:t.y-e.y}),kn(r)||(o.setSnapOrigin("top-left",{x:s-e.x,y:a-e.y}),o.setSnapOrigin("bottom-right",{x:l-e.x,y:c-e.y})),o},Yx.prototype.addSnapTargetPoints=function(e,t,n){return b(this.getSnapTargets(t,n),(function(n){if(kn(n))kn(t)&&e.add("mid",iu(n));else if(En(n)){if(n.waypoints.length<3)return;b(n.waypoints.slice(1,-1),(function(t){e.add("mid",t)}))}else e.add("mid",iu(n))})),u(t.x)&&u(t.y)?(this._elementRegistry.get(t.id)&&e.add("mid",iu(t)),e):e},Yx.prototype.getSnapTargets=function(e,t){return su(t).filter((function(e){return!e.hidden}))};var Gx=1500;function Ux(e,t){t.invoke(Yx,this),e.on(["create.move","create.end"],Gx,Zx),e.on(["create.move","create.end","shape.move.move","shape.move.end"],Gx,(function(e){var t=e.context,n=t.canExecute,i=t.target;n&&("attach"===n||n.attach)&&!ru(e)&&function(e,t){var n,i=Pn(t),r=wg(e,t),o=e.context,s=o.shape;n=s.parent?{x:0,y:0}:Rn(s);/top/.test(r)?ou(e,"y",i.top-n.y):/bottom/.test(r)&&ou(e,"y",i.bottom-n.y);/left/.test(r)?ou(e,"x",i.left-n.x):/right/.test(r)&&ou(e,"x",i.right-n.x)}(e,i)}))}function Zx(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)&&ou(e,"x",e.x),(n&&n>=e.y||r&&r<=e.y)&&ou(e,"y",e.y)}}function Kx(e,t){return-1!==e.indexOf(t)}function Jx(e,t,n){return t?{x:e.x-n.x,y:e.y-n.y}:{x:e.x,y:e.y}}e(Ux,Yx),Ux.$inject=["eventBus","injector"],Ux.prototype.initSnap=function(e){var t=Yx.prototype.initSnap.call(this,e),n=e.shape,i=!!this._elementRegistry.get(n.id);return b(n.outgoing,(function(n){var r=n.waypoints[0];r=r.original||r,t.setSnapOrigin(n.id+"-docking",Jx(r,i,e))})),b(n.incoming,(function(n){var r=n.waypoints[n.waypoints.length-1];r=r.original||r,t.setSnapOrigin(n.id+"-docking",Jx(r,i,e))})),Fr(n,"bpmn:Participant")&&t.setSnapLocations(["top-left","bottom-right","mid"]),t},Ux.prototype.addSnapTargetPoints=function(e,t,n){Yx.prototype.addSnapTargetPoints.call(this,e,t,n);var i=this.getSnapTargets(t,n);b(i,(function(n){var i;(function(e){if(Fr(e,"bpmn:SubProcess")&&co(e))return!0;return Fr(e,"bpmn:Participant")}(n)||(i="bpmn:TextAnnotation",[t,n].every((function(e){return Fr(e,i)}))))&&(e.add("top-left",tu(n)),e.add("bottom-right",nu(n)))}));var r=this._elementRegistry;return b(t.incoming,(function(n){if(r.get(t.id)){Kx(i,n.source)||e.add("mid",Rn(n.source));var o=n.waypoints[0];e.add(n.id+"-docking",o.original||o)}})),b(t.outgoing,(function(n){if(r.get(t.id)){Kx(i,n.target)||e.add("mid",Rn(n.target));var o=n.waypoints[n.waypoints.length-1];e.add(n.id+"-docking",o.original||o)}})),Fr(n,"bpmn:SequenceFlow")&&(e=this.addSnapTargetPoints(e,t,n.parent)),e},Ux.prototype.getSnapTargets=function(e,t){return Yx.prototype.getSnapTargets.call(this,e,t).filter((function(e){return!Fr(e,"bpmn:Lane")}))};var ew=1250;function tw(e,t){var n=this;e.on(["resize.start"],(function(e){n.initSnap(e)})),e.on(["resize.move","resize.end"],ew,(function(e){var i=e.context,r=i.shape,o=r.parent,s=i.direction,a=i.snapContext;if(!(e.originalEvent&&ca(e.originalEvent)||ru(e))){var l=a.pointsForTarget(o);l.initialized||((l=n.addSnapTargetPoints(l,r,o,s)).initialized=!0),function(e){return"n"===e||"s"===e}(s)&&ou(e,"x",e.x),function(e){return"e"===e||"w"===e}(s)&&ou(e,"y",e.y),t.snap(e,l)}})),e.on(["resize.cleanup"],(function(){t.hide()}))}function nw(e,t){var n=Rn(e),i=Pn(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}tw.prototype.initSnap=function(e){var t=e.context,n=t.shape,i=t.direction,r=t.snapContext;r||(r=t.snapContext=new qx);var o=nw(n,i);return r.setSnapOrigin("corner",{x:o.x-e.x,y:o.y-e.y}),r},tw.prototype.addSnapTargetPoints=function(e,t,n,i){return b(this.getSnapTargets(t,n),(function(t){e.add("corner",nu(t)),e.add("corner",tu(t))})),e.add("corner",nw(t,i)),e},tw.$inject=["eventBus","snapping"],tw.prototype.getSnapTargets=function(e,t){return su(t).filter((function(t){return!(n=t,i=e,n.host===i||En(t)||function(e){return!!e.hidden}(t)||kn(t));var n,i}))};var iw=1e3;function rw(e){this._canvas=e,this._asyncHide=N(z(this.hide,this),iw)}rw.$inject=["canvas"],rw.prototype.snap=function(e,t){var n=e.context.snapContext,i=n.getSnapLocations(),r={x:ru(e,"x"),y:ru(e,"y")};b(i,(function(i){var o=n.getSnapOrigin(i),s={x:e.x+o.x,y:e.y+o.y};if(b(["x","y"],(function(e){var n;r[e]||void 0!==(n=t.snap(s,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),b(["x","y"],(function(t){var n=r[t];h(n)&&ou(e,t,n.originValue)}))},rw.prototype._createLine=function(e){var t=this._canvas.getLayer("snap"),n=Ie("path");return Ae(n,{d:"M0,0 L0,0"}),Te(n).add("djs-snap-line"),Se(t,n),{update:function(t){u(t)?Ae(n,"horizontal"===e?{d:"M-100000,"+t+" L+100000,"+t,display:""}:{d:"M "+t+",-100000 L "+t+", +100000",display:""}):Ae(n,{display:"none"})}}},rw.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}},rw.prototype.showSnapLine=function(e,t){var n=this.getSnapLine(e);n&&n.update(t),this._asyncHide()},rw.prototype.getSnapLine=function(e){return this._snapLines||this._createSnapLines(),this._snapLines[e]},rw.prototype.hide=function(){b(this._snapLines,(function(e){e.update()}))};var ow={__depends__:[{__init__:["createMoveSnapping","resizeSnapping","snapping"],createMoveSnapping:["type",Yx],resizeSnapping:["type",tw],snapping:["type",rw]}],__init__:["connectSnapping","createMoveSnapping"],connectSnapping:["type",Xx],createMoveSnapping:["type",Ux]};function sw(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=we(sw.BOX_HTML),this._searchInput=_e(sw.INPUT_SELECTOR,this._container),this._resultsContainer=_e(sw.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),t.on(["canvas.destroy","diagram.destroy"],this.close,this)}function aw(e,t,n){var i=function(e){var t="";return e.forEach((function(e){e.matched?t+='<strong class="'+sw.RESULT_HIGHLIGHT_CLASS+'">'+Is(e.matched)+"</strong>":t+=Is(e.normal)})),""!==t?t:null}(t),r=we(n);r.innerHTML=i,e.appendChild(r)}sw.$inject=["canvas","eventBus","overlays","selection"],sw.prototype._bindEvents=function(){var e=this;function t(t,n,i,r){e._eventMaps.push({el:t,type:i,listener:ve.bind(t,n,i,r)})}t(document,"html","click",(function(t){e.close()})),t(this._container,sw.INPUT_SELECTOR,"click",(function(e){e.stopPropagation(),e.delegateTarget.focus()})),t(this._container,sw.RESULT_SELECTOR,"mouseover",(function(t){t.stopPropagation(),e._scrollToNode(t.delegateTarget),e._preselect(t.delegateTarget)})),t(this._container,sw.RESULT_SELECTOR,"click",(function(t){t.stopPropagation(),e._select(t.delegateTarget)})),t(this._container,sw.INPUT_SELECTOR,"keydown",(function(e){ha("ArrowUp",e)&&e.preventDefault(),ha("ArrowDown",e)&&e.preventDefault()})),t(this._container,sw.INPUT_SELECTOR,"keyup",(function(t){if(ha("Escape",t))return e.close();if(ha("Enter",t)){var n=e._getCurrentResult();return n?e._select(n):e.close()}return ha("ArrowUp",t)?e._scrollToDirection(!0):ha("ArrowDown",t)?e._scrollToDirection():void(ha(["ArrowLeft","ArrowRight"],t)||e._search(t.delegateTarget.value))}))},sw.prototype._unbindEvents=function(){this._eventMaps.forEach((function(e){ve.unbind(e.el,e.type,e.listener)}))},sw.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=_e(sw.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(i),this._preselect(i)}}},sw.prototype._scrollToDirection=function(e){var t=this._getCurrentResult();if(t){var n=e?t.previousElementSibling:t.nextElementSibling;n&&(this._scrollToNode(n),this._preselect(n))}},sw.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)}},sw.prototype._clearResults=function(){re(this._resultsContainer),this._results=[],this._resetOverlay(),this._eventBus.fire("searchPad.cleared")},sw.prototype._getCurrentResult=function(){return _e(sw.RESULT_SELECTED_SELECTOR,this._resultsContainer)},sw.prototype._createResultNode=function(e,t){var n=we(sw.RESULT_HTML);return e.primaryTokens.length>0&&aw(n,e.primaryTokens,sw.RESULT_PRIMARY_HTML),aw(n,e.secondaryTokens,sw.RESULT_SECONDARY_HTML),ee(n,sw.RESULT_ID_ATTRIBUTE,t),this._resultsContainer.appendChild(n),n},sw.prototype.registerProvider=function(e){this._searchProvider=e},sw.prototype.open=function(){if(!this._searchProvider)throw new Error("no search provider registered");this.isOpen()||(this._bindEvents(),this._open=!0,ne(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))},sw.prototype.close=function(){this.isOpen()&&(this._unbindEvents(),this._open=!1,ne(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._resetOverlay(),this._eventBus.fire("searchPad.closed"))},sw.prototype.toggle=function(){this.isOpen()?this.close():this.open()},sw.prototype.isOpen=function(){return this._open},sw.prototype._preselect=function(e){var t=this._getCurrentResult();if(e!==t){t&&ne(t).remove(sw.RESULT_SELECTED_CLASS);var n=ee(e,sw.RESULT_ID_ATTRIBUTE),i=this._results[n].element;ne(e).add(sw.RESULT_SELECTED_CLASS),this._resetOverlay(i),this._canvas.scrollToElement(i,{top:400}),this._selection.select(i),this._eventBus.fire("searchPad.preselected",i)}},sw.prototype._select=function(e){var t=ee(e,sw.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)},sw.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"},o=we('<div class="'+sw.OVERLAY_CLASS+'"></div>');return J(o,r),{position:{bottom:i-t,right:n-t},show:!0,html:o}}(Et(e));this._overlayId=this._overlays.add(e,t)}},sw.CONTAINER_SELECTOR=".djs-search-container",sw.INPUT_SELECTOR=".djs-search-input input",sw.RESULTS_CONTAINER_SELECTOR=".djs-search-results",sw.RESULT_SELECTOR=".djs-search-result",sw.RESULT_SELECTED_CLASS="djs-search-result-selected",sw.RESULT_SELECTED_SELECTOR="."+sw.RESULT_SELECTED_CLASS,sw.RESULT_ID_ATTRIBUTE="data-result-id",sw.RESULT_HIGHLIGHT_CLASS="djs-search-highlight",sw.OVERLAY_CLASS="djs-search-overlay",sw.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>',sw.RESULT_HTML='<div class="djs-search-result"></div>',sw.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>',sw.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';var lw={__depends__:[Rs,Es],searchPad:["type",sw]};function cw(e,t,n){this._elementRegistry=e,this._canvas=n,t.registerProvider(this)}function hw(e){return y(e,(function(e){return!!e.matched})).length>0}function uw(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}cw.$inject=["elementRegistry","searchPad","canvas"],cw.prototype.find=function(e){var t=this._canvas.getRootElement(),n=this._elementRegistry.filter((function(e){return!e.labelTarget}));return n=y(n,(function(e){return e!==t})),n=R(n=y(n=E(n,(function(t){return{primaryTokens:uw(wo(t),e),secondaryTokens:uw(t.id,e),element:t}})),(function(e){return hw(e.primaryTokens)||hw(e.secondaryTokens)})),(function(e){return wo(e.element)+e.element.id}))};var pw={__depends__:[lw],__init__:["bpmnSearch"],bpmnSearch:["type",cw]};function dw(e){lo.call(this,e)}e(dw,lo),dw.Viewer=ra,dw.NavigatedViewer=Ia,dw.prototype.createDiagram=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>')},dw.prototype._interactionModules=[_a,Ta,Za,za],dw.prototype._modelingModules=[Ac,Wc,ch,Kc,uu,bu,wu,Up,op,Vu,rd,hd,Rd,Md,Bd,Vd,uf,jb,Wb,sx,Ax,Mx,nf,ow,pw],dw.prototype._modules=[].concat(ra.prototype._modules,dw.prototype._interactionModules,dw.prototype._modelingModules);var fw={min:.2,max:4},mw=10,gw=.1,vw=250;function yw(e,t,n,i,r){var o=this;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();var s=new Qa.Manager(document);s.add(new Qa.Pan),s.on("panmove",u),s.on("panend",p);var a=new Qa.Manager(this._svg);a.add(new Qa.Pan),a.on("panstart",h(!0)),a.add(new Qa.Tap),a.on("tap",(function(e){c(Pw(e))}));var l=new Qa.Manager(this._viewportDom);function c(e){o._state._svgClientRect&&!Ow(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),xw(bw({x:e.x-o._state._svgClientRect.left,y:e.y-o._state._svgClientRect.top},o._svg,o._lastViewbox),o._canvas),o._update()}function h(e){return function(t){var n=Pw(t);o._state._svgClientRect&&!Ow(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect()),e&&c(n);var r=bw({x:n.x-o._state._svgClientRect.left,y:n.y-o._state._svgClientRect.top},o._svg,o._lastViewbox),s=i.viewbox(),a=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}}(r,s),l=o._viewportDom.getBoundingClientRect(),h={x:n.x-l.left+1,y:n.y-l.top+1};I(o._state,{cachedViewbox:s,initialDragPosition:{x:n.x,y:n.y},isDragging:!0,offsetViewport:a,offsetViewportDom:h,viewportClientRect:o._viewport.getBoundingClientRect(),parentClientRect:o._parent.getBoundingClientRect()}),fe.bind(document,"mousemove",u),fe.bind(document,"mouseup",p)}}function u(e){var t=Pw(e);if(o._state.isDragging){o._state._svgClientRect&&!Ow(o._state._svgClientRect)||(o._state._svgClientRect=o._svg.getBoundingClientRect());var n=o._state.offsetViewportDom,i=o._state.viewportClientRect,r=o._state.parentClientRect;I(o._viewportDom.style,{top:t.y-n.y-r.top+"px",left:t.x-n.x-r.left+"px"});var s=kw(r,{top:t.y-n.y-r.top,left:t.x-n.x-r.left,width:i.width,height:i.height});I(o._overlay.style,{clipPath:s});var a=bw({x:t.x-o._state._svgClientRect.left,y:t.y-o._state._svgClientRect.top},o._svg,o._lastViewbox);xw({x:a.x-o._state.offsetViewport.x,y:a.y-o._state.offsetViewport.y},o._canvas)}}function p(e){var t=Pw(e);o._state.isDragging&&(o._state.initialDragPosition.x===t.x&&o._state.initialDragPosition.y===t.y&&c(e),o._update(),I(o._state,{cachedViewbox:null,initialDragPosition:null,isDragging:!1,offsetViewport:null,offsetViewportDom:null}),fe.unbind(document,"mousemove",u),fe.unbind(document,"mouseup",p))}l.add(new Qa.Pan),l.on("panstart",h(!1)),this.toggle(e&&e.open||!1),fe.bind(this._viewportDom,"mousedown",h(!1)),fe.bind(this._svg,"mousedown",h(!0)),fe.bind(this._parent,"wheel",(function(e){if(e.preventDefault(),e.stopPropagation(),e.ctrlKey&&(o._state._svgClientRect&&!Ow(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,s,a,l,c=0===e.deltaMode?.02:.32,h=Math.sqrt(Math.pow(e.deltaY,2)+Math.pow(e.deltaX,2))*Ew(e.deltaY)*-c;if(o._state.zoomDelta+=h,Math.abs(o._state.zoomDelta)>gw){var u=h>0?1:-1,p=Math.log(i.zoom())/Math.log(10),d=(r=fw,s=2*mw,a=Math.log(r.min)/Math.log(10),l=Math.log(r.max)/Math.log(10),(Math.abs(a)+Math.abs(l))/s),f=Math.round(p/d)*d;f+=d*u;var m=Math.pow(10,f);i.zoom(function(e,t){return Math.max(e.min,Math.min(e.max,t))}(fw,m),g),o._state.zoomDelta=0;var g=bw({x:e.clientX-o._state._svgClientRect.left,y:e.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox);xw(g,o._canvas),o._update()}}})),fe.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",vw,(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","plane.set"],(function(e){o._clear(),(e.element||e.plane.rootElement).children.forEach((function(e){o._addElement(e)})),o._update()}))}function bw(e,t,n){var i=t.getBoundingClientRect(),r=function(e,t){var n=e.width/e.height,i=I({},{x:e.x,y:e.y,width:e.width,height:e.height});if(n>t){var r=i.width*(1/t);I(i,{y:i.y-(r-i.height)/2,height:r})}else if(n<t){var o=i.height*t;I(i,{x:i.x-(o-i.width)/2,width:o})}return i}(n,i.width/i.height);return{x:ww(e.x,0,i.width,r.x,r.x+r.width),y:ww(e.y,0,i.height,r.y,r.y+r.height)}}function xw(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 ww(e,t,n,i,r){return(e-t)*(r-i)/(n-t)+i}function _w(e,t,n){var i=function(e){var t=_e(".children",e);t||Se(e,t=Ie("g",{class:"children"}));return t}(t),r=[].slice.call(i.childNodes)[n];r?t.insertBefore(e,r.nextSibling):t.appendChild(e)}function Ow(e){return 0===e.width&&0===e.height}yw.$inject=["config.minimap","injector","eventBus","canvas","elementRegistry"],yw.prototype._init=function(){var e=this._canvas.getContainer(),t=this._parent=document.createElement("div");ne(t).add("djs-minimap"),e.appendChild(t);var n=this._toggle=document.createElement("div");ne(n).add("toggle"),t.appendChild(n);var i=this._map=document.createElement("div");ne(i).add("map"),t.appendChild(i);var r=this._svg=Ie("svg");Ae(r,{width:"100%",height:"100%"}),Se(i,r),Se(r,this._elementsGroup=Ie("g"));var o=this._viewportGroup=Ie("g");Se(r,o);var s=this._viewport=Ie("rect");Te(s).add("viewport"),Se(o,s),fe.bind(t,"mousedown",(function(e){e.stopPropagation()}));var a=this._viewportDom=document.createElement("div");ne(a).add("viewport-dom"),this._parent.appendChild(a);var l=this._overlay=document.createElement("div");ne(l).add("overlay"),this._parent.appendChild(l)},yw.prototype._update=function(){var e=this._canvas.viewbox(),t=e.inner,n=e.outer;if(Cw(e)){var i,r,o,s,a=n.width-t.width,l=n.height-t.height;t.width<n.width?(i=t.x-a/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-l/2,s=n.height,t.y+t.height<n.height&&(r=Math.min(0,t.y))):(r=t.y,s=t.height),i-=50,r-=50,o+=100,s+=100,this._lastViewbox={x:i,y:r,width:o,height:s},Ae(this._svg,{viewBox:i+", "+r+", "+o+", "+s}),Ae(this._viewport,{x:e.x,y:e.y,width:e.width,height:e.height});var c=this._state._parentClientRect=this._parent.getBoundingClientRect(),h=this._viewport.getBoundingClientRect(),u={top:h.top-c.top,left:h.left-c.left,width:h.width,height:h.height};I(this._viewportDom.style,{top:u.top+"px",left:u.left+"px",width:u.width+"px",height:u.height+"px"});var p=kw(c,u);I(this._overlay.style,{clipPath:p})}},yw.prototype.open=function(){I(this._state,{isOpen:!0}),ne(this._parent).add("open");var e=this._injector.get("translate",!1)||function(e){return e};ee(this._toggle,"title",e("Close minimap")),this._update(),this._eventBus.fire("minimap.toggle",{open:!0})},yw.prototype.close=function(){I(this._state,{isOpen:!1}),ne(this._parent).remove("open");var e=this._injector.get("translate",!1)||function(e){return e};ee(this._toggle,"title",e("Open minimap")),this._eventBus.fire("minimap.toggle",{open:!1})},yw.prototype.toggle=function(e){var t=this.isOpen();void 0===e&&(e=!t),e!=t&&(e?this.open():this.close())},yw.prototype.isOpen=function(){return this._state.isOpen},yw.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)}},yw.prototype._updateElementId=function(e,t){try{var n=_e("#"+js(e.id),this._elementsGroup);n&&(n.id=t)}catch(e){console.warn("Minimap#_updateElementId errored",e)}},yw.prototype.isOnActivePlane=function(e){var t=this._canvas;return t.findRoot?t.findRoot(e)===t.getRootElement():!t.findPlane||t.findPlane(e)===t.getActivePlane()},yw.prototype._addElement=function(e){var t=this;if(this._removeElement(e),this.isOnActivePlane(e)){var n,i,r,o=this._createElement(e),s=_e("#"+js(e.parent.id),this._elementsGroup);if(o){var a=function(e,t){var n=_e(".djs-children",t.parentNode);if(!n)return;var i=[].slice.call(n.childNodes),r=-1;return i.forEach((function(t,n){_e(".djs-element",t)===e&&(r=n)})),r}(this._elementRegistry.getGraphics(e),this._elementRegistry.getGraphics(e.parent));return"undefined"!==a&&s?s.childNodes.length>a?_w(o,s,a):_w(o,s,s.childNodes.length-1):this._elementsGroup.appendChild(o),!function(e){return e.waypoints}(e)?(i=e.x,r=e.y,s&&(i-=(n=e.parent).x,r-=n.y),Ae(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),Ae(o,{transform:"translate("+i+" "+r+")"})),e.children&&e.children.length&&e.children.forEach((function(e){t._addElement(e)})),o}}},yw.prototype._removeElement=function(e){var t=this._svg.getElementById(e.id);t&&De(t)},yw.prototype._createElement=function(e){var t,n=this._elementRegistry.getGraphics(e);if(n&&(t=ui(n))){var i=Le(t);return Ae(i,{id:e.id}),i}},yw.prototype._clear=function(){Be(this._elementsGroup)};var Ew=Math.sign||function(e){return e>=0?1:-1};function kw(e,t){return"polygon("+[Sw(t.left,t.top),Sw(t.left+t.width,t.top),Sw(t.left+t.width,t.top+t.height),Sw(t.left,t.top+t.height),Sw(t.left,e.height),Sw(e.width,e.height),Sw(e.width,0),Sw(0,0),Sw(0,e.height),Sw(t.left,e.height)].join(", ")+")"}function Sw(e,t){return e+"px "+t+"px"}function Cw(e){return _(e,(function(e){return h(e)?Cw(e):u(e)&&isFinite(e)}))}function Pw(e){return e.center?e.center:{x:e.clientX,y:e.clientY}}var $w={__init__:["minimap"],minimap:["type",yw]},Aw=1e5,Rw=1e5;function Tw(e,t){this._canvas=e,this._visible=!1;var n=this;t.on("diagram.init",(function(){n._init()})),t.on("gridSnapping.toggle",(function(e){var t=e.active;n.toggle(t),n._centerGridAroundViewbox()})),t.on("canvas.viewbox.changed",(function(e){var t=e.viewbox;n._centerGridAroundViewbox(t)}))}Tw.prototype._init=function(){var e=_e("defs",this._canvas._svg);e||(e=Ie("defs"),Se(this._canvas._svg,e));var t=this._pattern=Ie("pattern"),n="djs-grid-pattern-"+Math.trunc(1e6*Math.random());Ae(t,{id:n,width:pd,height:pd,patternUnits:"userSpaceOnUse"});var i=this._circle=Ie("circle");Ae(i,{cx:.5,cy:.5,r:.5,fill:"#ccc"}),Se(t,i),Se(e,t),Ae(this._gfx=Ie("rect"),{x:-Aw/2,y:-Rw/2,width:Aw,height:Rw,fill:`url(#${n})`})},Tw.prototype._centerGridAroundViewbox=function(e){e||(e=this._canvas.viewbox());var t=Rn(e);Ae(this._gfx,{x:-Aw/2+dd(t.x,pd),y:-Rw/2+dd(t.y,pd)})},Tw.prototype.isVisible=function(){return this._visible},Tw.prototype.toggle=function(e){if(void 0===e&&(e=!this._visible),e!==this._visible){var t=this._getParent();e?Se(t,this._gfx):Be(t),this._visible=e}},Tw.prototype._getParent=function(){return this._canvas.getLayer("djs-grid",-2)},Tw.$inject=["canvas","eventBus"];var Mw={__init__:["grid"],grid:["type",Tw]},Dw="#CCC",Bw="rgba(0,0,0,0.1)";function Lw(e,t){var n,i,r=(e=e||{}).borderColor||Bw,o=e.crossColor||Dw,s=-1;Se(t.getLayer("djs-origin",-1),n=zw("g",{"pointer-events":"none"})),!1!==e.showBorder&&Se(n,zw("path",{class:jw("border"),d:Nw(["M",-22,s,"H",-1e3,"M",22,s,"H",6e3,"M",s,-22,"V",-1e3,"M",s,22,"V",3e3]),fill:"none",stroke:r,"stroke-width":"2px","stroke-dasharray":"6, 6","shape-rendering":"crispedges"})),Se(n,zw("path",{d:Nw(["M",-15,s,"H",15,"M",s,-15,"V",15]),class:jw("cross"),fill:"none",stroke:o,"stroke-width":"2px","stroke-linecap":"round"})),(i=zw("text",{x:-40,y:-10,fill:o,class:jw("label")})).textContent="(0, 0)",Se(n,i)}function Nw(e){return e.join(" ")}function jw(e){return"djs-origin-"+e}function zw(e,t){var n=Ie(e);return Ae(n,t),n}Lw.$inject=["config.origin","canvas"];var Iw={__init__:[Lw]},Xw={offset:{x:150,y:75},tolerance:50,alignOnSave:!0},Qw=1250;function Fw(e,t,n,i,r,o){function s(e,n){var i=n.offset,r=n.tolerance,o={};return["x","y"].forEach((function(n){var s=-e[n]+i[n],a=t.get("gridSnapping",!1);a&&(s=function(e,t,n){n||(n="round");return Math[n](e/t)*t}(s,a.getGridSpacing())),o[n]=Math.abs(s)<r?0:s})),o}function a(){var t=r.viewbox().inner,n=r.getRootElement().children;if(n.length){var o=s(t,e);0===o.x&&0===o.y||i.execute("elements.alignToOrigin",{elements:n,delta:o})}}function l(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 c,h,p;e=function(e){var t=I({},Xw,e||{});return u(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:l(-1),revert:l(1)}),e.alignOnSave&&(c=t.get("_parent",!1),h=n,((p=c&&c._eventBus)||h).on("saveXML.start",Qw,a),p&&h.on("diagram.destroy",(function(){p.off("saveXML.start",a)}))),this.align=a,this.computeAdjustment=s,this._config=e}Fw.$inject=["config.alignToOrigin","injector","eventBus","commandStack","canvas","modeling"];var Vw={__init__:["alignToOrigin"],alignToOrigin:["type",Fw]};function qw(e){function t(e){if(!e.labelTarget){var t=qr(e);Fr(t,"bpmn:Participant")&&(t=t.processRef),Fr(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)}))}))}qw.$inject=["eventBus"];var Hw,Ww,Yw,Gw,Uw,Zw,Kw,Jw,e_={__init__:[qw]},t_={},n_=[],i_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,r_=Array.isArray;function o_(e,t){for(var n in t)e[n]=t[n];return e}function s_(e){var t=e.parentNode;t&&t.removeChild(e)}function a_(e,t,n){var i,r,o,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Hw.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return l_(e,s,i,r,null)}function l_(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?++Yw:r};return null==r&&null!=Ww.vnode&&Ww.vnode(o),o}function c_(e){return e.children}function h_(e,t){this.props=e,this.context=t}function u_(e,t){if(null==t)return e.__?u_(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?u_(e):null}function p_(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 p_(e)}}function d_(e){(!e.__d&&(e.__d=!0)&&Gw.push(e)&&!f_.__r++||Uw!==Ww.debounceRendering)&&((Uw=Ww.debounceRendering)||Zw)(f_)}function f_(){var e,t,n,i,r,o,s,a;for(Gw.sort(Kw);e=Gw.shift();)e.__d&&(t=Gw.length,i=void 0,r=void 0,s=(o=(n=e).__v).__e,(a=n.__P)&&(i=[],(r=o_({},o)).__v=o.__v+1,E_(a,o,r,n.__n,void 0!==a.ownerSVGElement,null!=o.__h?[s]:null,i,null==s?u_(o):s,o.__h),k_(i,o),o.__e!=s&&p_(o)),Gw.length>t&&Gw.sort(Kw));f_.__r=0}function m_(e,t,n,i,r,o,s,a,l,c){var h,u,p,d,f,m,g,v=i&&i.__k||n_,y=v.length;for(n.__k=[],h=0;h<t.length;h++)if(null!=(d=n.__k[h]=null==(d=t[h])||"boolean"==typeof d||"function"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?l_(null,d,null,null,d):r_(d)?l_(c_,{children:d},null,null,null):d.__b>0?l_(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(p=v[h])||p&&d.key==p.key&&d.type===p.type)v[h]=void 0;else for(u=0;u<y;u++){if((p=v[u])&&d.key==p.key&&d.type===p.type){v[u]=void 0;break}p=null}E_(e,d,p=p||t_,r,o,s,a,l,c),f=d.__e,(u=d.ref)&&p.ref!=u&&(g||(g=[]),p.ref&&g.push(p.ref,null,d),g.push(u,d.__c||f,d)),null!=f?(null==m&&(m=f),"function"==typeof d.type&&d.__k===p.__k?d.__d=l=g_(d,l,e):l=y_(e,d,p,v,f,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=u_(p))}for(n.__e=m,h=y;h--;)null!=v[h]&&("function"==typeof n.type&&null!=v[h].__e&&v[h].__e==n.__d&&(n.__d=b_(i).nextSibling),P_(v[h],v[h]));if(g)for(h=0;h<g.length;h++)C_(g[h],g[++h],g[++h])}function g_(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t="function"==typeof i.type?g_(i,t,n):y_(n,i,i,r,i.__e,t));return t}function v_(e,t){return t=t||[],null==e||"boolean"==typeof e||(r_(e)?e.some((function(e){v_(e,t)})):t.push(e)),t}function y_(e,t,n,i,r,o){var s,a,l;if(void 0!==t.__d)s=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),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<i.length;l+=1)if(a==r)break e;e.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function b_(e){var t,n,i;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(i=b_(n)))return i;return null}function x_(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||i_.test(t)?n:n+"px"}function w_(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||x_(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||x_(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?O_:__,o):e.removeEventListener(t,o?O_:__,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function __(e){return this.l[e.type+!1](Ww.event?Ww.event(e):e)}function O_(e){return this.l[e.type+!0](Ww.event?Ww.event(e):e)}function E_(e,t,n,i,r,o,s,a,l){var c,h,u,p,d,f,m,g,v,y,b,x,w,_,O,E=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=Ww.__b)&&c(t);try{e:if("function"==typeof E){if(g=t.props,v=(c=E.contextType)&&i[c.__c],y=c?v?v.props.value:c.__:i,n.__c?m=(h=t.__c=n.__c).__=h.__E:("prototype"in E&&E.prototype.render?t.__c=h=new E(g,y):(t.__c=h=new h_(g,y),h.constructor=E,h.render=$_),v&&v.sub(h),h.props=g,h.state||(h.state={}),h.context=y,h.__n=i,u=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=E.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=o_({},h.__s)),o_(h.__s,E.getDerivedStateFromProps(g,h.__s))),p=h.props,d=h.state,h.__v=t,u)null==E.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==E.getDerivedStateFromProps&&g!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,y),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(h.props=g,h.state=h.__s,h.__d=!1),h.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b<h._sb.length;b++)h.__h.push(h._sb[b]);h._sb=[],h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,y),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(p,d,f)}))}if(h.context=y,h.props=g,h.__P=e,x=Ww.__r,w=0,"prototype"in E&&E.prototype.render){for(h.state=h.__s,h.__d=!1,x&&x(t),c=h.render(h.props,h.state,h.context),_=0;_<h._sb.length;_++)h.__h.push(h._sb[_]);h._sb=[]}else do{h.__d=!1,x&&x(t),c=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++w<25);h.state=h.__s,null!=h.getChildContext&&(i=o_(o_({},i),h.getChildContext())),u||null==h.getSnapshotBeforeUpdate||(f=h.getSnapshotBeforeUpdate(p,d)),m_(e,r_(O=null!=c&&c.type===c_&&null==c.key?c.props.children:c)?O:[O],t,n,i,r,o,s,a,l),h.base=t.__e,t.__h=null,h.__h.length&&s.push(h),m&&(h.__E=h.__=null),h.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=S_(n.__e,t,n,i,r,o,s,l);(c=Ww.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=o)&&(t.__e=a,t.__h=!!l,o[o.indexOf(a)]=null),Ww.__e(e,t,n)}}function k_(e,t){Ww.__c&&Ww.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Ww.__e(e,t.__v)}}))}function S_(e,t,n,i,r,o,s,a){var l,c,h,u=n.props,p=t.props,d=t.type,f=0;if("svg"===d&&(r=!0),null!=o)for(;f<o.length;f++)if((l=o[f])&&"setAttribute"in l==!!d&&(d?l.localName===d:3===l.nodeType)){e=l,o[f]=null;break}if(null==e){if(null===d)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,a=!1}if(null===d)u===p||a&&e.data===p||(e.data=p);else{if(o=o&&Hw.call(e.childNodes),c=(u=n.props||t_).dangerouslySetInnerHTML,h=p.dangerouslySetInnerHTML,!a){if(null!=o)for(u={},f=0;f<e.attributes.length;f++)u[e.attributes[f].name]=e.attributes[f].value;(h||c)&&(h&&(c&&h.__html==c.__html||h.__html===e.innerHTML)||(e.innerHTML=h&&h.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||w_(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]||w_(e,o,t[o],n[o],i)}(e,p,u,r,a),h)t.__k=[];else if(m_(e,r_(f=t.props.children)?f:[f],t,n,i,r&&"foreignObject"!==d,o,s,o?o[0]:n.__k&&u_(n,0),a),null!=o)for(f=o.length;f--;)null!=o[f]&&s_(o[f]);a||("value"in p&&void 0!==(f=p.value)&&(f!==e.value||"progress"===d&&!f||"option"===d&&f!==u.value)&&w_(e,"value",f,u.value,!1),"checked"in p&&void 0!==(f=p.checked)&&f!==e.checked&&w_(e,"checked",f,u.checked,!1))}return e}function C_(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Ww.__e(e,n)}}function P_(e,t,n){var i,r;if(Ww.unmount&&Ww.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||C_(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){Ww.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&P_(i[r],t,n||"function"!=typeof e.type);n||null==e.__e||s_(e.__e),e.__=e.__e=e.__d=void 0}function $_(e,t,n){return this.constructor(e,n)}function A_(e,t,n){var i,r,o;Ww.__&&Ww.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,o=[],E_(t,e=(!i&&n||t).__k=a_(c_,null,[e]),r||t_,t_,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?Hw.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),k_(o,e)}function R_(e,t){var n={__c:t="__cC"+Jw++,__: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((function(e){e.__e=!0,d_(e)}))},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}Hw=n_.slice,Ww={__e:function(e,t,n,i){for(var r,o,s;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),s=r.__d),s)return r.__E=r}catch(t){e=t}throw e}},Yw=0,h_.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=o_({},this.state),"function"==typeof e&&(e=e(o_({},n),this.props)),e&&o_(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),d_(this))},h_.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),d_(this))},h_.prototype.render=c_,Gw=[],Zw="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Kw=function(e,t){return e.__v.__b-t.__v.__b},f_.__r=0,Jw=0;var T_,M_,D_,B_,L_=0,N_=[],j_=[],z_=Ww.__b,I_=Ww.__r,X_=Ww.diffed,Q_=Ww.__c,F_=Ww.unmount;function V_(e,t){Ww.__h&&Ww.__h(M_,e,L_||t),L_=0;var n=M_.__H||(M_.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:j_}),n.__[e]}function q_(e){return L_=1,H_(oO,e)}function H_(e,t,n){var i=V_(T_++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):oO(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=M_,!M_.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var s=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&i.__c.props===e)&&(!o||o.call(this,e,t,n))};M_.u=!0;var o=M_.shouldComponentUpdate,s=M_.componentWillUpdate;M_.componentWillUpdate=function(e,t,n){if(this.__e){var i=o;o=void 0,r(e,t,n),o=i}s&&s.call(this,e,t,n)},M_.shouldComponentUpdate=r}return i.__N||i.__}function W_(e,t){var n=V_(T_++,3);!Ww.__s&&rO(n.__H,t)&&(n.__=e,n.i=t,M_.__H.__h.push(n))}function Y_(e,t){var n=V_(T_++,4);!Ww.__s&&rO(n.__H,t)&&(n.__=e,n.i=t,M_.__h.push(n))}function G_(e){return L_=5,U_((function(){return{current:e}}),[])}function U_(e,t){var n=V_(T_++,7);return rO(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Z_(e,t){return L_=8,U_((function(){return e}),t)}function K_(e){var t=M_.context[e.__c],n=V_(T_++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(M_)),t.props.value):e.__}function J_(){for(var e;e=N_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(nO),e.__H.__h.forEach(iO),e.__H.__h=[]}catch(t){e.__H.__h=[],Ww.__e(t,e.__v)}}Ww.__b=function(e){M_=null,z_&&z_(e)},Ww.__r=function(e){I_&&I_(e),T_=0;var t=(M_=e.__c).__H;t&&(D_===M_?(t.__h=[],M_.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=j_,e.__N=e.i=void 0}))):(t.__h.forEach(nO),t.__h.forEach(iO),t.__h=[],T_=0)),D_=M_},Ww.diffed=function(e){X_&&X_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==N_.push(t)&&B_===Ww.requestAnimationFrame||((B_=Ww.requestAnimationFrame)||tO)(J_)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==j_&&(e.__=e.__V),e.i=void 0,e.__V=j_}))),D_=M_=null},Ww.__c=function(e,t){t.some((function(e){try{e.__h.forEach(nO),e.__h=e.__h.filter((function(e){return!e.__||iO(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Ww.__e(n,e.__v)}})),Q_&&Q_(e,t)},Ww.unmount=function(e){F_&&F_(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{nO(e)}catch(e){t=e}})),n.__H=void 0,t&&Ww.__e(t,n.__v))};var eO="function"==typeof requestAnimationFrame;function tO(e){var t,n=function(){clearTimeout(i),eO&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);eO&&(t=requestAnimationFrame(n))}function nO(e){var t=M_,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),M_=t}function iO(e){var t=M_;e.__c=e.__(),M_=t}function rO(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function oO(e,t){return"function"==typeof t?t(e):t}function sO(e,t){for(var n in t)e[n]=t[n];return e}function aO(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 lO(e){this.props=e}(lO.prototype=new h_).isPureReactComponent=!0,lO.prototype.shouldComponentUpdate=function(e,t){return aO(this.props,e)||aO(this.state,t)};var cO=Ww.__b;Ww.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),cO&&cO(e)};var hO="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function uO(e){function t(t){var n=sO({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=hO,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var pO=Ww.__e;Ww.__e=function(e,t,n,i){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);pO(e,t,n,i)};var dO=Ww.unmount;function fO(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=sO({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return fO(e,t,n)}))),e}function mO(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return mO(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function gO(){this.__u=0,this.t=null,this.__b=null}function vO(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function yO(){this.u=null,this.o=null}Ww.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),dO&&dO(e)},(gO.prototype=new h_).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=vO(i.__v),o=!1,s=function(){o||(o=!0,n.__R=null,r?r(a):a())};n.__R=s;var a=function(){if(!--i.__u){if(i.state.__a){var e=i.state.__a;i.__v.__k[0]=mO(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__a:i.__b=null});t=i.t.pop();)t.forceUpdate()}},l=!0===t.__h;i.__u++||l||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(s,s)},gO.prototype.componentWillUnmount=function(){this.t=[]},gO.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]=fO(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__a&&a_(c_,null,e.fallback);return r&&(r.__h=null),[a_(c_,null,t.__a?null:e.children),r]};var bO=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]}};function xO(e){return this.getChildContext=function(){return e.context},e.children}function wO(e){var t=this,n=e.i;t.componentWillUnmount=function(){A_(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),A_(a_(xO,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function _O(e,t){var n=a_(wO,{__v:e,i:t});return n.containerInfo=t,n}(yO.prototype=new h_).__a=function(e){var t=this,n=vO(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),bO(t,e,i)):r()};n?n(o):o()}},yO.prototype.render=function(e){this.u=null,this.o=new Map;var t=v_(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},yO.prototype.componentDidUpdate=yO.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){bO(e,n,t)}))};var OO="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,EO=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,kO=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,SO=/[A-Z0-9]/g,CO="undefined"!=typeof document,PO=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};h_.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(h_.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var $O=Ww.event;function AO(){}function RO(){return this.cancelBubble}function TO(){return this.defaultPrevented}Ww.event=function(e){return $O&&(e=$O(e)),e.persist=AO,e.isPropagationStopped=RO,e.isDefaultPrevented=TO,e.nativeEvent=e};var MO={enumerable:!1,configurable:!0,get:function(){return this.class}},DO=Ww.vnode;Ww.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var r in t){var o=t[r];if(!("value"===r&&"defaultValue"in t&&null==o||CO&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var s=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===s?r="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||PO(t.type)?"onfocus"===s?r="onfocusin":"onblur"===s?r="onfocusout":kO.test(r)?r=s:-1===n.indexOf("-")&&EO.test(r)?r=r.replace(SO,"-$&").toLowerCase():null===o&&(o=void 0):s=r="oninput","oninput"===s&&i[r=s]&&(r="oninputCapture"),i[r]=o}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=v_(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=v_(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",MO)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=OO,DO&&DO(e)};var BO=Ww.__r;Ww.__r=function(e){BO&&BO(e),e.__c};var LO=Ww.diffed;Ww.diffed=function(e){LO&&LO(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),null};var NO=a_,jO=0;function zO(e,t,n,i,r,o){var s,a,l={};for(a in t)"ref"==a?s=t[a]:l[a]=t[a];var c={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--jO,__source:r,__self:o};if("function"==typeof e&&(s=e.defaultProps))for(a in s)void 0===l[a]&&(l[a]=s[a]);return Ww.vnode&&Ww.vnode(c),c}var IO={exports:{}};
|
|
166
166
|
/*!
|
|
167
167
|
Copyright (c) 2018 Jed Watson.
|
|
168
168
|
Licensed under the MIT License (MIT), see
|
|
@@ -177,4 +177,4 @@ var bI=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
177
177
|
* focus-trap 7.5.2
|
|
178
178
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
179
179
|
*/
|
|
180
|
-
function XI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function QI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XI(Object(n),!0).forEach((function(t){FI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VI=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},qI=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()},HI=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},WI=function(e){return HI(e)&&!e.shiftKey},YI=function(e){return HI(e)&&e.shiftKey},GI=function(e){return setTimeout(e,0)},UI=function(e,t){var n=-1;return e.every((function(e,i){return!t(e)||(n=i,!1)})),n},ZI=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return"function"==typeof e?e.apply(void 0,n):e},KI=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},JI=[],eX=function(e,t){var n,i=(null==t?void 0:t.document)||document,r=(null==t?void 0:t.trapStack)||JI,o=QI({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:WI,isKeyBackward:YI},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},l=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return s.containerGroups.findIndex((function(t){var i=t.container,r=t.tabbableNodes;return i.contains(e)||(null==n?void 0:n.includes(i))||r.find((function(t){return t===e}))}))},c=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];t=t.apply(void 0,r)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a=t;if("string"==typeof t&&!(a=i.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a},h=function(){var e=c("initialFocus");if(!1===e)return!1;if(void 0===e||!II(e,o.tabbableOptions))if(l(i.activeElement)>=0)e=i.activeElement;else{var t=s.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},u=function(){if(s.containerGroups=s.containers.map((function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?SI([e],t.includeContainer,{filter:BI.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:LI}):kI(e,t.includeContainer,BI.bind(null,t)),NI(n)}(e,o.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?SI([e],t.includeContainer,{filter:DI.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):kI(e,t.includeContainer,DI.bind(null,t))}(e,o.tabbableOptions),i=t.length>0?t[0]:void 0,r=t.length>0?t[t.length-1]:void 0,s=n.find((function(e){return jI(e)})),a=n.slice().reverse().find((function(e){return jI(e)})),l=!!t.find((function(e){return PI(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:r,firstDomTabbableNode:s,lastDomTabbableNode:a,nextTabbableNode:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.indexOf(e);return r<0?i?n.slice(n.indexOf(e)+1).find((function(e){return jI(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return jI(e)})):t[r+(i?1:-1)]}}})),s.tabbableGroups=s.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),s.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find((function(e){return e.posTabIndexesFound}))&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},p=function e(t){!1!==t&&t!==i.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(h()))},d=function(e){var t=c("setReturnFocus",e);return t||!1!==t&&e},f=function(e){var t=e.target,n=e.event,i=e.isBackward,r=void 0!==i&&i;t=t||KI(n),u();var a=null;if(s.tabbableGroups.length>0){var h=l(t,n),p=h>=0?s.containerGroups[h]:void 0;if(h<0)a=r?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(r){var d=UI(s.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(d<0&&(p.container===t||II(t,o.tabbableOptions)&&!jI(t,o.tabbableOptions)&&!p.nextTabbableNode(t,!1))&&(d=h),d>=0){var f=0===d?s.tabbableGroups.length-1:d-1,m=s.tabbableGroups[f];a=PI(t)>=0?m.lastTabbableNode:m.lastDomTabbableNode}else HI(n)||(a=p.nextTabbableNode(t,!1))}else{var g=UI(s.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(g<0&&(p.container===t||II(t,o.tabbableOptions)&&!jI(t,o.tabbableOptions)&&!p.nextTabbableNode(t))&&(g=h),g>=0){var v=g===s.tabbableGroups.length-1?0:g+1,y=s.tabbableGroups[v];a=PI(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else HI(n)||(a=p.nextTabbableNode(t))}}else a=c("fallbackFocus");return a},m=function(e){var t=KI(e);l(t,e)>=0||(ZI(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate}):ZI(o.allowOutsideClick,e)||e.preventDefault())},g=function(e){var t=KI(e),n=l(t,e)>=0;if(n||t instanceof Document)n&&(s.mostRecentlyFocusedNode=t);else{var i;e.stopImmediatePropagation();var r=!0;if(s.mostRecentlyFocusedNode)if(PI(s.mostRecentlyFocusedNode)>0){var a=l(s.mostRecentlyFocusedNode),c=s.containerGroups[a].tabbableNodes;if(c.length>0){var u=c.findIndex((function(e){return e===s.mostRecentlyFocusedNode}));u>=0&&(o.isKeyForward(s.recentNavEvent)?u+1<c.length&&(i=c[u+1],r=!1):u-1>=0&&(i=c[u-1],r=!1))}}else s.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return PI(e)>0}))}))||(r=!1);else r=!1;r&&(i=f({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),p(i||(s.mostRecentlyFocusedNode||h()))}s.recentNavEvent=void 0},v=function(e){if(function(e){return"Escape"===(null==e?void 0:e.key)||"Esc"===(null==e?void 0:e.key)||27===(null==e?void 0:e.keyCode)}(e)&&!1!==ZI(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(o.isKeyForward(e)||o.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s.recentNavEvent=e;var n=f({event:e,isBackward:t});n&&(HI(e)&&e.preventDefault(),p(n))}(e,o.isKeyBackward(e))},y=function(e){var t=KI(e);l(t,e)>=0||ZI(o.clickOutsideDeactivates,e)||ZI(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},b=function(){if(s.active)return VI(r,n),s.delayInitialFocusTimer=o.delayInitialFocus?GI((function(){p(h())})):p(h()),i.addEventListener("focusin",g,!0),i.addEventListener("mousedown",m,{capture:!0,passive:!1}),i.addEventListener("touchstart",m,{capture:!0,passive:!1}),i.addEventListener("click",y,{capture:!0,passive:!1}),i.addEventListener("keydown",v,{capture:!0,passive:!1}),n},x=function(){if(s.active)return i.removeEventListener("focusin",g,!0),i.removeEventListener("mousedown",m,!0),i.removeEventListener("touchstart",m,!0),i.removeEventListener("click",y,!0),i.removeEventListener("keydown",v,!0),n},w="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){var t=e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===s.mostRecentlyFocusedNode}))}));t&&p(h())})):void 0,_=function(){w&&(w.disconnect(),s.active&&!s.paused&&s.containers.map((function(e){w.observe(e,{subtree:!0,childList:!0})})))};return n={get active(){return s.active},get paused(){return s.paused},activate:function(e){if(s.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),r=a(e,"checkCanFocusTrap");r||u(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=i.activeElement,null==t||t();var o=function(){r&&u(),b(),_(),null==n||n()};return r?(r(s.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!s.active)return this;var t=QI({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,x(),s.active=!1,s.paused=!1,_(),qI(r,n);var i=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),c=a(t,"checkCanReturnFocus"),h=a(t,"returnFocus","returnFocusOnDeactivate");null==i||i();var u=function(){GI((function(){h&&p(d(s.nodeFocusedBeforeActivation)),null==l||l()}))};return h&&c?(c(d(s.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(e){if(s.paused||!s.active)return this;var t=a(e,"onPause"),n=a(e,"onPostPause");return s.paused=!0,null==t||t(),x(),_(),null==n||n(),this},unpause:function(e){if(!s.paused||!s.active)return this;var t=a(e,"onUnpause"),n=a(e,"onPostUnpause");return s.paused=!1,null==t||t(),u(),b(),_(),null==n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return s.containers=t.map((function(e){return"string"==typeof e?i.querySelector(e):e})),s.active&&u(),_(),this}},n.updateContainerElements(e),n},tX=function(e){return zO("svg",{...e,children:zO("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"})})};tX.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var nX=function(e){return zO("svg",{...e,children:[zO("path",{fill:"#fff",style:{mixBlendMode:"multiply"},d:"M0 0h16v16H0z"}),zO("path",{fill:"#fff",style:{mixBlendMode:"multiply"},d:"M0 0h16v16H0z"}),zO("path",{d:"M7 3H5v2h2V3zm4 0H9v2h2V3zM7 7H5v2h2V7zm4 0H9v2h2V7zm-4 4H5v2h2v-2zm4 0H9v2h2v-2z",fill:"#161616"})]})};nX.defaultProps={width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var iX=function(e){return zO("svg",{...e,children:zO("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:"currentcolor"})})};function rX(e){const{element:t,headerProvider:n}=e,{getElementIcon:i,getDocumentationRef:r,getElementLabel:o,getTypeLabel:s}=n,a=o(t),l=s(t),c=r&&r(t),h=i(t);return zO("div",{class:"bio-properties-panel-header",children:[zO("div",{class:"bio-properties-panel-header-icon",children:h&&zO(h,{width:"32",height:"32",viewBox:"0 0 32 32"})}),zO("div",{class:"bio-properties-panel-header-labels",children:[zO("div",{title:l,class:"bio-properties-panel-header-type",children:l}),a?zO("div",{title:a,class:"bio-properties-panel-header-label",children:a}):null]}),zO("div",{class:"bio-properties-panel-header-actions",children:c?zO("a",{rel:"noopener",class:"bio-properties-panel-header-link",href:c,title:"Open documentation",target:"_blank",children:zO(iX,{})}):null})]})}iX.defaultProps={width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const oX=R_({description:{},getDescriptionForId:()=>{}}),sX=R_({errors:{}}),aX=R_({eventBus:null}),lX=R_({layout:{},setLayout:()=>{},getLayoutForKey:()=>{},setLayoutForKey:()=>{}}),cX=R_({tooltip:{},getTooltipForId:()=>{}});function hX(e){const{forId:t,element:n}=e,i=function(e,t){const{getTooltipForId:n}=K_(cX);return n(e,t)}(t,n),r=e.value||i;return r?zO(uX,{...e,value:r,forId:fX(t)}):e.children}function uX(e){const{forId:t,value:n,parent:i}=e,[r,o]=q_(!1),[s,a]=q_(!1);let l=null;const c=G_(null),h=G_(null),u=async e=>{const t=()=>o(!0);r||l||(e instanceof MouseEvent?l=setTimeout(t,200):(t(),a(!0)))},p=()=>{o(!1),a(!1)};W_((()=>{const{current:e}=c;if(!e)return;const t=e=>{const t=document.activeElement===c.current||document.activeElement.closest(".bio-properties-panel-tooltip");!r||(({x:e,y:t})=>{const n=h.current,i=c.current;return n&&(pX(e,t,i.getBoundingClientRect())||pX(e,t,n.getBoundingClientRect()))})({x:e.x,y:e.y})||t&&s||p()},n=e=>{const{relatedTarget:t}=e;r&&!c.current.matches(":hover")&&t&&!t.closest(".bio-properties-panel-tooltip")&&p()};return document.addEventListener("wheel",t),document.addEventListener("focusout",n),document.addEventListener("mousemove",t),()=>{document.removeEventListener("wheel",t),document.removeEventListener("mousemove",t),document.removeEventListener("focusout",n)}}),[c.current,r,s]);const d=()=>zO("div",{class:"bio-properties-panel-tooltip",role:"tooltip",id:"bio-properties-panel-tooltip","aria-labelledby":t,style:dX(c.current),ref:h,onClick:e=>e.stopPropagation(),children:[zO("div",{class:"bio-properties-panel-tooltip-content",children:n}),zO("div",{class:"bio-properties-panel-tooltip-arrow"})]});return zO("div",{class:"bio-properties-panel-tooltip-wrapper",tabIndex:"0",ref:c,onMouseEnter:u,onMouseLeave:()=>{clearTimeout(l),l=null},onFocus:u,onKeyDown:e=>{"Escape"===e.code&&p()},children:[e.children,r?i?_O(d(),i.current):d():null]})}function pX(e,t,n){const{top:i,right:r,bottom:o,left:s}=n;return e>=s&&e<=r&&t>=i&&t<=o}function dX(e){const t=e.getBoundingClientRect();return`right: ${`calc(100% - ${t.x}px)`}; top: ${t.top-10+"px"};`}function fX(e){return`bio-properties-panel-${e}`}function mX(e){const{errors:t}=K_(sX);return t[e]}function gX(e,t,n){const i=K_(aX);n||({eventBus:n}=i);const r=G_(!1);n&&!r.current&&n.on(e,t),W_((()=>(n&&r.current&&n.on(e,t),r.current=!0,()=>{n&&n.off(e,t)})),[t,e,n])}function vX(e){const t=G_();return W_((()=>{t.current=e})),t.current}function yX(e){const{onShow:t}=K_(lX),n=G_(),i=G_(!1),r=Z_((n=>{n.id===e&&(t(),i.current||(i.current=!0))}),[e]);return W_((()=>{i.current&&n.current&&(p(n.current.focus)&&n.current.focus(),p(n.current.select)&&n.current.select(),i.current=!1)})),gX("propertiesPanel.showEntry",r),n}function bX(e){const t=G_(e);return t.current=e,Z_(((...e)=>t.current(...e)),[])}function xX(e){const{element:t,entries:n=[],id:i,label:r,shouldOpen:o=!1}=e,s=G_(null),[a,l]=function(e,t){const{getLayoutForKey:n,setLayoutForKey:i}=K_(lX);return[n(e,t),Z_((t=>{i(e,t)}),[i])]}(["groups",i,"open"],o),c=Z_((()=>l(!0)),[l]),[h,u]=q_(!1),[d,f]=q_(!1);W_((()=>{const e=n.find((e=>{const{id:t,isEdited:n}=e,i=_e(`[data-entry-id="${t}"]`);if(!p(n)||!i)return!1;return n(_e(".bio-properties-panel-input",i))}));u(e)}),[n]);const m=function(){const{errors:e}=K_(sX);return e}(),g=n.some((e=>m[e.id]));!function(e,t,n){const[i,r]=q_(_e(t)),o=Z_((()=>{const e=_e(t);e!==i&&r(e)}),[t,i]);W_((()=>{o()}),[o]),gX("propertiesPanel.attach",o),gX("propertiesPanel.detach",o),W_((()=>{const t=IntersectionObserver;if(!t)return;if(!e.current||!i)return;const r=new t((e=>{0!==i.scrollHeight&&e.forEach((e=>{e.intersectionRatio<1?n(!0):1===e.intersectionRatio&&n(!1)}))}),{root:i,rootMargin:"0px 0px 999999% 0px",threshold:[1]});return r.observe(e.current),()=>{r.unobserve(e.current)}}),[e.current,i,n])}(s,"div.bio-properties-panel-scroll-container",f);const v={...K_(lX),onShow:c};return zO("div",{class:"bio-properties-panel-group","data-group-id":"group-"+i,ref:s,children:[zO("div",{class:XO("bio-properties-panel-group-header",h?"":"empty",a?"open":"",d&&a?"sticky":""),onClick:()=>l(!a),children:[zO("div",{title:e.tooltip?null:r,"data-title":r,class:"bio-properties-panel-group-header-title",children:zO(hX,{value:e.tooltip,forId:"group-"+i,element:t,parent:s,children:r})}),zO("div",{class:"bio-properties-panel-group-header-buttons",children:[zO(wX,{edited:h,hasErrors:g}),zO("button",{title:"Toggle section",class:"bio-properties-panel-group-header-button bio-properties-panel-arrow",children:zO(tX,{class:a?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})})]})]}),zO("div",{class:XO("bio-properties-panel-group-entries",a?"open":""),children:zO(lX.Provider,{value:v,children:n.map((e=>{const{component:n,id:i}=e;return a_(n,{...e,element:t,key:i})}))})})]})}function wX(e){const{edited:t,hasErrors:n}=e;return n?zO("div",{title:"Section contains an error",class:"bio-properties-panel-dot bio-properties-panel-dot--error"}):t?zO("div",{title:"Section contains data",class:"bio-properties-panel-dot"}):null}function _X(e){const{text:t,icon:n}=e;return zO("div",{class:"bio-properties-panel open",children:zO("section",{class:"bio-properties-panel-placeholder",children:[n&&zO(n,{class:"bio-properties-panel-placeholder-icon"}),zO("p",{class:"bio-properties-panel-placeholder-text",children:t})]})})}function OX(e){const{element:t,forId:n,value:i}=e,r=function(e,t){const{getDescriptionForId:n}=K_(oX);return n(e,t)}(n,t),o=i||r;if(o)return zO("div",{class:"bio-properties-panel-description",children:o})}const EX=()=>{},kX=uO(((e,t)=>{const{onInput:n,disabled:i,tooltipContainer:r,enableGutters:o,value:s,onLint:a=EX,onPopupOpen:l=EX,popupOpen:c,contentAttributes:h={},hostLanguage:u=null,singleLine:p=!1}=e,d=G_(),[f,m]=q_(),[g,v]=q_(s||"");!function(e,t){const[n,i]=q_(void 0);t.current=U_((()=>({focus:t=>{e?e.focus(t):(void 0===t&&(t=1/0),i(t))}})),[e]),W_((()=>{void 0!==n&&e&&(e.focus(n),i(!1))}),[e,n])}(f,t);const y=bX((e=>{n(e),v(e)}));W_((()=>{let e;return e=new eI({container:d.current,onChange:y,value:g,onLint:a,contentAttributes:h,tooltipContainer:r,enableGutters:o,hostLanguage:u,singleLine:p}),m(e),()=>{a([]),d.current.innerHTML="",m(null)}}),[]),W_((()=>{f&&s!==g&&(f.setValue(s),v(s))}),[s]);return zO("div",{class:XO("bio-properties-panel-feelers-editor-container",c?"popupOpen":null),children:[zO("div",{class:"bio-properties-panel-feelers-editor__open-popup-placeholder",children:"Opened in editor"}),zO("div",{name:e.name,class:XO("bio-properties-panel-feelers-editor bio-properties-panel-input",g?"edited":null,i?"disabled":null),ref:d,onClick:()=>{t.current.focus()}}),zO("button",{title:"Open pop-up editor",class:"bio-properties-panel-open-feel-popup",onClick:()=>l("feelers"),children:zO(iX,{})})]})})),SX=()=>{},CX=uO(((e,t)=>{const{enableGutters:n,value:i,onInput:r,onFeelToggle:o=SX,onLint:s=SX,onPopupOpen:a=SX,popupOpen:l,disabled:c,tooltipContainer:h,variables:u}=e,p=G_(),[d,f]=q_(),[m,g]=q_(i||"");!function(e,t){const[n,i]=q_(void 0);t.current=U_((()=>({focus:t=>{e?e.focus(t):(void 0===t&&(t=1/0),i(t))}})),[e]),W_((()=>{void 0!==n&&e&&(e.focus(n),i(!1))}),[e,n])}(d,t);const v=bX((e=>{r(e),g(e)}));W_((()=>{let e;return e=new yI({container:p.current,onChange:v,onKeyDown:t=>{if("Backspace"!==t.key||!e)return;const n=e.getSelection(),i=n.ranges[n.mainIndex];0===i.from&&0===i.to&&o()},onLint:s,tooltipContainer:h,value:m,variables:u,extensions:[...n?[rM()]:[]]}),f(e),()=>{s([]),p.current.innerHTML="",f(null)}}),[]),W_((()=>{d&&i!==m&&(d.setValue(i),g(i))}),[i]),W_((()=>{d&&d.setVariables(u)}),[u]);return zO("div",{class:XO("bio-properties-panel-feel-editor-container",c?"disabled":null,l?"popupOpen":null),children:[zO("div",{class:"bio-properties-panel-feel-editor__open-popup-placeholder",children:"Opened in editor"}),zO("div",{name:e.name,class:XO("bio-properties-panel-input",m?"edited":null),ref:p,onClick:()=>{t.current.focus()}}),zO("button",{title:"Open pop-up editor",class:"bio-properties-panel-open-feel-popup",onClick:()=>a(),children:zO(iX,{})})]})})),PX=R_({open:()=>{},close:()=>{},source:null});function $X(e,t){let n,i,r;function o(t){const o={x:t.clientX-i,y:t.clientY-r};return e.call(n,t,o)}function s(){document.removeEventListener("dragover",o),document.removeEventListener("dragend",s),document.removeEventListener("drop",AX)}return function(e){n=this,i=e.clientX,r=e.clientY,e.dataTransfer&&e.dataTransfer.setDragImage(t||we('<canvas width="0" height="0" />'),0,0),document.addEventListener("dragover",o),document.addEventListener("dragend",s),document.addEventListener("drop",AX)}}function AX(e){e.preventDefault(),e.stopPropagation()}const RX=()=>{};function TX(e){const{container:t,className:n,position:i,width:r,height:o,onClose:s,onPostActivate:a=RX,onPostDeactivate:l=RX,returnFocus:c=!0,title:h}=e,u=G_(null),p=G_(null),d=e=>{"Escape"===e.key&&s()},f=()=>{u.current&&u.current.activate()};let m={};return i&&(m={...m,top:i.top+"px",left:i.left+"px"}),r&&(m.width=r+"px"),o&&(m.height=o+"px"),W_((()=>(p.current&&p.current.addEventListener("keydown",d),()=>{p.current.removeEventListener("keydown",d)})),[p]),W_((()=>(p.current&&p.current.addEventListener("focusin",f),()=>{p.current.removeEventListener("focusin",f)})),[p]),W_((()=>(p.current&&(u.current=eX(p.current,{clickOutsideDeactivates:!0,fallbackFocus:p.current,onPostActivate:a,onPostDeactivate:l,returnFocusOnDeactivate:c}),u.current.activate()),()=>u.current&&u.current.deactivate())),[p]),_O(zO("div",{"aria-label":h,tabIndex:-1,ref:p,role:"dialog",class:XO("bio-properties-panel-popup",n),style:m,children:e.children}),t||document.body)}function MX(e){return e.closest(".bio-properties-panel-popup")}TX.Title=function(e){const{children:t,className:n,draggable:i,title:r,...o}=e,s=G_({startPosition:null,newPosition:null}),a=G_(),l=G_(),c=j(((e,t)=>{const{x:n,y:i}=t,r=s.current.startPosition.x+n,o=s.current.startPosition.y+i,a=MX(l.current);a.style.top=o+"px",a.style.left=r+"px"}));return zO("div",{class:XO("bio-properties-panel-popup__header",i&&"draggable",n),ref:l,draggable:i,onDragStart:e=>{$X(c,a.current)(e);const t=MX(l.current).getBoundingClientRect();s.current.startPosition={x:t.left,y:t.top}},onDragEnd:()=>{s.current.newPosition=null},...o,children:[i&&zO(c_,{children:[zO("div",{ref:a,class:"bio-properties-panel-popup__drag-preview"}),zO("div",{class:"bio-properties-panel-popup__drag-handle",children:zO(nX,{})})]}),zO("div",{class:"bio-properties-panel-popup__title",children:r}),t]})},TX.Body=function(e){const{children:t,className:n,...i}=e;return zO("div",{class:XO("bio-properties-panel-popup__body",n),...i,children:t})},TX.Footer=function(e){const{children:t,className:n,...i}=e;return zO("div",{class:XO("bio-properties-panel-popup__footer",n),...i,children:e.children})};const DX=700,BX=250;function LX(e){const{element:t}=e,n=vX(t),[i,r]=q_({}),[o,s]=q_(!1),[a,l]=q_(null),[c,h]=q_(null),u=()=>{s(!1),l(null)},p={open:(e,t,n)=>{l(e),r(t),s(!0),h(n)},close:u,source:a};return W_((()=>{t&&t!==n&&u()}),[t]),zO(PX.Provider,{value:p,children:[o&&zO(NX,{onClose:u,sourceElement:c,...i}),e.children]})}function NX(e){const{id:t,hostLanguage:n,onInput:i,onClose:r,position:o,singleLine:s,sourceElement:a,title:l,tooltipContainer:c,type:h,value:u,variables:p}=e,d=G_();return W_((()=>{const e=d.current;e&&e.focus()}),[d,t]),zO(TX,{className:"bio-properties-panel-feel-popup",position:o,title:l,onClose:r,returnFocus:!1,onPostDeactivate:()=>{a&&a.focus()},height:BX,width:DX,children:[zO(TX.Title,{title:l,draggable:!0}),zO(TX.Body,{children:zO("div",{class:"bio-properties-panel-feel-popup__body",children:["feel"===h&&zO(CX,{enableGutters:!0,id:jX(t),name:t,onInput:i,value:u,variables:p,ref:d,tooltipContainer:c}),"feelers"===h&&zO(kX,{id:jX(t),contentAttributes:{"aria-label":l},enableGutters:!0,hostLanguage:n,name:t,onInput:i,value:u,ref:d,singleLine:s,tooltipContainer:c})]})}),zO(TX.Footer,{children:zO("button",{onClick:r,title:"Close pop-up editor",class:"bio-properties-panel-feel-popup__close-btn",children:"Close"})})]})}function jX(e){return`bio-properties-panel-${e}`}function zX(e){const{id:t,label:n,onInput:i,value:r,switcherLabel:o,inline:s,onFocus:a,onBlur:l,inputRef:c,tooltip:h}=e,[u,p]=q_(r);return W_((()=>{r!==u&&p(r)}),[r]),zO("div",{class:XO("bio-properties-panel-toggle-switch",{inline:s}),children:[zO("label",{class:"bio-properties-panel-label",for:IX(t),children:zO(hX,{value:h,forId:t,element:e.element,children:n})}),zO("div",{class:"bio-properties-panel-field-wrapper",children:[zO("label",{class:"bio-properties-panel-toggle-switch__switcher",children:[zO("input",{ref:c,id:IX(t),class:"bio-properties-panel-input",type:"checkbox",onFocus:a,onBlur:l,name:t,onInput:e=>{(async()=>{i(!r)})(),p(e.target.value)},checked:!!u}),zO("span",{class:"bio-properties-panel-toggle-switch__slider"})]}),o&&zO("p",{class:"bio-properties-panel-toggle-switch__label",children:o})]})]})}function IX(e){return`bio-properties-panel-${e}`}function XX(e){const{debounce:t,disabled:n,displayLabel:i=!0,id:r,inputRef:o,label:s,max:a,min:l,onInput:c,step:h,value:u="",onFocus:p,onBlur:d}=e,[f,m]=q_(u),g=U_((()=>t((e=>{const{validity:t,value:n}=e.target;t.valid&&c(n?parseFloat(n):void 0)}))),[c,t]);return W_((()=>{u!==f&&m(u)}),[u]),zO("div",{class:"bio-properties-panel-numberfield",children:[i&&zO("label",{for:QX(r),class:"bio-properties-panel-label",children:s}),zO("input",{id:QX(r),ref:o,type:"number",name:r,spellCheck:"false",autoComplete:"off",disabled:n,class:"bio-properties-panel-input",max:a,min:l,onInput:e=>{g(e),m(e.target.value)},onFocus:p,onBlur:d,step:h,value:f})]})}function QX(e){return`bio-properties-panel-${e}`}function FX(e){return`bio-properties-panel-${e}`}uO(((e,t)=>{const{id:n,disabled:i,onInput:r,value:o,onFocus:s,onBlur:a}=e,l=G_();return t.current={focus:e=>{const t=l.current;t&&(t.focus(),"number"==typeof e&&(e>o.length&&(e=o.length),t.setSelectionRange(e,e)))}},zO("input",{id:FX(n),type:"text",ref:l,name:n,spellCheck:"false",autoComplete:"off",disabled:i,class:"bio-properties-panel-input",onInput:e=>r(e.target.value),onFocus:s,onBlur:a,value:o||""})})),uO(((e,t)=>{const{id:n,debounce:i,disabled:r,onInput:o,value:s,min:a,max:l,step:c,onFocus:h,onBlur:u}=e,p=G_();return t.current={focus:e=>{const t=p.current;t&&(t.focus(),"number"==typeof e&&e!==1/0&&(e>s.length&&(e=s.length),t.setSelectionRange(e,e)))}},zO(XX,{id:n,debounce:i,disabled:r,displayLabel:!1,inputRef:p,max:l,min:a,onInput:o,step:c,value:s,onFocus:h,onBlur:u})})),uO(((e,t)=>{const{id:n,disabled:i,onInput:r,value:o,onFocus:s,onBlur:a}=e,l=G_();return t.current={focus:()=>{const e=l.current;e&&(e.focus(),e.setSelectionRange(0,0))}},zO("textarea",{id:FX(n),type:"text",ref:l,name:n,spellCheck:"false",autoComplete:"off",disabled:i,class:"bio-properties-panel-input",onInput:e=>r(e.target.value),onFocus:s,onBlur:a,value:o||"","data-gramm":"false"})})),uO(((e,t)=>{const{id:n,onInput:i,value:r,onFocus:o,onBlur:s,switcherLabel:a}=e,l=G_();return t.current={focus:()=>{const e=l.current;e&&e.focus()}},zO(zX,{id:n,value:r,inputRef:l,onInput:i,onFocus:o,onBlur:s,switcherLabel:a})})),uO(((e,t)=>{const{id:n,disabled:i,onInput:r,value:o,onFocus:s,onBlur:a}=e,l=G_();return t.current={focus:()=>{const e=l.current;e&&e.focus()}},zO("input",{ref:l,id:FX(n),name:n,onFocus:s,onBlur:a,type:"checkbox",class:"bio-properties-panel-input",onChange:({target:e})=>{r(e.checked)},checked:o,disabled:i})}));const VX={},qX={},HX={};function WX(e){const{element:t,headerProvider:n,placeholderProvider:i,groups:r,layoutConfig:o,layoutChanged:s,descriptionConfig:a,descriptionLoaded:l,tooltipConfig:h,tooltipLoaded:u,eventBus:p}=e,[d,f]=q_(YX(o));!function(e,t){const n=G_(!1);Y_((()=>{if(n.current)return e();n.current=!0}),t)}((()=>{const e=YX(o);f(e)}),[o]),W_((()=>{"function"==typeof s&&s(d)}),[d,s]);const m={layout:d,setLayout:f,getLayoutForKey:(e,t)=>Q(d,e,t),setLayoutForKey:(e,t)=>{const n=I({},d);X(n,e,t),f(n)}},g=U_((()=>function(e={}){return{...qX,...e}}(a)),[a]);W_((()=>{"function"==typeof l&&l(g)}),[g,l]);const v={description:g,getDescriptionForId:(e,t)=>g[e]&&g[e](t)},y=U_((()=>function(e={}){return{...HX,...e}}(h)),[h]);W_((()=>{"function"==typeof u&&u(y)}),[y,u]);const b={tooltip:y,getTooltipForId:(e,t)=>y[e]&&y[e](t)},[x,w]=q_({});gX("propertiesPanel.setErrors",(({errors:e})=>w(e)),p);const _={errors:x},O={eventBus:p},E={element:t};return i&&!t?zO(_X,{...i.getEmpty()}):i&&c(t)?zO(_X,{...i.getMultiple()}):zO(lX.Provider,{value:E,children:zO(sX.Provider,{value:_,children:zO(oX.Provider,{value:v,children:zO(cX.Provider,{value:b,children:zO(lX.Provider,{value:m,children:zO(aX.Provider,{value:O,children:zO(LX,{element:t,children:zO("div",{class:"bio-properties-panel",children:[zO(rX,{element:t,headerProvider:n}),zO("div",{class:"bio-properties-panel-scroll-container",children:r.map((e=>{const{component:n=xX,id:i}=e;return a_(n,{...e,key:i,element:t})}))})]})})})})})})})})}function YX(e={},t=VX){return{...t,...e}}function GX(e){const{id:t,label:n,onChange:i,disabled:r,value:o=!1,onFocus:s,onBlur:a,tooltip:l}=e,[c,h]=q_(o);W_((()=>{o!==c&&h(o)}),[o]);return zO("div",{class:"bio-properties-panel-checkbox",children:[zO("input",{ref:yX(t),id:KX(t),name:t,onFocus:s,onBlur:a,type:"checkbox",class:"bio-properties-panel-input",onChange:e=>{(({target:e})=>{i(e.checked)})(e),h(e.target.value)},checked:c,disabled:r}),zO("label",{for:KX(t),class:"bio-properties-panel-label",children:zO(hX,{value:l,forId:t,element:e.element,children:n})})]})}function UX(e){const{element:t,id:n,description:i,label:r,getValue:o,setValue:s,disabled:a,onFocus:l,onBlur:c,tooltip:h}=e,u=o(t),p=mX(n);return zO("div",{class:"bio-properties-panel-entry bio-properties-panel-checkbox-entry","data-entry-id":n,children:[zO(GX,{disabled:a,id:n,label:r,onChange:s,onFocus:l,onBlur:c,value:u,tooltip:h,element:t},t),p&&zO("div",{class:"bio-properties-panel-error",children:p}),zO(OX,{forId:n,element:t,value:i})]})}function ZX(e){return e&&!!e.checked}function KX(e){return`bio-properties-panel-${e}`}function JX(e){const{id:t,label:n,onChange:i,options:r=[],value:o="",disabled:s,onFocus:a,onBlur:l,tooltip:c}=e,h=yX(t),[u,p]=q_(o);return W_((()=>{o!==u&&p(o)}),[o]),zO("div",{class:"bio-properties-panel-select",children:[zO("label",{for:nQ(t),class:"bio-properties-panel-label",children:zO(hX,{value:c,forId:t,element:e.element,children:n})}),zO("select",{ref:h,id:nQ(t),name:t,class:"bio-properties-panel-input",onInput:e=>{(({target:e})=>{i(e.value)})(e),p(e.target.value)},onFocus:a,onBlur:l,value:u,disabled:s,children:r.map(((e,t)=>e.children?zO("optgroup",{label:e.label,children:e.children.map(((e,t)=>zO("option",{value:e.value,disabled:e.disabled,children:e.label},t)))},t):zO("option",{value:e.value,disabled:e.disabled,children:e.label},t)))})]})}function eQ(e){const{element:t,id:n,description:i,label:r,getValue:o,setValue:s,getOptions:a,disabled:l,onFocus:c,onBlur:h,validate:u,tooltip:d}=e,f=a(t),m=mX(n),[g,v]=q_(null);let y=o(t);W_((()=>{if(p(u)){const e=u(y)||null;v(e)}}),[y]);const b=m||g;return zO("div",{class:XO("bio-properties-panel-entry",b?"has-error":""),"data-entry-id":n,children:[zO(JX,{id:n,label:r,value:y,onChange:e=>{let t=null;p(u)&&(t=u(e)||null),s(e,t),v(t)},onFocus:c,onBlur:h,options:f,disabled:l,tooltip:d,element:t},t),b&&zO("div",{class:"bio-properties-panel-error",children:b}),zO(OX,{forId:n,element:t,value:i})]})}function tQ(e){return e&&!!e.value}function nQ(e){return`bio-properties-panel-${e}`}function iQ(e){e.style.height="auto",e.style.height=`${e.scrollHeight+2}px`}function rQ(e){const{id:t,label:n,debounce:i,onInput:r,value:o="",disabled:s,monospace:a,onFocus:l,onBlur:c,autoResize:h,rows:u=(h?1:2),tooltip:p}=e,[d,f]=q_(o),m=yX(t),g=U_((()=>i((({target:e})=>r(e.value.length?e.value:void 0)))),[r,i]);return Y_((()=>{h&&iQ(m.current)}),[]),W_((()=>{o!==d&&f(o)}),[o]),zO("div",{class:"bio-properties-panel-textarea",children:[zO("label",{for:aQ(t),class:"bio-properties-panel-label",children:zO(hX,{value:p,forId:t,element:e.element,children:n})}),zO("textarea",{ref:m,id:aQ(t),name:t,spellCheck:"false",class:XO("bio-properties-panel-input",a?"bio-properties-panel-input-monospace":"",h?"auto-resize":""),onInput:e=>{g(e),h&&iQ(e.target),f(e.target.value)},onFocus:l,onBlur:c,rows:u,value:d,disabled:s,"data-gramm":"false"})]})}function oQ(e){const{element:t,id:n,description:i,debounce:r,label:o,getValue:s,setValue:a,rows:l,monospace:c,disabled:h,validate:u,onFocus:d,onBlur:f,autoResize:m,tooltip:g}=e,v=mX(n),[y,b]=q_(null);let x=s(t);W_((()=>{if(p(u)){const e=u(x)||null;b(e)}}),[x]);const w=v||y;return zO("div",{class:XO("bio-properties-panel-entry",w?"has-error":""),"data-entry-id":n,children:[zO(rQ,{id:n,label:o,value:x,onInput:e=>{let t=null;p(u)&&(t=u(e)||null),a(e,t),b(t)},onFocus:d,onBlur:f,rows:l,debounce:r,monospace:c,disabled:h,autoResize:m,tooltip:g,element:t},t),w&&zO("div",{class:"bio-properties-panel-error",children:w}),zO(OX,{forId:n,element:t,value:i})]})}function sQ(e){return e&&!!e.value}function aQ(e){return`bio-properties-panel-${e}`}function lQ(e){const{debounce:t,disabled:n=!1,id:i,label:r,onInput:o,onFocus:s,onBlur:a,value:l="",tooltip:c}=e,[h,u]=q_(l||""),p=yX(i),d=U_((()=>t((({target:e})=>o(e.value.length?e.value:void 0)))),[o,t]);return W_((()=>{l!==h&&u(l)}),[l]),zO("div",{class:"bio-properties-panel-textfield",children:[zO("label",{for:uQ(i),class:"bio-properties-panel-label",children:zO(hX,{value:c,forId:i,element:e.element,children:r})}),zO("input",{ref:p,id:uQ(i),type:"text",name:i,spellCheck:"false",autoComplete:"off",disabled:n,class:"bio-properties-panel-input",onInput:e=>{d(e),u(e.target.value)},onFocus:s,onBlur:a,value:h})]})}function cQ(e){const{element:t,id:n,description:i,debounce:r,disabled:o,label:s,getValue:a,setValue:l,validate:c,onFocus:h,onBlur:u,tooltip:d}=e,f=mX(n),[m,g]=q_(null);let v=a(t);W_((()=>{if(p(c)){const e=c(v)||null;g(e)}}),[v]);const y=f||m;return zO("div",{class:XO("bio-properties-panel-entry",y?"has-error":""),"data-entry-id":n,children:[zO(lQ,{debounce:r,disabled:o,id:n,label:s,onInput:e=>{let t=null;p(c)&&(t=c(e)||null),l(e,t),g(t)},onFocus:h,onBlur:u,value:v,tooltip:d,element:t},t),y&&zO("div",{class:"bio-properties-panel-error",children:y}),zO(OX,{forId:n,element:t,value:i})]})}function hQ(e){return e&&!!e.value}function uQ(e){return`bio-properties-panel-${e}`}const pQ=300;function dQ(e){return function(t){return!1!==e?N(t,u(e)?e:pQ):t}}dQ.$inject=["config.debounceInput"];var fQ={debounceInput:["factory",dQ]},mQ={},gQ=Qt(q);Object.defineProperty(mQ,"__esModule",{value:!0});var vQ=gQ;function yQ(e){return(xQ(e,"zeebe:IoMapping")||[])[0]}function bQ(e){return function(e,t){var n=yQ(e);return n&&n.get(t)||[]}(e,"inputParameters")}function xQ(e,t,n){var i=function(e,t){var n=[],i=e.get("extensionElements");if(void 0!==i){var r=i.get("values");void 0!==r&&(n=vQ.filter(r,(function(e){return function(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}(e,t)})))}return n}(e,t);return n?(i[0]||{})[n]||[]:i}function wQ(e){for(var t=[],n=e;n.$parent;)t.push(n.$parent),n=n.$parent;return t}function _Q(e,t,n){n=n||0,vQ.isArray(e)||(e=[e]),vQ.forEach(e,(function(e,i){var r=t(e,i,n);vQ.isArray(r)&&r.length&&_Q(r,t,n+1)}))}function OQ(e,t,n){var i=!n||-1===e.indexOf(t);return i&&e.push(t),i}function EQ(e,t,n){var i=[],r=[];return _Q(e,(function(e,o,s){OQ(i,e,t);var a=e.flowElements;if((-1===n||s<n)&&a&&OQ(r,a,t))return a})),i}function kQ(e,t){return EQ(e,!t,-1)}function SQ(e,t){var n=vQ.findIndex(e,(function(e){return e.name===t.name&&e.scope===t.scope}));n>=0?e[n].origin=function(e,t){return e.concat(t)}(e[n].origin,t.origin):e.push(t)}function CQ(e,t,n){var i,r,o,s,a=(i=n,r=t,o=wQ(e),s=vQ.find(o,(function(e){return function(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}(e,"bpmn:SubProcess")&&function(e,t){return vQ.find(bQ(e),(function(e){return e.target===t}))}(e,r)})),s||i);return{name:t,origin:[e],scope:a}}var PQ=[function(e){var t=e.elements,n=e.processVariables;return vQ.isArray(t)||(t=[t]),vQ.forEach(t,(function(e){var t=function(e){return(yQ(e)||{}).inputParameters}(e);vQ.forEach(t,(function(t){var i=CQ(e,t.target,e);SQ(n,i)}))})),n},function(e){var t=e.elements,n=e.processVariables;return vQ.isArray(t)||(t=[t]),vQ.forEach(t,(function(e){var t=e.loopCharacteristics,i=t&&function(e){const t=xQ(e,"zeebe:LoopCharacteristics")[0];return t&&t.inputElement}(t);if(i){var r=CQ(e,i,e);SQ(n,r)}})),n},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return vQ.isArray(t)||(t=[t]),vQ.forEach(t,(function(e){var t=function(e){return(yQ(e)||{}).outputParameters}(e);vQ.forEach(t,(function(t){var r=CQ(e,t.target,n);SQ(i,r)}))})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return vQ.isArray(t)||(t=[t]),vQ.forEach(t,(function(e){var t=e.loopCharacteristics,r=t&&function(e){const t=xQ(e,"zeebe:LoopCharacteristics")[0];return t&&t.outputCollection}(t);if(r){var o=CQ(e,r,n);SQ(i,o)}})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return vQ.isArray(t)||(t=[t]),vQ.forEach(t,(function(e){var t=function(e){return(xQ(e,"zeebe:CalledDecision")||[])[0]}(e)||function(e){return(xQ(e,"zeebe:Script")||[])[0]}(e);if(t){var r=t.resultVariable;if(r){var o=CQ(e,r,n);SQ(i,o)}}})),i}];function $Q(e,t=[]){var n=[],i=kQ([e],!1);const r=[];return vQ.forEach([...PQ,...t],(function(t){r.push(t({elements:i,containerElement:e,processVariables:n}))})),Promise.all(r).then((()=>n))}async function AQ(e,t,n=[]){var i=await $Q(t,n),r=function(e,t){var n=kQ(t);return vQ.find(n,(function(t){return t.id===e}))}(e,t),o=vQ.filter(i,(function(e){return e.scope.id===r.id})),s=wQ(r);return function(e,t){return e.concat(t)}(o,vQ.filter(i,(function(e){return vQ.find(s,(function(t){return t.id===e.scope.id}))})))}function RQ(e){return e&&e.businessObject||e}function TQ(e,t){var n=RQ(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}mQ.getProcessVariables=$Q,mQ.getVariablesForElement=function(e,t=[]){return AQ(function(e){const t=RQ(e);if(TQ(e,"bpmn:Participant"))return t.processRef.id;return t.id}(e),function(e){const t=RQ(e);if(TQ(t,"bpmn:Participant"))return t.processRef;if(TQ(t,"bpmn:Process"))return t;let n=t;for(;n.$parent&&!TQ(n,"bpmn:Process");)n=n.$parent;return n}(e),t)},mQ.getVariablesForScope=AQ;var MQ={exports:{}};const DQ=(e,t,n)=>{const i=t<0?e.length+t:t;if(i>=0&&i<e.length){const i=n<0?e.length+n:n,[r]=e.splice(t,1);e.splice(i,0,r)}};MQ.exports=(e,t,n)=>(e=[...e],DQ(e,t,n),e),MQ.exports.mutate=DQ;var BQ={};Object.defineProperty(BQ,"__esModule",{value:!0});var LQ=gQ;function NQ(e){var t=function(e){return jQ(e,"camunda:FormData")[0]}(e);return t&&t.get("fields")||[]}function jQ(e,t,n){var i=function(e,t){var n=[],i=e.get("extensionElements");if(void 0!==i){var r=i.get("values");void 0!==r&&(n=LQ.filter(r,(function(e){return function(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}(e,t)})))}return n}(e,t);return n?(i[0]||{})[n]||[]:i}function zQ(e,t){var n=function(e){return(jQ(e,"camunda:InputOutput")||[])[0]}(e);return n&&n.get(t)||[]}function IQ(e){for(var t=[],n=e;n.$parent;)t.push(n.$parent),n=n.$parent;return t}function XQ(e,t,n){n=n||0,LQ.isArray(e)||(e=[e]),LQ.forEach(e,(function(e,i){var r=t(e,i,n);LQ.isArray(r)&&r.length&&XQ(r,t,n+1)}))}function QQ(e,t,n){var i=!n||-1===e.indexOf(t);return i&&e.push(t),i}function FQ(e,t,n){var i=[],r=[];return XQ(e,(function(e,o,s){QQ(i,e,t);var a=e.flowElements;if((-1===n||s<n)&&a&&QQ(r,a,t))return a})),i}function VQ(e,t){return FQ(e,!t,-1)}function qQ(e,t){var n=LQ.findIndex(e,(function(e){return e.name===t.name&&e.scope===t.scope}));n>=0?e[n].origin=function(e,t){return e.concat(t)}(e[n].origin,t.origin):e.push(t)}function HQ(e,t,n){var i,r,o,s,a=(i=n,r=t,o=IQ(e),s=LQ.find(o,(function(e){return function(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}(e,"bpmn:SubProcess")&&function(e,t){return LQ.find(function(e){return zQ(e,"inputParameters")}(e),(function(e){return e.name===t}))}(e,r)})),s||i);return{name:t,origin:[e],scope:a}}function WQ(e,t){var n=e.eventDefinitions;return n&&t?LQ.filter(n,(function(e){return function(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}(e,t)})):n}var YQ=[function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return LQ.isArray(t)||(t=[t]),LQ.forEach(t,(function(e){var t=function(e){return zQ(e,"outputParameters")}(e);LQ.forEach(t,(function(t){var r=HQ(e,t.name,n);qQ(i,r)}))})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return LQ.isArray(t)||(t=[t]),LQ.forEach(t,(function(e){var t=function(e){return e.get("camunda:resultVariable")}(e);if(t){var r=HQ(e,t,n);qQ(i,r)}})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return LQ.isArray(t)||(t=[t]),LQ.forEach(t,(function(e){var t=NQ(e);LQ.forEach(t,(function(t){var r=HQ(e,t.id,n);qQ(i,r)}))})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return LQ.isArray(t)||(t=[t]),LQ.forEach(t,(function(e){var t=function(e){return jQ(e,"camunda:Out")}(e);LQ.forEach(t,(function(t){if(!t.local){var r=HQ(e,t.target,n);qQ(i,r)}}))})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables,r=function(e,t){var r=HQ(e,t,n);qQ(i,r)};return LQ.isArray(t)||(t=[t]),LQ.forEach(t,(function(e){var t=function(e){return WQ(e,"bpmn:ErrorEventDefinition")}(e);LQ.forEach(t,(function(t){var n=t.get("errorCodeVariable"),i=t.get("errorMessageVariable");n&&r(e,n),i&&r(e,i)}));var n=function(e){return WQ(e,"bpmn:EscalationEventDefinition")}(e);LQ.forEach(n,(function(t){var n=t.get("escalationCodeVariable");n&&r(e,n)}))})),i}];function GQ(e,t=[]){const n=[];var i=[],r=VQ([e],!1);return LQ.forEach([...YQ,...t],(function(t){n.push(t({elements:r,containerElement:e,processVariables:i}))})),Promise.all(n).then((()=>i))}BQ.getProcessVariables=GQ,BQ.getVariablesForScope=async function(e,t,n=[]){var i=await GQ(t,n),r=function(e,t){var n=VQ(t);return LQ.find(n,(function(t){return t.id===e}))}(e,t),o=LQ.filter(i,(function(e){return e.scope.id===r.id})),s=IQ(r);return function(e,t){return e.concat(t)}(o,LQ.filter(i,(function(e){return LQ.find(s,(function(t){return t.id===e.scope.id}))})))};const UQ=R_({selectedElement:null,injector:null,getService:()=>null});function ZQ(e,t){const{getService:n}=K_(UQ);return n(e,t)}function KQ(){return KQ=Object.assign?Object.assign.bind():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},KQ.apply(this,arguments)}function JQ(){return JQ=Object.assign?Object.assign.bind():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},JQ.apply(this,arguments)}function eF(){return eF=Object.assign?Object.assign.bind():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},eF.apply(this,arguments)}function tF(){return tF=Object.assign?Object.assign.bind():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},tF.apply(this,arguments)}function nF(){return nF=Object.assign?Object.assign.bind():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},nF.apply(this,arguments)}function iF(){return iF=Object.assign?Object.assign.bind():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},iF.apply(this,arguments)}function rF(){return rF=Object.assign?Object.assign.bind():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},rF.apply(this,arguments)}var oF=({styles:e={},...t})=>NO("svg",rF({width:"32",height:"32",xmlns:"http://www.w3.org/2000/svg"},t),NO("path",{stroke:"#000",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"1.1,4.3",d:"M1.5 30.5L27 5"}),NO("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 sF(){return sF=Object.assign?Object.assign.bind():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},sF.apply(this,arguments)}function aF(){return aF=Object.assign?Object.assign.bind():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},aF.apply(this,arguments)}function lF(){return lF=Object.assign?Object.assign.bind():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},lF.apply(this,arguments)}function cF(){return cF=Object.assign?Object.assign.bind():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},cF.apply(this,arguments)}function hF(){return hF=Object.assign?Object.assign.bind():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},hF.apply(this,arguments)}function uF(){return uF=Object.assign?Object.assign.bind():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},uF.apply(this,arguments)}function pF(){return pF=Object.assign?Object.assign.bind():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},pF.apply(this,arguments)}function dF(){return dF=Object.assign?Object.assign.bind():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},dF.apply(this,arguments)}function fF(){return fF=Object.assign?Object.assign.bind():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},fF.apply(this,arguments)}function mF(){return mF=Object.assign?Object.assign.bind():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},mF.apply(this,arguments)}function gF(){return gF=Object.assign?Object.assign.bind():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},gF.apply(this,arguments)}function vF(){return vF=Object.assign?Object.assign.bind():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},vF.apply(this,arguments)}function yF(){return yF=Object.assign?Object.assign.bind():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},yF.apply(this,arguments)}function bF(){return bF=Object.assign?Object.assign.bind():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},bF.apply(this,arguments)}function xF(){return xF=Object.assign?Object.assign.bind():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},xF.apply(this,arguments)}function wF(){return wF=Object.assign?Object.assign.bind():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},wF.apply(this,arguments)}function _F(){return _F=Object.assign?Object.assign.bind():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},_F.apply(this,arguments)}function OF(){return OF=Object.assign?Object.assign.bind():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},OF.apply(this,arguments)}function EF(){return EF=Object.assign?Object.assign.bind():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},EF.apply(this,arguments)}function kF(){return kF=Object.assign?Object.assign.bind():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},kF.apply(this,arguments)}function SF(){return SF=Object.assign?Object.assign.bind():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},SF.apply(this,arguments)}function CF(){return CF=Object.assign?Object.assign.bind():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},CF.apply(this,arguments)}function PF(){return PF=Object.assign?Object.assign.bind():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},PF.apply(this,arguments)}function $F(){return $F=Object.assign?Object.assign.bind():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},$F.apply(this,arguments)}var AF=({styles:e={},...t})=>NO("svg",$F({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 RF(){return RF=Object.assign?Object.assign.bind():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},RF.apply(this,arguments)}var TF=({styles:e={},...t})=>NO("svg",RF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 MF(){return MF=Object.assign?Object.assign.bind():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},MF.apply(this,arguments)}var DF=({styles:e={},...t})=>NO("svg",MF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 BF(){return BF=Object.assign?Object.assign.bind():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},BF.apply(this,arguments)}var LF=({styles:e={},...t})=>NO("svg",BF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 NF(){return NF=Object.assign?Object.assign.bind():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},NF.apply(this,arguments)}var jF=({styles:e={},...t})=>NO("svg",NF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 zF(){return zF=Object.assign?Object.assign.bind():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},zF.apply(this,arguments)}var IF=({styles:e={},...t})=>NO("svg",zF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 XF(){return XF=Object.assign?Object.assign.bind():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},XF.apply(this,arguments)}var QF=({styles:e={},...t})=>NO("svg",XF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 FF(){return FF=Object.assign?Object.assign.bind():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},FF.apply(this,arguments)}var VF=({styles:e={},...t})=>NO("svg",FF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 qF(){return qF=Object.assign?Object.assign.bind():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},qF.apply(this,arguments)}var HF=({styles:e={},...t})=>NO("svg",qF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 WF(){return WF=Object.assign?Object.assign.bind():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},WF.apply(this,arguments)}var YF=({styles:e={},...t})=>NO("svg",WF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 GF(){return GF=Object.assign?Object.assign.bind():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},GF.apply(this,arguments)}var UF=({styles:e={},...t})=>NO("svg",GF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 ZF(){return ZF=Object.assign?Object.assign.bind():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},ZF.apply(this,arguments)}var KF=({styles:e={},...t})=>NO("svg",ZF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 JF(){return JF=Object.assign?Object.assign.bind():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},JF.apply(this,arguments)}var eV=({styles:e={},...t})=>NO("svg",JF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 tV(){return tV=Object.assign?Object.assign.bind():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},tV.apply(this,arguments)}var nV=({styles:e={},...t})=>NO("svg",tV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 iV(){return iV=Object.assign?Object.assign.bind():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},iV.apply(this,arguments)}var rV=({styles:e={},...t})=>NO("svg",iV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 oV(){return oV=Object.assign?Object.assign.bind():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},oV.apply(this,arguments)}var sV=({styles:e={},...t})=>NO("svg",oV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 aV(){return aV=Object.assign?Object.assign.bind():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},aV.apply(this,arguments)}var lV=({styles:e={},...t})=>NO("svg",aV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 cV(){return cV=Object.assign?Object.assign.bind():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},cV.apply(this,arguments)}var hV=({styles:e={},...t})=>NO("svg",cV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 uV(){return uV=Object.assign?Object.assign.bind():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},uV.apply(this,arguments)}var pV=({styles:e={},...t})=>NO("svg",uV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 dV(){return dV=Object.assign?Object.assign.bind():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},dV.apply(this,arguments)}function fV(){return fV=Object.assign?Object.assign.bind():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},fV.apply(this,arguments)}function mV(){return mV=Object.assign?Object.assign.bind():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},mV.apply(this,arguments)}function gV(){return gV=Object.assign?Object.assign.bind():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},gV.apply(this,arguments)}function vV(){return vV=Object.assign?Object.assign.bind():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},vV.apply(this,arguments)}function yV(){return yV=Object.assign?Object.assign.bind():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},yV.apply(this,arguments)}function bV(){return bV=Object.assign?Object.assign.bind():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},bV.apply(this,arguments)}function xV(){return xV=Object.assign?Object.assign.bind():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},xV.apply(this,arguments)}function wV(){return wV=Object.assign?Object.assign.bind():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},wV.apply(this,arguments)}function _V(){return _V=Object.assign?Object.assign.bind():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},_V.apply(this,arguments)}function OV(){return OV=Object.assign?Object.assign.bind():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},OV.apply(this,arguments)}function EV(){return EV=Object.assign?Object.assign.bind():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},EV.apply(this,arguments)}function kV(){return kV=Object.assign?Object.assign.bind():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},kV.apply(this,arguments)}function SV(){return SV=Object.assign?Object.assign.bind():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},SV.apply(this,arguments)}function CV(){return CV=Object.assign?Object.assign.bind():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},CV.apply(this,arguments)}function PV(){return PV=Object.assign?Object.assign.bind():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},PV.apply(this,arguments)}function $V(){return $V=Object.assign?Object.assign.bind():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},$V.apply(this,arguments)}function AV(){return AV=Object.assign?Object.assign.bind():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},AV.apply(this,arguments)}function RV(){return RV=Object.assign?Object.assign.bind():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},RV.apply(this,arguments)}function TV(){return TV=Object.assign?Object.assign.bind():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},TV.apply(this,arguments)}function MV(){return MV=Object.assign?Object.assign.bind():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},MV.apply(this,arguments)}function DV(){return DV=Object.assign?Object.assign.bind():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},DV.apply(this,arguments)}function BV(){return BV=Object.assign?Object.assign.bind():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},BV.apply(this,arguments)}function LV(){return LV=Object.assign?Object.assign.bind():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},LV.apply(this,arguments)}function NV(){return NV=Object.assign?Object.assign.bind():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},NV.apply(this,arguments)}function jV(){return jV=Object.assign?Object.assign.bind():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},jV.apply(this,arguments)}function zV(){return zV=Object.assign?Object.assign.bind():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},zV.apply(this,arguments)}function IV(){return IV=Object.assign?Object.assign.bind():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},IV.apply(this,arguments)}function XV(){return XV=Object.assign?Object.assign.bind():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},XV.apply(this,arguments)}function QV(){return QV=Object.assign?Object.assign.bind():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},QV.apply(this,arguments)}function FV(){return FV=Object.assign?Object.assign.bind():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},FV.apply(this,arguments)}function VV(){return VV=Object.assign?Object.assign.bind():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},VV.apply(this,arguments)}function qV(){return qV=Object.assign?Object.assign.bind():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},qV.apply(this,arguments)}var HV=({styles:e={},...t})=>NO("svg",qV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 WV(){return WV=Object.assign?Object.assign.bind():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},WV.apply(this,arguments)}var YV=({styles:e={},...t})=>NO("svg",WV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 GV(){return GV=Object.assign?Object.assign.bind():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},GV.apply(this,arguments)}function UV(){return UV=Object.assign?Object.assign.bind():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},UV.apply(this,arguments)}function ZV(){return ZV=Object.assign?Object.assign.bind():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},ZV.apply(this,arguments)}function KV(){return KV=Object.assign?Object.assign.bind():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},KV.apply(this,arguments)}var JV={Association:({styles:e={},...t})=>NO("svg",KQ({width:"32",height:"32",xmlns:"http://www.w3.org/2000/svg"},t),NO("path",{stroke:"#000",strokeWidth:"2",fill:"none",strokeDasharray:"3.3,6",strokeLinecap:"square",d:"M1.5 30.5l29-29"})),BusinessRuleTask:({styles:e={},...t})=>NO("svg",JQ({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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"}),NO("path",{d:"M6.079 8.209v3.587H21.44V8.209z"})),CallActivity:({styles:e={},...t})=>NO("svg",eF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",tF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("g",{fillRule:"evenodd"},NO("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"}),NO("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})=>NO("svg",nF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",iF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",sF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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:oF,DataOutput:({styles:e={},...t})=>NO("svg",lF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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:oF,DataObjectReference:({styles:e={},...t})=>NO("svg",aF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",cF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",hF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",uF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",pF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",dF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",fF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",mF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",gF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",vF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",yF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",bF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",xF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",wF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",_F({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",OF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",CF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",EF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",kF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",SF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",PF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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:AF,CompensateIntermediateCatchEvent:TF,ConditionalIntermediateCatchEvent:DF,ErrorIntermediateCatchEvent:LF,EscalationIntermediateCatchEvent:jF,LinkIntermediateCatchEvent:IF,MessageIntermediateCatchEvent:QF,MultipleIntermediateCatchEvent:VF,ConditionalIntermediateCatchEventNonInterrupting:HF,EscalationIntermediateCatchEventNonInterrupting:YF,MessageIntermediateCatchEventNonInterrupting:UF,MultipleIntermediateCatchEventNonInterrupting:KF,ParallelIntermediateCatchEventNonInterrupting:eV,SignalIntermediateCatchEventNonInterrupting:nV,TimerIntermediateCatchEventNonInterrupting:rV,ParallelMultipleIntermediateCatchEvent:sV,SignalIntermediateCatchEvent:lV,TimerIntermediateCatchEvent:hV,IntermediateThrowEvent:pV,CompensateIntermediateThrowEvent:({styles:e={},...t})=>NO("svg",dV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",fV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",mV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",gV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",vV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",yV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",bV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("path",{d:"M0 7v18.62h32V7H0zm1.655 17.056V8.684h28.62v15.372H1.656z"})),ManualTask:({styles:e={},...t})=>NO("svg",xV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",wV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",_V({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("path",{d:"M0 5v22.069h32V5H0zm30.276 1.684v18.82H6.62V6.684h23.655zm-28.62 0h3.31v18.82h-3.31V6.684z"})),Process:({styles:e={},...t})=>NO("svg",OV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",EV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",kV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",SV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",CV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",PV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",$V({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",AV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",RV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",TV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",MV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",DV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",BV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",LV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",NV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",jV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",zV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",IV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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:AF,CompensateBoundaryEvent:TF,ConditionalBoundaryEvent:DF,ErrorBoundaryEvent:LF,EscalationBoundaryEvent:jF,LinkBoundaryEvent:IF,MessageBoundaryEvent:QF,MultipleBoundaryEvent:VF,BoundaryEvent:pV,ConditionalBoundaryEventNonInterrupting:HF,EscalationBoundaryEventNonInterrupting:YF,MessageBoundaryEventNonInterrupting:UF,MultipleBoundaryEventNonInterrupting:KF,ParallelBoundaryEventNonInterrupting:eV,SignalBoundaryEventNonInterrupting:nV,TimerBoundaryEventNonInterrupting:rV,ParallelMultipleBoundaryEvent:sV,SignalBoundaryEvent:lV,TimerBoundaryEvent:hV,StartEvent:({styles:e={},...t})=>NO("svg",XV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",QV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",FV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",VV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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:HV,CollapsedAdHocSubProcess:HV,ExpandedSubProcess:YV,ExpandedAdHocSubProcess:YV,Task:({styles:e={},...t})=>NO("svg",GV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",UV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",ZV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",KV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 eq(e){const{type:t}=e;let n=nq(t);const i=function(e){const t=Hr(e),n=t.eventDefinitions;return n&&n[0]}(e);if(i)return n=`${function(e){const t=nq(e.$type);return t.replace("EventDefinition","")}(i)}${n}`,(Vr(e,"bpmn:StartEvent")&&!uo(e)||Vr(e,"bpmn:BoundaryEvent")&&!function(e){const t=Hr(e);return t&&!1!==t.cancelActivity}(e))&&(n=`${n}NonInterrupting`),n;if(Vr(e,"bpmn:SubProcess")&&!Vr(e,"bpmn:Transaction"))if(po(e))n=`Event${n}`;else{const t=ho(e)&&!function(e){const t=e&&(e.di||Hr(e).di);return Vr(t,"bpmndi:BPMNPlane")}(e);n=`${t?"Expanded":"Collapsed"}${n}`}return function(e){const t=Hr(e),n=Hr(e.source);if(!Vr(e,"bpmn:SequenceFlow")||!n)return!1;return n.default&&n.default===t&&(Vr(n,"bpmn:Gateway")||Vr(n,"bpmn:Activity"))}(e)&&(n="DefaultFlow"),function(e){const t=Hr(e),n=Hr(e.source);if(!Vr(e,"bpmn:SequenceFlow")||!n)return!1;return t.conditionExpression&&Vr(n,"bpmn:Activity")}(e)&&(n="ConditionalFlow"),n}const tq={getDocumentationRef:e=>{const t=iq();if(t)return function(e,t){const n=rq(e,t);return n&&n.documentationRef}(e,t)},getElementLabel:e=>Vr(e,"bpmn:Process")?Hr(e).name:_o(e),getElementIcon:e=>{const t=eq(e),n=iq();if(n){const t=rq(e,n);if(t&&t.icon)return()=>zO("img",{class:"bio-properties-panel-header-template-icon",width:"32",height:"32",src:t.icon.contents})}return JV[t]},getTypeLabel:e=>{const t=iq();if(t){const n=rq(e,t);if(n&&n.name)return n.name}return eq(e).replace(/(\B[A-Z])/g," $1").replace(/(\bNon Interrupting)/g,"($1)")}};function nq(e){return e.split(":")[1]}function iq(){return ZQ("elementTemplates",!1)}function rq(e,t){return t.get(e)}function oq(){return oq=Object.assign?Object.assign.bind():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},oq.apply(this,arguments)}var sq=({styles:e={},...t})=>NO("svg",oq({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"64",height:"64"},t),NO("defs",null,NO("rect",{id:"a",width:"57",height:"47",x:"3",y:"8",rx:"7"}),NO("mask",{id:"b",width:"57",height:"47",x:"0",y:"0",fill:"#fff",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox"},NO("use",{xlinkHref:"#a"}))),NO("g",{fill:"none",fillRule:"evenodd"},NO("path",{fill:"#818798",d:"M52 11a5 5 0 015 5v31a5 5 0 01-5 5H11a5 5 0 01-5-5V16a5 5 0 015-5h41zm0 2H11a3 3 0 00-2.995 2.824L8 16v31a3 3 0 002.824 2.995L11 50h41a3 3 0 002.995-2.824L55 47V16a3 3 0 00-2.824-2.995L52 13z"}),NO("path",{fill:"#D5D7DD",d:"M16 24h31v6H16zM21 33h21v6H21z"}),NO("use",{stroke:"#B9BCC6",strokeDasharray:"5 2",strokeWidth:"2",mask:"url(#b)",xlinkHref:"#a"})));function aq(){return aq=Object.assign?Object.assign.bind():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},aq.apply(this,arguments)}var lq=({styles:e={},...t})=>NO("svg",aq({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"128",height:"64"},t),NO("defs",null,NO("path",{id:"a",d:"M9 9h110v47H9z"}),NO("mask",{id:"b",width:"110",height:"47",x:"0",y:"0",fill:"#fff",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox"},NO("use",{xlinkHref:"#a"}))),NO("g",{fill:"none",fillRule:"evenodd"},NO("path",{fill:"#818798",d:"M25 20.272L37.728 33 25 45.728 12.272 33 25 20.272zm0 2.829L15.1 33l9.9 9.9 9.9-9.9-9.9-9.9z"}),NO("path",{fill:"#D5D7DD",d:"M17 47h16v6H17z"}),NO("path",{fill:"#818798",d:"M35 32h27v2H35z"}),NO("path",{fill:"#818798",d:"M60 30v6l6-3z"}),NO("path",{fill:"#D5D7DD",d:"M80 34h21v6H80z"}),NO("g",null,NO("path",{fill:"#818798",d:"M111 12a5 5 0 015 5v31a5 5 0 01-5 5H70a5 5 0 01-5-5V17a5 5 0 015-5h41zm0 2H70a3 3 0 00-3 3v31a3 3 0 003 3h41a3 3 0 003-3V17a3 3 0 00-3-3z"}),NO("path",{fill:"#D5D7DD",d:"M75 25h31v6H75z"})),NO("use",{stroke:"#B9BCC6",strokeDasharray:"5 2",strokeWidth:"2",mask:"url(#b)",xlinkHref:"#a"})));const cq=e=>(e||(e=e=>e),{getEmpty:()=>({text:e("Select an element to edit its properties."),icon:sq}),getMultiple:()=>({text:e("Multiple elements are selected. Select a single element to edit its properties."),icon:lq})});function hq(e){const{element:t,injector:n,getProviders:i,layoutConfig:r,descriptionConfig:o,tooltipConfig:s}=e,a=n.get("canvas"),l=n.get("elementRegistry"),h=n.get("eventBus"),u=n.get("translate"),[p,d]=q_({selectedElement:t}),f=p.selectedElement,m=e=>{if(!e)return;let t=e;t&&"label"===t.type&&(t=t.labelTarget),d({...p,selectedElement:t}),h.fire("propertiesPanel.updated",{element:t})};W_((()=>{const e=e=>{const{newSelection:t=[]}=e;if(t.length>1)return m(t);const n=t[0],i=a.getRootElement();(function(e){return e&&(e.isImplicit||"__implicitroot"===e.id)})(i)||m(n||i)};return h.on("selection.changed",e),()=>{h.off("selection.changed",e)}}),[]),W_((()=>{const e=e=>{const t=function(e,t){return g(e,(e=>e===t))}(e.elements,f);t&&function(e,t){return e&&t.get(e.id)}(t,l)&&m(t)};return h.on("elements.changed",e),()=>{h.off("elements.changed",e)}}),[f]),W_((()=>{const e=e=>{const t=e.element;m(t)};return h.on("root.added",e),()=>{h.off("root.added",e)}}),[f]),W_((()=>{const e=()=>{m(f)};return h.on("propertiesPanel.providersChanged",e),()=>{h.off("propertiesPanel.providersChanged",e)}}),[f]),W_((()=>{const e=()=>{m(f)};return h.on("elementTemplates.changed",e),()=>{h.off("elementTemplates.changed",e)}}),[f]);const v={selectedElement:f,injector:n,getService:(e,t)=>n.get(e,t)},y=i(f),b=U_((()=>w(y,(function(e,t){if(c(f))return[];return t.getGroups(f)(e)}),[])),[y,f]),[x,_]=q_(r||{}),O=Z_((e=>{h.fire("propertiesPanel.layoutChanged",{layout:e})}),[h]);W_((()=>{const e=e=>{const{layout:t}=e;_(t)};return h.on("propertiesPanel.setLayout",e),()=>h.off("propertiesPanel.setLayout",e)}),[h,_]);return zO(UQ.Provider,{value:v,children:zO(WX,{element:f,headerProvider:tq,placeholderProvider:cq(u),groups:b,layoutConfig:x,layoutChanged:O,descriptionConfig:o,descriptionLoaded:e=>{h.fire("propertiesPanel.descriptionLoaded",{description:e})},tooltipConfig:s,tooltipLoaded:e=>{h.fire("propertiesPanel.tooltipLoaded",{tooltip:e})},eventBus:h})})}class uq{constructor(e,t,n){const{parent:i,layout:r,description:o,tooltip:s}=e||{};this._eventBus=n,this._injector=t,this._layoutConfig=r,this._descriptionConfig=o,this._tooltipConfig=s,this._container=we('<div style="height: 100%" class="bio-properties-panel-container"></div>');var a=t.get("commandStack",!1);a&&function(e,t,n){function i(e){e.preventDefault(),e.stopPropagation()}function r(e){return da(e)?(n.undo(),i(e)):fa(e)?(n.redo(),i(e)):void 0}t.on("keyboard.bind",(function(){fe.bind(e,"keydown",r)})),t.on("keyboard.unbind",(function(){fe.unbind(e,"keydown",r)}))}(this._container,n,a),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");e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),"string"==typeof e&&(e=_e(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")}setLayout(e){this._eventBus.fire("propertiesPanel.setLayout",{layout:e})}_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)||(A_(zO(hq,{element:e,injector:this._injector,getProviders:this._getProviders.bind(this),layoutConfig:this._layoutConfig,descriptionConfig:this._descriptionConfig,tooltipConfig:this._tooltipConfig}),this._container),this._eventBus.fire("propertiesPanel.rendered"))}_destroy(){this._container&&(A_(null,this._container),this._eventBus.fire("propertiesPanel.destroyed"))}}uq.$inject=["config.propertiesPanel","injector","eventBus"];class pq{constructor(e){this._commandStack=e}preExecute(e){const t=this._commandStack;b(e,(function(e){t.execute(e.cmd,e.context)}))}}pq.$inject=["commandStack"];const dq={"properties-panel.multi-command-executor":pq};function fq(e,t){e.on("diagram.init",(function(){b(dq,(function(e,n){t.registerHandler(n,e)}))}))}fq.$inject=["eventBus","commandStack"];var mq={__depends__:[{__init__:[fq]},fQ],__init__:["propertiesPanel"],propertiesPanel:["type",uq]};function gq(e){const{autoFocusEntry:t,element:n,getOptions:i}=e,r=i(n),o=vX(r);return W_((()=>{if(t&&o&&r.length>o.length){const e=_e(`[data-entry-id="${t}"]`),n=_e(".bio-properties-panel-input",e);n&&n.select()}}),[r]),zO(eQ,{...e})}function vq(e){return bq(e,"bpmn:ErrorEventDefinition")}function yq(e){const t=vq(e);return t&&t.get("errorRef")}function bq(e,t){return g(Hr(e).get("eventDefinitions")||[],(function(e){return Vr(e,t)}))}function xq(e){return Vr(e,"bpmn:ReceiveTask")?Hr(e):bq(e,"bpmn:MessageEventDefinition")}function wq(e){const t=xq(e);return t&&t.get("messageRef")}function _q(e){return bq(e,"bpmn:LinkEventDefinition")}function Oq(e){return bq(e,"bpmn:SignalEventDefinition")}function Eq(e){const t=Oq(e);return t&&t.get("signalRef")}function kq(e){return bq(e,"bpmn:EscalationEventDefinition")}function Sq(e){const t=kq(e);return t&&t.get("escalationRef")}function Cq(e){return bq(e,"bpmn:CompensateEventDefinition")}function Pq(e){const{element:t}=e;return function(e){return qr(e,["bpmn:EndEvent","bpmn:IntermediateThrowEvent"])&&!!Cq(e)}(t)?[{id:"waitForCompletion",component:$q,isEdited:ZX},{id:"activityRef",component:Aq,isEdited:tQ}]:[]}function $q(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=Cq(t);return UX({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 Aq(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("elementRegistry"),r=ZQ("translate"),o=Cq(t);return gq({element:t,id:"activityRef",label:r("Activity reference"),getValue:()=>{const e=function(e){const t=Cq(e);return t&&t.get("activityRef")}(t);return e&&e.get("id")},setValue:e=>{const r=e?Hr(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){const t=Hr(e);let n=t.$parent,i=Mq(n);Vr(n,"bpmn:SubProcess")&&n.triggeredByEvent&&(n=n.$parent,n&&(i=[...i,...Mq(n)]));return i}(t);var i;return(i=n,R(i,(e=>(e.name||"").toLowerCase()))).forEach((function(t){e.push({value:t.id,label:Dq(t)})})),e}})}function Rq(e,t){const{flowElements:n}=e;return n.filter((function(e){return Vr(e,t)}))}function Tq(e,t){return Vr(e,"bpmn:CallActivity")||Vr(e,"bpmn:SubProcess")&&!e.triggeredByEvent&&!e.isForCompensation||function(e,t){const{id:n}=e;return!!g(t,(function(e){const{attachedToRef:t}=e,i=Cq(e);return t&&i&&t.id===n}))}(e,t)}function Mq(e){const t=function(e){return Rq(e,"bpmn:Activity")}(e),n=function(e){return Rq(e,"bpmn:BoundaryEvent")}(e);return t.filter((function(e){return Tq(e,n)}))}function Dq(e){const{id:t,name:n}=e;return`${n?n+" ":""}(id=${t})`}const Bq="text/plain";function Lq(e){const{element:t}=e,n=[{id:"documentation",component:Nq,isEdited:sQ}];return function(e){return Vr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)&&n.push({id:"processDocumentation",component:jq,isEdited:sQ}),n}function Nq(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("commandStack"),r=ZQ("translate"),o=ZQ("debounceInput"),s=Iq(Hr(t)),a=Xq(t,Hr(t),n,i);return oQ({element:t,id:"documentation",label:r("Element documentation"),getValue:s,setValue:a,debounce:o})}function jq(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("commandStack"),r=ZQ("translate"),o=ZQ("debounceInput"),s=Hr(t).processRef,a=Iq(s),l=Xq(t,s,n,i);return oQ({element:t,id:"processDocumentation",label:r("Process documentation"),getValue:a,setValue:l,debounce:o})}function zq(e){return e.find((function(e){return(e.textFormat||Bq)===Bq}))}function Iq(e){return function(){const t=zq(e&&e.get("documentation"));return t&&t.text}}function Xq(e,t,n,i){return function(r){let o=zq(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:x(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 Qq(e,t,n,i){const r=i.create(e,t);return n&&(r.$parent=n),r}function Fq(e){return new n([32,32,1]).nextPrefixed(e)}function Vq(e){let t=e;for(;t.$parent;)t=t.$parent;return t}function qq(e,t){const n=Vq(e);return i=n.get("rootElements"),r=t,(i||[]).filter((e=>Vr(e,r)));var i,r}function Hq(e,t,n){return qq(e,t).find((e=>e.id===n))}const Wq="",Yq="create-new";function Gq(e){const{element:t}=e;if(!function(e){return qr(e,["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:EndEvent"])&&!!vq(e)}(t))return[];let n=[{id:"errorRef",component:Uq,isEdited:tQ}];return yq(t)&&(n=[...n,{id:"errorName",component:Zq,isEdited:hQ},{id:"errorCode",component:Kq,isEdited:hQ}]),n}function Uq(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("commandStack"),r=ZQ("translate"),o=vq(t);return gq({element:t,id:"errorRef",label:r("Global error reference"),autoFocusEntry:"errorName",getValue:()=>{const e=yq(t);return e?e.get("id"):Wq},setValue:e=>{const r=Vq(o),s=[];let a;return e===Yq&&(a=Qq("bpmn:Error",{name:Fq("Error_")},r,n),e=a.get("id"),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),a]}}})),a=a||Hq(o,"bpmn:Error",e),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{errorRef:a}}}),i.execute("properties-panel.multi-command-executor",s)},getOptions:()=>{let e=[{value:Wq,label:r("<none>")},{value:Yq,label:r("Create new ...")}];const n=qq(Hr(t),"bpmn:Error");var i;return(i=n,R(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function Zq(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=yq(t);return cQ({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 Kq(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=yq(t);return cQ({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 Jq="create-new";function eH(e){const{element:t}=e;if(!function(e){return Vr(e,"bpmn:Event")&&!!kq(e)}(t))return[];let n=[{id:"escalationRef",component:tH,isEdited:tQ}];return Sq(t)&&(n=[...n,{id:"escalationName",component:nH,isEdited:hQ},{id:"escalationCode",component:iH,isEdited:hQ}]),n}function tH(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("commandStack"),r=ZQ("translate"),o=kq(t);return gq({element:t,id:"escalationRef",label:r("Global escalation reference"),autoFocusEntry:"escalationName",getValue:()=>{const e=Sq(t);return e&&e.get("id")},setValue:e=>{const r=Vq(o),s=[];let a;if(e===Jq){const i=Fq("Escalation_");a=Qq("bpmn:Escalation",{id:i,name:i},r,n),e=a.get("id"),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),a]}}})}return a=a||Hq(o,"bpmn:Escalation",e),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{escalationRef:a}}}),i.execute("properties-panel.multi-command-executor",s)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:Jq,label:r("Create new ...")}];const n=qq(Hr(t),"bpmn:Escalation");var i;return(i=n,R(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function nH(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=Sq(t);return cQ({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 iH(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=Sq(t);return cQ({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 rH(e){const{element:t}=e;return Vr(t,"bpmn:Process")||function(e){return Vr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)?[{id:"isExecutable",component:oH,isEdited:ZX}]:[]}function oH(e){const{element:t}=e,n=ZQ("modeling"),i=ZQ("commandStack"),r=ZQ("translate");let o,s;if(s=e=>{n.updateProperties(t,{isExecutable:e})},o=e=>e.businessObject.isExecutable,Vr(t,"bpmn:Participant")){const e=t.businessObject.get("processRef");s=n=>{i.execute("element.updateModdleProperties",{element:t,moddleElement:e,properties:{isExecutable:n}})},o=()=>e.get("isExecutable")}return UX({element:t,id:"isExecutable",label:r("Executable"),getValue:o,setValue:s})}const sH=/\s/,aH=/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i,lH=/^[a-z_][\w-.]*$/i;function cH(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,sH.test(n))return t("ID must not contain spaces.");var n;if(!lH.test(e))return aH.test(e)?t("ID must not contain prefix."):t("ID must be a valid QName.")}(t,n):n("ID must not be empty.")}function hH(e){const{element:t}=e,n=ZQ("modeling"),i=ZQ("debounceInput"),r=ZQ("translate");return cQ({element:t,id:"id",label:r(Vr(t,"bpmn:Participant")?"Participant ID":"ID"),getValue:e=>e.businessObject.id,setValue:(e,i)=>{i||n.updateProperties(t,{id:e})},debounce:i,validate:e=>cH(Hr(t),e,r)})}function uH(e){const{element:t}=e;return function(e){return qr(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!_q(e)}(t)?[{id:"linkName",component:pH,isEdited:hQ}]:[]}function pH(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=_q(t);return cQ({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 dH="",fH="create-new";function mH(e){const{element:t}=e;if(!function(e){return Vr(e,"bpmn:ReceiveTask")||qr(e,["bpmn:StartEvent","bpmn:EndEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent"])&&!!xq(e)}(t))return[];let n=[{id:"messageRef",component:gH,isEdited:tQ}];return wq(t)&&(n=[...n,{id:"messageName",component:vH,isEdited:hQ}]),n}function gH(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("commandStack"),r=ZQ("translate"),o=xq(t);return gq({element:t,id:"messageRef",label:r("Global message reference"),autoFocusEntry:"messageName",getValue:()=>{const e=wq(t);return e?e.get("id"):dH},setValue:e=>{const r=Vq(o),s=[];let a;if(e===fH){const i=Fq("Message_");a=Qq("bpmn:Message",{id:i,name:i},r,n),e=a.get("id"),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),a]}}})}return a=a||Hq(o,"bpmn:Message",e),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{messageRef:a}}}),i.execute("properties-panel.multi-command-executor",s)},getOptions:()=>{let e=[{value:dH,label:r("<none>")},{value:fH,label:r("Create new ...")}];const n=qq(Hr(t),"bpmn:Message");var i;return(i=n,R(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function vH(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=wq(t);return cQ({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 yH(e){const{element:t}=e;if(!function(e){const t=OH(e);return!!t&&Vr(t,"bpmn:MultiInstanceLoopCharacteristics")}(t))return[];return[{id:"loopCardinality",component:bH,isEdited:hQ},{id:"completionCondition",component:xH,isEdited:hQ}]}function bH(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("debounceInput"),r=ZQ("commandStack"),o=ZQ("translate");return cQ({element:t,id:"loopCardinality",label:o("Loop cardinality"),getValue:()=>function(e){const t=function(e){return _H(e,"loopCardinality")}(e);return wH(t)}(t),setValue:e=>r.execute("element.updateModdleProperties",EH(t,"loopCardinality",e,n)),debounce:i})}function xH(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("debounceInput"),r=ZQ("commandStack"),o=ZQ("translate");return cQ({element:t,id:"completionCondition",label:o("Completion condition"),getValue:()=>function(e){const t=function(e){return _H(e,"completionCondition")}(e);return wH(t)}(t),setValue:e=>r.execute("element.updateModdleProperties",EH(t,"completionCondition",e,n)),debounce:i})}function wH(e){return e&&e.get("body")}function _H(e,t){const n=OH(e);return n&&n.get(t)}function OH(e){return Hr(e).loopCharacteristics}function EH(e,t,n,i){const r=OH(e),o={};if(!n)return o[t]=void 0,{element:e,moddleElement:r,properties:o};const s=r.get(t);return s?{element:e,moddleElement:s,properties:{body:n}}:(o[t]=function(e,t,n){return Qq("bpmn:FormalExpression",{body:t},e,n)}(r,n,i),{element:e,moddleElement:r,properties:o})}function kH(e){const{element:t}=e;return qr(t,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"])?[]:[{id:"name",component:SH,isEdited:sQ}]}function SH(e){const{element:t}=e,n=ZQ("modeling"),i=ZQ("debounceInput"),r=ZQ("canvas"),o=ZQ("bpmnFactory"),s=ZQ("translate");let a={element:t,id:"name",label:s("Name"),debounce:i,setValue:e=>{n.updateProperties(t,{name:e})},getValue:e=>e.businessObject.name,autoResize:!0};return Vr(t,"bpmn:TextAnnotation")?a={...a,setValue:e=>{n.updateProperties(t,{text:e})},getValue:e=>e.businessObject.text}:Vr(t,"bpmn:Group")?a={...a,setValue:e=>{const i=Hr(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 Tt(e.get("rootElements"),i),Hr(i).$parent=e,Hr(n).$parent=i,n}(Hr(t).$parent,n);e.categoryValueRef=i}(i,r.getRootElement(),o),n.updateLabel(t,e)},getValue:e=>{const t=Hr(e).categoryValueRef;return t&&t.value}}:Vr(t,"bpmn:Participant")&&(a.label=s("Participant Name")),oQ(a)}function CH(e){const{element:t}=e;return function(e){return Vr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)?[{id:"processId",component:$H,isEdited:hQ},{id:"processName",component:PH,isEdited:hQ}]:[]}function PH(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=t.businessObject.get("processRef");return cQ({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 $H(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=t.businessObject.get("processRef");return cQ({element:t,id:"processId",label:i("Process ID"),getValue:()=>o.get("id"),setValue:(e,i)=>{i||n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{id:e}})},debounce:r,validate:e=>cH(o,e,i)})}const AH="",RH="create-new";function TH(e){const{element:t}=e;if(!function(e){return Vr(e,"bpmn:Event")&&!!Oq(e)}(t))return[];let n=[{id:"signalRef",component:MH,isEdited:tQ}];return Eq(t)&&(n=[...n,{id:"signalName",component:DH,isEdited:hQ}]),n}function MH(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("commandStack"),r=ZQ("translate"),o=Oq(t);return gq({element:t,id:"signalRef",label:r("Global signal reference"),autoFocusEntry:"signalName",getValue:()=>{const e=Eq(t);return e?e.get("id"):AH},setValue:e=>{const r=Vq(o),s=[];let a;if(e===RH){const i=Fq("Signal_");a=Qq("bpmn:Signal",{id:i,name:i},r,n),e=a.get("id"),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),a]}}})}return a=a||Hq(o,"bpmn:Signal",e),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{signalRef:a}}}),i.execute("properties-panel.multi-command-executor",s)},getOptions:()=>{let e=[{value:AH,label:r("<none>")},{value:RH,label:r("Create new ...")}];const n=qq(Hr(t),"bpmn:Signal");var i;return(i=n,R(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function DH(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=Eq(t);return cQ({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 BH(e){return function(e,t){const n=Hr(e);return g(n.get("eventDefinitions")||[],(function(e){return Vr(e,t)}))}(e,"bpmn:TimerEventDefinition")}function LH(e){const{element:t,idPrefix:n}=e;let{timerEventDefinition:i}=e;if(!i){i=BH(Hr(t))}const r=function(e){if(!e)return;return void 0!==e.get("timeDate")?"timeDate":void 0!==e.get("timeCycle")?"timeCycle":void 0!==e.get("timeDuration")?"timeDuration":void 0}(i);if(!function(e){return qr(e,["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"])&&!!BH(e)}(t))return[];const o=[];return o.push({id:IH(n,"timerEventDefinitionType"),component:NH,isEdited:tQ,timerEventDefinition:i,timerEventDefinitionType:r}),r&&o.push({id:IH(n,"timerEventDefinitionValue"),component:jH,isEdited:hQ,timerEventDefinition:i,timerEventDefinitionType:r}),o}function NH(e){const{element:t,timerEventDefinition:n,timerEventDefinitionType:i}=e,r=ZQ("commandStack"),o=ZQ("bpmnFactory"),s=ZQ("translate");return eQ({element:t,id:"timerEventDefinitionType",label:s("Type"),getValue:()=>i||"",setValue:e=>{if(e===i)return;const s=o.create("bpmn:FormalExpression",{body:void 0});s.$parent=n;const a={timeDuration:void 0,timeDate:void 0,timeCycle:void 0};""!==e&&(a[e]=s),r.execute("element.updateModdleProperties",{element:t,moddleElement:n,properties:a})},getOptions:e=>[{value:"",label:s("<none>")},{value:"timeDate",label:s("Date")},{value:"timeDuration",label:s("Duration")},{value:"timeCycle",label:s("Cycle")}]})}function jH(e){const{element:t,timerEventDefinition:n,timerEventDefinitionType:i}=e,r=ZQ("commandStack"),o=ZQ("translate"),s=ZQ("debounceInput"),a=n.get(i);return cQ({element:t,id:"timerEventDefinitionValue",label:o("Value"),getValue:()=>a&&a.get("body"),setValue:e=>{r.execute("element.updateModdleProperties",{element:t,moddleElement:a,properties:{body:e}})},debounce:s,tooltip:zH(i,o)})}function zH(e,t){switch(e){case"timeDate":return zO("div",{children:[zO("p",{children:t("A specific point in time defined as ISO 8601 combined date and time representation.")}),zO("ul",{children:[zO("li",{children:[zO("code",{children:"2019-10-01T12:00:00Z"})," - ",t("UTC time")]}),zO("li",{children:[zO("code",{children:"2019-10-02T08:09:40+02:00"})," - ",t("UTC plus 2 hours zone offset")]})]}),zO("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 zO("div",{children:[zO("p",{children:t("A cycle defined as ISO 8601 repeating intervals format.")}),zO("ul",{children:[zO("li",{children:[zO("code",{children:"R5/PT10S"})," - ",t("every 10 seconds, up to 5 times")]}),zO("li",{children:[zO("code",{children:"R/P1D"})," - ",t("every day, infinitely")]})]}),zO("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 zO("div",{children:[zO("p",{children:t("A time duration defined as ISO 8601 durations format.")}),zO("ul",{children:[zO("li",{children:[zO("code",{children:"PT15S"})," - ",t("15 seconds")]}),zO("li",{children:[zO("code",{children:"PT1H30M"})," - ",t("1 hour and 30 minutes")]}),zO("li",{children:[zO("code",{children:"P14D"})," - ",t("14 days")]})]}),zO("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 IH(e,t){return e?e+t:t}function XH(e,t){const n=t.get("translate"),i=[...kH({element:e}),{id:"id",component:hH,isEdited:hQ},...CH({element:e}),...rH({element:e})];return{id:"general",label:n("General"),entries:i,component:xX}}function QH(e,t){const n={label:t.get("translate")("Compensation"),id:"compensation",component:xX,entries:[...Pq({element:e})]};return n.entries.length?n:null}function FH(e,t){const n=t.get("translate"),i=[...Lq({element:e})];return{id:"documentation",label:n("Documentation"),entries:i,component:xX}}function VH(e,t){const n={id:"error",label:t.get("translate")("Error"),component:xX,entries:[...Gq({element:e})]};return n.entries.length?n:null}function qH(e,t){const n={id:"message",label:t.get("translate")("Message"),component:xX,entries:[...mH({element:e})]};return n.entries.length?n:null}function HH(e,t){const n={id:"signal",label:t.get("translate")("Signal"),component:xX,entries:[...TH({element:e})]};return n.entries.length?n:null}function WH(e,t){const n={label:t.get("translate")("Link"),id:"link",component:xX,entries:[...uH({element:e})]};return n.entries.length?n:null}function YH(e,t){const n={id:"escalation",label:t.get("translate")("Escalation"),component:xX,entries:[...eH({element:e})]};return n.entries.length?n:null}function GH(e,t){const n={label:t.get("translate")("Timer"),id:"timer",component:xX,entries:[...LH({element:e})]};return n.entries.length?n:null}function UH(e,t){const n={label:t.get("translate")("Multi-instance"),id:"multiInstance",component:xX,entries:[...yH({element:e})]};return n.entries.length?n:null}class ZH{constructor(e,t){e.registerProvider(this),this._injector=t}getGroups(e){return t=>(t=t.concat(function(e,t){return[XH(e,t),FH(e,t),QH(e,t),VH(e,t),WH(e,t),qH(e,t),UH(e,t),HH(e,t),YH(e,t),GH(e,t)].filter((e=>null!==e))}(e,this._injector)),t)}}ZH.$inject=["propertiesPanel","injector"];var KH={__init__:["bpmnPropertiesProvider"],bpmnPropertiesProvider:["type",ZH]};function JH(e={}){dw.call(this,e)}return e(JH,dw),JH.prototype.getModules=function(e={}){return[...dw.prototype.getModules.call(this,e),e.disableAdjustOrigin?Iw:Vw,e.disableGrid?{}:Mw]},JH.prototype._extensionModules=[$w,e_,mq,KH],JH.prototype._modules=[].concat(dw.prototype._modules,JH.prototype._extensionModules),JH}));
|
|
180
|
+
function XI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function QI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XI(Object(n),!0).forEach((function(t){FI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VI=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},qI=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()},HI=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},WI=function(e){return HI(e)&&!e.shiftKey},YI=function(e){return HI(e)&&e.shiftKey},GI=function(e){return setTimeout(e,0)},UI=function(e,t){var n=-1;return e.every((function(e,i){return!t(e)||(n=i,!1)})),n},ZI=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return"function"==typeof e?e.apply(void 0,n):e},KI=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},JI=[],eX=function(e,t){var n,i=(null==t?void 0:t.document)||document,r=(null==t?void 0:t.trapStack)||JI,o=QI({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:WI,isKeyBackward:YI},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},l=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return s.containerGroups.findIndex((function(t){var i=t.container,r=t.tabbableNodes;return i.contains(e)||(null==n?void 0:n.includes(i))||r.find((function(t){return t===e}))}))},c=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];t=t.apply(void 0,r)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a=t;if("string"==typeof t&&!(a=i.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a},h=function(){var e=c("initialFocus");if(!1===e)return!1;if(void 0===e||!II(e,o.tabbableOptions))if(l(i.activeElement)>=0)e=i.activeElement;else{var t=s.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},u=function(){if(s.containerGroups=s.containers.map((function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?SI([e],t.includeContainer,{filter:BI.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:LI}):kI(e,t.includeContainer,BI.bind(null,t)),NI(n)}(e,o.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?SI([e],t.includeContainer,{filter:DI.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):kI(e,t.includeContainer,DI.bind(null,t))}(e,o.tabbableOptions),i=t.length>0?t[0]:void 0,r=t.length>0?t[t.length-1]:void 0,s=n.find((function(e){return jI(e)})),a=n.slice().reverse().find((function(e){return jI(e)})),l=!!t.find((function(e){return PI(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:r,firstDomTabbableNode:s,lastDomTabbableNode:a,nextTabbableNode:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.indexOf(e);return r<0?i?n.slice(n.indexOf(e)+1).find((function(e){return jI(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return jI(e)})):t[r+(i?1:-1)]}}})),s.tabbableGroups=s.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),s.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find((function(e){return e.posTabIndexesFound}))&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},p=function e(t){!1!==t&&t!==i.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(h()))},d=function(e){var t=c("setReturnFocus",e);return t||!1!==t&&e},f=function(e){var t=e.target,n=e.event,i=e.isBackward,r=void 0!==i&&i;t=t||KI(n),u();var a=null;if(s.tabbableGroups.length>0){var h=l(t,n),p=h>=0?s.containerGroups[h]:void 0;if(h<0)a=r?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(r){var d=UI(s.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(d<0&&(p.container===t||II(t,o.tabbableOptions)&&!jI(t,o.tabbableOptions)&&!p.nextTabbableNode(t,!1))&&(d=h),d>=0){var f=0===d?s.tabbableGroups.length-1:d-1,m=s.tabbableGroups[f];a=PI(t)>=0?m.lastTabbableNode:m.lastDomTabbableNode}else HI(n)||(a=p.nextTabbableNode(t,!1))}else{var g=UI(s.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(g<0&&(p.container===t||II(t,o.tabbableOptions)&&!jI(t,o.tabbableOptions)&&!p.nextTabbableNode(t))&&(g=h),g>=0){var v=g===s.tabbableGroups.length-1?0:g+1,y=s.tabbableGroups[v];a=PI(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else HI(n)||(a=p.nextTabbableNode(t))}}else a=c("fallbackFocus");return a},m=function(e){var t=KI(e);l(t,e)>=0||(ZI(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate}):ZI(o.allowOutsideClick,e)||e.preventDefault())},g=function(e){var t=KI(e),n=l(t,e)>=0;if(n||t instanceof Document)n&&(s.mostRecentlyFocusedNode=t);else{var i;e.stopImmediatePropagation();var r=!0;if(s.mostRecentlyFocusedNode)if(PI(s.mostRecentlyFocusedNode)>0){var a=l(s.mostRecentlyFocusedNode),c=s.containerGroups[a].tabbableNodes;if(c.length>0){var u=c.findIndex((function(e){return e===s.mostRecentlyFocusedNode}));u>=0&&(o.isKeyForward(s.recentNavEvent)?u+1<c.length&&(i=c[u+1],r=!1):u-1>=0&&(i=c[u-1],r=!1))}}else s.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return PI(e)>0}))}))||(r=!1);else r=!1;r&&(i=f({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),p(i||(s.mostRecentlyFocusedNode||h()))}s.recentNavEvent=void 0},v=function(e){if(function(e){return"Escape"===(null==e?void 0:e.key)||"Esc"===(null==e?void 0:e.key)||27===(null==e?void 0:e.keyCode)}(e)&&!1!==ZI(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(o.isKeyForward(e)||o.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s.recentNavEvent=e;var n=f({event:e,isBackward:t});n&&(HI(e)&&e.preventDefault(),p(n))}(e,o.isKeyBackward(e))},y=function(e){var t=KI(e);l(t,e)>=0||ZI(o.clickOutsideDeactivates,e)||ZI(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},b=function(){if(s.active)return VI(r,n),s.delayInitialFocusTimer=o.delayInitialFocus?GI((function(){p(h())})):p(h()),i.addEventListener("focusin",g,!0),i.addEventListener("mousedown",m,{capture:!0,passive:!1}),i.addEventListener("touchstart",m,{capture:!0,passive:!1}),i.addEventListener("click",y,{capture:!0,passive:!1}),i.addEventListener("keydown",v,{capture:!0,passive:!1}),n},x=function(){if(s.active)return i.removeEventListener("focusin",g,!0),i.removeEventListener("mousedown",m,!0),i.removeEventListener("touchstart",m,!0),i.removeEventListener("click",y,!0),i.removeEventListener("keydown",v,!0),n},w="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){var t=e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===s.mostRecentlyFocusedNode}))}));t&&p(h())})):void 0,_=function(){w&&(w.disconnect(),s.active&&!s.paused&&s.containers.map((function(e){w.observe(e,{subtree:!0,childList:!0})})))};return n={get active(){return s.active},get paused(){return s.paused},activate:function(e){if(s.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),r=a(e,"checkCanFocusTrap");r||u(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=i.activeElement,null==t||t();var o=function(){r&&u(),b(),_(),null==n||n()};return r?(r(s.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!s.active)return this;var t=QI({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,x(),s.active=!1,s.paused=!1,_(),qI(r,n);var i=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),c=a(t,"checkCanReturnFocus"),h=a(t,"returnFocus","returnFocusOnDeactivate");null==i||i();var u=function(){GI((function(){h&&p(d(s.nodeFocusedBeforeActivation)),null==l||l()}))};return h&&c?(c(d(s.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(e){if(s.paused||!s.active)return this;var t=a(e,"onPause"),n=a(e,"onPostPause");return s.paused=!0,null==t||t(),x(),_(),null==n||n(),this},unpause:function(e){if(!s.paused||!s.active)return this;var t=a(e,"onUnpause"),n=a(e,"onPostUnpause");return s.paused=!1,null==t||t(),u(),b(),_(),null==n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return s.containers=t.map((function(e){return"string"==typeof e?i.querySelector(e):e})),s.active&&u(),_(),this}},n.updateContainerElements(e),n},tX=function(e){return zO("svg",{...e,children:zO("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"})})};tX.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"};var nX=function(e){return zO("svg",{...e,children:[zO("path",{fill:"#fff",style:{mixBlendMode:"multiply"},d:"M0 0h16v16H0z"}),zO("path",{fill:"#fff",style:{mixBlendMode:"multiply"},d:"M0 0h16v16H0z"}),zO("path",{d:"M7 3H5v2h2V3zm4 0H9v2h2V3zM7 7H5v2h2V7zm4 0H9v2h2V7zm-4 4H5v2h2v-2zm4 0H9v2h2v-2z",fill:"#161616"})]})};nX.defaultProps={width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var iX=function(e){return zO("svg",{...e,children:zO("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:"currentcolor"})})};function rX(e){const{element:t,headerProvider:n}=e,{getElementIcon:i,getDocumentationRef:r,getElementLabel:o,getTypeLabel:s}=n,a=o(t),l=s(t),c=r&&r(t),h=i(t);return zO("div",{class:"bio-properties-panel-header",children:[zO("div",{class:"bio-properties-panel-header-icon",children:h&&zO(h,{width:"32",height:"32",viewBox:"0 0 32 32"})}),zO("div",{class:"bio-properties-panel-header-labels",children:[zO("div",{title:l,class:"bio-properties-panel-header-type",children:l}),a?zO("div",{title:a,class:"bio-properties-panel-header-label",children:a}):null]}),zO("div",{class:"bio-properties-panel-header-actions",children:c?zO("a",{rel:"noopener",class:"bio-properties-panel-header-link",href:c,title:"Open documentation",target:"_blank",children:zO(iX,{})}):null})]})}iX.defaultProps={width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const oX=R_({description:{},getDescriptionForId:()=>{}}),sX=R_({errors:{}}),aX=R_({eventBus:null}),lX=R_({layout:{},setLayout:()=>{},getLayoutForKey:()=>{},setLayoutForKey:()=>{}}),cX=R_({tooltip:{},getTooltipForId:()=>{}});function hX(e){const{forId:t,element:n}=e,i=function(e,t){const{getTooltipForId:n}=K_(cX);return n(e,t)}(t,n),r=e.value||i;return r?zO(uX,{...e,value:r,forId:fX(t)}):e.children}function uX(e){const{forId:t,value:n,parent:i}=e,[r,o]=q_(!1),[s,a]=q_(!1);let l=null;const c=G_(null),h=G_(null),u=async e=>{const t=()=>o(!0);r||l||(e instanceof MouseEvent?l=setTimeout(t,200):(t(),a(!0)))},p=()=>{o(!1),a(!1)};W_((()=>{const{current:e}=c;if(!e)return;const t=e=>{const t=document.activeElement===c.current||document.activeElement.closest(".bio-properties-panel-tooltip");!r||(({x:e,y:t})=>{const n=h.current,i=c.current;return n&&(pX(e,t,i.getBoundingClientRect())||pX(e,t,n.getBoundingClientRect()))})({x:e.x,y:e.y})||t&&s||p()},n=e=>{const{relatedTarget:t}=e;r&&!c.current.matches(":hover")&&t&&!t.closest(".bio-properties-panel-tooltip")&&p()};return document.addEventListener("wheel",t),document.addEventListener("focusout",n),document.addEventListener("mousemove",t),()=>{document.removeEventListener("wheel",t),document.removeEventListener("mousemove",t),document.removeEventListener("focusout",n)}}),[c.current,r,s]);const d=()=>zO("div",{class:"bio-properties-panel-tooltip",role:"tooltip",id:"bio-properties-panel-tooltip","aria-labelledby":t,style:dX(c.current),ref:h,onClick:e=>e.stopPropagation(),children:[zO("div",{class:"bio-properties-panel-tooltip-content",children:n}),zO("div",{class:"bio-properties-panel-tooltip-arrow"})]});return zO("div",{class:"bio-properties-panel-tooltip-wrapper",tabIndex:"0",ref:c,onMouseEnter:u,onMouseLeave:()=>{clearTimeout(l),l=null},onFocus:u,onKeyDown:e=>{"Escape"===e.code&&p()},children:[e.children,r?i?_O(d(),i.current):d():null]})}function pX(e,t,n){const{top:i,right:r,bottom:o,left:s}=n;return e>=s&&e<=r&&t>=i&&t<=o}function dX(e){const t=e.getBoundingClientRect();return`right: ${`calc(100% - ${t.x}px)`}; top: ${t.top-10+"px"};`}function fX(e){return`bio-properties-panel-${e}`}function mX(e){const{errors:t}=K_(sX);return t[e]}function gX(e,t,n){const i=K_(aX);n||({eventBus:n}=i);const r=G_(!1);n&&!r.current&&n.on(e,t),W_((()=>(n&&r.current&&n.on(e,t),r.current=!0,()=>{n&&n.off(e,t)})),[t,e,n])}function vX(e){const t=G_();return W_((()=>{t.current=e})),t.current}function yX(e){const{onShow:t}=K_(lX),n=G_(),i=G_(!1),r=Z_((n=>{n.id===e&&(t(),i.current||(i.current=!0))}),[e]);return W_((()=>{i.current&&n.current&&(p(n.current.focus)&&n.current.focus(),p(n.current.select)&&n.current.select(),i.current=!1)})),gX("propertiesPanel.showEntry",r),n}function bX(e){const t=G_(e);return t.current=e,Z_(((...e)=>t.current(...e)),[])}function xX(e){const{element:t,entries:n=[],id:i,label:r,shouldOpen:o=!1}=e,s=G_(null),[a,l]=function(e,t){const{getLayoutForKey:n,setLayoutForKey:i}=K_(lX);return[n(e,t),Z_((t=>{i(e,t)}),[i])]}(["groups",i,"open"],o),c=Z_((()=>l(!0)),[l]),[h,u]=q_(!1),[d,f]=q_(!1);W_((()=>{const e=n.find((e=>{const{id:t,isEdited:n}=e,i=_e(`[data-entry-id="${t}"]`);if(!p(n)||!i)return!1;return n(_e(".bio-properties-panel-input",i))}));u(e)}),[n]);const m=function(){const{errors:e}=K_(sX);return e}(),g=n.some((e=>m[e.id]));!function(e,t,n){const[i,r]=q_(_e(t)),o=Z_((()=>{const e=_e(t);e!==i&&r(e)}),[t,i]);W_((()=>{o()}),[o]),gX("propertiesPanel.attach",o),gX("propertiesPanel.detach",o),W_((()=>{const t=IntersectionObserver;if(!t)return;if(!e.current||!i)return;const r=new t((e=>{0!==i.scrollHeight&&e.forEach((e=>{e.intersectionRatio<1?n(!0):1===e.intersectionRatio&&n(!1)}))}),{root:i,rootMargin:"0px 0px 999999% 0px",threshold:[1]});return r.observe(e.current),()=>{r.unobserve(e.current)}}),[e.current,i,n])}(s,"div.bio-properties-panel-scroll-container",f);const v={...K_(lX),onShow:c};return zO("div",{class:"bio-properties-panel-group","data-group-id":"group-"+i,ref:s,children:[zO("div",{class:XO("bio-properties-panel-group-header",h?"":"empty",a?"open":"",d&&a?"sticky":""),onClick:()=>l(!a),children:[zO("div",{title:e.tooltip?null:r,"data-title":r,class:"bio-properties-panel-group-header-title",children:zO(hX,{value:e.tooltip,forId:"group-"+i,element:t,parent:s,children:r})}),zO("div",{class:"bio-properties-panel-group-header-buttons",children:[zO(wX,{edited:h,hasErrors:g}),zO("button",{title:"Toggle section",class:"bio-properties-panel-group-header-button bio-properties-panel-arrow",children:zO(tX,{class:a?"bio-properties-panel-arrow-down":"bio-properties-panel-arrow-right"})})]})]}),zO("div",{class:XO("bio-properties-panel-group-entries",a?"open":""),children:zO(lX.Provider,{value:v,children:n.map((e=>{const{component:n,id:i}=e;return a_(n,{...e,element:t,key:i})}))})})]})}function wX(e){const{edited:t,hasErrors:n}=e;return n?zO("div",{title:"Section contains an error",class:"bio-properties-panel-dot bio-properties-panel-dot--error"}):t?zO("div",{title:"Section contains data",class:"bio-properties-panel-dot"}):null}function _X(e){const{text:t,icon:n}=e;return zO("div",{class:"bio-properties-panel open",children:zO("section",{class:"bio-properties-panel-placeholder",children:[n&&zO(n,{class:"bio-properties-panel-placeholder-icon"}),zO("p",{class:"bio-properties-panel-placeholder-text",children:t})]})})}function OX(e){const{element:t,forId:n,value:i}=e,r=function(e,t){const{getDescriptionForId:n}=K_(oX);return n(e,t)}(n,t),o=i||r;if(o)return zO("div",{class:"bio-properties-panel-description",children:o})}const EX=()=>{},kX=uO(((e,t)=>{const{onInput:n,disabled:i,tooltipContainer:r,enableGutters:o,value:s,onLint:a=EX,onPopupOpen:l=EX,popupOpen:c,contentAttributes:h={},hostLanguage:u=null,singleLine:p=!1}=e,d=G_(),[f,m]=q_(),[g,v]=q_(s||"");!function(e,t){const[n,i]=q_(void 0);t.current=U_((()=>({focus:t=>{e?e.focus(t):(void 0===t&&(t=1/0),i(t))}})),[e]),W_((()=>{void 0!==n&&e&&(e.focus(n),i(!1))}),[e,n])}(f,t);const y=bX((e=>{n(e),v(e)}));W_((()=>{let e;return e=new eI({container:d.current,onChange:y,value:g,onLint:a,contentAttributes:h,tooltipContainer:r,enableGutters:o,hostLanguage:u,singleLine:p}),m(e),()=>{a([]),d.current.innerHTML="",m(null)}}),[]),W_((()=>{f&&s!==g&&(f.setValue(s),v(s))}),[s]);return zO("div",{class:XO("bio-properties-panel-feelers-editor-container",c?"popupOpen":null),children:[zO("div",{class:"bio-properties-panel-feelers-editor__open-popup-placeholder",children:"Opened in editor"}),zO("div",{name:e.name,class:XO("bio-properties-panel-feelers-editor bio-properties-panel-input",g?"edited":null,i?"disabled":null),ref:d,onClick:()=>{t.current.focus()}}),zO("button",{title:"Open pop-up editor",class:"bio-properties-panel-open-feel-popup",onClick:()=>l("feelers"),children:zO(iX,{})})]})})),SX=()=>{},CX=uO(((e,t)=>{const{enableGutters:n,value:i,onInput:r,onFeelToggle:o=SX,onLint:s=SX,onPopupOpen:a=SX,popupOpen:l,disabled:c,tooltipContainer:h,variables:u}=e,p=G_(),[d,f]=q_(),[m,g]=q_(i||"");!function(e,t){const[n,i]=q_(void 0);t.current=U_((()=>({focus:t=>{e?e.focus(t):(void 0===t&&(t=1/0),i(t))}})),[e]),W_((()=>{void 0!==n&&e&&(e.focus(n),i(!1))}),[e,n])}(d,t);const v=bX((e=>{r(e),g(e)}));W_((()=>{let e;return e=new yI({container:p.current,onChange:v,onKeyDown:t=>{if("Backspace"!==t.key||!e)return;const n=e.getSelection(),i=n.ranges[n.mainIndex];0===i.from&&0===i.to&&o()},onLint:s,tooltipContainer:h,value:m,variables:u,extensions:[...n?[rM()]:[]]}),f(e),()=>{s([]),p.current.innerHTML="",f(null)}}),[]),W_((()=>{d&&i!==m&&(d.setValue(i),g(i))}),[i]),W_((()=>{d&&d.setVariables(u)}),[u]);return zO("div",{class:XO("bio-properties-panel-feel-editor-container",c?"disabled":null,l?"popupOpen":null),children:[zO("div",{class:"bio-properties-panel-feel-editor__open-popup-placeholder",children:"Opened in editor"}),zO("div",{name:e.name,class:XO("bio-properties-panel-input",m?"edited":null),ref:p,onClick:()=>{t.current.focus()}}),zO("button",{title:"Open pop-up editor",class:"bio-properties-panel-open-feel-popup",onClick:()=>a(),children:zO(iX,{})})]})})),PX=R_({open:()=>{},close:()=>{},source:null});function $X(e,t){let n,i,r;function o(t){const o={x:t.clientX-i,y:t.clientY-r};return e.call(n,t,o)}function s(){document.removeEventListener("dragover",o),document.removeEventListener("dragend",s),document.removeEventListener("drop",AX)}return function(e){n=this,i=e.clientX,r=e.clientY,e.dataTransfer&&e.dataTransfer.setDragImage(t||we('<canvas width="0" height="0" />'),0,0),document.addEventListener("dragover",o),document.addEventListener("dragend",s),document.addEventListener("drop",AX)}}function AX(e){e.preventDefault(),e.stopPropagation()}const RX=()=>{};function TX(e){const{container:t,className:n,position:i,width:r,height:o,onClose:s,onPostActivate:a=RX,onPostDeactivate:l=RX,returnFocus:c=!0,title:h}=e,u=G_(null),p=G_(null),d=e=>{"Escape"===e.key&&s()},f=()=>{u.current&&u.current.activate()};let m={};return i&&(m={...m,top:i.top+"px",left:i.left+"px"}),r&&(m.width=r+"px"),o&&(m.height=o+"px"),W_((()=>(p.current&&p.current.addEventListener("keydown",d),()=>{p.current.removeEventListener("keydown",d)})),[p]),W_((()=>(p.current&&p.current.addEventListener("focusin",f),()=>{p.current.removeEventListener("focusin",f)})),[p]),W_((()=>(p.current&&(u.current=eX(p.current,{clickOutsideDeactivates:!0,fallbackFocus:p.current,onPostActivate:a,onPostDeactivate:l,returnFocusOnDeactivate:c}),u.current.activate()),()=>u.current&&u.current.deactivate())),[p]),_O(zO("div",{"aria-label":h,tabIndex:-1,ref:p,role:"dialog",class:XO("bio-properties-panel-popup",n),style:m,children:e.children}),t||document.body)}function MX(e){return e.closest(".bio-properties-panel-popup")}TX.Title=function(e){const{children:t,className:n,draggable:i,title:r,...o}=e,s=G_({startPosition:null,newPosition:null}),a=G_(),l=G_(),c=j(((e,t)=>{const{x:n,y:i}=t,r=s.current.startPosition.x+n,o=s.current.startPosition.y+i,a=MX(l.current);a.style.top=o+"px",a.style.left=r+"px"}));return zO("div",{class:XO("bio-properties-panel-popup__header",i&&"draggable",n),ref:l,draggable:i,onDragStart:e=>{$X(c,a.current)(e);const t=MX(l.current).getBoundingClientRect();s.current.startPosition={x:t.left,y:t.top}},onDragEnd:()=>{s.current.newPosition=null},...o,children:[i&&zO(c_,{children:[zO("div",{ref:a,class:"bio-properties-panel-popup__drag-preview"}),zO("div",{class:"bio-properties-panel-popup__drag-handle",children:zO(nX,{})})]}),zO("div",{class:"bio-properties-panel-popup__title",children:r}),t]})},TX.Body=function(e){const{children:t,className:n,...i}=e;return zO("div",{class:XO("bio-properties-panel-popup__body",n),...i,children:t})},TX.Footer=function(e){const{children:t,className:n,...i}=e;return zO("div",{class:XO("bio-properties-panel-popup__footer",n),...i,children:e.children})};const DX=700,BX=250;function LX(e){const{element:t}=e,n=vX(t),[i,r]=q_({}),[o,s]=q_(!1),[a,l]=q_(null),[c,h]=q_(null),u=()=>{s(!1),l(null)},p={open:(e,t,n)=>{l(e),r(t),s(!0),h(n)},close:u,source:a};return W_((()=>{t&&t!==n&&u()}),[t]),zO(PX.Provider,{value:p,children:[o&&zO(NX,{onClose:u,sourceElement:c,...i}),e.children]})}function NX(e){const{id:t,hostLanguage:n,onInput:i,onClose:r,position:o,singleLine:s,sourceElement:a,title:l,tooltipContainer:c,type:h,value:u,variables:p}=e,d=G_();return W_((()=>{const e=d.current;e&&e.focus()}),[d,t]),zO(TX,{className:"bio-properties-panel-feel-popup",position:o,title:l,onClose:r,returnFocus:!1,onPostDeactivate:()=>{a&&a.focus()},height:BX,width:DX,children:[zO(TX.Title,{title:l,draggable:!0}),zO(TX.Body,{children:zO("div",{class:"bio-properties-panel-feel-popup__body",children:["feel"===h&&zO(CX,{enableGutters:!0,id:jX(t),name:t,onInput:i,value:u,variables:p,ref:d,tooltipContainer:c}),"feelers"===h&&zO(kX,{id:jX(t),contentAttributes:{"aria-label":l},enableGutters:!0,hostLanguage:n,name:t,onInput:i,value:u,ref:d,singleLine:s,tooltipContainer:c})]})}),zO(TX.Footer,{children:zO("button",{onClick:r,title:"Close pop-up editor",class:"bio-properties-panel-feel-popup__close-btn",children:"Close"})})]})}function jX(e){return`bio-properties-panel-${e}`}function zX(e){const{id:t,label:n,onInput:i,value:r,switcherLabel:o,inline:s,onFocus:a,onBlur:l,inputRef:c,tooltip:h}=e,[u,p]=q_(r);return W_((()=>{r!==u&&p(r)}),[r]),zO("div",{class:XO("bio-properties-panel-toggle-switch",{inline:s}),children:[zO("label",{class:"bio-properties-panel-label",for:IX(t),children:zO(hX,{value:h,forId:t,element:e.element,children:n})}),zO("div",{class:"bio-properties-panel-field-wrapper",children:[zO("label",{class:"bio-properties-panel-toggle-switch__switcher",children:[zO("input",{ref:c,id:IX(t),class:"bio-properties-panel-input",type:"checkbox",onFocus:a,onBlur:l,name:t,onInput:e=>{(async()=>{i(!r)})(),p(e.target.value)},checked:!!u}),zO("span",{class:"bio-properties-panel-toggle-switch__slider"})]}),o&&zO("p",{class:"bio-properties-panel-toggle-switch__label",children:o})]})]})}function IX(e){return`bio-properties-panel-${e}`}function XX(e){const{debounce:t,disabled:n,displayLabel:i=!0,id:r,inputRef:o,label:s,max:a,min:l,onInput:c,step:h,value:u="",onFocus:p,onBlur:d}=e,[f,m]=q_(u),g=U_((()=>t((e=>{const{validity:t,value:n}=e.target;t.valid&&c(n?parseFloat(n):void 0)}))),[c,t]);return W_((()=>{u!==f&&m(u)}),[u]),zO("div",{class:"bio-properties-panel-numberfield",children:[i&&zO("label",{for:QX(r),class:"bio-properties-panel-label",children:s}),zO("input",{id:QX(r),ref:o,type:"number",name:r,spellCheck:"false",autoComplete:"off",disabled:n,class:"bio-properties-panel-input",max:a,min:l,onInput:e=>{g(e),m(e.target.value)},onFocus:p,onBlur:d,step:h,value:f})]})}function QX(e){return`bio-properties-panel-${e}`}function FX(e){return`bio-properties-panel-${e}`}uO(((e,t)=>{const{id:n,disabled:i,onInput:r,value:o,onFocus:s,onBlur:a}=e,l=G_();return t.current={focus:e=>{const t=l.current;t&&(t.focus(),"number"==typeof e&&(e>o.length&&(e=o.length),t.setSelectionRange(e,e)))}},zO("input",{id:FX(n),type:"text",ref:l,name:n,spellCheck:"false",autoComplete:"off",disabled:i,class:"bio-properties-panel-input",onInput:e=>r(e.target.value),onFocus:s,onBlur:a,value:o||""})})),uO(((e,t)=>{const{id:n,debounce:i,disabled:r,onInput:o,value:s,min:a,max:l,step:c,onFocus:h,onBlur:u}=e,p=G_();return t.current={focus:e=>{const t=p.current;t&&(t.focus(),"number"==typeof e&&e!==1/0&&(e>s.length&&(e=s.length),t.setSelectionRange(e,e)))}},zO(XX,{id:n,debounce:i,disabled:r,displayLabel:!1,inputRef:p,max:l,min:a,onInput:o,step:c,value:s,onFocus:h,onBlur:u})})),uO(((e,t)=>{const{id:n,disabled:i,onInput:r,value:o,onFocus:s,onBlur:a}=e,l=G_();return t.current={focus:()=>{const e=l.current;e&&(e.focus(),e.setSelectionRange(0,0))}},zO("textarea",{id:FX(n),type:"text",ref:l,name:n,spellCheck:"false",autoComplete:"off",disabled:i,class:"bio-properties-panel-input",onInput:e=>r(e.target.value),onFocus:s,onBlur:a,value:o||"","data-gramm":"false"})})),uO(((e,t)=>{const{id:n,onInput:i,value:r,onFocus:o,onBlur:s,switcherLabel:a}=e,l=G_();return t.current={focus:()=>{const e=l.current;e&&e.focus()}},zO(zX,{id:n,value:r,inputRef:l,onInput:i,onFocus:o,onBlur:s,switcherLabel:a})})),uO(((e,t)=>{const{id:n,disabled:i,onInput:r,value:o,onFocus:s,onBlur:a}=e,l=G_();return t.current={focus:()=>{const e=l.current;e&&e.focus()}},zO("input",{ref:l,id:FX(n),name:n,onFocus:s,onBlur:a,type:"checkbox",class:"bio-properties-panel-input",onChange:({target:e})=>{r(e.checked)},checked:o,disabled:i})}));const VX={},qX={},HX={};function WX(e){const{element:t,headerProvider:n,placeholderProvider:i,groups:r,layoutConfig:o,layoutChanged:s,descriptionConfig:a,descriptionLoaded:l,tooltipConfig:h,tooltipLoaded:u,eventBus:p}=e,[d,f]=q_(YX(o));!function(e,t){const n=G_(!1);Y_((()=>{if(n.current)return e();n.current=!0}),t)}((()=>{const e=YX(o);f(e)}),[o]),W_((()=>{"function"==typeof s&&s(d)}),[d,s]);const m={layout:d,setLayout:f,getLayoutForKey:(e,t)=>Q(d,e,t),setLayoutForKey:(e,t)=>{const n=I({},d);X(n,e,t),f(n)}},g=U_((()=>function(e={}){return{...qX,...e}}(a)),[a]);W_((()=>{"function"==typeof l&&l(g)}),[g,l]);const v={description:g,getDescriptionForId:(e,t)=>g[e]&&g[e](t)},y=U_((()=>function(e={}){return{...HX,...e}}(h)),[h]);W_((()=>{"function"==typeof u&&u(y)}),[y,u]);const b={tooltip:y,getTooltipForId:(e,t)=>y[e]&&y[e](t)},[x,w]=q_({});gX("propertiesPanel.setErrors",(({errors:e})=>w(e)),p);const _={errors:x},O={eventBus:p},E={element:t};return i&&!t?zO(_X,{...i.getEmpty()}):i&&c(t)?zO(_X,{...i.getMultiple()}):zO(lX.Provider,{value:E,children:zO(sX.Provider,{value:_,children:zO(oX.Provider,{value:v,children:zO(cX.Provider,{value:b,children:zO(lX.Provider,{value:m,children:zO(aX.Provider,{value:O,children:zO(LX,{element:t,children:zO("div",{class:"bio-properties-panel",children:[zO(rX,{element:t,headerProvider:n}),zO("div",{class:"bio-properties-panel-scroll-container",children:r.map((e=>{const{component:n=xX,id:i}=e;return a_(n,{...e,key:i,element:t})}))})]})})})})})})})})}function YX(e={},t=VX){return{...t,...e}}function GX(e){const{id:t,label:n,onChange:i,disabled:r,value:o=!1,onFocus:s,onBlur:a,tooltip:l}=e,[c,h]=q_(o);W_((()=>{o!==c&&h(o)}),[o]);return zO("div",{class:"bio-properties-panel-checkbox",children:[zO("input",{ref:yX(t),id:KX(t),name:t,onFocus:s,onBlur:a,type:"checkbox",class:"bio-properties-panel-input",onChange:e=>{(({target:e})=>{i(e.checked)})(e),h(e.target.value)},checked:c,disabled:r}),zO("label",{for:KX(t),class:"bio-properties-panel-label",children:zO(hX,{value:l,forId:t,element:e.element,children:n})})]})}function UX(e){const{element:t,id:n,description:i,label:r,getValue:o,setValue:s,disabled:a,onFocus:l,onBlur:c,tooltip:h}=e,u=o(t),p=mX(n);return zO("div",{class:"bio-properties-panel-entry bio-properties-panel-checkbox-entry","data-entry-id":n,children:[zO(GX,{disabled:a,id:n,label:r,onChange:s,onFocus:l,onBlur:c,value:u,tooltip:h,element:t},t),p&&zO("div",{class:"bio-properties-panel-error",children:p}),zO(OX,{forId:n,element:t,value:i})]})}function ZX(e){return e&&!!e.checked}function KX(e){return`bio-properties-panel-${e}`}function JX(e){const{id:t,label:n,onChange:i,options:r=[],value:o="",disabled:s,onFocus:a,onBlur:l,tooltip:c}=e,h=yX(t),[u,p]=q_(o);return W_((()=>{o!==u&&p(o)}),[o]),zO("div",{class:"bio-properties-panel-select",children:[zO("label",{for:nQ(t),class:"bio-properties-panel-label",children:zO(hX,{value:c,forId:t,element:e.element,children:n})}),zO("select",{ref:h,id:nQ(t),name:t,class:"bio-properties-panel-input",onInput:e=>{(({target:e})=>{i(e.value)})(e),p(e.target.value)},onFocus:a,onBlur:l,value:u,disabled:s,children:r.map(((e,t)=>e.children?zO("optgroup",{label:e.label,children:e.children.map(((e,t)=>zO("option",{value:e.value,disabled:e.disabled,children:e.label},t)))},t):zO("option",{value:e.value,disabled:e.disabled,children:e.label},t)))})]})}function eQ(e){const{element:t,id:n,description:i,label:r,getValue:o,setValue:s,getOptions:a,disabled:l,onFocus:c,onBlur:h,validate:u,tooltip:d}=e,f=a(t),m=mX(n),[g,v]=q_(null);let y=o(t);W_((()=>{if(p(u)){const e=u(y)||null;v(e)}}),[y]);const b=m||g;return zO("div",{class:XO("bio-properties-panel-entry",b?"has-error":""),"data-entry-id":n,children:[zO(JX,{id:n,label:r,value:y,onChange:e=>{let t=null;p(u)&&(t=u(e)||null),s(e,t),v(t)},onFocus:c,onBlur:h,options:f,disabled:l,tooltip:d,element:t},t),b&&zO("div",{class:"bio-properties-panel-error",children:b}),zO(OX,{forId:n,element:t,value:i})]})}function tQ(e){return e&&!!e.value}function nQ(e){return`bio-properties-panel-${e}`}function iQ(e){e.style.height="auto",e.style.height=`${e.scrollHeight+2}px`}function rQ(e){const{id:t,label:n,debounce:i,onInput:r,value:o="",disabled:s,monospace:a,onFocus:l,onBlur:c,autoResize:h,rows:u=(h?1:2),tooltip:p}=e,[d,f]=q_(o),m=yX(t),g=U_((()=>i((({target:e})=>r(e.value.length?e.value:void 0)))),[r,i]);return Y_((()=>{h&&iQ(m.current)}),[]),W_((()=>{o!==d&&f(o)}),[o]),zO("div",{class:"bio-properties-panel-textarea",children:[zO("label",{for:aQ(t),class:"bio-properties-panel-label",children:zO(hX,{value:p,forId:t,element:e.element,children:n})}),zO("textarea",{ref:m,id:aQ(t),name:t,spellCheck:"false",class:XO("bio-properties-panel-input",a?"bio-properties-panel-input-monospace":"",h?"auto-resize":""),onInput:e=>{g(e),h&&iQ(e.target),f(e.target.value)},onFocus:l,onBlur:c,rows:u,value:d,disabled:s,"data-gramm":"false"})]})}function oQ(e){const{element:t,id:n,description:i,debounce:r,label:o,getValue:s,setValue:a,rows:l,monospace:c,disabled:h,validate:u,onFocus:d,onBlur:f,autoResize:m,tooltip:g}=e,v=mX(n),[y,b]=q_(null);let x=s(t);W_((()=>{if(p(u)){const e=u(x)||null;b(e)}}),[x]);const w=v||y;return zO("div",{class:XO("bio-properties-panel-entry",w?"has-error":""),"data-entry-id":n,children:[zO(rQ,{id:n,label:o,value:x,onInput:e=>{let t=null;p(u)&&(t=u(e)||null),a(e,t),b(t)},onFocus:d,onBlur:f,rows:l,debounce:r,monospace:c,disabled:h,autoResize:m,tooltip:g,element:t},t),w&&zO("div",{class:"bio-properties-panel-error",children:w}),zO(OX,{forId:n,element:t,value:i})]})}function sQ(e){return e&&!!e.value}function aQ(e){return`bio-properties-panel-${e}`}function lQ(e){const{debounce:t,disabled:n=!1,id:i,label:r,onInput:o,onFocus:s,onBlur:a,value:l="",tooltip:c}=e,[h,u]=q_(l||""),p=yX(i),d=U_((()=>t((({target:e})=>o(e.value.length?e.value:void 0)))),[o,t]);return W_((()=>{l!==h&&u(l)}),[l]),zO("div",{class:"bio-properties-panel-textfield",children:[zO("label",{for:uQ(i),class:"bio-properties-panel-label",children:zO(hX,{value:c,forId:i,element:e.element,children:r})}),zO("input",{ref:p,id:uQ(i),type:"text",name:i,spellCheck:"false",autoComplete:"off",disabled:n,class:"bio-properties-panel-input",onInput:e=>{d(e),u(e.target.value)},onFocus:s,onBlur:a,value:h})]})}function cQ(e){const{element:t,id:n,description:i,debounce:r,disabled:o,label:s,getValue:a,setValue:l,validate:c,onFocus:h,onBlur:u,tooltip:d}=e,f=mX(n),[m,g]=q_(null);let v=a(t);W_((()=>{if(p(c)){const e=c(v)||null;g(e)}}),[v]);const y=f||m;return zO("div",{class:XO("bio-properties-panel-entry",y?"has-error":""),"data-entry-id":n,children:[zO(lQ,{debounce:r,disabled:o,id:n,label:s,onInput:e=>{let t=null;p(c)&&(t=c(e)||null),l(e,t),g(t)},onFocus:h,onBlur:u,value:v,tooltip:d,element:t},t),y&&zO("div",{class:"bio-properties-panel-error",children:y}),zO(OX,{forId:n,element:t,value:i})]})}function hQ(e){return e&&!!e.value}function uQ(e){return`bio-properties-panel-${e}`}const pQ=300;function dQ(e){return function(t){return!1!==e?N(t,u(e)?e:pQ):t}}dQ.$inject=["config.debounceInput"];var fQ={debounceInput:["factory",dQ]},mQ={},gQ=Qt(q);Object.defineProperty(mQ,"__esModule",{value:!0});var vQ=gQ;function yQ(e){return(xQ(e,"zeebe:IoMapping")||[])[0]}function bQ(e){return function(e,t){var n=yQ(e);return n&&n.get(t)||[]}(e,"inputParameters")}function xQ(e,t,n){var i=function(e,t){var n=[],i=e.get("extensionElements");if(void 0!==i){var r=i.get("values");void 0!==r&&(n=vQ.filter(r,(function(e){return function(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}(e,t)})))}return n}(e,t);return n?(i[0]||{})[n]||[]:i}function wQ(e){for(var t=[],n=e;n.$parent;)t.push(n.$parent),n=n.$parent;return t}function _Q(e,t,n){n=n||0,vQ.isArray(e)||(e=[e]),vQ.forEach(e,(function(e,i){var r=t(e,i,n);vQ.isArray(r)&&r.length&&_Q(r,t,n+1)}))}function OQ(e,t,n){var i=!n||-1===e.indexOf(t);return i&&e.push(t),i}function EQ(e,t,n){var i=[],r=[];return _Q(e,(function(e,o,s){OQ(i,e,t);var a=e.flowElements;if((-1===n||s<n)&&a&&OQ(r,a,t))return a})),i}function kQ(e,t){return EQ(e,!t,-1)}function SQ(e,t){var n=vQ.findIndex(e,(function(e){return e.name===t.name&&e.scope===t.scope}));n>=0?e[n].origin=function(e,t){return e.concat(t)}(e[n].origin,t.origin):e.push(t)}function CQ(e,t,n){var i,r,o,s,a=(i=n,r=t,o=wQ(e),s=vQ.find(o,(function(e){return function(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}(e,"bpmn:SubProcess")&&function(e,t){return vQ.find(bQ(e),(function(e){return e.target===t}))}(e,r)})),s||i);return{name:t,origin:[e],scope:a}}var PQ=[function(e){var t=e.elements,n=e.processVariables;return vQ.isArray(t)||(t=[t]),vQ.forEach(t,(function(e){var t=function(e){return(yQ(e)||{}).inputParameters}(e);vQ.forEach(t,(function(t){var i=CQ(e,t.target,e);SQ(n,i)}))})),n},function(e){var t=e.elements,n=e.processVariables;return vQ.isArray(t)||(t=[t]),vQ.forEach(t,(function(e){var t=e.loopCharacteristics,i=t&&function(e){const t=xQ(e,"zeebe:LoopCharacteristics")[0];return t&&t.inputElement}(t);if(i){var r=CQ(e,i,e);SQ(n,r)}})),n},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return vQ.isArray(t)||(t=[t]),vQ.forEach(t,(function(e){var t=function(e){return(yQ(e)||{}).outputParameters}(e);vQ.forEach(t,(function(t){var r=CQ(e,t.target,n);SQ(i,r)}))})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return vQ.isArray(t)||(t=[t]),vQ.forEach(t,(function(e){var t=e.loopCharacteristics,r=t&&function(e){const t=xQ(e,"zeebe:LoopCharacteristics")[0];return t&&t.outputCollection}(t);if(r){var o=CQ(e,r,n);SQ(i,o)}})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return vQ.isArray(t)||(t=[t]),vQ.forEach(t,(function(e){var t=function(e){return(xQ(e,"zeebe:CalledDecision")||[])[0]}(e)||function(e){return(xQ(e,"zeebe:Script")||[])[0]}(e);if(t){var r=t.resultVariable;if(r){var o=CQ(e,r,n);SQ(i,o)}}})),i}];function $Q(e,t=[]){var n=[],i=kQ([e],!1);const r=[];return vQ.forEach([...PQ,...t],(function(t){r.push(t({elements:i,containerElement:e,processVariables:n}))})),Promise.all(r).then((()=>n))}async function AQ(e,t,n=[]){var i=await $Q(t,n),r=function(e,t){var n=kQ(t);return vQ.find(n,(function(t){return t.id===e}))}(e,t),o=vQ.filter(i,(function(e){return e.scope.id===r.id})),s=wQ(r);return function(e,t){return e.concat(t)}(o,vQ.filter(i,(function(e){return vQ.find(s,(function(t){return t.id===e.scope.id}))})))}function RQ(e){return e&&e.businessObject||e}function TQ(e,t){var n=RQ(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}mQ.getProcessVariables=$Q,mQ.getVariablesForElement=function(e,t=[]){return AQ(function(e){const t=RQ(e);if(TQ(e,"bpmn:Participant"))return t.processRef.id;return t.id}(e),function(e){const t=RQ(e);if(TQ(t,"bpmn:Participant"))return t.processRef;if(TQ(t,"bpmn:Process"))return t;let n=t;for(;n.$parent&&!TQ(n,"bpmn:Process");)n=n.$parent;return n}(e),t)},mQ.getVariablesForScope=AQ;var MQ={exports:{}};const DQ=(e,t,n)=>{const i=t<0?e.length+t:t;if(i>=0&&i<e.length){const i=n<0?e.length+n:n,[r]=e.splice(t,1);e.splice(i,0,r)}};MQ.exports=(e,t,n)=>(e=[...e],DQ(e,t,n),e),MQ.exports.mutate=DQ;var BQ={};Object.defineProperty(BQ,"__esModule",{value:!0});var LQ=gQ;function NQ(e){var t=function(e){return jQ(e,"camunda:FormData")[0]}(e);return t&&t.get("fields")||[]}function jQ(e,t,n){var i=function(e,t){var n=[],i=e.get("extensionElements");if(void 0!==i){var r=i.get("values");void 0!==r&&(n=LQ.filter(r,(function(e){return function(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}(e,t)})))}return n}(e,t);return n?(i[0]||{})[n]||[]:i}function zQ(e,t){var n=function(e){return(jQ(e,"camunda:InputOutput")||[])[0]}(e);return n&&n.get(t)||[]}function IQ(e){for(var t=[],n=e;n.$parent;)t.push(n.$parent),n=n.$parent;return t}function XQ(e,t,n){n=n||0,LQ.isArray(e)||(e=[e]),LQ.forEach(e,(function(e,i){var r=t(e,i,n);LQ.isArray(r)&&r.length&&XQ(r,t,n+1)}))}function QQ(e,t,n){var i=!n||-1===e.indexOf(t);return i&&e.push(t),i}function FQ(e,t,n){var i=[],r=[];return XQ(e,(function(e,o,s){QQ(i,e,t);var a=e.flowElements;if((-1===n||s<n)&&a&&QQ(r,a,t))return a})),i}function VQ(e,t){return FQ(e,!t,-1)}function qQ(e,t){var n=LQ.findIndex(e,(function(e){return e.name===t.name&&e.scope===t.scope}));n>=0?e[n].origin=function(e,t){return e.concat(t)}(e[n].origin,t.origin):e.push(t)}function HQ(e,t,n){var i,r,o,s,a=(i=n,r=t,o=IQ(e),s=LQ.find(o,(function(e){return function(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}(e,"bpmn:SubProcess")&&function(e,t){return LQ.find(function(e){return zQ(e,"inputParameters")}(e),(function(e){return e.name===t}))}(e,r)})),s||i);return{name:t,origin:[e],scope:a}}function WQ(e,t){var n=e.eventDefinitions;return n&&t?LQ.filter(n,(function(e){return function(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}(e,t)})):n}var YQ=[function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return LQ.isArray(t)||(t=[t]),LQ.forEach(t,(function(e){var t=function(e){return zQ(e,"outputParameters")}(e);LQ.forEach(t,(function(t){var r=HQ(e,t.name,n);qQ(i,r)}))})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return LQ.isArray(t)||(t=[t]),LQ.forEach(t,(function(e){var t=function(e){return e.get("camunda:resultVariable")}(e);if(t){var r=HQ(e,t,n);qQ(i,r)}})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return LQ.isArray(t)||(t=[t]),LQ.forEach(t,(function(e){var t=NQ(e);LQ.forEach(t,(function(t){var r=HQ(e,t.id,n);qQ(i,r)}))})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables;return LQ.isArray(t)||(t=[t]),LQ.forEach(t,(function(e){var t=function(e){return jQ(e,"camunda:Out")}(e);LQ.forEach(t,(function(t){if(!t.local){var r=HQ(e,t.target,n);qQ(i,r)}}))})),i},function(e){var t=e.elements,n=e.containerElement,i=e.processVariables,r=function(e,t){var r=HQ(e,t,n);qQ(i,r)};return LQ.isArray(t)||(t=[t]),LQ.forEach(t,(function(e){var t=function(e){return WQ(e,"bpmn:ErrorEventDefinition")}(e);LQ.forEach(t,(function(t){var n=t.get("errorCodeVariable"),i=t.get("errorMessageVariable");n&&r(e,n),i&&r(e,i)}));var n=function(e){return WQ(e,"bpmn:EscalationEventDefinition")}(e);LQ.forEach(n,(function(t){var n=t.get("escalationCodeVariable");n&&r(e,n)}))})),i}];function GQ(e,t=[]){const n=[];var i=[],r=VQ([e],!1);return LQ.forEach([...YQ,...t],(function(t){n.push(t({elements:r,containerElement:e,processVariables:i}))})),Promise.all(n).then((()=>i))}BQ.getProcessVariables=GQ,BQ.getVariablesForScope=async function(e,t,n=[]){var i=await GQ(t,n),r=function(e,t){var n=VQ(t);return LQ.find(n,(function(t){return t.id===e}))}(e,t),o=LQ.filter(i,(function(e){return e.scope.id===r.id})),s=IQ(r);return function(e,t){return e.concat(t)}(o,LQ.filter(i,(function(e){return LQ.find(s,(function(t){return t.id===e.scope.id}))})))};const UQ=R_({selectedElement:null,injector:null,getService:()=>null});function ZQ(e,t){const{getService:n}=K_(UQ);return n(e,t)}function KQ(){return KQ=Object.assign?Object.assign.bind():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},KQ.apply(this,arguments)}function JQ(){return JQ=Object.assign?Object.assign.bind():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},JQ.apply(this,arguments)}function eF(){return eF=Object.assign?Object.assign.bind():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},eF.apply(this,arguments)}function tF(){return tF=Object.assign?Object.assign.bind():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},tF.apply(this,arguments)}function nF(){return nF=Object.assign?Object.assign.bind():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},nF.apply(this,arguments)}function iF(){return iF=Object.assign?Object.assign.bind():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},iF.apply(this,arguments)}function rF(){return rF=Object.assign?Object.assign.bind():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},rF.apply(this,arguments)}var oF=({styles:e={},...t})=>NO("svg",rF({width:"32",height:"32",xmlns:"http://www.w3.org/2000/svg"},t),NO("path",{stroke:"#000",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"1.1,4.3",d:"M1.5 30.5L27 5"}),NO("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 sF(){return sF=Object.assign?Object.assign.bind():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},sF.apply(this,arguments)}function aF(){return aF=Object.assign?Object.assign.bind():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},aF.apply(this,arguments)}function lF(){return lF=Object.assign?Object.assign.bind():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},lF.apply(this,arguments)}function cF(){return cF=Object.assign?Object.assign.bind():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},cF.apply(this,arguments)}function hF(){return hF=Object.assign?Object.assign.bind():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},hF.apply(this,arguments)}function uF(){return uF=Object.assign?Object.assign.bind():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},uF.apply(this,arguments)}function pF(){return pF=Object.assign?Object.assign.bind():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},pF.apply(this,arguments)}function dF(){return dF=Object.assign?Object.assign.bind():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},dF.apply(this,arguments)}function fF(){return fF=Object.assign?Object.assign.bind():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},fF.apply(this,arguments)}function mF(){return mF=Object.assign?Object.assign.bind():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},mF.apply(this,arguments)}function gF(){return gF=Object.assign?Object.assign.bind():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},gF.apply(this,arguments)}function vF(){return vF=Object.assign?Object.assign.bind():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},vF.apply(this,arguments)}function yF(){return yF=Object.assign?Object.assign.bind():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},yF.apply(this,arguments)}function bF(){return bF=Object.assign?Object.assign.bind():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},bF.apply(this,arguments)}function xF(){return xF=Object.assign?Object.assign.bind():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},xF.apply(this,arguments)}function wF(){return wF=Object.assign?Object.assign.bind():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},wF.apply(this,arguments)}function _F(){return _F=Object.assign?Object.assign.bind():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},_F.apply(this,arguments)}function OF(){return OF=Object.assign?Object.assign.bind():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},OF.apply(this,arguments)}function EF(){return EF=Object.assign?Object.assign.bind():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},EF.apply(this,arguments)}function kF(){return kF=Object.assign?Object.assign.bind():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},kF.apply(this,arguments)}function SF(){return SF=Object.assign?Object.assign.bind():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},SF.apply(this,arguments)}function CF(){return CF=Object.assign?Object.assign.bind():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},CF.apply(this,arguments)}function PF(){return PF=Object.assign?Object.assign.bind():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},PF.apply(this,arguments)}function $F(){return $F=Object.assign?Object.assign.bind():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},$F.apply(this,arguments)}var AF=({styles:e={},...t})=>NO("svg",$F({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 RF(){return RF=Object.assign?Object.assign.bind():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},RF.apply(this,arguments)}var TF=({styles:e={},...t})=>NO("svg",RF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 MF(){return MF=Object.assign?Object.assign.bind():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},MF.apply(this,arguments)}var DF=({styles:e={},...t})=>NO("svg",MF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 BF(){return BF=Object.assign?Object.assign.bind():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},BF.apply(this,arguments)}var LF=({styles:e={},...t})=>NO("svg",BF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 NF(){return NF=Object.assign?Object.assign.bind():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},NF.apply(this,arguments)}var jF=({styles:e={},...t})=>NO("svg",NF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 zF(){return zF=Object.assign?Object.assign.bind():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},zF.apply(this,arguments)}var IF=({styles:e={},...t})=>NO("svg",zF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 XF(){return XF=Object.assign?Object.assign.bind():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},XF.apply(this,arguments)}var QF=({styles:e={},...t})=>NO("svg",XF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 FF(){return FF=Object.assign?Object.assign.bind():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},FF.apply(this,arguments)}var VF=({styles:e={},...t})=>NO("svg",FF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 qF(){return qF=Object.assign?Object.assign.bind():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},qF.apply(this,arguments)}var HF=({styles:e={},...t})=>NO("svg",qF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 WF(){return WF=Object.assign?Object.assign.bind():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},WF.apply(this,arguments)}var YF=({styles:e={},...t})=>NO("svg",WF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 GF(){return GF=Object.assign?Object.assign.bind():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},GF.apply(this,arguments)}var UF=({styles:e={},...t})=>NO("svg",GF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 ZF(){return ZF=Object.assign?Object.assign.bind():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},ZF.apply(this,arguments)}var KF=({styles:e={},...t})=>NO("svg",ZF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 JF(){return JF=Object.assign?Object.assign.bind():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},JF.apply(this,arguments)}var eV=({styles:e={},...t})=>NO("svg",JF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 tV(){return tV=Object.assign?Object.assign.bind():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},tV.apply(this,arguments)}var nV=({styles:e={},...t})=>NO("svg",tV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 iV(){return iV=Object.assign?Object.assign.bind():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},iV.apply(this,arguments)}var rV=({styles:e={},...t})=>NO("svg",iV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 oV(){return oV=Object.assign?Object.assign.bind():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},oV.apply(this,arguments)}var sV=({styles:e={},...t})=>NO("svg",oV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 aV(){return aV=Object.assign?Object.assign.bind():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},aV.apply(this,arguments)}var lV=({styles:e={},...t})=>NO("svg",aV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 cV(){return cV=Object.assign?Object.assign.bind():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},cV.apply(this,arguments)}var hV=({styles:e={},...t})=>NO("svg",cV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 uV(){return uV=Object.assign?Object.assign.bind():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},uV.apply(this,arguments)}var pV=({styles:e={},...t})=>NO("svg",uV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 dV(){return dV=Object.assign?Object.assign.bind():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},dV.apply(this,arguments)}function fV(){return fV=Object.assign?Object.assign.bind():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},fV.apply(this,arguments)}function mV(){return mV=Object.assign?Object.assign.bind():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},mV.apply(this,arguments)}function gV(){return gV=Object.assign?Object.assign.bind():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},gV.apply(this,arguments)}function vV(){return vV=Object.assign?Object.assign.bind():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},vV.apply(this,arguments)}function yV(){return yV=Object.assign?Object.assign.bind():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},yV.apply(this,arguments)}function bV(){return bV=Object.assign?Object.assign.bind():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},bV.apply(this,arguments)}function xV(){return xV=Object.assign?Object.assign.bind():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},xV.apply(this,arguments)}function wV(){return wV=Object.assign?Object.assign.bind():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},wV.apply(this,arguments)}function _V(){return _V=Object.assign?Object.assign.bind():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},_V.apply(this,arguments)}function OV(){return OV=Object.assign?Object.assign.bind():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},OV.apply(this,arguments)}function EV(){return EV=Object.assign?Object.assign.bind():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},EV.apply(this,arguments)}function kV(){return kV=Object.assign?Object.assign.bind():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},kV.apply(this,arguments)}function SV(){return SV=Object.assign?Object.assign.bind():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},SV.apply(this,arguments)}function CV(){return CV=Object.assign?Object.assign.bind():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},CV.apply(this,arguments)}function PV(){return PV=Object.assign?Object.assign.bind():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},PV.apply(this,arguments)}function $V(){return $V=Object.assign?Object.assign.bind():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},$V.apply(this,arguments)}function AV(){return AV=Object.assign?Object.assign.bind():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},AV.apply(this,arguments)}function RV(){return RV=Object.assign?Object.assign.bind():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},RV.apply(this,arguments)}function TV(){return TV=Object.assign?Object.assign.bind():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},TV.apply(this,arguments)}function MV(){return MV=Object.assign?Object.assign.bind():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},MV.apply(this,arguments)}function DV(){return DV=Object.assign?Object.assign.bind():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},DV.apply(this,arguments)}function BV(){return BV=Object.assign?Object.assign.bind():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},BV.apply(this,arguments)}function LV(){return LV=Object.assign?Object.assign.bind():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},LV.apply(this,arguments)}function NV(){return NV=Object.assign?Object.assign.bind():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},NV.apply(this,arguments)}function jV(){return jV=Object.assign?Object.assign.bind():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},jV.apply(this,arguments)}function zV(){return zV=Object.assign?Object.assign.bind():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},zV.apply(this,arguments)}function IV(){return IV=Object.assign?Object.assign.bind():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},IV.apply(this,arguments)}function XV(){return XV=Object.assign?Object.assign.bind():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},XV.apply(this,arguments)}function QV(){return QV=Object.assign?Object.assign.bind():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},QV.apply(this,arguments)}function FV(){return FV=Object.assign?Object.assign.bind():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},FV.apply(this,arguments)}function VV(){return VV=Object.assign?Object.assign.bind():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},VV.apply(this,arguments)}function qV(){return qV=Object.assign?Object.assign.bind():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},qV.apply(this,arguments)}var HV=({styles:e={},...t})=>NO("svg",qV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 WV(){return WV=Object.assign?Object.assign.bind():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},WV.apply(this,arguments)}var YV=({styles:e={},...t})=>NO("svg",WV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 GV(){return GV=Object.assign?Object.assign.bind():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},GV.apply(this,arguments)}function UV(){return UV=Object.assign?Object.assign.bind():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},UV.apply(this,arguments)}function ZV(){return ZV=Object.assign?Object.assign.bind():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},ZV.apply(this,arguments)}function KV(){return KV=Object.assign?Object.assign.bind():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},KV.apply(this,arguments)}var JV={Association:({styles:e={},...t})=>NO("svg",KQ({width:"32",height:"32",xmlns:"http://www.w3.org/2000/svg"},t),NO("path",{stroke:"#000",strokeWidth:"2",fill:"none",strokeDasharray:"3.3,6",strokeLinecap:"square",d:"M1.5 30.5l29-29"})),BusinessRuleTask:({styles:e={},...t})=>NO("svg",JQ({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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"}),NO("path",{d:"M6.079 8.209v3.587H21.44V8.209z"})),CallActivity:({styles:e={},...t})=>NO("svg",eF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",tF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("g",{fillRule:"evenodd"},NO("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"}),NO("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})=>NO("svg",nF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",iF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",sF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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:oF,DataOutput:({styles:e={},...t})=>NO("svg",lF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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:oF,DataObjectReference:({styles:e={},...t})=>NO("svg",aF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",cF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",hF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",uF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",pF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",dF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",fF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",mF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",gF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",vF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",yF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",bF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",xF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",wF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",_F({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",OF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",CF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",EF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",kF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",SF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",PF({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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:AF,CompensateIntermediateCatchEvent:TF,ConditionalIntermediateCatchEvent:DF,ErrorIntermediateCatchEvent:LF,EscalationIntermediateCatchEvent:jF,LinkIntermediateCatchEvent:IF,MessageIntermediateCatchEvent:QF,MultipleIntermediateCatchEvent:VF,ConditionalIntermediateCatchEventNonInterrupting:HF,EscalationIntermediateCatchEventNonInterrupting:YF,MessageIntermediateCatchEventNonInterrupting:UF,MultipleIntermediateCatchEventNonInterrupting:KF,ParallelIntermediateCatchEventNonInterrupting:eV,SignalIntermediateCatchEventNonInterrupting:nV,TimerIntermediateCatchEventNonInterrupting:rV,ParallelMultipleIntermediateCatchEvent:sV,SignalIntermediateCatchEvent:lV,TimerIntermediateCatchEvent:hV,IntermediateThrowEvent:pV,CompensateIntermediateThrowEvent:({styles:e={},...t})=>NO("svg",dV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",fV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",mV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",gV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",vV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",yV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",bV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("path",{d:"M0 7v18.62h32V7H0zm1.655 17.056V8.684h28.62v15.372H1.656z"})),ManualTask:({styles:e={},...t})=>NO("svg",xV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",wV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",_V({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("path",{d:"M0 5v22.069h32V5H0zm30.276 1.684v18.82H6.62V6.684h23.655zm-28.62 0h3.31v18.82h-3.31V6.684z"})),Process:({styles:e={},...t})=>NO("svg",OV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",EV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",kV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",SV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",CV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",PV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",$V({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",AV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",RV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",TV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",MV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",DV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",BV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",LV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",NV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",jV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",zV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",IV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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:AF,CompensateBoundaryEvent:TF,ConditionalBoundaryEvent:DF,ErrorBoundaryEvent:LF,EscalationBoundaryEvent:jF,LinkBoundaryEvent:IF,MessageBoundaryEvent:QF,MultipleBoundaryEvent:VF,BoundaryEvent:pV,ConditionalBoundaryEventNonInterrupting:HF,EscalationBoundaryEventNonInterrupting:YF,MessageBoundaryEventNonInterrupting:UF,MultipleBoundaryEventNonInterrupting:KF,ParallelBoundaryEventNonInterrupting:eV,SignalBoundaryEventNonInterrupting:nV,TimerBoundaryEventNonInterrupting:rV,ParallelMultipleBoundaryEvent:sV,SignalBoundaryEvent:lV,TimerBoundaryEvent:hV,StartEvent:({styles:e={},...t})=>NO("svg",XV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",QV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",FV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",VV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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:HV,CollapsedAdHocSubProcess:HV,ExpandedSubProcess:YV,ExpandedAdHocSubProcess:YV,Task:({styles:e={},...t})=>NO("svg",GV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",UV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",ZV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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})=>NO("svg",KV({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},t),NO("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 eq(e){const{type:t}=e;let n=nq(t);const i=function(e){const t=qr(e),n=t.eventDefinitions;return n&&n[0]}(e);if(i)return n=`${function(e){const t=nq(e.$type);return t.replace("EventDefinition","")}(i)}${n}`,(Fr(e,"bpmn:StartEvent")&&!ho(e)||Fr(e,"bpmn:BoundaryEvent")&&!function(e){const t=qr(e);return t&&!1!==t.cancelActivity}(e))&&(n=`${n}NonInterrupting`),n;if(Fr(e,"bpmn:SubProcess")&&!Fr(e,"bpmn:Transaction"))if(uo(e))n=`Event${n}`;else{const t=co(e)&&!function(e){const t=e&&(e.di||qr(e).di);return Fr(t,"bpmndi:BPMNPlane")}(e);n=`${t?"Expanded":"Collapsed"}${n}`}return function(e){const t=qr(e),n=qr(e.source);if(!Fr(e,"bpmn:SequenceFlow")||!n)return!1;return n.default&&n.default===t&&(Fr(n,"bpmn:Gateway")||Fr(n,"bpmn:Activity"))}(e)&&(n="DefaultFlow"),function(e){const t=qr(e),n=qr(e.source);if(!Fr(e,"bpmn:SequenceFlow")||!n)return!1;return t.conditionExpression&&Fr(n,"bpmn:Activity")}(e)&&(n="ConditionalFlow"),n}const tq={getDocumentationRef:e=>{const t=iq();if(t)return function(e,t){const n=rq(e,t);return n&&n.documentationRef}(e,t)},getElementLabel:e=>Fr(e,"bpmn:Process")?qr(e).name:wo(e),getElementIcon:e=>{const t=eq(e),n=iq();if(n){const t=rq(e,n);if(t&&t.icon)return()=>zO("img",{class:"bio-properties-panel-header-template-icon",width:"32",height:"32",src:t.icon.contents})}return JV[t]},getTypeLabel:e=>{const t=iq();if(t){const n=rq(e,t);if(n&&n.name)return n.name}return eq(e).replace(/(\B[A-Z])/g," $1").replace(/(\bNon Interrupting)/g,"($1)")}};function nq(e){return e.split(":")[1]}function iq(){return ZQ("elementTemplates",!1)}function rq(e,t){return t.get(e)}function oq(){return oq=Object.assign?Object.assign.bind():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},oq.apply(this,arguments)}var sq=({styles:e={},...t})=>NO("svg",oq({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"64",height:"64"},t),NO("defs",null,NO("rect",{id:"a",width:"57",height:"47",x:"3",y:"8",rx:"7"}),NO("mask",{id:"b",width:"57",height:"47",x:"0",y:"0",fill:"#fff",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox"},NO("use",{xlinkHref:"#a"}))),NO("g",{fill:"none",fillRule:"evenodd"},NO("path",{fill:"#818798",d:"M52 11a5 5 0 015 5v31a5 5 0 01-5 5H11a5 5 0 01-5-5V16a5 5 0 015-5h41zm0 2H11a3 3 0 00-2.995 2.824L8 16v31a3 3 0 002.824 2.995L11 50h41a3 3 0 002.995-2.824L55 47V16a3 3 0 00-2.824-2.995L52 13z"}),NO("path",{fill:"#D5D7DD",d:"M16 24h31v6H16zM21 33h21v6H21z"}),NO("use",{stroke:"#B9BCC6",strokeDasharray:"5 2",strokeWidth:"2",mask:"url(#b)",xlinkHref:"#a"})));function aq(){return aq=Object.assign?Object.assign.bind():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},aq.apply(this,arguments)}var lq=({styles:e={},...t})=>NO("svg",aq({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"128",height:"64"},t),NO("defs",null,NO("path",{id:"a",d:"M9 9h110v47H9z"}),NO("mask",{id:"b",width:"110",height:"47",x:"0",y:"0",fill:"#fff",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox"},NO("use",{xlinkHref:"#a"}))),NO("g",{fill:"none",fillRule:"evenodd"},NO("path",{fill:"#818798",d:"M25 20.272L37.728 33 25 45.728 12.272 33 25 20.272zm0 2.829L15.1 33l9.9 9.9 9.9-9.9-9.9-9.9z"}),NO("path",{fill:"#D5D7DD",d:"M17 47h16v6H17z"}),NO("path",{fill:"#818798",d:"M35 32h27v2H35z"}),NO("path",{fill:"#818798",d:"M60 30v6l6-3z"}),NO("path",{fill:"#D5D7DD",d:"M80 34h21v6H80z"}),NO("g",null,NO("path",{fill:"#818798",d:"M111 12a5 5 0 015 5v31a5 5 0 01-5 5H70a5 5 0 01-5-5V17a5 5 0 015-5h41zm0 2H70a3 3 0 00-3 3v31a3 3 0 003 3h41a3 3 0 003-3V17a3 3 0 00-3-3z"}),NO("path",{fill:"#D5D7DD",d:"M75 25h31v6H75z"})),NO("use",{stroke:"#B9BCC6",strokeDasharray:"5 2",strokeWidth:"2",mask:"url(#b)",xlinkHref:"#a"})));const cq=e=>(e||(e=e=>e),{getEmpty:()=>({text:e("Select an element to edit its properties."),icon:sq}),getMultiple:()=>({text:e("Multiple elements are selected. Select a single element to edit its properties."),icon:lq})});function hq(e){const{element:t,injector:n,getProviders:i,layoutConfig:r,descriptionConfig:o,tooltipConfig:s}=e,a=n.get("canvas"),l=n.get("elementRegistry"),h=n.get("eventBus"),u=n.get("translate"),[p,d]=q_({selectedElement:t}),f=p.selectedElement,m=e=>{if(!e)return;let t=e;t&&"label"===t.type&&(t=t.labelTarget),d({...p,selectedElement:t}),h.fire("propertiesPanel.updated",{element:t})};W_((()=>{const e=e=>{const{newSelection:t=[]}=e;if(t.length>1)return m(t);const n=t[0],i=a.getRootElement();(function(e){return e&&(e.isImplicit||"__implicitroot"===e.id)})(i)||m(n||i)};return h.on("selection.changed",e),()=>{h.off("selection.changed",e)}}),[]),W_((()=>{const e=e=>{const t=function(e,t){return g(e,(e=>e===t))}(e.elements,f);t&&function(e,t){return e&&t.get(e.id)}(t,l)&&m(t)};return h.on("elements.changed",e),()=>{h.off("elements.changed",e)}}),[f]),W_((()=>{const e=e=>{const t=e.element;m(t)};return h.on("root.added",e),()=>{h.off("root.added",e)}}),[f]),W_((()=>{const e=()=>{m(f)};return h.on("propertiesPanel.providersChanged",e),()=>{h.off("propertiesPanel.providersChanged",e)}}),[f]),W_((()=>{const e=()=>{m(f)};return h.on("elementTemplates.changed",e),()=>{h.off("elementTemplates.changed",e)}}),[f]);const v={selectedElement:f,injector:n,getService:(e,t)=>n.get(e,t)},y=i(f),b=U_((()=>w(y,(function(e,t){if(c(f))return[];return t.getGroups(f)(e)}),[])),[y,f]),[x,_]=q_(r||{}),O=Z_((e=>{h.fire("propertiesPanel.layoutChanged",{layout:e})}),[h]);W_((()=>{const e=e=>{const{layout:t}=e;_(t)};return h.on("propertiesPanel.setLayout",e),()=>h.off("propertiesPanel.setLayout",e)}),[h,_]);return zO(UQ.Provider,{value:v,children:zO(WX,{element:f,headerProvider:tq,placeholderProvider:cq(u),groups:b,layoutConfig:x,layoutChanged:O,descriptionConfig:o,descriptionLoaded:e=>{h.fire("propertiesPanel.descriptionLoaded",{description:e})},tooltipConfig:s,tooltipLoaded:e=>{h.fire("propertiesPanel.tooltipLoaded",{tooltip:e})},eventBus:h})})}class uq{constructor(e,t,n){const{parent:i,layout:r,description:o,tooltip:s}=e||{};this._eventBus=n,this._injector=t,this._layoutConfig=r,this._descriptionConfig=o,this._tooltipConfig=s,this._container=we('<div style="height: 100%" class="bio-properties-panel-container"></div>');var a=t.get("commandStack",!1);a&&function(e,t,n){function i(e){e.preventDefault(),e.stopPropagation()}function r(e){return pa(e)?(n.undo(),i(e)):da(e)?(n.redo(),i(e)):void 0}t.on("keyboard.bind",(function(){fe.bind(e,"keydown",r)})),t.on("keyboard.unbind",(function(){fe.unbind(e,"keydown",r)}))}(this._container,n,a),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");e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),"string"==typeof e&&(e=_e(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")}setLayout(e){this._eventBus.fire("propertiesPanel.setLayout",{layout:e})}_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)||(A_(zO(hq,{element:e,injector:this._injector,getProviders:this._getProviders.bind(this),layoutConfig:this._layoutConfig,descriptionConfig:this._descriptionConfig,tooltipConfig:this._tooltipConfig}),this._container),this._eventBus.fire("propertiesPanel.rendered"))}_destroy(){this._container&&(A_(null,this._container),this._eventBus.fire("propertiesPanel.destroyed"))}}uq.$inject=["config.propertiesPanel","injector","eventBus"];class pq{constructor(e){this._commandStack=e}preExecute(e){const t=this._commandStack;b(e,(function(e){t.execute(e.cmd,e.context)}))}}pq.$inject=["commandStack"];const dq={"properties-panel.multi-command-executor":pq};function fq(e,t){e.on("diagram.init",(function(){b(dq,(function(e,n){t.registerHandler(n,e)}))}))}fq.$inject=["eventBus","commandStack"];var mq={__depends__:[{__init__:[fq]},fQ],__init__:["propertiesPanel"],propertiesPanel:["type",uq]};function gq(e){const{autoFocusEntry:t,element:n,getOptions:i}=e,r=i(n),o=vX(r);return W_((()=>{if(t&&o&&r.length>o.length){const e=_e(`[data-entry-id="${t}"]`),n=_e(".bio-properties-panel-input",e);n&&n.select()}}),[r]),zO(eQ,{...e})}function vq(e){return bq(e,"bpmn:ErrorEventDefinition")}function yq(e){const t=vq(e);return t&&t.get("errorRef")}function bq(e,t){return g(qr(e).get("eventDefinitions")||[],(function(e){return Fr(e,t)}))}function xq(e){return Fr(e,"bpmn:ReceiveTask")?qr(e):bq(e,"bpmn:MessageEventDefinition")}function wq(e){const t=xq(e);return t&&t.get("messageRef")}function _q(e){return bq(e,"bpmn:LinkEventDefinition")}function Oq(e){return bq(e,"bpmn:SignalEventDefinition")}function Eq(e){const t=Oq(e);return t&&t.get("signalRef")}function kq(e){return bq(e,"bpmn:EscalationEventDefinition")}function Sq(e){const t=kq(e);return t&&t.get("escalationRef")}function Cq(e){return bq(e,"bpmn:CompensateEventDefinition")}function Pq(e){const{element:t}=e;return function(e){return Vr(e,["bpmn:EndEvent","bpmn:IntermediateThrowEvent"])&&!!Cq(e)}(t)?[{id:"waitForCompletion",component:$q,isEdited:ZX},{id:"activityRef",component:Aq,isEdited:tQ}]:[]}function $q(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=Cq(t);return UX({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 Aq(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("elementRegistry"),r=ZQ("translate"),o=Cq(t);return gq({element:t,id:"activityRef",label:r("Activity reference"),getValue:()=>{const e=function(e){const t=Cq(e);return t&&t.get("activityRef")}(t);return e&&e.get("id")},setValue:e=>{const r=e?qr(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){const t=qr(e);let n=t.$parent,i=Mq(n);Fr(n,"bpmn:SubProcess")&&n.triggeredByEvent&&(n=n.$parent,n&&(i=[...i,...Mq(n)]));return i}(t);var i;return(i=n,R(i,(e=>(e.name||"").toLowerCase()))).forEach((function(t){e.push({value:t.id,label:Dq(t)})})),e}})}function Rq(e,t){const{flowElements:n}=e;return n.filter((function(e){return Fr(e,t)}))}function Tq(e,t){return Fr(e,"bpmn:CallActivity")||Fr(e,"bpmn:SubProcess")&&!e.triggeredByEvent&&!e.isForCompensation||function(e,t){const{id:n}=e;return!!g(t,(function(e){const{attachedToRef:t}=e,i=Cq(e);return t&&i&&t.id===n}))}(e,t)}function Mq(e){const t=function(e){return Rq(e,"bpmn:Activity")}(e),n=function(e){return Rq(e,"bpmn:BoundaryEvent")}(e);return t.filter((function(e){return Tq(e,n)}))}function Dq(e){const{id:t,name:n}=e;return`${n?n+" ":""}(id=${t})`}const Bq="text/plain";function Lq(e){const{element:t}=e,n=[{id:"documentation",component:Nq,isEdited:sQ}];return function(e){return Fr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)&&n.push({id:"processDocumentation",component:jq,isEdited:sQ}),n}function Nq(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("commandStack"),r=ZQ("translate"),o=ZQ("debounceInput"),s=Iq(qr(t)),a=Xq(t,qr(t),n,i);return oQ({element:t,id:"documentation",label:r("Element documentation"),getValue:s,setValue:a,debounce:o})}function jq(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("commandStack"),r=ZQ("translate"),o=ZQ("debounceInput"),s=qr(t).processRef,a=Iq(s),l=Xq(t,s,n,i);return oQ({element:t,id:"processDocumentation",label:r("Process documentation"),getValue:a,setValue:l,debounce:o})}function zq(e){return e.find((function(e){return(e.textFormat||Bq)===Bq}))}function Iq(e){return function(){const t=zq(e&&e.get("documentation"));return t&&t.text}}function Xq(e,t,n,i){return function(r){let o=zq(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:x(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 Qq(e,t,n,i){const r=i.create(e,t);return n&&(r.$parent=n),r}function Fq(e){return new n([32,32,1]).nextPrefixed(e)}function Vq(e){let t=e;for(;t.$parent;)t=t.$parent;return t}function qq(e,t){const n=Vq(e);return i=n.get("rootElements"),r=t,(i||[]).filter((e=>Fr(e,r)));var i,r}function Hq(e,t,n){return qq(e,t).find((e=>e.id===n))}const Wq="",Yq="create-new";function Gq(e){const{element:t}=e;if(!function(e){return Vr(e,["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:EndEvent"])&&!!vq(e)}(t))return[];let n=[{id:"errorRef",component:Uq,isEdited:tQ}];return yq(t)&&(n=[...n,{id:"errorName",component:Zq,isEdited:hQ},{id:"errorCode",component:Kq,isEdited:hQ}]),n}function Uq(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("commandStack"),r=ZQ("translate"),o=vq(t);return gq({element:t,id:"errorRef",label:r("Global error reference"),autoFocusEntry:"errorName",getValue:()=>{const e=yq(t);return e?e.get("id"):Wq},setValue:e=>{const r=Vq(o),s=[];let a;return e===Yq&&(a=Qq("bpmn:Error",{name:Fq("Error_")},r,n),e=a.get("id"),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),a]}}})),a=a||Hq(o,"bpmn:Error",e),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{errorRef:a}}}),i.execute("properties-panel.multi-command-executor",s)},getOptions:()=>{let e=[{value:Wq,label:r("<none>")},{value:Yq,label:r("Create new ...")}];const n=qq(qr(t),"bpmn:Error");var i;return(i=n,R(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function Zq(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=yq(t);return cQ({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 Kq(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=yq(t);return cQ({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 Jq="create-new";function eH(e){const{element:t}=e;if(!function(e){return Fr(e,"bpmn:Event")&&!!kq(e)}(t))return[];let n=[{id:"escalationRef",component:tH,isEdited:tQ}];return Sq(t)&&(n=[...n,{id:"escalationName",component:nH,isEdited:hQ},{id:"escalationCode",component:iH,isEdited:hQ}]),n}function tH(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("commandStack"),r=ZQ("translate"),o=kq(t);return gq({element:t,id:"escalationRef",label:r("Global escalation reference"),autoFocusEntry:"escalationName",getValue:()=>{const e=Sq(t);return e&&e.get("id")},setValue:e=>{const r=Vq(o),s=[];let a;if(e===Jq){const i=Fq("Escalation_");a=Qq("bpmn:Escalation",{id:i,name:i},r,n),e=a.get("id"),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),a]}}})}return a=a||Hq(o,"bpmn:Escalation",e),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{escalationRef:a}}}),i.execute("properties-panel.multi-command-executor",s)},getOptions:()=>{let e=[{value:"",label:r("<none>")},{value:Jq,label:r("Create new ...")}];const n=qq(qr(t),"bpmn:Escalation");var i;return(i=n,R(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function nH(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=Sq(t);return cQ({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 iH(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=Sq(t);return cQ({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 rH(e){const{element:t}=e;return Fr(t,"bpmn:Process")||function(e){return Fr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)?[{id:"isExecutable",component:oH,isEdited:ZX}]:[]}function oH(e){const{element:t}=e,n=ZQ("modeling"),i=ZQ("commandStack"),r=ZQ("translate");let o,s;if(s=e=>{n.updateProperties(t,{isExecutable:e})},o=e=>e.businessObject.isExecutable,Fr(t,"bpmn:Participant")){const e=t.businessObject.get("processRef");s=n=>{i.execute("element.updateModdleProperties",{element:t,moddleElement:e,properties:{isExecutable:n}})},o=()=>e.get("isExecutable")}return UX({element:t,id:"isExecutable",label:r("Executable"),getValue:o,setValue:s})}const sH=/\s/,aH=/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i,lH=/^[a-z_][\w-.]*$/i;function cH(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,sH.test(n))return t("ID must not contain spaces.");var n;if(!lH.test(e))return aH.test(e)?t("ID must not contain prefix."):t("ID must be a valid QName.")}(t,n):n("ID must not be empty.")}function hH(e){const{element:t}=e,n=ZQ("modeling"),i=ZQ("debounceInput"),r=ZQ("translate");return cQ({element:t,id:"id",label:r(Fr(t,"bpmn:Participant")?"Participant ID":"ID"),getValue:e=>e.businessObject.id,setValue:(e,i)=>{i||n.updateProperties(t,{id:e})},debounce:i,validate:e=>cH(qr(t),e,r)})}function uH(e){const{element:t}=e;return function(e){return Vr(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!_q(e)}(t)?[{id:"linkName",component:pH,isEdited:hQ}]:[]}function pH(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=_q(t);return cQ({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 dH="",fH="create-new";function mH(e){const{element:t}=e;if(!function(e){return Fr(e,"bpmn:ReceiveTask")||Vr(e,["bpmn:StartEvent","bpmn:EndEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent"])&&!!xq(e)}(t))return[];let n=[{id:"messageRef",component:gH,isEdited:tQ}];return wq(t)&&(n=[...n,{id:"messageName",component:vH,isEdited:hQ}]),n}function gH(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("commandStack"),r=ZQ("translate"),o=xq(t);return gq({element:t,id:"messageRef",label:r("Global message reference"),autoFocusEntry:"messageName",getValue:()=>{const e=wq(t);return e?e.get("id"):dH},setValue:e=>{const r=Vq(o),s=[];let a;if(e===fH){const i=Fq("Message_");a=Qq("bpmn:Message",{id:i,name:i},r,n),e=a.get("id"),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),a]}}})}return a=a||Hq(o,"bpmn:Message",e),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{messageRef:a}}}),i.execute("properties-panel.multi-command-executor",s)},getOptions:()=>{let e=[{value:dH,label:r("<none>")},{value:fH,label:r("Create new ...")}];const n=qq(qr(t),"bpmn:Message");var i;return(i=n,R(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function vH(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=wq(t);return cQ({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 yH(e){const{element:t}=e;if(!function(e){const t=OH(e);return!!t&&Fr(t,"bpmn:MultiInstanceLoopCharacteristics")}(t))return[];return[{id:"loopCardinality",component:bH,isEdited:hQ},{id:"completionCondition",component:xH,isEdited:hQ}]}function bH(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("debounceInput"),r=ZQ("commandStack"),o=ZQ("translate");return cQ({element:t,id:"loopCardinality",label:o("Loop cardinality"),getValue:()=>function(e){const t=function(e){return _H(e,"loopCardinality")}(e);return wH(t)}(t),setValue:e=>r.execute("element.updateModdleProperties",EH(t,"loopCardinality",e,n)),debounce:i})}function xH(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("debounceInput"),r=ZQ("commandStack"),o=ZQ("translate");return cQ({element:t,id:"completionCondition",label:o("Completion condition"),getValue:()=>function(e){const t=function(e){return _H(e,"completionCondition")}(e);return wH(t)}(t),setValue:e=>r.execute("element.updateModdleProperties",EH(t,"completionCondition",e,n)),debounce:i})}function wH(e){return e&&e.get("body")}function _H(e,t){const n=OH(e);return n&&n.get(t)}function OH(e){return qr(e).loopCharacteristics}function EH(e,t,n,i){const r=OH(e),o={};if(!n)return o[t]=void 0,{element:e,moddleElement:r,properties:o};const s=r.get(t);return s?{element:e,moddleElement:s,properties:{body:n}}:(o[t]=function(e,t,n){return Qq("bpmn:FormalExpression",{body:t},e,n)}(r,n,i),{element:e,moddleElement:r,properties:o})}function kH(e){const{element:t}=e;return Vr(t,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"])?[]:[{id:"name",component:SH,isEdited:sQ}]}function SH(e){const{element:t}=e,n=ZQ("modeling"),i=ZQ("debounceInput"),r=ZQ("canvas"),o=ZQ("bpmnFactory"),s=ZQ("translate");let a={element:t,id:"name",label:s("Name"),debounce:i,setValue:e=>{n.updateProperties(t,{name:e})},getValue:e=>e.businessObject.name,autoResize:!0};return Fr(t,"bpmn:TextAnnotation")?a={...a,setValue:e=>{n.updateProperties(t,{text:e})},getValue:e=>e.businessObject.text}:Fr(t,"bpmn:Group")?a={...a,setValue:e=>{const i=qr(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 Tt(e.get("rootElements"),i),qr(i).$parent=e,qr(n).$parent=i,n}(qr(t).$parent,n);e.categoryValueRef=i}(i,r.getRootElement(),o),n.updateLabel(t,e)},getValue:e=>{const t=qr(e).categoryValueRef;return t&&t.value}}:Fr(t,"bpmn:Participant")&&(a.label=s("Participant Name")),oQ(a)}function CH(e){const{element:t}=e;return function(e){return Fr(e,"bpmn:Participant")&&e.businessObject.get("processRef")}(t)?[{id:"processId",component:$H,isEdited:hQ},{id:"processName",component:PH,isEdited:hQ}]:[]}function PH(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=t.businessObject.get("processRef");return cQ({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 $H(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=t.businessObject.get("processRef");return cQ({element:t,id:"processId",label:i("Process ID"),getValue:()=>o.get("id"),setValue:(e,i)=>{i||n.execute("element.updateModdleProperties",{element:t,moddleElement:o,properties:{id:e}})},debounce:r,validate:e=>cH(o,e,i)})}const AH="",RH="create-new";function TH(e){const{element:t}=e;if(!function(e){return Fr(e,"bpmn:Event")&&!!Oq(e)}(t))return[];let n=[{id:"signalRef",component:MH,isEdited:tQ}];return Eq(t)&&(n=[...n,{id:"signalName",component:DH,isEdited:hQ}]),n}function MH(e){const{element:t}=e,n=ZQ("bpmnFactory"),i=ZQ("commandStack"),r=ZQ("translate"),o=Oq(t);return gq({element:t,id:"signalRef",label:r("Global signal reference"),autoFocusEntry:"signalName",getValue:()=>{const e=Eq(t);return e?e.get("id"):AH},setValue:e=>{const r=Vq(o),s=[];let a;if(e===RH){const i=Fq("Signal_");a=Qq("bpmn:Signal",{id:i,name:i},r,n),e=a.get("id"),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:r,properties:{rootElements:[...r.get("rootElements"),a]}}})}return a=a||Hq(o,"bpmn:Signal",e),s.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:o,properties:{signalRef:a}}}),i.execute("properties-panel.multi-command-executor",s)},getOptions:()=>{let e=[{value:AH,label:r("<none>")},{value:RH,label:r("Create new ...")}];const n=qq(qr(t),"bpmn:Signal");var i;return(i=n,R(i,(e=>(e.name||"").toLowerCase()))).forEach((t=>{e.push({value:t.get("id"),label:t.get("name")})})),e}})}function DH(e){const{element:t}=e,n=ZQ("commandStack"),i=ZQ("translate"),r=ZQ("debounceInput"),o=Eq(t);return cQ({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 BH(e){return function(e,t){const n=qr(e);return g(n.get("eventDefinitions")||[],(function(e){return Fr(e,t)}))}(e,"bpmn:TimerEventDefinition")}function LH(e){const{element:t,idPrefix:n}=e;let{timerEventDefinition:i}=e;if(!i){i=BH(qr(t))}const r=function(e){if(!e)return;return void 0!==e.get("timeDate")?"timeDate":void 0!==e.get("timeCycle")?"timeCycle":void 0!==e.get("timeDuration")?"timeDuration":void 0}(i);if(!function(e){return Vr(e,["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"])&&!!BH(e)}(t))return[];const o=[];return o.push({id:IH(n,"timerEventDefinitionType"),component:NH,isEdited:tQ,timerEventDefinition:i,timerEventDefinitionType:r}),r&&o.push({id:IH(n,"timerEventDefinitionValue"),component:jH,isEdited:hQ,timerEventDefinition:i,timerEventDefinitionType:r}),o}function NH(e){const{element:t,timerEventDefinition:n,timerEventDefinitionType:i}=e,r=ZQ("commandStack"),o=ZQ("bpmnFactory"),s=ZQ("translate");return eQ({element:t,id:"timerEventDefinitionType",label:s("Type"),getValue:()=>i||"",setValue:e=>{if(e===i)return;const s=o.create("bpmn:FormalExpression",{body:void 0});s.$parent=n;const a={timeDuration:void 0,timeDate:void 0,timeCycle:void 0};""!==e&&(a[e]=s),r.execute("element.updateModdleProperties",{element:t,moddleElement:n,properties:a})},getOptions:e=>[{value:"",label:s("<none>")},{value:"timeDate",label:s("Date")},{value:"timeDuration",label:s("Duration")},{value:"timeCycle",label:s("Cycle")}]})}function jH(e){const{element:t,timerEventDefinition:n,timerEventDefinitionType:i}=e,r=ZQ("commandStack"),o=ZQ("translate"),s=ZQ("debounceInput"),a=n.get(i);return cQ({element:t,id:"timerEventDefinitionValue",label:o("Value"),getValue:()=>a&&a.get("body"),setValue:e=>{r.execute("element.updateModdleProperties",{element:t,moddleElement:a,properties:{body:e}})},debounce:s,tooltip:zH(i,o)})}function zH(e,t){switch(e){case"timeDate":return zO("div",{children:[zO("p",{children:t("A specific point in time defined as ISO 8601 combined date and time representation.")}),zO("ul",{children:[zO("li",{children:[zO("code",{children:"2019-10-01T12:00:00Z"})," - ",t("UTC time")]}),zO("li",{children:[zO("code",{children:"2019-10-02T08:09:40+02:00"})," - ",t("UTC plus 2 hours zone offset")]})]}),zO("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 zO("div",{children:[zO("p",{children:t("A cycle defined as ISO 8601 repeating intervals format.")}),zO("ul",{children:[zO("li",{children:[zO("code",{children:"R5/PT10S"})," - ",t("every 10 seconds, up to 5 times")]}),zO("li",{children:[zO("code",{children:"R/P1D"})," - ",t("every day, infinitely")]})]}),zO("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 zO("div",{children:[zO("p",{children:t("A time duration defined as ISO 8601 durations format.")}),zO("ul",{children:[zO("li",{children:[zO("code",{children:"PT15S"})," - ",t("15 seconds")]}),zO("li",{children:[zO("code",{children:"PT1H30M"})," - ",t("1 hour and 30 minutes")]}),zO("li",{children:[zO("code",{children:"P14D"})," - ",t("14 days")]})]}),zO("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 IH(e,t){return e?e+t:t}function XH(e,t){const n=t.get("translate"),i=[...kH({element:e}),{id:"id",component:hH,isEdited:hQ},...CH({element:e}),...rH({element:e})];return{id:"general",label:n("General"),entries:i,component:xX}}function QH(e,t){const n={label:t.get("translate")("Compensation"),id:"compensation",component:xX,entries:[...Pq({element:e})]};return n.entries.length?n:null}function FH(e,t){const n=t.get("translate"),i=[...Lq({element:e})];return{id:"documentation",label:n("Documentation"),entries:i,component:xX}}function VH(e,t){const n={id:"error",label:t.get("translate")("Error"),component:xX,entries:[...Gq({element:e})]};return n.entries.length?n:null}function qH(e,t){const n={id:"message",label:t.get("translate")("Message"),component:xX,entries:[...mH({element:e})]};return n.entries.length?n:null}function HH(e,t){const n={id:"signal",label:t.get("translate")("Signal"),component:xX,entries:[...TH({element:e})]};return n.entries.length?n:null}function WH(e,t){const n={label:t.get("translate")("Link"),id:"link",component:xX,entries:[...uH({element:e})]};return n.entries.length?n:null}function YH(e,t){const n={id:"escalation",label:t.get("translate")("Escalation"),component:xX,entries:[...eH({element:e})]};return n.entries.length?n:null}function GH(e,t){const n={label:t.get("translate")("Timer"),id:"timer",component:xX,entries:[...LH({element:e})]};return n.entries.length?n:null}function UH(e,t){const n={label:t.get("translate")("Multi-instance"),id:"multiInstance",component:xX,entries:[...yH({element:e})]};return n.entries.length?n:null}class ZH{constructor(e,t){e.registerProvider(this),this._injector=t}getGroups(e){return t=>(t=t.concat(function(e,t){return[XH(e,t),FH(e,t),QH(e,t),VH(e,t),WH(e,t),qH(e,t),UH(e,t),HH(e,t),YH(e,t),GH(e,t)].filter((e=>null!==e))}(e,this._injector)),t)}}ZH.$inject=["propertiesPanel","injector"];var KH={__init__:["bpmnPropertiesProvider"],bpmnPropertiesProvider:["type",ZH]};function JH(e={}){dw.call(this,e)}return e(JH,dw),JH.prototype.getModules=function(e={}){return[...dw.prototype.getModules.call(this,e),e.disableAdjustOrigin?Iw:Vw,e.disableGrid?{}:Mw]},JH.prototype._extensionModules=[$w,e_,mq,KH],JH.prototype._modules=[].concat(dw.prototype._modules,JH.prototype._extensionModules),JH}));
|