@g1cloud/bpmn-modeler-next 5.0.0-beta.36 → 5.0.0-beta.37

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.
@@ -34878,7 +34878,8 @@ const e3 = {
34878
34878
  }, t3 = /* @__PURE__ */ Jf({
34879
34879
  __name: "BpmnModelerView",
34880
34880
  props: {
34881
- xml: {}
34881
+ xml: {},
34882
+ labelFontFamily: {}
34882
34883
  },
34883
34884
  emits: ["ready", "imported", "import-error"],
34884
34885
  setup(e, { expose: t, emit: n }) {
@@ -34905,7 +34906,9 @@ const e3 = {
34905
34906
  // 다국어 표시(B-4) — 설정 전엔 원래 경로만 탄다(미설정 = 기능 끔). `getModeler().get('i18nDisplay')`.
34906
34907
  // 미니맵 — 처음엔 접혀 있다. `getModeler().get('minimap')`(open/close/toggle/isOpen).
34907
34908
  // 번역 칸 언어 보존(B-156) — 타입 교체 · 풀 접기 · 붙여넣기가 `xml:lang` 을 잃지 않게. 다국어 설정과 무관하게 늘 붙인다.
34908
- additionalModules: [wI, e3, T0]
34909
+ additionalModules: [wI, e3, T0],
34910
+ // 외부 라벨 스타일은 bpmn-js 가 기본 스타일에서 물려받는다(크기만 1 작게) — 폰트는 여기 하나로 충분하다.
34911
+ ...i.labelFontFamily ? { textRenderer: { defaultStyle: { fontFamily: i.labelFontFamily } } } : {}
34909
34912
  }), i.xml && await s(i.xml), o("ready");
34910
34913
  }), z1(
34911
34914
  () => i.xml,
@@ -34925,7 +34928,7 @@ const e3 = {
34925
34928
  for (const [i, o] of t)
34926
34929
  n[i] = o;
34927
34930
  return n;
34928
- }, z3 = /* @__PURE__ */ pg(t3, [["__scopeId", "data-v-40347ef1"]]), n3 = ["title", "aria-expanded"], i3 = ["title", "onClick"], o3 = {
34931
+ }, z3 = /* @__PURE__ */ pg(t3, [["__scopeId", "data-v-5f6ddcd2"]]), n3 = ["title", "aria-expanded"], i3 = ["title", "onClick"], o3 = {
34929
34932
  viewBox: "0 0 16 16",
34930
34933
  width: "13",
34931
34934
  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>`,Qe.RESULT_HTML='<div class="djs-search-result"></div>',Qe.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>',Qe.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';const V$={__depends__:[Ps,_u,Ri],searchPad:["type",Qe]};function mg(e,t,n,i){this._elementRegistry=e,this._canvas=n,this._search=i,t.registerProvider(this)}mg.$inject=["elementRegistry","searchPad","canvas","search"],mg.prototype.find=function(e){var t=this._canvas.getRootElements(),n=this._elementRegistry.filter(function(i){return!it(i)&&!t.includes(i)});return this._search(n.map(i=>({element:i,label:yi(i),id:i.id})),e,{keys:["label","id"]}).map(W$)};function W$(e){const{item:{element:t},tokens:n}=e;return{element:t,primaryTokens:n.label,secondaryTokens:n.id}}const U$={__depends__:[V$,a0],__init__:["bpmnSearch"],bpmnSearch:["type",mg]},q$="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",Y$="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",K$={width:36,height:50},X$={width:50,height:50};function KE(e,t,n){return Be("path",{d:e,strokeWidth:2,transform:`translate(${t.x}, ${t.y})`,...n})}const ki=5;function ap(e,t){this._styles=t,e.registerProvider(this)}ap.$inject=["outline","styles"],ap.prototype.getOutline=function(e){const t=this._styles.cls("djs-outline",["no-fill"]);var n;if(lT(e))return n=Be("rect"),Se(n,V({x:-ki,y:-ki,rx:4,width:e.width+ki*2,height:e.height+ki*2},t)),n;if(!it(e))return M(e,"bpmn:Gateway")?(n=Be("rect"),V(n.style,{"transform-box":"fill-box",transform:"rotate(45deg)","transform-origin":"center"}),Se(n,V({x:2,y:2,rx:4,width:e.width-4,height:e.height-4},t))):ot(e,["bpmn:Task","bpmn:SubProcess","bpmn:Group","bpmn:CallActivity"])?(n=Be("rect"),Se(n,V({x:-ki,y:-ki,rx:14,width:e.width+ki*2,height:e.height+ki*2},t))):M(e,"bpmn:EndEvent")?(n=Be("circle"),Se(n,V({cx:e.width/2,cy:e.height/2,r:e.width/2+ki+1},t))):M(e,"bpmn:Event")?(n=Be("circle"),Se(n,V({cx:e.width/2,cy:e.height/2,r:e.width/2+ki},t))):M(e,"bpmn:DataObjectReference")&&XE(e,"bpmn:DataObjectReference")?n=KE(q$,{x:-6,y:-6},t):M(e,"bpmn:DataStoreReference")&&XE(e,"bpmn:DataStoreReference")&&(n=KE(Y$,{x:-6,y:-6},t)),n},ap.prototype.updateOutline=function(e,t){if(!it(e))return ot(e,["bpmn:SubProcess","bpmn:Group"])?(Se(t,{width:e.width+ki*2,height:e.height+ki*2}),!0):!!ot(e,["bpmn:Event","bpmn:Gateway","bpmn:DataStoreReference","bpmn:DataObjectReference"])};function XE(e,t){var n;return t==="bpmn:DataObjectReference"?n=K$:t==="bpmn:DataStoreReference"&&(n=X$),e.width===n.width&&e.height===n.height}const Z$={__depends__:[ag],__init__:["outlineProvider"],outlineProvider:["type",ap]};var Q$='<?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 so(e){va.call(this,e)}Me(so,va),so.Viewer=lr,so.NavigatedViewer=tc,so.prototype.createDiagram=function(){return this.importXML(Q$)},so.prototype._interactionModules=[lw,pw,hw],so.prototype._modelingModules=[eB,yu,rB,iB,vB,tg,SB,KB,Hx,Kl,JB,nN,vN,xN,_N,CN,$N,GN,wh,XN,o$,g$,y$,uE,z$,U$,Z$],so.prototype._modules=[].concat(lr.prototype._modules,so.prototype._interactionModules,so.prototype._modelingModules);var sp=50,J$=new Ir,ZE={min:.2,max:4},e5=10,t5=.1,n5=250,i5=100,o5=2e3;function Bn(e,t,n,i,o){var r=this;this._canvas=i,this._elementRegistry=o,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=J$.next(),this._init(),this.toggle(this._config.open||!1);function a(u){(!r._state._svgClientRect||lp(r._state._svgClientRect))&&(r._state._svgClientRect=r._svg.getBoundingClientRect());var p=cp({x:u.x-r._state._svgClientRect.left,y:u.y-r._state._svgClientRect.top},r._svg,r._lastViewbox);yg(p,r._canvas),r._update()}function s(u){return function(f){var d=vg(f);(!r._state._svgClientRect||lp(r._state._svgClientRect))&&(r._state._svgClientRect=r._svg.getBoundingClientRect()),u&&a(d);var g=cp({x:d.x-r._state._svgClientRect.left,y:d.y-r._state._svgClientRect.top},r._svg,r._lastViewbox),h=i.viewbox(),m=a5(g,h),_=r._viewportDom.getBoundingClientRect(),x={x:d.x-_.left+1,y:d.y-_.top+1};V(r._state,{cachedViewbox:h,initialDragPosition:{x:d.x,y:d.y},isDragging:!0,offsetViewport:m,offsetViewportDom:x,viewportClientRect:r._viewport.getBoundingClientRect(),parentClientRect:r._parent.getBoundingClientRect()}),Fe.bind(document,"mousemove",c),Fe.bind(document,"mouseup",l)}}function c(u){var p=vg(u);if(r._state.isDragging){(!r._state._svgClientRect||lp(r._state._svgClientRect))&&(r._state._svgClientRect=r._svg.getBoundingClientRect());var f=r._state.offsetViewportDom,d=r._state.viewportClientRect,g=r._state.parentClientRect;V(r._viewportDom.style,{top:p.y-f.y-g.top+"px",left:p.x-f.x-g.left+"px"});var h=JE(g,{top:p.y-f.y-g.top,left:p.x-f.x-g.left,width:d.width,height:d.height});V(r._overlay.style,{clipPath:h});var m=cp({x:p.x-r._state._svgClientRect.left,y:p.y-r._state._svgClientRect.top},r._svg,r._lastViewbox);yg({x:m.x-r._state.offsetViewport.x,y:m.y-r._state.offsetViewport.y},r._canvas)}}function l(u){var p=vg(u);r._state.isDragging&&(r._state.initialDragPosition.x===p.x&&r._state.initialDragPosition.y===p.y&&a(u),r._update(),V(r._state,{cachedViewbox:null,initialDragPosition:null,isDragging:!1,offsetViewport:null,offsetViewportDom:null}),Fe.unbind(document,"mousemove",c),Fe.unbind(document,"mouseup",l))}Fe.bind(this._viewportDom,"mousedown",s(!1)),Fe.bind(this._svg,"mousedown",s(!0)),Fe.bind(this._parent,"wheel",function(u){if(u.preventDefault(),u.stopPropagation(),!!u.ctrlKey&&((!r._state._svgClientRect||lp(r._state._svgClientRect))&&(r._state._svgClientRect=r._svg.getBoundingClientRect()),!!p5(u,r._state._svgClientRect))){var p=u.deltaMode===0?.02:.32,f=Math.sqrt(Math.pow(u.deltaY,2)+Math.pow(u.deltaX,2))*f5(u.deltaY)*-p;if(r._state.zoomDelta+=f,Math.abs(r._state.zoomDelta)>t5){var d=f>0?1:-1,g=Math.log(i.zoom())/Math.log(10),h=d5(ZE,e5*2),m=Math.round(g/h)*h;m+=h*d;var _=Math.pow(10,m);i.zoom(h5(ZE,_),x),r._state.zoomDelta=0;var x=cp({x:u.clientX-r._state._svgClientRect.left,y:u.clientY-r._state._svgClientRect.top},r._svg,r._lastViewbox);yg(x,r._canvas),r._update()}}}),Fe.bind(this._toggle,"click",function(u){u.preventDefault(),u.stopPropagation(),r.toggle()}),n.on(["shape.added","connection.added"],function(u){if(!r.isOpen()){r._dirty=!0;return}r._addElement(u.element),r._scheduleUpdate()}),n.on(["shape.removed","connection.removed"],function(u){if(!r.isOpen()){r._dirty=!0;return}r._removeElement(u.element),r._scheduleUpdate()}),n.on("elements.changed",n5,function(u){if(!r.isOpen()){r._dirty=!0;return}u.elements.forEach(function(p){r._updateElement(p)}),r._scheduleUpdate()}),n.on("element.updateId",function(u){var p=u.element,f=u.newId;r._updateElementId(p,f)}),n.on("canvas.viewbox.changed",function(){r._state.isDragging||r._update()}),n.on("canvas.resized",function(){document.body.contains(r._parent)&&(r._state.isDragging||r._update(),r._state._svgClientRect=r._svg.getBoundingClientRect())}),n.on(["root.set","plane.set"],function(u){if(!r.isOpen()){r._dirty=!0;return}r._clear();var p=u.element||u.plane.rootElement;p.children.forEach(function(f){r._addElement(f)}),r._update()}),n.on("diagram.destroy",function(){r._updateTimeout&&(clearTimeout(r._updateTimeout),r._updateTimeout=null)})}Bn.$inject=["config.minimap","injector","eventBus","canvas","elementRegistry"],Bn.prototype._init=function(){var e=this._canvas,t=e.getContainer(),n=this._parent=document.createElement("div");Rt(n).add("djs-minimap").add("bio-theme-parent"),t.appendChild(n);var i=this._toggle=document.createElement("div");Rt(i).add("toggle"),n.appendChild(i);var o=this._map=document.createElement("div");Rt(o).add("map"),n.appendChild(o);var r=this._svg=Be("svg");Se(r,{width:"100%",height:"100%"}),Ke(o,r);var a=this._elementsGroup=Be("g");Ke(r,a);var s=this._viewportGroup=Be("g");Ke(r,s);var c=this._viewport=Be("rect");lt(c).add("viewport"),Ke(s,c),Fe.bind(n,"mousedown",function(p){p.stopPropagation()});var l=this._viewportDom=document.createElement("div");Rt(l).add("viewport-dom"),this._parent.appendChild(l);var u=this._overlay=document.createElement("div");Rt(u).add("overlay"),this._parent.appendChild(u)},Bn.prototype._scheduleUpdate=function(){var e=this;if(this.isOpen()){var t=Ue(this._config.debounceDelay)?this._config.debounceDelay:i5,n=Ue(this._config.debounceSkipDelay)?this._config.debounceSkipDelay:o5,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)}},Bn.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)})}},Bn.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(e1(e)){var i,o,r,a,s=n.width-t.width,c=n.height-t.height;t.width<n.width?(i=t.x-s/2,r=n.width,t.x+t.width<n.width&&(i=Math.min(0,t.x))):(i=t.x,r=t.width),t.height<n.height?(o=t.y-c/2,a=n.height,t.y+t.height<n.height&&(o=Math.min(0,t.y))):(o=t.y,a=t.height),i=i-sp,o=o-sp,r=r+sp*2,a=a+sp*2,this._lastViewbox={x:i,y:o,width:r,height:a},Se(this._svg,{viewBox:i+", "+o+", "+r+", "+a}),Se(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=JE(l,p);V(this._overlay.style,{clipPath:f})}}},Bn.prototype.open=function(){V(this._state,{isOpen:!0}),Rt(this._parent).add("open");var e=this._injector.get("translate",!1)||function(t){return t};Sn(this._toggle,"title",e("Close minimap")),this._dirty&&(this._rebuild(),this._dirty=!1),this._update(),this._eventBus.fire("minimap.toggle",{open:!0})},Bn.prototype.close=function(){V(this._state,{isOpen:!1}),Rt(this._parent).remove("open");var e=this._injector.get("translate",!1)||function(t){return t};Sn(this._toggle,"title",e("Open minimap")),this._eventBus.fire("minimap.toggle",{open:!1})},Bn.prototype.toggle=function(e){var t=this.isOpen();typeof e>"u"&&(e=!t),e!=t&&(e?this.open():this.close())},Bn.prototype.isOpen=function(){return this._state.isOpen},Bn.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)}},Bn.prototype._updateElementId=function(e,t){try{var n=Et("#"+Fr(this._prefixId(e.id)),this._elementsGroup);n&&(n.id=this._prefixId(t))}catch(i){console.warn("Minimap#_updateElementId errored",i)}},Bn.prototype.isOnActivePlane=function(e){var t=this._canvas;return t.findRoot?t.findRoot(e)===t.getRootElement():t.findPlane?t.findPlane(e)===t.getActivePlane():!0},Bn.prototype._addElement=function(e){var t=this;if(this._removeElement(e),!!this.isOnActivePlane(e)&&!e.hidden){var n,i,o,r=this._createElement(e),a=Et("#"+Fr(this._prefixId(e.parent.id)),this._elementsGroup);if(r){var s=c5(e);return s!==-1?a?l5(r,a,s):this._elementsGroup.appendChild(r):this._elementsGroup.appendChild(r),r5(e)?(n=e.parent,i=0,o=0,typeof n.x<"u"&&typeof n.y<"u"&&(i=-n.x,o=-n.y),Se(r,{transform:"translate("+i+" "+o+")"})):(i=e.x,o=e.y,a&&(n=e.parent,i-=n.x,o-=n.y),Se(r,{transform:"translate("+i+" "+o+")"})),e.children&&e.children.length&&e.children.forEach(function(c){t._addElement(c)}),r}}},Bn.prototype._removeElement=function(e){var t=this._svg.getElementById(this._prefixId(e.id));t&&rn(t)},Bn.prototype._createElement=function(e){var t=this._elementRegistry.getGraphics(e),n;if(t&&(n=Yo(t),n)){var i=g5(Rf(n));return Se(i,{id:this._prefixId(e.id)}),i}},Bn.prototype._clear=function(){ms(this._elementsGroup)},Bn.prototype._prefixId=function(e){return"djs-minimap-"+e+"-"+this._minimapId};function r5(e){return e.waypoints}function a5(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 cp(e,t,n){var i=t.getBoundingClientRect(),o=s5(n,i.width/i.height),r=QE(e.x,0,i.width,o.x,o.x+o.width),a=QE(e.y,0,i.height,o.y,o.y+o.height);return{x:r,y:a}}function yg(e,t){var n=t.viewbox(),i=n.width,o=n.height;t.viewbox({x:e.x-i/2,y:e.y-o/2,width:i,height:o})}function s5(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 o=i.width*(1/t),r=i.y-(o-i.height)/2;V(i,{y:r,height:o})}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 QE(e,t,n,i,o){var r=n-t,a=o-i;return(e-t)*a/r+i}function c5(e){var t=e.parent;return!t||!t.children?-1:t.children.indexOf(e)}function l5(e,t,n){var i=u5(t),o=i[n];o?t.insertBefore(e,o):t.appendChild(e)}function u5(e){return Array.from(e.childNodes).filter(function(t){return t.id})}function lp(e){return e.width===0&&e.height===0}function p5(e,t){return e.x>t.left&&e.x<t.left+t.width&&e.y>t.top&&e.y<t.top+t.height}var f5=Math.sign||function(e){return e>=0?1:-1};function d5(e,t){var n=Math.log(e.min)/Math.log(10),i=Math.log(e.max)/Math.log(10),o=Math.abs(n)+Math.abs(i);return o/t}function h5(e,t){return Math.max(e.min,Math.min(e.max,t))}function JE(e,t){var n=[co(t.left,t.top),co(t.left+t.width,t.top),co(t.left+t.width,t.top+t.height),co(t.left,t.top+t.height),co(t.left,e.height),co(e.width,e.height),co(e.width,0),co(0,0),co(0,e.height),co(t.left,e.height)].join(", ");return"polygon("+n+")"}function co(e,t){return e+"px "+t+"px"}function e1(e){return Lo(e,function(t){return hn(t)?e1(t):Ue(t)&&isFinite(t)})}function vg(e){return e.center?e.center:{x:e.clientX,y:e.clientY}}function g5(e){return gs("[id]",e).forEach(function(t){t.remove()}),e}var m5={__init__:["minimap"],minimap:["type",Bn]};const t1={closed:"미니맵",open:"접기"};class n1{constructor(t,n,i){this.minimap=n,this.canvas=i,t.on(Ph,()=>this.rebuild()),t.on("minimap.toggle",o=>this.retitle(o.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?t1.open:t1.closed)}}zn(n1,"$inject",["eventBus","minimap","canvas"]);const y5={__depends__:[m5],__init__:["minimapI18n"],minimapI18n:["type",n1]},v5=ve.defineComponent({__name:"BpmnModelerView",props:{xml:{}},emits:["ready","imported","import-error"],setup(e,{expose:t,emit:n}){const i=e,o=n,r=ve.ref();let a;async function s(l){if(!a)throw new Error("modeler not mounted");try{const{warnings:u}=await a.importXML(l),p=Wp(u);return o("imported",p),{warnings:p}}catch(u){throw o("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 ve.onMounted(async()=>{a=new so({container:r.value,moddleExtensions:Ic,additionalModules:[J_,y5,z_]}),i.xml&&await s(i.xml),o("ready")}),ve.watch(()=>i.xml,l=>{l&&a&&s(l)}),ve.onBeforeUnmount(()=>{a==null||a.destroy(),a=void 0}),t({importXml:s,saveXml:c,getModeler:()=>a}),(l,u)=>(ve.openBlock(),ve.createElementBlock("div",{ref_key:"container",ref:r,class:"bpmn-modeler-view"},null,512))}}),bg=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},b5=bg(v5,[["__scopeId","data-v-40347ef1"]]),x5=["title","aria-expanded"],_5=["title","onClick"],w5={viewBox:"0 0 16 16",width:"13",height:"13","aria-hidden":"true"},E5={key:0,d:"M5.6 5.6l4.8 4.8M10.4 5.6l-4.8 4.8",stroke:"currentColor","stroke-width":"1.5"},S5={key:1,d:"M8 4.6v0.2M8 7v4.4",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round"},R5={key:0,class:"bwl-validation__body"},C5={key:0,class:"bwl-validation__empty"},M5={key:1,class:"bwl-validation__empty"},A5={key:2,class:"bwl-validation__list"},P5=["onClick"],T5={key:0,class:"bwl-validation__scope",title:"이번 변경이 만들거나 건드린 요소"},k5={class:"bwl-validation__msg"},O5=["title"],D5=bg(ve.defineComponent({__name:"BpmnValidationPanel",props:{controller:{}},setup(e){const n=e.controller,i=ve.computed(()=>q_(n.issues.value,n.describeElement)),o=ve.computed(()=>Y_(i.value)),r=g=>Ia(g,n.changeScope.value),a=ve.computed(()=>Ah(i.value,n.changeScope.value)),s=ve.ref({error:!0,warning:!0,info:!0}),c=ve.computed(()=>K_(i.value.filter(g=>s.value[g.severity]),n.changeScope.value)),l=ve.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)=>(ve.openBlock(),ve.createElementBlock("section",{class:ve.normalizeClass(["bwl-validation",{"is-open":l.value}])},[ve.createElementVNode("header",{class:"bwl-validation__head",onClick:h[1]||(h[1]=m=>l.value=!l.value)},[ve.createElementVNode("button",{type:"button",class:"bwl-validation__toggle",title:l.value?"접기":"펼치기","aria-expanded":l.value},[(ve.openBlock(),ve.createElementBlock("svg",{class:ve.normalizeClass(["bwl-validation__chevron",{"is-open":l.value}]),viewBox:"0 0 16 16",width:"13",height:"13","aria-hidden":"true"},[...h[2]||(h[2]=[ve.createElementVNode("path",{d:"M6 3l5 5-5 5",fill:"none",stroke:"currentColor","stroke-width":"1.6"},null,-1)])],2)),h[3]||(h[3]=ve.createElementVNode("span",null,"검증",-1))],8,x5),ve.createElementVNode("div",{class:"bwl-validation__counts",onClick:h[0]||(h[0]=ve.withModifiers(()=>{},["stop"]))},[(ve.openBlock(),ve.createElementBlock(ve.Fragment,null,ve.renderList(u,m=>ve.createElementVNode("button",{key:m,type:"button",class:ve.normalizeClass(["bwl-validation__count",[`is-${m}`,{"is-off":!s.value[m]}]]),title:l.value?`${p[m]} ${s.value[m]?"숨기기":"보이기"}`:"검증 패널 펼치기",onClick:_=>f(m)},[(ve.openBlock(),ve.createElementBlock("svg",w5,[h[4]||(h[4]=ve.createElementVNode("circle",{cx:"8",cy:"8",r:"6.4",fill:"none",stroke:"currentColor","stroke-width":"1.5"},null,-1)),m==="error"?(ve.openBlock(),ve.createElementBlock("path",E5)):(ve.openBlock(),ve.createElementBlock("path",S5))])),ve.createElementVNode("span",null,ve.toDisplayString(o.value[m]),1)],10,_5)),64))])]),l.value?(ve.openBlock(),ve.createElementBlock("div",R5,[i.value.length===0?(ve.openBlock(),ve.createElementBlock("p",C5,"발견된 문제가 없습니다.")):c.value.length===0?(ve.openBlock(),ve.createElementBlock("p",M5," 선택한 심각도에 해당하는 항목이 없습니다. ")):(ve.openBlock(),ve.createElementBlock("ul",A5,[(ve.openBlock(!0),ve.createElementBlock(ve.Fragment,null,ve.renderList(c.value,m=>(ve.openBlock(),ve.createElementBlock("li",{key:m.key,class:ve.normalizeClass(["bwl-validation__item",[`is-${m.severity}`,{"is-clickable":m.targetRefs.length>0}]]),onClick:_=>d(m)},[h[5]||(h[5]=ve.createElementVNode("span",{class:"bwl-validation__dot","aria-hidden":"true"},null,-1)),a.value&&r(m)?(ve.openBlock(),ve.createElementBlock("span",T5,"이번 변경")):ve.createCommentVNode("",!0),ve.createElementVNode("span",k5,ve.toDisplayString(m.message),1),ve.createElementVNode("span",{class:"bwl-validation__cat",title:m.code},ve.toDisplayString(m.category),9,O5)],10,P5))),128))]))])):ve.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-60e8b1a9"]]),L5={key:0,class:"bwl-locale",role:"radiogroup","aria-label":"표시 언어"},I5=["aria-checked","title","data-locale","onClick"],B5={class:"bwl-locale__label"},N5={key:0,class:"bwl-locale__badge"},$5=bg(ve.defineComponent({__name:"BpmnDisplayLocaleSwitcher",props:{controller:{}},setup(e){const n=e.controller;function i(r){try{return new Intl.DisplayNames([r],{type:"language"}).of(r)??r}catch{return r}}const o=ve.computed(()=>{const r=n.i18n.value;return r?r.locales.map(a=>{const s=r.counts[a]??{untranslated:0,reviewRequested:0},c=a===r.designLocale?"설계 언어":"병기 언어";return{locale:a,label:i(a),active:a===r.displayLocale,design:a===r.designLocale,pending:s.untranslated+s.reviewRequested,title:`${c} — 미번역 ${s.untranslated} · 확인 요청 ${s.reviewRequested}`}}):[]});return(r,a)=>o.value.length?(ve.openBlock(),ve.createElementBlock("div",L5,[(ve.openBlock(!0),ve.createElementBlock(ve.Fragment,null,ve.renderList(o.value,s=>(ve.openBlock(),ve.createElementBlock("button",{key:s.locale,type:"button",role:"radio",class:ve.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=>ve.unref(n).setDisplayLocale(s.locale)},[ve.createElementVNode("span",B5,ve.toDisplayString(s.label),1),s.pending>0?(ve.openBlock(),ve.createElementBlock("span",N5,ve.toDisplayString(s.pending),1)):ve.createCommentVNode("",!0)],10,I5))),128))])):ve.createCommentVNode("",!0)}}),[["__scopeId","data-v-04311925"]]);ee.ADDABLE_FLOW_NODE_TYPES=wc,ee.APPLY_BPMN_OPS_SCHEMA=AS,ee.BPMN_EVENT_DEFINITION_TYPES=Sc,ee.BPMN_MODDLE_EXTENSIONS=Ic,ee.BWL_MODDLE_SCHEMA=Og,ee.BWL_NS=kg,ee.BWL_PREFIX=bp,ee.BWL_REVIEW_REQUEST_TYPE=Cc,ee.BWL_SIDES=xp,ee.BpmnDisplayLocaleSwitcher=$5,ee.BpmnModelerView=b5,ee.BpmnValidationPanel=D5,ee.EDITOR=ZM,ee.FLOW_LABEL_INDENT=fm,ee.GROUP_BORDER_MIN_RUN=Up,ee.GROUP_BORDER_NEAR=la,ee.HEADLESS_BPMN_MODULES=G_,ee.HEADLESS_TEXT_METRICS=sa,ee.I18N_DISPLAY_REDRAWN_EVENT=Ph,ee.I18N_NS=uS,ee.I18N_PREFIX=Ng,ee.I18N_REVIEW_REQUESTED_CLASS=Z_,ee.I18N_TRANSLATION_TYPE=_r,ee.I18N_UNTRANSLATED_CLASS=X_,ee.I18nDisplay=Th,ee.I18nDisplayModule=J_,ee.IR_EVENT_DEFINITIONS=Ec,ee.IR_FLOW_NODE_TYPES=br,ee.IR_TEXT_LOCALES=Rc,ee.LABEL_FORK_MARGIN=Kp,ee.LABEL_SHAPE_MIN_DEPTH=Sm,ee.SET_TRANSLATIONS_COMMAND=Ap,ee.SEVERITY_ORDER=Mh,ee.SYMBOLIC_OP_KINDS=$g,ee.SYMBOLIC_OP_SCHEMA=Fg,ee.SetTranslationsHandler=Pp,ee.TranslationCommands=kp,ee.TranslationCommandsModule=Op,ee.TranslationStateIndex=oA,ee.UNDO_EPISODE_COMMAND=_p,ee.UPDATE_TRANSLATION_COMMAND=Pc,ee.UpdateTranslationHandler=Mp,ee.applyBpmnOpBatch=Cy,ee.applyBpmnOps=vy,ee.applyLocaleBackfill=iA,ee.applyTranslationLocaleRestore=lA,ee.approximateTextWidth=ca,ee.auditBpmnGeometry=Mm,ee.auditBpmnGeometryXml=SC,ee.auditBpmnSemantics=vf,ee.auditBpmnSemanticsXml=FM,ee.auditGeometry=pt,ee.auditTargetsOf=Vn,ee.axisSegmentsOf=on,ee.blackBoxNameRect=qp,ee.buildBpmnOpBatch=qM,ee.buildRegistryIndex=Pm,ee.collectTranslationStates=Dy,ee.containerBoundarySegments=pa,ee.countBySeverity=Y_,ee.createBpmnEditorController=QM,ee.createBpmnModdle=om,ee.createHeadlessBpmnModeler=TL,ee.crossedShapesOf=zt,ee.crossingCost=hi,ee.describeProcess=wy,ee.describeProcessXml=DM,ee.diffBpmnElements=Ry,ee.diffBpmnElementsXml=WM,ee.documentLocalesOf=is,ee.edgeCrossCount=ls,ee.edgeCrossingPairsOf=ho,ee.edgeCrossingStatsOf=bm,ee.executeAsUndoEpisode=Lg,ee.followMovedEdgeLabels=ty,ee.forwardThreePointCandidates=zc,ee.geometryFindingKey=ct,ee.inferScriptLocale=nl,ee.installHeadlessBpmnDom=am,ee.irEventDefinitionOf=vp,ee.isAddableFlowNodeType=Pg,ee.isChangeScopeMixed=Ah,ee.isEdgeOverlapFinding=Yp,ee.isInChangeScope=Ia,ee.isIrEventDefinition=Tg,ee.isIrFlowNodeType=Ag,ee.isIrTextLocale=eS,ee.labelRectsOf=Ho,ee.labelShapeDepth=Rm,ee.labelSlot=wr,ee.lineCrossesLabel=Bi,ee.lineThroughLabel=hm,ee.lineThroughShapeLabel=Em,ee.loadBpmnXml=aa,ee.localeTextsOf=Cp,ee.lowerOps=my,ee.oppositeOverlapCount=uC,ee.oppositeOverlapOf=pm,ee.planBackEdgeBoundaryClearance=zm,ee.planCrossPoolRoute=Nm,ee.planEdgeRepair=ef,ee.planLabelLineClearance=ff,ee.planLabelPlacement=Qm,ee.planLocaleBackfill=nA,ee.planMiddleSegmentShifts=km,ee.planOppositeOverlapRepair=Wm,ee.planSegmentDetours=Hc,ee.planShapeLabelClearance=oy,ee.planTranslationLocaleRestore=cA,ee.redockIntroducedDetachedEndpoints=ay,ee.repairIntroducedBoundaryHugging=Gm,ee.repairIntroducedCrossings=tf,ee.repairIntroducedEdgeCrossings=Om,ee.repairIntroducedFakeMerges=qm,ee.repairIntroducedLabelLines=ny,ee.repairIntroducedOppositeOverlaps=Zm,ee.repairIntroducedShapeLabelLines=ry,ee.repairIntroducedSharedSegmentLabels=iy,ee.rerouteIntroducedCrossPoolEdges=$m,ee.resolverServicesOf=py,ee.reviewRequestValuesOf=Tp,ee.reviewRequestsOf=No,ee.rootLangOf=Rp,ee.saveBpmnXml=QR,ee.sceneCrossingCost=vm,ee.sceneFromDefinitions=Cm,ee.sceneFromRegistry=Ge,ee.segmentShapeClearance=cs,ee.shapesUnderLabel=us,ee.sharedEndpointCrossingPairsOf=Ni,ee.sharedSegmentUnderLabel=jc,ee.sharedSpansOf=Fc,ee.sortPanelIssues=K_,ee.toPanelIssues=q_,ee.touchedElements=UM,ee.translationLocale=En,ee.translationsOf=Bo,ee.unreadableOverlapCount=di,ee.unreadableOverlapOf=Cr,ee.validateOps=uy,ee.warningMessages=Wp,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})}));
343
+ </div>`,Qe.RESULT_HTML='<div class="djs-search-result"></div>',Qe.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>',Qe.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';const V$={__depends__:[Ps,_u,Ri],searchPad:["type",Qe]};function mg(e,t,n,i){this._elementRegistry=e,this._canvas=n,this._search=i,t.registerProvider(this)}mg.$inject=["elementRegistry","searchPad","canvas","search"],mg.prototype.find=function(e){var t=this._canvas.getRootElements(),n=this._elementRegistry.filter(function(i){return!it(i)&&!t.includes(i)});return this._search(n.map(i=>({element:i,label:yi(i),id:i.id})),e,{keys:["label","id"]}).map(W$)};function W$(e){const{item:{element:t},tokens:n}=e;return{element:t,primaryTokens:n.label,secondaryTokens:n.id}}const U$={__depends__:[V$,a0],__init__:["bpmnSearch"],bpmnSearch:["type",mg]},q$="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",Y$="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",K$={width:36,height:50},X$={width:50,height:50};function KE(e,t,n){return Be("path",{d:e,strokeWidth:2,transform:`translate(${t.x}, ${t.y})`,...n})}const ki=5;function ap(e,t){this._styles=t,e.registerProvider(this)}ap.$inject=["outline","styles"],ap.prototype.getOutline=function(e){const t=this._styles.cls("djs-outline",["no-fill"]);var n;if(lT(e))return n=Be("rect"),Se(n,V({x:-ki,y:-ki,rx:4,width:e.width+ki*2,height:e.height+ki*2},t)),n;if(!it(e))return M(e,"bpmn:Gateway")?(n=Be("rect"),V(n.style,{"transform-box":"fill-box",transform:"rotate(45deg)","transform-origin":"center"}),Se(n,V({x:2,y:2,rx:4,width:e.width-4,height:e.height-4},t))):ot(e,["bpmn:Task","bpmn:SubProcess","bpmn:Group","bpmn:CallActivity"])?(n=Be("rect"),Se(n,V({x:-ki,y:-ki,rx:14,width:e.width+ki*2,height:e.height+ki*2},t))):M(e,"bpmn:EndEvent")?(n=Be("circle"),Se(n,V({cx:e.width/2,cy:e.height/2,r:e.width/2+ki+1},t))):M(e,"bpmn:Event")?(n=Be("circle"),Se(n,V({cx:e.width/2,cy:e.height/2,r:e.width/2+ki},t))):M(e,"bpmn:DataObjectReference")&&XE(e,"bpmn:DataObjectReference")?n=KE(q$,{x:-6,y:-6},t):M(e,"bpmn:DataStoreReference")&&XE(e,"bpmn:DataStoreReference")&&(n=KE(Y$,{x:-6,y:-6},t)),n},ap.prototype.updateOutline=function(e,t){if(!it(e))return ot(e,["bpmn:SubProcess","bpmn:Group"])?(Se(t,{width:e.width+ki*2,height:e.height+ki*2}),!0):!!ot(e,["bpmn:Event","bpmn:Gateway","bpmn:DataStoreReference","bpmn:DataObjectReference"])};function XE(e,t){var n;return t==="bpmn:DataObjectReference"?n=K$:t==="bpmn:DataStoreReference"&&(n=X$),e.width===n.width&&e.height===n.height}const Z$={__depends__:[ag],__init__:["outlineProvider"],outlineProvider:["type",ap]};var Q$='<?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 so(e){va.call(this,e)}Me(so,va),so.Viewer=lr,so.NavigatedViewer=tc,so.prototype.createDiagram=function(){return this.importXML(Q$)},so.prototype._interactionModules=[lw,pw,hw],so.prototype._modelingModules=[eB,yu,rB,iB,vB,tg,SB,KB,Hx,Kl,JB,nN,vN,xN,_N,CN,$N,GN,wh,XN,o$,g$,y$,uE,z$,U$,Z$],so.prototype._modules=[].concat(lr.prototype._modules,so.prototype._interactionModules,so.prototype._modelingModules);var sp=50,J$=new Ir,ZE={min:.2,max:4},e5=10,t5=.1,n5=250,i5=100,o5=2e3;function Bn(e,t,n,i,o){var r=this;this._canvas=i,this._elementRegistry=o,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=J$.next(),this._init(),this.toggle(this._config.open||!1);function a(u){(!r._state._svgClientRect||lp(r._state._svgClientRect))&&(r._state._svgClientRect=r._svg.getBoundingClientRect());var p=cp({x:u.x-r._state._svgClientRect.left,y:u.y-r._state._svgClientRect.top},r._svg,r._lastViewbox);yg(p,r._canvas),r._update()}function s(u){return function(f){var d=vg(f);(!r._state._svgClientRect||lp(r._state._svgClientRect))&&(r._state._svgClientRect=r._svg.getBoundingClientRect()),u&&a(d);var g=cp({x:d.x-r._state._svgClientRect.left,y:d.y-r._state._svgClientRect.top},r._svg,r._lastViewbox),h=i.viewbox(),m=a5(g,h),_=r._viewportDom.getBoundingClientRect(),x={x:d.x-_.left+1,y:d.y-_.top+1};V(r._state,{cachedViewbox:h,initialDragPosition:{x:d.x,y:d.y},isDragging:!0,offsetViewport:m,offsetViewportDom:x,viewportClientRect:r._viewport.getBoundingClientRect(),parentClientRect:r._parent.getBoundingClientRect()}),Fe.bind(document,"mousemove",c),Fe.bind(document,"mouseup",l)}}function c(u){var p=vg(u);if(r._state.isDragging){(!r._state._svgClientRect||lp(r._state._svgClientRect))&&(r._state._svgClientRect=r._svg.getBoundingClientRect());var f=r._state.offsetViewportDom,d=r._state.viewportClientRect,g=r._state.parentClientRect;V(r._viewportDom.style,{top:p.y-f.y-g.top+"px",left:p.x-f.x-g.left+"px"});var h=JE(g,{top:p.y-f.y-g.top,left:p.x-f.x-g.left,width:d.width,height:d.height});V(r._overlay.style,{clipPath:h});var m=cp({x:p.x-r._state._svgClientRect.left,y:p.y-r._state._svgClientRect.top},r._svg,r._lastViewbox);yg({x:m.x-r._state.offsetViewport.x,y:m.y-r._state.offsetViewport.y},r._canvas)}}function l(u){var p=vg(u);r._state.isDragging&&(r._state.initialDragPosition.x===p.x&&r._state.initialDragPosition.y===p.y&&a(u),r._update(),V(r._state,{cachedViewbox:null,initialDragPosition:null,isDragging:!1,offsetViewport:null,offsetViewportDom:null}),Fe.unbind(document,"mousemove",c),Fe.unbind(document,"mouseup",l))}Fe.bind(this._viewportDom,"mousedown",s(!1)),Fe.bind(this._svg,"mousedown",s(!0)),Fe.bind(this._parent,"wheel",function(u){if(u.preventDefault(),u.stopPropagation(),!!u.ctrlKey&&((!r._state._svgClientRect||lp(r._state._svgClientRect))&&(r._state._svgClientRect=r._svg.getBoundingClientRect()),!!p5(u,r._state._svgClientRect))){var p=u.deltaMode===0?.02:.32,f=Math.sqrt(Math.pow(u.deltaY,2)+Math.pow(u.deltaX,2))*f5(u.deltaY)*-p;if(r._state.zoomDelta+=f,Math.abs(r._state.zoomDelta)>t5){var d=f>0?1:-1,g=Math.log(i.zoom())/Math.log(10),h=d5(ZE,e5*2),m=Math.round(g/h)*h;m+=h*d;var _=Math.pow(10,m);i.zoom(h5(ZE,_),x),r._state.zoomDelta=0;var x=cp({x:u.clientX-r._state._svgClientRect.left,y:u.clientY-r._state._svgClientRect.top},r._svg,r._lastViewbox);yg(x,r._canvas),r._update()}}}),Fe.bind(this._toggle,"click",function(u){u.preventDefault(),u.stopPropagation(),r.toggle()}),n.on(["shape.added","connection.added"],function(u){if(!r.isOpen()){r._dirty=!0;return}r._addElement(u.element),r._scheduleUpdate()}),n.on(["shape.removed","connection.removed"],function(u){if(!r.isOpen()){r._dirty=!0;return}r._removeElement(u.element),r._scheduleUpdate()}),n.on("elements.changed",n5,function(u){if(!r.isOpen()){r._dirty=!0;return}u.elements.forEach(function(p){r._updateElement(p)}),r._scheduleUpdate()}),n.on("element.updateId",function(u){var p=u.element,f=u.newId;r._updateElementId(p,f)}),n.on("canvas.viewbox.changed",function(){r._state.isDragging||r._update()}),n.on("canvas.resized",function(){document.body.contains(r._parent)&&(r._state.isDragging||r._update(),r._state._svgClientRect=r._svg.getBoundingClientRect())}),n.on(["root.set","plane.set"],function(u){if(!r.isOpen()){r._dirty=!0;return}r._clear();var p=u.element||u.plane.rootElement;p.children.forEach(function(f){r._addElement(f)}),r._update()}),n.on("diagram.destroy",function(){r._updateTimeout&&(clearTimeout(r._updateTimeout),r._updateTimeout=null)})}Bn.$inject=["config.minimap","injector","eventBus","canvas","elementRegistry"],Bn.prototype._init=function(){var e=this._canvas,t=e.getContainer(),n=this._parent=document.createElement("div");Rt(n).add("djs-minimap").add("bio-theme-parent"),t.appendChild(n);var i=this._toggle=document.createElement("div");Rt(i).add("toggle"),n.appendChild(i);var o=this._map=document.createElement("div");Rt(o).add("map"),n.appendChild(o);var r=this._svg=Be("svg");Se(r,{width:"100%",height:"100%"}),Ke(o,r);var a=this._elementsGroup=Be("g");Ke(r,a);var s=this._viewportGroup=Be("g");Ke(r,s);var c=this._viewport=Be("rect");lt(c).add("viewport"),Ke(s,c),Fe.bind(n,"mousedown",function(p){p.stopPropagation()});var l=this._viewportDom=document.createElement("div");Rt(l).add("viewport-dom"),this._parent.appendChild(l);var u=this._overlay=document.createElement("div");Rt(u).add("overlay"),this._parent.appendChild(u)},Bn.prototype._scheduleUpdate=function(){var e=this;if(this.isOpen()){var t=Ue(this._config.debounceDelay)?this._config.debounceDelay:i5,n=Ue(this._config.debounceSkipDelay)?this._config.debounceSkipDelay:o5,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)}},Bn.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)})}},Bn.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(e1(e)){var i,o,r,a,s=n.width-t.width,c=n.height-t.height;t.width<n.width?(i=t.x-s/2,r=n.width,t.x+t.width<n.width&&(i=Math.min(0,t.x))):(i=t.x,r=t.width),t.height<n.height?(o=t.y-c/2,a=n.height,t.y+t.height<n.height&&(o=Math.min(0,t.y))):(o=t.y,a=t.height),i=i-sp,o=o-sp,r=r+sp*2,a=a+sp*2,this._lastViewbox={x:i,y:o,width:r,height:a},Se(this._svg,{viewBox:i+", "+o+", "+r+", "+a}),Se(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=JE(l,p);V(this._overlay.style,{clipPath:f})}}},Bn.prototype.open=function(){V(this._state,{isOpen:!0}),Rt(this._parent).add("open");var e=this._injector.get("translate",!1)||function(t){return t};Sn(this._toggle,"title",e("Close minimap")),this._dirty&&(this._rebuild(),this._dirty=!1),this._update(),this._eventBus.fire("minimap.toggle",{open:!0})},Bn.prototype.close=function(){V(this._state,{isOpen:!1}),Rt(this._parent).remove("open");var e=this._injector.get("translate",!1)||function(t){return t};Sn(this._toggle,"title",e("Open minimap")),this._eventBus.fire("minimap.toggle",{open:!1})},Bn.prototype.toggle=function(e){var t=this.isOpen();typeof e>"u"&&(e=!t),e!=t&&(e?this.open():this.close())},Bn.prototype.isOpen=function(){return this._state.isOpen},Bn.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)}},Bn.prototype._updateElementId=function(e,t){try{var n=Et("#"+Fr(this._prefixId(e.id)),this._elementsGroup);n&&(n.id=this._prefixId(t))}catch(i){console.warn("Minimap#_updateElementId errored",i)}},Bn.prototype.isOnActivePlane=function(e){var t=this._canvas;return t.findRoot?t.findRoot(e)===t.getRootElement():t.findPlane?t.findPlane(e)===t.getActivePlane():!0},Bn.prototype._addElement=function(e){var t=this;if(this._removeElement(e),!!this.isOnActivePlane(e)&&!e.hidden){var n,i,o,r=this._createElement(e),a=Et("#"+Fr(this._prefixId(e.parent.id)),this._elementsGroup);if(r){var s=c5(e);return s!==-1?a?l5(r,a,s):this._elementsGroup.appendChild(r):this._elementsGroup.appendChild(r),r5(e)?(n=e.parent,i=0,o=0,typeof n.x<"u"&&typeof n.y<"u"&&(i=-n.x,o=-n.y),Se(r,{transform:"translate("+i+" "+o+")"})):(i=e.x,o=e.y,a&&(n=e.parent,i-=n.x,o-=n.y),Se(r,{transform:"translate("+i+" "+o+")"})),e.children&&e.children.length&&e.children.forEach(function(c){t._addElement(c)}),r}}},Bn.prototype._removeElement=function(e){var t=this._svg.getElementById(this._prefixId(e.id));t&&rn(t)},Bn.prototype._createElement=function(e){var t=this._elementRegistry.getGraphics(e),n;if(t&&(n=Yo(t),n)){var i=g5(Rf(n));return Se(i,{id:this._prefixId(e.id)}),i}},Bn.prototype._clear=function(){ms(this._elementsGroup)},Bn.prototype._prefixId=function(e){return"djs-minimap-"+e+"-"+this._minimapId};function r5(e){return e.waypoints}function a5(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 cp(e,t,n){var i=t.getBoundingClientRect(),o=s5(n,i.width/i.height),r=QE(e.x,0,i.width,o.x,o.x+o.width),a=QE(e.y,0,i.height,o.y,o.y+o.height);return{x:r,y:a}}function yg(e,t){var n=t.viewbox(),i=n.width,o=n.height;t.viewbox({x:e.x-i/2,y:e.y-o/2,width:i,height:o})}function s5(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 o=i.width*(1/t),r=i.y-(o-i.height)/2;V(i,{y:r,height:o})}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 QE(e,t,n,i,o){var r=n-t,a=o-i;return(e-t)*a/r+i}function c5(e){var t=e.parent;return!t||!t.children?-1:t.children.indexOf(e)}function l5(e,t,n){var i=u5(t),o=i[n];o?t.insertBefore(e,o):t.appendChild(e)}function u5(e){return Array.from(e.childNodes).filter(function(t){return t.id})}function lp(e){return e.width===0&&e.height===0}function p5(e,t){return e.x>t.left&&e.x<t.left+t.width&&e.y>t.top&&e.y<t.top+t.height}var f5=Math.sign||function(e){return e>=0?1:-1};function d5(e,t){var n=Math.log(e.min)/Math.log(10),i=Math.log(e.max)/Math.log(10),o=Math.abs(n)+Math.abs(i);return o/t}function h5(e,t){return Math.max(e.min,Math.min(e.max,t))}function JE(e,t){var n=[co(t.left,t.top),co(t.left+t.width,t.top),co(t.left+t.width,t.top+t.height),co(t.left,t.top+t.height),co(t.left,e.height),co(e.width,e.height),co(e.width,0),co(0,0),co(0,e.height),co(t.left,e.height)].join(", ");return"polygon("+n+")"}function co(e,t){return e+"px "+t+"px"}function e1(e){return Lo(e,function(t){return hn(t)?e1(t):Ue(t)&&isFinite(t)})}function vg(e){return e.center?e.center:{x:e.clientX,y:e.clientY}}function g5(e){return gs("[id]",e).forEach(function(t){t.remove()}),e}var m5={__init__:["minimap"],minimap:["type",Bn]};const t1={closed:"미니맵",open:"접기"};class n1{constructor(t,n,i){this.minimap=n,this.canvas=i,t.on(Ph,()=>this.rebuild()),t.on("minimap.toggle",o=>this.retitle(o.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?t1.open:t1.closed)}}zn(n1,"$inject",["eventBus","minimap","canvas"]);const y5={__depends__:[m5],__init__:["minimapI18n"],minimapI18n:["type",n1]},v5=ve.defineComponent({__name:"BpmnModelerView",props:{xml:{},labelFontFamily:{}},emits:["ready","imported","import-error"],setup(e,{expose:t,emit:n}){const i=e,o=n,r=ve.ref();let a;async function s(l){if(!a)throw new Error("modeler not mounted");try{const{warnings:u}=await a.importXML(l),p=Wp(u);return o("imported",p),{warnings:p}}catch(u){throw o("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 ve.onMounted(async()=>{a=new so({container:r.value,moddleExtensions:Ic,additionalModules:[J_,y5,z_],...i.labelFontFamily?{textRenderer:{defaultStyle:{fontFamily:i.labelFontFamily}}}:{}}),i.xml&&await s(i.xml),o("ready")}),ve.watch(()=>i.xml,l=>{l&&a&&s(l)}),ve.onBeforeUnmount(()=>{a==null||a.destroy(),a=void 0}),t({importXml:s,saveXml:c,getModeler:()=>a}),(l,u)=>(ve.openBlock(),ve.createElementBlock("div",{ref_key:"container",ref:r,class:"bpmn-modeler-view"},null,512))}}),bg=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},b5=bg(v5,[["__scopeId","data-v-5f6ddcd2"]]),x5=["title","aria-expanded"],_5=["title","onClick"],w5={viewBox:"0 0 16 16",width:"13",height:"13","aria-hidden":"true"},E5={key:0,d:"M5.6 5.6l4.8 4.8M10.4 5.6l-4.8 4.8",stroke:"currentColor","stroke-width":"1.5"},S5={key:1,d:"M8 4.6v0.2M8 7v4.4",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round"},R5={key:0,class:"bwl-validation__body"},C5={key:0,class:"bwl-validation__empty"},M5={key:1,class:"bwl-validation__empty"},A5={key:2,class:"bwl-validation__list"},P5=["onClick"],T5={key:0,class:"bwl-validation__scope",title:"이번 변경이 만들거나 건드린 요소"},k5={class:"bwl-validation__msg"},O5=["title"],D5=bg(ve.defineComponent({__name:"BpmnValidationPanel",props:{controller:{}},setup(e){const n=e.controller,i=ve.computed(()=>q_(n.issues.value,n.describeElement)),o=ve.computed(()=>Y_(i.value)),r=g=>Ia(g,n.changeScope.value),a=ve.computed(()=>Ah(i.value,n.changeScope.value)),s=ve.ref({error:!0,warning:!0,info:!0}),c=ve.computed(()=>K_(i.value.filter(g=>s.value[g.severity]),n.changeScope.value)),l=ve.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)=>(ve.openBlock(),ve.createElementBlock("section",{class:ve.normalizeClass(["bwl-validation",{"is-open":l.value}])},[ve.createElementVNode("header",{class:"bwl-validation__head",onClick:h[1]||(h[1]=m=>l.value=!l.value)},[ve.createElementVNode("button",{type:"button",class:"bwl-validation__toggle",title:l.value?"접기":"펼치기","aria-expanded":l.value},[(ve.openBlock(),ve.createElementBlock("svg",{class:ve.normalizeClass(["bwl-validation__chevron",{"is-open":l.value}]),viewBox:"0 0 16 16",width:"13",height:"13","aria-hidden":"true"},[...h[2]||(h[2]=[ve.createElementVNode("path",{d:"M6 3l5 5-5 5",fill:"none",stroke:"currentColor","stroke-width":"1.6"},null,-1)])],2)),h[3]||(h[3]=ve.createElementVNode("span",null,"검증",-1))],8,x5),ve.createElementVNode("div",{class:"bwl-validation__counts",onClick:h[0]||(h[0]=ve.withModifiers(()=>{},["stop"]))},[(ve.openBlock(),ve.createElementBlock(ve.Fragment,null,ve.renderList(u,m=>ve.createElementVNode("button",{key:m,type:"button",class:ve.normalizeClass(["bwl-validation__count",[`is-${m}`,{"is-off":!s.value[m]}]]),title:l.value?`${p[m]} ${s.value[m]?"숨기기":"보이기"}`:"검증 패널 펼치기",onClick:_=>f(m)},[(ve.openBlock(),ve.createElementBlock("svg",w5,[h[4]||(h[4]=ve.createElementVNode("circle",{cx:"8",cy:"8",r:"6.4",fill:"none",stroke:"currentColor","stroke-width":"1.5"},null,-1)),m==="error"?(ve.openBlock(),ve.createElementBlock("path",E5)):(ve.openBlock(),ve.createElementBlock("path",S5))])),ve.createElementVNode("span",null,ve.toDisplayString(o.value[m]),1)],10,_5)),64))])]),l.value?(ve.openBlock(),ve.createElementBlock("div",R5,[i.value.length===0?(ve.openBlock(),ve.createElementBlock("p",C5,"발견된 문제가 없습니다.")):c.value.length===0?(ve.openBlock(),ve.createElementBlock("p",M5," 선택한 심각도에 해당하는 항목이 없습니다. ")):(ve.openBlock(),ve.createElementBlock("ul",A5,[(ve.openBlock(!0),ve.createElementBlock(ve.Fragment,null,ve.renderList(c.value,m=>(ve.openBlock(),ve.createElementBlock("li",{key:m.key,class:ve.normalizeClass(["bwl-validation__item",[`is-${m.severity}`,{"is-clickable":m.targetRefs.length>0}]]),onClick:_=>d(m)},[h[5]||(h[5]=ve.createElementVNode("span",{class:"bwl-validation__dot","aria-hidden":"true"},null,-1)),a.value&&r(m)?(ve.openBlock(),ve.createElementBlock("span",T5,"이번 변경")):ve.createCommentVNode("",!0),ve.createElementVNode("span",k5,ve.toDisplayString(m.message),1),ve.createElementVNode("span",{class:"bwl-validation__cat",title:m.code},ve.toDisplayString(m.category),9,O5)],10,P5))),128))]))])):ve.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-60e8b1a9"]]),L5={key:0,class:"bwl-locale",role:"radiogroup","aria-label":"표시 언어"},I5=["aria-checked","title","data-locale","onClick"],B5={class:"bwl-locale__label"},N5={key:0,class:"bwl-locale__badge"},$5=bg(ve.defineComponent({__name:"BpmnDisplayLocaleSwitcher",props:{controller:{}},setup(e){const n=e.controller;function i(r){try{return new Intl.DisplayNames([r],{type:"language"}).of(r)??r}catch{return r}}const o=ve.computed(()=>{const r=n.i18n.value;return r?r.locales.map(a=>{const s=r.counts[a]??{untranslated:0,reviewRequested:0},c=a===r.designLocale?"설계 언어":"병기 언어";return{locale:a,label:i(a),active:a===r.displayLocale,design:a===r.designLocale,pending:s.untranslated+s.reviewRequested,title:`${c} — 미번역 ${s.untranslated} · 확인 요청 ${s.reviewRequested}`}}):[]});return(r,a)=>o.value.length?(ve.openBlock(),ve.createElementBlock("div",L5,[(ve.openBlock(!0),ve.createElementBlock(ve.Fragment,null,ve.renderList(o.value,s=>(ve.openBlock(),ve.createElementBlock("button",{key:s.locale,type:"button",role:"radio",class:ve.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=>ve.unref(n).setDisplayLocale(s.locale)},[ve.createElementVNode("span",B5,ve.toDisplayString(s.label),1),s.pending>0?(ve.openBlock(),ve.createElementBlock("span",N5,ve.toDisplayString(s.pending),1)):ve.createCommentVNode("",!0)],10,I5))),128))])):ve.createCommentVNode("",!0)}}),[["__scopeId","data-v-04311925"]]);ee.ADDABLE_FLOW_NODE_TYPES=wc,ee.APPLY_BPMN_OPS_SCHEMA=AS,ee.BPMN_EVENT_DEFINITION_TYPES=Sc,ee.BPMN_MODDLE_EXTENSIONS=Ic,ee.BWL_MODDLE_SCHEMA=Og,ee.BWL_NS=kg,ee.BWL_PREFIX=bp,ee.BWL_REVIEW_REQUEST_TYPE=Cc,ee.BWL_SIDES=xp,ee.BpmnDisplayLocaleSwitcher=$5,ee.BpmnModelerView=b5,ee.BpmnValidationPanel=D5,ee.EDITOR=ZM,ee.FLOW_LABEL_INDENT=fm,ee.GROUP_BORDER_MIN_RUN=Up,ee.GROUP_BORDER_NEAR=la,ee.HEADLESS_BPMN_MODULES=G_,ee.HEADLESS_TEXT_METRICS=sa,ee.I18N_DISPLAY_REDRAWN_EVENT=Ph,ee.I18N_NS=uS,ee.I18N_PREFIX=Ng,ee.I18N_REVIEW_REQUESTED_CLASS=Z_,ee.I18N_TRANSLATION_TYPE=_r,ee.I18N_UNTRANSLATED_CLASS=X_,ee.I18nDisplay=Th,ee.I18nDisplayModule=J_,ee.IR_EVENT_DEFINITIONS=Ec,ee.IR_FLOW_NODE_TYPES=br,ee.IR_TEXT_LOCALES=Rc,ee.LABEL_FORK_MARGIN=Kp,ee.LABEL_SHAPE_MIN_DEPTH=Sm,ee.SET_TRANSLATIONS_COMMAND=Ap,ee.SEVERITY_ORDER=Mh,ee.SYMBOLIC_OP_KINDS=$g,ee.SYMBOLIC_OP_SCHEMA=Fg,ee.SetTranslationsHandler=Pp,ee.TranslationCommands=kp,ee.TranslationCommandsModule=Op,ee.TranslationStateIndex=oA,ee.UNDO_EPISODE_COMMAND=_p,ee.UPDATE_TRANSLATION_COMMAND=Pc,ee.UpdateTranslationHandler=Mp,ee.applyBpmnOpBatch=Cy,ee.applyBpmnOps=vy,ee.applyLocaleBackfill=iA,ee.applyTranslationLocaleRestore=lA,ee.approximateTextWidth=ca,ee.auditBpmnGeometry=Mm,ee.auditBpmnGeometryXml=SC,ee.auditBpmnSemantics=vf,ee.auditBpmnSemanticsXml=FM,ee.auditGeometry=pt,ee.auditTargetsOf=Vn,ee.axisSegmentsOf=on,ee.blackBoxNameRect=qp,ee.buildBpmnOpBatch=qM,ee.buildRegistryIndex=Pm,ee.collectTranslationStates=Dy,ee.containerBoundarySegments=pa,ee.countBySeverity=Y_,ee.createBpmnEditorController=QM,ee.createBpmnModdle=om,ee.createHeadlessBpmnModeler=TL,ee.crossedShapesOf=zt,ee.crossingCost=hi,ee.describeProcess=wy,ee.describeProcessXml=DM,ee.diffBpmnElements=Ry,ee.diffBpmnElementsXml=WM,ee.documentLocalesOf=is,ee.edgeCrossCount=ls,ee.edgeCrossingPairsOf=ho,ee.edgeCrossingStatsOf=bm,ee.executeAsUndoEpisode=Lg,ee.followMovedEdgeLabels=ty,ee.forwardThreePointCandidates=zc,ee.geometryFindingKey=ct,ee.inferScriptLocale=nl,ee.installHeadlessBpmnDom=am,ee.irEventDefinitionOf=vp,ee.isAddableFlowNodeType=Pg,ee.isChangeScopeMixed=Ah,ee.isEdgeOverlapFinding=Yp,ee.isInChangeScope=Ia,ee.isIrEventDefinition=Tg,ee.isIrFlowNodeType=Ag,ee.isIrTextLocale=eS,ee.labelRectsOf=Ho,ee.labelShapeDepth=Rm,ee.labelSlot=wr,ee.lineCrossesLabel=Bi,ee.lineThroughLabel=hm,ee.lineThroughShapeLabel=Em,ee.loadBpmnXml=aa,ee.localeTextsOf=Cp,ee.lowerOps=my,ee.oppositeOverlapCount=uC,ee.oppositeOverlapOf=pm,ee.planBackEdgeBoundaryClearance=zm,ee.planCrossPoolRoute=Nm,ee.planEdgeRepair=ef,ee.planLabelLineClearance=ff,ee.planLabelPlacement=Qm,ee.planLocaleBackfill=nA,ee.planMiddleSegmentShifts=km,ee.planOppositeOverlapRepair=Wm,ee.planSegmentDetours=Hc,ee.planShapeLabelClearance=oy,ee.planTranslationLocaleRestore=cA,ee.redockIntroducedDetachedEndpoints=ay,ee.repairIntroducedBoundaryHugging=Gm,ee.repairIntroducedCrossings=tf,ee.repairIntroducedEdgeCrossings=Om,ee.repairIntroducedFakeMerges=qm,ee.repairIntroducedLabelLines=ny,ee.repairIntroducedOppositeOverlaps=Zm,ee.repairIntroducedShapeLabelLines=ry,ee.repairIntroducedSharedSegmentLabels=iy,ee.rerouteIntroducedCrossPoolEdges=$m,ee.resolverServicesOf=py,ee.reviewRequestValuesOf=Tp,ee.reviewRequestsOf=No,ee.rootLangOf=Rp,ee.saveBpmnXml=QR,ee.sceneCrossingCost=vm,ee.sceneFromDefinitions=Cm,ee.sceneFromRegistry=Ge,ee.segmentShapeClearance=cs,ee.shapesUnderLabel=us,ee.sharedEndpointCrossingPairsOf=Ni,ee.sharedSegmentUnderLabel=jc,ee.sharedSpansOf=Fc,ee.sortPanelIssues=K_,ee.toPanelIssues=q_,ee.touchedElements=UM,ee.translationLocale=En,ee.translationsOf=Bo,ee.unreadableOverlapCount=di,ee.unreadableOverlapOf=Cr,ee.validateOps=uy,ee.warningMessages=Wp,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})}));
@@ -1,6 +1,13 @@
1
1
  import { default as Modeler } from 'bpmn-js/lib/Modeler';
2
2
  type __VLS_Props = {
3
3
  xml?: string;
4
+ /**
5
+ * 라벨 폰트(CSS `font-family`) — 줄바꿈을 **재는** 폰트와 **그리는** 폰트를 함께 정한다(bpmn-js `textRenderer`).
6
+ * 마운트 때 한 번 읽는다(bpmn-js 설정은 생성 시점에 고정된다). 미지정 = bpmn-js 기본(`Arial, sans-serif`).
7
+ * 🔴 CSS 로 라벨 폰트만 덮지 말 것 — diagram-js 는 줄 폭을 캔버스 `measureText` 로 재므로 CSS 가 닿지 않아,
8
+ * 잰 폭과 그린 폭이 갈려 라벨이 도형 밖으로 밀린다(B-160 · PDF 인쇄 페이지 실측 ja 0.75 · ko 0.84).
9
+ */
10
+ labelFontFamily?: string;
4
11
  };
5
12
  declare function importXml(xml: string): Promise<{
6
13
  warnings: string[];
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.36",
4
+ "version": "5.0.0-beta.37",
5
5
  "description": "Vue 3 BPMN document authoring editor (bpmn-js based) with AI agent authoring",
6
6
  "type": "module",
7
7
  "files": [