Searched refs:HE (Results 1 – 10 of 10) sorted by relevance
1461 05D4;AL # HEBREW LETTER HE1746 0717;AL # SYRIAC LETTER HE1753 071E;AL # SYRIAC LETTER YUDH HE3235 10C1;AL # GEORGIAN CAPITAL LETTER HE3273 10F1;AL # GEORGIAN LETTER HE3530 1205;AL # ETHIOPIC SYLLABLE HE3921 13AE;AL # CHEROKEE LETTER HE4363 1574;AL # CANADIAN SYLLABICS NUNAVIK HE4439 15C0;AL # CANADIAN SYLLABICS SAYISI HE8981 2D21;AL # GEORGIAN SMALL LETTER HE[all …]
24 </div>`;J.RESULT_HTML='<div class="djs-search-result"></div>';J.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>';J.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';var mE={__depends__:[qe,mo,ht],searchPad:["type",J]};function gE(n){if(O(n,"dmn:Decision")||O(n,"dmn:BusinessKnowledgeModel")||O(n,"dmn:InputData")||O(n,"dmn:KnowledgeSource"))return"name";if(O(n,"dmn:TextAnnotation"))return"text"}function fs(n){var e=n.businessObject,t=gE(e);if(t)return e[t]||""}function yE(n,e,t){var i=n.businessObject,r=gE(i);return r&&(i[r]=e),t&&(n.hidden=!e),n}function gf(n,e,t){this._elementRegistry=n,this._canvas=t,e.registerProvider(this)}gf.$inject=["elementRegistry","searchPad","canvas"];gf.prototype.find=function(n){let e=this._canvas.getRootElement(),t=this._elementRegistry.filter(function(i){return!i.labelTarget});return t=Ee(t,function(i){return i!==e}),t=Vt(t,function(i){return{primaryTokens:xE(fs(i),n),secondaryTokens:xE(i.id,n),element:i}}),t=Ee(t,function(i){return vE(i.primaryTokens)||vE(i.secondaryTokens)}),t=Fn(t,function(i){return fs(i.element)+i.element.id}),t};function vE(n){return Ee(n,function(t){return!!t.matched}).length>0}function xE(n,e){let t=[],i=n;if(!n)return t;n=n.toLowerCase(),e=e.toLowerCase();let r=n.indexOf(e);return r>-1?(r!==0&&t.push({normal:i.substr(0,r)}),t.push({matched:i.substr(r,e.length)}),e.length+r<n.length&&t.push({normal:i.substr(e.length+r,n.length)})):t.push({normal:i}),t}var bE={__depends__:[mE],__init__:["dmnSearch"],dmnSearch:["type",gf]};function br(n){Et.call(this,n)}fe(br,Et);br.prototype._navigationModules=[nE,iE,bE];br.prototype._modules=[].concat(br.prototype._modules,br.prototype._navigationModules);function tx(n){return n&&n[n.length-1]}function _E(n){return n.y}function wE(n){return n.x}var f$={left:wE,center:wE,right:function(n){return n.x+n.width},top:_E,middle:_E,bottom:function(n){return n.y+n.height}};function go(n,e){this._modeling=n,this._rules=e}go.$inject=["modeling","rules"];go.prototype._getOrientationDetails=function(n){var e=["top","bottom","middle"],t="x",i="width";return e.indexOf(n)!==-1&&(t="y",i="height"),{axis:t,dimension:i}};go.prototype._isType=function(n,e){return e.indexOf(n)!==-1};go.prototype._alignmentPosition=function(n,e){var t=this._getOrientationDetails(n),i=t.axis,r=t.dimension,o={},s={},a=!1,l,c,u;function f(h,d){return Math.round((h[i]+d[i]+d[r])/2)}if(this._isType(n,["left","top"]))o[n]=e[0][i];else if(this._isType(n,["right","bottom"]))u=tx(e),o[n]=u[i]+u[r];else if(this._isType(n,["center","middle"])){if(k(e,function(h){var d=h[i]+Math.round(h[r]/2);s[d]?s[d].elements.push(h):s[d]={elements:[h],center:d}}),l=Fn(s,function(h){return h.elements.length>1&&(a=!0),h.elements.length}),a)return o[n]=tx(l).center,o;c=e[0],e=Fn(e,function(h){return h[i]+h[r]}),u=tx(e),o[n]=f(c,u)}return o};go.prototype.trigger=function(n,e){var t=this._modeling,i,r=Ee(n,function(l){return!(l.waypoints||l.host||l.labelTarget)});if(i=this._rules.allowed("elements.align",{elements:r}),F(i)&&(r=i),!(r.length<2||!i)){var o=f$[e],s=Fn(r,o),a=this._alignmentPosition(e,s);t.alignElements(s,a)}};var CE={__init__:["alignElements"],alignElements:["type",go]};var h$=10,ix=50,d$=250;function rx(n,e,t,i){for(var r;r=p$(n,t,e);)t=i(e,t,r);return t}function EE(n){return function(e,t,i){var r={x:t.x,y:t.y};return["x","y"].forEach(function(o){var s=n[o];if(s){var a=o==="x"?"width":"height",l=s.margin,c=s.minDistance;l<0?r[o]=Math.min(i[o]+l-e[a]/2,t[o]-c+l):r[o]=Math.max(i[o]+i[a]+l+e[a]/2,t[o]+c+l)}}),r}}function p$(n,e,t){var i={x:e.x-t.width/2,y:e.y-t.height/2,width:t.width,height:t.height},r=m$(n);return ye(r,function(o){if(o===t)return!1;var s=vt(o,i,h$);return s==="intersect"})}function SE(n,e){e||(e={});function t(p){return p.source===n?1:-1}var i=e.defaultDistance||ix,r=e.direction||"e",o=e.filter,s=e.getWeight||t,a=e.maxDistance||d$,l=e.reference||"start";o||(o=v$);function c(p,m){return r==="n"?l==="start"?G(p).top-G(m).bottom:l==="center"?G(p).top-le(m).y:G(p).top-G(m).top:r==="w"?l==="start"?G(p).left-G(m).right:l==="center"?G(p).left-le(m).x:G(p).left-G(m).left:r==="s"?l==="start"?G(m).top-G(p).bottom:l==="center"?le(m).y-G(p).bottom:G(m).bottom-G(p).bottom:l==="start"?G(m).left-G(p).right:l==="center"?le(m).x-G(p).right:G(m).right-G(p).right}var u=n.incoming.filter(o).map(function(p){var m=s(p),g=m<0?c(p.source,n):c(n,p.source);return{id:p.source.id,distance:g,weight:m}}),f=n.outgoing.filter(o).map(function(p){var m=s(p),g=m>0?c(n,p.target):c(p.target,n);return{id:p.target.id,distance:g,weight:m}}),h=u.concat(f).reduce(function(p,m){return p[m.id+"__weight_"+m.weight]=m,p},{}),d=st(h,function(p,m){var g=m.distance,b=m.weight;return g<0||g>a||(p[String(g)]||(p[String(g)]=0),p[String(g)]+=1*b,(!p.distance||p[p.distance]<p[String(g)])&&(p.distance=g)),p},{});return d.distance||i}function m$(n){var e=nx(n);return n.host&&(e=e.concat(nx(n.host))),n.attachers&&(e=e.concat(n.attachers.reduce(function(t,i){return t.concat(nx(i))},[]))),e}function nx(n){return y$(n).concat(g$(n))}function g$(n){return n.incoming.map(function(e){return e.source})}function y$(n){return n.outgoing.map(function(e){return e.target})}function v$(){return!0}var x$=100;function Mp(n,e,t){n.on("autoPlace",x$,function(i){var r=i.shape,o=i.source;return b$(o,r)}),n.on("autoPlace.end",function(i){t.scrollToElement(i.shape)}),this.append=function(i,r,o){n.fire("autoPlace.start",{source:i,shape:r});var s=n.fire("autoPlace",{source:i,shape:r}),a=e.appendShape(i,r,s,i.parent,o);return n.fire("autoPlace.end",{source:i,shape:a}),a}}Mp.$inject=["eventBus","modeling","canvas"];function b$(n,e,t){t||(t={});var i=t.defaultDistance||ix,r=le(n),o=G(n);return{x:o.right+i+e.width/2,y:r.y}}function Pp(n,e){n.on("autoPlace.end",500,function(t){e.select(t.shape)})}Pp.$inject=["eventBus","selection"];var OE={__init__:["autoPlaceSelectionBehavior"],autoPlace:["type",Mp],autoPlaceSelectionBehavior:["type",Pp]};var _$={width:135,height:46},ox={width:180,height:80},w$={width:125,height:45},C$={width:100,height:63};function _r(n){Hn.call(this),this._drdFactory=n}fe(_r,Hn);_r.$inject=["drdFactory"];_r.prototype.baseCreate=Hn.prototype.create;_r.prototype.create=function(n,e){return this.createDrdElement(n,e)};_r.prototype.createDrdElement=function(n,e){var t=this._drdFactory,i;e=e||{};var r=e.businessObject;if(!r){if(!e.type)throw new Error("no shape type specified");r=t.create(e.type)}return r.di||(n==="connection"?r.di=t.createDiEdge(r,[]):n==="shape"&&(r.di=t.createDiShape(r,{}))),i=this._getDefaultSize(r),e=T({businessObject:r,id:r.id},i,e),this.baseCreate(n,e)};_r.prototype._getDefaultSize=function(n){return O(n,"dmn:BusinessKnowledgeModel")?_$:O(n,"dmn:Decision")?ox:O(n,"dmn:InputData")?w$:O(n,"dmn:KnowledgeSource")?C$:{width:100,height:80}};var sx="left",kE="right",Dp=60,RE=ox.width;function AE(n,e){if(O(e,"dmn:TextAnnotation"))return E$(n,e);if(O(e,"dmn:DRGElement"))return S$(n,e)}function E$(n,e){var t=G(n),i={x:t.right+e.width/2,y:t.top-50-e.height/2},r={y:{margin:-30,minDistance:20}};return rx(n,e,i,EE(r))}function S$(n,e){var t=G(n),i=le(n);function r(a){return a.target===n?1:-1}var o=SE(n,{defaultDistance:180,direction:"s",getWeight:r,filter:O$,reference:"center"}),s={x:i.x,y:t.bottom+o};return rx(n,e,s,k$(n))}function O$(n){return!O(n,"dmn:Association")}function TE(n,e){return Math.abs(e.x-n.x)}function k$(n){var e=le(n),t,i;return function(r,o,s){var a;return t?(o.x<e.x?t=s:i=s,TE(e,le(t))<TE(e,le(i))?a=sx:a=kE):(t=s,i=s,le(s).x-e.x>0?a=sx:a=kE),a===sx?{x:Math.min(le(t).x-RE-Dp,G(t).left-Dp-r.width/2),y:o.y}:{x:Math.max(le(i).x+RE+Dp,G(i).right+Dp+r.width/2),y:o.y}}}function Ip(n){n.on("autoPlace",function(e){var t=e.shape,i=e.source;return AE(i,t)})}Ip.$inject=["eventBus"];var ME={__depends__:[OE],__init__:["dmnAutoPlace"],dmnAutoPlace:["type",Ip]};var PE=1500;function Lp(n,e,t){var i=this,r=t.get("dragging",!1);function o(s){if(!s.hover){var a=s.originalEvent,l=i._findTargetGfx(a),c=l&&n.get(l);l&&c&&(s.stopPropagation(),r.hover({element:c,gfx:l}),r.move(a))}}r&&e.on("drag.start",function(s){e.once("drag.move",PE,function(a){o(a)})}),(function(){var s,a;e.on("element.hover",function(l){s=l.gfx,a=l.element}),e.on("element.hover",PE,function(l){a&&e.fire("element.out",{element:a,gfx:s})}),e.on("element.out",function(){s=null,a=null})})(),this._findTargetGfx=function(s){var a,l;if(s instanceof MouseEvent)return a=Un(s),l=document.elementFromPoint(a.x,a.y),R$(l)}}Lp.$inject=["elementRegistry","eventBus","injector"];function R$(n){return De(n,"svg, .djs-element",!0)}var DE={__init__:["hoverFix"],hoverFix:["type",Lp]};var Oa=Math.round,IE="djs-drag-active";function hs(n){n.preventDefault()}function T$(n){return typeof TouchEvent!="undefined"&&n instanceof TouchEvent}function A$(n){return Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2))}function Bp(n,e,t,i){var r={threshold:5,trapClick:!0},o;function s(v){var x=e.viewbox(),C=e._container.getBoundingClientRect();return{x:x.x+(v.x-C.left)/x.scale,y:x.y+(v.y-C.top)/x.scale}}function a(v,x){x=x||o;var C=n.createEvent(T({},x.payload,x.data,{isTouch:x.isTouch}));return n.fire("drag."+v,C)===!1?!1:n.fire(x.prefix+"."+v,C)}function l(v){var x=v.filter(function(C){return i.get(C.id)});x.length&&t.select(x)}function c(v,x){var C=o.payload,E=o.displacement,S=o.globalStart,w=Un(v),R=xr(w,S),A=o.localStart,I=s(w),D=xr(I,A);if(!o.active&&(x||A$(R)>o.threshold)){if(T(C,{x:Oa(A.x+E.x),y:Oa(A.y+E.y),dx:0,dy:0},{originalEvent:v}),a("start")===!1)return g();o.active=!0,o.keepSelection||(C.previousSelection=t.get(),t.select(null)),o.cursor&&mf(o.cursor),e.addMarker(e.getRootElement(),IE)}vp(v),o.active&&(T(C,{x:Oa(I.x+E.x),y:Oa(I.y+E.y),dx:Oa(D.x),dy:Oa(D.y)},{originalEvent:v}),a("move"))}function u(v){var x,C=!0;o.active&&(v&&(o.payload.originalEvent=v,vp(v)),C=a("end")),C===!1&&a("rejected"),x=b(C!==!0),a("ended",x)}function f(v){Ve("Escape",v)&&(hs(v),g())}function h(v){var x;o.active&&(x=Op(n),setTimeout(x,400),hs(v)),u(v)}function d(v){c(v)}function p(v){var x=o.payload;x.hoverGfx=v.gfx,x.hover=v.element,a("hover")}function m(v){a("out");var x=o.payload;x.hoverGfx=null,x.hover=null}function g(v){var x;if(o){var C=o.active;C&&a("cancel"),x=b(v),C&&a("canceled",x)}}function b(v){var x,C;a("cleanup"),Sp(),o.trapClick?C=h:C=u,q.unbind(document,"mousemove",c),q.unbind(document,"dragstart",hs),q.unbind(document,"selectstart",hs),q.unbind(document,"mousedown",C,!0),q.unbind(document,"mouseup",C,!0),q.unbind(document,"keyup",f),q.unbind(document,"touchstart",d,!0),q.unbind(document,"touchcancel",g,!0),q.unbind(document,"touchmove",c,!0),q.unbind(document,"touchend",u,!0),n.off("element.hover",p),n.off("element.out",m),e.removeMarker(e.getRootElement(),IE);var E=o.payload.previousSelection;return v!==!1&&E&&!t.get().length&&l(E),x=o,o=null,x}function _(v,x,C,E){o&&g(!1),typeof x=="string"&&(E=C,C=x,x=null),E=T({},r,E||{});var S=E.data||{},w,R,A,I,D;if(E.trapClick?I=h:I=u,v?(w=vr(v)||v,R=Un(v),vp(v),w.type==="dragstart"&&hs(w)):(w=null,R={x:0,y:0}),A=s(R),x||(x=A),D=T$(w),o=T({prefix:C,data:S,payload:{},globalStart:R,displacement:xr(x,A),localStart:A,isTouch:D},E),E.manual||(D?(q.bind(document,"touchstart",d,!0),q.bind(document,"touchcancel",g,!0),q.bind(document,"touchmove",c,!0),q.bind(document,"touchend",u,!0)):(q.bind(document,"mousemove",c),q.bind(document,"dragstart",hs),q.bind(document,"selectstart",hs),q.bind(document,"mousedown",I,!0),q.bind(document,"mouseup",I,!0)),q.bind(document,"keyup",f),n.on("element.hover",p),n.on("element.out",m)),a("init")===!1)return g(),!1;E.autoActivate&&c(v,!0)}n.on("diagram.destroy",g),this.init=_,this.move=c,this.hover=p,this.out=m,this.end=u,this.cancel=g,this.context=function(){return o},this.setOptions=function(v){T(r,v)}}Bp.$inject=["eventBus","canvas","selection","elementRegistry"];var gn={__depends__:[DE,ht],dragging:["type",Bp]};function yo(n,e,t){this._canvas=t,this._opts=T({scrollThresholdIn:[20,20,20,20],scrollThresholdOut:[0,0,0,0],scrollRepeatTimeout:15,scrollStep:10},n);var i=this;e.on("drag.move",function(r){var o=i._toBorderPoint(r);i.startScroll(o)}),e.on(["drag.cleanup"],function(){i.stopScroll()})}yo.$inject=["config.autoScroll","eventBus","canvas"];yo.prototype.startScroll=function(n){var e=this._canvas,t=this._opts,i=this,r=e.getContainer().getBoundingClientRect(),o=[n.x,n.y,r.width-n.x,r.height-n.y];this.stopScroll();for(var s=0,a=0,l=0;l<4;l++)M$(o[l],t.scrollThresholdOut[l],t.scrollThresholdIn[l])&&(l===0?s=t.scrollStep:l==1?a=t.scrollStep:l==2?s=-t.scrollStep:l==3&&(a=-t.scrollStep));(s!==0||a!==0)&&(e.scroll({dx:s,dy:a}),this._scrolling=setTimeout(function(){i.startScroll(n)},t.scrollRepeatTimeout))};function M$(n,e,t){return e<n&&n<t}yo.prototype.stopScroll=function(){clearTimeout(this._scrolling)};yo.prototype.setOptions=function(n){this._opts=T({},this._opts,n)};yo.prototype._toBorderPoint=function(n){var e=this._canvas._container.getBoundingClientRect(),t=Un(n.originalEvent);return{x:t.x-e.left,y:t.y-e.top}};var LE={__depends__:[gn],__init__:["autoScroll"],autoScroll:["type",yo]};function yf(n){this._commandStack=n.get("commandStack",!1)}yf.$inject=["injector"];yf.prototype.allowed=function(n,e){var t=!0,i=this._commandStack;return i&&(t=i.canExecute(n,e)),t===void 0?!0:t};var yn={__init__:["rules"],rules:["type",yf]};var Np=Math.round,P$=Math.max;function D$(n,e){var t=n.x,i=n.y;return[["M",t,i],["m",0,-e],["a",e,e,0,1,1,0,2*e],["a",e,e,0,1,1,0,-2*e],["z"]]}function I$(n){var e=[];return n.forEach(function(t,i){e.push([i===0?"M":"L",t.x,t.y])}),e}var BE=10;function L$(n,e){var t,i;for(t=0;i=n[t];t++)if(pa(i,e)<=BE)return{point:n[t],bendpoint:!0,index:t};return null}function B$(n,e){var t=ef(D$(e,BE),I$(n)),i=t[0],r=t[t.length-1],o;return i?i!==r?i.segment2!==r.segment2?(o=P$(i.segment2,r.segment2)-1,{point:n[o],bendpoint:!0,index:o}):{point:{x:Np(i.x+r.x)/2,y:Np(i.y+r.y)/2},index:i.segment2}:{point:{x:Np(i.x),y:Np(i.y)},index:i.segment2}:null}function NE(n,e){return L$(n,e)||B$(n,e)}function N$(n){return Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2))}function $$(n,e,t){var i=[{n:n[0]-t[0],lambda:e[0]},{n:n[1]-t[1],lambda:e[1]}],r=i[0].n*e[0]+i[1].n*e[1],o=i[0].lambda*e[0]+i[1].lambda*e[1];return-r/o}function ax(n,e){var t=e[0],i=e[1],r={x:i.x-t.x,y:i.y-t.y},o=$$([t.x,t.y],[r.x,r.y],[n.x,n.y]);return{x:t.x+o*r.x,y:t.y+o*r.y}}function $E(n,e){var t=ax(n,e),i={x:t.x-n.x,y:t.y-n.y};return N$(i)}var lx="djs-bendpoint",cx="djs-segment-dragger";function j$(n,e){var t=Un(e),i=n._container.getBoundingClientRect(),r;r={x:i.left,y:i.top};var o=n.viewbox();return{x:o.x+(t.x-r.x)/o.scale,y:o.y+(t.y-r.y)/o.scale}}function vf(n,e,t){var i=j$(n,t),r=NE(e,i);return r}function xf(n,e){var t=Q("g");ne(t).add(lx),K(n,t);var i=Q("circle");j(i,{cx:0,cy:0,r:4}),ne(i).add("djs-visual"),K(t,i);var r=Q("circle");return j(r,{cx:0,cy:0,r:10}),ne(r).add("djs-hit"),K(t,r),e&&ne(t).add(e),t}function F$(n,e,t,i){var r=Q("g");K(n,r);var o=18,s=6,a=11,l=q$(e,t,i),c=s+a,u=Q("rect");j(u,{x:-o/2,y:-s/2,width:o,height:s}),ne(u).add("djs-visual"),K(r,u);var f=Q("rect");return j(f,{x:-l/2,y:-c/2,width:l,height:c}),ne(f).add("djs-hit"),K(r,f),rC(r,i==="v"?90:0,0,0),r}function jp(n,e,t){var i=Q("g"),r=Ju(e,t),o=pr(e,t);return K(n,i),F$(i,e,t,o),ne(i).add(cx),ne(i).add(o==="h"?"horizontal":"vertical"),jt(i,r.x,r.y),i}function $p(n){return Math.abs(Math.round(n*2/3))}function jE(n,e){var t=V$(n,e);return ax(n,t)}function q$(n,e,t){var i=e.x-n.x,r=e.y-n.y;return $p(t==="h"?i:r)}function V$(n,e){for(var t=e.waypoints,i=1/0,r,o=0;o<t.length-1;o++){var s=t[o],a=t[o+1],l=$E(n,[s,a]);l<i&&(i=l,r=o)}return[t[r],t[r+1]]}function Fp(n,e,t,i,r){function o(v,x,C){var E=v.index,S=v.point,w,R,A,I,D,N;return E<=0||v.bendpoint?!1:(w=x[E-1],R=x[E],A=Ju(w,R),I=pr(w,R),D=Math.abs(S.x-A.x),N=Math.abs(S.y-A.y),I&&D<=C&&N<=C)}function s(v,x){var C=v.waypoints,E,S,w,R;return x.index<=0||x.bendpoint||(E={start:C[x.index-1],end:C[x.index]},S=pr(E.start,E.end),!S)?null:(S==="h"?w=E.end.x-E.start.x:w=E.end.y-E.start.y,R=$p(w)/2,R)}function a(v,x){var C=x.waypoints,E=vf(e,C,v),S;if(E){S=s(x,E);var w;if(o(E,C,S)?w=r.start(v,x,E.index):w=i.start(v,x,E.index,!E.bendpoint),w!==!1)return!0}}function l(v,x,C){q.bind(v,x,function(E){t.triggerMouseEvent(x,E,C),E.stopPropagation()})}function c(v,x){var C=e.getLayer("overlays"),E=X('.djs-bendpoints[data-element-id="'+Sa(v.id)+'"]',C);return!E&&x&&(E=Q("g"),j(E,{"data-element-id":v.id}),ne(E).add("djs-bendpoints"),K(C,E),l(E,"mousedown",v),l(E,"click",v),l(E,"dblclick",v)),E}function u(v,x){return X('.djs-segment-dragger[data-segment-idx="'+v+'"]',x)}function f(v,x){x.waypoints.forEach(function(C,E){var S=xf(v);K(v,S),jt(S,C.x,C.y)}),xf(v,"floating")}function h(v,x){for(var C=x.waypoints,E,S,w,R=1;R<C.length;R++)E=C[R-1],S=C[R],pr(E,S)&&(w=jp(v,E,S),j(w,{"data-segment-idx":R}),l(w,"mousemove",x))}function d(v){k(pn("."+lx,v),function(x){Fe(x)})}function p(v){k(pn("."+cx,v),function(x){Fe(x)})}function m(v){var x=c(v);return x||(x=c(v,!0),f(x,v),h(x,v)),x}function g(v){var x=c(v);x&&(p(x),d(x),h(x,v),f(x,v))}function b(v,x){var C=X(".floating",v),E=x.point;C&&jt(C,E.x,E.y)}function _(v,x,C){var E=u(x.index,v),S=C[x.index-1],w=C[x.index],R=x.point,A=Ju(S,w),I=pr(S,w),D,N;E&&(D=H$(E),N={x:R.x-A.x,y:R.y-A.y},I==="v"&&(N={x:N.y,y:N.x}),jt(D,N.x,N.y))}n.on("connection.changed",function(v){g(v.element)}),n.on("connection.remove",function(v){var x=c(v.element);x&&Fe(x)}),n.on("element.marker.update",function(v){var x=v.element,C;x.waypoints&&(C=m(x),v.add?ne(C).add(v.marker):ne(C).remove(v.marker))}),n.on("element.mousemove",function(v){var x=v.element,C=x.waypoints,E,S;if(C){if(E=c(x,!0),S=vf(e,C,v.originalEvent),!S)return;b(E,S),S.bendpoint||_(E,S,C)}}),n.on("element.mousedown",function(v){if(Sn(v)){var x=v.originalEvent,C=v.element;if(C.waypoints)return a(x,C)}}),n.on("selection.changed",function(v){var x=v.newSelection,C=x[0];C&&C.waypoints&&m(C)}),n.on("element.hover",function(v){var x=v.element;x.waypoints&&m(x)}),n.on("element.updateId",function(v){var x=v.element,C=v.newId;if(x.waypoints){var E=c(x);E&&j(E,{"data-element-id":C})}}),this.addHandles=m,this.updateHandles=g,this.getBendpointsContainer=c,this.getSegmentDragger=u}Fp.$inject=["eventBus","canvas","interactionEvents","bendpointMove","connectionSegmentMove"];function H$(n){return X(".djs-visual",n)}var FE=Math.round,ds="reconnectStart",ps="reconnectEnd",bf="updateWaypoints";function wf(n,e,t,i,r,o){this._injector=n,this.start=function(s,a,l,c){var u=t.getGraphics(a),f=a.source,h=a.target,d=a.waypoints,p;!c&&l===0?p=ds:!c&&l===d.length-1?p=ps:p=bf;var m=p===bf?"connection.updateWaypoints":"connection.reconnect",g=r.allowed(m,{connection:a,source:f,target:h});if(g===!1&&(g=r.allowed(m,{connection:a,source:h,target:f})),g!==!1)return i.init(s,"bendpoint.move",{data:{connection:a,connectionGfx:u,context:{allowed:g,bendpointIndex:l,connection:a,source:f,target:h,insert:c,type:p}}})},e.on("bendpoint.move.hover",function(s){var a=s.context,l=a.connection,c=l.source,u=l.target,f=s.hover,h=a.type;a.hover=f;var d;if(f){var p=h===bf?"connection.updateWaypoints":"connection.reconnect";if(d=a.allowed=r.allowed(p,{connection:l,source:h===ds?f:c,target:h===ps?f:u}),d){a.source=h===ds?f:c,a.target=h===ps?f:u;return}d===!1&&(d=a.allowed=r.allowed(p,{connection:l,source:h===ps?f:u,target:h===ds?f:c})),d&&(a.source=h===ps?f:u,a.target=h===ds?f:c)}}),e.on(["bendpoint.move.out","bendpoint.move.cleanup"],function(s){var a=s.context,l=a.type;a.hover=null,a.source=null,a.target=null,l!==bf&&(a.allowed=!1)}),e.on("bendpoint.move.end",function(s){var a=s.context,l=a.allowed,c=a.bendpointIndex,u=a.connection,f=a.insert,h=u.waypoints.slice(),d=a.source,p=a.target,m=a.type,g=a.hints||{},b={x:FE(s.x),y:FE(s.y)};if(!l)return!1;m===bf?(f?h.splice(c,0,b):h[c]=b,g.bendpointMove={insert:f,bendpointIndex:c},h=this.cropWaypoints(u,h),o.updateWaypoints(u,q1(h),g)):(m===ds?(g.docking="source",_f(a)&&(g.docking="target",g.newWaypoints=h.reverse())):m===ps&&(g.docking="target",_f(a)&&(g.docking="source",g.newWaypoints=h.reverse())),o.reconnect(u,d,p,b,g))},this)}wf.$inject=["injector","eventBus","canvas","dragging","rules","modeling"];wf.prototype.cropWaypoints=function(n,e){var t=this._injector.get("connectionDocking",!1);if(!t)return e;var i=n.waypoints;return n.waypoints=e,n.waypoints=t.getCroppedWaypoints(n),e=n.waypoints,n.waypoints=i,e};function _f(n){var e=n.hover,t=n.source,i=n.target,r=n.type;if(r===ds)return e&&i&&e===i&&t!==i;if(r===ps)return e&&t&&e===t&&t!==i}var z$="reconnectStart",W$="reconnectEnd",qE="updateWaypoints",Cf="connect-ok",qp="connect-not-ok",VE="connect-hover",HE="djs-updating",zE="djs-dragging",WE=1100;function Vp(n,e,t,i){this._injector=e;var r=e.get("connectionPreview",!1);t.on("bendpoint.move.start",function(o){var s=o.context,a=s.bendpointIndex,l=s.connection,c=s.insert,u=l.waypoints,f=u.slice();s.waypoints=u,c&&f.splice(a,0,{x:o.x,y:o.y}),l.waypoints=f;var h=s.draggerGfx=xf(i.getLayer("overlays"));ne(h).add("djs-dragging"),i.addMarker(l,zE),i.addMarker(l,HE)}),t.on("bendpoint.move.hover",function(o){var s=o.context,a=s.allowed,l=s.hover,c=s.type;if(l){if(i.addMarker(l,VE),c===qE)return;a?(i.removeMarker(l,qp),i.addMarker(l,Cf)):a===!1&&(i.removeMarker(l,Cf),i.addMarker(l,qp))}}),t.on(["bendpoint.move.out","bendpoint.move.cleanup"],WE,function(o){var s=o.context,a=s.hover,l=s.target;a&&(i.removeMarker(a,VE),i.removeMarker(a,l?Cf:qp))}),t.on("bendpoint.move.move",function(o){var s=o.context,a=s.allowed,l=s.bendpointIndex,c=s.draggerGfx,u=s.hover,f=s.type,h=s.connection,d=h.source,p=h.target,m=h.waypoints.slice(),g={x:o.x,y:o.y},b=s.hints||{},_={};r&&(b.connectionStart&&(_.connectionStart=b.connectionStart),b.connectionEnd&&(_.connectionEnd=b.connectionEnd),f===z$?_f(s)?(_.connectionEnd=_.connectionEnd||g,_.source=p,_.target=u||d,m=m.reverse()):(_.connectionStart=_.connectionStart||g,_.source=u||d,_.target=p):f===W$?_f(s)?(_.connectionStart=_.connectionStart||g,_.source=u||p,_.target=d,m=m.reverse()):(_.connectionEnd=_.connectionEnd||g,_.source=d,_.target=u||p):(_.noCropping=!0,_.noLayout=!0,m[l]=g),f===qE&&(m=n.cropWaypoints(h,m)),_.waypoints=m,r.drawPreview(s,a,_)),jt(c,o.x,o.y)},this),t.on(["bendpoint.move.end","bendpoint.move.cancel"],WE,function(o){var s=o.context,a=s.connection,l=s.draggerGfx,c=s.hover,u=s.target,f=s.waypoints;a.waypoints=f,Fe(l),i.removeMarker(a,HE),i.removeMarker(a,zE),c&&(i.removeMarker(c,Cf),i.removeMarker(c,u?Cf:qp)),r&&r.cleanUp(s)})}Vp.$inject=["bendpointMove","injector","eventBus","canvas"];var UE="connect-hover",QE="djs-updating";function KE(n,e,t){return ux(n,e,n[e]+t)}function ux(n,e,t){return{x:e==="x"?t:n.x,y:e==="y"?t:n.y}}function U$(n,e,t,i){var r=Math.max(e[i],t[i]),o=Math.min(e[i],t[i]),s=20,a=Math.min(Math.max(o+s,n[i]),r-s);return ux(e,i,a)}function XE(n){return n==="x"?"y":"x"}function GE(n,e,t){var i,r;return n.original?n.original:(i=le(e),r=XE(t),ux(n,r,i[r]))}function Hp(n,e,t,i,r,o){var s=n.get("connectionDocking",!1);this.start=function(f,h,d){var p,m=t.getGraphics(h),g=d-1,b=d,_=h.waypoints,v=_[g],x=_[b],C=vf(t,_,f),E,S,w;if(E=pr(v,x),!!E)return S=E==="v"?"x":"y",g===0&&(v=GE(v,h.source,S)),b===_.length-1&&(x=GE(x,h.target,S)),C?w=C.point:w={x:(v.x+x.x)/2,y:(v.y+x.y)/2},p={connection:h,segmentStartIndex:g,segmentEndIndex:b,segmentStart:v,segmentEnd:x,axis:S,dragPosition:w},i.init(f,w,"connectionSegment.move",{cursor:S==="x"?"resize-ew":"resize-ns",data:{connection:h,connectionGfx:m,context:p}})};function a(f,h){if(!s)return h;var d=f.waypoints,p;return f.waypoints=h,p=s.getCroppedWaypoints(f),f.waypoints=d,p}function l(f){r.update("connection",f.connection,f.connectionGfx)}function c(f,h,d){var p=f.newWaypoints,m=f.segmentStartIndex+h,g=p[m],b=f.segmentEndIndex+h,_=p[b],v=XE(f.axis),x=U$(d,g,_,v);jt(f.draggerGfx,x.x,x.y)}function u(f,h){var d=0,p=f.filter(function(m,g){return sp(f[g-1],f[g+1],m)?(d=g<=h?d-1:d,!1):!0});return{waypoints:p,segmentOffset:d}}e.on("connectionSegment.move.start",function(f){var h=f.context,d=f.connection,p=t.getLayer("overlays");h.originalWaypoints=d.waypoints.slice(),h.draggerGfx=jp(p,h.segmentStart,h.segmentEnd),ne(h.draggerGfx).add("djs-dragging"),t.addMarker(d,QE)}),e.on("connectionSegment.move.move",function(f){var h=f.context,d=h.connection,p=h.segmentStartIndex,m=h.segmentEndIndex,g=h.segmentStart,b=h.segmentEnd,_=h.axis,v=h.originalWaypoints.slice(),x=KE(g,_,f["d"+_]),C=KE(b,_,f["d"+_]),E=v.length,S=0;v[p]=x,v[m]=C;var w,R;p<2&&(w=vt(d.source,x),p===1?w==="intersect"&&(v.shift(),v[0]=x,S--):w!=="intersect"&&(v.unshift(g),S++)),m>E-3&&(R=vt(d.target,C),m===E-2?R==="intersect"&&(v.pop(),v[v.length-1]=C):R!=="intersect"&&v.push(b)),h.newWaypoints=d.waypoints=a(d,v),c(h,S,f),h.newSegmentStartIndex=p+S,l(f)}),e.on("connectionSegment.move.hover",function(f){f.context.hover=f.hover,t.addMarker(f.hover,UE)}),e.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],function(f){var h=f.context.hover;h&&t.removeMarker(h,UE)}),e.on("connectionSegment.move.cleanup",function(f){var h=f.context,d=h.connection;h.draggerGfx&&Fe(h.draggerGfx),t.removeMarker(d,QE)}),e.on(["connectionSegment.move.cancel","connectionSegment.move.end"],function(f){var h=f.context,d=h.connection;d.waypoints=h.originalWaypoints,l(f)}),e.on("connectionSegment.move.end",function(f){var h=f.context,d=h.connection,p=h.newWaypoints,m=h.newSegmentStartIndex;p=p.map(function(C){return{original:C.original,x:Math.round(C.x),y:Math.round(C.y)}});var g=u(p,m),b=g.waypoints,_=a(d,b),v=g.segmentOffset,x={segmentMove:{segmentStartIndex:h.segmentStartIndex,newSegmentStartIndex:m+v}};o.updateWaypoints(d,_,x)})}Hp.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];var Q$=Math.abs,YE=Math.round;function ZE(n,e,t){t=t===void 0?10:t;var i,r;for(i=0;i<e.length;i++)if(r=e[i],Q$(r-n)<=t)return r}function JE(n){return{x:n.x,y:n.y}}function eS(n){return{x:n.x+n.width,y:n.y+n.height}}function ms(n,e){return!n||isNaN(n.x)||isNaN(n.y)?e:{x:YE(n.x+n.width/2),y:YE(n.y+n.height/2)}}function wr(n,e){var t=n.snapped;return t?typeof e=="string"?t[e]:t.x&&t.y:!1}function vn(n,e,t){if(typeof e!="string")throw new Error("axis must be in [x, y]");if(typeof t!="number"&&t!==!1)throw new Error("value must be Number or false");var i,r=n[e],o=n.snapped=n.snapped||{};return t===!1?o[e]=!1:(o[e]=!0,i=t-r,n[e]+=i,n["d"+e]+=i),r}function zp(n){return n.children||[]}var K$=Math.abs,tS=Math.round,fx=10;function Wp(n){function e(o,s){if(F(o)){for(var a=o.length;a--;)if(K$(o[a]-s)<=fx)return o[a]}else{o=+o;var l=s%o;if(l<fx)return s-l;if(l>o-fx)return s-l+o}return s}function t(o,s){if(o.waypoints)return jE(s,o);if(o.width)return{x:tS(o.width/2+o.x),y:tS(o.height/2+o.y)}}function i(o){var s=o.context,a=s.snapPoints,l=s.connection,c=l.waypoints,u=s.segmentStart,f=s.segmentStartIndex,h=s.segmentEnd,d=s.segmentEndIndex,p=s.axis;if(a)return a;var m=[c[f-1],u,h,c[d+1]];return f<2&&m.unshift(t(l.source,o)),d>c.length-3&&m.unshift(t(l.target,o)),s.snapPoints=a={horizontal:[],vertical:[]},k(m,function(g){g&&(g=g.original||g,p==="y"&&a.horizontal.push(g.y),p==="x"&&a.vertical.push(g.x))}),a}n.on("connectionSegment.move.move",1500,function(o){var s=i(o),a=o.x,l=o.y,c,u;if(s){c=e(s.vertical,a),u=e(s.horizontal,l);var f=a-c,h=l-u;T(o,{dx:o.dx-f,dy:o.dy-h,x:c,y:u}),(f||s.vertical.indexOf(a)!==-1)&&vn(o,"x",c),(h||s.horizontal.indexOf(l)!==-1)&&vn(o,"y",u)}});function r(o){var s=o.snapPoints,a=o.connection.waypoints,l=o.bendpointIndex;if(s)return s;var c=[a[l-1],a[l+1]];return o.snapPoints=s={horizontal:[],vertical:[]},k(c,function(u){u&&(u=u.original||u,s.horizontal.push(u.y),s.vertical.push(u.x))}),s}n.on(["connect.hover","connect.move","connect.end"],1500,function(o){var s=o.context,a=s.hover,l=a&&t(a,o);!Xe(a)||!l||!l.x||!l.y||(vn(o,"x",l.x),vn(o,"y",l.y))}),n.on(["bendpoint.move.move","bendpoint.move.end"],1500,function(o){var s=o.context,a=r(s),l=s.hover,c=l&&t(l,o),u=o.x,f=o.y,h,d;if(a){h=e(c?a.vertical.concat([c.x]):a.vertical,u),d=e(c?a.horizontal.concat([c.y]):a.horizontal,f);var p=u-h,m=f-d;T(o,{dx:o.dx-p,dy:o.dy-m,x:o.x-p,y:o.y-m}),(p||a.vertical.indexOf(u)!==-1)&&vn(o,"x",h),(m||a.horizontal.indexOf(f)!==-1)&&vn(o,"y",d)}})}Wp.$inject=["eventBus"];var nS={__depends__:[gn,yn],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",Fp],bendpointMove:["type",wf],bendpointMovePreview:["type",Vp],connectionSegmentMove:["type",Hp],bendpointSnapping:["type",Wp]};var G$=new po;function vo(n){this._scheduled={},n.on("diagram.destroy",()=>{Object.keys(this._scheduled).forEach(e=>{this.cancel(e)})})}vo.$inject=["eventBus"];vo.prototype.schedule=function(n,e=G$.next()){this.cancel(e);let t=this._schedule(n,e);return this._scheduled[e]=t,t.promise};vo.prototype._schedule=function(n,e){let t=X$();return{executionId:setTimeout(()=>{try{this._scheduled[e]=null;try{t.resolve(n())}catch(r){t.reject(r)}}catch(r){console.error("Scheduler#_schedule execution failed",r)}}),promise:t.promise}};vo.prototype.cancel=function(n){let e=this._scheduled[n];e&&(this._cancel(e),this._scheduled[n]=null)};vo.prototype._cancel=function(n){clearTimeout(n.executionId)};function X$(){let n={};return n.promise=new Promise((e,t)=>{n.resolve=e,n.reject=t}),n}var iS={scheduler:["type",vo]};var Y$="djs-element-hidden",Up=".entry",Z$=1e3,rS=8,J$=300;function tt(n,e,t,i){this._canvas=n,this._elementRegistry=e,this._eventBus=t,this._scheduler=i,this._current=null,this._init()}tt.$inject=["canvas","elementRegistry","eventBus","scheduler"];tt.prototype._init=function(){var n=this;this._eventBus.on("selection.changed",function(e){var t=e.newSelection,i=t.length?t.length===1?t[0]:t:null;i?n.open(i,!0):n.close()}),this._eventBus.on("elements.changed",function(e){var t=e.elements,i=n._current;if(i){var r=i.target,o=F(r)?r:[r],s=o.filter(function(l){return t.includes(l)});if(s.length){n.close();var a=o.filter(function(l){return n._elementRegistry.get(l.id)});a.length&&n._updateAndOpen(a.length>1?a:a[0])}}}),this._eventBus.on("canvas.viewbox.changed",function(){n._updatePosition()}),this._eventBus.on("element.marker.update",function(e){if(n.isOpen()){var t=e.element,i=n._current,r=F(i.target)?i.target:[i.target];r.includes(t)&&n._updateVisibility()}}),this._container=this._createContainer()};tt.prototype._createContainer=function(){var n=te('<div class="djs-context-pad-parent"></div>');return this._canvas.getContainer().appendChild(n),n};tt.prototype.registerProvider=function(n,e){e||(e=n,n=Z$),this._eventBus.on("contextPad.getProviders",n,function(t){t.providers.push(e)})};tt.prototype.getEntries=function(n){var e=this._getProviders(),t=F(n)?"getMultiElementContextPadEntries":"getContextPadEntries",i={};return k(e,function(r){if(ge(r[t])){var o=r[t](n);ge(o)?i=o(i):k(o,function(s,a){i[a]=s})}}),i};tt.prototype.trigger=function(n,e,t){var i=this,r,o,s=e.delegateTarget||e.target;if(!s)return e.preventDefault();if(r=et(s,"data-action"),o=e.originalEvent||e,n==="mouseover"){this._timeout=setTimeout(function(){i._mouseout=i.triggerEntry(r,"hover",o,t)},J$);return}else if(n==="mouseout"){clearTimeout(this._timeout),this._mouseout&&(this._mouseout(),this._mouseout=null);return}return this.triggerEntry(r,n,o,t)};tt.prototype.triggerEntry=function(n,e,t,i){if(this.isShown()){var r=this._current.target,o=this._current.entries,s=o[n];if(s){var a=s.action;if(this._eventBus.fire("contextPad.trigger",{entry:s,event:t})!==!1){if(ge(a)){if(e==="click")return a(t,r,i)}else if(a[e])return a[e](t,r,i);t.preventDefault()}}}};tt.prototype.open=function(n,e){if(!(!e&&this.isOpen(n))){var t=this._eventBus.fire("contextPad.open.allowed",{target:n});t!==!1&&(this.close(),this._updateAndOpen(n))}};tt.prototype._getProviders=function(){var n=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(n),n.providers};tt.prototype._updateAndOpen=function(n){var e=this.getEntries(n),t=this._createHtml(n),i;k(e,function(r,o){var s=r.group||"default",a=te(r.html||'<div class="entry" draggable="true"></div>'),l;et(a,"data-action",o),l=X("[data-group="+Sa(s)+"]",t),l||(l=te('<div class="group"></div>'),et(l,"data-group",s),t.appendChild(l)),l.appendChild(a),r.className&&ej(a,r.className),r.title&&et(a,"title",r.title),r.imageUrl&&(i=te("<img>"),et(i,"src",r.imageUrl),i.style.width="100%",i.style.height="100%",a.appendChild(i))}),ee(t).add("open"),this._current={entries:e,html:t,target:n},this._updatePosition(),this._updateVisibility(),this._eventBus.fire("contextPad.open",{current:this._current})};tt.prototype._createHtml=function(n){var e=this,t=te('<div class="djs-context-pad"></div>');return _t.bind(t,Up,"click",function(i){e.trigger("click",i)}),_t.bind(t,Up,"dragstart",function(i){e.trigger("dragstart",i)}),_t.bind(t,Up,"mouseover",function(i){e.trigger("mouseover",i)}),_t.bind(t,Up,"mouseout",function(i){e.trigger("mouseout",i)}),q.bind(t,"mousedown",function(i){i.stopPropagation()}),this._container.appendChild(t),this._eventBus.fire("contextPad.create",{target:n,pad:t}),t};tt.prototype.getPad=function(n){console.warn(new Error("ContextPad#getPad is deprecated and will be removed in future library versions, cf. https://github.com/bpmn-io/diagram-js/pull/888"));let e;return this.isOpen()&&nj(this._current.target,n)?e=this._current.html:e=this._createHtml(n),{html:e}};tt.prototype.close=function(){this.isOpen()&&(clearTimeout(this._timeout),this._container.innerHTML="",this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)};tt.prototype.isOpen=function(n){var e=this._current;if(!e)return!1;if(!n)return!0;var t=e.target;return F(n)!==F(t)?!1:F(n)?n.length===t.length&&kt(n,function(i){return t.includes(i)}):t===n};tt.prototype.isShown=function(){return this.isOpen()&&ee(this._current.html).has("open")};tt.prototype.show=function(){this.isOpen()&&(ee(this._current.html).add("open"),this._updatePosition(),this._eventBus.fire("contextPad.show",{current:this._current}))};tt.prototype.hide=function(){this.isOpen()&&(ee(this._current.html).remove("open"),this._eventBus.fire("contextPad.hide",{current:this._current}))};tt.prototype._getPosition=function(n){if(!F(n)&&Xe(n)){var e=this._canvas.viewbox(),t=tj(n),i=t.x*e.scale-e.x*e.scale,r=t.y*e.scale-e.y*e.scale;return{left:i+rS*this._canvas.zoom(),top:r}}var o=this._canvas.getContainer(),s=o.getBoundingClientRect(),a=this._getTargetBounds(n);return{left:a.right-s.left+rS*this._canvas.zoom(),top:a.top-s.top}};tt.prototype._updatePosition=function(){let n=()=>{if(this.isOpen()){var e=this._current.html,t=this._getPosition(this._current.target);"x"in t&&"y"in t?(e.style.left=t.x+"px",e.style.top=t.y+"px"):["top","right","bottom","left"].forEach(function(i){i in t&&(e.style[i]=t[i]+"px")})}};this._scheduler.schedule(n,"ContextPad#_updatePosition")};tt.prototype._updateVisibility=function(){let n=()=>{if(this.isOpen()){var e=this,t=this._current.target,i=F(t)?t:[t],r=i.some(function(o){return e._canvas.hasMarker(o,Y$)});r?e.hide():e.show()}};this._scheduler.schedule(n,"ContextPad#_updateVisibility")};tt.prototype._getTargetBounds=function(n){var e=this,t=F(n)?n:[n],i=t.map(function(r){return e._canvas.getGraphics(r)});return i.reduce(function(r,o){let s=o.getBoundingClientRect();return r.top=Math.min(r.top,s.top),r.right=Math.max(r.right,s.right),r.bottom=Math.max(r.bottom,s.bottom),r.left=Math.min(r.left,s.left),r.x=r.left,r.y=r.top,r.width=r.right-r.left,r.height=r.bottom-r.top,r},{top:1/0,right:-1/0,bottom:-1/0,left:1/0})};function ej(n,e){var t=ee(n);e=F(e)?e:e.split(/\s+/g),e.forEach(function(i){t.add(i)})}function tj(n){return n.waypoints[n.waypoints.length-1]}function nj(n,e){return n=F(n)?n:[n],e=F(e)?e:[e],n.length===e.length&&kt(n,function(t){return e.includes(t)})}var oS={__depends__:[fo,iS,mo],contextPad:["type",tt]};function Kp(n,e,t,i){function r(s,a){return i.allowed("connection.create",{source:s,target:a})}function o(s,a){return r(a,s)}n.on("connect.hover",function(s){var a=s.context,l=a.start,c=s.hover,u;if(a.hover=c,u=a.canExecute=r(l,c),!Yr(u)){if(u!==!1){a.source=l,a.target=c;return}u=a.canExecute=o(l,c),!Yr(u)&&u!==!1&&(a.source=c,a.target=l)}}),n.on(["connect.out","connect.cleanup"],function(s){var a=s.context;a.hover=null,a.source=null,a.target=null,a.canExecute=!1}),n.on("connect.end",function(s){var a=s.context,l=a.canExecute,c=a.connectionStart,u={x:s.x,y:s.y},f=a.source,h=a.target;if(!l)return!1;var d=null,p={connectionStart:Qp(a)?u:c,connectionEnd:Qp(a)?c:u};Pe(l)&&(d=l),a.connection=t.connect(f,h,d,p)}),this.start=function(s,a,l,c){Pe(l)||(c=l,l=le(a)),e.init(s,"connect",{autoActivate:c,data:{shape:a,context:{start:a,connectionStart:l}}})}}Kp.$inject=["eventBus","dragging","modeling","rules"];function Qp(n){var e=n.hover,t=n.source,i=n.target;return e&&t&&e===t&&t!==i}var ij=1100,rj=900,sS="connect-ok",aS="connect-not-ok";function Gp(n,e,t){var i=n.get("connectionPreview",!1);i&&e.on("connect.move",function(r){var o=r.context,s=o.canExecute,a=o.hover,l=o.source,c=o.start,u=o.startPosition,f=o.target,h=o.connectionStart||u,d=o.connectionEnd||{x:r.x,y:r.y},p=h,m=d;Qp(o)&&(p=d,m=h),i.drawPreview(o,s,{source:l||c,target:f||a,connectionStart:p,connectionEnd:m})}),e.on("connect.hover",rj,function(r){var o=r.context,s=r.hover,a=o.canExecute;a!==null&&t.addMarker(s,a?sS:aS)}),e.on(["connect.out","connect.cleanup"],ij,function(r){var o=r.hover;o&&(t.removeMarker(o,sS),t.removeMarker(o,aS))}),i&&e.on("connect.cleanup",function(r){i.cleanUp(r.context)})}Gp.$inject=["injector","eventBus","canvas"];var lS={__depends__:[ht,yn,gn],__init__:["connectPreview"],connect:["type",Kp],connectPreview:["type",Gp]};var oj=new po("ps"),sj=["marker-start","marker-mid","marker-end"],aj=["circle","ellipse","line","path","polygon","polyline","path","rect"];function ji(n,e,t,i){this._elementRegistry=n,this._canvas=t,this._styles=i}ji.$inject=["elementRegistry","eventBus","canvas","styles"];ji.prototype.cleanUp=function(){console.warn("PreviewSupport#cleanUp is deprecated and will be removed in future versions. You do not need to manually clean up previews anymore. cf. https://github.com/bpmn-io/diagram-js/pull/906")};ji.prototype.getGfx=function(n){return this._elementRegistry.getGraphics(n)};ji.prototype.addDragger=function(n,e,t,i="djs-dragger"){t=t||this.getGfx(n);var r=gv(t),o=t.getBoundingClientRect();return this._cloneMarkers(ls(r),i),j(r,this._styles.cls(i,[],{x:o.top,y:o.left})),K(e,r),j(r,"data-preview-support-element-id",n.id),r};ji.prototype.addFrame=function(n,e){var t=Q("rect",{class:"djs-resize-overlay",width:n.width,height:n.height,x:n.x,y:n.y});return K(e,t),j(t,"data-preview-support-element-id",n.id),t};ji.prototype._cloneMarkers=function(n,e="djs-dragger",t=n){var i=this;n.childNodes&&n.childNodes.forEach(r=>{i._cloneMarkers(r,e,t)}),fj(n)&&sj.forEach(function(r){if(j(n,r)){var o=lj(n,r,i._canvas.getContainer());o&&i._cloneMarker(t,n,o,r,e)}})};ji.prototype._cloneMarker=function(n,e,t,i,r="djs-dragger"){var o=[t.id,r,oj.next()].join("-"),s=X("marker#"+t.id,n);n=n||this._canvas._svg;var a=s||gv(t);a.id=o,ne(a).add(r);var l=X(":scope > defs",n);l||(l=Q("defs"),K(n,l)),K(l,a);var c=uj(a.id);j(e,i,c)};function lj(n,e,t){var i=cj(j(n,e));return X("marker#"+i,t||document)}function cj(n){return n.match(/url\(['"]?#([^'"]*)['"]?\)/)[1]}function uj(n){return"url(#"+n+")"}function fj(n){return aj.indexOf(n.nodeName)!==-1}var ka={__init__:["previewSupport"],previewSupport:["type",ji]};var hj="drop-ok",cS="drop-not-ok",uS="attach-ok",fS="new-parent",hS="create",dj=2e3;function Xp(n,e,t,i,r){function o(l,c,u,f,h){if(!c)return!1;l=Ee(l,function(_){var v=_.labelTarget;return!_.parent&&!(Bi(_)&&l.indexOf(v)!==-1)});var d=ye(l,function(_){return!Xe(_)}),p=!1,m=!1,g=!1;pS(l)&&(p=r.allowed("shape.attach",{position:u,shape:d,target:c})),p||(pS(l)?g=r.allowed("shape.create",{position:u,shape:d,source:f,target:c}):g=r.allowed("elements.create",{elements:l,position:u,target:c}));var b=h.connectionTarget;return g||p?(d&&f&&(m=r.allowed("connection.create",{source:b===f?d:f,target:b===f?f:d,hints:{targetParent:c,targetAttach:p}})),{attach:p,connect:m}):g===null||p===null?null:!1}function s(l,c){[uS,hj,cS,fS].forEach(function(u){u===c?n.addMarker(l,u):n.removeMarker(l,u)})}t.on(["create.move","create.hover"],function(l){var c=l.context,u=c.elements,f=l.hover,h=c.source,d=c.hints||{};if(!f){c.canExecute=!1,c.target=null;return}dS(l);var p={x:l.x,y:l.y},m=c.canExecute=f&&o(u,f,p,h,d);f&&m!==null&&(c.target=f,m&&m.attach?s(f,uS):s(f,m?fS:cS))}),t.on(["create.end","create.out","create.cleanup"],function(l){var c=l.hover;c&&s(c,null)}),t.on("create.end",function(l){var c=l.context,u=c.source,f=c.shape,h=c.elements,d=c.target,p=c.canExecute,m=p&&p.attach,g=p&&p.connect,b=c.hints||{};if(p===!1||!d)return!1;dS(l);var _={x:l.x,y:l.y};g?f=i.appendShape(u,f,_,d,{attach:m,connection:g===!0?{}:g,connectionTarget:b.connectionTarget}):(h=i.createElements(h,_,d,T({},b,{attach:m})),f=ye(h,function(v){return!Xe(v)})),T(c,{elements:h,shape:f}),T(l,{elements:h,shape:f})});function a(){var l=e.context();l&&l.prefix===hS&&e.cancel()}t.on("create.init",function(){t.on("elements.changed",a),t.once(["create.cancel","create.end"],dj,function(){t.off("elements.changed",a)})}),this.start=function(l,c,u){F(c)||(c=[c]);var f=ye(c,function(p){return!Xe(p)});if(f){u=T({elements:c,hints:{},shape:f},u||{}),k(c,function(p){se(p.x)||(p.x=0),se(p.y)||(p.y=0)});var h=Ee(c,function(p){return!p.hidden}),d=Tt(h);k(c,function(p){Xe(p)&&(p.waypoints=Vt(p.waypoints,function(m){return{x:m.x-d.x-d.width/2,y:m.y-d.y-d.height/2}})),T(p,{x:p.x-d.x-d.width/2,y:p.y-d.y-d.height/2})}),e.init(l,hS,{cursor:"grabbing",autoActivate:!0,data:{shape:f,elements:c,context:u}})}}}Xp.$inject=["canvas","dragging","eventBus","modeling","rules"];function dS(n){var e=n.context,t=e.createConstraints;t&&(t.left&&(n.x=Math.max(n.x,t.left)),t.right&&(n.x=Math.min(n.x,t.right)),t.top&&(n.y=Math.max(n.y,t.top)),t.bottom&&(n.y=Math.min(n.y,t.bottom)))}function pS(n){return n&&n.length===1&&!Xe(n[0])}var pj=750;function Yp(n,e,t,i,r){function o(s){var a=Q("g");j(a,r.cls("djs-drag-group",["no-events"]));var l=Q("g");return s.forEach(function(c){var u;c.hidden||(c.waypoints?(u=t._createContainer("connection",l),t.drawConnection(ls(u),c)):(u=t._createContainer("shape",l),t.drawShape(ls(u),c),jt(u,c.x,c.y)),i.addDragger(c,a,u))}),a}e.on("create.move",pj,function(s){var a=s.hover,l=s.context,c=l.elements,u=l.dragGroup;u||(u=l.dragGroup=o(c));var f;a?(u.parentNode||(f=n.getActiveLayer(),K(f,u)),jt(u,s.x,s.y)):Fe(u)}),e.on("create.cleanup",function(s){var a=s.context,l=a.dragGroup;l&&Fe(l)})}Yp.$inject=["canvas","eventBus","graphicsFactory","previewSupport","styles"];var Zp={__depends__:[gn,ka,yn,ht],__init__:["create","createPreview"],create:["type",Xp],createPreview:["type",Yp]};var om,He,xS,mj,xo,mS,bS,_S,hx,em,Ef,wS,gx,dx,px,gj,nm={},im=[],yj=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,sm=Array.isArray;function Cr(n,e){for(var t in e)n[t]=e[t];return n}function yx(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function am(n,e,t){var i,r,o,s={};for(o in e)o=="key"?i=e[o]:o=="ref"?r=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?om.call(arguments,2):t),typeof n=="function"&&n.defaultProps!=null)for(o in n.defaultProps)s[o]===void 0&&(s[o]=n.defaultProps[o]);return tm(n,s,i,r,null)}function tm(n,e,t,i,r){var o={type:n,props:e,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r==null?++xS:r,__i:-1,__u:0};return r==null&&He.vnode!=null&&He.vnode(o),o}function lm(n){return n.children}function Sf(n,e){this.props=n,this.context=e}function Ra(n,e){if(e==null)return n.__?Ra(n.__,n.__i+1):null;for(var t;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null)return t.__e;return typeof n.type=="function"?Ra(n):null}function vj(n){if(n.__P&&n.__d){var e=n.__v,t=e.__e,i=[],r=[],o=Cr({},e);o.__v=e.__v+1,He.vnode&&He.vnode(o),vx(n.__P,o,e,n.__n,n.__P.namespaceURI,32&e.__u?[t]:null,i,t==null?Ra(e):t,!!(32&e.__u),r),o.__v=e.__v,o.__.__k[o.__i]=o,OS(i,o,r),e.__e=e.__=null,o.__e!=t&&CS(o)}}function CS(n){if((n=n.__)!=null&&n.__c!=null)return n.__e=n.__c.base=null,n.__k.some(function(e){if(e!=null&&e.__e!=null)return n.__e=n.__c.base=e.__e}),CS(n)}function gS(n){(!n.__d&&(n.__d=!0)&&xo.push(n)&&!rm.__r++||mS!=He.debounceRendering)&&((mS=He.debounceRendering)||bS)(rm)}function rm(){try{for(var n,e=1;xo.length;)xo.length>e&&xo.sort(_S),n=xo.shift(),e=xo.length,vj(n)}finally{xo.length=rm.__r=0}}function ES(n,e,t,i,r,o,s,a,l,c,u){var f,h,d,p,m,g,b,_=i&&i.__k||im,v=e.length;for(l=xj(t,e,_,l,v),f=0;f<v;f++)(d=t.__k[f])!=null&&(h=d.__i!=-1&&_[d.__i]||nm,d.__i=f,g=vx(n,d,h,r,o,s,a,l,c,u),p=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&xx(h.ref,null,d),u.push(d.ref,d.__c||p,d)),m==null&&p!=null&&(m=p),(b=!!(4&d.__u))||h.__k===d.__k?(l=SS(d,l,n,b),b&&h.__e&&(h.__e=null)):typeof d.type=="function"&&g!==void 0?l=g:p&&(l=p.nextSibling),d.__u&=-7);return t.__e=m,l}function xj(n,e,t,i,r){var o,s,a,l,c,u=t.length,f=u,h=0;for(n.__k=new Array(r),o=0;o<r;o++)(s=e[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=n.__k[o]=tm(null,s,null,null,null):sm(s)?s=n.__k[o]=tm(lm,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=n.__k[o]=tm(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):n.__k[o]=s,l=o+h,s.__=n,s.__b=n.__b+1,a=null,(c=s.__i=bj(s,t,l,f))!=-1&&(f--,(a=t[c])&&(a.__u|=2)),a==null||a.__v==null?(c==-1&&(r>u?h--:r<u&&h++),typeof s.type!="function"&&(s.__u|=4)):c!=l&&(c==l-1?h--:c==l+1?h++:(c>l?h--:h++,s.__u|=4))):n.__k[o]=null;if(f)for(o=0;o<u;o++)(a=t[o])!=null&&(2&a.__u)==0&&(a.__e==i&&(i=Ra(a)),RS(a,a));return i}function SS(n,e,t,i){var r,o;if(typeof n.type=="function"){for(r=n.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=n,e=SS(r[o],e,t,i));return e}n.__e!=e&&(i&&(e&&n.type&&!e.parentNode&&(e=Ra(n)),t.insertBefore(n.__e,e||null)),e=n.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function bj(n,e,t,i){var r,o,s,a=n.key,l=n.type,c=e[t],u=c!=null&&(2&c.__u)==0;if(c===null&&a==null||u&&a==c.key&&l==c.type)return t;if(i>(u?1:0)){for(r=t-1,o=t+1;r>=0||o<e.length;)if((c=e[s=r>=0?r--:o++])!=null&&(2&c.__u)==0&&a==c.key&&l==c.type)return s}return-1}function yS(n,e,t){e[0]=="-"?n.setProperty(e,t==null?"":t):n[e]=t==null?"":typeof t!="number"||yj.test(e)?t:t+"px"}function Jp(n,e,t,i,r){var o,s;e:if(e=="style")if(typeof t=="string")n.style.cssText=t;else{if(typeof i=="string"&&(n.style.cssText=i=""),i)for(e in i)t&&e in t||yS(n.style,e,"");if(t)for(e in t)i&&t[e]==i[e]||yS(n.style,e,t[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(wS,"$1")),s=e.toLowerCase(),e=s in n||e=="onFocusOut"||e=="onFocusIn"?s.slice(2):e.slice(2),n.l||(n.l={}),n.l[e+o]=t,t?i?t[Ef]=i[Ef]:(t[Ef]=gx,n.addEventListener(e,o?px:dx,o)):n.removeEventListener(e,o?px:dx,o);else{if(r=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in n)try{n[e]=t==null?"":t;break e}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!="-"?n.removeAttribute(e):n.setAttribute(e,e=="popover"&&t==1?"":t))}}function vS(n){return function(e){if(this.l){var t=this.l[e.type+n];if(e[em]==null)e[em]=gx++;else if(e[em]<t[Ef])return;return t(He.event?He.event(e):e)}}}function vx(n,e,t,i,r,o,s,a,l,c){var u,f,h,d,p,m,g,b,_,v,x,C,E,S,w,R=e.type;if(e.constructor!==void 0)return null;128&t.__u&&(l=!!(32&t.__u),o=[a=e.__e=t.__e]),(u=He.__b)&&u(e);e:if(typeof R=="function")try{if(b=e.props,_=R.prototype&&R.prototype.render,v=(u=R.contextType)&&i[u.__c],x=u?v?v.props.value:u.__:i,t.__c?g=(f=e.__c=t.__c).__=f.__E:(_?e.__c=f=new R(b,x):(e.__c=f=new Sf(b,x),f.constructor=R,f.render=wj),v&&v.sub(f),f.state||(f.state={}),f.__n=i,h=f.__d=!0,f.__h=[],f._sb=[]),_&&f.__s==null&&(f.__s=f.state),_&&R.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Cr({},f.__s)),Cr(f.__s,R.getDerivedStateFromProps(b,f.__s))),d=f.props,p=f.state,f.__v=e,h)_&&R.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),_&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(_&&R.getDerivedStateFromProps==null&&b!==d&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(b,x),e.__v==t.__v||!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(b,f.__s,x)===!1){e.__v!=t.__v&&(f.props=b,f.state=f.__s,f.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.some(function(A){A&&(A.__=e)}),im.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(b,f.__s,x),_&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(d,p,m)})}if(f.context=x,f.props=b,f.__P=n,f.__e=!1,C=He.__r,E=0,_)f.state=f.__s,f.__d=!1,C&&C(e),u=f.render(f.props,f.state,f.context),im.push.apply(f.__h,f._sb),f._sb=[];else do f.__d=!1,C&&C(e),u=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++E<25);f.state=f.__s,f.getChildContext!=null&&(i=Cr(Cr({},i),f.getChildContext())),_&&!h&&f.getSnapshotBeforeUpdate!=null&&(m=f.getSnapshotBeforeUpdate(d,p)),S=u!=null&&u.type===lm&&u.key==null?kS(u.props.children):u,a=ES(n,sm(S)?S:[S],e,t,i,r,o,s,a,l,c),f.base=e.__e,e.__u&=-161,f.__h.length&&s.push(f),g&&(f.__E=f.__=null)}catch(A){if(e.__v=null,l||o!=null)if(A.then){for(e.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,e.__e=a}else{for(w=o.length;w--;)yx(o[w]);mx(e)}else e.__e=t.__e,e.__k=t.__k,A.then||mx(e);He.__e(A,e,t)}else o==null&&e.__v==t.__v?(e.__k=t.__k,e.__e=t.__e):a=e.__e=_j(t.__e,e,t,i,r,o,s,l,c);return(u=He.diffed)&&u(e),128&e.__u?void 0:a}function mx(n){n&&(n.__c&&(n.__c.__e=!0),n.__k&&n.__k.some(mx))}function OS(n,e,t){for(var i=0;i<t.length;i++)xx(t[i],t[++i],t[++i]);He.__c&&He.__c(e,n),n.some(function(r){try{n=r.__h,r.__h=[],n.some(function(o){o.call(r)})}catch(o){He.__e(o,r.__v)}})}function kS(n){return typeof n!="object"||n==null||n.__b>0?n:sm(n)?n.map(kS):n.constructor!==void 0?null:Cr({},n)}function _j(n,e,t,i,r,o,s,a,l){var c,u,f,h,d,p,m,g=t.props||nm,b=e.props,_=e.type;if(_=="svg"?r="http://www.w3.org/2000/svg":_=="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((d=o[c])&&"setAttribute"in d==!!_&&(_?d.localName==_:d.nodeType==3)){n=d,o[c]=null;break}}if(n==null){if(_==null)return document.createTextNode(b);n=document.createElementNS(r,_,b.is&&b),a&&(He.__m&&He.__m(e,o),a=!1),o=null}if(_==null)g===b||a&&n.data==b||(n.data=b);else{if(o=_=="textarea"&&b.defaultValue!=null?null:o&&om.call(n.childNodes),!a&&o!=null)for(g={},c=0;c<n.attributes.length;c++)g[(d=n.attributes[c]).name]=d.value;for(c in g)d=g[c],c=="dangerouslySetInnerHTML"?f=d:c=="children"||c in b||c=="value"&&"defaultValue"in b||c=="checked"&&"defaultChecked"in b||Jp(n,c,null,d,r);for(c in b)d=b[c],c=="children"?h=d:c=="dangerouslySetInnerHTML"?u=d:c=="value"?p=d:c=="checked"?m=d:a&&typeof d!="function"||g[c]===d||Jp(n,c,d,g[c],r);if(u)a||f&&(u.__html==f.__html||u.__html==n.innerHTML)||(n.innerHTML=u.__html),e.__k=[];else if(f&&(n.innerHTML=""),ES(e.type=="template"?n.content:n,sm(h)?h:[h],e,t,i,_=="foreignObject"?"http://www.w3.org/1999/xhtml":r,o,s,o?o[0]:t.__k&&Ra(t,0),a,l),o!=null)for(c=o.length;c--;)yx(o[c]);a&&_!="textarea"||(c="value",_=="progress"&&p==null?n.removeAttribute("value"):p!=null&&(p!==n[c]||_=="progress"&&!p||_=="option"&&p!=g[c])&&Jp(n,c,p,g[c],r),c="checked",m!=null&&m!=n[c]&&Jp(n,c,m,g[c],r))}return n}function xx(n,e,t){try{if(typeof n=="function"){var i=typeof n.__u=="function";i&&n.__u(),i&&e==null||(n.__u=n(e))}else n.current=e}catch(r){He.__e(r,t)}}function RS(n,e,t){var i,r;if(He.unmount&&He.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||xx(i,null,e)),(i=n.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(o){He.__e(o,e)}i.base=i.__P=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&RS(i[r],e,t||typeof n.type!="function");t||yx(n.__e),n.__c=n.__=n.__e=void 0}function wj(n,e,t){return this.constructor(n,t)}function cm(n,e,t){var i,r,o,s;e==document&&(e=document.documentElement),He.__&&He.__(n,e),r=(i=typeof t=="function")?null:t&&t.__k||e.__k,o=[],s=[],vx(e,n=(!i&&t||e).__k=am(lm,null,[n]),r||nm,nm,e.namespaceURI,!i&&t?[t]:r?null:e.firstChild?om.call(e.childNodes):null,o,!i&&t?t:r?r.__e:e.firstChild,i,s),OS(o,n,s)}om=im.slice,He={__e:function(n,e,t,i){for(var r,o,s;e=e.__;)if((r=e.__c)&&!r.__)try{if((o=r.constructor)&&o.getDerivedStateFromError!=null&&(r.setState(o.getDerivedStateFromError(n)),s=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(n,i||{}),s=r.__d),s)return r.__E=r}catch(a){n=a}throw n}},xS=0,mj=function(n){return n!=null&&n.constructor===void 0},Sf.prototype.setState=function(n,e){var t;t=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Cr({},this.state),typeof n=="function"&&(n=n(Cr({},t),this.props)),n&&Cr(t,n),n!=null&&this.__v&&(e&&this._sb.push(e),gS(this))},Sf.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),gS(this))},Sf.prototype.render=lm,xo=[],bS=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_S=function(n,e){return n.__v.__b-e.__v.__b},rm.__r=0,hx=Math.random().toString(8),em="__d"+hx,Ef="__a"+hx,wS=/(PointerCapture)$|Capture$/i,gx=0,dx=vS(!1),px=vS(!0),gj=0;var AS=function(n,e,t,i){var r;e[0]=0;for(var o=1;o<e.length;o++){var s=e[o++],a=e[o]?(e[0]|=s?1:2,t[e[o++]]):e[++o];s===3?i[0]=a:s===4?i[1]=Object.assign(i[1]||{},a):s===5?(i[1]=i[1]||{})[e[++o]]=a:s===6?i[1][e[++o]]+=a+"":s?(r=n.apply(a,AS(n,a,t,["",null])),i.push(r),a[0]?e[0]|=2:(e[o-2]=0,e[o]=r)):i.push(a)}return i},TS=new Map;function MS(n){var e=TS.get(this);return e||(e=new Map,TS.set(this,e)),(e=AS(this,e.get(n)||(e.set(n,e=(function(t){for(var i,r,o=1,s="",a="",l=[0],c=function(h){o===1&&(h||(s=s.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?l.push(0,h,s):o===3&&(h||s)?(l.push(3,h,s),o=2):o===2&&s==="..."&&h?l.push(4,h,0):o===2&&s&&!h?l.push(5,0,!0,s):o>=5&&((s||!h&&o===5)&&(l.push(o,0,s,r),o=6),h&&(l.push(o,h,0,r),o=6)),s=""},u=0;u<t.length;u++){u&&(o===1&&c(),c(u));for(var f=0;f<t[u].length;f++)i=t[u][f],o===1?i==="<"?(c(),l=[l],o=3):s+=i:o===4?s==="--"&&i===">"?(o=1,s=""):s=i+s[0]:a?i===a?a="":s+=i:i==='"'||i==="'"?a=i:i===">"?(c(),o=1):o&&(i==="="?(o=5,r=s,s=""):i==="/"&&(o<5||t[u][f+1]===">")?(c(),o===3&&(l=l[0]),o=l,(l=l[0]).push(2,0,o),o=0):i===" "||i===" "||i===`[all...]
1 …HE={center:function(t,e){var n,r=1;function i(){var i,o,a=n.length,s=0,u=0;for(i=0;i<a;++i)s+=(o=n…
59 …3:14. God said to Moses: I AM WHO AM. He said: Thus shalt thou say to the children of Israel: HE W…
37428 HE AD39583 ĠHE AD47645 ĠHE LL
328 <span>${s}</span>`;o=this.isActive()?o:"inactive",["error","inactive","success","warning"].forEach(function(u){o===u?i.classList.add("bjsl-button-"+u):i.classList.remove("bjsl-button-"+u)}),i.innerHTML=c};ct.prototype._updateButton=function(){var e=0,t=0,n=0;for(var r in this._issues)this._issues[r].forEach(function(i){i.category==="error"?e++:i.category==="warn"?t++:i.category==="info"&&n++});this._setButtonState({errors:e,warnings:t,infos:n})};ct.prototype._createButton=function(){var e=this;this._button=ue('<button class="bjsl-button bjsl-button-inactive" title="'+this._translate("Toggle linting overlays")+'"></button>'),this._button.addEventListener("click",function(){e.toggle()}),this._canvas.getContainer().appendChild(this._button)};ct.prototype.lint=function(){var e=this._bpmnjs.getDefinitions(),t=new Kx.Linter(this._linterConfig);return t.lint(e)};ct.$inject=["bpmnjs","canvas","config.linting","elementRegistry","eventBus","overlays","translate"];var bd={__init__:["linting","lintingEditorActions"],linting:["type",ct],lintingEditorActions:["type",Yx]};/*! generated from .bpmnlintrc for dokuwiki-plugin-bpmnio — do not edit by hand */function Je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function RE(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}function PE(e,t){return t.indexOf(":")===-1&&(t="bpmn:"+t),typeof e.$instanceOf=="function"?e.$instanceOf(t):e.$type===t}function MD(e,t){return t.some(function(n){return PE(e,n)})}var DD=Object.freeze({__proto__:null,is:PE,isAny:MD}),ut=RE(DD),xa={},eE;function et(){if(eE)return xa;eE=1;let{is:e}=ut;function t(a,s){return function(){function c(u,p){e(u,a)&&p.report(u.id,"Element type <"+a+"> is discouraged")}return o(s,{check:c})}}xa.checkDiscouragedNodeType=t;function n(a,s){if(!a)return null;let c=a.$parent;return c?e(c,s)?c:n(c,s):a}xa.findParent=n;function r(a){let s=n(a,"bpmn:Process");return s&&s.isExecutable}xa.isInExecutableProcess=r;let i="https://github.com/bpmn-io/bpmnlint/blob/main/docs/rules";function o(a,s){let{meta:{documentation:c={},...u}={},...p}=s;return{meta:{documentation:{url:`${i}/${a}.md`,...c},...u},...p}}return xa.annotateRule=o,xa}var xd,tE;function kD(){if(tE)return xd;tE=1;let{is:e}=ut,{annotateRule:t}=et();return xd=function(){function n(r,i){if(!e(r,"bpmn:AdHocSubProcess"))return;(r.flowElements||[]).forEach(function(a){e(a,"bpmn:StartEvent")&&i.report(a.id,"A <Start Event> is not allowed in <Ad Hoc Sub Process>"),e(a,"bpmn:EndEvent")&&i.report(a.id,"An <End Event> is not allowed in <Ad Hoc Sub Process>")})}return t("ad-hoc-sub-process",{check:n})},xd}var ND=kD(),OD=Je(ND),Ed,nE;function BD(){if(nE)return Ed;nE=1;let{annotateRule:e}=et();Ed=function(){function i(o,a){if(!t(o))return;(o.outgoing||[]).forEach(c=>{!n(c)&&!r(o,c)&&a.report(c.id,"Sequence flow is missing condition",["conditionExpression"])})}return e("conditional-flows",{check:i})};function t(i){let o=i.default,a=i.outgoing||[];return o||a.find(n)}function n(i){return!!i.conditionExpression}function r(i,o){return i.default===o}return Ed}var ID=BD(),LD=Je(ID),wd,rE;function jD(){if(rE)return wd;rE=1;let{is:e,isAny:t}=ut,{annotateRule:n}=et();return wd=function(){function r(o){return(o.flowElements||[]).some(s=>e(s,"bpmn:EndEvent"))}function i(o,a){if(!(!t(o,["bpmn:Process","bpmn:SubProcess"])||e(o,"bpmn:AdHocSubProcess"))&&!r(o)){let s=e(o,"bpmn:SubProcess")?"Sub process":"Process";a.report(o.id,s+" is missing end event")}}return n("end-event-required",{check:i})},wd}var FD=jD(),HD=Je(FD),Sd,iE;function $D(){if(iE)return Sd;iE=1;let{is:e}=ut,{annotateRule:t}=et();Sd=function(){function r(i,o){if(!e(i,"bpmn:EventBasedGateway"))return;let a=i.outgoing||[];a.length<2&&o.report(i.id,"An <Event-based Gateway> must have at least 2 outgoing <Sequence Flows>"),a.forEach(s=>{n(s)&&o.report(s.id,"A <Sequence Flow> outgoing from an <Event-based Gateway> must not be conditional")})}return t("event-based-gateway",{check:r})};function n(r){return!!r.conditionExpression}return Sd}var zD=$D(),GD=Je(zD),Cd,oE;function VD(){if(oE)return Cd;oE=1;let{is:e}=ut,{annotateRule:t}=et();return Cd=function(){function n(r,i){if(!e(r,"bpmn:SubProcess")||!r.triggeredByEvent)return;(r.flowElements||[]).forEach(function(a){if(!e(a,"bpmn:StartEvent"))return!1;(a.eventDefinitions||[]).length===0&&i.report(a.id,"Start event is missing event definition",["eventDefinitions"])})}return t("event-sub-process-typed-start-event",{check:n})},Cd}var WD=VD(),UD=Je(WD),Rd,aE;function qD(){if(aE)return Rd;aE=1;let{isAny:e}=ut,{annotateRule:t}=et();return Rd=function(){function n(r,i){if(!e(r,["bpmn:Activity","bpmn:Event"]))return;(r.incoming||[]).length>1&&i.report(r.id,"Incoming flows do not join")}return t("fake-join",{check:n})},Rd}var KD=qD(),YD=Je(KD),Pd,sE;function XD(){if(sE)return Pd;sE=1;let{is:e,isAny:t}=ut,{annotateRule:n}=et();return Pd=function(){function r(u,p){if(!e(u,"bpmn:Definitions"))return!1;let l=i(u),f=o(u);l.forEach(d=>{a(d)||p.report(d.id,"Element is missing name"),s(d,f)||p.report(d.id,"Element is unused"),c(d,l)||p.report(d.id,"Element name is not unique")})}return n("global",{check:r});function i(u){return u.rootElements.filter(p=>t(p,["bpmn:Error","bpmn:Escalation","bpmn:Message","bpmn:Signal"]))}function o(u){let p=[];function l(f){e(f,"bpmn:Definitions")&&f.get("rootElements").length&&f.get("rootElements").forEach(l),e(f,"bpmn:FlowElementsContainer")&&f.get("flowElements").length&&f.get("flowElements").forEach(l),e(f,"bpmn:Event")&&f.get("eventDefinitions").length&&f.get("eventDefinitions").forEach(d=>p.push(d)),e(f,"bpmn:Collaboration")&&f.get("messageFlows").length&&f.get("messageFlows").forEach(l),t(f,["bpmn:MessageFlow","bpmn:ReceiveTask","bpmn:SendTask"])&&p.push(f)}return l(u),p}function a(u){var p;return((p=u.name)==null?void 0:p.trim())!==""}function s(u,p){if(e(u,"bpmn:Error"))return p.some(l=>{var f;return e(l,"bpmn:ErrorEventDefinition")&&u.get("id")===((f=l.get("errorRef"))==null?void 0:f.get("id"))});if(e(u,"bpmn:Escalation"))return p.some(l=>{var f;return e(l,"bpmn:EscalationEventDefinition")&&u.get("id")===((f=l.get("escalationRef"))==null?void 0:f.get("id"))});if(e(u,"bpmn:Message"))return p.some(l=>{var f;return t(l,["bpmn:MessageEventDefinition","bpmn:MessageFlow","bpmn:ReceiveTask","bpmn:SendTask"])&&u.get("id")===((f=l.get("messageRef"))==null?void 0:f.get("id"))});if(e(u,"bpmn:Signal"))return p.some(l=>{var f;return e(l,"bpmn:SignalEventDefinition")&&u.get("id")===((f=l.get("signalRef"))==null?void 0:f.get("id"))})}function c(u,p){return p.filter(l=>e(l,u.$type)&&u.name===l.name).length===1}},Pd}var ZD=XD(),QD=Je(ZD),Ad,cE;function JD(){if(cE)return Ad;cE=1;let{is:e,isAny:t}=ut,{annotateRule:n}=et();Ad=function(){function o(a,s){t(a,["bpmn:ParallelGateway","bpmn:EventBasedGateway"])||e(a,"bpmn:Gateway")&&!r(a)||e(a,"bpmn:SubProcess")||e(a,"bpmn:SequenceFlow")&&!i(a)||t(a,["bpmn:FlowNode","bpmn:SequenceFlow","bpmn:Participant","bpmn:Lane"])&&(a.name||"").trim().length===0&&s.report(a.id,"Element is missing label/name",["name"])}return n("label-required",{check:o})};function r(o){return(o.outgoing||[]).length>1}function i(o){return o.conditionExpression}return Ad}var e2=JD(),t2=Je(e2);function n2(e){return Array.prototype.concat.apply([],e)}var pc=Object.prototype.toString,r2=Object.prototype.hasOwnProperty;function Ea(e){return e===void 0}function AE(e){return e!==void 0}function pl(e){return e==null}function ll(e){return pc.call(e)==="[object Array]"}function ul(e){return pc.call(e)==="[object Object]"}function i2(e){return pc.call(e)==="[object Number]"}function Ud(e){let t=pc.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"||t==="[object Proxy]"}function o2(e){return pc.call(e)==="[object String]"}function TE(e){if(!ll(e))throw new Error("must supply array")}function ME(e,t){return!pl(e)&&r2.call(e,t)}function DE(e,t){let n=dl(t),r;return Qt(e,function(i,o){if(n(i,o))return r=i,!1}),r}function a2(e,t){let n=dl(t),r=ll(e)?-1:void 0;return Qt(e,function(i,o){if(n(i,o))return r=o,!1}),r}function s2(e,t){let n=dl(t),r=[];return Qt(e,function(i,o){n(i,o)&&r.push(i)}),r}function Qt(e,t){let n,r;if(Ea(e))return;let i=ll(e)?v2:h2;for(let o in e)if(ME(e,o)&&(n=e[o],r=t(n,i(o)),r===!1))return n}function c2(e,t){if(Ea(e))return[];TE(e);let n=dl(t);return e.filter(function(r,i){return!n(r,i)})}function kE(e,t,n){return Qt(e,function(r,i){n=t(n,r,i)}),n}function NE(e,t){return!!kE(e,function(n,r,i){return n&&t(r,i)},!0)}function u2(e,t){return!!DE(e,t)}function fl(e,t){let n=[];return Qt(e,function(r,i){n.push(t(r,i))}),n}function OE(e){return e&&Object.keys(e)||[]}function p2(e){return OE(e).length}function l2(e){return fl(e,t=>t)}function BE(e,t,n={}){return t=qd(t),Qt(e,function(r){let i=t(r)||"_",o=n[i];o||(o=n[i]=[]),o.push(r)}),n}function IE(e,...t){e=qd(e);let n={};return Qt(t,i=>BE(i,e,n)),fl(n,function(i,o){return i[0]})}var f2=IE;function d2(e,t){t=qd(t);let n=[];return Qt(e,function(r,i){let o=t(r,i),a={d:o,v:r};for(var s=0;s<n.length;s++){let{d:c}=n[s];if(o<c){n.splice(s,0,a);return}}n.push(a)}),fl(n,r=>r.v)}function m2(e){return function(t){return NE(e,function(n,r){return t[r]===n})}}function qd(e){return Ud(e)?e:t=>t[e]}function dl(e){return Ud(e)?e:t=>t===e}function h2(e){return e}function v2(e){return Number(e)}function g2(e,t){let n,r,i,o;function a(l){let f=Date.now(),d=l?0:o+t-f;if(d>0)return s(d);e.apply(i,r),c()}function s(l){n=setTimeout(a,l)}function c(){n&&clearTimeout(n),n=o=r=i=void 0}function u(){n&&a(!0),c()}function p(...l){o=Date.now(),r=l,i=this,n||s(t)}return p.flush=u,p.cancel=c,p}function y2(e,t){let n=!1;return function(...r){n||(e(...r),n=!0,setTimeout(()=>{n=!1},t))}}function _2(e,t){return e.bind(t)}function b2(e,...t){return Object.assign(e,...t)}function x2(e,t,n){let r=e;return Qt(t,function(i,o){if(typeof i!="number"&&typeof i!="string")throw new Error("illegal key type: "+typeof i+". Key should be of type number or string.");if(i==="constructor")throw new Error("illegal key: constructor");if(i==="__proto__")throw new Error("illegal key: __proto__");let a=t[o+1],s=r[i];AE(a)&&pl(s)&&(s=r[i]=isNaN(+a)?{}:[]),Ea(a)?Ea(n)?delete r[i]:r[i]=n:r=s}),e}function E2(e,t,n){let r=e;return Qt(t,function(i){if(pl(r))return r=void 0,!1;r=r[i]}),Ea(r)?n:r}function w2(e,t){let n={},r=Object(e);return Qt(t,function(i){i in r&&(n[i]=e[i])}),n}function S2(e,t){let n={},r=Object(e);return Qt(r,function(i,o){t.indexOf(o)===-1&&(n[o]=i)}),n}function LE(e,...t){return t.length&&Qt(t,function(n){!n||!ul(n)||Qt(n,function(r,i){if(i==="__proto__")return;let o=e[i];ul(r)?(ul(o)||(o={}),e[i]=LE(o,r)):e[i]=r})}),e}var C2=Object.freeze({__proto__:null,assign:b2,bind:_2,debounce:g2,ensureArray:TE,every:NE,filter:s2,find:DE,findIndex:a2,flatten:n2,forEach:Qt,get:E2,groupBy:BE,has:ME,isArray:ll,isDefined:AE,isFunction:Ud,isNil:pl,isNumber:i2,isObject:ul,isString:o2,isUndefined:Ea,keys:OE,map:fl,matchPattern:m2,merge:LE,omit:S2,pick:w2,reduce:kE,set:x2,size:p2,some:u2,sortBy:d2,throttle:y2,unionBy:f2,uniqueBy:IE,values:l2,without:c2}),jE=RE(C2),Td,uE;function R2(){if(uE)return Td;uE=1;let{groupBy:e}=jE,{is:t}=ut,{annotateRule:n}=et();Td=function(){function s(c,u){if(!t(c,"bpmn:FlowElementsContainer"))return;let p=(c.flowElements||[]).filter(r);for(let f of p)i(f)||u.report(f.id,"Link event is missing link name");let l=e(p,f=>i(f));for(let[f,d]of Object.entries(l)){if(!f)continue;if(d.length===1){let g=d[0];u.report(g.id,`Link ${o(g)?"catch":"throw"} event with link name <${f}> missing in scope`);continue}let m=d.filter(a);if(m.length>1)for(let g of m)u.report(g.id,`Duplicate link catch event with link name <${f}> in scope`);else if(m.length===0)for(let g of d)u.report(g.id,`Link catch event with link name <${f}> missing in scope`)}}return n("link-event",{check:s})};function r(s){var c=s.eventDefinitions||[];return t(s,"bpmn:Event")?c.some(u=>t(u,"bpmn:LinkEventDefinition")):!1}function i(s){return s.get("eventDefinitions").find(c=>t(c,"bpmn:LinkEventDefinition")).name}function o(s){return t(s,"bpmn:ThrowEvent")}function a(s){return t(s,"bpmn:CatchEvent")}return Td}var P2=R2(),A2=Je(P2),Md,pE;function T2(){if(pE)return Md;pE=1;let{is:e}=ut,{flatten:t}=jE,{annotateRule:n}=et();Md=function(){function c(u,p){if(!e(u,"bpmn:Definitions"))return!1;let f=r(u.rootElements).filter(o),d=i(u);f.forEach(m=>{d.indexOf(m.id)===-1&&p.report(m.id,"Element is missing bpmndi")})}return n("no-bpmndi",{check:c})};function r(c){return t(c.map(u=>{let p=u.laneSets&&u.laneSets[0]||u.childLaneSet,l=t([u.flowElements||[],u.flowElements&&r(u.flowElements.filter(a))||[],u.participants||[],u.artifacts||[],p&&p.lanes||[],p&&p.lanes&&r(p.lanes.filter(s))||[],u.messageFlows||[]]);return l.length>0?l.map(f=>({id:f.id,$type:f.$type})):[]}))}function i(c){return t(c.get("diagrams").map(u=>(u.plane.planeElement||[]).map(l=>{var f;return(f=l.bpmnElement)==null?void 0:f.id})))}function o(c){return!["bpmn:DataObject"].includes(c.$type)}function a(c){return!!c.flowElements}function s(c){return!!c.childLaneSet}return Md}var M2=T2(),D2=Je(M2),Dd,lE;function k2(){if(lE)return Dd;lE=1;let e=et().checkDiscouragedNodeType;return Dd=e("bpmn:ComplexGateway","no-complex-gateway"),Dd}var N2=k2(),O2=Je(N2),kd,fE;function B2(){if(fE)return kd;fE=1;let{isAny:e,is:t}=ut,{annotateRule:n}=et();kd=function(){function a(s,c){if(!e(s,["bpmn:Task","bpmn:Gateway","bpmn:SubProcess","bpmn:Event"])||s.triggeredByEvent||o(s)||t(s.$parent,"bpmn:AdHocSubProcess"))return;let u=s.incoming||[],p=s.outgoing||[];!u.length&&!p.length&&c.report(s.id,"Element is not connected")}return n("no-disconnected",{check:a})};function r(a){var s=a.eventDefinitions;return!t(a,"bpmn:BoundaryEvent")||!s||s.length!==1?!1:t(s[0],"bpmn:CompensateEventDefinition")}function i(a){return a.isForCompensation}function o(a){var s=r(a),c=i(a);return s||c}return kd}var I2=B2(),L2=Je(I2),Nd,dE;function j2(){if(dE)return Nd;dE=1;let{is:e}=ut,{annotateRule:t}=et();Nd=function(){let r={},i={},o={};function a(s,c){if(!e(s,"bpmn:SequenceFlow"))return;let u=n(s);if(u in r){c.report(s.id,"SequenceFlow is a duplicate");let p=s.sourceRef.id,l=s.targetRef.id;i[p]||(c.report(p,"Duplicate outgoing sequence flows"),i[p]=!0),o[l]||(c.report(l,"Duplicate incoming sequence flows"),o[l]=!0)}else r[u]=s}return t("no-duplicate-sequence-flows",{check:a})};function n(r){let i=r.conditionExpression,o=i?i.body:"",a=r.sourceRef?r.sourceRef.id:r.id,s=r.targetRef?r.targetRef.id:r.id;return a+"#"+s+"#"+o}return Nd}var F2=j2(),H2=Je(F2),Od,mE;function $2(){if(mE)return Od;mE=1;let{is:e}=ut,{annotateRule:t}=et();return Od=function(){function n(r,i){if(!e(r,"bpmn:Gateway"))return;let o=r.incoming||[],a=r.outgoing||[];o.length>1&&a.length>1&&i.report(r.id,"Gateway forks and joins")}return t("no-gateway-join-fork",{check:n})},Od}var z2=$2(),G2=Je(z2),Bd,hE;function V2(){if(hE)return Bd;hE=1;let{isAny:e}=ut,{annotateRule:t}=et();Bd=function(){function i(o,a){if(!e(o,["bpmn:Activity","bpmn:Event"]))return;(o.outgoing||[]).filter(u=>!n(u)&&!r(o,u)).length>1&&a.report(o.id,"Flow splits implicitly")}return t("no-implicit-split",{check:i})};function n(i){return!!i.conditionExpression}function r(i,o){return i.default===o}return Bd}var W2=V2(),U2=Je(W2),Id,vE;function q2(){if(vE)return Id;vE=1;let{is:e,isAny:t}=ut,{findParent:n,annotateRule:r}=et();return Id=function(){function i(p){let l=p.eventDefinitions||[];return l.length&&l.every(f=>e(f,"bpmn:LinkEventDefinition"))}function o(p){let l=p.eventDefinitions||[];return l.length&&l.every(f=>e(f,"bpmn:CompensateEventDefinition"))}function a(p){return(n(p,"bpmn:Process").artifacts||[]).some(d=>e(d,"bpmn:Association")?d.sourceRef.id===p.id:!1)}function s(p){return p.isForCompensation}function c(p){let l=p.outgoing||[];return e(p,"bpmn:SubProcess")&&p.triggeredByEvent||e(p,"bpmn:IntermediateThrowEvent")&&i(p)||e(p.$parent,"bpmn:AdHocSubProcess")||e(p,"bpmn:EndEvent")||e(p,"bpmn:BoundaryEvent")&&o(p)&&a(p)||e(p,"bpmn:Activity")&&s(p)?!1:l.length===0}function u(p,l){t(p,["bpmn:Event","bpmn:Activity","bpmn:Gateway"])&&c(p)&&l.report(p.id,"Element is an implicit end")}return r("no-implicit-end",{check:u})},Id}var K2=q2(),Y2=Je(K2),Ld,gE;function X2(){if(gE)return Ld;gE=1;let{is:e,isAny:t}=ut,{annotateRule:n}=et();return Ld=function(){function r(s){let c=s.eventDefinitions||[];return c.length&&c.every(u=>e(u,"bpmn:LinkEventDefinition"))}function i(s){return s.isForCompensation}function o(s){let c=s.incoming||[];return e(s,"bpmn:Activity")&&i(s)||e(s.$parent,"bpmn:AdHocSubProcess")||e(s,"bpmn:SubProcess")&&s.triggeredByEvent||e(s,"bpmn:IntermediateCatchEvent")&&r(s)||t(s,["bpmn:StartEvent","bpmn:BoundaryEvent"])?!1:c.length===0}function a(s,c){t(s,["bpmn:Event","bpmn:Activity","bpmn:Gateway"])&&o(s)&&c.report(s.id,"Element is an implicit start")}return n("no-implicit-start",{check:a})},Ld}var Z2=X2(),Q2=Je(Z2),jd,yE;function J2(){if(yE)return jd;yE=1;let e=et().checkDiscouragedNodeType;return jd=e("bpmn:InclusiveGateway","no-inclusive-gateway"),jd}var ek=J2(),tk=Je(ek),Fd,_E;function nk(){if(_E)return Fd;_E=1;let{is:e}=ut,{annotateRule:t}=et();Fd=function(){function c(u,p){if(!e(u,"bpmn:Definitions"))return;let l=u.rootElements||[],f=new Set,d=new Set,m=s(u),g=new Map;l.filter(v=>e(v,"bpmn:Collaboration")).forEach(v=>{let w=v.participants||[];r(w,f,m),w.forEach(S=>{g.set(S.processRef,m.get(S))})}),l.filter(v=>e(v,"bpmn:Process")).forEach(v=>{let w=g.get(v)||{};n(v,f,d,m,w)}),f.forEach(v=>p.report(v.id,"Element overlaps with other element")),d.forEach(v=>p.report(v.id,"Element is outside of parent boundary"))}return t("no-overlapping-elements",{check:c})};function n(c,u,p,l,f){let d=c.flowElements||[],m=d.filter(v=>l.has(v));r(m,u,l),m.forEach(v=>{!e(v,"bpmn:DataStoreReference")&&i(l.get(v).bounds,f.bounds)&&p.add(v)}),d.filter(v=>e(v,"bpmn:SubProcess")).forEach(v=>{let w=l.get(v)||{},S=w.isExpanded?w:{};n(v,u,p,l,S)})}function r(c,u,p){var l,f;for(let d=0;d<c.length-1;d++){let m=c[d];for(let g=d+1;g<c.length;g++){let v=c[g];if(m.attachedToRef===v||v.attachedToRef===m)continue;let w=(l=p.get(m))==null?void 0:l.bounds,S=(f=p.get(v))==null?void 0:f.bounds;!w||!S||o(w,S)&&(u.add(m),u.add(v))}}}function i(c,u){if(!a(c)||!a(u))return!1;let p=c.x>=u.x&&c.y>=u.y,l=c.x+c.width<=u.x+u.width&&c.y+c.height<=u.y+u.height;return!(p&&l)}function o(c,u){if(!a(c)||!a(u))return!1;let p=c.x+c.width>=u.x&&u.x+u.width>=c.x,l=c.y+c.height>=u.y&&u.y+u.height>=c.y;return p&&l}function a(c){return!!c&&e(c,"dc:Bounds")&&typeof c.x=="number"&&typeof c.y=="number"&&typeof c.width=="number"&&typeof c.height=="number"}function s(c){let u=new Map;return(c.diagrams||[]).filter(l=>!!l.plane).forEach(l=>{(l.plane.planeElement||[]).filter(d=>!!d.bpmnElement).forEach(d=>{u.set(d.bpmnElement,d)})}),u}return Fd}var rk=nk(),ik=Je(rk),Hd,bE;function ok(){if(bE)return Hd;bE=1;let{is:e}=ut,{annotateRule:t}=et();return Hd=function(){function n(r,i){if(!e(r,"bpmn:FlowElementsContainer"))return;if((r.flowElements||[]).filter(function(s){return e(s,"bpmn:StartEvent")?(s.eventDefinitions||[]).length===0:!1}).length>1){let s=e(r,"bpmn:SubProcess")?"Sub process":"Process";i.report(r.id,s+" has multiple blank start events")}}return t("single-blank-start-event",{check:n})},Hd}var ak=ok(),sk=Je(ak),$d,xE;function ck(){if(xE)return $d;xE=1;let{is:e}=ut,{annotateRule:t}=et();return $d=function(){function n(r,i){if(!e(r,"bpmn:Event"))return;(r.eventDefinitions||[]).length>1&&i.report(r.id,"Event has multiple event definitions",["eventDefinitions"])}return t("single-event-definition",{check:n})},$d}var uk=ck(),pk=Je(uk),zd,EE;function lk(){if(EE)return zd;EE=1;let{is:e,isAny:t}=ut,{annotateRule:n}=et();return zd=function(){function r(o){return(o.flowElements||[]).some(s=>e(s,"bpmn:StartEvent"))}function i(o,a){if(!(!t(o,["bpmn:Process","bpmn:SubProcess"])||e(o,"bpmn:AdHocSubProcess"))&&!r(o)){let s=e(o,"bpmn:SubProcess")?"Sub process":"Process";a.report(o.id,s+" is missing start event")}}return n("start-event-required",{check:i})},zd}var fk=lk(),dk=Je(fk),Gd,wE;function mk(){if(wE)return Gd;wE=1;let{is:e}=ut,{annotateRule:t}=et();return Gd=function(){function n(r,i){if(!e(r,"bpmn:SubProcess")||r.triggeredByEvent)return;(r.flowElements||[]).forEach(function(a){if(!e(a,"bpmn:StartEvent"))return!1;(a.eventDefinitions||[]).length>0&&i.report(a.id,"Start event must be blank",["eventDefinitions"])})}return t("sub-process-blank-start-event",{check:n})},Gd}var hk=mk(),vk=Je(hk),Vd,SE;function gk(){if(SE)return Vd;SE=1;let{is:e}=ut,{annotateRule:t}=et();return Vd=function(){function n(r,i){if(!e(r,"bpmn:Gateway"))return;let o=r.incoming||[],a=r.outgoing||[];o.length===1&&a.length===1&&i.report(r.id,"Gateway is superfluous. It only has one source and target.")}return t("superfluous-gateway",{check:n})},Vd}var yk=gk(),_k=Je(yk),Wd,CE;function bk(){if(CE)return Wd;CE=1;let{is:e,isAny:t}=ut,{annotateRule:n}=et();Wd=function(){function o(a,s){if(!t(a,["bpmn:Process","bpmn:SubProcess"]))return;let u=(a.flowElements||[]).filter(f=>e(f,"bpmn:FlowNode")&&(f.outgoing||[]).length===0),p=u.filter(r);if(p.length!==1)return;if(u.every(f=>i(f)||r(f)))for(let f of p)s.report(f.id,"Termination is superfluous.")}return n("superfluous-termination",{check:o})};function r(o){return e(o,"bpmn:EndEvent")&&(o.eventDefinitions||[]).some(a=>e(a,"bpmn:TerminateEventDefinition"))}function i(o){return e(o,"bpmn:SubProcess")&&o.triggeredByEvent&&(o.flowElements||[]).some(s=>e(s,"bpmn:StartEvent")&&s.isInterrupting)}return Wd}var xk=bk(),Ek=Je(xk),Xe={};function Kd(){}Kd.prototype.resolveRule=function(e,t){let n=Xe[e+"/"+t];if(!n)throw new Error("cannot resolve rule <"+e+"/"+t+">: not bundled");return n};Kd.prototype.resolveConfig=function(e,t){throw new Error("cannot resolve config <"+t+"> in <"+e+">: not bundled")};var FE=new Kd,wk={"ad-hoc-sub-process":"error","conditional-flows":"error","end-event-required":"error","event-based-gateway":"error","event-sub-process-typed-start-event":"error","fake-join":"warn",global:"warn","label-required":"error","link-event":"error","no-bpmndi":"error","no-complex-gateway":"error","no-disconnected":"error","no-duplicate-sequence-flows":"error","no-gateway-join-fork":"error","no-implicit-split":"error","no-implicit-end":"error","no-implicit-start":"error","no-inclusive-gateway":"warn","no-overlapping-elements":"warn","single-blank-start-event":"error","single-event-definition":"error","start-event-required":"error","sub-process-blank-start-event":"error","superfluous-gateway":"warn","superfluous-termination":"warn"},HE={rules:wk};Xe["bpmnlint/ad-hoc-sub-process"]=OD;Xe["bpmnlint/conditional-flows"]=LD;Xe["bpmnlint/end-event-required"]=HD;Xe["bpmnlint/event-based-gateway"]=GD;Xe["bpmnlint/event-sub-process-typed-start-event"]=UD;Xe["bpmnlint/fake-join"]=YD;Xe["bpmnlint/global"]=QD;Xe["bpmnlint/label-required"]=t2;Xe["bpmnlint/link-event"]=A2;Xe["bpmnlint/no-bpmndi"]=D2;Xe["bpmnlint/no-complex-gateway"]=O2;Xe["bpmnlint/no-disconnected"]=L2;Xe["bpmnlint/no-duplicate-sequence-flows"]=H2;Xe["bpmnlint/no-gateway-join-fork"]=G2;Xe["bpmnlint/no-implicit-split"]=U2;Xe["bpmnlint/no-implicit-end"]=Y2;Xe["bpmnlint/no-implicit-start"]=Q2;Xe["bpmnlint/no-inclusive-gateway"]=tk;Xe["bpmnlint/no-overlapping-elements"]=ik;Xe["bpmnlint/single-blank-start-event"]=sk;Xe["bpmnlint/single-event-definition"]=pk;Xe["bpmnlint/start-event-required"]=dk;Xe["bpmnlint/sub-process-blank-start-event"]=vk;Xe["bpmnlint/superfluous-gateway"]=_k;Xe["bpmnlint/superfluous-termination"]=Ek;var Yd=globalThis;Object.assign(zt,{Modeler:zt,NavigatedViewer:sr,Viewer:nn});Yd.BpmnJS=zt;var $E={config:HE,resolver:FE};Yd.BpmnLintModule=bd;Yd.BpmnLintConfig=$E;for(let e of[zt,sr,nn])e.lintModule=bd,e.lintConfig=$E;var cte=zt;})();7 `),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 uh global() variable
8 …HE={"http://www.opengis.net/wfs":{TransactionSummary:Fc(sT,"transactionSummary"),InsertResults:Fc(…
1277 …AF,"initializeArrayOfArrays");S(AF,"initializeArrayOfArrays");o(HE,"pathToHashKeys");S(HE,"pathToH…
8027 AE:'È', BE:'É', CE:'Ê', HE:'Ë', property
1 …HkB,EA8HV,MA9HU,EA8HF,MA9HE,EA8HM,MA9HN,EA+HlB,MA/HkB,EA+HV,MA/HU,EA+HF,MA/HE,EA+HM,MA/HN,EAgIlB,M…