@g1cloud/bpmn-modeler-next 5.0.0-beta.19 → 5.0.0-beta.20

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.
@@ -34367,7 +34367,7 @@ const X$ = {
34367
34367
  for (const [i, r] of t)
34368
34368
  n[i] = r;
34369
34369
  return n;
34370
- }, I5 = /* @__PURE__ */ qh(Z$, [["__scopeId", "data-v-051be2be"]]), Q$ = ["title", "aria-expanded"], J$ = ["title", "onClick"], e5 = {
34370
+ }, I5 = /* @__PURE__ */ qh(Z$, [["__scopeId", "data-v-7847e007"]]), Q$ = ["title", "aria-expanded"], J$ = ["title", "onClick"], e5 = {
34371
34371
  viewBox: "0 0 16 16",
34372
34372
  width: "13",
34373
34373
  height: "13",
@@ -340,4 +340,4 @@
340
340
  <input type="text" spellcheck="false" />
341
341
  </div>
342
342
  <div class="djs-search-results" />
343
- </div>`,We.RESULT_HTML='<div class="djs-search-result"></div>',We.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>',We.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';const NN={__depends__:[bs,pu,Ri],searchPad:["type",We]};function Qh(e,t,n,i){this._elementRegistry=e,this._canvas=n,this._search=i,t.registerProvider(this)}Qh.$inject=["elementRegistry","searchPad","canvas","search"],Qh.prototype.find=function(e){var t=this._canvas.getRootElements(),n=this._elementRegistry.filter(function(i){return!Je(i)&&!t.includes(i)});return this._search(n.map(i=>({element:i,label:yi(i),id:i.id})),e,{keys:["label","id"]}).map($N)};function $N(e){const{item:{element:t},tokens:n}=e;return{element:t,primaryTokens:n.label,secondaryTokens:n.id}}const FN={__depends__:[NN,kw],__init__:["bpmnSearch"],bpmnSearch:["type",Qh]},jN="M44.7648 11.3263L36.9892 2.64074C36.0451 1.58628 34.5651 0.988708 33.1904 0.988708H5.98667C3.22688 0.988708 0.989624 3.34892 0.989624 6.26039V55.0235C0.989624 57.9349 3.22688 60.2952 5.98667 60.2952H40.966C43.7257 60.2952 45.963 57.9349 45.963 55.0235V14.9459C45.963 13.5998 45.6407 12.3048 44.7648 11.3263Z",HN="M1.03845 48.1347C1.03845 49.3511 1.07295 50.758 1.38342 52.064C1.69949 53.3938 2.32428 54.7154 3.56383 55.6428C6.02533 57.4841 10.1161 58.7685 14.8212 59.6067C19.5772 60.4538 25.1388 60.8738 30.6831 60.8738C36.2276 60.8738 41.7891 60.4538 46.545 59.6067C51.2504 58.7687 55.3412 57.4842 57.8028 55.6429C59.0424 54.7156 59.6673 53.3938 59.9834 52.064C60.2938 50.7579 60.3285 49.351 60.3285 48.1344V13.8415C60.3285 12.6249 60.2938 11.218 59.9834 9.91171C59.6673 8.58194 59.0423 7.2602 57.8027 6.33294C55.341 4.49168 51.2503 3.20723 46.545 2.36914C41.7891 1.522 36.2276 1.10204 30.6831 1.10205C25.1388 1.10206 19.5772 1.52206 14.8213 2.36923C10.1162 3.20734 6.02543 4.49183 3.5639 6.33314C2.32433 7.26038 1.69951 8.58206 1.38343 9.91181C1.07295 11.2179 1.03845 12.6247 1.03845 13.8411V48.1347Z",zN={width:36,height:50},GN={width:50,height:50};function xE(e,t,n){return Oe("path",{d:e,strokeWidth:2,transform:`translate(${t.x}, ${t.y})`,...n})}const ki=5;function Xu(e,t){this._styles=t,e.registerProvider(this)}Xu.$inject=["outline","styles"],Xu.prototype.getOutline=function(e){const t=this._styles.cls("djs-outline",["no-fill"]);var n;if(iP(e))return n=Oe("rect"),we(n,V({x:-ki,y:-ki,rx:4,width:e.width+ki*2,height:e.height+ki*2},t)),n;if(!Je(e))return M(e,"bpmn:Gateway")?(n=Oe("rect"),V(n.style,{"transform-box":"fill-box",transform:"rotate(45deg)","transform-origin":"center"}),we(n,V({x:2,y:2,rx:4,width:e.width-4,height:e.height-4},t))):tt(e,["bpmn:Task","bpmn:SubProcess","bpmn:Group","bpmn:CallActivity"])?(n=Oe("rect"),we(n,V({x:-ki,y:-ki,rx:14,width:e.width+ki*2,height:e.height+ki*2},t))):M(e,"bpmn:EndEvent")?(n=Oe("circle"),we(n,V({cx:e.width/2,cy:e.height/2,r:e.width/2+ki+1},t))):M(e,"bpmn:Event")?(n=Oe("circle"),we(n,V({cx:e.width/2,cy:e.height/2,r:e.width/2+ki},t))):M(e,"bpmn:DataObjectReference")&&_E(e,"bpmn:DataObjectReference")?n=xE(jN,{x:-6,y:-6},t):M(e,"bpmn:DataStoreReference")&&_E(e,"bpmn:DataStoreReference")&&(n=xE(HN,{x:-6,y:-6},t)),n},Xu.prototype.updateOutline=function(e,t){if(!Je(e))return tt(e,["bpmn:SubProcess","bpmn:Group"])?(we(t,{width:e.width+ki*2,height:e.height+ki*2}),!0):!!tt(e,["bpmn:Event","bpmn:Gateway","bpmn:DataStoreReference","bpmn:DataObjectReference"])};function _E(e,t){var n;return t==="bpmn:DataObjectReference"?n=zN:t==="bpmn:DataStoreReference"&&(n=GN),e.width===n.width&&e.height===n.height}const VN={__depends__:[zh],__init__:["outlineProvider"],outlineProvider:["type",Xu]};var WN='<?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>';function rr(e){da.call(this,e)}Ce(rr,da),rr.Viewer=eo,rr.NavigatedViewer=Ws,rr.prototype.createDiagram=function(){return this.importXML(WN)},rr.prototype._interactionModules=[L_,B_,F_],rr.prototype._modelingModules=[qL,su,QL,XL,pI,Nh,yI,zI,hx,Fl,UI,KI,pB,dB,hB,bB,kB,BB,rh,GB,ZB,cN,uN,I0,IN,FN,VN],rr.prototype._modules=[].concat(eo.prototype._modules,rr.prototype._interactionModules,rr.prototype._modelingModules);var Zu=50,UN=new Mo,wE={min:.2,max:4},qN=10,YN=.1,KN=250,XN=100,ZN=2e3;function In(e,t,n,i,r){var o=this;this._canvas=i,this._elementRegistry=r,this._eventBus=n,this._injector=t,this._config=e||{},this._updateTimeout=null,this._firstDebounceTime=null,this._dirty=!1,this._state={isOpen:void 0,isDragging:!1,initialDragPosition:null,offsetViewport:null,cachedViewbox:null,dragger:null,svgClientRect:null,parentClientRect:null,zoomDelta:0},this._minimapId=UN.next(),this._init(),this.toggle(this._config.open||!1);function a(u){(!o._state._svgClientRect||Ju(o._state._svgClientRect))&&(o._state._svgClientRect=o._svg.getBoundingClientRect());var p=Qu({x:u.x-o._state._svgClientRect.left,y:u.y-o._state._svgClientRect.top},o._svg,o._lastViewbox);Jh(p,o._canvas),o._update()}function s(u){return function(f){var d=em(f);(!o._state._svgClientRect||Ju(o._state._svgClientRect))&&(o._state._svgClientRect=o._svg.getBoundingClientRect()),u&&a(d);var g=Qu({x:d.x-o._state._svgClientRect.left,y:d.y-o._state._svgClientRect.top},o._svg,o._lastViewbox),h=i.viewbox(),y=JN(g,h),_=o._viewportDom.getBoundingClientRect(),x={x:d.x-_.left+1,y:d.y-_.top+1};V(o._state,{cachedViewbox:h,initialDragPosition:{x:d.x,y:d.y},isDragging:!0,offsetViewport:y,offsetViewportDom:x,viewportClientRect:o._viewport.getBoundingClientRect(),parentClientRect:o._parent.getBoundingClientRect()}),Le.bind(document,"mousemove",c),Le.bind(document,"mouseup",l)}}function c(u){var p=em(u);if(o._state.isDragging){(!o._state._svgClientRect||Ju(o._state._svgClientRect))&&(o._state._svgClientRect=o._svg.getBoundingClientRect());var f=o._state.offsetViewportDom,d=o._state.viewportClientRect,g=o._state.parentClientRect;V(o._viewportDom.style,{top:p.y-f.y-g.top+"px",left:p.x-f.x-g.left+"px"});var h=SE(g,{top:p.y-f.y-g.top,left:p.x-f.x-g.left,width:d.width,height:d.height});V(o._overlay.style,{clipPath:h});var y=Qu({x:p.x-o._state._svgClientRect.left,y:p.y-o._state._svgClientRect.top},o._svg,o._lastViewbox);Jh({x:y.x-o._state.offsetViewport.x,y:y.y-o._state.offsetViewport.y},o._canvas)}}function l(u){var p=em(u);o._state.isDragging&&(o._state.initialDragPosition.x===p.x&&o._state.initialDragPosition.y===p.y&&a(u),o._update(),V(o._state,{cachedViewbox:null,initialDragPosition:null,isDragging:!1,offsetViewport:null,offsetViewportDom:null}),Le.unbind(document,"mousemove",c),Le.unbind(document,"mouseup",l))}Le.bind(this._viewportDom,"mousedown",s(!1)),Le.bind(this._svg,"mousedown",s(!0)),Le.bind(this._parent,"wheel",function(u){if(u.preventDefault(),u.stopPropagation(),!!u.ctrlKey&&((!o._state._svgClientRect||Ju(o._state._svgClientRect))&&(o._state._svgClientRect=o._svg.getBoundingClientRect()),!!r$(u,o._state._svgClientRect))){var p=u.deltaMode===0?.02:.32,f=Math.sqrt(Math.pow(u.deltaY,2)+Math.pow(u.deltaX,2))*o$(u.deltaY)*-p;if(o._state.zoomDelta+=f,Math.abs(o._state.zoomDelta)>YN){var d=f>0?1:-1,g=Math.log(i.zoom())/Math.log(10),h=a$(wE,qN*2),y=Math.round(g/h)*h;y+=h*d;var _=Math.pow(10,y);i.zoom(s$(wE,_),x),o._state.zoomDelta=0;var x=Qu({x:u.clientX-o._state._svgClientRect.left,y:u.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox);Jh(x,o._canvas),o._update()}}}),Le.bind(this._toggle,"click",function(u){u.preventDefault(),u.stopPropagation(),o.toggle()}),n.on(["shape.added","connection.added"],function(u){if(!o.isOpen()){o._dirty=!0;return}o._addElement(u.element),o._scheduleUpdate()}),n.on(["shape.removed","connection.removed"],function(u){if(!o.isOpen()){o._dirty=!0;return}o._removeElement(u.element),o._scheduleUpdate()}),n.on("elements.changed",KN,function(u){if(!o.isOpen()){o._dirty=!0;return}u.elements.forEach(function(p){o._updateElement(p)}),o._scheduleUpdate()}),n.on("element.updateId",function(u){var p=u.element,f=u.newId;o._updateElementId(p,f)}),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(u){if(!o.isOpen()){o._dirty=!0;return}o._clear();var p=u.element||u.plane.rootElement;p.children.forEach(function(f){o._addElement(f)}),o._update()}),n.on("diagram.destroy",function(){o._updateTimeout&&(clearTimeout(o._updateTimeout),o._updateTimeout=null)})}In.$inject=["config.minimap","injector","eventBus","canvas","elementRegistry"],In.prototype._init=function(){var e=this._canvas,t=e.getContainer(),n=this._parent=document.createElement("div");St(n).add("djs-minimap").add("bio-theme-parent"),t.appendChild(n);var i=this._toggle=document.createElement("div");St(i).add("toggle"),n.appendChild(i);var r=this._map=document.createElement("div");St(r).add("map"),n.appendChild(r);var o=this._svg=Oe("svg");we(o,{width:"100%",height:"100%"}),ze(r,o);var a=this._elementsGroup=Oe("g");ze(o,a);var s=this._viewportGroup=Oe("g");ze(o,s);var c=this._viewport=Oe("rect");at(c).add("viewport"),ze(s,c),Le.bind(n,"mousedown",function(p){p.stopPropagation()});var l=this._viewportDom=document.createElement("div");St(l).add("viewport-dom"),this._parent.appendChild(l);var u=this._overlay=document.createElement("div");St(u).add("overlay"),this._parent.appendChild(u)},In.prototype._scheduleUpdate=function(){var e=this;if(this.isOpen()){var t=Fe(this._config.debounceDelay)?this._config.debounceDelay:XN,n=Fe(this._config.debounceSkipDelay)?this._config.debounceSkipDelay:ZN,i=Date.now();if(this._firstDebounceTime&&i-this._firstDebounceTime>=n){this._update();return}this._updateTimeout&&clearTimeout(this._updateTimeout),this._firstDebounceTime=this._firstDebounceTime||i,this._updateTimeout=setTimeout(function(){e._update()},t)}},In.prototype._rebuild=function(){this._clear();var e=this._canvas,t=e.getRootElement&&e.getRootElement();if(t&&t.children){var n=this;t.children.forEach(function(i){n._addElement(i)})}},In.prototype._update=function(){if(this.isOpen()){this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=null),this._firstDebounceTime=null;var e=this._canvas.viewbox(),t=e.inner,n=e.outer;if(RE(e)){var i,r,o,a,s=n.width-t.width,c=n.height-t.height;t.width<n.width?(i=t.x-s/2,o=n.width,t.x+t.width<n.width&&(i=Math.min(0,t.x))):(i=t.x,o=t.width),t.height<n.height?(r=t.y-c/2,a=n.height,t.y+t.height<n.height&&(r=Math.min(0,t.y))):(r=t.y,a=t.height),i=i-Zu,r=r-Zu,o=o+Zu*2,a=a+Zu*2,this._lastViewbox={x:i,y:r,width:o,height:a},we(this._svg,{viewBox:i+", "+r+", "+o+", "+a}),we(this._viewport,{x:e.x,y:e.y,width:e.width,height:e.height});var l=this._state._parentClientRect=this._parent.getBoundingClientRect(),u=this._viewport.getBoundingClientRect(),p={top:u.top-l.top,left:u.left-l.left,width:u.width,height:u.height};V(this._viewportDom.style,{top:p.top+"px",left:p.left+"px",width:p.width+"px",height:p.height+"px"});var f=SE(l,p);V(this._overlay.style,{clipPath:f})}}},In.prototype.open=function(){V(this._state,{isOpen:!0}),St(this._parent).add("open");var e=this._injector.get("translate",!1)||function(t){return t};En(this._toggle,"title",e("Close minimap")),this._dirty&&(this._rebuild(),this._dirty=!1),this._update(),this._eventBus.fire("minimap.toggle",{open:!0})},In.prototype.close=function(){V(this._state,{isOpen:!1}),St(this._parent).remove("open");var e=this._injector.get("translate",!1)||function(t){return t};En(this._toggle,"title",e("Open minimap")),this._eventBus.fire("minimap.toggle",{open:!1})},In.prototype.toggle=function(e){var t=this.isOpen();typeof e>"u"&&(e=!t),e!=t&&(e?this.open():this.close())},In.prototype.isOpen=function(){return this._state.isOpen},In.prototype._updateElement=function(e){try{e.parent!==void 0&&e.parent!==null&&(this._removeElement(e),this._addElement(e))}catch(t){console.warn("Minimap#_updateElement errored",t)}},In.prototype._updateElementId=function(e,t){try{var n=_t("#"+ko(this._prefixId(e.id)),this._elementsGroup);n&&(n.id=this._prefixId(t))}catch(i){console.warn("Minimap#_updateElementId errored",i)}},In.prototype.isOnActivePlane=function(e){var t=this._canvas;return t.findRoot?t.findRoot(e)===t.getRootElement():t.findPlane?t.findPlane(e)===t.getActivePlane():!0},In.prototype._addElement=function(e){var t=this;if(this._removeElement(e),!!this.isOnActivePlane(e)&&!e.hidden){var n,i,r,o=this._createElement(e),a=_t("#"+ko(this._prefixId(e.parent.id)),this._elementsGroup);if(o){var s=t$(e);return s!==-1?a?n$(o,a,s):this._elementsGroup.appendChild(o):this._elementsGroup.appendChild(o),QN(e)?(n=e.parent,i=0,r=0,typeof n.x<"u"&&typeof n.y<"u"&&(i=-n.x,r=-n.y),we(o,{transform:"translate("+i+" "+r+")"})):(i=e.x,r=e.y,a&&(n=e.parent,i-=n.x,r-=n.y),we(o,{transform:"translate("+i+" "+r+")"})),e.children&&e.children.length&&e.children.forEach(function(c){t._addElement(c)}),o}}},In.prototype._removeElement=function(e){var t=this._svg.getElementById(this._prefixId(e.id));t&&rn(t)},In.prototype._createElement=function(e){var t=this._elementRegistry.getGraphics(e),n;if(t&&(n=Fr(t),n)){var i=c$(sf(n));return we(i,{id:this._prefixId(e.id)}),i}},In.prototype._clear=function(){as(this._elementsGroup)},In.prototype._prefixId=function(e){return"djs-minimap-"+e+"-"+this._minimapId};function QN(e){return e.waypoints}function JN(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}}function Qu(e,t,n){var i=t.getBoundingClientRect(),r=e$(n,i.width/i.height),o=EE(e.x,0,i.width,r.x,r.x+r.width),a=EE(e.y,0,i.height,r.y,r.y+r.height);return{x:o,y:a}}function Jh(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 e$(e,t){var n=e.width/e.height,i=V({},{x:e.x,y:e.y,width:e.width,height:e.height});if(n>t){var r=i.width*(1/t),o=i.y-(r-i.height)/2;V(i,{y:o,height:r})}else if(n<t){var a=i.height*t,s=i.x-(a-i.width)/2;V(i,{x:s,width:a})}return i}function EE(e,t,n,i,r){var o=n-t,a=r-i;return(e-t)*a/o+i}function t$(e){var t=e.parent;return!t||!t.children?-1:t.children.indexOf(e)}function n$(e,t,n){var i=i$(t),r=i[n];r?t.insertBefore(e,r):t.appendChild(e)}function i$(e){return Array.from(e.childNodes).filter(function(t){return t.id})}function Ju(e){return e.width===0&&e.height===0}function r$(e,t){return e.x>t.left&&e.x<t.left+t.width&&e.y>t.top&&e.y<t.top+t.height}var o$=Math.sign||function(e){return e>=0?1:-1};function a$(e,t){var n=Math.log(e.min)/Math.log(10),i=Math.log(e.max)/Math.log(10),r=Math.abs(n)+Math.abs(i);return r/t}function s$(e,t){return Math.max(e.min,Math.min(e.max,t))}function SE(e,t){var n=[or(t.left,t.top),or(t.left+t.width,t.top),or(t.left+t.width,t.top+t.height),or(t.left,t.top+t.height),or(t.left,e.height),or(e.width,e.height),or(e.width,0),or(0,0),or(0,e.height),or(t.left,e.height)].join(", ");return"polygon("+n+")"}function or(e,t){return e+"px "+t+"px"}function RE(e){return Mr(e,function(t){return fn(t)?RE(t):Fe(t)&&isFinite(t)})}function em(e){return e.center?e.center:{x:e.clientX,y:e.clientY}}function c$(e){return os("[id]",e).forEach(function(t){t.remove()}),e}var l$={__init__:["minimap"],minimap:["type",In]};const CE={closed:"미니맵",open:"접기"};class ME{constructor(t,n,i){this.minimap=n,this.canvas=i,t.on(ph,()=>this.rebuild()),t.on("minimap.toggle",r=>this.retitle(r.open)),this.retitle(n.isOpen())}rebuild(){const t=this.minimap;if(!t.isOpen()){t._dirty=!0;return}t._rebuild(),t._update()}retitle(t){const n=this.canvas.getContainer().querySelector(".djs-minimap .toggle");n==null||n.setAttribute("title",t?CE.open:CE.closed)}}ui(ME,"$inject",["eventBus","minimap","canvas"]);const u$={__depends__:[l$],__init__:["minimapI18n"],minimapI18n:["type",ME]},p$=ge.defineComponent({__name:"BpmnModelerView",props:{xml:{}},emits:["ready","imported","import-error"],setup(e,{expose:t,emit:n}){const i=e,r=n,o=ge.ref();let a;async function s(l){if(!a)throw new Error("modeler not mounted");try{const{warnings:u}=await a.importXML(l),p=Ip(u);return r("imported",p),{warnings:p}}catch(u){throw r("import-error",u),u}}async function c(){if(!a)throw new Error("modeler not mounted");const{xml:l}=await a.saveXML({format:!0});return l??""}return ge.onMounted(async()=>{a=new rr({container:o.value,moddleExtensions:Cc,additionalModules:[S_,u$]}),i.xml&&await s(i.xml),r("ready")}),ge.watch(()=>i.xml,l=>{l&&a&&s(l)}),ge.onBeforeUnmount(()=>{a==null||a.destroy(),a=void 0}),t({importXml:s,saveXml:c,getModeler:()=>a}),(l,u)=>(ge.openBlock(),ge.createElementBlock("div",{ref_key:"container",ref:o,class:"bpmn-modeler-view"},null,512))}}),tm=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},f$=tm(p$,[["__scopeId","data-v-051be2be"]]),d$=["title","aria-expanded"],h$=["title","onClick"],m$={viewBox:"0 0 16 16",width:"13",height:"13","aria-hidden":"true"},g$={key:0,d:"M5.6 5.6l4.8 4.8M10.4 5.6l-4.8 4.8",stroke:"currentColor","stroke-width":"1.5"},y$={key:1,d:"M8 4.6v0.2M8 7v4.4",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round"},v$={key:0,class:"bwl-validation__body"},b$={key:0,class:"bwl-validation__empty"},x$={key:1,class:"bwl-validation__empty"},_$={key:2,class:"bwl-validation__list"},w$=["onClick"],E$={key:0,class:"bwl-validation__scope",title:"이번 변경이 만들거나 건드린 요소"},S$={class:"bwl-validation__msg"},R$=["title"],C$=tm(ge.defineComponent({__name:"BpmnValidationPanel",props:{controller:{}},setup(e){const n=e.controller,i=ge.computed(()=>v_(n.issues.value,n.describeElement)),r=ge.computed(()=>b_(i.value)),o=g=>Ta(g,n.changeScope.value),a=ge.computed(()=>uh(i.value,n.changeScope.value)),s=ge.ref({error:!0,warning:!0,info:!0}),c=ge.computed(()=>x_(i.value.filter(g=>s.value[g.severity]),n.changeScope.value)),l=ge.ref(!1),u=["error","warning","info"],p={error:"오류",warning:"경고",info:"정보"};function f(g){if(!l.value){l.value=!0;return}s.value[g]=!s.value[g]}function d(g){const h=g.targetRefs[0];h&&n.requestFocus(h)}return(g,h)=>(ge.openBlock(),ge.createElementBlock("section",{class:ge.normalizeClass(["bwl-validation",{"is-open":l.value}])},[ge.createElementVNode("header",{class:"bwl-validation__head",onClick:h[1]||(h[1]=y=>l.value=!l.value)},[ge.createElementVNode("button",{type:"button",class:"bwl-validation__toggle",title:l.value?"접기":"펼치기","aria-expanded":l.value},[(ge.openBlock(),ge.createElementBlock("svg",{class:ge.normalizeClass(["bwl-validation__chevron",{"is-open":l.value}]),viewBox:"0 0 16 16",width:"13",height:"13","aria-hidden":"true"},[...h[2]||(h[2]=[ge.createElementVNode("path",{d:"M6 3l5 5-5 5",fill:"none",stroke:"currentColor","stroke-width":"1.6"},null,-1)])],2)),h[3]||(h[3]=ge.createElementVNode("span",null,"검증",-1))],8,d$),ge.createElementVNode("div",{class:"bwl-validation__counts",onClick:h[0]||(h[0]=ge.withModifiers(()=>{},["stop"]))},[(ge.openBlock(),ge.createElementBlock(ge.Fragment,null,ge.renderList(u,y=>ge.createElementVNode("button",{key:y,type:"button",class:ge.normalizeClass(["bwl-validation__count",[`is-${y}`,{"is-off":!s.value[y]}]]),title:l.value?`${p[y]} ${s.value[y]?"숨기기":"보이기"}`:"검증 패널 펼치기",onClick:_=>f(y)},[(ge.openBlock(),ge.createElementBlock("svg",m$,[h[4]||(h[4]=ge.createElementVNode("circle",{cx:"8",cy:"8",r:"6.4",fill:"none",stroke:"currentColor","stroke-width":"1.5"},null,-1)),y==="error"?(ge.openBlock(),ge.createElementBlock("path",g$)):(ge.openBlock(),ge.createElementBlock("path",y$))])),ge.createElementVNode("span",null,ge.toDisplayString(r.value[y]),1)],10,h$)),64))])]),l.value?(ge.openBlock(),ge.createElementBlock("div",v$,[i.value.length===0?(ge.openBlock(),ge.createElementBlock("p",b$,"발견된 문제가 없습니다.")):c.value.length===0?(ge.openBlock(),ge.createElementBlock("p",x$," 선택한 심각도에 해당하는 항목이 없습니다. ")):(ge.openBlock(),ge.createElementBlock("ul",_$,[(ge.openBlock(!0),ge.createElementBlock(ge.Fragment,null,ge.renderList(c.value,y=>(ge.openBlock(),ge.createElementBlock("li",{key:y.key,class:ge.normalizeClass(["bwl-validation__item",[`is-${y.severity}`,{"is-clickable":y.targetRefs.length>0}]]),onClick:_=>d(y)},[h[5]||(h[5]=ge.createElementVNode("span",{class:"bwl-validation__dot","aria-hidden":"true"},null,-1)),a.value&&o(y)?(ge.openBlock(),ge.createElementBlock("span",E$,"이번 변경")):ge.createCommentVNode("",!0),ge.createElementVNode("span",S$,ge.toDisplayString(y.message),1),ge.createElementVNode("span",{class:"bwl-validation__cat",title:y.code},ge.toDisplayString(y.category),9,R$)],10,w$))),128))]))])):ge.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-60e8b1a9"]]),M$={key:0,class:"bwl-locale",role:"radiogroup","aria-label":"표시 언어"},A$=["aria-checked","title","data-locale","onClick"],P$={class:"bwl-locale__label"},T$={key:0,class:"bwl-locale__badge"},k$=tm(ge.defineComponent({__name:"BpmnDisplayLocaleSwitcher",props:{controller:{}},setup(e){const n=e.controller;function i(o){try{return new Intl.DisplayNames([o],{type:"language"}).of(o)??o}catch{return o}}const r=ge.computed(()=>{const o=n.i18n.value;return o?o.locales.map(a=>{const s=o.counts[a]??{untranslated:0,reviewRequested:0},c=a===o.designLocale?"설계 언어":"병기 언어";return{locale:a,label:i(a),active:a===o.displayLocale,design:a===o.designLocale,pending:s.untranslated+s.reviewRequested,title:`${c} — 미번역 ${s.untranslated} · 확인 요청 ${s.reviewRequested}`}}):[]});return(o,a)=>r.value.length?(ge.openBlock(),ge.createElementBlock("div",M$,[(ge.openBlock(!0),ge.createElementBlock(ge.Fragment,null,ge.renderList(r.value,s=>(ge.openBlock(),ge.createElementBlock("button",{key:s.locale,type:"button",role:"radio",class:ge.normalizeClass(["bwl-locale__item",{"is-active":s.active,"is-design":s.design}]),"aria-checked":s.active,title:s.title,"data-locale":s.locale,onClick:c=>ge.unref(n).setDisplayLocale(s.locale)},[ge.createElementVNode("span",P$,ge.toDisplayString(s.label),1),s.pending>0?(ge.openBlock(),ge.createElementBlock("span",T$,ge.toDisplayString(s.pending),1)):ge.createCommentVNode("",!0)],10,A$))),128))])):ge.createCommentVNode("",!0)}}),[["__scopeId","data-v-04311925"]]);Q.ADDABLE_FLOW_NODE_TYPES=dc,Q.APPLY_BPMN_OPS_SCHEMA=Q1,Q.BPMN_EVENT_DEFINITION_TYPES=mc,Q.BPMN_MODDLE_EXTENSIONS=Cc,Q.BWL_MODDLE_SCHEMA=mm,Q.BWL_NS=hm,Q.BWL_PREFIX=lp,Q.BWL_REVIEW_REQUEST_TYPE=yc,Q.BWL_SIDES=up,Q.BpmnDisplayLocaleSwitcher=k$,Q.BpmnModelerView=f$,Q.BpmnValidationPanel=C$,Q.EDITOR=ZC,Q.FLOW_LABEL_INDENT=Km,Q.GROUP_BORDER_MIN_RUN=Bp,Q.GROUP_BORDER_NEAR=ia,Q.HEADLESS_BPMN_MODULES=h_,Q.HEADLESS_TEXT_METRICS=ta,Q.I18N_DISPLAY_REDRAWN_EVENT=ph,Q.I18N_NS=L1,Q.I18N_PREFIX=xm,Q.I18N_REVIEW_REQUESTED_CLASS=w_,Q.I18N_TRANSLATION_TYPE=Xo,Q.I18N_UNTRANSLATED_CLASS=__,Q.I18nDisplay=fh,Q.I18nDisplayModule=S_,Q.IR_EVENT_DEFINITIONS=hc,Q.IR_FLOW_NODE_TYPES=po,Q.IR_TEXT_LOCALES=gc,Q.LABEL_FORK_MARGIN=Fp,Q.LABEL_SHAPE_MIN_DEPTH=sg,Q.SET_TRANSLATIONS_COMMAND=vp,Q.SEVERITY_ORDER=lh,Q.SYMBOLIC_OP_KINDS=_m,Q.SYMBOLIC_OP_SCHEMA=wm,Q.SetTranslationsHandler=bp,Q.TranslationCommands=_p,Q.TranslationCommandsModule=wp,Q.UNDO_EPISODE_COMMAND=pp,Q.UPDATE_TRANSLATION_COMMAND=xc,Q.UpdateTranslationHandler=yp,Q.applyBpmnOpBatch=ry,Q.applyBpmnOps=Xg,Q.applyLocaleBackfill=iM,Q.approximateTextWidth=na,Q.auditBpmnGeometry=ug,Q.auditBpmnGeometryXml=YR,Q.auditBpmnSemantics=ef,Q.auditBpmnSemanticsXml=FC,Q.auditGeometry=ht,Q.auditTargetsOf=hi,Q.axisSegmentsOf=vn,Q.blackBoxNameRect=Np,Q.buildBpmnOpBatch=qC,Q.buildRegistryIndex=fg,Q.containerBoundarySegments=aa,Q.countBySeverity=b_,Q.createBpmnEditorController=QC,Q.createBpmnModdle=Hm,Q.createHeadlessBpmnModeler=ED,Q.crossedShapesOf=bn,Q.crossingCost=di,Q.describeProcess=ey,Q.describeProcessXml=DC,Q.diffBpmnElements=iy,Q.diffBpmnElementsXml=WC,Q.documentLocalesOf=Ka,Q.edgeCrossCount=ts,Q.edgeCrossingPairsOf=Oc,Q.edgeCrossingStatsOf=ng,Q.executeAsUndoEpisode=ym,Q.followMovedEdgeLabels=Dg,Q.forwardThreePointCandidates=Lc,Q.geometryFindingKey=pt,Q.inferScriptLocale=nf,Q.installHeadlessBpmnDom=Gm,Q.irEventDefinitionOf=cp,Q.isAddableFlowNodeType=fm,Q.isChangeScopeMixed=uh,Q.isEdgeOverlapFinding=$p,Q.isInChangeScope=Ta,Q.isIrEventDefinition=dm,Q.isIrFlowNodeType=pm,Q.isIrTextLocale=S1,Q.labelRectsOf=vo,Q.labelShapeDepth=cg,Q.labelSlot=ho,Q.lineCrossesLabel=Vi,Q.lineThroughLabel=Zm,Q.lineThroughShapeLabel=ag,Q.loadBpmnXml=ea,Q.localeTextsOf=gp,Q.lowerOps=Yg,Q.oppositeOverlapCount=LR,Q.oppositeOverlapOf=Ym,Q.planBackEdgeBoundaryClearance=_g,Q.planCrossPoolRoute=vg,Q.planEdgeRepair=Gp,Q.planLabelLineClearance=Yp,Q.planLabelPlacement=Tg,Q.planLocaleBackfill=nM,Q.planMiddleSegmentShifts=hg,Q.planOppositeOverlapRepair=Eg,Q.planSegmentDetours=Dc,Q.planShapeLabelClearance=Bg,Q.redockIntroducedDetachedEndpoints=$g,Q.repairIntroducedBoundaryHugging=wg,Q.repairIntroducedCrossings=Vp,Q.repairIntroducedEdgeCrossings=gg,Q.repairIntroducedFakeMerges=Rg,Q.repairIntroducedLabelLines=Lg,Q.repairIntroducedOppositeOverlaps=Pg,Q.repairIntroducedShapeLabelLines=Ng,Q.repairIntroducedSharedSegmentLabels=Ig,Q.rerouteIntroducedCrossPoolEdges=bg,Q.resolverServicesOf=Gg,Q.reviewRequestValuesOf=xp,Q.reviewRequestsOf=Pr,Q.rootLangOf=mp,Q.saveBpmnXml=wR,Q.sceneCrossingCost=tg,Q.sceneFromDefinitions=lg,Q.sceneFromRegistry=Ue,Q.segmentShapeClearance=es,Q.shapesUnderLabel=ns,Q.sharedSegmentUnderLabel=kc,Q.sharedSpansOf=Tc,Q.sortPanelIssues=x_,Q.toPanelIssues=v_,Q.touchedElements=UC,Q.translationLocale=Nn,Q.translationsOf=Zo,Q.unreadableOverlapCount=fi,Q.unreadableOverlapOf=ra,Q.validateOps=zg,Q.warningMessages=Ip,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})}));
343
+ </div>`,We.RESULT_HTML='<div class="djs-search-result"></div>',We.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>',We.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';const NN={__depends__:[bs,pu,Ri],searchPad:["type",We]};function Qh(e,t,n,i){this._elementRegistry=e,this._canvas=n,this._search=i,t.registerProvider(this)}Qh.$inject=["elementRegistry","searchPad","canvas","search"],Qh.prototype.find=function(e){var t=this._canvas.getRootElements(),n=this._elementRegistry.filter(function(i){return!Je(i)&&!t.includes(i)});return this._search(n.map(i=>({element:i,label:yi(i),id:i.id})),e,{keys:["label","id"]}).map($N)};function $N(e){const{item:{element:t},tokens:n}=e;return{element:t,primaryTokens:n.label,secondaryTokens:n.id}}const FN={__depends__:[NN,kw],__init__:["bpmnSearch"],bpmnSearch:["type",Qh]},jN="M44.7648 11.3263L36.9892 2.64074C36.0451 1.58628 34.5651 0.988708 33.1904 0.988708H5.98667C3.22688 0.988708 0.989624 3.34892 0.989624 6.26039V55.0235C0.989624 57.9349 3.22688 60.2952 5.98667 60.2952H40.966C43.7257 60.2952 45.963 57.9349 45.963 55.0235V14.9459C45.963 13.5998 45.6407 12.3048 44.7648 11.3263Z",HN="M1.03845 48.1347C1.03845 49.3511 1.07295 50.758 1.38342 52.064C1.69949 53.3938 2.32428 54.7154 3.56383 55.6428C6.02533 57.4841 10.1161 58.7685 14.8212 59.6067C19.5772 60.4538 25.1388 60.8738 30.6831 60.8738C36.2276 60.8738 41.7891 60.4538 46.545 59.6067C51.2504 58.7687 55.3412 57.4842 57.8028 55.6429C59.0424 54.7156 59.6673 53.3938 59.9834 52.064C60.2938 50.7579 60.3285 49.351 60.3285 48.1344V13.8415C60.3285 12.6249 60.2938 11.218 59.9834 9.91171C59.6673 8.58194 59.0423 7.2602 57.8027 6.33294C55.341 4.49168 51.2503 3.20723 46.545 2.36914C41.7891 1.522 36.2276 1.10204 30.6831 1.10205C25.1388 1.10206 19.5772 1.52206 14.8213 2.36923C10.1162 3.20734 6.02543 4.49183 3.5639 6.33314C2.32433 7.26038 1.69951 8.58206 1.38343 9.91181C1.07295 11.2179 1.03845 12.6247 1.03845 13.8411V48.1347Z",zN={width:36,height:50},GN={width:50,height:50};function xE(e,t,n){return Oe("path",{d:e,strokeWidth:2,transform:`translate(${t.x}, ${t.y})`,...n})}const ki=5;function Xu(e,t){this._styles=t,e.registerProvider(this)}Xu.$inject=["outline","styles"],Xu.prototype.getOutline=function(e){const t=this._styles.cls("djs-outline",["no-fill"]);var n;if(iP(e))return n=Oe("rect"),we(n,V({x:-ki,y:-ki,rx:4,width:e.width+ki*2,height:e.height+ki*2},t)),n;if(!Je(e))return M(e,"bpmn:Gateway")?(n=Oe("rect"),V(n.style,{"transform-box":"fill-box",transform:"rotate(45deg)","transform-origin":"center"}),we(n,V({x:2,y:2,rx:4,width:e.width-4,height:e.height-4},t))):tt(e,["bpmn:Task","bpmn:SubProcess","bpmn:Group","bpmn:CallActivity"])?(n=Oe("rect"),we(n,V({x:-ki,y:-ki,rx:14,width:e.width+ki*2,height:e.height+ki*2},t))):M(e,"bpmn:EndEvent")?(n=Oe("circle"),we(n,V({cx:e.width/2,cy:e.height/2,r:e.width/2+ki+1},t))):M(e,"bpmn:Event")?(n=Oe("circle"),we(n,V({cx:e.width/2,cy:e.height/2,r:e.width/2+ki},t))):M(e,"bpmn:DataObjectReference")&&_E(e,"bpmn:DataObjectReference")?n=xE(jN,{x:-6,y:-6},t):M(e,"bpmn:DataStoreReference")&&_E(e,"bpmn:DataStoreReference")&&(n=xE(HN,{x:-6,y:-6},t)),n},Xu.prototype.updateOutline=function(e,t){if(!Je(e))return tt(e,["bpmn:SubProcess","bpmn:Group"])?(we(t,{width:e.width+ki*2,height:e.height+ki*2}),!0):!!tt(e,["bpmn:Event","bpmn:Gateway","bpmn:DataStoreReference","bpmn:DataObjectReference"])};function _E(e,t){var n;return t==="bpmn:DataObjectReference"?n=zN:t==="bpmn:DataStoreReference"&&(n=GN),e.width===n.width&&e.height===n.height}const VN={__depends__:[zh],__init__:["outlineProvider"],outlineProvider:["type",Xu]};var WN='<?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>';function rr(e){da.call(this,e)}Ce(rr,da),rr.Viewer=eo,rr.NavigatedViewer=Ws,rr.prototype.createDiagram=function(){return this.importXML(WN)},rr.prototype._interactionModules=[L_,B_,F_],rr.prototype._modelingModules=[qL,su,QL,XL,pI,Nh,yI,zI,hx,Fl,UI,KI,pB,dB,hB,bB,kB,BB,rh,GB,ZB,cN,uN,I0,IN,FN,VN],rr.prototype._modules=[].concat(eo.prototype._modules,rr.prototype._interactionModules,rr.prototype._modelingModules);var Zu=50,UN=new Mo,wE={min:.2,max:4},qN=10,YN=.1,KN=250,XN=100,ZN=2e3;function In(e,t,n,i,r){var o=this;this._canvas=i,this._elementRegistry=r,this._eventBus=n,this._injector=t,this._config=e||{},this._updateTimeout=null,this._firstDebounceTime=null,this._dirty=!1,this._state={isOpen:void 0,isDragging:!1,initialDragPosition:null,offsetViewport:null,cachedViewbox:null,dragger:null,svgClientRect:null,parentClientRect:null,zoomDelta:0},this._minimapId=UN.next(),this._init(),this.toggle(this._config.open||!1);function a(u){(!o._state._svgClientRect||Ju(o._state._svgClientRect))&&(o._state._svgClientRect=o._svg.getBoundingClientRect());var p=Qu({x:u.x-o._state._svgClientRect.left,y:u.y-o._state._svgClientRect.top},o._svg,o._lastViewbox);Jh(p,o._canvas),o._update()}function s(u){return function(f){var d=em(f);(!o._state._svgClientRect||Ju(o._state._svgClientRect))&&(o._state._svgClientRect=o._svg.getBoundingClientRect()),u&&a(d);var g=Qu({x:d.x-o._state._svgClientRect.left,y:d.y-o._state._svgClientRect.top},o._svg,o._lastViewbox),h=i.viewbox(),y=JN(g,h),_=o._viewportDom.getBoundingClientRect(),x={x:d.x-_.left+1,y:d.y-_.top+1};V(o._state,{cachedViewbox:h,initialDragPosition:{x:d.x,y:d.y},isDragging:!0,offsetViewport:y,offsetViewportDom:x,viewportClientRect:o._viewport.getBoundingClientRect(),parentClientRect:o._parent.getBoundingClientRect()}),Le.bind(document,"mousemove",c),Le.bind(document,"mouseup",l)}}function c(u){var p=em(u);if(o._state.isDragging){(!o._state._svgClientRect||Ju(o._state._svgClientRect))&&(o._state._svgClientRect=o._svg.getBoundingClientRect());var f=o._state.offsetViewportDom,d=o._state.viewportClientRect,g=o._state.parentClientRect;V(o._viewportDom.style,{top:p.y-f.y-g.top+"px",left:p.x-f.x-g.left+"px"});var h=SE(g,{top:p.y-f.y-g.top,left:p.x-f.x-g.left,width:d.width,height:d.height});V(o._overlay.style,{clipPath:h});var y=Qu({x:p.x-o._state._svgClientRect.left,y:p.y-o._state._svgClientRect.top},o._svg,o._lastViewbox);Jh({x:y.x-o._state.offsetViewport.x,y:y.y-o._state.offsetViewport.y},o._canvas)}}function l(u){var p=em(u);o._state.isDragging&&(o._state.initialDragPosition.x===p.x&&o._state.initialDragPosition.y===p.y&&a(u),o._update(),V(o._state,{cachedViewbox:null,initialDragPosition:null,isDragging:!1,offsetViewport:null,offsetViewportDom:null}),Le.unbind(document,"mousemove",c),Le.unbind(document,"mouseup",l))}Le.bind(this._viewportDom,"mousedown",s(!1)),Le.bind(this._svg,"mousedown",s(!0)),Le.bind(this._parent,"wheel",function(u){if(u.preventDefault(),u.stopPropagation(),!!u.ctrlKey&&((!o._state._svgClientRect||Ju(o._state._svgClientRect))&&(o._state._svgClientRect=o._svg.getBoundingClientRect()),!!r$(u,o._state._svgClientRect))){var p=u.deltaMode===0?.02:.32,f=Math.sqrt(Math.pow(u.deltaY,2)+Math.pow(u.deltaX,2))*o$(u.deltaY)*-p;if(o._state.zoomDelta+=f,Math.abs(o._state.zoomDelta)>YN){var d=f>0?1:-1,g=Math.log(i.zoom())/Math.log(10),h=a$(wE,qN*2),y=Math.round(g/h)*h;y+=h*d;var _=Math.pow(10,y);i.zoom(s$(wE,_),x),o._state.zoomDelta=0;var x=Qu({x:u.clientX-o._state._svgClientRect.left,y:u.clientY-o._state._svgClientRect.top},o._svg,o._lastViewbox);Jh(x,o._canvas),o._update()}}}),Le.bind(this._toggle,"click",function(u){u.preventDefault(),u.stopPropagation(),o.toggle()}),n.on(["shape.added","connection.added"],function(u){if(!o.isOpen()){o._dirty=!0;return}o._addElement(u.element),o._scheduleUpdate()}),n.on(["shape.removed","connection.removed"],function(u){if(!o.isOpen()){o._dirty=!0;return}o._removeElement(u.element),o._scheduleUpdate()}),n.on("elements.changed",KN,function(u){if(!o.isOpen()){o._dirty=!0;return}u.elements.forEach(function(p){o._updateElement(p)}),o._scheduleUpdate()}),n.on("element.updateId",function(u){var p=u.element,f=u.newId;o._updateElementId(p,f)}),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(u){if(!o.isOpen()){o._dirty=!0;return}o._clear();var p=u.element||u.plane.rootElement;p.children.forEach(function(f){o._addElement(f)}),o._update()}),n.on("diagram.destroy",function(){o._updateTimeout&&(clearTimeout(o._updateTimeout),o._updateTimeout=null)})}In.$inject=["config.minimap","injector","eventBus","canvas","elementRegistry"],In.prototype._init=function(){var e=this._canvas,t=e.getContainer(),n=this._parent=document.createElement("div");St(n).add("djs-minimap").add("bio-theme-parent"),t.appendChild(n);var i=this._toggle=document.createElement("div");St(i).add("toggle"),n.appendChild(i);var r=this._map=document.createElement("div");St(r).add("map"),n.appendChild(r);var o=this._svg=Oe("svg");we(o,{width:"100%",height:"100%"}),ze(r,o);var a=this._elementsGroup=Oe("g");ze(o,a);var s=this._viewportGroup=Oe("g");ze(o,s);var c=this._viewport=Oe("rect");at(c).add("viewport"),ze(s,c),Le.bind(n,"mousedown",function(p){p.stopPropagation()});var l=this._viewportDom=document.createElement("div");St(l).add("viewport-dom"),this._parent.appendChild(l);var u=this._overlay=document.createElement("div");St(u).add("overlay"),this._parent.appendChild(u)},In.prototype._scheduleUpdate=function(){var e=this;if(this.isOpen()){var t=Fe(this._config.debounceDelay)?this._config.debounceDelay:XN,n=Fe(this._config.debounceSkipDelay)?this._config.debounceSkipDelay:ZN,i=Date.now();if(this._firstDebounceTime&&i-this._firstDebounceTime>=n){this._update();return}this._updateTimeout&&clearTimeout(this._updateTimeout),this._firstDebounceTime=this._firstDebounceTime||i,this._updateTimeout=setTimeout(function(){e._update()},t)}},In.prototype._rebuild=function(){this._clear();var e=this._canvas,t=e.getRootElement&&e.getRootElement();if(t&&t.children){var n=this;t.children.forEach(function(i){n._addElement(i)})}},In.prototype._update=function(){if(this.isOpen()){this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=null),this._firstDebounceTime=null;var e=this._canvas.viewbox(),t=e.inner,n=e.outer;if(RE(e)){var i,r,o,a,s=n.width-t.width,c=n.height-t.height;t.width<n.width?(i=t.x-s/2,o=n.width,t.x+t.width<n.width&&(i=Math.min(0,t.x))):(i=t.x,o=t.width),t.height<n.height?(r=t.y-c/2,a=n.height,t.y+t.height<n.height&&(r=Math.min(0,t.y))):(r=t.y,a=t.height),i=i-Zu,r=r-Zu,o=o+Zu*2,a=a+Zu*2,this._lastViewbox={x:i,y:r,width:o,height:a},we(this._svg,{viewBox:i+", "+r+", "+o+", "+a}),we(this._viewport,{x:e.x,y:e.y,width:e.width,height:e.height});var l=this._state._parentClientRect=this._parent.getBoundingClientRect(),u=this._viewport.getBoundingClientRect(),p={top:u.top-l.top,left:u.left-l.left,width:u.width,height:u.height};V(this._viewportDom.style,{top:p.top+"px",left:p.left+"px",width:p.width+"px",height:p.height+"px"});var f=SE(l,p);V(this._overlay.style,{clipPath:f})}}},In.prototype.open=function(){V(this._state,{isOpen:!0}),St(this._parent).add("open");var e=this._injector.get("translate",!1)||function(t){return t};En(this._toggle,"title",e("Close minimap")),this._dirty&&(this._rebuild(),this._dirty=!1),this._update(),this._eventBus.fire("minimap.toggle",{open:!0})},In.prototype.close=function(){V(this._state,{isOpen:!1}),St(this._parent).remove("open");var e=this._injector.get("translate",!1)||function(t){return t};En(this._toggle,"title",e("Open minimap")),this._eventBus.fire("minimap.toggle",{open:!1})},In.prototype.toggle=function(e){var t=this.isOpen();typeof e>"u"&&(e=!t),e!=t&&(e?this.open():this.close())},In.prototype.isOpen=function(){return this._state.isOpen},In.prototype._updateElement=function(e){try{e.parent!==void 0&&e.parent!==null&&(this._removeElement(e),this._addElement(e))}catch(t){console.warn("Minimap#_updateElement errored",t)}},In.prototype._updateElementId=function(e,t){try{var n=_t("#"+ko(this._prefixId(e.id)),this._elementsGroup);n&&(n.id=this._prefixId(t))}catch(i){console.warn("Minimap#_updateElementId errored",i)}},In.prototype.isOnActivePlane=function(e){var t=this._canvas;return t.findRoot?t.findRoot(e)===t.getRootElement():t.findPlane?t.findPlane(e)===t.getActivePlane():!0},In.prototype._addElement=function(e){var t=this;if(this._removeElement(e),!!this.isOnActivePlane(e)&&!e.hidden){var n,i,r,o=this._createElement(e),a=_t("#"+ko(this._prefixId(e.parent.id)),this._elementsGroup);if(o){var s=t$(e);return s!==-1?a?n$(o,a,s):this._elementsGroup.appendChild(o):this._elementsGroup.appendChild(o),QN(e)?(n=e.parent,i=0,r=0,typeof n.x<"u"&&typeof n.y<"u"&&(i=-n.x,r=-n.y),we(o,{transform:"translate("+i+" "+r+")"})):(i=e.x,r=e.y,a&&(n=e.parent,i-=n.x,r-=n.y),we(o,{transform:"translate("+i+" "+r+")"})),e.children&&e.children.length&&e.children.forEach(function(c){t._addElement(c)}),o}}},In.prototype._removeElement=function(e){var t=this._svg.getElementById(this._prefixId(e.id));t&&rn(t)},In.prototype._createElement=function(e){var t=this._elementRegistry.getGraphics(e),n;if(t&&(n=Fr(t),n)){var i=c$(sf(n));return we(i,{id:this._prefixId(e.id)}),i}},In.prototype._clear=function(){as(this._elementsGroup)},In.prototype._prefixId=function(e){return"djs-minimap-"+e+"-"+this._minimapId};function QN(e){return e.waypoints}function JN(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}}function Qu(e,t,n){var i=t.getBoundingClientRect(),r=e$(n,i.width/i.height),o=EE(e.x,0,i.width,r.x,r.x+r.width),a=EE(e.y,0,i.height,r.y,r.y+r.height);return{x:o,y:a}}function Jh(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 e$(e,t){var n=e.width/e.height,i=V({},{x:e.x,y:e.y,width:e.width,height:e.height});if(n>t){var r=i.width*(1/t),o=i.y-(r-i.height)/2;V(i,{y:o,height:r})}else if(n<t){var a=i.height*t,s=i.x-(a-i.width)/2;V(i,{x:s,width:a})}return i}function EE(e,t,n,i,r){var o=n-t,a=r-i;return(e-t)*a/o+i}function t$(e){var t=e.parent;return!t||!t.children?-1:t.children.indexOf(e)}function n$(e,t,n){var i=i$(t),r=i[n];r?t.insertBefore(e,r):t.appendChild(e)}function i$(e){return Array.from(e.childNodes).filter(function(t){return t.id})}function Ju(e){return e.width===0&&e.height===0}function r$(e,t){return e.x>t.left&&e.x<t.left+t.width&&e.y>t.top&&e.y<t.top+t.height}var o$=Math.sign||function(e){return e>=0?1:-1};function a$(e,t){var n=Math.log(e.min)/Math.log(10),i=Math.log(e.max)/Math.log(10),r=Math.abs(n)+Math.abs(i);return r/t}function s$(e,t){return Math.max(e.min,Math.min(e.max,t))}function SE(e,t){var n=[or(t.left,t.top),or(t.left+t.width,t.top),or(t.left+t.width,t.top+t.height),or(t.left,t.top+t.height),or(t.left,e.height),or(e.width,e.height),or(e.width,0),or(0,0),or(0,e.height),or(t.left,e.height)].join(", ");return"polygon("+n+")"}function or(e,t){return e+"px "+t+"px"}function RE(e){return Mr(e,function(t){return fn(t)?RE(t):Fe(t)&&isFinite(t)})}function em(e){return e.center?e.center:{x:e.clientX,y:e.clientY}}function c$(e){return os("[id]",e).forEach(function(t){t.remove()}),e}var l$={__init__:["minimap"],minimap:["type",In]};const CE={closed:"미니맵",open:"접기"};class ME{constructor(t,n,i){this.minimap=n,this.canvas=i,t.on(ph,()=>this.rebuild()),t.on("minimap.toggle",r=>this.retitle(r.open)),this.retitle(n.isOpen())}rebuild(){const t=this.minimap;if(!t.isOpen()){t._dirty=!0;return}t._rebuild(),t._update()}retitle(t){const n=this.canvas.getContainer().querySelector(".djs-minimap .toggle");n==null||n.setAttribute("title",t?CE.open:CE.closed)}}ui(ME,"$inject",["eventBus","minimap","canvas"]);const u$={__depends__:[l$],__init__:["minimapI18n"],minimapI18n:["type",ME]},p$=ge.defineComponent({__name:"BpmnModelerView",props:{xml:{}},emits:["ready","imported","import-error"],setup(e,{expose:t,emit:n}){const i=e,r=n,o=ge.ref();let a;async function s(l){if(!a)throw new Error("modeler not mounted");try{const{warnings:u}=await a.importXML(l),p=Ip(u);return r("imported",p),{warnings:p}}catch(u){throw r("import-error",u),u}}async function c(){if(!a)throw new Error("modeler not mounted");const{xml:l}=await a.saveXML({format:!0});return l??""}return ge.onMounted(async()=>{a=new rr({container:o.value,moddleExtensions:Cc,additionalModules:[S_,u$]}),i.xml&&await s(i.xml),r("ready")}),ge.watch(()=>i.xml,l=>{l&&a&&s(l)}),ge.onBeforeUnmount(()=>{a==null||a.destroy(),a=void 0}),t({importXml:s,saveXml:c,getModeler:()=>a}),(l,u)=>(ge.openBlock(),ge.createElementBlock("div",{ref_key:"container",ref:o,class:"bpmn-modeler-view"},null,512))}}),tm=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},f$=tm(p$,[["__scopeId","data-v-7847e007"]]),d$=["title","aria-expanded"],h$=["title","onClick"],m$={viewBox:"0 0 16 16",width:"13",height:"13","aria-hidden":"true"},g$={key:0,d:"M5.6 5.6l4.8 4.8M10.4 5.6l-4.8 4.8",stroke:"currentColor","stroke-width":"1.5"},y$={key:1,d:"M8 4.6v0.2M8 7v4.4",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round"},v$={key:0,class:"bwl-validation__body"},b$={key:0,class:"bwl-validation__empty"},x$={key:1,class:"bwl-validation__empty"},_$={key:2,class:"bwl-validation__list"},w$=["onClick"],E$={key:0,class:"bwl-validation__scope",title:"이번 변경이 만들거나 건드린 요소"},S$={class:"bwl-validation__msg"},R$=["title"],C$=tm(ge.defineComponent({__name:"BpmnValidationPanel",props:{controller:{}},setup(e){const n=e.controller,i=ge.computed(()=>v_(n.issues.value,n.describeElement)),r=ge.computed(()=>b_(i.value)),o=g=>Ta(g,n.changeScope.value),a=ge.computed(()=>uh(i.value,n.changeScope.value)),s=ge.ref({error:!0,warning:!0,info:!0}),c=ge.computed(()=>x_(i.value.filter(g=>s.value[g.severity]),n.changeScope.value)),l=ge.ref(!1),u=["error","warning","info"],p={error:"오류",warning:"경고",info:"정보"};function f(g){if(!l.value){l.value=!0;return}s.value[g]=!s.value[g]}function d(g){const h=g.targetRefs[0];h&&n.requestFocus(h)}return(g,h)=>(ge.openBlock(),ge.createElementBlock("section",{class:ge.normalizeClass(["bwl-validation",{"is-open":l.value}])},[ge.createElementVNode("header",{class:"bwl-validation__head",onClick:h[1]||(h[1]=y=>l.value=!l.value)},[ge.createElementVNode("button",{type:"button",class:"bwl-validation__toggle",title:l.value?"접기":"펼치기","aria-expanded":l.value},[(ge.openBlock(),ge.createElementBlock("svg",{class:ge.normalizeClass(["bwl-validation__chevron",{"is-open":l.value}]),viewBox:"0 0 16 16",width:"13",height:"13","aria-hidden":"true"},[...h[2]||(h[2]=[ge.createElementVNode("path",{d:"M6 3l5 5-5 5",fill:"none",stroke:"currentColor","stroke-width":"1.6"},null,-1)])],2)),h[3]||(h[3]=ge.createElementVNode("span",null,"검증",-1))],8,d$),ge.createElementVNode("div",{class:"bwl-validation__counts",onClick:h[0]||(h[0]=ge.withModifiers(()=>{},["stop"]))},[(ge.openBlock(),ge.createElementBlock(ge.Fragment,null,ge.renderList(u,y=>ge.createElementVNode("button",{key:y,type:"button",class:ge.normalizeClass(["bwl-validation__count",[`is-${y}`,{"is-off":!s.value[y]}]]),title:l.value?`${p[y]} ${s.value[y]?"숨기기":"보이기"}`:"검증 패널 펼치기",onClick:_=>f(y)},[(ge.openBlock(),ge.createElementBlock("svg",m$,[h[4]||(h[4]=ge.createElementVNode("circle",{cx:"8",cy:"8",r:"6.4",fill:"none",stroke:"currentColor","stroke-width":"1.5"},null,-1)),y==="error"?(ge.openBlock(),ge.createElementBlock("path",g$)):(ge.openBlock(),ge.createElementBlock("path",y$))])),ge.createElementVNode("span",null,ge.toDisplayString(r.value[y]),1)],10,h$)),64))])]),l.value?(ge.openBlock(),ge.createElementBlock("div",v$,[i.value.length===0?(ge.openBlock(),ge.createElementBlock("p",b$,"발견된 문제가 없습니다.")):c.value.length===0?(ge.openBlock(),ge.createElementBlock("p",x$," 선택한 심각도에 해당하는 항목이 없습니다. ")):(ge.openBlock(),ge.createElementBlock("ul",_$,[(ge.openBlock(!0),ge.createElementBlock(ge.Fragment,null,ge.renderList(c.value,y=>(ge.openBlock(),ge.createElementBlock("li",{key:y.key,class:ge.normalizeClass(["bwl-validation__item",[`is-${y.severity}`,{"is-clickable":y.targetRefs.length>0}]]),onClick:_=>d(y)},[h[5]||(h[5]=ge.createElementVNode("span",{class:"bwl-validation__dot","aria-hidden":"true"},null,-1)),a.value&&o(y)?(ge.openBlock(),ge.createElementBlock("span",E$,"이번 변경")):ge.createCommentVNode("",!0),ge.createElementVNode("span",S$,ge.toDisplayString(y.message),1),ge.createElementVNode("span",{class:"bwl-validation__cat",title:y.code},ge.toDisplayString(y.category),9,R$)],10,w$))),128))]))])):ge.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-60e8b1a9"]]),M$={key:0,class:"bwl-locale",role:"radiogroup","aria-label":"표시 언어"},A$=["aria-checked","title","data-locale","onClick"],P$={class:"bwl-locale__label"},T$={key:0,class:"bwl-locale__badge"},k$=tm(ge.defineComponent({__name:"BpmnDisplayLocaleSwitcher",props:{controller:{}},setup(e){const n=e.controller;function i(o){try{return new Intl.DisplayNames([o],{type:"language"}).of(o)??o}catch{return o}}const r=ge.computed(()=>{const o=n.i18n.value;return o?o.locales.map(a=>{const s=o.counts[a]??{untranslated:0,reviewRequested:0},c=a===o.designLocale?"설계 언어":"병기 언어";return{locale:a,label:i(a),active:a===o.displayLocale,design:a===o.designLocale,pending:s.untranslated+s.reviewRequested,title:`${c} — 미번역 ${s.untranslated} · 확인 요청 ${s.reviewRequested}`}}):[]});return(o,a)=>r.value.length?(ge.openBlock(),ge.createElementBlock("div",M$,[(ge.openBlock(!0),ge.createElementBlock(ge.Fragment,null,ge.renderList(r.value,s=>(ge.openBlock(),ge.createElementBlock("button",{key:s.locale,type:"button",role:"radio",class:ge.normalizeClass(["bwl-locale__item",{"is-active":s.active,"is-design":s.design}]),"aria-checked":s.active,title:s.title,"data-locale":s.locale,onClick:c=>ge.unref(n).setDisplayLocale(s.locale)},[ge.createElementVNode("span",P$,ge.toDisplayString(s.label),1),s.pending>0?(ge.openBlock(),ge.createElementBlock("span",T$,ge.toDisplayString(s.pending),1)):ge.createCommentVNode("",!0)],10,A$))),128))])):ge.createCommentVNode("",!0)}}),[["__scopeId","data-v-04311925"]]);Q.ADDABLE_FLOW_NODE_TYPES=dc,Q.APPLY_BPMN_OPS_SCHEMA=Q1,Q.BPMN_EVENT_DEFINITION_TYPES=mc,Q.BPMN_MODDLE_EXTENSIONS=Cc,Q.BWL_MODDLE_SCHEMA=mm,Q.BWL_NS=hm,Q.BWL_PREFIX=lp,Q.BWL_REVIEW_REQUEST_TYPE=yc,Q.BWL_SIDES=up,Q.BpmnDisplayLocaleSwitcher=k$,Q.BpmnModelerView=f$,Q.BpmnValidationPanel=C$,Q.EDITOR=ZC,Q.FLOW_LABEL_INDENT=Km,Q.GROUP_BORDER_MIN_RUN=Bp,Q.GROUP_BORDER_NEAR=ia,Q.HEADLESS_BPMN_MODULES=h_,Q.HEADLESS_TEXT_METRICS=ta,Q.I18N_DISPLAY_REDRAWN_EVENT=ph,Q.I18N_NS=L1,Q.I18N_PREFIX=xm,Q.I18N_REVIEW_REQUESTED_CLASS=w_,Q.I18N_TRANSLATION_TYPE=Xo,Q.I18N_UNTRANSLATED_CLASS=__,Q.I18nDisplay=fh,Q.I18nDisplayModule=S_,Q.IR_EVENT_DEFINITIONS=hc,Q.IR_FLOW_NODE_TYPES=po,Q.IR_TEXT_LOCALES=gc,Q.LABEL_FORK_MARGIN=Fp,Q.LABEL_SHAPE_MIN_DEPTH=sg,Q.SET_TRANSLATIONS_COMMAND=vp,Q.SEVERITY_ORDER=lh,Q.SYMBOLIC_OP_KINDS=_m,Q.SYMBOLIC_OP_SCHEMA=wm,Q.SetTranslationsHandler=bp,Q.TranslationCommands=_p,Q.TranslationCommandsModule=wp,Q.UNDO_EPISODE_COMMAND=pp,Q.UPDATE_TRANSLATION_COMMAND=xc,Q.UpdateTranslationHandler=yp,Q.applyBpmnOpBatch=ry,Q.applyBpmnOps=Xg,Q.applyLocaleBackfill=iM,Q.approximateTextWidth=na,Q.auditBpmnGeometry=ug,Q.auditBpmnGeometryXml=YR,Q.auditBpmnSemantics=ef,Q.auditBpmnSemanticsXml=FC,Q.auditGeometry=ht,Q.auditTargetsOf=hi,Q.axisSegmentsOf=vn,Q.blackBoxNameRect=Np,Q.buildBpmnOpBatch=qC,Q.buildRegistryIndex=fg,Q.containerBoundarySegments=aa,Q.countBySeverity=b_,Q.createBpmnEditorController=QC,Q.createBpmnModdle=Hm,Q.createHeadlessBpmnModeler=ED,Q.crossedShapesOf=bn,Q.crossingCost=di,Q.describeProcess=ey,Q.describeProcessXml=DC,Q.diffBpmnElements=iy,Q.diffBpmnElementsXml=WC,Q.documentLocalesOf=Ka,Q.edgeCrossCount=ts,Q.edgeCrossingPairsOf=Oc,Q.edgeCrossingStatsOf=ng,Q.executeAsUndoEpisode=ym,Q.followMovedEdgeLabels=Dg,Q.forwardThreePointCandidates=Lc,Q.geometryFindingKey=pt,Q.inferScriptLocale=nf,Q.installHeadlessBpmnDom=Gm,Q.irEventDefinitionOf=cp,Q.isAddableFlowNodeType=fm,Q.isChangeScopeMixed=uh,Q.isEdgeOverlapFinding=$p,Q.isInChangeScope=Ta,Q.isIrEventDefinition=dm,Q.isIrFlowNodeType=pm,Q.isIrTextLocale=S1,Q.labelRectsOf=vo,Q.labelShapeDepth=cg,Q.labelSlot=ho,Q.lineCrossesLabel=Vi,Q.lineThroughLabel=Zm,Q.lineThroughShapeLabel=ag,Q.loadBpmnXml=ea,Q.localeTextsOf=gp,Q.lowerOps=Yg,Q.oppositeOverlapCount=LR,Q.oppositeOverlapOf=Ym,Q.planBackEdgeBoundaryClearance=_g,Q.planCrossPoolRoute=vg,Q.planEdgeRepair=Gp,Q.planLabelLineClearance=Yp,Q.planLabelPlacement=Tg,Q.planLocaleBackfill=nM,Q.planMiddleSegmentShifts=hg,Q.planOppositeOverlapRepair=Eg,Q.planSegmentDetours=Dc,Q.planShapeLabelClearance=Bg,Q.redockIntroducedDetachedEndpoints=$g,Q.repairIntroducedBoundaryHugging=wg,Q.repairIntroducedCrossings=Vp,Q.repairIntroducedEdgeCrossings=gg,Q.repairIntroducedFakeMerges=Rg,Q.repairIntroducedLabelLines=Lg,Q.repairIntroducedOppositeOverlaps=Pg,Q.repairIntroducedShapeLabelLines=Ng,Q.repairIntroducedSharedSegmentLabels=Ig,Q.rerouteIntroducedCrossPoolEdges=bg,Q.resolverServicesOf=Gg,Q.reviewRequestValuesOf=xp,Q.reviewRequestsOf=Pr,Q.rootLangOf=mp,Q.saveBpmnXml=wR,Q.sceneCrossingCost=tg,Q.sceneFromDefinitions=lg,Q.sceneFromRegistry=Ue,Q.segmentShapeClearance=es,Q.shapesUnderLabel=ns,Q.sharedSegmentUnderLabel=kc,Q.sharedSpansOf=Tc,Q.sortPanelIssues=x_,Q.toPanelIssues=v_,Q.touchedElements=UC,Q.translationLocale=Nn,Q.translationsOf=Zo,Q.unreadableOverlapCount=fi,Q.unreadableOverlapOf=ra,Q.validateOps=zg,Q.warningMessages=Ip,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@g1cloud/bpmn-modeler-next",
3
3
  "private": false,
4
- "version": "5.0.0-beta.19",
4
+ "version": "5.0.0-beta.20",
5
5
  "description": "Vue 3 BPMN document authoring editor (bpmn-js based) with AI agent authoring",
6
6
  "type": "module",
7
7
  "files": [