@sentropic/h2a 0.98.7 → 0.98.8-rc.1

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.
Files changed (147) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codex-plugin/plugin.json +1 -1
  3. package/dist/cli.d.ts.map +1 -1
  4. package/dist/cli.js +56 -15
  5. package/dist/cli.js.map +1 -1
  6. package/dist/hosts/native-artifacts.d.ts +2 -0
  7. package/dist/hosts/native-artifacts.d.ts.map +1 -1
  8. package/dist/hosts/native-artifacts.js +19 -5
  9. package/dist/hosts/native-artifacts.js.map +1 -1
  10. package/dist/hosts/native-convergence.d.ts +1 -0
  11. package/dist/hosts/native-convergence.d.ts.map +1 -1
  12. package/dist/hosts/native-convergence.js +1 -1
  13. package/dist/hosts/native-convergence.js.map +1 -1
  14. package/dist/hosts/native-skills.d.ts +6 -0
  15. package/dist/hosts/native-skills.d.ts.map +1 -1
  16. package/dist/hosts/native-skills.js +9 -4
  17. package/dist/hosts/native-skills.js.map +1 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/runtime/identity/live.d.ts.map +1 -1
  23. package/dist/runtime/identity/live.js +27 -4
  24. package/dist/runtime/identity/live.js.map +1 -1
  25. package/dist/runtime/identity/worker.js +21 -2
  26. package/dist/runtime/identity/worker.js.map +1 -1
  27. package/dist/runtime/local-files/identity-fence.d.ts +1 -0
  28. package/dist/runtime/local-files/identity-fence.d.ts.map +1 -1
  29. package/dist/runtime/local-files/identity-fence.js +14 -3
  30. package/dist/runtime/local-files/identity-fence.js.map +1 -1
  31. package/dist/runtime/local-files/locks.d.ts +16 -9
  32. package/dist/runtime/local-files/locks.d.ts.map +1 -1
  33. package/dist/runtime/local-files/locks.js +238 -42
  34. package/dist/runtime/local-files/locks.js.map +1 -1
  35. package/dist/runtime/local-files/succession-lock.d.ts.map +1 -1
  36. package/dist/runtime/local-files/succession-lock.js +7 -6
  37. package/dist/runtime/local-files/succession-lock.js.map +1 -1
  38. package/dist/runtime/mcp/identity-state.d.ts +2 -0
  39. package/dist/runtime/mcp/identity-state.d.ts.map +1 -1
  40. package/dist/runtime/mcp/identity-state.js +39 -1
  41. package/dist/runtime/mcp/identity-state.js.map +1 -1
  42. package/dist/runtime/mcp/index.d.ts +11 -1
  43. package/dist/runtime/mcp/index.d.ts.map +1 -1
  44. package/dist/runtime/mcp/index.js +10 -0
  45. package/dist/runtime/mcp/index.js.map +1 -1
  46. package/dist/runtime/mcp/server.d.ts +23 -1
  47. package/dist/runtime/mcp/server.d.ts.map +1 -1
  48. package/dist/runtime/mcp/server.js +18 -2
  49. package/dist/runtime/mcp/server.js.map +1 -1
  50. package/dist/runtime/mcp/stdio.d.ts.map +1 -1
  51. package/dist/runtime/mcp/stdio.js +60 -4
  52. package/dist/runtime/mcp/stdio.js.map +1 -1
  53. package/dist/runtime/mcp/tools.d.ts +22 -0
  54. package/dist/runtime/mcp/tools.d.ts.map +1 -1
  55. package/dist/runtime/mcp/tools.js.map +1 -1
  56. package/dist/runtime/mcp/ui-render/a2ui-common-types.d.ts +32 -0
  57. package/dist/runtime/mcp/ui-render/a2ui-common-types.d.ts.map +1 -0
  58. package/dist/runtime/mcp/ui-render/a2ui-common-types.js +374 -0
  59. package/dist/runtime/mcp/ui-render/a2ui-common-types.js.map +1 -0
  60. package/dist/runtime/mcp/ui-render/assets.d.ts +104 -0
  61. package/dist/runtime/mcp/ui-render/assets.d.ts.map +1 -0
  62. package/dist/runtime/mcp/ui-render/assets.js +217 -0
  63. package/dist/runtime/mcp/ui-render/assets.js.map +1 -0
  64. package/dist/runtime/mcp/ui-render/bpmn-port.d.ts +3 -0
  65. package/dist/runtime/mcp/ui-render/bpmn-port.d.ts.map +1 -0
  66. package/dist/runtime/mcp/ui-render/bpmn-port.js +621 -0
  67. package/dist/runtime/mcp/ui-render/bpmn-port.js.map +1 -0
  68. package/dist/runtime/mcp/ui-render/fallback.d.ts +35 -0
  69. package/dist/runtime/mcp/ui-render/fallback.d.ts.map +1 -0
  70. package/dist/runtime/mcp/ui-render/fallback.js +245 -0
  71. package/dist/runtime/mcp/ui-render/fallback.js.map +1 -0
  72. package/dist/runtime/mcp/ui-render/index.d.ts +51 -0
  73. package/dist/runtime/mcp/ui-render/index.d.ts.map +1 -0
  74. package/dist/runtime/mcp/ui-render/index.js +38 -0
  75. package/dist/runtime/mcp/ui-render/index.js.map +1 -0
  76. package/dist/runtime/mcp/ui-render/inline.d.ts +3 -0
  77. package/dist/runtime/mcp/ui-render/inline.d.ts.map +1 -0
  78. package/dist/runtime/mcp/ui-render/inline.js +21 -0
  79. package/dist/runtime/mcp/ui-render/inline.js.map +1 -0
  80. package/dist/runtime/mcp/ui-render/negotiation.d.ts +23 -0
  81. package/dist/runtime/mcp/ui-render/negotiation.d.ts.map +1 -0
  82. package/dist/runtime/mcp/ui-render/negotiation.js +45 -0
  83. package/dist/runtime/mcp/ui-render/negotiation.js.map +1 -0
  84. package/dist/runtime/mcp/ui-render/registry-entry.d.ts +74 -0
  85. package/dist/runtime/mcp/ui-render/registry-entry.d.ts.map +1 -0
  86. package/dist/runtime/mcp/ui-render/registry-entry.js +207 -0
  87. package/dist/runtime/mcp/ui-render/registry-entry.js.map +1 -0
  88. package/dist/runtime/mcp/ui-render/resources.d.ts +35 -0
  89. package/dist/runtime/mcp/ui-render/resources.d.ts.map +1 -0
  90. package/dist/runtime/mcp/ui-render/resources.js +342 -0
  91. package/dist/runtime/mcp/ui-render/resources.js.map +1 -0
  92. package/dist/runtime/mcp/ui-render/tools.d.ts +42 -0
  93. package/dist/runtime/mcp/ui-render/tools.d.ts.map +1 -0
  94. package/dist/runtime/mcp/ui-render/tools.js +367 -0
  95. package/dist/runtime/mcp/ui-render/tools.js.map +1 -0
  96. package/dist/runtime/mcp/ui-render/types.d.ts +96 -0
  97. package/dist/runtime/mcp/ui-render/types.d.ts.map +1 -0
  98. package/dist/runtime/mcp/ui-render/types.js +22 -0
  99. package/dist/runtime/mcp/ui-render/types.js.map +1 -0
  100. package/dist/runtime/mcp/ui-render/validation.d.ts +151 -0
  101. package/dist/runtime/mcp/ui-render/validation.d.ts.map +1 -0
  102. package/dist/runtime/mcp/ui-render/validation.js +460 -0
  103. package/dist/runtime/mcp/ui-render/validation.js.map +1 -0
  104. package/dist/runtime/mcp/ui-render/watermark.d.ts +38 -0
  105. package/dist/runtime/mcp/ui-render/watermark.d.ts.map +1 -0
  106. package/dist/runtime/mcp/ui-render/watermark.js +52 -0
  107. package/dist/runtime/mcp/ui-render/watermark.js.map +1 -0
  108. package/dist/runtime/mcp-central.d.ts.map +1 -1
  109. package/dist/runtime/mcp-central.js +55 -6
  110. package/dist/runtime/mcp-central.js.map +1 -1
  111. package/fixtures/ui-render-ac-l3/offline-measurement.v1.json +105 -0
  112. package/package.json +8 -5
  113. package/vendor/design-system-elements/catalog.json +1234 -0
  114. package/vendor/design-system-elements/dist/browser/assets/bpmn-CZlEAdL6.ttf +0 -0
  115. package/vendor/design-system-elements/dist/browser/assets/bpmn-DaGVGZ7K.woff +0 -0
  116. package/vendor/design-system-elements/dist/browser/assets/bpmn-DaJ2be00.woff2 +0 -0
  117. package/vendor/design-system-elements/dist/browser/chunks/BpmnRenderUtil-WMCgqGDs.js +1 -0
  118. package/vendor/design-system-elements/dist/browser/chunks/BpmnUpdater-C-UNbzXl.js +1 -0
  119. package/vendor/design-system-elements/dist/browser/chunks/LabelUtil-7QpE43Ed.js +1 -0
  120. package/vendor/design-system-elements/dist/browser/chunks/LayoutUtil-hAMJmJFU.js +1 -0
  121. package/vendor/design-system-elements/dist/browser/chunks/ModelUtil-CMh7LuN4.js +1 -0
  122. package/vendor/design-system-elements/dist/browser/chunks/Modeler-BfAmwsmK.js +389 -0
  123. package/vendor/design-system-elements/dist/browser/chunks/Viewer-eYLzc3fD.js +4 -0
  124. package/vendor/design-system-elements/dist/browser/chunks/bpmn-canvas-DeAWdJFy.js +2207 -0
  125. package/vendor/design-system-elements/dist/browser/chunks/colored-CSIQaGsQ.js +1 -0
  126. package/vendor/design-system-elements/dist/browser/chunks/dist-Co2MgHWm.js +1 -0
  127. package/vendor/design-system-elements/dist/browser/chunks/dist-O6_2ByYB.js +1 -0
  128. package/vendor/design-system-elements/dist/browser/chunks/dist-kvAYI1vo.js +1 -0
  129. package/vendor/design-system-elements/dist/browser/chunks/entropic-CM5BHERN.js +2173 -0
  130. package/vendor/design-system-elements/dist/browser/chunks/focus-renderer-C4z8aS9F.js +8 -0
  131. package/vendor/design-system-elements/dist/browser/chunks/forge-B8hrW4lA.js +2173 -0
  132. package/vendor/design-system-elements/dist/browser/chunks/layout-q0TR9-aY.js +1 -0
  133. package/vendor/design-system-elements/dist/browser/chunks/legend-CXdfCBh6.js +1 -0
  134. package/vendor/design-system-elements/dist/browser/chunks/textMetrics-BrMS6-sA.js +2 -0
  135. package/vendor/design-system-elements/dist/browser/chunks/tokens-DFPpCvf1.js +1 -0
  136. package/vendor/design-system-elements/dist/browser/elements.js +2221 -0
  137. package/vendor/design-system-elements/dist/browser/sri.json +166 -0
  138. package/vendor/design-system-elements/envelope.json +43 -0
  139. package/vendor/design-system-elements/manifest.json +101 -0
  140. package/vendor/design-system-elements/schemas/BarChart.v1.json +556 -0
  141. package/vendor/design-system-elements/schemas/BpmnCanvas.v1.json +139 -0
  142. package/vendor/design-system-elements/schemas/DecisionDossier.v1.json +635 -0
  143. package/vendor/ui-render-inline/BarChart.js +1 -0
  144. package/vendor/ui-render-inline/BpmnCanvas.js +1 -0
  145. package/vendor/ui-render-inline/DecisionDossier.js +1 -0
  146. package/vendor/ui-render-inline/manifest.json +80 -0
  147. package/vendor/ui-render-inline/render.js +1 -0
@@ -0,0 +1 @@
1
+ var jg=Object.freeze,$g=Object.defineProperty;var gn=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ii=(t,e)=>{for(var n in e)$g(t,n,{get:e[n],enumerable:!0})};var Vt=(t,e)=>jg($g(t,"raw",{value:jg(e||t.slice())}));function sl(t){return Array.prototype.concat.apply([],t)}function _r(t){return t===void 0}function Le(t){return t!==void 0}function Kr(t){return t==null}function bt(t){return js.call(t)==="[object Array]"}function Se(t){return js.call(t)==="[object Object]"}function xt(t){return js.call(t)==="[object Number]"}function Be(t){let e=js.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"||e==="[object Proxy]"}function yn(t){return js.call(t)==="[object String]"}function V_(t){if(!bt(t))throw Error("must supply array")}function vn(t,e){return!Kr(t)&&G_.call(t,e)}function ce(t,e){let n=ll(e),o;return R(t,function(r,i){if(n(r,i))return o=r,!1}),o}function cl(t,e){let n=ll(e),o=bt(t)?-1:void 0;return R(t,function(r,i){if(n(r,i))return o=i,!1}),o}function Dt(t,e){let n=ll(e),o=[];return R(t,function(r,i){n(r,i)&&o.push(r)}),o}function R(t,e){let n,o;if(_r(t))return;let r=bt(t)?q_:U_;for(let i in t)if(vn(t,i)&&(n=t[i],o=e(n,r(i)),o===!1))return n}function zg(t,e){if(_r(t))return[];V_(t);let n=ll(e);return t.filter(function(o,r){return!n(o,r)})}function Pn(t,e,n){return R(t,function(o,r){n=e(n,o,r)}),n}function tr(t,e){return!!Pn(t,function(n,o,r){return n&&e(o,r)},!0)}function Ho(t,e){return!!ce(t,e)}function tn(t,e){let n=[];return R(t,function(o,r){n.push(e(o,r))}),n}function $s(t){return t&&Object.keys(t)||[]}function Og(t){return $s(t).length}function Hi(t){return tn(t,e=>e)}function Xr(t,e,n={}){return e=em(e),R(t,function(o){let r=e(o)||"_",i=n[r];i||=n[r]=[],i.push(o)}),n}function tm(t,...e){t=em(t);let n={};return R(e,o=>Xr(o,t,n)),tn(n,function(o,r){return o[0]})}function vo(t,e){e=em(e);let n=[];return R(t,function(o,r){let i=e(o,r),a={d:i,v:o};for(var s=0;s<n.length;s++){let{d:c}=n[s];if(i<c){n.splice(s,0,a);return}}n.push(a)}),tn(n,o=>o.v)}function Yr(t){return function(e){return tr(t,function(n,o){return e[o]===n})}}function em(t){return Be(t)?t:e=>e[t]}function ll(t){return Be(t)?t:e=>e===t}function U_(t){return t}function q_(t){return Number(t)}function Ea(t,e){let n,o,r,i;function a(d){let m=Date.now(),u=d?0:i+e-m;if(u>0)return s(u);t.apply(r,o),c()}function s(d){n=setTimeout(a,d)}function c(){n&&clearTimeout(n),n=i=o=r=void 0}function l(){n&&a(!0),c()}function p(...d){i=Date.now(),o=d,r=this,n||s(e)}return p.flush=l,p.cancel=c,p}function bn(t,e){return t.bind(e)}function P(t,...e){return Object.assign(t,...e)}function Ng(t,e,n){let o=t;return R(e,function(r,i){if(typeof r!="number"&&typeof r!="string")throw Error("illegal key type: "+typeof r+". Key should be of type number or string.");if(r==="constructor")throw Error("illegal key: constructor");if(r==="__proto__")throw Error("illegal key: __proto__");let a=e[i+1],s=o[r];Le(a)&&Kr(s)&&(s=o[r]=isNaN(+a)?{}:[]),_r(a)?_r(n)?delete o[r]:o[r]=n:o=s}),t}function Nn(t,e){let n={},o=Object(t);return R(e,function(r){r in o&&(n[r]=t[r])}),n}function bo(t,e){let n={};return R(Object(t),function(o,r){e.indexOf(r)===-1&&(n[r]=o)}),n}var js,G_,Lg,er=gn(()=>{"use strict";js=Object.prototype.toString,G_=Object.prototype.hasOwnProperty;Lg=tm});function y(t,e){var n=Y(t);return n&&typeof n.$instanceOf=="function"&&n.$instanceOf(e)}function At(t,e){return Ho(e,function(n){return y(t,n)})}function Y(t){return t&&t.businessObject||t}function Tt(t){return t&&t.di}var Er=gn(()=>{"use strict";er()});function oe(t){return Se(t)&&vn(t,"waypoints")}function Bt(t){return Se(t)&&vn(t,"labelTarget")}function Ig(t){return Se(t)&&Kr(t.parent)}function Fo(t){return y(t,"bpmn:Event")||y(t,"bpmn:Gateway")||y(t,"bpmn:DataStoreReference")||y(t,"bpmn:DataObjectReference")||y(t,"bpmn:DataInput")||y(t,"bpmn:DataOutput")||y(t,"bpmn:SequenceFlow")||y(t,"bpmn:MessageFlow")||y(t,"bpmn:Group")}function zs(t){return Bt(t.label)}function K_(t){var e=t.length/2-1,n=t[Math.floor(e)],o=t[Math.ceil(e+.01)],r=X_(t),i=Math.atan((o.y-n.y)/(o.x-n.x)),a=r.x,s=r.y;return Math.abs(i)<Math.PI/2?s-=15:a+=15,{x:a,y:s}}function X_(t){var e=t.length/2-1,n=t[Math.floor(e)],o=t[Math.ceil(e+.01)];return{x:n.x+(o.x-n.x)/2,y:n.y+(o.y-n.y)/2}}function Sa(t){return t.waypoints?K_(t.waypoints):y(t,"bpmn:Group")?{x:t.x+t.width/2,y:t.y+Sr.height/2}:{x:t.x+t.width/2,y:t.y+t.height+Sr.height/2}}function Hg(t,e){var n,o,r,i=t.label;return i&&i.bounds?(r=i.bounds,o={width:Math.max(Sr.width,r.width),height:r.height},n={x:r.x+r.width/2,y:r.y+r.height/2}):(n=Sa(e),o=Sr),P({x:n.x-o.width/2,y:n.y-o.height/2},o)}function Fg(t){if(y(t,"bpmn:FlowElement")||y(t,"bpmn:Participant")||y(t,"bpmn:Lane")||y(t,"bpmn:SequenceFlow")||y(t,"bpmn:MessageFlow")||y(t,"bpmn:DataInput")||y(t,"bpmn:DataOutput"))return"name";if(y(t,"bpmn:TextAnnotation"))return"text";if(y(t,"bpmn:Group"))return"categoryValueRef"}function Y_(t){var e=t.categoryValueRef;return e&&e.value||""}function Dn(t){var e=t.businessObject,n=Fg(e);if(n)return n==="categoryValueRef"?Y_(e):e[n]||""}function Wg(t,e){var n=t.businessObject,o=Fg(n);if(o)if(o==="categoryValueRef"){if(!n[o])return t;n[o].value=e}else n[o]=e;return t}function Gg(t){return Bt(t)&&Fo(t.labelTarget)}var Sr,Ta=gn(()=>{"use strict";er();Er();Sr={width:90,height:20}});function Ca(t,e){return!t||!e?-1:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function ml(t,e,n,o){if(o===void 0&&(o=5),!t||!e||!n)return!1;var r=(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x),i=Ca(t,e);return Math.abs(r/i)<=o}function rr(t,e){var n=Array.from(arguments).flat();for(let[o,r]of Object.entries({x:"v",y:"h"}))if(J_(o,n))return r;return!1}function J_(t,e){let n=e[0];return tr(e,function(o){return Math.abs(n[t]-o[t])<=Z_})}function om(t,e,n){return n||=0,t.x>e.x-n&&t.y>e.y-n&&t.x<e.x+e.width+n&&t.y<e.y+e.height+n}function ul(t,e){return{x:Math.round(t.x+(e.x-t.x)/2),y:Math.round(t.y+(e.y-t.y)/2)}}function oE(t){if(!t)return null;var e={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},n=[];return String(t).replace(tE,function(o,r,i){var a=[],s=r.toLowerCase();for(i.replace(s=="a"?nE:eE,function(){for(var c=1;c<arguments.length-2;c++)arguments[c]&&a.push(+arguments[c])}),s=="m"&&a.length>2&&(n.push([r,...a.splice(0,2)]),s="l",r=r=="m"?"l":"L");a.length>=e[s]&&(n.push([r,...a.splice(0,e[s])]),e[s]););}),n.toString=rm,n}function rE(t){for(var e=0,n=t.length;e<n;e++){var o=t[e][0];if(typeof o=="string"&&o!==o.toUpperCase())return!1}return!0}function iE(t){for(var e=0,n=t.length;e<n;e++){var o=t[e][0];if(o!=="M"&&o!=="C")return!1}return!0}function aE(t,e,n,o){return arguments.length===1&&(e=t.y,n=t.width,o=t.height,t=t.x),{x:t,y:e,width:n,height:o,x2:t+n,y2:e+o}}function rm(){return this.join(",").replace(Q_,"$1")}function sE(t){for(var e=Array(t.length),n=0,o=t.length;n<o;n++)for(var r=t[n],i=e[n]=Array(r.length),a=0,s=r.length;a<s;a++)i[a]=r[a];return e.toString=rm,e}function Kg(t,e,n,o,r,i,a,s,c){var l=1-c,p=Ug(l,3),d=Ug(l,2),m=c*c*c,u=p*t+d*3*c*n+l*3*c*c*r+m*a,h=p*e+d*3*c*o+l*3*c*c*i+m*s;return{x:dl(u),y:dl(h)}}function nm(t){var e=mE(...t);return aE(e.x0,e.y0,e.x1-e.x0,e.y1-e.y0)}function Jr(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function ey(t,e){return Jr(e,t.x,t.y)||Jr(e,t.x2,t.y)||Jr(e,t.x,t.y2)||Jr(e,t.x2,t.y2)||Jr(t,e.x,e.y)||Jr(t,e.x2,e.y)||Jr(t,e.x,e.y2)||Jr(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}function Xg(t,e,n,o,r){return t*(t*(-3*e+9*n-9*o+3*r)+6*e-12*n+6*o)-3*e+3*n}function Yg(t,e,n,o,r,i,a,s,c){c??=1,c=c>1?1:c<0?0:c;for(var l=c/2,p=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],m=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],u=0,h=0;h<p;h++){var f=l*d[h]+l,g=Xg(f,t,n,r,a),x=Xg(f,e,o,i,s),k=g*g+x*x;u+=m[h]*an.sqrt(k)}return l*u}function cE(t,e,n,o,r,i,a,s){if(!(or(t,n)<nr(r,a)||nr(t,n)>or(r,a)||or(e,o)<nr(i,s)||nr(e,o)>or(i,s))){var c=(t*o-e*n)*(r-a)-(t-n)*(r*s-i*a),l=(t*o-e*n)*(i-s)-(e-o)*(r*s-i*a),p=(t-n)*(i-s)-(e-o)*(r-a);if(p){var d=dl(c/p),m=dl(l/p),u=+d.toFixed(2),h=+m.toFixed(2);if(!(u<+nr(t,n).toFixed(2)||u>+or(t,n).toFixed(2)||u<+nr(r,a).toFixed(2)||u>+or(r,a).toFixed(2)||h<+nr(e,o).toFixed(2)||h>+or(e,o).toFixed(2)||h<+nr(i,s).toFixed(2)||h>+or(i,s).toFixed(2)))return{x:d,y:m}}}}function dl(t){return Math.round(t*1e11)/1e11}function lE(t,e,n,o,r){if(o||=nm(t),r||=nm(e),!ey(o,r))return n?0:[];for(var i=Yg(...t),a=Yg(...e),s=Jg(t)?1:~~(i/5)||1,c=Jg(e)?1:~~(a/5)||1,l=Array(s+1),p=Array(c+1),d={},m=n?0:[],u=0,h;u<s+1;u++){var f=u/s,g=Kg(...t,f);l[u]={x:g.x,y:g.y,t:f}}for(u=0;u<c+1;u++)f=u/c,g=Kg(...e,f),p[u]={x:g.x,y:g.y,t:f};for(u=0;u<s;u++)for(h=0;h<c;h++){var x=l[u],k=l[u+1],_=p[h],w=p[h+1],S=Qr(k.x-x.x)<.01?"y":"x",T=Qr(w.x-_.x)<.01?"y":"x",B=cE(x.x,x.y,k.x,k.y,_.x,_.y,w.x,w.y),M;if(B){if(M=B.x.toFixed(9)+"#"+B.y.toFixed(9),d[M])continue;d[M]=!0;var z=x.t+Qr((B[S]-x[S])/(k[S]-x[S]))*(k.t-x.t),H=_.t+Qr((B[T]-_[T])/(w[T]-_[T]))*(w.t-_.t);z>=0&&z<=1&&H>=0&&H<=1&&(n?m++:m.push({x:B.x,y:B.y,t1:z,t2:H}))}}return m}function im(t,e,n){for(var o=Zg(ty(t)),r=Zg(ty(e)),i=n?0:[],a=0,s=o.length;a<s;a++)for(var c=o[a],l=0,p=r.length;l<p;l++){var d=r[l];if(ey(c.bbox,d.bbox)){var m=lE(c.bez,d.bez,n,c.bbox,d.bbox);if(n)i+=m;else for(var u=0,h=m.length;u<h;u++)m[u].segment1=c.segment,m[u].segment2=d.segment,m[u].bez1=c.bez,m[u].bez2=d.bez,i.push(m[u])}}return i}function Zg(t){for(var e=[],n=0,o=0,r=0,i=0,a=0,s=t.length;a<s;a++){var c=t[a],l;c[0]=="M"?(n=r=c[1],o=i=c[2]):(c[0]=="C"?(l=[n,o,c[1],c[2],c[3],c[4],c[5],c[6]],n=c[5],o=c[6]):(l=[n,o,n,o,r,i,r,i],n=r,o=i),e.push({bez:l,bbox:nm(l),segment:a}))}return e}function pE(t){return qg(t)&&qg(t[0])}function dE(t){if(rE(t))return t;var e=Array(t.length),n=0,o=0,r=0,i=0,a=0,s;t[0][0]=="M"&&(n=+t[0][1],o=+t[0][2],r=n,i=o,a++,e[0]=["M",n,o]);for(var c,l,p=a,d=t.length;p<d;p++){if(l=t[p],s=l[0],e[p]=c=Array(l.length),s!=s.toUpperCase())switch(c[0]=s.toUpperCase(),c[0]){case"A":c[1]=l[1],c[2]=l[2],c[3]=l[3],c[4]=l[4],c[5]=l[5],c[6]=+l[6]+n,c[7]=+l[7]+o;break;case"V":c[1]=+l[1]+o;break;case"H":c[1]=+l[1]+n;break;case"M":r=+l[1]+n,i=+l[2]+o;default:for(var m=1,u=l.length;m<u;m++)c[m]=+l[m]+(m%2?n:o)}else for(var h=0,f=l.length;h<f;h++)c[h]=l[h];switch(s=s.toUpperCase(),c[0]){case"Z":n=+r,o=+i;break;case"H":n=c[1];break;case"V":o=c[1];break;case"M":r=c[c.length-2],i=c[c.length-1];default:n=c[c.length-2],o=c[c.length-1]}}return e.toString=rm,e}function Jg(t){return t[0]===t[2]&&t[1]===t[3]&&t[4]===t[6]&&t[5]===t[7]}function pl(t,e,n,o){return[t,e,n,o,n,o]}function Qg(t,e,n,o,r,i){var a=.3333333333333333,s=2/3;return[a*t+s*n,a*e+s*o,a*r+s*n,a*i+s*o,r,i]}function ny(t,e,n,o,r,i,a,s,c,l){var p=Zr*120/180,d=Zr/180*(+r||0),m=[],u,h=an.cos(d),f=an.sin(d),g=function(v,j){return{x:v*h-j*f,y:v*f+j*h}};if(l)z=l[0],H=l[1],B=l[2],M=l[3];else{u=g(t,-e),t=u.x,e=-u.y,u=g(s,-c),s=u.x,c=-u.y;var x=(t-s)/2,k=(e-c)/2,_=x*x/(n*n)+k*k/(o*o);_>1&&(_=an.sqrt(_),n=_*n,o=_*o);var w=n*n,S=o*o,T=(i==a?-1:1)*an.sqrt(Qr((w*S-w*k*k-S*x*x)/(w*k*k+S*x*x))),B=T*n*k/o+(t+s)/2,M=T*-o*x/n+(e+c)/2,z=an.asin(((e-M)/o).toFixed(9)),H=an.asin(((c-M)/o).toFixed(9));z=t<B?Zr-z:z,H=s<B?Zr-H:H,z<0&&(z=Zr*2+z),H<0&&(H=Zr*2+H),a&&z>H&&(z-=Zr*2),!a&&H>z&&(H-=Zr*2)}var N=H-z;if(Qr(N)>p){var Z=H,Et=s,ft=c;H=z+p*(a&&H>z?1:-1),s=B+n*an.cos(H),c=M+o*an.sin(H),m=ny(s,c,n,o,r,0,a,Et,ft,[H,Z,B,M])}N=H-z;var ee=an.cos(z),Fe=an.sin(z),Lt=an.cos(H),St=an.sin(H),wt=an.tan(N/4),pt=4/3*n*wt,zt=4/3*o*wt,W=[t,e],F=[t+pt*Fe,e-zt*ee],ct=[s+pt*St,c-zt*Lt],Ht=[s,c];if(F[0]=2*W[0]-F[0],F[1]=2*W[1]-F[1],l)return[F,ct,Ht].concat(m);m=[F,ct,Ht].concat(m).join().split(",");for(var de=[],C=0,b=m.length;C<b;C++)de[C]=C%2?g(m[C-1],m[C]).y:g(m[C],m[C+1]).x;return de}function mE(t,e,n,o,r,i,a,s){for(var c=[],l=[[],[]],p,d,m,u,h,f,g,x,k=0;k<2;++k)if(k==0?(d=6*t-12*n+6*r,p=-3*t+9*n-9*r+3*a,m=3*n-3*t):(d=6*e-12*o+6*i,p=-3*e+9*o-9*i+3*s,m=3*o-3*e),Qr(p)<1e-12){if(Qr(d)<1e-12)continue;u=-m/d,0<u&&u<1&&c.push(u)}else g=d*d-4*m*p,x=an.sqrt(g),!(g<0)&&(h=(-d+x)/(2*p),0<h&&h<1&&c.push(h),f=(-d-x)/(2*p),0<f&&f<1&&c.push(f));for(var _=c.length,w=_,S;_--;)u=c[_],S=1-u,l[0][_]=S*S*S*t+3*S*S*u*n+3*S*u*u*r+u*u*u*a,l[1][_]=S*S*S*e+3*S*S*u*o+3*S*u*u*i+u*u*u*s;return l[0][w]=t,l[1][w]=e,l[0][w+1]=a,l[1][w+1]=s,l[0].length=l[1].length=w+2,{x0:nr(...l[0]),y0:nr(...l[1]),x1:or(...l[0]),y1:or(...l[1])}}function ty(t){if(pE(t)||(t=oE(t)),iE(t))return t;for(var e=sE(dE(t)),n={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=function(m,u,h){var f,g;if(!m)return["C",u.x,u.y,u.x,u.y,u.x,u.y];switch(!(m[0]in{T:1,Q:1})&&(u.qx=u.qy=null),m[0]){case"M":u.X=m[1],u.Y=m[2];break;case"A":m=["C",...ny(u.x,u.y,...m.slice(1))];break;case"S":h=="C"||h=="S"?(f=u.x*2-u.bx,g=u.y*2-u.by):(f=u.x,g=u.y),m=["C",f,g,...m.slice(1)];break;case"T":h=="Q"||h=="T"?(u.qx=u.x*2-u.qx,u.qy=u.y*2-u.qy):(u.qx=u.x,u.qy=u.y),m=["C",...Qg(u.x,u.y,u.qx,u.qy,m[1],m[2])];break;case"Q":u.qx=m[1],u.qy=m[2],m=["C",...Qg(u.x,u.y,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...pl(u.x,u.y,m[1],m[2])];break;case"H":m=["C",...pl(u.x,u.y,m[1],u.y)];break;case"V":m=["C",...pl(u.x,u.y,u.x,m[1])];break;case"Z":m=["C",...pl(u.x,u.y,u.X,u.Y)]}return m},r=function(m,u){if(m[u].length>7){m[u].shift();for(var h=m[u];h.length;)i[u]="A",m.splice(u++,0,["C",...h.splice(0,6)]);m.splice(u,1),l=e.length}},i=[],a="",s="",c=0,l=e.length;c<l;c++){e[c]&&(a=e[c][0]),a!="C"&&(i[c]=a,c&&(s=i[c-1])),e[c]=o(e[c],n,s),i[c]!="A"&&a=="C"&&(i[c]="C"),r(e,c);var p=e[c],d=p.length;n.x=p[d-2],n.y=p[d-1],n.bx=Vg(p[d-4])||n.x,n.by=Vg(p[d-3])||n.y}return e}function am(t){return{x:Math.round(t.x),y:Math.round(t.y),width:Math.round(t.width),height:Math.round(t.height)}}function Tr(t){return{x:Math.round(t.x),y:Math.round(t.y)}}function ht(t){return{top:t.y,right:t.x+(t.width||0),bottom:t.y+(t.height||0),left:t.x}}function Ba(t){return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}function uE(t){return Tr({x:t.x+(t.width||0)/2,y:t.y+(t.height||0)/2})}function hE(t){for(var e=t.waypoints,n=e.reduce(function(s,c,l){var p=e[l-1];if(p){var d=s[s.length-1],m=d&&d.endLength||0,u=gE(p,c);s.push({start:p,end:c,startLength:m,endLength:m+u,length:u})}return s},[]),o=n.reduce(function(s,c){return s+c.length},0)/2,r=0,i=n[r];i.endLength<o;)i=n[++r];var a=(o-i.startLength)/i.length;return{x:i.start.x+(i.end.x-i.start.x)*a,y:i.start.y+(i.end.y-i.start.y)*a}}function vt(t){return oe(t)?hE(t):uE(t)}function dn(t,e,n){n||=0,Se(n)||(n={x:n,y:n});var o=ht(t),r=ht(e),i=o.bottom+n.y<=r.top,a=o.left-n.x>=r.right,s=o.top-n.y>=r.bottom,c=o.right+n.x<=r.left,l=i?"top":s?"bottom":null,p=c?"left":a?"right":null;return p&&l?l+"-"+p:p||l||"intersect"}function Ra(t,e,n){var o=fE(t,e);return o.length===1||o.length===2&&Ca(o[0],o[1])<1?Tr(o[0]):o.length>1?(o=vo(o,function(r){var i=Math.floor(r.t2*100)||1;return i=100-i,i=(i<10?"0":"")+i,r.segment2+"#"+i}),Tr(o[n?0:o.length-1])):null}function fE(t,e){return im(t,e)}function oy(t){t=t.slice();for(var e=0,n,o,r;t[e];)n=t[e],o=t[e-1],r=t[e+1],Ca(n,r)===0||ml(o,r,n)?t.splice(e,1):e++;return t}function gE(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}var Z_,Q_,Vg,an,Zr,nr,or,Ug,Qr,tE,eE,Os,Fi,nE,qg,hl=gn(()=>{"use strict";er();Ta();Z_=2;Q_=/,?([a-z]),?/gi,Vg=parseFloat,an=Math,Zr=an.PI,nr=an.min,or=an.max,Ug=an.pow,Qr=an.abs,tE=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/gi,eE=/(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/gi,Os="-?(?:\\d+\\.?\\d*|\\.\\d+)(?:[eE][-+]?\\d+)?",Fi="[\\s]*,?[\\s]*",nE=RegExp("(?=("+Os+"))\\1"+Fi+"(?=("+Os+"))\\2"+Fi+"(?=("+Os+"))\\3"+Fi+"([01])"+Fi+"([01])"+Fi+"(?=("+Os+"))\\6"+Fi+"(?=("+Os+"))\\7"+Fi,"g"),qg=Array.isArray||function(t){return t instanceof Array}});function qn(t,e){var n=this;e||=1e3,t.on(["render.shape","render.connection"],e,function(o,r){var i=o.type,a=r.element,s=r.gfx,c=r.attrs;if(n.canRender(a))return i==="render.shape"?n.drawShape(s,a,c):n.drawConnection(s,a,c)}),t.on(["render.getShapePath","render.getConnectionPath"],e,function(o,r){if(n.canRender(r))return o.type==="render.getShapePath"?n.getShapePath(r):n.getConnectionPath(r)})}function yE(t,e){if(t.ownerDocument!==e.ownerDocument)try{return e.ownerDocument.importNode(t,!0)}catch{}return t}function sy(t,e){return e.appendChild(yE(t,e))}function it(t,e){return sy(e,t),t}function vE(t,e){return cy[e]?t.style[e]:t.getAttributeNS(null,e)}function ly(t,e,n){var o=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=cy[o];r?(r===lm&&typeof n=="number"&&(n=String(n)+"px"),t.style[o]=n):t.setAttributeNS(null,e,n)}function bE(t,e){for(var n=Object.keys(e),o=0,r;r=n[o];o++)ly(t,r,e[r])}function U(t,e,n){if(typeof e=="string")if(n!==void 0)ly(t,e,n);else return vE(t,e);else bE(t,e);return t}function ut(t){return new ti(t)}function ti(t){if(!t||!t.nodeType)throw Error("A DOM element reference is required");this.el=t,this.list=t.classList}function Ma(t){for(var e;e=t.firstChild;)t.removeChild(e);return t}function dm(t){return t.cloneNode(!0)}function py(t){var e=!1;t.substring(0,4)==="<svg"?t.indexOf(mm.svg)===-1&&(t=ry+t.substring(4)):(t=ry+">"+t+"</svg>",e=!0);var n=kE(t);if(!e)return n;for(var o=document.createDocumentFragment(),r=n.firstChild;r.firstChild;)o.appendChild(r.firstChild);return o}function kE(t){var e=new DOMParser;return e.async=!1,e.parseFromString(t,"text/xml")}function et(t,e){var n;return t=t.trim(),t.charAt(0)==="<"?(n=py(t).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(mm.svg,t),e&&U(n,e),n}function pm(){return sm===null&&(sm=et("svg")),sm}function iy(t,e){var n,o,r=Object.keys(e);for(n=0;o=r[n];n++)t[o]=e[o];return t}function dy(t,e,n,o,r,i){var a=pm().createSVGMatrix();switch(arguments.length){case 0:return a;case 1:return iy(a,t);case 6:return iy(a,{a:t,b:e,c:n,d:o,e:r,f:i})}}function Aa(t){return t?pm().createSVGTransformFromMatrix(t):pm().createSVGTransform()}function cm(t,e){function n(o,r){return _E[r]||r}return t.replace(e,n)}function my(t,e){var n,o,r,i,a;switch(t.nodeType){case 3:e.push(cm(t.textContent,ay));break;case 1:if(e.push("<",t.tagName),t.hasAttributes())for(r=t.attributes,n=0,o=r.length;n<o;++n)i=r.item(n),e.push(" ",i.name,'="',cm(i.value,wE),'"');if(t.hasChildNodes()){for(e.push(">"),a=t.childNodes,n=0,o=a.length;n<o;++n)my(a.item(n),e);e.push("</",t.tagName,">")}else e.push("/>");break;case 8:e.push("<!--",cm(t.nodeValue,ay),"-->");break;case 4:e.push("<![CDATA[",t.nodeValue,"]]>");break;default:throw Error("unable to handle node "+t.nodeType)}return e}function EE(t,e){var n=py(e);if(Ma(t),e){TE(n)||(n=n.documentElement);for(var o=CE(n.childNodes),r=0;r<o.length;r++)sy(o[r],t)}}function SE(t){for(var e=t.firstChild,n=[];e;)my(e,n),e=e.nextSibling;return n.join("")}function TE(t){return t.nodeName==="#document-fragment"}function um(t,e){if(e!==void 0){try{EE(t,e)}catch(n){throw Error("error parsing SVG: "+n.message)}return t}return SE(t)}function CE(t){return Array.prototype.slice.call(t)}function uy(t,e){return t.querySelector(e)}function Pa(t,e){var n=t.querySelectorAll(e);return[].map.call(n,function(o){return o})}function Ne(t){var e=t.parentNode;return e&&e.removeChild(t),t}function BE(t,e){return e instanceof SVGMatrix?t.createSVGTransformFromMatrix(e):e}function RE(t,e){var n,o;for(t.clear(),n=0;o=e[n];n++)t.appendItem(BE(t,o))}function Da(t,e){var n=t.transform.baseVal;return e&&(Array.isArray(e)||(e=[e]),RE(n,e)),n.consolidate()}var lm,cy,xE,mm,ry,sm,ay,wE,_E,ja=gn(()=>{"use strict";qn.prototype.canRender=function(t){},qn.prototype.drawShape=function(t,e){},qn.prototype.drawConnection=function(t,e){},qn.prototype.getShapePath=function(t){},qn.prototype.getConnectionPath=function(t){};lm=2,cy={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":lm,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":lm,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};xE=Object.prototype.toString;ti.prototype.add=function(t){return this.list.add(t),this},ti.prototype.remove=function(t){return xE.call(t)=="[object RegExp]"?this.removeMatching(t):(this.list.remove(t),this)},ti.prototype.removeMatching=function(t){let e=this.array();for(let n=0;n<e.length;n++)t.test(e[n])&&this.remove(e[n]);return this},ti.prototype.toggle=function(t,e){return(e===void 0||e!==this.list.toggle(t,e))&&this.list.toggle(t),this},ti.prototype.array=function(){return Array.from(this.list)},ti.prototype.has=ti.prototype.contains=function(t){return this.list.contains(t)};mm={svg:"http://www.w3.org/2000/svg"},ry='<svg xmlns="'+mm.svg+'"';sm=null;ay=/([&<>]{1})/g,wE=/([&<>\n\r"]{1})/g,_E={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"'"}});function dt(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}function we(t,e){if(!t||!e)return-1;var n=t.indexOf(e);return n!==-1&&t.splice(n,1),n}function Te(t,e,n){if(t&&e){typeof n!="number"&&(n=-1);var o=t.indexOf(e);if(o!==-1){if(o===n)return;if(n!==-1)t.splice(o,1);else return}n===-1?t.push(e):t.splice(n,0,e)}}function gl(t,e){return!t||!e?-1:t.indexOf(e)}function Ot(t,e){return y(t,"bpmn:CallActivity")?!1:y(t,"bpmn:SubProcess")?(e||=Tt(t),e&&y(e,"bpmndi:BPMNPlane")?!0:e&&!!e.isExpanded):!y(t,"bpmn:Participant")||!!Y(t).processRef}function Re(t){if(y(t,"bpmn:Participant")||y(t,"bpmn:Lane")){var e=Tt(t).isHorizontal;return e===void 0||e}}function hy(t){return t&&Y(t).isInterrupting!==!1}function mn(t){return t&&!!Y(t).triggeredByEvent}function Wi(t,e){var n=Y(t).eventDefinitions;return Ho(n,function(o){return y(o,e)})}function fy(t){return Wi(t,"bpmn:ErrorEventDefinition")}function gy(t){return Wi(t,"bpmn:EscalationEventDefinition")}function yy(t){return Wi(t,"bpmn:CompensateEventDefinition")}function gm(t){var e=t.id;return ME(e)}function xo(t){var e=t.id;return y(t,"bpmn:SubProcess")?by(e):e}function ei(t){return by(t)}function $a(t){var e=Tt(t);return y(e,"bpmndi:BPMNPlane")}function by(t){return t+vy}function ME(t){return t.replace(RegExp(vy+"$"),"")}function q(t){this._eventBus=t}function PE(t,e){return function(n){return t.call(e||null,n.context,n.command,n)}}function Cr(t){return function(e,n,o,r,i){(Be(e)||xt(e))&&(i=r,r=o,o=n,n=e,e=null),this.on(e,t,n,o,r,i)}}function ni(t){return t.flat().join(",").replace(/,?([A-Za-z]),?/g,"$1")}function DE(t){return["M",t.x,t.y]}function hm(t){return["L",t.x,t.y]}function jE(t,e,n){return["C",t.x,t.y,e.x,e.y,n.x,n.y]}function $E(t,e){let n=t.length,o=[DE(t[0])];for(let r=1;r<n;r++){let i=t[r-1],a=t[r],s=t[r+1];if(!s||!e){o.push(hm(a));continue}let c=Math.min(e,fm(a.x-i.x,a.y-i.y),fm(s.x-a.x,s.y-a.y));if(!c){o.push(hm(a));continue}let l=fl(a,i,c),p=fl(a,i,c*.5),d=fl(a,s,c),m=fl(a,s,c*.5);o.push(hm(l)),o.push(jE(p,m,d))}return o}function fl(t,e,n){let o=e.x-t.x,r=e.y-t.y,i=n/fm(o,r);return{x:t.x+o*i,y:t.y+r*i}}function fm(t,e){return Math.sqrt(t**2+e**2)}function Gi(t,e,n){xt(e)&&(n=e,e=null),e||={};let o=et("path",e);return xt(n)&&(o.dataset.cornerRadius=String(n)),Ls(o,t)}function Ls(t,e){let n=parseInt(t.dataset.cornerRadius,10)||0;return U(t,{d:ni($E(e,n))}),t}function Wo(t,e){return Ho(t.eventDefinitions,function(n){return n.$type===e})}function xy(t){return t.$type==="bpmn:IntermediateThrowEvent"||t.$type==="bpmn:EndEvent"}function ky(t){var e=t.dataObjectRef;return t.isCollection||e&&e.isCollection}function $t(t,e,n){var o=Tt(t);return n||o.get("color:background-color")||o.get("bioc:fill")||e||"white"}function st(t,e,n){var o=Tt(t);return n||o.get("color:border-color")||o.get("bioc:stroke")||e||"hsl(225, 10%, 15%)"}function ir(t,e,n,o){var r=Tt(t).get("label");return o||r&&r.get("color:color")||e||st(t,n)}function yl(t){var e=t.x+t.width/2,n=t.y+t.height/2,o=t.width/2;return ni([["M",e,n],["m",0,-o],["a",o,o,0,1,1,0,2*o],["a",o,o,0,1,1,0,-2*o],["z"]])}function Ns(t,e){var n=t.x,o=t.y,r=t.width,i=t.height;return ni([["M",n+e,o],["l",r-e*2,0],["a",e,e,0,0,1,e,e],["l",0,i-e*2],["a",e,e,0,0,1,-e,e],["l",e*2-r,0],["a",e,e,0,0,1,-e,-e],["l",0,e*2-i],["a",e,e,0,0,1,e,-e],["z"]])}function wy(t){var e=t.width,n=t.height,o=t.x,r=t.y,i=e/2,a=n/2;return ni([["M",o+i,r],["l",i,a],["l",-i,a],["l",-i,-a],["z"]])}function _y(t){var e=t.x,n=t.y,o=t.width,r=t.height;return ni([["M",e,n],["l",o,0],["l",0,r],["l",-o,0],["z"]])}function za(t,e={}){return{width:io(t,e),height:In(t,e)}}function io(t,e={}){return vn(e,"width")?e.width:t.width}function In(t,e={}){return vn(e,"height")?e.height:t.height}var vy,AE,ym,Is=gn(()=>{"use strict";er();Er();ja();vy="_plane";AE=1e3;q.$inject=["eventBus"];q.prototype.on=function(t,e,n,o,r,i){if((Be(e)||xt(e))&&(i=r,r=o,o=n,n=e,e=null),Be(n)&&(i=r,r=o,o=n,n=AE),Se(r)&&(i=r,r=!1),!Be(o))throw Error("handlerFn must be a function");bt(t)||(t=[t]);var a=this._eventBus;R(t,function(s){var c=["commandStack",s,e].filter(function(l){return l}).join(".");a.on(c,n,r?PE(o,i):o,i)})},q.prototype.canExecute=Cr("canExecute"),q.prototype.preExecute=Cr("preExecute"),q.prototype.preExecuted=Cr("preExecuted"),q.prototype.execute=Cr("execute"),q.prototype.executed=Cr("executed"),q.prototype.postExecute=Cr("postExecute"),q.prototype.postExecuted=Cr("postExecuted"),q.prototype.revert=Cr("revert"),q.prototype.reverted=Cr("reverted");ym="hsl(225, 10%, 15%)"});function Vi(t,e){for(yn(e)&&(e=[e]);t=t.parent;)if(At(t,e))return t;return null}function vm(t,e){var n=Vi(t,"bpmn:Process");if(n)return!0;var o=["bpmn:Participant","bpmn:Lane"];if(n=Vi(t,o),n)return Re(n);if(At(t,o))return Re(t);for(var r=Y(t);r&&!y(r,"bpmn:Process");r=r.$parent);if(!e)return!0;var i=e.find(function(a){var s=Y(a);return s&&s.get("processRef")===r});return!i||Re(i)}function Oa(t){return{x:t.x+t.width/2,y:t.y+t.height/2}}function ko(t,e){return{x:t.x-e.x,y:t.y-e.y}}function xn(t,e,n){q.call(this,t),this._bpmnFactory=e;var o=this;function r(u){var h=u.context,f=h.hints||{},g;!h.cropped&&f.createElementsBehavior!==!1&&(g=h.connection,g.waypoints=n.getCroppedWaypoints(g),h.cropped=!0)}this.executed(["connection.layout","connection.create"],r),this.reverted(["connection.layout"],function(u){delete u.context.cropped});function i(u){var h=u.context;o.updateParent(h.shape||h.connection,h.oldParent)}function a(u){var h=u.context,f=h.shape||h.connection,g=h.parent||h.newParent;o.updateParent(f,g)}this.executed(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],Kn(i)),this.reverted(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],Kn(a));function s(u){var h=u.context.oldRoot.children;R(h,function(f){y(f,"bpmn:BaseElement")&&o.updateParent(f)})}this.executed(["canvas.updateRoot"],s),this.reverted(["canvas.updateRoot"],s);function c(u){var h=u.context.shape;y(h,"bpmn:BaseElement")&&o.updateBounds(h)}this.executed(["shape.move","shape.create","shape.resize"],Kn(function(u){u.context.shape.type!=="label"&&c(u)})),this.reverted(["shape.move","shape.create","shape.resize"],Kn(function(u){u.context.shape.type!=="label"&&c(u)})),t.on("shape.changed",function(u){u.element.type==="label"&&c({context:{shape:u.element}})});function l(u){o.updateConnection(u.context)}this.executed(["connection.create","connection.move","connection.delete","connection.reconnect"],Kn(l)),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnect"],Kn(l));function p(u){o.updateConnectionWaypoints(u.context.connection)}this.executed(["connection.layout","connection.move","connection.updateWaypoints"],Kn(p)),this.reverted(["connection.layout","connection.move","connection.updateWaypoints"],Kn(p)),this.executed("connection.reconnect",Kn(function(u){var h=u.context,f=h.connection,g=h.oldSource,x=h.newSource,k=Y(f),_=Y(g),w=Y(x);k.conditionExpression&&!At(w,["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"])&&(h.oldConditionExpression=k.conditionExpression,delete k.conditionExpression),g!==x&&_.default===k&&(h.oldDefault=_.default,delete _.default)})),this.reverted("connection.reconnect",Kn(function(u){var h=u.context,f=h.connection,g=h.oldSource,x=h.newSource,k=Y(f),_=Y(g),w=Y(x);h.oldConditionExpression&&(k.conditionExpression=h.oldConditionExpression),h.oldDefault&&(_.default=h.oldDefault,delete w.default)}));function d(u){o.updateAttachment(u.context)}this.executed(["element.updateAttachment"],Kn(d)),this.reverted(["element.updateAttachment"],Kn(d)),this.executed("element.updateLabel",Kn(m)),this.reverted("element.updateLabel",Kn(m));function m(u){let{element:h}=u.context,f=Dn(h),g=Tt(h),x=g&&g.get("label");Fo(h)||$a(h)||(f&&!x?g.set("label",e.create("bpmndi:BPMNLabel")):!f&&x&&g.set("label",void 0))}}function zE(t){for(;t&&!y(t,"bpmn:Definitions");)t=t.$parent;return t}function Kn(t){return function(e){var n=e.context,o=n.shape||n.connection||n.element;y(o,"bpmn:BaseElement")&&t(e)}}function OE(t){if(y(t,"bpmn:Activity")){var e=Tt(t);if(e){var n=e.get("label");if(n)return n.get("bounds")}}}var bm=gn(()=>{"use strict";er();Er();Ta();Is();dt(xn,q),xn.$inject=["eventBus","bpmnFactory","connectionDocking"],xn.prototype.updateAttachment=function(t){var e=t.shape,n=e.businessObject,o=e.host;n.attachedToRef=o&&o.businessObject},xn.prototype.updateParent=function(t,e){if(!Bt(t)&&!(y(t,"bpmn:DataStoreReference")&&t.parent&&y(t.parent,"bpmn:Collaboration"))){var n=t.parent,o=t.businessObject,r=Tt(t),i=n&&n.businessObject,a=Tt(n);y(t,"bpmn:FlowNode")&&this.updateFlowNodeRefs(o,i,e&&e.businessObject),y(t,"bpmn:DataOutputAssociation")&&(i=t.source?t.source.businessObject:null),y(t,"bpmn:DataInputAssociation")&&(i=t.target?t.target.businessObject:null),this.updateSemanticParent(o,i),y(t,"bpmn:DataObjectReference")&&o.dataObjectRef&&this.updateSemanticParent(o.dataObjectRef,i),this.updateDiParent(r,a)}},xn.prototype.updateBounds=function(t){var e=Tt(t),n=OE(t);if(n){var o=ko(n,e.get("bounds"));P(n,{x:t.x+o.x,y:t.y+o.y})}var r=Bt(t)?this._getLabel(e):e,i=r.bounds;i||(i=this._bpmnFactory.createDiBounds(),r.set("bounds",i)),P(i,{x:t.x,y:t.y,width:t.width,height:t.height})},xn.prototype.updateFlowNodeRefs=function(t,e,n){if(n!==e){var o,r;y(n,"bpmn:Lane")&&(o=n.get("flowNodeRef"),we(o,t)),y(e,"bpmn:Lane")&&(r=e.get("flowNodeRef"),Te(r,t))}},xn.prototype.updateDiConnection=function(t,e,n){var o=Tt(t),r=Tt(e),i=Tt(n);o.sourceElement&&o.sourceElement.bpmnElement!==Y(e)&&(o.sourceElement=e&&r),o.targetElement&&o.targetElement.bpmnElement!==Y(n)&&(o.targetElement=n&&i)},xn.prototype.updateDiParent=function(t,e){if(e&&!y(e,"bpmndi:BPMNPlane")&&(e=e.$parent),t.$parent!==e){var n=(e||t.$parent).get("planeElement");e?(n.push(t),t.$parent=e):(we(n,t),t.$parent=null)}};xn.prototype.getLaneSet=function(t){var e,n;return y(t,"bpmn:Lane")?(e=t.childLaneSet,e||(e=this._bpmnFactory.create("bpmn:LaneSet"),t.childLaneSet=e,e.$parent=t),e):(y(t,"bpmn:Participant")&&(t=t.processRef),n=t.get("laneSets"),e=n[0],e||(e=this._bpmnFactory.create("bpmn:LaneSet"),e.$parent=t,n.push(e)),e)},xn.prototype.updateSemanticParent=function(t,e,n){var o;if(t.$parent!==e&&!((y(t,"bpmn:DataInput")||y(t,"bpmn:DataOutput"))&&(y(e,"bpmn:Participant")&&"processRef"in e&&(e=e.processRef),"ioSpecification"in e&&e.ioSpecification===t.$parent))){if(y(t,"bpmn:Lane"))e&&=this.getLaneSet(e),o="lanes";else if(y(t,"bpmn:FlowElement")){if(e){if(y(e,"bpmn:Participant"))e=e.processRef;else if(y(e,"bpmn:Lane"))do e=e.$parent.$parent;while(y(e,"bpmn:Lane"))}o="flowElements"}else if(y(t,"bpmn:Artifact")){for(;e&&!y(e,"bpmn:Process")&&!y(e,"bpmn:SubProcess")&&!y(e,"bpmn:Collaboration");){if(y(e,"bpmn:Participant")){e=e.processRef;break}e=e.$parent}o="artifacts"}else if(y(t,"bpmn:MessageFlow"))o="messageFlows";else if(y(t,"bpmn:Participant")){o="participants";var r=t.processRef,i;r&&(i=zE(t.$parent||e),t.$parent&&(we(i.get("rootElements"),r),r.$parent=null),e&&(Te(i.get("rootElements"),r),r.$parent=i))}else y(t,"bpmn:DataOutputAssociation")?o="dataOutputAssociations":y(t,"bpmn:DataInputAssociation")&&(o="dataInputAssociations");if(!o)throw Error("no parent for <".concat(t.id,"> in <").concat(e.id,">"));var a;if(t.$parent&&(a=t.$parent.get(o),we(a,t)),e?(a=e.get(o),a.push(t),t.$parent=e):t.$parent=null,n){var s=n.get(o);we(a,t),e&&(s||(s=[],e.set(o,s)),s.push(t))}}},xn.prototype.updateConnectionWaypoints=function(t){Tt(t).set("waypoint",this._bpmnFactory.createDiWaypoints(t.waypoints))},xn.prototype.updateConnection=function(t){var e=t.connection,n=Y(e),o=e.source,r=Y(o),i=e.target,a=Y(e.target),s;if(y(n,"bpmn:DataAssociation"))y(n,"bpmn:DataInputAssociation")?(n.get("sourceRef")[0]=r,s=t.parent||t.newParent||a,this.updateSemanticParent(n,a,s)):y(n,"bpmn:DataOutputAssociation")&&(s=t.parent||t.newParent||r,this.updateSemanticParent(n,r,s),n.targetRef=a);else{var c=y(n,"bpmn:SequenceFlow");n.sourceRef!==r&&(c&&(we(n.sourceRef&&n.sourceRef.get("outgoing"),n),r&&r.get("outgoing")&&r.get("outgoing").push(n)),n.sourceRef=r),n.targetRef!==a&&(c&&(we(n.targetRef&&n.targetRef.get("incoming"),n),a&&a.get("incoming")&&a.get("incoming").push(n)),n.targetRef=a)}this.updateConnectionWaypoints(e),this.updateDiConnection(e,o,i)},xn.prototype._getLabel=function(t){return t.label||=this._bpmnFactory.createDiLabel(),t.label}});function LE(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function NE(){if(Ey)return xm.exports;Ey=1;var t=xm.exports=function(e,n){if(n||=16,e===void 0&&(e=128),e<=0)return"0";for(var o=Math.log(2**e)/Math.log(n),r=2;o===1/0;r*=2)o=Math.log(2**(e/r))/Math.log(n)*r;for(var i=o-Math.floor(o),a="",r=0;r<Math.floor(o);r++){var s=Math.floor(Math.random()*n).toString(n);a=s+a}if(i){var c=n**+i,s=Math.floor(Math.random()*c).toString(n);a=s+a}var l=parseInt(a,n);return l!==1/0&&l>=2**e?t(e,n):a};return t.rack=function(e,n,o){var r=function(a){var s=0;do{if(s++>10)if(o)e+=o;else throw Error("too many ID collisions, use more bits");var c=t(e,n)}while(Object.hasOwnProperty.call(i,c));return i[c]=a,c},i=r.hats={};return r.get=function(a){return r.hats[a]},r.set=function(a,s){return r.hats[a]=s,r},r.bits=e||128,r.base=n||16,r},xm.exports}function Go(t){if(!(this instanceof Go))return new Go(t);t||=[128,36,1],this._seed=t.length?IE.rack(t[0],t[1],t[2]):t}function ge(t,e=globalThis.document){if(typeof t!="string")throw TypeError("String expected");let n=/^<!--(.*?)-->$/s.exec(t);if(n)return e.createComment(n[1]);let o=/<([\w:]+)/.exec(t)?.[1];if(!o)return e.createTextNode(t);if(t=t.trim(),o==="body"){let l=e.createElement("html");l.innerHTML=t;let{lastChild:p}=l;return p.remove(),p}let[r,i,a]=Object.hasOwn(en,o)?en[o]:en._default,s=e.createElement("div");for(s.innerHTML=i+t+a;r--;)s=s.lastChild;if(s.firstChild===s.lastChild){let{firstChild:l}=s;return l.remove(),l}let c=e.createDocumentFragment();return c.append(...s.childNodes),c}function HE(t,e){return e.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(o){if(o!=="default"&&!(o in t)){var r=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return n[o]}})}})}),Object.freeze(t)}function Tn(t,...e){let n=t.style;return R(e,function(o){o&&R(o,function(r,i){n[i]=r})}),t}function sn(t,e,n){return arguments.length==2?t.getAttribute(e):n===null?t.removeAttribute(e):(t.setAttribute(e,n),t)}function _e(t){return new oi(t)}function oi(t){if(!t||!t.nodeType)throw Error("A DOM element reference is required");this.el=t,this.list=t.classList}function Gs(t){for(var e;e=t.firstChild;)t.removeChild(e);return t}function cr(t,e,n){var o=n?t:t.parentNode;return o&&typeof o.closest=="function"&&o.closest(e)||null}function WE(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function GE(){if(Sy)return vl;Sy=1;var t,e,n;function o(){t=window.addEventListener?"addEventListener":"attachEvent",e=window.removeEventListener?"removeEventListener":"detachEvent",n=t==="addEventListener"?"":"on"}return vl.bind=function(r,i,a,s){return t||o(),r[t](n+i,a,s||!1),a},vl.unbind=function(r,i,a,s){return e||o(),r[e](n+i,a,s||!1),a},vl}function VE(t,e,n,o,r){return Vy.indexOf(n)!==-1&&(r=!0),Ct.bind(t,n,function(i){i.delegateTarget=cr(i.target||i.srcElement,e,!0),i.delegateTarget&&o.call(t,i)},r)}function UE(t,e,n,o){return Vy.indexOf(e)!==-1&&(o=!0),Ct.unbind(t,e,n,o)}function Pl(t,e){return t&&typeof t.matches=="function"&&t.matches(e)||!1}function le(t,e){return e||=document,e.querySelector(t)}function Vs(t,e){return e||=document,e.querySelectorAll(t)}function Vo(t){t.parentNode&&t.parentNode.removeChild(t)}function KE(t){return qE.test(t.toString())}function _m(t){return Array.isArray(t)}function km(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Bl(...t){t.length===1&&_m(t[0])&&(t=t[0]),t=[...t];let e=t.pop();return e.$inject=t,e}function JE(t){if(typeof t!="function")throw Error('Cannot annotate "'.concat(t,'". Expected a function!'));let e=t.toString().match(KE(t)?XE:YE);if(!e)return[];let n=e[1]||e[2];return n&&n.split(",").map(o=>{let r=o.match(ZE);return(r&&r[1]||o).trim()})||[]}function Uy(t,e){let n=e||{get:function(_,w){if(w===!1)return null;throw o.push(_),s('No provider for "'.concat(_,'"!'))}},o=[],r=this._providers=Object.create(n._providers||null),i=this._instances=Object.create(null),a=i.injector=this,s=function(_){let w=o.join(" -> ");return o.length=0,Error(w?"".concat(_," (Resolving: ").concat(w,")"):_)};function c(_,w){if(!r[_]&&_.includes(".")){let S=_.split("."),T=c(S.shift());for(;S.length;)T=T[S.shift()];return T}if(km(i,_))return i[_];if(km(r,_)){if(o.indexOf(_)!==-1)throw o.push(_),s("Cannot resolve circular dependency!");return o.push(_),i[_]=r[_][0](r[_][1]),o.pop(),i[_]}return n.get(_,w)}function l(_,w){if(w===void 0&&(w={}),typeof _!="function")if(_m(_))_=Bl(_.slice());else throw s('Cannot invoke "'.concat(_,'". Expected a function!'));let S=(_.$inject||JE(_)).map(T=>km(w,T)?w[T]:c(T));return{fn:_,dependencies:S}}function p(_){let{fn:w,dependencies:S}=l(_);return new(Function.prototype.bind.call(w,null,...S))}function d(_,w,S){let{fn:T,dependencies:B}=l(_,S);return T.apply(w,B)}function m(_){return Bl(w=>_.get(w))}function u(_,w){if(w&&w.length){let S=Object.create(null),T=Object.create(null),B=[],M=[],z=[],H,N,Z,Et;for(let ft in r)H=r[ft],w.indexOf(ft)!==-1&&(H[2]==="private"?(N=B.indexOf(H[3]),N===-1?(Z=H[3].createChild([],w),Et=m(Z),B.push(H[3]),M.push(Z),z.push(Et),S[ft]=[Et,ft,"private",Z]):S[ft]=[z[N],ft,"private",M[N]]):S[ft]=[H[2],H[1]],T[ft]=!0),(H[2]==="factory"||H[2]==="type")&&H[1].$scope&&w.forEach(ee=>{H[1].$scope.indexOf(ee)!==-1&&(S[ft]=[H[2],H[1]],T[ee]=!0)});w.forEach(ft=>{if(!T[ft])throw Error('No provider for "'+ft+'". Cannot use provider from the parent!')}),_.unshift(S)}return new Uy(_,a)}let h={factory:d,type:p,value:function(_){return _}};function f(_,w){let S=_.__init__||[];return function(){S.forEach(T=>{typeof T=="string"?w.get(T):w.invoke(T)})}}function g(_){let w=_.__exports__;if(w){let S=_.__modules__,T=Object.keys(_).reduce((H,N)=>(N!=="__exports__"&&N!=="__modules__"&&N!=="__init__"&&N!=="__depends__"&&(H[N]=_[N]),H),Object.create(null)),B=u((S||[]).concat(T)),M=Bl(function(H){return B.get(H)});w.forEach(function(H){r[H]=[M,H,"private",B]});let z=(_.__init__||[]).slice();return z.unshift(function(){B.init()}),_=Object.assign({},_,{__init__:z}),f(_,B)}return Object.keys(_).forEach(function(S){if(S==="__init__"||S==="__depends__")return;let T=_[S];if(T[2]==="private"){r[S]=T;return}let B=T[0],M=T[1];r[S]=[h[B],QE(B,M),B]}),f(_,a)}function x(_,w){return _.indexOf(w)!==-1||(_=(w.__depends__||[]).reduce(x,_),_.indexOf(w)!==-1)?_:_.concat(w)}function k(_){let w=_.reduce(x,[]).map(g),S=!1;return function(){S||(S=!0,w.forEach(T=>T()))}}this.get=c,this.invoke=d,this.instantiate=p,this.createChild=u,this.init=k(t)}function QE(t,e){return t!=="value"&&_m(e)&&(e=Bl(e.slice())),e}function Us(t){var e=new Set(t);return Dt(t,function(n){for(var o=n.parent;o;){if(e.has(o))return!1;o=o.parent}return!0})}function si(t,e,n){n||=0,bt(t)||(t=[t]),R(t,function(o,r){var i=e(o,r,n);bt(i)&&i.length&&si(i,e,n+1)})}function Dl(t,e,n){var o=new Set,r=new Set;return si(t,function(i,a,s){o.add(i);var c=i.children;if((n===-1||s<n)&&c&&!r.has(c))return r.add(c),c}),Array.from(o)}function Ha(t,e){return Dl(t,!0,-1)}function qy(t,e,n){_r(e)&&(e=!0),Se(e)&&(n=e,e=!0),n||={};var o=Hs(n.allShapes),r=Hs(n.allConnections),i=Hs(n.enclosedElements),a=Hs(n.enclosedConnections),s=Hs(n.topLevel,e&&Xr(t,function(p){return p.id}));function c(p){s[p.source.id]&&s[p.target.id]&&(s[p.id]=[p]),o[p.source.id]&&o[p.target.id]&&(a[p.id]=i[p.id]=p),r[p.id]=p}function l(p){if(i[p.id]=p,p.waypoints)a[p.id]=r[p.id]=p;else return o[p.id]=p,R(p.incoming,c),R(p.outgoing,c),p.children}return si(t,l),{allShapes:o,allConnections:r,topLevel:s,enclosedConnections:a,enclosedElements:i}}function je(t,e){e=!!e,bt(t)||(t=[t]);var n,o,r,i;return R(t,function(a){var s=a;a.waypoints&&!e&&(s=je(a.waypoints,!0));var c=s.x,l=s.y,p=s.height||0,d=s.width||0;(c<n||n===void 0)&&(n=c),(l<o||o===void 0)&&(o=l),(c+d>r||r===void 0)&&(r=c+d),(l+p>i||i===void 0)&&(i=l+p)}),{x:n,y:o,height:i-o,width:r-n}}function Ki(t,e){var n={};return R(t,function(o){var r=o;r.waypoints&&(r=je(r)),!xt(e.y)&&r.x>e.x&&(n[o.id]=o),!xt(e.x)&&r.y>e.y&&(n[o.id]=o),r.x>e.x&&r.y>e.y&&(xt(e.width)&&xt(e.height)&&r.width+r.x<e.width+e.x&&r.height+r.y<e.height+e.y||!xt(e.width)||!xt(e.height))&&(n[o.id]=o)}),n}function Ky(t){return"waypoints"in t?"connection":"x"in t?"shape":"root"}function Xy(t){return!!(t&&t.isFrame)}function Hs(t,e){return P({},t||{},e||{})}function ri(t,e){qn.call(this,t,tS),this.CONNECTION_STYLE=e.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=e.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=e.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}function eS(){var t={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},e=this;this.cls=function(n,o,r){var i=this.style(o,r);return P(i,{class:n})},this.style=function(n,o){!bt(n)&&!o&&(o=n,n=[]);var r=Pn(n,function(i,a){return P(i,t[a]||{})},{});return o?P(r,o):r},this.computeStyle=function(n,o,r){return bt(o)||(r=o,o=[]),e.style(o||[],P({},r,n||{}))}}function bl(t,e){return Math.round(t*e)/e}function Cy(t){return xt(t)?t+"px":t}function oS(t){for(;t.parent;)t=t.parent;return t}function rS(t){t=P({},{width:"100%",height:"100%"},t);let e=t.container||document.body,n=document.createElement("div");return n.setAttribute("class","djs-container djs-parent bio-theme-parent"),Tn(n,{position:"relative",overflow:"hidden",width:Cy(t.width),height:Cy(t.height)}),e.appendChild(n),n}function By(t,e,n){let o=et("g");ut(o).add(e);let r=n===void 0?t.childNodes.length-1:n;return t.insertBefore(o,t.childNodes[r]||null),o}function kt(t,e,n,o){this._eventBus=e,this._elementRegistry=o,this._graphicsFactory=n,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._focused=!1,this._init(t||{})}function Yy(t,e){let n="matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")";t.setAttribute("transform",n)}function ao(t){this._elements={},this._eventBus=t}function cS(t,e,n,o){var r=n.inverse;return Object.defineProperty(t,"remove",{value:function(i){var a=this.indexOf(i);return a!==-1&&(this.splice(a,1),e.unset(i,r,o)),i}}),Object.defineProperty(t,"contains",{value:function(i){return this.indexOf(i)!==-1}}),Object.defineProperty(t,"add",{value:function(i,a){var s=this.indexOf(i);if(a===void 0){if(s!==-1)return;a=this.length}s!==-1&&this.splice(s,1),this.splice(a,0,i),s===-1&&e.set(i,r,o)}}),Object.defineProperty(t,"__refs_collection",{value:!0}),t}function lS(t){return t.__refs_collection===!0}function pS(t,e){return Object.prototype.hasOwnProperty.call(t,e.name||e)}function My(t,e,n){var o=cS(n[e.name]||[],t,e,n);Object.defineProperty(n,e.name,{enumerable:e.enumerable,value:o}),o.length&&o.forEach(function(r){t.set(r,e.inverse,n)})}function dS(t,e,n){var o=e.inverse,r=n[e.name];Object.defineProperty(n,e.name,{configurable:e.configurable,enumerable:e.enumerable,get:function(){return r},set:function(i){if(i!==r){var a=r;r=null,a&&t.unset(a,o,n),r=i,t.set(r,o,n)}}})}function wo(t,e){if(!(this instanceof wo))return new wo(t,e);t.inverse=e,e.inverse=t,this.props={},this.props[t.name]=t,this.props[e.name]=e}function Fa(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(t){var e=this.label,n=this.labels;!t&&e?n.remove(e):n.add(t,0)}}),Em.bind(this,"parent"),Zy.bind(this,"labels"),Jy.bind(this,"outgoing"),Qy.bind(this,"incoming")}function qs(){Fa.call(this),Em.bind(this,"children"),Ay.bind(this,"host"),Ay.bind(this,"attachers")}function t0(){Fa.call(this),Em.bind(this,"children")}function e0(){qs.call(this),Zy.bind(this,"labelTarget")}function n0(){Fa.call(this),Jy.bind(this,"source"),Qy.bind(this,"target")}function uS(t,e){var n=mS[t];if(!n)throw Error("unknown type: <"+t+">");return P(new n,e)}function o0(t){return t instanceof Fa}function sr(){this._uid=12}function Xn(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}function Fs(){}function fS(t,e){return t.apply(null,e)}function ci(t){return t.childNodes[0]}function gS(t){return t.parentNode.childNodes[1]}function Ws(t,e,n,o,r){var i=Aa();i.setTranslate(e,n);var a=Aa();a.setRotate(o||0,0,0);var s=Aa();s.setScale(r||1,r||1),Da(t,[i,a,s])}function hn(t,e,n){var o=Aa();o.setTranslate(e,n),Da(t,o)}function Sm(t,e){var n=Aa();n.setRotate(e,0,0),Da(t,n)}function so(t,e){this._eventBus=t,this._elementRegistry=e}function yS(t,e,n){var o=n||e.firstChild;t!==o&&e.insertBefore(t,o)}function bS(t){var e=new Uy(t);return e.init(),e}function xS(t){return t||={},bS([{config:["value",t]},vS].concat(t.modules||[]))}function ai(t,e){this._injector=e||xS(t),this.get("eventBus").fire("diagram.init")}function Sn(t){return t?"<"+t.$type+(t.id?' id="'+t.id:"")+'" />':"<null>"}function Hn(t,e){return t.$instanceOf(e)}function kS(t){return ce(t.rootElements,function(e){return Hn(e,"bpmn:Process")||Hn(e,"bpmn:Collaboration")})}function wS(t){var e={},n=[],o={};function r(W,F){return function(ct){W(ct,F)}}function i(W){e[W.id]=W}function a(W){return e[W.id]}function s(W,F){if(W.gfx)throw Error("already rendered ".concat(Sn(W)));return t.element(W,o[W.id],F)}function c(W,F){return t.root(W,o[W.id],F)}function l(W,F){try{var ct=o[W.id]&&s(W,F);return i(W),ct}catch(Ht){p(Ht.message,{element:W,error:Ht}),console.error("failed to import ".concat(Sn(W)),Ht)}}function p(W,F){t.error(W,F)}var d=this.registerDi=function(W){var F=W.bpmnElement;F?o[F.id]?p("multiple DI elements defined for ".concat(Sn(F)),{element:F}):o[F.id]=W:p("no bpmnElement referenced in ".concat(Sn(W)),{element:W})};function m(W){u(W.plane)}function u(W){d(W),R(W.planeElement,h)}function h(W){d(W)}this.handleDefinitions=function(W,F){var ct=W.diagrams;if(F&&ct.indexOf(F)===-1)throw Error("diagram not part of <bpmn:Definitions />");if(!F&&ct&&ct.length&&(F=ct[0]),!F)throw Error("no diagram to display");o={},m(F);var Ht=F.plane;if(!Ht)throw Error("no plane for ".concat(Sn(F)));var de=Ht.bpmnElement;if(!de)if(de=kS(W),de)p("correcting missing bpmnElement on ".concat(Sn(Ht)," to ").concat(Sn(de))),Ht.bpmnElement=de,d(Ht);else throw Error("no process or collaboration to display");var C=c(de,Ht);if(Hn(de,"bpmn:Process")||Hn(de,"bpmn:SubProcess"))g(de,C);else if(Hn(de,"bpmn:Collaboration"))pt(de,C),x(W.rootElements,C);else throw Error("unsupported bpmnElement for ".concat(Sn(Ht),": ").concat(Sn(de)));f(n)};var f=this.handleDeferred=function(){for(var W;n.length;)W=n.shift(),W()};function g(W,F){Lt(W,F),z(W.ioSpecification,F),M(W.artifacts,F),i(W)}function x(W,F){Dt(W,function(ct){return!a(ct)&&Hn(ct,"bpmn:Process")&&ct.laneSets}).forEach(r(g,F))}function k(W,F){l(W,F)}function _(W,F){R(W,r(k,F))}function w(W,F){l(W,F)}function S(W,F){l(W,F)}function T(W,F){l(W,F)}function B(W,F){l(W,F)}function M(W,F){R(W,function(ct){Hn(ct,"bpmn:Association")?n.push(function(){B(ct,F)}):B(ct,F)})}function z(W,F){W&&(R(W.dataInputs,r(S,F)),R(W.dataOutputs,r(T,F)))}var H=this.handleSubProcess=function(W,F){Lt(W,F),M(W.artifacts,F)};function N(W,F){var ct=l(W,F);Hn(W,"bpmn:SubProcess")&&H(W,ct||F),Hn(W,"bpmn:Activity")&&z(W.ioSpecification,F),n.push(function(){R(W.dataInputAssociations,r(w,F)),R(W.dataOutputAssociations,r(w,F))})}function Z(W,F){l(W,F)}function Et(W,F){l(W,F)}function ft(W,F){n.push(function(){var ct=l(W,F);W.childLaneSet&&ee(W.childLaneSet,ct||F),zt(W)})}function ee(W,F){R(W.lanes,r(ft,F))}function Fe(W,F){R(W,r(ee,F))}function Lt(W,F){St(W.flowElements,F),W.laneSets&&Fe(W.laneSets,F)}function St(W,F){R(W,function(ct){Hn(ct,"bpmn:SequenceFlow")?n.push(function(){Z(ct,F)}):Hn(ct,"bpmn:BoundaryEvent")?n.unshift(function(){N(ct,F)}):Hn(ct,"bpmn:FlowNode")?N(ct,F):Hn(ct,"bpmn:DataObject")||(Hn(ct,"bpmn:DataStoreReference")||Hn(ct,"bpmn:DataObjectReference")?Et(ct,F):p("unrecognized flowElement ".concat(Sn(ct)," in context ").concat(Sn(F&&F.businessObject)),{element:ct,context:F}))})}function wt(W,F){var ct=l(W,F),Ht=W.processRef;Ht&&g(Ht,ct||F)}function pt(W,F){R(W.participants,r(wt,F)),n.push(function(){_(W.messageFlows,F)}),M(W.artifacts,F)}function zt(W){R(W.flowNodeRef,function(F){var ct=F.get("lanes");ct&&ct.push(W)})}}function _S(t,e,n){var o,r,i,a,s=[];function c(l,p){var d=new wS({root:function(h,f){return o.add(h,f)},element:function(h,f,g){return o.add(h,f,g)},error:function(h,f){s.push({message:h,context:f})}});p||=l.diagrams&&l.diagrams[0];var m=ES(l,p);if(!m)throw Error("no diagram to display");R(m,function(h){d.handleDefinitions(l,h)});var u=p.plane.bpmnElement.id;i.setRootElement(i.findRoot(u+"_plane")||i.findRoot(u))}return new Promise(function(l,p){try{return o=t.get("bpmnImporter"),r=t.get("eventBus"),i=t.get("canvas"),r.fire("import.render.start",{definitions:e}),c(e,n),r.fire("import.render.complete",{error:a,warnings:s}),l({warnings:s})}catch(d){return d.warnings=s,p(d)}})}function ES(t,e){if(e&&e.plane){var n=e.plane.bpmnElement,o=n;!y(n,"bpmn:Process")&&!y(n,"bpmn:Collaboration")&&(o=SS(n));var r=y(o,"bpmn:Collaboration")?o:ce(t.rootElements,function(l){if(y(l,"bpmn:Collaboration"))return ce(l.participants,function(p){return p.processRef===o})}),i=[o];r&&(i=tn(r.participants,function(l){return l.processRef}),i.push(r));var a=r0(i),s=[e],c=[n];return R(t.diagrams,function(l){if(l.plane){var p=l.plane.bpmnElement;a.indexOf(p)!==-1&&c.indexOf(p)===-1&&(s.push(l),c.push(p))}}),s}}function r0(t){var e=[];return R(t,function(n){n&&(e.push(n),e=e.concat(r0(n.flowElements)))}),e}function SS(t){for(var e=t;e;){if(y(e,"bpmn:Process"))return e;e=e.$parent}}function MS(){ar=ge(RS),Tn(ar,TS),Tn(le("svg",ar),a0),Tn(le(".backdrop",ar),CS),Tn(le(".notice",ar),BS),Tn(le(".link",ar),s0,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function AS(){ar||(MS(),Cn.bind(ar,".backdrop","click",function(t){document.body.removeChild(ar)})),document.body.appendChild(ar)}function Ce(t){t=P({},DS,t),this._moddle=this._createModdle(t),this._container=this._createContainer(t),this._init(this._container,this._moddle,t),$S(this._container)}function wl(t,e){return t.warnings=e,t}function PS(t){let e=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(t.message);return e&&(t.message="unparsable content <"+e[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+e[2]),t}function jy(t){return t+(xt(t)?"px":"")}function jS(t,e){return e&&ce(t.diagrams,function(n){return n.id===e})||null}function $S(t){let e=ge('<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+i0+"</a>");Tn(le("svg",e),a0),Tn(e,s0,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),t.appendChild(e),Ct.bind(e,"click",function(n){AS(),n.preventDefault()})}function Tm(t){let e=[];return R(t.incoming,n=>{y(n,"bpmn:Association")&&y(n.source,"bpmn:TextAnnotation")&&e.push({annotation:n.source,association:n})}),R(t.outgoing,n=>{y(n,"bpmn:Association")&&y(n.target,"bpmn:TextAnnotation")&&e.push({annotation:n.target,association:n})}),e}function Wa(t){let e=new Map;return R(Dl(t,!0,-1),n=>{R(Tm(n),o=>{e.has(o.annotation)||e.set(o.annotation,{annotation:o.annotation,associations:[]}),e.get(o.annotation).associations.push(o.association)})}),[...e.values()]}function Ui(t,e,n,o,r,i,a){qn.call(this,e,a);var s=t&&t.defaultFillColor,c=t&&t.defaultStrokeColor,l=t&&t.defaultLabelColor;function p(C){return n.computeStyle(C,{strokeLinecap:"round",strokeLinejoin:"round",stroke:ym,strokeWidth:2,fill:"white"})}function d(C){return n.computeStyle(C,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:ym,strokeWidth:2})}function m(C,b){var{ref:v={x:0,y:0},scale:j=1,element:L,parentGfx:J=r._svg}=b,mt=et("marker",{id:C,viewBox:"0 0 20 20",refX:v.x,refY:v.y,markerWidth:20*j,markerHeight:20*j,orient:"auto"});it(mt,L);var Nt=le(":scope > defs",J);Nt||(Nt=et("defs"),it(J,Nt)),it(Nt,mt)}function u(C,b,v,j){var L=zS.nextPrefixed("marker-");return h(C,L,b,v,j),"url(#"+L+")"}function h(C,b,v,j,L){v==="sequenceflow-end"&&m(b,{element:et("path",{d:"M 1 5 L 11 10 L 1 15 Z",...p({fill:L,stroke:L,strokeWidth:1})}),ref:{x:11,y:10},scale:.5,parentGfx:C}),v==="messageflow-start"&&m(b,{element:et("circle",{cx:6,cy:6,r:3.5,...p({fill:j,stroke:L,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:6,y:6},parentGfx:C}),v==="messageflow-end"&&m(b,{element:et("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...p({fill:j,stroke:L,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:8.5,y:5},parentGfx:C}),v==="association-start"&&m(b,{element:et("path",{d:"M 11 5 L 1 10 L 11 15",...d({fill:"none",stroke:L,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:1,y:10},scale:.5,parentGfx:C}),v==="association-end"&&m(b,{element:et("path",{d:"M 1 5 L 11 10 L 1 15",...d({fill:"none",stroke:L,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:11,y:10},scale:.5,parentGfx:C}),v==="conditional-flow-marker"&&m(b,{element:et("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...p({fill:j,stroke:L})}),ref:{x:-1,y:10},scale:.5,parentGfx:C}),v==="conditional-default-flow-marker"&&m(b,{element:et("path",{d:"M 6 4 L 10 16",...p({stroke:L,fill:"none"})}),ref:{x:0,y:10},scale:.5,parentGfx:C})}function f(C,b,v,j,L={}){Se(j)&&(L=j,j=0),j||=0,L=p(L);var J=b/2,mt=v/2,Nt=et("circle",{cx:J,cy:mt,r:Math.round((b+v)/4-j),...L});return it(C,Nt),Nt}function g(C,b,v,j,L,J){Se(L)&&(J=L,L=0),L||=0,J=p(J);var mt=et("rect",{x:L,y:L,width:b-L*2,height:v-L*2,rx:j,ry:j,...J});return it(C,mt),mt}function x(C,b,v,j){var L=b/2,J=v/2,mt=[{x:L,y:0},{x:b,y:J},{x:L,y:v},{x:0,y:J}].map(function(se){return se.x+","+se.y}).join(" ");j=p(j);var Nt=et("polygon",{...j,points:mt});return it(C,Nt),Nt}function k(C,b,v,j){v=d(v);var L=Gi(b,v,j);return it(C,L),L}function _(C,b,v){return k(C,b,v,5)}function w(C,b,v){v=d(v);var j=et("path",{...v,d:b});return it(C,j),j}function S(C,b,v,j){return w(b,v,P({"data-marker":C},j))}function T(C){return de[C]}function B(C){return function(b,v,j){return T(C)(b,v,j)}}var M={"bpmn:MessageEventDefinition":function(C,b,v={},j){return w(C,o.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:v.width||b.width,containerHeight:v.height||b.height,position:{mx:.235,my:.315}}),{fill:j?st(b,c,v.stroke):$t(b,s,v.fill),stroke:j?$t(b,s,v.fill):st(b,c,v.stroke),strokeWidth:1})},"bpmn:TimerEventDefinition":function(C,b,v={}){var j=v.width||b.width,L=v.height||b.height,J=v.width?1:2,mt=f(C,j,L,.2*L,{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:J});w(C,o.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:j,containerHeight:L,position:{mx:.5,my:.5}}),{stroke:st(b,c,v.stroke),strokeWidth:J});for(var Nt=0;Nt<12;Nt++){var se=o.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:j,containerHeight:L,position:{mx:.5,my:.5}}),We=j/2,Wt=L/2;w(C,se,{strokeWidth:1,stroke:st(b,c,v.stroke),transform:"rotate("+Nt*30+","+Wt+","+We+")"})}return mt},"bpmn:EscalationEventDefinition":function(C,b,v={},j){return w(C,o.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:v.width||b.width,containerHeight:v.height||b.height,position:{mx:.5,my:.2}}),{fill:j?st(b,c,v.stroke):$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(C,b,v={}){return w(C,o.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:v.width||b.width,containerHeight:v.height||b.height,position:{mx:.5,my:.222}}),{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(C,b,v={},j){return w(C,o.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:b.width,containerHeight:b.height,position:{mx:.57,my:.263}}),{fill:j?st(b,c,v.stroke):$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(C,b,v={},j){return w(C,o.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:v.width||b.width,containerHeight:v.height||b.height,position:{mx:.2,my:.722}}),{fill:j?st(b,c,v.stroke):$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(C,b,v={},j){var L=w(C,o.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:b.width,containerHeight:b.height,position:{mx:.638,my:-.055}}),{fill:j?st(b,c,v.stroke):"none",stroke:st(b,c,v.stroke),strokeWidth:1});return Sm(L,45),L},"bpmn:CompensateEventDefinition":function(C,b,v={},j){return w(C,o.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:v.width||b.width,containerHeight:v.height||b.height,position:{mx:.22,my:.5}}),{fill:j?st(b,c,v.stroke):$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(C,b,v={},j){return w(C,o.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:v.width||b.width,containerHeight:v.height||b.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:j?st(b,c,v.stroke):$t(b,s,v.fill),stroke:st(b,c,v.stroke)})},"bpmn:MultipleEventDefinition":function(C,b,v={},j){return w(C,o.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:v.width||b.width,containerHeight:v.height||b.height,position:{mx:.211,my:.36}}),{fill:j?st(b,c,v.stroke):$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(C,b,v={}){return w(C,o.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:v.width||b.width,containerHeight:v.height||b.height,position:{mx:.458,my:.194}}),{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(C,b,v={}){return f(C,b.width,b.height,8,{fill:st(b,c,v.stroke),stroke:st(b,c,v.stroke),strokeWidth:4})}};function z(C,b,v={},j){var L=Y(C),J=xy(L),mt=j||C;return L.get("eventDefinitions")&&L.get("eventDefinitions").length>1?L.get("parallelMultiple")?M["bpmn:ParallelMultipleEventDefinition"](b,mt,v,J):M["bpmn:MultipleEventDefinition"](b,mt,v,J):Wo(L,"bpmn:MessageEventDefinition")?M["bpmn:MessageEventDefinition"](b,mt,v,J):Wo(L,"bpmn:TimerEventDefinition")?M["bpmn:TimerEventDefinition"](b,mt,v,J):Wo(L,"bpmn:ConditionalEventDefinition")?M["bpmn:ConditionalEventDefinition"](b,mt,v,J):Wo(L,"bpmn:SignalEventDefinition")?M["bpmn:SignalEventDefinition"](b,mt,v,J):Wo(L,"bpmn:EscalationEventDefinition")?M["bpmn:EscalationEventDefinition"](b,mt,v,J):Wo(L,"bpmn:LinkEventDefinition")?M["bpmn:LinkEventDefinition"](b,mt,v,J):Wo(L,"bpmn:ErrorEventDefinition")?M["bpmn:ErrorEventDefinition"](b,mt,v,J):Wo(L,"bpmn:CancelEventDefinition")?M["bpmn:CancelEventDefinition"](b,mt,v,J):Wo(L,"bpmn:CompensateEventDefinition")?M["bpmn:CompensateEventDefinition"](b,mt,v,J):Wo(L,"bpmn:TerminateEventDefinition")?M["bpmn:TerminateEventDefinition"](b,mt,v,J):null}var H={ParticipantMultiplicityMarker:function(C,b,v={}){var j=io(b,v),L=In(b,v);S("participant-multiplicity",C,o.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:j,containerHeight:L,position:{mx:(j/2-6)/j,my:(L-15)/L}}),{strokeWidth:2,fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke)})},SubProcessMarker:function(C,b,v={}){hn(g(C,14,14,0,{strokeWidth:1,fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke)}),b.width/2-7.5,b.height-20),S("sub-process",C,o.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:b.width,containerHeight:b.height,position:{mx:(b.width/2-7.5)/b.width,my:(b.height-20)/b.height}}),{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke)})},ParallelMarker:function(C,b,v){var j=io(b,v),L=In(b,v);S("parallel",C,o.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:j,containerHeight:L,position:{mx:(j/2+v.parallel)/j,my:(L-20)/L}}),{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke)})},SequentialMarker:function(C,b,v){S("sequential",C,o.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:b.width,containerHeight:b.height,position:{mx:(b.width/2+v.seq)/b.width,my:(b.height-19)/b.height}}),{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke)})},CompensationMarker:function(C,b,v){S("compensation",C,o.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:b.width,containerHeight:b.height,position:{mx:(b.width/2+v.compensation)/b.width,my:(b.height-13)/b.height}}),{strokeWidth:1,fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke)})},LoopMarker:function(C,b,v){var j=io(b,v),L=In(b,v);S("loop",C,o.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:j,containerHeight:L,position:{mx:(j/2+v.loop)/j,my:(L-7)/L}}),{strokeWidth:1.5,fill:"none",stroke:st(b,c,v.stroke),strokeMiterlimit:.5})},AdhocMarker:function(C,b,v){var j=io(b,v),L=In(b,v);S("adhoc",C,o.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:j,containerHeight:L,position:{mx:(j/2+v.adhoc)/j,my:(L-15)/L}}),{strokeWidth:1,fill:st(b,c,v.stroke),stroke:st(b,c,v.stroke)})}};function N(C,b,v,j){H[C](b,v,j)}function Z(C,b,v=[],j={}){j={fill:j.fill,stroke:j.stroke,width:io(b,j),height:In(b,j)};var L=Y(b),J=v.includes("SubProcessMarker");j=J?{...j,seq:-21,parallel:-22,compensation:-25,loop:-18,adhoc:10}:{...j,seq:-5,parallel:-6,compensation:-7,loop:0,adhoc:-8},L.get("isForCompensation")&&v.push("CompensationMarker"),y(L,"bpmn:AdHocSubProcess")&&(v.push("AdhocMarker"),J||P(j,{compensation:j.compensation-18}));var mt=L.get("loopCharacteristics"),Nt=mt&&mt.get("isSequential");mt&&(P(j,{compensation:j.compensation-18}),v.includes("AdhocMarker")&&P(j,{seq:-23,loop:-18,parallel:-24}),Nt===void 0&&v.push("LoopMarker"),Nt===!1&&v.push("ParallelMarker"),Nt===!0&&v.push("SequentialMarker")),v.includes("CompensationMarker")&&v.length===1&&P(j,{compensation:-8}),R(v,function(se){N(se,C,b,j)})}function Et(C,b,v={}){v=P({size:{width:100}},v);var j=i.createText(b||"",v);return ut(j).add("djs-label"),it(C,j),j}function ft(C,b,v,j={}){var L=Y(b),J=za({x:b.x,y:b.y,width:b.width,height:b.height},j);return Et(C,L.name,{align:v,box:J,padding:7,style:{fill:ir(b,l,c,j.stroke)}})}function ee(C,b,v={}){var j={width:b.width,height:b.height,x:b.width/2+b.x,y:b.height/2+b.y};return Et(C,Dn(b),{box:j,style:P({},i.getExternalStyle(),{fill:ir(b,l,c,v.stroke)})})}function Fe(C,b,v,j={}){var L=Re(v),J=Et(C,b,{box:{height:30,width:L?In(v,j):io(v,j)},align:"center-middle",style:{fill:ir(v,l,c,j.stroke)}});L&&Ws(J,0,-(-1*In(v,j)),270)}function Lt(C,b,v={}){var{width:j,height:L}=za(b,v);return g(C,j,L,Rl,{...v,fill:$t(b,s,v.fill),fillOpacity:Na,stroke:st(b,c,v.stroke)})}function St(C,b,v={}){var j=Y(b),L=$t(b,s,v.fill),J=st(b,c,v.stroke);return(j.get("associationDirection")==="One"||j.get("associationDirection")==="Both")&&(v.markerEnd=u(C,"association-end",L,J)),j.get("associationDirection")==="Both"&&(v.markerStart=u(C,"association-start",L,J)),v=qt(v,["markerStart","markerEnd"]),_(C,b.waypoints,{...v,stroke:J,strokeDasharray:"0, 5"})}function wt(C,b,v={}){var j=$t(b,s,v.fill),L=st(b,c,v.stroke),J=w(C,o.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:b.width,containerHeight:b.height,position:{mx:.474,my:.296}}),{fill:j,fillOpacity:Na,stroke:L}),mt=Y(b);return ky(mt)&&w(C,o.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:b.width,containerHeight:b.height,position:{mx:.33,my:(b.height-18)/b.height}}),{strokeWidth:2,fill:j,stroke:L}),J}function pt(C,b,v={}){return f(C,b.width,b.height,{fillOpacity:Na,...v,fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke)})}function zt(C,b,v={}){return x(C,b.width,b.height,{fill:$t(b,s,v.fill),fillOpacity:Na,stroke:st(b,c,v.stroke)})}function W(C,b,v={}){var j=g(C,io(b,v),In(b,v),0,{fill:$t(b,s,v.fill),fillOpacity:v.fillOpacity||Na,stroke:st(b,c,v.stroke),strokeWidth:1.5}),L=Y(b);return y(L,"bpmn:Lane")&&Fe(C,L.get("name"),b,v),j}function F(C,b,v={}){var j=Lt(C,b,v),L=Ot(b);if(mn(b)&&(U(j,{strokeDasharray:"0, 5.5",strokeWidth:2.5}),!L)){var J=(Y(b).flowElements||[]).filter(mt=>y(mt,"bpmn:StartEvent"));J.length===1&&ct(J[0],C,v,b)}return ft(C,b,L?"center-top":"center-middle",v),L?Z(C,b,void 0,v):Z(C,b,["SubProcessMarker"],v),j}function ct(C,b,v,j){var L=22,J={fill:$t(j,s,v.fill),stroke:st(j,c,v.stroke),width:L,height:L},mt=Y(C).isInterrupting,Nt=mt?0:3,se=mt?1:1.2,We=20,Wt=(L-We)/2,Qe="translate("+Wt+","+Wt+")";f(b,We,We,{fill:J.fill,stroke:J.stroke,strokeWidth:se,strokeDasharray:Nt,transform:Qe}),z(C,b,J,j)}function Ht(C,b,v={}){var j=Lt(C,b,v);return ft(C,b,"center-middle",v),Z(C,b,void 0,v),j}var de=this.handlers={"bpmn:AdHocSubProcess":function(C,b,v={}){return v=Ot(b)?qt(v,["fill","stroke","width","height"]):qt(v,["fill","stroke"]),F(C,b,v)},"bpmn:Association":function(C,b,v={}){return v=qt(v,["fill","stroke"]),St(C,b,v)},"bpmn:BoundaryEvent":function(C,b,v={}){var{renderIcon:j=!0}=v;v=qt(v,["fill","stroke"]);var L=Y(b).get("cancelActivity");v={strokeWidth:1.5,fill:$t(b,s,v.fill),fillOpacity:IS,stroke:st(b,c,v.stroke)},L||(v.strokeDasharray="6");var J=pt(C,b,v);return f(C,b.width,b.height,_l,{...v,fill:"none"}),j&&z(b,C,v),J},"bpmn:BusinessRuleTask":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=Ht(C,b,v),L=w(C,o.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}));U(L,{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:1});var J=w(C,o.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}));return U(J,{fill:st(b,c,v.stroke),stroke:st(b,c,v.stroke),strokeWidth:1}),j},"bpmn:CallActivity":function(C,b,v={}){return v=qt(v,["fill","stroke"]),F(C,b,{strokeWidth:5,...v})},"bpmn:ComplexGateway":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=zt(C,b,v);return w(C,o.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:b.width,containerHeight:b.height,position:{mx:.46,my:.26}}),{fill:st(b,c,v.stroke),stroke:st(b,c,v.stroke),strokeWidth:1}),j},"bpmn:DataInput":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=o.getRawPath("DATA_ARROW"),L=wt(C,b,v);return w(C,j,{fill:"none",stroke:st(b,c,v.stroke),strokeWidth:1}),L},"bpmn:DataInputAssociation":function(C,b,v={}){return v=qt(v,["fill","stroke"]),St(C,b,{...v,markerEnd:u(C,"association-end",$t(b,s,v.fill),st(b,c,v.stroke))})},"bpmn:DataObject":function(C,b,v={}){return v=qt(v,["fill","stroke"]),wt(C,b,v)},"bpmn:DataObjectReference":B("bpmn:DataObject"),"bpmn:DataOutput":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=o.getRawPath("DATA_ARROW"),L=wt(C,b,v);return w(C,j,{strokeWidth:1,fill:st(b,c,v.stroke),stroke:st(b,c,v.stroke)}),L},"bpmn:DataOutputAssociation":function(C,b,v={}){return v=qt(v,["fill","stroke"]),St(C,b,{...v,markerEnd:u(C,"association-end",$t(b,s,v.fill),st(b,c,v.stroke))})},"bpmn:DataStoreReference":function(C,b,v={}){return v=qt(v,["fill","stroke"]),w(C,o.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:b.width,containerHeight:b.height,position:{mx:0,my:.133}}),{fill:$t(b,s,v.fill),fillOpacity:Na,stroke:st(b,c,v.stroke),strokeWidth:2})},"bpmn:EndEvent":function(C,b,v={}){var{renderIcon:j=!0}=v;v=qt(v,["fill","stroke"]);var L=pt(C,b,{...v,strokeWidth:4});return j&&z(b,C,v),L},"bpmn:EventBasedGateway":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=Y(b),L=zt(C,b,v);f(C,b.width,b.height,b.height*.2,{fill:$t(b,"none",v.fill),stroke:st(b,c,v.stroke),strokeWidth:1});var J=j.get("eventGatewayType"),mt=!!j.get("instantiate");function Nt(){w(C,o.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:b.width,containerHeight:b.height,position:{mx:.36,my:.44}}),{fill:"none",stroke:st(b,c,v.stroke),strokeWidth:2})}return J==="Parallel"?w(C,o.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:b.width,containerHeight:b.height,position:{mx:.474,my:.296}}),{fill:"none",stroke:st(b,c,v.stroke),strokeWidth:1}):J==="Exclusive"&&(mt||f(C,b.width,b.height,b.height*.26,{fill:"none",stroke:st(b,c,v.stroke),strokeWidth:1}),Nt()),L},"bpmn:ExclusiveGateway":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=zt(C,b,v),L=o.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:b.width,containerHeight:b.height,position:{mx:.32,my:.3}});return Tt(b).get("isMarkerVisible")&&w(C,L,{fill:st(b,c,v.stroke),stroke:st(b,c,v.stroke),strokeWidth:1}),j},"bpmn:Gateway":function(C,b,v={}){return v=qt(v,["fill","stroke"]),zt(C,b,v)},"bpmn:Group":function(C,b,v={}){return v=qt(v,["fill","stroke","width","height"]),g(C,b.width,b.height,Rl,{stroke:st(b,c,v.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:io(b,v),height:In(b,v)})},"bpmn:InclusiveGateway":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=zt(C,b,v);return f(C,b.width,b.height,b.height*.24,{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:2.5}),j},"bpmn:IntermediateEvent":function(C,b,v={}){var{renderIcon:j=!0}=v;v=qt(v,["fill","stroke"]);var L=pt(C,b,{...v,strokeWidth:1.5});return f(C,b.width,b.height,_l,{fill:"none",stroke:st(b,c,v.stroke),strokeWidth:1.5}),j&&z(b,C,v),L},"bpmn:IntermediateCatchEvent":B("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":B("bpmn:IntermediateEvent"),"bpmn:Lane":function(C,b,v={}){return v=qt(v,["fill","stroke","width","height"]),W(C,b,{...v,fillOpacity:HS})},"bpmn:ManualTask":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=Ht(C,b,v);return w(C,o.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:.5}),j},"bpmn:MessageFlow":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=Y(b),L=Tt(b),J=$t(b,s,v.fill),mt=st(b,c,v.stroke),Nt=_(C,b.waypoints,{markerEnd:u(C,"messageflow-end",J,mt),markerStart:u(C,"messageflow-start",J,mt),stroke:mt,strokeDasharray:"10, 11",strokeWidth:1.5});if(j.get("messageRef")){var se=Nt.getPointAtLength(Nt.getTotalLength()/2),We=o.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:se.x,y:se.y}}),Wt={strokeWidth:1};L.get("messageVisibleKind")==="initiating"?(Wt.fill=J,Wt.stroke=mt):(Wt.fill=mt,Wt.stroke=J);var Qe=w(C,We,Wt),ze=Et(C,j.get("messageRef").get("name"),{align:"center-top",fitBox:!0,style:{fill:mt}}),G=Qe.getBBox(),at=ze.getBBox();Ws(ze,se.x-at.width/2,se.y+G.height/2+OS,0)}return Nt},"bpmn:ParallelGateway":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=zt(C,b,v);return w(C,o.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:b.width,containerHeight:b.height,position:{mx:.46,my:.2}}),{fill:st(b,c,v.stroke),stroke:st(b,c,v.stroke),strokeWidth:1}),j},"bpmn:Participant":function(C,b,v={}){v=qt(v,["fill","stroke","width","height"]);var j=W(C,b,v),L=Ot(b),J=Re(b),mt=Y(b),Nt=mt.get("name");if(L)k(C,J?[{x:30,y:0},{x:30,y:In(b,v)}]:[{x:0,y:30},{x:io(b,v),y:30}],{stroke:st(b,c,v.stroke),strokeWidth:LS}),Fe(C,Nt,b,v);else{var se=za(b,v);J||(se.height=io(b,v),se.width=In(b,v));var We=Et(C,Nt,{box:se,align:"center-middle",style:{fill:ir(b,l,c,v.stroke)}});J||Ws(We,0,-(-1*In(b,v)),270)}return mt.get("participantMultiplicity")&&N("ParticipantMultiplicityMarker",C,b,v),j},"bpmn:ReceiveTask":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=Y(b),L=Ht(C,b,v),J;return j.get("instantiate")?(f(C,28,28,4.4,{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:1}),J=o.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):J=o.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),w(C,J,{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:1}),L},"bpmn:ScriptTask":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=Ht(C,b,v);return w(C,o.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}}),{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:1}),j},"bpmn:SendTask":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=Ht(C,b,v);return w(C,o.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}}),{fill:st(b,c,v.stroke),stroke:$t(b,s,v.fill),strokeWidth:1}),j},"bpmn:SequenceFlow":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=$t(b,s,v.fill),L=st(b,c,v.stroke),J=_(C,b.waypoints,{markerEnd:u(C,"sequenceflow-end",j,L),stroke:L}),mt=Y(b),{source:Nt}=b;if(Nt){var se=Y(Nt);mt.get("conditionExpression")&&y(se,"bpmn:Activity")&&U(J,{markerStart:u(C,"conditional-flow-marker",j,L)}),se.get("default")&&(y(se,"bpmn:Gateway")||y(se,"bpmn:Activity"))&&se.get("default")===mt&&U(J,{markerStart:u(C,"conditional-default-flow-marker",j,L)})}return J},"bpmn:ServiceTask":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=Ht(C,b,v);return f(C,10,10,{fill:$t(b,s,v.fill),stroke:"none",transform:"translate(6, 6)"}),w(C,o.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}}),{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:1}),f(C,10,10,{fill:$t(b,s,v.fill),stroke:"none",transform:"translate(11, 10)"}),w(C,o.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}}),{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:1}),j},"bpmn:StartEvent":function(C,b,v={}){var{renderIcon:j=!0}=v;v=qt(v,["fill","stroke"]),Y(b).get("isInterrupting")||(v={...v,strokeDasharray:"6"});var L=pt(C,b,v);return j&&z(b,C,v),L},"bpmn:SubProcess":function(C,b,v={}){return v=Ot(b)?qt(v,["fill","stroke","width","height"]):qt(v,["fill","stroke"]),F(C,b,v)},"bpmn:Task":function(C,b,v={}){return v=qt(v,["fill","stroke"]),Ht(C,b,v)},"bpmn:TextAnnotation":function(C,b,v={}){v=qt(v,["fill","stroke"]);var{width:j,height:L}=za(b,v),J=g(C,j,L,0,0,{fill:"none",stroke:"none"});return w(C,o.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:j,containerHeight:L,position:{mx:0,my:0}}),{stroke:st(b,c,v.stroke)}),Et(C,Y(b).get("text")||"",{align:"left-top",box:za(b,v),padding:7,style:{fill:ir(b,l,c,v.stroke)}}),J},"bpmn:Transaction":function(C,b,v={}){v=Ot(b)?qt(v,["fill","stroke","width","height"]):qt(v,["fill","stroke"]);var j=F(C,b,{strokeWidth:1.5,...v}),L=n.style(["no-fill","no-events"],{stroke:st(b,c,v.stroke),strokeWidth:1.5});return Ot(b)||(v={}),g(C,io(b,v),In(b,v),Rl-_l,_l,L),j},"bpmn:UserTask":function(C,b,v={}){v=qt(v,["fill","stroke"]);var j=Ht(C,b,v),L=15,J=12;return w(C,o.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:L,y:J}}),{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:.5}),w(C,o.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:L,y:J}}),{fill:$t(b,s,v.fill),stroke:st(b,c,v.stroke),strokeWidth:.5}),w(C,o.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:L,y:J}}),{fill:st(b,c,v.stroke),stroke:st(b,c,v.stroke),strokeWidth:.5}),j},label:function(C,b,v={}){return ee(C,b,v)}};this._drawPath=w,this._renderer=T}function qt(t,e=[]){return e.reduce((n,o)=>(t[o]&&(n[o]=t[o]),n),{})}function GS(t){var e=t.split("-");return{horizontal:e[0]||"center",vertical:e[1]||"top"}}function VS(t){return Se(t)?P({top:0,left:0,right:0,bottom:0},t):{top:t,left:t,right:t,bottom:t}}function US(){return $y||=document.createElement("canvas").getContext("2d"),$y}function qS(t){var e=[];return t.fontStyle&&e.push(t.fontStyle),t.fontVariant&&e.push(t.fontVariant),t.fontWeight&&e.push(t.fontWeight),t.fontStretch&&e.push(t.fontStretch),e.push(c0(t.fontSize)||"12px"),e.push(t.fontFamily||"sans-serif"),e.join(" ")}function c0(t){if(t!=null)return typeof t=="number"||/^-?\d+(\.\d+)?$/.test(t)?t+"px":t}function KS(t,e){var n=US();if(!n)return{width:0,height:0};n.font=qS(e),"letterSpacing"in n&&(n.letterSpacing=c0(e.letterSpacing)||"0px");var o=t==="",r=o?"dummy":t.replace(/\s+$/,""),i=n.measureText(r);return{width:o?0:i.width,height:"fontBoundingBoxAscent"in i?i.fontBoundingBoxAscent+i.fontBoundingBoxDescent:i.actualBoundingBoxAscent+i.actualBoundingBoxDescent}}function XS(t,e,n){for(var o=t.shift(),r=o,i;;){if(i=KS(r,n),i.width=r?i.width:0,r===" "||r===""||i.width<=e||r.length<2)return YS(t,r,o,i);r=JS(r,i.width,e)}}function YS(t,e,n,o){if(e.length<n.length){var r=n.slice(e.length).trim();t.unshift(r)}return{width:o.width,height:o.height,text:e}}function ZS(t,e){var n=t.split(/(\s|-|\u00AD)/g),o,r=[],i=0;if(n.length>1)for(;o=n.shift();)if(o.length+i<e)r.push(o),i+=o.length;else{(o==="-"||o===zy)&&r.pop();break}var a=r[r.length-1];return a&&a===zy&&(r[r.length-1]="-"),r.join("")}function JS(t,e,n){var o=Math.max(t.length*(n/e),1),r=ZS(t,o);return r||=t.slice(0,Math.max(Math.round(o-1),1)),r}function Ml(t){this._config=P({},{size:WS,padding:FS,style:{},align:"center-top"},t||{})}function QS(t){if("fontSize"in t&&"lineHeight"in t)return t.lineHeight*parseInt(t.fontSize,10)}function l0(t){var e=P({fontFamily:"Arial, sans-serif",fontSize:t3,fontWeight:"normal",lineHeight:e3},t&&t.defaultStyle||{}),n=parseInt(e.fontSize,10)-1,o=P({},e,{fontSize:n},t&&t.externalStyle||{}),r=new Ml({style:e});this.getExternalLabelBounds=function(a,s){var c=i(s,{width:Math.max(a.width,Sr.width),height:30},{style:o});return{x:Math.round(a.x+a.width/2-c.width/2),y:a.y,width:Math.ceil(c.width),height:Math.ceil(c.height)}},this.getTextAnnotationBounds=function(a,s){var c=i(s,a,{style:e,align:"left-top",padding:7});return{x:a.x,y:a.y,width:a.width,height:Math.max(n3,Math.round(c.height))}},this.getDimensions=function(a,s){return r.getDimensions(a,s||{})};function i(a,s,c){return r.getDimensions(a,P({box:s},c))}this.createText=function(a,s){return r.createText(a,s||{})},this.getDefaultStyle=function(){return e},this.getExternalStyle=function(){return o}}function o3(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(t){return this.pathMap[t].d},this.getScaledPath=function(t,e){var n=this.pathMap[t],o,r;e.abspos?(o=e.abspos.x,r=e.abspos.y):(o=e.containerWidth*e.position.mx,r=e.containerHeight*e.position.my);var i={};if(e.position){for(var a=e.containerHeight/n.height*e.yScaleFactor,s=e.containerWidth/n.width*e.xScaleFactor,c=0;c<n.heightElements.length;c++)i["y"+c]=n.heightElements[c]*a;for(var l=0;l<n.widthElements.length;l++)i["x"+l]=n.widthElements[l]*s}return s3(n.d,{mx:o,my:r,e:i})}}function a3(t,e,n){var o=n;return e.replace(i3,function(r,i,a,s,c){i||=s,o&&(i in o&&(o=o[i]),typeof o=="function"&&c&&(o=o()))}),o=(o==null||o==n?t:o)+"",o}function s3(t,e){return String(t).replace(r3,function(n,o){return a3(n,o,e)})}function l3(t,e){return e||={},t.replace(/{([^}]+)}/g,function(n,o){return e[o]||"{"+o+"}"})}function El(t,e,n){return P({id:t.id,type:t.$type,businessObject:t,di:e},n)}function p3(t,e,n){var o=t.waypoint;return!o||o.length<2?[vt(e),vt(n)]:o.map(function(r){return{x:r.x,y:r.y}})}function Oy(t,e,n){return Error("element ".concat(Sn(e)," referenced by ").concat(Sn(t),"#").concat(n," not yet drawn"))}function Br(t,e,n,o,r){this._eventBus=t,this._canvas=e,this._elementFactory=n,this._elementRegistry=o,this._textRenderer=r}function d3(t,e){var n=e.x,o=e.y;return n>=t.x&&n<=t.x+t.width&&o>=t.y&&o<=t.y+t.height}function m3(t){return y(t,"bpmn:Group")}function Xi(t){this._counter=0,this._prefix=(t?t+"-":"")+Math.floor(Math.random()*1e9)+"-"}function un(t,e,n,o){this._eventBus=e,this._canvas=n,this._elementRegistry=o,this._ids=h3,this._overlayDefaults=P({show:null,scale:!0},t&&t.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=g3(n.getContainer()),this._init()}function g3(t){var e=ge('<div class="djs-overlay-container" />');return Tn(e,{position:"absolute",width:0,height:0}),t.insertBefore(e,t.firstChild),e}function Ly(t,e,n){Tn(t,{left:e+"px",top:n+"px"})}function Sl(t,e){t.style.display=e===!1?"none":""}function Ny(t,e){t.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(n){t.style[n+"transform"]=e})}function p0(t,e,n,o){t.on("element.changed",function(r){var i=r.element;(i.parent||i===e.getRootElement())&&(r.gfx=n.getGraphics(i)),r.gfx&&t.fire(Ky(i)+".changed",r)}),t.on("elements.changed",function(r){var i=r.elements;i.forEach(function(a){t.fire("element.changed",{element:a})}),o.updateContainments(i)}),t.on("shape.changed",function(r){o.update("shape",r.element,r.gfx)}),t.on("connection.changed",function(r){o.update("connection",r.element,r.gfx)})}function wm(t,e){e.invoke(q,this),this.executed(function(n){var o=n.context;o.rootElement?t.setRootElement(o.rootElement):o.rootElement=t.getRootElement()}),this.revert(function(n){var o=n.context;o.rootElement&&t.setRootElement(o.rootElement)})}function Ga(t){return CSS.escape(t)}function Al(t){return t=""+t,t&&t.replace(/[&<>"']/g,function(e){return v3[e]})}function d0(t,e,n){var o=ge('<ul class="bjs-breadcrumbs"></ul>'),r=n.getContainer(),i=_e(r);r.appendChild(o);var a=[];t.on("element.changed",function(c){var l=c.element,p=Y(l);ce(a,function(d){return d===p})&&s()});function s(c){c&&(a=x3(c));var l=a.flatMap(function(d){var m=n.findRoot(xo(d))||n.findRoot(d.id);if(!m&&y(d,"bpmn:Process")){var u=e.find(function(h){var f=Y(h);return f&&f.get("processRef")===d});m=u&&n.findRoot(u.id)}return m?[{parent:d,parentPlane:m}]:[]});o.innerHTML="";var p=l.length>1;i.toggle(b3,p),l.forEach(function(d,m){var u=d.parent,h=d.parentPlane,f=Al(u.name||u.id),g=m===l.length-1,x;g?x=ge('<li><span class="bjs-crumb" title="'+f+'">'+f+"</span></li>"):(x=ge('<li><a class="bjs-crumb" href="'+("#"+Al(u.id))+'" title="'+f+'">'+f+"</a></li>"),x.addEventListener("click",function(k){k.preventDefault(),n.setRootElement(h)})),o.appendChild(x)})}t.on("root.set",function(c){s(c.element)})}function x3(t){for(var e=Y(t),n=[],o=e;o;o=o.$parent)(y(o,"bpmn:SubProcess")||y(o,"bpmn:Process"))&&n.push(o);return n.reverse()}function m0(t,e){var n=null,o=new k3;t.on("root.set",function(r){var i=r.element,a=e.viewbox(),s=o.get(i);if(o.set(n,{x:a.x,y:a.y,zoom:a.scale}),n=i,y(i,"bpmn:SubProcess")||s){s||={x:0,y:0,zoom:1};var c=(a.x-s.x)*a.scale,l=(a.y-s.y)*a.scale;(c!==0||l!==0)&&e.scroll({dx:c,dy:l}),s.zoom!==a.scale&&e.zoom(s.zoom,{x:0,y:0})}}),t.on("diagram.clear",function(){o.clear(),n=null})}function k3(){this._entries=[],this.set=function(t,e){var n=!1;for(var o in this._entries)if(this._entries[o][0]===t){this._entries[o][1]=e,n=!0;break}n||this._entries.push([t,e])},this.get=function(t){for(var e in this._entries)if(this._entries[e][0]===t)return this._entries[e][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(t){var e=-1;for(var n in this._entries)if(this._entries[n][0]===t){e=n;break}e!==-1&&this._entries.splice(e,1)}}function qi(t,e){this._eventBus=t,this._moddle=e;var n=this;t.on("import.render.start",1500,function(o,r){n._handleImport(r.definitions)})}function u0(t){return y(t,"bpmndi:BPMNDiagram")?t:u0(t.$parent)}function w3(t){var e={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return t.planeElement.forEach(function(n){if(n.bounds){var o=ht(n.bounds);e.top=Math.min(o.top,e.top),e.left=Math.min(o.left,e.left)}}),Ba(e)}function _3(t,e){var n=t.$parent;return!(!y(n,"bpmn:SubProcess")||n===e.bpmnElement||At(t,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}function ii(t,e,n,o,r){q.call(this,e),this._canvas=t,this._eventBus=e,this._elementRegistry=n,this._overlays=o,this._translate=r;var i=this;this.executed("shape.toggleCollapse",Tl,function(a){var s=a.shape;i._canDrillDown(s)?i._addOverlay(s):i._removeOverlay(s)},!0),this.reverted("shape.toggleCollapse",Tl,function(a){var s=a.shape;i._canDrillDown(s)?i._addOverlay(s):i._removeOverlay(s)},!0),this.executed(["shape.create","shape.move","shape.delete"],Tl,function(a){var s=a.oldParent,c=a.newParent||a.parent,l=a.shape;i._canDrillDown(l)&&i._addOverlay(l),i._updateDrilldownOverlay(s),i._updateDrilldownOverlay(c),i._updateDrilldownOverlay(l)},!0),this.reverted(["shape.create","shape.move","shape.delete"],Tl,function(a){var s=a.oldParent,c=a.newParent||a.parent,l=a.shape;i._canDrillDown(l)&&i._addOverlay(l),i._updateDrilldownOverlay(s),i._updateDrilldownOverlay(c),i._updateDrilldownOverlay(l)},!0),e.on("import.render.complete",function(){n.filter(function(a){return i._canDrillDown(a)}).map(function(a){i._addOverlay(a)})})}function Hy(t){t&&typeof t.stopPropagation=="function"&&t.stopPropagation()}function Yi(t){return t.originalEvent||t.srcEvent}function $l(t){Hy(t),Hy(Yi(t))}function li(t){return t.pointers&&t.pointers.length&&(t=t.pointers[0]),t.touches&&t.touches.length&&(t=t.touches[0]),t?{x:t.clientX,y:t.clientY}:null}function Cm(){return/mac/i.test(navigator.platform)}function h0(t,e){return(Yi(t)||t).button===e}function Mr(t){return h0(t,0)}function C3(t){return h0(t,1)}function Va(t){var e=Yi(t)||t;return Mr(t)?Cm()?e.metaKey:e.ctrlKey:!1}function Ys(t){var e=Yi(t)||t;return Mr(t)&&e.shiftKey}function B3(t){return!0}function Cl(t){return Mr(t)||C3(t)}function f0(t,e,n){var o=this;function r(T,B,M){if(!s(T,B)){var z,H,N;M?H=e.getGraphics(M):(z=B.delegateTarget||B.target,z&&(H=z,M=e.get(H))),H&&M&&(N=t.fire(T,{element:M,gfx:H,originalEvent:B}),N===!1&&(B.stopPropagation(),B.preventDefault()))}}var i={};function a(T){return i[T]}function s(T,B){return!(l[T]||Mr)(B)}var c={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},l={"element.contextmenu":B3,"element.mousedown":Cl,"element.mouseup":Cl,"element.click":Cl,"element.dblclick":Cl};function p(T,B,M){var z=c[T];if(!z)throw Error("unmapped DOM event name <"+T+">");return r(z,B,M)}var d="svg, .djs-element";function m(T,B,M,z){var H=i[M]=function(N){r(M,N)};z&&(l[M]=z),H.$delegate=Cn.bind(T,d,B,H)}function u(T,B,M){var z=a(M);z&&Cn.unbind(T,B,z.$delegate)}function h(T){R(c,function(B,M){m(T,M,B)})}function f(T){R(c,function(B,M){u(T,M,B)})}t.on("canvas.destroy",function(T){f(T.svg)}),t.on("canvas.init",function(T){h(T.svg)}),t.on(["shape.added","connection.added"],function(T){var B=T.element,M=T.gfx;t.fire("interactionEvents.createHit",{element:B,gfx:M})}),t.on(["shape.changed","connection.changed"],Fy,function(T){var B=T.element,M=T.gfx;t.fire("interactionEvents.updateHit",{element:B,gfx:M})}),t.on("interactionEvents.createHit",Fy,function(T){var B=T.element,M=T.gfx;o.createDefaultHit(B,M)}),t.on("interactionEvents.updateHit",function(T){var B=T.element,M=T.gfx;o.updateDefaultHit(B,M)});var g=_("djs-hit djs-hit-stroke"),x=_("djs-hit djs-hit-click-stroke"),k={all:_("djs-hit djs-hit-all"),"click-stroke":x,stroke:g,"no-move":_("djs-hit djs-hit-no-move")};function _(T,B){return B=P({stroke:"white",strokeWidth:15},B||{}),n.cls(T,["no-fill","no-border"],B)}function w(T,B){var M=k[B];if(!M)throw Error("invalid hit type <"+B+">");return U(T,M),T}function S(T,B){it(T,B)}this.removeHits=function(T){var B=Vs(".djs-hit",T);R(B,Ne)},this.createDefaultHit=function(T,B){var M=T.waypoints,z=T.isFrame,H;return M?this.createWaypointsHit(B,M):(H=z?"stroke":"all",this.createBoxHit(B,H,{width:T.width,height:T.height}))},this.createWaypointsHit=function(T,B){var M=Gi(B);return w(M,"stroke"),S(T,M),M},this.createBoxHit=function(T,B,M){M=P({x:0,y:0},M);var z=et("rect");return w(z,B),U(z,M),S(T,z),z},this.updateDefaultHit=function(T,B){var M=le(".djs-hit",B);if(M)return T.waypoints?Ls(M,T.waypoints):U(M,{width:T.width,height:T.height}),M},this.fire=r,this.triggerMouseEvent=p,this.mouseHandler=a,this.registerEvent=m,this.unregisterEvent=u}function Ia(t,e){this._eventBus=t,this._canvas=e,this._selectedElements=new Set;var n=this;t.on(["shape.remove","connection.remove"],function(o){var r=o.element;n.deselect(r)}),t.on(["diagram.clear","root.set"],function(o){n.select(null)})}function g0(t,e){this._canvas=t;function n(r,i){t.addMarker(r,i)}function o(r,i){t.removeMarker(r,i)}e.on("element.hover",function(r){n(r.element,Wy)}),e.on("element.out",function(r){o(r.element,Wy)}),e.on("selection.changed",function(r){function i(l){o(l,Gy)}function a(l){n(l,Gy)}var s=new Set(r.oldSelection),c=new Set(r.newSelection);for(let l of s)c.has(l)||i(l);for(let l of c)s.has(l)||a(l)})}function y0(t,e,n,o){t.on("create.end",500,function(r){var i=r.context,a=i.canExecute,s=i.elements,c=(i.hints||{}).autoSelect;if(a){if(c===!1)return;bt(c)?e.select(c):e.select(s.filter(R3))}}),t.on("connect.end",500,function(r){var i=r.context.connection;i&&e.select(i)}),t.on("shape.move.end",500,function(r){var i=r.previousSelection||[],a=o.get(r.context.shape.id);ce(i,function(s){return a.id===s.id})||e.select(a)}),t.on("element.click",function(r){if(Mr(r)){var i=r.element;i===n.getRootElement()&&(i=null);var a=e.isSelected(i),s=e.get().length>1,c=Ys(r);if(a&&s)return c?e.deselect(i):e.select(i);a?e.deselect(i):e.select(i,c)}})}function R3(t){return!t.hidden}function Rr(t){Ce.call(this,t)}var xm,Ey,IE,en,FE,vl,Sy,Ty,Ct,Vy,Cn,qE,XE,YE,ZE,tS,nS,iS,Ry,aS,sS,La,Em,Zy,Ay,Jy,Qy,mS,xl,Py,hS,vS,i0,a0,s0,TS,CS,BS,RS,ar,kl,Dy,DS,zS,OS,_l,LS,Rl,NS,Na,IS,HS,FS,WS,$y,zy,t3,e3,n3,r3,i3,c3,Ks,u3,h3,f3,Xs,jl,y3,v3,b3,Iy,Tl,E3,S3,T3,Fy,Zs,Wy,Gy,Yn,v0=gn(()=>{"use strict";er();Er();Ta();hl();ja();Is();Ua();xm={exports:{}};IE=LE(NE());Go.prototype.next=function(t){return this._seed(t||!0)},Go.prototype.nextPrefixed=function(t,e){var n;do n=t+this.next(!0);while(this.assigned(n));return this.claim(n,e),n},Go.prototype.claim=function(t,e){this._seed.set(t,e||!0)},Go.prototype.assigned=function(t){return this._seed.get(t)||!1},Go.prototype.unclaim=function(t){delete this._seed.hats[t]},Go.prototype.clear=function(){var t=this._seed.hats,e;for(e in t)this.unclaim(e)};en={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:[0,"",""]};en.td=en.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],en.option=en.optgroup=[1,'<select multiple="multiple">',"</select>"],en.thead=en.tbody=en.colgroup=en.caption=en.tfoot=[1,"<table>","</table>"],en.polyline=en.ellipse=en.polygon=en.circle=en.text=en.line=en.path=en.rect=en.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];FE=Object.prototype.toString;oi.prototype.add=function(t){return this.list.add(t),this},oi.prototype.remove=function(t){return FE.call(t)=="[object RegExp]"?this.removeMatching(t):(this.list.remove(t),this)},oi.prototype.removeMatching=function(t){let e=this.array();for(let n=0;n<e.length;n++)t.test(e[n])&&this.remove(e[n]);return this},oi.prototype.toggle=function(t,e){return(e===void 0||e!==this.list.toggle(t,e))&&this.list.toggle(t),this},oi.prototype.array=function(){return Array.from(this.list)},oi.prototype.has=oi.prototype.contains=function(t){return this.list.contains(t)};vl={};Ty=GE(),Ct=HE({__proto__:null,default:WE(Ty)},[Ty]),Vy=["focus","blur"];Cn={bind:VE,unbind:UE};qE=/^class[ {]/;XE=/constructor\s*[^(]*\(\s*([^)]*)\)/m,YE=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,ZE=/\/\*([^*]*)\*\//m;tS=1;dt(ri,qn),ri.prototype.canRender=function(){return!0},ri.prototype.drawShape=function(t,e,n){var o=et("rect");return U(o,{x:0,y:0,width:e.width||0,height:e.height||0}),Xy(e)?U(o,P({},this.FRAME_STYLE,n||{})):U(o,P({},this.SHAPE_STYLE,n||{})),it(t,o),o},ri.prototype.drawConnection=function(t,e,n){var o=Gi(e.waypoints,P({},this.CONNECTION_STYLE,n||{}));return it(t,o),o},ri.prototype.getShapePath=function(t){var e=t.x,n=t.y,o=t.width,r=t.height,i=[["M",e,n],["l",o,0],["l",0,r],["l",-o,0],["z"]];return ni(i)},ri.prototype.getConnectionPath=function(t){var e=t.waypoints,n,o,r=[];for(n=0;o=e[n];n++)o=o.original||o,r.push([n===0?"M":"L",o.x,o.y]);return ni(r)},ri.$inject=["eventBus","styles"];nS={__init__:["defaultRenderer"],defaultRenderer:["type",ri],styles:["type",eS]};iS="base",Ry=0,aS=1,sS={shape:["x","y","width","height"],connection:["waypoints"]};kt.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],kt.prototype._init=function(t){let e=this._eventBus,n=this._container=rS(t),o=this._svg=et("svg");U(o,{width:"100%",height:"100%"}),sn(o,"tabindex",0),t.autoFocus&&e.on("element.hover",()=>{this.restoreFocus()}),e.on("element.mousedown",500,i=>{this.focus()}),o.addEventListener("focusin",()=>{this._setFocused(!0)}),o.addEventListener("focusout",()=>{this._setFocused(!1)}),o.addEventListener("mouseover",()=>{this._eventBus.fire("canvas.mouseover")}),o.addEventListener("mouseout",()=>{this._eventBus.fire("canvas.mouseout")}),it(n,o);let r=this._viewport=By(o,"viewport");t.deferUpdate&&(this._viewboxChanged=Ea(this._viewboxChanged,300)),this._restoreFocus=Ea(this._restoreFocus,0),e.on("diagram.init",()=>{e.fire("canvas.init",{svg:o,viewport:r})}),e.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],()=>{delete this._cachedViewbox}),e.on("diagram.destroy",500,this._destroy,this),e.on("diagram.clear",500,this._clear,this)},kt.prototype._destroy=function(){this._restoreFocus.cancel(),this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});let t=this._container.parentNode;t&&t.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},kt.prototype._setFocused=function(t){t!=this._focused&&(this._focused=t,this._eventBus.fire("canvas.focus.changed",{focused:t}))},kt.prototype._clear=function(){this._elementRegistry.getAll().forEach(t=>{let e=Ky(t);e==="root"?this.removeRootElement(t):this._removeElement(t,e)}),this._planes=[],this._rootElement=null,delete this._cachedViewbox},kt.prototype.focus=function(){this._svg.focus({preventScroll:!0}),this._setFocused(!0)},kt.prototype.restoreFocus=function(){this._restoreFocus()},kt.prototype._restoreFocus=function(){document.activeElement===document.body&&this.focus()},kt.prototype.isFocused=function(){return this._focused},kt.prototype.getDefaultLayer=function(){return this.getLayer(iS,Ry)},kt.prototype.getLayer=function(t,e){if(!t)throw Error("must specify a name");let n=this._layers[t];if(n||=this._layers[t]=this._createLayer(t,e),e!==void 0&&n.index!==e)throw Error("layer <"+t+"> already created at index <"+e+">");return n.group},kt.prototype._getChildIndex=function(t){return Pn(this._layers,function(e,n){return n.visible&&t>=n.index&&e++,e},0)},kt.prototype._createLayer=function(t,e){e===void 0&&(e=aS);let n=this._getChildIndex(e);return{group:By(this._viewport,"layer-"+t,n),index:e,visible:!0}},kt.prototype.showLayer=function(t){if(!t)throw Error("must specify a name");let e=this._layers[t];if(!e)throw Error("layer <"+t+"> does not exist");let n=this._viewport,o=e.group,r=e.index;if(e.visible)return o;let i=this._getChildIndex(r);return n.insertBefore(o,n.childNodes[i]||null),e.visible=!0,o},kt.prototype.hideLayer=function(t){if(!t)throw Error("must specify a name");let e=this._layers[t];if(!e)throw Error("layer <"+t+"> does not exist");let n=e.group;return e.visible&&=(Ne(n),!1),n},kt.prototype._removeLayer=function(t){let e=this._layers[t];e&&(delete this._layers[t],Ne(e.group))},kt.prototype.getActiveLayer=function(){let t=this._findPlaneForRoot(this.getRootElement());return t?t.layer:null},kt.prototype.findRoot=function(t){let e=this._resolveElements(t),n;for(let o of e){let r=this._findPlaneForRoot(oS(o));if(!r||n&&r.rootElement!==n)return;n=r.rootElement}return n},kt.prototype.getRootElements=function(){return this._planes.map(function(t){return t.rootElement})},kt.prototype._findPlaneForRoot=function(t){return ce(this._planes,function(e){return e.rootElement===t})},kt.prototype._resolveElement=function(t){return typeof t=="string"?this._elementRegistry.get(t):t},kt.prototype._resolveElements=function(t){return bt(t)||(t=[t]),t.map(e=>this._resolveElement(e)).filter(Boolean)},kt.prototype.getContainer=function(){return this._container},kt.prototype._updateMarker=function(t,e,n){let o;t=this._resolveElement(t),t.markers=t.markers||new Set,o=this._elementRegistry._elements[t.id],o&&(R([o.gfx,o.secondaryGfx],function(r){r&&(n?(t.markers.add(e),ut(r).add(e)):(t.markers.delete(e),ut(r).remove(e)))}),this._eventBus.fire("element.marker.update",{element:t,gfx:o.gfx,marker:e,add:!!n}))},kt.prototype.addMarker=function(t,e){this._updateMarker(t,e,!0)},kt.prototype.removeMarker=function(t,e){this._updateMarker(t,e,!1)},kt.prototype.hasMarker=function(t,e){return t=this._resolveElement(t),t.markers?t.markers.has(e):!1},kt.prototype.toggleMarker=function(t,e){this.hasMarker(t,e)?this.removeMarker(t,e):this.addMarker(t,e)},kt.prototype.getRootElement=function(){let t=this._rootElement;return t||this._planes.length?t:this.setRootElement(this.addRootElement(null))},kt.prototype.addRootElement=function(t){let e=this._rootsIdx++;t||={id:"__implicitroot_"+e,children:[],isImplicit:!0};let n=t.layer="root-"+e;this._ensureValid("root",t);let o=this.getLayer(n,Ry);return this.hideLayer(n),this._addRoot(t,o),this._planes.push({rootElement:t,layer:o}),t},kt.prototype.removeRootElement=function(t){if(t=this._resolveElement(t),this._findPlaneForRoot(t))return this._removeRoot(t),this._removeLayer(t.layer),this._planes=this._planes.filter(function(e){return e.rootElement!==t}),this._rootElement===t&&(this._rootElement=null),t},kt.prototype.setRootElement=function(t){if(t===this._rootElement)return t;let e;if(!t)throw Error("rootElement required");return e=this._findPlaneForRoot(t),e||(t=this.addRootElement(t)),this._setRoot(t),t},kt.prototype._removeRoot=function(t){let e=this._elementRegistry,n=this._eventBus;n.fire("root.remove",{element:t}),n.fire("root.removed",{element:t}),e.remove(t)},kt.prototype._addRoot=function(t,e){let n=this._elementRegistry,o=this._eventBus;o.fire("root.add",{element:t}),n.add(t,e),o.fire("root.added",{element:t,gfx:e})},kt.prototype._setRoot=function(t,e){let n=this._rootElement;n&&(this._elementRegistry.updateGraphics(n,null,!0),this.hideLayer(n.layer)),t&&(e||=this._findPlaneForRoot(t).layer,this._elementRegistry.updateGraphics(t,this._svg,!0),this.showLayer(t.layer)),this._rootElement=t,this._eventBus.fire("root.set",{element:t})},kt.prototype._ensureValid=function(t,e){if(!e.id)throw Error("element must have an id");if(this._elementRegistry.get(e.id))throw Error("element <"+e.id+"> already exists");let n=sS[t];if(!tr(n,function(o){return e[o]!==void 0}))throw Error("must supply { "+n.join(", ")+" } with "+t)},kt.prototype._setParent=function(t,e,n){Te(e.children,t,n),t.parent=e},kt.prototype._addElement=function(t,e,n,o){n||=this.getRootElement();let r=this._eventBus,i=this._graphicsFactory;this._ensureValid(t,e),r.fire(t+".add",{element:e,parent:n}),this._setParent(e,n,o);let a=i.create(t,e,o);return this._elementRegistry.add(e,a),i.update(t,e,a),r.fire(t+".added",{element:e,gfx:a}),e},kt.prototype.addShape=function(t,e,n){return this._addElement("shape",t,e,n)},kt.prototype.addConnection=function(t,e,n){return this._addElement("connection",t,e,n)},kt.prototype._removeElement=function(t,e){let n=this._elementRegistry,o=this._graphicsFactory,r=this._eventBus;if(t=n.get(t.id||t),t)return r.fire(e+".remove",{element:t}),o.remove(t),we(t.parent&&t.parent.children,t),t.parent=null,r.fire(e+".removed",{element:t}),n.remove(t),t},kt.prototype.removeShape=function(t){return this._removeElement(t,"shape")},kt.prototype.removeConnection=function(t){return this._removeElement(t,"connection")},kt.prototype.getGraphics=function(t,e){return this._elementRegistry.getGraphics(t,e)},kt.prototype._changeViewbox=function(t){this._eventBus.fire("canvas.viewbox.changing"),t.apply(this),this._cachedViewbox=null,this._viewboxChanged()},kt.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},kt.prototype.viewbox=function(t){if(t===void 0&&this._cachedViewbox)return structuredClone(this._cachedViewbox);let e=this._viewport,n=this.getSize(),o,r,i,a,s,c,l;if(t)this._changeViewbox(function(){s=Math.min(n.width/t.width,n.height/t.height);let p=this._svg.createSVGMatrix().scale(s).translate(-t.x,-t.y);Da(e,p)});else return i=this._rootElement?this.getActiveLayer():null,o=i&&i.getBBox()||{},a=Da(e),r=a?a.matrix:dy(),s=bl(r.a,1e3),c=bl(-r.e||0,1e3),l=bl(-r.f||0,1e3),t=this._cachedViewbox={x:c?c/s:0,y:l?l/s:0,width:n.width/s,height:n.height/s,scale:s,inner:{width:o.width||0,height:o.height||0,x:o.x||0,y:o.y||0},outer:n},t;return t},kt.prototype.scroll=function(t){let e=this._viewport,n=e.getCTM();return t&&this._changeViewbox(function(){t=P({dx:0,dy:0},t||{}),n=this._svg.createSVGMatrix().translate(t.dx,t.dy).multiply(n),Yy(e,n)}),{x:n.e,y:n.f}},kt.prototype.scrollToElement=function(t,e){let n=100,o=this._resolveElements(t);if(!o.length)return;let r=this.findRoot(o);if(!r)return;r!==this.getRootElement()&&this.setRootElement(r);let i=o.filter(u=>u!=r);if(!i.length)return;e||={},typeof e=="number"&&(n=e),e={top:e.top||n,right:e.right||n,bottom:e.bottom||n,left:e.left||n};let a=je(i),s=ht(a),c=this.viewbox(),l=this.zoom(),p,d;c.y+=e.top/l,c.x+=e.left/l,c.width-=(e.right+e.left)/l,c.height-=(e.bottom+e.top)/l;let m=ht(c);if(!(a.width<c.width&&a.height<c.height))p=a.x-c.x,d=a.y-c.y;else{let u=Math.max(0,s.right-m.right),h=Math.min(0,s.left-m.left),f=Math.max(0,s.bottom-m.bottom),g=Math.min(0,s.top-m.top);p=u||h,d=f||g}this.scroll({dx:-p*l,dy:-d*l})},kt.prototype.zoom=function(t,e){if(!t)return this.viewbox(t).scale;if(t==="fit-viewport")return this._fitViewport(e);let n,o;return this._changeViewbox(function(){typeof e!="object"&&(n=this.viewbox().outer,e={x:n.width/2,y:n.height/2}),o=this._setZoom(t,e)}),bl(o.a,1e3)};kt.prototype._fitViewport=function(t){let e=this.viewbox(),n=e.outer,o=e.inner,r,i;return o.x>=0&&o.y>=0&&o.x+o.width<=n.width&&o.y+o.height<=n.height&&!t?i={x:0,y:0,width:Math.max(o.width+o.x,n.width),height:Math.max(o.height+o.y,n.height)}:(r=Math.min(1,n.width/o.width,n.height/o.height),i={x:o.x+(t?o.width/2-n.width/r/2:0),y:o.y+(t?o.height/2-n.height/r/2:0),width:n.width/r,height:n.height/r}),this.viewbox(i),this.viewbox(!1).scale},kt.prototype._setZoom=function(t,e){let n=this._svg,o=this._viewport,r=n.createSVGMatrix(),i=n.createSVGPoint(),a,s,c,l,p;c=o.getCTM();let d=c.a;return e?(a=P(i,e),s=a.matrixTransform(c.inverse()),l=r.translate(s.x,s.y).scale(1/d*t).translate(-s.x,-s.y),p=c.multiply(l)):p=r.scale(t),Yy(this._viewport,p),p},kt.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},kt.prototype.getAbsoluteBBox=function(t){let e=this.viewbox(),n;return n=t.waypoints?this.getGraphics(t).getBBox():t,{x:n.x*e.scale-e.x*e.scale,y:n.y*e.scale-e.y*e.scale,width:n.width*e.scale,height:n.height*e.scale}},kt.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};La="data-element-id";ao.$inject=["eventBus"],ao.prototype.add=function(t,e,n){var o=t.id;this._validateId(o),U(e,La,o),n&&U(n,La,o),this._elements[o]={element:t,gfx:e,secondaryGfx:n}},ao.prototype.remove=function(t){var e=this._elements,n=t.id||t,o=n&&e[n];o&&(U(o.gfx,La,""),o.secondaryGfx&&U(o.secondaryGfx,La,""),delete e[n])},ao.prototype.updateId=function(t,e){this._validateId(e),typeof t=="string"&&(t=this.get(t)),this._eventBus.fire("element.updateId",{element:t,newId:e});var n=this.getGraphics(t),o=this.getGraphics(t,!0);this.remove(t),t.id=e,this.add(t,n,o)},ao.prototype.updateGraphics=function(t,e,n){var o=t.id||t,r=this._elements[o];return n?r.secondaryGfx=e:r.gfx=e,e&&U(e,La,o),e},ao.prototype.get=function(t){var e=typeof t=="string"?t:t&&U(t,La),n=this._elements[e];return n&&n.element},ao.prototype.filter=function(t){var e=[];return this.forEach(function(n,o){t(n,o)&&e.push(n)}),e},ao.prototype.find=function(t){for(var e=this._elements,n=Object.keys(e),o=0;o<n.length;o++){var r=e[n[o]],i=r.element,a=r.gfx;if(t(i,a))return i}},ao.prototype.getAll=function(){return this.filter(function(t){return t})},ao.prototype.forEach=function(t){var e=this._elements;Object.keys(e).forEach(function(n){var o=e[n],r=o.element,i=o.gfx;return t(r,i)})},ao.prototype.getGraphics=function(t,e){var n=t.id||t,o=this._elements[n];return o&&(e?o.secondaryGfx:o.gfx)},ao.prototype._validateId=function(t){if(!t)throw Error("element must have an id");if(this._elements[t])throw Error("element with id "+t+" already added")};wo.prototype.bind=function(t,e){if(typeof e=="string"){if(!this.props[e])throw Error("no property <"+e+"> in ref");e=this.props[e]}e.collection?My(this,e,t):dS(this,e,t)},wo.prototype.ensureRefsCollection=function(t,e){var n=t[e.name];return lS(n)||My(this,e,t),n},wo.prototype.ensureBound=function(t,e){pS(t,e)||this.bind(t,e)},wo.prototype.unset=function(t,e,n){t&&(this.ensureBound(t,e),e.collection?this.ensureRefsCollection(t,e).remove(n):t[e.name]=void 0)},wo.prototype.set=function(t,e,n){t&&(this.ensureBound(t,e),e.collection?this.ensureRefsCollection(t,e).add(n):t[e.name]=n)};Em=new wo({name:"children",enumerable:!0,collection:!0},{name:"parent"}),Zy=new wo({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),Ay=new wo({name:"attachers",collection:!0},{name:"host"}),Jy=new wo({name:"outgoing",collection:!0},{name:"source"}),Qy=new wo({name:"incoming",collection:!0},{name:"target"});dt(qs,Fa);dt(t0,qs);dt(e0,qs);dt(n0,Fa);mS={connection:n0,shape:qs,label:e0,root:t0};sr.prototype.createRoot=function(t){return this.create("root",t)},sr.prototype.createLabel=function(t){return this.create("label",t)},sr.prototype.createShape=function(t){return this.create("shape",t)},sr.prototype.createConnection=function(t){return this.create("connection",t)},sr.prototype.create=function(t,e){return e=P({},e||{}),e.id||(e.id=t+"_"+this._uid++),uS(t,e)};xl="__fn",Py=1e3,hS=Array.prototype.slice;Xn.prototype.on=function(t,e,n,o){if(t=bt(t)?t:[t],Be(e)&&(o=n,n=e,e=Py),!xt(e))throw Error("priority must be a number");var r=n;o&&(r=bn(n,o),r[xl]=n[xl]||n);var i=this;t.forEach(function(a){i._addListener(a,{priority:e,callback:r,next:null})})},Xn.prototype.once=function(t,e,n,o){var r=this;if(Be(e)&&(o=n,n=e,e=Py),!xt(e))throw Error("priority must be a number");function i(){i.__isTomb=!0;var a=n.apply(o,arguments);return r.off(t,i),a}i[xl]=n,this.on(t,e,i)},Xn.prototype.off=function(t,e){t=bt(t)?t:[t];var n=this;t.forEach(function(o){n._removeListener(o,e)})},Xn.prototype.createEvent=function(t){var e=new Fs;return e.init(t),e},Xn.prototype.fire=function(t,e){var n,o,r,i=hS.call(arguments);if(typeof t=="object"&&(e=t,t=e.type),!t)throw Error("no event type specified");if(o=this._listeners[t],o){n=e instanceof Fs?e:this.createEvent(e),i[0]=n;var a=n.type;t!==a&&(n.type=t);try{r=this._invokeListeners(n,i,o)}finally{t!==a&&(n.type=a)}return r===void 0&&n.defaultPrevented&&(r=!1),r}},Xn.prototype.handleError=function(t){return this.fire("error",{error:t})===!1},Xn.prototype._destroy=function(){this._listeners={}},Xn.prototype._invokeListeners=function(t,e,n){for(var o;n&&!t.cancelBubble;)o=this._invokeListener(t,e,n),n=n.next;return o},Xn.prototype._invokeListener=function(t,e,n){var o;if(n.callback.__isTomb)return o;try{o=fS(n.callback,e),o!==void 0&&(t.returnValue=o,t.stopPropagation()),o===!1&&t.preventDefault()}catch(r){if(!this.handleError(r))throw console.error("unhandled error in event listener",r),r}return o},Xn.prototype._addListener=function(t,e){var n=this._getListeners(t),o;if(!n)this._setListeners(t,e);else{for(;n;){if(n.priority<e.priority){e.next=n,o?o.next=e:this._setListeners(t,e);return}o=n,n=n.next}o.next=e}},Xn.prototype._getListeners=function(t){return this._listeners[t]},Xn.prototype._setListeners=function(t,e){this._listeners[t]=e},Xn.prototype._removeListener=function(t,e){var n=this._getListeners(t),o,r,i;if(!e)this._setListeners(t,null);else for(;n;)o=n.next,i=n.callback,(i===e||i[xl]===e)&&(r?r.next=o:this._setListeners(t,o)),r=n,n=o};Fs.prototype.stopPropagation=function(){this.cancelBubble=!0},Fs.prototype.preventDefault=function(){this.defaultPrevented=!0},Fs.prototype.init=function(t){P(this,t||{})};so.$inject=["eventBus","elementRegistry"],so.prototype._getChildrenContainer=function(t){var e=this._elementRegistry.getGraphics(t),n;return t.parent?(n=gS(e),n||(n=et("g"),ut(n).add("djs-children"),it(e.parentNode,n))):n=e,n},so.prototype._clear=function(t){var e=ci(t);return Gs(e),e},so.prototype._createContainer=function(t,e,n,o){var r=et("g");ut(r).add("djs-group"),n===void 0?it(e,r):yS(r,e,e.childNodes[n]);var i=et("g");ut(i).add("djs-element"),ut(i).add("djs-"+t),o&&ut(i).add("djs-frame"),it(r,i);var a=et("g");return ut(a).add("djs-visual"),it(i,a),i},so.prototype.create=function(t,e,n){var o=this._getChildrenContainer(e.parent);return this._createContainer(t,o,n,Xy(e))},so.prototype.updateContainments=function(t){var e=this,n=this._elementRegistry,o=Pn(t,function(r,i){return i.parent&&(r[i.parent.id]=i.parent),r},{});R(o,function(r){var i=r.children;if(i){var a=e._getChildrenContainer(r),s=a.firstChild;R(i,function(c){var l=n.getGraphics(c).parentNode;l===s?s=s.nextSibling:a.insertBefore(l,s)})}})},so.prototype.drawShape=function(t,e,n={}){return this._eventBus.fire("render.shape",{gfx:t,element:e,attrs:n})},so.prototype.getShapePath=function(t){return this._eventBus.fire("render.getShapePath",t)},so.prototype.drawConnection=function(t,e,n={}){return this._eventBus.fire("render.connection",{gfx:t,element:e,attrs:n})},so.prototype.getConnectionPath=function(t){return this._eventBus.fire("render.getConnectionPath",t)},so.prototype.update=function(t,e,n){if(e.parent){var o=this._clear(n);if(t==="shape")this.drawShape(o,e),hn(n,e.x,e.y);else if(t==="connection")this.drawConnection(o,e);else throw Error("unknown type: "+t);e.hidden?U(n,"display","none"):U(n,"display","block")}},so.prototype.remove=function(t){var e=this._elementRegistry.getGraphics(t);Ne(e.parentNode)};vS={__depends__:[nS],__init__:["canvas"],canvas:["type",kt],elementRegistry:["type",ao],elementFactory:["type",sr],eventBus:["type",Xn],graphicsFactory:["type",so]};ai.prototype.get=function(t,e){return this._injector.get(t,e)},ai.prototype.invoke=function(t,e,n){return this._injector.invoke(t,e,n)},ai.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},ai.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};i0='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',a0={verticalAlign:"middle"},s0={color:"#404040"},TS={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},CS={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},BS={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},RS='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+i0+'</a><span>Web-based tooling for BPMN, DMN and forms powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>';kl=5,Dy="djs-outline-hidden";dt(Ce,ai),Ce.prototype.importXML=async function(t,e){let n=this;function o(i){return n.get("eventBus").createEvent(i)}let r=[];try{t=this._emit("import.parse.start",{xml:t})||t;let i;try{i=await this._moddle.fromXML(t,"bpmn:Definitions")}catch(d){throw this._emit("import.parse.complete",{error:d}),d}let a=i.rootElement,s=i.references,c=i.warnings,l=i.elementsById;r=r.concat(c),a=this._emit("import.parse.complete",o({error:null,definitions:a,elementsById:l,references:s,warnings:r}))||a;let p=await this.importDefinitions(a,e);return r=r.concat(p.warnings),this._emit("import.done",{error:null,warnings:r}),{warnings:r}}catch(i){let a=i;throw r=r.concat(a.warnings||[]),wl(a,r),a=PS(a),this._emit("import.done",{error:a,warnings:a.warnings}),a}},Ce.prototype.importDefinitions=async function(t,e){return this._setDefinitions(t),{warnings:(await this.open(e)).warnings}},Ce.prototype.open=async function(t){let e=this._definitions,n=t;if(!e){let r=Error("no XML imported");throw wl(r,[]),r}if(typeof t=="string"&&(n=jS(e,t),!n)){let r=Error("BPMNDiagram <"+t+"> not found");throw wl(r,[]),r}try{this.clear()}catch(r){throw wl(r,[]),r}let{warnings:o}=await _S(this,e,n);return{warnings:o}},Ce.prototype.saveXML=async function(t){t||={};let e=this._definitions,n,o;try{if(!e)throw Error("no definitions loaded");e=this._emit("saveXML.start",{definitions:e})||e,o=(await this._moddle.toXML(e,t)).xml,o=this._emit("saveXML.serialized",{xml:o})||o}catch(i){n=i}let r=n?{error:n}:{xml:o};if(this._emit("saveXML.done",r),n)throw n;return r},Ce.prototype.saveSVG=async function(){this._emit("saveSVG.start");let t,e;try{let n=this.get("canvas"),o=n.getActiveLayer(),r=le(":scope > defs",n._svg),i=um(o),a=r?"<defs>"+um(r)+"</defs>":"",s=n.getContainer();_e(s).add(Dy);let c;try{c=o.getBBox()}finally{_e(s).remove(Dy)}let l=c.x-kl,p=c.y-kl,d=c.width+kl*2,m=c.height+kl*2;t='<?xml version="1.0" encoding="utf-8"?>\n<!-- created with bpmn-js / http://bpmn.io -->\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+d+'" height="'+m+'" viewBox="'+l+" "+p+" "+d+" "+m+'" version="1.1">'+a+i+"</svg>"}catch(n){e=n}if(this._emit("saveSVG.done",{error:e,svg:t}),e)throw e;return{svg:t}},Ce.prototype._setDefinitions=function(t){this._definitions=t},Ce.prototype.getModules=function(){return this._modules},Ce.prototype.clear=function(){this.getDefinitions()&&ai.prototype.clear.call(this)},Ce.prototype.destroy=function(){ai.prototype.destroy.call(this),Vo(this._container)},Ce.prototype.on=function(t,e,n,o){return this.get("eventBus").on(t,e,n,o)},Ce.prototype.off=function(t,e){this.get("eventBus").off(t,e)},Ce.prototype.attachTo=function(t){if(!t)throw Error("parentNode required");this.detach(),t.get&&t.constructor.prototype.jquery&&(t=t.get(0)),typeof t=="string"&&(t=le(t)),t.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},Ce.prototype.getDefinitions=function(){return this._definitions},Ce.prototype.detach=function(){let t=this._container,e=t.parentNode;e&&(this._emit("detach",{}),e.removeChild(t))},Ce.prototype._init=function(t,e,n){let o=n.modules||this.getModules(n),r=n.additionalModules||[],i=[{bpmnjs:["value",this],moddle:["value",e]}],a=[].concat(i,o,r),s=P(bo(n,["additionalModules"]),{canvas:P({},n.canvas,{container:t}),modules:a});ai.call(this,s),n&&n.container&&this.attachTo(n.container)},Ce.prototype._emit=function(t,e){return this.get("eventBus").fire(t,e)},Ce.prototype._createContainer=function(t){let e=ge('<div class="bjs-container bio-theme-parent"></div>');return Tn(e,{width:jy(t.width),height:jy(t.height),position:t.position}),e},Ce.prototype._createModdle=function(t){let e=P({},this._moddleExtensions,t.moddleExtensions);return new Zi(e)},Ce.prototype._modules=[];DS={width:"100%",height:"100%",position:"relative"};zS=new Go,OS=10,_l=3,LS=1.5,Rl=10,NS=4,Na=.95,IS=1,HS=.25;dt(Ui,qn),Ui.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],Ui.prototype.canRender=function(t){return y(t,"bpmn:BaseElement")},Ui.prototype.drawShape=function(t,e,n={}){var{type:o}=e;return this._renderer(o)(t,e,n)},Ui.prototype.drawConnection=function(t,e,n={}){var{type:o}=e;return this._renderer(o)(t,e,n)},Ui.prototype.getShapePath=function(t){return Bt(t)?Ns(t,NS):y(t,"bpmn:Event")?yl(t):y(t,"bpmn:Activity")?Ns(t,Rl):y(t,"bpmn:Gateway")?wy(t):_y(t)};FS=0,WS={width:150,height:50};$y=null;zy="\xAD";Ml.prototype.createText=function(t,e){return this.layoutText(t,e).element},Ml.prototype.getDimensions=function(t,e){return this.layoutText(t,e).dimensions},Ml.prototype.layoutText=function(t,e){for(var n=P({},this._config.size,e.box),o=P({},this._config.style,e.style),r=GS(e.align||this._config.align),i=VS(e.padding===void 0?this._config.padding:e.padding),a=e.fitBox||!1,s=QS(o),c=t.split(/\u00AD?\r?\n/),l=[],p=n.width-i.left-i.right;c.length;)l.push(XS(c,p,o));r.vertical==="middle"&&(i.top=i.bottom=0);var d=Pn(l,function(f,g,x){return f+(s||g.height)},0)+i.top+i.bottom,m=Pn(l,function(f,g,x){return g.width>f?g.width:f},0),u=i.top;r.vertical==="middle"&&(u+=(n.height-d)/2),u-=(s||l[0].height)/4;var h=et("text");return U(h,o),R(l,function(f){var g;switch(u+=s||f.height,r.horizontal){case"left":g=i.left;break;case"right":g=(a?m:p)-i.right-f.width;break;default:g=Math.max(((a?m:p)-f.width)/2+i.left,0)}var x=et("tspan");U(x,{x:g,y:u}),x.textContent=f.text,it(h,x)}),{dimensions:{width:m,height:d},element:h}};t3=12,e3=1.2,n3=40;l0.$inject=["config.textRenderer"];r3=/\{([^{}]+)\}/g,i3=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;c3={__init__:["bpmnRenderer"],bpmnRenderer:["type",Ui],textRenderer:["type",l0],pathMap:["type",o3]};Ks={translate:["value",l3]};Br.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"],Br.prototype.add=function(t,e,n){var o,r,i;if(y(e,"bpmndi:BPMNPlane")){var a=y(t,"bpmn:SubProcess")?{id:t.id+"_plane"}:{};o=this._elementFactory.createRoot(El(t,e,a)),this._canvas.addRootElement(o)}else if(y(e,"bpmndi:BPMNShape")){var s=!Ot(t,e),c=m3(t);r=n&&(n.hidden||n.collapsed);var l=e.bounds;o=this._elementFactory.createShape(El(t,e,{collapsed:s,hidden:r,x:Math.round(l.x),y:Math.round(l.y),width:Math.round(l.width),height:Math.round(l.height),isFrame:c})),y(t,"bpmn:BoundaryEvent")&&this._attachBoundary(t,o),y(t,"bpmn:Lane")&&(i=0),y(t,"bpmn:DataStoreReference")&&(d3(n,vt(l))||(n=this._canvas.findRoot(n))),this._canvas.addShape(o,n,i)}else if(y(e,"bpmndi:BPMNEdge")){var p=this._getSource(t),d=this._getTarget(t);r=n&&(n.hidden||n.collapsed),o=this._elementFactory.createConnection(El(t,e,{hidden:r,source:p,target:d,waypoints:p3(e,p,d)})),y(t,"bpmn:DataAssociation")&&(n=this._canvas.findRoot(n)),this._canvas.addConnection(o,n,i)}else throw Error("unknown di ".concat(Sn(e)," for element ").concat(Sn(t)));return Fo(t)&&Dn(o)&&this.addLabel(t,e,o),this._eventBus.fire("bpmnElement.added",{element:o}),o},Br.prototype._attachBoundary=function(t,e){var n=t.attachedToRef;if(!n)throw Error("missing ".concat(Sn(t),"#attachedToRef"));var o=this._elementRegistry.get(n.id),r=o&&o.attachers;if(!o)throw Oy(t,n,"attachedToRef");e.host=o,r||(o.attachers=r=[]),r.indexOf(e)===-1&&r.push(e)},Br.prototype.addLabel=function(t,e,n){var o=Hg(e,n),r=Dn(n),i;return r&&(o=this._textRenderer.getExternalLabelBounds(o,r)),i=this._elementFactory.createLabel(El(t,e,{id:t.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!Dn(n),x:Math.round(o.x),y:Math.round(o.y),width:Math.round(o.width),height:Math.round(o.height)})),this._canvas.addShape(i,n.parent)},Br.prototype._getConnectedElement=function(t,e){var n,o,r=t.$type;if(o=t[e+"Ref"],e==="source"&&r==="bpmn:DataInputAssociation"&&(o&&=o[0]),(e==="source"&&r==="bpmn:DataOutputAssociation"||e==="target"&&r==="bpmn:DataInputAssociation")&&(o=t.$parent),n=o&&this._getElement(o),n)return n;throw o?Oy(t,o,e+"Ref"):Error("".concat(Sn(t),"#").concat(e," Ref not specified"))},Br.prototype._getSource=function(t){return this._getConnectedElement(t,"source")},Br.prototype._getTarget=function(t){return this._getConnectedElement(t,"target")},Br.prototype._getElement=function(t){return this._elementRegistry.get(t.id)};u3={__depends__:[c3,{__depends__:[Ks],bpmnImporter:["type",Br]}]};Xi.prototype.next=function(){return this._prefix+ ++this._counter};h3=new Xi("ov"),f3=500;un.$inject=["config.overlays","eventBus","canvas","elementRegistry"],un.prototype.get=function(t){if(yn(t)&&(t={id:t}),yn(t.element)&&(t.element=this._elementRegistry.get(t.element)),t.element){var e=this._getOverlayContainer(t.element,!0);return e?t.type?Dt(e.overlays,Yr({type:t.type})):e.overlays.slice():[]}return t.type?Dt(this._overlays,Yr({type:t.type})):t.id?this._overlays[t.id]:null},un.prototype.add=function(t,e,n){if(Se(e)&&(n=e,e=null),t.id||(t=this._elementRegistry.get(t)),!n.position)throw Error("must specifiy overlay position");if(!n.html)throw Error("must specifiy overlay html");if(!t)throw Error("invalid element specified");var o=this._ids.next();return n=P({},this._overlayDefaults,n,{id:o,type:e,element:t,html:n.html}),this._addOverlay(n),o},un.prototype.remove=function(t){var e=this.get(t)||[];bt(e)||(e=[e]);var n=this;R(e,function(o){var r=n._getOverlayContainer(o.element,!0);if(o&&(Vo(o.html),Vo(o.htmlContainer),delete o.htmlContainer,delete o.element,delete n._overlays[o.id]),r){var i=r.overlays.indexOf(o);i!==-1&&r.overlays.splice(i,1)}})},un.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"},un.prototype.show=function(){Sl(this._overlayRoot)},un.prototype.hide=function(){Sl(this._overlayRoot,!1)},un.prototype.clear=function(){this._overlays={},this._overlayContainers=[],Gs(this._overlayRoot)},un.prototype._updateOverlayContainer=function(t){var e=t.element,n=t.html,o=e.x,r=e.y;if(e.waypoints){var i=je(e);o=i.x,r=i.y}Ly(n,o,r),sn(t.html,"data-container-id",e.id)},un.prototype._updateOverlay=function(t){var e=t.position,n=t.htmlContainer,o=t.element,r=e.left,i=e.top;if(e.right!==void 0){var a=o.waypoints?je(o).width:o.width;r=e.right*-1+a}if(e.bottom!==void 0){var s=o.waypoints?je(o).height:o.height;i=e.bottom*-1+s}Ly(n,r||0,i||0),this._updateOverlayVisibilty(t,this._canvas.viewbox())},un.prototype._createOverlayContainer=function(t){var e=ge('<div class="djs-overlays" />');Tn(e,{position:"absolute"}),this._overlayRoot.appendChild(e);var n={html:e,element:t,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},un.prototype._updateRoot=function(t){var e=t.scale||1,n="matrix("+[e,0,0,e,-1*t.x*e,-1*t.y*e].join(",")+")";Ny(this._overlayRoot,n)},un.prototype._getOverlayContainer=function(t,e){var n=ce(this._overlayContainers,function(o){return o.element===t});return!n&&!e?this._createOverlayContainer(t):n},un.prototype._addOverlay=function(t){var e=t.id,n=t.element,o=t.html,r,i;o.get&&o.constructor.prototype.jquery&&(o=o.get(0)),yn(o)&&(o=ge(o)),i=this._getOverlayContainer(n),r=ge('<div class="djs-overlay" data-overlay-id="'+e+'">'),Tn(r,{position:"absolute"}),r.appendChild(o),t.type&&_e(r).add("djs-overlay-"+t.type);var a=this._canvas.findRoot(n),s=this._canvas.getRootElement();Sl(r,a===s),t.htmlContainer=r,i.overlays.push(t),i.html.appendChild(r),this._overlays[e]=t,this._updateOverlay(t),this._updateOverlayVisibilty(t,this._canvas.viewbox())},un.prototype._updateOverlayVisibilty=function(t,e){var n=t.show,o=this._canvas.findRoot(t.element),r=n&&n.minZoom,i=n&&n.maxZoom,a=t.htmlContainer,s=this._canvas.getRootElement(),c=!0;o===s?n&&(Le(r)&&r>e.scale||Le(i)&&i<e.scale)&&(c=!1):c=!1,Sl(a,c),this._updateOverlayScale(t,e)},un.prototype._updateOverlayScale=function(t,e){var n=t.scale,o,r,i=t.htmlContainer,a,s="";n!==!0&&(n===!1?(o=1,r=1):(o=n.min,r=n.max),Le(o)&&e.scale<o&&(a=(1/e.scale||1)*o),Le(r)&&e.scale>r&&(a=(1/e.scale||1)*r)),Le(a)&&(s="scale("+a+","+a+")"),Ny(i,s)},un.prototype._updateOverlaysVisibilty=function(t){var e=this;R(this._overlays,function(n){e._updateOverlayVisibilty(n,t)})},un.prototype._init=function(){var t=this._eventBus,e=this;function n(o){e._updateRoot(o),e._updateOverlaysVisibilty(o),e.show()}t.on("canvas.viewbox.changing",function(o){e.hide()}),t.on("canvas.viewbox.changed",function(o){n(o.viewbox)}),t.on(["shape.remove","connection.remove"],function(o){var r=o.element,i=e.get({element:r});R(i,function(c){e.remove(c.id)});var a=e._getOverlayContainer(r);if(a){Vo(a.html);var s=e._overlayContainers.indexOf(a);s!==-1&&e._overlayContainers.splice(s,1)}}),t.on("element.changed",f3,function(o){var r=o.element,i=e._getOverlayContainer(r,!0);i&&(R(i.overlays,function(a){e._updateOverlay(a)}),e._updateOverlayContainer(i))}),t.on("element.marker.update",function(o){var r=e._getOverlayContainer(o.element,!0);r&&_e(r.html)[o.add?"add":"remove"](o.marker)}),t.on("root.set",function(){e._updateOverlaysVisibilty(e._canvas.viewbox())}),t.on("diagram.clear",this.clear,this)};Xs={__init__:["overlays"],overlays:["type",un]};p0.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];jl={__init__:["changeSupport"],changeSupport:["type",p0]};dt(wm,q),wm.$inject=["canvas","injector"];y3={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",wm]};v3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};b3="bjs-breadcrumbs-shown";d0.$inject=["eventBus","elementRegistry","canvas"];m0.$inject=["eventBus","canvas"];Iy={x:180,y:160};qi.prototype._handleImport=function(t){if(t.diagrams){var e=this;this._definitions=t,this._processToDiagramMap={},t.diagrams.forEach(function(n){n.plane&&n.plane.bpmnElement&&(e._processToDiagramMap[n.plane.bpmnElement.id]=n)}),t.diagrams.filter(n=>n.plane).flatMap(n=>e._createNewDiagrams(n.plane)).forEach(function(n){e._movePlaneElementsToOrigin(n.plane)})}},qi.prototype._createNewDiagrams=function(t){var e=this,n=[],o=[];t.get("planeElement").forEach(function(i){var a=i.bpmnElement;if(a){var s=a.$parent;y(a,"bpmn:SubProcess")&&!i.isExpanded&&n.push(a),_3(a,t)&&o.push({diElement:i,parent:s})}});var r=[];return n.forEach(function(i){if(!e._processToDiagramMap[i.id]){var a=e._createDiagram(i);e._processToDiagramMap[i.id]=a,r.push(a)}}),o.forEach(function(i){for(var a=i.diElement,s=i.parent;s&&n.indexOf(s)===-1;)s=s.$parent;if(s){var c=e._processToDiagramMap[s.id];e._moveToDiPlane(a,c.plane)}}),r},qi.prototype._movePlaneElementsToOrigin=function(t){var e=t.get("planeElement"),n=w3(t),o={x:n.x-Iy.x,y:n.y-Iy.y};e.forEach(function(r){r.waypoint?r.waypoint.forEach(function(i){i.x-=o.x,i.y-=o.y}):r.bounds&&(r.bounds.x=r.bounds.x-o.x,r.bounds.y=r.bounds.y-o.y)})},qi.prototype._moveToDiPlane=function(t,e){var n=u0(t).plane.get("planeElement");n.splice(n.indexOf(t),1),e.get("planeElement").push(t)},qi.prototype._createDiagram=function(t){var e=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:t}),n=this._moddle.create("bpmndi:BPMNDiagram",{plane:e});return e.$parent=n,e.bpmnElement=t,n.$parent=this._definitions,this._definitions.diagrams.push(n),n},qi.$inject=["eventBus","moddle"];Tl=250,E3='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg>',S3="bjs-drilldown-empty";dt(ii,q),ii.prototype._updateDrilldownOverlay=function(t){var e=this._canvas;if(t){var n=e.findRoot(t);n&&this._updateOverlayVisibility(n)}},ii.prototype._canDrillDown=function(t){var e=this._canvas;return y(t,"bpmn:SubProcess")&&e.findRoot(xo(t))},ii.prototype._updateOverlayVisibility=function(t){var e=this._overlays,n=Y(t),o=e.get({element:n.id,type:"drilldown"})[0];if(o){var r=n&&n.get("flowElements")&&n.get("flowElements").length;_e(o.html).toggle(S3,!r)}},ii.prototype._addOverlay=function(t){var e=this._canvas,n=this._overlays,o=Y(t);n.get({element:t,type:"drilldown"}).length&&this._removeOverlay(t);var r=ge('<button type="button" class="bjs-drilldown">'+E3+"</button>"),i=o.get("name")||o.get("id"),a=this._translate("Open {element}",{element:i});r.setAttribute("title",a),r.addEventListener("click",function(){e.setRootElement(e.findRoot(xo(t)))}),n.add(t,"drilldown",{position:{bottom:-7,right:-8},html:r}),this._updateOverlayVisibility(t)},ii.prototype._removeOverlay=function(t){this._overlays.remove({element:t,type:"drilldown"})},ii.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];T3={__depends__:[Xs,jl,y3],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",d0],drilldownCentering:["type",m0],drilldownOverlayBehavior:["type",ii],subprocessCompatibility:["type",qi]};Fy=500;f0.$inject=["eventBus","elementRegistry","styles"];Zs={__init__:["interactionEvents"],interactionEvents:["type",f0]};Ia.$inject=["eventBus","canvas"],Ia.prototype.deselect=function(t){if(this._selectedElements.has(t)){var e=this.get();this._selectedElements.delete(t),this._eventBus.fire("selection.changed",{oldSelection:e,newSelection:this.get()})}},Ia.prototype.get=function(){return Array.from(this._selectedElements)},Ia.prototype.isSelected=function(t){return this._selectedElements.has(t)},Ia.prototype.select=function(t,e){var n=this.get();bt(t)||(t=t?[t]:[]);var o=this._canvas,r=o.getRootElement();t=t.filter(function(i){return r===o.findRoot(i)}),e?R(t,i=>{this._selectedElements.add(i)}):this._selectedElements=new Set(t),this._eventBus.fire("selection.changed",{oldSelection:n,newSelection:this.get()})};Wy="hover",Gy="selected";g0.$inject=["canvas","eventBus"];y0.$inject=["eventBus","selection","canvas","elementRegistry"];Yn={__init__:["selectionVisuals","selectionBehavior"],__depends__:[Zs],selection:["type",Ia],selectionVisuals:["type",g0],selectionBehavior:["type",y0]};dt(Rr,Ce),Rr.prototype._modules=[u3,T3,Xs,Yn,Ks],Rr.prototype._moddleExtensions={}});var zk={};Ii(zk,{default:()=>dr});function Bc(t){Ce.call(this,t),this.on("import.parse.complete",function(e){e.error||this._collectIds(e.definitions,e.elementsById)},this),this.on("diagram.destroy",function(){this.get("moddle").ids.clear()},this)}function sx(t,e,n){this._selectionWasVisible=!1;let o=Ea(()=>{this._selectionWasVisible=r()},M3);t.on("canvas.viewbox.changed",o),t.on("selection.changed",o),t.on("diagram.destroy",()=>{o.cancel()}),t.on("canvas.resized",()=>{var i=n.get();if(i.length&&this._selectionWasVisible&&!r()){var a=e.getRootElement();e.scrollToElement(i.concat(a))}});function r(){var i=n.get();if(!i.length)return!1;var a=je(i),s=e.viewbox(),c=ht(a),l=ht(s);return c.left>=l.left&&c.right<=l.right&&c.top>=l.top&&c.bottom<=l.bottom}this._flush=o.flush}function jn(t,e){var n=this;this._config=t||={},this._eventBus=e,this._keydownHandler=this._keydownHandler.bind(this),this._keyupHandler=this._keyupHandler.bind(this),e.on("diagram.destroy",function(){n._fire("destroy"),n.unbind()}),t.bindTo&&console.error("unsupported configuration <keyboard.bindTo>",Error(lx));var o=t&&t.bind!==!1;e.on("canvas.init",function(r){n._target=r.svg,o&&n.bind(),n._fire("init")})}function cs(t,e){var n=this;t.on("editorActions.init",D3,function(o){var r=o.editorActions;n.registerBindings(e,r)})}function px(t,e,n){var o=this;this._config=P({},j3,t||{}),e.addListener(r);function r(i){var a=i.keyEvent,s=o._config;if(e.isCmd(a)&&e.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],a)){var c=e.isShift(a)?s.moveSpeedAccelerated:s.moveSpeed,l;switch(a.key){case"ArrowLeft":case"Left":l="left";break;case"ArrowUp":case"Up":l="up";break;case"ArrowRight":case"Right":l="right";break;case"ArrowDown":case"Down":l="down"}return o.moveCanvas({speed:c,direction:l}),!0}}this.moveCanvas=function(i){var a=0,s=0,c=i.speed/Math.min(Math.sqrt(n.viewbox().scale),1);switch(i.direction){case"left":a=c;break;case"up":s=c;break;case"right":a=-c;break;case"down":s=-c}n.scroll({dx:a,dy:s})}}function Qp(t){var e=_e(document.body);e.removeMatching($3),t&&e.add("djs-cursor-"+t)}function mx(){Qp(null)}function ux(t,e){e||="element.click";function n(){return!1}return t.once(e,z3,n),function(){t.off(e,n)}}function hx(t,e){var n;function o(s){return a(s.originalEvent)}t.on("canvas.focus.changed",function(s){s.focused?t.on("element.mousedown",500,o):t.off("element.mousedown",o)}),t.on("diagram.destroy",function(){n&&i()});function r(s){var c=n.start,l=n.button,p=li(s),d=ko(p,c);if(!n.dragging&&L3(d)>O3&&(n.dragging=!0,l===0&&ux(t),Qp("grab")),n.dragging){var m=n.last||n.start;d=ko(p,m),e.scroll({dx:d.x,dy:d.y}),n.last=p}s.preventDefault()}function i(s){Ct.unbind(document,"mousemove",r),Ct.unbind(document,"mouseup",i),n=null,mx()}function a(s){if(!cr(s.target,".djs-draggable")){var c=s.button;if(!(c>=2||s.ctrlKey||s.shiftKey||s.altKey))return n={button:c,start:li(s)},Ct.bind(document,"mousemove",r),Ct.bind(document,"mouseup",i),!0}}this.isActive=function(){return!!n}}function L3(t){return Math.sqrt(t.x**2+t.y**2)}function Qm(t){return Math.log(t)/Math.log(10)}function b0(t,e){var n=Qm(t.min),o=Qm(t.max);return(Math.abs(n)+Math.abs(o))/e}function N3(t,e){return Math.max(t.min,Math.min(t.max,e))}function lr(t,e,n){t||={},this._enabled=!1,this._canvas=n,this._container=n._container,this._handleWheel=bn(this._handleWheel,this),this._totalDelta=0,this._scale=t.scale||F3;var o=this;e.on("canvas.mouseover",function(){o._init(t.enabled!==!1)}),e.on("canvas.mouseout",function(){o._init(!1)})}function sc(t){Rr.call(this,t)}function Rm(t){return t&&t[t.length-1]}function k0(t){return t.y}function w0(t){return t.x}function es(t,e){this._modeling=t,this._rules=e}function ns(t){this._scheduled={},t.on("diagram.destroy",()=>{Object.keys(this._scheduled).forEach(e=>{this.cancel(e)})})}function U3(){let t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),t}function Xe(t,e,n,o){this._canvas=t,this._elementRegistry=e,this._eventBus=n,this._scheduler=o,this._current=null,this._init()}function Z3(t,e){var n=_e(t);e=bt(e)?e:e.split(/\s+/g),e.forEach(function(o){n.add(o)})}function J3(t){return t.waypoints[t.waypoints.length-1]}function Q3(t,e){return t=bt(t)?t:[t],e=bt(e)?e:[e],t.length===e.length&&tr(t,function(n){return e.includes(n)})}function Lr(t,e){for(var n in e)t[n]=e[n];return t}function vh(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function wx(t,e,n){var o,r,i,a={};for(i in e)i=="key"?o=e[i]:i=="ref"?r=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?td.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)a[i]===void 0&&(a[i]=t.defaultProps[i]);return ap(t,a,o,r,null)}function ap(t,e,n,o,r){var i={type:t,props:e,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++vx,__i:-1,__u:0};return r==null&&Pe.vnode!=null&&Pe.vnode(i),i}function nd(t){return t.children}function sp(t,e){this.props=t,this.context=e}function aa(t,e){if(e==null)return t.__?aa(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?aa(t):null}function e6(t){if(t.__P&&t.__d){var e=t.__v,n=e.__e,o=[],r=[],i=Lr({},e);i.__v=e.__v+1,Pe.vnode&&Pe.vnode(i),bh(t.__P,i,e,t.__n,t.__P.namespaceURI,32&e.__u?[n]:null,o,n??aa(e),!!(32&e.__u),r),i.__v=e.__v,i.__.__k[i.__i]=i,Cx(o,i,r),e.__e=e.__=null,i.__e!=n&&_x(i)}}function _x(t){if((t=t.__)!=null&&t.__c!=null)return t.__e=t.__c.base=null,t.__k.some(function(e){if(e!=null&&e.__e!=null)return t.__e=t.__c.base=e.__e}),_x(t)}function S0(t){(!t.__d&&(t.__d=!0)&&wi.push(t)&&!Hp.__r++||E0!=Pe.debounceRendering)&&((E0=Pe.debounceRendering)||bx)(Hp)}function Hp(){try{for(var t,e=1;wi.length;)wi.length>e&&wi.sort(xx),t=wi.shift(),e=wi.length,e6(t)}finally{wi.length=Hp.__r=0}}function Ex(t,e,n,o,r,i,a,s,c,l,p){var d,m,u,h,f,g,x=o&&o.__k||Ip,k=e.length;for(c=n6(n,e,x,c,k),d=0;d<k;d++)(u=n.__k[d])!=null&&(m=u.__i!=-1&&x[u.__i]||Np,u.__i=d,g=bh(t,u,m,r,i,a,s,c,l,p),h=u.__e,u.ref&&m.ref!=u.ref&&(m.ref&&xh(m.ref,null,u),p.push(u.ref,u.__c||h,u)),f==null&&h!=null&&(f=h),4&u.__u?(c=Sx(u,c,t),m.__e&&(m.__e=null)):typeof u.type=="function"&&g!==void 0?c=g:h&&(c=h.nextSibling),u.__u&=-7);return n.__e=f,c}function n6(t,e,n,o,r){var i,a,s,c,l,p=n.length,d=p,m=0;for(t.__k=Array(r),i=0;i<r;i++)(a=e[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?a=t.__k[i]=ap(null,a,null,null,null):ed(a)?a=t.__k[i]=ap(nd,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?a=t.__k[i]=ap(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):t.__k[i]=a,c=i+m,a.__=t,a.__b=t.__b+1,s=null,(l=a.__i=o6(a,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(r>p?m--:r<p&&m++),typeof a.type!="function"&&(a.__u|=4)):l!=c&&(l==c-1?m--:l==c+1?m++:(l>c?m--:m++,a.__u|=4))):t.__k[i]=null;if(d)for(i=0;i<p;i++)(s=n[i])!=null&&!(2&s.__u)&&(s.__e==o&&(o=aa(s)),Rx(s,s));return o}function Sx(t,e,n){var o,r;if(typeof t.type=="function"){for(o=t.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=t,e=Sx(o[r],e,n));return e}t.__e!=e&&(e&&t.type&&!e.parentNode&&(e=aa(t)),e=n.insertBefore(t.__e,e||null));do e&&=e.nextSibling;while(e!=null&&e.nodeType==8);return e}function o6(t,e,n,o){var r,i,a,s=t.key,c=t.type,l=e[n],p=l!=null&&!(2&l.__u);if(l===null&&s==null||p&&s==l.key&&c==l.type)return n;if(o>+!!p){for(r=n-1,i=n+1;r>=0||i<e.length;)if((l=e[a=r>=0?r--:i++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return a}return-1}function T0(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||t6.test(e)?n:n+"px"}function Ll(t,e,n,o,r){var i,a;t:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof o=="string"&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||T0(t.style,e,"");if(n)for(e in n)o&&n[e]==o[e]||T0(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")i=e!=(e=e.replace(kx,"$1")),a=e.toLowerCase(),e=a in t||e=="onFocusOut"||e=="onFocusIn"?a.slice(2):e.slice(2),t.l||={},t.l[e+i]=n,n?o?n[Rc]=o[Rc]:(n[Rc]=yh,t.addEventListener(e,i?eu:tu,i)):t.removeEventListener(e,i?eu:tu,i);else{if(r=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break t}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function C0(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e[ip]==null)e[ip]=yh++;else if(e[ip]<n[Rc])return;return n(Pe.event?Pe.event(e):e)}}}function bh(t,e,n,o,r,i,a,s,c,l){var p,d,m,u,h,f,g,x,k,_,w,S,T,B,M,z,H=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[s=e.__e=n.__e]),(p=Pe.__b)&&p(e);t:if(typeof H=="function"){d=a.length;try{if(k=e.props,_=H.prototype&&H.prototype.render,w=(p=H.contextType)&&o[p.__c],S=p?w?w.props.value:p.__:o,n.__c?x=(m=e.__c=n.__c).__=m.__E:(_?e.__c=m=new H(k,S):(e.__c=m=new sp(k,S),m.constructor=H,m.render=i6),w&&w.sub(m),m.state||(m.state={}),m.__n=o,u=m.__d=!0,m.__h=[],m._sb=[]),_&&m.__s==null&&(m.__s=m.state),_&&H.getDerivedStateFromProps!=null&&(m.__s==m.state&&(m.__s=Lr({},m.__s)),Lr(m.__s,H.getDerivedStateFromProps(k,m.__s))),h=m.props,f=m.state,m.__v=e,u)_&&H.getDerivedStateFromProps==null&&m.componentWillMount!=null&&m.componentWillMount(),_&&m.componentDidMount!=null&&m.__h.push(m.componentDidMount);else{if(_&&H.getDerivedStateFromProps==null&&k!==h&&m.componentWillReceiveProps!=null&&m.componentWillReceiveProps(k,S),e.__v==n.__v||!m.__e&&m.shouldComponentUpdate!=null&&m.shouldComponentUpdate(k,m.__s,S)===!1){e.__v!=n.__v&&(m.props=k,m.state=m.__s,m.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(N){N&&(N.__=e)}),Ip.push.apply(m.__h,m._sb),m._sb=[],m.__h.length&&a.push(m),s=aa(n);break t}m.componentWillUpdate!=null&&m.componentWillUpdate(k,m.__s,S),_&&m.componentDidUpdate!=null&&m.__h.push(function(){m.componentDidUpdate(h,f,g)})}if(m.context=S,m.props=k,m.__P=t,m.__e=!1,T=Pe.__r,B=0,_)m.state=m.__s,m.__d=!1,T&&T(e),p=m.render(m.props,m.state,m.context),Ip.push.apply(m.__h,m._sb),m._sb=[];else do m.__d=!1,T&&T(e),p=m.render(m.props,m.state,m.context),m.state=m.__s;while(m.__d&&++B<25);m.state=m.__s,m.getChildContext!=null&&(o=Lr(Lr({},o),m.getChildContext())),_&&!u&&m.getSnapshotBeforeUpdate!=null&&(g=m.getSnapshotBeforeUpdate(h,f)),M=p!=null&&p.type===nd&&p.key==null?Bx(p.props.children):p,s=Ex(t,ed(M)?M:[M],e,n,o,r,i,a,s,c,l),m.base=e.__e,e.__u&=-161,m.__h.length&&a.push(m),x&&(m.__E=m.__=null)}catch(N){if(a.length=d,e.__v=null,c||i!=null){if(N.then){for(e.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i!=null&&(i[i.indexOf(s)]=null),e.__e=s}else if(i!=null)for(z=i.length;z--;)vh(i[z])}else e.__e=n.__e;e.__k??=n.__k||[],N.then||Tx(e),Pe.__e(N,e,n)}}else i==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):s=e.__e=r6(n.__e,e,n,o,r,i,a,c,l);return(p=Pe.diffed)&&p(e),128&e.__u?void 0:s}function Tx(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(Tx))}function Cx(t,e,n){for(var o=0;o<n.length;o++)xh(n[o],n[++o],n[++o]);Pe.__c&&Pe.__c(e,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(i){i.call(r)})}catch(i){Pe.__e(i,r.__v)}})}function Bx(t){return typeof t!="object"||!t||t.__b>0?t:ed(t)?t.map(Bx):t.constructor===void 0?Lr({},t):null}function r6(t,e,n,o,r,i,a,s,c){var l,p,d,m,u,h,f,g=n.props||Np,x=e.props,k=e.type;if(k=="svg"?r="http://www.w3.org/2000/svg":k=="math"?r="http://www.w3.org/1998/Math/MathML":r||="http://www.w3.org/1999/xhtml",i!=null){for(l=0;l<i.length;l++)if((u=i[l])&&"setAttribute"in u==!!k&&(k?u.localName==k:u.nodeType==3)){t=u,i[l]=null;break}}if(t==null){if(k==null)return document.createTextNode(x);t=document.createElementNS(r,k,x.is&&x),s&&=(Pe.__m&&Pe.__m(e,i),!1),i=null}if(k==null)g===x||s&&t.data==x||(t.data=x);else{if(i=k=="textarea"&&x.defaultValue!=null?null:i&&td.call(t.childNodes),!s&&i!=null)for(g={},l=0;l<t.attributes.length;l++)g[(u=t.attributes[l]).name]=u.value;for(l in g)u=g[l],l=="dangerouslySetInnerHTML"?d=u:l=="children"||l in x||l=="value"&&"defaultValue"in x||l=="checked"&&"defaultChecked"in x||Ll(t,l,null,u,r);for(l in x)u=x[l],l=="children"?m=u:l=="dangerouslySetInnerHTML"?p=u:l=="value"?h=u:l=="checked"?f=u:s&&typeof u!="function"||g[l]===u||Ll(t,l,u,g[l],r);if(p)s||d&&(p.__html==d.__html||p.__html==t.innerHTML)||(t.innerHTML=p.__html),e.__k=[];else if(d&&(t.innerHTML=""),Ex(e.type=="template"?t.content:t,ed(m)?m:[m],e,n,o,k=="foreignObject"?"http://www.w3.org/1999/xhtml":r,i,a,i?i[0]:n.__k&&aa(n,0),s,c),i!=null)for(l=i.length;l--;)vh(i[l]);s&&k!="textarea"||(l="value",k=="progress"&&h==null?t.removeAttribute("value"):h!=null&&(h!==t[l]||k=="progress"&&!h||k=="option"&&h!=g[l])&&Ll(t,l,h,g[l],r),l="checked",f!=null&&f!=t[l]&&Ll(t,l,f,g[l],r))}return t}function xh(t,e,n){try{if(typeof t=="function"){var o=typeof t.__u=="function";o&&t.__u(),o&&e==null||(t.__u=t(e))}else t.current=e}catch(r){Pe.__e(r,n)}}function Rx(t,e,n){var o,r;if(Pe.unmount&&Pe.unmount(t),(o=t.ref)&&(o.current&&o.current!=t.__e||xh(o,null,e)),(o=t.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(i){Pe.__e(i,e)}o.base=o.__P=o.__n=null}if(o=t.__k)for(r=0;r<o.length;r++)o[r]&&Rx(o[r],e,n||typeof t.type!="function");n||vh(t.__e),t.__c=t.__=t.__e=void 0}function i6(t,e,n){return this.constructor(t,n)}function Fp(t,e,n){var o,r,i,a;e==document&&(e=document.documentElement),Pe.__&&Pe.__(t,e),r=(o=typeof n=="function")?null:n&&n.__k||e.__k,i=[],a=[],bh(e,t=(!o&&n||e).__k=wx(nd,null,[t]),r||Np,Np,e.namespaceURI,!o&&n?[n]:r?null:e.firstChild?td.call(e.childNodes):null,i,!o&&n?n:r?r.__e:e.firstChild,o,a),Cx(i,t,a),t.props.children=null}function a6(t){var e=B0.get(this);return e||(e=new Map,B0.set(this,e)),(e=Mx(this,e.get(t)||(e.set(t,e=(function(n){for(var o,r,i=1,a="",s="",c=[0],l=function(m){i===1&&(m||(a=a.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?c.push(0,m,a):i===3&&(m||a)?(c.push(3,m,a),i=2):i===2&&a==="..."&&m?c.push(4,m,0):i===2&&a&&!m?c.push(5,0,!0,a):i>=5&&((a||!m&&i===5)&&(c.push(i,0,a,r),i=6),m&&(c.push(i,m,0,r),i=6)),a=""},p=0;p<n.length;p++){p&&(i===1&&l(),l(p));for(var d=0;d<n[p].length;d++)o=n[p][d],i===1?o==="<"?(l(),c=[c],i=3):a+=o:i===4?a==="--"&&o===">"?(i=1,a=""):a=o+a[0]:s?o===s?s="":a+=o:o==='"'||o==="'"?s=o:o===">"?(l(),i=1):i&&(o==="="?(i=5,r=a,a=""):o==="/"&&(i<5||n[p][d+1]===">")?(l(),i===3&&(c=c[0]),i=c,(c=c[0]).push(2,0,i),i=0):o===" "||o===" "||o==="\n"||o==="\r"?(l(),i=2):a+=o),i===3&&a==="!--"&&(i=4,c=c[0])}return l(),c})(t)),e),arguments,[])).length>1?e:e[0]}function od(t,e){nn.__h&&nn.__h(Ze,t,Dc||e),Dc=0;var n=Ze.__H||(Ze.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function qa(t){return Dc=1,s6(Px,t)}function s6(t,e,n){var o=od(ls++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):Px(void 0,e),function(s){var c=o.__N?o.__N[0]:o.__[0],l=o.t(c,s);c!==l&&(o.__N=[l,o.__[1]],o.__c.setState({}))}],o.__c=Ze,!Ze.__f)){var r=function(s,c,l){if(!o.__c.__H)return!0;var p=!1,d=o.__c.props!==s;if(o.__c.__H.__.some(function(u){if(u.__N){p=!0;var h=u.__[0];u.__=u.__N,u.__N=void 0,h!==u.__[0]&&(d=!0)}}),i){var m=i.call(this,s,c,l);return p?m||d:m}return!p||d};Ze.__f=!0;var i=Ze.shouldComponentUpdate,a=Ze.componentWillUpdate;Ze.componentWillUpdate=function(s,c,l){if(this.__e){var p=i;i=void 0,r(s,c,l),i=p}a&&a.call(this,s,c,l)},Ze.shouldComponentUpdate=r}return o.__N||o.__}function cp(t,e){var n=od(ls++,3);!nn.__s&&kh(n.__H,e)&&(n.__=t,n.u=e,Ze.__H.__h.push(n))}function jc(t,e){var n=od(ls++,4);!nn.__s&&kh(n.__H,e)&&(n.__=t,n.u=e,Ze.__h.push(n))}function Mc(t){return Dc=5,mr(function(){return{current:t}},[])}function mr(t,e){var n=od(ls++,7);return kh(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function co(t,e){return Dc=8,mr(function(){return t},e)}function c6(){for(var t;t=Ax.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(lp),e.__h.some(nu),e.__h=[]}catch(n){e.__h=[],nn.__e(n,t.__v)}}}function l6(t){var e,n=function(){clearTimeout(o),z0&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,35);z0&&(e=requestAnimationFrame(n))}function lp(t){var e=Ze,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Ze=e}function nu(t){var e=Ze;t.__c=t.__(),Ze=e}function kh(t,e){return!t||t.length!==e.length||e.some(function(n,o){return n!==t[o]})}function Px(t,e){return typeof e=="function"?e(t):e}function p6(t){let{navigationStack:e,setNavigationStack:n}=t,o=mr(()=>e.length<=1?[]:e.slice(0,-1).map((a,s)=>({label:a.label,onClick:()=>n(c=>c.slice(0,s+1))})),[e,n]),r=e.length>0?()=>n([]):null,i=e.length>0?e[e.length-1].label:null;return Kt(S1||(S1=Vt(['\n <div class="djs-popup-breadcrumbs">\n ',"\n ","\n ","\n </div>\n "])),r&&Kt(w1||(w1=Vt(['\n <button\n type="button"\n class="djs-popup-breadcrumbs-item djs-popup-breadcrumbs-item--back"\n title="Back"\n aria-label="Back"\n onClick=','\n >\n <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M8.03033 1.46967C8.32322 1.76256 8.32322 2.23744 8.03033 2.53033L4.56066 6L8.03033 9.46967C8.32322 9.76256 8.32322 10.2374 8.03033 10.5303C7.73744 10.8232 7.26256 10.8232 6.96967 10.5303L2.96967 6.53033C2.67678 6.23744 2.67678 5.76256 2.96967 5.46967L6.96967 1.46967C7.26256 1.17678 7.73744 1.17678 8.03033 1.46967Z" fill="currentColor"/>\n </svg>\n </button>\n '])),r),o.map((a,s)=>Kt(_1||(_1=Vt(["\n <button\n key=",'\n type="button"\n class="djs-popup-breadcrumbs-item"\n onClick=',"\n title=","\n >\n ",'\n </button>\n <span class="djs-popup-breadcrumbs-item--separator" aria-hidden="true"></span>\n '])),s,a.onClick,a.label,a.label)),i&&Kt(E1||(E1=Vt(['\n <span class="djs-popup-breadcrumbs-item djs-popup-breadcrumbs-item--current" title=',">\n ","\n </span>\n "])),i,i))}function d6(t){let{headerEntries:e,onSelect:n,selectedEntry:o,setSelectedEntry:r,title:i}=t,a=mr(()=>m6(e),[e]),s=l=>l.action&&!l.disabled,c=(l,p)=>{if(s(p))return n(l,p)};return Kt(A1||(A1=Vt(['\n <div class="djs-popup-header">\n <h3 class="djs-popup-title" title=',">","</h3>\n ","\n </div>\n "])),i,i,a.map(l=>Kt(M1||(M1=Vt(["\n <ul key=",' class="djs-popup-header-group" data-header-group=',">\n\n ","\n </ul>\n "])),l.id,l.id,l.entries.map(p=>Kt(R1||(R1=Vt(["\n <li key=",">\n <","\n class=","\n onClick=","\n title=","\n data-id=","\n aria-disabled=","\n onMouseEnter=","\n onMouseLeave=","\n onFocus=","\n onBlur=","\n >\n ","\n ","\n </",">\n </li>\n "])),p.id,s(p)?"button":"span",u6(p,p===o),d=>c(d,p),p.title||p.label,p.id,p.disabled||void 0,()=>s(p)&&r(p),()=>s(p)&&r(null),()=>s(p)&&r(p),()=>s(p)&&r(null),p.imageUrl&&Kt(T1||(T1=Vt(['<img class="djs-popup-entry-icon" src=',' alt="" />'])),p.imageUrl)||p.imageHtml&&Kt(C1||(C1=Vt(['<div class="djs-popup-entry-icon" dangerouslySetInnerHTML='," />"])),{__html:p.imageHtml}),p.label?Kt(B1||(B1=Vt(['\n <span class="djs-popup-label">',"</span>\n "])),p.label):null,p.action?"button":"span")))))}function m6(t){return t.reduce((e,n)=>{let o=n.group||"default",r=e.find(i=>i.id===o);return r?r.entries.push(n):e.push({id:o,entries:[n]}),e},[])}function u6(t,e){return fs("entry",t.className,t.active?"active":"",t.disabled?"disabled":"",e?"selected":"")}function Dx(t,e){return"".concat(t,"-entry-").concat(e.id)}function h6(t){let{idPrefix:e,entry:n,selected:o,onMouseEnter:r,onMouseMove:i,onMouseLeave:a,onAction:s}=t,c=(p,d)=>{if(!n.disabled)return s(p,n,d)},l=!n.entries;return Kt(N1||(N1=Vt(["\n <li\n class=","\n data-id=","\n id=",'\n role="option"\n aria-selected=',"\n aria-haspopup=","\n title=","\n aria-disabled=","\n onClick=","\n onMouseEnter=","\n onMouseMove=","\n onMouseLeave=","\n onDragStart=","\n draggable=",'\n >\n <div class="djs-popup-entry-content">\n <span\n class=',"\n >\n ","\n\n ","\n </span>\n ","\n </div>\n ","\n </li>\n "])),fs("entry",{selected:o,disabled:n.disabled}),n.id,Dx(e,n),o||void 0,n.entries?"true":void 0,n.title,n.disabled||void 0,c,r,i,a,p=>l&&c(p,"dragstart"),l,fs("djs-popup-entry-name",n.className),n.imageUrl&&Kt(P1||(P1=Vt(['<img class="djs-popup-entry-icon" src=',' alt="" />'])),n.imageUrl)||n.imageHtml&&Kt(D1||(D1=Vt(['<div class="djs-popup-entry-icon" dangerouslySetInnerHTML='," />"])),{__html:n.imageHtml}),n.label?Kt(j1||(j1=Vt(['\n <span class="djs-popup-label">\n ',"\n </span>\n "])),n.label):null,n.description&&Kt($1||($1=Vt(['\n <span\n class="djs-popup-entry-description"\n >\n ',"\n </span>\n "])),n.description),(n.documentationRef||n.entries)&&Kt(L1||(L1=Vt(['\n <div class="djs-popup-entry-actions">\n ',"\n ","\n </div>\n "])),n.documentationRef&&Kt(z1||(z1=Vt(['\n <a\n class="djs-popup-entry-docs"\n href=',"\n onClick=",'\n title="Open entry documentation"\n tabIndex="-1"\n aria-hidden="true"\n target="_blank"\n rel="noopener"\n >\n <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10.6368 10.6375V5.91761H11.9995V10.6382C11.9995 10.9973 11.8623 11.3141 11.5878 11.5885C11.3134 11.863 10.9966 12.0002 10.6375 12.0002H1.36266C0.982345 12.0002 0.660159 11.8681 0.396102 11.6041C0.132044 11.34 1.52588e-05 11.0178 1.52588e-05 10.6375V1.36267C1.52588e-05 0.98236 0.132044 0.660173 0.396102 0.396116C0.660159 0.132058 0.982345 2.95639e-05 1.36266 2.95639e-05H5.91624V1.36267H1.36266V10.6375H10.6368ZM12 0H7.2794L7.27873 1.36197H9.68701L3.06507 7.98391L4.01541 8.93425L10.6373 2.31231V4.72059H12V0Z" fill="currentColor"/>\n </svg>\n </a>\n '])),n.documentationRef,p=>p.stopPropagation()),n.entries&&Kt(O1||(O1=Vt(['\n <div class="djs-popup-entry-chevron" aria-hidden="true">\n <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.96967 1.46967C4.26256 1.17678 4.73744 1.17678 5.03033 1.46967L9.03033 5.46967C9.32322 5.76256 9.32322 6.23744 9.03033 6.53033L5.03033 10.5303C4.73744 10.8232 4.26256 10.8232 3.96967 10.5303C3.67678 10.2374 3.67678 9.76256 3.96967 9.46967L7.43934 6L3.96967 2.53033C3.67678 2.23744 3.67678 1.76256 3.96967 1.46967Z" fill="currentColor"/>\n </svg>\n </div>\n '])))))}function f6(t){let{selectedEntry:e,setSelectedEntry:n,groupedEntries:o,keyboardSelection:r,onPointerInteraction:i,idPrefix:a,id:s,ariaLabel:c,tabIndex:l,ariaActivedescendant:p,...d}=t,m=Mc();jc(()=>{if(!r||!r.current)return;let x=m.current;if(!x)return;let k=x.querySelector(".selected");k&&g6(k)},[e]);let u=()=>{r.current=!1,i()},h=x=>{x!==e&&n(x)},f=x=>{r.current||n(x)},g=()=>{r.current||n(null)};return Kt(W1||(W1=Vt(['\n <div\n class="djs-popup-results"\n ref=',"\n id=",'\n role="listbox"\n aria-label=',"\n tabIndex=","\n aria-activedescendant=","\n onMouseMove=","\n >\n ","\n </div>\n "])),m,s,c,l,p,u,o.map(x=>Kt(F1||(F1=Vt(["\n ",'\n <ul\n class="djs-popup-group"\n data-group=','\n role="group"\n aria-labelledby=',"\n >\n ","\n </ul>\n "])),x.name&&Kt(I1||(I1=Vt(["\n <div key="," id=",' class="entry-header" title=',">\n ","\n </div>\n "])),x.id,O0(a,x),x.name,x.name),x.id,x.name?O0(a,x):void 0,x.entries.map(k=>Kt(H1||(H1=Vt(["\n <","\n key=","\n idPrefix=","\n entry=","\n selected=","\n onMouseEnter=","\n onMouseMove=","\n onMouseLeave=","\n ...","\n />\n "])),h6,k.id,a,k,k===e,()=>f(k),()=>h(k),g,d)))))}function O0(t,e){return"".concat(t,"-group-").concat(e.id)}function g6(t){typeof t.scrollIntoViewIfNeeded=="function"?t.scrollIntoViewIfNeeded():t.scrollIntoView({scrollMode:"if-needed",block:"nearest"})}function v6(t){let{onClose:e,onSelect:n,className:o,headerEntries:r,position:i,title:a,width:s,scale:c,search:l,emptyPlaceholder:p,searchFn:d,entries:m,onOpened:u,onClosed:h,defaultTab:f}=t,[g,x]=qa([]);cp(()=>{x([]),w(null)},[m]);let k=mr(()=>{let G=[],at=new Set,gt=!1;return m.forEach(({tab:re})=>{re?at.has(re.id)||(at.add(re.id),G.push(re)):gt=!0}),!G.length||gt&&!f?[]:gt?[f,...G.filter(re=>re.id!==f.id)]:G},[m,f]),[_,w]=qa(null),S=k.some(G=>G.id===_)?_:k.length?k[0].id:null,T=Mc();jc(()=>{let G=T.current;if(!G)return;let at=G.querySelector('[aria-selected="true"]');at&&L0(at)},[S]);let[B,M]=qa({start:!1,end:!1}),z=co(()=>{let{scrollLeft:G,scrollWidth:at,clientWidth:gt}=T.current;M({start:G>0,end:at-gt-G>1})},[]),H=co(G=>{let at=T.current,gt=Math.abs(G.deltaX)>Math.abs(G.deltaY)?G.deltaX:G.deltaY;if(!gt)return;let{scrollLeft:re,scrollWidth:Ee,clientWidth:ne}=at;Ee-ne<1||(G.preventDefault(),at.scrollLeft=re+gt,z())},[z]);jc(()=>{let G=T.current;if(G)return z(),G.addEventListener("scroll",z),G.addEventListener("wheel",H,{passive:!1}),()=>{G.removeEventListener("scroll",z),G.removeEventListener("wheel",H)}},[k,S,z,H]);let N=co(G=>{let at=T.current,gt=G>0?[...at.children]:[...at.children].reverse(),re=at.getBoundingClientRect(),Ee=gt.find(ne=>{let Ge=ne.getBoundingClientRect();return G>0?Ge.right>re.right+1:Ge.left<re.left-1});Ee&&(L0(Ee),z())},[z]),Z=co(G=>G.tab&&G.tab.id||f&&f.id,[f]),[Et,ft]=qa(""),ee=Et.trim().length>0,Fe=mr(()=>k6(m),[m]),Lt=mr(()=>Le(l)?Fe.length>5:!1,[l,Fe]),St=mr(()=>{let G=g.length?g[g.length-1].entries:k.length>1?m.filter(at=>Z(at)===S):m;return Lt?ee?d(Fe.filter(({searchable:at})=>at!==!1),Et,{keys:["label","search","description"]}).map(({item:at})=>at):G.filter(({rank:at=0})=>at>=0):G},[Lt,ee,Fe,Et,d,g,m,k,S,Z]),wt=mr(()=>ee?St.length?[{id:"default",entries:St}]:[]:w6(St),[St,ee]),[pt,zt]=qa(St[0]),W=Mc(null),F=Mc(!1),[ct,Ht]=qa("keyboard"),de=co(()=>{Ht("keyboard")},[]),C=co(()=>{Ht("pointer")},[]),b=mr(()=>y6.next(),[]),v="".concat(b,"-results"),j=pt&&Dx(b,pt);cp(()=>{let G=W.current;G&&St.includes(G)?zt(G):zt(St[0]),W.current=null},[St]);let L=co(G=>{let at=x6(wt),gt=at.indexOf(pt)+G;gt<0&&(gt=at.length-1),gt>=at.length&&(gt=0),F.current=!0,zt(at[gt])},[wt,pt]),J=co(G=>{G>0&&pt&&pt.entries&&(F.current=!0,x(at=>[...at,pt])),G<0&&g.length>0&&(F.current=!0,W.current=g[g.length+G],x(at=>at.slice(0,G)))},[pt,g]),mt=co((G,at,gt)=>{if(at&&!at.disabled)return at.entries?(G.preventDefault(),J(1)):n(G,at,gt)},[n,J]),Nt=co(G=>{if(G.key==="Enter"&&pt){let at=G.target;return cr(at,"a, button",!0)||pt.disabled?void 0:mt(G,pt)}if(G.key==="Backspace"){let at=G.target;if(!(Pl(at,"input")&&at.value!==""))return J(-1),G.preventDefault()}if(G.key==="ArrowUp")return L(-1),G.preventDefault();if(G.key==="ArrowDown")return L(1),G.preventDefault();if(G.key==="ArrowRight")return J(1),G.preventDefault();if(G.key==="ArrowLeft")return J(-1),G.preventDefault()},[pt,L,J,mt]),se=co((G,at)=>{if(w(at),!G.detail)return;let gt=cr(G.currentTarget,".djs-popup",!0),re=gt&&gt.querySelector("input");re&&re.focus()},[]),We=co(G=>{if(G.key==="Enter"||G.key===" "){G.stopPropagation();return}if(G.key==="ArrowDown"||G.key==="ArrowUp"){let ne=cr(G.currentTarget,".djs-popup",!0),Ge=ne.querySelector("input")||ne.querySelector('[role="listbox"]');Ge&&Ge.focus();return}let at=k.findIndex(ne=>ne.id===S),gt;if(G.key==="ArrowLeft")gt=(at-1+k.length)%k.length;else if(G.key==="ArrowRight")gt=(at+1)%k.length;else if(G.key==="Home")gt=0;else if(G.key==="End")gt=k.length-1;else return;G.preventDefault(),G.stopPropagation(),w(k[gt].id);let re=G.currentTarget.parentNode,Ee=re&&re.children[gt];Ee&&Ee.focus()},[k,S]),Wt=co(G=>{Pl(G.target,"input")&&ft(()=>G.target.value)},[ft]);cp(()=>(u(),()=>{h()}),[]);let Qe=!ee&&g.length>0,ze=k.length>1&&!ee&&g.length===0;return Kt(tx||(tx=Vt(["\n <","\n onClose=","\n onKeyup=","\n onKeydown=","\n className=","\n position=","\n width=","\n scale=","\n navigationStack=","\n interactionMode=","\n onKeyboardInteraction=","\n >\n ","\n ","\n ","\n ","\n </",">\n "])),N0,e,Wt,Nt,o,i,s,c,g,ct,de,(a||r.length>0)&&!Qe&&Kt(G1||(G1=Vt(["\n <","\n headerEntries=","\n onSelect=","\n selectedEntry=","\n setSelectedEntry=","\n title=","\n />\n "])),d6,r,n,pt,zt,a),Qe&&Kt(V1||(V1=Vt(["\n <","\n navigationStack=","\n setNavigationStack=","\n />\n "])),p6,g,x),m.length>0&&Kt(J1||(J1=Vt(['\n <div class="djs-popup-body">\n\n ',"\n\n ","\n\n ","\n\n <","\n groupedEntries=","\n selectedEntry=","\n setSelectedEntry=","\n keyboardSelection=","\n onPointerInteraction=","\n onAction=","\n idPrefix=","\n id=","\n ariaLabel=","\n tabIndex=","\n ariaActivedescendant=","\n />\n\n ","\n </div>\n "])),Lt&&Kt(U1||(U1=Vt(['\n <div class="djs-popup-search">\n <svg class="djs-popup-search-icon" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.0325 8.5H9.625L13.3675 12.25L12.25 13.3675L8.5 9.625V9.0325L8.2975 8.8225C7.4425 9.5575 6.3325 10 5.125 10C2.4325 10 0.25 7.8175 0.25 5.125C0.25 2.4325 2.4325 0.25 5.125 0.25C7.8175 0.25 10 2.4325 10 5.125C10 6.3325 9.5575 7.4425 8.8225 8.2975L9.0325 8.5ZM1.75 5.125C1.75 6.9925 3.2575 8.5 5.125 8.5C6.9925 8.5 8.5 6.9925 8.5 5.125C8.5 3.2575 6.9925 1.75 5.125 1.75C3.2575 1.75 1.75 3.2575 1.75 5.125Z" fill="#22242A"/>\n </svg>\n <input\n type="text"\n spellcheck=','\n role="combobox"\n aria-label="','"\n aria-expanded="true"\n aria-controls=',"\n aria-activedescendant=",'\n aria-autocomplete="list"\n />\n </div>\n '])),!1,a||"Search",v,j||void 0),ze&&Kt(X1||(X1=Vt(['\n <div class="djs-popup-tabs-container">\n <div class="djs-popup-tabs" ref=',' role="tablist">\n ',"\n </div>\n\n ","\n ","\n </div>\n "])),T,k.map(G=>Kt(q1||(q1=Vt(['\n <button\n type="button"\n class="djs-popup-tab"\n role="tab"\n title=',"\n aria-controls=","\n aria-selected=","\n tabIndex=","\n onClick=","\n onKeydown=","\n >","</button>\n "])),G.title||void 0,v,G.id===S,G.id===S?0:-1,at=>se(at,G.id),We,G.label)),"",[-1,1].map(G=>(G<0?B.start:B.end)&&Kt(K1||(K1=Vt(['\n <button\n type="button"\n class=','\n aria-hidden="true"\n tabIndex="-1"\n onMousedown=',"\n onClick=",'\n >\n <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.96967 1.46967C4.26256 1.17678 4.73744 1.17678 5.03033 1.46967L9.03033 5.46967C9.32322 5.76256 9.32322 6.23744 9.03033 6.53033L5.03033 10.5303C4.73744 10.8232 4.26256 10.8232 3.96967 10.5303C3.67678 10.2374 3.67678 9.76256 3.96967 9.46967L7.43934 6L3.96967 2.53033C3.67678 2.23744 3.67678 1.76256 3.96967 1.46967Z" fill="currentColor"/>\n </svg>\n </button>\n '])),"djs-popup-tabs-scroll djs-popup-tabs-scroll-".concat(G<0?"start":"end"),at=>at.preventDefault(),()=>N(G)))),ee&&Kt(Y1||(Y1=Vt(['\n <div class="djs-popup-search-count" aria-live="polite">\n '," "," found\n </div>\n "])),St.length,St.length===1?"result":"results"),f6,wt,pt,zt,F,C,mt,b,v,a||"Results",Lt?-1:0,Lt?void 0:j||void 0,pt&&pt.documentationRef&&Kt(Z1||(Z1=Vt(['\n <div class="djs-popup-footer">\n <a\n class="djs-popup-footer-docs"\n href=',"\n onClick=","\n aria-label=",'\n target="_blank"\n rel="noopener"\n >\n Open entry documentation\n\n <svg aria-hidden="true" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10.6368 10.6375V5.91761H11.9995V10.6382C11.9995 10.9973 11.8623 11.3141 11.5878 11.5885C11.3134 11.863 10.9966 12.0002 10.6375 12.0002H1.36266C0.982345 12.0002 0.660159 11.8681 0.396102 11.6041C0.132044 11.34 1.52588e-05 11.0178 1.52588e-05 10.6375V1.36267C1.52588e-05 0.98236 0.132044 0.660173 0.396102 0.396116C0.660159 0.132058 0.982345 2.95639e-05 1.36266 2.95639e-05H5.91624V1.36267H1.36266V10.6375H10.6368ZM12 0H7.2794L7.27873 1.36197H9.68701L3.06507 7.98391L4.01541 8.93425L10.6373 2.31231V4.72059H12V0Z" fill="#818798"/>\n </svg>\n </a>\n </div>\n '])),pt.documentationRef,G=>G.stopPropagation(),pt.label?"Open entry documentation for ".concat(pt.label):"Open entry documentation")),p&&St.length===0&&Kt(Q1||(Q1=Vt(['\n <div class="djs-popup-no-results">',"</div>\n "])),Be(p)?p(Et):p),N0)}function L0(t){typeof t.scrollIntoViewIfNeeded=="function"?t.scrollIntoViewIfNeeded():t.scrollIntoView({scrollMode:"if-needed",block:"nearest",inline:"nearest"})}function N0(t){let{onClose:e,onKeydown:n,onKeyup:o,onKeyboardInteraction:r,className:i,children:a,navigationStack:s,interactionMode:c,position:l}=t,p=Mc();return jc(()=>{if(typeof l!="function")return;let d=p.current,m=l(d);d.style.left="".concat(m.x,"px"),d.style.top="".concat(m.y,"px")},[p.current,l]),jc(()=>{let d=p.current;d&&(d.querySelector("input")||d.querySelector('[role="listbox"]')||d).focus()},[s]),cp(()=>{let d=u=>{if(u.key==="Escape")return u.preventDefault(),e()},m=u=>{if(!cr(u.target,".djs-popup",!0))return e()};return document.documentElement.addEventListener("keydown",d),document.body.addEventListener("click",m,!0),()=>{document.documentElement.removeEventListener("keydown",d),document.body.removeEventListener("click",m,!0)}},[]),Kt(ex||(ex=Vt(["\n <div\n class=","\n style=","\n onKeydownCapture=","\n onKeydown=","\n onKeyup=","\n ref=",'\n tabIndex="-1"\n >\n ',"\n </div>\n "])),fs("djs-popup",i,{"djs-popup--pointer":c==="pointer"}),b6(t),r,n,o,p,a)}function b6(t){let{width:e}=t,n=typeof e=="number"?"".concat(e,"px"):e;return{transform:"scale(".concat(t.scale,")"),width:Le(e)?n:void 0,maxWidth:Le(e)?"unset":void 0,"transform-origin":"top left"}}function x6(t){let e=[];return t.forEach(n=>{n.entries.forEach(o=>{e.push(o)})}),e}function k6(t){let e=[];function n(o){o.forEach(r=>{r.entries?n(r.entries):e.push(r)})}return n(t),e}function w6(t){let e=[],n=i=>e.find(a=>i.id===a.id),o=i=>!!n(i),r=i=>typeof i=="string"?{id:i}:i;return t.forEach(i=>{let a=i.group?r(i.group):{id:"default"};o(a)?n(a).entries.push(i):e.push({...a,entries:[i]})}),e}function Me(t,e,n,o){this._eventBus=e,this._canvas=n,this._search=o,this._current=null;var r=Le(t&&t.scale)?t.scale:{min:1,max:1};this._config={scale:r,defaultTab:t&&t.defaultTab},e.on("diagram.destroy",()=>{this.close()}),e.on("element.changed",i=>{let a=this.isOpen()&&this._current.target;i.element===a&&this.refresh()})}function jx(t,e=[]){return Object.entries(t).map(([n,o])=>{let r={id:n,...o};return r.entries?r.entries=jx(r.entries,[...e,...H0(r.search)]):e.length&&(r.search=[...e,...H0(r.search)]),r})}function H0(t){return t?bt(t)?t:[t]:[]}function S6(t,e,n){let{keys:o}=n;if(e=e.trim().toLowerCase(),!e)throw Error("<pattern> must not be empty");let r=e.trim().toLowerCase().split(/\s+/);return t.flatMap(i=>{let a=T6(i,r,o);return a?{item:i,tokens:a}:[]}).sort(C6(o))}function T6(t,e,n){let{matchedWords:o,tokens:r}=n.reduce((i,a)=>{let s=t[a],{tokens:c,matchedWords:l}=bt(s)?s.reduce((p,d)=>{let{tokens:m,matchedWords:u}=V0(d,e);return{tokens:[...p.tokens,m],matchedWords:{...p.matchedWords,...u}}},{matchedWords:{},tokens:[]}):V0(s,e);return{tokens:{...i.tokens,[a]:c},matchedWords:{...i.matchedWords,...l}}},{matchedWords:{},tokens:{}});return Object.keys(o).length===e.length?r:null}function C6(t){return(e,n)=>{let o=0,r=1;for(let i of t){let a=B6(e.tokens[i],n.tokens[i]);if(a!==0){o+=a*r,r*=F0;continue}let s=R6(e.item[i],n.item[i]);s!==0&&(o+=s*r,r*=F0)}return o}}function B6(t,e){return W0(e)-W0(t)}function W0(t){let e=t.reduce((i,a)=>i+$x(a),0),n=t.flat(),o=n.reduce((i,a)=>i+a.value.length,0),r=n.reduce((i,a)=>i+(a.match?a.value.length:0),0);return e*(1+(o?r/o:0))}function $x(t){if(bt(t))return Math.max(...t.map($x));let e=Math.log(t.value.length);return t.match?(t.start?t.end?Ka.FULL:t.wordEnd?Ka.START_FULL_WORD:Ka.START_WORD_PART:t.wordStart?Ka.WORD_START:Ka.WORD_PART)*e:Ka.NO_MATCH*e}function G0(t=""){return bt(t)?t.join(", "):t}function R6(t,e){return G0(t).localeCompare(G0(e))}function V0(t,e){if(!t)return{tokens:[],matchedWords:{}};let n=[],o={},r=e.map(M6),i=["(?<all>".concat(r.join("\\s+"),")"),...r].join("|"),a=new RegExp(i,"ig"),s,c=0;for(;s=a.exec(t);){let[l]=s,p=s.index,d=s.index+l.length,m=p===0,u=d===t.length,h=!!s.groups?.all,f=m||/\s/.test(t.charAt(p-1)),g=u||/\s/.test(t.charAt(d));s.index>c&&n.push({value:t.slice(c,s.index),index:c}),n.push({value:l,index:s.index,match:!0,wordStart:f,wordEnd:g,start:m,end:u,all:h});let x=h?e:[l];for(let k of x)o[k.toLowerCase()]=!0;c=s.index+l.length}return c<t.length&&n.push({value:t.slice(c),index:c}),{tokens:n,matchedWords:o}}function M6(t){return t.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")}function os(t,e,n,o){t.registerProvider(A6,this),this._contextPad=t,this._popupMenu=e,this._translate=n,this._canvas=o}function cc(t,e,n,o){this._alignElements=e,this._translate=n,this._popupMenu=t,this._rules=o,t.registerProvider("align-elements",this)}function Mo(t){q.call(this,t),this.init()}function pp(t){Mo.call(this,t)}function _h(t,e,n,o){for(var r;r=z6(t,n,e);)n=o(e,n,r);return n}function Eh(t){return function(e,n,o){var r={x:n.x,y:n.y};return["x","y"].forEach(function(i){var a=t[i];if(a){var s=i==="x"?"width":"height",c=a.margin,l=a.minDistance;r[i]=c<0?Math.min(o[i]+c-e[s]/2,n[i]-l+c):Math.max(o[i]+o[s]+c+e[s]/2,n[i]+l+c)}}),r}}function z6(t,e,n){var o={x:e.x-n.width/2,y:e.y-n.height/2,width:n.width,height:n.height},r=L6(t);return ce(r,function(i){return i!==n&&dn(i,o,j6)==="intersect"})}function O6(t,e){e||={};function n(u){return u.source===t?1:-1}var o=e.defaultDistance||50,r=e.direction||"e",i=e.filter,a=e.getWeight||n,s=e.maxDistance||$6,c=e.reference||"start";i||=H6;function l(u,h){return r==="n"?c==="start"?ht(u).top-ht(h).bottom:c==="center"?ht(u).top-vt(h).y:ht(u).top-ht(h).top:r==="w"?c==="start"?ht(u).left-ht(h).right:c==="center"?ht(u).left-vt(h).x:ht(u).left-ht(h).left:r==="s"?c==="start"?ht(h).top-ht(u).bottom:c==="center"?vt(h).y-ht(u).bottom:ht(h).bottom-ht(u).bottom:c==="start"?ht(h).left-ht(u).right:c==="center"?vt(h).x-ht(u).right:ht(h).right-ht(u).right}var p=t.incoming.filter(i).map(function(u){var h=a(u),f=h<0?l(u.source,t):l(t,u.source);return{id:u.source.id,distance:f,weight:h}}),d=t.outgoing.filter(i).map(function(u){var h=a(u),f=h>0?l(t,u.target):l(u.target,t);return{id:u.target.id,distance:f,weight:h}}),m=p.concat(d).reduce(function(u,h){return u[h.id+"__weight_"+h.weight]=h,u},{});return Pn(m,function(u,h){var f=h.distance,g=h.weight;return f<0||f>s||(u[String(f)]||(u[String(f)]=0),u[String(f)]+=1*g,(!u.distance||u[u.distance]<u[String(f)])&&(u.distance=f)),u},{}).distance||o}function L6(t){var e=Pm(t);return t.host&&(e=e.concat(Pm(t.host))),t.attachers&&(e=e.concat(t.attachers.reduce(function(n,o){return n.concat(Pm(o))},[]))),e}function Pm(t){return I6(t).concat(N6(t))}function N6(t){return t.incoming.map(function(e){return e.source})}function I6(t){return t.outgoing.map(function(e){return e.target})}function H6(){return!0}function Lx(t,e,n){t.on("autoPlace",F6,function(o){var r=o.shape,i=o.source;return W6(i,r)}),t.on("autoPlace.end",function(o){n.scrollToElement(o.shape)}),this.append=function(o,r,i){t.fire("autoPlace.start",{source:o,shape:r});var a=t.fire("autoPlace",{source:o,shape:r}),s=e.appendShape(o,r,a,o.parent,i);return t.fire("autoPlace.end",{source:o,shape:s}),s}}function W6(t,e,n){n||={};var o=n.defaultDistance||50,r=vt(t);return{x:ht(t).right+o+e.width/2,y:r.y}}function Nx(t,e){t.on("autoPlace.end",500,function(n){e.select(n.shape)})}function Ix(t,e,n){var o=vm(t,n);if(y(e,"bpmn:TextAnnotation"))return U6(t,e,o);if(At(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"]))return q6(t,e,o);if(y(e,"bpmn:FlowNode"))return V6(t,e,o)}function V6(t,e,n){var o=ht(t),r=vt(t),i=n?{directionHint:"e",minDistance:80,baseOrientation:"left",boundaryOrientation:"top",start:"top",end:"bottom"}:{directionHint:"s",minDistance:90,baseOrientation:"top",boundaryOrientation:"left",start:"left",end:"right"},a=O6(t,{filter:function(m){return y(m,"bpmn:SequenceFlow")},direction:i.directionHint}),s=30,c=i.minDistance,l=i.baseOrientation;y(t,"bpmn:BoundaryEvent")&&(l=dn(t,t.host,-25),l.indexOf(i.boundaryOrientation)!==-1&&(s*=-1));var p=n?{x:o.right+a+e.width/2,y:r.y+U0(l,c,i)}:{x:r.x+U0(l,c,i),y:o.bottom+a+e.height/2},d={margin:s,minDistance:c};return _h(t,e,p,Eh(n?{y:d}:{x:d}))}function U0(t,e,n){return t.includes(n.start)?-1*e:t.includes(n.end)?e:0}function U6(t,e,n){var o=ht(t),r=n?{x:o.right+e.width/2,y:o.top-50-e.height/2}:{x:o.right+50+e.width/2,y:o.bottom+e.height/2};oe(t)&&(r=vt(t),n?(r.x+=100,r.y-=50):(r.x+=100,r.y+=50));var i={margin:n?-30:30,minDistance:20};return _h(t,e,r,Eh(n?{y:i}:{x:i}))}function q6(t,e,n){var o=ht(t),r=n?{x:o.right-10+e.width/2,y:o.bottom+40+e.width/2}:{x:o.left-40-e.width/2,y:o.bottom-10+e.height/2},i={margin:30,minDistance:30};return _h(t,e,r,Eh(n?{x:i}:{y:i}))}function Hx(t,e){t.on("autoPlace",function(n){var o=n.shape,r=n.source;return Ix(r,o,e)})}function zr(t,e,n,o){q.call(this,t),this._elementRegistry=e,this._modeling=n,this._rules=o;var r=this;this.postExecuted(["shape.create"],function(i){var a=i.context,s=a.hints||{},c=a.shape,l=a.parent||a.newParent;s.autoResize!==!1&&r._expand([c],l)}),this.postExecuted(["elements.move"],function(i){var a=i.context,s=sl(Hi(a.closure.topLevel)),c=a.hints,l=!c||c.autoResize;if(l!==!1){var p=Xr(s,function(d){return d.parent.id});R(p,function(d,m){bt(l)&&(d=d.filter(function(u){return ce(l,Yr({id:u.id}))})),r._expand(d,m)})}}),this.postExecuted(["shape.toggleCollapse"],function(i){var a=i.context,s=a.hints,c=a.shape;s&&s.autoResize===!1||c.collapsed||r._expand(c.children||[],c)}),this.postExecuted(["shape.resize"],function(i){var a=i.context,s=a.hints,c=a.shape,l=c.parent;s&&s.autoResize===!1||l&&r._expand([c],l)})}function K6(t,e){return t.x!==e.x||t.y!==e.y||t.width!==e.width||t.height!==e.height}function X6(t,e){var n="";return t=ht(t),e=ht(e),t.top>e.top&&(n=n.concat("n")),t.right<e.right&&(n=n.concat("w")),t.bottom<e.bottom&&(n=n.concat("s")),t.left>e.left&&(n=n.concat("e")),n}function dp(t){t.invoke(zr,this)}function Ac(t){Mo.call(this,t);var e=this;this.addRule("element.autoResize",function(n){return e.canResize(n.elements,n.target)})}function mp(t,e){Ac.call(this,t),this._modeling=e}function Fx(t,e,n){var o=this,r=n.get("dragging",!1);function i(a){if(!a.hover){var s=a.originalEvent,c=o._findTargetGfx(s),l=c&&t.get(c);c&&l&&(a.stopPropagation(),r.hover({element:l,gfx:c}),r.move(s))}}r&&e.on("drag.start",function(a){e.once("drag.move",q0,function(s){i(s)})}),(function(){var a,s;e.on("element.hover",function(c){a=c.gfx,s=c.element}),e.on("element.hover",q0,function(c){s&&e.fire("element.out",{element:s,gfx:a})}),e.on("element.out",function(){a=null,s=null})})(),this._findTargetGfx=function(a){var s,c;if(a instanceof MouseEvent)return s=li(a),c=document.elementFromPoint(s.x,s.y),Z6(c)}}function Z6(t){return cr(t,"svg, .djs-element",!0)}function Ji(t){t.preventDefault()}function Q6(t){return typeof TouchEvent<"u"&&t instanceof TouchEvent}function t4(t){return Math.sqrt(t.x**2+t.y**2)}function Wx(t,e,n,o){var r={threshold:5,trapClick:!0},i;function a(_){var w=e.viewbox(),S=e._container.getBoundingClientRect();return{x:w.x+(_.x-S.left)/w.scale,y:w.y+(_.y-S.top)/w.scale}}function s(_,w){w||=i;var S=t.createEvent(P({},w.payload,w.data,{isTouch:w.isTouch}));return t.fire("drag."+_,S)!==!1&&t.fire(w.prefix+"."+_,S)}function c(_){var w=_.filter(function(S){return o.get(S.id)});w.length&&n.select(w)}function l(_,w){var S=i.payload,T=i.displacement,B=i.globalStart,M=li(_),z=ko(M,B),H=i.localStart,N=a(M),Z=ko(N,H);if(!i.active&&(w||t4(z)>i.threshold)){if(P(S,{x:Xa(H.x+T.x),y:Xa(H.y+T.y),dx:0,dy:0},{originalEvent:_}),s("start")===!1)return g();i.active=!0,i.keepSelection||(S.previousSelection=n.get(),n.select(null)),i.cursor&&Qp(i.cursor),e.addMarker(e.getRootElement(),K0)}$l(_),i.active&&(P(S,{x:Xa(N.x+T.x),y:Xa(N.y+T.y),dx:Xa(Z.x),dy:Xa(Z.y)},{originalEvent:_}),s("move"))}function p(_){var w,S=!0;i.active&&(_&&(i.payload.originalEvent=_,$l(_)),S=s("end")),S===!1&&s("rejected"),w=x(S!==!0),s("ended",w)}function d(_){Ie("Escape",_)&&(Ji(_),g())}function m(_){var w;i.active&&(w=ux(t),setTimeout(w,400),Ji(_)),p(_)}function u(_){l(_)}function h(_){var w=i.payload;w.hoverGfx=_.gfx,w.hover=_.element,s("hover")}function f(_){s("out");var w=i.payload;w.hoverGfx=null,w.hover=null}function g(_){var w;if(i){var S=i.active;S&&s("cancel"),w=x(_),S&&s("canceled",w)}}function x(_){var w,S;s("cleanup"),mx(),S=i.trapClick?m:p,Ct.unbind(document,"mousemove",l),Ct.unbind(document,"dragstart",Ji),Ct.unbind(document,"selectstart",Ji),Ct.unbind(document,"mousedown",S,!0),Ct.unbind(document,"mouseup",S,!0),Ct.unbind(document,"keyup",d),Ct.unbind(document,"touchstart",u,!0),Ct.unbind(document,"touchcancel",g,!0),Ct.unbind(document,"touchmove",l,!0),Ct.unbind(document,"touchend",p,!0),t.off("element.hover",h),t.off("element.out",f),e.removeMarker(e.getRootElement(),K0);var T=i.payload.previousSelection;return _!==!1&&T&&!n.get().length&&c(T),w=i,i=null,w}function k(_,w,S,T){i&&g(!1),typeof w=="string"&&(T=S,S=w,w=null),T=P({},r,T||{});var B=T.data||{},M,z,H,N=T.trapClick?m:p,Z;if(_?(M=Yi(_)||_,z=li(_),$l(_),M.type==="dragstart"&&Ji(M)):(M=null,z={x:0,y:0}),H=a(z),w||=H,Z=Q6(M),i=P({prefix:S,data:B,payload:{},globalStart:z,displacement:ko(w,H),localStart:H,isTouch:Z},T),T.manual||(Z?(Ct.bind(document,"touchstart",u,!0),Ct.bind(document,"touchcancel",g,!0),Ct.bind(document,"touchmove",l,!0),Ct.bind(document,"touchend",p,!0)):(Ct.bind(document,"mousemove",l),Ct.bind(document,"dragstart",Ji),Ct.bind(document,"selectstart",Ji),Ct.bind(document,"mousedown",N,!0),Ct.bind(document,"mouseup",N,!0)),Ct.bind(document,"keyup",d),t.on("element.hover",h),t.on("element.out",f)),s("init")===!1)return g(),!1;T.autoActivate&&l(_,!0)}t.on("diagram.destroy",g),this.init=k,this.move=l,this.hover=h,this.out=f,this.end=p,this.cancel=g,this.context=function(){return i},this.setOptions=function(_){P(r,_)}}function ss(t,e,n){this._canvas=n,this._opts=P({scrollThresholdIn:[20,20,20,20],scrollThresholdOut:[0,0,0,0],scrollRepeatTimeout:15,scrollStep:10},t);var o=this;e.on("drag.move",function(r){var i=o._toBorderPoint(r);o.startScroll(i)}),e.on(["drag.cleanup"],function(){o.stopScroll()})}function e4(t,e,n){return e<t&&t<n}function ou(t){this._commandStack=t.get("commandStack",!1)}function r4(t,e){return[["M",t.x,t.y],["m",0,-e],["a",e,e,0,1,1,0,2*e],["a",e,e,0,1,1,0,-2*e],["z"]]}function i4(t){var e=[];return t.forEach(function(n,o){e.push([o===0?"M":"L",n.x,n.y])}),e}function a4(t,e){for(var n=0,o;o=t[n];n++)if(Ca(o,e)<=Gx)return{point:t[n],bendpoint:!0,index:n};return null}function s4(t,e){var n=im(r4(e,Gx),i4(t)),o=n[0],r=n[n.length-1],i;return o?o===r?{point:{x:Nl(o.x),y:Nl(o.y)},index:o.segment2}:o.segment2===r.segment2?{point:{x:Nl(o.x+r.x)/2,y:Nl(o.y+r.y)/2},index:o.segment2}:(i=o4(o.segment2,r.segment2)-1,{point:t[i],bendpoint:!0,index:i}):null}function ru(t,e){return a4(t,e)||s4(t,e)}function Vx(t){return Math.sqrt(t.x**2+t.y**2)}function X0(t){return Math.atan((t[1].y-t[0].y)/(t[1].x-t[0].x))}function c4(t,e){return e?{x:Math.cos(e)*t.x-Math.sin(e)*t.y,y:Math.sin(e)*t.x+Math.cos(e)*t.y}:t}function l4(t,e,n){var o=[{n:t[0]-n[0],lambda:e[0]},{n:t[1]-n[1],lambda:e[1]}],r=o[0].n*e[0]+o[1].n*e[1],i=o[0].lambda*e[0]+o[1].lambda*e[1];return-r/i}function Ux(t,e){var n=e[0],o=e[1],r={x:o.x-n.x,y:o.y-n.y},i=l4([n.x,n.y],[r.x,r.y],[t.x,t.y]);return{x:n.x+i*r.x,y:n.y+i*r.y}}function p4(t,e){var n=Ux(t,e);return Vx({x:n.x-t.x,y:n.y-t.y})}function ps(t,e){return Vx({x:t.x-e.x,y:t.y-e.y})}function d4(t,e){var n=li(e),o=t._container.getBoundingClientRect(),r={x:o.left,y:o.top},i=t.viewbox();return{x:i.x+(n.x-r.x)/i.scale,y:i.y+(n.y-r.y)/i.scale}}function iu(t,e,n){return ru(e,d4(t,n))}function au(t,e){var n=et("g");ut(n).add(qx),it(t,n);var o=et("circle");U(o,{cx:0,cy:0,r:4}),ut(o).add("djs-visual"),it(n,o);var r=et("circle");return U(r,{cx:0,cy:0,r:10}),ut(r).add("djs-hit"),it(n,r),e&&ut(n).add(e),n}function m4(t,e,n,o){var r=et("g");it(t,r);var i=18,a=6,s=11,c=h4(e,n,o),l=a+s,p=et("rect");U(p,{x:-i/2,y:-a/2,rx:3,width:i,height:a}),ut(p).add("djs-visual"),it(r,p);var d=et("rect");return U(d,{x:-c/2,y:-l/2,width:c,height:l}),ut(d).add("djs-hit"),it(r,d),Sm(r,o==="v"?90:0,0,0),r}function Xx(t,e,n){var o=et("g"),r=ul(e,n),i=rr(e,n);return it(t,o),m4(o,e,n,i),ut(o).add(Kx),ut(o).add(i==="h"?"horizontal":"vertical"),hn(o,r.x,r.y),o}function Yx(t){return Math.abs(Math.round(t*2/3))}function u4(t,e){return Ux(t,f4(t,e))}function h4(t,e,n){var o=e.x-t.x,r=e.y-t.y;return Yx(n==="h"?o:r)}function f4(t,e){for(var n=e.waypoints,o=1/0,r,i=0;i<n.length-1;i++){var a=n[i],s=n[i+1],c=p4(t,[a,s]);c<o&&(o=c,r=i)}return[n[r],n[r+1]]}function Zx(t,e,n,o,r){function i(_,w,S){var T=_.index,B=_.point,M,z,H,N,Z,Et;return T<=0||_.bendpoint?!1:(M=w[T-1],z=w[T],H=ul(M,z),N=rr(M,z),Z=Math.abs(B.x-H.x),Et=Math.abs(B.y-H.y),N&&Z<=S&&Et<=S)}function a(_,w){var S=_.waypoints,T,B,M,z;return w.index<=0||w.bendpoint||(T={start:S[w.index-1],end:S[w.index]},B=rr(T.start,T.end),!B)?null:(M=B==="h"?T.end.x-T.start.x:T.end.y-T.start.y,z=Yx(M)/2,z)}function s(_,w){var S=w.waypoints,T=iu(e,S,_),B;if(T&&(B=a(w,T),(i(T,S,B)?r.start(_,w,T.index):o.start(_,w,T.index,!T.bendpoint))!==!1))return!0}function c(_,w,S){Ct.bind(_,w,function(T){n.triggerMouseEvent(w,T,S),T.stopPropagation()})}function l(_,w){var S=e.getLayer("overlays"),T=le('.djs-bendpoints[data-element-id="'+Ga(_.id)+'"]',S);return!T&&w&&(T=et("g"),U(T,{"data-element-id":_.id}),ut(T).add("djs-bendpoints"),it(S,T),c(T,"mousedown",_),c(T,"click",_),c(T,"dblclick",_)),T}function p(_,w){return le('.djs-segment-dragger[data-segment-idx="'+_+'"]',w)}function d(_,w){w.waypoints.forEach(function(S,T){var B=au(_);it(_,B),hn(B,S.x,S.y)}),au(_,"floating")}function m(_,w){for(var S=w.waypoints,T,B,M,z=1;z<S.length;z++)T=S[z-1],B=S[z],rr(T,B)&&(M=Xx(_,T,B),U(M,{"data-segment-idx":z}),c(M,"mousemove",w))}function u(_){R(Vs("."+qx,_),function(w){Ne(w)})}function h(_){R(Vs("."+Kx,_),function(w){Ne(w)})}function f(_){var w=l(_);return w||(w=l(_,!0),d(w,_),m(w,_)),w}function g(_){var w=l(_);w&&(h(w),u(w),m(w,_),d(w,_))}function x(_,w){var S=le(".floating",_),T=w.point;S&&(hn(S,T.x,T.y),ut(S).add("positioned"))}function k(_,w,S){var T=p(w.index,_),B=S[w.index-1],M=S[w.index],z=w.point,H=ul(B,M),N=rr(B,M),Z,Et;T&&(Z=g4(T),Et={x:z.x-H.x,y:z.y-H.y},N==="v"&&(Et={x:Et.y,y:Et.x}),hn(Z,Et.x,Et.y))}t.on("connection.changed",function(_){g(_.element)}),t.on("connection.remove",function(_){var w=l(_.element);w&&Ne(w)}),t.on("element.marker.update",function(_){var w=_.element,S;w.waypoints&&(S=f(w),_.add?ut(S).add(_.marker):ut(S).remove(_.marker))}),t.on("element.mousemove",function(_){var w=_.element,S=w.waypoints,T,B;if(S){if(T=l(w,!0),B=iu(e,S,_.originalEvent),!B)return;x(T,B),B.bendpoint||k(T,B,S)}}),t.on("element.mousedown",function(_){if(Mr(_)){var w=_.originalEvent,S=_.element;if(S.waypoints)return s(w,S)}}),t.on("selection.changed",function(_){var w=_.newSelection[0];w&&w.waypoints&&f(w)}),t.on("element.hover",function(_){var w=_.element;w.waypoints&&f(w)}),t.on("element.out",function(_){var w=_.element;if(w.waypoints){var S=l(w);if(S){var T=le(".floating",S);T&&ut(T).remove("positioned")}}}),t.on("element.updateId",function(_){var w=_.element,S=_.newId;if(w.waypoints){var T=l(w);T&&U(T,{"data-element-id":S})}}),this.addHandles=f,this.updateHandles=g,this.getBendpointsContainer=l,this.getSegmentDragger=p}function g4(t){return le(".djs-visual",t)}function su(t,e,n,o,r,i){this._injector=t,this.start=function(a,s,c,l){var p=n.getGraphics(s),d=s.source,m=s.target,u=s.waypoints,h=!l&&c===0?Qi:!l&&c===u.length-1?ta:Js,f=h===Js?"connection.updateWaypoints":"connection.reconnect",g=r.allowed(f,{connection:s,source:d,target:m});if(g===!1&&(g=r.allowed(f,{connection:s,source:m,target:d})),g!==!1)return o.init(a,"bendpoint.move",{data:{connection:s,connectionGfx:p,context:{allowed:g,bendpointIndex:c,connection:s,source:d,target:m,insert:l,type:h}}})},e.on("bendpoint.move.hover",function(a){var s=a.context,c=s.connection,l=c.source,p=c.target,d=a.hover,m=s.type;s.hover=d;var u;if(d){var h=m===Js?"connection.updateWaypoints":"connection.reconnect";u=s.allowed=r.allowed(h,{connection:c,source:m===Qi?d:l,target:m===ta?d:p}),u?(s.source=m===Qi?d:l,s.target=m===ta?d:p):(u===!1&&(u=s.allowed=r.allowed(h,{connection:c,source:m===ta?d:p,target:m===Qi?d:l})),u&&(s.source=m===ta?d:p,s.target=m===Qi?d:l))}}),e.on(["bendpoint.move.out","bendpoint.move.cleanup"],function(a){var s=a.context,c=s.type;s.hover=null,s.source=null,s.target=null,c!==Js&&(s.allowed=!1)}),e.on("bendpoint.move.end",function(a){var s=a.context,c=s.allowed,l=s.bendpointIndex,p=s.connection,d=s.insert,m=p.waypoints.slice(),u=s.source,h=s.target,f=s.type,g=s.hints||{},x={x:Y0(a.x),y:Y0(a.y)};if(!c)return!1;f===Js?(d?m.splice(l,0,x):m[l]=x,g.bendpointMove={insert:d,bendpointIndex:l},m=this.cropWaypoints(p,m),i.updateWaypoints(p,oy(m),g)):(f===Qi?(g.docking="source",Wp(s)&&(g.docking="target",g.newWaypoints=m.reverse())):f===ta&&(g.docking="target",Wp(s)&&(g.docking="source",g.newWaypoints=m.reverse())),i.reconnect(p,u,h,x,g))},this)}function Wp(t){var e=t.hover,n=t.source,o=t.target,r=t.type;if(r===Qi)return e&&o&&e===o&&n!==o;if(r===ta)return e&&n&&e===n&&n!==o}function Jx(t,e,n,o){this._injector=e;var r=e.get("connectionPreview",!1);n.on("bendpoint.move.start",function(i){var a=i.context,s=a.bendpointIndex,c=a.connection,l=a.insert,p=c.waypoints,d=p.slice();a.waypoints=p,l&&d.splice(s,0,{x:i.x,y:i.y}),c.waypoints=d;var m=a.draggerGfx=au(o.getLayer("overlays"));ut(m).add("djs-dragging"),o.addMarker(c,tv),o.addMarker(c,Q0)}),n.on("bendpoint.move.hover",function(i){var a=i.context,s=a.allowed,c=a.hover,l=a.type;if(c){if(o.addMarker(c,J0),l===Z0)return;s?(o.removeMarker(c,Il),o.addMarker(c,Qs)):s===!1&&(o.removeMarker(c,Qs),o.addMarker(c,Il))}}),n.on(["bendpoint.move.out","bendpoint.move.cleanup"],ev,function(i){var a=i.context,s=a.hover,c=a.target;s&&(o.removeMarker(s,J0),o.removeMarker(s,c?Qs:Il))}),n.on("bendpoint.move.move",function(i){var a=i.context,s=a.allowed,c=a.bendpointIndex,l=a.draggerGfx,p=a.hover,d=a.type,m=a.connection,u=m.source,h=m.target,f=m.waypoints.slice(),g={x:i.x,y:i.y},x=a.hints||{},k={};r&&(x.connectionStart&&(k.connectionStart=x.connectionStart),x.connectionEnd&&(k.connectionEnd=x.connectionEnd),d===y4?Wp(a)?(k.connectionEnd=k.connectionEnd||g,k.source=h,k.target=p||u,f=f.reverse()):(k.connectionStart=k.connectionStart||g,k.source=p||u,k.target=h):d===v4?Wp(a)?(k.connectionStart=k.connectionStart||g,k.source=p||h,k.target=u,f=f.reverse()):(k.connectionEnd=k.connectionEnd||g,k.source=u,k.target=p||h):(k.noCropping=!0,k.noLayout=!0,f[c]=g),d===Z0&&(f=t.cropWaypoints(m,f)),k.waypoints=f,r.drawPreview(a,s,k)),hn(l,i.x,i.y)},this),n.on(["bendpoint.move.end","bendpoint.move.cancel"],ev,function(i){var a=i.context,s=a.connection,c=a.draggerGfx,l=a.hover,p=a.target;s.waypoints=a.waypoints,Ne(c),o.removeMarker(s,Q0),o.removeMarker(s,tv),l&&(o.removeMarker(l,Qs),o.removeMarker(l,p?Qs:Il)),r&&r.cleanUp(a)})}function rv(t,e,n){return Th(t,e,t[e]+n)}function Th(t,e,n){return{x:e==="x"?n:t.x,y:e==="y"?n:t.y}}function b4(t,e,n,o){var r=Math.max(e[o],n[o]),i=Math.min(e[o],n[o]),a=20;return Th(e,o,Math.min(Math.max(i+a,t[o]),r-a))}function Qx(t){return t==="x"?"y":"x"}function iv(t,e,n){var o,r;return t.original?t.original:(o=vt(e),r=Qx(n),Th(t,r,o[r]))}function t2(t,e,n,o,r,i){var a=t.get("connectionDocking",!1);this.start=function(d,m,u){var h,f=n.getGraphics(m),g=u-1,x=u,k=m.waypoints,_=k[g],w=k[x],S=iu(n,k,d),T=rr(_,w),B,M;if(T)return B=T==="v"?"x":"y",g===0&&(_=iv(_,m.source,B)),x===k.length-1&&(w=iv(w,m.target,B)),M=S?S.point:{x:(_.x+w.x)/2,y:(_.y+w.y)/2},h={connection:m,segmentStartIndex:g,segmentEndIndex:x,segmentStart:_,segmentEnd:w,axis:B,dragPosition:M},o.init(d,M,"connectionSegment.move",{cursor:B==="x"?"resize-ew":"resize-ns",data:{connection:m,connectionGfx:f,context:h}})};function s(d,m){if(!a)return m;var u=d.waypoints,h;return d.waypoints=m,h=a.getCroppedWaypoints(d),d.waypoints=u,h}function c(d){r.update("connection",d.connection,d.connectionGfx)}function l(d,m,u){var h=d.newWaypoints,f=h[d.segmentStartIndex+m],g=h[d.segmentEndIndex+m],x=b4(u,f,g,Qx(d.axis));hn(d.draggerGfx,x.x,x.y)}function p(d,m){var u=0;return{waypoints:d.filter(function(h,f){return!ml(d[f-1],d[f+1],h)||(u=f<=m?u-1:u,!1)}),segmentOffset:u}}e.on("connectionSegment.move.start",function(d){var m=d.context,u=d.connection,h=n.getLayer("overlays");m.originalWaypoints=u.waypoints.slice(),m.draggerGfx=Xx(h,m.segmentStart,m.segmentEnd),ut(m.draggerGfx).add("djs-dragging"),n.addMarker(u,ov)}),e.on("connectionSegment.move.move",function(d){var m=d.context,u=m.connection,h=m.segmentStartIndex,f=m.segmentEndIndex,g=m.segmentStart,x=m.segmentEnd,k=m.axis,_=m.originalWaypoints.slice(),w=rv(g,k,d["d"+k]),S=rv(x,k,d["d"+k]),T=_.length,B=0;_[h]=w,_[f]=S;var M,z;h<2&&(M=dn(u.source,w),h===1?M==="intersect"&&(_.shift(),_[0]=w,B--):M!=="intersect"&&(_.unshift(g),B++)),f>T-3&&(z=dn(u.target,S),f===T-2?z==="intersect"&&(_.pop(),_[_.length-1]=S):z!=="intersect"&&_.push(x)),m.newWaypoints=u.waypoints=s(u,_),l(m,B,d),m.newSegmentStartIndex=h+B,c(d)}),e.on("connectionSegment.move.hover",function(d){d.context.hover=d.hover,n.addMarker(d.hover,nv)}),e.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],function(d){var m=d.context.hover;m&&n.removeMarker(m,nv)}),e.on("connectionSegment.move.cleanup",function(d){var m=d.context,u=m.connection;m.draggerGfx&&Ne(m.draggerGfx),n.removeMarker(u,ov)}),e.on(["connectionSegment.move.cancel","connectionSegment.move.end"],function(d){var m=d.context,u=m.connection;u.waypoints=m.originalWaypoints,c(d)}),e.on("connectionSegment.move.end",function(d){var m=d.context,u=m.connection,h=m.newWaypoints,f=m.newSegmentStartIndex;h=h.map(function(S){return{original:S.original,x:Math.round(S.x),y:Math.round(S.y)}});var g=p(h,f),x=g.waypoints,k=s(u,x),_=g.segmentOffset,w={segmentMove:{segmentStartIndex:m.segmentStartIndex,newSegmentStartIndex:f+_}};i.updateWaypoints(u,k,w)})}function k4(t,e,n){n=n===void 0?10:n;for(var o=0,r;o<e.length;o++)if(r=e[o],x4(r-t)<=n)return r}function e2(t){return{x:t.x,y:t.y}}function n2(t){return{x:t.x+t.width,y:t.y+t.height}}function Bo(t,e){return!t||isNaN(t.x)||isNaN(t.y)?e:{x:av(t.x+t.width/2),y:av(t.y+t.height/2)}}function ds(t,e){var n=t.snapped;return n?typeof e=="string"?n[e]:n.x&&n.y:!1}function Je(t,e,n){if(typeof e!="string")throw Error("axis must be in [x, y]");if(typeof n!="number"&&n!==!1)throw Error("value must be Number or false");var o,r=t[e],i=t.snapped=t.snapped||{};return n===!1?i[e]=!1:(i[e]=!0,o=n-r,t[e]+=o,t["d"+e]+=o),r}function o2(t){return t.children||[]}function r2(t){function e(i,a){if(bt(i)){for(var s=i.length;s--;)if(w4(i[s]-a)<=Dm)return i[s]}else{i=+i;var c=a%i;if(c<Dm)return a-c;if(c>i-Dm)return a-c+i}return a}function n(i,a){if(i.waypoints)return u4(a,i);if(i.width)return{x:sv(i.width/2+i.x),y:sv(i.height/2+i.y)}}function o(i){var a=i.context,s=a.snapPoints,c=a.connection,l=c.waypoints,p=a.segmentStart,d=a.segmentStartIndex,m=a.segmentEnd,u=a.segmentEndIndex,h=a.axis;if(s)return s;var f=[l[d-1],p,m,l[u+1]];return d<2&&f.unshift(n(c.source,i)),u>l.length-3&&f.unshift(n(c.target,i)),a.snapPoints=s={horizontal:[],vertical:[]},R(f,function(g){g&&(g=g.original||g,h==="y"&&s.horizontal.push(g.y),h==="x"&&s.vertical.push(g.x))}),s}t.on("connectionSegment.move.move",1500,function(i){var a=o(i),s=i.x,c=i.y,l,p;if(a){l=e(a.vertical,s),p=e(a.horizontal,c);var d=s-l,m=c-p;P(i,{dx:i.dx-d,dy:i.dy-m,x:l,y:p}),(d||a.vertical.indexOf(s)!==-1)&&Je(i,"x",l),(m||a.horizontal.indexOf(c)!==-1)&&Je(i,"y",p)}});function r(i){var a=i.snapPoints,s=i.connection.waypoints,c=i.bendpointIndex;if(a)return a;var l=[s[c-1],s[c+1]];return i.snapPoints=a={horizontal:[],vertical:[]},R(l,function(p){p&&(p=p.original||p,a.horizontal.push(p.y),a.vertical.push(p.x))}),a}t.on(["connect.hover","connect.move","connect.end"],1500,function(i){var a=i.context.hover,s=a&&n(a,i);oe(a)&&s&&s.x&&s.y&&(Je(i,"x",s.x),Je(i,"y",s.y))}),t.on(["bendpoint.move.move","bendpoint.move.end"],1500,function(i){var a=i.context,s=r(a),c=a.hover,l=c&&n(c,i),p=i.x,d=i.y,m,u;if(s){m=e(l?s.vertical.concat([l.x]):s.vertical,p),u=e(l?s.horizontal.concat([l.y]):s.horizontal,d);var h=p-m,f=d-u;P(i,{dx:i.dx-h,dy:i.dy-f,x:i.x-h,y:i.y-f}),(h||s.vertical.indexOf(p)!==-1)&&Je(i,"x",m),(f||s.horizontal.indexOf(d)!==-1)&&Je(i,"y",u)}})}function i2(t,e,n,o){function r(a,s){return o.allowed("connection.create",{source:a,target:s})}function i(a,s){return r(s,a)}t.on("connect.hover",function(a){var s=a.context,c=s.start,l=a.hover,p;s.hover=l,p=s.canExecute=r(c,l),!Kr(p)&&(p===!1?(p=s.canExecute=i(c,l),!Kr(p)&&p!==!1&&(s.source=l,s.target=c)):(s.source=c,s.target=l))}),t.on(["connect.out","connect.cleanup"],function(a){var s=a.context;s.hover=null,s.source=null,s.target=null,s.canExecute=!1}),t.on("connect.end",function(a){var s=a.context,c=s.canExecute,l=s.connectionStart,p={x:a.x,y:a.y},d=s.source,m=s.target;if(!c)return!1;var u=null,h={connectionStart:cu(s)?p:l,connectionEnd:cu(s)?l:p};Se(c)&&(u=c),s.connection=n.connect(d,m,u,h)}),this.start=function(a,s,c,l){Se(c)||(l=c,c=vt(s)),e.init(a,"connect",{autoActivate:l,data:{shape:s,context:{start:s,connectionStart:c}}})}}function cu(t){var e=t.hover,n=t.source,o=t.target;return e&&n&&e===n&&n!==o}function a2(t,e,n){var o=t.get("connectionPreview",!1);o&&e.on("connect.move",function(r){var i=r.context,a=i.canExecute,s=i.hover,c=i.source,l=i.start,p=i.startPosition,d=i.target,m=i.connectionStart||p,u=i.connectionEnd||{x:r.x,y:r.y},h=m,f=u;cu(i)&&(h=u,f=m),o.drawPreview(i,a,{source:c||l,target:d||s,connectionStart:h,connectionEnd:f})}),e.on("connect.hover",S4,function(r){var i=r.context,a=r.hover,s=i.canExecute;s!==null&&n.addMarker(a,s?cv:lv)}),e.on(["connect.out","connect.cleanup"],E4,function(r){var i=r.hover;i&&(n.removeMarker(i,cv),n.removeMarker(i,lv))}),o&&e.on("connect.cleanup",function(r){o.cleanUp(r.context)})}function Ar(t,e,n,o){this._canvas=e,this._graphicsFactory=n,this._elementFactory=o,this._connectionDocking=t.get("connectionDocking",!1),this._layouter=t.get("layouter",!1)}function C4(t){var e={};return function(n){var o=JSON.stringify(n),r=e[o];return r||=e[o]=t.apply(null,arguments),r}}function B4(t){return Se(t)?t:{}}function hi(t,e,n,o){this._elementRegistry=t,this._canvas=n,this._styles=o}function D4(t,e,n){var o=j4(U(t,e));return le("marker#"+o,n||document)}function j4(t){return t.match(/url\(['"]?#([^'"]*)['"]?\)/)[1]}function $4(t){return"url(#"+t+")"}function z4(t){return P4.indexOf(t.nodeName)!==-1}function O4(t){return t.hidden}function lu(t,e){q.call(this,t),this.postExecuted(["connection.create","connection.layout","connection.updateWaypoints"],function(r){var i=r.context,a=i.connection,s=a.source,c=a.target;(i.hints||{}).createElementsBehavior!==!1&&(n(s),n(c))}),this.postExecuted(["label.create"],function(r){var i=r.context,a=i.shape;(i.hints||{}).createElementsBehavior!==!1&&n(a.labelTarget)}),this.postExecuted(["elements.create"],function(r){var i=r.context,a=i.elements;(i.hints||{}).createElementsBehavior!==!1&&a.forEach(function(s){n(s)})});function n(r){if(zs(r)&&!oe(r)&&!y(r,"bpmn:Group")){var i=H4(r);i&&o(r,i)}}function o(r,i){var a=vt(r),s=r.label,c=vt(s);if(s.parent){var l=ht(r),p;switch(i){case"top":p={x:a.x,y:l.top-Fl-s.height/2};break;case"left":p={x:l.left-Fl-s.width/2,y:a.y};break;case"bottom":p={x:a.x,y:l.bottom+Fl+s.height/2};break;case"right":p={x:l.right+Fl+s.width/2,y:a.y}}var d=ko(p,c);e.moveShape(s,d)}}}function N4(t){var e=t.host,n=vt(t),o=dn(n,e),r=o.indexOf("-")>=0?o.split("-"):[o];return Bh.filter(function(i){return r.indexOf(i)===-1})}function I4(t){var e=vt(t);return[].concat(t.incoming.map(function(n){return n.waypoints[n.waypoints.length-2]}),t.outgoing.map(function(n){return n.waypoints[1]})).map(function(n){return c2(e,n)})}function H4(t){var e=vt(t.label),n=c2(vt(t),e);if(F4(n)){var o=I4(t);if(t.host){var r=N4(t);o=o.concat(r)}var i=Bh.filter(function(a){return o.indexOf(a)===-1});return i.indexOf(n)===-1?i[0]:dn(t.label,t)==="intersect"?n:void 0}}function c2(t,e){return dn(e,t,5)}function F4(t){return Bh.indexOf(t)!==-1}function pu(t){q.call(this,t),this.preExecute("shape.append",function(e){var n=e.source,o=e.shape;e.position||=y(o,"bpmn:TextAnnotation")?{x:n.x+n.width/2+75,y:n.y-50-o.height/2}:{x:n.x+n.width+80+o.width/2,y:n.y+n.height/2}},!0)}function du(t,e,n){t.invoke(q,this),this.preExecute("elements.delete",W4,function(r){var i=r.context,a=i.elements,s=o(a);s.length&&(i.elements=a.concat(s))}),e.on("shape.move.start",function(r){var i=r.context.shapes,a=o(i);a.length&&(r.context.shapes=i.concat(a))});function o(r){var i=Dt(r,l=>y(l,"bpmn:Participant")||y(l,"bpmn:SubProcess"));if(!i.length)return[];var a=n.getRootElement(),s=new Set(a.children.filter(l=>y(l,"bpmn:Artifact"))),c=new Set;return R(i,l=>{let p=new Set(Hi(Ki(Array.from(s),je(l))));c=c.union(p),s=s.difference(p)}),Array.from(c)}}function mu(t,e){t.invoke(q,this),this.postExecute("shape.move",function(n){var o=n.newParent,r=n.shape,i=Dt(r.incoming.concat(r.outgoing),function(a){return y(a,"bpmn:Association")});R(i,function(a){e.moveConnection(a,{x:0,y:0},o)})},!0)}function up(t,e){e.invoke(q,this),this._bpmnReplace=t;var n=this;this.postExecuted("elements.create",pv,function(o){var r=o.elements;r=r.filter(function(i){var a=i.host;return dv(i,a)}),r.length===1&&r.map(function(i){return r.indexOf(i)}).forEach(function(i){var a=r[i];o.elements[i]=n._replaceShape(r[i],a)})},!0),this.preExecute("elements.move",pv,function(o){var r=o.shapes,i=o.newHost;if(r.length===1){var a=r[0];dv(a,i)&&(o.shapes=[n._replaceShape(a,i)])}},!0)}function G4(t){var e=Y(t).eventDefinitions;return e&&e[0]}function dv(t,e){return!Bt(t)&&At(t,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!e}function uu(t,e){q.call(this,t);function n(o){return Dt(o.attachers,function(r){return y(r,"bpmn:BoundaryEvent")})}this.postExecute("connection.create",function(o){var r=o.context.source,i=o.context.target,a=n(i);y(r,"bpmn:EventBasedGateway")&&y(i,"bpmn:ReceiveTask")&&a.length>0&&e.removeElements(a)}),this.postExecute("connection.reconnect",function(o){var r=o.context.oldSource,i=o.context.newSource;y(r,"bpmn:Gateway")&&y(i,"bpmn:EventBasedGateway")&&R(i.outgoing,function(a){var s=a.target,c=n(s);y(s,"bpmn:ReceiveTask")&&c.length>0&&e.removeElements(c)})})}function l2(t){return t.create("bpmn:Category")}function V4(t){return t.create("bpmn:CategoryValue")}function p2(t,e){var n=e.get("categoryValueRef");return n||=e.categoryValueRef=V4(t),n.$parent||(n.$parent=l2(t)),n}function U4(t,e,n){return Te(e.get("categoryValue"),t),t.$parent=e,Te(n.get("rootElements"),e),e.$parent=n,t}function q4(t){var e=t.$parent;return e&&(we(e.get("categoryValue"),t),t.$parent=null),t}function K4(t){var e=t.$parent;return e&&(we(e.get("rootElements"),t),t.$parent=null),t}function hu(t,e,n){n.invoke(q,this);function o(c){return e.filter(function(l){return y(l,"bpmn:Group")&&!l.labelTarget}).map(Y).filter(function(l){return l!==c})}function r(c,l){return o(l).some(function(p){return p.get("categoryValueRef")===c})}function i(c,l){return o(l).some(function(p){var d=p.get("categoryValueRef");return d&&d.$parent===c})}function a(c,l){c&&l&&U4(c,l,t.getDefinitions())}function s(c,l,p){l&&!i(l,p)&&K4(l),c&&!r(c,p)&&q4(c)}this.executed(["shape.create","label.create"],function(c){var l=c.labelTarget||c.shape;y(l,"bpmn:Group")&&!l.labelTarget&&a(c.categoryValue,c.category)},!0),this.reverted(["shape.create","label.create"],function(c){var l=c.labelTarget||c.shape;y(l,"bpmn:Group")&&!l.labelTarget&&s(c.categoryValue,c.category,Y(l))},!0),this.executed(["shape.move","shape.resize"],X4,function(c){a(c.categoryValue,c.category)},!0),this.reverted(["shape.move","shape.resize"],function(c){var l=c.shape;c.categoryValue&&s(c.categoryValue,c.category,Y(l))},!0),this.executed("group.updateRefs",function(c){mv(c).forEach(function(l){a(l.categoryValue,l.category)})},!0),this.reverted("group.updateRefs",function(c){mv(c).forEach(function(l){s(l.categoryValue,l.category,Y(l.groupShape))})},!0),this.executed("shape.delete",function(c){var l=c.shape;y(l,"bpmn:Group")&&!l.labelTarget&&s(c.categoryValue,c.category,Y(l))},!0),this.reverted("shape.delete",function(c){var l=c.shape;y(l,"bpmn:Group")&&!l.labelTarget&&a(c.categoryValue,c.category)},!0)}function mv(t){return t.updates?.groups||[]}function fu(t,e,n){q.call(this,t),this.preExecute("shape.replace",s,!0),this.postExecuted("shape.replace",c,!0),this.preExecute("connection.create",r,!0),this.postExecuted("connection.delete",o,!0),this.postExecuted("connection.reconnect",i,!0),this.postExecuted("element.updateProperties",a,!0);function o(g){let x=g.source,k=g.target;Ya(x)&&tc(k)&&p(k)}function r(g){let x=g.connection,k=g.source,_=g.target;Ya(k)&&Wl(_)&&(l(_),m(k,[x]))}function i(g){let x=g.newTarget,k=g.oldSource,_=g.oldTarget;if(_!==x){let w=k;tc(_)&&p(_),Ya(w)&&Wl(x)&&l(x)}}function a(g){let{element:x}=g;tc(x)?(d(x),u(x)):Wl(x)&&h(x)}function s(g){let{newData:x,oldShape:k}=g;if(Ya(g.oldShape)&&x.eventDefinitionType!=="bpmn:CompensateEventDefinition"||x.type!=="bpmn:BoundaryEvent"){let _=k.outgoing.find(({target:w})=>tc(w));_&&_.target&&(g._connectionTarget=_.target)}else if(!Ya(g.oldShape)&&x.eventDefinitionType==="bpmn:CompensateEventDefinition"&&x.type==="bpmn:BoundaryEvent"){let _=k.outgoing.find(({target:w})=>Wl(w));_&&_.target&&(g._connectionTarget=_.target),f(k)}}function c(g){let{_connectionTarget:x,newShape:k}=g;x&&e.connect(k,x)}function l(g){e.updateProperties(g,{isForCompensation:!0})}function p(g){e.updateProperties(g,{isForCompensation:void 0})}function d(g){for(let x of g.incoming)n.canConnect(x.source,g)||e.removeConnection(x);for(let x of g.outgoing)n.canConnect(g,x.target)||e.removeConnection(x)}function m(g,x){g.outgoing.filter(k=>y(k,"bpmn:Association")).filter(k=>tc(k.target)&&!x.includes(k)).forEach(k=>e.removeConnection(k))}function u(g){let x=g.attachers.slice();x.length&&e.removeElements(x)}function h(g){let x=g.incoming.filter(k=>Ya(k.source));e.removeElements(x)}function f(g){let x=g.outgoing.filter(k=>y(k,"bpmn:SequenceFlow"));e.removeElements(x)}}function tc(t){let e=Y(t);return e&&e.get("isForCompensation")}function Ya(t){return t&&y(t,"bpmn:BoundaryEvent")&&Wi(t,"bpmn:CompensateEventDefinition")}function Wl(t){return t&&y(t,"bpmn:Activity")&&!mn(t)}function gu(t){t.invoke(q,this),this.preExecute("shape.create",1500,function(e){var n=e.context,o=n.parent,r=n.shape;y(o,"bpmn:Lane")&&!y(r,"bpmn:Lane")&&(n.parent=Vi(o,"bpmn:Participant"))})}function yu(t,e){q.call(this,t),this.preExecute("shape.create",function(n){var o=n.context.shape;if(y(o,"bpmn:DataObjectReference")&&o.type!=="label"){var r=e.create("bpmn:DataObject");r.isCollection=o.businessObject.dataObjectRef?.isCollection||!1,o.businessObject.dataObjectRef=r}})}function xu(t,e,n){q.call(this,e),e.on(["create.start","shape.move.start"],Gl,function(r){var i=r.context,a=i.shape,s=t.getRootElement();if(y(a,"bpmn:Participant")&&y(s,"bpmn:Process")&&s.children.length){var c=s.children.filter(function(d){return!y(d,"bpmn:Group")&&!Bt(d)&&!oe(d)});if(c.length){var l=je(c),p=Y4(a,l);P(a,p),i.createConstraints=Z4(a,l)}}}),e.on("create.start",Gl,function(r){var i=r.context.shape,a=t.getRootElement(),s=t.getGraphics(a);function c(l){l.element=a,l.gfx=s}y(i,"bpmn:Participant")&&y(a,"bpmn:Process")&&(e.on("element.hover",Gl,c),e.once("create.cleanup",function(){e.off("element.hover",c)}))});function o(){var r=t.getRootElement();return y(r,"bpmn:Collaboration")?r:n.makeCollaboration()}this.preExecute("elements.create",Gl,function(r){var i=r.elements,a=r.parent,s=J4(i),c;s&&y(a,"bpmn:Process")&&(r.parent=o(),c=r.hints=r.hints||{},c.participant=s,c.process=a,c.processRef=Y(s).get("processRef"))},!0),this.preExecute("shape.create",function(r){var i=r.parent,a=r.shape;y(a,"bpmn:Participant")&&y(i,"bpmn:Process")&&(r.parent=o(),r.process=i,r.processRef=Y(a).get("processRef"))},!0),this.execute("shape.create",function(r){var i=r.hints||{},a=r.process||i.process,s=r.shape,c=i.participant;a&&(!c||s===c)&&Y(s).set("processRef",Y(a))},!0),this.revert("shape.create",function(r){var i=r.hints||{},a=r.process||i.process,s=r.processRef||i.processRef,c=r.shape,l=i.participant;a&&(!l||c===l)&&Y(c).set("processRef",s)},!0),this.postExecute("shape.create",function(r){var i=r.hints||{},a=r.process||r.hints.process,s=r.shape,c=i.participant;if(a){var l=a.children.slice();c?s===c&&n.moveElements(l,{x:0,y:0},c):n.moveElements(l,{x:0,y:0},s)}},!0)}function Y4(t,e){e={width:e.width+vu*2+30,height:e.height+bu*2};var n=Math.max(t.width,e.width),o=Math.max(t.height,e.height);return{x:-n/2,y:-o/2,width:n,height:o}}function Z4(t,e){return e=ht(e),{bottom:e.top+t.height/2-bu,left:e.right-t.width/2+vu,top:e.bottom-t.height/2+bu,right:e.left+t.width/2-vu-30}}function J4(t){return ce(t,function(e){return y(e,"bpmn:Participant")})}function ku(t,e){q.call(this,t),this.executed(["connection.create","connection.delete","connection.move","connection.reconnect"],hv(i)),this.reverted(["connection.create","connection.delete","connection.move","connection.reconnect"],hv(i));function n(a,s,c){var l=a.get("dataInputAssociations");return ce(l,function(p){return p!==c&&p.targetRef===s})}function o(a,s){var c=a.get("properties"),l=ce(c,function(p){return p.name===uv});return!l&&s&&(l=e.create("bpmn:Property",{name:uv}),Te(c,l)),l}function r(a,s){var c=o(a);c&&(n(a,c,s)||we(a.get("properties"),c))}function i(a){var s=a.context,c=s.connection,l=c.businessObject,p=c.target,d=p&&p.businessObject,m=s.newTarget,u=m&&m.businessObject,h=s.oldTarget||s.target,f=h&&h.businessObject,g=c.businessObject,x;f&&f!==d&&r(f,l),u&&u!==d&&r(u,l),d?(x=o(d,!0),g.targetRef=x):g.targetRef=null}}function hv(t){return function(e){var n=e.context.connection;if(y(n,"bpmn:DataInputAssociation"))return t(e)}}function hp(t){this._bpmnUpdater=t}function wu(t,e,n,o){q.call(this,o),e.registerHandler("dataStore.updateContainment",hp);function r(){return n.filter(function(s){return y(s,"bpmn:Participant")&&Y(s).processRef})[0]}function i(s){return s.children.filter(function(c){return y(c,"bpmn:DataStoreReference")&&!c.labelTarget})}function a(s,c){var l=s.businessObject||s;if(c||=r(),c){var p=c.businessObject||c;e.execute("dataStore.updateContainment",{dataStoreBo:l,dataStoreDi:Tt(s),newSemanticParent:p.processRef||p,newDiParent:Tt(c)})}}this.preExecute("shape.create",function(s){var c=s.context,l=c.shape;y(l,"bpmn:DataStoreReference")&&l.type!=="label"&&(c.hints||={},c.hints.autoResize=!1)}),this.preExecute("elements.move",function(s){var c=s.context,l=c.shapes;l.filter(function(p){return y(p,"bpmn:DataStoreReference")}).length&&(c.hints||={},c.hints.autoResize=l.filter(function(p){return!y(p,"bpmn:DataStoreReference")}))}),this.postExecute("shape.create",function(s){var c=s.context.shape,l=c.parent;y(c,"bpmn:DataStoreReference")&&c.type!=="label"&&y(l,"bpmn:Collaboration")&&a(c)}),this.postExecute("shape.move",function(s){var c=s.context,l=c.shape,p=c.oldParent,d=l.parent;y(p,"bpmn:Collaboration")||y(l,"bpmn:DataStoreReference")&&l.type!=="label"&&y(d,"bpmn:Collaboration")&&a(l,y(p,"bpmn:Participant")?p:tT(p,"bpmn:Participant"))}),this.postExecute("shape.delete",function(s){var c=s.context.shape,l=t.getRootElement();At(c,["bpmn:Participant","bpmn:SubProcess"])&&y(l,"bpmn:Collaboration")&&i(l).filter(function(p){return Q4(p,c)}).forEach(function(p){a(p)})}),this.postExecute("canvas.updateRoot",function(s){var c=s.context,l=c.oldRoot,p=c.newRoot;i(l).forEach(function(d){y(p,"bpmn:Process")&&a(d,p)})})}function Q4(t,e){for(var n=t.businessObject||t,o=e.businessObject||e;n.$parent;){if(n.$parent===o.processRef||o)return!0;n=n.$parent}return!1}function tT(t,e){for(;t.parent;){if(y(t.parent,e))return t.parent;t=t.parent}}function d2(t,e){return{top:t.top-e.top,right:t.right-e.right,bottom:t.bottom-e.bottom,left:t.left-e.left}}function nT(t,e,n){var o=n.x,r=n.y,i={x:t.x,y:t.y,width:t.width,height:t.height};return e.indexOf("n")===-1?e.indexOf("s")!==-1&&(i.height=t.height+r):(i.y=t.y+r,i.height=t.height-r),e.indexOf("e")===-1?e.indexOf("w")!==-1&&(i.x=t.x+o,i.width=t.width-o):i.width=t.width+o,i}function oT(t,e){return{x:t.x+(e.left||0),y:t.y+(e.top||0),width:t.width-(e.left||0)+(e.right||0),height:t.height-(e.top||0)+(e.bottom||0)}}function Vl(t,e,n){var o=e[t],r=n.min&&n.min[t],i=n.max&&n.max[t];return xt(r)&&(o=(/top|left/.test(t)?Vp:Gp)(o,r)),xt(i)&&(o=(/top|left/.test(t)?Gp:Vp)(o,i)),o}function rT(t,e){if(!e)return t;var n=ht(t);return Ba({top:Vl("top",n,e),right:Vl("right",n,e),bottom:Vl("bottom",n,e),left:Vl("left",n,e)})}function iT(t,e,n,o){var r=ht(e),i={top:/n/.test(t)?r.bottom-n.height:r.top,left:/w/.test(t)?r.right-n.width:r.left,bottom:/s/.test(t)?r.top+n.height:r.bottom,right:/e/.test(t)?r.left+n.width:r.right},a=o?ht(o):i,s={top:Vp(i.top,a.top),left:Vp(i.left,a.left),bottom:Gp(i.bottom,a.bottom),right:Gp(i.right,a.right)};return Ba(s)}function ec(t,e){return t===void 0?eT:t}function aT(t,e){var n,o,r,i;return typeof e=="object"?(n=ec(e.left),o=ec(e.right),r=ec(e.top),i=ec(e.bottom)):n=o=r=i=ec(e),{x:t.x-n,y:t.y-r,width:t.width+n+o,height:t.height+r+i}}function sT(t){return!(t.waypoints||t.type==="label")}function m2(t,e){var n=t.length===void 0?Dt(t.children,sT):t;if(n.length)return aT(je(n),e)}function cT(t,e){return d2(ht(e),ht(t))}function rd(t,e){return e||=[],t.children.filter(function(n){y(n,"bpmn:Lane")&&(rd(n,e),e.push(n))}),e}function Ti(t){return t.children.filter(function(e){return y(e,"bpmn:Lane")})}function Ro(t){return Vi(t,lT)||t}function pT(t,e){var n=Ro(t),o=rd(n,y(n,"bpmn:Process")?[]:[n]),r=ht(t),i=ht(e),a=cT(t,e),s=[],c=Re(t);return o.forEach(function(l){if(l!==t){var p=c?0:a.top,d=c?a.right:0,m=c?0:a.bottom,u=c?a.left:0,h=ht(l);a.top&&(pi(h.bottom-r.top)<10&&(m=i.top-h.bottom),pi(h.top-r.top)<5&&(p=i.top-h.top)),a.left&&(pi(h.right-r.left)<10&&(d=i.left-h.right),pi(h.left-r.left)<5&&(u=i.left-h.left)),a.bottom&&(pi(h.top-r.bottom)<10&&(p=i.bottom-h.top),pi(h.bottom-r.bottom)<5&&(m=i.bottom-h.bottom)),a.right&&(pi(h.left-r.right)<10&&(u=i.right-h.left),pi(h.right-r.right)<5&&(d=i.right-h.right)),(p||d||m||u)&&s.push({shape:l,newBounds:oT(l,{top:p,right:d,bottom:m,left:u})})}}),s}function _u(t,e){q.call(this,t);function n(o,r){var i=Re(o),a=Ti(r),s=[],c=[],l=[],p=[];if(si(a,function(g){return i?g.y>o.y?c.push(g):s.push(g):g.x>o.x?p.push(g):l.push(g),g.children}),a.length){var d=i?c.length&&s.length?o.height/2:o.height:p.length&&l.length?o.width/2:o.width,m,u,h,f;s.length&&(m=e.calculateAdjustments(s,"y",d,o.y-10),e.makeSpace(m.movingShapes,m.resizingShapes,{x:0,y:d},"s")),c.length&&(u=e.calculateAdjustments(c,"y",-d,o.y+o.height+10),e.makeSpace(u.movingShapes,u.resizingShapes,{x:0,y:-d},"n")),l.length&&(h=e.calculateAdjustments(l,"x",d,o.x-10),e.makeSpace(h.movingShapes,h.resizingShapes,{x:d,y:0},"e")),p.length&&(f=e.calculateAdjustments(p,"x",-d,o.x+o.width+10),e.makeSpace(f.movingShapes,f.resizingShapes,{x:-d,y:0},"w"))}}this.postExecuted("shape.delete",dT,function(o){var r=o.context,i=r.hints,a=r.shape,s=r.oldParent;y(a,"bpmn:Lane")&&(i&&i.nested||n(a,s))})}function fp(t,e){e.invoke(q,this),this._bpmnReplace=t;var n=this;this.postExecuted("elements.create",fv,function(o){var r=o.elements;r.filter(function(i){var a=i.host;return gv(i,a)}).map(function(i){return r.indexOf(i)}).forEach(function(i){o.elements[i]=n._replaceShape(r[i])})},!0),this.preExecute("elements.move",fv,function(o){var r=o.shapes,i=o.newHost;r.forEach(function(a,s){var c=a.host;gv(a,uT(r,c)?c:i)&&(r[s]=n._replaceShape(a))})},!0)}function mT(t){var e=Y(t).eventDefinitions;return e&&e[0]}function gv(t,e){return!Bt(t)&&y(t,"bpmn:BoundaryEvent")&&!e}function uT(t,e){return t.indexOf(e)!==-1}function Eu(t,e,n){q.call(this,t);function o(r,i,a){var s=i.waypoints,c,l,p,d,m,u,h,f=r.outgoing.slice(),g=r.incoming.slice(),x=xt(a.width)?vt(a):a,k=ru(s,x);if(k){if(c=s.slice(0,k.index),l=s.slice(k.index+ +!!k.bendpoint),!c.length||!l.length)return;p=k.bendpoint?s[k.index]:x,(c.length===1||!yv(r,c[c.length-1]))&&c.push(vv(p)),(l.length===1||!yv(r,l[0]))&&l.unshift(vv(p))}d=i.source,m=i.target,e.canConnect(d,r,i)&&(n.reconnectEnd(i,r,c||x),u=i),e.canConnect(r,m,i)&&(u?h=n.connect(r,m,{type:i.type,waypoints:l}):(n.reconnectStart(i,r,l||x),h=i));var _=[].concat(u&&Dt(g,function(w){return w.source===u.source})||[],h&&Dt(f,function(w){return w.target===h.target})||[]);_.length&&n.removeElements(_)}this.preExecute("elements.move",function(r){var i=r.newParent,a=r.shapes,s=r.delta,c=a[0];if(c&&i){i&&i.waypoints&&(r.newParent=i=i.parent);var l=vt(c),p={x:l.x+s.x,y:l.y+s.y},d=ce(i.children,function(m){return e.canInsert(a,m)&&ru(m.waypoints,p)});d&&(r.targetFlow=d,r.position=p)}},!0),this.postExecuted("elements.move",function(r){var i=r.shapes,a=r.targetFlow,s=r.position;a&&o(i[0],a,s)},!0),this.preExecute("shape.create",function(r){var i=r.parent,a=r.shape;e.canInsert(a,i)&&(r.targetFlow=i,r.parent=i.parent)},!0),this.postExecuted("shape.create",function(r){var i=r.shape,a=r.targetFlow,s=r.position;a&&o(i,a,s)},!0)}function yv(t,e){var n=e.x,o=e.y;return n>=t.x&&n<=t.x+t.width&&o>=t.y&&o<=t.y+t.height}function vv(t){return P({},t)}function Su(t,e){q.call(this,t),this.preExecuted("connection.create",function(n){var o=n.context,r=o.connection,i=o.source,a=o.target,s=o.hints;if(!(s&&s.createElementsBehavior===!1)&&Za(r)){var c=[];c=y(i,"bpmn:EventBasedGateway")?a.incoming.filter(l=>l!==r&&Za(l)):a.incoming.filter(l=>l!==r&&Za(l)&&y(l.source,"bpmn:EventBasedGateway")),c.forEach(function(l){e.removeConnection(l)})}}),this.preExecuted("shape.replace",function(n){var o=n.context.newShape;y(o,"bpmn:EventBasedGateway")&&o.outgoing.filter(Za).reduce(function(r,i){return r.includes(i.target)?r:r.concat(i.target)},[]).forEach(function(r){r.incoming.filter(Za).forEach(function(i){let a=r.incoming.filter(Za).filter(function(s){return s.source===o});(i.source!==o||a.length>1)&&e.removeConnection(i)})})})}function Za(t){return y(t,"bpmn:SequenceFlow")}function u2(t,e,n){e.on(["create.hover","create.move","create.out","create.end","shape.move.hover","shape.move.move","shape.move.out","shape.move.end"],Ul,function(o){var r=o.context.shape||o.shape,i=o.hover;y(i,"bpmn:Lane")&&!At(r,["bpmn:Lane","bpmn:Participant"])&&(o.hover=Ro(i),o.hoverGfx=t.getGraphics(o.hover));var a=n.getRootElement();i&&i!==a&&(r.labelTarget||At(r,["bpmn:Group","bpmn:TextAnnotation"]))&&(o.hover=a,o.hoverGfx=t.getGraphics(o.hover))}),e.on(["connect.hover","connect.out","connect.end","connect.cleanup","global-connect.hover","global-connect.out","global-connect.end","global-connect.cleanup"],Ul,function(o){var r=o.hover;y(r,"bpmn:Lane")&&(o.hover=Ro(r)||r,o.hoverGfx=t.getGraphics(o.hover))}),e.on(["bendpoint.move.hover"],Ul,function(o){var r=o.context,i=o.hover,a=r.type;y(i,"bpmn:Lane")&&/reconnect/.test(a)&&(o.hover=Ro(i)||i,o.hoverGfx=t.getGraphics(o.hover))}),e.on(["connect.start"],Ul,function(o){var r=o.context,i=r.start;y(i,"bpmn:Lane")&&(r.start=Ro(i)||i)}),e.on("shape.move.start",bv,function(o){var r=o.shape;y(r,"bpmn:Lane")&&(o.shape=Ro(r)||r)}),e.on("spaceTool.move",bv,function(o){var r=o.hover;r&&y(r,"bpmn:Lane")&&(o.hover=Ro(r))})}function Tu(t,e,n,o){n.invoke(q,this);function r(s,c){var l=Y(s),p=c.categoryValue||l.categoryValueRef;p||=p2(t,l);var d=c.category||p.$parent||l2(t);l.categoryValueRef=p,p.$parent=d,c.categoryValue=p,c.category=d}function i(s,c){var l=Y(s),p=c.categoryValue||l.categoryValueRef,d=c.category||p&&p.$parent;p&&(c.categoryValue=p,c.category=d,l.categoryValueRef=null)}this.execute("label.create",function(s){var c=s.context,l=c.labelTarget;y(l,"bpmn:Group")&&r(l,c)}),this.revert("label.create",function(s){var c=s.context,l=c.labelTarget;y(l,"bpmn:Group")&&i(l,c)}),this.execute("shape.delete",function(s){var c=s.context,l=c.shape,p=Y(l);if(y(l,"bpmn:Group")&&!l.labelTarget){var d=c.categoryValue=p.categoryValueRef;d&&(c.category=d.$parent,p.categoryValueRef=null)}}),this.reverted("shape.delete",function(s){var c=s.context,l=c.shape;if(y(l,"bpmn:Group")&&!l.labelTarget){var p=c.category,d=c.categoryValue,m=Y(l);d&&(m.categoryValueRef=d,d.$parent=p)}}),this.execute("shape.create",function(s){var c=s.context,l=c.shape,p=c.hints||{};y(l,"bpmn:Group")&&!l.labelTarget&&(p.createElementsBehavior!==!1||Y(l).categoryValueRef||c.categoryValue)&&r(l,c)}),this.reverted("shape.create",function(s){var c=s.context,l=c.shape,p=c.hints||{};y(l,"bpmn:Group")&&!l.labelTarget&&(p.createElementsBehavior!==!1||Y(l).categoryValueRef||c.categoryValue)&&i(l,c)}),this.executed(["shape.move","shape.resize"],function(s){var c=s.context,l=c.shape;!y(l,"bpmn:Group")||l.labelTarget||Y(l).categoryValueRef||r(l,c)}),this.reverted(["shape.move","shape.resize"],function(s){var c=s.context,l=c.shape;y(l,"bpmn:Group")&&!l.labelTarget&&c.categoryValue&&i(l,c)});function a(s,c){var l=t.create(s.$type);return o.copyElement(s,l,null,c)}e.on("copyPaste.copyElement",xv,function(s){var c=s.descriptor,l=s.element;if(y(l,"bpmn:Group")&&!l.labelTarget){var p=Y(l);if(p.categoryValueRef){var d=p.categoryValueRef;c.categoryValue=a(d,!0),d.$parent&&(c.category=a(d.$parent,!0))}}}),e.on("copyPaste.pasteElement",xv,function(s){var c=s.descriptor,l=c.businessObject,p=c.categoryValue,d=c.category;p&&=l.categoryValueRef=a(p),d&&(p.$parent=a(d)),delete c.category,delete c.categoryValue})}function Cu(t,e,n,o){var r=(o.y-n.y)*(e.x-t.x)-(o.x-n.x)*(e.y-t.y),i,a,s,c;return r==0?null:(i=t.y-n.y,a=t.x-n.x,c=(o.x-n.x)*i-(o.y-n.y)*a,s=c/r,{x:Math.round(t.x+s*(e.x-t.x)),y:Math.round(t.y+s*(e.y-t.y))})}function h2(t){function e(o,r,i){var a={x:i.x,y:i.y-50},s={x:i.x-50,y:i.y},c=Cu(o,r,i,a),l=Cu(o,r,i,s);o.original=c&&l?kv(c,i)>kv(l,i)?l:c:c||l}function n(o){var r=o.waypoints;e(r[0],r[1],vt(o.source)),e(r[r.length-1],r[r.length-2],vt(o.target))}t.on("bpmnElement.added",function(o){var r=o.element;r.waypoints&&n(r)})}function kv(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function Bu(t){q.call(this,t);var e=["bpmn:Participant","bpmn:Lane"];this.executed(["shape.move","shape.create","shape.resize"],function(n){var o=n.context.shape,r=Y(o),i=Tt(o);if(At(r,e)){var a=i.get("isHorizontal");a===void 0&&(a=!0),i.set("isHorizontal",a)}})}function _v(t){return t**2}function nc(t,e){return f2(_v(t.x-e.x)+_v(t.y-e.y))}function fT(t,e){var n=0,o,r,i,a,s,c,l,p,d,m,u;for(n=0;n<e.length-1;n++){if(o=e[n],r=e[n+1],Sv(o,r)?l=[o]:(i=nc(t,o),a=nc(t,r),c=g2(i,a),l=gT(o,r,t,c)),l.length<1)throw Error("expected between [1, 2] circle -> line intersections");l.length===1&&(p={type:"bendpoint",position:l[0],segmentIndex:n,bendpointIndex:Sv(o,l[0])?n:n+1}),l.length===2&&(s=vT(l[0],l[1]),p={type:"segment",position:s,segmentIndex:n,relativeLocation:nc(o,s)/nc(o,r)}),d=nc(p.position,t),(!u||m>d)&&(u=p,m=d)}return u}function gT(t,e,n,o){var r=e.x-t.x,i=e.y-t.y,a=n.x-t.x,s=n.y-t.y,c=r*r+i*i,l=r*a+i*s,p=a*a+s*s-o*o,d=l/c,m=p/c,u=d*d-m;if(u<0&&u>-1e-6&&(u=0),u<0)return[];var h=f2(u),f=-d+h,g=-d-h,x={x:t.x-r*f,y:t.y-i*f};return u===0?[x]:[x,{x:t.x-r*g,y:t.y-i*g}].filter(function(k){return yT(k,t,e)})}function yT(t,e,n){return Ev(t.x,e.x,n.x)&&Ev(t.y,e.y,n.y)}function Ev(t,e,n){return t>=g2(e,n)-Up&&t<=hT(e,n)+Up}function vT(t,e){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function Sv(t,e){return wv(t.x-e.x)<=Up&&wv(t.y-e.y)<=Up}function bT(t,e,n,o){var r=n.segmentIndex,i=e.length-t.length;if(o.segmentMove){var a=o.segmentMove.segmentStartIndex,s=o.segmentMove.newSegmentStartIndex;return r===a?s:r>=s?r+i<s?s:r+i:r}if(o.bendpointMove){var c=o.bendpointMove.insert,l=o.bendpointMove.bendpointIndex,p;return i===0?r:(r>=l&&(p=c?r+1:r-1),r<l&&(p=r,c&&n.type!=="bendpoint"&&l-1===r&&v2(e,l)<n.relativeLocation&&p++),p)}return i===0?r:o.connectionStart&&r===0?0:o.connectionEnd&&r===t.length-2?e.length-2:Math.floor((e.length-2)/2)}function y2(t,e,n,o){var r=0,i=0,a={point:t,delta:{x:0,y:0}},s=fT(t,n),c=s.segmentIndex,l=bT(n,e,s,o);if(l<0||l>e.length-2||l===null)return a;var p=Tv(n,c),d=Tv(e,l),m=s.position,u=kT(p,m),h=xT(p,d);if(s.type==="bendpoint"){var f=e.length-n.length,g=s.bendpointIndex,x=n[g];if(e.indexOf(x)!==-1)return a;if(f===0){var k=e[g];return r=k.x-s.position.x,i=k.y-s.position.y,{delta:{x:r,y:i},point:{x:t.x+r,y:t.y+i}}}f<0&&g!==0&&g<n.length-1&&(u=v2(n,g))}var _={x:(d[1].x-d[0].x)*u+d[0].x,y:(d[1].y-d[0].y)*u+d[0].y},w=c4({x:t.x-m.x,y:t.y-m.y},h);return r=_.x+w.x-t.x,i=_.y+w.y-t.y,{point:Tr(_),delta:Tr({x:r,y:i})}}function v2(t,e){var n=ps(t[e-1],t[e]);return n/(n+ps(t[e],t[e+1]))}function xT(t,e){var n=X0(t);return X0(e)-n}function Tv(t,e){return[t[e],t[e+1]]}function kT(t,e){var n=ps(t[0],t[1]),o=ps(t[0],e);return n===0?0:o/n}function wT(t,e,n,o){return y2(vt(t),e,n,o).delta}function Oc(t,e,n){var o=Oa(e),r=Oa(n),i=ko(t,o),a={x:i.x*(n.width/e.width),y:i.y*(n.height/e.height)};return Tr({x:r.x+a.x,y:r.y+a.y})}function Cv(t,e,n){var o=Oa(t),r=Oa(e),i=Oa(n),a=ko(t,o),s=ko(o,r),c=_T(o,e,n);if(c)return c;var l={x:s.x*(n.width/e.width),y:s.y*(n.height/e.height)},p={x:i.x+l.x,y:i.y+l.y};return Tr({x:p.x+a.x-t.x,y:p.y+a.y-t.y})}function _T(t,e,n){var o=ht(e),r=ht(n);if(ET(o,r))return null;var i=dn(e,t),a,s,c;if(i==="top")a={x:0,y:r.bottom-o.bottom};else if(i==="bottom")a={x:0,y:r.top-o.top};else if(i==="right")a={x:r.left-o.left,y:0};else if(i==="left")a={x:r.right-o.right,y:0};else return null;return s={x:t.x+a.x,y:t.y+a.y},c=dn(n,s),c===i?a:null}function ET(t,e){return ST(t,e)||TT(t,e)}function ST(t,e){return t.right!==e.right&&t.left!==e.left}function TT(t,e){return t.top!==e.top&&t.bottom!==e.bottom}function b2(t,e){if(e.length)return x2(t,RT(t,e))}function CT(t){return[[{x:t.x,y:t.y},{x:t.x+(t.width||0),y:t.y}],[{x:t.x+(t.width||0),y:t.y},{x:t.x+(t.width||0),y:t.y+(t.height||0)}],[{x:t.x,y:t.y+(t.height||0)},{x:t.x+(t.width||0),y:t.y+(t.height||0)}],[{x:t.x,y:t.y},{x:t.x,y:t.y+(t.height||0)}]]}function BT(t){for(var e=[],n=0;n<t.length-1;n++)e.push([t[n],t[n+1]]);return e}function RT(t,e){var n=e.map(function(o){return{line:o,distance:ps(t,x2(t,o))}});return vo(n,"distance")[0].line}function x2(t,e){var n=e[0],o=e[1],r=o.x-n.x,i=o.y-n.y,a=r*r+i*i;if(a===0)return{x:n.x,y:n.y};var s=((t.x-n.x)*r+(t.y-n.y)*i)/a;return s=Math.max(0,Math.min(1,s)),{x:n.x+s*r,y:n.y+s*i}}function Ru(t,e,n,o){q.call(this,t),this.postExecute("element.updateProperties",r),this.postExecute("element.updateModdleProperties",a=>{Y(a.context.element)===a.context.moddleElement&&r(a)});function r(a){var s=a.context,c=s.element,l=s.properties;if(Bv in l&&e.updateLabel(c,l[Bv]),Rv in l&&y(c,"bpmn:TextAnnotation")){var p=o.getTextAnnotationBounds({x:c.x,y:c.y,width:c.width,height:c.height},l[Rv]||"");e.updateLabel(c,l.text,p)}}this.postExecute(["shape.create","connection.create"],function(a){var s=a.context;if((s.hints||{}).createElementsBehavior!==!1){var c=s.shape||s.connection;!Bt(c)&&Fo(c)&&Dn(c)&&e.updateLabel(c,Dn(c))}}),this.postExecute("shape.delete",function(a){var s=a.context,c=s.labelTarget,l=s.hints||{};c&&l.unsetLabel!==!1&&e.updateLabel(c,null,null,{removeShape:!1})});function i(a){var s=a.context,c=s.connection,l=c.label,p=P({},s.hints),d=s.newWaypoints||c.waypoints,m=s.oldWaypoints;return p.startChanged===void 0&&(p.startChanged=!!p.connectionStart),p.endChanged===void 0&&(p.endChanged=!!p.connectionEnd),wT(l,d,m,p)}this.postExecute(["connection.layout","connection.updateWaypoints"],function(a){var s=a.context;if((s.hints||{}).labelBehavior!==!1){var c=s.connection.label,l;c&&c.parent&&(l=i(a),e.moveShape(c,l))}}),this.postExecute(["shape.replace"],function(a){var s=a.context,c=s.newShape,l=s.oldShape,p=Y(c);p&&Fo(p)&&l.label&&c.label&&(c.label.x=l.label.x,c.label.y=l.label.y)}),this.preExecute("shape.resize",function(a){var s=a.context,c=s.shape,l=s.hints||{};if(Bt(c)&&!l.autoResize){var p=s.newBounds,d=o.getDimensions(Dn(c)||"",{box:p,style:o.getExternalStyle()}),m=Math.ceil(d.height),u=p.y!==c.y,h=c.y+c.height;s.newBounds={width:p.width,height:m,x:p.x,y:u?h-m:p.y}}}),this.postExecute("shape.resize",function(a){var s=a.context,c=s.shape,l=s.newBounds,p=s.oldBounds;if(zs(c)){var d=c.label,m=MT(b2(vt(d),CT(p)),p,l);e.moveShape(d,m)}})}function MT(t,e,n){var o=Oc(t,e,n);return Tr(ko(o,t))}function AT(t,e,n,o){return y2(t,e,n,o).point}function Mu(t,e){q.call(this,t);function n(o,r){var i=o.context,a=i.connection,s=P({},i.hints),c=i.newWaypoints||a.waypoints,l=i.oldWaypoints;return s.startChanged===void 0&&(s.startChanged=!!s.connectionStart),s.endChanged===void 0&&(s.endChanged=!!s.connectionEnd),AT(r,c,l,s)}this.postExecute(["connection.layout","connection.updateWaypoints"],function(o){var r=o.context.connection,i=r.outgoing;r.incoming.forEach(function(a){var s=a.waypoints[a.waypoints.length-1],c=n(o,s),l=[].concat(a.waypoints.slice(0,-1),[c]);e.updateWaypoints(a,l)}),i.forEach(function(a){var s=a.waypoints[0],c=[n(o,s)].concat(a.waypoints.slice(1));e.updateWaypoints(a,c)})}),this.postExecute(["connection.move"],function(o){var r=o.context,i=r.connection,a=i.outgoing,s=i.incoming,c=r.delta;s.forEach(function(l){var p=l.waypoints[l.waypoints.length-1],d={x:p.x+c.x,y:p.y+c.y},m=[].concat(l.waypoints.slice(0,-1),[d]);e.updateWaypoints(l,m)}),a.forEach(function(l){var p=l.waypoints[0],d=[{x:p.x+c.x,y:p.y+c.y}].concat(l.waypoints.slice(1));e.updateWaypoints(l,d)})})}function id(t,e,n){var o=sd(t),r=w2(o,e),i=o[0];return r.length?r[r.length-1]:Oc(i.original||i,n,e)}function ad(t,e,n){var o=sd(t),r=w2(o,e),i=o[o.length-1];return r.length?r[0]:Oc(i.original||i,n,e)}function Rh(t,e,n){var o=sd(t),r=k2(e,n),i=o[0];return Oc(i.original||i,r,e)}function Mh(t,e,n){var o=sd(t),r=k2(e,n),i=o[o.length-1];return Oc(i.original||i,r,e)}function k2(t,e){return{x:t.x-e.x,y:t.y-e.y,width:t.width,height:t.height}}function sd(t){var e=t.waypoints;if(!e.length)throw Error("connection#"+t.id+": no waypoints");return e}function w2(t,e){var n=tn(t,DT);return Dt(n,function(o){return PT(o,e)})}function PT(t,e){return dn(e,t,1)==="intersect"}function DT(t){return t.original||t}function Au(t,e){q.call(this,t),this.postExecute("shape.replace",function(n){var o=n.oldShape,r=n.newShape;if(jT(o,r)){var i=$T(o);i.incoming.forEach(function(a){var s=ad(a,r,o);e.reconnectEnd(a,r,s)}),i.outgoing.forEach(function(a){var s=id(a,r,o);e.reconnectStart(a,r,s)})}},!0)}function jT(t,e){return y(t,"bpmn:Participant")&&Ot(t)&&y(e,"bpmn:Participant")&&!Ot(e)}function $T(t){var e=Ha([t],!1),n=[],o=[];return e.forEach(function(r){r!==t&&(r.incoming.forEach(function(i){y(i,"bpmn:MessageFlow")&&n.push(i)}),r.outgoing.forEach(function(i){y(i,"bpmn:MessageFlow")&&o.push(i)}))},[]),{incoming:n,outgoing:o}}function _2(t){let e=Y(t);if(!y(e,"bpmn:BoundaryEvent")&&!(y(e,"bpmn:StartEvent")&&mn(e.$parent)))return!1;let n=e.get("eventDefinitions");return!n||!n.length?!1:zT.some(o=>y(n[0],o))}function E2(t){return y(t,"bpmn:BoundaryEvent")?"cancelActivity":"isInterrupting"}function Pu(t,e){t.invoke(q,this),this.postExecuted("shape.replace",function(n){let o=n.context.oldShape,r=n.context.newShape,i=n.context.hints;if(!_2(r))return;let a=E2(r);if(i.targetElement&&i.targetElement[a]!==void 0)return;let s=Y(o).get(a);s!==Y(r).get(a)&&e.updateProperties(r,{[a]:s})})}function Du(t,e){q.call(this,t),this.preExecute("shape.resize",function(n){var o=n.shape,r=Tt(o),i=r&&r.get("label");i&&i.get("bounds")&&e.updateModdleProperties(o,i,{bounds:void 0})},!0)}function ju(t,e,n){q.call(this,t),this.preExecute("shape.delete",function(o){var r=o.context.shape;if(r.incoming.length===1&&r.outgoing.length===1){var i=r.incoming[0],a=r.outgoing[0];if(y(i,"bpmn:SequenceFlow")&&y(a,"bpmn:SequenceFlow")&&e.canConnect(i.source,a.target,i)){var s=OT(i.waypoints,a.waypoints);n.reconnectEnd(i,a.target,s)}}})}function Ja(t){return t.original||t}function OT(t,e){var n=Cu(Ja(t[t.length-2]),Ja(t[t.length-1]),Ja(e[1]),Ja(e[0]));return n?[].concat(t.slice(0,t.length-1),[n],e.slice(1)):[Ja(t[0]),Ja(e[e.length-1])]}function $u(t,e){q.call(this,t),this.preExecute("shape.delete",function(n){var o=n.shape,r=o.parent;y(o,"bpmn:Participant")&&(n.collaborationRoot=r)},!0),this.postExecute("shape.delete",function(n){var o=n.collaborationRoot;if(o&&!o.businessObject.participants.length){var r=e.makeProcess(),i=o.children.slice();e.moveElements(i,{x:0,y:0},r)}},!0)}function zu(t,e,n,o){q.call(this,t);var r=o.get("dragging",!1);function i(c){var l=c.source,p=c.target;if(c.parent){var d,m;y(c,"bpmn:SequenceFlow")&&(n.canConnectSequenceFlow(l,p)||(m=!0),n.canConnectMessageFlow(l,p)&&(d="bpmn:MessageFlow")),y(c,"bpmn:MessageFlow")&&(n.canConnectMessageFlow(l,p)||(m=!0),n.canConnectSequenceFlow(l,p)&&(d="bpmn:SequenceFlow")),m&&e.removeConnection(c),d&&e.connect(l,p,{type:d,waypoints:c.waypoints.slice()})}}function a(c){var l=c.context,p=l.connection,d=l.newSource||p.source,m=l.newTarget||p.target,u=n.canConnect(d,m),h;u&&u.type!==p.type&&(h=e.connect(d,m,{type:u.type,associationDirection:u.associationDirection,waypoints:p.waypoints.slice()}),p.parent&&e.removeConnection(p),l.connection=h,r&&s(p,h))}function s(c,l){var p=r.context(),d=p&&p.payload.previousSelection,m;d&&d.length&&(m=d.indexOf(c),m!==-1&&d.splice(m,1,l))}this.postExecuted("elements.move",function(c){var l=c.closure.allConnections;R(l,i)},!0),this.preExecute("connection.reconnect",a),this.postExecuted("element.updateProperties",function(c){var l=c.context,p=l.properties,d=l.element,m=d.businessObject,u;p.default&&(u=ce(d.outgoing,Yr({id:d.businessObject.default.id})),u&&e.updateProperties(u,{conditionExpression:void 0})),p.conditionExpression&&m.sourceRef.default===m&&e.updateProperties(d.source,{default:void 0})})}function gp(t,e,n,o,r,i){o.invoke(q,this),this._bpmnReplace=t,this._elementRegistry=n,this._selection=i,this.postExecuted(["elements.create"],500,function(a){var s=a.context,c=s.parent,l=s.elements,p=Pn(l,function(d,m){var u=e.canReplace([m],m.host||m.parent||c);return u?d.concat(u.replacements):d},[]);p.length&&this._replaceElements(l,p)},this),this.postExecuted(["elements.move"],500,function(a){var s=a.context,c=s.newParent,l=s.newHost,p=[];R(s.closure.topLevel,function(m){p=mn(m)?p.concat(m.children):p.concat(m)}),p.length===1&&l&&(c=l);var d=e.canReplace(p,c);d&&this._replaceElements(p,d.replacements,l)},this),this.postExecute(["shape.replace"],1500,function(a){var s=a.context,c=s.oldShape,l=s.newShape,p=c.attachers,d;p&&p.length&&(d=e.canReplace(p,l),this._replaceElements(p,d.replacements))},this),this.postExecuted(["shape.replace"],1500,function(a){var s=a.context,c=s.oldShape,l=s.newShape;r.unclaimId(c.businessObject.id,c.businessObject),r.updateProperties(l,{id:c.id})})}function C2(t){t.on("resize.start",LT,function(e){var n=e.context,o=n.shape,r=n.direction,i=n.balanced;(y(o,"bpmn:Lane")||y(o,"bpmn:Participant"))&&(n.resizeConstraints=GT(o,r,i)),y(o,"bpmn:SubProcess")&&Ot(o)&&(n.minDimensions=S2),y(o,"bpmn:TextAnnotation")&&(n.minDimensions=T2)})}function B2(t,e,n,o){var r=t[e];t[e]=r===void 0?n:o(n,r)}function Qa(t,e,n){return B2(t,e,n,IT)}function ts(t,e,n){return B2(t,e,n,HT)}function GT(t,e,n){var o=Ro(t),r=!0,i=!0,a=rd(o,[o]),s=ht(t),c={},l={},p=Re(t),d=p?Ah:Ph;/n/.test(e)?l.top=s.bottom-d.height:/e/.test(e)?l.right=s.left+d.width:/s/.test(e)?l.bottom=s.top+d.height:/w/.test(e)&&(l.left=s.right-d.width),a.forEach(function(h){var f=ht(h);p?(f.top<s.top-10&&(r=!1),f.bottom>s.bottom+10&&(i=!1)):(f.left<s.left-10&&(r=!1),f.right>s.right+10&&(i=!1)),/n/.test(e)&&(n&&di(s.top-f.bottom)<10&&ts(c,"top",f.top+d.height),di(s.top-f.top)<5&&Qa(l,"top",f.bottom-d.height)),/e/.test(e)&&(n&&di(s.right-f.left)<10&&Qa(c,"right",f.right-d.width),di(s.right-f.right)<5&&ts(l,"right",f.left+d.width)),/s/.test(e)&&(n&&di(s.bottom-f.top)<10&&Qa(c,"bottom",f.bottom-d.height),di(s.bottom-f.bottom)<5&&ts(l,"bottom",f.top+d.height)),/w/.test(e)&&(n&&di(s.left-f.right)<10&&ts(c,"left",f.left+d.width),di(s.left-f.left)<5&&Qa(l,"left",f.right-d.width))});var m=o.children.filter(function(h){return!h.hidden&&!h.waypoints&&(y(h,"bpmn:FlowElement")||y(h,"bpmn:Artifact"))}),u=p?FT:WT;return m.forEach(function(h){var f=ht(h);/n/.test(e)&&(!p||r)&&Qa(l,"top",f.top-u.top),/e/.test(e)&&(p||i)&&ts(l,"right",f.right+u.right),/s/.test(e)&&(!p||i)&&ts(l,"bottom",f.bottom+u.bottom),/w/.test(e)&&(p||r)&&Qa(l,"left",f.left-u.left)}),{min:l,max:c}}function R2(t,e){t.on("resize.start",Mv+500,function(n){var o=n.context,r=o.shape;(y(r,"bpmn:Lane")||y(r,"bpmn:Participant"))&&(o.balanced=!Va(n))}),t.on("resize.end",Mv,function(n){var o=n.context,r=o.shape,i=o.canExecute,a=o.newBounds;if(y(r,"bpmn:Lane")||y(r,"bpmn:Participant"))return i&&(a=am(a),e.resizeLane(r,a,o.balanced)),!1})}function Ou(t,e,n,o,r){n.invoke(q,this);function i(p){return At(p,["bpmn:ReceiveTask","bpmn:SendTask"])||UT(p,["bpmn:ErrorEventDefinition","bpmn:EscalationEventDefinition","bpmn:MessageEventDefinition","bpmn:SignalEventDefinition"])}function a(p){var d=t.getDefinitions().get("rootElements");return!!ce(d,Yr({id:p.id}))}function s(p){if(y(p,"bpmn:ErrorEventDefinition"))return"errorRef";if(y(p,"bpmn:EscalationEventDefinition"))return"escalationRef";if(y(p,"bpmn:MessageEventDefinition"))return"messageRef";if(y(p,"bpmn:SignalEventDefinition"))return"signalRef"}function c(p){if(At(p,["bpmn:ReceiveTask","bpmn:SendTask"]))return p.get("messageRef");var d=p.get("eventDefinitions")[0];return d.get(s(d))}function l(p,d){if(At(p,["bpmn:ReceiveTask","bpmn:SendTask"]))return p.set("messageRef",d);var m=p.get("eventDefinitions")[0];return m.set(s(m),d)}this.executed(["shape.create","element.updateProperties","element.updateModdleProperties"],function(p){var d=p.shape||p.element;if(i(d)){var m=c(Y(d)),u;m&&!a(m)&&(u=t.getDefinitions().get("rootElements"),Te(u,m),p.addedRootElement=m)}},!0),this.reverted(["shape.create","element.updateProperties","element.updateModdleProperties"],function(p){var d=p.addedRootElement;if(d){var m=t.getDefinitions().get("rootElements");we(m,d)}},!0),e.on("copyPaste.copyElement",function(p){var d=p.descriptor,m=p.element;if(!m.labelTarget&&i(m)){var u=c(Y(m));u&&(d.referencedRootElement=u)}}),e.on("copyPaste.pasteElement",VT,function(p){var d=p.descriptor,m=d.businessObject,u=d.referencedRootElement;u&&(a(u)||(u=o.copyElement(u,r.create(u.$type))),l(m,u),delete d.referencedRootElement)})}function UT(t,e){return bt(e)||(e=[e]),Ho(e,function(n){return Wi(t,n)})}function A2(t){t.on("spaceTool.getMinDimensions",function(e){var n=e.shapes,o=e.axis,r=e.start,i={};return R(n,function(a){var s=a.id;y(a,"bpmn:Participant")&&(i[s]=KT(a,o,r)),y(a,"bpmn:Lane")&&(i[s]=Re(a)?Ah:Ph),y(a,"bpmn:SubProcess")&&Ot(a)&&(i[s]=S2),y(a,"bpmn:TextAnnotation")&&(i[s]=T2),y(a,"bpmn:Group")&&(i[s]=NT)}),i})}function qT(t){return t==="x"}function KT(t,e,n){var o=Re(t);if(!ZT(t))return o?yp:vp;var r=qT(e),i={};return i=r?o?yp:{width:YT(t,n,r),height:vp.height}:o?{width:yp.width,height:XT(t,n,r)}:vp,i}function XT(t,e,n){var o=JT(t,e,n);return M2(yp.height,o)}function YT(t,e,n){var o=QT(t,e,n);return M2(vp.width,o)}function ZT(t){return!!Ti(t).length}function JT(t,e,n){var o=Dh(Ti(t),e,n);return t.height-o.height+Ah.height}function QT(t,e,n){var o=Dh(Ti(t),e,n);return t.width-o.width+Ph.width}function Dh(t,e,n){for(var o=0,r,i;o<t.length;o++)if(r=t[o],!n&&e>=r.y&&e<=r.y+r.height||n&&e>=r.x&&e<=r.x+r.width)return i=Ti(r),i.length?Dh(i,e,n):r}function Pr(t,e,n,o,r,i,a){q.call(this,e),this._canvas=t,this._eventBus=e,this._modeling=n,this._elementFactory=o,this._bpmnFactory=r,this._bpmnjs=i,this._elementRegistry=a;var s=this;function c(d){return y(d,"bpmn:SubProcess")&&!Ot(d)}function l(d){var m=d.shape,u=d.newRootElement,h=Y(m);u=s._addDiagram(u||h),d.newRootElement=t.addRootElement(u)}function p(d){var m=d.shape,u=Y(m);s._removeDiagram(u);var h=d.newRootElement=a.get(xo(u));t.removeRootElement(h)}this.executed("shape.create",function(d){var m=d.shape;c(m)&&l(d)},!0),this.postExecuted("elements.create",function(d){var m=d.elements;R(m,function(u){if(c(u)){var h=a.get(xo(u));if(h&&u.children&&u.children.length){var f=Dv(u);s._showRecursively(f),s._moveChildrenToShape(f,h)}}})},!0),this.reverted("shape.create",function(d){var m=d.shape;c(m)&&p(d)},!0),this.preExecute("shape.delete",function(d){var m=d.shape;y(m,"bpmn:SubProcess")&&Ot(m)&&R(Wa([m]),u=>{n.removeShape(u.annotation)})},!0),this.preExecuted("shape.delete",function(d){var m=d.shape;if(c(m)){var u=a.get(xo(m));u&&n.removeElements(u.children.slice())}},!0),this.executed("shape.delete",function(d){var m=d.shape;c(m)&&p(d)},!0),this.reverted("shape.delete",function(d){var m=d.shape;c(m)&&l(d)},!0),this.preExecuted("shape.replace",function(d){var m=d.oldShape,u=d.newShape;c(m)&&c(u)&&(d.oldRoot=t.removeRootElement(xo(m)))},!0),this.postExecuted("shape.replace",function(d){var m=d.newShape,u=d.oldRoot,h=t.findRoot(xo(m));if(u&&h){var f=u.children;n.moveElements(f,{x:0,y:0},h)}},!0),this.executed("element.updateProperties",function(d){var m=d.element;if(y(m,"bpmn:SubProcess")){var u=d.properties,h=d.oldProperties.id,f=u.id;h!==f&&($a(m)?(a.updateId(m,ei(f)),a.updateId(h,f)):a.get(ei(h))&&a.updateId(ei(h),ei(f)))}},!0),this.reverted("element.updateProperties",function(d){var m=d.element;if(y(m,"bpmn:SubProcess")){var u=d.properties,h=d.oldProperties.id,f=u.id;if(h!==f)if($a(m))a.updateId(m,ei(h)),a.updateId(f,h);else{var g=a.get(ei(f));g&&a.updateId(g,ei(h))}}},!0),e.on("element.changed",function(d){var m=d.element;if($a(m)){var u=m,h=a.get(gm(u));h&&h!==u&&e.fire("element.changed",{element:h})}}),this.executed("shape.toggleCollapse",Av,function(d){var m=d.shape;y(m,"bpmn:SubProcess")&&(Ot(m)?p(d):(l(d),s._showRecursively(m.children)))},!0),this.reverted("shape.toggleCollapse",Av,function(d){var m=d.shape;y(m,"bpmn:SubProcess")&&(Ot(m)?p(d):(l(d),s._showRecursively(m.children)))},!0),this.postExecuted("shape.toggleCollapse",t8,function(d){var m=d.shape;if(y(m,"bpmn:SubProcess")){var u=d.newRootElement;if(u)if(Ot(m))s._moveChildrenToShape(u.children.slice(),m),R(Wa(m.children),f=>{n.moveShape(f.annotation,{x:0,y:0},m.parent),R(f.associations,g=>{n.moveConnection(g,{x:0,y:0},m.parent)})});else{s._disconnectSharedAnnotations(m);var h=Dv(m);s._moveChildrenToShape(h,u)}}},!0),e.on("copyPaste.createTree",function(d){var m=d.element,u=d.children;if(c(m)){var h=xo(m),f=a.get(h);f&&u.push.apply(u,f.children)}}),e.on("copyPaste.copyElement",function(d){var m=d.descriptor,u=d.element,h=d.elements,f=u.parent;if(y(Tt(f),"bpmndi:BPMNPlane")){var g=gm(f),x=ce(h,function(k){return k.id===g});x&&(m.parent=x.id)}}),e.on("copyPaste.pasteElement",function(d){var m=d.descriptor;m.parent&&(c(m.parent)||m.parent.hidden)&&(m.hidden=!0)})}function e8(t){var e=[];return R(Wa(t),n=>{e.push(n.annotation),e.push.apply(e,n.associations)}),e}function Dv(t){return t.children.slice().concat(e8(t.children)).concat(n8(t))}function n8(t){return Dl(t.children||[],!0,-1).reduce(function(e,n){return n.label&&n.label.parent!==t&&e.push(n.label),e},[])}function Lu(t,e){t.invoke(q,this),this.postExecuted("shape.replace",function(n){var o=n.context.oldShape,r=n.context.newShape;if(y(r,"bpmn:SubProcess")&&!y(r,"bpmn:AdHocSubProcess")&&(y(o,"bpmn:Task")||y(o,"bpmn:CallActivity"))&&Ot(r)){var i=o8(r);e.createShape({type:"bpmn:StartEvent"},i,r)}})}function o8(t){return{x:t.x+t.width/6,y:t.y+t.height/2}}function Nu(t,e){q.call(this,t),this.preExecute("connection.create",function(n){let{target:o}=n;y(o,"bpmn:TextAnnotation")&&(n.parent=o.parent)},!0),this.preExecute(["shape.create","shape.resize","elements.move"],function(n){let o=n.shapes||[n.shape];o.length===1&&y(o[0],"bpmn:TextAnnotation")&&(n.hints=n.hints||{},n.hints.autoResize=!1)},!0),this.preExecute("shape.resize",function(n){var o=n.context,r=o.shape,i=o.hints||{};if(y(r,"bpmn:TextAnnotation")&&!i.autoResize){var a=o.newBounds,s=e.getTextAnnotationBounds(a,Dn(r)||""),c=a.y!==r.y&&Math.abs(a.y+a.height-(r.y+r.height))<=1,l=r.y+r.height;o.newBounds={width:a.width,height:s.height,x:a.x,y:c?l-s.height:a.y}}})}function Iu(t,e){q.call(this,t),this.postExecuted("shape.toggleCollapse",1500,function(n){var o=n.shape;if(Ot(o))return;var r=Ha(o);r.forEach(function(a){var s=a.incoming.slice(),c=a.outgoing.slice();R(s,function(l){i(l,!0)}),R(c,function(l){i(l,!1)})});function i(a,s){(r.indexOf(a.source)===-1||r.indexOf(a.target)===-1)&&(y(a,"bpmn:Association")&&(y(a.source,"bpmn:TextAnnotation")||y(a.target,"bpmn:TextAnnotation"))||(s?e.reconnectEnd(a,o,vt(o)):e.reconnectStart(a,o,vt(o))))}},!0)}function Hu(t,e,n){q.call(this,t);function o(a){a.length&&a.forEach(function(s){s.type==="label"&&!s.businessObject.name&&(s.hidden=!0)})}function r(a,s){var c=a.children,l=s,p=m2(r8(c).concat([a]));return p?(l.width=Math.max(p.width,l.width),l.height=Math.max(p.height,l.height),l.x=p.x+(p.width-l.width)/2,l.y=p.y+(p.height-l.height)/2):(l.x=a.x+(a.width-l.width)/2,l.y=a.y+(a.height-l.height)/2),l}function i(a,s){return{x:a.x+(a.width-s.width)/2,y:a.y+(a.height-s.height)/2,width:s.width,height:s.height}}this.executed(["shape.toggleCollapse"],jm,function(a){var s=a.context.shape;y(s,"bpmn:SubProcess")&&(s.collapsed?Tt(s).isExpanded=!1:(o(s.children),Tt(s).isExpanded=!0))}),this.reverted(["shape.toggleCollapse"],jm,function(a){var s=a.context.shape;s.collapsed?Tt(s).isExpanded=!1:Tt(s).isExpanded=!0}),this.postExecuted(["shape.toggleCollapse"],jm,function(a){var s=a.context.shape,c=e.getDefaultSize(s),l=s.collapsed?i(s,c):r(s,c);n.resizeShape(s,l,null,{autoResize:!s.collapsed&&"nwse"})})}function r8(t){return t.filter(function(e){return!e.hidden})}function Fu(t,e,n,o){e.invoke(q,this),this.preExecute("shape.delete",function(r){var i=r.context.shape,a=i.businessObject;Bt(i)||(y(i,"bpmn:Participant")&&Ot(i)&&n.ids.unclaim(a.processRef.id),o.unclaimId(a.id,a))}),this.preExecute("connection.delete",function(r){var i=r.context.connection.businessObject;o.unclaimId(i.id,i)}),this.preExecute("canvas.updateRoot",function(){var r=t.getRootElement(),i=r.businessObject;y(r,"bpmn:Collaboration")&&n.ids.unclaim(i.id)})}function Wu(t,e){q.call(this,t),this.preExecute("connection.delete",function(n){var o=n.context.connection,r=o.source;i8(o,r)&&e.updateProperties(r,{default:null})})}function i8(t,e){if(!y(t,"bpmn:SequenceFlow"))return!1;var n=Y(e),o=Y(t);return n.get("default")===o}function Gu(t,e){q.call(this,t);var n;function o(){return n||=new c8,n.enter(),n}function r(){if(!n)throw Error("out of bounds release");return n}function i(){if(!n)throw Error("out of bounds release");var a=n.leave();return a&&(e.updateLaneRefs(n.flowNodes,n.lanes),n=null),a}this.preExecute(jv,s8,function(){o()}),this.postExecuted(jv,a8,function(){i()}),this.preExecute(P2,function(a){var s=a.context.shape,c=r();s&&!s.labelTarget&&(y(s,"bpmn:Lane")&&c.addLane(s),y(s,"bpmn:FlowNode")&&c.addFlowNode(s))})}function c8(){this.flowNodes=[],this.lanes=[],this.counter=0,this.addLane=function(t){this.lanes.push(t)},this.addFlowNode=function(t){this.flowNodes.push(t)},this.enter=function(){this.counter++},this.leave=function(){return this.counter--,!this.counter}}function Vu(t,e){q.call(this,t);var n;function o(){return n||=new d8,n.enter(),n}function r(){if(!n)throw Error("out of bounds release");return n}function i(){if(!n)throw Error("out of bounds release");var a=n.leave();return a&&(e.updateCategoryValueRefs(Array.from(n.affectedFlowElements),Array.from(n.affectedGroupEntries.values())),n=null),a}this.preExecute($v,p8,function(){o()}),this.postExecuted($v,l8,function(){i()}),this.preExecute(D2,function(a){var s=a.context.connection||a.context.shape,c=r();s&&!s.labelTarget&&(y(s,"bpmn:FlowElement")&&c.addFlowElement(s),y(s,"bpmn:Group")&&c.addGroup(s))}),this.preExecute("label.create",function(a){var s=a.context.labelTarget;y(s,"bpmn:Group")&&r().addGroup(s)})}function d8(){this.affectedFlowElements=new Set,this.affectedGroupEntries=new Map,this.counter=0,this.addFlowElement=function(t){this.affectedFlowElements.add(t)},this.addGroup=function(t){this.affectedGroupEntries.has(t)||this.affectedGroupEntries.set(t,{categoryValue:t.businessObject.categoryValueRef,groupShape:t})},this.enter=function(){this.counter++},this.leave=function(){return this.counter--,!this.counter}}function Uu(t,e){q.call(this,t),this.postExecuted("elements.create",function(n){let o=n.context.elements;for(let r of o)m8(r)&&!h8(r)&&e.updateProperties(r,{isForCompensation:void 0})})}function m8(t){let e=Y(t);return e&&e.isForCompensation}function u8(t){return t&&y(t,"bpmn:BoundaryEvent")&&Wi(t,"bpmn:CompensateEventDefinition")}function h8(t){return t.incoming.filter(e=>u8(e.source)).length>0}function j2(t,e){var n=dn(t,e,-15);return n==="intersect"?null:n}function kn(t){Mo.call(this,t)}function g8(t){return qu(t)?null:At(t,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference","bpmn:Group","bpmn:TextAnnotation"])}function qu(t){return!t||Bt(t)}function zv(t){do{if(y(t,"bpmn:Process"))return Y(t);if(y(t,"bpmn:Participant"))return Y(t).processRef||Y(t)}while(t=t.parent)}function Ku(t){return y(t,"bpmn:TextAnnotation")}function jh(t){return y(t,"bpmn:Group")&&!t.labelTarget}function $2(t){return y(t,"bpmn:BoundaryEvent")&&ur(t,"bpmn:CompensateEventDefinition")}function cd(t){return Y(t).isForCompensation}function y8(t,e){return zv(t)===zv(e)}function v8(t){return y(t,"bpmn:InteractionNode")&&!y(t,"bpmn:BoundaryEvent")&&(!y(t,"bpmn:Event")||y(t,"bpmn:ThrowEvent")&&O2(t,"bpmn:MessageEventDefinition"))}function b8(t){return y(t,"bpmn:InteractionNode")&&!cd(t)&&(!y(t,"bpmn:Event")||y(t,"bpmn:CatchEvent")&&O2(t,"bpmn:MessageEventDefinition"))&&!(y(t,"bpmn:BoundaryEvent")&&!ur(t,"bpmn:MessageEventDefinition"))}function Ov(t){for(var e=t;e=e.parent;){if(y(e,"bpmn:FlowElementsContainer"))return Y(e);if(y(e,"bpmn:Participant"))return Y(e).processRef}return null}function z2(t,e){return Ov(t)===Ov(e)}function ur(t,e){var n=Y(t);return!!ce(n.eventDefinitions||[],function(o){return y(o,e)})}function O2(t,e){return(Y(t).eventDefinitions||[]).every(function(n){return y(n,e)})}function x8(t){return y(t,"bpmn:FlowNode")&&!y(t,"bpmn:EndEvent")&&!mn(t)&&!(y(t,"bpmn:IntermediateThrowEvent")&&ur(t,"bpmn:LinkEventDefinition"))&&!$2(t)&&!cd(t)}function k8(t){return y(t,"bpmn:FlowNode")&&!y(t,"bpmn:StartEvent")&&!y(t,"bpmn:BoundaryEvent")&&!mn(t)&&!(y(t,"bpmn:IntermediateCatchEvent")&&ur(t,"bpmn:LinkEventDefinition"))&&!cd(t)}function w8(t){return y(t,"bpmn:ReceiveTask")||y(t,"bpmn:IntermediateCatchEvent")&&(ur(t,"bpmn:MessageEventDefinition")||ur(t,"bpmn:TimerEventDefinition")||ur(t,"bpmn:ConditionalEventDefinition")||ur(t,"bpmn:SignalEventDefinition"))}function _8(t){for(var e=[];t;)t=t.parent,t&&e.push(t);return e}function Lv(t,e){return _8(e).indexOf(t)!==-1}function ql(t,e,n){if(qu(t)||qu(e))return null;if(!y(n,"bpmn:DataAssociation")){if(G2(t,e))return{type:"bpmn:MessageFlow"};if(V2(t,e))return{type:"bpmn:SequenceFlow"}}return $h(t,e)||(W2(t,e)?{type:"bpmn:Association",associationDirection:"One"}:F2(t,e)?{type:"bpmn:Association",associationDirection:"None"}:!1)}function ms(t,e){return Bt(t)||jh(t)?!0:y(e,"bpmn:Participant")&&!Ot(e)?!1:y(t,"bpmn:Participant")?y(e,"bpmn:Process")||y(e,"bpmn:Collaboration"):At(t,["bpmn:DataInput","bpmn:DataOutput"])&&t.parent?e===t.parent:y(t,"bpmn:Lane")?y(e,"bpmn:Participant")||y(e,"bpmn:Lane"):y(t,"bpmn:BoundaryEvent")&&!E8(t)?!1:y(t,"bpmn:FlowElement")&&!y(t,"bpmn:DataStoreReference")?y(e,"bpmn:FlowElementsContainer")?Ot(e):At(e,["bpmn:Participant","bpmn:Lane"]):y(t,"bpmn:DataStoreReference")&&y(e,"bpmn:Collaboration")?Ho(Y(e).get("participants"),function(n){return!!n.get("processRef")}):At(t,["bpmn:Artifact","bpmn:DataAssociation","bpmn:DataStoreReference"])?At(e,["bpmn:Collaboration","bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"]):y(t,"bpmn:MessageFlow")?y(e,"bpmn:Collaboration")||t.source.parent==e||t.target.parent==e:!1}function E8(t){return Y(t).cancelActivity&&(N2(t)||I2(t))}function L2(t){return!Bt(t)&&y(t,"bpmn:BoundaryEvent")}function S8(t){return y(t,"bpmn:Lane")}function T8(t){return L2(t)||y(t,"bpmn:IntermediateThrowEvent")&&N2(t)?!0:y(t,"bpmn:IntermediateCatchEvent")&&I2(t)}function N2(t){var e=Y(t);return e&&!(e.eventDefinitions&&e.eventDefinitions.length)}function I2(t){return H2(t,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])}function H2(t,e){return e.some(function(n){return ur(t,n)})}function C8(t){return y(t,"bpmn:ReceiveTask")&&ce(t.incoming,function(e){return y(e.source,"bpmn:EventBasedGateway")})}function lc(t,e,n,o){if(Array.isArray(t)||(t=[t]),t.length!==1)return!1;var r=t[0];return Bt(r)||!T8(r)||mn(e)||!y(e,"bpmn:Activity")||cd(e)||o&&!j2(o,e)||C8(e)?!1:"attach"}function Nv(t,e,n){if(!e)return!1;var o={replacements:[]};return R(t,function(r){mn(e)||y(r,"bpmn:StartEvent")&&r.type!=="label"&&ms(r,e)&&(hy(r)||o.replacements.push({oldElementId:r.id,newElementType:"bpmn:StartEvent"}),(fy(r)||gy(r)||yy(r))&&o.replacements.push({oldElementId:r.id,newElementType:"bpmn:StartEvent"}),H2(r,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])&&y(e,"bpmn:SubProcess")&&o.replacements.push({oldElementId:r.id,newElementType:"bpmn:StartEvent"})),y(e,"bpmn:Transaction")||ur(r,"bpmn:CancelEventDefinition")&&r.type!=="label"&&(y(r,"bpmn:EndEvent")&&ms(r,e)&&o.replacements.push({oldElementId:r.id,newElementType:"bpmn:EndEvent"}),y(r,"bpmn:BoundaryEvent")&&lc(r,e,null,n)&&o.replacements.push({oldElementId:r.id,newElementType:"bpmn:BoundaryEvent"}))}),o.replacements.length?o:!1}function Iv(t,e){return Ho(t,S8)?!1:e===void 0||e!==null&&t.every(function(n){return ms(n,e)})}function $m(t,e,n,o){return e?Bt(t)||jh(t)?!0:ms(t,e,o)||bp(t,e,o):!1}function Hv(t,e,n){return y(t,"bpmn:SubProcess")?Ot(t)&&(!e||e.width>=100&&e.height>=80):y(t,"bpmn:Lane")||y(t,"bpmn:Participant")?!0:Ku(t)?!n||n==="e"||n==="w":jh(t)?!0:Bt(t)?!n||n==="e"||n==="w":!1}function B8(t,e){var n=Ku(t),o=Ku(e);return(n||o)&&n!==o}function F2(t,e){return Lv(e,t)||Lv(t,e)?!1:B8(t,e)?!0:!!$h(t,e)}function W2(t,e){return z2(t,e)&&$2(t)&&y(e,"bpmn:Activity")&&!M8(e,t)&&!mn(e)}function G2(t,e){return Gv(t)&&!Gv(e)?!1:v8(t)&&b8(e)&&!y8(t,e)}function V2(t,e){return x8(t)&&k8(e)&&z2(t,e)&&!(y(t,"bpmn:EventBasedGateway")&&!w8(e))}function $h(t,e){return At(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&At(e,["bpmn:Activity","bpmn:ThrowEvent"])?{type:"bpmn:DataInputAssociation"}:At(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&At(t,["bpmn:Activity","bpmn:CatchEvent"])?{type:"bpmn:DataOutputAssociation"}:!1}function bp(t,e,n){if(!e)return!1;if(Array.isArray(t)){if(t.length!==1)return!1;t=t[0]}return e.source===t||e.target===t?!1:At(e,["bpmn:SequenceFlow","bpmn:MessageFlow"])&&!Bt(e)&&y(t,"bpmn:FlowNode")&&!y(t,"bpmn:BoundaryEvent")&&ms(t,e.parent,n)}function Xu(t,e){return t&&e&&t.indexOf(e)!==-1}function Fv(t,e){return Bt(e)?!0:!(y(e,"bpmn:Lane")&&!Xu(t,e.parent)||y(e,"bpmn:MessageFlow")&&!R8(t,e))}function R8(t,e){var n=Wv(e.source),o=Wv(e.target);return Xu(t,n)&&Xu(t,o)}function Wv(t){for(;t;t=t.parent)if(y(t,"bpmn:Participant"))return t;return null}function Gv(t){return Vi(t,"bpmn:Process")||Vi(t,"bpmn:Collaboration")}function M8(t,e){return t.attachers.includes(e)}function U2(t,e){t.on("saveXML.start",P8,n);function n(){var o=e.getRootElements();R(o,function(r){var i=Tt(r),a=Ha([r],!1),s;a=Dt(a,function(c){return c!==r&&!c.labelTarget}),s=tn(a,Tt),i.set("planeElement",s)})}}function qp(t){q.call(this,t);var e=this;this.preExecute(["shape.create","connection.create"],function(n){var o=n.context,r=o.shape||o.connection,i=o.parent,a=e.getOrdering(r,i);a&&(a.parent!==void 0&&(o.parent=a.parent),o.parentIndex=a.index)}),this.preExecute(["shape.move","connection.move"],function(n){var o=n.context,r=o.shape||o.connection,i=o.newParent||r.parent,a=e.getOrdering(r,i);a&&(a.parent!==void 0&&(o.newParent=a.parent),o.newParentIndex=a.index)})}function Yu(t,e){qp.call(this,t);var n=[{type:"bpmn:SubProcess",order:{level:6}},{type:"bpmn:SequenceFlow",order:{level:9,containers:["bpmn:Participant","bpmn:FlowElementsContainer"]}},{type:"bpmn:DataAssociation",order:{level:9,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:TextAnnotation",order:{level:9}},{type:"bpmn:MessageFlow",order:{level:9,containers:["bpmn:Collaboration"]}},{type:"bpmn:Association",order:{level:6,containers:["bpmn:Participant","bpmn:FlowElementsContainer","bpmn:Collaboration"]}},{type:"bpmn:BoundaryEvent",order:{level:8}},{type:"bpmn:Group",order:{level:10,containers:["bpmn:Collaboration","bpmn:FlowElementsContainer"]}},{type:"bpmn:FlowElement",order:{level:5}},{type:"bpmn:Participant",order:{level:-2}},{type:"bpmn:Lane",order:{level:-1}}];function o(a){if(a.labelTarget)return{level:10};var s=ce(n,function(c){return At(a,[c.type])});return s&&s.order||{level:1}}function r(a){var s=a.order;if(s||(a.order=s=o(a)),!s)throw Error("no order for <".concat(a.id,">"));return s}function i(a,s,c){for(var l=s;l&&!At(l,c);)l=l.parent;if(!l)throw Error("no parent for <".concat(a.id,"> in <").concat(s&&s.id,">"));return l}this.getOrdering=function(a,s){if(a.labelTarget||y(a,"bpmn:TextAnnotation"))return{parent:e.findRoot(s)||e.getRootElement(),index:-1};var c=r(a);c.containers&&(s=i(a,s,c.containers));var l=s.children.indexOf(a),p=cl(s.children,function(d){return!a.labelTarget&&d.labelTarget?!1:c.level<r(d).level});return p!==-1&&l!==-1&&l<p&&--p,{index:p,parent:s}}}function pc(){}function q2(t,e,n,o,r){function i(c,l,p,d,m){if(!l)return!1;c=Dt(c,function(k){var _=k.labelTarget;return!k.parent&&!(Bt(k)&&c.indexOf(_)!==-1)});var u=ce(c,function(k){return!oe(k)}),h=!1,f=!1,g=!1;Yv(c)&&(h=r.allowed("shape.attach",{position:p,shape:u,target:l})),h||(g=Yv(c)?r.allowed("shape.create",{position:p,shape:u,source:d,target:l}):r.allowed("elements.create",{elements:c,position:p,target:l}));var x=m.connectionTarget;return g||h?(u&&d&&(f=r.allowed("connection.create",{source:x===d?u:d,target:x===d?d:u,hints:{targetParent:l,targetAttach:h}})),{attach:h,connect:f}):g===null||h===null?null:!1}function a(c,l){[Uv,z8,Vv,qv].forEach(function(p){p===l?t.addMarker(c,p):t.removeMarker(c,p)})}n.on(["create.move","create.hover"],function(c){var l=c.context,p=l.elements,d=c.hover,m=l.source,u=l.hints||{};if(!d)l.canExecute=!1,l.target=null;else{Xv(c);var h={x:c.x,y:c.y},f=l.canExecute=d&&i(p,d,h,m,u);d&&f!==null&&(l.target=d,f&&f.attach?a(d,Uv):a(d,f?qv:Vv))}}),n.on(["create.end","create.out","create.cleanup"],function(c){var l=c.hover;l&&a(l,null)}),n.on("create.end",function(c){var l=c.context,p=l.source,d=l.shape,m=l.elements,u=l.target,h=l.canExecute,f=h&&h.attach,g=h&&h.connect,x=l.hints||{};if(h===!1||!u)return!1;Xv(c);var k={x:c.x,y:c.y};g?d=o.appendShape(p,d,k,u,{attach:f,connection:g===!0?{}:g,connectionTarget:x.connectionTarget}):(m=o.createElements(m,k,u,P({},x,{attach:f})),d=ce(m,function(_){return!oe(_)})),P(l,{elements:m,shape:d}),P(c,{elements:m,shape:d})});function s(){var c=e.context();c&&c.prefix===Kv&&e.cancel()}n.on("create.init",function(){n.on("elements.changed",s),n.once(["create.cancel","create.end"],O8,function(){n.off("elements.changed",s)})}),this.start=function(c,l,p){bt(l)||(l=[l]);var d=ce(l,function(h){return!oe(h)});if(d){p=P({elements:l,hints:{},shape:d},p||{}),R(l,function(h){xt(h.x)||(h.x=0),xt(h.y)||(h.y=0)});var m=Dt(l,function(h){return!h.hidden}),u=je(m);R(l,function(h){oe(h)&&(h.waypoints=tn(h.waypoints,function(f){return{x:f.x-u.x-u.width/2,y:f.y-u.y-u.height/2}})),P(h,{x:h.x-u.x-u.width/2,y:h.y-u.y-u.height/2})}),e.init(c,Kv,{cursor:"grabbing",autoActivate:!0,data:{shape:d,elements:l,context:p}})}}}function Xv(t){var e=t.context.createConstraints;e&&(e.left&&(t.x=Math.max(t.x,e.left)),e.right&&(t.x=Math.min(t.x,e.right)),e.top&&(t.y=Math.max(t.y,e.top)),e.bottom&&(t.y=Math.min(t.y,e.bottom)))}function Yv(t){return t&&t.length===1&&!oe(t[0])}function K2(t,e,n,o,r){function i(a){var s=et("g");U(s,r.cls("djs-drag-group",["no-events"]));var c=et("g");return a.forEach(function(l){var p;l.hidden||(l.waypoints?(p=n._createContainer("connection",c),n.drawConnection(ci(p),l)):(p=n._createContainer("shape",c),n.drawShape(ci(p),l),hn(p,l.x,l.y)),o.addDragger(l,s,p))}),s}e.on("create.move",L8,function(a){var s=a.hover,c=a.context,l=c.elements,p=c.dragGroup;p||=c.dragGroup=i(l);var d;s?(p.parentNode||(d=t.getActiveLayer(),it(d,p)),hn(p,a.x,a.y)):Ne(p)}),e.on("create.cleanup",function(a){var s=a.context.dragGroup;s&&Ne(s)})}function Zu(t){var e=this;this._lastMoveEvent=null;function n(o){e._lastMoveEvent=o}t.on("canvas.init",function(o){(e._svg=o.svg).addEventListener("mousemove",n)}),t.on("canvas.destroy",function(){e._lastMouseEvent=null,e._svg.removeEventListener("mousemove",n)})}function N8(t,e){var n=document.createEvent("MouseEvent"),o=t,r=e,i=t,a=e;return n.initMouseEvent&&n.initMouseEvent("mousemove",!0,!0,window,0,o,r,i,a,!1,!1,!1,!1,0,null),n}function Zn(t,e,n,o,r,i,a,s){this._canvas=t,this._create=e,this._elementFactory=o,this._eventBus=r,this._modeling=i,this._mouse=a,this._rules=s,r.on("copyPaste.copyElement",function(c){var l=c.descriptor,p=c.element,d=c.elementsSet;l.priority=1,l.id=p.id,d.has(p.parent)&&(l.parent=p.parent.id),I8(p)&&(l.priority=2,l.host=p.host.id),oe(p)&&(l.priority=3,l.source=p.source.id,l.target=p.target.id,l.waypoints=H8(p)),Bt(p)&&(l.priority=4,l.labelTarget=p.labelTarget.id),R(["x","y","width","height"],function(m){xt(p[m])&&(l[m]=p[m])}),l.hidden=p.hidden,l.collapsed=p.collapsed}),r.on("copyPaste.elementsCopied",Zv,function(c){c.hints?.clip!==!1&&n.set(c.tree)}),r.on("copyPaste.pasteElements",Zv,function(c){c.tree||=n.get()}),r.on("copyPaste.pasteElements",function(c){var l=c.hints;P(l,{createElementsBehavior:!1})})}function I8(t){return!!t.host}function H8(t){return tn(t.waypoints,function(e){return e=Jv(e),e.original&&(e.original=Jv(e.original)),e})}function Jv(t){return P({},t)}function F8(t,e){var n=e.indexOf(t);return n===-1?e:e.splice(n,1)}function zm(t,e,n){bt(n)||(n=[n]),R(n,function(o){_r(t[o])||(e[o]=t[o])})}function X2(t,e,n){function o(c,l){var p=t.create(c.$type);return n.copyElement(c,p,null,l)}e.on("copyPaste.copyElement",Om,function(c){var l=c.descriptor,p=c.element,d=Y(p);if(Bt(p))return l;var m=l.businessObject=o(d,!0),u=l.di=o(Tt(p),!0);u.bpmnElement=m,zm(m,l,"name"),zm(u,l,"isExpanded"),d.default&&(l.default=d.default.id)});var r="-bpmn-js-refs";function i(c){return c[r]=c[r]||{}}function a(c,l){c[r]=l}function s(c,l,p){var d=Y(c);return c.default&&(p[c.default]={element:d,property:"default"}),c.host&&(Y(c).attachedToRef=Y(l[c.host])),bo(p,Pn(p,function(m,u,h){var f=u.element,g=u.property;return h===c.id&&(f.set(g,d),m.push(c.id)),m},[]))}e.on("copyPaste.pasteElement",function(c){var l=c.cache,p=c.descriptor,d=p.businessObject,m=p.di;Bt(p)?(p.businessObject=Y(l[p.labelTarget]),p.di=Tt(l[p.labelTarget])):(d=p.businessObject=o(d),m=p.di=o(m),m.bpmnElement=d,zm(p,d,["isExpanded","name"]),p.type=d.$type)}),e.on("copyPaste.copyElement",Om,function(c){var l=c.descriptor,p=c.element;if(y(p,"bpmn:Participant")){var d=Y(p);d.processRef&&(l.processRef=o(d.processRef,!0))}}),e.on("copyPaste.pasteElement",function(c){var l=c.descriptor,p=l.processRef;p&&(l.processRef=o(p))}),e.on("copyPaste.createTree",function(c){var l=c.element,p=c.children;y(l,"bpmn:SubProcess")&&R(Wa(p),d=>{p.push(d.annotation)})}),e.on("copyPaste.pasteElement",Om,function(c){var l=c.cache,p=c.descriptor;a(l,s(p,l,i(l)))})}function dc(t,e,n){this._bpmnFactory=e,this._eventBus=t,this._moddle=n,t.on("moddleCopy.canCopyProperties",o=>{let{propertyNames:r}=o;if(r&&r.length)return vo(r,i=>i==="extensionElements")}),t.on("moddleCopy.canCopyProperty",o=>{let{parent:r,property:i,propertyName:a}=o,s=Se(r)&&r.$descriptor;if(a&&V8.includes(a))return i;if(a&&G8.includes(a)||a&&s&&!ce(s.properties,Yr({name:a})))return!1}),t.on("moddleCopy.canSetCopiedProperty",o=>{let{property:r}=o;if(y(r,"bpmn:ExtensionElements")&&(!r.values||!r.values.length))return!1})}function Ju(t,e){return Pn(t.properties,(n,o)=>e&&o.default?n:n.concat(o.name),[])}function Qu(t,e){this._modeling=t,this._eventBus=e}function Z2(t,e){e.on("replace.end",500,function(n){let{newElement:o,hints:r={}}=n;r.select!==!1&&t.select(o)})}function q8(t,e,n){bt(n)||(n=[n]),R(n,function(o){_r(t[o])||(e[o]=t[o])})}function X8(t,e){var n=t&&vn(t,"collapsed")?t.collapsed:!Ot(t);return n!==(e&&(vn(e,"collapsed")||vn(e,"isExpanded"))?vn(e,"collapsed")?e.collapsed:!e.isExpanded:n)}function J2(t,e,n,o,r,i){function a(s,c,l){l||={};var p=c.type,d=s.businessObject;if(Kl(d)&&(p==="bpmn:SubProcess"||p==="bpmn:AdHocSubProcess")&&X8(s,c))return o.toggleCollapse(s),s;var m=t.create(p),u={type:p,businessObject:m};u.di={},p==="bpmn:ExclusiveGateway"&&(u.di.isMarkerVisible=!0),q8(s.di,u.di,["fill","stroke","background-color","border-color","color"]);var h=Y8(Ju(d.$descriptor),Ju(m.$descriptor,!0));P(m,Nn(c,K8));var f=Dt(h,function(k){return k==="eventDefinitions"?tb(s,c.eventDefinitionType):k==="loopCharacteristics"?!mn(m):vn(m,k)||k==="processRef"&&c.isExpanded===!1||k==="triggeredByEvent"?!1:k!=="isForCompensation"||!mn(m)});if(m=n.copyElement(d,m,f),c.eventDefinitionType&&(tb(m,c.eventDefinitionType)||(u.eventDefinitionType=c.eventDefinitionType,u.eventDefinitionAttrs=c.eventDefinitionAttrs)),y(d,"bpmn:Activity")){if(Kl(d))u.isExpanded=Ot(s);else if(c&&vn(c,"isExpanded")){u.isExpanded=c.isExpanded;var g=e.getDefaultSize(m,{isExpanded:u.isExpanded});u.width=g.width,u.height=g.height,u.x=s.x-(u.width-s.width)/2,u.y=s.y-(u.height-s.height)/2}Ot(s)&&!y(d,"bpmn:Task")&&u.isExpanded&&(u.width=s.width,u.height=s.height)}if(Kl(d)&&!Kl(m)&&(l.moveChildren=!1),y(d,"bpmn:Participant")){c.isExpanded===!0?m.processRef=t.create("bpmn:Process"):l.moveChildren=!1;var x=Re(s);Tt(s).isHorizontal||(Tt(u).isHorizontal=x),u.width=x?s.width:e.getDefaultSize(u).width,u.height=x?e.getDefaultSize(u).height:s.height}return i.allowed("shape.resize",{shape:m})||(u.height=e.getDefaultSize(u).height,u.width=e.getDefaultSize(u).width),m.name=d.name,At(d,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&At(m,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&(m.default=d.default),c.host&&!y(d,"bpmn:BoundaryEvent")&&y(m,"bpmn:BoundaryEvent")&&(u.host=c.host),(u.type==="bpmn:DataStoreReference"||u.type==="bpmn:DataObjectReference")&&(u.x=s.x+(s.width-u.width)/2),r.replaceElement(s,u,{...l,targetElement:c})}this.replaceElement=a}function Kl(t){return y(t,"bpmn:SubProcess")}function tb(t,e){var n=Y(t);return e&&n.get("eventDefinitions").some(function(o){return y(o,e)})}function Y8(t,e){return t.filter(function(n){return e.includes(n)})}function ea(t){this._eventBus=t,this._tools=[],this._active=null}function J8(t){var e=t.originalEvent&&t.originalEvent.target;return e&&cr(e,'.group[data-group="tools"]')}function Q8(t,e){if(t==="x"){if(e>0)return"e";if(e<0)return"w"}if(t==="y"){if(e>0)return"s";if(e<0)return"n"}return null}function t7(t,e){var n=[],o=new Set(t);R(e,function(i){o.add(i)});var r=new Set;return o.forEach(function(i){var a=i.incoming,s=i.outgoing;R(a.concat(s),function(c){var l=c.source,p=c.target;(o.has(l)||o.has(p))&&(r.has(c)||(r.add(c),n.push(c)))})}),n}function e7(t,e,n){var o=t.x,r=t.y,i=t.width,a=t.height,s=n.x,c=n.y;switch(e){case"n":return{x:o,y:r+c,width:i,height:a-c};case"s":return{x:o,y:r,width:i,height:a+c};case"w":return{x:o+s,y:r,width:i-s,height:a};case"e":return{x:o,y:r,width:i+s,height:a};default:throw Error("unknown direction: "+e)}}function To(t,e,n,o,r,i,a){this._canvas=t,this._dragging=e,this._eventBus=n,this._modeling=o,this._rules=r,this._toolManager=i,this._mouse=a;var s=this;i.registerTool("space",{tool:"spaceTool.selection",dragging:"spaceTool"}),n.on("spaceTool.selection.end",function(c){n.once("spaceTool.selection.ended",function(){s.activateMakeSpace(c.originalEvent)})}),n.on("spaceTool.move",o7,function(c){var l=c.context,p=l.initialized;p||=l.initialized=s.init(c,l),p&&ob(c)}),n.on("spaceTool.end",function(c){var l=c.context,p=l.axis,d=l.direction,m=l.movingShapes,u=l.resizingShapes,h=l.start;if(l.initialized){ob(c);var f={x:0,y:0};f[p]=n7(c["d"+p]),s.makeSpace(m,u,f,d,h),n.once("spaceTool.ended",function(g){s.activateSelection(g.originalEvent,!0,!0)})}})}function nb(t){return{top:t.top-Yl,right:t.right+Yl,bottom:t.bottom+Yl,left:t.left-Yl}}function ob(t){var e=t.context.spaceToolConstraints;if(e){var n,o;xt(e.left)&&(n=Math.max(t.x,e.left),t.dx=t.dx+n-t.x,t.x=n),xt(e.right)&&(n=Math.min(t.x,e.right),t.dx=t.dx+n-t.x,t.x=n),xt(e.top)&&(o=Math.max(t.y,e.top),t.dy=t.dy+o-t.y,t.y=o),xt(e.bottom)&&(o=Math.min(t.y,e.bottom),t.dy=t.dy+o-t.y,t.y=o)}}function r7(t,e,n,o,r){var i=t.movingShapes,a=t.resizingShapes;if(a.length){var s={},c,l,p=new Set(i),d=new Set(a);return R(a,function(m){var u=m.attachers,h=m.children,f=ht(m),g=Dt(h,function(Z){return!oe(Z)&&!Bt(Z)&&!p.has(Z)&&!d.has(Z)}),x=Dt(h,function(Z){return!oe(Z)&&!Bt(Z)&&p.has(Z)}),k,_,w,S=[],T=[],B,M,z,H;g.length&&(_=nb(ht(je(g))),k=o-f[mi[n]]+_[mi[n]],n==="n"?s.bottom=l=xt(l)?Math.min(l,k):k:n==="w"?s.right=l=xt(l)?Math.min(l,k):k:n==="s"?s.top=c=xt(c)?Math.max(c,k):k:n==="e"&&(s.left=c=xt(c)?Math.max(c,k):k)),x.length&&(w=nb(ht(je(x))),k=o-w[mi[Xl[n]]]+f[mi[Xl[n]]],n==="n"?s.bottom=l=xt(l)?Math.min(l,k):k:n==="w"?s.right=l=xt(l)?Math.min(l,k):k:n==="s"?s.top=c=xt(c)?Math.max(c,k):k:n==="e"&&(s.left=c=xt(c)?Math.max(c,k):k)),u&&u.length&&(u.forEach(function(Z){p.has(Z)?S.push(Z):T.push(Z)}),S.length&&(B=ht(je(S.map(vt))),M=f[mi[Xl[n]]]-(B[mi[Xl[n]]]-o)),T.length&&(z=ht(je(T.map(vt))),H=z[mi[n]]-(f[mi[n]]-o)),n==="n"?(k=Math.min(M||1/0,H||1/0),s.bottom=l=xt(l)?Math.min(l,k):k):n==="w"?(k=Math.min(M||1/0,H||1/0),s.right=l=xt(l)?Math.min(l,k):k):n==="s"?(k=Math.max(M||-1/0,H||-1/0),s.top=c=xt(c)?Math.max(c,k):k):n==="e"&&(k=Math.max(M||-1/0,H||-1/0),s.left=c=xt(c)?Math.max(c,k):k));var N=r&&r[m.id];N&&(n==="n"?(k=o+m[Dr[e]]-N[Dr[e]],s.bottom=l=xt(l)?Math.min(l,k):k):n==="w"?(k=o+m[Dr[e]]-N[Dr[e]],s.right=l=xt(l)?Math.min(l,k):k):n==="s"?(k=o-m[Dr[e]]+N[Dr[e]],s.top=c=xt(c)?Math.max(c,k):k):n==="e"&&(k=o-m[Dr[e]]+N[Dr[e]],s.left=c=xt(c)?Math.max(c,k):k))}),s}}function i7(t){return!!t.host}function tk(t,e,n,o,r){function i(a,s){R(a,function(c){r.addDragger(c,s),n.addMarker(c,Nm)})}t.on("spaceTool.selection.start",function(a){var s=n.getLayer("space"),c=a.context,l={x:"M 0,-10000 L 0,10000",y:"M -10000,0 L 10000,0"},p=et("g");U(p,o.cls("djs-crosshair-group",["no-events"])),it(s,p);var d=et("path");U(d,"d",l.x),ut(d).add("djs-crosshair"),it(p,d);var m=et("path");U(m,"d",l.y),ut(m).add("djs-crosshair"),it(p,m),c.crosshairGroup=p}),t.on("spaceTool.selection.move",function(a){var s=a.context.crosshairGroup;hn(s,a.x,a.y)}),t.on("spaceTool.selection.cleanup",function(a){var s=a.context.crosshairGroup;s&&Ne(s)}),t.on("spaceTool.move",a7,function(a){var s=a.context,c=s.line,l=s.axis,p=s.movingShapes,d=s.resizingShapes;if(s.initialized){if(!s.dragGroup){var m=n.getLayer("space");c=et("path"),U(c,"d","M0,0 L0,0"),ut(c).add("djs-crosshair"),it(m,c),s.line=c;var u=et("g");U(u,o.cls("djs-drag-group",["no-events"])),it(n.getActiveLayer(),u),i(p,u);var h=new Set(p);R(d,function(T){h.add(T)});var f=new Set,g=s.movingConnections=[];h.forEach(function(T){R(T.outgoing,function(B){!f.has(B)&&oe(B)&&h.has(B.target)&&(f.add(B),g.push(B))})}),i(g,u),s.dragGroup=u}if(!s.frameGroup){var x=et("g");U(x,o.cls("djs-frame-group",["no-events"])),it(n.getActiveLayer(),x);var k=[];R(d,function(T){var B=r.addFrame(T,x),M=B.getBBox();k.push({element:B,initialBounds:M}),n.addMarker(T,rb)}),s.frameGroup=x,s.frames=k}var _={x:"M"+a.x+", -10000 L"+a.x+", 10000",y:"M -10000, "+a.y+" L 10000, "+a.y};U(c,{d:_[l]});var w={x:"y",y:"x"},S={x:a.dx,y:a.dy};S[w[s.axis]]=0,hn(s.dragGroup,S.x,S.y),R(s.frames,function(T){var B=T.element,M=T.initialBounds,z,H;s.direction==="e"?U(B,{width:Zl(M.width+S.x,5)}):(z=Zl(M.width-S.x,5),U(B,{width:z,x:M.x+M.width-z})),s.direction==="s"?U(B,{height:Zl(M.height+S.y,5)}):(H=Zl(M.height-S.y,5),U(B,{height:H,y:M.y+M.height-H}))})}}),t.on("spaceTool.cleanup",function(a){var s=a.context,c=s.movingShapes,l=s.movingConnections,p=s.resizingShapes,d=s.line,m=s.dragGroup,u=s.frameGroup;R(c,function(h){n.removeMarker(h,Nm)}),R(l,function(h){n.removeMarker(h,Nm)}),m&&(Ne(d),Ne(m)),R(p,function(h){n.removeMarker(h,rb)}),u&&Ne(u)})}function xp(t,e){t.invoke(To,this),this._canvas=e}function c7(t){return y(t,"bpmn:Participant")&&!Y(t).processRef}function Ae(t,e){this._handlerMap={},this._stack=[],this._stackIdx=-1,this._currentExecution={actions:[],dirty:[],trigger:null},this._injector=e,this._eventBus=t,this._uid=1,t.on(["diagram.destroy","diagram.clear"],function(){this.clear(!1)},this)}function Ei(t,e){if(typeof e!="function")throw Error("removeFn iterator must be a function");if(!t)return[];for(var n;n=t[0];)e(n);return t}function th(t,e,n){q.call(this,e);var o=t.get("movePreview",!1);e.on("shape.move.start",ib,function(r){var i=r.context,a=i.shapes,s=i.validatedShapes;i.shapes=ab(a),i.validatedShapes=ab(s)}),o&&e.on("shape.move.start",p7,function(r){var i=r.context,a=new Set(i.shapes),s=new Set;for(let c of a)for(let l of c.labels)!l.hidden&&!a.has(l)&&s.add(l),c.labelTarget&&s.add(c);for(let c of s)o.makeDraggable(i,c,!0)}),this.preExecuted("elements.move",ib,function(r){var i=r.context.closure,a=i.enclosedElements,s=[];R(a,function(c){R(c.labels,function(l){a[l.id]||s.push(l)})}),i.addAll(s)}),this.preExecute(["connection.delete","shape.delete"],function(r){var i=r.context;Ei((i.connection||i.shape).labels,function(a){n.removeShape(a,{nested:!0})})}),this.execute("shape.delete",function(r){var i=r.context,a=i.shape,s=a.labelTarget;s&&(i.labelTargetIndex=gl(s.labels,a),i.labelTarget=s,a.labelTarget=null)}),this.revert("shape.delete",function(r){var i=r.context,a=i.shape,s=i.labelTarget,c=i.labelTargetIndex;s&&(Te(s.labels,a,c),a.labelTarget=s)})}function ab(t){var e=new Set(t);return Dt(t,function(n){return!e.has(n.labelTarget)})}function eh(t,e,n,o,r){q.call(this,e);var i=t.get("movePreview",!1);e.on("shape.move.start",sb,function(a){var s=a.context,c=s.shapes,l=s.validatedShapes;s.shapes=u7(c),s.validatedShapes=h7(l)}),i&&e.on("shape.move.start",m7,function(a){var s=a.context,c=s.shapes,l=nh(c);R(l,function(p){i.makeDraggable(s,p,!0),R(p.labels,function(d){i.makeDraggable(s,d,!0)})})}),i&&e.on("shape.move.start",function(a){var s=a.context.shapes;if(s.length===1){var c=s[0].host;c&&(n.addMarker(c,cb),e.once(["shape.move.out","shape.move.cleanup"],function(){n.removeMarker(c,cb)}))}}),this.preExecuted("elements.move",sb,function(a){var s=a.context,c=s.closure,l=s.shapes,p=nh(l);R(p,function(d){c.add(d,c.topLevel[d.host.id])})}),this.postExecuted("elements.move",function(a){var s=a.context,c=s.shapes,l=s.newHost,p;l&&c.length!==1||(p=l?c:Dt(c,function(d){var m=d.host;return f7(d)&&!g7(c,m)}),R(p,function(d){r.updateAttachment(d,l)}))}),this.postExecuted("elements.move",function(a){var s=a.context.shapes;R(s,function(c){R(c.attachers,function(l){R(l.outgoing.slice(),function(p){o.allowed("connection.reconnect",{connection:p,source:p.source,target:p.target})||r.removeConnection(p)}),R(l.incoming.slice(),function(p){o.allowed("connection.reconnect",{connection:p,source:p.source,target:p.target})||r.removeConnection(p)})})})}),this.postExecute("shape.create",function(a){var s=a.context,c=s.shape,l=s.host;l&&r.updateAttachment(c,l)}),this.postExecute("shape.replace",function(a){var s=a.context,c=s.oldShape,l=s.newShape;Ei(c.attachers,function(p){o.allowed("elements.move",{target:l,shapes:[p]})==="attach"?r.updateAttachment(p,l):r.removeShape(p)}),l.attachers.length&&R(l.attachers,function(p){var d=Cv(p,c,l);r.moveShape(p,d,p.parent)})}),this.postExecute("shape.resize",function(a){var s=a.context,c=s.shape,l=s.oldBounds,p=s.newBounds,d=c.attachers;(s.hints||{}).attachSupport!==!1&&R(d,function(m){var u=Cv(m,l,p);r.moveShape(m,u,m.parent),R(m.labels,function(h){r.moveShape(h,u,h.parent)})})}),this.preExecute("shape.delete",function(a){var s=a.context.shape;Ei(s.attachers,function(c){r.removeShape(c)}),s.host&&r.updateAttachment(s,null)})}function nh(t){return sl(tn(t,function(e){return e.attachers||[]}))}function u7(t){var e=nh(t);return Lg("id",t,e)}function h7(t){var e=Xr(t,"id");return Dt(t,function(n){for(;n;){if(n.host&&e[n.host.id])return!1;n=n.parent}return!0})}function f7(t){return!!t.host}function g7(t,e){return t.indexOf(e)!==-1}function Eo(t){this._model=t}function D7(t,e){let n=Y(t);if(e||=Tt(t),y(n,"bpmn:SubProcess"))return Ot(n,e)?{...w7}:{..._7};if(y(n,"bpmn:Task"))return{...b7};if(y(n,"bpmn:Gateway"))return{...x7};if(y(n,"bpmn:Event"))return{...k7};if(y(n,"bpmn:Participant")){let o=!e||e.isHorizontal===void 0||e.isHorizontal===!0;return Ot(n,e)?o?{...E7}:{...S7}:o?{...T7}:{...C7}}return y(n,"bpmn:Lane")?{...B7}:y(n,"bpmn:DataObjectReference")?{...R7}:y(n,"bpmn:DataStoreReference")?{...M7}:y(n,"bpmn:TextAnnotation")?{...A7}:y(n,"bpmn:Group")?{...P7}:{...v7}}function fi(t,e){sr.call(this),this._bpmnFactory=t,this._moddle=e}function j7(t,e,n){return R(n,function(o){e=oh(t,e,o)}),e}function oh(t,e,n){return e[n]===void 0?e:(t[n]=e[n],bo(e,[n]))}function $7(t){return At(t,["bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane"])}function kp(t,e){this._modeling=t,this._canvas=e}function wp(t){this._modeling=t}function z7(t,e){return Ho(t.outgoing,function(n){return n.target===e})}function _p(t,e){this._canvas=t,this._layouter=e}function rh(t){this._modeling=t}function Si(t){this._canvas=t}function $c(t){Si.call(this,t)}function N7(t){["width","height"].forEach(function(e){t[e]===void 0&&(t[e]=0)})}function mc(t,e){this._canvas=t,this._modeling=e}function ih(t,e){this._modeling=t,this._elementRegistry=e}function uc(t,e){this._canvas=t,this._modeling=e}function Kp(t){this._modeling=t}function Ep(t,e){this._layouter=t,this._canvas=e}function ah(){}function sh(){this.allShapes={},this.allConnections={},this.enclosedElements={},this.enclosedConnections={},this.topLevel={}}function Pc(t){this._modeling=t}function Sp(t){this._helper=new Pc(t)}function na(t){this._modeling=t,this._helper=new Pc(t)}function hc(t){this._modeling=t}function db(t){return t.original||t}function jr(t,e){this._modeling=t,this._rules=e}function fc(t){this._modeling=t}function gi(t){this._modeling=t}function mb(t){return P({},t)}function I7(t){return tn(t.waypoints,function(e){return e=mb(e),e.original&&(e.original=mb(e.original)),e})}function nk(t){switch(t){case"n":return"y";case"w":return"x";case"s":return"y";case"e":return"x"}}function ub(t,e,n){var o=nk(n);if(/e|s/.test(n))return t[o]>e;if(/n|w/.test(n))return t[o]<e}function H7(t){return{x:t.x,y:t.y,height:t.height,width:t.width}}function Tp(t){this._modeling=t}function ok(t){var e={};return R(t,function(n){e[n.id]=n.hidden,n.children&&(e=P({},e,ok(n.children)))}),e}function rk(t,e){var n=[];return R(t,function(o){o.hidden=e,n=n.concat(o),o.children&&(n=n.concat(rk(o.children,o.collapsed||e)))}),n}function ik(t,e){var n=[];return R(t,function(o){o.hidden=e[o.id],n=n.concat(o),o.children&&(n=n.concat(ik(o.children,e)))}),n}function Cp(t){this._modeling=t}function hb(t,e){return we(t&&t.attachers,e)}function fb(t,e,n){if(t){var o=t.attachers;o||(t.attachers=o=[]),Te(o,e,n)}}function ch(){}function ye(t,e,n){this._eventBus=t,this._elementFactory=e,this._commandStack=n;var o=this;t.on("diagram.init",function(){o.registerHandlers(n)})}function gc(t){this._elementRegistry=t}function F7(t,e){return Pn(e,function(n,o){return n[o]=t.get(o),n},{})}function gb(t,e){R(e,function(n,o){t.set(o,n)})}function W7(t,e){return e.filter(function(n){return y(n,"bpmn:DataObjectReference")&&Y(n).dataObjectRef===t})}function yc(t,e,n,o){this._elementRegistry=t,this._moddle=e,this._modeling=n,this._textRenderer=o}function yb(t,e){return Or in t&&t[Or]!==e[Or]}function V7(t,e){var n=$s(e),o=t.businessObject,r=Tt(t);return Pn(n,function(i,a){return i[a]=a===ak?U7(r,$s(e.di)):o.get(a),i},{})}function U7(t,e){return Pn(e,function(n,o){return n[o]=t&&t.get(o),n},{})}function vb(t,e){var n=t.businessObject,o=Tt(t);R(e,function(r,i){i===ak?o&&q7(o,r):n.set(i,r)})}function q7(t,e){R(e,function(n,o){t.set(o,n)})}function X7(t){var e=P({},t);return K7.forEach(function(n){n in t&&(e[n]=Y(e[n]))}),e}function Bp(t,e){this._canvas=t,this._modeling=e}function lh(t,e){this._modeling=t,this._spaceTool=e}function ph(t){this._modeling=t}function vc(t,e){this._modeling=t,this._spaceTool=e}function Rp(){}function bc(t,e){this._bpmnFactory=t,this._elementRegistry=e}function Y7(t,e){return{groupShape:t,categoryValue:e,category:e.$parent}}function Z7(t){t.forEach(function(e){Y(e.groupShape).categoryValueRef=e.categoryValue,e.categoryValue.$parent=e.category})}function J7(t){t.forEach(function(e){Y(e.groupShape).categoryValueRef=null})}function Q7(t){t.forEach(function(e){var n=e.businessObject.get(zh);e.categoryValuesToRemove.forEach(function(o){we(n,o)}),e.categoryValuesToAdd.forEach(function(o){Te(n,o,!0)})})}function tC(t){t.forEach(function(e){var n=e.businessObject.get(zh);e.categoryValuesToAdd.forEach(function(o){we(n,o)}),e.categoryValuesToRemove.forEach(function(o){Te(n,o,!0)})})}function Hm(t){for(;t.parent;)t=t.parent;return t}function Mp(t){this._moddle=t}function dh(t){this._commandStack=t,this._normalizeColor=function(e){if(e){if(yn(e)){var n=nC(e);if(n)return n}throw Error("invalid color value: ".concat(e))}}}function nC(t){var e=document.createElement("canvas").getContext("2d");return e.fillStyle="transparent",e.fillStyle=t,/^#[0-9a-fA-F]{6}$/.test(e.fillStyle)?e.fillStyle:null}function oC(t){"border-color"in t&&(t.stroke=t["border-color"]),"background-color"in t&&(t.fill=t["background-color"])}function sk(t,e,n){function o(c,l){var p=c.label||c,d=c.labelTarget||c;return Wg(p,l,d!==p),[p,d]}function r(c){var l=c.element,p=l.businessObject,d=c.newLabel;if(!Bt(l)&&Fo(l)&&!zs(l)&&!bb(d)){var m=7,u=Sa(l);u={x:u.x,y:u.y+m},t.createLabel(l,u,{id:p.id+"_label",businessObject:p,di:l.di})}}function i(c){return c.oldLabel=Dn(c.element),o(c.element,c.newLabel)}function a(c){return o(c.element,c.oldLabel)}function s(c){var l=c.element,p=l.label||l,d=c.newLabel,m=c.newBounds,u=c.hints||{};if(Bt(p)||y(p,"bpmn:TextAnnotation"))if(Bt(p)&&bb(d))u.removeShape!==!1&&t.removeShape(p,{unsetLabel:!1});else{var h=Dn(l);m===void 0&&(m=e.getExternalLabelBounds(p,h)),m&&t.resizeShape(p,m,rC)}}this.preExecute=r,this.execute=i,this.revert=a,this.postExecute=s}function bb(t){return!t||!t.trim()}function wn(t,e,n,o){ye.call(this,t,e,n),this._bpmnRules=o}function ck(){}function sC(t,e){return!{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/./,v:/./}[e].test(t)}function cC(t,e){return{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/left|right/,v:/top|bottom/}[t].test(e)}function lk(t,e,n){var o=dn(e,t,iC),r=n.split(":")[0],i=Xp((e.x-t.x)/2+t.x),a=Xp((e.y-t.y)/2+t.y),s,c,l=cC(r,o),p=/h|r|l/.test(r),d=!1,m=!1;return l?(s=p?{x:i,y:t.y}:{x:t.x,y:a},c=p?"h:h":"v:v"):(d=sC(o,r),c=p?"h:v":"v:h",d?p?(m=a===t.y,s={x:t.x+Ql*(/l/.test(r)?-1:1),y:m?a+Ql:a}):(m=i===t.x,s={x:m?i+Ql:i,y:t.y+Ql*(/t/.test(r)?-1:1)}):s={x:i,y:a}),{waypoints:Oh(t,s,c).concat(s),directions:c,turnNextDirections:m}}function lC(t,e,n){return lk(t,e,n)}function pC(t,e,n){var o=lk(e,t,kb(n));return{waypoints:o.waypoints.slice().reverse(),directions:kb(o.directions),turnNextDirections:o.turnNextDirections}}function dC(t,e){var n=t.directions.split(":")[1],o=e.directions.split(":")[0];t.turnNextDirections&&(n=n=="h"?"v":"h"),e.turnNextDirections&&(o=o=="h"?"v":"h");var r=n+":"+o;return{waypoints:Oh(t.waypoints[t.waypoints.length-1],e.waypoints[0],r),directions:r}}function kb(t){return t.split(":").reverse().join(":")}function mC(t,e,n){var o=Xp((e.x-t.x)/2+t.x),r=Xp((e.y-t.y)/2+t.y);if(n==="h:v")return[{x:e.x,y:t.y}];if(n==="v:h")return[{x:t.x,y:e.y}];if(n==="h:h")return[{x:o,y:t.y},{x:o,y:e.y}];if(n==="v:v")return[{x:t.x,y:r},{x:e.x,y:r}];throw Error("invalid directions: can only handle varians of [hv]:[hv]")}function Oh(t,e,n){if(n||="h:h",!kC(n))throw Error("unknown directions: <"+n+">: must be specified as <start>:<end> with start/end in { h,v,t,r,b,l }");if(pk(n)){var o=lC(t,e,n),r=pC(t,e,n),i=dC(o,r);return[].concat(o.waypoints,i.waypoints,r.waypoints)}return mC(t,e,n)}function uC(t,e,n){var o=Oh(t,e,n);return o.unshift(t),o.push(e),dk(o)}function hC(t,e,n,o,r){var i=r&&r.preferredLayouts||[],a=zg(i,"straight")[0]||"h:h",s=aC[a]||0,c=dn(t,e,s),l=xC(c,a);n||=vt(t),o||=vt(e);var p=l.split(":");return uC(_b(n,t,p[0],wC(c)),_b(o,e,p[1],c),l)}function fC(t,e,n,o,r,i){bt(n)&&(r=n,i=o,n=vt(t),o=vt(e)),i=P({preferredLayouts:[]},i),r||=[];var a=i.preferredLayouts.indexOf("straight")!==-1&&yC(t,e,n,o,i);return a||(a=i.connectionEnd&&bC(e,t,o,r),a)||(a=i.connectionStart&&vC(t,e,n,r),a)?a:!i.connectionStart&&!i.connectionEnd&&r&&r.length?r:hC(t,e,n,o,i)}function gC(t,e,n){return t>=e&&t<=n}function wb(t,e,n){return gC(e[t],n[t],n[t]+n[{x:"width",y:"height"}[t]])}function yC(t,e,n,o,r){var i={},a,s=dn(t,e);return/^(top|bottom|left|right)$/.test(s)?(/top|bottom/.test(s)&&(a="x"),/left|right/.test(s)&&(a="y"),r.preserveDocking==="target"?wb(a,o,t)?(i[a]=o[a],[{x:i.x===void 0?n.x:i.x,y:i.y===void 0?n.y:i.y,original:{x:i.x===void 0?n.x:i.x,y:i.y===void 0?n.y:i.y}},{x:o.x,y:o.y}]):null:wb(a,n,e)?(i[a]=n[a],[{x:n.x,y:n.y},{x:i.x===void 0?o.x:i.x,y:i.y===void 0?o.y:i.y,original:{x:i.x===void 0?o.x:i.x,y:i.y===void 0?o.y:i.y}}]):null):null}function vC(t,e,n,o){return Lh(t,e,n,o)}function bC(t,e,n,o){var r=o.slice().reverse();return r=Lh(t,e,n,r),r?r.reverse():null}function Lh(t,e,n,o){function r(p){return p.length<3?!0:p.length>4?!1:!!ce(p,function(d,m){var u=p[m-1];return u&&Ca(d,u)<3})}function i(p,d,m){switch(rr(d,p)){case"v":return{x:m.x,y:p.y};case"h":return{x:p.x,y:m.y}}return{x:p.x,y:p.y}}function a(p,d,m){for(var u=p.length-2;u!==0;u--)if(om(p[u],d,xb)||om(p[u],m,xb))return p.slice(u);return p}if(r(o))return null;var s=o[0],c=o.slice(),l;return c[0]=n,c[1]=i(c[1],s,n),l=a(c,t,e),l!==c&&(c=Lh(t,e,n,l)),c&&rr(c)?null:c}function xC(t,e){if(pk(e))return e;switch(t){case"intersect":return"t:t";case"top":case"bottom":return"v:v";case"left":case"right":return"h:h";default:return e}}function kC(t){return t&&/^h|v|t|r|b|l:h|v|t|r|b|l$/.test(t)}function pk(t){return t&&/t|r|b|l/.test(t)}function wC(t){return{top:"bottom",bottom:"top",left:"right",right:"left","top-left":"bottom-right","bottom-right":"top-left","top-right":"bottom-left","bottom-left":"top-right"}[t]}function _b(t,e,n,o){if(n==="h"&&(n=/left/.test(o)?"l":"r"),n==="v"&&(n=/top/.test(o)?"t":"b"),n==="t")return{original:t,x:t.x,y:e.y};if(n==="r")return{original:t,x:e.x+e.width,y:t.y};if(n==="b")return{original:t,x:t.x,y:e.y+e.height};if(n==="l")return{original:t,x:e.x,y:t.y};throw Error("unexpected dockingDirection: <"+n+">")}function dk(t){return t.reduce(function(e,n,o){var r=e[e.length-1],i=t[o+1];return ml(r,i,n,0)||e.push(n),e},[])}function Yp(t){this._elementRegistry=t}function CC(t){var e=t.host;return dn(vt(t),e,_C)}function BC(t,e,n){return{preferredLayouts:n.messageFlow,preserveDocking:RC(t,e)}}function RC(t,e){return y(e,"bpmn:Participant")?"source":y(t,"bpmn:Participant")?"target":zc(e)?"source":zc(t)||y(e,"bpmn:Event")?"target":y(t,"bpmn:Event")?"source":null}function MC(t){return zc(t)?"target":"source"}function Eb(t,e){return t?t.original||t:vt(e)}function Sb(t,e){return y(e,"bpmn:Activity")&&y(t,"bpmn:BoundaryEvent")&&e.businessObject.isForCompensation}function zc(t){return y(t,"bpmn:SubProcess")&&Ot(t)}function ia(t,e){return t===e}function AC(t,e){return e.indexOf(t)!==-1}function us(t){var e=/right|left/.exec(t);return e&&e[0]}function hs(t){var e=/top|bottom/.exec(t);return e&&e[0]}function Tb(t,e){return Nh[t]===e}function PC(t,e){var n=Nh[us(t)];return e.indexOf(n)!==-1}function DC(t,e){var n=Nh[hs(t)];return e.indexOf(n)!==-1}function mk(t){return t==="right"||t==="left"}function jC(t,e,n){var o=e.waypoints,r=o&&o.length&&dn(o[0],t);return r==="top"?n.loop.fromTop:r==="right"?n.loop.fromRight:r==="left"?n.loop.fromLeft:n.loop.fromBottom}function $C(t,e,n,o){var r=vt(t),i=vt(e),a=CC(t),s,c,l=ia(t.host,e),p=AC(a,["top","right","bottom","left"]),d=dn(i,r,{x:t.width/2+e.width/2,y:t.height/2+e.height/2});return l?zC(a,p,t,e,n,o):(s=OC(a,d,p,o.isHorizontal),c=LC(a,d,p,o.isHorizontal),[s+":"+c])}function zC(t,e,n,o,r,i){var a=xc[e?t:i.isHorizontal?hs(t):us(t)],s=e?mk(t)?Cb("y",n,o,r)?"h":i.boundaryLoop.alternateHorizontalSide:Cb("x",n,o,r)?"v":i.boundaryLoop.alternateVerticalSide:i.boundaryLoop.default;return[a+":"+s]}function Cb(t,e,n,o){var r=EC;return!(Fm(t,o,n,r)||Fm(t,o,{x:n.x+n.width,y:n.y+n.height},r)||Fm(t,o,vt(e),r))}function Fm(t,e,n,o){return Math.abs(e[t]-n[t])<o}function OC(t,e,n,o){if(n)return xc[t];var r=hs(t),i=us(t),a=hs(e),s=us(e);if(o){if(ia(r,a)||Tb(i,s))return xc[r]}else if(ia(i,s)||Tb(r,a))return xc[i];return xc[o?i:r]}function LC(t,e,n,o){if(n)return mk(t)?PC(t,e)||ia(t,e)?"h":"v":DC(t,e)||ia(t,e)?"v":"h";var r=hs(t),i=us(t),a=hs(e),s=us(e);return a&&!s?"v":s&&!a?"h":o?ia(r,a)?"h":"v":ia(i,s)?"v":"h"}function Bb(t){return P({original:t.point.original||t.point},t.actual)}function yi(t,e){this._elementRegistry=t,this._graphicsFactory=e}function Ap(t,e,n,o,r,i){this._complexPreview=t,this._connectionDocking=e,this._elementFactory=n,this._eventBus=o,this._layouter=r,this._rules=i}function Wm(t){t.preventDefault()}function ic(t){t.stopPropagation()}function IC(t){return t.nodeType===Node.TEXT_NODE}function HC(t){return[].slice.call(t)}function Uo(t){this.container=t.container,this.parent=ge('<div class="djs-direct-editing-parent"><div class="djs-direct-editing-content" contenteditable="true"></div></div>'),this.content=le("[contenteditable]",this.parent),this.keyHandler=t.keyHandler||function(){},this.resizeHandler=t.resizeHandler||function(){},this.focusoutHandler=t.focusoutHandler||function(){},this.autoResize=bn(this.autoResize,this),this.handlePaste=bn(this.handlePaste,this)}function FC(t){return t.replace(/\r\n|\r|\n/g,"\n")}function Jn(t,e){this._eventBus=t,this._canvas=e,this._providers=[],this._active=null,this._textbox=new Uo({container:e.getContainer(),keyHandler:bn(this._handleKey,this),resizeHandler:bn(this._handleResize,this),focusoutHandler:bn(this._handleFocusout,this)}),t.on(["diagram.clear","diagram.destroy"],()=>this._cleanup())}function WC(t){return function(e){var n=e.target,o=Y(t),r=o.eventDefinitions&&o.eventDefinitions[0],i=o.$type===n.type,a=(r&&r.$type)===n.eventDefinitionType,s=!!n.triggeredByEvent==!!o.triggeredByEvent,c=n.isExpanded===void 0||n.isExpanded===Ot(t);return!i||!a||!s||!c}}function X(t,e={}){var n=GC[t];if(!n)throw Error("unknown popup entry <"+t+">");return{...n,actionName:"replace-with-"+t,...e}}function So(t,e,n,o,r,i,a,s){this._bpmnFactory=t,this._popupMenu=e,this._modeling=n,this._moddle=o,this._bpmnReplace=r,this._rules=i,this._translate=a,this._moddleCopy=s,this._register()}function kc(t,e,n,o,r,i,a,s,c,l,p,d,m){t||={},o.registerProvider(this),this._contextPad=o,this._modeling=r,this._elementFactory=i,this._connect=a,this._create=s,this._popupMenu=c,this._canvas=l,this._rules=p,this._translate=d,this._eventBus=n,this._appendPreview=m,t.autoPlace!==!1&&(this._autoPlace=e.get("autoPlace",!1)),n.on("create.end",250,function(u){var h=u.context.shape;if(Va(u)&&o.isOpen(h)){var f=o.getEntries(h);f.replace&&f.replace.action.click(u,h)}}),n.on("contextPad.close",function(){m.cleanUp()})}function jb(t,e,n){var o=t.$instanceOf(e),r=!1,i=t.eventDefinitions||[];return R(i,function(a){a.$type===n&&(r=!0)}),o&&r}function $r(t,e){this._modeling=t,this._filters=[],this.registerFilter(function(n){var o=e.allowed("elements.distribute",{elements:n});return bt(o)?o:o?n:[]})}function Pp(t){Mo.call(this,t)}function wc(t,e,n,o){this._distributeElements=e,this._translate=n,this._popupMenu=t,this._rules=o,t.registerProvider("align-elements",pB,this)}function Co(t,e){this._eventBus=t,this._actions={};var n=this;t.on("diagram.init",function(){n._registerDefaultActions(e),t.fire("editorActions.init",{editorActions:n})})}function Gm(t,e){return Error(t+" "+e)}function Dp(t){t.invoke(Co,this)}function gk(t){t.on(["create.init","shape.move.init"],function(e){var n=e.context,o=e.shape;At(o,["bpmn:Participant","bpmn:SubProcess","bpmn:TextAnnotation"])&&(n.gridSnappingContext||={},n.gridSnappingContext.snapLocation="top-left")})}function oa(t,e){q.call(this,t),this._gridSnapping=e;var n=this;this.preExecute("shape.resize",function(o){var r=o.context,i=(r.hints||{}).autoResize;if(i){var a=r.shape,s=r.newBounds;r.newBounds=yn(i)?n.snapComplex(s,i):n.snapSimple(a,s)}})}function yk(t,e){t.on(["spaceTool.move","spaceTool.end"],fB,function(n){var o=n.context;if(o.initialized){var r=o.axis,i;r==="x"?(i=e.snapValue(n.dx),n.x=n.x+i-n.dx,n.dx=i):(i=e.snapValue(n.dy),n.y=n.y+i-n.dy,n.dy=i)}})}function Vm(t,e,n){return n||="round",Math[n](t/e)*e}function vi(t,e,n){var o=!n||n.active!==!1;this._eventBus=e;var r=this;e.on("diagram.init",vB,function(){r.setActive(o)}),e.on(["create.move","create.end","bendpoint.move.move","bendpoint.move.end","connect.move","connect.end","connectionSegment.move.move","connectionSegment.move.end","resize.move","resize.end","shape.move.move","shape.move.end"],yB,function(i){var a=i.originalEvent;if(!(!r.active||a&&$n(a))){var s=i.context,c=s.gridSnappingContext;c||=s.gridSnappingContext={},["x","y"].forEach(function(l){var p={},d=xB(i,l,t);d&&(p.offset=d);var m=bB(i,l);m&&P(p,m),ds(i,l)||r.snapEvent(i,l,p)})}})}function bB(t,e){var n=t.context,o=n.createConstraints,r=n.resizeConstraints||{},i=n.gridSnappingContext,a=i.snapConstraints;if(a&&a[e])return a[e];a||=i.snapConstraints={},a[e]||(a[e]={});var s=n.direction;o&&(jp(e)?(a.x.min=o.left,a.x.max=o.right):(a.y.min=o.top,a.y.max=o.bottom));var c=r.min,l=r.max;return c&&(jp(e)?Nb(s)?a.x.max=c.left:a.x.min=c.right:Lb(s)?a.y.max=c.top:a.y.min=c.bottom),l&&(jp(e)?Nb(s)?a.x.min=l.left:a.x.max=l.right:Lb(s)?a.y.min=l.top:a.y.max=l.bottom),a[e]}function xB(t,e,n){var o=t.context,r=t.shape,i=o.gridSnappingContext,a=i.snapLocation,s=i.snapOffset;return s&&xt(s[e])||(s||=i.snapOffset={},xt(s[e])||(s[e]=0),!r)||(n.get(r.id)||(jp(e)?s[e]+=r[e]+r.width/2:s[e]+=r[e]+r.height/2),!a)||(e==="x"?/left/.test(a)?s[e]-=r.width/2:/right/.test(a)&&(s[e]+=r.width/2):/top/.test(a)?s[e]-=r.height/2:/bottom/.test(a)&&(s[e]+=r.height/2)),s[e]}function jp(t){return t==="x"}function Lb(t){return t.indexOf("n")!==-1}function Nb(t){return t.indexOf("w")!==-1}function vk(t,e,n){t.on("autoPlace",wB,function(o){var r=o.source,i=vt(r),a=o.shape,s=Ix(r,a,n);return["x","y"].forEach(function(c){var l={};s[c]!==i[c]&&(s[c]>i[c]?l.min=s[c]:l.max=s[c],y(a,"bpmn:TextAnnotation")&&(l.offset=_B(c)?-a.width/2:-a.height/2),s[c]=e.snapValue(s[c],l))}),s})}function _B(t){return t==="x"}function bk(t,e,n){e.on(["create.start","shape.move.start"],EB,function(o){var r=o.context,i=r.shape,a=t.getRootElement();y(i,"bpmn:Participant")&&y(a,"bpmn:Process")&&a.children.length&&r.createConstraints&&(i.width=n.snapValue(i.width,{min:i.width}),i.height=n.snapValue(i.height,{min:i.height}))})}function $p(t,e,n){q.call(this,t),this._gridSnapping=e;var o=this;this.postExecuted(["connection.create","connection.layout"],SB,function(r){var i=r.context,a=i.connection,s=i.hints||{},c=a.waypoints;s.connectionStart||s.connectionEnd||s.createElementsBehavior===!1||TB(c)&&n.updateWaypoints(a,o.snapMiddleSegments(c))})}function TB(t){return t.length>3}function CB(t){return t==="h"}function BB(t){return t==="v"}function RB(t,e,n){var o=rr(e,n),r={};return CB(o)&&(r.y=t.snapValue(e.y)),BB(o)&&(r.x=t.snapValue(e.x)),("x"in r||"y"in r)&&(e=P({},e,r),n=P({},n,r)),[e,n]}function _c(t,e){this._interactionEvents=e;var n=this;t.on(["interactionEvents.createHit","interactionEvents.updateHit"],function(o){var r=o.element,i=o.gfx;if(y(r,"bpmn:Lane"))return n._createParticipantHit(r,i);if(y(r,"bpmn:Participant"))return Ot(r)?n._createParticipantHit(r,i):n._createDefaultHit(r,i);if(y(r,"bpmn:SubProcess"))return Ot(r)?n._createSubProcessHit(r,i):n._createDefaultHit(r,i)})}function Zp(t){t.invoke(cs,this)}function xk(t,e,n,o,r){var i=this;this._config=P({},jB,t||{}),e.addListener($B,function(a){var s=a.keyEvent,c=zB[s.key];if(c&&!e.isCmd(s)){var l=e.isShift(s);return i.moveSelection(c,l),!0}}),this.moveSelection=function(a,s){var c=r.get();if(c.length){var l=this._config[s?"moveSpeedAccelerated":"moveSpeed"],p=OB[a](l);o.allowed("elements.move",{shapes:c,hints:{keyboardMove:!0}})&&n.moveElements(c,p)}}}function Sc(t,e,n,o){this._dragging=o,this._rules=e;var r=this;function i(c,l){var p=c.shape,d=c.direction,m=c.resizeConstraints,u;c.delta=l,u=nT(p,d,l),c.newBounds=rT(u,m),c.canExecute=r.canResize(c)}function a(c){var l=c.resizeConstraints,p=c.minBounds;l===void 0&&(p===void 0&&(p=r.computeMinResizeBox(c)),c.resizeConstraints={min:ht(p)})}function s(c){var l=c.shape,p=c.canExecute,d=c.newBounds;if(p){if(d=am(d),!NB(l,d))return;n.resizeShape(l,d)}}t.on("resize.start",function(c){a(c.context)}),t.on("resize.move",function(c){var l={x:c.dx,y:c.dy};i(c.context,l)}),t.on("resize.end",function(c){s(c.context)})}function NB(t,e){return t.x!==e.x||t.y!==e.y||t.width!==e.width||t.height!==e.height}function kk(t,e){var n=vt(t),o=ht(t),r={x:n.x,y:n.y};return e.indexOf("n")===-1?e.indexOf("s")!==-1&&(r.y=o.bottom):r.y=o.top,e.indexOf("e")===-1?e.indexOf("w")!==-1&&(r.x=o.left):r.x=o.right,r}function IB(t){var e="resize-";return t==="n"||t==="s"?e+"ns":t==="e"||t==="w"?e+"ew":t==="nw"||t==="se"?e+"nwse":e+"nesw"}function wk(t,e,n){function o(i){var a=i.shape,s=i.newBounds,c=i.frame;c||(c=i.frame=n.addFrame(a,e.getActiveLayer()),e.addMarker(a,Ub)),s.width>5&&U(c,{x:s.x,width:s.width}),s.height>5&&U(c,{y:s.y,height:s.height}),i.canExecute?ut(c).remove(qb):ut(c).add(qb)}function r(i){var a=i.shape;i.frame&&Ne(i.frame),e.removeMarker(a,Ub)}t.on("resize.move",HB,function(i){o(i.context)}),t.on("resize.cleanup",function(i){r(i.context)})}function bi(t,e,n,o){this._resize=o,this._canvas=e;var r=this;t.on("selection.changed",function(i){var a=i.newSelection;r.removeResizers(),a.length===1&&R(a,bn(r.addResizer,r))}),t.on("shape.changed",function(i){var a=i.element;n.isSelected(a)&&(r.removeResizers(),r.addResizer(a))})}function WB(t){var e={x:0,y:0};return t.indexOf("e")===-1?t.indexOf("w")!==-1&&(e.x=tp):e.x=-tp,t.indexOf("s")===-1?t.indexOf("n")!==-1&&(e.y=tp):e.y=-tp,e}function Tc(t,e,n,o,r,i,a){this._bpmnFactory=e,this._canvas=n,this._modeling=r,this._textRenderer=a,o.registerProvider(this),t.on("element.dblclick",function(c){s(c.element,!0)}),t.on(["autoPlace.start","canvas.viewbox.changing","drag.init","element.mousedown","popupMenu.open","root.set","selection.changed"],function(){o.isActive()&&o.complete()}),t.on(["shape.remove","connection.remove"],GB,function(c){o.isActive(c.element)&&o.cancel()}),t.on(["commandStack.changed"],function(c){o.isActive()&&o.cancel()}),t.on("directEditing.activate",function(c){i.removeResizers()}),t.on("create.end",500,function(c){var l=c.context,p=l.shape,d=c.context.canExecute;c.isTouch||d&&(l.hints&&l.hints.createElementsBehavior===!1||s(p))}),t.on("autoPlace.end",500,function(c){s(c.shape)});function s(c,l){(l||At(c,["bpmn:Activity","bpmn:Event","bpmn:TextAnnotation","bpmn:Participant"]))&&o.activate(c)}}function Kb(t){return y(t,"bpmn:SubProcess")&&!Ot(t)}function VB(t){return y(t,"bpmn:SubProcess")&&Ot(t)}function UB(t){return y(t,"bpmn:Participant")&&!Ot(t)}function qB(t){return y(t,"bpmn:Participant")&&Ot(t)}function KB(t){return!t||!t.trim()}function Ek(t,e,n){var o=this,r=e.getDefaultLayer(),i,a,s;t.on("directEditing.activate",function(c){var l=c.active;if(i=l.element.label||l.element,y(i,"bpmn:TextAnnotation")){a=e.getAbsoluteBBox(i),s=et("g");var p=n.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:i.width,containerHeight:i.height,position:{mx:0,my:0}}),d=o.path=et("path");U(d,{d:p,strokeWidth:2,stroke:XB(i)}),it(s,d),it(r,s),hn(s,i.x,i.y)}y(i,"bpmn:TextAnnotation")||i.labelTarget?e.addMarker(i,Xb):(y(i,"bpmn:Task")||y(i,"bpmn:CallActivity")||y(i,"bpmn:SubProcess")||y(i,"bpmn:Participant")||y(i,"bpmn:Lane"))&&e.addMarker(i,Yb)}),t.on("directEditing.resize",function(c){if(y(i,"bpmn:TextAnnotation")){var l=c.height,p=c.dy,d=Math.max(i.height/a.height*(l+p),0),m=n.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:i.width,containerHeight:d,position:{mx:0,my:0}});U(o.path,{d:m})}}),t.on(["directEditing.complete","directEditing.cancel"],function(c){var l=c.active;l&&(e.removeMarker(l.element.label||l.element,Xb),e.removeMarker(i,Yb)),i=void 0,a=void 0,s&&=(Ne(s),void 0)})}function XB(t,e){return Tt(t).get("stroke")||e||"black"}function pr(t,e,n){this._eventBus=t,this._elementRegistry=n,this._outlineOffset=5,this._outlineStyle=e.cls("djs-outline",["no-fill"]);var o=this;function r(i){Ig(i)||o.createOutline(i)}t.on("element.hover",function(i){r(i.element)}),t.on("selection.changed",function(i){R(i.newSelection,r)}),t.on(["shape.changed","connection.changed"],ZB,function(i){var a=i.element,s=i.gfx,c=le(".djs-outline",s);c&&o.updateOutline(a,c)})}function mh(t,e,n){this._canvas=e;var o=this;t.on("element.changed",function(r){n.isSelected(r.element)&&o._updateMultiSelectionOutline(n.get())}),t.on("selection.changed",function(r){var i=r.newSelection;o._updateMultiSelectionOutline(i)})}function QB(t){return{x:t.x-op,y:t.y-op,width:t.width+op*2,height:t.height+op*2}}function Sk(t,e,n,o,r){let i=e.getLayer("overlays");t.on(["selection.changed","shape.changed"],function(){s()}),t.on("selection.changed",function({newSelection:d}){let m=d.filter(u=>At(u,Zb));if(m.length===1){let u=m[0];Bt(u)?a(u,u.labelTarget):u.labels?.length&&a(u.labels[0],u)}if(m.length===2){let u=m.find(Bt),h=m.find(f=>f.labels?.includes(u));u&&h&&a(u,h)}}),t.on("shape.changed",function({element:d}){At(d,Zb)&&p(d)&&(Bt(d)?a(d,d.labelTarget):d.labels?.length&&a(d.labels[0],d))});function a(d,m){let u=vt(d),h=oe(m)?b2(u,BT(m.waypoints)):vt(m),f=Gi([h,u],Jb),g=f.getAttribute("d"),x=r.isSelected(d)?c(d):l(d),k=Ra(x,g);if(!k)return;let _;if(oe(m))_=h;else{let w=r.isSelected(m)?c(m):l(m);_=Ra(w,g)||vt(m)}ps(_,k)<t9||(Ls(f,[_,k]),it(i,f))}function s(){Vs(".".concat(Jb.class),i).forEach(Ne)}function c(d){let m=o.getOutline(d);if(!m)return l(d);if(m.x){let u={x:d.x+ui(m,"x")-rp,y:d.y+ui(m,"y")-rp,width:ui(m,"width")+rp*2,height:ui(m,"height")+rp*2};return Ns(u,ui(m,"rx"))}if(m.cx){let u=ui(m,"r"),h={x:d.x+ui(m,"cx")-u,y:d.y+ui(m,"cy")-u,width:u*2,height:u*2};return yl(h)}}function l(d){return n.getShapePath(d)}function p(d){return r.isSelected(d)}}function ui(t,e){return parseFloat(U(t,e)||0)}function o9(t){var e=ge('<div class="djs-tooltip-container" />');return Tn(e,{position:"absolute",width:"0",height:"0"}),t.insertBefore(e,t.firstChild),e}function r9(t,e,n){Tn(t,{left:e+"px",top:n+"px"})}function Um(t,e){t.style.display=e===!1?"none":""}function Fn(t,e){this._eventBus=t,this._canvas=e,this._ids=n9,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=o9(e.getContainer());var n=this;Cn.bind(this._tooltipRoot,qm,"mousedown",function(o){o.stopPropagation()}),Cn.bind(this._tooltipRoot,qm,"mouseover",function(o){n.trigger("mouseover",o)}),Cn.bind(this._tooltipRoot,qm,"mouseout",function(o){n.trigger("mouseout",o)}),this._init()}function Ck(t,e,n){function o(r,i,a){e.add({position:{x:r.x+5,y:r.y+5},type:"error",timeout:a||2e3,html:"<div>"+i+"</div>"})}t.on(["shape.move.rejected","create.rejected"],function(r){var i=r.context,a=i.shape,s=i.target;y(s,"bpmn:Collaboration")&&(y(a,"bpmn:FlowNode")?o(r,n(a9)):y(a,"bpmn:DataObjectReference")&&o(r,n(s9)))})}function m9(t){return{x:t.x+Jp(t.width/2),y:t.y+Jp(t.height/2)}}function Bk(t,e,n,o,r){function i(s,c,l,p){return r.allowed("elements.move",{shapes:s,delta:c,position:l,target:p})}t.on("shape.move.start",d9,function(s){var c=s.context,l=s.shape,p=o.get().slice();p.indexOf(l)===-1&&(p=[l]),p=u9(p),P(c,{shapes:p,validatedShapes:p,shape:l})}),t.on("shape.move.start",p9,function(s){var c=s.context,l=c.validatedShapes;if(!(c.canExecute=i(l)))return!1}),t.on("shape.move.move",l9,function(s){var c=s.context,l=c.validatedShapes,p=s.hover,d={x:s.dx,y:s.dy},m=i(l,d,{x:s.x,y:s.y},p);c.delta=d,c.canExecute=m,c.target=m===null?null:p}),t.on("shape.move.end",function(s){var c=s.context,l=c.delta,p=c.canExecute,d=p==="attach",m=c.shapes;if(p===!1)return!1;l.x=Jp(l.x),l.y=Jp(l.y),(l.x!==0||l.y!==0)&&n.moveElements(m,l,c.target,{primaryShape:c.shape,attach:d})}),t.on("element.mousedown",function(s){if(Mr(s)){var c=Yi(s);if(!c)throw Error("must supply DOM mousedown event");return a(c,s.element)}});function a(s,c,l,p){if(Se(l)&&(p=l,l=!1),!c.waypoints&&c.parent&&!ut(s.target).has("djs-hit-no-move")){var d=m9(c);if(e.init(s,d,"shape.move",{cursor:"grabbing",autoActivate:l,data:{shape:c,context:p||{}}})!==!1)return!0}}this.start=a}function u9(t){var e=Xr(t,"id");return Dt(t,function(n){for(;n=n.parent;)if(e[n.id])return!1;return!0})}function Rk(t,e,n,o){function r(c){return h9(i(c))}function i(c){var l=Ha(c),p=l.flatMap(m=>(m.incoming||[]).concat(m.outgoing||[])),d=l.concat(p);return[...new Set(d)]}function a(c,l){[o1,t1,e1,n1].forEach(function(p){p===l?e.addMarker(c,p):e.removeMarker(c,p)})}function s(c,l,p){o.addDragger(l,c.dragGroup),p&&e.addMarker(l,Km),c.allDraggedElements?c.allDraggedElements.push(l):c.allDraggedElements=[l]}t.on("shape.move.start",Qb,function(c){var l=c.context,p=l.shapes,d=l.allDraggedElements,m=r(p);if(!l.dragGroup){var u=et("g");U(u,n.cls("djs-drag-group",["no-events"]));var h=e.getActiveLayer();it(h,u),l.dragGroup=u}m.forEach(function(f){o.addDragger(f,l.dragGroup)}),d=d?sl([d,i(p)]):i(p),R(d,function(f){e.addMarker(f,Km)}),l.allDraggedElements=d,l.differentParents=f9(p)}),t.on("shape.move.move",Qb,function(c){var l=c.context,p=l.dragGroup,d=l.target,m=l.shape.parent,u=l.canExecute;d&&(u==="attach"?a(d,o1):l.canExecute&&m&&d.id!==m.id?a(d,n1):a(d,l.canExecute?t1:e1)),hn(p,c.dx,c.dy)}),t.on(["shape.move.out","shape.move.cleanup"],function(c){var l=c.context.target;l&&a(l,null)}),t.on("shape.move.cleanup",function(c){var l=c.context,p=l.allDraggedElements,d=l.dragGroup;R(p,function(m){e.removeMarker(m,Km)}),d&&Ne(d)}),this.makeDraggable=s}function h9(t){var e=new Set;return t.forEach(function(n){e.add(n.id)}),Dt(t,function(n){return!oe(n)||e.has(n.source.id)&&e.has(n.target.id)})}function f9(t){return Og(Xr(t,function(e){return e.parent&&e.parent.id}))!==1}function ra(t){this._canvas=t,this._mount=null,this._current=null,this._showTimer=null}function Ye(t,e){this._eventBus=t,this._canvas=e;var n=this;t.on("tool-manager.update",function(o){var r=o.tool;n.updateToolHighlight(r)}),t.on("i18n.changed",function(){n._update()}),t.on("diagram.init",function(){n._diagramInitialized=!0,n._rebuild()})}function w9(t,e){var n=_e(t);(bt(e)?e:e.split(/\s+/g)).forEach(function(o){n.add(o)})}function _9(t,e){var n=e.getPaletteEntries();return Be(n)?n(t):(R(n,function(o,r){t[r]=o}),t)}function E9(t){let{title:e,shortcut:n}=t;return Kt(ix||(ix=Vt(['\n <span class="djs-palette-tooltip-label">',"</span>\n ","\n "])),e,n?Kt(rx||(rx=Vt(['<kbd class="djs-palette-tooltip-shortcut">',"</kbd>"])),n):null)}function zp(t,e,n){this._palette=e,this._hoverTooltip=n,this._entries={},t.on("palette.create",o=>this._init(o.container)),t.on("palette.changed",()=>this._updateEntries())}function xi(t,e,n,o,r,i,a){this._selection=r,this._dragging=n,this._mouse=a;var s=this,c={create:function(d){var m=e.getActiveLayer(),u=d.frame=et("rect");U(u,{class:"djs-lasso-overlay",width:1,height:1,x:0,y:0}),it(m,u),l(!0),this.update(d)},update:function(d){var m=d.frame,u=d.bbox;m&&u&&U(m,{x:u.x,y:u.y,width:u.width,height:u.height});var h=d.marked,f=d.lastMarked;if(h&&f){for(let g of f)h.has(g)||e.removeMarker(g,a1);for(let g of h)f.has(g)||e.addMarker(g,a1)}},remove:function(d){this.update(d),d.frame&&Ne(d.frame),l(!1)}};function l(d){ut(e.getContainer()).toggle(B9,d)}function p(d){var m=o.getAll();return new Set(Hi(Ki(m,d)))}i.registerTool("lasso",{tool:"lasso.selection",dragging:"lasso"}),t.on("lasso.selection.end",function(d){var m=d.originalEvent.target;(d.hover||m instanceof SVGElement)&&t.once("lasso.selection.ended",function(){s.activateLasso(d.originalEvent,!0)})}),t.on("lasso.end",0,function(d){var m=d.context;s._select(Array.from(m.marked))}),t.on("lasso.start",function(d){var m=d.context;m.bbox=s1(d),m.add=Ys(d),m.lastMarked=new Set(r.get()),m.marked=m.add?m.lastMarked:new Set,m.initialMarked=m.marked,c.create(m)}),t.on("lasso.move",function(d){var m=d.context,u=p(m.bbox=s1(d)),h=m.initialMarked.union(u);m.lastMarked=m.marked,m.marked=h,c.update(m)}),t.on("lasso.cleanup",function(d){var m=d.context;m.lastMarked=m.marked,m.marked=new Set(r.get()),c.remove(d.context)}),t.on("element.mousedown",1500,function(d){if(Ys(d))return s.activateLasso(d.originalEvent),!0})}function s1(t){var e={x:t.x-t.dx,y:t.y-t.dy},n={x:t.x,y:t.y};return e.x<=n.x&&e.y<n.y||e.x<n.x&&e.y<=n.y?{x:e.x,y:e.y,width:n.x-e.x,height:n.y-e.y}:e.x>=n.x&&e.y<n.y||e.x>n.x&&e.y<=n.y?{x:n.x,y:e.y,width:e.x-n.x,height:n.y-e.y}:e.x<=n.x&&e.y>n.y||e.x<n.x&&e.y>=n.y?{x:e.x,y:n.y,width:n.x-e.x,height:e.y-n.y}:e.x>=n.x&&e.y>n.y||e.x>n.x&&e.y>=n.y?{x:n.x,y:n.y,width:e.x-n.x,height:e.y-n.y}:{x:n.x,y:n.y,width:0,height:0}}function rs(t,e,n,o,r,i){this._dragging=n,this._mouse=i;var a=this,s=o.get("keyboard",!1);r.registerTool("hand",{tool:"hand",dragging:"hand.move"}),t.on("element.mousedown",Zm,function(c){if(Va(c))return a.activateMove(c.originalEvent,!0),!1}),s&&s.addListener(Zm,function(c){if(l1(c.keyEvent)&&!a.isActive()){var l=a._mouse.getLastMoveEvent();a.activateMove(l,!!l)}},"keyboard.keydown"),s&&s.addListener(Zm,function(c){l1(c.keyEvent)&&a.isActive()&&a.toggle()},"keyboard.keyup"),t.on("hand.end",function(c){var l=c.originalEvent.target;if(!c.hover&&!(l instanceof SVGElement))return!1;t.once("hand.ended",function(){a.activateMove(c.originalEvent,{reactivate:!0})})}),t.on("hand.move.move",function(c){var l=e.viewbox().scale;e.scroll({dx:c.dx*l,dy:c.dy*l})}),t.on("hand.move.end",function(c){var l=c.context.reactivate;return!Va(c)&&l&&t.once("hand.move.ended",function(p){a.activateHand(p.originalEvent,!0,!0)}),!1})}function l1(t){return Ie("Space",t)}function is(t,e,n,o,r,i,a){var s=this;this._dragging=e,this._rules=i,this._mouse=a,r.registerTool("global-connect",{tool:"global-connect",dragging:"global-connect.drag"}),t.on("global-connect.hover",function(c){var l=c.context,p=c.hover,d=l.canStartConnect=s.canStartConnect(p);d!==null&&(l.startTarget=p,o.addMarker(p,d?p1:d1))}),t.on(["global-connect.out","global-connect.cleanup"],function(c){var l=c.context.startTarget,p=c.context.canStartConnect;l&&o.removeMarker(l,p?p1:d1)}),t.on(["global-connect.ended"],function(c){var l=c.context.startTarget,p={x:c.x,y:c.y};if(s.canStartConnect(l))return t.once("element.out",function(){t.once(["connect.ended","connect.canceled"],function(){t.fire("global-connect.drag.ended")}),n.start(null,l,p)}),!1})}function uh(t,e,n,o,r,i,a,s){this._palette=t,this._create=e,this._elementFactory=n,this._spaceTool=o,this._lassoTool=r,this._handTool=i,this._globalConnect=a,this._translate=s,t.registerProvider(this)}function hh(t,e,n,o,r){q.call(this,t);function i(s){var c=s.canExecute.replacements;R(c,function(l){var p=l.oldElementId,d={type:l.newElementType};if(!s.visualReplacements[p]){var m=e.get(p);P(d,{x:m.x,y:m.y});var u=n.createShape(d);o.addShape(u,m.parent);var h=le('[data-element-id="'+Ga(m.id)+'"]',s.dragGroup);h&&U(h,{display:"none"});var f=r.addDragger(u,s.dragGroup);s.visualReplacements[p]=f,o.removeShape(u)}})}function a(s){var c=s.visualReplacements;R(c,function(l,p){var d=le('[data-element-id="'+Ga(p)+'"]',s.dragGroup);d&&U(d,{display:"inline"}),l.remove(),c[p]&&delete c[p]})}t.on("shape.move.move",D9,function(s){var c=s.context,l=c.canExecute;c.visualReplacements||={},l&&l.replacements?i(c):a(c)})}function Dk(t){t.on(["connect.hover","connect.move","connect.end"],$9,function(e){var n=e.context,o=n.canExecute,r=n.start,i=n.hover,a=n.source,s=n.target;e.originalEvent&&$n(e.originalEvent)||(n.initialConnectionStart||=n.connectionStart,o&&i&&N9(e,i,W9(i)),i&&F9(o,["bpmn:Association","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:SequenceFlow"])?(n.connectionStart=Bo(r),At(i,["bpmn:Event","bpmn:Gateway"])&&u1(e,Bo(i)),At(i,["bpmn:Task","bpmn:SubProcess"])&&I9(e,i),y(a,"bpmn:BoundaryEvent")&&s===a.host&&H9(e)):jk(o,"bpmn:MessageFlow")?(y(r,"bpmn:Event")&&(n.connectionStart=Bo(r)),y(i,"bpmn:Event")&&u1(e,Bo(i))):n.connectionStart=n.initialConnectionStart)})}function N9(t,e,n){Pk.forEach(function(o){var r=$k(o,e);t[o]<e[o]+n?Je(t,o,e[o]+n):t[o]>e[o]+r-n&&Je(t,o,e[o]+r-n)})}function I9(t,e){var n=Bo(e);Pk.forEach(function(o){G9(t,e,o)&&Je(t,o,n[o])})}function H9(t){var e=t.context,n=e.source,o=e.target;if(!V9(e)){var r=Bo(n),i=dn(r,o,-10),a=[];/top|bottom/.test(i)&&a.push("x"),/left|right/.test(i)&&a.push("y"),a.forEach(function(s){var c=t[s],l;L9(c-r[s])<Jm&&(l=c>r[s]?r[s]+Jm:r[s]-Jm,Je(t,s,l))})}}function u1(t,e){Je(t,"x",e.x),Je(t,"y",e.y)}function jk(t,e){return t&&t.type===e}function F9(t,e){return Ho(e,function(n){return jk(t,n)})}function $k(t,e){return t==="x"?e.width:e.height}function W9(t){return y(t,"bpmn:Task")?O9:z9}function G9(t,e,n){return t[n]>e[n]+m1&&t[n]<e[n]+$k(n,e)-m1}function V9(t){var e=t.hover,n=t.source;return e&&n&&e===n}function _i(){this._targets={},this._snapOrigins={},this._snapLocations=[],this._defaultSnaps={}}function Op(){this._snapValues={}}function hr(t,e,n){var o=this;this._elementRegistry=t,e.on(["create.start","shape.move.start"],function(r){o.initSnap(r)}),e.on(["create.move","create.end","shape.move.move","shape.move.end"],U9,function(r){var i=r.context,a=i.shape,s=i.snapContext,c=i.target;if(!(r.originalEvent&&$n(r.originalEvent))&&!ds(r)&&c){var l=s.pointsForTarget(c);l.initialized||(l=o.addSnapTargetPoints(l,a,c),l.initialized=!0),n.snap(r,l)}}),e.on(["create.cleanup","shape.move.cleanup"],function(){n.hide()})}function q9(t){return!!t.hidden}function as(t,e){e.invoke(hr,this),t.on(["create.move","create.end"],h1,Z9),t.on(["create.move","create.end","shape.move.move","shape.move.end"],h1,function(n){var o=n.context,r=o.canExecute,i=o.target;r&&(r==="attach"||r.attach)&&!ds(n)&&K9(n,i)})}function K9(t,e){var n=ht(e),o=j2(t,e),r=t.context.shape,i=r.parent?{x:0,y:0}:vt(r);/top/.test(o)?Je(t,"y",n.top-i.y):/bottom/.test(o)&&Je(t,"y",n.bottom-i.y),/left/.test(o)?Je(t,"x",n.left-i.x):/right/.test(o)&&Je(t,"x",n.right-i.x)}function X9(t,e){return t.every(function(n){return y(n,e)})}function Y9(t){return y(t,"bpmn:SubProcess")&&Ot(t)?!0:y(t,"bpmn:Participant")}function Z9(t){var e=t.context.createConstraints;if(e){var n=e.top,o=e.right,r=e.bottom,i=e.left;(i&&i>=t.x||o&&o<=t.x)&&Je(t,"x",t.x),(n&&n>=t.y||r&&r<=t.y)&&Je(t,"y",t.y)}}function f1(t,e){return t.indexOf(e)!==-1}function g1(t,e,n){return e?{x:t.x-n.x,y:t.y-n.y}:{x:t.x,y:t.y}}function Cc(t,e){var n=this;t.on(["resize.start"],function(o){n.initSnap(o)}),t.on(["resize.move","resize.end"],J9,function(o){var r=o.context,i=r.shape,a=i.parent,s=r.direction,c=r.snapContext;if(!(o.originalEvent&&$n(o.originalEvent))&&!ds(o)){var l=c.pointsForTarget(a);l.initialized||(l=n.addSnapTargetPoints(l,i,a,s),l.initialized=!0),eR(s)&&Je(o,"x",o.x),nR(s)&&Je(o,"y",o.y),e.snap(o,l)}}),t.on(["resize.cleanup"],function(){e.hide()})}function y1(t,e){var n=vt(t),o=ht(t),r={x:n.x,y:n.y};return e.indexOf("n")===-1?e.indexOf("s")!==-1&&(r.y=o.bottom):r.y=o.top,e.indexOf("e")===-1?e.indexOf("w")!==-1&&(r.x=o.left):r.x=o.right,r}function Q9(t,e){return t.host===e}function tR(t){return!!t.hidden}function eR(t){return t==="n"||t==="s"}function nR(t){return t==="e"||t==="w"}function ki(t){this._canvas=t,this._asyncHide=Ea(bn(this.hide,this),rR)}function Rt(t,e,n,o){this._open=!1,this._results={},this._eventMaps=[],this._cachedRootElement=null,this._cachedSelection=null,this._cachedViewbox=null,this._canvas=t,this._eventBus=e,this._selection=n,this._translate=o,this._container=this._getBoxHtml(),this._searchInput=le(Rt.INPUT_SELECTOR,this._container),this._resultsContainer=le(Rt.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),e.on(["canvas.destroy","diagram.destroy","drag.init","elements.changed"],this.close,this)}function b1(t,e,n){var o=aR(e),r=ge(n);r.innerHTML=o,t.appendChild(r)}function aR(t){var e="";return t.forEach(function(n){var o=Al(n.value||n.matched||n.normal),r=n.match||n.matched;e+=r?'<b class="'+Rt.RESULT_HIGHLIGHT_CLASS+'">'+o+"</b>":o}),e===""?null:e}function fh(t,e,n,o){this._elementRegistry=t,this._canvas=n,this._search=o,e.registerProvider(this)}function cR(t){let{item:{element:e},tokens:n}=t;return{element:e,primaryTokens:n.label,secondaryTokens:n.id}}function x1(t,e,n){return et("path",{d:t,strokeWidth:2,transform:"translate(".concat(e.x,", ").concat(e.y,")"),...n})}function Lp(t,e){this._styles=e,t.registerProvider(this)}function k1(t,e){var n;return e==="bpmn:DataObjectReference"?n=mR:e==="bpmn:DataStoreReference"&&(n=uR),t.width===n.width&&t.height===n.height}function dr(t){Bc.call(this,t)}var M3,cx,zl,A3,P3,lx,D3,gh,j3,dx,$3,z3,O3,fx,I3,Bm,x0,H3,F3,gx,W3,G3,V3,q3,K3,Ol,X3,_0,Y3,yx,td,Pe,vx,wi,E0,bx,xx,Mm,ip,Rc,kx,yh,tu,eu,Np,Ip,t6,ed,Mx,B0,Kt,ls,Ze,Am,R0,Dc,Ax,nn,M0,A0,P0,D0,j0,$0,z0,w1,_1,E1,S1,T1,C1,B1,R1,M1,A1,P1,D1,j1,$1,z1,O1,L1,N1,I1,H1,F1,W1,y6,G1,V1,U1,q1,K1,X1,Y1,Z1,J1,Q1,tx,ex,_6,I0,E6,nx,F0,Ka,zx,wh,Ox,A6,P6,D6,j6,$6,F6,G6,Sh,Y6,q0,J6,Xa,K0,Nr,n4,fr,Nl,o4,Gx,qx,Kx,Y0,Qi,ta,Js,y4,v4,Z0,Qs,Il,J0,Q0,tv,ev,nv,ov,x4,av,w4,sv,Dm,_4,E4,S4,cv,lv,Ch,T4,R4,M4,A4,P4,gs,Hl,s2,L4,Bh,Fl,W4,pv,X4,vu,bu,Gl,uv,Gp,Vp,eT,pi,lT,dT,fv,Ul,bv,xv,f2,g2,hT,wv,Up,Bv,Rv,zT,LT,NT,Ah,Ph,yp,vp,S2,T2,di,IT,HT,FT,WT,Mv,VT,M2,Av,t8,Pv,jm,a8,s8,P2,jv,l8,p8,D2,$v,f8,A8,P8,D8,j8,$8,z8,Vv,Uv,qv,Kv,O8,L8,ld,Lc,Zv,W8,Om,G8,V8,Y2,Qv,U8,K8,Q2,Z8,pd,Lm,n7,Dr,eb,mi,o7,Xl,Yl,Nm,rb,a7,Zl,s7,ek,l7,p7,ib,d7,m7,sb,cb,y7,v7,b7,x7,k7,w7,_7,E7,S7,T7,C7,B7,R7,M7,A7,P7,Jl,lb,O7,L7,pb,oc,Or,ak,G7,K7,rc,Im,zh,eC,rC,Ql,iC,Xp,xb,aC,_C,EC,SC,TC,Nh,xc,uk,Rb,NC,Mb,Ab,hk,GC,VC,UC,qC,KC,XC,YC,ZC,fk,JC,Pb,QC,tB,eB,nB,oB,rB,iB,Db,aB,sB,cB,$b,lB,zb,pB,dB,Ob,mB,uB,hB,fB,gB,yB,vB,kB,wB,EB,SB,MB,AB,Ib,PB,Ec,DB,jB,$B,Hb,Fb,Wb,Gb,zB,OB,LB,Vb,Ub,qb,HB,tp,ep,np,ac,FB,_k,GB,Xb,Yb,YB,ZB,JB,op,Ih,Zb,Jb,t9,rp,e9,n9,Tk,qm,i9,a9,s9,c9,l9,p9,d9,Jp,Qb,Km,t1,e1,n1,o1,g9,y9,ox,v9,Mk,Ak,b9,Xm,x9,Ym,r1,k9,rx,ix,S9,T9,ax,C9,i1,a1,B9,R9,Zm,c1,M9,p1,d1,A9,P9,D9,j9,$9,Jm,z9,O9,m1,Pk,L9,U9,h1,J9,oR,rR,iR,v1,sR,lR,pR,dR,mR,uR,_o,hR,fR,Ok=gn(()=>{"use strict";Uh();er();Er();Ta();hl();ja();Is();bm();v0();Ua();dt(Bc,Ce),Bc.prototype._createModdle=function(t){var e=Ce.prototype._createModdle.call(this,t);return e.ids=new Go([32,36,1]),e},Bc.prototype._collectIds=function(t,e){var n=t.$model.ids,o;for(o in n.clear(),e)n.claim(o,e[o])};M3=300;sx.$inject=["eventBus","canvas","selection"];cx={__init__:["keepSelectionVisible"],__depends__:[Yn],keepSelectionVisible:["type",sx]},zl="keyboard.keydown",A3="keyboard.keyup",P3=1e3,lx="Keyboard binding is now implicit; explicit binding to an element got removed. For more information, see https://github.com/bpmn-io/diagram-js/issues/661";jn.$inject=["config.keyboard","eventBus"],jn.prototype._keydownHandler=function(t){this._keyHandler(t,zl)},jn.prototype._keyupHandler=function(t){this._keyHandler(t,A3)},jn.prototype._keyHandler=function(t,e){var n;if(!this._isEventIgnored(t)){var o={keyEvent:t};n=this._eventBus.fire(e||zl,o),n&&t.preventDefault()}},jn.prototype._isEventIgnored=function(t){return!1},jn.prototype.bind=function(t){t&&console.error("unsupported argument <node>",Error(lx)),this.unbind(),t=this._node=this._target,Ct.bind(t,"keydown",this._keydownHandler),Ct.bind(t,"keyup",this._keyupHandler),this._fire("bind")},jn.prototype.getBinding=function(){return this._node},jn.prototype.unbind=function(){var t=this._node;t&&(this._fire("unbind"),Ct.unbind(t,"keydown",this._keydownHandler),Ct.unbind(t,"keyup",this._keyupHandler)),this._node=null},jn.prototype._fire=function(t){this._eventBus.fire("keyboard."+t,{node:this._node})},jn.prototype.addListener=function(t,e,n){Be(t)&&(n=e,e=t,t=P3),this._eventBus.on(n||zl,t,e)},jn.prototype.removeListener=function(t,e){this._eventBus.off(e||zl,t)},jn.prototype.hasModifier=Hh,jn.prototype.isCmd=$n,jn.prototype.isShift=Nc,jn.prototype.isKey=Ie;D3=500;cs.$inject=["eventBus","keyboard"],cs.prototype.registerBindings=function(t,e){function n(o,r){e.isRegistered(o)&&t.addListener(r)}n("undo",function(o){var r=o.keyEvent;if(dd(r))return e.trigger("undo"),!0}),n("redo",function(o){var r=o.keyEvent;if(md(r))return e.trigger("redo"),!0}),n("copy",function(o){var r=o.keyEvent;if(Fh(r))return e.trigger("copy"),!0}),n("paste",function(o){var r=o.keyEvent;if(Wh(r))return e.trigger("paste"),!0}),n("duplicate",function(o){var r=o.keyEvent;if(Gh(r))return e.trigger("duplicate"),!0}),n("cut",function(o){var r=o.keyEvent;if(Vh(r))return e.trigger("cut"),!0}),n("stepZoom",function(o){var r=o.keyEvent;if(Ie(["+","Add","="],r)&&$n(r))return e.trigger("stepZoom",{value:1}),!0}),n("stepZoom",function(o){var r=o.keyEvent;if(Ie(["-","Subtract"],r)&&$n(r))return e.trigger("stepZoom",{value:-1}),!0}),n("zoom",function(o){var r=o.keyEvent;if(Ie("0",r)&&$n(r))return e.trigger("zoom",{value:1}),!0}),n("removeSelection",function(o){var r=o.keyEvent;if(Ie(["Backspace","Delete","Del"],r))return e.trigger("removeSelection"),!0})};gh={__init__:["keyboard","keyboardBindings"],keyboard:["type",jn],keyboardBindings:["type",cs]},j3={moveSpeed:50,moveSpeedAccelerated:200};px.$inject=["config.keyboardMove","keyboard","canvas"];dx={__depends__:[gh],__init__:["keyboardMove"],keyboardMove:["type",px]},$3=/^djs-cursor-.*$/;z3=5e3;O3=15;hx.$inject=["eventBus","canvas"];fx={__init__:["moveCanvas"],moveCanvas:["type",hx]};I3=Math.sign||function(t){return t>=0?1:-1},Bm={min:.2,max:4},x0=10,H3=.1,F3=.75;lr.$inject=["config.zoomScroll","eventBus","canvas"],lr.prototype.scroll=function(t){this._canvas.scroll(t)},lr.prototype.reset=function(){this._canvas.zoom("fit-viewport")},lr.prototype.zoom=function(t,e){var n=b0(Bm,x0*2);this._totalDelta+=t,Math.abs(this._totalDelta)>H3&&(this._zoom(t,e,n),this._totalDelta=0)},lr.prototype._handleWheel=function(t){if(this._enabled){var e=this._container;t.preventDefault();var n=t.ctrlKey||Cm()&&t.metaKey,o=t.shiftKey,r=-1*this._scale,i;if(r*=n?t.deltaMode===0?.02:.32:t.deltaMode===0?1:16,n){var a=e.getBoundingClientRect(),s={x:t.clientX-a.left,y:t.clientY-a.top};i=Math.sqrt(t.deltaY**2+t.deltaX**2)*I3(t.deltaY)*r,this.zoom(i,s)}else i=o?{dx:r*t.deltaY,dy:0}:{dx:r*t.deltaX,dy:r*t.deltaY},this.scroll(i)}},lr.prototype.stepZoom=function(t,e){var n=b0(Bm,x0);this._zoom(t,e,n)},lr.prototype._zoom=function(t,e,n){var o=this._canvas,r=t>0?1:-1,i=Qm(o.zoom()),a=Math.round(i/n)*n;a+=n*r;var s=10**a;o.zoom(N3(Bm,s),e)},lr.prototype.toggle=function(t){var e=this._container,n=this._handleWheel,o=this._enabled;return t===void 0&&(t=!o),o!==t&&Ct[t?"bind":"unbind"](e,"wheel",n,!1),this._enabled=t,t},lr.prototype._init=function(t){this.toggle(t)};gx={__init__:["zoomScroll"],zoomScroll:["type",lr]};dt(sc,Rr),sc.prototype._navigationModules=[cx,dx,fx,gx],sc.prototype._modules=[].concat(Rr.prototype._modules,sc.prototype._navigationModules);W3={left:w0,center:w0,right:function(t){return t.x+t.width},top:k0,middle:k0,bottom:function(t){return t.y+t.height}};es.$inject=["modeling","rules"],es.prototype._getOrientationDetails=function(t){var e=["top","bottom","middle"],n="x",o="width";return e.indexOf(t)!==-1&&(n="y",o="height"),{axis:n,dimension:o}},es.prototype._isType=function(t,e){return e.indexOf(t)!==-1},es.prototype._alignmentPosition=function(t,e){var n=this._getOrientationDetails(t),o=n.axis,r=n.dimension,i={},a={},s=!1,c,l,p;function d(m,u){return Math.round((m[o]+u[o]+u[r])/2)}if(this._isType(t,["left","top"]))i[t]=e[0][o];else if(this._isType(t,["right","bottom"]))p=Rm(e),i[t]=p[o]+p[r];else if(this._isType(t,["center","middle"])){if(R(e,function(m){var u=m[o]+Math.round(m[r]/2);a[u]?a[u].elements.push(m):a[u]={elements:[m],center:u}}),c=vo(a,function(m){return m.elements.length>1&&(s=!0),m.elements.length}),s)return i[t]=Rm(c).center,i;l=e[0],e=vo(e,function(m){return m[o]+m[r]}),p=Rm(e),i[t]=d(l,p)}return i},es.prototype.trigger=function(t,e){var n=this._modeling,o,r=Dt(t,function(c){return!(c.waypoints||c.host||c.labelTarget)});if(o=this._rules.allowed("elements.align",{elements:r}),bt(o)&&(r=o),!(r.length<2||!o)){var i=W3[e],a=vo(r,i),s=this._alignmentPosition(e,a);n.alignElements(a,s)}};G3={__init__:["alignElements"],alignElements:["type",es]},V3=new Xi;ns.$inject=["eventBus"],ns.prototype.schedule=function(t,e=V3.next()){this.cancel(e);let n=this._schedule(t,e);return this._scheduled[e]=n,n.promise},ns.prototype._schedule=function(t,e){let n=U3();return{executionId:setTimeout(()=>{try{this._scheduled[e]=null;try{n.resolve(t())}catch(o){n.reject(o)}}catch(o){console.error("Scheduler#_schedule execution failed",o)}}),promise:n.promise}},ns.prototype.cancel=function(t){let e=this._scheduled[t];e&&(this._cancel(e),this._scheduled[t]=null)},ns.prototype._cancel=function(t){clearTimeout(t.executionId)};q3={scheduler:["type",ns]},K3="djs-element-hidden",Ol=".entry",X3=1e3,_0=8,Y3=300;Xe.$inject=["canvas","elementRegistry","eventBus","scheduler"],Xe.prototype._init=function(){var t=this;this._eventBus.on("selection.changed",function(e){var n=e.newSelection,o=n.length?n.length===1?n[0]:n:null;o?t.open(o,!0):t.close()}),this._eventBus.on("elements.changed",function(e){var n=e.elements,o=t._current;if(o){var r=o.target,i=bt(r)?r:[r];if(i.filter(function(s){return n.includes(s)}).length){t.close();var a=i.filter(function(s){return t._elementRegistry.get(s.id)});a.length&&t._updateAndOpen(a.length>1?a:a[0])}}}),this._eventBus.on("canvas.viewbox.changed",function(){t._updatePosition()}),this._eventBus.on("element.marker.update",function(e){if(t.isOpen()){var n=e.element,o=t._current;(bt(o.target)?o.target:[o.target]).includes(n)&&t._updateVisibility()}}),this._container=this._createContainer()},Xe.prototype._createContainer=function(){var t=ge('<div class="djs-context-pad-parent"></div>');return this._canvas.getContainer().appendChild(t),t},Xe.prototype.registerProvider=function(t,e){e||(e=t,t=X3),this._eventBus.on("contextPad.getProviders",t,function(n){n.providers.push(e)})},Xe.prototype.getEntries=function(t){var e=this._getProviders(),n=bt(t)?"getMultiElementContextPadEntries":"getContextPadEntries",o={};return R(e,function(r){if(Be(r[n])){var i=r[n](t);Be(i)?o=i(o):R(i,function(a,s){o[s]=a})}}),o},Xe.prototype.trigger=function(t,e,n){var o=this,r,i,a=e.delegateTarget||e.target;if(!a)return e.preventDefault();if(r=sn(a,"data-action"),i=e.originalEvent||e,t==="mouseover")this._timeout=setTimeout(function(){o._mouseout=o.triggerEntry(r,"hover",i,n)},Y3);else if(t==="mouseout")clearTimeout(this._timeout),this._mouseout&&=(this._mouseout(),null);else return this.triggerEntry(r,t,i,n)},Xe.prototype.triggerEntry=function(t,e,n,o){if(this.isShown()){var r=this._current.target,i=this._current.entries[t];if(i){var a=i.action;if(this._eventBus.fire("contextPad.trigger",{entry:i,event:n})!==!1){if(Be(a)){if(e==="click")return a(n,r,o)}else if(a[e])return a[e](n,r,o);n.preventDefault()}}}},Xe.prototype.open=function(t,e){(e||!this.isOpen(t))&&this._eventBus.fire("contextPad.open.allowed",{target:t})!==!1&&(this.close(),this._updateAndOpen(t))},Xe.prototype._getProviders=function(){var t=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(t),t.providers},Xe.prototype._updateAndOpen=function(t){var e=this.getEntries(t),n=this._createHtml(t),o;R(e,function(r,i){var a=r.group||"default",s=ge(r.html||'<div class="entry" draggable="true"></div>'),c;sn(s,"data-action",i),c=le("[data-group="+Ga(a)+"]",n),c||(c=ge('<div class="group"></div>'),sn(c,"data-group",a),n.appendChild(c)),c.appendChild(s),r.className&&Z3(s,r.className),r.title&&sn(s,"title",r.title),r.imageUrl&&(o=ge("<img>"),sn(o,"src",r.imageUrl),o.style.width="100%",o.style.height="100%",s.appendChild(o))}),_e(n).add("open"),this._current={entries:e,html:n,target:t},this._updatePosition(),this._updateVisibility(),this._eventBus.fire("contextPad.open",{current:this._current})},Xe.prototype._createHtml=function(t){var e=this,n=ge('<div class="djs-context-pad"></div>');return Cn.bind(n,Ol,"click",function(o){e.trigger("click",o)}),Cn.bind(n,Ol,"dragstart",function(o){e.trigger("dragstart",o)}),Cn.bind(n,Ol,"mouseover",function(o){e.trigger("mouseover",o)}),Cn.bind(n,Ol,"mouseout",function(o){e.trigger("mouseout",o)}),Ct.bind(n,"mousedown",function(o){o.stopPropagation()}),this._container.appendChild(n),this._eventBus.fire("contextPad.create",{target:t,pad:n}),n},Xe.prototype.getPad=function(t){console.warn(Error("ContextPad#getPad is deprecated and will be removed in future library versions, cf. https://github.com/bpmn-io/diagram-js/pull/888"));let e;return e=this.isOpen()&&Q3(this._current.target,t)?this._current.html:this._createHtml(t),{html:e}},Xe.prototype.close=function(){this.isOpen()&&(clearTimeout(this._timeout),this._container.innerHTML="",this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)},Xe.prototype.isOpen=function(t){var e=this._current;if(!e)return!1;if(!t)return!0;var n=e.target;return bt(t)===bt(n)?bt(t)?t.length===n.length&&tr(t,function(o){return n.includes(o)}):n===t:!1},Xe.prototype.isShown=function(){return this.isOpen()&&_e(this._current.html).has("open")},Xe.prototype.show=function(){this.isOpen()&&(_e(this._current.html).add("open"),this._updatePosition(),this._eventBus.fire("contextPad.show",{current:this._current}))},Xe.prototype.hide=function(){this.isOpen()&&(_e(this._current.html).remove("open"),this._eventBus.fire("contextPad.hide",{current:this._current}))},Xe.prototype._getPosition=function(t){if(!bt(t)&&oe(t)){var e=this._canvas.viewbox(),n=J3(t),o=n.x*e.scale-e.x*e.scale,r=n.y*e.scale-e.y*e.scale;return{left:o+_0*this._canvas.zoom(),top:r}}var i=this._canvas.getContainer().getBoundingClientRect(),a=this._getTargetBounds(t);return{left:a.right-i.left+_0*this._canvas.zoom(),top:a.top-i.top}},Xe.prototype._updatePosition=function(){this._scheduler.schedule(()=>{if(this.isOpen()){var t=this._current.html,e=this._getPosition(this._current.target);"x"in e&&"y"in e?(t.style.left=e.x+"px",t.style.top=e.y+"px"):["top","right","bottom","left"].forEach(function(n){n in e&&(t.style[n]=e[n]+"px")})}},"ContextPad#_updatePosition")},Xe.prototype._updateVisibility=function(){this._scheduler.schedule(()=>{if(this.isOpen()){var t=this,e=this._current.target;(bt(e)?e:[e]).some(function(n){return t._canvas.hasMarker(n,K3)})?t.hide():t.show()}},"ContextPad#_updateVisibility")},Xe.prototype._getTargetBounds=function(t){var e=this;return(bt(t)?t:[t]).map(function(n){return e._canvas.getGraphics(n)}).reduce(function(n,o){let r=o.getBoundingClientRect();return n.top=Math.min(n.top,r.top),n.right=Math.max(n.right,r.right),n.bottom=Math.max(n.bottom,r.bottom),n.left=Math.min(n.left,r.left),n.x=n.left,n.y=n.top,n.width=n.right-n.left,n.height=n.bottom-n.top,n},{top:1/0,right:-1/0,bottom:-1/0,left:1/0})};yx={__depends__:[Zs,q3,Xs],contextPad:["type",Xe]},Np={},Ip=[],t6=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ed=Array.isArray;td=Ip.slice,Pe={__e:function(t,e,n,o){for(var r,i,a;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&i.getDerivedStateFromError!=null&&(r.setState(i.getDerivedStateFromError(t)),a=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(t,o||{}),a=r.__d),a)return r.__E=r}catch(s){t=s}throw t}},vx=0,sp.prototype.setState=function(t,e){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Lr({},this.state);typeof t=="function"&&(t=t(Lr({},n),this.props)),t&&Lr(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),S0(this))},sp.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),S0(this))},sp.prototype.render=nd,wi=[],bx=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,xx=function(t,e){return t.__v.__b-e.__v.__b},Hp.__r=0,Mm=Math.random().toString(8),ip="__d"+Mm,Rc="__a"+Mm,kx=/(PointerCapture)$|Capture$/i,yh=0,tu=C0(!1),eu=C0(!0);Mx=function(t,e,n,o){var r;e[0]=0;for(var i=1;i<e.length;i++){var a=e[i++],s=e[i]?(e[0]|=a?1:2,n[e[i++]]):e[++i];a===3?o[0]=s:a===4?o[1]=Object.assign(o[1]||{},s):a===5?(o[1]=o[1]||{})[e[++i]]=s:a===6?o[1][e[++i]]+=s+"":a?(r=t.apply(s,Mx(t,s,n,["",null])),o.push(r),s[0]?e[0]|=2:(e[i-2]=0,e[i]=r)):o.push(s)}return o},B0=new Map;Kt=a6.bind(wx),Dc=0,Ax=[],nn=Pe,M0=nn.__b,A0=nn.__r,P0=nn.diffed,D0=nn.__c,j0=nn.unmount,$0=nn.__;nn.__b=function(t){Ze=null,M0&&M0(t)},nn.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),$0&&$0(t,e)},nn.__r=function(t){A0&&A0(t),ls=0;var e=(Ze=t.__c).__H;e&&(Am===Ze?(e.__h=[],Ze.__h=[],e.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(e.__h.some(lp),e.__h.some(nu),e.__h=[],ls=0)),Am=Ze},nn.diffed=function(t){P0&&P0(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Ax.push(e)!==1&&R0===nn.requestAnimationFrame||((R0=nn.requestAnimationFrame)||l6)(c6)),e.__H.__.some(function(n){n.u&&=(n.__H=n.u,void 0)})),Am=Ze=null},nn.__c=function(t,e){e.some(function(n){try{n.__h.some(lp),n.__h=n.__h.filter(function(o){return!o.__||nu(o)})}catch(o){e.some(function(r){r.__h&&=[]}),e=[],nn.__e(o,n.__v)}}),D0&&D0(t,e)},nn.unmount=function(t){j0&&j0(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.some(function(o){try{lp(o)}catch(r){e=r}}),n.__H=void 0,e&&nn.__e(e,n.__v))};z0=typeof requestAnimationFrame=="function";y6=new Xi("djs-popup");_6="data-id",I0=["contextPad.close","canvas.viewbox.changing","commandStack.changed"],E6=1e3;Me.$inject=["config.popupMenu","eventBus","canvas","search"],Me.prototype._render=function(){let{position:t,providerId:e,entries:n,headerEntries:o,emptyPlaceholder:r,options:i}=this._current,a=jx(n),s=Object.entries(o).map(([c,l])=>({id:c,...l}));Fp(Kt(nx||(nx=Vt(["\n <","\n onClose=","\n onSelect=","\n position=","\n className=","\n entries=","\n headerEntries=","\n emptyPlaceholder=","\n scale=","\n onOpened=","\n onClosed=","\n searchFn=","\n defaultTab=","\n ...","\n />\n "])),v6,c=>this.close(c),(c,l,p)=>this.trigger(c,l,p),t&&(c=>this._ensureVisible(c,t)),e,a,s,r,this._updateScale(this._current.container),this._onOpened.bind(this),this._onClosed.bind(this),this._search,this._config.defaultTab,{...i}),this._current.container)},Me.prototype.open=function(t,e,n,o){if(!t)throw Error("target is missing");if(!e)throw Error("providers for <"+e+"> not found");if(!n)throw Error("position is missing");if(this._eventBus.fire("popupMenu.open.allowed",{target:t,providerId:e})===!1)return;this.isOpen()&&this.close();let{entries:r,headerEntries:i,emptyPlaceholder:a}=this._getContext(t,e);this._current={position:n,providerId:e,target:t,entries:r,headerEntries:i,emptyPlaceholder:a,container:this._createContainer({provider:e}),options:o},this._emit("open"),this._bindAutoClose(),this._render()},Me.prototype.refresh=function(){if(!this.isOpen())return;let{target:t,providerId:e}=this._current,{entries:n,headerEntries:o,emptyPlaceholder:r}=this._getContext(t,e);this._current={...this._current,entries:n,headerEntries:o,emptyPlaceholder:r},this._emit("refresh"),this._render()},Me.prototype._getContext=function(t,e){let n=this._getProviders(e);if(!n||!n.length)throw Error("provider for <"+e+"> not found");let o=this._getEntries(t,n),r=this._getHeaderEntries(t,n);return{entries:o,headerEntries:r,emptyPlaceholder:this._getEmptyPlaceholder(n),empty:!(Object.keys(o).length||Object.keys(r).length)}},Me.prototype.close=function(){this.isOpen()&&(this._emit("close"),this.reset(),this._canvas.restoreFocus(),this._current=null)},Me.prototype.reset=function(){let t=this._current.container;Fp(null,t),Vo(t)},Me.prototype._emit=function(t,e){this._eventBus.fire("popupMenu.".concat(t),e)},Me.prototype._onOpened=function(){this._emit("opened")},Me.prototype._onClosed=function(){this._emit("closed")},Me.prototype._createContainer=function(t){var e=this._canvas.getContainer();let n=ge('<div class="djs-popup-parent djs-scrollable" data-popup='.concat(t.provider,"></div>"));return e.appendChild(n),n},Me.prototype._bindAutoClose=function(){this._eventBus.once(I0,this.close,this)},Me.prototype._unbindAutoClose=function(){this._eventBus.off(I0,this.close,this)},Me.prototype._updateScale=function(){var t=this._canvas.zoom(),e=this._config.scale,n,o,r=t;return e!==!0&&(e===!1?(n=1,o=1):(n=e.min,o=e.max),Le(n)&&t<n&&(r=n),Le(o)&&t>o&&(r=o)),r},Me.prototype._ensureVisible=function(t,e){var n=document.documentElement.getBoundingClientRect(),o=t.getBoundingClientRect(),r={},i=e.x,a=e.y;return e.x+o.width>n.width&&(r.x=!0),e.y+o.height>n.height&&(r.y=!0),r.x&&r.y?(i=e.x-o.width,a=e.y-o.height):r.x?(i=e.x-o.width,a=e.y):r.y&&e.y<o.height?(i=e.x,a=10):r.y&&(i=e.x,a=e.y-o.height),e.y<n.top&&(a=e.y+o.height),{x:i,y:a}},Me.prototype.isEmpty=function(t,e){if(!t)throw Error("target is missing");if(!e)throw Error("provider ID is missing");let n=this._getProviders(e);return!n||!n.length||this._getContext(t,e).empty},Me.prototype.registerProvider=function(t,e,n){n||(n=e,e=E6),this._eventBus.on("popupMenu.getProviders."+t,e,function(o){o.providers.push(n)})},Me.prototype._getProviders=function(t){var e=this._eventBus.createEvent({type:"popupMenu.getProviders."+t,providers:[]});return this._eventBus.fire(e),e.providers},Me.prototype._getEntries=function(t,e){var n={};return R(e,function(o){if(!o.getPopupMenuEntries)R(o.getEntries(t),function(i){var a=i.id;if(!a)throw Error("entry ID is missing");n[a]=bo(i,["id"])});else{var r=o.getPopupMenuEntries(t);Be(r)?n=r(n):R(r,function(i,a){n[a]=i})}}),n},Me.prototype._getHeaderEntries=function(t,e){var n={};return R(e,function(o){if(o.getPopupMenuHeaderEntries){var r=o.getPopupMenuHeaderEntries(t);Be(r)?n=r(n):R(r,function(i,a){n[a]=i})}else{if(!o.getHeaderEntries)return;R(o.getHeaderEntries(t),function(i){var a=i.id;if(!a)throw Error("entry ID is missing");n[a]=bo(i,["id"])})}}),n},Me.prototype._getEmptyPlaceholder=function(t){let e=t.find(n=>Be(n.getEmptyPlaceholder));return e&&e.getEmptyPlaceholder()},Me.prototype.isOpen=function(){return!!this._current},Me.prototype.trigger=function(t,e,n="click"){if(t.preventDefault(),!e){let r=cr(t.delegateTarget||t.target,".entry",!0),i=sn(r,_6);e={id:i,...this._getEntry(i)}}let o=e.action;if(this._emit("trigger",{entry:e,event:t})!==!1){if(Be(o)){if(n==="click")return o(t,e)}else if(o[n])return o[n](t,e)}},Me.prototype._getEntry=function(t){var e=this._current.entries[t]||this._current.headerEntries[t];if(!e)throw Error("entry not found");return e};F0=.5,Ka={FULL:131.9,START_FULL_WORD:8,START_WORD_PART:7.87,WORD_START:2.19,WORD_PART:1,NO_MATCH:-.07};zx={search:["value",S6]},wh={__depends__:[zx],__init__:["popupMenu"],popupMenu:["type",Me]},Ox={align:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 2000">\n <line x1="200" y1="150" x2="200" y2="1850" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="500" y="150" width="1300" height="700" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="500" y="1150" width="700" height="700" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',bottom:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="150" y1="1650" x2="1650" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="150" y="350" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="850" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',center:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="900" y1="150" x2="900" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="250" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="500" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',left:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="100" y1="150" x2="100" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="100" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="100" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',right:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="1650" y1="150" x2="1650" y2="1650" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="350" y="150" width="1300" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="850" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',top:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="150" y1="150" x2="1650" y2="150" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="150" y="150" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="150" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',middle:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <line x1="150" y1="900" x2="1650" y2="900" style="stroke:currentColor;stroke-width:100;stroke-linecap:round;"/>\n <rect x="150" y="250" width="600" height="1300" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="500" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>'},A6=900;os.$inject=["contextPad","popupMenu","translate","canvas"],os.prototype.getMultiElementContextPadEntries=function(t){var e={};return this._isAllowed(t)&&P(e,this._getEntries(t)),e},os.prototype._isAllowed=function(t){return!this._popupMenu.isEmpty(t,"align-elements")},os.prototype._getEntries=function(){var t=this;return{"align-elements":{group:"align-elements",title:t._translate("Align elements"),html:'<div class="entry">'.concat(Ox.align,"</div>"),action:{click:function(e,n){var o=t._getMenuPosition(n);P(o,{cursor:{x:e.x,y:e.y}}),t._popupMenu.open(n,"align-elements",o)}}}}},os.prototype._getMenuPosition=function(t){var e=5,n=this._contextPad.getPad(t).html.getBoundingClientRect();return{x:n.left,y:n.bottom+e}};P6=["left","center","right","top","middle","bottom"];cc.$inject=["popupMenu","alignElements","translate","rules"],cc.prototype.getPopupMenuEntries=function(t){var e={};return this._isAllowed(t)&&P(e,this._getEntries(t)),e},cc.prototype._isAllowed=function(t){return this._rules.allowed("elements.align",{elements:t})},cc.prototype._getEntries=function(t){var e=this._alignElements,n=this._translate,o=this._popupMenu,r={};return R(P6,function(i){r["align-elements-"+i]={group:"align",title:n("Align elements "+i),className:"bjs-align-elements-menu-entry",imageHtml:Ox[i],action:function(){e.trigger(t,i),o.close()}}}),r};Mo.$inject=["eventBus"],dt(Mo,q),Mo.prototype.addRule=function(t,e,n){var o=this;typeof t=="string"&&(t=[t]),t.forEach(function(r){o.canExecute(r,e,function(i,a,s){return n(i)},!0)})},Mo.prototype.init=function(){};pp.$inject=["eventBus"],dt(pp,Mo),pp.prototype.init=function(){this.addRule("elements.align",function(t){var e=t.elements,n=Dt(e,function(o){return!(o.waypoints||o.host||o.labelTarget)});return n=Us(n),n.length<2?!1:n})};D6={__depends__:[G3,yx,wh],__init__:["alignElementsContextPadProvider","alignElementsMenuProvider","bpmnAlignElements"],alignElementsContextPadProvider:["type",os],alignElementsMenuProvider:["type",cc],bpmnAlignElements:["type",pp]},j6=10,$6=250;F6=100;Lx.$inject=["eventBus","modeling","canvas"];Nx.$inject=["eventBus","selection"];G6={__init__:["autoPlaceSelectionBehavior"],autoPlace:["type",Lx],autoPlaceSelectionBehavior:["type",Nx]};Hx.$inject=["eventBus","elementRegistry"];Sh={__depends__:[G6],__init__:["bpmnAutoPlace"],bpmnAutoPlace:["type",Hx]};zr.$inject=["eventBus","elementRegistry","modeling","rules"],dt(zr,q),zr.prototype._getOptimalBounds=function(t,e){var n=this.getOffset(e),o=this.getPadding(e),r=ht(je(t)),i=ht(e),a={};return r.top-i.top<o.top&&(a.top=r.top-n.top),r.left-i.left<o.left&&(a.left=r.left-n.left),i.right-r.right<o.right&&(a.right=r.right+n.right),i.bottom-r.bottom<o.bottom&&(a.bottom=r.bottom+n.bottom),Ba(P({},i,a))},zr.prototype._expand=function(t,e){if(typeof e=="string"&&(e=this._elementRegistry.get(e)),this._rules.allowed("element.autoResize",{elements:t,target:e})){var n=this._getOptimalBounds(t,e);if(K6(n,e)){var o=X6(Nn(e,["x","y","width","height"]),n);this.resize(e,n,{autoResize:o});var r=e.parent;r&&this._expand([e],r)}}},zr.prototype.getOffset=function(t){return{top:60,bottom:60,left:100,right:100}},zr.prototype.getPadding=function(t){return{top:2,bottom:2,left:15,right:15}},zr.prototype.resize=function(t,e,n){this._modeling.resizeShape(t,e,null,n)};dp.$inject=["injector"],dt(dp,zr),dp.prototype.resize=function(t,e,n){y(t,"bpmn:Participant")?this._modeling.resizeLane(t,e,null,n):this._modeling.resizeShape(t,e,null,n)};Ac.$inject=["eventBus"],dt(Ac,Mo),Ac.prototype.canResize=function(t,e){return!1};dt(mp,Ac),mp.$inject=["eventBus","modeling"],mp.prototype.canResize=function(t,e){if(y(e.di,"bpmndi:BPMNPlane")||!y(e,"bpmn:Participant")&&!y(e,"bpmn:Lane")&&!y(e,"bpmn:SubProcess"))return!1;var n=!0;return R(t,function(o){(y(o,"bpmn:Lane")||Bt(o))&&(n=!1)}),n};Y6={__init__:["bpmnAutoResize","bpmnAutoResizeProvider"],bpmnAutoResize:["type",dp],bpmnAutoResizeProvider:["type",mp]},q0=1500;Fx.$inject=["elementRegistry","eventBus","injector"];J6={__init__:["hoverFix"],hoverFix:["type",Fx]},Xa=Math.round,K0="djs-drag-active";Wx.$inject=["eventBus","canvas","selection","elementRegistry"];Nr={__depends__:[J6,Yn],dragging:["type",Wx]};ss.$inject=["config.autoScroll","eventBus","canvas"],ss.prototype.startScroll=function(t){var e=this._canvas,n=this._opts,o=this,r=e.getContainer().getBoundingClientRect(),i=[t.x,t.y,r.width-t.x,r.height-t.y];this.stopScroll();for(var a=0,s=0,c=0;c<4;c++)e4(i[c],n.scrollThresholdOut[c],n.scrollThresholdIn[c])&&(c===0?a=n.scrollStep:c==1?s=n.scrollStep:c==2?a=-n.scrollStep:c==3&&(s=-n.scrollStep));(a!==0||s!==0)&&(e.scroll({dx:a,dy:s}),this._scrolling=setTimeout(function(){o.startScroll(t)},n.scrollRepeatTimeout))};ss.prototype.stopScroll=function(){clearTimeout(this._scrolling)},ss.prototype.setOptions=function(t){this._opts=P({},this._opts,t)},ss.prototype._toBorderPoint=function(t){var e=this._canvas._container.getBoundingClientRect(),n=li(t.originalEvent);return{x:n.x-e.left,y:n.y-e.top}};n4={__depends__:[Nr],__init__:["autoScroll"],autoScroll:["type",ss]};ou.$inject=["injector"],ou.prototype.allowed=function(t,e){var n=!0,o=this._commandStack;return o&&(n=o.canExecute(t,e)),n===void 0||n};fr={__init__:["rules"],rules:["type",ou]},Nl=Math.round,o4=Math.max;Gx=10;qx="djs-bendpoint",Kx="djs-segment-dragger";Zx.$inject=["eventBus","canvas","interactionEvents","bendpointMove","connectionSegmentMove"];Y0=Math.round,Qi="reconnectStart",ta="reconnectEnd",Js="updateWaypoints";su.$inject=["injector","eventBus","canvas","dragging","rules","modeling"],su.prototype.cropWaypoints=function(t,e){var n=this._injector.get("connectionDocking",!1);if(!n)return e;var o=t.waypoints;return t.waypoints=e,t.waypoints=n.getCroppedWaypoints(t),e=t.waypoints,t.waypoints=o,e};y4="reconnectStart",v4="reconnectEnd",Z0="updateWaypoints",Qs="connect-ok",Il="connect-not-ok",J0="connect-hover",Q0="djs-updating",tv="djs-dragging",ev=1100;Jx.$inject=["bendpointMove","injector","eventBus","canvas"];nv="connect-hover",ov="djs-updating";t2.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];x4=Math.abs,av=Math.round;w4=Math.abs,sv=Math.round,Dm=10;r2.$inject=["eventBus"];_4={__depends__:[Nr,fr],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",Zx],bendpointMove:["type",su],bendpointMovePreview:["type",Jx],connectionSegmentMove:["type",t2],bendpointSnapping:["type",r2]};i2.$inject=["eventBus","dragging","modeling","rules"];E4=1100,S4=900,cv="connect-ok",lv="connect-not-ok";a2.$inject=["injector","eventBus","canvas"];Ch={__depends__:[Yn,fr,Nr],__init__:["connectPreview"],connect:["type",i2],connectPreview:["type",a2]},T4="djs-dragger";Ar.$inject=["injector","canvas","graphicsFactory","elementFactory"],Ar.prototype.drawPreview=function(t,e,n){n||={};var o=t.connectionPreviewGfx,r=t.getConnection,i=n.source,a=n.target,s=n.waypoints,c=n.connectionStart,l=n.connectionEnd,p=n.noLayout,d=n.noCropping,m=n.noNoop,u,h=this;o||=t.connectionPreviewGfx=this.createConnectionPreviewGfx(),Ma(o),r||=t.getConnection=C4(function(f,g,x){return h.getConnection(f,g,x)}),e&&(u=r(e,i,a)),u?(u.waypoints=s||[],this._layouter&&!p&&(u.waypoints=this._layouter.layoutConnection(u,{source:i,target:a,connectionStart:c,connectionEnd:l,waypoints:n.waypoints||u.waypoints})),(!u.waypoints||!u.waypoints.length)&&(u.waypoints=[i?vt(i):c,a?vt(a):l]),this._connectionDocking&&(i||a)&&!d&&(u.waypoints=this._connectionDocking.getCroppedWaypoints(u,i,a)),this._graphicsFactory.drawConnection(o,u,{stroke:"var(--element-dragger-color)"})):!m&&this.drawNoopPreview(o,n)},Ar.prototype.drawNoopPreview=function(t,e){var n=e.source,o=e.target,r=e.connectionStart||vt(n),i=e.connectionEnd||vt(o),a=this.cropWaypoints(r,i,n,o),s=this.createNoopConnection(a[0],a[1]);it(t,s)},Ar.prototype.cropWaypoints=function(t,e,n,o){var r=this._graphicsFactory,i=n&&r.getShapePath(n),a=o&&r.getShapePath(o),s=r.getConnectionPath({waypoints:[t,e]});return t=n&&Ra(i,s,!0)||t,e=o&&Ra(a,s,!1)||e,[t,e]},Ar.prototype.cleanUp=function(t){t&&t.connectionPreviewGfx&&Ne(t.connectionPreviewGfx)},Ar.prototype.getConnection=function(t){var e=B4(t);return this._elementFactory.createConnection(e)},Ar.prototype.createConnectionPreviewGfx=function(){var t=et("g");return U(t,{pointerEvents:"none"}),ut(t).add(T4),it(this._canvas.getActiveLayer(),t),t},Ar.prototype.createNoopConnection=function(t,e){return Gi([t,e],{stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"})};R4={__init__:["connectionPreview"],connectionPreview:["type",Ar]},M4=new Xi("ps"),A4=["marker-start","marker-mid","marker-end"],P4=["circle","ellipse","line","path","polygon","polyline","path","rect"];hi.$inject=["elementRegistry","eventBus","canvas","styles"],hi.prototype.cleanUp=function(){console.warn("PreviewSupport#cleanUp is deprecated and will be removed in future versions. You do not need to manually clean up previews anymore. cf. https://github.com/bpmn-io/diagram-js/pull/906")},hi.prototype.getGfx=function(t){return this._elementRegistry.getGraphics(t)},hi.prototype.addDragger=function(t,e,n,o="djs-dragger"){n||=this.getGfx(t);var r=dm(n);return this._cloneMarkers(ci(r),o),U(r,this._styles.cls(o,[])),it(e,r),U(r,"data-preview-support-element-id",t.id),r},hi.prototype.addFrame=function(t,e){var n=et("rect",{class:"djs-resize-overlay",width:t.width,height:t.height,x:t.x,y:t.y});return it(e,n),U(n,"data-preview-support-element-id",t.id),n},hi.prototype._cloneMarkers=function(t,e="djs-dragger",n=t){var o=this;t.childNodes&&t.childNodes.forEach(r=>{o._cloneMarkers(r,e,n)}),z4(t)&&A4.forEach(function(r){if(U(t,r)){var i=D4(t,r,o._canvas.getContainer());i&&o._cloneMarker(n,t,i,r,e)}})},hi.prototype._cloneMarker=function(t,e,n,o,r="djs-dragger"){var i=[n.id,r,M4.next()].join("-"),a=le("marker#"+n.id,t);t||=this._canvas._svg;var s=a||dm(n);s.id=i,ut(s).add(r);var c=le(":scope > defs",t);c||(c=et("defs"),it(t,c)),it(c,s);var l=$4(s.id);U(e,o,l)};gs={__init__:["previewSupport"],previewSupport:["type",hi]},Hl="complex-preview",s2=class{constructor(t,e,n){this._canvas=t,this._graphicsFactory=e,this._previewSupport=n,this._markers=[]}create(t){this.cleanUp();let{created:e=[],moved:n=[],removed:o=[],resized:r=[]}=t,i=this._canvas.getLayer(Hl);e.filter(a=>!O4(a)).forEach(a=>{let s;oe(a)?(s=this._graphicsFactory._createContainer("connection",et("g")),this._graphicsFactory.drawConnection(ci(s),a)):(s=this._graphicsFactory._createContainer("shape",et("g")),this._graphicsFactory.drawShape(ci(s),a),hn(s,a.x,a.y)),this._previewSupport.addDragger(a,i,s)}),n.forEach(({element:a,delta:s})=>{this._previewSupport.addDragger(a,i,void 0,"djs-dragging"),this._canvas.addMarker(a,"djs-element-hidden"),this._markers.push([a,"djs-element-hidden"]);let c=this._previewSupport.addDragger(a,i);oe(a)?hn(c,s.x,s.y):hn(c,a.x+s.x,a.y+s.y)}),o.forEach(a=>{this._previewSupport.addDragger(a,i,void 0,"djs-dragging"),this._canvas.addMarker(a,"djs-element-hidden"),this._markers.push([a,"djs-element-hidden"])}),r.forEach(({shape:a,bounds:s})=>{this._canvas.addMarker(a,"djs-hidden"),this._markers.push([a,"djs-hidden"]),this._previewSupport.addDragger(a,i,void 0,"djs-dragging");let c=this._graphicsFactory._createContainer("shape",et("g"));this._graphicsFactory.drawShape(ci(c),a,{width:s.width,height:s.height}),hn(c,s.x,s.y),this._previewSupport.addDragger(a,i,c)})}cleanUp(){Ma(this._canvas.getLayer(Hl)),this._markers.forEach(([t,e])=>this._canvas.removeMarker(t,e)),this._markers=[]}show(){this._canvas.showLayer(Hl)}hide(){this._canvas.hideLayer(Hl)}};s2.$inject=["canvas","graphicsFactory","previewSupport"];L4={__depends__:[gs],__init__:["complexPreview"],complexPreview:["type",s2]},Bh=["top","bottom","left","right"],Fl=10;dt(lu,q),lu.$inject=["eventBus","modeling"];dt(pu,q),pu.$inject=["eventBus"];W4=1500;dt(du,q),du.$inject=["injector","eventBus","canvas"];dt(mu,q),mu.$inject=["injector","modeling"];pv=500;up.$inject=["bpmnReplace","injector"],dt(up,q),up.prototype._replaceShape=function(t,e){var n=G4(t),o={type:"bpmn:BoundaryEvent",host:e};return n&&(o.eventDefinitionType=n.$type),this._bpmnReplace.replaceElement(t,o,{layoutConnection:!1})};uu.$inject=["eventBus","modeling"],dt(uu,q);X4=500;hu.$inject=["bpmnjs","elementRegistry","injector"],dt(hu,q);dt(fu,q),fu.$inject=["eventBus","modeling","bpmnRules"];gu.$inject=["injector"],dt(gu,q);yu.$inject=["eventBus","bpmnFactory"],dt(yu,q);vu=20,bu=20,Gl=2e3;xu.$inject=["canvas","eventBus","modeling"],dt(xu,q);uv="__targetRef_placeholder";ku.$inject=["eventBus","bpmnFactory"],dt(ku,q);hp.$inject=["bpmnUpdater"],hp.prototype.execute=function(t){var e=t.dataStoreBo,n=t.dataStoreDi,o=t.newSemanticParent,r=t.newDiParent;return t.oldSemanticParent=e.$parent,t.oldDiParent=n.$parent,this._bpmnUpdater.updateSemanticParent(e,o),this._bpmnUpdater.updateDiParent(n,r),[]},hp.prototype.revert=function(t){var e=t.dataStoreBo,n=t.dataStoreDi,o=t.oldSemanticParent,r=t.oldDiParent;return this._bpmnUpdater.updateSemanticParent(e,o),this._bpmnUpdater.updateDiParent(n,r),[]};wu.$inject=["canvas","commandStack","elementRegistry","eventBus"],dt(wu,q);Gp=Math.max,Vp=Math.min,eT=20;pi=Math.abs;lT=["bpmn:Participant","bpmn:Process","bpmn:SubProcess"];dT=500;_u.$inject=["eventBus","spaceTool"],dt(_u,q);fv=500;fp.$inject=["bpmnReplace","injector"],dt(fp,q),fp.prototype._replaceShape=function(t){var e=mT(t),n=e?{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:e.$type}:{type:"bpmn:IntermediateThrowEvent"};return this._bpmnReplace.replaceElement(t,n,{layoutConnection:!1})};dt(Eu,q),Eu.$inject=["eventBus","bpmnRules","modeling"];Su.$inject=["eventBus","modeling"],dt(Su,q);Ul=1500,bv=2e3;u2.$inject=["elementRegistry","eventBus","canvas"];xv=770;Tu.$inject=["bpmnFactory","eventBus","injector","moddleCopy"],dt(Tu,q);h2.$inject=["eventBus"];Bu.$inject=["eventBus"],dt(Bu,q);f2=Math.sqrt,g2=Math.min,hT=Math.max,wv=Math.abs;Up=.1;Bv="name",Rv="text";dt(Ru,q),Ru.$inject=["eventBus","modeling","bpmnFactory","textRenderer"];dt(Mu,q),Mu.$inject=["eventBus","modeling"];Au.$inject=["eventBus","modeling"],dt(Au,q);zT=["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:EscalationEventDefinition","bpmn:ConditionalEventDefinition","bpmn:SignalEventDefinition"];Pu.$inject=["injector","modeling"],dt(Pu,q);dt(Du,q),Du.$inject=["eventBus","modeling"];dt(ju,q),ju.$inject=["eventBus","bpmnRules","modeling"];$u.$inject=["eventBus","modeling"],dt($u,q);dt(zu,q),zu.$inject=["eventBus","modeling","bpmnRules","injector"];dt(gp,q),gp.prototype._replaceElements=function(t,e){var n=this._elementRegistry,o=this._bpmnReplace,r=this._selection;R(e,function(i){var a={type:i.newElementType},s=n.get(i.oldElementId),c=t.indexOf(s);t[c]=o.replaceElement(s,a,{select:!1})}),e&&r.select(t)},gp.$inject=["bpmnReplace","bpmnRules","elementRegistry","injector","modeling","selection"];LT=1500,NT={width:140,height:120},Ah={width:300,height:60},Ph={width:60,height:300},yp={width:300,height:150},vp={width:150,height:300},S2={width:140,height:120},T2={width:100,height:40};C2.$inject=["eventBus"];di=Math.abs,IT=Math.min,HT=Math.max;FT={top:20,left:50,right:20,bottom:20},WT={top:50,left:20,right:20,bottom:20};Mv=1001;R2.$inject=["eventBus","modeling"];VT=500;Ou.$inject=["bpmnjs","eventBus","injector","moddleCopy","bpmnFactory"],dt(Ou,q);M2=Math.max;A2.$inject=["eventBus"];Av=400,t8=600,Pv={x:180,y:160};dt(Pr,q),Pr.prototype._moveChildrenToShape=function(t,e){var n=this._modeling;if(t.length){var o=t.filter(function(c){return!c.hidden});if(!o.length)n.moveElements(t,{x:0,y:0},e,{autoResize:!1});else{var r=je(o),i;if(!e.x)i={x:Pv.x-r.x,y:Pv.y-r.y};else{var a=vt(e),s=vt(r);i={x:a.x-s.x,y:a.y-s.y}}n.moveElements(t,i,e,{autoResize:!1})}}},Pr.prototype._disconnectSharedAnnotations=function(t){var e=this._modeling,n=new Set(Tm(t).map(o=>o.annotation));n.size&&R(Wa(t.children),o=>{n.has(o.annotation)&&R(o.associations,r=>{e.removeConnection(r)})})},Pr.prototype._showRecursively=function(t,e){var n=this,o=[];return t.forEach(function(r){r.hidden=!!e,o=o.concat(r),r.children&&(o=o.concat(n._showRecursively(r.children,r.collapsed||e)))}),o},Pr.prototype._addDiagram=function(t){var e=this._bpmnjs.getDefinitions().diagrams;return t.businessObject||(t=this._createNewDiagram(t)),e.push(t.di.$parent),t},Pr.prototype._createNewDiagram=function(t){var e=this._bpmnFactory,n=this._elementFactory,o=e.create("bpmndi:BPMNPlane",{bpmnElement:t});return o.$parent=e.create("bpmndi:BPMNDiagram",{plane:o}),n.createRoot({id:xo(t),type:t.$type,di:o,businessObject:t,collapsed:!0})},Pr.prototype._removeDiagram=function(t){var e=this._bpmnjs.getDefinitions().diagrams,n=ce(e,function(o){return o.plane.bpmnElement.id===t.id});return e.splice(e.indexOf(n),1),n},Pr.$inject=["canvas","eventBus","modeling","elementFactory","bpmnFactory","bpmnjs","elementRegistry"];Lu.$inject=["injector","modeling"],dt(Lu,q);dt(Nu,q),Nu.$inject=["eventBus","textRenderer"];dt(Iu,q),Iu.$inject=["eventBus","modeling"];jm=500;dt(Hu,q),Hu.$inject=["eventBus","elementFactory","modeling"];dt(Fu,q),Fu.$inject=["canvas","injector","moddle","modeling"];dt(Wu,q),Wu.$inject=["eventBus","modeling"];a8=500,s8=5e3,P2=["shape.create","shape.delete","shape.move","shape.resize"],jv=[...P2,"spaceTool","lane.add","lane.resize","lane.split","elements.create","elements.delete","elements.move"];Gu.$inject=["eventBus","modeling"],dt(Gu,q);l8=500,p8=5e3,D2=["connection.create","connection.delete","connection.layout","connection.move","connection.reconnect","connection.updateWaypoints","shape.create","shape.delete","shape.move","shape.resize"],$v=[...D2,"elements.create","elements.delete","elements.move","label.create","spaceTool"];Vu.$inject=["eventBus","modeling"],dt(Vu,q);dt(Uu,q),Uu.$inject=["eventBus","modeling"];f8={__init__:"adaptiveLabelPositioningBehavior.appendBehavior.artifactBehavior.associationBehavior.attachEventBehavior.boundaryEventBehavior.categoryRootElementReferenceBehavior.compensateBoundaryEventBehaviour.createBehavior.createDataObjectBehavior.createParticipantBehavior.dataInputAssociationBehavior.dataStoreBehavior.deleteLaneBehavior.detachEventBehavior.dropOnFlowBehavior.eventBasedGatewayBehavior.fixHoverBehavior.groupBehavior.importDockingFix.isHorizontalFix.labelBehavior.layoutConnectionBehavior.messageFlowBehavior.nonInterruptingBehavior.removeElementBehavior.removeEmbeddedLabelBoundsBehavior.removeParticipantBehavior.replaceConnectionBehavior.replaceElementBehaviour.resizeBehavior.resizeLaneBehavior.rootElementReferenceBehavior.spaceToolBehavior.subProcessPlaneBehavior.subProcessStartEventBehavior.textAnnotationBehavior.toggleCollapseConnectionBehaviour.toggleElementCollapseBehaviour.unclaimIdBehavior.updateFlowNodeRefsBehavior.updateCategoryValueRefsBehavior.unsetDefaultFlowBehavior.setCompensationActivityAfterPasteBehavior".split("."),adaptiveLabelPositioningBehavior:["type",lu],appendBehavior:["type",pu],associationBehavior:["type",mu],attachEventBehavior:["type",up],artifactBehavior:["type",du],boundaryEventBehavior:["type",uu],categoryRootElementReferenceBehavior:["type",hu],compensateBoundaryEventBehaviour:["type",fu],createBehavior:["type",gu],createDataObjectBehavior:["type",yu],createParticipantBehavior:["type",xu],dataInputAssociationBehavior:["type",ku],dataStoreBehavior:["type",wu],deleteLaneBehavior:["type",_u],detachEventBehavior:["type",fp],dropOnFlowBehavior:["type",Eu],eventBasedGatewayBehavior:["type",Su],fixHoverBehavior:["type",u2],groupBehavior:["type",Tu],importDockingFix:["type",h2],isHorizontalFix:["type",Bu],labelBehavior:["type",Ru],layoutConnectionBehavior:["type",Mu],messageFlowBehavior:["type",Au],nonInterruptingBehavior:["type",Pu],removeElementBehavior:["type",ju],removeEmbeddedLabelBoundsBehavior:["type",Du],removeParticipantBehavior:["type",$u],replaceConnectionBehavior:["type",zu],replaceElementBehaviour:["type",gp],resizeBehavior:["type",C2],resizeLaneBehavior:["type",R2],rootElementReferenceBehavior:["type",Ou],spaceToolBehavior:["type",A2],subProcessPlaneBehavior:["type",Pr],subProcessStartEventBehavior:["type",Lu],textAnnotationBehavior:["type",Nu],toggleCollapseConnectionBehaviour:["type",Iu],toggleElementCollapseBehaviour:["type",Hu],unclaimIdBehavior:["type",Fu],unsetDefaultFlowBehavior:["type",Wu],updateFlowNodeRefsBehavior:["type",Gu],updateCategoryValueRefsBehavior:["type",Vu],setCompensationActivityAfterPasteBehavior:["type",Uu]};dt(kn,Mo),kn.$inject=["eventBus"],kn.prototype.init=function(){this.addRule("connection.start",function(t){var e=t.source;return g8(e)}),this.addRule("connection.create",function(t){var e=t.source,n=t.target,o=t.hints||{},r=o.targetParent;if(o.targetAttach)return!1;r&&(n.parent=r);try{return ql(e,n)}finally{r&&(n.parent=null)}}),this.addRule("connection.reconnect",function(t){var e=t.connection,n=t.source,o=t.target;return ql(n,o,e)}),this.addRule("connection.updateWaypoints",function(t){return{type:t.connection.type}}),this.addRule("shape.resize",function(t){var e=t.shape,n=t.newBounds,o=t.direction;return Hv(e,n,o)}),this.addRule("elements.create",function(t){var e=t.elements,n=t.position,o=t.target;return oe(o)&&!bp(e,o,n)?!1:tr(e,function(r){return oe(r)?ql(r.source,r.target,r):r.host?lc(r,r.host,null,n):$m(r,o,null,n)})}),this.addRule("elements.move",function(t){var e=t.target,n=t.shapes,o=t.position;return t.hints?.keyboardMove&&n.some(function(r){return L2(r)&&!n.includes(r.host)})?!1:lc(n,e,null,o)||Nv(n,e,o)||Iv(n,e,o)||bp(n,e,o)}),this.addRule("shape.create",function(t){return $m(t.shape,t.target,t.source,t.position)}),this.addRule("shape.attach",function(t){return lc(t.shape,t.target,null,t.position)}),this.addRule("element.copy",function(t){var e=t.element,n=t.elements;return Fv(n,e)})},kn.prototype.canConnectMessageFlow=G2,kn.prototype.canConnectSequenceFlow=V2,kn.prototype.canConnectDataAssociation=$h,kn.prototype.canConnectAssociation=F2,kn.prototype.canConnectCompensationAssociation=W2,kn.prototype.canMove=Iv,kn.prototype.canAttach=lc,kn.prototype.canReplace=Nv,kn.prototype.canDrop=ms,kn.prototype.canInsert=bp,kn.prototype.canCreate=$m,kn.prototype.canConnect=ql,kn.prototype.canResize=Hv,kn.prototype.canCopy=Fv;A8={__depends__:[fr],__init__:["bpmnRules"],bpmnRules:["type",kn]},P8=2e3;U2.$inject=["eventBus","canvas"];D8={__init__:["bpmnDiOrdering"],bpmnDiOrdering:["type",U2]};qp.prototype.getOrdering=function(t,e){return null},dt(qp,q);Yu.$inject=["eventBus","canvas"],dt(Yu,qp);j8={__init__:["bpmnOrderingProvider"],bpmnOrderingProvider:["type",Yu]};pc.prototype.get=function(){return this._data},pc.prototype.set=function(t){this._data=t},pc.prototype.clear=function(){var t=this._data;return delete this._data,t},pc.prototype.isEmpty=function(){return!this._data};$8={clipboard:["type",pc]},z8="drop-ok",Vv="drop-not-ok",Uv="attach-ok",qv="new-parent",Kv="create",O8=2e3;q2.$inject=["canvas","dragging","eventBus","modeling","rules"];L8=750;K2.$inject=["canvas","eventBus","graphicsFactory","previewSupport","styles"];ld={__depends__:[Nr,gs,fr,Yn],__init__:["create","createPreview"],create:["type",q2],createPreview:["type",K2]};Zu.$inject=["eventBus"],Zu.prototype.getLastMoveEvent=function(){return this._lastMoveEvent||N8(0,0)};Lc={__init__:["mouse"],mouse:["type",Zu]},Zv=2e3;Zn.$inject=["canvas","create","clipboard","elementFactory","eventBus","modeling","mouse","rules"],Zn.prototype.copy=function(t,e={}){var n,o;return bt(t)||(t=t?[t]:[]),n=this._eventBus.fire("copyPaste.canCopyElements",{elements:t}),o=n===!1?{}:this.createTree(bt(n)?n:t),this._eventBus.fire("copyPaste.elementsCopied",{elements:t,tree:o,hints:e}),o},Zn.prototype.paste=function(t={}){var e=this._eventBus.createEvent({type:"copyPaste.pasteElements",hints:{},...t});if(this._eventBus.fire(e)!==!1){var n=e.tree;if(n){var o=e.hints,r=this._createElements(n);if(e.element&&e.point)return this._paste(r,e.element,e.point,o);this._create.start(this._mouse.getLastMoveEvent(),r,{hints:o})}}},Zn.prototype.duplicate=function(t,e={}){var n=this.copy(t,{clip:!1});return this.paste({...e,tree:n})},Zn.prototype.cut=function(t){var e=this.copy(t),n=this._getElementIdsFromTree(e),o=t.filter(function(r){return n[r.id]});return o.length>0&&this._modeling.removeElements(o),e},Zn.prototype._getElementIdsFromTree=function(t){var e={};return R(t,function(n){R(n,function(o){o.id&&(e[o.id]=!0)})}),e},Zn.prototype._paste=function(t,e,n,o){R(t,function(i){xt(i.x)||(i.x=0),xt(i.y)||(i.y=0)});var r=je(t);return R(t,function(i){oe(i)&&(i.waypoints=tn(i.waypoints,function(a){return{x:a.x-r.x-r.width/2,y:a.y-r.y-r.height/2}})),P(i,{x:i.x-r.x-r.width/2,y:i.y-r.y-r.height/2})}),this._modeling.createElements(t,n,e,P({},o))},Zn.prototype._createElements=function(t){var e=this,n=this._eventBus,o={},r=[];return R(t,function(i,a){a=parseInt(a,10),i=vo(i,"priority"),R(i,function(s){var c=P({},bo(s,["priority"]));o[s.parent]?c.parent=o[s.parent]:delete c.parent,n.fire("copyPaste.pasteElement",{cache:o,descriptor:c});var l;oe(c)?(c.source=o[s.source],c.target=o[s.target],l=o[s.id]=e.createConnection(c),r.push(l)):Bt(c)?(c.labelTarget=o[c.labelTarget],l=o[s.id]=e.createLabel(c),r.push(l)):(c.host&&=o[c.host],l=o[s.id]=e.createShape(c),r.push(l))})}),r},Zn.prototype.createConnection=function(t){return this._elementFactory.createConnection(bo(t,["id"]))},Zn.prototype.createLabel=function(t){return this._elementFactory.createLabel(bo(t,["id"]))},Zn.prototype.createShape=function(t){return this._elementFactory.createShape(bo(t,["id"]))},Zn.prototype.hasRelations=function(t,e,n){return n||=new Set(e),!(oe(t)&&(!n.has(t.source)||!n.has(t.target))||Bt(t)&&!n.has(t.labelTarget))},Zn.prototype.createTree=function(t){var e=this._rules,n=this,o={},r=[],i=new Map,a=Us(t);function s(d,m){return e.allowed("element.copy",{element:d,elements:m})}function c(d,m){var u=i.get(d);if(u){if(u.depth<m){r=l(u,r);var f={element:u.element,depth:m};r.push(f),i.set(d,f)}}else{var h={element:d,depth:m};r.push(h),i.set(d,h)}}function l(d,m){var u=m.indexOf(d);return u!==-1&&m.splice(u,1),m}si(a,function(d,m,u){if(Bt(d))return;R(d.labels,function(g){c(g,u)});function h(g){g&&g.length&&R(g,function(x){R(x.labels,function(k){c(k,u)}),c(x,u)})}R([d.attachers,d.incoming,d.outgoing],h),c(d,u);var f=[];return d.children&&(f=d.children.slice()),n._eventBus.fire("copyPaste.createTree",{element:d,children:f}),f}),t=tn(r,function(d){return d.element});var p=new Set(t);return r=tn(r,function(d){return d.descriptor={},n._eventBus.fire("copyPaste.copyElement",{descriptor:d.descriptor,element:d.element,elements:t,elementsSet:p}),d}),r=vo(r,function(d){return d.descriptor.priority}),t=tn(r,function(d){return d.element}),R(r,function(d){var m=d.depth;n.hasRelations(d.element,t,p)&&s(d.element,t)?(o[m]||(o[m]=[]),o[m].push(d.descriptor)):(F8(d.element,t),p.delete(d.element))}),o};W8={__depends__:[$8,ld,Lc,fr],__init__:["copyPaste"],copyPaste:["type",Zn]};Om=750;X2.$inject=["bpmnFactory","eventBus","moddleCopy"];G8=["artifacts","dataInputAssociations","dataOutputAssociations","default","flowElements","lanes","incoming","outgoing","categoryValue"],V8=["errorRef","escalationRef","messageRef","signalRef","dataObjectRef"];dc.$inject=["eventBus","bpmnFactory","moddle"],dc.prototype.copyElement=function(t,e,n,o=!1){n&&!bt(n)&&(n=[n]),n||=Ju(t.$descriptor);let r=this._eventBus.fire("moddleCopy.canCopyProperties",{propertyNames:n,sourceElement:t,targetElement:e,clone:o});return r===!1||(bt(r)&&(n=r),R(n,i=>{let a;vn(t,i)&&(a=t.get(i));let s=this.copyProperty(a,e,i,o);Le(s)&&this._eventBus.fire("moddleCopy.canSetCopiedProperty",{parent:e,property:s,propertyName:i})!==!1&&e.set(i,s)})),e},dc.prototype.copyProperty=function(t,e,n,o=!1){let r=this._eventBus.fire("moddleCopy.canCopyProperty",{parent:e,property:t,propertyName:n,clone:o});if(r===!1)return;if(r)return Se(r)&&r.$type&&!r.$parent&&(r.$parent=e),r;let i=this._moddle.getPropertyDescriptor(e,n);if(!i.isReference)return i.isId?t&&this._copyId(t,e,o):bt(t)?Pn(t,(a,s)=>{let c=this.copyProperty(s,e,n,o);return c?a.concat(c):a},[]):Se(t)&&t.$type?this._moddle.getElementDescriptor(t).isGeneric?void 0:(r=this._bpmnFactory.create(t.$type),r.$parent=e,r=this.copyElement(t,r,null,o),r):t},dc.prototype._copyId=function(t,e,n=!1){if(n)return t;if(!this._moddle.ids.assigned(t))return this._moddle.ids.claim(t,e),t};Y2={__depends__:[W8],__init__:["bpmnCopyPaste","moddleCopy"],bpmnCopyPaste:["type",X2],moddleCopy:["type",dc]},Qv=Math.round;Qu.$inject=["modeling","eventBus"],Qu.prototype.replaceElement=function(t,e,n){if(t.waypoints)return null;var o=this._modeling,r=this._eventBus;r.fire("replace.start",{element:t,attrs:e,hints:n});var i=e.width||t.width,a=e.height||t.height,s=e.x||t.x,c=e.y||t.y,l=Qv(s+i/2),p=Qv(c+a/2),d=o.replaceShape(t,P({},e,{x:l,y:p,width:i,height:a}),n);return r.fire("replace.end",{element:t,newElement:d,hints:n}),d};Z2.$inject=["selection","eventBus"];U8={__init__:["replace","replaceSelectionBehavior"],replaceSelectionBehavior:["type",Z2],replace:["type",Qu]};K8=["cancelActivity","instantiate","eventGatewayType","triggeredByEvent","isInterrupting"];J2.$inject=["bpmnFactory","elementFactory","moddleCopy","modeling","replace","rules"];Q2={__depends__:[Y2,U8,Yn],bpmnReplace:["type",J2]},Z8=250;ea.$inject=["eventBus"],ea.prototype.registerTool=function(t,e){var n=this._tools;if(!e)throw Error('A tool has to be registered with it\'s "events"');n.push(t),this.bindEvents(t,e)},ea.prototype.isActive=function(t){return t&&this._active===t},ea.prototype.length=function(t){return this._tools.length},ea.prototype.setActive=function(t){var e=this._eventBus;this._active!==t&&(this._active=t,e.fire("tool-manager.update",{tool:t}))},ea.prototype.bindEvents=function(t,e){var n=this._eventBus,o=[];n.on(e.tool+".init",function(r){!r.context.reactivate&&this.isActive(t)?this.setActive(null):this.setActive(t)},this),R(e,function(r){o.push(r+".ended"),o.push(r+".canceled")}),n.on(o,Z8,function(r){this._active&&(J8(r)||this.setActive(null))},this)};pd={__depends__:[Nr],__init__:["toolManager"],toolManager:["type",ea]};Lm=Math.abs,n7=Math.round,Dr={x:"width",y:"height"},eb="crosshair",mi={n:"top",w:"left",s:"bottom",e:"right"},o7=1500,Xl={n:"s",w:"e",s:"n",e:"w"},Yl=20;To.$inject=["canvas","dragging","eventBus","modeling","rules","toolManager","mouse"],To.prototype.activateSelection=function(t,e,n){this._dragging.init(t,"spaceTool.selection",{autoActivate:e,cursor:eb,data:{context:{reactivate:n}},trapClick:!1})},To.prototype.activateMakeSpace=function(t){this._dragging.init(t,"spaceTool",{autoActivate:!0,cursor:eb,data:{context:{}}})},To.prototype.makeSpace=function(t,e,n,o,r){return this._modeling.createSpace(t,e,n,o,r)},To.prototype.init=function(t,e){var n=Lm(t.dx)>Lm(t.dy)?"x":"y",o=t["d"+n],r=t[n]-o;if(Lm(o)<5)return!1;o<0&&(o*=-1),Va(t)&&(o*=-1);var i=Q8(n,o),a=this._canvas.getRootElement();!Ys(t)&&t.hover&&(a=t.hover);var s=[...Ha(a),...a.attachers||[]],c=this.calculateAdjustments(s,n,o,r),l=r7(c,n,i,r,this._eventBus.fire("spaceTool.getMinDimensions",{axis:n,direction:i,shapes:c.resizingShapes,start:r}));return P(e,c,{axis:n,direction:i,spaceToolConstraints:l,start:r}),Qp("resize-"+(n==="x"?"ew":"ns")),!0},To.prototype.calculateAdjustments=function(t,e,n,o){var r=this._rules,i=[],a=[],s=new Set,c=new Set,l=[],p=[];function d(u){s.has(u)||(s.add(u),i.push(u));var h=u.label;h&&!s.has(h)&&(s.add(h),i.push(h))}function m(u){c.has(u)||(c.add(u),a.push(u))}return R(t,function(u){if(u.parent&&!Bt(u))if(oe(u))p.push(u);else{var h=u[e],f=h+u[Dr[e]];i7(u)&&(n>0&&vt(u)[e]>o||n<0&&vt(u)[e]<o)?l.push(u):n>0&&h>o||n<0&&f<o?d(u):h<o&&f>o&&r.allowed("shape.resize",{shape:u})&&m(u)}}),R(i,function(u){var h=u.attachers;h&&R(h,function(f){d(f)})}),R(l,function(u){var h=u.host;(s.has(h)||c.has(h))&&d(u)}),R(p,function(u){var h=u.source,f=u.target,g=u.label;(s.has(h)||c.has(h))&&(s.has(f)||c.has(f))&&g&&d(g)}),{movingShapes:i,resizingShapes:a}},To.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var t=this._mouse.getLastMoveEvent();this.activateSelection(t,!!t)},To.prototype.isActive=function(){var t=this._dragging.context();return t?/^spaceTool/.test(t.prefix):!1};Nm="djs-dragging",rb="djs-resizing",a7=250,Zl=Math.max;tk.$inject=["eventBus","elementRegistry","canvas","styles","previewSupport"];s7={__init__:["spaceToolPreview"],__depends__:[Nr,fr,pd,gs,Lc],spaceTool:["type",To],spaceToolPreview:["type",tk]};xp.$inject=["injector","canvas"],dt(xp,To),xp.prototype.calculateAdjustments=function(t,e,n,o){var r=this._canvas.getRootElement(),i=t[0]===r?null:t[0],a=[];i&&(a=Hi(Ki(r.children.filter(l=>y(l,"bpmn:Artifact")),je(i))));let s=[...t,...a];var c=To.prototype.calculateAdjustments.call(this,s,e,n,o);return c.resizingShapes=c.resizingShapes.filter(function(l){return!(y(l,"bpmn:TextAnnotation")||c7(l)&&(e==="y"&&Re(l)||e==="x"&&!Re(l)))}),c};ek={__depends__:[s7],spaceTool:["type",xp]};Ae.$inject=["eventBus","injector"],Ae.prototype.execute=function(t,e){if(!t)throw Error("command required");this._currentExecution.trigger="execute";let n={command:t,context:e};this._pushAction(n),this._internalExecute(n),this._popAction()},Ae.prototype.canExecute=function(t,e){let n={command:t,context:e},o=this._getHandler(t),r=this._fire(t,"canExecute",n);if(r===void 0){if(!o)return!1;o.canExecute&&(r=o.canExecute(e))}return r},Ae.prototype.clear=function(t){this._stack.length=0,this._stackIdx=-1,t!==!1&&this._fire("changed",{trigger:"clear"})},Ae.prototype.undo=function(){let t=this._getUndoAction(),e;if(t){for(this._currentExecution.trigger="undo",this._pushAction(t);t&&(this._internalUndo(t),e=this._getUndoAction(),e&&e.id===t.id);)t=e;this._popAction()}},Ae.prototype.redo=function(){let t=this._getRedoAction(),e;if(t){for(this._currentExecution.trigger="redo",this._pushAction(t);t&&(this._internalExecute(t,!0),e=this._getRedoAction(),e&&e.id===t.id);)t=e;this._popAction()}},Ae.prototype.register=function(t,e){this._setHandler(t,e)},Ae.prototype.registerHandler=function(t,e){if(!t||!e)throw Error("command and handlerCls must be defined");let n=this._injector.instantiate(e);this.register(t,n)},Ae.prototype.canUndo=function(){return!!this._getUndoAction()},Ae.prototype.canRedo=function(){return!!this._getRedoAction()},Ae.prototype._getRedoAction=function(){return this._stack[this._stackIdx+1]},Ae.prototype._getUndoAction=function(){return this._stack[this._stackIdx]},Ae.prototype._internalUndo=function(t){let e=t.command,n=t.context,o=this._getHandler(e);this._atomicDo(()=>{this._fire(e,"revert",t),o.revert&&this._markDirty(o.revert(n)),this._revertedAction(t),this._fire(e,"reverted",t)})},Ae.prototype._fire=function(t,e,n){arguments.length<3&&(n=e,e=null);let o=e?[t+"."+e,e]:[t],r;n=this._eventBus.createEvent(n);for(let i of o)if(r=this._eventBus.fire("commandStack."+i,n),n.cancelBubble)break;return r},Ae.prototype._createId=function(){return this._uid++},Ae.prototype._atomicDo=function(t){let e=this._currentExecution;e.atomic=!0;try{t()}finally{e.atomic=!1}},Ae.prototype._internalExecute=function(t,e){let n=t.command,o=t.context,r=this._getHandler(n);if(!r)throw Error("no command handler registered for <"+n+">");this._pushAction(t),e||(this._fire(n,"preExecute",t),r.preExecute&&r.preExecute(o),this._fire(n,"preExecuted",t)),this._atomicDo(()=>{this._fire(n,"execute",t),r.execute&&this._markDirty(r.execute(o)),this._executedAction(t,e),this._fire(n,"executed",t)}),e||(this._fire(n,"postExecute",t),r.postExecute&&r.postExecute(o),this._fire(n,"postExecuted",t)),this._popAction()},Ae.prototype._pushAction=function(t){let e=this._currentExecution,n=e.actions,o=n[0];if(e.atomic)throw Error("illegal invocation in <execute> or <revert> phase (action: "+t.command+")");t.id||=o&&o.id||this._createId(),n.push(t)},Ae.prototype._popAction=function(){let t=this._currentExecution,e=t.trigger,n=t.actions,o=t.dirty;n.pop(),n.length||(this._eventBus.fire("elements.changed",{elements:tm("id",o.reverse())}),o.length=0,this._fire("changed",{trigger:e}),t.trigger=null)},Ae.prototype._markDirty=function(t){let e=this._currentExecution;t&&(t=bt(t)?t:[t],e.dirty=e.dirty.concat(t))},Ae.prototype._executedAction=function(t,e){let n=++this._stackIdx;e||this._stack.splice(n,this._stack.length,t)},Ae.prototype._revertedAction=function(t){this._stackIdx--},Ae.prototype._getHandler=function(t){return this._handlerMap[t]},Ae.prototype._setHandler=function(t,e){if(!t||!e)throw Error("command and handler required");if(this._handlerMap[t])throw Error("overriding handler for command <"+t+">");this._handlerMap[t]=e};l7={commandStack:["type",Ae]};p7=250,ib=1400;dt(th,q),th.$inject=["injector","eventBus","modeling"];d7={__init__:["labelSupport"],labelSupport:["type",th]},m7=251,sb=1401,cb="attach-ok";dt(eh,q),eh.$inject=["injector","eventBus","canvas","rules","modeling"];y7={__depends__:[fr],__init__:["attachSupport"],attachSupport:["type",eh]};Eo.$inject=["moddle"],Eo.prototype._needsId=function(t){return At(t,["bpmn:RootElement","bpmn:FlowElement","bpmn:MessageFlow","bpmn:DataAssociation","bpmn:Artifact","bpmn:Participant","bpmn:Lane","bpmn:LaneSet","bpmn:Process","bpmn:Collaboration","bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane","bpmn:Property","bpmn:CategoryValue"])},Eo.prototype._ensureId=function(t){if(t.id)this._model.ids.claim(t.id,t);else{var e=y(t,"bpmn:Activity")?"Activity":y(t,"bpmn:Event")?"Event":y(t,"bpmn:Gateway")?"Gateway":At(t,["bpmn:SequenceFlow","bpmn:MessageFlow"])?"Flow":(t.$type||"").replace(/^[^:]*:/g,"");e+="_",!t.id&&this._needsId(t)&&(t.id=this._model.ids.nextPrefixed(e,t))}},Eo.prototype.create=function(t,e){var n=this._model.create(t,e||{});return this._ensureId(n),n},Eo.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})},Eo.prototype.createDiShape=function(t,e){return this.create("bpmndi:BPMNShape",P({bpmnElement:t,bounds:this.createDiBounds()},e))},Eo.prototype.createDiBounds=function(t){return this.create("dc:Bounds",t)},Eo.prototype.createDiWaypoints=function(t){var e=this;return tn(t,function(n){return e.createDiWaypoint(n)})},Eo.prototype.createDiWaypoint=function(t){return this.create("dc:Point",Nn(t,["x","y"]))},Eo.prototype.createDiEdge=function(t,e){return this.create("bpmndi:BPMNEdge",P({bpmnElement:t,waypoint:this.createDiWaypoints([])},e))},Eo.prototype.createDiPlane=function(t,e){return this.create("bpmndi:BPMNPlane",P({bpmnElement:t},e))};v7={width:100,height:80},b7={width:100,height:80},x7={width:50,height:50},k7={width:36,height:36},w7={width:350,height:200},_7={width:100,height:80},E7={width:600,height:250},S7={width:250,height:600},T7={width:400,height:60},C7={width:60,height:400},B7={width:400,height:100},R7={width:36,height:50},M7={width:50,height:50},A7={width:100,height:40},P7={width:300,height:300};dt(fi,sr),fi.$inject=["bpmnFactory","moddle"],fi.prototype._baseCreate=sr.prototype.create,fi.prototype.create=function(t,e){if(t==="label"){var n=e.di||this._bpmnFactory.createDiLabel();return this._baseCreate(t,P({type:"label",di:n},Sr,e))}return this.createElement(t,e)},fi.prototype.createElement=function(t,e){e=P({},e||{});var n,o=e.businessObject,r=e.di;if(!o){if(!e.type)throw Error("no shape type specified");o=this._bpmnFactory.create(e.type)}if(!$7(r)){var i=P({},r||{},{id:o.id+"_di"});r=t==="root"?this._bpmnFactory.createDiPlane(o,i):t==="connection"?this._bpmnFactory.createDiEdge(o,i):this._bpmnFactory.createDiShape(o,i)}y(o,"bpmn:Group")&&(e=P({isFrame:!0},e)),e=j7(o,e,["processRef","isInterrupting","associationDirection","isForCompensation"]),e.isExpanded&&(e=oh(r,e,"isExpanded")),At(o,["bpmn:Lane","bpmn:Participant"])&&(e=oh(r,e,"isHorizontal")),y(o,"bpmn:SubProcess")&&(e.collapsed=!Ot(o,r)),y(o,"bpmn:ExclusiveGateway")&&(vn(r,"isMarkerVisible")?r.isMarkerVisible===void 0&&(r.isMarkerVisible=!1):r.isMarkerVisible=!0),Le(e.triggeredByEvent)&&(o.triggeredByEvent=e.triggeredByEvent,delete e.triggeredByEvent),Le(e.cancelActivity)&&(o.cancelActivity=e.cancelActivity,delete e.cancelActivity);var a,s;return e.eventDefinitionType&&(a=o.get("eventDefinitions")||[],s=this._bpmnFactory.create(e.eventDefinitionType,e.eventDefinitionAttrs),e.eventDefinitionType==="bpmn:ConditionalEventDefinition"&&(s.condition=this._bpmnFactory.create("bpmn:FormalExpression")),a.push(s),s.$parent=o,o.eventDefinitions=a,delete e.eventDefinitionType),n=this.getDefaultSize(o,r),e=P({id:o.id},n,e,{businessObject:o,di:r}),this._baseCreate(t,e)},fi.prototype.getDefaultSize=function(t,e){return D7(t,e)},fi.prototype.createParticipantShape=function(t){return Se(t)||(t={isExpanded:t}),t=P({type:"bpmn:Participant"},t||{}),t.isExpanded!==!1&&(t.processRef=this._bpmnFactory.create("bpmn:Process")),this.createShape(t)};kp.$inject=["modeling","canvas"],kp.prototype.preExecute=function(t){var e=this._modeling,n=t.elements,o=t.alignment;R(n,function(r){var i={x:0,y:0};Le(o.left)?i.x=o.left-r.x:Le(o.right)?i.x=o.right-r.width-r.x:Le(o.center)?i.x=o.center-Math.round(r.width/2)-r.x:Le(o.top)?i.y=o.top-r.y:Le(o.bottom)?i.y=o.bottom-r.height-r.y:Le(o.middle)&&(i.y=o.middle-Math.round(r.height/2)-r.y),e.moveElements([r],i,r.parent)})},kp.prototype.postExecute=function(t){};wp.$inject=["modeling"],wp.prototype.preExecute=function(t){var e=t.source;if(!e)throw Error("source required");var n=t.target||e.parent,o=t.shape,r=t.hints||{};o=t.shape=this._modeling.createShape(o,t.position,n,{attach:r.attach}),t.shape=o},wp.prototype.postExecute=function(t){var e=t.hints||{};z7(t.source,t.shape)||(e.connectionTarget===t.source?this._modeling.connect(t.shape,t.source,t.connection):this._modeling.connect(t.source,t.shape,t.connection))};_p.$inject=["canvas","layouter"],_p.prototype.execute=function(t){var e=t.connection,n=t.source,o=t.target,r=t.parent,i=t.parentIndex,a=t.hints;if(!n||!o)throw Error("source and target required");if(!r)throw Error("parent required");return e.source=n,e.target=o,e.waypoints||=this._layouter.layoutConnection(e,a),this._canvas.addConnection(e,r,i),e},_p.prototype.revert=function(t){var e=t.connection;return this._canvas.removeConnection(e),e.source=null,e.target=null,e};Jl=Math.round;rh.$inject=["modeling"],rh.prototype.preExecute=function(t){var e=t.elements,n=t.parent,o=t.parentIndex,r=t.position,i=t.hints,a=this._modeling;R(e,function(d){xt(d.x)||(d.x=0),xt(d.y)||(d.y=0)});var s=Dt(e,function(d){return!d.hidden}),c=je(s);R(e,function(d){oe(d)&&(d.waypoints=tn(d.waypoints,function(m){return{x:Jl(m.x-c.x-c.width/2+r.x),y:Jl(m.y-c.y-c.height/2+r.y)}})),P(d,{x:Jl(d.x-c.x-c.width/2+r.x),y:Jl(d.y-c.y-c.height/2+r.y)})});var l=new Set(Us(e)),p={};R(e,function(d){if(oe(d))p[d.id]=xt(o)?a.createConnection(p[d.source.id],p[d.target.id],o,d,d.parent||n,i):a.createConnection(p[d.source.id],p[d.target.id],d,d.parent||n,i);else{var m=P({},i);l.has(d)||(m.autoResize=!1),Bt(d)&&(m=bo(m,["attach"])),p[d.id]=xt(o)?a.createShape(d,Nn(d,["x","y","width","height"]),d.parent||n,o,m):a.createShape(d,Nn(d,["x","y","width","height"]),d.parent||n,m)}}),t.elements=Hi(p)};lb=Math.round;Si.$inject=["canvas"],Si.prototype.execute=function(t){var e=t.shape,n=t.position,o=t.parent,r=t.parentIndex;if(!o)throw Error("parent required");if(!n)throw Error("position required");return n.width===void 0?P(e,{x:n.x-lb(e.width/2),y:n.y-lb(e.height/2)}):P(e,n),this._canvas.addShape(e,o,r),e},Si.prototype.revert=function(t){var e=t.shape;return this._canvas.removeShape(e),e};dt($c,Si),$c.$inject=["canvas"];O7=Si.prototype.execute;$c.prototype.execute=function(t){var e=t.shape;return N7(e),e.labelTarget=t.labelTarget,O7.call(this,t)};L7=Si.prototype.revert;$c.prototype.revert=function(t){return t.shape.labelTarget=null,L7.call(this,t)};mc.$inject=["canvas","modeling"],mc.prototype.preExecute=function(t){var e=this._modeling,n=t.connection;Ei(n.incoming,function(o){e.removeConnection(o,{nested:!0})}),Ei(n.outgoing,function(o){e.removeConnection(o,{nested:!0})})},mc.prototype.execute=function(t){var e=t.connection,n=e.parent;return t.parent=n,t.parentIndex=gl(n.children,e),t.source=e.source,t.target=e.target,this._canvas.removeConnection(e),e.source=null,e.target=null,e},mc.prototype.revert=function(t){var e=t.connection,n=t.parent,o=t.parentIndex;return e.source=t.source,e.target=t.target,Te(n.children,e,o),this._canvas.addConnection(e,n),e};ih.$inject=["modeling","elementRegistry"],ih.prototype.postExecute=function(t){var e=this._modeling,n=this._elementRegistry,o=t.elements;R(o,function(r){n.get(r.id)&&(r.waypoints?e.removeConnection(r):e.removeShape(r))})};uc.$inject=["canvas","modeling"],uc.prototype.preExecute=function(t){var e=this._modeling,n=t.shape;Ei(n.incoming,function(o){e.removeConnection(o,{nested:!0})}),Ei(n.outgoing,function(o){e.removeConnection(o,{nested:!0})}),Ei(n.children,function(o){oe(o)?e.removeConnection(o,{nested:!0}):e.removeShape(o,{nested:!0})})},uc.prototype.execute=function(t){var e=this._canvas,n=t.shape,o=n.parent;return t.oldParent=o,t.oldParentIndex=gl(o.children,n),e.removeShape(n),n},uc.prototype.revert=function(t){var e=this._canvas,n=t.shape,o=t.oldParent,r=t.oldParentIndex;return Te(o.children,n,r),e.addShape(n,o),n};Kp.$inject=["modeling"];pb={x:"y",y:"x"};Kp.prototype.preExecute=function(t){var e=this._modeling,n=t.groups,o=t.axis,r=t.dimension;function i(g,x){g.range.min=Math.min(x[o],g.range.min),g.range.max=Math.max(x[o]+x[r],g.range.max)}function a(g){return g[o]+g[r]/2}function s(g){return g.length-1}function c(g){return g.max-g.min}function l(g,x){var k={y:0};k[o]=g-a(x),k[o]&&(k[pb[o]]=0,e.moveElements([x],k,x.parent))}var p=n[0],d=s(n),m=n[d],u,h,f=0;R(n,function(g,x){var k,_,w;g.elements.length<2?x&&x!==n.length-1&&(i(g,g.elements[0]),f+=c(g.range)):(k=vo(g.elements,o),_=k[0],x===d&&(_=k[s(k)]),w=a(_),g.range=null,R(k,function(S){l(w,S),g.range===null?g.range={min:S[o],max:S[o]+S[r]}:i(g,S)}),x&&x!==n.length-1&&(f+=c(g.range)))}),h=Math.abs(m.range.min-p.range.max),u=Math.round((h-f)/(n.length-1)),!(u<n.length-1)&&R(n,function(g,x){var k={},_;g!==p&&g!==m&&(_=n[x-1],g.range.max=0,R(g.elements,function(w,S){k[pb[o]]=0,k[o]=_.range.max-w[o]+u,g.range.min!==w[o]&&(k[o]+=w[o]-g.range.min),k[o]&&e.moveElements([w],k,w.parent),g.range.max=Math.max(w[o]+w[r],S?g.range.max:0)}))})},Kp.prototype.postExecute=function(t){};Ep.$inject=["layouter","canvas"],Ep.prototype.execute=function(t){var e=t.connection,n=e.waypoints;return P(t,{oldWaypoints:n}),e.waypoints=this._layouter.layoutConnection(e,t.hints),e},Ep.prototype.revert=function(t){var e=t.connection;return e.waypoints=t.oldWaypoints,e};ah.prototype.execute=function(t){var e=t.connection,n=t.delta,o=t.newParent||e.parent,r=t.newParentIndex,i=e.parent;return t.oldParent=i,t.oldParentIndex=we(i.children,e),Te(o.children,e,r),e.parent=o,R(e.waypoints,function(a){a.x+=n.x,a.y+=n.y,a.original&&(a.original.x+=n.x,a.original.y+=n.y)}),e},ah.prototype.revert=function(t){var e=t.connection,n=e.parent,o=t.oldParent,r=t.oldParentIndex,i=t.delta;return we(n.children,e),Te(o.children,e,r),e.parent=o,R(e.waypoints,function(a){a.x-=i.x,a.y-=i.y,a.original&&(a.original.x-=i.x,a.original.y-=i.y)}),e};sh.prototype.add=function(t,e){return this.addAll([t],e)},sh.prototype.addAll=function(t,e){var n=qy(t,!!e,this);return P(this,n),this};Pc.prototype.moveRecursive=function(t,e,n){return t?this.moveClosure(this.getClosure(t),e,n):[]},Pc.prototype.moveClosure=function(t,e,n,o,r){var i=this._modeling,a=t.allShapes,s=t.allConnections,c=t.enclosedConnections,l=t.topLevel,p=!1;r&&r.parent===n&&(p=!0),R(a,function(d){i.moveShape(d,e,l[d.id]&&!p&&n,{recurse:!1,layout:!1})}),R(s,function(d){var m=!!a[d.source.id],u=!!a[d.target.id];c[d.id]&&m&&u?i.moveConnection(d,e,l[d.id]&&!p&&n):i.layoutConnection(d,{connectionStart:m&&Rh(d,d.source,e),connectionEnd:u&&Mh(d,d.target,e)})})},Pc.prototype.getClosure=function(t){return new sh().addAll(t,!0)};Sp.$inject=["modeling"],Sp.prototype.preExecute=function(t){t.closure=this._helper.getClosure(t.shapes)},Sp.prototype.postExecute=function(t){var e=t.hints,n;e&&e.primaryShape&&(n=e.primaryShape,e.oldParent=n.parent),this._helper.moveClosure(t.closure,t.delta,t.newParent,t.newHost,n)};na.$inject=["modeling"],na.prototype.execute=function(t){var e=t.shape,n=t.delta,o=t.newParent||e.parent,r=t.newParentIndex,i=e.parent;return t.oldBounds=Nn(e,["x","y","width","height"]),t.oldParent=i,t.oldParentIndex=we(i.children,e),Te(o.children,e,r),P(e,{parent:o,x:e.x+n.x,y:e.y+n.y}),e},na.prototype.postExecute=function(t){var e=t.shape,n=t.delta,o=t.hints,r=this._modeling;o.layout!==!1&&(R(e.incoming,function(i){r.layoutConnection(i,{connectionEnd:Mh(i,e,n)})}),R(e.outgoing,function(i){r.layoutConnection(i,{connectionStart:Rh(i,e,n)})})),o.recurse!==!1&&this.moveChildren(t)},na.prototype.revert=function(t){var e=t.shape,n=t.oldParent,o=t.oldParentIndex,r=t.delta;return Te(n.children,e,o),P(e,{parent:n,x:e.x-r.x,y:e.y-r.y}),e},na.prototype.moveChildren=function(t){var e=t.delta,n=t.shape;this._helper.moveRecursive(n.children,e,null)},na.prototype.getNewParent=function(t){return t.newParent||t.shape.parent};hc.$inject=["modeling"],hc.prototype.execute=function(t){var e=t.newSource,n=t.newTarget,o=t.connection,r=t.dockingOrPoints;if(!e&&!n)throw Error("newSource or newTarget required");return bt(r)&&(t.oldWaypoints=o.waypoints,o.waypoints=r),e&&(t.oldSource=o.source,o.source=e),n&&(t.oldTarget=o.target,o.target=n),o},hc.prototype.postExecute=function(t){var e=t.connection,n=t.newSource,o=t.newTarget,r=t.dockingOrPoints,i=t.hints||{},a={};i.connectionStart&&(a.connectionStart=i.connectionStart),i.connectionEnd&&(a.connectionEnd=i.connectionEnd),i.layoutConnection!==!1&&(n&&(!o||i.docking==="source")&&(a.connectionStart=a.connectionStart||db(bt(r)?r[0]:r)),o&&(!n||i.docking==="target")&&(a.connectionEnd=a.connectionEnd||db(bt(r)?r[r.length-1]:r)),i.newWaypoints&&(a.waypoints=i.newWaypoints),this._modeling.layoutConnection(e,a))},hc.prototype.revert=function(t){var e=t.oldSource,n=t.oldTarget,o=t.oldWaypoints,r=t.connection;return e&&(r.source=e),n&&(r.target=n),o&&(r.waypoints=o),r};jr.$inject=["modeling","rules"],jr.prototype.preExecute=function(t){var e=this,n=this._modeling,o=this._rules,r=t.oldShape,i=t.newData,a=t.hints||{},s;function c(h,f,g){return o.allowed("connection.reconnect",{connection:g,source:h,target:f})}var l={x:i.x,y:i.y},p={x:r.x,y:r.y,width:r.width,height:r.height};s=t.newShape=t.newShape||e.createShape(i,l,r.parent,a),r.host&&n.updateAttachment(s,r.host);var d;a.moveChildren!==!1&&(d=r.children.slice(),n.moveElements(d,{x:0,y:0},s,a));var m=r.incoming.slice(),u=r.outgoing.slice();R(m,function(h){var f=h.source;c(f,s,h)&&e.reconnectEnd(h,s,ad(h,s,p),a)}),R(u,function(h){var f=h.target;c(s,f,h)&&e.reconnectStart(h,s,id(h,s,p),a)})},jr.prototype.postExecute=function(t){var e=t.oldShape;this._modeling.removeShape(e)},jr.prototype.execute=function(t){},jr.prototype.revert=function(t){},jr.prototype.createShape=function(t,e,n,o){return this._modeling.createShape(t,e,n,o)},jr.prototype.reconnectStart=function(t,e,n,o){this._modeling.reconnectStart(t,e,n,o)},jr.prototype.reconnectEnd=function(t,e,n,o){this._modeling.reconnectEnd(t,e,n,o)};fc.$inject=["modeling"],fc.prototype.execute=function(t){var e=t.shape,n=t.newBounds,o=t.minBounds;if(n.x===void 0||n.y===void 0||n.width===void 0||n.height===void 0)throw Error("newBounds must have {x, y, width, height} properties");if(o&&(n.width<o.width||n.height<o.height))throw Error("width and height cannot be less than minimum height and width");if(!o&&n.width<10||n.height<10)throw Error("width and height cannot be less than 10px");return t.oldBounds={width:e.width,height:e.height,x:e.x,y:e.y},P(e,{width:n.width,height:n.height,x:n.x,y:n.y}),e},fc.prototype.postExecute=function(t){var e=this._modeling,n=t.shape,o=t.oldBounds;(t.hints||{}).layout!==!1&&(R(n.incoming,function(r){e.layoutConnection(r,{connectionEnd:ad(r,n,o)})}),R(n.outgoing,function(r){e.layoutConnection(r,{connectionStart:id(r,n,o)})}))},fc.prototype.revert=function(t){var e=t.shape,n=t.oldBounds;return P(e,{width:n.width,height:n.height,x:n.x,y:n.y}),e};gi.$inject=["modeling"],gi.prototype.preExecute=function(t){var e=t.delta,n=t.direction,o=t.movingShapes,r=t.resizingShapes,i=t.start,a={};this.moveShapes(o,e),R(r,function(s){a[s.id]=H7(s)}),this.resizeShapes(r,e,n),this.updateConnectionWaypoints(t7(o,r),e,n,i,o,r,a)},gi.prototype.execute=function(){},gi.prototype.revert=function(){},gi.prototype.moveShapes=function(t,e){var n=this;R(t,function(o){n._modeling.moveShape(o,e,null,{autoResize:!1,layout:!1,recurse:!1})})},gi.prototype.resizeShapes=function(t,e,n){var o=this;R(t,function(r){var i=e7(r,n,e);o._modeling.resizeShape(r,i,null,{attachSupport:!1,autoResize:!1,layout:!1})})},gi.prototype.updateConnectionWaypoints=function(t,e,n,o,r,i,a){var s=this,c=new Set(r),l=new Set(i);R(t,function(p){var d=p.source,m=p.target,u=I7(p),h=nk(n),f={},g=c.has(d)||l.has(d),x=c.has(m)||l.has(m);g&&x?(u=tn(u,function(k){return ub(k,o,n)&&(k[h]=k[h]+e[h]),k.original&&ub(k.original,o,n)&&(k.original[h]=k.original[h]+e[h]),k}),s._modeling.updateWaypoints(p,u,{labelBehavior:!1})):(g||x)&&(c.has(d)?f.connectionStart=Rh(p,d,e):c.has(m)?f.connectionEnd=Mh(p,m,e):l.has(d)?f.connectionStart=id(p,d,a[d.id]):l.has(m)&&(f.connectionEnd=ad(p,m,a[m.id])),s._modeling.layoutConnection(p,f))})};Tp.$inject=["modeling"],Tp.prototype.execute=function(t){var e=t.shape,n=e.children;t.oldChildrenVisibility=ok(n),e.collapsed=!e.collapsed;var o=rk(n,e.collapsed);return[e].concat(o)},Tp.prototype.revert=function(t){var e=t.shape,n=t.oldChildrenVisibility,o=e.children,r=ik(o,n);return e.collapsed=!e.collapsed,[e].concat(r)};Cp.$inject=["modeling"],Cp.prototype.execute=function(t){var e=t.shape,n=t.newHost,o=e.host;return t.oldHost=o,t.attacherIdx=hb(o,e),fb(n,e),e.host=n,e},Cp.prototype.revert=function(t){var e=t.shape,n=t.newHost,o=t.oldHost,r=t.attacherIdx;return e.host=o,hb(n,e),fb(o,e,r),e};ch.prototype.execute=function(t){var e=t.connection,n=t.newWaypoints;return t.oldWaypoints=e.waypoints,e.waypoints=n,e},ch.prototype.revert=function(t){var e=t.connection;return e.waypoints=t.oldWaypoints,e};ye.$inject=["eventBus","elementFactory","commandStack"],ye.prototype.getHandlers=function(){return{"shape.append":wp,"shape.create":Si,"shape.delete":uc,"shape.move":na,"shape.resize":fc,"shape.replace":jr,"shape.toggleCollapse":Tp,spaceTool:gi,"label.create":$c,"connection.create":_p,"connection.delete":mc,"connection.move":ah,"connection.layout":Ep,"connection.updateWaypoints":ch,"connection.reconnect":hc,"elements.create":rh,"elements.move":Sp,"elements.delete":ih,"elements.distribute":Kp,"elements.align":kp,"element.updateAttachment":Cp}},ye.prototype.registerHandlers=function(t){R(this.getHandlers(),function(e,n){t.registerHandler(n,e)})},ye.prototype.moveShape=function(t,e,n,o,r){typeof o=="object"&&(r=o,o=null);var i={shape:t,delta:e,newParent:n,newParentIndex:o,hints:r||{}};this._commandStack.execute("shape.move",i)},ye.prototype.updateAttachment=function(t,e){var n={shape:t,newHost:e};this._commandStack.execute("element.updateAttachment",n)},ye.prototype.moveElements=function(t,e,n,o){o||={};var r=o.attach,i=n,a;r===!0?(a=n,i=n.parent):r===!1&&(a=null);var s={shapes:t,delta:e,newParent:i,newHost:a,hints:o};this._commandStack.execute("elements.move",s)},ye.prototype.moveConnection=function(t,e,n,o,r){typeof o=="object"&&(r=o,o=void 0);var i={connection:t,delta:e,newParent:n,newParentIndex:o,hints:r||{}};this._commandStack.execute("connection.move",i)},ye.prototype.layoutConnection=function(t,e){var n={connection:t,hints:e||{}};this._commandStack.execute("connection.layout",n)},ye.prototype.createConnection=function(t,e,n,o,r,i){typeof n=="object"&&(i=r,r=o,o=n,n=void 0),o=this._create("connection",o);var a={source:t,target:e,parent:r,parentIndex:n,connection:o,hints:i};return this._commandStack.execute("connection.create",a),a.connection},ye.prototype.createShape=function(t,e,n,o,r){typeof o!="number"&&(r=o,o=void 0),r||={};var i=r.attach,a,s;t=this._create("shape",t),i?(a=n.parent,s=n):a=n;var c={position:e,shape:t,parent:a,parentIndex:o,host:s,hints:r};return this._commandStack.execute("shape.create",c),c.shape},ye.prototype.createElements=function(t,e,n,o,r){bt(t)||(t=[t]),typeof o!="number"&&(r=o,o=void 0),r||={};var i={position:e,elements:t,parent:n,parentIndex:o,hints:r};return this._commandStack.execute("elements.create",i),i.elements},ye.prototype.createLabel=function(t,e,n,o){n=this._create("label",n);var r={labelTarget:t,position:e,parent:o||t.parent,shape:n};return this._commandStack.execute("label.create",r),r.shape},ye.prototype.appendShape=function(t,e,n,o,r){r||={},e=this._create("shape",e);var i={source:t,position:n,target:o,shape:e,connection:r.connection,connectionParent:r.connectionParent,hints:r};return this._commandStack.execute("shape.append",i),i.shape},ye.prototype.removeElements=function(t){var e={elements:t};this._commandStack.execute("elements.delete",e)},ye.prototype.distributeElements=function(t,e,n){var o={groups:t,axis:e,dimension:n};this._commandStack.execute("elements.distribute",o)},ye.prototype.removeShape=function(t,e){var n={shape:t,hints:e||{}};this._commandStack.execute("shape.delete",n)},ye.prototype.removeConnection=function(t,e){var n={connection:t,hints:e||{}};this._commandStack.execute("connection.delete",n)},ye.prototype.replaceShape=function(t,e,n){var o={oldShape:t,newData:e,hints:n||{}};return this._commandStack.execute("shape.replace",o),o.newShape},ye.prototype.alignElements=function(t,e){var n={elements:t,alignment:e};this._commandStack.execute("elements.align",n)},ye.prototype.resizeShape=function(t,e,n,o){var r={shape:t,newBounds:e,minBounds:n,hints:o};this._commandStack.execute("shape.resize",r)},ye.prototype.createSpace=function(t,e,n,o,r){var i={delta:n,direction:o,movingShapes:t,resizingShapes:e,start:r};this._commandStack.execute("spaceTool",i)},ye.prototype.updateWaypoints=function(t,e,n){var o={connection:t,newWaypoints:e,hints:n||{}};this._commandStack.execute("connection.updateWaypoints",o)},ye.prototype.reconnect=function(t,e,n,o,r){var i={connection:t,newSource:e,newTarget:n,dockingOrPoints:o,hints:r||{}};this._commandStack.execute("connection.reconnect",i)},ye.prototype.reconnectStart=function(t,e,n,o){o||={},this.reconnect(t,e,t.target,n,P(o,{docking:"source"}))},ye.prototype.reconnectEnd=function(t,e,n,o){o||={},this.reconnect(t,t.source,e,n,P(o,{docking:"target"}))},ye.prototype.connect=function(t,e,n,o){return this.createConnection(t,e,n||{},t.parent,o)},ye.prototype._create=function(t,e){return o0(e)?e:this._elementFactory.create(t,e)},ye.prototype.toggleCollapse=function(t,e){var n={shape:t,hints:e||{}};this._commandStack.execute("shape.toggleCollapse",n)};gc.$inject=["elementRegistry"],gc.prototype.execute=function(t){var e=t.element,n=t.moddleElement,o=t.properties;if(!n)throw Error("<moddleElement> required");var r=t.changed||this._getVisualReferences(n).concat(e),i=t.oldProperties||F7(n,$s(o));return gb(n,o),t.oldProperties=i,t.changed=r,r},gc.prototype.revert=function(t){var e=t.oldProperties,n=t.moddleElement,o=t.changed;return gb(n,e),o},gc.prototype._getVisualReferences=function(t){var e=this._elementRegistry;return y(t,"bpmn:DataObject")?W7(t,e):[]};oc="default",Or="id",ak="di",G7={width:0,height:0};yc.$inject=["elementRegistry","moddle","modeling","textRenderer"],yc.prototype.execute=function(t){var e=t.element,n=[e];if(!e)throw Error("element required");var o=this._elementRegistry,r=this._moddle.ids,i=e.businessObject,a=X7(t.properties),s=t.oldProperties||V7(e,a);return yb(a,i)&&(r.unclaim(i[Or]),o.updateId(e,a[Or]),r.claim(a[Or],i)),oc in a&&(a[oc]&&n.push(o.get(a[oc].id)),i[oc]&&n.push(o.get(i[oc].id))),vb(e,a),t.oldProperties=s,t.changed=n,n},yc.prototype.postExecute=function(t){var e=t.element.label,n=e&&Y(e).name;if(n){var o=this._textRenderer.getExternalLabelBounds(e,n);this._modeling.resizeShape(e,o,G7)}},yc.prototype.revert=function(t){var e=t.element,n=t.properties,o=t.oldProperties,r=e.businessObject,i=this._elementRegistry,a=this._moddle.ids;return vb(e,o),yb(n,r)&&(a.unclaim(n[Or]),i.updateId(e,o[Or]),a.claim(o[Or],r)),t.changed};K7=["default"];Bp.$inject=["canvas","modeling"],Bp.prototype.execute=function(t){var e=this._canvas,n=t.newRoot,o=n.businessObject,r=e.getRootElement(),i=r.businessObject,a=i.$parent,s=Tt(r);return e.setRootElement(n),e.removeRootElement(r),Te(a.rootElements,o),o.$parent=a,we(a.rootElements,i),i.$parent=null,r.di=null,s.bpmnElement=o,n.di=s,t.oldRoot=r,[]},Bp.prototype.revert=function(t){var e=this._canvas,n=t.newRoot,o=n.businessObject,r=t.oldRoot,i=r.businessObject,a=o.$parent,s=Tt(n);return e.setRootElement(r),e.removeRootElement(n),we(a.rootElements,o),o.$parent=null,Te(a.rootElements,i),i.$parent=a,n.di=null,s.bpmnElement=i,r.di=s,[]};lh.$inject=["modeling","spaceTool"],lh.prototype.preExecute=function(t){var e=this._spaceTool,n=this._modeling,o=t.shape,r=t.location,i=Ro(o),a=i===o,s=a?o:o.parent,c=Ti(s),l=Re(o);if(l?r==="left"?r="top":r==="right"&&(r="bottom"):r==="top"?r="left":r==="bottom"&&(r="right"),!c.length){var p=l?{x:o.x+30,y:o.y,width:o.width-30,height:o.height}:{x:o.x,y:o.y+30,width:o.width,height:o.height-30};n.createShape({type:"bpmn:Lane",isHorizontal:l},p,s)}var d=[];si(i,function(w){return d.push(w),w.label&&d.push(w.label),w===o?[]:Dt(w.children,function(S){return S!==o})});var m,u,h,f,g;r==="top"?(m=-120,u=o.y,h=u+10,f="n",g="y"):r==="left"?(m=-120,u=o.x,h=u+10,f="w",g="x"):r==="bottom"?(m=120,u=o.y+o.height,h=u-10,f="s",g="y"):r==="right"&&(m=120,u=o.x+o.width,h=u-10,f="e",g="x");var x=e.calculateAdjustments(d,g,m,h),k=l?{x:0,y:m}:{x:m,y:0};e.makeSpace(x.movingShapes,x.resizingShapes,k,f,h);var _=l?{x:o.x+(a?30:0),y:u-(r==="top"?120:0),width:o.width-(a?30:0),height:120}:{x:u-(r==="left"?120:0),y:o.y+(a?30:0),width:120,height:o.height-(a?30:0)};t.newLane=n.createShape({type:"bpmn:Lane",isHorizontal:l},_,s)};ph.$inject=["modeling"],ph.prototype.preExecute=function(t){var e=this._modeling,n=t.shape,o=t.count,r=Ti(n),i=r.length;if(i>o)throw Error("more than <".concat(o,"> child lanes"));for(var a=Re(n),s=a?n.height:n.width,c=Math.round(s/o),l,p,d,m=0;m<o;m++)l=m===o-1?s-c*m:c,p=a?{x:n.x+30,y:n.y+m*c,width:n.width-30,height:l}:{x:n.x+m*c,y:n.y+30,width:l,height:n.height-30},m<i?e.resizeShape(r[m],p):(d={type:"bpmn:Lane",isHorizontal:a},e.createShape(d,p,n))};vc.$inject=["modeling","spaceTool"],vc.prototype.preExecute=function(t){var e=t.shape,n=t.newBounds;t.balanced===!1?this.resizeSpace(e,n):this.resizeBalanced(e,n)},vc.prototype.resizeBalanced=function(t,e){var n=this._modeling,o=pT(t,e);n.resizeShape(t,e),o.forEach(function(r){n.resizeShape(r.shape,r.newBounds)})},vc.prototype.resizeSpace=function(t,e){var n=this._spaceTool,o=ht(t),r=d2(ht(e),o),i=Ro(t),a=[],s=[];si(i,function(u){return a.push(u),(y(u,"bpmn:Lane")||y(u,"bpmn:Participant"))&&s.push(u),u.children});var c,l,p,d,m;(r.bottom||r.top)&&(c=r.bottom||r.top,l=t.y+(r.bottom?t.height:0)+(r.bottom?-10:10),p=r.bottom?"s":"n",d=r.top>0||r.bottom<0?-c:c,m=n.calculateAdjustments(a,"y",d,l),n.makeSpace(m.movingShapes,m.resizingShapes,{x:0,y:c},p)),(r.left||r.right)&&(c=r.right||r.left,l=t.x+(r.right?t.width:0)+(r.right?-10:100),p=r.right?"e":"w",d=r.left>0||r.right<0?-c:c,m=n.calculateAdjustments(s,"x",d,l),n.makeSpace(m.movingShapes,m.resizingShapes,{x:c,y:0},p))};rc="flowNodeRef",Im="lanes";Rp.prototype._computeUpdates=function(t,e){var n=[],o=[],r={},i=[];function a(p,d){var m=ht(d),u={x:p.x+p.width/2,y:p.y+p.height/2};return u.x>m.left&&u.x<m.right&&u.y>m.top&&u.y<m.bottom}function s(p){n.indexOf(p)===-1&&(i.push(p),n.push(p))}function c(p){var d=Ro(p);return r[d.id]||(r[d.id]=rd(d)),r[d.id]}function l(p){return p.parent?c(p).filter(function(d){return a(p,d)}).map(function(d){return d.businessObject}):[]}return e.forEach(function(p){var d=Ro(p);d&&n.indexOf(d)===-1&&(d.children.filter(function(m){return y(m,"bpmn:FlowNode")}).forEach(s),n.push(d))}),t.forEach(s),i.forEach(function(p){var d=p.businessObject,m=d.get(Im).slice(),u=l(p);o.push({flowNode:d,remove:m,add:u})}),e.forEach(function(p){var d=p.businessObject;p.parent||d.get(rc).forEach(function(m){o.push({flowNode:m,remove:[d],add:[]})})}),o},Rp.prototype.execute=function(t){var e=t.updates;return e||=t.updates=this._computeUpdates(t.flowNodeShapes,t.laneShapes),e.forEach(function(n){var o=n.flowNode,r=o.get(Im);n.remove.forEach(function(i){we(r,i),we(i.get(rc),o)}),n.add.forEach(function(i){Te(r,i),Te(i.get(rc),o)})}),[]},Rp.prototype.revert=function(t){return t.updates.forEach(function(e){var n=e.flowNode,o=n.get(Im);e.add.forEach(function(r){we(o,r),we(r.get(rc),n)}),e.remove.forEach(function(r){Te(o,r),Te(r.get(rc),n)})}),[]};zh="categoryValueRef";bc.$inject=["bpmnFactory","elementRegistry"],bc.prototype._computeUpdates=function(t,e){var n=this._elementRegistry,o=this._bpmnFactory,r=new Map,i=[],a=new Map;function s(x,k,_){if(k){var w=a.get(x);w||(w={},a.set(x,w)),!(_&&w.present)&&(_||!w.past)&&(_?w.present={categoryValue:k,root:Hm(x)}:w.past={categoryValue:k})}}function c(x){r.set(x,Y(x))}function l(){n.filter(function(x){return y(x,"bpmn:FlowElement")&&!Bt(x)&&x.parent}).forEach(c)}function p(x){var k=Y(x),_=k.get("categoryValueRef");return _||(_=p2(o,k),i.push(Y7(x,_))),_}function d(x){return x.reduce(function(k,_){var w=Hm(_),S=k.get(w);return S||(S=[],k.set(w,S)),S.push(_),k},new Map)}t=Array.from(t||[]);var m=d(t);e.length&&l(),t.forEach(c),n.filter(function(x){return y(x,"bpmn:Group")&&!Bt(x)&&x.parent}).forEach(function(x){var k=Y(x).get("categoryValueRef");if(!k){var _=Hm(x),w=m.get(_)||[],S=Ki(w,x);Object.keys(S).length>0&&(k=p(x))}s(x,k,!0)}),e.forEach(function(x){s(x.groupShape,x.categoryValue,!1)}),i.length&&l();var u=Array.from(r.keys()),h=Array.from(a.values()).reduce(function(x,k){return k.present&&x.add(k.present.categoryValue),k.past&&x.add(k.past.categoryValue),x},new Set),f=new Map,g=d(u);return a.forEach(function(x,k){var _=x.present;if(_){var w=g.get(_.root)||[],S=Ki(w,k);w.forEach(function(T){if(S[T.id]){var B=f.get(T);B||(B=new Set,f.set(T,B)),B.add(_.categoryValue)}})}}),{flowElements:u.reduce(function(x,k){var _=r.get(k),w=_.get(zh),S=new Set(w),T=f.get(k)||new Set,B=Array.from(T).filter(function(z){return!S.has(z)}),M=w.filter(function(z){return h.has(z)&&!T.has(z)});return(B.length||M.length)&&x.push({businessObject:_,categoryValuesToAdd:B,categoryValuesToRemove:M}),x},[]),groups:i}},bc.prototype.execute=function(t){var e=t.updates;return e||=t.updates=this._computeUpdates(t.affectedFlowElements,t.affectedGroupEntries),Z7(e.groups),Q7(e.flowElements),[]},bc.prototype.revert=function(t){var e=t.updates;return tC(e.flowElements),J7(e.groups),[]};Mp.$inject=["moddle"],Mp.prototype.execute=function(t){var e=this._moddle.ids,n=t.id,o=t.element;return t.claiming?e.claim(n,o):e.unclaim(n),[]},Mp.prototype.revert=function(t){var e=this._moddle.ids,n=t.id,o=t.element;return t.claiming?e.unclaim(n):e.claim(n,o),[]};eC={fill:void 0,stroke:void 0};dh.$inject=["commandStack"],dh.prototype.postExecute=function(t){var e=t.elements,n=t.colors||eC,o=this,r={};"fill"in n&&P(r,{"background-color":this._normalizeColor(n.fill)}),"stroke"in n&&P(r,{"border-color":this._normalizeColor(n.stroke)}),R(e,function(i){var a=oe(i)?Nn(r,["border-color"]):r,s=Tt(i);if(oC(a),Bt(i)){if(!s||!y(s.label,"bpmndi:BPMNLabel"))return;o._commandStack.execute("element.updateModdleProperties",{element:i,moddleElement:s.label,properties:{color:r["border-color"]}})}else{if(!At(s,["bpmndi:BPMNEdge","bpmndi:BPMNShape"]))return;o._commandStack.execute("element.updateProperties",{element:i,properties:{di:a}})}})};rC={width:0,height:0};sk.$inject=["modeling","textRenderer","bpmnFactory"];dt(wn,ye),wn.$inject=["eventBus","elementFactory","commandStack","bpmnRules"],wn.prototype.getHandlers=function(){var t=ye.prototype.getHandlers.call(this);return t["element.updateModdleProperties"]=gc,t["element.updateProperties"]=yc,t["canvas.updateRoot"]=Bp,t["lane.add"]=lh,t["lane.resize"]=vc,t["lane.split"]=ph,t["lane.updateRefs"]=Rp,t["group.updateRefs"]=bc,t["id.updateClaim"]=Mp,t["element.setColor"]=dh,t["element.updateLabel"]=sk,t},wn.prototype.updateLabel=function(t,e,n,o){this._commandStack.execute("element.updateLabel",{element:t,newLabel:e,newBounds:n,hints:o||{}})},wn.prototype.connect=function(t,e,n,o){var r=this._bpmnRules;if(n||=r.canConnect(t,e),n)return this.createConnection(t,e,n,t.parent,o)},wn.prototype.updateModdleProperties=function(t,e,n){this._commandStack.execute("element.updateModdleProperties",{element:t,moddleElement:e,properties:n})},wn.prototype.updateProperties=function(t,e){this._commandStack.execute("element.updateProperties",{element:t,properties:e})},wn.prototype.resizeLane=function(t,e,n){this._commandStack.execute("lane.resize",{shape:t,newBounds:e,balanced:n})},wn.prototype.addLane=function(t,e){var n={shape:t,location:e};return this._commandStack.execute("lane.add",n),n.newLane},wn.prototype.splitLane=function(t,e){this._commandStack.execute("lane.split",{shape:t,count:e})},wn.prototype.makeCollaboration=function(){var t=this._create("root",{type:"bpmn:Collaboration"}),e={newRoot:t};return this._commandStack.execute("canvas.updateRoot",e),t},wn.prototype.makeProcess=function(){var t=this._create("root",{type:"bpmn:Process"}),e={newRoot:t};return this._commandStack.execute("canvas.updateRoot",e),t},wn.prototype.updateLaneRefs=function(t,e){this._commandStack.execute("lane.updateRefs",{flowNodeShapes:t,laneShapes:e})},wn.prototype.updateCategoryValueRefs=function(t,e){this._commandStack.execute("group.updateRefs",{affectedFlowElements:t,affectedGroupEntries:e})},wn.prototype.claimId=function(t,e){this._commandStack.execute("id.updateClaim",{id:t,element:e,claiming:!0})},wn.prototype.unclaimId=function(t,e){this._commandStack.execute("id.updateClaim",{id:t,element:e})},wn.prototype.setColor=function(t,e){t.length||(t=[t]),this._commandStack.execute("element.setColor",{elements:t,colors:e})};ck.prototype.layoutConnection=function(t,e){return e||={},[e.connectionStart||vt(e.source||t.source),e.connectionEnd||vt(e.target||t.target)]};Ql=20,iC=5,Xp=Math.round,xb=20,aC={"h:h":20,"v:v":20,"h:v":-10,"v:h":-10};_C=-10,EC=40,SC={default:["h:h"],fromGateway:["v:h"],toGateway:["h:v"],loop:{fromTop:["t:r"],fromRight:["r:b"],fromLeft:["l:t"],fromBottom:["b:l"]},boundaryLoop:{alternateHorizontalSide:"b",alternateVerticalSide:"l",default:"v"},messageFlow:["straight","v:v"],subProcess:["straight","h:h"],isHorizontal:!0},TC={default:["v:v"],fromGateway:["h:v"],toGateway:["v:h"],loop:{fromTop:["t:l"],fromRight:["r:t"],fromLeft:["l:b"],fromBottom:["b:r"]},boundaryLoop:{alternateHorizontalSide:"t",alternateVerticalSide:"r",default:"h"},messageFlow:["straight","h:h"],subProcess:["straight","v:v"],isHorizontal:!1},Nh={top:"bottom","top-right":"bottom-left","top-left":"bottom-right",right:"left",bottom:"top","bottom-right":"top-left","bottom-left":"top-right",left:"right"},xc={top:"t",right:"r",bottom:"b",left:"l"};dt(Yp,ck),Yp.prototype.layoutConnection=function(t,e){e||={};var n=e.source||t.source,o=e.target||t.target,r=e.waypoints||t.waypoints,i=e.connectionStart,a=e.connectionEnd,s=this._elementRegistry,c,l;if(i||=Eb(r&&r[0],n),a||=Eb(r&&r[r.length-1],o),(y(t,"bpmn:Association")||y(t,"bpmn:DataAssociation"))&&r&&!Sb(n,o))return[i].concat(r.slice(1,-1),[a]);var p=vm(n,s)?SC:TC;return y(t,"bpmn:MessageFlow")?c=BC(n,o,p):(y(t,"bpmn:SequenceFlow")||Sb(n,o))&&(c=n===o?{preferredLayouts:jC(n,t,p)}:y(n,"bpmn:BoundaryEvent")?{preferredLayouts:$C(n,o,a,p)}:zc(n)||zc(o)?{preferredLayouts:p.subProcess,preserveDocking:MC(n)}:y(n,"bpmn:Gateway")?{preferredLayouts:p.fromGateway}:y(o,"bpmn:Gateway")?{preferredLayouts:p.toGateway}:{preferredLayouts:p.default}),c&&(c=P(c,e),l=dk(fC(n,o,i,a,r,c))),l||[i,a]};Yp.$inject=["elementRegistry"];yi.$inject=["elementRegistry","graphicsFactory"],yi.prototype.getCroppedWaypoints=function(t,e,n){e||=t.source,n||=t.target;var o=this.getDockingPoint(t,e,!0),r=this.getDockingPoint(t,n),i=t.waypoints.slice(o.idx+1,r.idx);return i.unshift(Bb(o)),i.push(Bb(r)),i},yi.prototype.getDockingPoint=function(t,e,n){var o=t.waypoints,r=n?0:o.length-1,i=o[r];return{point:i,actual:this._getIntersection(e,t,n)||i,idx:r}},yi.prototype._getIntersection=function(t,e,n){var o=this._getShapePath(t),r=this._getConnectionPath(e);return Ra(o,r,n)},yi.prototype._getConnectionPath=function(t){return this._graphicsFactory.getConnectionPath(t)},yi.prototype._getShapePath=function(t){return this._graphicsFactory.getShapePath(t)},yi.prototype._getGfx=function(t){return this._elementRegistry.getGraphics(t)};uk={__init__:["modeling","bpmnUpdater"],__depends__:[f8,A8,D8,j8,Q2,l7,d7,y7,Yn,jl,ek],bpmnFactory:["type",Eo],bpmnUpdater:["type",xn],elementFactory:["type",fi],modeling:["type",wn],layouter:["type",Yp],connectionDocking:["type",yi]},Rb=Math.round;Ap.prototype.create=function(t,e,n){let o=this._complexPreview,r=this._connectionDocking,i=this._elementFactory,a=this._eventBus,s=this._layouter,c=this._rules,l=i.createShape(P({type:e},n)),p=a.fire("autoPlace",{source:t,shape:l});if(!p)return;P(l,{x:p.x-Rb(l.width/2),y:p.y-Rb(l.height/2)});let d=c.allowed("connection.create",{source:t,target:l,hints:{targetParent:t.parent}}),m=null;d&&(m=i.createConnection(d),m.waypoints=s.layoutConnection(m,{source:t,target:l}),m.waypoints=r.getCroppedWaypoints(m,t,l)),o.create({created:[l,m].filter(u=>!Kr(u))})},Ap.prototype.cleanUp=function(){this._complexPreview.cleanUp()},Ap.$inject=["complexPreview","connectionDocking","elementFactory","eventBus","layouter","rules"];NC={__depends__:[Sh,L4,uk],__init__:["appendPreview"],appendPreview:["type",Ap]},Mb=Math.min,Ab=Math.max;Uo.prototype.create=function(t,e,n,o){var r=this,i=this.parent,a=this.content,s=this.container;o=this.options=o||{},e=this.style=e||{};var c=Nn(e,["width","height","maxWidth","maxHeight","minWidth","minHeight","left","top","backgroundColor","position","overflow","border","wordWrap","textAlign","outline","transform"]);P(i.style,{width:t.width+"px",height:t.height+"px",maxWidth:t.maxWidth+"px",maxHeight:t.maxHeight+"px",minWidth:t.minWidth+"px",minHeight:t.minHeight+"px",left:t.x+"px",top:t.y+"px",backgroundColor:"#ffffff",position:"absolute",overflow:"visible",border:"1px solid #ccc",boxSizing:"border-box",wordWrap:"normal",textAlign:"center",outline:"none"},c);var l=Nn(e,["fontFamily","fontSize","fontWeight","lineHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);return P(a.style,{boxSizing:"border-box",width:"100%",outline:"none",wordWrap:"break-word"},l),o.centerVertically&&P(a.style,{position:"absolute",top:"50%",transform:"translate(0, -50%)"},l),a.innerText=n,Ct.bind(a,"keydown",this.keyHandler),Ct.bind(a,"mousedown",ic),Ct.bind(a,"paste",r.handlePaste),Ct.bind(a,"focusout",this.focusoutHandler),o.autoResize&&Ct.bind(a,"input",this.autoResize),o.resizable&&this.resizable(e),s.appendChild(i),this.setSelection(a.lastChild,a.lastChild&&a.lastChild.length),i},Uo.prototype.handlePaste=function(t){var e=this.options,n=this.style;t.preventDefault();var o=t.clipboardData?t.clipboardData.getData("text/plain"):window.clipboardData.getData("Text");if(this.insertText(o),e.autoResize){var r=this.autoResize(n);r&&this.resizeHandler(r)}},Uo.prototype.insertText=function(t){t=FC(t),!document.execCommand("insertText",!1,t)&&this._insertTextIE(t)},Uo.prototype._insertTextIE=function(t){var e=this.getSelection(),n=e.startContainer,o=e.endContainer,r=e.startOffset,i=e.endOffset,a=e.commonAncestorContainer,s=HC(a.childNodes),c,l;if(IC(a)){var p=n.textContent;n.textContent=p.substring(0,r)+t+p.substring(i),c=n,l=r+t.length}else if(n===this.content&&o===this.content){var d=document.createTextNode(t);this.content.insertBefore(d,s[r]),c=d,l=d.textContent.length}else{var m=s.indexOf(n),u=s.indexOf(o);s.forEach(function(h,f){f===m?h.textContent=n.textContent.substring(0,r)+t+o.textContent.substring(i):f>m&&f<=u&&Vo(h)}),c=n,l=r+t.length}c&&l!==void 0&&setTimeout(function(){self.setSelection(c,l)})},Uo.prototype.autoResize=function(){var t=this.parent,e=this.content,n=parseInt(this.style.fontSize)||12;if(e.scrollHeight>t.offsetHeight||e.scrollHeight<t.offsetHeight-n){var o=t.getBoundingClientRect(),r=e.scrollHeight;t.style.height=r+"px",this.resizeHandler({width:o.width,height:o.height,dx:0,dy:r-o.height})}},Uo.prototype.resizable=function(){var t=this,e=this.parent,n=this.resizeHandle,o=parseInt(this.style.minWidth)||0,r=parseInt(this.style.minHeight)||0,i=parseInt(this.style.maxWidth)||1/0,a=parseInt(this.style.maxHeight)||1/0;if(!n){n=this.resizeHandle=ge('<div class="djs-direct-editing-resize-handle"></div>');var s,c,l,p,d=function(h){Wm(h),ic(h),s=h.clientX,c=h.clientY;var f=e.getBoundingClientRect();l=f.width,p=f.height,Ct.bind(document,"mousemove",m),Ct.bind(document,"mouseup",u)},m=function(h){Wm(h),ic(h);var f=Mb(Ab(l+h.clientX-s,o),i),g=Mb(Ab(p+h.clientY-c,r),a);e.style.width=f+"px",e.style.height=g+"px",t.resizeHandler({width:l,height:p,dx:h.clientX-s,dy:h.clientY-c})},u=function(h){Wm(h),ic(h),Ct.unbind(document,"mousemove",m,!1),Ct.unbind(document,"mouseup",u,!1)};Ct.bind(n,"mousedown",d)}P(n.style,{position:"absolute",bottom:"0px",right:"0px",cursor:"nwse-resize",width:"0",height:"0",borderTop:(parseInt(this.style.fontSize)/4||3)+"px solid transparent",borderRight:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderBottom:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderLeft:(parseInt(this.style.fontSize)/4||3)+"px solid transparent"}),e.appendChild(n)},Uo.prototype.destroy=function(){var t=this.parent,e=this.content,n=this.resizeHandle;e.innerText="",t.removeAttribute("style"),e.removeAttribute("style"),Ct.unbind(e,"keydown",this.keyHandler),Ct.unbind(e,"mousedown",ic),Ct.unbind(e,"input",this.autoResize),Ct.unbind(e,"paste",this.handlePaste),Ct.unbind(e,"focusout",this.focusoutHandler),n&&(n.removeAttribute("style"),Vo(n)),Vo(t)},Uo.prototype.getValue=function(){return this.content.innerText.trim()},Uo.prototype.getSelection=function(){return window.getSelection().getRangeAt(0)},Uo.prototype.setSelection=function(t,e){var n=document.createRange();t===null?n.selectNodeContents(this.content):(n.setStart(t,e),n.setEnd(t,e));var o=window.getSelection();o.removeAllRanges(),o.addRange(n)};Jn.$inject=["eventBus","canvas"],Jn.prototype.registerProvider=function(t){this._providers.push(t)},Jn.prototype.isActive=function(t){return!(!this._active||t&&this._active.element!==t)},Jn.prototype.cancel=function(){this._active&&(this._fire("cancel"),this.close())},Jn.prototype._fire=function(t,e){this._eventBus.fire("directEditing."+t,e||{active:this._active})},Jn.prototype.close=function(){this._fire("deactivate"),this._cleanup(),this._canvas.restoreFocus&&this._canvas.restoreFocus()},Jn.prototype._cleanup=function(){this._active&&(this._textbox.destroy(),this._active=null,this.resizable=void 0)},Jn.prototype.complete=function(){var t=this._active;if(t){var e,n=t.context.bounds,o=this.$textbox.getBoundingClientRect(),r=this.getValue();(r!==t.context.text||o.height!==n.height||o.width!==n.width)&&(e=this._textbox.container.getBoundingClientRect(),t.provider.update(t.element,r,t.context.text,{x:o.left-e.left,y:o.top-e.top,width:o.width,height:o.height})),this._fire("complete"),this.close()}},Jn.prototype.getValue=function(){return this._textbox.getValue()},Jn.prototype._handleKey=function(t){t.stopPropagation();var e=t.keyCode||t.charCode;if(e===27)return t.preventDefault(),this.cancel();if(e===13&&!t.shiftKey)return t.preventDefault(),this.complete()},Jn.prototype._handleResize=function(t){this._fire("resize",t)},Jn.prototype._handleFocusout=function(t){t.relatedTarget&&this._textbox.parent.contains(t.relatedTarget)||this.complete()},Jn.prototype.activate=function(t){if(this.isActive()&&this.cancel(),this._eventBus.fire("directEditing.activate.allowed",{element:t})===!1)return!1;var e,n=ce(this._providers,function(o){return(e=o.activate(t))?o:null});return e&&(this.$textbox=this._textbox.create(e.bounds,e.style,e.text,e.options),this._active={element:t,context:e,provider:n},e.options&&e.options.resizable&&(this.resizable=!0),this._fire("activate")),!!e};hk={__depends__:[Zs],__init__:["directEditing"],directEditing:["type",Jn]};GC={task:{label:"Task",className:"bpmn-icon-task",target:{type:"bpmn:Task"}},"user-task":{label:"User task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},"service-task":{label:"Service task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},"send-task":{label:"Send task",className:"bpmn-icon-send",target:{type:"bpmn:SendTask"}},"receive-task":{label:"Receive task",className:"bpmn-icon-receive",target:{type:"bpmn:ReceiveTask"}},"manual-task":{label:"Manual task",className:"bpmn-icon-manual",target:{type:"bpmn:ManualTask"}},"rule-task":{label:"Business rule task",className:"bpmn-icon-business-rule",target:{type:"bpmn:BusinessRuleTask"}},"script-task":{label:"Script task",className:"bpmn-icon-script",target:{type:"bpmn:ScriptTask"}},"call-activity":{label:"Call activity",className:"bpmn-icon-call-activity",target:{type:"bpmn:CallActivity"}},transaction:{label:"Transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},"event-subprocess":{label:"Event sub-process",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}},"collapsed-subprocess":{label:"Sub-process (collapsed)",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}},"expanded-subprocess":{label:"Sub-process (expanded)",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},"collapsed-ad-hoc-subprocess":{label:"Ad-hoc sub-process (collapsed)",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:AdHocSubProcess",isExpanded:!1}},"expanded-ad-hoc-subprocess":{label:"Ad-hoc sub-process (expanded)",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:AdHocSubProcess",isExpanded:!0}},"exclusive-gateway":{label:"Exclusive gateway",className:"bpmn-icon-gateway-xor",target:{type:"bpmn:ExclusiveGateway"}},"parallel-gateway":{label:"Parallel gateway",className:"bpmn-icon-gateway-parallel",target:{type:"bpmn:ParallelGateway"}},"inclusive-gateway":{label:"Inclusive gateway",className:"bpmn-icon-gateway-or",target:{type:"bpmn:InclusiveGateway"}},"complex-gateway":{label:"Complex gateway",className:"bpmn-icon-gateway-complex",target:{type:"bpmn:ComplexGateway"}},"event-based-gateway":{label:"Event-based gateway",className:"bpmn-icon-gateway-eventbased",target:{type:"bpmn:EventBasedGateway",instantiate:!1,eventGatewayType:"Exclusive"}},"data-store-reference":{label:"Data store reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}},"data-object-reference":{label:"Data object reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}},"expanded-pool":{label:"Expanded pool/participant",className:"bpmn-icon-participant",target:{type:"bpmn:Participant",isExpanded:!0}},"collapsed-pool":{label:"Empty pool/participant",className:"bpmn-icon-lane",target:{type:"bpmn:Participant",isExpanded:!1}},"none-start-event":{label:"Start event",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},"none-intermediate-throwing":{label:"Intermediate throw event",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},"none-boundary-event":{label:"Boundary event",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:BoundaryEvent"}},"none-end-event":{label:"End event",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},"message-start":{label:"Message start event",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!0}},"timer-start":{label:"Timer start event",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!0}},"conditional-start":{label:"Conditional start event",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!0}},"signal-start":{label:"Signal start event",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!0}},"error-start":{label:"Error start event",className:"bpmn-icon-start-event-error",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ErrorEventDefinition",isInterrupting:!0}},"escalation-start":{label:"Escalation start event",className:"bpmn-icon-start-event-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!0}},"compensation-start":{label:"Compensation start event",className:"bpmn-icon-start-event-compensation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:CompensateEventDefinition",isInterrupting:!0}},"non-interrupting-message-start":{label:"Message start event (non-interrupting)",className:"bpmn-icon-start-event-non-interrupting-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!1}},"non-interrupting-timer-start":{label:"Timer start event (non-interrupting)",className:"bpmn-icon-start-event-non-interrupting-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!1}},"non-interrupting-conditional-start":{label:"Conditional start event (non-interrupting)",className:"bpmn-icon-start-event-non-interrupting-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!1}},"non-interrupting-signal-start":{label:"Signal start event (non-interrupting)",className:"bpmn-icon-start-event-non-interrupting-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!1}},"non-interrupting-escalation-start":{label:"Escalation start event (non-interrupting)",className:"bpmn-icon-start-event-non-interrupting-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!1}},"message-intermediate-catch":{label:"Message intermediate catch event",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},"message-intermediate-throw":{label:"Message intermediate throw event",className:"bpmn-icon-intermediate-event-throw-message",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},"timer-intermediate-catch":{label:"Timer intermediate catch event",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},"escalation-intermediate-throw":{label:"Escalation intermediate throw event",className:"bpmn-icon-intermediate-event-throw-escalation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},"conditional-intermediate-catch":{label:"Conditional intermediate catch event",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},"link-intermediate-catch":{label:"Link intermediate catch event",className:"bpmn-icon-intermediate-event-catch-link",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},"link-intermediate-throw":{label:"Link intermediate throw event",className:"bpmn-icon-intermediate-event-throw-link",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},"compensation-intermediate-throw":{label:"Compensation intermediate throw event",className:"bpmn-icon-intermediate-event-throw-compensation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},"signal-intermediate-catch":{label:"Signal intermediate catch event",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},"signal-intermediate-throw":{label:"Signal intermediate throw event",className:"bpmn-icon-intermediate-event-throw-signal",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},"message-boundary":{label:"Message boundary event",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!0}},"timer-boundary":{label:"Timer boundary event",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!0}},"escalation-boundary":{label:"Escalation boundary event",className:"bpmn-icon-intermediate-event-catch-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!0}},"conditional-boundary":{label:"Conditional boundary event",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!0}},"error-boundary":{label:"Error boundary event",className:"bpmn-icon-intermediate-event-catch-error",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ErrorEventDefinition",cancelActivity:!0}},"cancel-boundary":{label:"Cancel boundary event",className:"bpmn-icon-intermediate-event-catch-cancel",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CancelEventDefinition",cancelActivity:!0}},"signal-boundary":{label:"Signal boundary event",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!0}},"compensation-boundary":{label:"Compensation boundary event",className:"bpmn-icon-intermediate-event-catch-compensation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CompensateEventDefinition",cancelActivity:!0}},"non-interrupting-message-boundary":{label:"Message boundary event (non-interrupting)",className:"bpmn-icon-intermediate-event-catch-non-interrupting-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!1}},"non-interrupting-timer-boundary":{label:"Timer boundary event (non-interrupting)",className:"bpmn-icon-intermediate-event-catch-non-interrupting-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!1}},"non-interrupting-escalation-boundary":{label:"Escalation boundary event (non-interrupting)",className:"bpmn-icon-intermediate-event-catch-non-interrupting-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!1}},"non-interrupting-conditional-boundary":{label:"Conditional boundary event (non-interrupting)",className:"bpmn-icon-intermediate-event-catch-non-interrupting-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!1}},"non-interrupting-signal-boundary":{label:"Signal boundary event (non-interrupting)",className:"bpmn-icon-intermediate-event-catch-non-interrupting-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!1}},"message-end":{label:"Message end event",className:"bpmn-icon-end-event-message",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},"escalation-end":{label:"Escalation end event",className:"bpmn-icon-end-event-escalation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},"error-end":{label:"Error end event",className:"bpmn-icon-end-event-error",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},"cancel-end":{label:"Cancel end event",className:"bpmn-icon-end-event-cancel",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},"compensation-end":{label:"Compensation end event",className:"bpmn-icon-end-event-compensation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},"signal-end":{label:"Signal end event",className:"bpmn-icon-end-event-signal",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},"terminate-end":{label:"Terminate end event",className:"bpmn-icon-end-event-terminate",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:TerminateEventDefinition"}}};VC=[X("none-start-event",{actionName:"replace-with-none-start"}),X("none-intermediate-throwing"),X("none-end-event",{actionName:"replace-with-none-end"}),X("message-start"),X("timer-start"),X("conditional-start"),X("signal-start")],UC=[X("none-start-event",{actionName:"replace-with-none-start"}),X("none-intermediate-throwing"),X("none-end-event",{actionName:"replace-with-none-end"})],qC=[X("none-start-event",{actionName:"replace-with-none-start"}),X("none-intermediate-throwing",{actionName:"replace-with-none-intermediate-throw"}),X("none-end-event",{actionName:"replace-with-none-end"}),X("message-intermediate-catch"),X("message-intermediate-throw"),X("timer-intermediate-catch"),X("escalation-intermediate-throw"),X("conditional-intermediate-catch"),X("link-intermediate-catch"),X("link-intermediate-throw"),X("compensation-intermediate-throw"),X("signal-intermediate-catch"),X("signal-intermediate-throw")],KC=[X("none-start-event",{actionName:"replace-with-none-start"}),X("none-intermediate-throwing",{actionName:"replace-with-none-intermediate-throw"}),X("none-end-event",{actionName:"replace-with-none-end"}),X("message-end"),X("escalation-end"),X("error-end"),X("cancel-end"),X("compensation-end"),X("signal-end"),X("terminate-end")],XC=[X("exclusive-gateway"),X("parallel-gateway"),X("inclusive-gateway"),X("complex-gateway"),X("event-based-gateway")],YC=[X("transaction"),X("event-subprocess"),X("expanded-ad-hoc-subprocess",{actionName:"replace-with-ad-hoc-subprocess",label:"Ad-hoc sub-process"}),X("collapsed-subprocess")],ZC=[X("expanded-subprocess",{actionName:"replace-with-subprocess",label:"Sub-process"}),X("transaction"),X("event-subprocess"),X("collapsed-ad-hoc-subprocess")],fk=[X("transaction"),X("expanded-subprocess",{actionName:"replace-with-subprocess",label:"Sub-process"}),X("expanded-ad-hoc-subprocess",{actionName:"replace-with-ad-hoc-subprocess",label:"Ad-hoc sub-process"}),X("event-subprocess")],JC=fk,Pb=[X("task"),X("user-task"),X("service-task"),X("send-task"),X("receive-task"),X("manual-task"),X("rule-task"),X("script-task"),X("call-activity"),X("collapsed-subprocess"),X("expanded-subprocess"),X("collapsed-ad-hoc-subprocess"),X("expanded-ad-hoc-subprocess",{actionName:"replace-with-ad-hoc-subprocess"})],QC=[X("data-store-reference")],tB=[X("data-object-reference")],eB=[X("message-boundary"),X("timer-boundary"),X("escalation-boundary"),X("conditional-boundary"),X("error-boundary"),X("cancel-boundary"),X("signal-boundary"),X("compensation-boundary"),X("non-interrupting-message-boundary"),X("non-interrupting-timer-boundary"),X("non-interrupting-escalation-boundary"),X("non-interrupting-conditional-boundary"),X("non-interrupting-signal-boundary")],nB=[X("message-start"),X("timer-start"),X("conditional-start"),X("signal-start"),X("error-start"),X("escalation-start"),X("compensation-start"),X("non-interrupting-message-start"),X("non-interrupting-timer-start"),X("non-interrupting-conditional-start"),X("non-interrupting-signal-start"),X("non-interrupting-escalation-start")],oB=[{label:"Sequence flow",actionName:"replace-with-sequence-flow",className:"bpmn-icon-connection"},{label:"Default flow",actionName:"replace-with-default-flow",className:"bpmn-icon-default-flow"},{label:"Conditional flow",actionName:"replace-with-conditional-flow",className:"bpmn-icon-conditional-flow"}],rB=[X("expanded-pool"),X("collapsed-pool",{label:function(t){var e="Empty pool/participant";return t.children&&t.children.length&&(e+=" (removes content)"),e}})],iB={"bpmn:MessageEventDefinition":[X("message-start"),X("message-intermediate-catch"),X("message-intermediate-throw"),X("message-end")],"bpmn:TimerEventDefinition":[X("timer-start"),X("timer-intermediate-catch")],"bpmn:ConditionalEventDefinition":[X("conditional-start"),X("conditional-intermediate-catch")],"bpmn:SignalEventDefinition":[X("signal-start"),X("signal-intermediate-catch"),X("signal-intermediate-throw"),X("signal-end")],"bpmn:ErrorEventDefinition":[X("error-start"),X("error-end")],"bpmn:EscalationEventDefinition":[X("escalation-start"),X("escalation-intermediate-throw"),X("escalation-end")],"bpmn:CompensateEventDefinition":[X("compensation-start"),X("compensation-intermediate-throw"),X("compensation-end")]},Db={"start-event-non-interrupting":'\n <svg viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg">\n <g transform="translate(0 995.64)">\n <path d="m1899 28.357c21.545 567.43-598.38 1023.5-1133.6 835.92-548.09-147.21-801.57-873.95-463.59-1330 302.62-480.3 1071.7-507.54 1407.6-49.847 122.14 153.12 190.07 348.07 189.59 543.91z" fill="none" stroke="currentColor" stroke-dasharray="418.310422, 361.2328165" stroke-linecap="round" stroke-width="100"/>\n </g>\n </svg>',"intermediate-event-non-interrupting":'\n <svg viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg">\n <g transform="translate(0 995.64)" fill="none" stroke="currentColor" stroke-linecap="round">\n <circle cx="1024" cy="28.357" r="875" stroke-dasharray="418.310422, 361.2328165" stroke-width="100"/>\n <circle cx="1024" cy="28.357" r="685" stroke-dasharray="348.31044857,261.23283643" stroke-dashoffset="500" stroke-width="100"/>\n </g>\n </svg>'};So.$inject=["bpmnFactory","popupMenu","modeling","moddle","bpmnReplace","rules","translate","moddleCopy"],So.prototype._register=function(){this._popupMenu.registerProvider("bpmn-replace",this)},So.prototype.getPopupMenuEntries=function(t){var e=t.businessObject,n=this._rules,o=[],r,i=[];if(bt(t)||!n.allowed("shape.replace",{element:t}))return{};var a=WC(t);return y(e,"bpmn:DataObjectReference")?this._createEntries(t,QC):y(e,"bpmn:DataStoreReference")&&!y(t.parent,"bpmn:Collaboration")?this._createEntries(t,tB):(y(e,"bpmn:Event")&&!y(e,"bpmn:BoundaryEvent")&&(r=e.get("eventDefinitions")[0]?.$type,o=iB[r]||[],!mn(e.$parent)&&y(e.$parent,"bpmn:SubProcess")&&(o=Dt(o,function(s){return s.target.type!=="bpmn:StartEvent"}))),y(e,"bpmn:StartEvent")&&!y(e.$parent,"bpmn:SubProcess")?(i=Dt(VC.concat(o),a),this._createEntries(t,i)):y(e,"bpmn:Participant")?(i=Dt(rB,function(s){return Ot(t)!==s.target.isExpanded}),this._createEntries(t,i)):y(e,"bpmn:StartEvent")&&mn(e.$parent)?(i=Dt(nB.concat(o),function(s){var c=s.target.isInterrupting!==!1,l=e.isInterrupting===c;return a(s)||!a(s)&&!l}),this._createEntries(t,i)):y(e,"bpmn:StartEvent")&&!mn(e.$parent)&&y(e.$parent,"bpmn:SubProcess")?(i=Dt(UC.concat(o),a),this._createEntries(t,i)):y(e,"bpmn:EndEvent")?(i=Dt(KC.concat(o),function(s){return s.target.eventDefinitionType=="bpmn:CancelEventDefinition"&&!y(e.$parent,"bpmn:Transaction")?!1:a(s)}),this._createEntries(t,i)):y(e,"bpmn:BoundaryEvent")?(i=Dt(eB,function(s){var c=s.target;if(c.eventDefinitionType=="bpmn:CancelEventDefinition"&&!y(e.attachedToRef,"bpmn:Transaction"))return!1;var l=c.cancelActivity!==!1,p=e.cancelActivity==l;return a(s)||!a(s)&&!p}),this._createEntries(t,i)):y(e,"bpmn:IntermediateCatchEvent")||y(e,"bpmn:IntermediateThrowEvent")?(i=Dt(qC.concat(o),a),this._createEntries(t,i)):y(e,"bpmn:Gateway")?(i=Dt(XC,a),this._createEntries(t,i)):y(e,"bpmn:Transaction")?(i=Dt(fk,a),this._createEntries(t,i)):mn(e)&&Ot(t)?(i=Dt(JC,a),this._createEntries(t,i)):y(e,"bpmn:AdHocSubProcess")&&Ot(t)?(i=Dt(ZC,a),this._createEntries(t,i)):y(e,"bpmn:SubProcess")&&Ot(t)?(i=Dt(YC,a),this._createEntries(t,i)):y(e,"bpmn:SubProcess")&&!Ot(t)?(i=Dt(Pb,function(s){return s.target.type===t.type==(s.target.isExpanded===!0)}),this._createEntries(t,i)):y(e,"bpmn:SequenceFlow")?this._createSequenceFlowEntries(t,oB):y(e,"bpmn:FlowNode")?(i=Dt(Pb,a),this._createEntries(t,i)):{})},So.prototype.getPopupMenuHeaderEntries=function(t){var e={};return y(t,"bpmn:Activity")&&!mn(t)&&(e={...e,...this._getLoopCharacteristicsHeaderEntries(t)}),y(t,"bpmn:DataObjectReference")&&(e={...e,...this._getCollectionHeaderEntries(t)}),y(t,"bpmn:Participant")&&(e={...e,...this._getParticipantMultiplicityHeaderEntries(t)}),_2(t)&&(e={...e,...this._getNonInterruptingHeaderEntries(t)}),e},So.prototype._createEntries=function(t,e){var n={},o=this;return R(e,function(r){n[r.actionName]=o._createEntry(r,t)}),n},So.prototype._createSequenceFlowEntries=function(t,e){var n=Y(t),o={},r=this._modeling,i=this._moddle,a=this;return R(e,function(s){switch(s.actionName){case"replace-with-default-flow":n.sourceRef.default!==n&&(y(n.sourceRef,"bpmn:ExclusiveGateway")||y(n.sourceRef,"bpmn:InclusiveGateway")||y(n.sourceRef,"bpmn:ComplexGateway")||y(n.sourceRef,"bpmn:Activity"))&&(o={...o,[s.actionName]:a._createEntry(s,t,function(){r.updateProperties(t.source,{default:n})})});break;case"replace-with-conditional-flow":!n.conditionExpression&&y(n.sourceRef,"bpmn:Activity")&&(o={...o,[s.actionName]:a._createEntry(s,t,function(){var c=i.create("bpmn:FormalExpression",{body:""});r.updateProperties(t,{conditionExpression:c})})});break;default:y(n.sourceRef,"bpmn:Activity")&&n.conditionExpression&&(o={...o,[s.actionName]:a._createEntry(s,t,function(){r.updateProperties(t,{conditionExpression:void 0})})}),(y(n.sourceRef,"bpmn:ExclusiveGateway")||y(n.sourceRef,"bpmn:InclusiveGateway")||y(n.sourceRef,"bpmn:ComplexGateway")||y(n.sourceRef,"bpmn:Activity"))&&n.sourceRef.default===n&&(o={...o,[s.actionName]:a._createEntry(s,t,function(){r.updateProperties(t.source,{default:void 0})})})}}),o},So.prototype._createEntry=function(t,e,n){var o=this._translate,r=this._bpmnReplace.replaceElement,i=function(){return r(e,t.target)},a=t.label;return a&&typeof a=="function"&&(a=a(e)),n||=i,{label:o(a),className:t.className,action:n}},So.prototype._getLoopCharacteristicsHeaderEntries=function(t){var e=this,n=this._translate;function o(c,l){if(l.active)e._modeling.updateProperties(t,{loopCharacteristics:void 0});else{var p=t.businessObject.get("loopCharacteristics");p&&y(p,l.options.loopCharacteristics)?e._modeling.updateModdleProperties(t,p,{isSequential:l.options.isSequential}):(p=e._moddle.create(l.options.loopCharacteristics,{isSequential:l.options.isSequential}),e._modeling.updateProperties(t,{loopCharacteristics:p}))}}var r=Y(t).loopCharacteristics,i,a,s;return r&&(i=r.isSequential,a=r.isSequential===void 0,s=r.isSequential!==void 0&&!r.isSequential),{"toggle-parallel-mi":{className:"bpmn-icon-parallel-mi-marker",title:n("Parallel multi-instance"),active:s,action:o,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!1}},"toggle-sequential-mi":{className:"bpmn-icon-sequential-mi-marker",title:n("Sequential multi-instance"),active:i,action:o,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!0}},"toggle-loop":{className:"bpmn-icon-loop-marker",title:n("Loop"),active:a,action:o,options:{loopCharacteristics:"bpmn:StandardLoopCharacteristics"}}}},So.prototype._getCollectionHeaderEntries=function(t){var e=this,n=this._translate,o=t.businessObject.dataObjectRef;if(!o)return{};function r(a,s){e._modeling.updateModdleProperties(t,o,{isCollection:!s.active})}var i=o.isCollection;return{"toggle-is-collection":{className:"bpmn-icon-parallel-mi-marker",title:n("Collection"),active:i,action:r}}},So.prototype._getParticipantMultiplicityHeaderEntries=function(t){var e=this,n=this._bpmnFactory,o=this._translate;function r(a,s){var c=s.active,l;c||(l=n.create("bpmn:ParticipantMultiplicity")),e._modeling.updateProperties(t,{participantMultiplicity:l})}var i=t.businessObject.participantMultiplicity;return{"toggle-participant-multiplicity":{className:"bpmn-icon-parallel-mi-marker",title:o("Participant multiplicity"),active:!!i,action:r}}},So.prototype._getNonInterruptingHeaderEntries=function(t){let e=this._translate,n=Y(t),o=this,r=E2(t),i=y(t,"bpmn:BoundaryEvent")?Db["intermediate-event-non-interrupting"]:Db["start-event-non-interrupting"],a=!n[r];return{"toggle-non-interrupting":{imageHtml:i,title:e("Toggle non-interrupting"),active:a,action:function(){o._modeling.updateProperties(t,{[r]:!!a})}}}};aB={__depends__:[wh,Q2,Sh],__init__:["replaceMenuProvider"],replaceMenuProvider:["type",So]};kc.$inject=["config.contextPad","injector","eventBus","contextPad","modeling","elementFactory","connect","create","popupMenu","canvas","rules","translate","appendPreview"],kc.prototype.getMultiElementContextPadEntries=function(t){var e=this._modeling,n={};return this._isDeleteAllowed(t)&&P(n,{delete:{group:"edit",className:"bpmn-icon-trash",title:this._translate("Delete"),action:{click:function(o,r){e.removeElements(r.slice())}}}}),n},kc.prototype._isDeleteAllowed=function(t){var e=this._rules.allowed("elements.delete",{elements:t});return bt(e)?tr(t,n=>e.includes(n)):e},kc.prototype.getContextPadEntries=function(t){var e=this._contextPad,n=this._modeling,o=this._elementFactory,r=this._connect,i=this._create,a=this._popupMenu,s=this._autoPlace,c=this._translate,l=this._appendPreview,p={};if(t.type==="label")return this._isDeleteAllowed([t])&&P(p,h()),p;var d=t.businessObject;function m(_,w){r.start(_,w)}function u(_,w){n.removeElements([w])}function h(){return{delete:{group:"edit",className:"bpmn-icon-trash",title:c("Delete"),action:{click:u}}}}function f(_){var w=5,S=e.getPad(_).html.getBoundingClientRect();return{x:S.left,y:S.bottom+w}}function g(_,w,S,T){function B(M,z){var H=o.createShape(P({type:_},T));i.start(M,H,{source:z})}return{group:"model",className:w,title:S,action:{dragstart:B,click:s?function(M,z){var H=o.createShape(P({type:_},T));s.append(z,H)}:B,hover:s?function(M,z){return l.create(z,_,T),()=>{l.cleanUp()}}:null}}}function x(_){return function(w,S){n.splitLane(S,_),e.open(S,!0)}}if(At(d,["bpmn:Lane","bpmn:Participant"])&&Ot(t)){var k=Ti(t);P(p,{"lane-insert-above":{group:"lane-insert-above",className:"bpmn-icon-lane-insert-above",title:c("Add lane above"),action:{click:function(_,w){n.addLane(w,"top")}}}}),k.length<2&&((Re(t)?t.height>=120:t.width>=120)&&P(p,{"lane-divide-two":{group:"lane-divide",className:"bpmn-icon-lane-divide-two",title:c("Divide into two lanes"),action:{click:x(2)}}}),(Re(t)?t.height>=180:t.width>=180)&&P(p,{"lane-divide-three":{group:"lane-divide",className:"bpmn-icon-lane-divide-three",title:c("Divide into three lanes"),action:{click:x(3)}}})),P(p,{"lane-insert-below":{group:"lane-insert-below",className:"bpmn-icon-lane-insert-below",title:c("Add lane below"),action:{click:function(_,w){n.addLane(w,"bottom")}}}})}return y(d,"bpmn:FlowNode")&&(y(d,"bpmn:EventBasedGateway")?P(p,{"append.receive-task":g("bpmn:ReceiveTask","bpmn-icon-receive-task",c("Append receive task")),"append.message-intermediate-event":g("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-message",c("Append message intermediate catch event"),{eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":g("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-timer",c("Append timer intermediate catch event"),{eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condition-intermediate-event":g("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-condition",c("Append conditional intermediate catch event"),{eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":g("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-signal",c("Append signal intermediate catch event"),{eventDefinitionType:"bpmn:SignalEventDefinition"})}):jb(d,"bpmn:BoundaryEvent","bpmn:CompensateEventDefinition")?P(p,{"append.compensation-activity":g("bpmn:Task","bpmn-icon-task",c("Append compensation activity"),{isForCompensation:!0})}):!y(d,"bpmn:EndEvent")&&!d.isForCompensation&&!jb(d,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")&&!mn(d)&&P(p,{"append.end-event":g("bpmn:EndEvent","bpmn-icon-end-event-none",c("Append end event")),"append.gateway":g("bpmn:ExclusiveGateway","bpmn-icon-gateway-none",c("Append gateway")),"append.append-task":g("bpmn:Task","bpmn-icon-task",c("Append task")),"append.intermediate-event":g("bpmn:IntermediateThrowEvent","bpmn-icon-intermediate-event-none",c("Append intermediate/boundary event"))})),a.isEmpty(t,"bpmn-replace")||P(p,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:c("Change element"),action:{click:function(_,w){var S=P(f(w),{cursor:{x:_.x,y:_.y}});a.open(w,"bpmn-replace",S,{title:c("Change element"),width:"var(--bpmn-replace-popup-width, 300px)",search:!0})}}}}),y(d,"bpmn:SequenceFlow")&&P(p,{"append.text-annotation":g("bpmn:TextAnnotation","bpmn-icon-text-annotation",c("Add text annotation"))}),y(d,"bpmn:MessageFlow")&&P(p,{"append.text-annotation":g("bpmn:TextAnnotation","bpmn-icon-text-annotation",c("Add text annotation"))}),At(d,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference"])&&P(p,{"append.text-annotation":g("bpmn:TextAnnotation","bpmn-icon-text-annotation",c("Add text annotation")),connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect to other element"),action:{click:m,dragstart:m}}}),y(d,"bpmn:TextAnnotation")&&P(p,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect using association"),action:{click:m,dragstart:m}}}),At(d,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&P(p,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect using data input association"),action:{click:m,dragstart:m}}}),y(d,"bpmn:Group")&&P(p,{"append.text-annotation":g("bpmn:TextAnnotation","bpmn-icon-text-annotation",c("Add text annotation"))}),this._isDeleteAllowed([t])&&P(p,h()),p};sB={__depends__:[NC,hk,yx,Yn,Ch,ld,aB],__init__:["contextPadProvider"],contextPadProvider:["type",kc]},cB={horizontal:["x","width"],vertical:["y","height"]},$b=5;$r.$inject=["modeling","rules"],$r.prototype.registerFilter=function(t){if(typeof t!="function")throw Error("the filter has to be a function");this._filters.push(t)},$r.prototype.trigger=function(t,e){var n=this._modeling,o,r;if(!(t.length<3)&&(this._setOrientation(e),r=this._filterElements(t),o=this._createGroups(r),!(o.length<=2)))return n.distributeElements(o,this._axis,this._dimension),o},$r.prototype._filterElements=function(t){var e=this._filters,n=this._axis,o=this._dimension,r=[].concat(t);return e.length?(R(e,function(i){r=i(r,n,o)}),r):t},$r.prototype._createGroups=function(t){var e=[],n=this,o=this._axis,r=this._dimension;if(!o)throw Error('must have a defined "axis" and "dimension"');var i=vo(t,o);return R(i,function(a,s){var c=n._findRange(a,o,r),l,p=e[e.length-1];p&&n._hasIntersection(p.range,c)?e[e.length-1].elements.push(a):(l={range:c,elements:[a]},e.push(l))}),e},$r.prototype._setOrientation=function(t){var e=cB[t];this._axis=e[0],this._dimension=e[1]},$r.prototype._hasIntersection=function(t,e){return Math.max(t.min,t.max)>=Math.min(e.min,e.max)&&Math.min(t.min,t.max)<=Math.max(e.min,e.max)},$r.prototype._findRange=function(t){var e=t[this._axis],n=t[this._dimension];return{min:e+$b,max:e+n-$b}};lB={__init__:["distributeElements"],distributeElements:["type",$r]};Pp.$inject=["eventBus"],dt(Pp,Mo),Pp.prototype.init=function(){this.addRule("elements.distribute",function(t){var e=t.elements;return e=Dt(e,function(n){var o=At(n,["bpmn:Association","bpmn:BoundaryEvent","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:Lane","bpmn:MessageFlow","bpmn:SequenceFlow","bpmn:TextAnnotation"]);return!(n.labelTarget||o)}),e=Us(e),e.length<3?!1:e})};zb={horizontal:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <polyline points="450 400 450 150 1350 150 1350 400" style="fill:none;stroke:currentColor;stroke-width:100;stroke-linejoin:round;"/>\n <rect x="150" y="450" width="600" height="1200" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="1050" y="450" width="600" height="800" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>',vertical:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1800">\n <polyline points="400 1350 150 1350 150 450 400 450" style="fill:none;stroke:currentColor;stroke-width:100;stroke-linejoin:round;"/>\n <rect x="450" y="150" width="1200" height="600" rx="1" style="fill:none;stroke:currentColor;stroke-width:100;"></rect>\n <rect x="450" y="1050" width="800" height="600" rx="1" style="fill:currentColor;stroke:currentColor;stroke-width:100;opacity:.5;"></rect>\n </svg>'},pB=900;wc.$inject=["popupMenu","distributeElements","translate","rules"],wc.prototype.getPopupMenuEntries=function(t){var e={};return this._isAllowed(t)&&P(e,this._getEntries(t)),e},wc.prototype._isAllowed=function(t){return this._rules.allowed("elements.distribute",{elements:t})},wc.prototype._getEntries=function(t){var e=this._distributeElements,n=this._translate,o=this._popupMenu;return{"distribute-elements-horizontal":{group:"distribute",title:n("Distribute elements horizontally"),className:"bjs-align-elements-menu-entry",imageHtml:zb.horizontal,action:function(r,i){e.trigger(t,"horizontal"),o.close()}},"distribute-elements-vertical":{group:"distribute",title:n("Distribute elements vertically"),imageHtml:zb.vertical,action:function(r,i){e.trigger(t,"vertical"),o.close()}}}};dB={__depends__:[wh,lB],__init__:["bpmnDistributeElements","distributeElementsMenuProvider"],bpmnDistributeElements:["type",Pp],distributeElementsMenuProvider:["type",wc]},Ob="is not a registered action",mB="is already registered";Co.$inject=["eventBus","injector"],Co.prototype._registerDefaultActions=function(t){var e=t.get("commandStack",!1),n=t.get("modeling",!1),o=t.get("selection",!1),r=t.get("zoomScroll",!1),i=t.get("copyPaste",!1),a=t.get("canvas",!1),s=t.get("rules",!1),c=t.get("keyboardMove",!1),l=t.get("keyboardMoveSelection",!1);e&&(this.register("undo",function(){e.undo()}),this.register("redo",function(){e.redo()})),i&&o&&this.register("copy",function(){var p=o.get();if(p.length)return i.copy(p)}),i&&o&&this.register("duplicate",function(){var p=o.get();if(p.length)return i.duplicate(p)}),i&&this.register("paste",function(){i.paste()}),i&&o&&s&&this.register("cut",function(){var p=o.get();if(p.length){var d=s.allowed("elements.delete",{elements:p});if(d!==!1){var m=bt(d)?d:p;return i.cut(m.slice())}}}),r&&this.register("stepZoom",function(p){r.stepZoom(p.value)}),a&&this.register("zoom",function(p){a.zoom(p.value)}),n&&o&&s&&this.register("removeSelection",function(){var p=o.get();if(p.length){var d=s.allowed("elements.delete",{elements:p}),m;d!==!1&&(m=bt(d)?d:p,m.length&&n.removeElements(m.slice()))}}),c&&this.register("moveCanvas",function(p){c.moveCanvas(p)}),l&&this.register("moveSelection",function(p){l.moveSelection(p.direction,p.accelerated)})},Co.prototype.trigger=function(t,e){if(!this._actions[t])throw Gm(t,Ob);if(this._eventBus.fire("editorActions.allowed",{action:t,opts:e})!==!1)return this._actions[t](e)},Co.prototype.register=function(t,e){var n=this;if(typeof t=="string")return this._registerAction(t,e);R(t,function(o,r){n._registerAction(r,o)})},Co.prototype._registerAction=function(t,e){if(this.isRegistered(t))throw Gm(t,mB);this._actions[t]=e},Co.prototype.unregister=function(t){if(!this.isRegistered(t))throw Gm(t,Ob);this._actions[t]=void 0},Co.prototype.getActions=function(){return Object.keys(this._actions)},Co.prototype.isRegistered=function(t){return!!this._actions[t]};uB={__init__:["editorActions"],editorActions:["type",Co]};dt(Dp,Co),Dp.$inject=["injector"],Dp.prototype._registerDefaultActions=function(t){Co.prototype._registerDefaultActions.call(this,t);var e=t.get("canvas",!1),n=t.get("elementRegistry",!1),o=t.get("selection",!1),r=t.get("spaceTool",!1),i=t.get("lassoTool",!1),a=t.get("handTool",!1),s=t.get("globalConnect",!1),c=t.get("distributeElements",!1),l=t.get("alignElements",!1),p=t.get("directEditing",!1),d=t.get("searchPad",!1),m=t.get("modeling",!1),u=t.get("contextPad",!1);e&&n&&o&&this._registerAction("selectElements",function(){var h=e.getRootElement(),f=n.filter(function(g){return g!==h});return o.select(f),f}),r&&this._registerAction("spaceTool",function(){r.toggle()}),i&&this._registerAction("lassoTool",function(){i.toggle()}),a&&this._registerAction("handTool",function(){a.toggle()}),s&&this._registerAction("globalConnectTool",function(){s.toggle()}),o&&c&&this._registerAction("distributeElements",function(h){var f=o.get(),g=h.type;f.length&&c.trigger(f,g)}),o&&l&&this._registerAction("alignElements",function(h){var f=o.get(),g=[],x=h.type;f.length&&(g=Dt(f,function(k){return!y(k,"bpmn:Lane")}),l.trigger(g,x))}),o&&m&&this._registerAction("setColor",function(h){var f=o.get();f.length&&m.setColor(f,h)}),o&&p&&this._registerAction("directEditing",function(){var h=o.get();h.length&&p.activate(h[0])}),d&&this._registerAction("find",function(){d.toggle()}),e&&m&&this._registerAction("moveToOrigin",function(){var h=e.getRootElement(),f,g=y(h,"bpmn:Collaboration")?n.filter(function(x){return y(x.parent,"bpmn:Collaboration")}):n.filter(function(x){return x!==h&&!y(x.parent,"bpmn:SubProcess")});f=je(g),m.moveElements(g,{x:-f.x,y:-f.y},h)}),o&&u&&this._registerAction("replaceElement",function(h){u.triggerEntry("replace","click",h)})};hB={__depends__:[uB],editorActions:["type",Dp]};gk.$inject=["eventBus"];oa.$inject=["eventBus","gridSnapping","modeling"],dt(oa,q),oa.prototype.snapSimple=function(t,e){var n=this._gridSnapping;return e.width=n.snapValue(e.width,{min:e.width}),e.height=n.snapValue(e.height,{min:e.height}),e.x=t.x+t.width/2-e.width/2,e.y=t.y+t.height/2-e.height/2,e},oa.prototype.snapComplex=function(t,e){return/w|e/.test(e)&&(t=this.snapHorizontally(t,e)),/n|s/.test(e)&&(t=this.snapVertically(t,e)),t},oa.prototype.snapHorizontally=function(t,e){var n=this._gridSnapping,o=/w/.test(e),r=/e/.test(e),i={};return i.width=n.snapValue(t.width,{min:t.width}),r&&(o?(i.x=n.snapValue(t.x,{max:t.x}),i.width+=n.snapValue(t.x-i.x,{min:t.x-i.x})):t.x=t.x+t.width-i.width),P(t,i),t},oa.prototype.snapVertically=function(t,e){var n=this._gridSnapping,o=/n/.test(e),r=/s/.test(e),i={};return i.height=n.snapValue(t.height,{min:t.height}),o&&(r?(i.y=n.snapValue(t.y,{max:t.y}),i.height+=n.snapValue(t.y-i.y,{min:t.y-i.y})):t.y=t.y+t.height-i.height),P(t,i),t};fB=2e3;yk.$inject=["eventBus","gridSnapping"];gB={__init__:["gridSnappingResizeBehavior","gridSnappingSpaceToolBehavior"],gridSnappingResizeBehavior:["type",oa],gridSnappingSpaceToolBehavior:["type",yk]};yB=1200,vB=800;vi.prototype.snapEvent=function(t,e,n){Je(t,e,this.snapValue(t[e],n))},vi.prototype.getGridSpacing=function(){return 10},vi.prototype.snapValue=function(t,e){var n=0;e&&e.offset&&(n=e.offset),t+=n,t=Vm(t,10);var o,r;return e&&e.min&&(o=e.min,xt(o)&&(o=Vm(o+n,10,"ceil"),t=Math.max(t,o))),e&&e.max&&(r=e.max,xt(r)&&(r=Vm(r+n,10,"floor"),t=Math.min(t,r))),t-=n,t},vi.prototype.isActive=function(){return this.active},vi.prototype.setActive=function(t){this.active=t,this._eventBus.fire("gridSnapping.toggle",{active:t})},vi.prototype.toggleActive=function(){this.setActive(!this.active)},vi.$inject=["elementRegistry","eventBus","config.gridSnapping"];kB={__depends__:[gB],__init__:["gridSnapping"],gridSnapping:["type",vi]},wB=2e3;vk.$inject=["eventBus","gridSnapping","elementRegistry"];EB=1750;bk.$inject=["canvas","eventBus","gridSnapping"];SB=3e3;$p.$inject=["eventBus","gridSnapping","modeling"],dt($p,q),$p.prototype.snapMiddleSegments=function(t){var e=this._gridSnapping,n;t=t.slice();for(var o=1;o<t.length-2;o++)n=RB(e,t[o],t[o+1]),t[o]=n[0],t[o+1]=n[1];return t};MB={__depends__:[kB,{__init__:["gridSnappingAutoPlaceBehavior","gridSnappingParticipantBehavior","gridSnappingLayoutConnectionBehavior"],gridSnappingAutoPlaceBehavior:["type",vk],gridSnappingParticipantBehavior:["type",bk],gridSnappingLayoutConnectionBehavior:["type",$p]}],__init__:["bpmnGridSnapping"],bpmnGridSnapping:["type",gk]},AB=30,Ib=30;_c.$inject=["eventBus","interactionEvents"],_c.prototype._createDefaultHit=function(t,e){return this._interactionEvents.removeHits(e),this._interactionEvents.createDefaultHit(t,e),!0},_c.prototype._createParticipantHit=function(t,e){this._interactionEvents.removeHits(e),this._interactionEvents.createBoxHit(e,"no-move",{width:t.width,height:t.height}),this._interactionEvents.createBoxHit(e,"click-stroke",{width:t.width,height:t.height});var n=Re(t)?{width:AB,height:t.height}:{width:t.width,height:Ib};return this._interactionEvents.createBoxHit(e,"all",n),!0},_c.prototype._createSubProcessHit=function(t,e){return this._interactionEvents.removeHits(e),this._interactionEvents.createBoxHit(e,"no-move",{width:t.width,height:t.height}),this._interactionEvents.createBoxHit(e,"click-stroke",{width:t.width,height:t.height}),this._interactionEvents.createBoxHit(e,"all",{width:t.width,height:Ib}),!0};PB={__init__:["bpmnInteractionEvents"],bpmnInteractionEvents:["type",_c]};dt(Zp,cs),Zp.$inject=["injector"];Ec={selectElements:{key:"A",modifier:"cmd"},find:{key:"F",modifier:"cmd"},spaceTool:{key:"S"},lassoTool:{key:"L"},handTool:{key:"H"},globalConnectTool:{key:"C"},directEditing:{key:"E"},replaceElement:{key:"R"}};Zp.prototype.registerBindings=function(t,e){cs.prototype.registerBindings.call(this,t,e),R(Ec,function(n,o){if(e.isRegistered(o)){var r=[n.key.toLowerCase(),n.key.toUpperCase()],i=n.modifier==="cmd";t.addListener(function(a){var s=a.keyEvent;if(t.isKey(r,s)){if(i){if(!t.isCmd(s))return}else if(t.hasModifier(s))return;return e.trigger(o,s),!0}})}})};DB={__depends__:[gh],__init__:["keyboardBindings"],keyboardBindings:["type",Zp]},jB={moveSpeed:1,moveSpeedAccelerated:10},$B=1500,Hb="left",Fb="up",Wb="right",Gb="down",zB={ArrowLeft:Hb,Left:Hb,ArrowUp:Fb,Up:Fb,ArrowRight:Wb,Right:Wb,ArrowDown:Gb,Down:Gb},OB={left:function(t){return{x:-t,y:0}},up:function(t){return{x:0,y:-t}},right:function(t){return{x:t,y:0}},down:function(t){return{x:0,y:t}}};xk.$inject=["config.keyboardMoveSelection","keyboard","modeling","rules","selection"];LB={__depends__:[gh,Yn],__init__:["keyboardMoveSelection"],keyboardMoveSelection:["type",xk]},Vb=10;Sc.prototype.canResize=function(t){var e=this._rules,n=Nn(t,["newBounds","shape","delta","direction"]);return e.allowed("shape.resize",n)},Sc.prototype.activate=function(t,e,n){var o=this._dragging,r,i;if(typeof n=="string"&&(n={direction:n}),r=P({shape:e},n),i=r.direction,!i)throw Error("must provide a direction (n|w|s|e|nw|se|ne|sw)");o.init(t,kk(e,i),"resize",{autoActivate:!0,cursor:IB(i),data:{shape:e,context:r}})},Sc.prototype.computeMinResizeBox=function(t){var e=t.shape,n=t.direction;return iT(n,e,t.minDimensions||{width:Vb,height:Vb},m2(e,t.childrenBoxPadding))},Sc.$inject=["eventBus","rules","modeling","dragging"];Ub="djs-resizing",qb="resize-not-ok",HB=500;wk.$inject=["eventBus","canvas","previewSupport"];tp=-6,ep=8,np=20,ac="djs-resizer",FB=["n","w","s","e","nw","ne","se","sw"];bi.prototype.makeDraggable=function(t,e,n){var o=this._resize;function r(i){Mr(i)&&o.activate(i,t,n)}Ct.bind(e,"mousedown",r),Ct.bind(e,"touchstart",r)},bi.prototype._createResizer=function(t,e,n,o){var r=this._getResizersParent(),i=WB(o),a=et("g");ut(a).add(ac),ut(a).add(ac+"-"+t.id),ut(a).add(ac+"-"+o),it(r,a);var s=et("rect");U(s,{x:-ep/2+i.x,y:-ep/2+i.y,rx:2,width:ep,height:ep}),ut(s).add(ac+"-visual"),it(a,s);var c=et("rect");return U(c,{x:-np/2+i.x,y:-np/2+i.y,width:np,height:np}),ut(c).add(ac+"-hit"),it(a,c),Ws(a,e,n),a},bi.prototype.createResizer=function(t,e){var n=kk(t,e),o=this._createResizer(t,n.x,n.y,e);this.makeDraggable(t,o,e)},bi.prototype.addResizer=function(t){var e=this;oe(t)||R(FB,function(n){e._resize.canResize({shape:t,direction:n})&&e.createResizer(t,n)})},bi.prototype.removeResizers=function(){var t=this._getResizersParent();Ma(t)},bi.prototype._getResizersParent=function(){return this._canvas.getLayer("resizers")},bi.$inject=["eventBus","canvas","selection","resize"];_k={__depends__:[fr,Nr,gs],__init__:["resize","resizePreview","resizeHandles"],resize:["type",Sc],resizePreview:["type",wk],resizeHandles:["type",bi]},GB=2e3;Tc.$inject=["eventBus","bpmnFactory","canvas","directEditing","modeling","resizeHandles","textRenderer"],Tc.prototype.activate=function(t){var e=Dn(t);if(e!==void 0){var n={text:e},o=this.getEditingBBox(t);P(n,o);var r={},i=n.style||{};return P(i,{backgroundColor:null,border:null}),(At(t,["bpmn:Task","bpmn:Participant","bpmn:Lane","bpmn:CallActivity"])||Kb(t))&&P(r,{centerVertically:!0}),Fo(t)&&(P(r,{resizable:!0,autoResize:!0}),P(i,{backgroundColor:"#ffffff",border:"1px solid #ccc"})),y(t,"bpmn:TextAnnotation")&&(P(r,{resizable:!0,autoResize:!0}),P(i,{backgroundColor:"#ffffff",border:"1px solid #ccc"})),P(n,{options:r,style:i}),n}},Tc.prototype.getEditingBBox=function(t){var e=this._canvas,n=t.label||t,o=e.getAbsoluteBBox(n),r={x:o.x+o.width/2,y:o.y+o.height/2},i={x:o.x,y:o.y},a=e.zoom(),s=this._textRenderer.getDefaultStyle(),c=this._textRenderer.getExternalStyle(),l=c.fontSize*a,p=c.lineHeight,d=s.fontSize*a,m=s.lineHeight,u={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};if(y(t,"bpmn:Lane")||qB(t)){var h=Re(t),f=h?{width:o.height,height:30*a,x:o.x-o.height/2+15*a,y:r.y-30*a/2}:{width:o.width,height:30*a};P(i,f),P(u,{fontSize:d+"px",lineHeight:m,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px",transform:h?"rotate(-90deg)":null})}if(UB(t)){var g=Re(t),x=g?{width:o.width,height:o.height}:{width:o.height,height:o.width,x:r.x-o.height/2,y:r.y-o.width/2};P(i,x),P(u,{fontSize:d+"px",lineHeight:m,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px",transform:g?null:"rotate(-90deg)"})}(At(t,["bpmn:Task","bpmn:CallActivity"])||Kb(t))&&(P(i,{width:o.width,height:o.height}),P(u,{fontSize:d+"px",lineHeight:m,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"})),VB(t)&&(P(i,{width:o.width,x:o.x}),P(u,{fontSize:d+"px",lineHeight:m,paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:5*a+"px",paddingRight:5*a+"px"}));var k=1,_=o.width+2*k;if(n.labelTarget&&(P(i,{width:_,height:o.height+2*k,x:o.x-k,y:o.y-k}),P(u,{fontSize:l+"px",lineHeight:p})),Fo(n)&&!zs(n)&&!Bt(n)){var w=Sa(t),S=e.getAbsoluteBBox({x:w.x,y:w.y,width:0,height:0}),T=l,B=Sr.width*a+2*k;P(i,{width:B,height:T+2*k,x:S.x-B/2,y:S.y-T/2-k}),P(u,{fontSize:l+"px",lineHeight:p})}return y(t,"bpmn:TextAnnotation")&&(P(i,{width:o.width+2*k,height:o.height+2*k,x:o.x-k,y:o.y-k,minWidth:30*a,minHeight:10*a}),P(u,{textAlign:"left",paddingTop:7*a+"px",paddingBottom:7*a+"px",paddingLeft:7*a+"px",paddingRight:7*a+"px",fontSize:d+"px",lineHeight:m})),{bounds:i,style:u}},Tc.prototype.update=function(t,e,n,o){var r,i;y(t,"bpmn:TextAnnotation")&&(i=this._canvas.getAbsoluteBBox(t),r={x:t.x,y:t.y,width:t.width/i.width*o.width,height:t.height/i.height*o.height}),KB(e)&&(e=null),this._modeling.updateLabel(t,e,r)};Xb="djs-element-hidden",Yb="djs-label-hidden";Ek.$inject=["eventBus","canvas","pathMap"];YB={__depends__:[jl,_k,hk],__init__:["labelEditingProvider","labelEditingPreview"],labelEditingProvider:["type",Tc],labelEditingPreview:["type",Ek]},ZB=500,JB=1e3;pr.prototype.createOutline=function(t){var e=this._elementRegistry.getGraphics(t);if(!e)throw Error("cannot create outline for non-rendered element");var n=le(".djs-outline",e);return n||(n=this.getOutline(t)||this._createOutlineGfx(),it(e,n),this.updateOutline(t,n)),n},pr.prototype._createOutlineGfx=function(){var t=et("rect");return U(t,P({x:0,y:0,rx:4,width:100,height:100},this._outlineStyle)),t},pr.prototype.updateOutline=function(t,e){t.waypoints?this.updateConnectionOutline(e,t):this.updateShapeOutline(e,t)},pr.prototype.updateShapeOutline=function(t,e){var n=!1,o=this._getProviders();o.length&&R(o,function(r){n||=r.updateOutline(e,t)}),n||U(t,{x:-this._outlineOffset,y:-this._outlineOffset,width:e.width+this._outlineOffset*2,height:e.height+this._outlineOffset*2})},pr.prototype.updateConnectionOutline=function(t,e){var n=je(e);U(t,{x:n.x-this._outlineOffset,y:n.y-this._outlineOffset,width:n.width+this._outlineOffset*2,height:n.height+this._outlineOffset*2})},pr.prototype.registerProvider=function(t,e){e||(e=t,t=JB),this._eventBus.on("outline.getProviders",t,function(n){n.providers.push(e)})},pr.prototype._getProviders=function(){var t=this._eventBus.createEvent({type:"outline.getProviders",providers:[]});return this._eventBus.fire(t),t.providers},pr.prototype.getOutline=function(t){var e,n=this._getProviders();return R(n,function(o){Be(o.getOutline)&&(e||=o.getOutline(t))}),e},pr.$inject=["eventBus","styles","elementRegistry"];op=6;mh.prototype._updateMultiSelectionOutline=function(t){var e=this._canvas.getLayer("selectionOutline");Ma(e);var n=t.length>1,o=this._canvas.getContainer();if(ut(o)[n?"add":"remove"]("djs-multi-select"),n){var r=QB(je(t)),i=et("rect");U(i,P({rx:3},r)),ut(i).add("djs-selection-outline"),it(e,i)}},mh.$inject=["eventBus","canvas","selection"];Ih={__depends__:[Yn],__init__:["outline","multiSelectionOutline"],outline:["type",pr],multiSelectionOutline:["type",mh]},Zb=["bpmn:Event","bpmn:SequenceFlow","bpmn:Gateway"],Jb={class:"bjs-label-link",stroke:"var(--element-selected-outline-secondary-stroke-color)",strokeDasharray:"5, 5"},t9=15,rp=2;Sk.$inject=["eventBus","canvas","graphicsFactory","outline","selection"];e9={__depends__:[Yn,Ih],__init__:["labelLink"],labelLink:["type",Sk]},n9=new Xi("tt");Tk="djs-tooltip",qm="."+Tk;Fn.$inject=["eventBus","canvas"],Fn.prototype.add=function(t){if(!t.position)throw Error("must specifiy tooltip position");if(!t.html)throw Error("must specifiy tooltip html");var e=this._ids.next();return t=P({},this._tooltipDefaults,t,{id:e}),this._addTooltip(t),t.timeout&&this.setTimeout(t),e},Fn.prototype.trigger=function(t,e){var n=e.delegateTarget||e.target,o=this.get(sn(n,"data-tooltip-id"));o&&(t==="mouseover"&&o.timeout&&this.clearTimeout(o),t==="mouseout"&&o.timeout&&(o.timeout=1e3,this.setTimeout(o)))},Fn.prototype.get=function(t){return typeof t!="string"&&(t=t.id),this._tooltips[t]},Fn.prototype.clearTimeout=function(t){if(t=this.get(t),t){var e=t.removeTimer;e&&(clearTimeout(e),t.removeTimer=null)}},Fn.prototype.setTimeout=function(t){if(t=this.get(t),t){this.clearTimeout(t);var e=this;t.removeTimer=setTimeout(function(){e.remove(t)},t.timeout)}},Fn.prototype.remove=function(t){var e=this.get(t);e&&(Vo(e.html),Vo(e.htmlContainer),delete e.htmlContainer,delete this._tooltips[e.id])},Fn.prototype.show=function(){Um(this._tooltipRoot)},Fn.prototype.hide=function(){Um(this._tooltipRoot,!1)},Fn.prototype._updateRoot=function(t){var e=t.scale||1,n=t.scale||1,o="matrix("+e+",0,0,"+n+","+-1*t.x*e+","+-1*t.y*n+")";this._tooltipRoot.style.transform=o,this._tooltipRoot.style["-ms-transform"]=o},Fn.prototype._addTooltip=function(t){var e=t.id,n=t.html,o,r=this._tooltipRoot;n.get&&n.constructor.prototype.jquery&&(n=n.get(0)),yn(n)&&(n=ge(n)),o=ge('<div data-tooltip-id="'+e+'" class="'+Tk+'">'),Tn(o,{position:"absolute"}),o.appendChild(n),t.type&&_e(o).add("djs-tooltip-"+t.type),t.className&&_e(o).add(t.className),t.htmlContainer=o,r.appendChild(o),this._tooltips[e]=t,this._updateTooltip(t)},Fn.prototype._updateTooltip=function(t){var e=t.position,n=t.htmlContainer;r9(n,e.x,e.y)},Fn.prototype._updateTooltipVisibilty=function(t){R(this._tooltips,function(e){var n=e.show,o=e.htmlContainer,r=!0;n&&((n.minZoom>t.scale||n.maxZoom<t.scale)&&(r=!1),Um(o,r))})},Fn.prototype._init=function(){var t=this;function e(n){t._updateRoot(n),t._updateTooltipVisibilty(n),t.show()}this._eventBus.on("canvas.viewbox.changing",function(n){t.hide()}),this._eventBus.on("canvas.viewbox.changed",function(n){e(n.viewbox)})};i9={__init__:["tooltips"],tooltips:["type",Fn]},a9="flow elements must be children of pools/participants",s9="Data object must be placed within a pool/participant.";Ck.$inject=["eventBus","tooltips","translate"];c9={__depends__:[i9],__init__:["modelingFeedback"],modelingFeedback:["type",Ck]},l9=500,p9=1250,d9=1500,Jp=Math.round;Bk.$inject=["eventBus","dragging","modeling","selection","rules"];Qb=499,Km="djs-dragging",t1="drop-ok",e1="drop-not-ok",n1="new-parent",o1="attach-ok";Rk.$inject=["eventBus","canvas","styles","previewSupport"];g9={__depends__:[Zs,Yn,Ih,fr,Nr,gs],__init__:["move","movePreview"],move:["type",Bk],movePreview:["type",Rk]},y9=300;ra.$inject=["canvas"],ra.prototype.add=function(t){let{container:e,selector:n,showDelay:o=y9}=t;Cn.bind(e,n,"mouseover",r=>this._show(r.delegateTarget,t,o)),Cn.bind(e,n,"mouseout",r=>{let{delegateTarget:i,relatedTarget:a}=r;a&&i.contains(a)||this._hide()})},ra.prototype._show=function(t,e,n){let o=e.getContent(t);o&&(this._current={target:t,content:o,getPosition:e.getPosition},clearTimeout(this._showTimer),this._showTimer=setTimeout(()=>this._render(),n))},ra.prototype._hide=function(){clearTimeout(this._showTimer),this._current=null,this._render()},ra.prototype._render=function(){let t=this._getMount();if(!this._current){Fp(null,t);return}let{target:e,content:n,getPosition:o}=this._current,{x:r,y:i,placement:a="right"}=o(e);Fp(Kt(ox||(ox=Vt(['<div\n class="djs-hover-tooltip djs-hover-tooltip--','"\n style=',"\n >","</div>"])),a,{left:"".concat(r,"px"),top:"".concat(i,"px")},n),t)},ra.prototype._getMount=function(){return this._mount||(this._mount=ge('<div class="djs-hover-tooltip-container"></div>'),this._canvas.getContainer().appendChild(this._mount)),this._mount};v9={__init__:["hoverTooltip"],hoverTooltip:["type",ra]},Mk=".djs-palette-toggle",Ak=".entry",b9=Mk+", "+Ak,Xm="djs-palette-",x9="shown",Ym="open",r1="two-column",k9=1e3;Ye.$inject=["eventBus","canvas"],Ye.prototype.registerProvider=function(t,e){e||(e=t,t=k9),this._eventBus.on("palette.getProviders",t,function(n){n.providers.push(e)}),this._rebuild()},Ye.prototype.getEntries=function(){return this._getProviders().reduce(_9,{})},Ye.prototype._rebuild=function(){this._diagramInitialized&&this._getProviders().length&&(this._container||this._init(),this._update())},Ye.prototype._init=function(){var t=this,e=this._eventBus,n=this._getParentContainer(),o=this._container=ge(Ye.HTML_MARKUP);n.appendChild(o),_e(n).add(Xm+x9),Cn.bind(o,b9,"click",function(r){var i=r.delegateTarget;if(Pl(i,Mk))return t.toggle();t.trigger("click",r)}),Ct.bind(o,"mousedown",function(r){r.stopPropagation()}),Cn.bind(o,Ak,"dragstart",function(r){t.trigger("dragstart",r)}),e.on("canvas.resized",this._layoutChanged,this),e.fire("palette.create",{container:o})},Ye.prototype._getProviders=function(t){var e=this._eventBus.createEvent({type:"palette.getProviders",providers:[]});return this._eventBus.fire(e),e.providers},Ye.prototype._toggleState=function(t){t||={};var e=this._getParentContainer(),n=this._container,o=this._eventBus,r,i=_e(n),a=_e(e);r="twoColumn"in t?t.twoColumn:this._needsCollapse(e.clientHeight,this._entries||{}),i.toggle(r1,r),a.toggle(Xm+r1,r),"open"in t&&(i.toggle(Ym,t.open),a.toggle(Xm+Ym,t.open)),o.fire("palette.changed",{twoColumn:r,open:this.isOpen()})},Ye.prototype._update=function(){var t=le(".djs-palette-entries",this._container),e=this._entries=this.getEntries();Gs(t),R(e,function(n,o){var r=n.group||"default",i=le("[data-group="+Ga(r)+"]",t);i||(i=ge('<div class="group"></div>'),sn(i,"data-group",r),t.appendChild(i));var a=n.html||(n.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),s=ge(a);if(i.appendChild(s),!n.separator&&(sn(s,"data-action",o),n.title&&(sn(s,"aria-label",n.title),sn(s,"role","button")),n.className&&w9(s,n.className),n.imageUrl)){var c=ge("<img>");sn(c,"src",n.imageUrl),s.appendChild(c)}}),this.open()},Ye.prototype.trigger=function(t,e,n){var o,r,i=e.delegateTarget||e.target;return i?(o=sn(i,"data-action"),r=e.originalEvent||e,this.triggerEntry(o,t,r,n)):e.preventDefault()},Ye.prototype.triggerEntry=function(t,e,n,o){var r=this._entries[t],i;if(r&&(i=r.action,this._eventBus.fire("palette.trigger",{entry:r,event:n})!==!1)){if(Be(i)){if(e==="click")return i(n,o)}else if(i[e])return i[e](n,o);n.preventDefault()}},Ye.prototype._layoutChanged=function(){this._toggleState({})},Ye.prototype._needsCollapse=function(t,e){return t<Object.keys(e).length*46+50},Ye.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})},Ye.prototype.open=function(){this._toggleState({open:!0})},Ye.prototype.toggle=function(){this.isOpen()?this.close():this.open()},Ye.prototype.isActiveTool=function(t){return t&&this._activeTool===t},Ye.prototype.updateToolHighlight=function(t){var e,n;this._toolsContainer||=(e=le(".djs-palette-entries",this._container),le("[data-group=tools]",e)),n=this._toolsContainer,R(n.children,function(o){var r=o.getAttribute("data-action");if(r){var i=_e(o);r=r.replace("-tool",""),i.contains("entry")&&r===t?i.add("highlighted-entry"):i.remove("highlighted-entry")}})},Ye.prototype.isOpen=function(){return _e(this._container).has(Ym)},Ye.prototype._getParentContainer=function(){return this._canvas.getContainer()},Ye.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';S9=".djs-palette-entries .entry",T9=8;zp.$inject=["eventBus","palette","hoverTooltip"],zp.prototype._init=function(t){this._updateEntries(),this._hoverTooltip.add({container:t,selector:S9,getContent:e=>{let n=this._entries[sn(e,"data-action")];return!n||!n.title?null:Kt(ax||(ax=Vt(["<","\n title=","\n shortcut=","\n />"])),E9,n.title,n.shortcut)},getPosition:e=>{let n=e.getBoundingClientRect();return{x:n.right+T9,y:n.top+n.height/2,placement:"right"}}})},zp.prototype._updateEntries=function(){this._entries=this._palette.getEntries()};C9={__depends__:[v9],__init__:["palette","paletteTooltip"],palette:["type",Ye],paletteTooltip:["type",zp]},i1="crosshair",a1="selected",B9="djs-dragging-active-lasso";xi.$inject=["eventBus","canvas","dragging","elementRegistry","selection","toolManager","mouse"],xi.prototype.activateLasso=function(t,e){this._dragging.init(t,"lasso",{autoActivate:e,cursor:i1,data:{context:{}},keepSelection:!0})},xi.prototype.activateSelection=function(t,e){this._dragging.init(t,"lasso.selection",{trapClick:!1,autoActivate:e,cursor:i1,data:{context:{}},keepSelection:!0})},xi.prototype._select=function(t){this._selection.select(t)},xi.prototype.select=function(t,e,n=[]){var o=Hi(Ki(t,e));this._select([...n,...o])},xi.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var t=this._mouse.getLastMoveEvent();this.activateSelection(t,!!t)},xi.prototype.isActive=function(){var t=this._dragging.context();return t&&/^lasso/.test(t.prefix)};R9={__depends__:[pd,Lc],__init__:["lassoTool"],lassoTool:["type",xi]},Zm=1500,c1="grab";rs.$inject=["eventBus","canvas","dragging","injector","toolManager","mouse"],rs.prototype.activateMove=function(t,e,n){typeof e=="object"&&(n=e,e=!1),this._dragging.init(t,"hand.move",{autoActivate:e,cursor:c1,data:{context:n||{}}})},rs.prototype.activateHand=function(t,e,n){this._dragging.init(t,"hand",{trapClick:!1,autoActivate:e,cursor:c1,data:{context:{reactivate:n}}})},rs.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var t=this._mouse.getLastMoveEvent();this.activateHand(t,!!t)},rs.prototype.isActive=function(){var t=this._dragging.context();return t?/^(hand|hand\.move)$/.test(t.prefix):!1};M9={__depends__:[pd,Lc],__init__:["handTool"],handTool:["type",rs]},p1="connect-ok",d1="connect-not-ok";is.$inject=["eventBus","dragging","connect","canvas","toolManager","rules","mouse"],is.prototype.start=function(t,e){this._dragging.init(t,"global-connect",{autoActivate:e,trapClick:!1,data:{context:{}}})},is.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var t=this._mouse.getLastMoveEvent();return this.start(t,!!t)},is.prototype.isActive=function(){var t=this._dragging.context();return t&&/^global-connect/.test(t.prefix)},is.prototype.canStartConnect=function(t){return this._rules.allowed("connection.start",{source:t})};A9={__depends__:[Ch,fr,Nr,pd,Lc],globalConnect:["type",is]};uh.$inject=["palette","create","elementFactory","spaceTool","lassoTool","handTool","globalConnect","translate"],uh.prototype.getPaletteEntries=function(){var t={},e=this._create,n=this._elementFactory,o=this._spaceTool,r=this._lassoTool,i=this._handTool,a=this._globalConnect,s=this._translate;function c(d,m,u,h,f){function g(x){var k=n.createShape(P({type:d},f));e.start(x,k)}return{group:m,className:u,title:h,action:{dragstart:g,click:g}}}function l(d){var m=n.createShape({type:"bpmn:SubProcess",x:0,y:0,isExpanded:!0}),u=n.createShape({type:"bpmn:StartEvent",x:40,y:82,parent:m});e.start(d,[m,u],{hints:{autoSelect:[m]}})}function p(d){e.start(d,n.createParticipantShape())}return P(t,{"hand-tool":{group:"tools",className:"bpmn-icon-hand-tool",title:s("Activate hand tool"),shortcut:Ec.handTool.key,action:{click:function(d){i.activateHand(d)}}},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:s("Activate lasso tool"),shortcut:Ec.lassoTool.key,action:{click:function(d){r.activateSelection(d)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:s("Activate create/remove space tool"),shortcut:Ec.spaceTool.key,action:{click:function(d){o.activateSelection(d)}}},"global-connect-tool":{group:"tools",className:"bpmn-icon-connection-multi",title:s("Activate global connect tool"),shortcut:Ec.globalConnectTool.key,action:{click:function(d){a.start(d)}}},"tool-separator":{group:"tools",separator:!0},"create.start-event":c("bpmn:StartEvent","event","bpmn-icon-start-event-none",s("Create start event")),"create.intermediate-event":c("bpmn:IntermediateThrowEvent","event","bpmn-icon-intermediate-event-none",s("Create intermediate/boundary event")),"create.end-event":c("bpmn:EndEvent","event","bpmn-icon-end-event-none",s("Create end event")),"create.exclusive-gateway":c("bpmn:ExclusiveGateway","gateway","bpmn-icon-gateway-none",s("Create gateway")),"create.task":c("bpmn:Task","activity","bpmn-icon-task",s("Create task")),"create.data-object":c("bpmn:DataObjectReference","data-object","bpmn-icon-data-object",s("Create data object reference")),"create.data-store":c("bpmn:DataStoreReference","data-store","bpmn-icon-data-store",s("Create data store reference")),"create.subprocess-expanded":{group:"activity",className:"bpmn-icon-subprocess-expanded",title:s("Create expanded sub-process"),action:{dragstart:l,click:l}},"create.participant-expanded":{group:"collaboration",className:"bpmn-icon-participant",title:s("Create pool/participant"),action:{dragstart:p,click:p}},"create.group":c("bpmn:Group","artifact","bpmn-icon-group",s("Create group"))}),t};P9={__depends__:[C9,ld,ek,R9,M9,A9,Ks],__init__:["paletteProvider"],paletteProvider:["type",uh]},D9=250;hh.$inject=["eventBus","elementRegistry","elementFactory","canvas","previewSupport"],dt(hh,q);j9={__depends__:[gs],__init__:["bpmnReplacePreview"],bpmnReplacePreview:["type",hh]},$9=1250,Jm=40,z9=20,O9=10,m1=20,Pk=["x","y"],L9=Math.abs;Dk.$inject=["eventBus"];_i.prototype.getSnapOrigin=function(t){return this._snapOrigins[t]},_i.prototype.setSnapOrigin=function(t,e){this._snapOrigins[t]=e,this._snapLocations.indexOf(t)===-1&&this._snapLocations.push(t)},_i.prototype.addDefaultSnap=function(t,e){var n=this._defaultSnaps[t];n||=this._defaultSnaps[t]=[],n.push(e)},_i.prototype.getSnapLocations=function(){return this._snapLocations},_i.prototype.setSnapLocations=function(t){this._snapLocations=t},_i.prototype.pointsForTarget=function(t){var e=t.id||t,n=this._targets[e];return n||(n=this._targets[e]=new Op,n.initDefaults(this._defaultSnaps)),n};Op.prototype.add=function(t,e){var n=this._snapValues[t];n||=this._snapValues[t]={x:[],y:[]},n.x.indexOf(e.x)===-1&&n.x.push(e.x),n.y.indexOf(e.y)===-1&&n.y.push(e.y)},Op.prototype.snap=function(t,e,n,o){var r=this._snapValues[e];return r&&k4(t[n],r[n],o)},Op.prototype.initDefaults=function(t){var e=this;R(t||{},function(n,o){R(n,function(r){e.add(o,r)})})};U9=1250;hr.$inject=["elementRegistry","eventBus","snapping"],hr.prototype.initSnap=function(t){var e=this._elementRegistry,n=t.context,o=n.shape,r=n.snapContext;r||=n.snapContext=new _i;var i=e.get(o.id)?Bo(o,t):{x:t.x+Bo(o).x,y:t.y+Bo(o).y},a={x:i.x-o.width/2,y:i.y-o.height/2},s={x:i.x+o.width/2,y:i.y+o.height/2};return r.setSnapOrigin("mid",{x:i.x-t.x,y:i.y-t.y}),Bt(o)||(r.setSnapOrigin("top-left",{x:a.x-t.x,y:a.y-t.y}),r.setSnapOrigin("bottom-right",{x:s.x-t.x,y:s.y-t.y})),r},hr.prototype.addSnapTargetPoints=function(t,e,n){var o=this.getSnapTargets(e,n);return R(o,function(r){if(Bt(r))Bt(e)&&t.add("mid",Bo(r));else if(oe(r)){if(r.waypoints.length<3)return;var i=r.waypoints.slice(1,-1);R(i,function(a){t.add("mid",a)})}else t.add("mid",Bo(r))}),!xt(e.x)||!xt(e.y)||this._elementRegistry.get(e.id)&&t.add("mid",Bo(e)),t},hr.prototype.getSnapTargets=function(t,e){return o2(e).filter(function(n){return!q9(n)})};h1=1500;dt(as,hr),as.$inject=["eventBus","injector"],as.prototype.initSnap=function(t){var e=hr.prototype.initSnap.call(this,t),n=t.shape,o=!!this._elementRegistry.get(n.id);return R(n.outgoing,function(r){var i=r.waypoints[0];i=i.original||i,e.setSnapOrigin(r.id+"-docking",g1(i,o,t))}),R(n.incoming,function(r){var i=r.waypoints[r.waypoints.length-1];i=i.original||i,e.setSnapOrigin(r.id+"-docking",g1(i,o,t))}),y(n,"bpmn:Participant")&&e.setSnapLocations(["top-left","bottom-right","mid"]),e},as.prototype.addSnapTargetPoints=function(t,e,n){hr.prototype.addSnapTargetPoints.call(this,t,e,n);var o=this.getSnapTargets(e,n);R(o,function(i){(Y9(i)||X9([e,i],"bpmn:TextAnnotation"))&&(t.add("top-left",e2(i)),t.add("bottom-right",n2(i)))});var r=this._elementRegistry;return R(e.incoming,function(i){if(r.get(e.id)){f1(o,i.source)||t.add("mid",vt(i.source));var a=i.waypoints[0];t.add(i.id+"-docking",a.original||a)}}),R(e.outgoing,function(i){if(r.get(e.id)){f1(o,i.target)||t.add("mid",vt(i.target));var a=i.waypoints[i.waypoints.length-1];t.add(i.id+"-docking",a.original||a)}}),y(n,"bpmn:SequenceFlow")&&(t=this.addSnapTargetPoints(t,e,n.parent)),t},as.prototype.getSnapTargets=function(t,e){return hr.prototype.getSnapTargets.call(this,t,e).filter(function(n){return!y(n,"bpmn:Lane")})};J9=1250;Cc.prototype.initSnap=function(t){var e=t.context,n=e.shape,o=e.direction,r=e.snapContext;r||=e.snapContext=new _i;var i=y1(n,o);return r.setSnapOrigin("corner",{x:i.x-t.x,y:i.y-t.y}),r},Cc.prototype.addSnapTargetPoints=function(t,e,n,o){var r=this.getSnapTargets(e,n);return R(r,function(i){t.add("corner",n2(i)),t.add("corner",e2(i))}),t.add("corner",y1(e,o)),t},Cc.$inject=["eventBus","snapping"],Cc.prototype.getSnapTargets=function(t,e){return o2(e).filter(function(n){return!Q9(n,t)&&!oe(n)&&!tR(n)&&!Bt(n)})};oR=7,rR=1e3;ki.$inject=["canvas"],ki.prototype.snap=function(t,e){var n=t.context.snapContext,o=n.getSnapLocations(),r={x:ds(t,"x"),y:ds(t,"y")};R(o,function(i){var a=n.getSnapOrigin(i),s={x:t.x+a.x,y:t.y+a.y};if(R(["x","y"],function(c){var l;r[c]||(l=e.snap(s,i,c,oR),l!==void 0&&(r[c]={value:l,originValue:l-a[c]}))}),r.x&&r.y)return!1}),this.showSnapLine("vertical",r.x&&r.x.value),this.showSnapLine("horizontal",r.y&&r.y.value),R(["x","y"],function(i){var a=r[i];Se(a)&&Je(t,i,a.originValue)})},ki.prototype._createLine=function(t){var e=this._canvas.getLayer("snap"),n=et("path");return U(n,{d:"M0,0 L0,0"}),ut(n).add("djs-snap-line"),it(e,n),{update:function(o){xt(o)?t==="horizontal"?U(n,{d:"M-100000,"+o+" L+100000,"+o,display:""}):U(n,{d:"M "+o+",-100000 L "+o+", +100000",display:""}):U(n,{display:"none"})}}},ki.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}},ki.prototype.showSnapLine=function(t,e){var n=this.getSnapLine(t);n&&n.update(e),this._asyncHide()},ki.prototype.getSnapLine=function(t){return this._snapLines||this._createSnapLines(),this._snapLines[t]},ki.prototype.hide=function(){R(this._snapLines,function(t){t.update()})};iR={__depends__:[{__init__:["createMoveSnapping","resizeSnapping","snapping"],createMoveSnapping:["type",hr],resizeSnapping:["type",Cc],snapping:["type",ki]}],__init__:["connectSnapping","createMoveSnapping"],connectSnapping:["type",Dk],createMoveSnapping:["type",as]},v1=300;Rt.$inject=["canvas","eventBus","selection","translate"],Rt.prototype._bindEvents=function(){var t=this;function e(n,o,r,i){t._eventMaps.push({el:n,type:r,listener:Cn.bind(n,o,r,i)})}e(document,"html","click",function(n){t.close(!1)}),e(this._container,Rt.INPUT_SELECTOR,"click",function(n){n.stopPropagation(),n.delegateTarget.focus()}),e(this._container,Rt.RESULT_SELECTOR,"mouseover",function(n){n.stopPropagation(),t._scrollToNode(n.delegateTarget),t._preselect(n.delegateTarget)}),e(this._container,Rt.RESULT_SELECTOR,"click",function(n){n.stopPropagation(),t._select(n.delegateTarget)}),e(this._container,Rt.INPUT_SELECTOR,"keydown",function(n){Ie("ArrowUp",n)&&n.preventDefault(),Ie("ArrowDown",n)&&n.preventDefault()}),e(this._container,Rt.INPUT_SELECTOR,"keyup",function(n){if(Ie("Escape",n))return t.close();if(Ie("Enter",n)){var o=t._getCurrentResult();return o?t._select(o):t.close(!1)}if(Ie("ArrowUp",n))return t._scrollToDirection(!0);if(Ie("ArrowDown",n))return t._scrollToDirection();Ie(["ArrowLeft","ArrowRight"],n)||t._search(n.delegateTarget.value)})},Rt.prototype._unbindEvents=function(){this._eventMaps.forEach(function(t){Cn.unbind(t.el,t.type,t.listener)})},Rt.prototype._search=function(t){var e=this;if(this._clearResults(),t.trim()){var n=this._searchProvider.find(t);if(n=n.filter(function(r){return!e._canvas.getRootElements().includes(r.element)}),!n.length)this._selection.select(null);else{n.forEach(function(r){var i=r.element.id,a=e._createResultNode(r,i);e._results[i]={element:r.element,node:a}});var o=le(Rt.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(o),this._preselect(o)}}},Rt.prototype._scrollToDirection=function(t){var e=this._getCurrentResult();if(e){var n=t?e.previousElementSibling:e.nextElementSibling;n&&(this._scrollToNode(n),this._preselect(n))}},Rt.prototype._scrollToNode=function(t){if(t&&t!==this._getCurrentResult()){var e=t.offsetTop,n=this._resultsContainer.scrollTop,o=e-this._resultsContainer.clientHeight+t.clientHeight;e<n?this._resultsContainer.scrollTop=e:n<o&&(this._resultsContainer.scrollTop=o)}},Rt.prototype._clearResults=function(){Gs(this._resultsContainer),this._results={},this._eventBus.fire("searchPad.cleared")},Rt.prototype._getCurrentResult=function(){return le(Rt.RESULT_SELECTED_SELECTOR,this._resultsContainer)},Rt.prototype._createResultNode=function(t,e){var n=ge(Rt.RESULT_HTML);return t.primaryTokens.length>0&&b1(n,t.primaryTokens,Rt.RESULT_PRIMARY_HTML),b1(n,t.secondaryTokens,Rt.RESULT_SECONDARY_HTML),sn(n,Rt.RESULT_ID_ATTRIBUTE,e),this._resultsContainer.appendChild(n),n},Rt.prototype.registerProvider=function(t){this._searchProvider=t},Rt.prototype.open=function(){if(!this._searchProvider)throw Error("no search provider registered");this.isOpen()||(this._cachedRootElement=this._canvas.getRootElement(),this._cachedSelection=this._selection.get(),this._cachedViewbox=this._canvas.viewbox(),this._selection.select(null),this._bindEvents(),this._open=!0,_e(this._canvas.getContainer()).add("djs-search-open"),_e(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))},Rt.prototype.close=function(t=!0){this.isOpen()&&(t&&(this._cachedRootElement&&this._canvas.setRootElement(this._cachedRootElement),this._cachedSelection&&this._selection.select(this._cachedSelection),this._cachedViewbox&&this._canvas.viewbox(this._cachedViewbox),this._eventBus.fire("searchPad.restored")),this._cachedRootElement=null,this._cachedSelection=null,this._cachedViewbox=null,this._unbindEvents(),this._open=!1,_e(this._canvas.getContainer()).remove("djs-search-open"),_e(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._eventBus.fire("searchPad.closed"),this._canvas.restoreFocus())},Rt.prototype.toggle=function(){this.isOpen()?this.close():this.open()},Rt.prototype.isOpen=function(){return this._open},Rt.prototype._preselect=function(t){var e=this._getCurrentResult();if(t!==e){e&&_e(e).remove(Rt.RESULT_SELECTED_CLASS);var n=sn(t,Rt.RESULT_ID_ATTRIBUTE),o=this._results[n].element;_e(t).add(Rt.RESULT_SELECTED_CLASS),this._canvas.scrollToElement(o,{top:v1}),this._selection.select(o),this._eventBus.fire("searchPad.preselected",o)}},Rt.prototype._select=function(t){var e=sn(t,Rt.RESULT_ID_ATTRIBUTE),n=this._results[e].element;this._cachedSelection=null,this._cachedViewbox=null,this.close(!1),this._canvas.scrollToElement(n,{top:v1}),this._selection.select(n),this._eventBus.fire("searchPad.selected",n)},Rt.prototype._getBoxHtml=function(){let t=ge(Rt.BOX_HTML),e=le(Rt.INPUT_SELECTOR,t);return e&&e.setAttribute("aria-label",this._translate("Search in diagram")),t};Rt.CONTAINER_SELECTOR=".djs-search-container",Rt.INPUT_SELECTOR=".djs-search-input input",Rt.RESULTS_CONTAINER_SELECTOR=".djs-search-results",Rt.RESULT_SELECTOR=".djs-search-result",Rt.RESULT_SELECTED_CLASS="djs-search-result-selected",Rt.RESULT_SELECTED_SELECTOR="."+Rt.RESULT_SELECTED_CLASS,Rt.RESULT_ID_ATTRIBUTE="data-result-id",Rt.RESULT_HIGHLIGHT_CLASS="djs-search-highlight",Rt.BOX_HTML='<div class="djs-search-container djs-scrollable">\n <div class="djs-search-input">\n <svg class="djs-search-icon" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.0325 8.5H9.625L13.3675 12.25L12.25 13.3675L8.5 9.625V9.0325L8.2975 8.8225C7.4425 9.5575 6.3325 10 5.125 10C2.4325 10 0.25 7.8175 0.25 5.125C0.25 2.4325 2.4325 0.25 5.125 0.25C7.8175 0.25 10 2.4325 10 5.125C10 6.3325 9.5575 7.4425 8.8225 8.2975L9.0325 8.5ZM1.75 5.125C1.75 6.9925 3.2575 8.5 5.125 8.5C6.9925 8.5 8.5 6.9925 8.5 5.125C8.5 3.2575 6.9925 1.75 5.125 1.75C3.2575 1.75 1.75 3.2575 1.75 5.125Z" fill="#22242A"/>\n </svg>\n <input type="text" spellcheck="false" />\n </div>\n <div class="djs-search-results" />\n</div>',Rt.RESULT_HTML='<div class="djs-search-result"></div>',Rt.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>',Rt.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';sR={__depends__:[Ks,Xs,Yn],searchPad:["type",Rt]};fh.$inject=["elementRegistry","searchPad","canvas","search"],fh.prototype.find=function(t){var e=this._canvas.getRootElements(),n=this._elementRegistry.filter(function(o){return!Bt(o)&&!e.includes(o)});return this._search(n.map(o=>({element:o,label:Dn(o),id:o.id})),t,{keys:["label","id"]}).map(cR)};lR={__depends__:[sR,zx],__init__:["bpmnSearch"],bpmnSearch:["type",fh]},pR="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",dR="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",mR={width:36,height:50},uR={width:50,height:50};_o=5;Lp.$inject=["outline","styles"],Lp.prototype.getOutline=function(t){let e=this._styles.cls("djs-outline",["no-fill"]);var n;if(Gg(t))return n=et("rect"),U(n,P({x:-_o,y:-_o,rx:4,width:t.width+_o*2,height:t.height+_o*2},e)),n;if(!Bt(t))return y(t,"bpmn:Gateway")?(n=et("rect"),P(n.style,{"transform-box":"fill-box",transform:"rotate(45deg)","transform-origin":"center"}),U(n,P({x:2,y:2,rx:4,width:t.width-4,height:t.height-4},e))):At(t,["bpmn:Task","bpmn:SubProcess","bpmn:Group","bpmn:CallActivity"])?(n=et("rect"),U(n,P({x:-_o,y:-_o,rx:14,width:t.width+_o*2,height:t.height+_o*2},e))):y(t,"bpmn:EndEvent")?(n=et("circle"),U(n,P({cx:t.width/2,cy:t.height/2,r:t.width/2+_o+1},e))):y(t,"bpmn:Event")?(n=et("circle"),U(n,P({cx:t.width/2,cy:t.height/2,r:t.width/2+_o},e))):y(t,"bpmn:DataObjectReference")&&k1(t,"bpmn:DataObjectReference")?n=x1(pR,{x:-6,y:-6},e):y(t,"bpmn:DataStoreReference")&&k1(t,"bpmn:DataStoreReference")&&(n=x1(dR,{x:-6,y:-6},e)),n},Lp.prototype.updateOutline=function(t,e){if(!Bt(t))return At(t,["bpmn:SubProcess","bpmn:Group"])?(U(e,{width:t.width+_o*2,height:t.height+_o*2}),!0):!!At(t,["bpmn:Event","bpmn:Gateway","bpmn:DataStoreReference","bpmn:DataObjectReference"])};hR={__depends__:[Ih],__init__:["outlineProvider"],outlineProvider:["type",Lp]},fR='<?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>';dt(dr,Bc),dr.Viewer=Rr,dr.NavigatedViewer=sc,dr.prototype.createDiagram=function(){return this.importXML(fR)},dr.prototype._interactionModules=[cx,dx,fx,gx],dr.prototype._modelingModules=[D6,Sh,n4,Y6,_4,Ch,R4,sB,Y2,ld,dB,hB,MB,PB,DB,LB,YB,e9,uk,c9,g9,P9,j9,_k,iR,lR,hR],dr.prototype._modules=[].concat(Rr.prototype._modules,dr.prototype._interactionModules,dr.prototype._modelingModules)});function Ik(t){return/^\s*\[Doc\]/.test(t??"")}function ys(t){return/^\s*\[App\]/.test(t??"")}function ud(t){return(t??"").replace(/^\s*\[(Doc|App)\]\s*/,"")}function gR(t,e,n){let o=t.charCodeAt(0);if(o<32||o>126){let i=t.normalize("NFD").charCodeAt(0);o=i>=32&&i<=126?i:-1}let r=n?Lk.bold:Lk.regular;return(o>=32?r[o-32]??Nk:Nk)*e/1e3}function gr(t,e,n=!1){let o=0;for(let r of t??"")o+=gR(r,e,n);return o}function sa(t,e,n,o=!1){let r=[];for(let i of(t??"").split("\n")){let a="";for(let s of i.split(/\s+/).filter(Boolean)){let c=a?"".concat(a," ").concat(s):s;if(gr(c,e,o)<=n)a=c;else{for(a&&r.push(a),a="";gr(s,e,o)>n&&s.length>1;){let l=s.length;for(;l>1&&gr(s.slice(0,l),e,o)>n;)--l;r.push(s.slice(0,l)),s=s.slice(l)}a=s}}r.push(a)}return r.length?r:[""]}var Lk,Nk,hd=gn(()=>{"use strict";Lk={regular:"278 278 355 556 556 889 667 191 333 333 389 584 278 333 278 278 556 556 556 556 556 556 556 556 556 556 278 278 584 584 584 556 1015 667 667 722 722 667 611 778 722 278 500 667 556 833 722 778 667 778 722 667 611 722 667 944 667 667 611 278 278 278 469 556 333 556 556 500 556 556 278 556 556 222 222 500 222 833 556 556 556 556 333 500 278 556 500 722 500 500 500 334 260 334 584".split(" ").map(Number),bold:"278 333 474 556 556 889 722 238 333 333 389 584 278 333 278 278 556 556 556 556 556 556 556 556 556 556 333 333 584 584 584 611 975 722 722 722 722 667 611 778 722 278 556 722 611 833 722 778 667 778 722 667 611 722 667 944 667 667 611 333 278 333 584 556 333 556 611 556 611 556 333 611 611 278 278 556 278 889 611 611 611 611 389 556 333 611 556 778 556 556 500 389 280 389 584".split(" ").map(Number)},Nk=556});function qh(t,e={}){switch(t.$type){case"bpmn:Task":return"task";case"bpmn:CallActivity":return"external";case"bpmn:SubProcess":return e.expanded===!1&&!t.triggeredByEvent?"subprocess":void 0;case"bpmn:ExclusiveGateway":case"bpmn:ParallelGateway":return"gateway";case"bpmn:DataInput":return t.isCollection?void 0:"input";case"bpmn:DataOutput":return t.isCollection?void 0:"output";case"bpmn:DataObjectReference":case"bpmn:DataObject":return t.dataState||t.isCollection||t.dataObjectRef?.isCollection?void 0:"data";case"bpmn:TextAnnotation":{let n=typeof t.text=="string"?t.text:"";return Ik(n)?"document":ys(n)?"application":void 0}case"bpmn:Participant":return e.horizontal!==!1&&e.expanded!==!1?"pool":void 0;case"bpmn:Lane":return e.horizontal===!1?void 0:"lane";default:return yR.has(t.$type)&&(t.eventDefinitions?.length??0)===0?"event":void 0}}function Hk(t){switch(t.$type){case"bpmn:SequenceFlow":return t.conditionExpression||t.sourceRef&&t.sourceRef.default===t?void 0:"sequence";case"bpmn:Association":return t.associationDirection&&t.associationDirection!=="None"?void 0:"link";case"bpmn:DataInputAssociation":case"bpmn:DataOutputAssociation":return"data-link";default:return}}function vR(t,e){let n=/^#([0-9a-fA-F]{6})$/.exec(t.trim());if(!n)return t;let o=n[1],r=i=>Math.max(0,Math.min(255,Math.round(parseInt(o.slice(i,i+2),16)*e))).toString(16).padStart(2,"0");return"#".concat(r(0)).concat(r(2)).concat(r(4))}function Kh(t,e,n){let o=/^#([0-9a-fA-F]{6})$/.exec(t.trim());if(!o)return e;let r=o[1],i=[0,2,4].map(a=>{let s=parseInt(r.slice(a,a+2),16)/255;return s<=.03928?s/12.92:((s+.055)/1.055)**2.4});return .2126*i[0]+.7152*i[1]+.0722*i[2]<.35?n:e}function bR(t,e){let n=gr(t,Wn.font,!0)+Wn.chrome,o=Math.max(Wn.minWidth,e-2*Wn.margin),r=Math.min(o,Math.max(Wn.minWidth,Math.ceil(n)));if(n<=r)return{width:r,height:Wn.height};let i=sa(t,Wn.font,r-Wn.chrome,!0).length;return{width:r,height:Math.max(Wn.height,Math.ceil(i*Wn.font*1.2+8))}}function Fk(t,e,n){let o=t.map(i=>bR(i,e)),r=(e-(o.reduce((i,a)=>i+a.width,0)+Wn.gap*Math.max(0,t.length-1)))/2;return t.map((i,a)=>{let s=o[a],c={name:i,x:r,y:n-Wn.overlap,width:s.width,height:s.height};return r+=s.width+Wn.gap,c})}function Xh(t,e){let n=e*.85;return"M0 0H".concat(t,"V").concat(n,"Q").concat(t*.75," ").concat(e*.63," ").concat(t*.5," ").concat(n,"Q").concat(t*.25," ").concat(e*1.07," 0 ").concat(n,"Z")}function Wk(t,e){return{x:Ir.padX,y:Ir.textTop,width:t-2*Ir.padX,height:Math.max(0,e*Ir.waveTop-Ir.textTop-Ir.padBottom)}}function fd(t=[]){return t.map((e,n)=>"".concat(n===0?"M":"L").concat(e.x," ").concat(e.y)).join("")}function yd(t){return Zh(gd,t)}function Zh(t,e){let n={};for(let[r,i]of Object.entries(e??{}))i!==void 0&&(n[r]=i);let o={...t};if(typeof n.stroke=="string")for(let r of Yh)o[r]=n.stroke;return typeof n.fill=="string"&&(o.taskFill=n.fill),Object.assign(o,n),n.docLink===void 0&&n.link!==void 0&&(o.docLink=o.link),n.laneHeaderFill===void 0&&n.laneFill!==void 0&&(o.laneHeaderFill=o.laneFill),n.taskFillEnd===void 0&&typeof o.taskFill=="string"&&o.taskFill!==t.taskFill&&(o.taskFillEnd=vR(o.taskFill,.95)),o}var yR,Wn,Ir,Gk,gd,Yh,Jh=gn(()=>{"use strict";hd();yR=new Set(["bpmn:StartEvent","bpmn:EndEvent","bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"]);Wn={minWidth:80,height:30,overlap:10,gap:4,font:12,chrome:31,margin:10};Ir={band:15,textTop:20,waveTop:.74,padX:6,padBottom:4};Gk=Object.freeze({fontFamily:"system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif",fontSize:12,strokeWidth:1,stroke:"#333333",fill:"#ffffff",text:"#222222",labelText:"#22242a",headerText:"#222222",flow:"#333333",link:"#666666",docLink:"#666666",docLinkDash:"5 5",dataLinkArrow:!0,taskLine:"#333333",taskFill:"#ffffff",taskFillEnd:"#f2f2f2",eventLine:"#333333",eventFill:"#e4e9ef",gatewayLine:"#333333",gatewayFill:"#d9e2ec",poolLine:"#333333",poolFill:"#efefef",laneLine:"#333333",laneFill:"#f6f6f6",laneHeaderFill:"#f6f6f6",externalLine:"#333333",externalFill:"#f3f1e7",docLine:"#333333",docFill:"#f7f3e3",dataLine:"#333333",dataFill:"#f5f5f5",appLine:"#333333",appFill:"#e8eef7"}),gd=Object.freeze({fontFamily:"system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif",fontSize:12,strokeWidth:1,stroke:"#000000",fill:"#ffffff",text:"#000000",labelText:"#22242a",headerText:"#595959",flow:"#000000",link:"#b85450",docLink:"#b85450",docLinkDash:"5 5",dataLinkArrow:!1,taskLine:"#000000",taskFill:"#f6f1ea",taskFillEnd:"#ECE2D4",eventLine:"#000000",eventFill:"#E27676",gatewayLine:"#000000",gatewayFill:"#60BE89",poolLine:"#000000",poolFill:"#eee7df",laneLine:"#000000",laneFill:"#f6f6f6",laneHeaderFill:"#ffffff",externalLine:"#000000",externalFill:"#ffff99",docLine:"#000000",docFill:"#ffe599",dataLine:"#000000",dataFill:"#f6f1ea",appLine:"#000000",appFill:"#99ffff"}),Yh=["flow","taskLine","eventLine","gatewayLine","poolLine","laneLine","externalLine","docLine","dataLine","appLine"]});var Xk={};Ii(Xk,{DEFAULT_LEGEND_TOKENS:()=>gd,LEGEND_ACTION_IDS:()=>kR,legendProfile:()=>zR,resolveLegendTokens:()=>yd});function SR(t){return!!t&&(t.$type==="bpmn:DataInput"||t.$type==="bpmn:DataOutput")}function TR(t){let e=t.$parent;if(e&&typeof e.get=="function"){for(let n of["dataInputs","dataOutputs"]){let o=e.get(n);if(Array.isArray(o)){let r=o.indexOf(t);r>=0&&o.splice(r,1)}}for(let[n,o]of[["inputSets","dataInputRefs"],["outputSets","dataOutputRefs"]])for(let r of e.get(n)??[]){let i=r.get(o),a=Array.isArray(i)?i.indexOf(t):-1;a>=0&&i.splice(a,1)}}t.$parent=null}function CR(t){let e=t;if(e&&e.$type==="bpmn:Participant"&&e.processRef)return e.processRef;for(;e;){if(e.$type==="bpmn:Process"||e.$type==="bpmn:SubProcess")return e;e=e.$parent}return null}function qk(t){let e=t?.businessObject;return!!e&&e.$type==="bpmn:TextAnnotation"&&ys(typeof e.text=="string"?e.text:"")}function Ic(t){return!!t?.businessObject&&y(t,"bpmn:Activity")}function Kk(t){let e=[];for(let n of[...t.incoming??[],...t.outgoing??[]]){if(n.type!=="bpmn:Association")continue;let o=n.source===t?n.target:n.source;o&&e.push(o)}return e}function ef(t){return Ic(t)?Kk(t).filter(qk):[]}function tf(t){return!!t&&qk(t)&&Kk(t).some(Ic)}function AR(t){return t.waypoints?t.type==="bpmn:Association"&&(tf(t.source)&&Ic(t.target)||tf(t.target)&&Ic(t.source)):tf(t)}function vd(t){let e=t.businessObject;if(!e)return;let n={};return(e.$type==="bpmn:SubProcess"||e.$type==="bpmn:Participant")&&(n.expanded=!!Ot(t,Tt(t))),(e.$type==="bpmn:Participant"||e.$type==="bpmn:Lane")&&(n.horizontal=!!Re(t)),qh(e,n)}function zR(t){return{id:"legend",modelerModules:[Vk,$R,RR],viewerModules:[Vk],tokens:yd(t)}}var xR,Uk,kR,wR,_R,ER,BR,RR,MR,Qh,PR,DR,jR,Vk,$R,Yk=gn(()=>{"use strict";Er();hd();ja();Jh();Is();bm();xR={"legend.start":"bpmn-icon-start-event-none","legend.end":"bpmn-icon-end-event-none","legend.intermediate-event":"bpmn-icon-intermediate-event-none","legend.task":"bpmn-icon-task","legend.subprocess":"bpmn-icon-subprocess-collapsed","legend.external-process":"bpmn-icon-call-activity","legend.gateway-or":"bpmn-icon-gateway-xor","legend.gateway-and":"bpmn-icon-gateway-parallel","legend.data-input":"bpmn-icon-data-object","legend.data-output":"bpmn-icon-data-object","legend.external-input":"bpmn-icon-data-input","legend.process-output":"bpmn-icon-data-output","legend.document":"bpmn-icon-text-annotation","legend.application":"bpmn-icon-text-annotation","legend.lane":"bpmn-icon-lane-insert-below","legend.sequence-flow":"bpmn-icon-connection-multi"},Uk=[{id:"legend.start",title:"Start",bpmnType:"bpmn:StartEvent",group:"events"},{id:"legend.end",title:"End",bpmnType:"bpmn:EndEvent",group:"events"},{id:"legend.intermediate-event",title:"Intermediate event",bpmnType:"bpmn:IntermediateThrowEvent",group:"events"},{id:"legend.task",title:"Task",bpmnType:"bpmn:Task",group:"activities"},{id:"legend.subprocess",title:"Sub-process (collapsed)",bpmnType:"bpmn:SubProcess",group:"activities",preset:{collapsed:!0}},{id:"legend.external-process",title:"External process",bpmnType:"bpmn:CallActivity",group:"activities"},{id:"legend.gateway-or",title:"Gateway OR",bpmnType:"bpmn:ExclusiveGateway",group:"gateways",preset:{subtype:"or"}},{id:"legend.gateway-and",title:"Gateway AND",bpmnType:"bpmn:ParallelGateway",group:"gateways",preset:{subtype:"and"}},{id:"legend.data-input",title:"Task input",bpmnType:"bpmn:DataObjectReference",group:"data",preset:{name:"Input"}},{id:"legend.data-output",title:"Task output",bpmnType:"bpmn:DataObjectReference",group:"data",preset:{name:"Output"}},{id:"legend.external-input",title:"External input",bpmnType:"bpmn:DataInput",group:"data",preset:{name:"External input"}},{id:"legend.process-output",title:"Process output",bpmnType:"bpmn:DataOutput",group:"data",preset:{name:"Process output"}},{id:"legend.document",title:"Document reference",bpmnType:"bpmn:TextAnnotation",group:"annotations",preset:{text:"[Doc] "}},{id:"legend.application",title:"Application",bpmnType:"bpmn:TextAnnotation",group:"annotations",preset:{text:"[App] "}},{id:"legend.lane",title:"Lane",bpmnType:"bpmn:Lane",group:"structure"},{id:"legend.sequence-flow",title:"Sequence flow",bpmnType:"bpmn:SequenceFlow",group:"flows",tool:"connect"}],kR=Object.freeze(Uk.map(t=>t.id)),wR=class{static $inject=["palette","create","elementFactory","globalConnect"];create;elementFactory;globalConnect;constructor(t,e,n,o){this.create=e,this.elementFactory=n,this.globalConnect=o,t.registerProvider(this)}getPaletteEntries(){let t={};for(let e of Uk)t[e.id]={group:e.group,className:xR[e.id]??"bpmn-icon-task",title:"Create ".concat(e.title),action:{dragstart:n=>this.startCreate(n,e),click:n=>this.startCreate(n,e)}};return t}startCreate(t,e){if(e.tool==="connect"){this.globalConnect.start(t);return}let n={type:e.bpmnType};e.preset?.name&&(n.name=e.preset.name),e.preset?.text&&(n.text=e.preset.text),e.preset?.collapsed&&(n.isExpanded=!1);let o=this.elementFactory.createShape(n);e.preset?.name&&(o.businessObject.name=e.preset.name),this.create.start(t,o)}},_R=["bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"],ER=class{static $inject=["eventBus"];constructor(t){let e=n=>{let o=n.context?.shapes??(n.context?.shape?[n.context.shape]:[]),r=n.context?.target;if(o.length===1&&(y(o[0],"bpmn:DataInput")||y(o[0],"bpmn:DataOutput"))&&_R.some(i=>y(r,i)))return!0};t.on("commandStack.shape.create.canExecute",1500,e),t.on("commandStack.elements.create.canExecute",1500,e)}};BR=class extends xn{static $inject=xn.$inject;bpmnFactory;created=new WeakSet;constructor(t,e,n){super(t,e,n),this.bpmnFactory=e}updateSemanticParent(t,e,n){if(!SR(t)){super.updateSemanticParent(t,e,n);return}let o=t.$parent;if(TR(t),this.dropEmptySpecification(o),!e)return;let r=CR(e);if(!r)return;let i=r.ioSpecification;i||(i=this.bpmnFactory.create("bpmn:InputOutputSpecification"),r.set("ioSpecification",i),i.$parent=r,this.created.add(i)),this.ensureSets(i);let a=t.$type==="bpmn:DataInput";i.get(a?"dataInputs":"dataOutputs").push(t),t.$parent=i,i.get(a?"inputSets":"outputSets")[0]?.get(a?"dataInputRefs":"dataOutputRefs").push(t)}dropEmptySpecification(t){if(!t||!this.created.has(t))return;let e=t.get("dataInputs").length===0&&t.get("dataOutputs").length===0&&[...t.get("inputSets"),...t.get("outputSets")].every(o=>(o.get("dataInputRefs")?.length??0)+(o.get("dataOutputRefs")?.length??0)+(o.get("optionalInputRefs")?.length??0)+(o.get("optionalOutputRefs")?.length??0)+(o.get("whileExecutingInputRefs")?.length??0)+(o.get("whileExecutingOutputRefs")?.length??0)===0),n=t.$parent;e&&n&&n.ioSpecification===t&&(n.set("ioSpecification",void 0),t.$parent=null)}ensureSets(t){for(let[e,n]of[["inputSets","bpmn:InputSet"],["outputSets","bpmn:OutputSet"]]){let o=t.get(e);if(o.length===0){let r=this.bpmnFactory.create(n);r.$parent=t,o.push(r)}}}},RR={__init__:["paletteProvider","legendRules"],paletteProvider:["type",wR],legendRules:["type",ER],bpmnUpdater:["type",BR]},MR=1500,Qh="legend-no-colour";PR=class extends qn{static $inject=["eventBus","textRenderer","canvas","config.bpmnCanvas","bpmnRenderer"];upstream;textRenderer;canvas;instanceId;tokens;constructor(t,e,n,o,r){super(t,MR),this.upstream=r,this.textRenderer=e,this.canvas=n,this.instanceId=o?.instanceId??"legend-".concat(Math.random().toString(36).slice(2,8)),this.tokens=o?.legend??yd()}get arrowId(){return"".concat(this.instanceId,"-legend-arrow")}get gradientId(){return"".concat(this.instanceId,"-legend-task-gradient")}canRender(t){let e=t;return e.type==="label"?this.recolorsLabels&&!!e.businessObject:e.businessObject?e.waypoints?this.connectionKind(e)!==void 0:vd(t)!==void 0:!1}endsOnDocument(t){return[t.source,t.target].some(e=>e?.businessObject&&qh(e.businessObject)==="document")}connectionKind(t){let e=Hk(t.businessObject);return e===void 0&&t.businessObject?.$type==="bpmn:Association"&&this.endsOnDocument(t)?"link":e}get recolorsLabels(){return this.tokens.labelText!==gd.labelText}drawConnection(t,e){let n=e,o=this.connectionKind(n),r=this.tokens,i=et("path");if(o==="sequence")U(i,{d:fd(n.waypoints),fill:"none",stroke:st(n,r.flow),"stroke-width":r.strokeWidth,"stroke-linejoin":"round","marker-end":"url(#".concat(this.arrowMarker(st(n,r.flow)),")")}),ut(i).add("legend-flow");else{let a=this.endsOnDocument(n),s=st(n,a?r.docLink:r.link);U(i,{d:fd(n.waypoints),fill:"none",stroke:s,"stroke-width":r.strokeWidth,"stroke-dasharray":a?r.docLinkDash:"5 5",...o==="data-link"&&r.dataLinkArrow?{"marker-end":"url(#".concat(this.arrowMarker(s),")")}:{}}),ut(i).add("legend-link")}return it(t,i),i}drawLabel(t,e){let n=this.upstream.drawShape(t,e),o=!1;try{o=!!Tt(e.labelTarget??e).get("label")?.get("color:color")}catch{}if(!o)for(let r of Pa(t,"text")){U(r,{fill:this.tokens.labelText});for(let i of Pa(r,"tspan"))i.style.fill&&U(i,{fill:this.tokens.labelText})}return n}getConnectionPath(t){return fd(t.waypoints)}drawShape(t,e){if(e.type==="label")return this.drawLabel(t,e);let n=et("g");return ut(n).add("legend-shape"),it(t,n),this.draw(n,e),n}draw(t,e){let n=vd(e);if(!n)return;let o=this.tokens,r=this.defaultFill(n),i=$t(e,Qh),a=i===Qh?r:i,s=st(e,this.lineFor(n)),c=o.strokeWidth,l=e.width,p=e.height;switch(n){case"task":case"subprocess":{let d=et("rect"),m=i===Qh?"url(#".concat(this.taskGradient(),")"):a;U(d,{x:0,y:0,width:l,height:p,rx:10,fill:m,stroke:s,"stroke-width":c}),ut(d).add("legend-task"),it(t,d),n==="subprocess"&&this.subprocessMarker(t,l,p,s),this.label(t,e,a,s,l,p),this.drawApps(t,e);break}case"external":{let d=et("rect");U(d,{x:0,y:0,width:l,height:p,rx:10,fill:a,stroke:s,"stroke-width":c}),it(t,d);let m=et("path");U(m,{d:"M".concat(l-24," 9h9v-3l6 5l-6 5v-3h-9Z"),fill:"none",stroke:s,"stroke-width":c,"pointer-events":"all","data-marker":"process-icon"}),ut(m).add("legend-process-icon"),ut(m).add("legend-marker"),it(t,m),this.label(t,e,a,s,l,p),this.drawApps(t,e);break}case"event":{let d=l/2,m=p/2,u=Math.min(l,p)/2,h=y(e,"bpmn:EndEvent"),f=y(e,"bpmn:StartEvent"),g=et("circle");if(U(g,{cx:d,cy:m,r:h?u-1.5:u,fill:a,stroke:s,"stroke-width":h?3*c:c}),it(t,g),!h&&!f){let x=et("circle");U(x,{cx:d,cy:m,r:Math.max(1,u-3),fill:"none",stroke:s,"stroke-width":c}),it(t,x)}break}case"gateway":this.diamond(t,l,p,a,s,c),this.gatewayMarker(t,e,l,p,s);break;case"data":this.dataPage(t,l,p,a,s);break;case"input":case"output":{this.dataPage(t,l,p,a,s);let d=et("path");U(d,{d:"M4 7h6v-3l6 5l-6 5v-3h-6Z",fill:n==="output"?s:"none",stroke:s,"stroke-width":1.2}),ut(d).add(n==="output"?"legend-output":"legend-input"),it(t,d);break}case"document":{let d=et("path");U(d,{d:Xh(l,p),fill:a,stroke:s,"stroke-width":c}),it(t,d);let m=et("line");U(m,{x1:0,y1:Ir.band,x2:l,y2:Ir.band,stroke:s,"stroke-width":c}),it(t,m);let u=Wk(l,p),h=this.textRenderer.createText(ud(e.businessObject?.text),{box:{width:u.width,height:u.height},align:"center-top",padding:0,style:{fill:ir(e,o.text,s),fontSize:Math.max(8,o.fontSize-1),fontFamily:o.fontFamily,lineHeight:1.2}});U(h,{transform:"translate(".concat(u.x," ").concat(u.y,")")}),ut(h).add("djs-label"),it(t,h);break}case"application":this.appBox(t,{name:ud(e.businessObject?.text),x:0,y:0,width:l,height:p},a,s);break;case"lane":{let d=et("rect");U(d,{x:0,y:0,width:l,height:p,fill:"none",stroke:s,"stroke-width":c}),it(t,d);let m=et("rect");U(m,{x:0,y:0,width:40,height:p,fill:o.laneHeaderFill,stroke:s,"stroke-width":c}),ut(m).add("legend-lane-header"),it(t,m),this.verticalHeader(t,e,p,40,o.fontSize+2);break}case"pool":{let d=et("rect");U(d,{x:0,y:0,width:l,height:p,fill:"none",stroke:s,"stroke-width":c}),it(t,d);let m=et("rect");U(m,{x:0,y:0,width:30,height:p,fill:a,stroke:s,"stroke-width":c}),ut(m).add("legend-pool-strip"),it(t,m),this.verticalHeader(t,e,p,30,o.fontSize+2);break}}}defaultFill(t){let e=this.tokens;switch(t){case"task":case"subprocess":return e.taskFill;case"external":case"input":case"output":return e.externalFill;case"event":return e.eventFill;case"gateway":return e.gatewayFill;case"data":return e.dataFill;case"document":return e.docFill;case"application":return e.appFill;case"lane":return e.laneFill;case"pool":return e.poolFill}}lineFor(t){let e=this.tokens;switch(t){case"task":case"subprocess":return e.taskLine;case"external":case"input":case"output":return e.externalLine;case"event":return e.eventLine;case"gateway":return e.gatewayLine;case"data":return e.dataLine;case"document":return e.docLine;case"application":return e.appLine;case"lane":return e.laneLine;case"pool":return e.poolLine}}drawApps(t,e){let n=ef(e);if(n.length===0)return;let o=n.map(a=>ud(a.businessObject?.text)),r=n.length===1?n[0]:null,i=r?{x:(r.x??0)-(e.x??0),y:(r.y??0)-(e.y??0)}:null;(r&&i&&i.y>=e.height-20&&i.y<=e.height+5&&i.x>=-5&&i.x+r.width<=e.width+5?[{name:o[0],x:i.x,y:i.y,width:r.width,height:r.height}]:Fk(o,e.width,e.height)).forEach((a,s)=>{let c=n[s];this.appBox(t,a,$t(c,this.tokens.appFill),st(c,this.tokens.appLine))})}appBox(t,e,n,o){let r=this.tokens,i=et("g");ut(i).add("legend-app"),U(i,{transform:"translate(".concat(e.x," ").concat(e.y,")")});let a=et("rect");U(a,{x:0,y:0,width:e.width,height:e.height,fill:n,stroke:o,"stroke-width":r.strokeWidth}),it(i,a);let s=e.width-17,c=et("path");U(c,{d:"M".concat(s+3," 5h9v12h-9ZM").concat(s," 7.5h6v2.5h-6ZM").concat(s," 12h6v2.5h-6Z"),fill:n,stroke:o,"stroke-width":r.strokeWidth}),it(i,c);let l=this.textRenderer.createText(e.name,{box:{width:Math.max(10,e.width-27),height:e.height},align:"right-middle",padding:2,style:{fill:Kh(n,r.text,r.fill),fontSize:r.fontSize,fontFamily:r.fontFamily,fontWeight:700}});U(l,{transform:"translate(5 0)"}),ut(l).add("djs-label"),it(i,l),it(t,i)}defsFor(t){let e=this.canvas?._svg;if(!e||e.querySelector('[id="'.concat(t,'"]')))return null;let n=e.querySelector(":scope > defs");return n||(n=et("defs"),it(e,n)),n}arrowMarker(t){let e=t===this.tokens.flow?this.arrowId:"".concat(this.arrowId,"-").concat(t.replace(/[^0-9a-zA-Z]/g,"")),n=this.defsFor(e);if(!n)return e;let o=et("marker");U(o,{id:e,viewBox:"0 0 10 10",refX:"9.5",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto"});let r=et("path");return U(r,{d:"M0 0L10 5L0 10L2.5 5Z",fill:t,stroke:"none"}),it(o,r),it(n,o),e}taskGradient(){let t=this.gradientId,e=this.defsFor(t);if(!e)return t;let n=et("linearGradient");U(n,{id:t,x1:"0",y1:"0",x2:"1",y2:"0"});for(let[o,r]of[["0",this.tokens.taskFill],["1",this.tokens.taskFillEnd]]){let i=et("stop");U(i,{offset:o,"stop-color":r}),it(n,i)}return it(e,n),t}label(t,e,n,o,r,i){let a=this.tokens,s=ef(e).length?Wn.overlap:0,c=this.textRenderer.createText(e.businessObject?.name||"",{box:{width:r,height:i-s},align:"center-middle",padding:7,style:{fill:ir(e,Kh(n,a.text,a.fill),o),fontSize:a.fontSize,fontFamily:a.fontFamily}});ut(c).add("djs-label"),it(t,c)}verticalHeader(t,e,n,o,r){let i=this.tokens,a=e.businessObject?.name||"",s=this.textRenderer.createText(a,{box:{width:n,height:o},align:"center-middle",padding:6,style:{fill:ir(e,i.headerText),fontSize:r,fontFamily:i.fontFamily,fontWeight:700}});U(s,{transform:"translate(0 ".concat(n,") rotate(-90)")}),ut(s).add("djs-label"),it(t,s)}subprocessMarker(t,e,n,o){let r=et("g");ut(r).add("legend-subprocess-marker"),ut(r).add("legend-marker"),U(r,{"data-marker":"sub-process","pointer-events":"all"});let i=et("rect");U(i,{x:e/2-7,y:n-18,width:14,height:14,fill:"transparent",stroke:o,"stroke-width":1.2,"pointer-events":"all"}),ut(i).add("legend-marker"),it(r,i);let a=et("path");U(a,{d:"M".concat(e/2-4," ").concat(n-11,"h8M").concat(e/2," ").concat(n-15,"v8"),stroke:o,"stroke-width":1.2,"pointer-events":"all"}),ut(a).add("legend-marker"),it(r,a),it(t,r)}diamond(t,e,n,o,r,i){let a=e/2,s=n/2,c=et("path");U(c,{d:"M".concat(a," 0L").concat(e," ").concat(s,"L").concat(a," ").concat(n,"L0 ").concat(s,"Z"),fill:o,stroke:r,"stroke-width":i}),it(t,c)}gatewayMarker(t,e,n,o,r){let i=n/2,a=o/2,s=y(e,"bpmn:ParallelGateway"),c=et("path");U(c,{d:s?"M".concat(i-10," ").concat(a,"h20M").concat(i," ").concat(a-10,"v20"):"M".concat(i-8," ").concat(a-8,"l16 16M").concat(i+8," ").concat(a-8,"l-16 16"),stroke:r,"stroke-width":5*this.tokens.strokeWidth,"stroke-linecap":"butt"}),it(t,c)}dataPage(t,e,n,o,r){let i=this.tokens.strokeWidth,a=et("path"),s=Math.round(Math.min(e,n)*.2);U(a,{d:"M0 0h".concat(e-s,"l").concat(s," ").concat(s,"v").concat(n-s,"h-").concat(e,"Z"),fill:o,stroke:r,"stroke-width":i}),ut(a).add("legend-data-page"),it(t,a);let c=et("path");U(c,{d:"M".concat(e-s," 0v").concat(s,"h").concat(s),fill:"none",stroke:r,"stroke-width":i}),ut(c).add("legend-data-fold"),it(t,c)}getShapePath(t){let e=t,n=vd(t),o=e.width,r=e.height;if(n==="event"){let i=Math.min(o,r)/2,a=o/2,s=r/2;return"M".concat(a-i," ").concat(s,"a").concat(i," ").concat(i," 0 1 0 ").concat(2*i," 0a").concat(i," ").concat(i," 0 1 0 ").concat(-2*i," 0Z")}return n==="gateway"?"M".concat(o/2," 0L").concat(o," ").concat(r/2,"L").concat(o/2," ").concat(r,"L0 ").concat(r/2,"Z"):n==="document"?Xh(o,r):"M0 0h".concat(o,"v").concat(r,"h-").concat(o,"Z")}},DR=class{static $inject=["eventBus","elementRegistry","graphicsFactory"];registry;graphicsFactory;constructor(t,e,n){this.registry=e,this.graphicsFactory=n,t.on("import.render.complete",()=>this.refresh(!0)),t.on("elements.changed",500,()=>this.refresh(!1))}refresh(t){for(let e of this.registry.getAll()){if(e.type==="label"||!e.parent)continue;let n=this.registry.getGraphics(e);if(!n)continue;let o=AR(e),r=!!e.hidden!==o;e.hidden=o;let i=vd(e),a=!e.waypoints&&(Ic(e)||i==="data"||i==="input"||i==="output");if(t||a||r)try{this.graphicsFactory.update(e.waypoints?"connection":"shape",e,n)}catch{}}}},jR=class{static $inject=["eventBus"];constructor(t){new q(t).preExecute("elements.move",e=>{let n=e.context.shapes;for(let o of[...n])for(let r of ef(o))n.includes(r)||n.push(r)})}},Vk={__init__:["legendRenderer","legendSync"],legendRenderer:["type",PR],legendSync:["type",DR]},$R={__init__:["legendAppFollow"],legendAppFollow:["type",jR]}});var tw={};Ii(tw,{DEFAULT_COLORED_TOKENS:()=>Qk,coloredProfile:()=>WR,resolveColoredTokens:()=>nf});function nf(t){let e=Zh(Qk,t);return t?.labelText===void 0?{...e,labelText:e.text}:e}function OR(t){return Object.values(t??{}).some(e=>e!==void 0)}function LR(t){let e=new Set;for(let[n,o]of Object.entries(t??{}))o!==void 0&&e.add(n);if(e.has("stroke"))for(let n of Yh)e.add(n);return e.has("fill")&&e.add("taskFill"),e.has("text")&&e.add("labelText"),[...e]}function Zk(t){if(t?.businessObject){if(t.labelTarget)return"label";if(y(t,"bpmn:Participant"))return"pool";if(y(t,"bpmn:Lane"))return"lane";if(y(t,"bpmn:Event"))return"event";if(y(t,"bpmn:Gateway"))return"gateway";if(y(t,"bpmn:CallActivity"))return"external";if(y(t,"bpmn:Activity"))return"task";if(y(t,"bpmn:DataInput")||y(t,"bpmn:DataOutput"))return"external";if(y(t,"bpmn:DataObjectReference")||y(t,"bpmn:DataStoreReference")||y(t,"bpmn:DataObject"))return"data";if(y(t,"bpmn:TextAnnotation")){let e=t.businessObject.text;return IR(e)?"doc":HR(e)?"app":"annotation"}if(y(t,"bpmn:SequenceFlow")||y(t,"bpmn:MessageFlow"))return"flow";if(y(t,"bpmn:Association")||y(t,"bpmn:DataAssociation"))return"link"}}function bd(t,e){try{let n=Tt(t);return e==="fill"?!!(n.get("color:background-color")||n.get("bioc:fill")):e==="stroke"?!!(n.get("color:border-color")||n.get("bioc:stroke")):!!n.get("label")?.get("color:color")}catch{return!1}}function WR(t){return OR(t)?{id:"colored",modelerModules:[Jk],viewerModules:[Jk],tokens:nf(t),named:LR(t)}:{id:"colored",modelerModules:[],viewerModules:[]}}var Qk,NR,IR,HR,FR,Jk,ew=gn(()=>{"use strict";Er();ja();Jh();Qk=Gk;NR=1500,IR=t=>/^\s*\[Doc\]/.test(typeof t=="string"?t:""),HR=t=>/^\s*\[App\]/.test(typeof t=="string"?t:"");FR={task:{fill:"taskFill",stroke:"taskLine"},event:{fill:"eventFill",stroke:"eventLine"},gateway:{fill:"gatewayFill",stroke:"gatewayLine"},pool:{fill:"poolFill",stroke:"poolLine"},lane:{fill:"laneFill",stroke:"laneLine"},external:{fill:"externalFill",stroke:"externalLine"},doc:{stroke:"docLine"},app:{stroke:"appLine"},data:{fill:"dataFill",stroke:"dataLine"},annotation:{stroke:"stroke"},flow:{stroke:"flow"},link:{stroke:"link"}},Jk={__init__:["coloredRenderer"],coloredRenderer:["type",class extends qn{static $inject=["eventBus","bpmnRenderer","config.bpmnCanvas"];upstream;tokens;named;constructor(t,e,n){super(t,NR),this.upstream=e,this.tokens=n?.colored??nf(),this.named=n?.coloredNamed?new Set(n.coloredNamed):void 0}canRender(t){return!!t?.businessObject&&y(t,"bpmn:BaseElement")}isNamed(t){return this.named===void 0||this.named.has(t)}coloursOf(t,e){let n=this.tokens,o;switch(t){case"task":o={stroke:n.taskLine,fill:n.taskFill};break;case"event":o={stroke:n.eventLine,fill:n.eventFill};break;case"gateway":o={stroke:n.gatewayLine,fill:n.gatewayFill};break;case"pool":o={stroke:n.poolLine,fill:n.poolFill};break;case"lane":o={stroke:n.laneLine,fill:n.laneFill};break;case"external":o={stroke:n.externalLine,fill:n.externalFill};break;case"doc":o={stroke:n.docLine};break;case"app":o={stroke:n.appLine};break;case"data":o={stroke:n.dataLine,fill:n.dataFill};break;case"annotation":o={stroke:n.stroke};break;case"flow":o={stroke:n.flow};break;case"link":o={stroke:n.link};break;default:o={}}let r=FR[t??"label"];return r&&(r.fill&&!this.isNamed(r.fill)&&delete o.fill,r.stroke&&!this.isNamed(r.stroke)&&delete o.stroke),o.fill!==void 0&&bd(e,"fill")&&delete o.fill,o.stroke!==void 0&&bd(e,"stroke")&&delete o.stroke,o}finish(t,e,n){if(!n||n==="flow"||n==="link")return;let o=this.tokens,r=n==="pool"||n==="lane"?"headerText":n==="label"?"labelText":"text";if(this.isNamed(r)&&!bd(e,"label")){let i=o[r];for(let a of Pa(t,"text")){U(a,{fill:i});for(let s of Pa(a,"tspan"))s.style.fill&&U(s,{fill:i})}}if((n==="doc"||n==="app")&&this.isNamed(n==="doc"?"docFill":"appFill")&&!bd(e,"fill")){let i=uy(t,"rect");i&&U(i,{fill:n==="doc"?o.docFill:o.appFill})}}drawShape(t,e,n={}){let o=Zk(e),r=this.upstream.drawShape(t,e,{...this.coloursOf(o,e),...n});return this.finish(t,e,o),r}drawConnection(t,e,n={}){let o=Zk(e);return this.upstream.drawConnection(t,e,{...this.coloursOf(o,e),...n})}}]}});var Cw={};Ii(Cw,{AutoLayoutHandler:()=>Sw,BpmnCanvasLayout:()=>Tw,BpmnCanvasLayoutModule:()=>WM,layoutChanges:()=>_w,processesByParticipant:()=>Ew});function GR(t){return!!t.sourceRef}function df(t){return!!t.attachedToRef}function fw(t,e,n=new Set){if(t===e)return!0;if(n.has(t)||(n.add(t),!t.outgoing||t.outgoing.length===0))return!1;for(let o of t.outgoing.map(r=>r.targetRef))if(fw(o,e,n))return!0;return!1}function gw(t){return Bn(t,"bpmn:SubProcess")||Bn(t,"bpmn:Task")?{width:of,height:wd}:Bn(t,"bpmn:Gateway")?{width:50,height:50}:Bn(t,"bpmn:Event")?{width:36,height:36}:Bn(t,"bpmn:Participant")||Bn(t,"bpmn:Lane")?{width:400,height:100}:Bn(t,"bpmn:DataObjectReference")?{width:36,height:50}:Bn(t,"bpmn:DataStoreReference")?{width:50,height:50}:Bn(t,"bpmn:TextAnnotation")?{width:of,height:30}:{width:of,height:wd}}function Bn(t,e){return t.$instanceOf(e)}function mf(t){return{x:t.x+t.width/2,y:t.y+t.height/2}}function on(t,e,n="r",o="top-left"){if(n==="h"&&(n=/left/.test(o)?"l":"r"),n==="v"&&(n=/top/.test(o)?"t":"b"),n==="t")return{original:t,x:t.x,y:e.y};if(n==="r")return{original:t,x:e.x+e.width,y:t.y};if(n==="b")return{original:t,x:t.x,y:e.y+e.height};if(n==="l")return{original:t,x:e.x,y:t.y};throw Error("unexpected dockingDirection: <"+n+">")}function yw(t,e,n){let o=t.di,r=e.di,i=o.get("bounds"),a=r.get("bounds"),s=mf(i),c=mf(a),l=e.gridPosition.col-t.gridPosition.col,p=e.gridPosition.row-t.gridPosition.row,d="".concat(p>0?"bottom":"top","-").concat(l>0?"right":"left"),m="".concat(p>0?"top":"bottom","-").concat(l>0?"left":"right"),u=t.grid||t.attachedToRef?.grid,h=e.grid;if(l===0&&p===0){let{x,y:k}=rf(t.gridPosition.row,t.gridPosition.col);return[on(s,i,"r",d),{x:u?x+(u.getGridDimensions()[1]+1)*ln:x+ln,y:s.y},{x:u?x+(u.getGridDimensions()[1]+1)*ln:x+ln,y:k},{x:c.x,y:k},on(c,a,"t",m)]}if(l<0){let{y:x}=rf(t.gridPosition.row,t.gridPosition.col),k=ie/2;if(s.y>=c.y){let _=UR(t,e,n);return _?[on(s,i,"b"),{x:s.x,y:u?x+(u.getGridDimensions()[0]+1)*ie:x+ie+_*ie},{x:c.x,y:u?x+(u.getGridDimensions()[0]+1)*ie:x+ie+_*ie},on(c,a,"b")]:[on(s,i,"b"),{x:s.x,y:u?x+(u.getGridDimensions()[0]+1)*ie:x+ie},{x:c.x,y:u?x+(u.getGridDimensions()[0]+1)*ie:x+ie},on(c,a,"b")]}{let _=s.y-k;return[on(s,i,"t"),{x:s.x,y:_},{x:c.x,y:_},on(c,a,"t")]}}if(p===0){if(nw(t,e,n)){let{y:x}=rf(t.gridPosition.row,t.gridPosition.col);return[on(s,i,"b"),{x:s.x,y:u?x+(u.getGridDimensions()[0]+1)*ie:x+ie},{x:c.x,y:u?x+(u.getGridDimensions()[0]+1)*ie:x+ie},on(c,a,"b")]}{let x=on(s,i,"h",d),k=on(c,a,"h",m);return u&&(x.y=i.y+wd/2),h&&(k.y=a.y+wd/2),[x,k]}}if(l===0){if(nw(t,e,n)){let x=-Math.sign(p)*ie/2;return[on(s,i,"r"),{x:s.x+ln/2,y:s.y},{x:c.x+ln/2,y:c.y+x},{x:c.x,y:c.y+x},on(c,a,Math.sign(x)>0?"b":"t")]}return[on(s,i,"v",d),on(c,a,"v",m)]}let f=VR(t,e,n);if(f){let x=on(s,i,f[0],d),k=on(c,a,f[1],m);return[x,f[0]==="h"?{x:k.x,y:x.y}:{x:x.x,y:k.y},k]}let g=-Math.sign(p)*ie/2;return[on(s,i,"r",d),{x:s.x+ln/2,y:s.y},{x:s.x+ln/2,y:c.y+g},{x:c.x-ln/2,y:c.y+g},{x:c.x-ln/2,y:c.y},on(c,a,"l",m)]}function rf(t,e){return{width:ln,height:ie,x:e*ln,y:t*ie}}function uf(t,e,n,o,r){let{width:i,height:a}=gw(t),{x:s,y:c}=o;if(!r)return{width:t.isExpanded?t.grid.getGridDimensions()[1]*ln+i:i,height:t.isExpanded?t.grid.getGridDimensions()[0]*ie+a:a,x:n*ln+(ln-i)/2+s,y:e*ie+(ie-a)/2+c};let l=r.di.bounds;return{width:i,height:a,x:Math.round(l.x+l.width/2-i/2),y:Math.round(l.y+l.height-a/2)}}function nw(t,e,n){let{row:o,col:r}=t.gridPosition,{row:i,col:a}=e.gridPosition,s=a-r,c=i-o,l=0;return s&&(l+=n.getElementsInRange({row:o,col:r},{row:o,col:a}).length),c&&(l+=n.getElementsInRange({row:o,col:a},{row:i,col:a}).length),l>2}function VR(t,e,n){let{row:o,col:r}=t.gridPosition,{row:i,col:a}=e.gridPosition,s=a-r,c=i-o;if(s>0&&c!==0){if(c>0){let l=0,p={row:i,col:r};return l+=n.getElementsInRange({row:o,col:r},p).length,l+=n.getElementsInRange(p,{row:i,col:a}).length,l>2?!1:["v","h"]}{let l=0,p={row:o,col:a};return l+=n.getElementsInRange({row:o,col:r},p).length,l+=n.getElementsInRange(p,{row:i,col:a}).length,l>2?!1:["h","v"]}}}function UR(t,e,n){let o=t.attachedToRef?t.attachedToRef:t,r=e.attachedToRef?e.attachedToRef:e,[i,a]=n.find(o),[,s]=n.find(r),c=a<s?a:s,l=a<s?s:a;return n.getAllElements().filter(p=>p.gridPosition.row===i&&p.gridPosition.col>c&&p.gridPosition.col<l).reduce((p,d)=>{if(d.grid?.getGridDimensions()[0]>p)return d.grid?.getGridDimensions()[0]},0)}function YR(t,e,n){let[o,r]=n.find(e);(n.get(o+1,r)||n.get(o+1,r+1))&&n.createRow(o),n.add(t,[o+1,r+1])}function ZR(t,e,[n,o]){let r=t.di.get("bounds"),i=on(mf(r),r,"b");if(e[0].x===i.x&&e[0].y===i.y)return;let a=t.grid||t.attachedToRef?.grid;if(e.length===2){let c=[i,{x:i.x,y:a?(n+a.getGridDimensions()[0]+1)*ie:(n+1)*ie},{x:a?(o+a.getGridDimensions()[1]+1)*ln:(o+1)*ln,y:a?(n+a.getGridDimensions()[0]+1)*ie:(n+1)*ie},{x:a?(o+a.getGridDimensions()[1]+1)*ln:(o+1)*ln,y:a?n*ie+ie/2:(n+.5)*ie}];e.splice(0,1,...c);return}let s=[i,{x:i.x,y:a?(n+a.getGridDimensions()[0]+1)*ie:(n+1)*ie},{x:e[1].x,y:a?(n+a.getGridDimensions()[0]+1)*ie:(n+1)*ie}];e.splice(0,1,...s)}function tM(t,e){let n=t.filter(o=>!Bn(o,e));return[...t.filter(o=>Bn(o,e)),...n]}function eM(t,e){for(let n of t.incoming)if(!e.has(n.sourceRef))return fw(t,n.sourceRef)}function nM(t,e){if(t.incoming.length>1){for(let n of t.incoming)if(!e.has(n.sourceRef))return!0}return!1}function oM(t){return t.every(e=>Bn(e,"bpmn:Task"))}function aM(t){t.filter(e=>df(e)).forEach(e=>{let n=e.attachedToRef,o=n.attachers||[];o.push(e),n.attachers=o})}function sM(t){let[e,n]=t.getGridDimensions();for(let o=n-1;o>=0;o--){let r=[];for(let a=0;a<e;a++){let s=t.get(a,o);s&&s.isExpanded&&r.push(s)}if(r.length===0)continue;let i=r.reduce((a,s)=>{let[,c]=s.grid.getGridDimensions();return a===void 0||c>a?c:a},void 0)||2;t.createCol(o,i)}}function cM(t){let[e,n]=t.getGridDimensions();for(let o=e-1;o>=0;o--){let r=[];for(let a=0;a<n;a++){let s=t.get(o,a);s&&s.isExpanded&&r.push(s)}if(r.length===0)continue;let i=r.reduce((a,s)=>{let[c]=s.grid.getGridDimensions();return a===void 0||c>a?c:a},void 0)||1;for(let a=0;a<i;a++)t.createRow(o)}}function lM(t){let e=t.incoming?.filter(o=>o.sourceRef!==t&&o.sourceRef.attachedToRef===void 0)||[],n=t.incoming?.filter(o=>o.sourceRef!==t&&o.sourceRef.attachedToRef!==t);return e?.length>0||n?.length>0}function pM(t){return new iM().layoutProcess(t)}function pw(t,e,n){let o=n.padX??8,r=n.padY??6,i=gr(t,e,n.bold)+2*o,a,s;i<=n.maxW?(a=Math.max(n.minW,i),s=1):(a=n.maxW,s=sa(t,e,n.maxW-2*o,n.bold).length);let c=Math.max(n.minH,s*e*bw+2*r+(n.extraH??0));return[Math.ceil(a),Math.ceil(c)]}function cf(t,e,n,o=!1){if(!(t??"").trim())return[0,0];let r=sa(t,e,n,o),i=Math.max(...r.map(a=>gr(a,e,o)));return[Math.ceil(Math.min(n,i)+4),Math.ceil(r.length*e*bw+2)]}function bM(t,e){let n=gr(t,bs,!0)+hf,o=Math.max(cw,e-2*kw),r=Math.trunc(Math.min(o,Math.max(cw,Math.ceil(n))));if(n<=r)return[r,lw];let i=sa(t,bs,r-hf,!0).length;return[r,Math.trunc(Math.max(lw,Math.ceil(i*bs*1.2+8)))]}function xM(t){let e=(t??"").split(/\s+/).filter(Boolean),n=e.length?Math.max(...e.map(o=>gr(o,bs,!0))):0;return Math.trunc(Math.ceil(n+hf+2*kw))}function kM(t){let e=sa(t,Hc,ww-2*gM).length*Hc*1.2;return Math.trunc(Math.max(50,Math.ceil((hM+e+yM)/fM)))}function wM(t){let e=(t.type||"TASK").trim().toUpperCase();return e in xw?e:"TASK"}function _M(t,e){let n=_d(t),o=String(t.app_label||""),r=o?Math.min(200,Math.max(120,xM(o))):120;return e==="TASK"||e==="SUB-PROCESS"?pw(n,bs,{minW:r,maxW:Math.max(200,r),minH:80,padX:8,padY:8,extraH:o?10:0}):e==="EXTERNAL_PROCESS"?pw(n,bs,{minW:Math.max(108,o?r:108),maxW:200,minH:62,padX:14,padY:8,extraH:10}):e==="DOCUMENT"?[ww,kM(n)]:xw[e]??[120,80]}function SM(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function TM(t,e){let n=new Map(t.map((a,s)=>[a.label,"n".concat(s)])),o=new Map([...n.values()].map(a=>[a,[]])),r=new Map([...n.values()].map(a=>[a,[]])),i=[];return e.forEach(([a,s],c)=>{let l=n.get(a),p=n.get(s);if(l&&p){let d="f".concat(c);r.get(l).push(d),o.get(p).push(d),i.push('<bpmn:sequenceFlow id="'.concat(d,'" sourceRef="').concat(l,'" targetRef="').concat(p,'"/>'))}}),{xml:'<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" id="d" targetNamespace="http://bpmn.io/schema/bpmn"><bpmn:process id="p" isExecutable="false">'+t.map(a=>{let s=n.get(a.label),c=(a.type||"TASK").trim().toUpperCase(),l=c==="GATEWAY"?(a.subtype||"").trim().toUpperCase()==="AND"?"parallelGateway":"exclusiveGateway":EM[c]??"task",p=o.get(s).map(d=>"<bpmn:incoming>".concat(d,"</bpmn:incoming>")).join("")+r.get(s).map(d=>"<bpmn:outgoing>".concat(d,"</bpmn:outgoing>")).join("");return"<bpmn:".concat(l,' id="').concat(s,'" name="').concat(SM(_d(a)),'">').concat(p,"</bpmn:").concat(l,">")}).join("")+i.join("")+"</bpmn:process></bpmn:definitions>",ids:n}}async function BM(t,e){if(!t.length)return new Map;let{xml:n,ids:o}=TM(t,e),r;try{r=await pM(n)}catch{return null}let i=new Map;for(let c of r.matchAll(CM))i.set(c[1]??"",Math.floor((Number(c[2])+Number(c[4])/2)/vM));if(i.size!==o.size)return null;let a=Math.min(...i.values()),s=new Map;for(let[c,l]of o)s.set(c,i.get(l)-a);return s}async function RM(t,e={}){let n=e.originY??0,o=e.columns??"bpmn-io",r=t.lanes??[],i=new Map,a=new Map,s=new Map,c=[];r.forEach((D,K)=>{for(let lt of D.nodes??[]){let rt=lt.label||"";i.has(rt)||(i.set(rt,K),a.set(rt,wM(lt)),s.set(rt,lt),vw.has(a.get(rt))&&c.push(rt))}});let l=new Set(c),p=(t.connections??[]).filter(D=>i.has(D.source)&&i.has(D.target)),d=p.filter(D=>(D.kind||"FLOW")==="FLOW"&&l.has(D.source)&&l.has(D.target)),m=p.filter(D=>(D.kind||"FLOW")!=="FLOW"),u=new Map,h=D=>u.get(D)??[];for(let D of d)u.set(D.source,[...h(D.source),D.target]);let f=[...c.filter(D=>a.get(D)==="START"),...c],g=new Set,x=(D,K)=>"".concat(D,"\0").concat(K),k=new Map;for(let D of f){if(k.has(D))continue;let K=[[D,0]];for(k.set(D,1);K.length;){let lt=K[K.length-1],rt=h(lt[0]);if(lt[1]>=rt.length){k.set(lt[0],2),K.pop();continue}let yt=rt[lt[1]++],Ut=k.get(yt)??0;Ut===1?g.add(x(lt[0],yt)):Ut===0&&(k.set(yt,1),K.push([yt,0]))}}let _=new Map(c.map(D=>[D,0])),w=new Map;for(let D of d)g.has(x(D.source,D.target))||(_.set(D.target,_.get(D.target)+1),w.set(D.source,[...w.get(D.source)??[],D.target]));let S=new Map(c.map(D=>[D,0])),T=c.filter(D=>_.get(D)===0);for(;T.length;){let D=T.shift();for(let K of w.get(D)??[])S.set(K,Math.max(S.get(K),S.get(D)+1)),_.set(K,_.get(K)-1),_.get(K)===0&&T.push(K)}if(o==="bpmn-io"){let D=await BM(c.map(K=>s.get(K)),d.map(K=>[K.source,K.target]));if(D){let K=[...new Set(D.values())].sort((lt,rt)=>lt-rt);S=new Map(c.map(lt=>[lt,K.indexOf(D.get(lt))]))}}let B=new Map,M=new Map,z=(D,K)=>"".concat(D,":").concat(K);for(let D of c){let K=z(i.get(D),S.get(D));M.set(D,B.get(K)??0),B.set(K,(B.get(K)??0)+1)}let H=r.map((D,K)=>{let lt=[...B.entries()].filter(([rt])=>Number(rt.split(":")[0])===K).map(([,rt])=>rt);return lt.length?Math.max(...lt):1}),N=S.size?Math.max(...S.values()):0,Z=new Map;for(let[D,K]of s)Z.set(D,_M(K,a.get(D)));let Et=new Map;for(let[D,K]of s){let lt=a.get(D);lt==="START"||lt==="END"||lt==="EVENT"||lt==="GATEWAY"?Et.set(D,cf(_d(K),Hc,sw.EVENT)):qo.has(lt)&&lt!=="DOCUMENT"&&Et.set(D,cf(_d(K),Hc,sw.ITEM))}let ft=new Map;for(let D of c){let K=s.get(D);K.app_label&&uM.has(a.get(D))&&ft.set(D,bM(String(K.app_label),Z.get(D)[0]))}let ee=new Map,Fe=new Map,Lt=new Map,St=new Map,wt=(D,K,lt)=>{D.set(K,[...D.get(K)??[],lt])};for(let[D,K]of s){if(!qo.has(a.get(D)))continue;let lt=K._task&&S.has(K._task)?K._task:null;if(lt===null){St.set(i.get(D),[...St.get(i.get(D))??[],D]);continue}let rt=K._dir||"in";wt(rt==="doc"?ee:rt==="in"?Fe:Lt,lt,D)}let pt=D=>Et.get(D)??[0,0],zt=D=>a.get(D)==="DOCUMENT"?Z.get(D)[0]:Math.max(Z.get(D)[0],pt(D)[0]),W=D=>Z.get(D)[1]+(pt(D)[1]?4+pt(D)[1]:0),F=D=>D.reduce((K,lt)=>K+zt(lt),0)+ca*Math.max(0,D.length-1),ct=D=>{let K=ee.get(D)??[],lt=Math.floor((K.length+1)/2);return[K.slice(0,lt),K.slice(lt)]},Ht=new Map;for(let[D,K]of ee){let lt=z(i.get(D),M.get(D));for(let rt of K)Ht.set(lt,Math.max(Ht.get(lt)??0,Z.get(rt)[1]))}for(let[D,K]of ee){let lt=z(i.get(D),M.get(D));for(let rt of K)Z.set(rt,[Z.get(rt)[0],Ht.get(lt)])}let de=new Map;for(let D of c){let K=z(i.get(D),M.get(D));de.set(K,Math.max(de.get(K)??0,Z.get(D)[1]/2))}let C=new Map;for(let D of c){let[K,lt]=Z.get(D),[rt,yt]=ct(D),Ut=z(i.get(D),M.get(D)),Pt=ee.get(D)??[],be=lt/2+(Pt.length?de.get(Ut)-lt/2+Math.max(...Pt.map(Oe=>Z.get(Oe)[1]))+14:0),Ue=ft.has(D)?ft.get(D)[0]/2:0,Ln=0;ft.has(D)&&(Ln=ft.get(D)[1]-10);let An=Ln+14,go=[...Fe.get(D)??[],...Lt.get(D)??[]];go.length&&(Ln=An+Math.max(...go.map(W))),Et.has(D)&&pt(D)[1]&&(Ln=Math.max(Ln,4+pt(D)[1]));let Jo=Math.max(Ue,vs),Qo=Math.max(K/2,vs+F(rt),Jo+8+F(Fe.get(D)??[]),pt(D)[0]/2),De=Math.max(K/2,vs+F(yt),Jo+8+F(Lt.get(D)??[]),pt(D)[0]/2);C.set(D,{left:Qo,right:De,up:be,down:lt/2+Ln,itemStart:An})}let b=af+dM+mM,v=(D,K)=>{let lt=c.filter(rt=>S.get(rt)===D).map(rt=>K(C.get(rt)));return lt.length?Math.max(...lt):60},j=[],L=[];for(let D=0;D<=N;D++)j.push(v(D,K=>K.left)),L.push(v(D,K=>K.right));let J=[],mt=b;for(let D=0;D<=N;D++)mt+=j[D]??0,J.push(mt),mt+=(L[D]??0)+sf;let Nt=r.map((D,K)=>(St.get(K)??[]).reduce((lt,rt)=>lt+zt(rt)+ca,0)),se=Math.trunc(Math.max(mt-sf+aw,b+(Nt.length?Math.max(...Nt):0)+aw)),We=new Map,Wt=new Map;for(let D of c){let K=z(i.get(D),M.get(D));We.set(K,Math.max(We.get(K)??0,C.get(D).up)),Wt.set(K,Math.max(Wt.get(K)??0,C.get(D).down))}let Qe=new Map,ze=new Map,G=[],at=new Map,gt=n;r.forEach((D,K)=>{let lt=gt;for(let Ut=0;Ut<(H[K]??1);Ut++){let Pt=z(K,Ut),be=We.has(Pt)?We.get(Pt):40,Ue=Wt.has(Pt)?Wt.get(Pt):40;Qe.set(Pt,gt),ze.set(Pt,Math.trunc(gt+ow+be)),gt=Math.trunc(gt+ow+be+Ue+rw)}let rt=St.get(K)??[];rt.length&&(at.set(K,gt),gt+=Math.max(...rt.map(Ut=>a.get(Ut)==="DOCUMENT"?Z.get(Ut)[1]:W(Ut)))+rw);let yt=Math.max(iw,gt-lt);gt=lt+yt,G.push([D.name||"",lo(af,lt,se-af,yt)])});let re=lo(0,n,se,Math.max(gt-n,iw)),Ee={},ne=D=>Ee[D],Ge={},me={},Mn=(D,K,lt,rt)=>{let[yt,Ut]=Z.get(D),Pt=K+Math.floor(rt/2);if(Ee[D]=lo(Pt-Math.floor(yt/2),lt,yt,Ut),pt(D)[1]){let[be,Ue]=pt(D);Ge[D]=lo(Pt-Math.floor(be/2),lt+Ut+4,be,Ue)}};for(let D of c){let[K,lt]=Z.get(D),rt=z(i.get(D),M.get(D)),yt=Math.trunc(J[S.get(D)]??0),Ut=ze.get(rt),Pt=lo(yt-Math.floor(K/2),Ut-Math.floor(lt/2),K,lt);if(Ee[D]=Pt,pt(D)[1]){let[De,Oe]=pt(D);Ge[D]=lo(yt-Math.floor(De/2),Pt.y+Pt.h+4,De,Oe)}if(ft.has(D)){let[De,Oe]=ft.get(D);me[D]=lo(yt-Math.floor(De/2),Pt.y+Pt.h-10,De,Oe)}let[be,Ue]=ct(D),Ln=Ut-Math.trunc(de.get(rt))-14,An=yt-vs;for(let De of[...be].reverse()){let[Oe,yo]=Z.get(De);An-=Oe,Ee[De]=lo(An,Ln-yo,Oe,yo),An-=ca}let go=yt+vs;for(let De of Ue){let[Oe,yo]=Z.get(De);Ee[De]=lo(go,Ln-yo,Oe,yo),go+=Oe+ca}let Jo=Math.max(me[D]?Math.floor(me[D].w/2):0,vs)+8,Qo=Math.trunc(Ut+lt/2+C.get(D).itemStart);An=yt-Jo;for(let De of[...Fe.get(D)??[]].reverse()){let Oe=zt(De);An-=Oe,Mn(De,An,Qo,Oe),An-=ca}go=yt+Jo;for(let De of Lt.get(D)??[]){let Oe=zt(De);Mn(De,go,Qo,Oe),go+=Oe+ca}}for(let[D,K]of St){let lt=b;for(let rt of K){let yt=zt(rt);a.get(rt)==="DOCUMENT"?Ee[rt]=lo(lt,at.get(D),Z.get(rt)[0],Z.get(rt)[1]):Mn(rt,lt,at.get(D),yt),lt+=yt+ca}}let fo=[],Ve=[],Gt=new Map,Qt=D=>{let K=z(i.get(D),M.get(D)),lt=Gt.get(K)??0;return Gt.set(K,lt+1),Qe.get(K)+8+lt%3*5},Ni=(D,K)=>cn(ne(D))<=cn(ne(K))?D:K,qr=(D,K,lt,rt)=>{let yt=Math.min(K,lt),Ut=Math.max(K,lt);return c.some(Pt=>!rt.includes(Pt)&&ne(Pt).x<Ut&&ne(Pt).x+ne(Pt).w>yt&&ne(Pt).y<=D&&D<=ne(Pt).y+ne(Pt).h)},al=D=>Math.trunc((J[D]??0)-(j[D]??0)-sf/2);for(let D of d){let K=D.source,lt=D.target,rt=ne(K),yt=ne(lt),Ut;if(g.has(x(K,lt))||Zt(yt)<Zt(rt)){let Pt=Qt(Ni(K,lt));Ut=[[Zt(rt),rt.y],[Zt(rt),Pt],[Zt(yt),Pt],[Zt(yt),yt.y]]}else if(Zt(yt)===Zt(rt)){let Pt=cn(yt)>cn(rt),be=Pt?K:lt;if(me[be]||(Fe.get(be)??[]).length||(Lt.get(be)??[]).length){let Ue=Math.trunc((J[S.get(K)]??0)+(L[S.get(K)]??0)+14);Ut=[[rt.x+rt.w,cn(rt)],[Ue,cn(rt)],[Ue,cn(yt)],[yt.x+yt.w,cn(yt)]]}else Ut=Pt?[[Zt(rt),rt.y+rt.h],[Zt(yt),yt.y]]:[[Zt(rt),rt.y],[Zt(yt),yt.y+yt.h]]}else{let Pt=al(S.get(lt)),be=Math.abs(cn(rt)-cn(yt))<2;if(be&&!qr(cn(rt),rt.x+rt.w,yt.x,[K,lt]))Ut=[[rt.x+rt.w,cn(rt)],[yt.x,cn(yt)]];else if(!be&&!qr(cn(rt),rt.x+rt.w,Pt,[K,lt]))Ut=[[rt.x+rt.w,cn(rt)],[Pt,cn(rt)],[Pt,cn(yt)],[yt.x,cn(yt)]];else if(be){let Ue=Qt(K);Ut=[[Zt(rt),rt.y],[Zt(rt),Ue],[Zt(yt),Ue],[Zt(yt),yt.y]]}else{let Ue=Qt(K);Ut=[[Zt(rt),rt.y],[Zt(rt),Ue],[Pt,Ue],[Pt,cn(yt)],[yt.x,cn(yt)]]}}if(fo.push(Ut),D.label){let[Pt,be]=cf(D.label,Hc,120),[Ue,Ln,An,go]=Ut,Jo=Ut.length===4&&Ln[0]===An[0]&&Ue[1]===Ln[1],[[Qo,De],[Oe,yo]]=Jo?[An,go]:[Ue,Ln];Jo?Ve.push(lo(Oe-Pt-4,yo-be-2,Pt,be)):Qo===Oe?Ve.push(lo(Qo+4,Math.floor((De+yo)/2)-Math.floor(be/2),Pt,be)):Ve.push(lo(Math.floor((Qo+Oe)/2)-Math.floor(Pt/2),Math.min(De,yo)-be-2,Pt,be))}else Ve.push(null)}for(let D of m){let K=ne(D.source),lt=ne(D.target);if(!K||!lt){fo.push([]),Ve.push(null);continue}let rt=qo.has(a.get(D.source)),[yt,Ut]=rt?[D.source,D.target]:[D.target,D.source],Pt=s.get(yt)._task===Ut,be=AM(yt,Ut,ne(yt),ne(Ut),a,me,J,j,S,Pt);rt||(be=[...be].reverse()),fo.push(be),Ve.push(null)}return{pool:re,lanes:G,nodes:Ee,edges:fo,edgeLabels:Ve,connections:[...d,...m],apps:me,labels:Ge}}function MM(t,e){return e?[e.x+6,e.x+e.w-6,e.y+e.h]:[t.x+8,t.x+t.w-8,t.y+t.h]}function AM(t,e,n,o,r,i,a,s,c,l){let p=c.has(e)?Math.trunc((a[c.get(e)]??0)-(s[c.get(e)]??0)-12):o.x-12;if(r.get(t)==="DOCUMENT"){let g=o.x+14,x=o.x+o.w-14,k=o.y,_=o.y-7;if(l){if(g<=Zt(n)&&Zt(n)<=x)return[[Zt(n),n.y+n.h],[Zt(n),k]];let S=Zt(n)<Zt(o)?g:x;return[[Zt(n),n.y+n.h],[Zt(n),_],[S,_],[S,k]]}let w=n.y+n.h+6;return[[Zt(n),n.y+n.h],[Zt(n),w],[p,w],[p,_],[g,_],[g,k]]}let[d,m,u]=MM(o,i[e]),h=u+7;if(l){if(d<=Zt(n)&&Zt(n)<=m)return[[Zt(n),n.y],[Zt(n),u]];let g=Zt(n)<Zt(o)?d:m;return[[Zt(n),n.y],[Zt(n),h],[g,h],[g,u]]}let f=n.y-8;return[[Zt(n),n.y],[Zt(n),f],[p,f],[p,h],[d,h],[d,u]]}function DM(t){if(typeof DOMParser>"u")throw Error("parseProcesses needs a DOM (DOMParser)");let e=[...new DOMParser().parseFromString(t,"application/xml").documentElement.children],n=e.filter(o=>Ao(o)==="collaboration").flatMap(o=>[...o.children].filter(r=>Ao(r)==="textAnnotation"||Ao(r)==="association"));return e.filter(o=>Ao(o)==="process").map(o=>({id:o.getAttribute("id")??"",proc:$M(o,n)}))}function jM(t,e){let n=new Set([t,...t.getElementsByTagName("*")].map(i=>i.getAttribute("id")).filter(Boolean)),o=new Set(e.filter(i=>Ao(i)==="textAnnotation").map(i=>i.getAttribute("id"))),r=new Set;for(let i of e){if(Ao(i)!=="association")continue;let a=i.getAttribute("sourceRef"),s=i.getAttribute("targetRef"),c=l=>n.has(l)||o.has(l);c(a)&&c(s)&&(n.has(a)||n.has(s))&&(r.add(i.getAttribute("id")),o.has(a)&&r.add(a),o.has(s)&&r.add(s))}return e.filter(i=>r.has(i.getAttribute("id")))}function $M(t,e=[]){let n=[t,...t.getElementsByTagName("*")];for(let h of jM(t,e))n.push(h,...h.getElementsByTagName("*"));let o=new Map;for(let h of n){let f=h.getAttribute("id");f&&!["laneSet","lane","flowNodeRef"].includes(Ao(h))&&o.set(f,h)}let r=new Map,i=new Map,a=new Set,s=h=>h.getAttribute("name")??"";for(let[h,f]of o){let g=Ao(f);if(g==="textAnnotation"){let x=(f.textContent??"").trim();x.startsWith("[App]")?i.set(h,x.slice(5).trim()):x.startsWith("[Doc]")&&(r.set(h,{type:"DOCUMENT",label:h,text:x.slice(5).trim()||h}),a.add(h))}else if(g in dw){let[x,k]=dw[g];r.set(h,{type:x,label:h,text:s(f)||h,...k?{subtype:k}:{}})}else g==="dataInput"?r.set(h,{type:"EXTERNAL_INPUT",label:h,text:s(f)||h}):g==="dataOutput"?r.set(h,{type:"PROCESS_OUTPUT",label:h,text:s(f)||h}):g==="dataObjectReference"&&r.set(h,{type:"TASK_OUTPUT",label:h,text:s(f)||h,_pending:!0})}let c=[],l=new Map;for(let h of t.getElementsByTagName("*"))if(Ao(h)==="laneSet")for(let f of lf(h,"lane")){c.push(f.getAttribute("name")||f.getAttribute("id")||"");for(let g of lf(f,"flowNodeRef")){let x=(g.textContent??"").trim();o.has(x)&&l.set(x,c.length-1)}}c.length||c.push("Lane 1");let p=[];for(let[h,f]of o){let g=Ao(f);if(g==="sequenceFlow"){let x=f.getAttribute("sourceRef")??"",k=f.getAttribute("targetRef")??"";r.has(x)&&r.has(k)&&p.push({source:x,target:k,kind:"FLOW",...f.getAttribute("name")?{label:f.getAttribute("name")}:{}})}else if(g==="association"){let x=f.getAttribute("sourceRef")??"",k=f.getAttribute("targetRef")??"";i.has(x)&&r.has(k)?r.get(k).app_label=i.get(x)??null:i.has(k)&&r.has(x)?r.get(x).app_label=i.get(k)??null:r.has(x)&&r.has(k)&&(a.has(x)||a.has(k))&&p.push({source:x,target:k,kind:"DOC"})}else if(g==="dataInputAssociation"||g==="dataOutputAssociation"){let x=f.parentElement&&PM.has(Ao(f.parentElement))?f.parentElement.getAttribute("id"):null;if(!x||!r.has(x))continue;let k=lf(f,g==="dataInputAssociation"?"sourceRef":"targetRef");for(let _ of k){let w=(_.textContent??"").trim();if(!r.has(w))continue;let S=r.get(w);g==="dataInputAssociation"?p.push({source:w,target:x,kind:"DATA"}):p.push({source:x,target:w,kind:"DATA"}),S._pending&&(S.type=g==="dataInputAssociation"?"TASK_INPUT":"TASK_OUTPUT",delete S._pending)}}}for(let h of r.values())delete h._pending;let d=new Map;for(let h of p){let f=r.get(h.source),g=r.get(h.target);if(f&&g){if(h.kind==="DATA"){let[x,k]=zn(f)==="TASK_INPUT"||zn(f)==="EXTERNAL_INPUT"?[h.source,h.target]:[h.target,h.source];d.set(x,l.get(k)??0)}else if(h.kind==="DOC"){let x=zn(g)==="DOCUMENT"?h.target:h.source,k=x===h.target?h.source:h.target;d.set(x,l.get(k)??0)}}}let m=c.map(h=>({name:h,nodes:[]}));for(let[h,f]of r)m[l.get(h)??d.get(h)??0]?.nodes.push(f);let u={name:t.getAttribute("name")||t.getAttribute("id")||"",lanes:m,connections:p};return zM(u),OM(u),u}function zM(t){let e=new Map;for(let n of t.lanes)for(let o of n.nodes)e.has(o.label)||e.set(o.label,o);for(let n of t.connections){let o=e.get(n.source),r=e.get(n.target);if(!o||!r)continue;let i=zn(o),a=zn(r),s=a==="DOCUMENT"||i==="DOCUMENT"?"DOC":qo.has(a)||qo.has(i)?"DATA":"FLOW";if(n.kind=s,s==="FLOW")continue;let[c,l,p]=qo.has(a)?[r,o,"out"]:[o,r,"in"];if(!vw.has(zn(l)))continue;let d=zn(c);d==="DATA_OBJECT"?c.type=p==="out"?"TASK_OUTPUT":"TASK_INPUT":d==="EXTERNAL_DATA_OBJECT"&&(c.type=p==="out"?"PROCESS_OUTPUT":"EXTERNAL_INPUT"),c._task===void 0&&(c._task=l.label),c._dir===void 0&&(c._dir=s==="DOC"?"doc":p)}for(let n of e.values()){let o=zn(n);qo.has(o)&&n._dir===void 0&&(n._dir={TASK_INPUT:"in",EXTERNAL_INPUT:"in",DOCUMENT:"doc"}[o]??"out",o==="DATA_OBJECT"?n.type="TASK_INPUT":o==="EXTERNAL_DATA_OBJECT"&&(n.type="EXTERNAL_INPUT"))}return t}function OM(t){let e=new Map;for(let i of t.lanes)for(let a of i.nodes)e.has(a.label)||e.set(a.label,a);let n=new Map;for(let i of t.connections)(i.kind||"FLOW").toUpperCase()==="FLOW"&&e.has(i.source)&&e.has(i.target)&&n.set(i.target,[...n.get(i.target)??[],i.source]);let o=i=>{let a=new Set([i]),s=[...n.get(i)??[]];for(;s.length;){let c=s.shift();if(a.has(c))continue;a.add(c);let l=e.get(c);if(l&&mw.has(zn(l)))return c;s.push(...(n.get(c)??[]).filter(p=>!a.has(p)))}return null},r=[];for(let i of t.connections){let a=(i.kind||"FLOW").toUpperCase();if(a!=="DATA"&&a!=="DOC"){r.push(i);continue}let s=e.get(i.source),c=e.get(i.target);if(!s||!c){r.push(i);continue}let l,p;if(a==="DOC")if(zn(s)==="DOCUMENT")[l,p]=[i.source,i.target];else if(zn(c)==="DOCUMENT")[l,p]=[i.target,i.source];else{r.push(i);continue}else{if(qo.has(zn(s))&&qo.has(zn(c))){r.push(i);continue}l=qo.has(zn(s))?i.source:i.target,p=qo.has(zn(s))?i.target:i.source}let d=p===i.source;if(mw.has(zn(e.get(p)))){r.push(i);continue}let m=o(p);if(m===null)continue;i=d?{...i,source:m}:{...i,target:m};let u=e.get(l);u&&(u._task=m),r.push(i)}t.connections=r}function LM(t,e,n){let o=e.x+e.w/2,r=e.y+e.h/2,i=[["top",Math.abs(r-t.y)],["bottom",Math.abs(r-(t.y+t.h))],["left",Math.abs(o-t.x)],["right",Math.abs(o-(t.x+t.w))]].reduce((d,m)=>m[1]<d[1]?m:d)[0],a=d=>Math.min(1,Math.max(0,d)),s=i==="top"||i==="bottom",c=a(s?(o-t.x)/(t.w||1):(r-t.y)/(t.h||1)),l=s?n.x+c*n.w:i==="left"?n.x:n.x+n.w,p=s?i==="top"?n.y:n.y+n.h:n.y+c*n.h;return{x:Math.round(l-e.w/2),y:Math.round(p-e.h/2),w:e.w,h:e.h}}function NM(t,e){let n=new Map;for(let a of e)a.bounds&&n.set(a.element,a.bounds);let o=[],r=[];for(let a of t.getAll()){if(a.type!=="bpmn:BoundaryEvent"||!a.host)continue;let s=n.get(a.host);if(!s)continue;let c=LM({x:a.host.x,y:a.host.y,w:a.host.width,h:a.host.height},{x:a.x,y:a.y,w:a.width,h:a.height},s);o.push({element:a,bounds:c}),r.push(a);let l=a.label;l&&o.push({element:l,bounds:{x:l.x+(c.x-a.x),y:l.y+(c.y-a.y),w:l.width,h:l.height}})}let i=new Set(r.map(a=>a.id));return{changes:o,reroute:t.getAll().filter(a=>a.waypoints&&a.source&&a.target&&(i.has(a.source.id)||i.has(a.target.id)))}}function _w(t,e,n,o=[]){let r=e.x-n.pool.x,i=e.y-n.pool.y,a=l=>({x:l.x+r,y:l.y+i,w:l.w,h:l.h}),s=[{element:e,bounds:a(n.pool)}];t.getAll().filter(l=>l.type==="bpmn:Lane"&&l.parent===e).sort((l,p)=>l.y-p.y).forEach((l,p)=>{let d=n.lanes[p];d&&s.push({element:l,bounds:a(d[1])})});for(let[l,p]of Object.entries(n.nodes)){let d=t.get(l);if(!d){o.push(l);continue}s.push({element:d,bounds:a(p)});let m=n.labels[l];m&&d.label&&s.push({element:d.label,bounds:a(m)})}for(let[l,p]of Object.entries(n.apps)){let d=t.get(l),m=n.nodes[l];if(!d||!m)continue;let u=[...d.incoming??[],...d.outgoing??[]].filter(f=>f.type==="bpmn:Association"),h=0;for(let f of u){let g=f.source===d?f.target:f.source;if(g?.type!=="bpmn:TextAnnotation"||!ys(g.businessObject?.text))continue;let x=a({...p,x:p.x+h*(p.w+4)});h+=1,s.push({element:g,bounds:x});let k=x.x+Math.floor(x.w/2),_=a(m),w=[[k,x.y],[k,_.y+_.h-20]];s.push({element:f,waypoints:f.source===g?w:[...w].reverse()})}}let c=new Map;for(let l of t.getAll())l.waypoints&&l.source&&l.target&&c.set("".concat(l.source.id,"\0").concat(l.target.id,"\0").concat(l.type),l);return n.connections.forEach((l,p)=>{let d=n.edges[p];if(!d?.length)return;let m=(IM[l.kind||"FLOW"]??[]).map(g=>c.get("".concat(l.source,"\0").concat(l.target,"\0").concat(g))??c.get("".concat(l.target,"\0").concat(l.source,"\0").concat(g))).find(Boolean);if(!m){o.push("".concat(l.source,"->").concat(l.target));return}let u=m.source?.id===l.source,h=d.map(([g,x])=>[g+r,x+i]);s.push({element:m,waypoints:u?h:[...h].reverse()});let f=n.edgeLabels[p];f&&m.label&&s.push({element:m.label,bounds:a(f)})}),s}function Ew(t,e){let n=new Map(DM(t).map(o=>[o.id,o.proc]));return e.getAll().filter(o=>o.type==="bpmn:Participant"&&o.businessObject?.processRef).map(o=>({participant:o,proc:n.get(o.businessObject.processRef.id)})).filter(o=>o.proc)}var wd,of,ln,ie,qR,KR,XR,JR,QR,rM,iM,vw,qo,af,dM,mM,sf,ow,rw,iw,aw,ca,vs,bs,Hc,bw,Ci,xd,kd,sw,xw,uM,cw,lw,hf,kw,ww,hM,fM,gM,yM,vM,Zt,_d,cn,lo,EM,CM,dw,PM,mw,Ao,lf,zn,uw,IM,HM,FM,hw,Sw,pf,Tw,WM,Bw=gn(()=>{"use strict";er();Er();Ta();hl();hd();Ua();wd=80,of=100;ln=150,ie=140;qR=class{constructor(){this.grid=[]}add(t,e){if(!e){this._addStart(t);return}let[n,o]=e;if(!n&&!o&&this._addStart(t),this.grid[n]||(this.grid[n]=[]),this.grid[n][o])throw Error("Grid is occupied please ensure the place you insert at is not occupied");this.grid[n][o]=t}createRow(t){!t&&!Number.isInteger(t)?this.grid.push([]):this.grid.splice(t+1,0,[])}_addStart(t){this.grid.push([t])}addAfter(t,e){t||this._addStart(e);let[n,o]=this.find(t);this.grid[n].splice(o+1,0,e)}addBelow(t,e){t||this._addStart(e);let[n,o]=this.find(t);if(this.grid[n+1]||(this.grid[n+1]=[]),this.grid[n+1][o]&&this.grid.splice(n+1,0,[]),this.grid[n+1][o])throw Error("Grid is occupied and we could not find a place - this should not happen");this.grid[n+1][o]=e}find(t){let e,n;return e=this.grid.findIndex(o=>(n=o.findIndex(r=>r===t),n!==-1)),[e,n]}get(t,e){return(this.grid[t]||[])[e]}getElementsInRange({row:t,col:e},{row:n,col:o}){let r=[];t>n&&([t,n]=[n,t]),e>o&&([e,o]=[o,e]);for(let i=t;i<=n;i++)for(let a=e;a<=o;a++){let s=this.get(i,a);s&&r.push(s)}return r}adjustGridPosition(t){let[e,n]=this.find(t),[,o]=this.getGridDimensions();n<o-1&&(this.grid[e].length=o,this.grid[e][o]=t,this.grid[e][n]=null)}adjustRowForMultipleIncoming(t,e){let n=t.map(a=>this.find(a)),o=Math.min(...n.map(a=>a[0]).filter(a=>a>=0)),[r,i]=this.find(e);o<r&&!this.grid[o][i]&&(this.grid[o][i]=e,this.grid[r][i]=null)}adjustColumnForMultipleIncoming(t,e){let n=t.map(a=>this.find(a)),o=Math.max(...n.map(a=>a[1]).filter(a=>a>=0)),[r,i]=this.find(e);o+1>i&&(this.grid[r][o+1]=e,this.grid[r][i]=null)}getAllElements(){let t=[];for(let e=0;e<this.grid.length;e++)for(let n=0;n<this.grid[e].length;n++){let o=this.get(e,n);o&&t.push(o)}return t}getGridDimensions(){let t=this.grid.length,e=0;for(let n=0;n<t;n++){let o=this.grid[n].length;o>e&&(e=o)}return[t,e]}elementsByPosition(){let t=[];return this.grid.forEach((e,n)=>{e.forEach((o,r)=>{o&&t.push({element:o,row:n,col:r})})}),t}getElementsTotal(){let t=this.grid.flat();return new Set(t.filter(e=>e)).size}createCol(t,e){this.grid.forEach((n,o)=>{this.expandRow(o,t,e)})}expandRow(t,e,n){if(!Number.isInteger(t)||t<0||t>this.rowCount-1)return;let o=Number.isInteger(n)&&n>0?Array(n):[,],r=this.grid[t];!e&&!Number.isInteger(e)?r.splice(r.length,0,...o):r.splice(e+1,0,...o)}},KR=class{constructor(t){this.moddle=t}create(t,e){return this.moddle.create(t,e||{})}createDiBounds(t){return this.create("dc:Bounds",t)}createDiLabel(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})}createDiShape(t,e,n){return this.create("bpmndi:BPMNShape",P({bpmnElement:t,bounds:this.createDiBounds(e)},n))}createDiWaypoints(t){var e=this;return tn(t,function(n){return e.createDiWaypoint(n)})}createDiWaypoint(t){return this.create("dc:Point",Nn(t,["x","y"]))}createDiEdge(t,e,n){return this.create("bpmndi:BPMNEdge",P({bpmnElement:t,waypoint:this.createDiWaypoints(e)},n))}createDiPlane(t){return this.create("bpmndi:BPMNPlane",t)}createDiDiagram(t){return this.create("bpmndi:BPMNDiagram",t)}},XR={addToGrid:({element:t,grid:e,visited:n})=>{let o=[];return(t.attachers||[]).map(r=>(r.outgoing||[]).reverse()).flat().map(r=>r.targetRef).forEach((r,i,a)=>{n.has(r)||(YR(r,t,e),o.push(r),n.add(r))}),o},createElementDi:({element:t,row:e,col:n,diFactory:o,shift:r})=>{let i=uf(t,e,n,r),a=[];return(t.attachers||[]).forEach((s,c,l)=>{s.gridPosition={row:e,col:n};let p=uf(s,e,n,r,t);p.x=i.x+(c+1)*(i.width/(l.length+1))-p.width/2;let d=o.createDiShape(s,p,{id:s.id+"_di"});s.di=d,s.gridPosition={row:e,col:n},a.push(d)}),a},createConnectionDi:({element:t,row:e,col:n,layoutGrid:o,diFactory:r,shift:i})=>(t.attachers||[]).flatMap(a=>(a.outgoing||[]).map(s=>{let c=s.targetRef,l=yw(a,c,o);return ZR(a,l,[e,n]),r.createDiEdge(s,l,{id:s.id+"_di"})}))};JR={createElementDi:({element:t,row:e,col:n,diFactory:o,shift:r})=>{let i=uf(t,e,n,r),a={id:t.id+"_di"};Bn(t,"bpmn:ExclusiveGateway")&&(a.isMarkerVisible=!0),t.isExpanded&&(a.isExpanded=!0);let s=o.createDiShape(t,i,a);return t.di=s,t.gridPosition={row:e,col:n},s}},QR={addToGrid:({element:t,grid:e,visited:n,stack:o})=>{let r=[],i=(t.outgoing||[]).map(s=>s.targetRef).filter(s=>s),a=null;return i.length>1&&oM(i)&&e.adjustGridPosition(t),i.forEach((s,c,l)=>{n.has(s)||(a||o.length>0)&&nM(s,n)&&!eM(s,n)||(a?Bn(t,"bpmn:ExclusiveGateway")&&Bn(s,"bpmn:ExclusiveGateway")?e.addAfter(a,s):e.addBelow(l[c-1],s):e.addAfter(t,s),s!==t&&(a=s),r.unshift(s),n.add(s))}),r=tM(r,"bpmn:ExclusiveGateway"),r},createConnectionDi:({element:t,row:e,col:n,layoutGrid:o,diFactory:r})=>(t.outgoing||[]).map(i=>{let a=i.targetRef,s=yw(t,a,o);return r.createDiEdge(i,s,{id:i.id+"_di"})})};rM=[JR,{addToGrid:({element:t,grid:e,visited:n})=>{let o=[],r=(t.incoming||[]).map(i=>i.sourceRef).filter(i=>i);return r.length>1&&(e.adjustColumnForMultipleIncoming(r,t),e.adjustRowForMultipleIncoming(r,t)),o}},QR,XR],iM=class{constructor(){this.moddle=new Zi,this.diFactory=new KR(this.moddle),this._handlers=rM}handle(t,e){return this._handlers.filter(n=>Be(n[t])).map(n=>n[t](e))}async layoutProcess(t){let e=await this.moddle.fromXML(t),{rootElement:n}=e;this.diagram=n;let o=this.getProcess();return o&&(this.setExpandedPropertyToModdleElements(e),this.setExecutedProcesses(o),this.createGridsForProcesses(),this.cleanDi(),this.createRootDi(o),this.drawProcesses()),(await this.moddle.toXML(this.diagram,{format:!0})).xml}createGridsForProcesses(){let t=this.layoutedProcesses.sort((e,n)=>n.level-e.level);for(let e of t)if(e.grid=this.createGridLayout(e),sM(e.grid),cM(e.grid),e.isExpanded){let[n,o]=e.grid.getGridDimensions();n===0&&e.grid.createRow(),o===0&&e.grid.createCol()}}setExpandedPropertyToModdleElements(t){let e=t.elementsById;if(e)for(let n of Object.values(e))n.$type==="bpmndi:BPMNShape"&&n.isExpanded===!0&&(n.bpmnElement.isExpanded=!0)}setExecutedProcesses(t){this.layoutedProcesses=[];let e=[t];for(;e.length>0;){let n=e.pop();this.layoutedProcesses.push(n),n.level=n.$parent===this.diagram?0:n.$parent.level+1;let o=n.get("flowElements").filter(r=>Bn(r,"bpmn:SubProcess"));e.splice(e.length,0,...o)}}cleanDi(){this.diagram.diagrams=[]}createGridLayout(t){let e=new qR,n=t.flowElements||[],o=n.filter(i=>!Bn(i,"bpmn:SequenceFlow"));if(!n)return e;aM(n);let r=new Set;for(;r.size<o.filter(i=>!i.attachedToRef).length;){let i=n.filter(s=>!GR(s)&&!df(s)&&(!s.incoming||!lM(s))&&!r.has(s)),a=[...i];if(i.forEach(s=>{e.add(s),r.add(s)}),this.handleGrid(e,r,a),e.getElementsTotal()!==o.length){let s=e.getAllElements(),c=o.filter(l=>!s.includes(l)&&!df(l));c.length>0&&(a.push(c[0]),e.add(c[0]),r.add(c[0]),this.handleGrid(e,r,a))}}return e}generateDi(t,e,n){let o=this.diFactory,r=(n||this.diagram.diagrams[0]).plane.get("planeElement");t.elementsByPosition().forEach(({element:i,row:a,col:s})=>{let c=this.handle("createElementDi",{element:i,row:a,col:s,layoutGrid:t,diFactory:o,shift:e}).flat();r.push(...c)}),t.elementsByPosition().forEach(({element:i,row:a,col:s})=>{let c=this.handle("createConnectionDi",{element:i,row:a,col:s,layoutGrid:t,diFactory:o,shift:e}).flat();r.push(...c)})}handleGrid(t,e,n){for(;n.length>0;){let o=n.pop();this.handle("addToGrid",{element:o,grid:t,visited:e,stack:n}).flat().forEach(r=>{n.push(r),e.add(r)})}}getProcess(){return this.diagram.get("rootElements").find(t=>t.$type==="bpmn:Process")}createRootDi(t){this.createProcessDi(t)}createProcessDi(t){let e=this.diFactory,n=e.createDiPlane({id:"BPMNPlane_"+t.id,bpmnElement:t}),o=e.createDiDiagram({id:"BPMNDiagram_"+t.id,plane:n});return this.diagram.diagrams.push(o),o}drawProcesses(){let t=this.layoutedProcesses.sort((e,n)=>e.level-n.level);for(let e of t){if(e.isExpanded){let o=this.getElementDi(e),r=this.getProcDi(o),{x:i,y:a}=o.bounds,{width:s,height:c}=gw(e);i+=ln/2-s/4,a+=ie-c-c/4,this.generateDi(e.grid,{x:i,y:a},r);continue}let n=this.diagram.diagrams.find(o=>o.plane.bpmnElement===e);this.generateDi(e.grid,{x:0,y:0},n)}}getElementDi(t){return this.diagram.diagrams.map(e=>e.plane.planeElement).flat().find(e=>e.bpmnElement===t)}getProcDi(t){return this.diagram.diagrams.find(e=>e.plane.planeElement.includes(t))}};vw=new Set(["START","END","TASK","SUB-PROCESS","GATEWAY","EVENT","EXTERNAL_PROCESS"]),qo=new Set(["TASK_INPUT","TASK_OUTPUT","EXTERNAL_INPUT","PROCESS_OUTPUT","DOCUMENT","DATA_OBJECT","EXTERNAL_DATA_OBJECT"]),af=30,dM=30,mM=40,sf=70,ow=26,rw=24,iw=200,aw=70,ca=10,vs=10,bs=12,Hc=11,bw=1.2,Ci=50,xd=40,kd=50,sw={EVENT:120,ITEM:100},xw={TASK:[120,80],"SUB-PROCESS":[120,80],EXTERNAL_PROCESS:[108,62],GATEWAY:[Ci,Ci],START:[Ci,Ci],END:[Ci,Ci],EVENT:[Ci,Ci],TASK_INPUT:[xd,kd],TASK_OUTPUT:[xd,kd],EXTERNAL_INPUT:[xd,kd],PROCESS_OUTPUT:[xd,kd],DOCUMENT:[110,50]},uM=new Set(["TASK","SUB-PROCESS","EXTERNAL_PROCESS"]),cw=80,lw=30,hf=31,kw=10,ww=120,hM=20,fM=.74,gM=6,yM=4,vM=150,Zt=t=>t.x+Math.floor(t.w/2),_d=t=>t.text??t.label??"",cn=t=>t.y+Math.floor(t.h/2),lo=(t,e,n,o)=>({x:t,y:e,w:n,h:o});EM={START:"startEvent",END:"endEvent",EVENT:"intermediateThrowEvent","SUB-PROCESS":"subProcess",EXTERNAL_PROCESS:"callActivity"};CM=/bpmnElement="(n\d+)"[^>]*>\s*<dc:Bounds x="(-?[\d.]+)" y="(-?[\d.]+)" width="([\d.]+)" height="([\d.]+)"/g;dw={startEvent:["START",null],endEvent:["END",null],task:["TASK",null],subProcess:["SUB-PROCESS",null],callActivity:["EXTERNAL_PROCESS",null],exclusiveGateway:["GATEWAY","OR"],parallelGateway:["GATEWAY","AND"],inclusiveGateway:["GATEWAY","OR"],intermediateThrowEvent:["EVENT",null],intermediateCatchEvent:["EVENT",null]},PM=new Set(["task","subProcess","callActivity","exclusiveGateway","parallelGateway","inclusiveGateway","startEvent","endEvent","intermediateThrowEvent","intermediateCatchEvent"]),mw=new Set(["TASK","SUB-PROCESS","EXTERNAL_PROCESS"]),Ao=t=>t.localName,lf=(t,e)=>[...t.children].filter(n=>Ao(n)===e),zn=t=>(t.type||"TASK").trim().toUpperCase();uw="bpmnCanvas.autoLayout",IM={FLOW:["bpmn:SequenceFlow"],DATA:["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"],DOC:["bpmn:Association"]};HM=(t,e)=>t.x===e.x&&t.y===e.y&&t.width===e.w&&t.height===e.h,FM=(t,e)=>{let n=t.waypoints??[];return n.length===e.length&&e.every(([o,r],i)=>n[i]?.x===o&&n[i]?.y===r)},hw=t=>t.type==="label"?t.labelTarget?.id:t.id,Sw=class{static $inject=["moddle","layouter","connectionDocking","graphicsFactory","elementRegistry"];moddle;layouter;docking;graphics;registry;constructor(t,e,n,o,r){this.moddle=t,this.layouter=e,this.docking=n,this.graphics=o,this.registry=r}boundsDi(t,e,n){if(t.type!=="label")return Tt(t).bounds;let o=Tt(t.labelTarget);return!o.label&&e?(o.set("label",this.moddle.create("bpmndi:BPMNLabel",{bounds:this.moddle.create("dc:Bounds")})),n?.push(o)):o.label&&!o.label.bounds&&e&&o.label.set("bounds",this.moddle.create("dc:Bounds")),o.label?.bounds}setBounds(t,e,n,o){let r=this.boundsDi(t,!0,o);n.push({element:t,bounds:{x:t.x,y:t.y,width:t.width,height:t.height},di:r?{x:r.x,y:r.y,width:r.width,height:r.height}:void 0}),Object.assign(t,{x:e.x,y:e.y,width:e.w,height:e.h}),r&&Object.assign(r,{x:e.x,y:e.y,width:e.w,height:e.h})}setWaypoints(t,e,n){let o=Tt(t);n.push({element:t,waypoints:t.waypoints,diWaypoints:o.waypoint}),t.waypoints=e.map(({x:r,y:i})=>({x:r,y:i})),o.set("waypoint",e.map(({x:r,y:i})=>this.moddle.create("dc:Point",{x:r,y:i})))}execute(t){let e=[],n=[];for(let r of t.changes)r.bounds&&this.setBounds(r.element,r.bounds,e,n),r.waypoints&&this.setWaypoints(r.element,r.waypoints.map(([i,a])=>({x:i,y:a})),e);for(let r of t.reroute??[]){let i=r.source?.type==="bpmn:BoundaryEvent"||r.target?.type==="bpmn:BoundaryEvent"?{connectionStart:vt(r.source),connectionEnd:vt(r.target),waypoints:[]}:{},a=this.layouter.layoutConnection(r,i),s={...r,waypoints:a};this.setWaypoints(r,this.docking.getCroppedWaypoints(s,r.source,r.target),e);let c=r.label;if(c){let l=Sa(r);this.setBounds(c,{x:Math.round(l.x-c.width/2),y:Math.round(l.y-c.height/2),w:c.width,h:c.height},e,n)}}t.saved=e,t.createdLabels=n;let o=[...t.changes.map(r=>r.element),...t.reroute??[],...(t.reroute??[]).map(r=>r.label)];return[...new Set(o.filter(Boolean))]}revert(t){for(let o of[...t.saved??[]].reverse()){let r=o.element;if(o.bounds){Object.assign(r,o.bounds);let i=this.boundsDi(r,!1);i&&o.di&&Object.assign(i,o.di)}o.waypoints&&(r.waypoints=o.waypoints,Tt(r).set("waypoint",o.diWaypoints))}for(let o of t.createdLabels??[])delete o.label;let e=[...t.changes.map(o=>o.element),...t.reroute??[],...(t.reroute??[]).map(o=>o.label)],n=[];for(let o of new Set(e.filter(Boolean)))if(o.type==="label"){let r=this.registry.getGraphics(o);r&&this.graphics.update("shape",o,r)}else n.push(o);return n}},pf=()=>new DOMException("Layout superseded or canvas destroyed","AbortError"),Tw=class{static $inject=["commandStack","elementRegistry","bpmnjs","eventBus"];commandStack;registry;bpmnjs;generation=0;destroyed=!1;constructor(t,e,n,o){t.registerHandler(uw,Sw),this.commandStack=t,this.registry=e,this.bpmnjs=n,o.on(["diagram.clear","import.parse.start","root.set","commandStack.changed"],()=>{this.generation+=1}),o.on("diagram.destroy",()=>{this.destroyed=!0,this.generation+=1})}async run(t=()=>!0){if(this.destroyed)throw pf();let e=++this.generation,n=()=>!this.destroyed&&e===this.generation&&t(),{xml:o}=await this.bpmnjs.saveXML();if(!n())throw pf();let r=[],i=[];for(let{participant:m,proc:u}of Ew(o,this.registry)){let h=await RM(u);if(!n())throw pf();r.push(..._w(this.registry,m,h,i))}let a=NM(this.registry,r);r.push(...a.changes);let s=r.length?[...new Set([...this.registry.getAll().filter(m=>m.type==="bpmn:MessageFlow"&&m.source&&m.target),...a.reroute])]:[],c=new Set([...r.map(m=>hw(m.element)),...s.map(m=>m.id)]),l=r.filter(m=>m.bounds?!HM(m.element,m.bounds):m.waypoints?!FM(m.element,m.waypoints):!1),p=new Set(l.map(m=>hw(m.element))).size,d=new Set(i);for(let m of this.registry.getAll())m.parent&&m.type!=="label"&&(c.has(m.id)||d.add(m.id));return l.length&&this.commandStack.execute(uw,{changes:l,reroute:s}),{changed:p,skipped:[...d].sort()}}},WM={__init__:["bpmnCanvasLayout"],bpmnCanvasLayout:["type",Tw]}});var Df={};Ii(Df,{a:()=>Pf,c:()=>Fh,d:()=>Ie,f:()=>Wh,g:()=>Zi,h:()=>dd,i:()=>a5,l:()=>Vh,m:()=>Nc,n:()=>r5,o:()=>Hh,p:()=>md,port:()=>l5,r:()=>i5,renderBpmn:()=>d5,s:()=>$n,t:()=>hP,toXml:()=>p5,u:()=>Gh});function kf(){}function Vw(t,e){this.model=t,this.properties=e}function wf(t,e){var n=Uw[t];return n?n(e):e}function ff(t){return!!VM[t]}function qw(t){return!!Uw[t]}function Rn(t,e){var n=t.split(/:/),o,r;if(n.length===1)o=t,r=e;else if(n.length===2)o=n[1],r=n[0];else throw Error("expected <prefix:localName> or <localName>, got "+t);return t=(r?r+":":"")+o,{name:t,prefix:r,localName:o}}function po(t){this.ns=t,this.name=t.name,this.allTypes=[],this.allTypesByName=Object.create(null),this.properties=[],this.propertiesByName=Object.create(null)}function Ri(t,e){this.packageMap=Object.create(null),this.typeMap=Object.create(null),this.packages=[],this.properties=e,R(t,bn(this.registerPackage,this))}function Mw(t,e,n){var o=e[n];if(o in t)throw Error("package with "+n+" <"+o+"> already defined")}function da(t){this.model=t}function UM(t){return t===void 0}function Aw(t,e,n){Object.defineProperty(t,e.name,{enumerable:!e.isReference,writable:!0,value:n,configurable:!0})}function gf(t){return t.replace(/^:/,"")}function Do(t,e={}){this.properties=new da(this),this.factory=new Vw(this,this.properties),this.registry=new Ri(t,this.properties),this.typeCache=Object.create(null),this.config=e}function YM(t,e,n,o){return o?KM.call(Wc,o)?Wc[o]:"&"+o+";":qM(e||parseInt(n,16))}function la(t){return t.length>3&&t.indexOf("&")!==-1?t.replace(XM,YM):t}function Bi(t){return Error(t)}function ZM(t){return"missing namespace for prefix <"+t+">"}function Ed(t){return{get:t,enumerable:!0}}function yf(t,e,n,o){n in e||(e[n]=n in t?t[n]:null),t[n]=o}function JM(t,e){var n,o;for(n in e)o=e[n],o===null?delete t[n]:t[n]=o}function _f(t){return t+"$uri"}function QM(t){var e=Object.create(null),n,o;for(n in t)o=t[n],e[o]=o,e[_f(o)]=n;return e}function Sd(){return{line:0,column:0}}function tA(t){throw t}function Kw(t){if(!this)return new Kw(t);var e=t&&t.proxy,n,o,r,i,a=tA,s,c,l,p,d=Sd,m=!1,u=!1,h="",f=!1,g=!1,x=null,k=!1,_,w,S,T;function B(N){N instanceof Error||(N=Bi(N)),x=N,a(N,d)}function M(N){s&&(N instanceof Error||(N=Bi(N)),s(N,d))}this.on=function(N,Z){if(typeof Z!="function")throw Bi("required args <name, cb>");switch(N){case"openTag":o=Z;break;case"text":n=Z;break;case"closeTag":r=Z;break;case"error":a=Z;break;case"warn":s=Z;break;case"cdata":i=Z;break;case"attention":p=Z;break;case"question":l=Z;break;case"comment":c=Z;break;default:throw Bi("unsupported event: "+N)}return this},this.ns=function(N){if(N===void 0&&(N={}),typeof N!="object")throw Bi("required args <nsMap={}>");var Z=Object.create(null),Et;for(Et in N)Z[Et]=N[Et];return g=!0,T=Z,this};function z(){_=g?[]:null,w=g?QM(T):null,S=[],d=Sd,k=!1,x=null,u=!1,h=""}this.parse=function(N){if(typeof N!="string")throw Bi("required args <xml=string>");if(m)throw Bi("parse during stream; call end() first");return z(),H(N),d=Sd,k=!1,x},this.write=function(N){if(typeof N!="string")throw Bi("required args <xml=string>");return m||=(z(),!0),x||(h=H(h+N,!0)||""),this},this.end=function(){return m||z(),m=!1,x||H(h),h="",d=Sd,k=!1,x},this.stop=function(){k=!0};function H(N,Z=!1){var Et=null,ft,ee,Fe=0,Lt=!1,St=!1,wt=0,pt=0,zt,W,F,ct,Ht,de,C,b,v,j="",L=0,J;function mt(Wt,Qe){var ze=Wt.indexOf(":");if(ze===-1)return Wt;var G=w[Wt.substring(0,ze)];return G?Qe===G?Wt.substr(ze+1):G+Wt.substr(ze):(M(ZM(Wt.substring(0,ze))),null)}function Nt(){if(J!==null)return J;var Wt,Qe,ze=g&&w.xmlns,G=g&&f?[]:null,at=L,gt=j,re=gt.length,Ee,ne,Ge,me,Mn={},fo=new Set,Ve,Gt,Qt;t:for(;at<re;at++)if(Ve=!1,Gt=gt.charCodeAt(at),!(Gt===32||Gt<14&&Gt>8)){for((Gt<65||Gt>122||Gt>90&&Gt<97)&&Gt!==95&&Gt!==58&&(M("illegal first char attribute name"),Ve=!0),Qt=at+1;Qt<re;Qt++)if(Gt=gt.charCodeAt(Qt),!(Gt>96&&Gt<123||Gt>64&&Gt<91||Gt>47&&Gt<59||Gt===46||Gt===45||Gt===95)){if(Gt===32||Gt<14&&Gt>8){M("missing attribute value"),at=Qt;continue t}if(Gt===61)break;M("illegal attribute name char"),Ve=!0}if(me=gt.substring(at,Qt),me==="xmlns:xmlns"&&(M("illegal declaration of xmlns"),Ve=!0),Gt=gt.charCodeAt(Qt+1),Gt===34)Qt=gt.indexOf('"',at=Qt+2),Qt===-1&&(Qt=gt.indexOf("'",at),Qt!==-1&&(M("attribute value quote missmatch"),Ve=!0));else if(Gt===39)Qt=gt.indexOf("'",at=Qt+2),Qt===-1&&(Qt=gt.indexOf('"',at),Qt!==-1&&(M("attribute value quote missmatch"),Ve=!0));else for(M("missing attribute value quotes"),Ve=!0,Qt+=1;Qt<re&&(Gt=gt.charCodeAt(Qt+1),!(Gt===32||Gt<14&&Gt>8));Qt++);for(Qt===-1&&(M("missing closing quotes"),Qt=re,Ve=!0),Ve||(ne=gt.substring(at,Qt)),me==="xmlns:xml"&&ne!=="http://www.w3.org/XML/1998/namespace"&&B("illegal value of xmlns:xml"),at=Qt;Qt+1<re&&(Gt=gt.charCodeAt(Qt+1),!(Gt===32||Gt<14&&Gt>8));Qt++)at===Qt&&(M("illegal character after attribute end"),Ve=!0);if(at=Qt+1,Ve)continue t;if(fo.has(me))M("attribute <"+me+"> already defined");else if(fo.add(me),!g)Mn[me]=ne;else if(f){if(Ee=me==="xmlns"?"xmlns":me.charCodeAt(0)===120&&me.substr(0,6)==="xmlns:"?me.substr(6):null,Ee!==null){if(Wt=la(ne),Qe=_f(Ee),Ge=T[Wt],!Ge){if(Ee==="xmlns"||Qe in w&&w[Qe]!==Wt)do Ge="ns"+Fe++;while(w[Ge]!==void 0);else Ge=Ee;T[Wt]=Ge}w[Ee]!==Ge&&(ft||=Object.create(null),Et=null,ee=null,yf(w,ft,Ee,Ge),Ee==="xmlns"&&(yf(w,ft,_f(Ge),Wt),ze=Ge),yf(w,ft,Qe,Wt)),Mn[me]=ne;continue}G.push(me,ne)}else me=mt(me,ze),me!==null&&(Mn[me]=ne)}if(f)for(at=0,re=G.length;at<re;at++)me=mt(G[at++],ze),ne=G[at],me!==null&&(Mn[me]=ne);return J=Mn}function se(){for(var Wt=/(\r\n|\r|\n)/g,Qe=0,ze=0,G=0,at=pt,gt,re;wt>=G&&(gt=Wt.exec(N),!(!gt||(at=gt[0].length+gt.index,at>wt)));)Qe+=1,G=at;return wt==-1?(ze=at,re=N.substring(pt)):pt===0?re=N.substring(pt,wt):(ze=wt-G,re=pt==-1?N.substring(wt):N.substring(wt,pt+1)),{data:re,line:Qe,column:ze}}for(d=se,e&&(v=Object.create({},{name:Ed(function(){return C}),originalName:Ed(function(){return b}),attrs:Ed(Nt),ns:Ed(function(){return ee||=Object.assign(Object.create(null),w),ee})}));pt!==-1;){if(wt=N.charCodeAt(pt)===60?pt:N.indexOf("<",pt),wt===-1){if(Z)return N.substring(pt);if(S.length)return B("unexpected end of file");if(!u)return B("missing start tag");pt<N.length&&N.substring(pt).trim()&&M(Pw);return}if(u||=!0,pt!==wt){if(S.length){if(n&&(n(N.substring(pt,wt),la,d),k))return}else if(N.substring(pt,wt).trim()&&(M(Pw),k))return}if(ct=N.charCodeAt(wt+1),ct===33){if(F=N.charCodeAt(wt+2),F===91&&N.substr(wt+3,6)==="CDATA["){if(pt=N.indexOf("]]>",wt),pt===-1)return Z?N.substring(wt):B("unclosed cdata");if(i&&(i(N.substring(wt+9,pt),d),k))return;pt+=3;continue}if(F===45&&N.charCodeAt(wt+3)===45){if(pt=N.indexOf("-->",wt),pt===-1)return Z?N.substring(wt):B("unclosed comment");if(c&&(c(N.substring(wt+4,pt),la,d),k))return;pt+=3;continue}}if(ct===63){if(pt=N.indexOf("?>",wt),pt===-1)return Z?N.substring(wt):B("unclosed question");if(l&&(l(N.substring(wt,pt+2),d),k))return;pt+=2}else{for(zt=wt+1;;zt++){if(Ht=N.charCodeAt(zt),isNaN(Ht))return Z?N.substring(wt):(pt=-1,B("unclosed tag"));if(Ht===34)F=N.indexOf('"',zt+1),zt=F===-1?zt:F;else if(Ht===39)F=N.indexOf("'",zt+1),zt=F===-1?zt:F;else if(Ht===62){pt=zt;break}}if(ct===33){if(p&&(p(N.substring(wt,pt+1),la,d),k))return;pt+=1}else{if(J={},ct===47){if(Lt=!1,St=!0,!S.length)return B("missing open tag");if(zt=C=S.pop(),F=wt+2+zt.length,N.substring(wt+2,F)!==zt)return B("closing tag mismatch");for(;F<pt;F++)if(ct=N.charCodeAt(F),!(ct===32||ct>8&&ct<14))return B("close tag")}else{if(N.charCodeAt(pt-1)===47?(zt=C=N.substring(wt+1,pt-1),Lt=!0,St=!0):(zt=C=N.substring(wt+1,pt),Lt=!0,St=!1),!(ct>96&&ct<123||ct>64&&ct<91||ct===95||ct===58))return B("illegal first char nodeName");for(F=1,W=zt.length;F<W;F++)if(ct=zt.charCodeAt(F),!(ct>96&&ct<123||ct>64&&ct<91||ct>47&&ct<59||ct===45||ct===95||ct==46)){if(ct===32||ct<14&&ct>8){C=zt.substring(0,F),J=null;break}return B("invalid nodeName")}St||S.push(C)}if(g){Lt&&(ft=null,J===null&&(f=zt.indexOf("xmlns",F)!==-1)&&(L=F,j=zt,Nt(),f=!1),St||_.push(ft)),b=C,Et===null&&(Et=Object.create(null));var We=Et[C];if(We!==void 0)C=We;else{if(ct=C.indexOf(":"),ct!==-1){if(de=w[C.substring(0,ct)],!de)return B("missing namespace on <"+b+">");C=C.substr(ct+1)}else de=w.xmlns;de&&(C=de+":"+C),Et[b]=C}}if(Lt&&(L=F,j=zt,o&&(e?o(v,la,St,d):o(C,Nt,la,St,d),k)))return;if(St){if(r&&(r(e?v:C,la,Lt,d),k))return;g&&(Lt||(ft=_.pop()),ft&&(JM(w,ft),ft=null,Et=null,ee=null))}pt+=1}}}}}function Xw(t){return t.xml&&t.xml.tagAlias==="lowerCase"}function Zw(t){return t.xml&&t.xml.serialize}function eA(t){let e=Zw(t);return e!==Yw&&(e||null)}function nA(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Jw(t,e){return Xw(e)?t.prefix+":"+nA(t.localName):t.name}function oA(t,e){var n=t.name,o=t.localName,r=e&&e.xml&&e.xml.typePrefix;return r&&o.indexOf(r)===0?t.prefix+":"+o.slice(r.length):n}function rA(t,e,n){let o=Rn(t,e.xmlns),r=Rn("".concat(e[o.prefix]||o.prefix,":").concat(o.localName));return oA(r,n.getPackage(r.prefix))}function Di(t){return Error(t)}function Hr(t){return t.$descriptor}function iA(t){P(this,t),this.elementsById=Object.create(null),this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw Di("expected element");var n=this.elementsById,o=Hr(e).idProperty,r;if(o&&(r=e.get(o.name),r)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(r))throw Error("illegal ID <"+r+">");if(n[r])throw Di("duplicate ID <"+r+">");n[r]=e}},this.addWarning=function(e){this.warnings.push(e)}}function Gc(){}function Sf(){}function ks(){}function Fc(t,e){this.property=t,this.context=e}function Tf(t,e){this.element=e,this.propertyDesc=t}function Md(){}function On(t,e,n){this.model=t,this.type=t.getType(e),this.context=n}function Cf(t,e,n){On.call(this,t,e,n)}function xs(t,e,n){this.model=t,this.context=n}function Bf(t){t instanceof Do&&(t={model:t}),P(this,{lax:!1},t)}function aA(){var t=[];return Object.defineProperty(t,"peek",{value:function(){return this[this.length-1]}}),t}function Po(t){this.prefixMap={},this.uriMap={},this.used={},this.wellknown=[],this.custom=[],this.parent=t,this.defaultPrefixMap=t&&t.defaultPrefixMap||{}}function lA(t){return t.charAt(0).toLowerCase()+t.slice(1)}function pA(t,e){return Xw(e)?lA(t):t}function t5(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}function Dw(t){return yn(t)?t:(t.prefix?t.prefix+":":"")+t.localName}function dA(t){return t.getUsed().filter(function(e){return e.prefix!=="xml"}).map(function(e){return{name:"xmlns"+(e.prefix?":"+e.prefix:""),value:n5(e.uri)}})}function mA(t,e){return e.isGeneric?P({localName:e.ns.localName},t):P({localName:pA(e.ns.localName,e.$pkg)},t)}function uA(t,e){return P({localName:e.ns.localName},t)}function hA(t){var e=t.$descriptor;return Dt(e.properties,function(n){var o=n.name;if(n.isVirtual||!vn(t,o))return!1;var r=t[o];return r===n.default||r===null?!1:!n.isMany||r.length})}function e5(t,e,n){return t=yn(t)?t:""+t,t.replace(e,function(o){return"&"+n[o]+";"})}function n5(t){return e5(t,cA,fA)}function o5(t){return e5(t,Qw,gA)}function yA(t){return Dt(t,function(e){return e.isAttr})}function vA(t){return Dt(t,function(e){return!e.isAttr})}function Rf(t){this.tagName=t}function ma(){}function Mf(t){this.tagName=t}function xe(t,e){this.body=[],this.attrs=[],this.parent=t,this.propertyDescriptor=e}function bA(t,e){for(var n=[{serializer:t,index:0,opened:!1,indent:!1}];n.length;){var o=n[n.length-1],r=o.serializer;if(!o.opened){var i=r.body[0];if(o.indent=i&&i.constructor!==ma,e.appendIndent().append("<"+r.tagName),r.serializeAttributes(e),e.append(i?">":" />"),o.opened=!0,!i){e.appendNewLine(),n.pop();continue}o.indent&&e.appendNewLine().indent()}if(o.index<r.body.length){var a=r.body[o.index++];a instanceof xe?n.push({serializer:a,index:0,opened:!1,indent:!1}):a.serializeTo(e)}else o.indent&&e.unindent().appendIndent(),e.append("</"+r.tagName+">").appendNewLine(),n.pop()}}function Bd(t,e,n){xe.call(this,t,e),this.serialization=n}function xA(){this.value="",this.write=function(t){this.value+=t}}function kA(t,e){var n=[""];this.append=function(o){return t.write(o),this},this.appendNewLine=function(){return e&&t.write("\n"),this},this.appendIndent=function(){return e&&t.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}function wA(t){t=P({format:!1,preamble:!0},t||{});function e(n,o){var r=o||new xA,i=new kA(r,t.format);t.preamble&&i.append(sA);var a=new xe,s=n.$model;if(a.getNamespaces().mapDefaultPrefixes(EA(s)),a.build(n).serializeTo(i),!o)return r.value}return{toXML:e}}function _A(t,e){for(var n=[{serializer:t,children:t.enter(e),index:0}];n.length;){var o=n[n.length-1];if(o.index>=o.children.length)o.serializer.exit(),n.pop();else{var r=o.children[o.index++],i=r.create();o.serializer.body.push(i),r.element&&n.push({serializer:i,children:i.enter(r.element),index:0})}}}function EA(t){let e=t.config&&t.config.nsMap||{},n={};for(let o in Ef)n[o]=Ef[o];for(let o in e){let r=e[o];n[r]=o}for(let o of t.getPackages())n[o.prefix]=o.uri;return n}function Rd(t,e){Do.call(this,t,e)}function Zi(t,e){return new Rd(P({},SA,t),e)}function Hh(t){return t.ctrlKey||t.metaKey||t.shiftKey||t.altKey}function $n(t){return t.altKey?!1:t.ctrlKey||t.metaKey}function Ie(t,e){return t=bt(t)?t:[t],t.indexOf(e.key)!==-1||t.indexOf(e.code)!==-1}function Nc(t){return t.shiftKey}function Fh(t){return $n(t)&&Ie(r5,t)}function Wh(t){return $n(t)&&Ie(i5,t)}function Gh(t){return $n(t)&&Ie(TA,t)}function Vh(t){return $n(t)&&Ie(CA,t)}function dd(t){return $n(t)&&!Nc(t)&&Ie(Pf,t)}function md(t){return $n(t)&&(Ie(a5,t)||Ie(Pf,t)&&Nc(t))}function RA(t){let e=0;for(;e<t.length;){let n=t.indexOf("<",e);if(n<0)return!1;if(t.startsWith("<!--",n))return!0;if(t.startsWith("<![CDATA[",n)){let o=t.indexOf("]]>",n+9);if(o<0)return!1;e=o+3}else if(t.startsWith("<?",n)){let o=t.indexOf("?>",n+2);if(o<0)return!1;e=o+2}else e=n+1}return!1}function MA(t){let e=[];for(let n of t){let o=n.message??"",r=/nested error: duplicate ID <([^>]+)>/.exec(o);if(r)e.push({code:"duplicate-id",severity:"error",destructive:!0,ids:[r[1]],message:'Duplicate id "'.concat(r[1],'": the second element is dropped on save.')});else if(o.startsWith("unparsable content")){let i=/unparsable content <([^>]+?)\/?> detected/.exec(o);e.push({code:"unparsable-content",severity:"warning",destructive:!0,ids:i?[i[1]]:[],message:"Unrecognised content <".concat(i?.[1]??"?","> is dropped on save.")})}else if(o.startsWith("unresolved reference")){let i=/unresolved reference <([^>]+)>/.exec(o)?.[1],a=[i,n.element?.id].filter(s=>typeof s=="string");e.push({code:"unresolved-reference",severity:"warning",destructive:!0,ids:a,message:'Reference to missing id "'.concat(i??"?",'"').concat(n.element?.id?' from "'.concat(n.element.id,'"'):""," is dropped on save.")})}else e.push({code:"import-warning",severity:"warning",message:o.split("\n")[0]??o})}return e}function s5(t,e){for(let n of Gn(t.flowElements))Af(n)&&e.push(n),n.$instanceOf("bpmn:SubProcess")&&s5(n,e);for(let n of Gn(t.artifacts))Af(n)&&e.push(n);for(let n of Gn(t.laneSets)){let o=Gn(n.lanes);for(;o.length;){let r=o.pop();e.push(r),o.push(...Gn(r.childLaneSet?.lanes))}}}function PA(t){let e=[],n=Gn(t.diagrams),o=new Set;for(let c of n){let l=c.plane,p=l?.bpmnElement;p?.id&&o.add(p.id);for(let d of Gn(l?.planeElement)){let m=d.bpmnElement;m?.id&&o.add(m.id)}}let r=[];for(let c of Gn(t.rootElements))if(c.$instanceOf("bpmn:Process")&&s5(c,r),c.$instanceOf("bpmn:Collaboration")){for(let l of Gn(c.participants))r.push(l);for(let l of Gn(c.messageFlows))r.push(l);for(let l of Gn(c.artifacts))Af(l)&&r.push(l)}let i=r.map(c=>c.id).filter(c=>!!c);if(n.length===0){let c=jw(t);return c.length>0&&e.push({code:"incomplete-io-specification",severity:"warning",ids:Td(c),message:"ioSpecification without inputSet and outputSet is invalid against the BPMN 2.0 schema."}),i.length>0&&e.push({code:"missing-di",severity:"error",ids:Td(i),message:"The document has no BPMNDiagram, so there is nothing to draw. DI is not generated implicitly."}),e}let a=jw(t);a.length>0&&e.push({code:"incomplete-io-specification",severity:"warning",ids:Td(a),message:"ioSpecification without inputSet and outputSet is invalid against the BPMN 2.0 schema."});let s=i.filter(c=>!o.has(c));return s.length>0&&e.push({code:"partial-di",severity:"warning",ids:Td(s),message:"".concat(s.length," element(s) have no diagram shape or edge and are not drawn.")}),e}function jw(t){let e=[],n=o=>{let r=o.ioSpecification;r&&(Gn(r.inputSets).length===0||Gn(r.outputSets).length===0)&&e.push(o.id??r.id??o.$type);for(let i of Gn(o.flowElements))n(i)};for(let o of Gn(t.rootElements))o.$instanceOf("bpmn:Process")&&n(o);return e}function $w(){return vf??=Ko(()=>Promise.resolve().then(()=>(Ok(),zk)).then(t=>({Modeler:t.default}),t=>{throw vf=void 0,t}),[]),vf}async function zw(t,e){return t==="legend"?(await Ko(()=>Promise.resolve().then(()=>(Yk(),Xk)),[])).legendProfile(e):t==="colored"?(await Ko(()=>Promise.resolve().then(()=>(ew(),tw)),[])).coloredProfile(e):{id:"standard",modelerModules:[],viewerModules:[]}}function jA(t,e,n){let o=n?{paletteColumns:n}:{};return e.tokens?e.id==="colored"?{instanceId:t,colored:e.tokens,...e.named?{coloredNamed:e.named}:{},...o}:{instanceId:t,legend:e.tokens,...o}:{instanceId:t,...o}}function $A(){return"bc".concat(Math.random().toString(36).slice(2,8)).concat((zA++).toString(36))}function OA(t){let e=t.plane.bpmnElement,n=(e?.participants??[]).map(o=>o.name).filter(Boolean).join(" \xB7 ");return t.name||e?.name||n||e?.id||t.id}function NA(t){let e={};for(let[n,o]of Object.entries(LA)){let r=t[o];typeof r=="string"&&r&&(e[n]=r)}return e}function FA(){return{"inline-01.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='17'%20height='17'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z'%20/%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'%20/%3e%3c/svg%3e",""+import.meta.url).href,"inline-02.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='16'%20cy='16'%20r='11'%20stroke-width='2'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-03.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='16'%20cy='16'%20r='11'%20stroke-width='4'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-04.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='16'%20cy='16'%20r='11'%20stroke-width='1.5'/%3e%3ccircle%20cx='16'%20cy='16'%20r='8'%20stroke-width='1.5'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-05.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='6'%20width='26'%20height='20'%20rx='4'%20stroke-width='2'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-06.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='6'%20width='26'%20height='20'%20rx='4'%20stroke-width='2'/%3e%3crect%20x='12'%20y='18'%20width='8'%20height='6'%20stroke-width='1'/%3e%3cpath%20d='M16%2019.5v3M14.5%2021h3'%20stroke-width='1'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-07.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='6'%20width='26'%20height='20'%20rx='4'%20stroke-width='1.5'/%3e%3cpath%20d='M19%2010h4v-2l4%203l-4%203v-2h-4Z'%20stroke-width='1.2'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-08.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpolygon%20points='16,3%2029,16%2016,29%203,16'%20stroke-width='2'/%3e%3cpath%20d='M12%2012l8%208M20%2012l-8%208'%20stroke-width='2.5'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-09.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpolygon%20points='16,3%2029,16%2016,29%203,16'%20stroke-width='2'/%3e%3cpath%20d='M16%2010v12M10%2016h12'%20stroke-width='2.5'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-10.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M8%2010h11l5%205v14H8z'%20stroke-width='1.5'/%3e%3cpath%20d='M19%2010v5h5'%20stroke-width='1.5'/%3e%3cpath%20d='M16%201v7M13%205l3%203l3-3'%20stroke-width='1.8'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-11.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M8%2010h11l5%205v14H8z'%20stroke-width='1.5'/%3e%3cpath%20d='M19%2010v5h5'%20stroke-width='1.5'/%3e%3cpath%20d='M16%208V1M13%204l3-3l3%203'%20stroke-width='1.8'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-12.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M7%204h12l6%206v18H7z'%20stroke-width='1.5'/%3e%3cpath%20d='M19%204v6h6'%20stroke-width='1.5'/%3e%3cpath%20d='M10%2011h4v-2.5l5%203.5l-5%203.5v-2.5h-4Z'%20stroke-width='1.2'%20fill='none'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-13.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M7%204h12l6%206v18H7z'%20stroke-width='1.5'/%3e%3cpath%20d='M19%204v6h6'%20stroke-width='1.5'/%3e%3cpath%20d='M10%2011h4v-2.5l5%203.5l-5%203.5v-2.5h-4Z'%20stroke-width='1.2'%20fill='black'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-14.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M6%205h20v18.7q-5%20-4.8%20-10%200q-5%204.8%20-10%200Z'%20stroke-width='1.5'/%3e%3cpath%20d='M6%2010h20'%20stroke-width='1.2'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-15.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='7'%20y='5'%20width='22'%20height='22'%20rx='2'%20stroke-width='2'/%3e%3crect%20x='3'%20y='9'%20width='7'%20height='4'%20stroke-width='1.5'/%3e%3crect%20x='3'%20y='18'%20width='7'%20height='4'%20stroke-width='1.5'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-16.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='4'%20y='6'%20width='24'%20height='20'%20stroke-width='2'/%3e%3cpath%20d='M11%206v20'%20stroke-width='1.5'/%3e%3c/svg%3e",""+import.meta.url).href,"inline-17.svg":new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke='black'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M4%2022L20%2010'%20stroke-width='2'/%3e%3cpolygon%20points='28,6%2020,8%2024,14'%20fill='black'%20stroke-width='1'/%3e%3c/svg%3e",""+import.meta.url).href}}function VA(t){let e=t?.href??"",n=Lw.get(e);return n===void 0&&(n=GA.split(WA).map((o,r)=>{if(r===0)return o;let i=/^inline-\d{2}\.svg/.exec(o)?.[0];if(!i)throw Error("unknown inline asset in the generated CSS");return c5(i,t)+o.slice(i.length)}).join(""),Lw.set(e,n)),n}function UA(t){let e=n=>t?new URL("bpmn-font/font/".concat(n),t).href:"";return"@font-face{font-family:'bpmn';src:url('".concat(t?e("bpmn.woff2"):new URL("/assets/bpmn-DaJ2be00.woff2",""+import.meta.url).href,"') format('woff2'),url('").concat(t?e("bpmn.woff"):new URL("/assets/bpmn-DaGVGZ7K.woff",""+import.meta.url).href,"') format('woff'),url('").concat(t?e("bpmn.ttf"):new URL("/assets/bpmn-CZlEAdL6.ttf",""+import.meta.url).href,"') format('truetype');font-weight:normal;font-style:normal;}")}function qA(t){let e=new URL(t);if(!/^(https?|file):$/.test(e.protocol))throw Error("assetBase must be an absolute http(s) URL, got ".concat(t));if(e.search||e.hash)throw Error("assetBase must name a directory, without query or fragment, got ".concat(t));return e.pathname.endsWith("/")||(e.pathname+="/"),e}function KA(t){return t?new URL("bpmn-font/font/bpmn.woff2",t).href:new URL("/assets/bpmn-DaJ2be00.woff2",""+import.meta.url).href}function c5(t,e){if(e)return new URL("inline/".concat(t),e).href;let n=FA()[t];if(!n)throw Error("unknown inline asset ".concat(t));return n}function Hw(t,e,n,o){let r=(t.ownerDocument??t).createElement("style");r.setAttribute(e,""),o&&r.setAttribute("nonce",o),r.textContent=n,t.appendChild(r)}function XA(t,e,n){let o=t.getRootNode(),r=t.ownerDocument;Cd.has(r)||(Cd.add(r),r.head.querySelector("style[".concat(Nw,"]"))||Hw(r.head,Nw,UA(n),e));let i=o instanceof ShadowRoot?o:r.head;Cd.has(i)||(Cd.add(i),(i instanceof ShadowRoot||!r.head.querySelector("style[".concat(Iw,"]")))&&Hw(i,Iw,VA(n),e))}function ZA(t){if(t.length===0)return null;let e=1/0,n=1/0,o=-1/0,r=-1/0;for(let i of t)e=Math.min(e,i.x),n=Math.min(n,i.y),o=Math.max(o,i.x+i.width),r=Math.max(r,i.y+i.height);return{x:e,y:n,width:o-e,height:r-n}}function QA(t){let e=t.find(o=>o.type==="bpmn:StartEvent");if(e)return e;let n=t.filter(o=>!JA.has(o.type));return n.length===0?null:n.reduce((o,r)=>r.x<o.x||r.x===o.x&&r.y<o.y?r:o)}function tP(t,e,n=0,o=!1){let r=ZA(t),i=e.width-n-48;if(!r||i<=0||e.height<=0)return null;let a=Math.min(i/(r.width+2*pa),e.height/(r.height+2*pa));if(o||a>=.6){let h=Math.min(a,1),f=e.width/h,g=e.height/h;return{mode:"fit",scale:h,viewbox:{x:r.x-pa-n/h,y:r.y+r.height/2-g/2,width:f,height:g}}}let s=YA,c=e.width/s,l=e.height/s,p=n/s,d=QA(t)??r,m=r.x-pa-p;d.x+d.width>m+p+(c-p)*.5&&(m=d.x-p-(c-p)*.2);let u=Math.max(r.y-pa,d.y+d.height/2-l/3);return u=Math.min(u,Math.max(r.y-pa,r.y+r.height+pa-l)),{mode:"anchor",viewbox:{x:m,y:u,width:c,height:l},scale:s}}function yr(){let t=Error("Operation aborted: superseded or canvas destroyed");return t.name="AbortError",t}function cP(t,e={}){return new sP(t,e)}function Fw(t){return t instanceof Error?t.message:String(t)}function lP(t,e){return t.document.readyState==="complete"?new Promise(n=>t.setTimeout(n,50)):new Promise(n=>{let o=()=>{t.removeEventListener("load",o),n()};t.addEventListener("load",o),t.setTimeout(o,e)})}function pP(t,e,n){return new Promise(o=>{let r=new t.Image,i=t.setTimeout(()=>o(!1),n);r.onload=()=>{t.clearTimeout(i),o(!0)},r.onerror=()=>{t.clearTimeout(i),o(!1)},r.src=e})}function Ai(t){return typeof t=="object"&&!!t&&!Array.isArray(t)}function Ww(t){return Ai(t)&&t.ok===!1}function Pi(t,e,n){return n===void 0?{ok:!1,code:t,message:e}:{ok:!1,code:t,message:e,pointer:n}}function Mi(t,e){return"".concat(t,"/").concat(String(e).replace(/~/g,"~0").replace(/\//g,"~1"))}function xf(t,e){if(typeof t=="function")return Pi("unsupported-extension","the F1 tree carries a non-data value (\xA74.1)",e)}function Ad(t,e,n,o){let r=xf(e,n);if(r!==void 0)return{refused:r};if(!Ai(e))return{refused:Pi("missing-$type","the F1 tree node at ".concat(n||"/"," is not an object"),n)};let i=e.$type;if(typeof i!="string"||i.length===0)return{refused:Pi("missing-$type","the F1 tree node at ".concat(n||"/"," has no $type"),Mi(n,"$type"))};let a={};for(let[c,l]of Object.entries(e)){if(c==="$type")continue;let p=Mi(n,c),d=xf(l,p);if(d!==void 0)return{refused:d};if(Array.isArray(l)){let m=[];for(let u=0;u<l.length;u+=1){let h=Mi(p,u);if(Ai(l[u])){let f=Ad(t,l[u],h,o);if("refused"in f)return f;m.push(f.root)}else{let f=xf(l[u],h);if(f!==void 0)return{refused:f};m.push(l[u])}}a[c]=m}else if(Ai(l)){let m=Ad(t,l,p,o);if("refused"in m)return m;a[c]=m.root}else a[c]=l}let s;try{s=t.create(i,a)}catch(c){return{refused:Pi("unknown-type",c instanceof Error?c.message:String(c),Mi(n,"$type"))}}return typeof e.id=="string"&&o.set(e.id,s),{root:s}}function Pd(t,e,n,o){for(let r of e.$descriptor.properties){if(!r.isReference)continue;let i=Mi(o,r.name),a=e[r.name],s=(c,l)=>{if(typeof c!="string")return c;let p=n.get(c);return p===void 0?Pi("unresolved-reference",'the reference "'.concat(c,'" names no element of the document'),l):p};if(r.isMany){if(Array.isArray(a)){let c=[];for(let l=0;l<a.length;l+=1){let p=s(a[l],Mi(i,l));if(Ww(p))return p;c.push(p)}e[r.name]=c}}else if(a!==void 0){let c=s(a,i);if(Ww(c))return c;e[r.name]=c}}for(let[r,i]of Object.entries(t)){if(r==="$type")continue;let a=e[r],s=i,c=Mi(o,r);if(Array.isArray(s)&&Array.isArray(a)){for(let l=0;l<s.length;l+=1)if(Ai(s[l])&&s[l].$type!==void 0){let p=Pd(s[l],a[l],n,Mi(c,l));if(p!==void 0)return p}}else if(Ai(s)&&s.$type!==void 0){let l=Pd(s,a,n,c);if(l!==void 0)return l}}}function dP(t){if(!Ai(t))return Pi("missing-$type","the F1 document is not a JSON object");let e=new Zi,n=new Map,o=Ad(e,t,"",n);if("refused"in o)return o.refused;let r=Pd(t,o.root,n,"");return r===void 0?{ok:!0,xml:"",warnings:[]}:r}async function mP(t){if(!Ai(t))return Pi("missing-$type","the F1 document is not a JSON object");let e=new Zi,n=new Map,o=Ad(e,t,"",n);if("refused"in o)return o.refused;let r=Pd(t,o.root,n,"");if(r!==void 0)return r;try{let{xml:i}=await e.toXML(o.root,{format:!0});return{ok:!0,xml:i,warnings:[]}}catch(i){return Pi("unsupported-extension","the F1 tree cannot be serialized: ".concat(i instanceof Error?i.message:String(i)))}}function uP(t){return{source:"bpmn-canvas",validate(e){let n=t(e);return n.ok?(n.warnings??[]).map(o=>({code:o.code,message:o.message,...o.pointer===void 0?{}:{pointer:o.pointer},severity:"warning"})):[{code:n.code,message:n.message,...n.pointer===void 0?{}:{pointer:n.pointer},severity:"error"}]}}}function Gw(t){return{code:t.code,path:"",message:t.message,severity:t.severity==="error"?"error":"warning",source:"bpmn-canvas",...t.ids===void 0?{}:{detail:{ids:t.ids}}}}async function d5(t,e,n){let o=new AbortController,r=cP(t,{xml:e.xml,readOnly:!0,styles:"auto",signal:o.signal,...e.assetBase===void 0?{}:{assetBase:e.assetBase},...e.watermark===void 0?{}:{watermark:e.watermark},onDiagnostic:i=>n(Gw(i))});await r.ready;for(let i of r.getDiagnostics())n(Gw(i));return()=>{o.abort(),r.destroy()}}var Rw,GM,VM,Uw,qM,KM,XM,Wc,Pw,Ef,Yw,sA,cA,Qw,fA,gA,SA,r5,i5,TA,CA,a5,Pf,BA,Td,AA,Af,Gn,DA,vf,zA,Ow,LA,IA,HA,WA,GA,Cd,Lw,Nw,Iw,YA,pa,JA,eP,nP,oP,rP,iP,aP,sP,bf,hP,l5,p5,Ua=gn(()=>{"use strict";Uh();er();Rw=Object.defineProperty,GM=(t,e)=>{let n={};for(var o in t)Rw(n,o,{get:t[o],enumerable:!0});return e||Rw(n,Symbol.toStringTag,{value:"Module"}),n};kf.prototype.get=function(t){return this.$model.properties.get(this,t)},kf.prototype.set=function(t,e){this.$model.properties.set(this,t,e)};Vw.prototype.createType=function(t){var e=this.model,n=this.properties,o=Object.create(kf.prototype);R(t.properties,function(a){!a.isMany&&a.default!==void 0&&(o[a.name]=a.default)}),n.defineModel(o,e),n.defineDescriptor(o,t);var r=t.ns.name;function i(a){n.define(this,"$type",{value:r,enumerable:!0}),n.define(this,"$attrs",{value:{}}),n.define(this,"$parent",{writable:!0}),R(a,bn(function(s,c){this.set(c,s)},this))}return i.prototype=o,i.hasType=o.$instanceOf=this.model.hasType,n.defineModel(i,e),n.defineDescriptor(i,t),i};VM=P(Object.create(null),{String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0}),Uw=P(Object.create(null),{String:function(t){return t},Boolean:function(t){return t==="true"},Integer:function(t){return parseInt(t,10)},Real:function(t){return parseFloat(t)}});po.prototype.build=function(){return Nn(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},po.prototype.addProperty=function(t,e,n){typeof e=="boolean"&&(n=e,e=void 0),this.addNamedProperty(t,n!==!1);var o=this.properties;e===void 0?o.push(t):o.splice(e,0,t)},po.prototype.replaceProperty=function(t,e,n){var o=t.ns,r=this.properties,i=this.propertiesByName,a=t.name!==e.name;if(t.isId){if(!e.isId)throw Error("property <"+e.ns.name+"> must be id property to refine <"+t.ns.name+">");this.setIdProperty(e,!1)}if(t.isBody){if(!e.isBody)throw Error("property <"+e.ns.name+"> must be body property to refine <"+t.ns.name+">");this.setBodyProperty(e,!1)}var s=r.indexOf(t);if(s===-1)throw Error("property <"+o.name+"> not found in property list");r.splice(s,1),this.addProperty(e,n?void 0:s,a),i[o.name]=i[o.localName]=e},po.prototype.redefineProperty=function(t,e,n){var o=t.ns.prefix,r=e.split("#"),i=Rn(r[0],o),a=Rn(r[1],i.prefix).name,s=this.propertiesByName[a];if(s)this.replaceProperty(s,t,n);else throw Error("refined property <"+a+"> not found");delete t.redefines},po.prototype.addNamedProperty=function(t,e){var n=t.ns,o=this.propertiesByName;e&&(this.assertNotDefined(t,n.name),this.assertNotDefined(t,n.localName)),o[n.name]=o[n.localName]=t},po.prototype.removeNamedProperty=function(t){var e=t.ns,n=this.propertiesByName;delete n[e.name],delete n[e.localName]},po.prototype.setBodyProperty=function(t,e){if(e&&this.bodyProperty)throw Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+t.ns.name+">)");this.bodyProperty=t},po.prototype.setIdProperty=function(t,e){if(e&&this.idProperty)throw Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+t.ns.name+">)");this.idProperty=t},po.prototype.assertNotTrait=function(t){if((t.extends||[]).length)throw Error("cannot create <".concat(t.name,"> extending <").concat(t.extends,">"))},po.prototype.assertNotDefined=function(t,e){var n=t.name,o=this.propertiesByName[n];if(o)throw Error("property <"+n+"> already defined; override of <"+o.definedBy.ns.name+"#"+o.ns.name+"> by <"+t.definedBy.ns.name+"#"+t.ns.name+"> not allowed without redefines")},po.prototype.hasProperty=function(t){return this.propertiesByName[t]},po.prototype.addTrait=function(t,e){e&&this.assertNotTrait(t);var n=this.allTypesByName,o=this.allTypes,r=t.name;r in n||(R(t.properties,bn(function(i){i=P({},i,{name:i.ns.localName,inherited:e}),Object.defineProperty(i,"definedBy",{value:t});var a=i.replaces,s=i.redefines;a||s?this.redefineProperty(i,a||s,a):(i.isBody&&this.setBodyProperty(i),i.isId&&this.setIdProperty(i),this.addProperty(i))},this)),o.push(t),n[r]=t)};Ri.prototype.getPackage=function(t){return this.packageMap[t]},Ri.prototype.getPackages=function(){return this.packages},Ri.prototype.registerPackage=function(t){t=P({},t);var e=this.packageMap;Mw(e,t,"prefix"),Mw(e,t,"uri"),R(t.types,bn(function(n){this.registerType(n,t)},this)),e[t.uri]=e[t.prefix]=t,this.packages.push(t)},Ri.prototype.registerType=function(t,e){t=P({},t,{superClass:(t.superClass||[]).slice(),extends:(t.extends||[]).slice(),properties:(t.properties||[]).slice(),meta:P({},t.meta||{})});var n=Rn(t.name,e.prefix),o=n.name,r=Object.create(null);R(t.properties,bn(function(i){var a=Rn(i.name,n.prefix),s=a.name;ff(i.type)||(i.type=Rn(i.type,a.prefix).name),P(i,{ns:a,name:s}),r[s]=i},this)),P(t,{ns:n,name:o,propertiesByName:r}),R(t.extends,bn(function(i){var a=Rn(i,n.prefix),s=this.typeMap[a.name];s.traits=s.traits||[],s.traits.push(o)},this)),this.definePackage(t,e),this.typeMap[o]=t},Ri.prototype.mapTypes=function(t,e,n){var o=ff(t.name)?{name:t.name}:this.typeMap[t.name],r=this;function i(c,l){var p=Rn(c,ff(c)?"":t.prefix);r.mapTypes(p,e,l)}function a(c){return i(c,!0)}function s(c){return i(c,!1)}if(!o)throw Error("unknown type <"+t.name+">");R(o.superClass,n?a:s),e(o,!n),R(o.traits,a)},Ri.prototype.getEffectiveDescriptor=function(t){var e=Rn(t),n=new po(e);this.mapTypes(e,function(r,i){n.addTrait(r,i)});var o=n.build();return this.definePackage(o,o.allTypes[o.allTypes.length-1].$pkg),o},Ri.prototype.definePackage=function(t,e){this.properties.define(t,"$pkg",{value:e})};da.prototype.set=function(t,e,n){if(!yn(e)||!e.length)throw TypeError("property name must be a non-empty string");var o=this.getProperty(t,e),r=o&&o.name;UM(n)?o?delete t[r]:delete t.$attrs[gf(e)]:o?r in t?t[r]=n:Aw(t,o,n):t.$attrs[gf(e)]=n},da.prototype.get=function(t,e){var n=this.getProperty(t,e);if(!n)return t.$attrs[gf(e)];var o=n.name;return!t[o]&&n.isMany&&Aw(t,n,[]),t[o]},da.prototype.define=function(t,e,n){if(!n.writable){var o=n.value;n=P({},n,{get:function(){return o}}),delete n.value}Object.defineProperty(t,e,n)},da.prototype.defineDescriptor=function(t,e){this.define(t,"$descriptor",{value:e})},da.prototype.defineModel=function(t,e){this.define(t,"$model",{value:e})},da.prototype.getProperty=function(t,e){var n=this.model,o=n.getPropertyDescriptor(t,e);if(o)return o;if(e.includes(":"))return null;let r=n.config.strict;if(r!==void 0){let i=TypeError("unknown property <".concat(e,"> on <").concat(t.$type,">"));if(r)throw i;typeof console<"u"&&console.warn(i)}return null};Do.prototype.create=function(t,e){var n=this.getType(t);if(!n)throw Error("unknown type <"+t+">");return new n(e)},Do.prototype.getType=function(t){var e=this.typeCache,n=yn(t)?t:t.ns.name,o=e[n];return o||=(t=this.registry.getEffectiveDescriptor(n),e[n]=this.factory.createType(t)),o},Do.prototype.createAny=function(t,e,n){var o=Rn(t),r={$type:t,$instanceOf:function(a){return a===this.$type},get:function(a){return this[a]},set:function(a,s){Ng(this,[a],s)}},i={name:t,isGeneric:!0,ns:{prefix:o.prefix,localName:o.localName,uri:e}};return this.properties.defineDescriptor(r,i),this.properties.defineModel(r,this),this.properties.define(r,"get",{enumerable:!1,writable:!0}),this.properties.define(r,"set",{enumerable:!1,writable:!0}),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),R(n,function(a,s){Se(a)&&a.value!==void 0?r[a.name]=a.value:r[s]=a}),r},Do.prototype.getPackage=function(t){return this.registry.getPackage(t)},Do.prototype.getPackages=function(){return this.registry.getPackages()},Do.prototype.getElementDescriptor=function(t){return t.$descriptor},Do.prototype.hasType=function(t,e){e===void 0&&(e=t,t=this);var n=t.$model.getElementDescriptor(t);return e in n.allTypesByName},Do.prototype.getPropertyDescriptor=function(t,e){return this.getElementDescriptor(t).propertiesByName[e]},Do.prototype.getTypeDescriptor=function(t){return this.registry.typeMap[t]};qM=String.fromCharCode,KM=Object.prototype.hasOwnProperty,XM=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,Wc={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(Wc).forEach(function(t){Wc[t.toUpperCase()]=Wc[t]});Pw="non-whitespace outside of root node";Ef={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},Yw="property";Gc.prototype.handleEnd=function(){},Gc.prototype.handleText=function(){},Gc.prototype.handleNode=function(){};Sf.prototype=Object.create(Gc.prototype),Sf.prototype.handleNode=function(){return this};ks.prototype=Object.create(Gc.prototype),ks.prototype.handleText=function(t){this.body=(this.body||"")+t};Fc.prototype=Object.create(ks.prototype),Fc.prototype.handleNode=function(t){if(this.element)throw Di("expected no sub nodes");return this.element=this.createReference(t),this},Fc.prototype.handleEnd=function(){this.element.id=this.body},Fc.prototype.createReference=function(t){return{property:this.property.ns.name,id:""}};Tf.prototype=Object.create(ks.prototype),Tf.prototype.handleEnd=function(){var t=this.body||"",e=this.element,n=this.propertyDesc;t=wf(n.type,t),n.isMany?e.get(n.name).push(t):e.set(n.name,t)};Md.prototype=Object.create(ks.prototype),Md.prototype.handleNode=function(t){var e=this,n=this.element;return n?e=this.handleChild(t):(n=this.element=this.createElement(t),this.context.addElement(n)),e};On.prototype=Object.create(Md.prototype),On.prototype.addReference=function(t){this.context.addReference(t)},On.prototype.handleText=function(t){var e=this.element;if(!Hr(e).bodyProperty)throw Di("unexpected body text <"+t+">");ks.prototype.handleText.call(this,t)},On.prototype.handleEnd=function(){var t=this.body,e=this.element,n=Hr(e).bodyProperty;n&&t!==void 0&&(t=wf(n.type,t),e.set(n.name,t))},On.prototype.createElement=function(t){var e=t.attributes,n=this.type,o=Hr(n),r=this.context,i=new n({}),a=this.model,s;return R(e,function(c,l){var p=o.propertiesByName[l],d;p&&p.isReference?p.isMany?(d=c.split(" "),R(d,function(m){r.addReference({element:i,property:p.ns.name,id:m})})):r.addReference({element:i,property:p.ns.name,id:c}):(p?c=wf(p.type,c):l==="xmlns"?l=":"+l:(s=Rn(l,o.ns.prefix),a.getPackage(s.prefix)&&r.addWarning({message:"unknown attribute <"+l+">",element:i,property:l,value:c})),i.set(l,c))}),i},On.prototype.getPropertyForNode=function(t){var e=t.name,n=Rn(e),o=this.type,r=this.model,i=Hr(o),a=n.name,s=i.propertiesByName[a];if(s&&!s.isAttr){let l=eA(s);if(l){let p=t.attributes[l];if(p){let d=rA(p,t.ns,r),m=r.getType(d);return P({},s,{effectiveType:Hr(m).name})}}return s}var c=r.getPackage(n.prefix);if(c){let l=Jw(n,c),p=r.getType(l);if(s=ce(i.properties,function(d){return!d.isVirtual&&!d.isReference&&!d.isAttribute&&p.hasType(d.type)}),s)return P({},s,{effectiveType:Hr(p).name})}else if(s=ce(i.properties,function(l){return!l.isReference&&!l.isAttribute&&l.type==="Element"}),s)return s;throw Di("unrecognized element <"+n.name+">")},On.prototype.toString=function(){return"ElementDescriptor["+Hr(this.type).name+"]"},On.prototype.valueHandler=function(t,e){return new Tf(t,e)},On.prototype.referenceHandler=function(t){return new Fc(t,this.context)},On.prototype.handler=function(t){return t==="Element"?new xs(this.model,t,this.context):new On(this.model,t,this.context)},On.prototype.handleChild=function(t){var e=this.getPropertyForNode(t),n,o=this.element,r;if(n=e.effectiveType||e.type,qw(n))return this.valueHandler(e,o);r=e.isReference?this.referenceHandler(e).handleNode(t):this.handler(n).handleNode(t);var i=r.element;return i!==void 0&&(e.isMany?o.get(e.name).push(i):o.set(e.name,i),e.isReference?(P(i,{element:o}),this.context.addReference(i)):i.$parent=o),r};Cf.prototype=Object.create(On.prototype),Cf.prototype.createElement=function(t){var e=t.name,n=Rn(e),o=this.model,r=this.type,i=o.getPackage(n.prefix),a=i&&Jw(n,i)||e;if(!r.hasType(a))throw Di("unexpected element <"+t.originalName+">");return On.prototype.createElement.call(this,t)};xs.prototype=Object.create(Md.prototype),xs.prototype.createElement=function(t){var e=t.name,n=Rn(e).prefix,o=t.ns[n+"$uri"],r=t.attributes;return this.model.createAny(e,o,r)},xs.prototype.handleChild=function(t){var e=new xs(this.model,"Element",this.context).handleNode(t),n=this.element,o=e.element,r;return o!==void 0&&(r=n.$children=n.$children||[],r.push(o),o.$parent=n),e},xs.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};Bf.prototype.fromXML=function(t,e,n){var o=e.rootHandler;e instanceof On?(o=e,e={}):typeof e=="string"?(o=this.handler(e),e={}):typeof o=="string"&&(o=this.handler(o));var r=this.model,i=this.lax,a=new iA(P({},e,{rootHandler:o})),s=new Kw({proxy:!0}),c=aA();o.context=a,c.push(o);function l(S,T,B){var M=T(),z=M.line,H=M.column,N=M.data;N.charAt(0)==="<"&&N.indexOf(" ")!==-1&&(N=N.slice(0,N.indexOf(" "))+">");var Z="unparsable content "+(N?N+" ":"")+"detected\n line: "+z+"\n column: "+H+"\n nested error: "+S.message;if(B)return a.addWarning({message:Z,error:S}),!0;throw Di(Z)}function p(S,T){return l(S,T,!0)}function d(){for(var S=a.elementsById,T=a.references,B=0,M;M=T[B];B++){var z=M.element,H=S[M.id],N=Hr(z).propertiesByName[M.property];if(H||a.addWarning({message:"unresolved reference <"+M.id+">",element:M.element,property:M.property,value:M.id}),N.isMany){var Z=z.get(N.name),Et=Z.indexOf(M);Et===-1&&(Et=Z.length),H?Z[Et]=H:Z.splice(Et,1)}else z.set(N.name,H)}}function m(){c.pop().handleEnd()}var u=/^<\?xml /i,h=/ encoding="([^"]+)"/i,f=/^utf-8$/i;function g(S){if(u.test(S)){var T=h.exec(S),B=T&&T[1];B&&!f.test(B)&&a.addWarning({message:"unsupported document encoding <"+B+">, falling back to UTF-8"})}}function x(S,T){var B=c.peek();try{c.push(B.handleNode(S))}catch(M){l(M,T,i)&&c.push(new Sf)}}function k(S,T){try{c.peek().handleText(S)}catch(B){p(B,T)}}function _(S,T){S.trim()&&k(S,T)}var w=r.getPackages().reduce(function(S,T){return S[T.uri]=T.prefix,S},Object.entries(Ef).reduce(function(S,[T,B]){return S[B]=T,S},r.config&&r.config.nsMap||{}));return s.ns(w).on("openTag",function(S,T,B,M){var z=S.attrs||{},H=Object.keys(z).reduce(function(N,Z){return N[Z]=T(z[Z]),N},{});x({name:S.name,originalName:S.originalName,attributes:H,ns:S.ns},M)}).on("question",g).on("closeTag",m).on("cdata",k).on("text",function(S,T,B){_(T(S),B)}).on("error",l).on("warn",p),new Promise(function(S,T){var B;try{s.parse(t),d()}catch(Z){B=Z}var M=o.element;!B&&!M&&(B=Di("failed to parse document as <"+o.type.$descriptor.name+">"));var z=a.warnings,H=a.references,N=a.elementsById;return B?(B.warnings=z,T(B)):S({rootElement:M,elementsById:N,references:H,warnings:z})})},Bf.prototype.handler=function(t){return new Cf(this.model,t)};sA='<?xml version="1.0" encoding="UTF-8"?>\n',cA=/<|>|'|"|&|\n\r|\n/g,Qw=/<|>|&/g;Po.prototype.mapDefaultPrefixes=function(t){this.defaultPrefixMap=t},Po.prototype.defaultUriByPrefix=function(t){return this.defaultPrefixMap[t]},Po.prototype.resolve=function(t){for(var e=this;e;){var n=t(e);if(n)return n;e=e.parent}},Po.prototype.eachScope=function(t){for(var e=this;e;)t(e),e=e.parent},Po.prototype.byUri=function(t){return this.resolve(function(e){return e.uriMap[t]})},Po.prototype.add=function(t,e){this.uriMap[t.uri]=t,e?this.wellknown.push(t):this.custom.push(t),this.mapPrefix(t.prefix,t.uri)},Po.prototype.uriByPrefix=function(t){var e=t||"xmlns";return this.resolve(function(n){return n.prefixMap[e]})},Po.prototype.mapPrefix=function(t,e){this.prefixMap[t||"xmlns"]=e},Po.prototype.getNSKey=function(t){return t.prefix===void 0?t.uri:t.uri+"|"+t.prefix},Po.prototype.logUsed=function(t){var e=t.uri,n=this.getNSKey(t),o=this.byUri(e);this.eachScope(function(r){r.used[n]=o})},Po.prototype.getUsed=function(t){return[].concat(this.wellknown,this.custom).filter(e=>{var n=this.getNSKey(e);return this.used[n]})};fA={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},gA={"<":"lt",">":"gt","&":"amp"};Rf.prototype.build=function(t){return this.element=t,this},Rf.prototype.serializeTo=function(t){t.appendIndent().append("<"+this.tagName+">"+o5(this.element.id)+"</"+this.tagName+">").appendNewLine()};ma.prototype.serializeValue=ma.prototype.serializeTo=function(t){t.append(this.escape?o5(this.value):this.value)},ma.prototype.build=function(t,e){return this.value=e,t.type==="String"&&e.search(Qw)!==-1&&(this.escape=!0),this};t5(Mf,ma),Mf.prototype.serializeTo=function(t){t.appendIndent().append("<"+this.tagName+">"),this.serializeValue(t),t.append("</"+this.tagName+">").appendNewLine()};xe.prototype.build=function(t){return _A(this,t),this},xe.prototype.enter=function(t){this.element=t;var e=t.$descriptor,n=this.propertyDescriptor,o=e.isGeneric;if(this.otherAttrs=o?this.parseGenericNsAttributes(t):this.parseNsAttributes(t),this.ns=n?this.nsPropertyTagName(n):this.nsTagName(e),this.tagName=this.addTagName(this.ns),o)return this.collectGenericContainments(t);var r=hA(t);return this.parseAttributes(yA(r)),this.collectContainments(vA(r))},xe.prototype.exit=function(){this.parseGenericAttributes(this.element,this.otherAttrs)},xe.prototype.nsTagName=function(t){return mA(this.logNamespaceUsed(t.ns),t)},xe.prototype.nsPropertyTagName=function(t){return uA(this.logNamespaceUsed(t.ns),t)},xe.prototype.isLocalNs=function(t){return t.uri===this.ns.uri},xe.prototype.nsAttributeName=function(t){var e=yn(t)?Rn(t):t.ns;if(t.inherited)return{localName:e.localName};var n=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:e.localName}:P({localName:e.localName},n)},xe.prototype.parseGenericNsAttributes=function(t){return Object.entries(t).filter(([e,n])=>!e.startsWith("$")&&this.parseNsAttribute(t,e,n)).map(([e,n])=>({name:e,value:n}))},xe.prototype.collectGenericContainments=function(t){var e=this,n=[],o=t.$body;o&&n.push({create:function(){return new ma().build({type:"String"},o)}});var r=t.$children;return r&&R(r,function(i){n.push({create:function(){return new xe(e)},element:i})}),n},xe.prototype.parseNsAttribute=function(t,e,n){var o=t.$model,r=Rn(e),i;if(r.prefix==="xmlns"&&(i={prefix:r.localName,uri:n}),!r.prefix&&r.localName==="xmlns"&&(i={uri:n}),!i)return{name:e,value:n};if(o&&o.getPackage(n))this.logNamespace(i,!0,!0);else{var a=this.logNamespaceUsed(i,!0);this.getNamespaces().logUsed(a)}},xe.prototype.parseNsAttributes=function(t){var e=this,n=t.$attrs,o=[];return R(n,function(r,i){var a=e.parseNsAttribute(t,i,r);a&&o.push(a)}),o},xe.prototype.parseGenericAttributes=function(t,e){var n=this;R(e,function(o){try{n.addAttribute(n.nsAttributeName(o.name),o.value)}catch(r){typeof console<"u"&&console.warn("missing namespace information for <".concat(o.name,"=").concat(o.value,"> on"),t,r)}})},xe.prototype.collectContainments=function(t){var e=this,n=this.element,o=[];return R(t,function(r){var i=n.get(r.name),a=r.isReference;if(r.isMany||(i=[i]),r.isBody)o.push({create:function(){return new ma().build(r,i[0])}});else if(qw(r.type))R(i,function(c){o.push({create:function(){return new Mf(e.addTagName(e.nsPropertyTagName(r))).build(r,c)}})});else if(a)R(i,function(c){o.push({create:function(){return new Rf(e.addTagName(e.nsPropertyTagName(r))).build(c)}})});else{var s=Zw(r);R(i,function(c){o.push({create:function(){return s?s===Yw?new xe(e,r):new Bd(e,r,s):new xe(e)},element:c})})}}),o},xe.prototype.getNamespaces=function(t){var e=this.namespaces;if(!e){var n=this.getParentNamespaces();t||!n?this.namespaces=e=new Po(n):e=n}return e},xe.prototype.getParentNamespaces=function(){if(this.parentNamespaces!==void 0)return this.parentNamespaces;for(var t=null,e=this.parent;e;){if(e.namespaces){t=e.namespaces;break}if(e.parentNamespaces!==void 0){t=e.parentNamespaces;break}e=e.parent}return this.parentNamespaces=t},xe.prototype.logNamespace=function(t,e,n){var o=this.getNamespaces(n),r=t.uri,i=t.prefix;return(!o.byUri(r)||n)&&o.add(t,e),o.mapPrefix(i,r),t},xe.prototype.logNamespaceUsed=function(t,e){var n=this.getNamespaces(e),o=t.prefix,r=t.uri,i,a,s;if(!o&&!r)return{localName:t.localName};if(s=n.defaultUriByPrefix(o),r=r||s||n.uriByPrefix(o),!r)throw Error("no namespace uri given for prefix <"+o+">");if(t=n.byUri(r),!t&&!o&&(t=this.logNamespace({uri:r},s===r,!0)),!t){for(i=o,a=1;n.uriByPrefix(i);)i=o+"_"+a++;t=this.logNamespace({prefix:i,uri:r},s===r)}return o&&n.mapPrefix(o,r),t},xe.prototype.parseAttributes=function(t){var e=this,n=this.element;R(t,function(o){var r=n.get(o.name);if(o.isReference)if(!o.isMany)r=r.id;else{var i=[];R(r,function(a){i.push(a.id)}),r=i.join(" ")}e.addAttribute(e.nsAttributeName(o),r)})},xe.prototype.addTagName=function(t){var e=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(e),Dw(t)},xe.prototype.addAttribute=function(t,e){var n=this.attrs;yn(e)&&(e=n5(e));var o=cl(n,function(i){return i.name.localName===t.localName&&i.name.uri===t.uri&&i.name.prefix===t.prefix}),r={name:t,value:e};o===-1?n.push(r):n.splice(o,1,r)},xe.prototype.serializeAttributes=function(t){var e=this.attrs,n=this.namespaces;n&&(e=dA(n).concat(e)),R(e,function(o){t.append(" ").append(Dw(o.name)).append('="').append(o.value).append('"')})},xe.prototype.serializeTo=function(t){bA(this,t)};t5(Bd,xe),Bd.prototype.parseNsAttributes=function(t){var e=xe.prototype.parseNsAttributes.call(this,t).filter(a=>a.name!==this.serialization),n=t.$descriptor;if(n.name===this.propertyDescriptor.type)return e;var o=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var r=t.$model.getPackage(o.uri),i=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(this.serialization),(o.prefix?o.prefix+":":"")+i+n.ns.localName),e},Bd.prototype.isLocalNs=function(t){return t.uri===(this.typeNs||this.ns).uri};Rd.prototype=Object.create(Do.prototype),Rd.prototype.fromXML=function(t,e,n){yn(e)||(n=e,e="bpmn:Definitions");var o=new Bf(P({model:this,lax:!0},n)),r=o.handler(e);return o.fromXML(t,r)},Rd.prototype.toXML=function(t,e){var n=new wA(e);return new Promise(function(o,r){try{return o({xml:n.toXML(t)})}catch(i){return r(i)}})};SA={bpmn:{name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",prefix:"bpmn",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],enumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],xml:{tagAlias:"lowerCase",typePrefix:"t"}},bpmndi:{name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",prefix:"bpmndi",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],enumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[]},dc:{name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",prefix:"dc",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],associations:[]},di:{name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",prefix:"di",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],associations:[],xml:{tagAlias:"lowerCase"}},bioc:{name:"bpmn.io colors for BPMN",uri:"http://bpmn.io/schema/bpmn/biocolor/1.0",prefix:"bioc",types:[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]},color:{name:"BPMN in Color",uri:"http://www.omg.org/spec/BPMN/non-normative/color/1.0",prefix:"color",types:[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]}};r5=["c","C"],i5=["v","V"],TA=["d","D"],CA=["x","X"],a5=["y","Y"],Pf=["z","Z"];BA=100,Td=t=>[...new Set(t)].slice(0,BA);AA=["bpmn:FlowNode","bpmn:SequenceFlow","bpmn:MessageFlow","bpmn:Participant","bpmn:Lane","bpmn:Association","bpmn:TextAnnotation","bpmn:Group","bpmn:DataObjectReference","bpmn:DataStoreReference","bpmn:DataInputAssociation","bpmn:DataOutputAssociation"],Af=t=>AA.some(e=>t.$instanceOf(e)),Gn=t=>Array.isArray(t)?t:[];DA=t=>t.some(e=>e.destructive===!0);zA=0;Ow="bpmn-canvas--colored",LA=Object.freeze({"--bpmn-canvas-icon-start":"eventLine","--bpmn-canvas-icon-end":"eventLine","--bpmn-canvas-icon-intermediate":"eventLine","--bpmn-canvas-icon-task":"taskLine","--bpmn-canvas-icon-subprocess":"taskLine","--bpmn-canvas-icon-external":"externalLine","--bpmn-canvas-icon-gateway":"gatewayLine","--bpmn-canvas-icon-data":"dataLine","--bpmn-canvas-icon-document":"docLine","--bpmn-canvas-icon-application":"appLine","--bpmn-canvas-icon-lane":"laneLine","--bpmn-canvas-icon-pool":"poolLine","--bpmn-canvas-icon-flow":"flow"});IA={__init__:["bpmnCanvasPalette"],bpmnCanvasPalette:["type",class{static $inject=["config.bpmnCanvas","canvas","eventBus","injector"];constructor(t,e,n,o){let r=t?.paletteColumns??"auto",i=o.get("palette",!1);if(i&&r!=="auto"){let d=i._toggleState.bind(i);i._toggleState=(m={})=>d("twoColumn"in m?m:{...m,twoColumn:r===2})}let a=t?.legend??t?.colored,s=!!t?.colored,c=[],l=null,p=()=>{if(l=e.getContainer()?.closest(".bpmn-canvas")??l,!l||!a||c.length>0)return;let d=NA(a);for(let[m,u]of Object.entries(d))l.style.setProperty(m,u);c=Object.keys(d),s&&l.classList.add(Ow)};n.on("diagram.init",()=>{p(),queueMicrotask(p)}),n.on("import.done",p),n.on("diagram.destroy",()=>{if(l){for(let d of c)l.style.removeProperty(d);l.classList.remove(Ow),c=[],l=null}})}}]},HA={__init__:["bpmnCanvasReadOnly"],bpmnCanvasReadOnly:["type",class{static $inject=["commandStack","injector"];enabled=!1;directEditing;contextPad;dragging;constructor(t,e){let n=t.execute.bind(t),o=t.undo.bind(t),r=t.redo.bind(t),i=t.canExecute.bind(t);t.execute=(s,c)=>{this.enabled||n(s,c)},t.undo=()=>{this.enabled||o()},t.redo=()=>{this.enabled||r()},t.canExecute=(s,c)=>!this.enabled&&i(s,c),this.directEditing=e.get("directEditing",!1)??null,this.contextPad=e.get("contextPad",!1)??null,this.dragging=e.get("dragging",!1)??null;let a=this.directEditing;if(a?.activate){let s=a.activate.bind(a);a.activate=(...c)=>this.enabled?void 0:s(...c)}}setReadOnly(t){this.enabled=t,t&&(this.directEditing?.cancel?.(),this.contextPad?.close?.(),this.dragging?.cancel?.())}isReadOnly(){return this.enabled}}]};WA="__ASSET__",GA="/**\n * Semantic tokens, copied from `@bpmn-io/theme` to style the components\n * according to this theme.\n *\n * Names and values of the tokens should stay intact with the `@bpmn-io/theme`\n * source of truth, to ensure matching styles and allow overrides with an\n * alternative theme.\n */\n.bio-theme-parent {\n --bio-surface: hsl(0, 0%, 100%);\n --bio-surface-overlay: hsl(0, 0%, 100%);\n --bio-surface-subtle: hsl(225, 10%, 97%);\n --bio-surface-medium: hsl(225, 10%, 95%);\n --bio-surface-inverted: hsl(0, 0%, 22%);\n --bio-surface-inverted-subtle: hsl(225, 10%, 35%);\n --bio-text: hsl(225, 10%, 15%);\n --bio-text-subtle: hsl(225, 10%, 35%);\n --bio-text-subtlest: hsl(225, 10%, 55%);\n --bio-text-on-inverted: hsl(0, 0%, 100%);\n --bio-border: hsl(225, 10%, 75%);\n --bio-border-disabled: hsl(225, 10%, 90%);\n --bio-primary: hsl(205, 100%, 40%);\n --bio-primary-surface: hsl(205, 100%, 95%);\n --bio-danger: hsl(360, 100%, 45%);\n --bio-danger-surface-subtle: hsl(360, 100%, 97%);\n --bio-selected-surface: var(--bio-surface-medium);\n --bio-selected-text: var(--bio-text);\n --bio-focus: hsl(205, 100%, 40%);\n --bio-focus-surface: hsl(205, 100%, 95%);\n --bio-canvas-accent: hsl(205, 100%, 40%);\n --bio-canvas-accent-subtle: hsl(205, 100%, 75%);\n --bio-shadow: hsla(0, 0%, 0%, 30%);\n --bio-shadow-subtle: hsla(0, 0%, 0%, 10%);\n --bio-radius-sm: 2px;\n --bio-radius-md: 3px;\n --bio-radius-lg: 4px;\n}\n\n/**\n * color definitions\n *\n * Colours resolve through the semantic tokens in `@bpmn-io/theme`; a handful of\n * values with no matching token stay literal.\n */\n.djs-parent {\n\n --button-border-radius: var(--bio-radius-md);\n --input-border-radius: var(--bio-radius-sm);\n --surface-border-radius: var(--bio-radius-lg);\n\n --canvas-fill-color: var(--bio-surface);\n\n --accent-color: var(--bio-canvas-accent);\n\n --bendpoint-fill-color: var(--bio-canvas-accent);\n --bendpoint-stroke-color: var(--canvas-fill-color);\n\n --context-pad-entry-background-color: var(--bio-surface);\n --context-pad-entry-hover-background-color: var(--bio-surface-medium);\n\n --element-dragger-color: var(--accent-color);\n --element-selected-outline-stroke-color: var(--accent-color);\n --element-selected-outline-secondary-stroke-color: var(--bio-canvas-accent-subtle);\n\n --lasso-fill-color: color-mix(in srgb, var(--bio-canvas-accent) 15%, transparent);\n --lasso-stroke-color: var(--element-selected-outline-stroke-color);\n\n --palette-entry-color: var(--bio-text);\n --palette-entry-hover-color: var(--bio-primary);\n --palette-entry-selected-color: var(--bio-primary);\n --palette-separator-color: var(--bio-border);\n --palette-toggle-hover-background-color: var(--bio-surface-medium);\n --palette-background-color: var(--bio-surface-subtle);\n --palette-border-color: var(--bio-border);\n\n --popup-font-family: \"IBM Plex Sans\", sans-serif;\n --popup-font-size: 14px;\n --popup-secondary-font-size: .9em;\n --popup-header-entry-selected-color: var(--bio-primary);\n --popup-header-font-weight: bolder;\n --popup-header-group-divider-color: var(--bio-border);\n --popup-background-color: var(--bio-surface-overlay);\n --popup-border-color: transparent;\n --popup-shadow-color: var(--bio-shadow);\n /* translucent, so the thumb darkens whatever it scrolls over */\n --popup-scrollbar-thumb-color: rgba(0, 0, 0, 0.2);\n --popup-button-background-color: var(--bio-surface-overlay);\n --popup-button-hover-background-color: var(--bio-surface-medium);\n --popup-disabled-color: var(--bio-text-subtle);\n --popup-description-color: var(--bio-text-subtle);\n --popup-no-results-color: var(--bio-text-subtlest);\n --popup-entry-title-color: var(--bio-text-subtlest);\n\n --popup-entry-selected-background-color: var(--bio-selected-surface);\n --popup-entry-selected-color: var(--bio-selected-text);\n --popup-search-border-color: var(--bio-border);\n --popup-search-focus-border-color: var(--bio-focus);\n --popup-search-focus-background-color: var(--bio-focus-surface);\n --popup-tab-color: var(--bio-text-subtlest);\n --popup-tab-hover-color: var(--bio-text);\n --popup-tab-active-color: var(--bio-text);\n --popup-tab-active-border-color: var(--bio-primary);\n --popup-tab-strip-border-color: var(--bio-border-disabled);\n --popup-tab-focus-border-color: var(--bio-focus);\n\n --resizer-fill-color: var(--bio-canvas-accent);\n --resizer-stroke-color: var(--canvas-fill-color);\n\n --search-font-family: \"IBM Plex Sans\", sans-serif;\n --search-font-size: 14px;\n --search-container-background-color: var(--bio-surface-overlay);\n --search-shadow-color: var(--bio-shadow);\n --search-input-border-color: var(--bio-border);\n --search-input-focus-border-color: var(--bio-focus);\n --search-input-focus-background-color: var(--bio-primary-surface);\n --search-result-hover-background-color: var(--bio-surface-medium);\n --search-result-secondary-color: var(--bio-text-subtlest);\n --search-preselected-background-color: color-mix(in srgb, var(--bio-canvas-accent) 15%, transparent);\n\n --shape-attach-allowed-stroke-color: var(--accent-color);\n --shape-connect-allowed-fill-color: var(--bio-surface-subtle);\n --shape-drop-allowed-fill-color: var(--bio-surface-subtle);\n --shape-drop-not-allowed-fill-color: var(--bio-danger-surface-subtle);\n --shape-resize-preview-stroke-color: var(--accent-color);\n\n --snap-line-stroke-color: color-mix(in srgb, var(--bio-canvas-accent) 30%, transparent);\n\n --space-tool-crosshair-stroke-color: var(--bio-text);\n\n --tooltip-error-background-color: var(--bio-danger-surface-subtle);\n --tooltip-error-border-color: var(--bio-danger);\n --tooltip-error-color: var(--bio-danger);\n\n --hover-tooltip-font-family: \"IBM Plex Sans\", sans-serif;\n --hover-tooltip-font-size: 12px;\n --hover-tooltip-secondary-font-size: 11px;\n --hover-tooltip-background-color: var(--bio-surface-inverted);\n --hover-tooltip-color: var(--bio-text-on-inverted);\n --hover-tooltip-shadow-color: var(--bio-shadow-subtle);\n\n --palette-tooltip-shortcut-background-color: var(--bio-surface-inverted-subtle);\n}\n\n/**\n * SVG styles\n */\n\n.djs-container svg.drop-not-ok {\n background: var(--shape-drop-not-allowed-fill-color) !important;\n}\n\n.djs-container svg.new-parent {\n background: var(--shape-drop-allowed-fill-color) !important;\n}\n\n.djs-container svg:focus {\n outline-offset: -1px;\n}\n\n/**\n * outline styles\n */\n\n.djs-outline,\n.djs-selection-outline {\n fill: none;\n shape-rendering: geometricPrecision;\n stroke-width: 2px;\n}\n\n.djs-outline {\n visibility: hidden;\n}\n\n.djs-selection-outline {\n stroke: var(--element-selected-outline-stroke-color);\n}\n\n.djs-element.selected .djs-outline {\n visibility: visible;\n\n stroke: var(--element-selected-outline-stroke-color);\n}\n\n.djs-connection.selected .djs-outline {\n display: none;\n}\n\n.djs-multi-select .djs-element.selected .djs-outline,\n.djs-dragging-active-lasso .djs-element.selected .djs-outline {\n stroke: var(--element-selected-outline-secondary-stroke-color);\n display: block;\n}\n\n.djs-outline-hidden .djs-outline {\n display: none !important;\n}\n\n.djs-shape.connect-ok .djs-visual > :nth-child(1) {\n fill: var(--shape-connect-allowed-fill-color) !important;\n}\n\n.djs-shape.connect-not-ok .djs-visual > :nth-child(1),\n.djs-shape.drop-not-ok .djs-visual > :nth-child(1) {\n fill: var(--shape-drop-not-allowed-fill-color) !important;\n}\n\n.djs-shape.new-parent .djs-visual > :nth-child(1) {\n fill: var(--shape-drop-allowed-fill-color) !important;\n}\n\n\n/* Override move cursor during drop and connect */\n.drop-not-ok,\n.connect-not-ok,\n.drop-not-ok *,\n.connect-not-ok * {\n cursor: not-allowed !important;\n}\n\n.drop-ok,\n.connect-ok,\n.drop-ok *,\n.connect-ok * {\n cursor: default !important;\n}\n\n.djs-element.attach-ok .djs-visual > :nth-child(1) {\n stroke-width: 5px !important;\n stroke: var(--shape-attach-allowed-stroke-color) !important;\n}\n\n.djs-frame.connect-not-ok .djs-visual > :nth-child(1),\n.djs-frame.drop-not-ok .djs-visual > :nth-child(1) {\n stroke-width: 3px !important;\n stroke: var(--shape-drop-not-allowed-fill-color) !important;\n fill: none !important;\n}\n\n/**\n* Selection box style\n*\n*/\n.djs-lasso-overlay {\n fill: var(--lasso-fill-color);\n stroke: var(--lasso-stroke-color);\n stroke-width: 2px;\n shape-rendering: geometricPrecision;\n pointer-events: none;\n}\n\n/**\n * Resize styles\n */\n.djs-resize-overlay {\n fill: none;\n\n stroke-dasharray: 5 1 3 1;\n stroke: var(--shape-resize-preview-stroke-color);\n\n pointer-events: none;\n}\n\n.djs-resizer-hit {\n fill: none;\n pointer-events: all;\n}\n\n.djs-resizer-visual {\n fill: var(--resizer-fill-color);\n stroke-width: 1px;\n stroke: var(--resizer-stroke-color);\n shape-rendering: geometricPrecision;\n}\n\n.djs-resizer:hover .djs-resizer-visual {\n stroke: var(--resizer-stroke-color);\n stroke-opacity: 1;\n}\n\n.djs-cursor-resize-ns,\n.djs-resizer-n,\n.djs-resizer-s {\n cursor: ns-resize;\n}\n\n.djs-cursor-resize-ew,\n.djs-resizer-e,\n.djs-resizer-w {\n cursor: ew-resize;\n}\n\n.djs-cursor-resize-nwse,\n.djs-resizer-nw,\n.djs-resizer-se {\n cursor: nwse-resize;\n}\n\n.djs-cursor-resize-nesw,\n.djs-resizer-ne,\n.djs-resizer-sw {\n cursor: nesw-resize;\n}\n\n.djs-shape.djs-resizing > .djs-outline {\n visibility: hidden !important;\n}\n\n.djs-shape.djs-resizing > .djs-resizer {\n visibility: hidden;\n}\n\n.djs-dragger > .djs-resizer {\n visibility: hidden;\n}\n\n/**\n * drag styles\n */\n.djs-dragger * {\n fill: none !important;\n stroke: var(--element-dragger-color) !important;\n}\n\n.djs-dragger tspan,\n.djs-dragger text {\n fill: var(--element-dragger-color) !important;\n stroke: none !important;\n}\n\n.djs-dragger marker circle,\n.djs-dragger marker path,\n.djs-dragger marker polygon,\n.djs-dragger marker polyline,\n.djs-dragger marker rect {\n fill: var(--element-dragger-color) !important;\n stroke: none !important;\n}\n\n.djs-dragger marker text,\n.djs-dragger marker tspan {\n fill: none !important;\n stroke: var(--element-dragger-color) !important;\n}\n\n.djs-dragging,\n.djs-dragging > * {\n opacity: 0.3 !important;\n pointer-events: none !important;\n}\n\n/**\n * no pointer events for visual\n */\n.djs-visual,\n.djs-outline {\n pointer-events: none;\n}\n\n.djs-element.attach-ok .djs-hit {\n stroke-width: 60px !important;\n}\n\n/**\n * all pointer events for hit shape\n */\n.djs-element > .djs-hit-all,\n.djs-element > .djs-hit-no-move {\n pointer-events: all;\n}\n\n.djs-element > .djs-hit-stroke,\n.djs-element > .djs-hit-click-stroke {\n pointer-events: stroke;\n}\n\n/**\n * shape / connection basic styles\n */\n.djs-connection .djs-visual {\n stroke-width: 2px;\n fill: none;\n}\n\n.djs-cursor-grab {\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n\n.djs-cursor-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n\n.djs-cursor-crosshair {\n cursor: crosshair;\n}\n\n.djs-cursor-move {\n cursor: move;\n}\n\n.djs-cursor-resize-ns {\n cursor: ns-resize;\n}\n\n.djs-cursor-resize-ew {\n cursor: ew-resize;\n}\n\n\n/**\n * snapping\n */\n.djs-snap-line {\n stroke: var(--snap-line-stroke-color);\n stroke-linecap: round;\n stroke-width: 2px;\n pointer-events: none;\n}\n\n/**\n * snapping\n */\n.djs-crosshair {\n stroke: var(--space-tool-crosshair-stroke-color);\n stroke-linecap: round;\n stroke-width: 1px;\n pointer-events: none;\n shape-rendering: geometricPrecision;\n stroke-dasharray: 5, 5;\n}\n\n/**\n * palette\n */\n\n.djs-palette {\n position: absolute;\n left: 20px;\n top: 20px;\n\n box-sizing: border-box;\n width: 48px;\n}\n\n.djs-palette .separator {\n margin: 5px;\n padding-top: 5px;\n\n border: none;\n border-bottom: solid 1px var(--palette-separator-color);\n\n clear: both;\n}\n\n.djs-palette .entry:before {\n vertical-align: initial;\n}\n\n.djs-palette .djs-palette-toggle {\n cursor: pointer;\n}\n\n.djs-palette .entry,\n.djs-palette .djs-palette-toggle {\n color: var(--palette-entry-color);\n font-size: 30px;\n\n text-align: center;\n}\n\n.djs-palette .entry {\n float: left;\n}\n\n.djs-palette .entry img {\n max-width: 100%;\n}\n\n.djs-palette .djs-palette-entries:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.djs-palette .djs-palette-toggle:hover {\n background: var(--palette-toggle-hover-background-color);\n}\n\n.djs-palette .entry:hover {\n color: var(--palette-entry-hover-color);\n}\n\n.djs-palette .highlighted-entry {\n color: var(--palette-entry-selected-color) !important;\n}\n\n.djs-palette .entry,\n.djs-palette .djs-palette-toggle {\n width: 46px;\n height: 46px;\n line-height: 46px;\n cursor: default;\n}\n\n/**\n * Palette open / two-column layout is controlled via\n * classes on the palette. Events to hook into palette\n * changed life-cycle are available in addition.\n */\n.djs-palette.two-column.open {\n width: 94px;\n}\n\n.djs-palette:not(.open) .djs-palette-entries {\n display: none;\n}\n\n.djs-palette:not(.open) {\n overflow: hidden;\n}\n\n.djs-palette.open .djs-palette-toggle {\n display: none;\n}\n\n.djs-hover-tooltip {\n position: fixed;\n z-index: 1000;\n\n display: flex;\n align-items: center;\n gap: 6px;\n\n padding: 6px 10px;\n border-radius: var(--surface-border-radius);\n\n background-color: var(--hover-tooltip-background-color);\n color: var(--hover-tooltip-color);\n\n font-family: var(--hover-tooltip-font-family);\n font-size: var(--hover-tooltip-font-size);\n line-height: 1.2;\n white-space: nowrap;\n\n pointer-events: none;\n box-shadow: 0 1px 4px var(--hover-tooltip-shadow-color);\n}\n\n.djs-hover-tooltip--right {\n transform: translateY(-50%);\n}\n\n.djs-hover-tooltip--top {\n transform: translate(-50%, -100%);\n}\n\n.djs-palette-tooltip-shortcut {\n padding: 1px 5px;\n\n border-radius: var(--button-border-radius);\n\n background-color: var(--palette-tooltip-shortcut-background-color);\n\n font-family: monospace;\n font-size: var(--hover-tooltip-secondary-font-size);\n line-height: 1.2;\n}\n\n/**\n * context-pad\n */\n.djs-context-pad {\n position: absolute;\n display: none;\n pointer-events: none;\n line-height: 1;\n width: 72px;\n z-index: 100;\n}\n\n.djs-context-pad .entry {\n width: 22px;\n height: 22px;\n text-align: center;\n display: inline-block;\n font-size: 22px;\n margin: 0 2px 2px 0;\n\n border-radius: 3px;\n\n cursor: default;\n\n background-color: var(--context-pad-entry-background-color);\n box-shadow: 0 0 2px 1px var(--context-pad-entry-background-color);\n pointer-events: all;\n vertical-align: middle;\n}\n\n.djs-context-pad .entry:hover {\n background: var(--context-pad-entry-hover-background-color);\n}\n\n.djs-context-pad.open {\n display: block;\n}\n\n/**\n * popup styles\n */\n.djs-popup {\n line-height: 1;\n box-sizing: border-box;\n background: var(--popup-background-color);\n overflow: hidden;\n position: fixed;\n z-index: 200;\n box-shadow: 0px 2px 6px var(--popup-shadow-color);\n border: solid 1px var(--popup-border-color);\n min-width: 120px;\n max-width: 300px;\n outline: none;\n font-size: var(--popup-font-size);\n font-family: var(--popup-font-family);\n}\n\n.djs-popup-search input {\n width: 100%;\n box-sizing: border-box;\n font-size: var(--popup-font-size);\n padding: 3px 6px 3px 28px;\n border-radius: var(--input-border-radius);\n border: solid 1px var(--popup-search-border-color);\n line-height: 21px;\n}\n\n.djs-popup-search input:focus {\n background-color: var(--popup-search-focus-background-color);\n border: solid 1px var(--popup-search-focus-border-color);\n outline: none;\n}\n\n.djs-popup-header {\n display: flex;\n align-items: stretch;\n line-height: 20px;\n margin: 10px 12px 10px 12px;\n}\n\n.djs-popup-header .entry {\n border-radius: 2px;\n}\n\n.djs-popup button.entry {\n padding: 0;\n background: transparent;\n border: 0;\n}\n\n.djs-popup-header .entry.active {\n color: var(--popup-header-entry-selected-color);\n}\n\n.djs-popup-header .entry.disabled {\n color: inherit;\n}\n\n.djs-popup-header-group {\n display: flex;\n flex-direction: row;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.djs-popup-header-group .entry {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.djs-popup-header-group + .djs-popup-header-group:before {\n content: '';\n width: 1px;\n height: 20px;\n background: var(--popup-header-group-divider-color);\n margin: 0 5px;\n}\n\n.djs-popup-search {\n position: relative;\n width: auto;\n margin: 10px 12px;\n}\n\n.djs-popup-tabs-container {\n position: relative;\n border-bottom: solid 1px var(--popup-tab-strip-border-color);\n}\n\n/**\n * The scroll control doubles as the edge fade: tabs scrolled past it fade out\n * rather than being cut off behind an opaque block.\n */\n.djs-popup-tabs-scroll {\n appearance: none;\n position: absolute;\n top: 0;\n bottom: 1px;\n width: 28px;\n display: flex;\n align-items: center;\n padding: 0;\n border: none;\n border-radius: 0;\n color: var(--popup-tab-color);\n cursor: pointer;\n}\n\n.djs-popup-tabs-scroll:hover {\n color: var(--popup-tab-hover-color);\n}\n\n.djs-popup-tabs-scroll-start {\n left: 0;\n justify-content: flex-start;\n background: linear-gradient(to left, transparent, var(--popup-background-color) 60%);\n}\n\n.djs-popup-tabs-scroll-end {\n right: 0;\n justify-content: flex-end;\n background: linear-gradient(to right, transparent, var(--popup-background-color) 60%);\n}\n\n.djs-popup-tabs-scroll-start svg {\n transform: rotate(180deg);\n}\n\n.djs-popup-tabs {\n display: flex;\n flex-wrap: nowrap;\n gap: 2px;\n overflow-x: auto;\n overflow-y: hidden;\n padding: 0 12px;\n\n /* keep scrolled-to tabs clear of the scroll controls */\n scroll-padding: 0 28px;\n scrollbar-width: none;\n}\n\n.djs-popup-tabs::-webkit-scrollbar {\n display: none;\n}\n\n.djs-popup-tab {\n appearance: none;\n background: transparent;\n border: none;\n border-bottom: solid 2px transparent;\n border-radius: 0;\n flex: 0 0 auto;\n padding: 6px 10px;\n font: inherit;\n font-size: var(--popup-font-size);\n color: var(--popup-tab-color);\n cursor: pointer;\n white-space: nowrap;\n}\n\n.djs-popup-tab:hover {\n color: var(--popup-tab-hover-color);\n}\n\n.djs-popup-tab:focus-visible {\n outline: solid 1px var(--popup-tab-focus-border-color);\n outline-offset: -2px;\n}\n\n.djs-popup-tab[aria-selected=\"true\"] {\n color: var(--popup-tab-active-color);\n border-bottom-color: var(--popup-tab-active-border-color);\n font-weight: var(--popup-header-font-weight);\n}\n\n.djs-popup-title {\n font-size: var(--popup-font-size);\n font-weight: var(--popup-header-font-weight);\n flex: 1;\n margin: 0;\n}\n\n.djs-popup-breadcrumbs {\n display: flex;\n line-height: 20px;\n margin: 10px 12px;\n}\n\n.djs-popup-breadcrumbs-item {\n display: inline-flex;\n min-width: 0;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n outline: none;\n appearance: none;\n color: var(--popup-description-color);\n font: inherit;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.djs-popup-breadcrumbs-item--separator::before {\n display: inline-block;\n content: '/';\n color: var(--popup-description-color);\n margin: 0 4px;\n}\n\n.djs-popup-breadcrumbs-item:hover {\n color: inherit;\n text-decoration: underline;\n}\n\n.djs-popup-breadcrumbs-item:focus-visible {\n outline: 1px solid var(--popup-search-focus-border-color);\n outline-offset: 2px;\n}\n\n.djs-popup-breadcrumbs-item--back {\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n padding: 2px 3px;\n margin-right: 6px;\n border: 1px solid var(--popup-search-border-color);\n border-radius: 4px;\n}\n\n.djs-popup-breadcrumbs-item--back:hover {\n background: var(--popup-button-hover-background-color);\n}\n\n.djs-popup-breadcrumbs-item--current {\n font-weight: var(--popup-header-font-weight);\n color: inherit;\n cursor: default;\n}\n\n.djs-popup-breadcrumbs-item--current:hover {\n text-decoration: none;\n}\n\n.djs-popup-entry-actions {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n gap: 6px;\n margin-left: 6px;\n}\n\n.djs-popup-entry-chevron {\n display: flex;\n align-items: center;\n color: var(--popup-description-color);\n}\n\n.djs-popup-search-icon {\n position: absolute;\n left: 8px;\n top: 7px;\n}\n\n.djs-popup-search-count {\n margin: 0 12px;\n font-size: var(--popup-secondary-font-size);\n color: var(--popup-description-color);\n}\n\n.djs-popup-results {\n margin: 7px 3px 7px 12px;\n list-style: none;\n max-height: 280px;\n overflow: auto;\n padding-right: 9px;\n}\n\n/**\n * The results list is focusable (as a listbox holding\n * `aria-activedescendant`) when there is no search field.\n * The active entry is indicated via `.entry.selected`, so we hide\n * the outline on the list container itself.\n */\n.djs-popup-results:focus {\n outline: none;\n}\n\n.djs-popup-group {\n margin: 0;\n padding: 0;\n width: 100%;\n}\n\n.djs-popup-body .entry,\n.djs-popup-body .entry-header {\n padding: 5px 7px;\n cursor: default;\n border-radius: 4px;\n}\n\n.djs-popup-body .entry-header {\n font-weight: var(--popup-header-font-weight);\n color: var(--popup-entry-title-color);\n padding-left: 0;\n}\n\n.djs-popup [class*=\"icon\"] .djs-popup-label,\n.djs-popup-label:not(:first-child) {\n margin-left: .5em;\n}\n\n.djs-popup [class*=\"icon\"]:before,\n.djs-popup-entry-icon {\n width: 1em;\n height: 1em;\n display: inline-block;\n font-size: 1.4em;\n vertical-align: middle;\n}\n\n.djs-popup-body .entry-header:not(:first-child) {\n margin-top: 8px;\n margin-bottom: 2px;\n}\n\n.djs-popup-body .entry {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n height: min-content;\n}\n\n.djs-popup .entry.selected {\n color: var(--popup-entry-selected-color);\n background-color: var(--popup-entry-selected-background-color);\n}\n\n.djs-popup .entry.disabled {\n color: var(--popup-disabled-color);\n cursor: not-allowed;\n}\n\n.djs-popup-body .entry:not(:first-child) {\n margin-top: 2px;\n}\n\n.djs-popup-entry-content {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.djs-popup-entry-description {\n font-size: var(--popup-secondary-font-size);\n margin-top: .25em;\n\n color: var(--popup-description-color);\n}\n\n.djs-popup-label,\n.djs-popup-entry-description {\n line-height: 1.4em;\n}\n\n.djs-popup .entry,\n.djs-popup .entry-header {\n margin: 1px;\n}\n\n.djs-popup-body {\n flex-direction: column;\n width: auto;\n}\n\n.djs-popup *::-webkit-scrollbar {\n width: 6px;\n}\n\n.djs-popup *::-webkit-scrollbar-thumb {\n border-radius: 3px;\n background-color: var(--popup-scrollbar-thumb-color);\n}\n\n.djs-popup *::-webkit-scrollbar-track {\n box-shadow: none;\n background: transparent;\n margin: 0;\n padding: 5px;\n}\n\n.djs-popup-no-results {\n padding: 0 12px 12px 12px;\n color: var(--popup-no-results-color);\n}\n\n.djs-popup-footer {\n display: flex;\n padding: 5px 12px 7px 12px;\n border-top: solid 1px var(--popup-border-color);\n}\n\n/**\n * The footer holds the keyboard/assistive-technology reachable documentation\n * link. Pointer interaction switches the popup to the per-entry\n * `.djs-popup-entry-docs` affordance instead.\n */\n.djs-popup--pointer .djs-popup-footer {\n display: none;\n}\n\n.djs-popup-entry-docs {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n visibility: hidden;\n padding: 2px 3px;\n color: var(--popup-description-color);\n background: var(--popup-button-background-color);\n border: 1px solid var(--popup-search-border-color);\n border-radius: 4px;\n cursor: pointer;\n transition: background-color .12s ease, border-color .12s ease, color .12s ease;\n}\n\n.djs-popup--pointer .djs-popup-body .entry:hover .djs-popup-entry-docs {\n visibility: visible;\n}\n\n.djs-popup-body .entry .djs-popup-entry-docs:hover {\n background: var(--popup-button-hover-background-color);\n}\n\n.djs-popup-entry-docs svg {\n vertical-align: middle;\n}\n\n.djs-popup-footer-docs {\n display: inline-flex;\n align-items: center;\n gap: 3px;\n font-size: var(--popup-secondary-font-size);\n color: var(--popup-description-color);\n text-decoration: none;\n}\n\n.djs-popup-footer-docs:hover {\n text-decoration: underline;\n}\n\n.djs-popup-footer-docs svg {\n vertical-align: middle;\n margin: 2px;\n}\n\n/**\n * palette styles\n */\n.djs-palette {\n background: var(--palette-background-color);\n border: solid 1px var(--palette-border-color);\n border-radius: var(--surface-border-radius);\n}\n\n/**\n * bendpoints\n */\n.djs-segment-dragger,\n.djs-bendpoint {\n display: none;\n}\n\n.djs-segment-dragger .djs-visual {\n display: none;\n\n fill: var(--bendpoint-fill-color);\n stroke: var(--bendpoint-stroke-color);\n stroke-width: 1px;\n stroke-opacity: 1;\n}\n\n.djs-segment-dragger:hover .djs-visual {\n display: block;\n}\n\n.djs-bendpoint .djs-visual {\n fill: var(--bendpoint-fill-color);\n stroke: var(--bendpoint-stroke-color);\n stroke-width: 1px;\n}\n\n.djs-segment-dragger:hover,\n.djs-bendpoints.hover .djs-segment-dragger,\n.djs-bendpoints.selected .djs-segment-dragger,\n.djs-bendpoint:hover,\n.djs-bendpoints.hover .djs-bendpoint,\n.djs-bendpoints.selected .djs-bendpoint {\n display: block;\n}\n\n.djs-drag-active .djs-bendpoints * {\n display: none;\n}\n\n.djs-bendpoints:not(.hover) .floating {\n display: none;\n}\n\n.djs-bendpoint.floating:not(.positioned) {\n display: none;\n}\n\n.djs-segment-dragger:hover .djs-visual,\n.djs-segment-dragger.djs-dragging .djs-visual,\n.djs-bendpoint:hover .djs-visual,\n.djs-bendpoint.floating .djs-visual {\n fill: var(--bendpoint-fill-color);\n stroke: var(--bendpoint-stroke-color);\n stroke-opacity: 1;\n}\n\n.djs-bendpoint.floating .djs-hit {\n pointer-events: none;\n}\n\n.djs-segment-dragger .djs-hit,\n.djs-bendpoint .djs-hit {\n fill: none;\n pointer-events: all;\n}\n\n.djs-segment-dragger.horizontal .djs-hit {\n cursor: ns-resize;\n}\n\n.djs-segment-dragger.vertical .djs-hit {\n cursor: ew-resize;\n}\n\n.djs-segment-dragger.djs-dragging .djs-hit {\n pointer-events: none;\n}\n\n.djs-updating,\n.djs-updating > * {\n pointer-events: none !important;\n}\n\n.djs-updating .djs-context-pad,\n.djs-updating .djs-outline,\n.djs-updating .djs-bendpoint,\n.djs-multi-select .djs-bendpoint,\n.djs-multi-select .djs-segment-dragger,\n.connect-ok .djs-bendpoint,\n.connect-not-ok .djs-bendpoint,\n.drop-ok .djs-bendpoint,\n.drop-not-ok .djs-bendpoint {\n display: none !important;\n}\n\n.djs-segment-dragger.djs-dragging,\n.djs-bendpoint.djs-dragging {\n display: block;\n opacity: 1.0;\n}\n\n\n/**\n * tooltips\n */\n.djs-tooltip-error {\n width: 160px;\n padding: 6px;\n\n background: var(--tooltip-error-background-color);\n border: solid 1px var(--tooltip-error-border-color);\n border-radius: var(--surface-border-radius);\n color: var(--tooltip-error-color);\n font-size: 12px;\n line-height: 16px;\n\n opacity: 0.75;\n}\n\n.djs-tooltip-error:hover {\n opacity: 1;\n}\n\n\n/**\n * search pad\n */\n.djs-search-open .djs-context-pad {\n display: none;\n}\n\n.djs-search-open .djs-connection.selected .djs-outline {\n display: block;\n}\n\n.djs-search-container {\n position: absolute;\n top: 20px;\n left: 0;\n right: 0;\n margin-left: auto;\n margin-right: auto;\n\n width: 25%;\n min-width: 300px;\n max-width: 400px;\n z-index: 10;\n\n font-family: var(--search-font-family);\n font-size: var(--search-font-size);\n border-radius: var(--surface-border-radius);\n box-shadow: 0px 2px 6px var(--search-shadow-color);\n}\n\n.djs-search-container:not(.open) {\n display: none;\n}\n\n.djs-search-input {\n position: relative;\n}\n\n.djs-search-input svg {\n position: absolute;\n left: 8px;\n top: 7px;\n}\n\n.djs-search-input input {\n font-size: var(--search-font-size);\n width: 100%;\n padding: 3px 6px 3px 28px;\n border: 1px solid var(--search-input-border-color);\n border-radius: var(--input-border-radius);\n box-sizing: border-box;\n line-height: 21px;\n}\n\n.djs-search-input input:focus {\n background-color: var(--search-input-focus-background-color);\n border: solid 1px var(--search-input-focus-border-color);\n outline: none;\n}\n\n.djs-search-results {\n position: relative;\n overflow-y: auto;\n max-height: 200px;\n background: var(--search-container-background-color);\n}\n\n.djs-search-result {\n padding: 6px 8px;\n}\n\n.djs-search-result-primary {\n margin: 0 0 3px;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n\n.djs-search-result-secondary {\n font-family: monospace;\n margin: 0;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n color: var(--search-result-secondary-color);\n}\n\n.djs-search-result:hover {\n background: var(--search-result-hover-background-color);\n}\n\n.djs-search-result-selected {\n background: var(--search-result-hover-background-color);\n}\n\n.djs-search-result-selected:hover {\n background: var(--search-result-hover-background-color);\n}\n\n.djs-search-open .djs-element .djs-outline {\n fill: var(--search-preselected-background-color) !important;\n}\n\n/**\n * hidden styles\n */\n.djs-element-hidden,\n.djs-element-hidden .djs-hit,\n.djs-element-hidden .djs-outline,\n.djs-label-hidden .djs-label {\n display: none !important;\n}\n\n.djs-element .djs-hit-stroke,\n.djs-element .djs-hit-click-stroke,\n.djs-element .djs-hit-all {\n cursor: move;\n}\n/**\n * Semantic tokens, copied from `@bpmn-io/theme` to style the components\n * according to this theme.\n *\n * Names and values of the tokens should stay intact with the `@bpmn-io/theme`\n * source of truth, to ensure matching styles and allow overrides with an\n * alternative theme.\n */\n.bio-theme-parent {\n --bio-surface-subtle: hsl(225, 10%, 97%);\n --bio-text-on-primary: hsl(0, 0%, 100%);\n --bio-border: hsl(225, 10%, 75%);\n --bio-primary: hsl(205, 100%, 40%);\n --bio-focus: hsl(205, 100%, 40%);\n --bio-radius-md: 3px;\n --bio-radius-lg: 4px;\n}\n\n.bjs-container {\n --bjs-font-family: Arial, sans-serif;\n\n --accent-color: var(--bio-primary);\n\n --breadcrumbs-font-family: var(--bjs-font-family);\n --breadcrumbs-item-color: var(--accent-color);\n --breadcrumbs-background-color: var(--bio-surface-subtle);\n --breadcrumbs-border-color: var(--bio-border);\n --breadcrumbs-focus-outline-color: var(--bio-focus);\n --drilldown-fill-color: var(--bio-text-on-primary);\n --drilldown-background-color: var(--accent-color);\n --drilldown-focus-outline-color: var(--bio-focus);\n\n --button-border-radius: var(--bio-radius-md);\n --surface-border-radius: var(--bio-radius-lg);\n}\n\n.bjs-breadcrumbs {\n position: absolute;\n display: none;\n flex-wrap: wrap;\n align-items: center;\n top: 20px;\n left: 20px;\n padding: 5px 10px;\n margin: 0px;\n font-family: var(--breadcrumbs-font-family);\n font-size: 16px;\n line-height: normal;\n background-color: var(--breadcrumbs-background-color);\n border: solid 1px var(--breadcrumbs-border-color);\n border-radius: var(--surface-border-radius);\n row-gap: 5px;\n}\n\n.bjs-breadcrumbs-shown .bjs-breadcrumbs {\n display: flex;\n}\n\n.djs-palette-shown .bjs-breadcrumbs {\n left: 90px;\n}\n\n.djs-palette-shown.djs-palette-two-column .bjs-breadcrumbs {\n left: 140px;\n}\n\n.bjs-breadcrumbs li {\n display: inline-flex;\n align-items: center;\n}\n\n.bjs-breadcrumbs a.bjs-crumb {\n cursor: pointer;\n color: var(--breadcrumbs-item-color);\n text-decoration: none;\n}\n\n.bjs-breadcrumbs a.bjs-crumb:focus-visible {\n outline: solid 1px var(--breadcrumbs-focus-outline-color);\n outline-offset: 1px;\n}\n\n.bjs-breadcrumbs li:not(:first-child)::before {\n content: url('__ASSET__inline-01.svg');\n padding: 0 8px;\n height: 1em;\n}\n\n.bjs-breadcrumbs .bjs-crumb {\n display: inline-block;\n max-width: 200px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bjs-drilldown {\n width: 20px;\n height: 20px;\n\n padding: 0px;\n margin-left: -20px;\n\n cursor: pointer;\n border: none;\n border-radius: var(--button-border-radius);\n\n fill: var(--drilldown-fill-color);\n background-color: var(--drilldown-background-color);\n}\n\n.bjs-drilldown:focus-visible {\n outline: solid 1px var(--drilldown-focus-outline-color);\n outline-offset: 1px;\n}\n\n.bjs-drilldown-empty {\n display: none;\n}\n\n.selected .bjs-drilldown-empty {\n display: inherit;\n}\n\n[data-popup=\"align-elements\"] .djs-popup-results {\n display: flex;\n}\n\n[data-popup=\"align-elements\"] .djs-popup-body [data-group] + [data-group] {\n border-left: 1px solid var(--popup-border-color);\n}\n\n[data-popup=\"align-elements\"] [data-group=\"align\"] {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n}\n\n[data-popup=\"align-elements\"] .djs-popup-body .entry {\n padding: 6px 8px;\n}\n\n[data-popup=\"align-elements\"] .djs-popup-body .entry:not(:first-child) {\n margin-top: 0;\n}\n\n[data-popup=\"align-elements\"] .djs-popup-entry-icon {\n display: block;\n margin: 0;\n height: 20px;\n width: 20px;\n}\n\n[class^=\"bpmn-icon-\"]:before, [class*=\" bpmn-icon-\"]:before {\n font-family: \"bpmn\";\n font-style: normal;\n font-weight: normal;\n speak: never;\n\n display: inline-block;\n text-decoration: inherit;\n width: 1em;\n \n text-align: center;\n \n\n \n font-variant: normal;\n text-transform: none;\n\n \n line-height: 1em;\n\n \n \n \n\n \n \n\n \n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n\n \n \n}\n\n.bpmn-icon-trash:before { content: '\\e801'; } \n.bpmn-icon-gateway-parallel:before { content: '\\e804'; } \n.bpmn-icon-intermediate-event-catch-cancel:before { content: '\\e805'; } \n.bpmn-icon-intermediate-event-catch-non-interrupting-message:before { content: '\\e806'; } \n.bpmn-icon-start-event-compensation:before { content: '\\e807'; } \n.bpmn-icon-start-event-non-interrupting-parallel-multiple:before { content: '\\e808'; } \n.bpmn-icon-loop-marker:before { content: '\\e809'; } \n.bpmn-icon-parallel-mi-marker:before { content: '\\e80a'; } \n.bpmn-icon-start-event-non-interrupting-signal:before { content: '\\e80b'; } \n.bpmn-icon-intermediate-event-catch-non-interrupting-timer:before { content: '\\e80c'; } \n.bpmn-icon-intermediate-event-catch-parallel-multiple:before { content: '\\e80d'; } \n.bpmn-icon-intermediate-event-catch-compensation:before { content: '\\e80e'; } \n.bpmn-icon-gateway-xor:before { content: '\\e80f'; } \n.bpmn-icon-end-event-cancel:before { content: '\\e811'; } \n.bpmn-icon-intermediate-event-catch-condition:before { content: '\\e812'; } \n.bpmn-icon-intermediate-event-catch-non-interrupting-parallel-multiple:before { content: '\\e813'; } \n.bpmn-icon-start-event-condition:before { content: '\\e814'; } \n.bpmn-icon-start-event-non-interrupting-timer:before { content: '\\e815'; } \n.bpmn-icon-sequential-mi-marker:before { content: '\\e816'; } \n.bpmn-icon-user-task:before { content: '\\e817'; } \n.bpmn-icon-business-rule:before { content: '\\e818'; } \n.bpmn-icon-sub-process-marker:before { content: '\\e819'; } \n.bpmn-icon-start-event-parallel-multiple:before { content: '\\e81a'; } \n.bpmn-icon-start-event-error:before { content: '\\e81b'; } \n.bpmn-icon-intermediate-event-catch-signal:before { content: '\\e81c'; } \n.bpmn-icon-intermediate-event-catch-error:before { content: '\\e81d'; } \n.bpmn-icon-end-event-compensation:before { content: '\\e81e'; } \n.bpmn-icon-subprocess-collapsed:before { content: '\\e81f'; } \n.bpmn-icon-subprocess-expanded:before { content: '\\e820'; } \n.bpmn-icon-task:before { content: '\\e821'; } \n.bpmn-icon-end-event-error:before { content: '\\e822'; } \n.bpmn-icon-intermediate-event-catch-escalation:before { content: '\\e823'; } \n.bpmn-icon-intermediate-event-catch-timer:before { content: '\\e824'; } \n.bpmn-icon-start-event-escalation:before { content: '\\e825'; } \n.bpmn-icon-start-event-signal:before { content: '\\e826'; } \n.bpmn-icon-business-rule-task:before { content: '\\e827'; } \n.bpmn-icon-manual:before { content: '\\e828'; } \n.bpmn-icon-receive:before { content: '\\e829'; } \n.bpmn-icon-call-activity:before { content: '\\e82a'; } \n.bpmn-icon-start-event-timer:before { content: '\\e82b'; } \n.bpmn-icon-start-event-message:before { content: '\\e82c'; } \n.bpmn-icon-intermediate-event-none:before { content: '\\e82d'; } \n.bpmn-icon-intermediate-event-catch-link:before { content: '\\e82e'; } \n.bpmn-icon-end-event-escalation:before { content: '\\e82f'; } \n.bpmn-icon-bpmn-io:before { content: '\\e831'; } \n.bpmn-icon-gateway-complex:before { content: '\\e832'; } \n.bpmn-icon-gateway-eventbased:before { content: '\\e833'; } \n.bpmn-icon-gateway-none:before { content: '\\e834'; } \n.bpmn-icon-gateway-or:before { content: '\\e835'; } \n.bpmn-icon-end-event-terminate:before { content: '\\e836'; } \n.bpmn-icon-end-event-signal:before { content: '\\e837'; } \n.bpmn-icon-end-event-none:before { content: '\\e838'; } \n.bpmn-icon-end-event-multiple:before { content: '\\e839'; } \n.bpmn-icon-end-event-message:before { content: '\\e83a'; } \n.bpmn-icon-end-event-link:before { content: '\\e83b'; } \n.bpmn-icon-intermediate-event-catch-message:before { content: '\\e83c'; } \n.bpmn-icon-intermediate-event-throw-compensation:before { content: '\\e83d'; } \n.bpmn-icon-start-event-multiple:before { content: '\\e83e'; } \n.bpmn-icon-script:before { content: '\\e83f'; } \n.bpmn-icon-manual-task:before { content: '\\e840'; } \n.bpmn-icon-send:before { content: '\\e841'; } \n.bpmn-icon-service:before { content: '\\e842'; } \n.bpmn-icon-receive-task:before { content: '\\e843'; } \n.bpmn-icon-user:before { content: '\\e844'; } \n.bpmn-icon-start-event-none:before { content: '\\e845'; } \n.bpmn-icon-intermediate-event-throw-escalation:before { content: '\\e846'; } \n.bpmn-icon-intermediate-event-catch-multiple:before { content: '\\e847'; } \n.bpmn-icon-intermediate-event-catch-non-interrupting-escalation:before { content: '\\e848'; } \n.bpmn-icon-intermediate-event-throw-link:before { content: '\\e849'; } \n.bpmn-icon-start-event-non-interrupting-condition:before { content: '\\e84a'; } \n.bpmn-icon-data-object:before { content: '\\e84b'; } \n.bpmn-icon-script-task:before { content: '\\e84c'; } \n.bpmn-icon-send-task:before { content: '\\e84d'; } \n.bpmn-icon-data-store:before { content: '\\e84e'; } \n.bpmn-icon-start-event-non-interrupting-escalation:before { content: '\\e84f'; } \n.bpmn-icon-intermediate-event-throw-message:before { content: '\\e850'; } \n.bpmn-icon-intermediate-event-catch-non-interrupting-multiple:before { content: '\\e851'; } \n.bpmn-icon-intermediate-event-catch-non-interrupting-signal:before { content: '\\e852'; } \n.bpmn-icon-intermediate-event-throw-multiple:before { content: '\\e853'; } \n.bpmn-icon-start-event-non-interrupting-message:before { content: '\\e854'; } \n.bpmn-icon-ad-hoc-marker:before { content: '\\e855'; } \n.bpmn-icon-service-task:before { content: '\\e856'; } \n.bpmn-icon-task-none:before { content: '\\e857'; } \n.bpmn-icon-compensation-marker:before { content: '\\e858'; } \n.bpmn-icon-start-event-non-interrupting-multiple:before { content: '\\e859'; } \n.bpmn-icon-intermediate-event-throw-signal:before { content: '\\e85a'; } \n.bpmn-icon-intermediate-event-catch-non-interrupting-condition:before { content: '\\e85b'; } \n.bpmn-icon-participant:before { content: '\\e85c'; } \n.bpmn-icon-event-subprocess-expanded:before { content: '\\e85d'; } \n.bpmn-icon-lane-insert-below:before { content: '\\e85e'; } \n.bpmn-icon-space-tool:before { content: '\\e85f'; } \n.bpmn-icon-connection-multi:before { content: '\\e860'; } \n.bpmn-icon-lane:before { content: '\\e861'; } \n.bpmn-icon-lasso-tool:before { content: '\\e862'; } \n.bpmn-icon-lane-insert-above:before { content: '\\e863'; } \n.bpmn-icon-lane-divide-three:before { content: '\\e864'; } \n.bpmn-icon-lane-divide-two:before { content: '\\e865'; } \n.bpmn-icon-data-input:before { content: '\\e866'; } \n.bpmn-icon-data-output:before { content: '\\e867'; } \n.bpmn-icon-hand-tool:before { content: '\\e868'; } \n.bpmn-icon-group:before { content: '\\e869'; } \n.bpmn-icon-text-annotation:before { content: '\\e86b'; } \n.bpmn-icon-event-subprocess-collapsed:before { content: '\\e8c3'; } \n.bpmn-icon-transaction:before { content: '\\e8c4'; } \n.bpmn-icon-ad-hoc-subprocess:before { content: '\\e8c5'; } \n.bpmn-icon-screw-wrench:before { content: '\\e8db'; } \n.bpmn-icon-connection:before { content: '\\e8dc'; } \n.bpmn-icon-conditional-flow:before { content: '\\e8e0'; } \n.bpmn-icon-default-flow:before { content: '\\e8e1'; }\n.bpmn-canvas {\n /* Read by the canvas to detect styles that never arrived (diagnostic styles-missing). */\n --bpmn-canvas-styles: 1;\n position: relative;\n width: 100%;\n height: 100%;\n min-height: 0;\n outline: none;\n}\n\n.bpmn-canvas:focus-visible {\n outline: 2px solid currentColor;\n outline-offset: -2px;\n}\n\n.bpmn-canvas--readonly .djs-palette,\n.bpmn-canvas--readonly .djs-context-pad {\n display: none;\n}\n\n/* Hidden only when the host asked for it and named its license (options.watermark). */\n.bpmn-canvas[data-bpmn-canvas-watermark=\"hidden\"] .bjs-powered-by {\n display: none !important;\n}\n\n/*\n * Legend palette (profile \"legend\" only). Every rule is scoped to entries whose data-action starts\n * with \"legend.\", so the default palette of the \"standard\" profile is never touched.\n * Icons are monochrome masks authored for this package; the colour comes from\n * --bpmn-canvas-legend-icon (default #333333), the hover ring from --bpmn-canvas-legend-accent.\n * Action ids are listed in the README (\"Legend profile\").\n */\n\n.djs-palette:has(.entry[data-action^=\"legend.\"]) {\n border-radius: 6px;\n}\n\n.djs-palette .entry[data-action^=\"legend.\"] {\n width: 40px;\n height: 40px;\n line-height: 40px;\n margin: 2px;\n border-radius: 4px;\n transition: box-shadow 0.12s ease;\n}\n\n.djs-palette .entry[data-action^=\"legend.\"]::before {\n content: \"\";\n display: block;\n width: 26px;\n height: 26px;\n margin: 7px;\n font: normal 0/0 sans-serif;\n background-color: var(--bpmn-canvas-legend-icon, #333333);\n -webkit-mask: var(--bpmn-canvas-legend-glyph) center / 26px 26px no-repeat;\n mask: var(--bpmn-canvas-legend-glyph) center / 26px 26px no-repeat;\n}\n\n.djs-palette .entry[data-action^=\"legend.\"]:hover,\n.djs-palette .highlighted-entry[data-action^=\"legend.\"] {\n box-shadow: 0 0 0 2px var(--bpmn-canvas-legend-accent, #4a6fa5);\n}\n\n.djs-palette .entry[data-action=\"legend.start\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-02.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.end\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-03.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.intermediate-event\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-04.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.task\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-05.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.subprocess\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-06.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.external-process\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-07.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.gateway-or\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-08.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.gateway-and\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-09.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.data-input\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-10.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.data-output\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-11.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.external-input\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-12.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.process-output\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-13.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.document\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-14.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.application\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-15.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.lane\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-16.svg\");\n}\n\n.djs-palette .entry[data-action=\"legend.sequence-flow\"] {\n --bpmn-canvas-legend-glyph: url(\"__ASSET__inline-17.svg\");\n}\n\n/*\n * Navigation markers (collapsed sub-process [+], external process icon). diagram-js draws a transparent\n * hit rectangle over the whole element; without these rules it swallows every click and a marker can never\n * be the event target. With them, a click on the body targets the body, a click on the marker targets the marker.\n */\n.legend-marker {\n cursor: pointer;\n pointer-events: all;\n}\n\n.djs-element:has(.legend-marker) > .djs-hit-all {\n pointer-events: none;\n}\n\n.djs-element:has(.legend-marker) > .djs-visual,\n.djs-element:has(.legend-marker) > .djs-visual > * {\n pointer-events: auto;\n}\n\n.djs-element:has(.legend-marker) > .djs-visual > .legend-task {\n cursor: move;\n}\n\n/*\n * Token-driven palette colours. The variables --bpmn-canvas-icon-<group> are set per canvas instance from the\n * profile tokens (see src/internal/palette.ts). Without tokens every rule falls back to the neutral values\n * below, so a canvas without tokens renders as before. The standard profile is never touched: the upstream\n * rules are scoped to .bpmn-canvas--colored, which only the colored profile (with tokens) adds.\n */\n\n.djs-palette .entry[data-action=\"legend.start\"]::before {\n background-color: var(--bpmn-canvas-icon-start, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.end\"]::before {\n background-color: var(--bpmn-canvas-icon-end, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.intermediate-event\"]::before {\n background-color: var(--bpmn-canvas-icon-intermediate, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.task\"]::before {\n background-color: var(--bpmn-canvas-icon-task, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.subprocess\"]::before {\n background-color: var(--bpmn-canvas-icon-subprocess, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.external-process\"]::before {\n background-color: var(--bpmn-canvas-icon-external, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.gateway-or\"]::before {\n background-color: var(--bpmn-canvas-icon-gateway, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.gateway-and\"]::before {\n background-color: var(--bpmn-canvas-icon-gateway, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.data-input\"]::before {\n background-color: var(--bpmn-canvas-icon-data, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.data-output\"]::before {\n background-color: var(--bpmn-canvas-icon-data, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.external-input\"]::before {\n background-color: var(--bpmn-canvas-icon-external, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.process-output\"]::before {\n background-color: var(--bpmn-canvas-icon-external, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.document\"]::before {\n background-color: var(--bpmn-canvas-icon-document, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.application\"]::before {\n background-color: var(--bpmn-canvas-icon-application, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.lane\"]::before {\n background-color: var(--bpmn-canvas-icon-lane, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.djs-palette .entry[data-action=\"legend.sequence-flow\"]::before {\n background-color: var(--bpmn-canvas-icon-flow, var(--bpmn-canvas-legend-icon, #333333));\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.start-event\"] {\n color: var(--bpmn-canvas-icon-start);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.intermediate-event\"] {\n color: var(--bpmn-canvas-icon-intermediate);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.end-event\"] {\n color: var(--bpmn-canvas-icon-end);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.exclusive-gateway\"] {\n color: var(--bpmn-canvas-icon-gateway);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.task\"] {\n color: var(--bpmn-canvas-icon-task);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.data-object\"] {\n color: var(--bpmn-canvas-icon-data);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.data-store\"] {\n color: var(--bpmn-canvas-icon-data);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.subprocess-expanded\"] {\n color: var(--bpmn-canvas-icon-subprocess);\n}\n\n.bpmn-canvas--colored .djs-palette .entry[data-action=\"create.participant-expanded\"] {\n color: var(--bpmn-canvas-icon-pool);\n}\n\n\n/* Workshop primitives: menu and tabs. Themed by custom properties; neutral light defaults,\n a dark set under prefers-color-scheme, and system colours in forced-colors mode. */\n.bpmn-workshop,\n.bpmn-workshop-menu,\n.bpmn-workshop-tabs {\n --bpmn-workshop-bg: #ffffff;\n --bpmn-workshop-fg: #1f2328;\n --bpmn-workshop-muted: #57606a;\n --bpmn-workshop-border: #8c959f;\n --bpmn-workshop-accent: #0550ae;\n --bpmn-workshop-focus: #0969da;\n --bpmn-workshop-hover: #eaeef2;\n --bpmn-workshop-radius: 6px;\n}\n\n@media (prefers-color-scheme: dark) {\n .bpmn-workshop,\n .bpmn-workshop-menu,\n .bpmn-workshop-tabs {\n --bpmn-workshop-bg: #1f2328;\n --bpmn-workshop-fg: #e6edf3;\n --bpmn-workshop-muted: #9da7b3;\n --bpmn-workshop-border: #6e7681;\n --bpmn-workshop-accent: #79c0ff;\n --bpmn-workshop-focus: #58a6ff;\n --bpmn-workshop-hover: #30363d;\n }\n}\n\n.bpmn-workshop-menu {\n position: relative;\n display: inline-block;\n font: inherit;\n color: var(--bpmn-workshop-fg);\n}\n\n.bpmn-workshop-menu__trigger {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font: inherit;\n color: var(--bpmn-workshop-fg);\n background: var(--bpmn-workshop-bg);\n border: 1px solid var(--bpmn-workshop-border);\n border-radius: var(--bpmn-workshop-radius);\n padding: 4px 8px;\n cursor: pointer;\n}\n\n.bpmn-workshop-menu__trigger:disabled {\n color: var(--bpmn-workshop-muted);\n cursor: not-allowed;\n opacity: 0.7;\n}\n\n.bpmn-workshop-menu__popup {\n position: absolute;\n top: calc(100% + 2px);\n left: 0;\n z-index: 20;\n min-width: 100%;\n width: max-content;\n max-width: min(320px, 90vw);\n padding: 4px;\n background: var(--bpmn-workshop-bg);\n color: var(--bpmn-workshop-fg);\n border: 1px solid var(--bpmn-workshop-border);\n border-radius: var(--bpmn-workshop-radius);\n box-shadow: 0 4px 14px rgb(0 0 0 / 0.18);\n}\n\n.bpmn-workshop-menu__popup[hidden] {\n display: none;\n}\n\n.bpmn-workshop-menu__item {\n display: flex;\n align-items: flex-start;\n gap: 6px;\n width: 100%;\n font: inherit;\n text-align: left;\n color: inherit;\n background: transparent;\n border: 0;\n border-radius: calc(var(--bpmn-workshop-radius) - 2px);\n padding: 6px 8px;\n cursor: pointer;\n}\n\n.bpmn-workshop-menu__item:hover,\n.bpmn-workshop-menu__item:focus {\n background: var(--bpmn-workshop-hover);\n}\n\n.bpmn-workshop-menu__item[aria-disabled=\"true\"] {\n color: var(--bpmn-workshop-muted);\n cursor: not-allowed;\n}\n\n.bpmn-workshop-menu__mark {\n display: inline-flex;\n width: 16px;\n flex: none;\n color: var(--bpmn-workshop-accent);\n}\n\n.bpmn-workshop-menu__text {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.bpmn-workshop-menu__desc {\n font-size: 0.85em;\n color: var(--bpmn-workshop-muted);\n white-space: normal;\n}\n\n.bpmn-workshop-tabs {\n display: flex;\n gap: 2px;\n min-width: 0;\n overflow-x: auto;\n border-bottom: 1px solid var(--bpmn-workshop-border);\n font: inherit;\n color: var(--bpmn-workshop-fg);\n}\n\n.bpmn-workshop-tabs__tab {\n flex: 0 1 auto;\n min-width: 0;\n max-width: 220px;\n font: inherit;\n color: var(--bpmn-workshop-muted);\n background: transparent;\n border: 0;\n border-bottom: 2px solid transparent;\n border-radius: var(--bpmn-workshop-radius) var(--bpmn-workshop-radius) 0 0;\n padding: 6px 10px;\n cursor: pointer;\n}\n\n.bpmn-workshop-tabs__tab[aria-selected=\"true\"] {\n color: var(--bpmn-workshop-fg);\n border-bottom-color: var(--bpmn-workshop-accent);\n font-weight: 600;\n}\n\n.bpmn-workshop-tabs__tab:hover {\n background: var(--bpmn-workshop-hover);\n}\n\n.bpmn-workshop-tabs__label {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bpmn-workshop-menu__trigger:focus-visible,\n.bpmn-workshop-menu__item:focus-visible,\n.bpmn-workshop-tabs__tab:focus-visible {\n outline: 2px solid var(--bpmn-workshop-focus);\n outline-offset: 1px;\n}\n\n@media (forced-colors: active) {\n .bpmn-workshop-menu__trigger,\n .bpmn-workshop-menu__popup {\n border-color: CanvasText;\n }\n .bpmn-workshop-menu__item:focus,\n .bpmn-workshop-tabs__tab[aria-selected=\"true\"] {\n forced-color-adjust: none;\n background: Highlight;\n color: HighlightText;\n }\n .bpmn-workshop-tabs {\n border-bottom-color: CanvasText;\n }\n}\n\n/* Shell of the BPMN workshop: toolbar, buttons, notices, panel, canvas and the busy veil.\n Themed by the same custom properties as the primitives (see workshop.css). */\n.bpmn-workshop {\n --bw-bg: var(--bpmn-workshop-bg, #ffffff);\n --bw-fg: var(--bpmn-workshop-fg, #1f2328);\n --bw-border: var(--bpmn-workshop-border, #6b7280);\n --bw-muted: var(--bpmn-workshop-muted, #4b5563);\n --bw-accent: var(--bpmn-workshop-accent, #0b5cad);\n --bw-focus: var(--bpmn-workshop-focus, #0b5cad);\n display: flex;\n flex-direction: column;\n min-height: 0;\n width: 100%;\n height: 100%;\n background: var(--bw-bg);\n color: var(--bw-fg);\n font: inherit;\n}\n\n.bpmn-workshop__toolbar {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n padding: 4px 6px;\n border-bottom: 1px solid var(--bw-border);\n}\n\n.bpmn-workshop__button {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n min-height: 28px;\n min-width: 28px;\n padding: 2px 6px;\n border: 1px solid transparent;\n border-radius: var(--bpmn-workshop-radius, 6px);\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.bpmn-workshop__button:hover:not(:disabled) {\n border-color: var(--bw-border);\n background: color-mix(in srgb, var(--bw-fg) 8%, transparent);\n}\n\n.bpmn-workshop__button:focus-visible {\n outline: 2px solid var(--bw-focus);\n outline-offset: 1px;\n}\n\n.bpmn-workshop__button:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.bpmn-workshop__notices {\n display: flex;\n flex-direction: column;\n gap: 2px;\n padding: 4px 6px;\n border-bottom: 1px solid var(--bw-border);\n}\n\n.bpmn-workshop__notice {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 2px 6px;\n border-left: 3px solid var(--bw-accent);\n font-size: 0.9em;\n}\n\n.bpmn-workshop__notice--error {\n border-left-color: #b42318;\n}\n\n.bpmn-workshop__notice--warning {\n border-left-color: #a15c00;\n}\n\n.bpmn-workshop__panel {\n position: relative;\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.bpmn-workshop__panel:focus-visible {\n outline: 2px solid var(--bw-focus);\n outline-offset: -2px;\n}\n\n.bpmn-workshop__canvas {\n position: absolute;\n inset: 0;\n}\n\n.bpmn-workshop__veil {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n padding-top: 12px;\n background: color-mix(in srgb, var(--bw-bg) 55%, transparent);\n pointer-events: all;\n}\n\n.bpmn-workshop__busy {\n padding: 4px 10px;\n border: 1px solid var(--bw-border);\n border-radius: 999px;\n background: var(--bw-bg);\n color: var(--bw-fg);\n font-size: 0.9em;\n}\n\n/* While busy the palette is hidden and nothing can be picked. */\n.bpmn-workshop--busy .djs-palette,\n.bpmn-workshop--busy .djs-context-pad {\n display: none;\n}\n\n@media (prefers-color-scheme: dark) {\n .bpmn-workshop {\n --bw-bg: var(--bpmn-workshop-bg, #0d1117);\n --bw-fg: var(--bpmn-workshop-fg, #e6edf3);\n --bw-border: var(--bpmn-workshop-border, #8b949e);\n --bw-muted: var(--bpmn-workshop-muted, #9aa4ae);\n --bw-accent: var(--bpmn-workshop-accent, #58a6ff);\n --bw-focus: var(--bpmn-workshop-focus, #58a6ff);\n }\n}\n",Cd=new WeakSet,Lw=new Map;Nw="data-bpmn-canvas-font",Iw="data-bpmn-canvas-styles";YA=.85,pa=24;JA=new Set(["bpmn:Participant","bpmn:Lane","label"]);eP=".bjs-drilldown, [data-marker='sub-process'], [data-marker='process-icon'], .legend-marker",nP={standard:56,legend:112,colored:56},oP=1.15,rP=.87,iP=.2,aP=4,sP=class{ready;instanceId=$A();root;host;options;modeler;_state="loading";destroyed=!1;epoch=0;navSeq=0;queue=Promise.resolve();loading=0;touched=!1;inputXml="";baseRevision;revisionCounter=0;lastRevision;activeId;diagrams=[];planeIds=new Map;diagnostics=[];hostReadOnly;lossyGate=!1;inLayout=!1;wheelListener;wheelCapture=!1;drilldownListener;abortListener;profileId;tokens;fitMode;fittedOnce=!1;resizeObserver;lastSize="";lastHistory="";watermarkRefusal;assetProblems=[];assetBase;assetsChecked=!1;history={past:[],future:[]};capturing=!1;constructor(t,e){this.host=t,this.options=e,this.hostReadOnly=e.readOnly===!0,this.profileId=e.profile??"standard",this.tokens=e.profile==="colored"?e.coloredTokens:e.legendTokens,this.fitMode=e.fitMode??"readable",this.baseRevision=e.revision,this.root=t.ownerDocument.createElement("div"),this.root.className="bpmn-canvas",this.root.dataset.bpmnCanvasInstance=this.instanceId,e.watermark?.hidden===!0&&(String(e.watermark.license??"").trim()===""?this.watermarkRefusal={code:"watermark-refused",severity:"warning",message:"The bpmn.io logo stays visible: hiding it needs watermark.license, the reference of the license that allows it."}:this.root.dataset.bpmnCanvasWatermark="hidden"),t.appendChild(this.root);let n=[];if(e.assetBase!==void 0)try{this.assetBase=qA(e.assetBase)}catch(i){n.push({code:"asset-load-failed",severity:"error",message:"assetBase is not usable (".concat(Fw(i),"); fonts and images are looked up next to the bundle instead.")})}if((e.styles??"auto")==="auto")try{XA(t,e.styleNonce,this.assetBase)}catch(i){n.push({code:"styles-missing",severity:"error",message:"The canvas styles could not be installed (".concat(Fw(i),"). Set assetBase to the absolute URL of the package's dist/assets/ directory.")})}e.signal&&(e.signal.aborted?this.destroy():(this.abortListener=()=>this.destroy(),e.signal.addEventListener("abort",this.abortListener,{once:!0})));let o=++this.epoch;if(this.queue=this.init(),this.watermarkRefusal){let i=this.watermarkRefusal;Promise.resolve().then(()=>{this.destroyed||this.emit(i)})}for(let i of n)Promise.resolve().then(()=>this.reportAsset(i));let r=e.xml===void 0?this.queue:this.enqueue(o,()=>this.applyXml(e.xml,e.revision,o));this.ready=r.then(()=>{},()=>{})}get state(){return this._state}setState(t){this._state!==t&&(this._state=t,this.options.onStateChange?.(t))}emit(t){this.options.onDiagnostic?.(t)}reportAsset(t){if(this.destroyed)return;this.assetProblems.push(t),this.emit(t);let e=this.root.ownerDocument,n=this.root.querySelector(":scope > .bpmn-canvas__asset-notice");n||(n=e.createElement("div"),n.className="bpmn-canvas__asset-notice",n.setAttribute("role","alert"),Object.assign(n.style,{position:"absolute",left:"8px",right:"8px",top:"8px",zIndex:"10",pointerEvents:"none",padding:"8px 10px",background:"#fff4e5",color:"#5f3700",border:"1px solid #e0a050",borderRadius:"4px",font:"13px/1.4 system-ui, sans-serif"}),this.root.style.position="relative",this.root.append(n));let o=e.createElement("div");o.textContent="BPMN canvas: ".concat(t.message),n.append(o),this.root.getBoundingClientRect().height<64&&(this.root.style.minHeight="120px")}scheduleAssetCheck(){this.assetsChecked||(this.assetsChecked=!0,this.checkAssets().catch(()=>{}))}async checkAssets(){let t=this.root.ownerDocument,e=t.defaultView,n=t.fonts;if(!e||!n)return;let o=this.options.styles==="external",r=()=>e.getComputedStyle(this.root).getPropertyValue("--bpmn-canvas-styles").trim()==="1";if(r()||await lP(e,5e3),this.destroyed||this.assetProblems.some(l=>l.code==="styles-missing"))return;if(!r()){this.reportAsset({code:"styles-missing",severity:"error",message:o?'the stylesheet is not applied: load styles.css from the package, or use styles: "auto".':"the styles are not applied: a Content-Security-Policy may block them (pass styleNonce)."});return}let i=!1;try{let l=await n.load("14px bpmn");i=l.length>0&&l.every(p=>p.status==="loaded")}catch{i=!1}if(this.destroyed)return;let a=o?"next to styles.css":this.assetBase?"under ".concat(this.assetBase.href):"next to the bundle";if(!i){let l="";try{l=o?"":KA(this.assetBase)}catch{}this.reportAsset({code:"asset-load-failed",severity:"error",message:"the BPMN icon font did not load ".concat(l?"from ".concat(l):a,", so palette and marker icons are missing. Set assetBase, or allow it in font-src.")})}if(o)return;let s="";try{s=c5("inline-01.svg",this.assetBase)}catch{}let c=s!==""&&await pP(e,s,8e3);this.destroyed||c||this.reportAsset({code:"asset-load-failed",severity:"error",message:"the images did not load ".concat(s?"from ".concat(s):a,", so palette icons are missing. Set assetBase, or allow it in img-src.")})}assertLive(t){if(this.destroyed||t!==this.epoch)throw yr()}enqueue(t,e){let n=this.queue.then(()=>(this.assertLive(t),e()));return this.queue=n.then(()=>{},()=>{}),n.catch(()=>{}),n}tokensFor(t){return this.tokens}async init(){try{let[t,e,n]=await Promise.all([$w(),zw(this.profileId,this.tokensFor(this.profileId)),this.layoutModules()]);if(this.destroyed)return;this.createModeler(t,e,n),this.setupResizeObserver()}catch(t){if(this.destroyed)return;let e={code:"import-failed",severity:"error",message:"Engine failed to load: ".concat(String(t?.message??t))};this.diagnostics=[e],this.setState("error"),this.emit(e)}}createModeler(t,e,n){let o=this.options.zoomLimits,r=new t.Modeler({container:this.root,additionalModules:[HA,IA,...e.modelerModules,...n],bpmnCanvas:jA(this.instanceId,e,this.options.paletteColumns),...o?{zoomScroll:{...o.min===void 0?{}:{minZoom:o.min},...o.max===void 0?{}:{maxZoom:o.max}}}:{}});this.modeler=r;let i=r.get("eventBus");return i.on("commandStack.changed",a=>this.onStackChanged(a.trigger)),i.on("element.click",a=>this.onElementClick(a)),i.on("root.set",a=>this.onRootSet(a.element)),i.on("keyboard.keydown",2e3,a=>{let s=a.keyEvent;if(!s)return;let c=r.get("commandStack");if(dd(s)&&!c.canUndo()&&this.history.past.length>0)return this.undo(),!0;if(md(s)&&!c.canRedo()&&this.history.future.length>0)return this.redo(),!0}),this.setupDrilldown(r),this.setupWheel(r),this.applyReadOnly(),r}async layoutModules(){try{return[(await Ko(()=>Promise.resolve().then(()=>(Bw(),Cw)),[])).BpmnCanvasLayoutModule]}catch{return[]}}removeWheel(){this.wheelListener&&this.root.removeEventListener("wheel",this.wheelListener,{capture:this.wheelCapture}),this.wheelListener=void 0}setupWheel(t){this.removeWheel();let e=this.options.wheel??"zoom";if(e==="zoom")return;let n=t.get("zoomScroll");if(e==="page-scroll"){if(!n)return;n.toggle(!1),this.wheelListener=o=>{if(!o.ctrlKey&&!o.metaKey)return;o.preventDefault();let r=this.root.getBoundingClientRect();n.stepZoom(o.deltaY<0?1:-1,{x:o.clientX-r.left,y:o.clientY-r.top})},this.wheelCapture=!1,this.root.addEventListener("wheel",this.wheelListener,{passive:!1})}else this.wheelListener=o=>{if(o.ctrlKey||o.metaKey||o.deltaY===0)return;o.preventDefault(),o.stopPropagation();let r=this.root.getBoundingClientRect();this.zoomBy(o.deltaY<0?oP:rP,{x:o.clientX-r.left,y:o.clientY-r.top})},this.wheelCapture=!0,this.root.addEventListener("wheel",this.wheelListener,{passive:!1,capture:!0})}setupResizeObserver(){typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(([t])=>{let e=t?.contentRect;if(this.destroyed||!e||e.width===0||e.height===0)return;let n="".concat(Math.round(e.width),"x").concat(Math.round(e.height));n!==this.lastSize&&(this.lastSize=n,this.modeler&&this.diagrams.length!==0&&(this.modeler.get("canvas").resized(),(!this.fittedOnce||this.fitMode==="whole")&&this.applyFit(this.fitMode)))}),this.resizeObserver.observe(this.root))}removeDrilldown(){this.drilldownListener&&this.root.removeEventListener("click",this.drilldownListener,{capture:!0}),this.drilldownListener=void 0}setupDrilldown(t){this.removeDrilldown(),(this.options.drilldown??"native")==="event"&&(this.drilldownListener=e=>{let n=e.target?.closest?.(".bjs-drilldown");if(!n)return;e.preventDefault(),e.stopPropagation();let o=n.closest("[data-container-id]")?.getAttribute("data-container-id"),r=o?t.get("elementRegistry").get(o):void 0;r&&this.onElementClick({element:r,originalEvent:e})},this.root.addEventListener("click",this.drilldownListener,{capture:!0}))}onRootSet(t){if(this.destroyed||this.loading>0||!this.modeler)return;let e=t?.businessObject?.id,n=[...this.planeIds].find(([,o])=>o===e)?.[0];n&&n!==this.activeId&&(this.activeId=n,this.resetHistory(),this.options.onChange?.({revision:this.lastRevision??"".concat(this.instanceId,":").concat(this.revisionCounter),baseRevision:this.baseRevision,cause:"diagram-switch",diagramId:n}))}onElementClick(t){let e=t.element,n=e?.businessObject;if(!e||!n||!e.parent||!this.options.onElementClick)return;let o=t.originalEvent?.target,r=typeof n.calledElement=="string"&&n.calledElement?n.calledElement:void 0;this.options.onElementClick({id:e.id,type:e.type,name:typeof n.name=="string"?n.name:"",...r===void 0?{}:{calledElement:r},marker:!!o?.closest?.(eP)})}emitHistory(){if(this.destroyed||this.capturing||!this.options.onHistoryChange)return;let t={canUndo:this.canUndo(),canRedo:this.canRedo()},e="".concat(t.canUndo).concat(t.canRedo);e!==this.lastHistory&&(this.lastHistory=e,this.options.onHistoryChange(t))}onStackChanged(t){if(this.destroyed||this.capturing||(this.loading===0&&t==="execute"&&(this.history.future=[]),this.emitHistory(),this.loading>0||t==="clear"||!this.activeId))return;this.touched=!0;let e=this.inLayout?"layout":t==="undo"?"undo":t==="redo"?"redo":"edit";this.lastRevision="".concat(this.instanceId,":").concat(++this.revisionCounter),this.options.onChange?.({revision:this.lastRevision,baseRevision:this.baseRevision,cause:e,diagramId:this.activeId})}isEffectivelyReadOnly(){return this.hostReadOnly||this.lossyGate}applyReadOnly(){let t=this.isEffectivelyReadOnly();this.root.classList.toggle("bpmn-canvas--readonly",t),this.modeler?.get("bpmnCanvasReadOnly")?.setReadOnly(t)}async applyXml(t,e,n){let o=this.modeler;if(!o)return{applied:!1,reason:"invalid"};this.loading++;try{let r=[];RA(t)&&r.push({code:"comments-present",severity:"warning",destructive:!0,message:"XML comments are dropped on save."});let i;try{let l=await o.get("moddle").fromXML(t);i=l.rootElement,r.push(...MA(l.warnings),...PA(i))}catch(l){return this.reject(n,t,[{code:"invalid-xml",severity:"error",message:String(l?.message??l).split("\n")[0]??"invalid XML"}])}if(this.assertLive(n),(i.diagrams??[]).length===0)return this.reject(n,t,r);let a=this.activeId,s=a!==void 0&&(i.diagrams??[]).some(l=>l.id===a)?a:void 0;try{await o.importXML(t,s)}catch(l){return this.assertLive(n),this.setState("error"),this.reject(n,t,[...r,{code:"import-failed",severity:"error",message:String(l?.message??l).split("\n")[0]??"import failed"}])}this.assertLive(n),this.inputXml=t,this.touched=!1,this.baseRevision=e,this.lastRevision=void 0,this.diagnostics=r;let c=(i.diagrams??[]).filter(l=>typeof l.id=="string"&&l.id!=="");this.diagrams=c.map(l=>({id:l.id,name:OA(l)})),this.planeIds=new Map(c.map(l=>[l.id,l.plane.bpmnElement?.id??""])),this.activeId=s??this.diagrams[0]?.id,this.history={past:[],future:[]},this.lossyGate=DA(r)&&this.options.allowLossyEdit!==!0,this.applyReadOnly(),this.fittedOnce=!1,this.initialFit(),this.setState("ready"),this.emitHistory();for(let l of r)this.emit(l);return this.scheduleAssetCheck(),this.lossyGate&&this.emit({code:"read-only-lossy",severity:"warning",message:"The document would lose content on save, so it is open read-only. Set allowLossyEdit to edit anyway."}),{applied:!0}}finally{this.loading--}}reject(t,e,n){this.assertLive(t),this.diagrams.length===0&&(this.inputXml=e,this.diagnostics=n,this.setState("error"));for(let o of n)this.emit(o);return{applied:!1,reason:"invalid"}}setXml(t,e={}){if(this.destroyed)return Promise.reject(yr());let n=e.revision;if(n!==void 0&&(n===this.baseRevision||n===this.lastRevision))return Promise.resolve({applied:!1,reason:"echo"});let o=++this.epoch;return this.enqueue(o,()=>this.applyXml(t,n,o))}async getXml(){let t=this.epoch;await this.queue,this.assertLive(t);let e=this.modeler;if(!e||this.diagrams.length===0)return this.inputXml;let n=e.get("directEditing");if(n?.isActive()&&n.complete(),!this.touched)return this.inputXml;let o;try{o=await this.saveLive(e,t)}catch(r){this.assertLive(t);let i={code:"save-failed",severity:"error",message:String(r?.message??r)};throw this.emit(i),r}return this.assertLive(t),o}getDiagrams(){return this.diagrams}getActiveDiagramId(){return this.activeId}selectDiagram(t){if(this.destroyed)return Promise.reject(yr());let e=this.epoch,n=++this.navSeq;return this.enqueue(e,async()=>{if(n!==this.navSeq)throw yr();let o=this.modeler;if(!o||!this.diagrams.some(i=>i.id===t)){let i=Error('Unknown diagram id "'.concat(t,'"'));throw i.name="UnknownDiagramError",i}if(t===this.activeId)return;let r=o.get("directEditing");r?.isActive()&&r.complete(),this.loading++;try{await o.open(t)}finally{this.loading--}if(this.assertLive(e),n!==this.navSeq)throw yr();this.activeId=t,this.history={past:[],future:[]},this.applyFit(this.fitMode),this.emitHistory(),this.options.onChange?.({revision:this.lastRevision??"".concat(this.instanceId,":").concat(this.revisionCounter),baseRevision:this.baseRevision,cause:"diagram-switch",diagramId:t})})}getDiagnostics(){return[...this.watermarkRefusal?[this.watermarkRefusal]:[],...this.assetProblems,...this.diagnostics]}setReadOnly(t){this.destroyed||(this.hostReadOnly=t,this.applyReadOnly())}isReadOnly(){return this.isEffectivelyReadOnly()}getReadOnlyReason(){return this.hostReadOnly?"host":this.lossyGate?"lossy":void 0}initialFit(){let t=this.root.getBoundingClientRect();t.width>0&&t.height>0&&this.applyFit(this.fitMode)}applyFit(t,e){let n=this.modeler;if(this.destroyed||!n||this.diagrams.length===0)return;let o=n.get("canvas");try{let r=[];for(let l of n.get("elementRegistry").getAll())if(l.type!=="bpmn:Process"&&l.type!=="bpmn:Collaboration"){if(typeof l.x=="number"&&typeof l.y=="number"&&typeof l.width=="number"&&typeof l.height=="number")r.push({x:l.x,y:l.y,width:l.width,height:l.height,type:l.type});else if(Array.isArray(l.waypoints))for(let p of l.waypoints)r.push({x:p.x,y:p.y,width:1,height:1,type:l.type})}let i=this.root.querySelector(".djs-palette")?.getBoundingClientRect(),a=this.root.getBoundingClientRect().left,s=i&&i.width>0?i.right-a+8:0,c=tP(r,o.getSize(),e??Math.max(s,nP[this.profileId]),t==="whole");c?o.viewbox(c.viewbox):o.zoom("fit-viewport","auto"),this.fittedOnce=!0}catch{}}fit(t={}){this.applyFit(t.mode??"whole",t.inset)}setFitMode(t){if(this.destroyed||(this.fitMode=t,!this.modeler||this.diagrams.length===0))return;let e=this.root.ownerDocument.defaultView,n=()=>{!this.destroyed&&this.modeler&&(this.modeler.get("canvas").resized(),this.applyFit(t))};e?.requestAnimationFrame?e.requestAnimationFrame(n):n()}zoomLimits(){return{min:this.options.zoomLimits?.min??iP,max:this.options.zoomLimits?.max??aP}}getZoom(){let t=this.modeler&&this.diagrams.length>0?this.modeler.get("canvas").zoom():1;return typeof t=="number"?t:1}zoomTo(t,e="auto"){if(this.destroyed||!this.modeler||this.diagrams.length===0)return;let{min:n,max:o}=this.zoomLimits();this.modeler.get("canvas").zoom(Math.min(o,Math.max(n,t)),e)}zoomBy(t,e="auto"){this.zoomTo(this.getZoom()*t,e)}setProfile(t,e){if(this.destroyed)return Promise.reject(yr());let n=this.epoch;return this.enqueue(n,async()=>{let o;try{o=await this.prepareSwitch(n,t,e)}catch(m){throw this.assertLive(n),m}this.assertLive(n);let{engine:r,next:i,layout:a,old:s,hadDocument:c,xml:l,view:p,captured:d}=o;c&&(this.history={past:[...d.past,...this.history.past],future:d.future.length>0?d.future:this.history.future},this.capHistory()),this.loading++;try{this.removeWheel(),this.removeDrilldown(),s?.destroy(),this.modeler=void 0,this.profileId=t,this.tokens=e;let m=this.createModeler(r,i,a);if(c){if(await m.importXML(l,this.activeId),this.destroyed)throw yr();p&&m.get("canvas").viewbox({x:p.x,y:p.y,width:p.width,height:p.height})}}catch(m){throw this.destroyed||m?.name==="AbortError"?yr():(this.setState("error"),this.emit({code:"import-failed",severity:"error",message:"Profile switch failed: ".concat(String(m?.message??m))}),m)}finally{this.loading--}if(this.destroyed)throw yr();c&&this.activeId&&(this.inputXml=l,this.touched=!1,this.emitHistory(),this.options.onChange?.({revision:this.lastRevision??"".concat(this.instanceId,":").concat(this.revisionCounter),baseRevision:this.baseRevision,cause:"profile-switch",diagramId:this.activeId}))})}async prepareSwitch(t,e,n){let[o,r,i]=await Promise.all([$w(),zw(e,n),this.layoutModules()]);this.assertLive(t);let a=this.modeler,s=!!a&&this.diagrams.length>0,c=this.inputXml,l,p={past:[],future:[]};if(a&&s){let d=a.get("directEditing");d?.isActive()&&d.complete(),this.touched&&(c=await this.saveLive(a,t)),this.assertLive(t),l=a.get("canvas").viewbox(),p=await this.captureHistory(a,t),this.assertLive(t)}return{engine:o,next:r,layout:i,old:a,hadDocument:s,xml:c,view:l,captured:p}}stack(){return this.modeler?.get("commandStack")}canUndo(){return(this.stack()?.canUndo()??!1)||this.history.past.length>0}canRedo(){return(this.stack()?.canRedo()??!1)||this.history.future.length>0}undo(){if(this.destroyed)return;let t=this.stack();t?.canUndo()?t.undo():this.history.past.length>0&&!this.isEffectivelyReadOnly()&&this.moveHistory("undo").catch(()=>{})}redo(){if(this.destroyed)return;let t=this.stack();t?.canRedo()?t.redo():this.history.future.length>0&&!this.isEffectivelyReadOnly()&&this.moveHistory("redo").catch(()=>{})}resetHistory(){(this.history.past.length!==0||this.history.future.length!==0)&&(this.history={past:[],future:[]},this.emitHistory())}capHistory(){let{past:t,future:e}=this.history;for(;t.length+e.length>bf;)t.length>=e.length?t.pop():e.pop()}async saveLive(t,e){let n;try{n=(await t.saveXML({format:!0})).xml}catch(o){throw this.assertLive(e),o}return this.assertLive(e),n}async captureHistory(t,e){let n=t.get("commandStack");if(!n.canUndo()&&!n.canRedo())return{past:[],future:[]};let o=t.get("bpmnCanvasReadOnly"),r=o?.isReadOnly()??!1,i=()=>this.saveLive(t,e);this.capturing=!0,this.loading++,o?.setReadOnly(!1);let a=0;try{let s=[];for(;n.canUndo()&&s.length<bf;)n.undo(),a--,s.push(await i()),this.assertLive(e);for(;a<0;)n.redo(),a++;let c=[];for(;n.canRedo()&&c.length<bf;)n.redo(),a++,c.push(await i()),this.assertLive(e);for(;a>0;)n.undo(),a--;return{past:s,future:c}}finally{try{for(;!this.destroyed&&a<0;)n.redo(),a++;for(;!this.destroyed&&a>0;)n.undo(),a--}finally{o?.setReadOnly(r),this.loading--,this.capturing=!1}}}moveHistory(t){let e=this.epoch;return this.enqueue(e,async()=>{let n=this.modeler;if(!n||this.diagrams.length===0||this.isEffectivelyReadOnly())return;let o=t==="undo"?this.history.past[0]:this.history.future[0];if(o===void 0)return;let r=await this.saveLive(n,e);this.assertLive(e);let i=await this.captureHistory(n,e);this.assertLive(e);let a=n.get("canvas").viewbox();this.loading++;try{try{await n.importXML(o,this.activeId)}catch{this.assertLive(e),await n.importXML(o)}}finally{this.loading--}this.assertLive(e),n.get("canvas").viewbox({x:a.x,y:a.y,width:a.width,height:a.height}),t==="undo"?(this.history.past.shift(),this.history.future=[r,...i.future,...this.history.future]):(this.history.future.shift(),this.history.past=[r,...i.past,...this.history.past]),this.capHistory(),this.inputXml=o,this.touched=!1,this.lastRevision="".concat(this.instanceId,":").concat(++this.revisionCounter),this.emitHistory(),this.activeId&&this.options.onChange?.({revision:this.lastRevision,baseRevision:this.baseRevision,cause:t,diagramId:this.activeId})})}autoLayout(){if(this.destroyed)return Promise.reject(yr());let t=this.epoch;return this.enqueue(t,async()=>{let e=this.modeler,n=e?.get("bpmnCanvasLayout");if(!e||!n||this.diagrams.length===0)return this.emit({code:"layout-unsupported",severity:"warning",message:"No document is displayed, so there is nothing to lay out."}),{changed:0,skipped:[]};if(this.isEffectivelyReadOnly())return this.emit({code:"layout-unsupported",severity:"warning",message:"The canvas is read-only."}),{changed:0,skipped:[]};this.inLayout=!0;try{let o=await n.run(()=>!this.destroyed&&t===this.epoch);return this.assertLive(t),(o.changed===0||o.skipped.length>0)&&this.emit({code:"layout-unsupported",severity:"warning",ids:o.skipped,message:o.changed===0?"Nothing could be laid out.":"".concat(o.skipped.length," element(s) were not placed.")}),o}catch(o){throw this.assertLive(t),o?.name==="AbortError"||this.emit({code:"layout-failed",severity:"error",message:String(o?.message??o)}),o}finally{this.inLayout=!1}})}destroy(){if(!this.destroyed){this.destroyed=!0,this.history={past:[],future:[]},this.epoch++,this.navSeq++,this.options.signal&&this.abortListener&&this.options.signal.removeEventListener("abort",this.abortListener),this.removeWheel(),this.removeDrilldown(),this.resizeObserver?.disconnect(),this.resizeObserver=void 0;try{this.modeler?.destroy()}finally{this.modeler=void 0,this.root.remove(),this.setState("destroyed")}}}};bf=100;hP=GM({port:()=>l5,renderBpmn:()=>d5,toXml:()=>p5}),l5=uP(t=>dP(t)),p5=mP});var m5={};Ii(m5,{default:()=>fP});var fP,u5=gn(()=>{"use strict";fP="/* Generated by packages/themes/scripts/build-css.mjs. */\n/* Theme: Sent Tech Forge (forge) */\n/* Dark mode: 3 blocks (light + auto + explicit) */\n[data-st-theme=\"forge\"] {\n color-scheme: light;\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-shadow-subtle: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-foundation-shadow-medium: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-shadow-medium: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-foundation-shadow-floating: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-shadow-floating: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: #ffffff;\n --st-semantic-surface-subtle: #f8fafc;\n --st-semantic-surface-raised: #ffffff;\n --st-semantic-surface-inverse: #0f172a;\n --st-semantic-surface-overlay: rgb(15 23 42 / 0.48);\n --st-semantic-text-primary: #0f172a;\n --st-semantic-text-secondary: #475569;\n --st-semantic-text-muted: #64748b;\n --st-semantic-text-inverse: #ffffff;\n --st-semantic-text-link: oklch(50% 0.134 242.749);\n --st-semantic-border-subtle: #e2e8f0;\n --st-semantic-border-strong: #94a3b8;\n --st-semantic-border-interactive: oklch(50% 0.134 242.749);\n --st-semantic-action-primary: hsl(215 70% 25%);\n --st-semantic-action-primaryHover: oklch(32% 0.11 242);\n --st-semantic-action-primaryText: hsl(0 0% 100%);\n --st-semantic-action-secondary: #f8fafc;\n --st-semantic-action-secondaryHover: #e2e8f0;\n --st-semantic-action-secondaryText: #0f172a;\n --st-semantic-action-danger: #dc2626;\n --st-semantic-feedback-success: #16a34a;\n --st-semantic-feedback-warning: #d97706;\n --st-semantic-feedback-error: #dc2626;\n --st-semantic-feedback-info: #2563eb;\n --st-semantic-status-pending: #d97706;\n --st-semantic-status-processing: #2563eb;\n --st-semantic-status-completed: #16a34a;\n --st-semantic-status-failed: #dc2626;\n --st-semantic-data-category1: #4E79A7;\n --st-semantic-data-category2: #F28E2B;\n --st-semantic-data-category3: #E15759;\n --st-semantic-data-category4: #76B7B2;\n --st-semantic-data-category5: #59A14F;\n --st-semantic-data-category6: #EDC948;\n --st-semantic-data-category7: #B07AA1;\n --st-semantic-data-category8: #FF9DA7;\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: hsl(215 70% 25%);\n --st-component-button-primaryText: hsl(0 0% 100%);\n --st-component-button-secondaryBackground: #f8fafc;\n --st-component-button-secondaryBorder: #e2e8f0;\n --st-component-button-secondaryHoverBackground: #e2e8f0;\n --st-component-button-secondaryText: #0f172a;\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(32% 0.11 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(50% 0.134 242.749);\n --st-component-link-hoverText: hsl(215 70% 25%);\n --st-component-link-disabledText: #64748b;\n --st-component-link-focusRing: oklch(50% 0.134 242.749);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: hsl(215 70% 25%);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: #64748b;\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: #ffffff;\n --st-component-alert-text: #0f172a;\n --st-component-alert-border: #e2e8f0;\n --st-component-alert-infoBorder: #2563eb;\n --st-component-alert-successBorder: #16a34a;\n --st-component-alert-warningBorder: #d97706;\n --st-component-alert-errorBorder: #dc2626;\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid #e2e8f0;\n --st-component-alert-borderRight: 1px solid #e2e8f0;\n --st-component-alert-borderBottom: 1px solid #e2e8f0;\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: #0f172a;\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: #f8fafc;\n --st-component-tag-neutralText: #475569;\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, #2563eb 14%, white);\n --st-component-badge-infoText: #2563eb;\n --st-component-card-background: #ffffff;\n --st-component-card-border: #e2e8f0;\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: #ffffff;\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: #ffffff;\n --st-component-menu-border: #e2e8f0;\n --st-component-menu-text: #0f172a;\n --st-component-menu-itemHoverBackground: #f8fafc;\n --st-component-menu-dangerText: #dc2626;\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: #64748b;\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-popover-background: #ffffff;\n --st-component-popover-border: #e2e8f0;\n --st-component-popover-text: #0f172a;\n --st-component-popover-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: #ffffff;\n --st-component-dropdown-border: #e2e8f0;\n --st-component-dropdown-text: #0f172a;\n --st-component-dropdown-optionHoverBackground: #f8fafc;\n --st-component-dropdown-selectedBackground: hsl(215 70% 25%);\n --st-component-dropdown-selectedText: hsl(0 0% 100%);\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-input-background: #ffffff;\n --st-component-input-border: #e2e8f0;\n --st-component-input-focusRing: oklch(50% 0.134 242.749);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: #0f172a;\n --st-component-field-helpText: #475569;\n --st-component-field-errorText: #dc2626;\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: #ffffff;\n --st-component-control-text: #0f172a;\n --st-component-control-placeholderText: #64748b;\n --st-component-control-border: #e2e8f0;\n --st-component-control-hoverBorder: #94a3b8;\n --st-component-control-hoverBackground: #f8fafc;\n --st-component-control-focusRing: oklch(50% 0.134 242.749);\n --st-component-control-invalidBorder: #dc2626;\n --st-component-control-disabledBackground: #f8fafc;\n --st-component-control-disabledText: #64748b;\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderRight: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderBottom: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderLeft: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: #94a3b8;\n --st-component-control-anatomy-states-focus-border: oklch(50% 0.134 242.749);\n --st-component-control-anatomy-states-disabled-bg: #f8fafc;\n --st-component-control-anatomy-states-disabled-text: #64748b;\n --st-component-selection-checkedBackground: hsl(215 70% 25%);\n --st-component-selection-checkedText: hsl(0 0% 100%);\n --st-component-selection-border: #e2e8f0;\n --st-component-selection-switchTrack: #94a3b8;\n --st-component-selection-switchTrackChecked: hsl(215 70% 25%);\n --st-component-selection-switchThumb: #ffffff;\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: #0f172a;\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: #0f172a;\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(15 23 42 / 0.48);\n --st-component-overlay-surface: #ffffff;\n --st-component-overlay-border: #e2e8f0;\n --st-component-overlay-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(15 23 42 / 0.48);\n --st-component-drawer-surface: #ffffff;\n --st-component-drawer-border: #e2e8f0;\n --st-component-drawer-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: #f8fafc;\n --st-component-emptyState-border: #e2e8f0;\n --st-component-emptyState-titleText: #0f172a;\n --st-component-emptyState-messageText: #475569;\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: hsl(215 70% 25%);\n --st-component-loadingState-track: #f8fafc;\n --st-component-loadingState-text: #475569;\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: #0f172a;\n --st-component-tooltip-text: #ffffff;\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: #ffffff;\n --st-component-toast-text: #0f172a;\n --st-component-toast-border: #e2e8f0;\n --st-component-toast-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: #2563eb;\n --st-component-toast-successBorder: #16a34a;\n --st-component-toast-warningBorder: #d97706;\n --st-component-toast-errorBorder: #dc2626;\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: #f8fafc;\n --st-component-dataTable-rowBackground: #ffffff;\n --st-component-dataTable-rowHoverBackground: #f8fafc;\n --st-component-dataTable-border: #e2e8f0;\n --st-component-dataTable-text: #0f172a;\n --st-component-dataTable-captionText: #475569;\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: #0f172a;\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: #475569;\n --st-component-tabs-border: #e2e8f0;\n --st-component-tabs-indicator: hsl(215 70% 25%);\n --st-component-tabs-panelBackground: #ffffff;\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: #0f172a;\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: #ffffff;\n --st-component-pagination-border: #e2e8f0;\n --st-component-pagination-text: #0f172a;\n --st-component-pagination-activeBackground: hsl(215 70% 25%);\n --st-component-pagination-activeText: hsl(0 0% 100%);\n --st-component-pagination-disabledText: #64748b;\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: #e2e8f0;\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: #ffffff;\n --st-component-paginationNav-border: #e2e8f0;\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: #0f172a;\n --st-component-paginationNav-hoverBackground: #f8fafc;\n --st-component-paginationNav-activeBackground: hsl(215 70% 25%);\n --st-component-paginationNav-activeText: hsl(0 0% 100%);\n --st-component-paginationNav-disabledText: #64748b;\n --st-component-paginationNav-ellipsisText: #64748b;\n --st-component-breadcrumb-text: #475569;\n --st-component-breadcrumb-currentText: #0f172a;\n --st-component-breadcrumb-separator: #64748b;\n --st-component-breadcrumb-linkText: oklch(50% 0.134 242.749);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: #ffffff;\n --st-component-sideNav-border: #e2e8f0;\n --st-component-sideNav-itemText: #475569;\n --st-component-sideNav-activeBackground: #f8fafc;\n --st-component-sideNav-activeText: #0f172a;\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, hsl(215 70% 25%) 12%, transparent);\n --st-component-selectableRow-selectedAccent: hsl(215 70% 25%);\n --st-component-selectableRow-selectedText: color-mix(in oklch, hsl(215 70% 25%) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, hsl(215 70% 25%) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: hsl(215 70% 25%);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, hsl(215 70% 25%) 70%, white);\n --st-component-chat-userBubbleBackground: hsl(215 70% 25%);\n --st-component-chat-userBubbleText: hsl(0 0% 100%);\n --st-component-chat-assistantBubbleBackground: #f8fafc;\n --st-component-chat-assistantBubbleText: #0f172a;\n --st-component-chat-composerSurface: #ffffff;\n --st-component-chat-toolCallSurface: #f8fafc;\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: #0f172a;\n --st-component-graph-panelText: #ffffff;\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: #4E79A7;\n --st-component-graph-community2: #F28E2B;\n --st-component-graph-community3: #E15759;\n --st-component-graph-community4: #76B7B2;\n}\n\n\n@media (prefers-color-scheme: dark) {\n color-scheme: dark;\n :root:not([data-color-mode=\"light\"]) {\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-foundation-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-foundation-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: oklch(15% 0.012 250);\n --st-semantic-surface-subtle: oklch(19% 0.014 250);\n --st-semantic-surface-raised: oklch(21% 0.015 250);\n --st-semantic-surface-inverse: oklch(96% 0.005 250);\n --st-semantic-surface-overlay: rgb(2 4 8 / 0.66);\n --st-semantic-text-primary: oklch(96% 0.005 250);\n --st-semantic-text-secondary: oklch(78% 0.012 250);\n --st-semantic-text-muted: oklch(66% 0.018 250);\n --st-semantic-text-inverse: oklch(15% 0.012 250);\n --st-semantic-text-link: oklch(72% 0.13 242);\n --st-semantic-border-subtle: oklch(28% 0.014 250);\n --st-semantic-border-strong: oklch(42% 0.016 250);\n --st-semantic-border-interactive: oklch(72% 0.13 242);\n --st-semantic-action-primary: hsl(215 70% 55%);\n --st-semantic-action-primaryHover: oklch(70% 0.15 242);\n --st-semantic-action-primaryText: hsl(0 0% 100%);\n --st-semantic-action-secondary: oklch(24% 0.015 250);\n --st-semantic-action-secondaryHover: oklch(28% 0.014 250);\n --st-semantic-action-secondaryText: oklch(96% 0.005 250);\n --st-semantic-action-danger: oklch(64% 0.19 25);\n --st-semantic-feedback-success: oklch(70% 0.17 150);\n --st-semantic-feedback-warning: oklch(76% 0.15 75);\n --st-semantic-feedback-error: oklch(64% 0.19 25);\n --st-semantic-feedback-info: oklch(68% 0.15 250);\n --st-semantic-status-pending: oklch(76% 0.15 75);\n --st-semantic-status-processing: oklch(68% 0.15 250);\n --st-semantic-status-completed: oklch(70% 0.17 150);\n --st-semantic-status-failed: oklch(64% 0.19 25);\n --st-semantic-data-category1: oklch(60% 0.08 242);\n --st-semantic-data-category2: oklch(75% 0.14 67);\n --st-semantic-data-category3: oklch(68% 0.16 23);\n --st-semantic-data-category4: oklch(73% 0.09 195);\n --st-semantic-data-category5: oklch(68% 0.14 148);\n --st-semantic-data-category6: oklch(83% 0.13 90);\n --st-semantic-data-category7: oklch(65% 0.10 320);\n --st-semantic-data-category8: oklch(78% 0.12 15);\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: hsl(215 70% 55%);\n --st-component-button-primaryText: hsl(0 0% 100%);\n --st-component-button-secondaryBackground: oklch(24% 0.015 250);\n --st-component-button-secondaryBorder: oklch(28% 0.014 250);\n --st-component-button-secondaryHoverBackground: oklch(28% 0.014 250);\n --st-component-button-secondaryText: oklch(96% 0.005 250);\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(70% 0.15 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(72% 0.13 242);\n --st-component-link-hoverText: hsl(215 70% 55%);\n --st-component-link-disabledText: oklch(66% 0.018 250);\n --st-component-link-focusRing: oklch(72% 0.13 242);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: hsl(215 70% 55%);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: oklch(21% 0.015 250);\n --st-component-alert-text: oklch(96% 0.005 250);\n --st-component-alert-border: oklch(28% 0.014 250);\n --st-component-alert-infoBorder: oklch(68% 0.15 250);\n --st-component-alert-successBorder: oklch(70% 0.17 150);\n --st-component-alert-warningBorder: oklch(76% 0.15 75);\n --st-component-alert-errorBorder: oklch(64% 0.19 25);\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: oklch(96% 0.005 250);\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: oklch(19% 0.014 250);\n --st-component-tag-neutralText: oklch(78% 0.012 250);\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, oklch(68% 0.15 250) 14%, white);\n --st-component-badge-infoText: oklch(68% 0.15 250);\n --st-component-card-background: oklch(21% 0.015 250);\n --st-component-card-border: oklch(28% 0.014 250);\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: oklch(21% 0.015 250);\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: oklch(21% 0.015 250);\n --st-component-menu-border: oklch(28% 0.014 250);\n --st-component-menu-text: oklch(96% 0.005 250);\n --st-component-menu-itemHoverBackground: oklch(19% 0.014 250);\n --st-component-menu-dangerText: oklch(64% 0.19 25);\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: oklch(66% 0.018 250);\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-popover-background: oklch(21% 0.015 250);\n --st-component-popover-border: oklch(28% 0.014 250);\n --st-component-popover-text: oklch(96% 0.005 250);\n --st-component-popover-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: oklch(15% 0.012 250);\n --st-component-dropdown-border: oklch(28% 0.014 250);\n --st-component-dropdown-text: oklch(96% 0.005 250);\n --st-component-dropdown-optionHoverBackground: oklch(19% 0.014 250);\n --st-component-dropdown-selectedBackground: hsl(215 70% 55%);\n --st-component-dropdown-selectedText: hsl(0 0% 100%);\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-input-background: oklch(15% 0.012 250);\n --st-component-input-border: oklch(28% 0.014 250);\n --st-component-input-focusRing: oklch(72% 0.13 242);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: oklch(96% 0.005 250);\n --st-component-field-helpText: oklch(78% 0.012 250);\n --st-component-field-errorText: oklch(64% 0.19 25);\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: oklch(15% 0.012 250);\n --st-component-control-text: oklch(96% 0.005 250);\n --st-component-control-placeholderText: oklch(66% 0.018 250);\n --st-component-control-border: oklch(28% 0.014 250);\n --st-component-control-hoverBorder: oklch(42% 0.016 250);\n --st-component-control-hoverBackground: oklch(19% 0.014 250);\n --st-component-control-focusRing: oklch(72% 0.13 242);\n --st-component-control-invalidBorder: oklch(64% 0.19 25);\n --st-component-control-disabledBackground: oklch(19% 0.014 250);\n --st-component-control-disabledText: oklch(66% 0.018 250);\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderLeft: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: oklch(42% 0.016 250);\n --st-component-control-anatomy-states-focus-border: oklch(72% 0.13 242);\n --st-component-control-anatomy-states-disabled-bg: oklch(19% 0.014 250);\n --st-component-control-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-selection-checkedBackground: hsl(215 70% 55%);\n --st-component-selection-checkedText: hsl(0 0% 100%);\n --st-component-selection-border: oklch(28% 0.014 250);\n --st-component-selection-switchTrack: oklch(42% 0.016 250);\n --st-component-selection-switchTrackChecked: hsl(215 70% 55%);\n --st-component-selection-switchThumb: oklch(15% 0.012 250);\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: oklch(96% 0.005 250);\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: oklch(96% 0.005 250);\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(2 4 8 / 0.66);\n --st-component-overlay-surface: oklch(21% 0.015 250);\n --st-component-overlay-border: oklch(28% 0.014 250);\n --st-component-overlay-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(2 4 8 / 0.66);\n --st-component-drawer-surface: oklch(21% 0.015 250);\n --st-component-drawer-border: oklch(28% 0.014 250);\n --st-component-drawer-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: oklch(19% 0.014 250);\n --st-component-emptyState-border: oklch(28% 0.014 250);\n --st-component-emptyState-titleText: oklch(96% 0.005 250);\n --st-component-emptyState-messageText: oklch(78% 0.012 250);\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: hsl(215 70% 55%);\n --st-component-loadingState-track: oklch(19% 0.014 250);\n --st-component-loadingState-text: oklch(78% 0.012 250);\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: oklch(96% 0.005 250);\n --st-component-tooltip-text: oklch(15% 0.012 250);\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: oklch(21% 0.015 250);\n --st-component-toast-text: oklch(96% 0.005 250);\n --st-component-toast-border: oklch(28% 0.014 250);\n --st-component-toast-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: oklch(68% 0.15 250);\n --st-component-toast-successBorder: oklch(70% 0.17 150);\n --st-component-toast-warningBorder: oklch(76% 0.15 75);\n --st-component-toast-errorBorder: oklch(64% 0.19 25);\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: oklch(19% 0.014 250);\n --st-component-dataTable-rowBackground: oklch(15% 0.012 250);\n --st-component-dataTable-rowHoverBackground: oklch(19% 0.014 250);\n --st-component-dataTable-border: oklch(28% 0.014 250);\n --st-component-dataTable-text: oklch(96% 0.005 250);\n --st-component-dataTable-captionText: oklch(78% 0.012 250);\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: oklch(96% 0.005 250);\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: oklch(78% 0.012 250);\n --st-component-tabs-border: oklch(28% 0.014 250);\n --st-component-tabs-indicator: hsl(215 70% 55%);\n --st-component-tabs-panelBackground: oklch(15% 0.012 250);\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: oklch(96% 0.005 250);\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: oklch(15% 0.012 250);\n --st-component-pagination-border: oklch(28% 0.014 250);\n --st-component-pagination-text: oklch(96% 0.005 250);\n --st-component-pagination-activeBackground: hsl(215 70% 55%);\n --st-component-pagination-activeText: hsl(0 0% 100%);\n --st-component-pagination-disabledText: oklch(66% 0.018 250);\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: oklch(28% 0.014 250);\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: oklch(15% 0.012 250);\n --st-component-paginationNav-border: oklch(28% 0.014 250);\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: oklch(96% 0.005 250);\n --st-component-paginationNav-hoverBackground: oklch(19% 0.014 250);\n --st-component-paginationNav-activeBackground: hsl(215 70% 55%);\n --st-component-paginationNav-activeText: hsl(0 0% 100%);\n --st-component-paginationNav-disabledText: oklch(66% 0.018 250);\n --st-component-paginationNav-ellipsisText: oklch(66% 0.018 250);\n --st-component-breadcrumb-text: oklch(78% 0.012 250);\n --st-component-breadcrumb-currentText: oklch(96% 0.005 250);\n --st-component-breadcrumb-separator: oklch(66% 0.018 250);\n --st-component-breadcrumb-linkText: oklch(72% 0.13 242);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: oklch(15% 0.012 250);\n --st-component-sideNav-border: oklch(28% 0.014 250);\n --st-component-sideNav-itemText: oklch(78% 0.012 250);\n --st-component-sideNav-activeBackground: oklch(19% 0.014 250);\n --st-component-sideNav-activeText: oklch(96% 0.005 250);\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, hsl(215 70% 55%) 12%, transparent);\n --st-component-selectableRow-selectedAccent: hsl(215 70% 55%);\n --st-component-selectableRow-selectedText: color-mix(in oklch, hsl(215 70% 55%) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, hsl(215 70% 55%) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: hsl(215 70% 55%);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, hsl(215 70% 55%) 70%, white);\n --st-component-chat-userBubbleBackground: hsl(215 70% 55%);\n --st-component-chat-userBubbleText: hsl(0 0% 100%);\n --st-component-chat-assistantBubbleBackground: oklch(19% 0.014 250);\n --st-component-chat-assistantBubbleText: oklch(96% 0.005 250);\n --st-component-chat-composerSurface: oklch(21% 0.015 250);\n --st-component-chat-toolCallSurface: oklch(19% 0.014 250);\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: oklch(96% 0.005 250);\n --st-component-graph-panelText: oklch(15% 0.012 250);\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: oklch(60% 0.08 242);\n --st-component-graph-community2: oklch(75% 0.14 67);\n --st-component-graph-community3: oklch(68% 0.16 23);\n --st-component-graph-community4: oklch(73% 0.09 195);\n}\n\n}\n\n:root[data-color-mode=\"dark\"] {\n color-scheme: dark;\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-foundation-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-foundation-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: oklch(15% 0.012 250);\n --st-semantic-surface-subtle: oklch(19% 0.014 250);\n --st-semantic-surface-raised: oklch(21% 0.015 250);\n --st-semantic-surface-inverse: oklch(96% 0.005 250);\n --st-semantic-surface-overlay: rgb(2 4 8 / 0.66);\n --st-semantic-text-primary: oklch(96% 0.005 250);\n --st-semantic-text-secondary: oklch(78% 0.012 250);\n --st-semantic-text-muted: oklch(66% 0.018 250);\n --st-semantic-text-inverse: oklch(15% 0.012 250);\n --st-semantic-text-link: oklch(72% 0.13 242);\n --st-semantic-border-subtle: oklch(28% 0.014 250);\n --st-semantic-border-strong: oklch(42% 0.016 250);\n --st-semantic-border-interactive: oklch(72% 0.13 242);\n --st-semantic-action-primary: hsl(215 70% 55%);\n --st-semantic-action-primaryHover: oklch(70% 0.15 242);\n --st-semantic-action-primaryText: hsl(0 0% 100%);\n --st-semantic-action-secondary: oklch(24% 0.015 250);\n --st-semantic-action-secondaryHover: oklch(28% 0.014 250);\n --st-semantic-action-secondaryText: oklch(96% 0.005 250);\n --st-semantic-action-danger: oklch(64% 0.19 25);\n --st-semantic-feedback-success: oklch(70% 0.17 150);\n --st-semantic-feedback-warning: oklch(76% 0.15 75);\n --st-semantic-feedback-error: oklch(64% 0.19 25);\n --st-semantic-feedback-info: oklch(68% 0.15 250);\n --st-semantic-status-pending: oklch(76% 0.15 75);\n --st-semantic-status-processing: oklch(68% 0.15 250);\n --st-semantic-status-completed: oklch(70% 0.17 150);\n --st-semantic-status-failed: oklch(64% 0.19 25);\n --st-semantic-data-category1: oklch(60% 0.08 242);\n --st-semantic-data-category2: oklch(75% 0.14 67);\n --st-semantic-data-category3: oklch(68% 0.16 23);\n --st-semantic-data-category4: oklch(73% 0.09 195);\n --st-semantic-data-category5: oklch(68% 0.14 148);\n --st-semantic-data-category6: oklch(83% 0.13 90);\n --st-semantic-data-category7: oklch(65% 0.10 320);\n --st-semantic-data-category8: oklch(78% 0.12 15);\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: hsl(215 70% 55%);\n --st-component-button-primaryText: hsl(0 0% 100%);\n --st-component-button-secondaryBackground: oklch(24% 0.015 250);\n --st-component-button-secondaryBorder: oklch(28% 0.014 250);\n --st-component-button-secondaryHoverBackground: oklch(28% 0.014 250);\n --st-component-button-secondaryText: oklch(96% 0.005 250);\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(70% 0.15 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(72% 0.13 242);\n --st-component-link-hoverText: hsl(215 70% 55%);\n --st-component-link-disabledText: oklch(66% 0.018 250);\n --st-component-link-focusRing: oklch(72% 0.13 242);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: hsl(215 70% 55%);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: oklch(21% 0.015 250);\n --st-component-alert-text: oklch(96% 0.005 250);\n --st-component-alert-border: oklch(28% 0.014 250);\n --st-component-alert-infoBorder: oklch(68% 0.15 250);\n --st-component-alert-successBorder: oklch(70% 0.17 150);\n --st-component-alert-warningBorder: oklch(76% 0.15 75);\n --st-component-alert-errorBorder: oklch(64% 0.19 25);\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: oklch(96% 0.005 250);\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: oklch(19% 0.014 250);\n --st-component-tag-neutralText: oklch(78% 0.012 250);\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, oklch(68% 0.15 250) 14%, white);\n --st-component-badge-infoText: oklch(68% 0.15 250);\n --st-component-card-background: oklch(21% 0.015 250);\n --st-component-card-border: oklch(28% 0.014 250);\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: oklch(21% 0.015 250);\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: oklch(21% 0.015 250);\n --st-component-menu-border: oklch(28% 0.014 250);\n --st-component-menu-text: oklch(96% 0.005 250);\n --st-component-menu-itemHoverBackground: oklch(19% 0.014 250);\n --st-component-menu-dangerText: oklch(64% 0.19 25);\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: oklch(66% 0.018 250);\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-popover-background: oklch(21% 0.015 250);\n --st-component-popover-border: oklch(28% 0.014 250);\n --st-component-popover-text: oklch(96% 0.005 250);\n --st-component-popover-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: oklch(15% 0.012 250);\n --st-component-dropdown-border: oklch(28% 0.014 250);\n --st-component-dropdown-text: oklch(96% 0.005 250);\n --st-component-dropdown-optionHoverBackground: oklch(19% 0.014 250);\n --st-component-dropdown-selectedBackground: hsl(215 70% 55%);\n --st-component-dropdown-selectedText: hsl(0 0% 100%);\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-input-background: oklch(15% 0.012 250);\n --st-component-input-border: oklch(28% 0.014 250);\n --st-component-input-focusRing: oklch(72% 0.13 242);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: oklch(96% 0.005 250);\n --st-component-field-helpText: oklch(78% 0.012 250);\n --st-component-field-errorText: oklch(64% 0.19 25);\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: oklch(15% 0.012 250);\n --st-component-control-text: oklch(96% 0.005 250);\n --st-component-control-placeholderText: oklch(66% 0.018 250);\n --st-component-control-border: oklch(28% 0.014 250);\n --st-component-control-hoverBorder: oklch(42% 0.016 250);\n --st-component-control-hoverBackground: oklch(19% 0.014 250);\n --st-component-control-focusRing: oklch(72% 0.13 242);\n --st-component-control-invalidBorder: oklch(64% 0.19 25);\n --st-component-control-disabledBackground: oklch(19% 0.014 250);\n --st-component-control-disabledText: oklch(66% 0.018 250);\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderLeft: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: oklch(42% 0.016 250);\n --st-component-control-anatomy-states-focus-border: oklch(72% 0.13 242);\n --st-component-control-anatomy-states-disabled-bg: oklch(19% 0.014 250);\n --st-component-control-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-selection-checkedBackground: hsl(215 70% 55%);\n --st-component-selection-checkedText: hsl(0 0% 100%);\n --st-component-selection-border: oklch(28% 0.014 250);\n --st-component-selection-switchTrack: oklch(42% 0.016 250);\n --st-component-selection-switchTrackChecked: hsl(215 70% 55%);\n --st-component-selection-switchThumb: oklch(15% 0.012 250);\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: oklch(96% 0.005 250);\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: oklch(96% 0.005 250);\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(2 4 8 / 0.66);\n --st-component-overlay-surface: oklch(21% 0.015 250);\n --st-component-overlay-border: oklch(28% 0.014 250);\n --st-component-overlay-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(2 4 8 / 0.66);\n --st-component-drawer-surface: oklch(21% 0.015 250);\n --st-component-drawer-border: oklch(28% 0.014 250);\n --st-component-drawer-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: oklch(19% 0.014 250);\n --st-component-emptyState-border: oklch(28% 0.014 250);\n --st-component-emptyState-titleText: oklch(96% 0.005 250);\n --st-component-emptyState-messageText: oklch(78% 0.012 250);\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: hsl(215 70% 55%);\n --st-component-loadingState-track: oklch(19% 0.014 250);\n --st-component-loadingState-text: oklch(78% 0.012 250);\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: oklch(96% 0.005 250);\n --st-component-tooltip-text: oklch(15% 0.012 250);\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: oklch(21% 0.015 250);\n --st-component-toast-text: oklch(96% 0.005 250);\n --st-component-toast-border: oklch(28% 0.014 250);\n --st-component-toast-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: oklch(68% 0.15 250);\n --st-component-toast-successBorder: oklch(70% 0.17 150);\n --st-component-toast-warningBorder: oklch(76% 0.15 75);\n --st-component-toast-errorBorder: oklch(64% 0.19 25);\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: oklch(19% 0.014 250);\n --st-component-dataTable-rowBackground: oklch(15% 0.012 250);\n --st-component-dataTable-rowHoverBackground: oklch(19% 0.014 250);\n --st-component-dataTable-border: oklch(28% 0.014 250);\n --st-component-dataTable-text: oklch(96% 0.005 250);\n --st-component-dataTable-captionText: oklch(78% 0.012 250);\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: oklch(96% 0.005 250);\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: oklch(78% 0.012 250);\n --st-component-tabs-border: oklch(28% 0.014 250);\n --st-component-tabs-indicator: hsl(215 70% 55%);\n --st-component-tabs-panelBackground: oklch(15% 0.012 250);\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: oklch(96% 0.005 250);\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: oklch(15% 0.012 250);\n --st-component-pagination-border: oklch(28% 0.014 250);\n --st-component-pagination-text: oklch(96% 0.005 250);\n --st-component-pagination-activeBackground: hsl(215 70% 55%);\n --st-component-pagination-activeText: hsl(0 0% 100%);\n --st-component-pagination-disabledText: oklch(66% 0.018 250);\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: oklch(28% 0.014 250);\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: oklch(15% 0.012 250);\n --st-component-paginationNav-border: oklch(28% 0.014 250);\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: oklch(96% 0.005 250);\n --st-component-paginationNav-hoverBackground: oklch(19% 0.014 250);\n --st-component-paginationNav-activeBackground: hsl(215 70% 55%);\n --st-component-paginationNav-activeText: hsl(0 0% 100%);\n --st-component-paginationNav-disabledText: oklch(66% 0.018 250);\n --st-component-paginationNav-ellipsisText: oklch(66% 0.018 250);\n --st-component-breadcrumb-text: oklch(78% 0.012 250);\n --st-component-breadcrumb-currentText: oklch(96% 0.005 250);\n --st-component-breadcrumb-separator: oklch(66% 0.018 250);\n --st-component-breadcrumb-linkText: oklch(72% 0.13 242);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: oklch(15% 0.012 250);\n --st-component-sideNav-border: oklch(28% 0.014 250);\n --st-component-sideNav-itemText: oklch(78% 0.012 250);\n --st-component-sideNav-activeBackground: oklch(19% 0.014 250);\n --st-component-sideNav-activeText: oklch(96% 0.005 250);\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, hsl(215 70% 55%) 12%, transparent);\n --st-component-selectableRow-selectedAccent: hsl(215 70% 55%);\n --st-component-selectableRow-selectedText: color-mix(in oklch, hsl(215 70% 55%) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, hsl(215 70% 55%) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: hsl(215 70% 55%);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, hsl(215 70% 55%) 70%, white);\n --st-component-chat-userBubbleBackground: hsl(215 70% 55%);\n --st-component-chat-userBubbleText: hsl(0 0% 100%);\n --st-component-chat-assistantBubbleBackground: oklch(19% 0.014 250);\n --st-component-chat-assistantBubbleText: oklch(96% 0.005 250);\n --st-component-chat-composerSurface: oklch(21% 0.015 250);\n --st-component-chat-toolCallSurface: oklch(19% 0.014 250);\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: oklch(96% 0.005 250);\n --st-component-graph-panelText: oklch(15% 0.012 250);\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: oklch(60% 0.08 242);\n --st-component-graph-community2: oklch(75% 0.14 67);\n --st-component-graph-community3: oklch(68% 0.16 23);\n --st-component-graph-community4: oklch(73% 0.09 195);\n}\n"});var h5={};Ii(h5,{default:()=>gP});var gP,f5=gn(()=>{"use strict";gP="/* Generated by packages/themes/scripts/build-css.mjs. */\n/* Theme: Entropic (entropic) */\n/* Dark mode: 3 blocks (light + auto + explicit) */\n[data-st-theme=\"entropic\"] {\n color-scheme: light;\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-shadow-subtle: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-foundation-shadow-medium: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-shadow-medium: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-foundation-shadow-floating: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-shadow-floating: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: #ffffff;\n --st-semantic-surface-subtle: #f8fafc;\n --st-semantic-surface-raised: #ffffff;\n --st-semantic-surface-inverse: #0f172a;\n --st-semantic-surface-overlay: rgb(15 23 42 / 0.48);\n --st-semantic-text-primary: #0f172a;\n --st-semantic-text-secondary: #475569;\n --st-semantic-text-muted: #64748b;\n --st-semantic-text-inverse: #ffffff;\n --st-semantic-text-link: oklch(50% 0.134 242.749);\n --st-semantic-border-subtle: #e2e8f0;\n --st-semantic-border-strong: #94a3b8;\n --st-semantic-border-interactive: oklch(50% 0.134 242.749);\n --st-semantic-action-primary: oklch(50% 0.134 242.749);\n --st-semantic-action-primaryHover: oklch(32% 0.11 242);\n --st-semantic-action-primaryText: #ffffff;\n --st-semantic-action-secondary: #f8fafc;\n --st-semantic-action-secondaryHover: #e2e8f0;\n --st-semantic-action-secondaryText: #0f172a;\n --st-semantic-action-danger: #dc2626;\n --st-semantic-feedback-success: #16a34a;\n --st-semantic-feedback-warning: #d97706;\n --st-semantic-feedback-error: #dc2626;\n --st-semantic-feedback-info: #2563eb;\n --st-semantic-status-pending: #d97706;\n --st-semantic-status-processing: #2563eb;\n --st-semantic-status-completed: #16a34a;\n --st-semantic-status-failed: #dc2626;\n --st-semantic-data-category1: #4E79A7;\n --st-semantic-data-category2: #F28E2B;\n --st-semantic-data-category3: #E15759;\n --st-semantic-data-category4: #76B7B2;\n --st-semantic-data-category5: #59A14F;\n --st-semantic-data-category6: #EDC948;\n --st-semantic-data-category7: #B07AA1;\n --st-semantic-data-category8: #FF9DA7;\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: oklch(50% 0.134 242.749);\n --st-component-button-primaryText: #ffffff;\n --st-component-button-secondaryBackground: #f8fafc;\n --st-component-button-secondaryBorder: #e2e8f0;\n --st-component-button-secondaryHoverBackground: #e2e8f0;\n --st-component-button-secondaryText: #0f172a;\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(32% 0.11 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(50% 0.134 242.749);\n --st-component-link-hoverText: oklch(50% 0.134 242.749);\n --st-component-link-disabledText: #64748b;\n --st-component-link-focusRing: oklch(50% 0.134 242.749);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: oklch(50% 0.134 242.749);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: #64748b;\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: #ffffff;\n --st-component-alert-text: #0f172a;\n --st-component-alert-border: #e2e8f0;\n --st-component-alert-infoBorder: #2563eb;\n --st-component-alert-successBorder: #16a34a;\n --st-component-alert-warningBorder: #d97706;\n --st-component-alert-errorBorder: #dc2626;\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid #e2e8f0;\n --st-component-alert-borderRight: 1px solid #e2e8f0;\n --st-component-alert-borderBottom: 1px solid #e2e8f0;\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: #0f172a;\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: #f8fafc;\n --st-component-tag-neutralText: #475569;\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, #2563eb 14%, white);\n --st-component-badge-infoText: #2563eb;\n --st-component-card-background: #ffffff;\n --st-component-card-border: #e2e8f0;\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: #ffffff;\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: #ffffff;\n --st-component-menu-border: #e2e8f0;\n --st-component-menu-text: #0f172a;\n --st-component-menu-itemHoverBackground: #f8fafc;\n --st-component-menu-dangerText: #dc2626;\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: #64748b;\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-popover-background: #ffffff;\n --st-component-popover-border: #e2e8f0;\n --st-component-popover-text: #0f172a;\n --st-component-popover-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: #ffffff;\n --st-component-dropdown-border: #e2e8f0;\n --st-component-dropdown-text: #0f172a;\n --st-component-dropdown-optionHoverBackground: #f8fafc;\n --st-component-dropdown-selectedBackground: oklch(50% 0.134 242.749);\n --st-component-dropdown-selectedText: #ffffff;\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-input-background: #ffffff;\n --st-component-input-border: #e2e8f0;\n --st-component-input-focusRing: oklch(50% 0.134 242.749);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: #0f172a;\n --st-component-field-helpText: #475569;\n --st-component-field-errorText: #dc2626;\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: #ffffff;\n --st-component-control-text: #0f172a;\n --st-component-control-placeholderText: #64748b;\n --st-component-control-border: #e2e8f0;\n --st-component-control-hoverBorder: #94a3b8;\n --st-component-control-hoverBackground: #f8fafc;\n --st-component-control-focusRing: oklch(50% 0.134 242.749);\n --st-component-control-invalidBorder: #dc2626;\n --st-component-control-disabledBackground: #f8fafc;\n --st-component-control-disabledText: #64748b;\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderRight: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderBottom: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderLeft: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: #94a3b8;\n --st-component-control-anatomy-states-focus-border: oklch(50% 0.134 242.749);\n --st-component-control-anatomy-states-disabled-bg: #f8fafc;\n --st-component-control-anatomy-states-disabled-text: #64748b;\n --st-component-selection-checkedBackground: oklch(50% 0.134 242.749);\n --st-component-selection-checkedText: #ffffff;\n --st-component-selection-border: #e2e8f0;\n --st-component-selection-switchTrack: #94a3b8;\n --st-component-selection-switchTrackChecked: oklch(50% 0.134 242.749);\n --st-component-selection-switchThumb: #ffffff;\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: #0f172a;\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: #0f172a;\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(15 23 42 / 0.48);\n --st-component-overlay-surface: #ffffff;\n --st-component-overlay-border: #e2e8f0;\n --st-component-overlay-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(15 23 42 / 0.48);\n --st-component-drawer-surface: #ffffff;\n --st-component-drawer-border: #e2e8f0;\n --st-component-drawer-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: #f8fafc;\n --st-component-emptyState-border: #e2e8f0;\n --st-component-emptyState-titleText: #0f172a;\n --st-component-emptyState-messageText: #475569;\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: oklch(50% 0.134 242.749);\n --st-component-loadingState-track: #f8fafc;\n --st-component-loadingState-text: #475569;\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: #0f172a;\n --st-component-tooltip-text: #ffffff;\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: #ffffff;\n --st-component-toast-text: #0f172a;\n --st-component-toast-border: #e2e8f0;\n --st-component-toast-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: #2563eb;\n --st-component-toast-successBorder: #16a34a;\n --st-component-toast-warningBorder: #d97706;\n --st-component-toast-errorBorder: #dc2626;\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: #f8fafc;\n --st-component-dataTable-rowBackground: #ffffff;\n --st-component-dataTable-rowHoverBackground: #f8fafc;\n --st-component-dataTable-border: #e2e8f0;\n --st-component-dataTable-text: #0f172a;\n --st-component-dataTable-captionText: #475569;\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: #0f172a;\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: #475569;\n --st-component-tabs-border: #e2e8f0;\n --st-component-tabs-indicator: oklch(50% 0.134 242.749);\n --st-component-tabs-panelBackground: #ffffff;\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: #0f172a;\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: #ffffff;\n --st-component-pagination-border: #e2e8f0;\n --st-component-pagination-text: #0f172a;\n --st-component-pagination-activeBackground: oklch(50% 0.134 242.749);\n --st-component-pagination-activeText: #ffffff;\n --st-component-pagination-disabledText: #64748b;\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: #e2e8f0;\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: #ffffff;\n --st-component-paginationNav-border: #e2e8f0;\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: #0f172a;\n --st-component-paginationNav-hoverBackground: #f8fafc;\n --st-component-paginationNav-activeBackground: oklch(50% 0.134 242.749);\n --st-component-paginationNav-activeText: #ffffff;\n --st-component-paginationNav-disabledText: #64748b;\n --st-component-paginationNav-ellipsisText: #64748b;\n --st-component-breadcrumb-text: #475569;\n --st-component-breadcrumb-currentText: #0f172a;\n --st-component-breadcrumb-separator: #64748b;\n --st-component-breadcrumb-linkText: oklch(50% 0.134 242.749);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: #ffffff;\n --st-component-sideNav-border: #e2e8f0;\n --st-component-sideNav-itemText: #475569;\n --st-component-sideNav-activeBackground: #f8fafc;\n --st-component-sideNav-activeText: #0f172a;\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, oklch(50% 0.134 242.749) 12%, transparent);\n --st-component-selectableRow-selectedAccent: oklch(50% 0.134 242.749);\n --st-component-selectableRow-selectedText: color-mix(in oklch, oklch(50% 0.134 242.749) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, oklch(50% 0.134 242.749) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: oklch(50% 0.134 242.749);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, oklch(50% 0.134 242.749) 70%, white);\n --st-component-chat-userBubbleBackground: oklch(50% 0.134 242.749);\n --st-component-chat-userBubbleText: #ffffff;\n --st-component-chat-assistantBubbleBackground: #f8fafc;\n --st-component-chat-assistantBubbleText: #0f172a;\n --st-component-chat-composerSurface: #ffffff;\n --st-component-chat-toolCallSurface: #f8fafc;\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: #0f172a;\n --st-component-graph-panelText: #ffffff;\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: #4E79A7;\n --st-component-graph-community2: #F28E2B;\n --st-component-graph-community3: #E15759;\n --st-component-graph-community4: #76B7B2;\n}\n\n\n@media (prefers-color-scheme: dark) {\n color-scheme: dark;\n :root:not([data-color-mode=\"light\"]) {\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-foundation-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-foundation-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: oklch(15% 0.012 250);\n --st-semantic-surface-subtle: oklch(19% 0.014 250);\n --st-semantic-surface-raised: oklch(21% 0.015 250);\n --st-semantic-surface-inverse: oklch(96% 0.005 250);\n --st-semantic-surface-overlay: rgb(2 4 8 / 0.66);\n --st-semantic-text-primary: oklch(96% 0.005 250);\n --st-semantic-text-secondary: oklch(78% 0.012 250);\n --st-semantic-text-muted: oklch(66% 0.018 250);\n --st-semantic-text-inverse: oklch(15% 0.012 250);\n --st-semantic-text-link: oklch(72% 0.13 242);\n --st-semantic-border-subtle: oklch(28% 0.014 250);\n --st-semantic-border-strong: oklch(42% 0.016 250);\n --st-semantic-border-interactive: oklch(72% 0.13 242);\n --st-semantic-action-primary: oklch(62% 0.15 242.749);\n --st-semantic-action-primaryHover: oklch(70% 0.15 242);\n --st-semantic-action-primaryText: oklch(17% 0.012 250);\n --st-semantic-action-secondary: oklch(24% 0.015 250);\n --st-semantic-action-secondaryHover: oklch(28% 0.014 250);\n --st-semantic-action-secondaryText: oklch(96% 0.005 250);\n --st-semantic-action-danger: oklch(64% 0.19 25);\n --st-semantic-feedback-success: oklch(70% 0.17 150);\n --st-semantic-feedback-warning: oklch(76% 0.15 75);\n --st-semantic-feedback-error: oklch(64% 0.19 25);\n --st-semantic-feedback-info: oklch(68% 0.15 250);\n --st-semantic-status-pending: oklch(76% 0.15 75);\n --st-semantic-status-processing: oklch(68% 0.15 250);\n --st-semantic-status-completed: oklch(70% 0.17 150);\n --st-semantic-status-failed: oklch(64% 0.19 25);\n --st-semantic-data-category1: oklch(60% 0.08 242);\n --st-semantic-data-category2: oklch(75% 0.14 67);\n --st-semantic-data-category3: oklch(68% 0.16 23);\n --st-semantic-data-category4: oklch(73% 0.09 195);\n --st-semantic-data-category5: oklch(68% 0.14 148);\n --st-semantic-data-category6: oklch(83% 0.13 90);\n --st-semantic-data-category7: oklch(65% 0.10 320);\n --st-semantic-data-category8: oklch(78% 0.12 15);\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: oklch(62% 0.15 242.749);\n --st-component-button-primaryText: oklch(17% 0.012 250);\n --st-component-button-secondaryBackground: oklch(24% 0.015 250);\n --st-component-button-secondaryBorder: oklch(28% 0.014 250);\n --st-component-button-secondaryHoverBackground: oklch(28% 0.014 250);\n --st-component-button-secondaryText: oklch(96% 0.005 250);\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(70% 0.15 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(72% 0.13 242);\n --st-component-link-hoverText: oklch(62% 0.15 242.749);\n --st-component-link-disabledText: oklch(66% 0.018 250);\n --st-component-link-focusRing: oklch(72% 0.13 242);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: oklch(62% 0.15 242.749);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: oklch(21% 0.015 250);\n --st-component-alert-text: oklch(96% 0.005 250);\n --st-component-alert-border: oklch(28% 0.014 250);\n --st-component-alert-infoBorder: oklch(68% 0.15 250);\n --st-component-alert-successBorder: oklch(70% 0.17 150);\n --st-component-alert-warningBorder: oklch(76% 0.15 75);\n --st-component-alert-errorBorder: oklch(64% 0.19 25);\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: oklch(96% 0.005 250);\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: oklch(19% 0.014 250);\n --st-component-tag-neutralText: oklch(78% 0.012 250);\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, oklch(68% 0.15 250) 14%, white);\n --st-component-badge-infoText: oklch(68% 0.15 250);\n --st-component-card-background: oklch(21% 0.015 250);\n --st-component-card-border: oklch(28% 0.014 250);\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: oklch(21% 0.015 250);\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: oklch(21% 0.015 250);\n --st-component-menu-border: oklch(28% 0.014 250);\n --st-component-menu-text: oklch(96% 0.005 250);\n --st-component-menu-itemHoverBackground: oklch(19% 0.014 250);\n --st-component-menu-dangerText: oklch(64% 0.19 25);\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: oklch(66% 0.018 250);\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-popover-background: oklch(21% 0.015 250);\n --st-component-popover-border: oklch(28% 0.014 250);\n --st-component-popover-text: oklch(96% 0.005 250);\n --st-component-popover-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: oklch(15% 0.012 250);\n --st-component-dropdown-border: oklch(28% 0.014 250);\n --st-component-dropdown-text: oklch(96% 0.005 250);\n --st-component-dropdown-optionHoverBackground: oklch(19% 0.014 250);\n --st-component-dropdown-selectedBackground: oklch(62% 0.15 242.749);\n --st-component-dropdown-selectedText: oklch(17% 0.012 250);\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-input-background: oklch(15% 0.012 250);\n --st-component-input-border: oklch(28% 0.014 250);\n --st-component-input-focusRing: oklch(72% 0.13 242);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: oklch(96% 0.005 250);\n --st-component-field-helpText: oklch(78% 0.012 250);\n --st-component-field-errorText: oklch(64% 0.19 25);\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: oklch(15% 0.012 250);\n --st-component-control-text: oklch(96% 0.005 250);\n --st-component-control-placeholderText: oklch(66% 0.018 250);\n --st-component-control-border: oklch(28% 0.014 250);\n --st-component-control-hoverBorder: oklch(42% 0.016 250);\n --st-component-control-hoverBackground: oklch(19% 0.014 250);\n --st-component-control-focusRing: oklch(72% 0.13 242);\n --st-component-control-invalidBorder: oklch(64% 0.19 25);\n --st-component-control-disabledBackground: oklch(19% 0.014 250);\n --st-component-control-disabledText: oklch(66% 0.018 250);\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderLeft: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: oklch(42% 0.016 250);\n --st-component-control-anatomy-states-focus-border: oklch(72% 0.13 242);\n --st-component-control-anatomy-states-disabled-bg: oklch(19% 0.014 250);\n --st-component-control-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-selection-checkedBackground: oklch(62% 0.15 242.749);\n --st-component-selection-checkedText: oklch(17% 0.012 250);\n --st-component-selection-border: oklch(28% 0.014 250);\n --st-component-selection-switchTrack: oklch(42% 0.016 250);\n --st-component-selection-switchTrackChecked: oklch(62% 0.15 242.749);\n --st-component-selection-switchThumb: oklch(15% 0.012 250);\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: oklch(96% 0.005 250);\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: oklch(96% 0.005 250);\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(2 4 8 / 0.66);\n --st-component-overlay-surface: oklch(21% 0.015 250);\n --st-component-overlay-border: oklch(28% 0.014 250);\n --st-component-overlay-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(2 4 8 / 0.66);\n --st-component-drawer-surface: oklch(21% 0.015 250);\n --st-component-drawer-border: oklch(28% 0.014 250);\n --st-component-drawer-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: oklch(19% 0.014 250);\n --st-component-emptyState-border: oklch(28% 0.014 250);\n --st-component-emptyState-titleText: oklch(96% 0.005 250);\n --st-component-emptyState-messageText: oklch(78% 0.012 250);\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: oklch(62% 0.15 242.749);\n --st-component-loadingState-track: oklch(19% 0.014 250);\n --st-component-loadingState-text: oklch(78% 0.012 250);\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: oklch(96% 0.005 250);\n --st-component-tooltip-text: oklch(15% 0.012 250);\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: oklch(21% 0.015 250);\n --st-component-toast-text: oklch(96% 0.005 250);\n --st-component-toast-border: oklch(28% 0.014 250);\n --st-component-toast-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: oklch(68% 0.15 250);\n --st-component-toast-successBorder: oklch(70% 0.17 150);\n --st-component-toast-warningBorder: oklch(76% 0.15 75);\n --st-component-toast-errorBorder: oklch(64% 0.19 25);\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: oklch(19% 0.014 250);\n --st-component-dataTable-rowBackground: oklch(15% 0.012 250);\n --st-component-dataTable-rowHoverBackground: oklch(19% 0.014 250);\n --st-component-dataTable-border: oklch(28% 0.014 250);\n --st-component-dataTable-text: oklch(96% 0.005 250);\n --st-component-dataTable-captionText: oklch(78% 0.012 250);\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: oklch(96% 0.005 250);\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: oklch(78% 0.012 250);\n --st-component-tabs-border: oklch(28% 0.014 250);\n --st-component-tabs-indicator: oklch(62% 0.15 242.749);\n --st-component-tabs-panelBackground: oklch(15% 0.012 250);\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: oklch(96% 0.005 250);\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: oklch(15% 0.012 250);\n --st-component-pagination-border: oklch(28% 0.014 250);\n --st-component-pagination-text: oklch(96% 0.005 250);\n --st-component-pagination-activeBackground: oklch(62% 0.15 242.749);\n --st-component-pagination-activeText: oklch(17% 0.012 250);\n --st-component-pagination-disabledText: oklch(66% 0.018 250);\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: oklch(28% 0.014 250);\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: oklch(15% 0.012 250);\n --st-component-paginationNav-border: oklch(28% 0.014 250);\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: oklch(96% 0.005 250);\n --st-component-paginationNav-hoverBackground: oklch(19% 0.014 250);\n --st-component-paginationNav-activeBackground: oklch(62% 0.15 242.749);\n --st-component-paginationNav-activeText: oklch(17% 0.012 250);\n --st-component-paginationNav-disabledText: oklch(66% 0.018 250);\n --st-component-paginationNav-ellipsisText: oklch(66% 0.018 250);\n --st-component-breadcrumb-text: oklch(78% 0.012 250);\n --st-component-breadcrumb-currentText: oklch(96% 0.005 250);\n --st-component-breadcrumb-separator: oklch(66% 0.018 250);\n --st-component-breadcrumb-linkText: oklch(72% 0.13 242);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: oklch(15% 0.012 250);\n --st-component-sideNav-border: oklch(28% 0.014 250);\n --st-component-sideNav-itemText: oklch(78% 0.012 250);\n --st-component-sideNav-activeBackground: oklch(19% 0.014 250);\n --st-component-sideNav-activeText: oklch(96% 0.005 250);\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, oklch(62% 0.15 242.749) 12%, transparent);\n --st-component-selectableRow-selectedAccent: oklch(62% 0.15 242.749);\n --st-component-selectableRow-selectedText: color-mix(in oklch, oklch(62% 0.15 242.749) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, oklch(62% 0.15 242.749) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: oklch(62% 0.15 242.749);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, oklch(62% 0.15 242.749) 70%, white);\n --st-component-chat-userBubbleBackground: oklch(62% 0.15 242.749);\n --st-component-chat-userBubbleText: oklch(17% 0.012 250);\n --st-component-chat-assistantBubbleBackground: oklch(19% 0.014 250);\n --st-component-chat-assistantBubbleText: oklch(96% 0.005 250);\n --st-component-chat-composerSurface: oklch(21% 0.015 250);\n --st-component-chat-toolCallSurface: oklch(19% 0.014 250);\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: oklch(96% 0.005 250);\n --st-component-graph-panelText: oklch(15% 0.012 250);\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: oklch(60% 0.08 242);\n --st-component-graph-community2: oklch(75% 0.14 67);\n --st-component-graph-community3: oklch(68% 0.16 23);\n --st-component-graph-community4: oklch(73% 0.09 195);\n}\n\n}\n\n:root[data-color-mode=\"dark\"] {\n color-scheme: dark;\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-foundation-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-foundation-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: oklch(15% 0.012 250);\n --st-semantic-surface-subtle: oklch(19% 0.014 250);\n --st-semantic-surface-raised: oklch(21% 0.015 250);\n --st-semantic-surface-inverse: oklch(96% 0.005 250);\n --st-semantic-surface-overlay: rgb(2 4 8 / 0.66);\n --st-semantic-text-primary: oklch(96% 0.005 250);\n --st-semantic-text-secondary: oklch(78% 0.012 250);\n --st-semantic-text-muted: oklch(66% 0.018 250);\n --st-semantic-text-inverse: oklch(15% 0.012 250);\n --st-semantic-text-link: oklch(72% 0.13 242);\n --st-semantic-border-subtle: oklch(28% 0.014 250);\n --st-semantic-border-strong: oklch(42% 0.016 250);\n --st-semantic-border-interactive: oklch(72% 0.13 242);\n --st-semantic-action-primary: oklch(62% 0.15 242.749);\n --st-semantic-action-primaryHover: oklch(70% 0.15 242);\n --st-semantic-action-primaryText: oklch(17% 0.012 250);\n --st-semantic-action-secondary: oklch(24% 0.015 250);\n --st-semantic-action-secondaryHover: oklch(28% 0.014 250);\n --st-semantic-action-secondaryText: oklch(96% 0.005 250);\n --st-semantic-action-danger: oklch(64% 0.19 25);\n --st-semantic-feedback-success: oklch(70% 0.17 150);\n --st-semantic-feedback-warning: oklch(76% 0.15 75);\n --st-semantic-feedback-error: oklch(64% 0.19 25);\n --st-semantic-feedback-info: oklch(68% 0.15 250);\n --st-semantic-status-pending: oklch(76% 0.15 75);\n --st-semantic-status-processing: oklch(68% 0.15 250);\n --st-semantic-status-completed: oklch(70% 0.17 150);\n --st-semantic-status-failed: oklch(64% 0.19 25);\n --st-semantic-data-category1: oklch(60% 0.08 242);\n --st-semantic-data-category2: oklch(75% 0.14 67);\n --st-semantic-data-category3: oklch(68% 0.16 23);\n --st-semantic-data-category4: oklch(73% 0.09 195);\n --st-semantic-data-category5: oklch(68% 0.14 148);\n --st-semantic-data-category6: oklch(83% 0.13 90);\n --st-semantic-data-category7: oklch(65% 0.10 320);\n --st-semantic-data-category8: oklch(78% 0.12 15);\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: oklch(62% 0.15 242.749);\n --st-component-button-primaryText: oklch(17% 0.012 250);\n --st-component-button-secondaryBackground: oklch(24% 0.015 250);\n --st-component-button-secondaryBorder: oklch(28% 0.014 250);\n --st-component-button-secondaryHoverBackground: oklch(28% 0.014 250);\n --st-component-button-secondaryText: oklch(96% 0.005 250);\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(70% 0.15 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(72% 0.13 242);\n --st-component-link-hoverText: oklch(62% 0.15 242.749);\n --st-component-link-disabledText: oklch(66% 0.018 250);\n --st-component-link-focusRing: oklch(72% 0.13 242);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: oklch(62% 0.15 242.749);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: oklch(21% 0.015 250);\n --st-component-alert-text: oklch(96% 0.005 250);\n --st-component-alert-border: oklch(28% 0.014 250);\n --st-component-alert-infoBorder: oklch(68% 0.15 250);\n --st-component-alert-successBorder: oklch(70% 0.17 150);\n --st-component-alert-warningBorder: oklch(76% 0.15 75);\n --st-component-alert-errorBorder: oklch(64% 0.19 25);\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: oklch(96% 0.005 250);\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: oklch(19% 0.014 250);\n --st-component-tag-neutralText: oklch(78% 0.012 250);\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, oklch(68% 0.15 250) 14%, white);\n --st-component-badge-infoText: oklch(68% 0.15 250);\n --st-component-card-background: oklch(21% 0.015 250);\n --st-component-card-border: oklch(28% 0.014 250);\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: oklch(21% 0.015 250);\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: oklch(21% 0.015 250);\n --st-component-menu-border: oklch(28% 0.014 250);\n --st-component-menu-text: oklch(96% 0.005 250);\n --st-component-menu-itemHoverBackground: oklch(19% 0.014 250);\n --st-component-menu-dangerText: oklch(64% 0.19 25);\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: oklch(66% 0.018 250);\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-popover-background: oklch(21% 0.015 250);\n --st-component-popover-border: oklch(28% 0.014 250);\n --st-component-popover-text: oklch(96% 0.005 250);\n --st-component-popover-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: oklch(15% 0.012 250);\n --st-component-dropdown-border: oklch(28% 0.014 250);\n --st-component-dropdown-text: oklch(96% 0.005 250);\n --st-component-dropdown-optionHoverBackground: oklch(19% 0.014 250);\n --st-component-dropdown-selectedBackground: oklch(62% 0.15 242.749);\n --st-component-dropdown-selectedText: oklch(17% 0.012 250);\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-input-background: oklch(15% 0.012 250);\n --st-component-input-border: oklch(28% 0.014 250);\n --st-component-input-focusRing: oklch(72% 0.13 242);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: oklch(96% 0.005 250);\n --st-component-field-helpText: oklch(78% 0.012 250);\n --st-component-field-errorText: oklch(64% 0.19 25);\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: oklch(15% 0.012 250);\n --st-component-control-text: oklch(96% 0.005 250);\n --st-component-control-placeholderText: oklch(66% 0.018 250);\n --st-component-control-border: oklch(28% 0.014 250);\n --st-component-control-hoverBorder: oklch(42% 0.016 250);\n --st-component-control-hoverBackground: oklch(19% 0.014 250);\n --st-component-control-focusRing: oklch(72% 0.13 242);\n --st-component-control-invalidBorder: oklch(64% 0.19 25);\n --st-component-control-disabledBackground: oklch(19% 0.014 250);\n --st-component-control-disabledText: oklch(66% 0.018 250);\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderLeft: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: oklch(42% 0.016 250);\n --st-component-control-anatomy-states-focus-border: oklch(72% 0.13 242);\n --st-component-control-anatomy-states-disabled-bg: oklch(19% 0.014 250);\n --st-component-control-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-selection-checkedBackground: oklch(62% 0.15 242.749);\n --st-component-selection-checkedText: oklch(17% 0.012 250);\n --st-component-selection-border: oklch(28% 0.014 250);\n --st-component-selection-switchTrack: oklch(42% 0.016 250);\n --st-component-selection-switchTrackChecked: oklch(62% 0.15 242.749);\n --st-component-selection-switchThumb: oklch(15% 0.012 250);\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: oklch(96% 0.005 250);\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: oklch(96% 0.005 250);\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(2 4 8 / 0.66);\n --st-component-overlay-surface: oklch(21% 0.015 250);\n --st-component-overlay-border: oklch(28% 0.014 250);\n --st-component-overlay-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(2 4 8 / 0.66);\n --st-component-drawer-surface: oklch(21% 0.015 250);\n --st-component-drawer-border: oklch(28% 0.014 250);\n --st-component-drawer-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: oklch(19% 0.014 250);\n --st-component-emptyState-border: oklch(28% 0.014 250);\n --st-component-emptyState-titleText: oklch(96% 0.005 250);\n --st-component-emptyState-messageText: oklch(78% 0.012 250);\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: oklch(62% 0.15 242.749);\n --st-component-loadingState-track: oklch(19% 0.014 250);\n --st-component-loadingState-text: oklch(78% 0.012 250);\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: oklch(96% 0.005 250);\n --st-component-tooltip-text: oklch(15% 0.012 250);\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: oklch(21% 0.015 250);\n --st-component-toast-text: oklch(96% 0.005 250);\n --st-component-toast-border: oklch(28% 0.014 250);\n --st-component-toast-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: oklch(68% 0.15 250);\n --st-component-toast-successBorder: oklch(70% 0.17 150);\n --st-component-toast-warningBorder: oklch(76% 0.15 75);\n --st-component-toast-errorBorder: oklch(64% 0.19 25);\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: oklch(19% 0.014 250);\n --st-component-dataTable-rowBackground: oklch(15% 0.012 250);\n --st-component-dataTable-rowHoverBackground: oklch(19% 0.014 250);\n --st-component-dataTable-border: oklch(28% 0.014 250);\n --st-component-dataTable-text: oklch(96% 0.005 250);\n --st-component-dataTable-captionText: oklch(78% 0.012 250);\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: oklch(96% 0.005 250);\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: oklch(78% 0.012 250);\n --st-component-tabs-border: oklch(28% 0.014 250);\n --st-component-tabs-indicator: oklch(62% 0.15 242.749);\n --st-component-tabs-panelBackground: oklch(15% 0.012 250);\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: oklch(96% 0.005 250);\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: oklch(15% 0.012 250);\n --st-component-pagination-border: oklch(28% 0.014 250);\n --st-component-pagination-text: oklch(96% 0.005 250);\n --st-component-pagination-activeBackground: oklch(62% 0.15 242.749);\n --st-component-pagination-activeText: oklch(17% 0.012 250);\n --st-component-pagination-disabledText: oklch(66% 0.018 250);\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: oklch(28% 0.014 250);\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: oklch(15% 0.012 250);\n --st-component-paginationNav-border: oklch(28% 0.014 250);\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: oklch(96% 0.005 250);\n --st-component-paginationNav-hoverBackground: oklch(19% 0.014 250);\n --st-component-paginationNav-activeBackground: oklch(62% 0.15 242.749);\n --st-component-paginationNav-activeText: oklch(17% 0.012 250);\n --st-component-paginationNav-disabledText: oklch(66% 0.018 250);\n --st-component-paginationNav-ellipsisText: oklch(66% 0.018 250);\n --st-component-breadcrumb-text: oklch(78% 0.012 250);\n --st-component-breadcrumb-currentText: oklch(96% 0.005 250);\n --st-component-breadcrumb-separator: oklch(66% 0.018 250);\n --st-component-breadcrumb-linkText: oklch(72% 0.13 242);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: oklch(15% 0.012 250);\n --st-component-sideNav-border: oklch(28% 0.014 250);\n --st-component-sideNav-itemText: oklch(78% 0.012 250);\n --st-component-sideNav-activeBackground: oklch(19% 0.014 250);\n --st-component-sideNav-activeText: oklch(96% 0.005 250);\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, oklch(62% 0.15 242.749) 12%, transparent);\n --st-component-selectableRow-selectedAccent: oklch(62% 0.15 242.749);\n --st-component-selectableRow-selectedText: color-mix(in oklch, oklch(62% 0.15 242.749) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, oklch(62% 0.15 242.749) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: oklch(62% 0.15 242.749);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, oklch(62% 0.15 242.749) 70%, white);\n --st-component-chat-userBubbleBackground: oklch(62% 0.15 242.749);\n --st-component-chat-userBubbleText: oklch(17% 0.012 250);\n --st-component-chat-assistantBubbleBackground: oklch(19% 0.014 250);\n --st-component-chat-assistantBubbleText: oklch(96% 0.005 250);\n --st-component-chat-composerSurface: oklch(21% 0.015 250);\n --st-component-chat-toolCallSurface: oklch(19% 0.014 250);\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: oklch(96% 0.005 250);\n --st-component-graph-panelText: oklch(15% 0.012 250);\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: oklch(60% 0.08 242);\n --st-component-graph-community2: oklch(75% 0.14 67);\n --st-component-graph-community3: oklch(68% 0.16 23);\n --st-component-graph-community4: oklch(73% 0.09 195);\n}\n"});function Vc(t){return typeof t=="function"}function wP(t){for(var e=0;e<t.length;e++)t[e]()}function G5(){var t,e;return{promise:new Promise((n,o)=>{t=n,e=o}),resolve:t,reject:e}}function BP(t){throw Error("https://svelte.dev/e/lifecycle_outside_component")}function RP(){throw Error("https://svelte.dev/e/async_derived_orphan")}function MP(t,e,n){throw Error("https://svelte.dev/e/each_key_duplicate")}function AP(t){throw Error("https://svelte.dev/e/effect_in_teardown")}function PP(){throw Error("https://svelte.dev/e/effect_in_unowned_derived")}function DP(t){throw Error("https://svelte.dev/e/effect_orphan")}function jP(){throw Error("https://svelte.dev/e/effect_update_depth_exceeded")}function $P(){throw Error("https://svelte.dev/e/hydration_failed")}function zP(t){throw Error("https://svelte.dev/e/props_invalid_value")}function OP(){throw Error("https://svelte.dev/e/state_descriptors_fixed")}function LP(){throw Error("https://svelte.dev/e/state_prototype_fixed")}function NP(){throw Error("https://svelte.dev/e/state_unsafe_mutation")}function IP(){throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function HP(){console.warn("https://svelte.dev/e/derived_inert")}function Yd(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function FP(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Wr(t){fe=t}function eo(t){if(t===null)throw Yd(),Ts;return ae=t}function Zd(){return eo(xr(ae))}function Xt(t){if(fe){if(xr(ae)!==null)throw Yd(),Ts;ae=t}}function WP(t=1){if(fe){for(var e=t,n=ae;e--;)n=xr(n);ae=n}}function Wd(t=!0){for(var e=0,n=ae;;){if(n.nodeType===8){var o=n.data;if(o==="]"){if(e===0)return n;--e}else(o==="["||o==="[!"||o[0]==="["&&!isNaN(Number(o.slice(1))))&&(e+=1)}var r=xr(n);t&&n.remove(),n=r}}function q5(t){if(!t||t.nodeType!==8)throw Yd(),Ts;return t.data}function K5(t){return t===this.v}function X5(t,e){return t==t?t!==e||typeof t=="object"&&!!t||typeof t=="function":e==e}function Y5(t){return!X5(t,this.v)}function Cs(t){no=t}function wa(t,e=!1,n){no={p:no,i:!1,c:null,e:null,s:t,x:null,r:Yt,l:null}}function _a(t){var e=no,n=e.e;if(n!==null){e.e=null;for(var o of n)g_(o)}return t!==void 0&&(e.x=t),e.i=!0,no=e.p,t??{}}function ol(){return!0}function Z5(){var t=ua;ua=[],wP(t)}function Oi(t){if(ua.length===0&&!Zc){var e=ua;queueMicrotask(()=>{e===ua&&Z5()})}ua.push(t)}function GP(){for(;ua.length>0;)Z5()}function J5(t){var e=Yt;if(e===null)return pe.f|=Fd,t;if(!(e.f&32768)&&!(e.f&4))throw t;$i(t,e)}function $i(t,e){for(;e!==null;){if(e.f&128){if(!(e.f&32768))throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}function pn(t,e){t.f=t.f&VP|e}function mg(t){t.f&512||t.deps===null?pn(t,Oo):pn(t,ba)}function Q5(t){if(t!==null)for(let e of t)e.f&2&&e.f&65536&&(e.f^=nl,Q5(e.deps))}function t_(t,e,n){t.f&2048?e.add(t):t.f&4096&&n.add(t),Q5(t.deps),pn(t,Oo)}function UP(t){var e=Dd;try{return Dd=!1,[t(),Dd]}finally{Dd=e}}function xa(t){var e=Zc;Zc=!0;try{var n;for(t&&(te!==null&&!te.is_fork&&te.flush(),n=t());;){if(GP(),te===null)return n;te.flush()}}finally{Zc=e}}function KP(){try{jP()}catch(t){$i(t,Xf)}}function x5(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var o=t[n++];if(!(o.f&24576)&&rl(o)&&(Fr=new Set,Rs(o),o.deps===null&&o.first===null&&o.nodes===null&&o.teardown===null&&o.ac===null&&v_(o),Fr?.size>0)){ga.clear();for(let r of Fr){if(r.f&24576)continue;let i=[r],a=r.parent;for(;a!==null;)Fr.has(a)&&(Fr.delete(a),i.push(a)),a=a.parent;for(let s=i.length-1;s>=0;s--){let c=i[s];c.f&24576||Rs(c)}}Fr.clear()}}Fr=null}}function e_(t){te.schedule(t)}function n_(t,e){if(!(t.f&32&&t.f&1024)){t.f&2048?e.d.push(t):t.f&4096&&e.m.push(t),pn(t,Oo);for(var n=t.first;n!==null;)n_(n,e),n=n.next}}function o_(t){pn(t,Oo);for(var e=t.first;e!==null;)o_(e),e=e.next}function XP(t){let e=0,n=ka(0),o;return()=>{vg()&&(E(n),Qd(()=>(e===0&&(o=il(()=>t(()=>Jc(n)))),e+=1,()=>{Oi(()=>{--e,e===0&&(o?.(),o=void 0,Jc(n))})})))}}function ZP(t,e,n,o){new JP(t,e,n,o)}function QP(t,e,n,o){let r=ol()?tl:ug;var i=t.filter(m=>!m.settled);if(n.length===0&&i.length===0){o(e.map(r));return}var a=Yt,s=tD(),c=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(m=>m.promise)):null;function l(m){if(!(a.f&16384)){s();try{o(m)}catch(u){$i(u,a)}Gd()}}var p=r_();if(n.length===0){c.then(()=>l(e.map(r))).finally(p);return}function d(){Promise.all(n.map(m=>eD(m))).then(m=>l([...e.map(r),...m])).catch(m=>$i(m,a)).finally(p)}c?c.then(()=>{s(),d(),Gd()}):d()}function tD(){var t=Yt,e=pe,n=no,o=te;return function(r=!0){br(t),Io(e),Cs(n),r&&!(t.f&16384)&&(o?.activate(),o?.apply())}}function Gd(t=!0){br(null),Io(null),Cs(null),t&&te?.deactivate()}function r_(){var t=Yt,e=t.b,n=te,o=e.is_rendered();return e.update_pending_count(1,n),n.increment(o,t),()=>{e.update_pending_count(-1,n),n.decrement(o,t)}}function tl(t){var e=2|vr;return Yt!==null&&(Yt.f|=Ms),{ctx:no,deps:null,effects:null,equals:K5,f:e,fn:t,reactions:null,rv:0,v:_n,wv:0,parent:Yt,ac:null}}function eD(t,e,n){let o=Yt;o===null&&RP();var r=void 0,i=ka(_n),a=!pe,s=new Set;return lD(()=>{var c=Yt,l=G5();r=l.promise;try{Promise.resolve(t()).then(l.resolve,u=>{u!==Xd&&l.reject(u)}).finally(Gd)}catch(u){l.reject(u),Gd()}var p=te;if(a){if(c.f&32768)var d=r_();if(o.b.is_rendered())p.async_deriveds.get(c)?.reject(jd);else for(let u of s.values())u.reject(jd);s.add(l),p.async_deriveds.set(c,l)}let m=(u,h=void 0)=>{d?.(),s.delete(l),h!==jd&&(p.activate(),h?(i.f|=Fd,Bs(i,h)):(i.f&8388608&&(i.f^=Fd),Bs(i,u)),p.deactivate())};l.promise.then(m,u=>m(null,u||"unknown"))}),f_(()=>{for(let c of s)c.reject(jd)}),new Promise(c=>{function l(p){function d(){p===r?c(i):l(r)}p.then(d,d)}l(r)})}function Ft(t){let e=tl(t);return k_(e),e}function ug(t){let e=tl(t);return e.equals=Y5,e}function nD(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)Un(e[n])}}function hg(t){var e,n=Yt,o=t.parent;if(!Ur&&o!==null&&o.f&24576)return HP(),t.v;br(o);try{t.f&=~nl,nD(t),e=S_(t)}finally{br(n)}return e}function i_(t){var e=hg(t);!t.equals(e)&&(t.wv=__(),(!te?.is_fork||t.deps===null)&&(te===null?t.v=e:(te.capture(t,e,!0),Kf?.capture(t,e,!0)),t.deps===null))?pn(t,Oo):Ur||(Yo===null?mg(t):(vg()||te?.is_fork)&&Yo.set(t,e))}function oD(t){if(t.effects!==null)for(let e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(Xd),e.teardown=kP,e.ac=null,el(e,0),kg(e))}function a_(t){if(t.effects!==null)for(let e of t.effects)e.teardown&&Rs(e)}function ka(t,e){return{f:0,v:t,reactions:null,equals:K5,rv:0,wv:0}}function He(t,e){let n=ka(t,e);return k_(n),n}function c_(t,e=!1,n=!0){let o=ka(t);return e||(o.equals=Y5),o}function It(t,e,n=!1){return pe!==null&&(!Zo||pe.f&131072)&&ol()&&pe.f&4325394&&(No===null||!Qc.call(No,t))&&NP(),Bs(t,n?ha(e):e,Od)}function Bs(t,e,n=null){if(!t.equals(e)){ga.set(t,Ur?e:t.v);var o=As.ensure();if(o.capture(t,e),t.f&2){let r=t;t.f&2048&&hg(r),Yo===null&&mg(r)}t.wv=__(),l_(t,vr,n),ol()&&Yt!==null&&Yt.f&1024&&!(Yt.f&96)&&(jo===null?uD([t]):jo.push(t)),!o.is_fork&&Vd.size>0&&!s_&&rD()}return e}function rD(){s_=!1;for(let t of Vd){t.f&1024&&pn(t,ba);let e;try{e=rl(t)}catch{e=!0}e&&Rs(t)}Vd.clear()}function Jc(t){It(t,t.v+1)}function l_(t,e,n){var o=t.reactions;if(o!==null)for(var r=ol(),i=o.length,a=0;a<i;a++){var s=o[a],c=s.f;if(r||s!==Yt){var l=(c&vr)===0;if(l&&pn(s,e),c&131072)Vd.add(s);else if(c&2){var p=s;Yo?.delete(p),c&65536||(c&512&&(Yt===null||!(Yt.f&2097152))&&(s.f|=nl),l_(p,ba,n))}else if(l){var d=s;c&16&&Fr!==null&&Fr.add(d),n===null?e_(d):n.push(d)}}}}function ha(t){if(typeof t!="object"||!t||zi in t)return t;let e=cg(t);if(e!==bP&&e!==xP)return t;var n=new Map,o=F5(t),r=He(0),i=null,a=va,s=c=>{if(va===a)return c();var l=pe,p=va;Io(null),_5(a);var d=c();return Io(l),_5(p),d};return o&&n.set("length",He(t.length,i)),new Proxy(t,{defineProperty(c,l,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&OP();var d=n.get(l);return d===void 0?s(()=>{var m=He(p.value,i);return n.set(l,m),m}):It(d,p.value,!0),!0},deleteProperty(c,l){var p=n.get(l);if(p===void 0){if(l in c){let d=s(()=>He(_n,i));n.set(l,d),Jc(r)}}else It(p,_n),Jc(r);return!0},get(c,l,p){if(l===zi)return t;var d=n.get(l),m=l in c;if(d===void 0&&(!m||Gr(c,l)?.writable)&&(d=s(()=>He(ha(m?c[l]:_n),i)),n.set(l,d)),d!==void 0){var u=E(d);return u===_n?void 0:u}return Reflect.get(c,l,p)},getOwnPropertyDescriptor(c,l){var p=Reflect.getOwnPropertyDescriptor(c,l);if(p&&"value"in p){var d=n.get(l);d&&(p.value=E(d))}else if(p===void 0){var m=n.get(l),u=m?.v;if(m!==void 0&&u!==_n)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return p},has(c,l){if(l===zi)return!0;var p=n.get(l),d=p!==void 0&&p.v!==_n||Reflect.has(c,l);return(p!==void 0||Yt!==null&&(!d||Gr(c,l)?.writable))&&(p===void 0&&(p=s(()=>He(d?ha(c[l]):_n,i)),n.set(l,p)),E(p)===_n)?!1:d},set(c,l,p,d){var m=n.get(l),u=l in c;if(o&&l==="length")for(var h=p;h<m.v;h+=1){var f=n.get(h+"");f===void 0?h in c&&(f=s(()=>He(_n,i)),n.set(h+"",f)):It(f,_n)}if(m===void 0)(!u||Gr(c,l)?.writable)&&(m=s(()=>He(void 0,i)),It(m,ha(p)),n.set(l,m));else{u=m.v!==_n;var g=s(()=>ha(p));It(m,g)}var x=Reflect.getOwnPropertyDescriptor(c,l);if(x?.set&&x.set.call(d,p),!u){if(o&&typeof l=="string"){var k=n.get("length"),_=Number(l);Number.isInteger(_)&&_>=k.v&&It(k,_+1)}Jc(r)}return!0},ownKeys(c){E(r);var l=Reflect.ownKeys(c).filter(m=>{var u=n.get(m);return u===void 0||u.v!==_n});for(var[p,d]of n)d.v!==_n&&!(p in c)&&l.push(p);return l},setPrototypeOf(){LP()}})}function Zf(){if(k5===void 0){k5=window,p_=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;d_=Gr(e,"firstChild").get,m_=Gr(e,"nextSibling").get,g5(t)&&(t[Vf]=void 0,t[U5]=null,t[Uf]=void 0,t.__e=void 0),g5(n)&&(n[qf]=void 0)}}function Lo(t=""){return document.createTextNode(t)}function zo(t){return d_.call(t)}function xr(t){return m_.call(t)}function he(t,e){if(!fe)return zo(t);var n=zo(ae);if(n===null)n=ae.appendChild(Lo());else if(e&&n.nodeType!==3){var o=Lo();return n?.before(o),eo(o),o}return e&&gg(n),eo(n),n}function Vn(t,e=!1){if(!fe){var n=zo(t);return n instanceof Comment&&n.data===""?xr(n):n}if(e){if(ae?.nodeType!==3){var o=Lo();return ae?.before(o),eo(o),o}gg(ae)}return ae}function ue(t,e=1,n=!1){let o=fe?ae:t;for(var r;e--;)r=o,o=xr(o);if(!fe)return o;if(n){if(o?.nodeType!==3){var i=Lo();return o===null?r?.after(i):o.before(i),eo(i),i}gg(o)}return eo(o),o}function u_(t){t.textContent=""}function h_(){return!1}function fg(t,e,n){let o=n?{is:n}:void 0;return document.createElementNS(e??"http://www.w3.org/1999/xhtml",t,o)}function gg(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===3;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function yg(t){var e=pe,n=Yt;Io(null),br(null);try{return t()}finally{Io(e),br(n)}}function iD(t){Yt===null&&(pe===null&&DP(t),PP()),Ur&&AP(t)}function aD(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function kr(t,e){var n=Yt;n!==null&&n.f&8192&&(t|=lg);var o={ctx:no,deps:null,nodes:null,f:t|vr|512,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};te?.register_created_effect(o);var r=o;if(t&4)Ss===null?As.ensure().schedule(o):Ss.push(o);else if(e!==null){try{Rs(o)}catch(a){throw Un(o),a}r.deps===null&&r.teardown===null&&r.nodes===null&&r.first===r.last&&!(r.f&524288)&&(r=r.first,t&16&&t&65536&&r!==null&&(r.f|=pg))}if(r!==null&&(r.parent=n,n!==null&&aD(r,n),pe!==null&&pe.f&2&&!(t&64))){var i=pe;(i.effects??=[]).push(r)}return o}function vg(){return pe!==null&&!Zo}function f_(t){let e=kr(8,null);return pn(e,Oo),e.teardown=t,e}function Jd(t){iD("$effect");var e=Yt.f;if(!pe&&e&32&&!(e&32768)){var n=no;(n.e??=[]).push(t)}else return g_(t)}function g_(t){return kr(4|EP,t)}function sD(t){As.ensure();let e=kr(64|Ms,t);return()=>{Un(e)}}function cD(t){As.ensure();let e=kr(64|Ms,t);return(n={})=>new Promise(o=>{n.outro?ya(e,()=>{Un(e),o(void 0)}):(Un(e),o(void 0))})}function bg(t){return kr(4,t)}function lD(t){return kr(SP|Ms,t)}function Qd(t,e=0){return kr(8|e,t)}function Jt(t,e=[],n=[],o=[]){QP(o,e,n,r=>{kr(8,()=>t(...r.map(E)))})}function xg(t,e=0){return kr(16|e,t)}function $o(t){return kr(32|Ms,t)}function y_(t){var e=t.teardown;if(e!==null){let n=Ur,o=pe;w5(!0),Io(null);try{e.call(null)}finally{w5(n),Io(o)}}}function kg(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){let r=n.ac;r!==null&&yg(()=>{r.abort(Xd)});var o=n.next;n.f&64?n.parent=null:Un(n,e),n=o}}function pD(t){for(var e=t.first;e!==null;){var n=e.next;e.f&32||Un(e),e=n}}function Un(t,e=!0){var n=!1;(e||t.f&262144)&&t.nodes!==null&&t.nodes.end!==null&&(dD(t.nodes.start,t.nodes.end),n=!0),pn(t,y5),kg(t,e&&!n),el(t,0);var o=t.nodes&&t.nodes.t;if(o!==null)for(let i of o)i.stop();y_(t),t.f^=y5,t.f|=_P;var r=t.parent;r!==null&&r.first!==null&&v_(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function dD(t,e){for(;t!==null;){var n=t===e?null:xr(t);t.remove(),t=n}}function v_(t){var e=t.parent,n=t.prev,o=t.next;n!==null&&(n.next=o),o!==null&&(o.prev=n),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=n))}function ya(t,e,n=!0){var o=[];b_(t,o,!0);var r=()=>{n&&Un(t),e&&e()},i=o.length;if(i>0){var a=()=>--i||r();for(var s of o)s.out(a)}else r()}function b_(t,e,n){if(!(t.f&8192)){t.f^=lg;var o=t.nodes&&t.nodes.t;if(o!==null)for(let s of o)(s.is_global||n)&&e.push(s);for(var r=t.first;r!==null;){var i=r.next;if(!(r.f&64)){var a=!!(r.f&65536)||!!(r.f&32)&&!!(t.f&16);b_(r,e,a?n:!1)}r=i}}}function wg(t){x_(t,!0)}function x_(t,e){if(t.f&8192){t.f^=lg,t.f&1024||(pn(t,vr),As.ensure().schedule(t));for(var n=t.first;n!==null;){var o=n.next,r=!!(n.f&65536)||!!(n.f&32);x_(n,r?e:!1),n=o}var i=t.nodes&&t.nodes.t;if(i!==null)for(let a of i)(a.is_global||e)&&a.in()}}function _g(t,e){if(t.nodes)for(var n=t.nodes.start,o=t.nodes.end;n!==null;){var r=n===o?null:xr(n);e.append(n),n=r}}function w5(t){Ur=t}function Io(t){pe=t}function br(t){Yt=t}function k_(t){pe!==null&&(No===null?No=[t]:No.push(t))}function uD(t){jo=t}function _5(t){va=t}function __(){return++w_}function rl(t){var e=t.f;if(e&2048)return!0;if(e&2&&(t.f&=~nl),e&4096){for(var n=t.deps,o=n.length,r=0;r<o;r++){var i=n[r];if(rl(i)&&i_(i),i.wv>t.wv)return!0}e&512&&Yo===null&&pn(t,Oo)}return!1}function E_(t,e,n=!0){var o=t.reactions;if(o!==null&&(No===null||!Qc.call(No,t)))for(var r=0;r<o.length;r++){var i=o[r];i.f&2?E_(i,e,!1):e===i&&(n?pn(i,vr):i.f&1024&&pn(i,ba),e_(i))}}function S_(t){var e=to,n=mo,o=jo,r=pe,i=No,a=no,s=Zo,c=va,l=t.f;to=null,mo=0,jo=null,pe=l&96?null:t,No=null,Cs(t.ctx),Zo=!1,va=++fa,t.ac!==null&&(yg(()=>{t.ac.abort(Xd)}),t.ac=null);try{t.f|=v5;var p=t.fn,d=p();t.f|=V5;var m=t.deps,u=te?.is_fork;if(to!==null){var h;if(u||el(t,mo),m!==null&&mo>0)for(m.length=mo+to.length,h=0;h<to.length;h++)m[mo+h]=to[h];else t.deps=m=to;if(vg()&&t.f&512)for(h=mo;h<m.length;h++)(m[h].reactions??=[]).push(t)}else!u&&m!==null&&mo<m.length&&(el(t,mo),m.length=mo);if(ol()&&jo!==null&&!Zo&&m!==null&&!(t.f&6146))for(h=0;h<jo.length;h++)E_(jo[h],t);if(r!==null&&r!==t){if(fa++,r.deps!==null)for(let f=0;f<n;f+=1)r.deps[f].rv=fa;if(e!==null)for(let f of e)f.rv=fa;jo!==null&&(o===null?o=jo:o.push(...jo))}return t.f&8388608&&(t.f^=Fd),d}catch(f){return J5(f)}finally{t.f^=v5,to=e,mo=n,jo=o,pe=r,No=i,Cs(a),Zo=s,va=c}}function hD(t,e){let n=e.reactions;if(n!==null){var o=vP.call(n,t);if(o!==-1){var r=n.length-1;r===0?n=e.reactions=null:(n[o]=n[r],n.pop())}}if(n===null&&e.f&2&&(to===null||!Qc.call(to,e))){var i=e;i.f&512&&(i.f^=512,i.f&=~nl),i.v!==_n&&mg(i),oD(i),el(i,0)}}function el(t,e){var n=t.deps;if(n!==null)for(var o=e;o<n.length;o++)hD(t,n[o])}function Rs(t){var e=t.f;if(!(e&16384)){pn(t,Oo);var n=Yt,o=Ld;Yt=t,Ld=!0;try{e&16777232?pD(t):kg(t),y_(t);var r=S_(t);t.teardown=typeof r=="function"?r:null,t.wv=w_}finally{Ld=o,Yt=n}}}function E(t){var e=!!(t.f&2);if(mD?.add(t),pe!==null&&!Zo&&!(Yt!==null&&Yt.f&16384)&&(No===null||!Qc.call(No,t))){var n=pe.deps;if(pe.f&2097152)t.rv<fa&&(t.rv=fa,to===null&&n!==null&&n[mo]===t?mo++:to===null?to=[t]:to.push(t));else{(pe.deps??=[]).push(t);var o=t.reactions;o===null?t.reactions=[pe]:Qc.call(o,pe)||o.push(pe)}}if(Ur&&ga.has(t))return ga.get(t);if(e){var r=t;if(Ur){var i=r.v;return(!(r.f&1024)&&r.reactions!==null||C_(r))&&(i=hg(r)),ga.set(r,i),i}var a=!(r.f&512)&&!Zo&&pe!==null&&(Ld||!!(pe.f&512)),s=(r.f&V5)===0;rl(r)&&(a&&(r.f|=512),i_(r)),a&&!s&&(a_(r),T_(r))}if(Yo?.has(t))return Yo.get(t);if(t.f&8388608)throw t.v;return t.v}function T_(t){if(t.f|=512,t.deps!==null)for(let e of t.deps)(e.reactions??=[]).push(t),e.f&2&&!(e.f&512)&&(a_(e),T_(e))}function C_(t){if(t.v===_n)return!0;if(t.deps===null)return!1;for(let e of t.deps)if(ga.has(e)||e.f&2&&C_(e))return!0;return!1}function il(t){var e=Zo;try{return Zo=!0,t()}finally{Zo=e}}function fD(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(zi in t)Jf(t);else if(!Array.isArray(t))for(let e in t){let n=t[e];typeof n=="object"&&n&&zi in n&&Jf(n)}}}function Jf(t,e=new Set){if(typeof t=="object"&&t&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Jf(t[o],e)}catch{}let n=cg(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let o=W5(n);for(let r in o){let i=o[r].get;if(i)try{i.call(t)}catch{}}}}}function gD(t,e,n,o={}){function r(i){if(o.capture||tg.call(e,i),!i.cancelBubble)return yg(()=>n?.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Oi(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function E5(t,e,n,o,r){var i={capture:o,passive:r},a=gD(t,e,n,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&f_(()=>{e.removeEventListener(t,a,i)})}function $d(t,e,n){(e[qc]??={})[t]=n}function yD(t){for(var e=0;e<t.length;e++)B_.add(t[e]);for(var n of Qf)n(t)}function tg(t){var e=this,n=e.ownerDocument,o=t.type,r=t.composedPath?.()||[],i=r[0]||t.target;S5=t;var a=0,s=S5===t&&t[qc];if(s){var c=r.indexOf(s);if(c!==-1&&(e===document||e===window)){t[qc]=e;return}var l=r.indexOf(e);if(l===-1)return;c<=l&&(a=c)}if(i=r[a]||t.target,i!==e){Hd(t,"currentTarget",{configurable:!0,get(){return i||n}});var p=pe,d=Yt;Io(null),br(null);try{for(var m,u=[];i!==null;){var h=i.assignedSlot||i.parentNode||i.host||null;try{var f=i[qc]?.[o];f!=null&&(!i.disabled||t.target===i)&&f.call(i,t)}catch(g){m?u.push(g):m=g}if(t.cancelBubble||h===e||h===null)break;i=h}if(m){for(let g of u)queueMicrotask(()=>{throw g});throw m}}finally{t[qc]=e,delete t.currentTarget,Io(p),br(d)}}}function bD(t){return vD?.createHTML(t)??t}function R_(t){var e=fg("template");return e.innerHTML=bD(t.replaceAll("<!>","<!---->")),e.content}function Vr(t,e){var n=Yt;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function ho(t,e){var n=!!(e&1),o=!!(e&2),r,i=!t.startsWith("<!>");return()=>{if(fe)return Vr(ae,null),ae;r===void 0&&(r=R_(i?t:"<!>"+t),n||(r=zo(r)));var a=o||p_?document.importNode(r,!0):r.cloneNode(!0);if(n){var s=zo(a),c=a.lastChild;Vr(s,c)}else Vr(a,a);return a}}function xD(t,e,n="svg"){var o=!t.startsWith("<!>"),r=!!(e&1),i="<".concat(n,">").concat(o?t:"<!>"+t,"</").concat(n,">"),a;return()=>{if(fe)return Vr(ae,null),ae;if(!a){var s=zo(R_(i));if(r)for(a=document.createDocumentFragment();zo(s);)a.appendChild(zo(s));else a=zo(s)}var c=a.cloneNode(!0);if(r){var l=zo(c),p=c.lastChild;Vr(l,p)}else Vr(c,c);return c}}function ve(t,e){return xD(t,e,"svg")}function _s(){if(fe)return Vr(ae,null),ae;var t=document.createDocumentFragment(),e=document.createComment(""),n=Lo();return t.append(e,n),Vr(e,n),t}function Mt(t,e){if(fe){var n=Yt;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=ae),Zd()}else t!==null&&t.before(e)}function wD(t){return kD.includes(t)}function rn(t,e){var n=e==null?"":typeof e=="object"?"".concat(e):e;n!==(t[qf]??=t.nodeValue)&&(t[qf]=n,t.nodeValue="".concat(n))}function M_(t,e){return A_(t,e)}function _D(t,e){Zf(),e.intro=e.intro??!1;let n=e.target,o=fe,r=ae;try{for(var i=zo(n);i&&(i.nodeType!==8||i.data!=="[");)i=xr(i);if(!i)throw Ts;Wr(!0),eo(i);let a=A_(t,{...e,anchor:i});return Wr(!1),a}catch(a){if(a instanceof Error&&a.message.split("\n").some(s=>s.startsWith("https://svelte.dev/e/")))throw a;return a!==Ts&&console.warn("Failed to hydrate: ",a),e.recover===!1&&$P(),Zf(),u_(n),Wr(!1),M_(t,e)}finally{Wr(o),eo(r)}}function A_(t,{target:e,anchor:n,props:o={},events:r,context:i,intro:a=!0,transformError:s}){Zf();var c=void 0,l=cD(()=>{var p=n??e.appendChild(Lo());ZP(p,{pending:()=>{}},u=>{wa({});var h=no;if(i&&(h.c=i),r&&(o.$$events=r),fe&&Vr(u,null),c=t(u,o)||{},fe&&(Yt.nodes.end=ae,ae===null||ae.nodeType!==8||ae.data!=="]"))throw Yd(),Ts;_a()},s);var d=new Set,m=u=>{for(var h=0;h<u.length;h++){var f=u[h];if(!d.has(f)){d.add(f);var g=wD(f);for(let _ of[e,document]){var x=zd.get(_);x===void 0&&(x=new Map,zd.set(_,x));var k=x.get(f);k===void 0?(_.addEventListener(f,tg,{passive:g}),x.set(f,1)):x.set(f,k+1)}}}};return m(Kd(B_)),Qf.add(m),()=>{for(var u of d)for(let g of[e,document]){var h=zd.get(g),f=h.get(u);--f==0?(g.removeEventListener(u,tg),h.delete(u),h.size===0&&zd.delete(g)):h.set(u,f)}Qf.delete(m),p!==n&&p.parentNode?.removeChild(p)}});return eg.set(c,l),c}function ED(t,e){let n=eg.get(t);return n?(eg.delete(t),n(e)):Promise.resolve()}function Eg(t){no===null&&BP("onMount"),Jd(()=>{let e=il(t);if(typeof e=="function")return e})}function $e(t,e,n=!1){var o;fe&&(o=ae,Zd());var r=new SD(t),i=n?pg:0;function a(s,c){if(fe){var l=q5(o);if(s!==parseInt(l.substring(1))){var p=Wd();eo(p),r.anchor=p,Wr(!1),r.ensure(s,c),Wr(!0);return}}r.ensure(s,c)}xg(()=>{var s=!1;e((c,l=0)=>{s=!0,a(l,c)}),s||a(-1,null)},i)}function TD(t,e){return e}function CD(t,e,n){for(var o=[],r=e.length,i,a=e.length,s=0;s<r;s++){let d=e[s];ya(d,()=>{if(i){if(i.pending.delete(d),i.done.add(d),i.pending.size===0){var m=t.outrogroups;ng(t,Kd(i.done)),m.delete(i),m.size===0&&(t.outrogroups=null)}}else--a},!1)}if(a===0){var c=o.length===0&&n!==null;if(c){var l=n,p=l.parentNode;u_(p),p.append(l),t.items.clear()}ng(t,e,!c)}else i={pending:new Set(e),done:new Set},(t.outrogroups??=new Set).add(i)}function ng(t,e,n=!0){var o;if(t.pending.size>0){o=new Set;for(let a of t.pending.values())for(let s of a)o.add(t.items.get(s).e)}for(var r=0;r<e.length;r++){var i=e[r];o?.has(i)?(i.f|=Yc,_g(i,document.createDocumentFragment())):Un(e[r],n)}}function Qn(t,e,n,o,r,i=null){var a=t,s=new Map;if(e&4){var c=t;a=fe?eo(zo(c)):c.appendChild(Lo())}fe&&Zd();var l=null,p=ug(()=>{var x=n();return F5(x)?x:x==null?[]:Kd(x)}),d,m=new Map,u=!0;function h(x){g.effect.f&16384||(g.pending.delete(x),g.fallback=l,BD(g,d,a,e,o),l!==null&&(d.length===0?l.f&33554432?(l.f^=Yc,Kc(l,null,a)):wg(l):ya(l,()=>{l=null})))}function f(x){g.pending.delete(x)}var g={effect:xg(()=>{d=E(p);var x=d.length;let k=!1;fe&&q5(a)==="[!"!=(x===0)&&(a=Wd(),eo(a),Wr(!1),k=!0);for(var _=new Set,w=te,S=h_(),T=0;T<x;T+=1){fe&&ae.nodeType===8&&ae.data==="]"&&(a=ae,k=!0,Wr(!1));var B=d[T],M=o(B,T),z=u?null:s.get(M);z?(z.v&&Bs(z.v,B),z.i&&Bs(z.i,T),S&&w.unskip_effect(z.e)):(z=RD(s,u?a:T5??=Lo(),B,M,T,r,e,n),u||(z.e.f|=Yc),s.set(M,z)),_.add(M)}if(x===0&&i&&!l&&(u?l=$o(()=>i(a)):(l=$o(()=>i(T5??=Lo())),l.f|=Yc)),x>_.size&&MP("","",""),fe&&x>0&&eo(Wd()),!u)if(m.set(w,_),S){for(let[H,N]of s)_.has(H)||w.skip_effect(N.e);w.oncommit(h),w.ondiscard(f)}else h(w);k&&Wr(!0),E(p)}),flags:e,items:s,pending:m,outrogroups:null,fallback:l};u=!1,fe&&(a=ae)}function Uc(t){for(;t!==null&&!(t.f&32);)t=t.next;return t}function BD(t,e,n,o,r){var i=!!(o&8),a=e.length,s=t.items,c=Uc(t.effect.first),l,p=null,d,m=[],u=[],h,f,g,x;if(i)for(x=0;x<a;x+=1)h=e[x],f=r(h,x),g=s.get(f).e,g.f&33554432||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(x=0;x<a;x+=1){if(h=e[x],f=r(h,x),g=s.get(f).e,t.outrogroups!==null)for(let H of t.outrogroups)H.pending.delete(g),H.done.delete(g);if(g.f&8192&&(wg(g),i&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432)if(g.f^=Yc,g===c)Kc(g,null,n);else{var k=p?p.next:c;g===t.effect.last&&(t.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),ji(t,p,g),ji(t,g,k),Kc(g,k,n),p=g,m=[],u=[],c=Uc(p.next);continue}if(g!==c){if(l!==void 0&&l.has(g)){if(m.length<u.length){var _=u[0],w;p=_.prev;var S=m[0],T=m[m.length-1];for(w=0;w<m.length;w+=1)Kc(m[w],_,n);for(w=0;w<u.length;w+=1)l.delete(u[w]);ji(t,S.prev,T.next),ji(t,p,S),ji(t,T,_),c=_,p=T,--x,m=[],u=[]}else l.delete(g),Kc(g,c,n),ji(t,g.prev,g.next),ji(t,g,p===null?t.effect.first:p.next),ji(t,p,g),p=g;continue}for(m=[],u=[];c!==null&&c!==g;)(l??=new Set).add(c),u.push(c),c=Uc(c.next);if(c===null)continue}g.f&33554432||m.push(g),p=g,c=Uc(g.next)}if(t.outrogroups!==null){for(let H of t.outrogroups)H.pending.size===0&&(ng(t,Kd(H.done)),t.outrogroups?.delete(H));t.outrogroups.size===0&&(t.outrogroups=null)}if(c!==null||l!==void 0){var B=[];if(l!==void 0)for(g of l)g.f&8192||B.push(g);for(;c!==null;)!(c.f&8192)&&c!==t.fallback&&B.push(c),c=Uc(c.next);var M=B.length;if(M>0){var z=o&4&&a===0?n:null;if(i){for(x=0;x<M;x+=1)B[x].nodes?.a?.measure();for(x=0;x<M;x+=1)B[x].nodes?.a?.fix()}CD(t,B,z)}}i&&Oi(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function RD(t,e,n,o,r,i,a,s){var c=a&1?a&16?ka(n):c_(n,!1,!1):null,l=a&2?ka(r):null;return{v:c,i:l,e:$o(()=>(i(e,c??n,l??r,s),()=>{t.delete(o)}))}}function Kc(t,e,n){if(t.nodes)for(var o=t.nodes.start,r=t.nodes.end,i=e&&!(e.f&33554432)?e.nodes.start:n;o!==null;){var a=xr(o);if(i.before(o),o===r)return;o=a}}function ji(t,e,n){e===null?t.effect.first=n:e.next=n,n===null?t.effect.last=e:n.prev=e}function Ps(t,e){bg(()=>{var n=t.getRootNode(),o=n.host?n:n.head??n.ownerDocument.head;if(!o.querySelector("#"+e.hash)){let r=fg("style");r.id=e.hash,r.textContent=e.code,o.appendChild(r)}})}function Li(t,e,n){bg(()=>{var o=il(()=>e(t,n?.())||{});if(n&&o?.update){var r=!1,i={};Qd(()=>{var a=n();fD(a),r&&X5(i,a)&&(i=a,o.update(a))}),r=!0}if(o?.destroy)return()=>o.destroy()})}function P_(t){var e,n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=P_(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function fs(){for(var t,e,n=0,o="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=P_(t))&&(o&&(o+=" "),o+=e);return o}function D_(t){return typeof t=="object"?fs(t):t??""}function MD(t,e,n){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),n){for(var r of Object.keys(n))if(n[r])o=o?o+" "+r:r;else if(o.length)for(var i=r.length,a=0;(a=o.indexOf(r,a))>=0;){var s=a+i;(a===0||C5.includes(o[a-1]))&&(s===o.length||C5.includes(o[s]))?o=(a===0?"":o.substring(0,a))+o.substring(s+1):a=s}}return o===""?null:o}function B5(t,e=!1){var n=e?" !important;":";",o="";for(var r of Object.keys(t)){var i=t[r];i!=null&&i!==""&&(o+=" "+r+": "+i+n)}return o}function $f(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function AD(t,e){if(e){var n="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,a=0,s=!1,c=[];o&&c.push(...Object.keys(o).map($f)),r&&c.push(...Object.keys(r).map($f));var l=0,p=-1;let f=t.length;for(var d=0;d<f;d++){var m=t[d];if(s?m==="/"&&t[d-1]==="*"&&(s=!1):i?i===m&&(i=!1):m==="/"&&t[d+1]==="*"?s=!0:m==='"'||m==="'"?i=m:m==="("?a++:m===")"&&a--,!s&&i===!1&&a===0){if(m===":"&&p===-1)p=d;else if(m===";"||d===f-1){if(p!==-1){var u=$f(t.substring(l,p).trim());if(!c.includes(u)){m!==";"&&d++;var h=t.substring(l,d).trim();n+=" "+h+";"}}l=d+1,p=-1}}}}return o&&(n+=B5(o)),r&&(n+=B5(r,!0)),n=n.trim(),n===""?null:n}return t==null?null:String(t)}function Es(t,e,n,o,r,i){var a=t[Vf];if(fe||a!==n||a===void 0){var s=MD(n,o,i);(!fe||s!==t.getAttribute("class"))&&(s==null?t.removeAttribute("class"):e?t.className=s:t.setAttribute("class",s)),t[Vf]=n}else if(i&&r!==i)for(var c in i){var l=!!i[c];(r==null||l!==!!r[c])&&t.classList.toggle(c,l)}return i}function zf(t,e={},n,o){for(var r in n){var i=n[r];e[r]!==i&&(n[r]==null?t.style.removeProperty(r):t.style.setProperty(r,i,o))}}function PD(t,e,n,o){var r=t[Uf];if(fe||r!==e){var i=AD(e,o);(!fe||i!==t.getAttribute("style"))&&(i==null?t.removeAttribute("style"):t.style.cssText=i),t[Uf]=e}else o&&(Array.isArray(o)?(zf(t,n?.[0],o[0]),zf(t,n?.[1],o[1],"important")):zf(t,n,o));return o}function V(t,e,n,o){var r=zD(t);fe&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===$D)||r[e]!==(r[e]=n)&&(e==="loading"&&(t[TP]=n),n==null?t.removeAttribute(e):typeof n!="string"&&OD(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function zD(t){return t[U5]??={[DD]:t.nodeName.includes("-"),[jD]:t.namespaceURI===yP}}function OD(t){var e=t.getAttribute("is")||t.nodeName,n=R5.get(e);if(n)return n;R5.set(e,n=[]);for(var o,r=t,i=Element.prototype;i!==r;){for(var a in o=W5(r),o)o[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&n.push(a);r=cg(r)}return n}function Of(t,e){return t===e||t?.[zi]===e}function j_(t={},e,n,o){var r=no.r,i=Yt;return bg(()=>{var a,s;return Qd(()=>{a=s,s=o?.()||[],il(()=>{Of(n(...s),t)||(e(t,...s),a&&Of(n(...a),t)&&e(null,...a))})}),()=>{let c=i;for(;c!==r&&c.parent!==null&&c.parent.f&33554432;)c=c.parent;let l=()=>{s&&Of(n(...s),t)&&e(null,...s)},p=c.teardown;c.teardown=()=>{l(),p?.()}}}),t}function ND(...t){return new Proxy({props:t},LD)}function uo(t,e,n,o){var r=!0,i=!!(n&8),a=!!(n&16),s=o,c=!0,l=void 0,p=()=>a&&r?(l??=tl(o),E(l)):(c&&(c=!1,s=a?il(o):o),s);let d;if(i){var m=zi in t||dg in t;d=Gr(t,e)?.set??(m&&e in t?w=>t[e]=w:void 0)}var u,h=!1;i?[u,h]=UP(()=>t[e]):u=t[e],u===void 0&&o!==void 0&&(u=p(),d&&(r&&zP(e),d(u)));var f=r?()=>{var w=t[e];return w===void 0?p():(c=!0,w)}:()=>{var w=t[e];return w!==void 0&&(s=void 0),w===void 0?s:w};if(r&&!(n&4))return f;if(d){var g=t.$$legacy;return(function(w,S){return arguments.length>0?((!r||!S||g||h)&&d(S?f():w),w):f()})}var x=!1,k=(n&1?tl:ug)(()=>(x=!1,f()));i&&E(k);var _=Yt;return(function(w,S){if(arguments.length>0){let T=S?E(k):r&&i?ha(w):w;return It(k,T),x=!0,s!==void 0&&(s=T),w}return Ur&&x||_.f&16384?k.v:E(k)})}function ID(t){return new HD(t)}function Nd(t,e,n,o){let r=n[t]?.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!n[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e==null?e:+e;default:return e}}function FD(t){let e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function Sg(t,e,n,o,r,i){let a=class extends $_{constructor(){super(t,n,r),this.$$p_d=e}static get observedAttributes(){return Id(e).map(s=>(e[s].attribute||s).toLowerCase())}};return Id(e).forEach(s=>{Hd(a.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(c){c=Nd(s,c,e),this.$$d[s]=c;var l=this.$$c;l&&(Gr(l,s)?.get?l[s]=c:l.$set({[s]:c}))}})}),o.forEach(s=>{Hd(a.prototype,s,{get(){return this.$$c?.[s]}})}),i&&(a=i(a)),t.element=a,a}function UD(t,e){wa(e,!0),Ps(t,VD);let n=uo(e,"items",19,()=>[]),o=()=>["st-chartDataList",e.class].filter(Boolean).join(" ");var r=_s(),i=Vn(r),a=s=>{var c=GD();Qn(c,21,n,TD,(l,p)=>{var d=WD(),m=he(d,!0);Xt(d),Jt(()=>rn(m,E(p))),Mt(l,d)}),Xt(c),Jt(l=>{Es(c,1,l,"svelte-1ec57ko"),V(c,"aria-label","Data values for ".concat(e.label))},[()=>D_(o())]),Mt(s,c)};$e(i,s=>{n().length>0&&s(a)}),Mt(t,r),_a()}function qD(t,e){if(!t||t.length===0)return[];let{xScale:n,yScale:o,plotLeft:r,plotTop:i,plotWidth:a,plotHeight:s}=e,c=[];return t.forEach((l,p)=>{switch(l.kind){case"region":if(!Lf(l.from)||!Lf(l.to))return;if(l.axis==="x"){let d=n(l.from),m=n(l.to);if(d===null||m===null)return;let u=r+Math.min(d,m);c.push({kind:"region",key:p,axis:"x",x:u,y:i,width:Math.max(Math.abs(m-d),.5),height:s,label:l.label})}else{let d=o(l.from),m=o(l.to);if(d===null||m===null)return;let u=i+Math.min(d,m);c.push({kind:"region",key:p,axis:"y",x:r,y:u,width:a,height:Math.max(Math.abs(m-d),.5),label:l.label})}return;case"line":if(!Lf(l.value))return;if(l.axis==="x"){let d=n(l.value);if(d===null)return;let m=r+d;c.push({kind:"line",key:p,axis:"x",x1:m,y1:i,x2:m,y2:i+s,label:l.label})}else{let d=o(l.value);if(d===null)return;let m=i+d;c.push({kind:"line",key:p,axis:"y",x1:r,y1:m,x2:r+a,y2:m,label:l.label})}return;case"shape":{if(!l.points||l.points.length<2)return;let d=[];for(let h of l.points){let f=n(h.x),g=o(h.y);if(f===null||g===null)return;d.push({x:r+f,y:i+g})}let m=d.reduce((h,f)=>h+f.x,0)/d.length,u=d.reduce((h,f)=>h+f.y,0)/d.length;c.push({kind:"shape",key:p,points:d,label:l.label,labelX:m,labelY:u});return}case"point":{let d=n(l.x),m=o(l.y);if(d===null||m===null)return;c.push({kind:"point",key:p,x:r+d,y:i+m,label:l.label,marker:l.marker??"circle"});return}case"label":{let d=n(l.x),m=o(l.y);if(d===null||m===null)return;c.push({kind:"label",key:p,x:r+d,y:i+m,text:l.text,anchor:l.anchor??"middle"});return}}}),c}function KD(t){if(!t||t.length===0)return[];let e=[];for(let n of t){let o=n.kind==="label"?n.text:n.label;o&&e.push("Annotation: ".concat(o))}return e}function XD(t){return t.map(e=>"".concat(e.x.toFixed(2),",").concat(e.y.toFixed(2))).join(" ")}function YD(t){return t===!0?{enabled:!0}:t&&typeof t=="object"?{enabled:!0,format:t.format,position:t.position}:{enabled:!1}}function ZD(t,e,n){return Number.isFinite(t)?e.format?e.format(t):n(t):""}function JD(t,e){return t==null?-1:e.indexOf(t)}function QD(t,e,n){return t===void 0?e??-1:JD(t,n)}function tj(t,e,n){if(n<=0)return null;let o=r=>Math.min(n-1,Math.max(0,r));switch(t){case"ArrowRight":case"ArrowDown":return{kind:"move",index:o(e+1)};case"ArrowLeft":case"ArrowUp":return{kind:"move",index:o(e-1)};case"Home":return{kind:"move",index:0};case"End":return{kind:"move",index:n-1};case"Enter":case" ":case"Spacebar":return{kind:"select"};case"Escape":case"Esc":return{kind:"escape"};default:return null}}function ej(t,e,n){return t===(e>=0&&e<n?e:0)?0:-1}function nj(t,e){return"".concat(t,", ").concat(e)}function Nj(t,e){wa(e,!0),Ps(t,Lj);let n=uo(e,"width",3,480),o=uo(e,"height",3,240),r=uo(e,"orientation",3,"vertical"),i=uo(e,"selectedKeys",19,()=>[]),a=uo(e,"scale",3,"linear"),s=uo(e,"invertAxis",3,!1),c={top:12,right:16,bottom:32,left:44};function l(A,$,I=5){if(!Number.isFinite(A)||!Number.isFinite($)||A===$)return[Number.isFinite($)?$:0];let O=($-A)/Math.max(I-1,1),Q=10**Math.floor(Math.log10(O)),nt=O/Q,tt;tt=nt<1.5?1*Q:nt<3?2*Q:nt<7?5*Q:10*Q;let ot=Math.floor(A/tt)*tt,jt=Math.ceil($/tt)*tt,ke=[];for(let _t=ot;_t<=jt+tt/2;_t+=tt)ke.push(Number(_t.toFixed(10)));return ke}let p=A=>Array.from(new Set(A.filter(Number.isFinite).map($=>Number($.toFixed(10))))).sort(($,I)=>$-I);function d(A,$,I=5){return!Number.isFinite(A)||!Number.isFinite($)||A>=$?l(A,$,I):p([A,...l(A,$,I).filter(O=>O>A&&O<$),$])}function m(...A){let $=1/0;for(let I of A)Number.isFinite(I)&&I>0&&I<$&&($=I);return Number.isFinite($)?$:1}function u(A,$){let I=A>0?A:1,O=$>I?$:I*10,Q=Math.floor(Math.log10(I)),nt=Math.ceil(Math.log10(O)),tt=[];for(let ot=Q;ot<=nt;ot++)tt.push(Number((10**ot).toFixed(10)));return tt.length?tt:[I]}function h(A,$){return!Number.isFinite(A)||!Number.isFinite($)||A<=0||A>=$?u(A,$):p([A,...u(A,$).filter(I=>I>A&&I<$),$])}function f(A){return A&&Number.isFinite(A[0])&&Number.isFinite(A[1])&&A[0]<A[1]?A:null}function g(A){return A&&Number.isFinite(A[0])&&Number.isFinite(A[1])&&A[0]>0&&A[0]<A[1]?A:null}function x(A){return Number.isFinite(A)?Math.min(1,Math.max(0,A)):0}function k(A){return Math.abs(A)>=1e3?"".concat((A/1e3).toFixed(A%1e3==0?0:1),"k"):Number.isInteger(A)?String(A):A.toFixed(1)}function _(A,$){return"".concat(A,"--").concat($??"neutral")}function w(A,$,I,O,Q,nt,tt="y"){let ot=A,jt=$,ke=_t=>{_t!==void 0&&Number.isFinite(_t)&&(_t<ot&&(ot=_t),_t>jt&&(jt=_t))};for(let _t of I??[])(_t.axis??"y")===tt&&ke(_t.value);for(let _t of O??[])ke(_t.from),ke(_t.to);Q&&ke(Q.value);for(let _t of nt)ke(_t);return[ot,jt]}function S(A,$,I){let O=[];for(let Q of A??[])Number.isFinite(Q.value)&&O.push(Q.label?"R\xE9f\xE9rence: ".concat(Q.label," = ").concat(Q.value):"R\xE9f\xE9rence: ".concat(Q.value));for(let Q of $??[]){if(!Number.isFinite(Q.from)||!Number.isFinite(Q.to))continue;let nt=Math.min(Q.from,Q.to),tt=Math.max(Q.from,Q.to);O.push(Q.label?"Bande: ".concat(Q.label," (").concat(nt,"\u2013").concat(tt,")"):"Bande: ".concat(nt,"\u2013").concat(tt))}return I&&Number.isFinite(I.value)&&O.push(I.label?"Objectif: ".concat(I.label," = ").concat(I.value):"Objectif: ".concat(I.value)),O}let T=He(null),B=Ft(()=>new Set(i())),M=Ft(()=>E(B).size>0),z=Ft(()=>typeof e.onSelect=="function"),H=Ft(()=>a()==="log"),N=Ft(()=>E(H)?g(e.domain):f(e.domain)),Z=Ft(()=>e.goalLine&&Number.isFinite(e.goalLine.value)?e.goalLine:null),Et=Ft(()=>r()==="vertical"?"y":"x"),ft=Ft(()=>{let A=e.data.map(nt=>nt.value),$=e.data.flatMap(nt=>[nt.errorLow,nt.errorHigh].filter(tt=>tt!==void 0&&Number.isFinite(tt))),I,O;if(E(H)){let nt=[...(e.referenceLines??[]).filter(ot=>(ot.axis??"y")===E(Et)).map(ot=>ot.value),...(e.bands??[]).flatMap(ot=>[ot.from,ot.to]),...E(Z)?[E(Z).value]:[],...$];E(N)?(I=E(N)[0],O=E(N)[1]):(I=m(...A,...nt),O=Math.max(I,...A.filter(ot=>ot>0),...nt.filter(ot=>ot>0)));let tt=E(N)?h(I,O):u(I,O);return{ticks:tt,domainMin:tt[0],domainMax:tt[tt.length-1],plotWidth:Math.max(n()-c.left-c.right,1),plotHeight:Math.max(o()-c.top-c.bottom,1)}}I=E(N)?E(N)[0]:Math.min(0,...A),O=E(N)?E(N)[1]:Math.max(0,...A),E(N)||([I,O]=w(I,O,e.referenceLines,e.bands,E(Z),$,E(Et)));let Q=E(N)?d(I,O,5):l(I,O,5);return{ticks:Q,domainMin:Q[0],domainMax:Q[Q.length-1],plotWidth:Math.max(n()-c.left-c.right,1),plotHeight:Math.max(o()-c.top-c.bottom,1)}}),ee=Ft(()=>A=>{let{domainMin:$,domainMax:I}=E(ft),O;if(E(H)){let Q=Math.log10($),nt=Math.log10(I);O=nt===Q?0:(Math.log10(A>0?A:$)-Q)/(nt-Q)}else O=I===$?0:(A-$)/(I-$);return x(s()?1-O:O)}),Fe=Ft(()=>E(H)?E(ft).domainMin:Math.min(E(ft).domainMax,Math.max(E(ft).domainMin,0))),Lt=Ft(()=>{let{plotWidth:A,plotHeight:$}=E(ft);if(e.data.length===0)return[];if(r()==="vertical"){let tt=A/e.data.length,ot=tt*.62,jt=_t=>$*(1-E(ee)(_t)),ke=jt(E(Fe));return e.data.map((_t,qe)=>{let Ke=jt(_t.value),oo=Math.min(Ke,ke),wr=Math.abs(ke-Ke);return{x:c.left+tt*qe+(tt-ot)/2,y:c.top+oo,width:ot,height:Math.max(wr,.5),cx:c.left+tt*(qe+.5),cy:c.top+Ke,datum:_t,tone:_t.tone??"category1"}})}let I=$/e.data.length,O=I*.62,Q=tt=>A*E(ee)(tt),nt=Q(E(Fe));return e.data.map((tt,ot)=>{let jt=Q(tt.value),ke=Math.min(jt,nt),_t=Math.abs(jt-nt),qe=c.top+I*ot+(I-O)/2;return{x:c.left+ke,y:qe,width:Math.max(_t,.5),height:O,cx:c.left+jt,cy:c.top+I*(ot+.5),datum:tt,tone:tt.tone??"category1"}})}),St=Ft(()=>r()==="vertical"),wt=Ft(()=>A=>{let{plotWidth:$,plotHeight:I}=E(ft);return E(St)?c.top+I*(1-E(ee)(A)):c.left+$*E(ee)(A)}),pt=Ft(()=>(e.bands??[]).filter(A=>Number.isFinite(A.from)&&Number.isFinite(A.to)).map((A,$)=>{let I=E(wt)(A.from),O=E(wt)(A.to);return E(St)?{key:$,x:c.left,y:Math.min(I,O),width:E(ft).plotWidth,height:Math.max(Math.abs(O-I),.5),label:A.label,tone:A.tone}:{key:$,x:Math.min(I,O),y:c.top,width:Math.max(Math.abs(O-I),.5),height:E(ft).plotHeight,label:A.label,tone:A.tone}})),zt=Ft(()=>(e.referenceLines??[]).filter(A=>Number.isFinite(A.value)).map((A,$)=>{let I=E(wt)(A.value);return E(St)?{key:$,x1:c.left,x2:c.left+E(ft).plotWidth,y1:I,y2:I,label:A.label,tone:A.tone}:{key:$,x1:I,x2:I,y1:c.top,y2:c.top+E(ft).plotHeight,label:A.label,tone:A.tone}})),W=Ft(()=>E(Z)?{p:E(wt)(E(Z).value),label:E(Z).label,value:E(Z).value}:null),F=Ft(()=>{let A=[];for(let $ of E(Lt)){let{errorLow:I,errorHigh:O}=$.datum,Q=I!==void 0&&Number.isFinite(I),nt=O!==void 0&&Number.isFinite(O);if(!Q&&!nt)continue;let tt=Q?I:$.datum.value,ot=nt?O:$.datum.value,jt=E(wt)(tt),ke=E(wt)(ot);if(E(St)){let _t=$.x+$.width/2;A.push({key:$.datum.label,stem:{x1:_t,y1:jt,x2:_t,y2:ke},capLow:{x1:_t-4,y1:jt,x2:_t+4,y2:jt},capHigh:{x1:_t-4,y1:ke,x2:_t+4,y2:ke}})}else{let _t=$.y+$.height/2;A.push({key:$.datum.label,stem:{x1:jt,y1:_t,x2:ke,y2:_t},capLow:{x1:jt,y1:_t-4,x2:jt,y2:_t+4},capHigh:{x1:ke,y1:_t-4,x2:ke,y2:_t+4}})}}return A}),ct=Ft(()=>A=>{let $=E(Lt).find(I=>I.datum.label===String(A));return $?E(St)?$.cx-c.left:$.cy-c.top:null}),Ht=Ft(()=>A=>Number.isFinite(A)?E(wt)(A)-(E(St)?c.top:c.left):null),de=Ft(()=>A=>!A||E(St)?A:A.map($=>{switch($.kind){case"line":return{...$,axis:$.axis==="x"?"y":"x"};case"region":return{...$,axis:$.axis==="x"?"y":"x"};case"point":return{...$,x:$.y,y:typeof $.x=="number"?$.x:NaN};case"label":return{...$,x:$.y,y:typeof $.x=="number"?$.x:NaN};case"shape":return{...$,points:$.points.map(I=>({x:I.y,y:typeof I.x=="number"?I.x:NaN}))}}})),C=Ft(()=>A=>E(St)?E(ct)(A):typeof A=="number"?E(Ht)(A):null),b=Ft(()=>A=>E(St)?E(Ht)(A):E(ct)(A)),v=Ft(()=>qD(E(de)(e.annotations),{xScale:E(C),yScale:E(b),plotLeft:c.left,plotTop:c.top,plotWidth:E(ft).plotWidth,plotHeight:E(ft).plotHeight})),j=Ft(()=>E(v).filter(A=>A.kind==="region")),L=Ft(()=>E(v).filter(A=>A.kind!=="region")),J=Ft(()=>YD(e.dataLabels)),mt=Ft(()=>E(J).enabled?E(Lt).map(A=>{let $=ZD(A.datum.value,E(J),k),I=E(J).position??"outside",O=I==="inside"||I==="center";if(E(St)){let tt=A.cx,ot=O?A.y+A.height/2:A.cy-6;return{key:A.datum.label,x:tt,y:ot,text:$,anchor:"middle",baseline:O?"middle":"auto"}}let Q=A.cy,nt=O?A.x+A.width/2:A.cx+4;return{key:A.datum.label,x:nt,y:Q,text:$,anchor:O?"middle":"start",baseline:"middle"}}):[]),Nt=Ft(()=>[...e.data.map(A=>"".concat(A.label,": ").concat(A.value)),...S(e.referenceLines,e.bands,E(Z)),...KD(e.annotations)]),se=Ft(()=>{let{ticks:A,plotWidth:$,plotHeight:I}=E(ft);return r()==="vertical"?A.map(O=>({value:O,x1:c.left,x2:c.left+$,y:c.top+I*(1-E(ee)(O)),x:void 0,y1:void 0,y2:void 0})):A.map(O=>({value:O,x:c.left+$*E(ee)(O),y1:c.top,y2:c.top+I,x1:void 0,x2:void 0,y:void 0}))}),We=Ft(()=>E(Lt).map(A=>A.datum.label));function Wt(A){e.onHoverKeyChange?.(A==null?null:E(We)[A]??null)}function Qe(){It(T,null),Wt(null)}function ze(A){let $=A.target;if(!($ instanceof Element)){It(T,null),Wt(null);return}let I=Number($.getAttribute("data-chart-index")),O=Number.isInteger(I)?I:null;It(T,O,!0),Wt(O)}let G=Ft(()=>QD(e.hoverKey,E(T),E(We))),at=He(-1),gt=[],re=Ft(()=>(e.keyboardNav===!0||e.onSelectKey!==void 0)&&E(Lt).length>0);function Ee(A){It(at,A,!0),gt[A]?.focus(),Wt(A)}function ne(A,$){let I=tj(A.key,$,E(Lt).length);I&&(A.preventDefault(),I.kind==="move"?Ee(I.index):I.kind==="select"?e.onSelectKey?.(E(Lt)[$].datum.label):(It(at,-1),Wt(null),e.onSelectKey?.(null),A.currentTarget.blur()))}let Ge=()=>["st-barChart",e.class].filter(Boolean).join(" ");var me=Oj(),Mn=he(me),fo=he(Mn),Ve=he(fo),Gt=A=>{var $=_s();Qn(Vn($),17,()=>E(se),I=>I.value,(I,O)=>{var Q=oj(),nt=Vn(Q),tt=ue(nt),ot=he(tt,!0);Xt(tt),Jt(jt=>{V(nt,"x1",E(O).x1),V(nt,"x2",E(O).x2),V(nt,"y1",E(O).y),V(nt,"y2",E(O).y),V(tt,"x",c.left-6),V(tt,"y",E(O).y),rn(ot,jt)},[()=>k(E(O).value)]),Mt(I,Q)}),Mt(A,$)},Qt=A=>{var $=_s();Qn(Vn($),17,()=>E(se),I=>I.value,(I,O)=>{var Q=rj(),nt=Vn(Q),tt=ue(nt),ot=he(tt,!0);Xt(tt),Jt(jt=>{V(nt,"x1",E(O).x),V(nt,"x2",E(O).x),V(nt,"y1",E(O).y1),V(nt,"y2",E(O).y2),V(tt,"x",E(O).x),V(tt,"y",o()-c.bottom+16),rn(ot,jt)},[()=>k(E(O).value)]),Mt(I,Q)}),Mt(A,$)};$e(Ve,A=>{r()==="vertical"?A(Gt):A(Qt,-1)});var Ni=ue(Ve),qr=ue(Ni),al=ue(qr);Qn(al,19,()=>E(Lt),A=>A.datum.label,(A,$)=>{var I=_s(),O=Vn(I),Q=tt=>{var ot=ij(),jt=he(ot,!0);Xt(ot),Jt(()=>{V(ot,"x",E($).x+E($).width/2),V(ot,"y",o()-c.bottom+16),rn(jt,E($).datum.label)}),Mt(tt,ot)},nt=tt=>{var ot=aj(),jt=he(ot,!0);Xt(ot),Jt(()=>{V(ot,"x",c.left-6),V(ot,"y",E($).y+E($).height/2),rn(jt,E($).datum.label)}),Mt(tt,ot)};$e(O,tt=>{r()==="vertical"?tt(Q):tt(nt,-1)}),Mt(A,I)});var D=ue(al);Qn(D,17,()=>E(pt),A=>A.key,(A,$)=>{var I=cj(),O=Vn(I),Q=ue(O),nt=tt=>{var ot=sj(),jt=he(ot,!0);Xt(ot),Jt(()=>{V(ot,"x",E($).x+4),V(ot,"y",E($).y+11),rn(jt,E($).label)}),Mt(tt,ot)};$e(Q,tt=>{E($).label&&tt(nt)}),Jt(tt=>{Es(O,0,tt,"svelte-101a3kf"),V(O,"x",E($).x),V(O,"y",E($).y),V(O,"width",E($).width),V(O,"height",E($).height)},[()=>"st-barChart__band ".concat(_("st-barChart__band",E($).tone))]),Mt(A,I)});var K=ue(D);Qn(K,17,()=>E(zt),A=>A.key,(A,$)=>{var I=pj(),O=Vn(I),Q=ue(O),nt=tt=>{var ot=lj(),jt=he(ot,!0);Xt(ot),Jt(()=>{V(ot,"x",E(St)?c.left+E(ft).plotWidth-4:E($).x1+4),V(ot,"y",E(St)?E($).y1-4:c.top+11),V(ot,"text-anchor",E(St)?"end":"start"),rn(jt,E($).label)}),Mt(tt,ot)};$e(Q,tt=>{E($).label&&tt(nt)}),Jt(tt=>{Es(O,0,tt,"svelte-101a3kf"),V(O,"x1",E($).x1),V(O,"x2",E($).x2),V(O,"y1",E($).y1),V(O,"y2",E($).y2)},[()=>"st-barChart__refLine ".concat(_("st-barChart__refLine",E($).tone))]),Mt(A,I)});var lt=ue(K),rt=A=>{var $=uj();Qn($,21,()=>E(j),I=>I.key,(I,O)=>{var Q=_s(),nt=Vn(Q),tt=ot=>{var jt=mj(),ke=Vn(jt),_t=ue(ke),qe=Ke=>{var oo=dj(),wr=he(oo,!0);Xt(oo),Jt(()=>{V(oo,"x",E(O).x+4),V(oo,"y",E(O).y+11),rn(wr,E(O).label)}),Mt(Ke,oo)};$e(_t,Ke=>{E(O).label&&Ke(qe)}),Jt(()=>{V(ke,"x",E(O).x),V(ke,"y",E(O).y),V(ke,"width",E(O).width),V(ke,"height",E(O).height)}),Mt(ot,jt)};$e(nt,ot=>{E(O).kind==="region"&&ot(tt)}),Mt(I,Q)}),Xt($),Mt(A,$)};$e(lt,A=>{E(j).length>0&&A(rt)});var yt=ue(lt);Qn(yt,19,()=>E(Lt),A=>A.datum.label,(A,$,I)=>{let O=Ft(()=>E(B).has(E($).datum.label));var Q=hj();let nt;Jt(()=>{nt=Es(Q,0,"st-barChart__bar st-barChart__bar--".concat(E($).tone??""),"svelte-101a3kf",nt,{"st-barChart__bar--selected":E(O),"st-barChart__bar--dim":E(M)&&!E(O),"st-barChart__bar--interactive":E(z)}),V(Q,"x",E($).x),V(Q,"y",E($).y),V(Q,"width",E($).width),V(Q,"height",E($).height),V(Q,"data-chart-index",E(I))}),$d("click",Q,function(...tt){(E(z)?()=>e.onSelect?.(E($).datum.label):void 0)?.apply(this,tt)}),Mt(A,Q)});var Ut=ue(yt);Qn(Ut,17,()=>E(F),A=>A.key,(A,$)=>{var I=fj(),O=he(I),Q=ue(O),nt=ue(Q);Xt(I),Jt(()=>{V(O,"x1",E($).stem.x1),V(O,"y1",E($).stem.y1),V(O,"x2",E($).stem.x2),V(O,"y2",E($).stem.y2),V(Q,"x1",E($).capLow.x1),V(Q,"y1",E($).capLow.y1),V(Q,"x2",E($).capLow.x2),V(Q,"y2",E($).capLow.y2),V(nt,"x1",E($).capHigh.x1),V(nt,"y1",E($).capHigh.y1),V(nt,"x2",E($).capHigh.x2),V(nt,"y2",E($).capHigh.y2)}),Mt(A,I)});var Pt=ue(Ut),be=A=>{var $=vj(),I=Vn($),O=ot=>{var jt=gj();Jt(()=>{V(jt,"x1",c.left),V(jt,"x2",c.left+E(ft).plotWidth),V(jt,"y1",E(W).p),V(jt,"y2",E(W).p)}),Mt(ot,jt)},Q=ot=>{var jt=yj();Jt(()=>{V(jt,"x1",E(W).p),V(jt,"x2",E(W).p),V(jt,"y1",c.top),V(jt,"y2",c.top+E(ft).plotHeight)}),Mt(ot,jt)};$e(I,ot=>{E(St)?ot(O):ot(Q,-1)});var nt=ue(I),tt=he(nt,!0);Xt(nt),Jt(()=>{V(nt,"x",E(St)?c.left+E(ft).plotWidth-4:E(W).p+4),V(nt,"y",E(St)?E(W).p-4:c.top+11),V(nt,"text-anchor",E(St)?"end":"start"),rn(tt,E(W).label??"Objectif ".concat(E(W).value))}),Mt(A,$)};$e(Pt,A=>{E(W)&&A(be)});var Ue=ue(Pt),Ln=A=>{var $=Tj();Qn($,21,()=>E(L),I=>I.key,(I,O)=>{var Q=_s(),nt=Vn(Q),tt=_t=>{var qe=xj(),Ke=Vn(qe),oo=ue(Ke),wr=ro=>{var fn=bj(),Ds=he(fn,!0);Xt(fn),Jt(()=>{V(fn,"x",E(O).axis==="x"?E(O).x1+4:c.left+E(ft).plotWidth-4),V(fn,"y",E(O).axis==="x"?c.top+11:E(O).y1-4),V(fn,"text-anchor",E(O).axis==="x"?"start":"end"),rn(Ds,E(O).label)}),Mt(ro,fn)};$e(oo,ro=>{E(O).label&&ro(wr)}),Jt(()=>{V(Ke,"x1",E(O).x1),V(Ke,"y1",E(O).y1),V(Ke,"x2",E(O).x2),V(Ke,"y2",E(O).y2)}),Mt(_t,qe)},ot=_t=>{var qe=wj(),Ke=Vn(qe),oo=ue(Ke),wr=ro=>{var fn=kj(),Ds=he(fn,!0);Xt(fn),Jt(()=>{V(fn,"x",E(O).labelX),V(fn,"y",E(O).labelY),rn(Ds,E(O).label)}),Mt(ro,fn)};$e(oo,ro=>{E(O).label&&ro(wr)}),Jt(ro=>V(Ke,"points",ro),[()=>XD(E(O).points)]),Mt(_t,qe)},jt=_t=>{var qe=Ej(),Ke=Vn(qe),oo=ue(Ke),wr=ro=>{var fn=_j(),Ds=he(fn,!0);Xt(fn),Jt(()=>{V(fn,"x",E(O).x),V(fn,"y",E(O).y-8),rn(Ds,E(O).label)}),Mt(ro,fn)};$e(oo,ro=>{E(O).label&&ro(wr)}),Jt(()=>{V(Ke,"cx",E(O).x),V(Ke,"cy",E(O).y)}),Mt(_t,qe)},ke=_t=>{var qe=Sj(),Ke=he(qe,!0);Xt(qe),Jt(()=>{V(qe,"x",E(O).x),V(qe,"y",E(O).y),V(qe,"text-anchor",E(O).anchor),rn(Ke,E(O).text)}),Mt(_t,qe)};$e(nt,_t=>{E(O).kind==="line"?_t(tt):E(O).kind==="shape"?_t(ot,1):E(O).kind==="point"?_t(jt,2):_t(ke,-1)}),Mt(I,Q)}),Xt($),Mt(A,$)};$e(Ue,A=>{E(L).length>0&&A(Ln)});var An=ue(Ue),go=A=>{var $=Bj();Qn($,21,()=>E(mt),I=>I.key,(I,O)=>{var Q=Cj(),nt=he(Q,!0);Xt(Q),Jt(()=>{V(Q,"x",E(O).x),V(Q,"y",E(O).y),V(Q,"text-anchor",E(O).anchor),V(Q,"dominant-baseline",E(O).baseline),rn(nt,E(O).text)}),Mt(I,Q)}),Xt($),Mt(A,$)};$e(An,A=>{E(mt).length>0&&A(go)});var Jo=ue(An),Qo=A=>{let $=Ft(()=>E(Lt)[E(G)]);var I=Aj(),O=he(I),Q=tt=>{var ot=Rj();Jt(()=>{V(ot,"x1",E($).cx),V(ot,"x2",E($).cx),V(ot,"y1",c.top),V(ot,"y2",c.top+E(ft).plotHeight)}),Mt(tt,ot)},nt=tt=>{var ot=Mj();Jt(()=>{V(ot,"x1",c.left),V(ot,"x2",c.left+E(ft).plotWidth),V(ot,"y1",E($).cy),V(ot,"y2",E($).cy)}),Mt(tt,ot)};$e(O,tt=>{E(St)?tt(Q):tt(nt,-1)}),Xt(I),Mt(A,I)};$e(Jo,A=>{E(G)>=0&&E(Lt)[E(G)]&&A(Qo)}),Xt(fo);var De=ue(fo,2),Oe=A=>{var $=Dj();Qn($,23,()=>E(Lt),I=>I.datum.label,(I,O,Q)=>{var nt=Pj();j_(nt,(tt,ot)=>gt[ot]=tt,tt=>gt?.[tt],()=>[E(Q)]),Jt((tt,ot)=>{V(nt,"x",E(O).x),V(nt,"y",E(O).y),V(nt,"width",E(O).width),V(nt,"height",E(O).height),V(nt,"tabindex",tt),V(nt,"aria-label",ot)},[()=>ej(E(Q),E(at),E(Lt).length),()=>nj(E(O).datum.label,E(O).datum.value)]),$d("keydown",nt,tt=>ne(tt,E(Q))),E5("focus",nt,()=>{It(at,E(Q),!0),Wt(E(Q))}),Mt(I,nt)}),Xt($),Jt(()=>{V($,"viewBox","0 0 ".concat(n()??""," ").concat(o()??"")),V($,"aria-label","".concat(e.label," \u2014 points de donn\xE9es"))}),Mt(A,$)};$e(De,A=>{E(re)&&A(Oe)}),Xt(Mn);var yo=ue(Mn,2),H_=A=>{var $=$j();Qn($,21,()=>E(Lt),I=>I.datum.label,(I,O)=>{let Q=Ft(()=>E(B).has(E(O).datum.label));var nt=jj();let tt;var ot=ue(he(nt));Xt(nt),Jt(()=>{tt=Es(nt,1,"st-barChart__filterChip st-barChart__filterChip--".concat(E(O).tone??""),"svelte-101a3kf",tt,{"st-barChart__filterChip--selected":E(Q)}),V(nt,"aria-pressed",E(Q)),rn(ot," ".concat(E(O).datum.label??"",": ").concat(E(O).datum.value??""))}),$d("click",nt,()=>e.onSelect?.(E(O).datum.label)),Mt(I,nt)}),Xt($),Jt(()=>V($,"aria-label","Filtrer par ".concat(e.label))),Mt(A,$)};$e(yo,A=>{E(z)&&A(H_)});var Dg=ue(yo,2);UD(Dg,{get label(){return e.label},get items(){return E(Nt)}});var F_=ue(Dg,2),W_=A=>{let $=Ft(()=>E(Lt)[E(G)]);var I=zj(),O=he(I),Q=he(O,!0);Xt(O);var nt=ue(O,2),tt=he(nt,!0);Xt(nt),Xt(I),Jt(()=>{PD(I,"left: ".concat(E($).cx/n()*100,"%; top: ").concat(E($).cy/o()*100,"%")),rn(Q,E($).datum.label),rn(tt,E($).datum.value)}),Mt(A,I)};$e(F_,A=>{E(G)>=0&&E(Lt)[E(G)]&&A(W_)}),Xt(me),Jt(A=>{Es(me,1,A,"svelte-101a3kf"),V(Mn,"aria-label",e.label),V(fo,"viewBox","0 0 ".concat(n()??""," ").concat(o()??"")),V(Ni,"x1",c.left),V(Ni,"x2",c.left),V(Ni,"y1",c.top),V(Ni,"y2",o()-c.bottom),V(qr,"x1",c.left),V(qr,"x2",n()-c.right),V(qr,"y1",o()-c.bottom),V(qr,"y2",o()-c.bottom)},[()=>D_(Ge())]),$d("pointermove",Mn,ze),E5("pointerleave",Mn,Qe),Mt(t,me),_a()}function z_(t,e){return{code:"engine-load-failed",path:"",message:"the ".concat(t," engine failed to load: ").concat(e),severity:"error",source:"host",detail:{chunk:t,cause:e}}}function Ij(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function P5(t,e){return"".concat(t,"/").concat(Ij(e))}function O_(t){let e;try{let n=JSON.stringify(t);if(typeof n!="string")return{ok:!1,kind:"not-json-value",message:"the envelope is not a JSON value (\xA74.3)"};e=n}catch(n){return{ok:!1,kind:"not-serializable",message:"the envelope is not JSON-serializable (\xA74.3): ".concat(n instanceof Error?n.message:String(n))}}return{ok:!0,value:JSON.parse(e),text:e}}function Hj(t){let e=0;for(let n=0;n<t.length;n+=1){let o=t.charCodeAt(n);o<=127?e+=1:o<=2047?e+=2:o>=55296&&o<=56319?(e+=4,n+=1):e+=3}return e}function D5(t){let e=/^([0-9]+)\.([0-9]+)$/.exec(t);if(e!=null)return{major:Number(e[1]),minor:Number(e[2])}}function j5(t,e){return t.map(n=>{let o="".concat(e).concat(n.pointer);return n.keyword==="required"&&n.missingProperty!==void 0?o=P5(o,n.missingProperty):(n.keyword==="unevaluatedProperties"||n.keyword==="additionalProperties")&&n.additionalProperty!==void 0&&(o=P5(o,n.additionalProperty)),{code:"schema-violation",path:o,message:n.message,severity:"error",source:"catalog",detail:{keyword:n.keyword}}})}function Fj(t){let{catalog:e,structure:n,ports:o}=t;return{validate(r){let i=O_(r);if(!i.ok)return[{code:"schema-violation",path:"",message:i.message,severity:"error",source:"catalog"}];let a=i.text,s=Hj(a);if(s>1048576)return[{code:"payload-too-large",path:"",message:"the envelope is ".concat(s," UTF-8 bytes, over the ").concat(M5,"-byte budget (\xA74.3 item 3)"),severity:"error",source:"catalog",detail:{limitBytes:M5,actualBytes:s}}];let c=n.validateEnvelope(i.value);if(c.length>0)return j5(c,"");let l=i.value,p=l.catalogId;if(p!==void 0&&p!==e.catalogId)return[{code:"schema-violation",path:"/catalogId",message:"the envelope must name its catalogue (".concat(String(e.catalogId),")"),severity:"error",source:"catalog",detail:{expected:e.catalogId,found:p}}];if(l.mode==="preview")return[{code:"unsupported-mode",path:"/mode",message:'mode "preview" is reserved and not rendered by this catalogue (\xA710.3)',severity:"error",source:"catalog",detail:{mode:"preview"}}];let d=l.root,m=d.component;if(typeof m!="string"||!(m in e.components))return[{code:"unknown-component",path:"/root/component",message:"no catalogued component is named ".concat(String(m)),severity:"error",source:"catalog",detail:{component:m}}];let u=e.components[m];if(u===void 0)return[{code:"unknown-component",path:"/root/component",message:"no catalogued component is named ".concat(m),severity:"error",source:"catalog",detail:{component:m}}];let h=u["x-sentropic"];if(h?.status==="unknown")return[{code:"component-unavailable",path:"/root/component",message:"".concat(m,' is catalogued as a placeholder (x-sentropic.status "unknown") and cannot render'),severity:"error",source:"catalog",detail:{component:m}}];let f=l.contract,g=h?.contract;if(typeof g!="string")return[{code:"schema-violation",path:"/root/component",message:"the catalogued entry for ".concat(m," declares no x-sentropic contract"),severity:"error",source:"catalog"}];let x=D5(g),k=typeof f=="string"?D5(f):void 0;if(x===void 0||k===void 0)return[{code:"schema-violation",path:"/contract",message:'contract versions are "major.minor" strings (\xA74.4): envelope '.concat(String(f),", entry ").concat(g),severity:"error",source:"catalog"}];if(k.major!==x.major||k.minor>x.minor)return[{code:"unsupported-contract",path:"/contract",message:"the envelope targets contract ".concat(String(f)," but ").concat(m," is at ").concat(g," (\xA74.4: an envelope may be older, never newer)"),severity:"error",source:"catalog",detail:{expected:g,found:f}}];let _=n.validateComponent(m,d);if(_.length>0)return j5(_,"/root");let w=h?.engine;if(typeof w!="string"||!w.startsWith("lazy:"))return[];let S=w.slice(5),T=o?.[S],B="/root/".concat(A5);if(T===void 0)return[{code:"host-capability-missing",path:B,message:"the host did not inject the ".concat(S," semantic port (engine ").concat(w,"); the owning runtime validates this payload (\xA74.3 item 2)"),severity:"error",source:"host",detail:{chunk:S,engine:w}}];let M;try{M=T.validate(d[A5])}catch(z){return[{...z_(S,z instanceof Error?z.message:String(z)),path:B}]}return M.map(z=>({code:z.severity==="warning"?z.code:"semantic-invalid",path:"".concat(B).concat(z.pointer??""),message:z.message,severity:z.severity,source:T.source,detail:{code:z.code}}))}}}function En(t){return typeof t=="object"&&!!t&&!Array.isArray(t)}function Nf(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function Ud(t,e){if(t===e)return!0;if(!En(t)&&!Array.isArray(t))return!1;if(Array.isArray(t))return!Array.isArray(e)||t.length!==e.length?!1:t.every((r,i)=>Ud(r,e[i]));if(!En(e))return!1;let n=Object.keys(t),o=Object.keys(e);return n.length===o.length&&n.every(r=>Object.hasOwn(e,r)&&Ud(t[r],e[r]))}function Uj(t,e){switch(t){case"object":return En(e);case"array":return Array.isArray(e);case"string":return typeof e=="string";case"number":return typeof e=="number";case"integer":return typeof e=="number"&&Number.isInteger(e);case"boolean":return typeof e=="boolean";case"null":return e===null;default:return!0}}function Kj(t,e){let n=t.lastIndexOf("/");return n===-1?e:"".concat(t.slice(0,n+1)).concat(e)}function Xj(t,e,n){if(!e.startsWith("/"))throw Error('the $ref "'.concat(n,'" must use a JSON pointer (URI fragments are not used by the registered documents)'));let o=t;for(let r of e.slice(1).split("/")){let i=r.replace(/~1/g,"/").replace(/~0/g,"~");if(Array.isArray(o)){let a=Number(i);if(!Number.isInteger(a)||a<0||a>=o.length)throw Error('the $ref "'.concat(n,'" does not resolve: no array item ').concat(i));o=o[a]}else{if(!En(o)||!Object.hasOwn(o,i))throw Error('the $ref "'.concat(n,'" does not resolve: no property "').concat(i,'"'));o=o[i]}}return o}function Xc(t,e){if(typeof t=="boolean")return;if(!En(t))throw Error("the ".concat(e," contains a schema that is neither a boolean nor an object"));for(let r of Object.keys(t))if(!(r.startsWith("x-")||Gj.has(r)||Wj.has(r)))throw Vj.has(r)?Error("the ".concat(e,' uses "').concat(r,"\", outside the browser structure interpreter's keyword set (\xA76.4): extend src/structure/interpreter.ts and its oracle test")):Error("the ".concat(e,' uses unknown keyword "').concat(r,'": extend src/structure/interpreter.ts and its oracle test, or allowlist it as an annotation'));let n=t.items;if(Array.isArray(n))throw Error("the ".concat(e,' uses "items" in its legacy tuple form, which the browser structure interpreter does not implement'));if(n!==void 0&&!En(n)&&typeof n!="boolean")throw Error("the ".concat(e,' uses "items" in a non-schema form, which the browser structure interpreter does not implement'));for(let r of["additionalProperties","unevaluatedProperties","not"]){let i=t[r];if(i!==void 0&&!En(i)&&typeof i!="boolean")throw Error("the ".concat(e,' uses "').concat(r,'" in a non-schema form, which the browser structure interpreter does not implement'))}for(let r of["allOf","anyOf","oneOf"]){let i=t[r];if(i!==void 0&&!Array.isArray(i))throw Error("the ".concat(e,' uses "').concat(r,'" in a non-array form, which the browser structure interpreter does not implement'))}let o=[];for(let r of["$defs","properties","components"]){let i=t[r];if(En(i))for(let a of Object.values(i))o.push(["".concat(r," entry"),a])}n!==void 0&&o.push(["items",n]);for(let r of["additionalProperties","unevaluatedProperties","not"]){let i=t[r];(En(i)||typeof i=="boolean")&&o.push([r,i])}for(let r of["allOf","anyOf","oneOf"]){let i=t[r];if(Array.isArray(i))for(let a of i)o.push([r,a])}for(let[r,i]of o)Xc(i,"".concat(e," (").concat(r,")"))}function Xo(t,e,n,o,r,i){if(t===!0)return{ok:!0,evaluated:If};if(t===!1||t==null)return i.push({pointer:n,message:"the schema is false here",keyword:"schema"}),{ok:!1,evaluated:If};if(!En(t))return i.push({pointer:n,message:"the schema node is neither a boolean nor an object",keyword:"schema"}),{ok:!1,evaluated:If};let a=!0,s=new Set,c=k=>{a=!1,i.push(k)},l=t.$ref,p=o;if(typeof l=="string"){let k=r.resolve(l,o),_=Xo(k.schema,e,n,k.baseId,r,i);for(let w of _.evaluated)s.add(w);_.ok||(a=!1)}let d=t.type;if(d!==void 0){let k=Array.isArray(d)?d:[d],_=k.filter(w=>typeof w=="string");k.length>0&&_.length===k.length&&!_.some(w=>Uj(w,e))&&c({pointer:n,message:"must be ".concat(_.join(",")),keyword:"type"})}let m=t.enum;Array.isArray(m)&&!m.some(k=>Ud(k,e))&&c({pointer:n,message:"must be equal to one of the allowed values",keyword:"enum"}),Object.hasOwn(t,"const")&&!Ud(t.const,e)&&c({pointer:n,message:"must be equal to constant",keyword:"const"});let u=t.pattern;if(typeof u=="string"&&typeof e=="string"&&!new RegExp(u,"u").test(e)&&c({pointer:n,message:'must match pattern "'.concat(u,'"'),keyword:"pattern"}),En(e)){let k=Object.keys(e),_=t.required;if(Array.isArray(_))for(let B of _)typeof B=="string"&&!Object.hasOwn(e,B)&&c({pointer:n,message:"must have required property '".concat(B,"'"),keyword:"required",missingProperty:B});let w=En(t.properties)?t.properties:{};for(let[B,M]of Object.entries(w))Object.hasOwn(e,B)&&(s.add(B),Xo(M,e[B],"".concat(n,"/").concat(Nf(B)),p,r,i).ok||(a=!1));let S=t.additionalProperties,T=new Set(Object.keys(w));if(S===!1)for(let B of k)T.has(B)||(s.add(B),c({pointer:n,message:"must NOT have additional properties",keyword:"additionalProperties",additionalProperty:B}));else if(En(S)||S===!0){let B=En(S);for(let M of k)T.has(M)||(s.add(M),!B)||Xo(S,e[M],"".concat(n,"/").concat(Nf(M)),p,r,i).ok||(a=!1)}}if(Array.isArray(e)){let k=t.minItems;typeof k=="number"&&e.length<k&&c({pointer:n,message:"must NOT have fewer than ".concat(k," items"),keyword:"minItems"});let _=t.maxItems;typeof _=="number"&&e.length>_&&c({pointer:n,message:"must NOT have more than ".concat(_," items"),keyword:"maxItems"});let w=t.items;w!==void 0&&!Array.isArray(w)&&e.forEach((S,T)=>{Xo(w,S,"".concat(n,"/").concat(T),p,r,i).ok||(a=!1)})}let h=t.allOf;if(Array.isArray(h))for(let k of h){let _=Xo(k,e,n,p,r,i);for(let w of _.evaluated)s.add(w);_.ok||(a=!1)}let f=t.anyOf;if(Array.isArray(f)){let k=!1,_=[];for(let w of f){let S=[],T=Xo(w,e,n,p,r,S);if(_.push(S),T.ok){k=!0;for(let B of T.evaluated)s.add(B)}}if(!k){a=!1;for(let w of _)i.push(...w);i.push({pointer:n,message:"must match a schema in anyOf",keyword:"anyOf"})}}let g=t.oneOf;if(Array.isArray(g)){let k=[],_=[],w=0,S=-1;if(g.forEach((T,B)=>{let M=[],z=Xo(T,e,n,p,r,M);k.push(M),_.push(z.evaluated),z.ok&&(w+=1,S=B)}),w===1&&S>=0)for(let T of _[S]??[])s.add(T);else{a=!1;for(let T of k)i.push(...T);i.push({pointer:n,message:"must match exactly one schema in oneOf",keyword:"oneOf"})}}let x=t.not;if(x!==void 0&&Xo(x,e,n,p,r,[]).ok&&(i.push({pointer:n,message:"must NOT be valid",keyword:"not"}),a=!1),En(e)){let k=t.unevaluatedProperties;if(k!==void 0){let _=Object.keys(e).filter(w=>!s.has(w));if(k===!1)for(let w of _)c({pointer:n,message:"must NOT have unevaluated properties",keyword:"unevaluatedProperties",additionalProperty:w});else if((En(k)||k===!0)&&En(k))for(let w of _)Xo(k,e[w],"".concat(n,"/").concat(Nf(w)),p,r,i).ok?s.add(w):a=!1}}return{ok:a,evaluated:s}}function Yj(t){let e=new qj,n=e.register(t.catalog,"catalogue document");if(typeof t.catalog.catalogId!="string"||t.catalog.catalogId.length===0)throw Error("the catalogue document must carry its catalogId (\xA75.2: $id = catalogId)");let o=e.register(t.envelopeSchema,"envelope schema");return e.register(t.commonTypes,"A2UI common types"),e.register(L5,"built catalog.json stub"),Xc(t.catalog,"catalogue document"),Xc(t.envelopeSchema,"envelope schema"),Xc(t.commonTypes,"A2UI common types"),Xc(L5,"built catalog.json stub"),{validateEnvelope(r){let i=[];return Xo(t.envelopeSchema,r,"",o,e,i),i},validateComponent(r,i){let a=t.catalog.components[r];if(a===void 0)return[{pointer:"/component",message:"no catalogued component is named ".concat(r),keyword:"$compile"}];let s=[];return Xo(a,i,"",n,e,s),s}}}function Zj(){return new Proxy({},{get(t,e){return L_.get(e)}})}function N5(){return Hf===void 0&&(Hf=Fj({catalog:$5,envelopeSchema:z5,commonTypes:O5,ports:Zj(),structure:Yj({catalog:$5,envelopeSchema:z5,commonTypes:O5})})),Hf}function Jj(t,e){L_.set(t,e)}async function I5(t){let e=Ff.get(t);if(e!==void 0)return e;let n=(t==="BpmnCanvas"?Ko(()=>Promise.resolve().then(()=>(Ua(),Df)).then(o=>o.t),[]):t==="DecisionDossier"?Ko(()=>Promise.reject(new Error("engine not included in this per-component resource")),[]):Promise.reject(Error("core components load no engine chunk"))).catch(o=>{throw Ff.delete(t),o});return Ff.set(t,n),n}function r$(t){return t.root??{}}function i$(t,e){return{code:"unknown-component",path:"/root/component",message:"<".concat("st-".concat(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),'> requires root.component "').concat(t,'", got "').concat(e,'"'),severity:"error",source:"catalog",detail:{expected:t,found:e}}}function a$(t,e){if(t==="BarChart")return!1;let n=og[t];return e.length>0&&e.every(o=>o.code==="host-capability-missing"&&o.detail?.chunk===n)}function s$(t){let e=t?.bpmn?.watermark;if(e===void 0)return;let{hidden:n,license:o}=e;if(n===!0&&typeof o=="string"&&o.trim()!=="")return{hidden:!0,license:o}}function Tg(t){let e=He("idle"),n=He(ha([])),o=He(null),r=new Set,i=!1,a=0;function s(m){if(It(e,m,!0),!i&&(m==="rendered"||m==="refused")){i=!0;for(let u of r)u()}}function c(m){return i?m():r.add(m),()=>r.delete(m)}function l(...m){It(n,[...m],!0)}function p(m){E(n).some(u=>u.code===m.code&&u.path===m.path&&u.message===m.message)||It(n,[...E(n),m],!0)}async function d(m,u){let h=++a;It(e,"rendering");try{let f=O_(m),g=N5().validate(f.ok?f.value:m);if(h!==a)return;let x=(f.ok?f.value:m)?.root?.component;if(typeof x=="string"&&x!==t){It(n,[i$(t,x)],!0),It(o,null),s("refused");return}let k=g.filter(w=>w.severity==="error");if(k.length>0&&!a$(t,k)){It(n,[...g],!0),It(o,null),s("refused");return}if(t!=="BarChart"&&k.length>0){let w=await I5(t);if(Jj(og[t],w.port),h!==a)return;let S=N5().validate(f.ok?f.value:m);if(h!==a)return;if(S.filter(T=>T.severity==="error").length>0){It(n,[...S],!0),It(o,null),s("refused");return}It(n,[...S],!0)}else It(n,[...g],!0);if(!f.ok){It(o,null),s("refused");return}let _=r$(f.value);if(t==="BarChart"){let{component:w,id:S,...T}=_;It(o,{kind:"bar-chart",props:T},!0)}else if(t==="BpmnCanvas"){let{toXml:w}=await I5(t),S=await w(_.document);if(h!==a)return;if(!S.ok){It(n,[{code:"semantic-invalid",path:"/root/document",message:S.message,severity:"error",source:"bpmn-canvas",detail:{code:S.code}}],!0),It(o,null),s("refused");return}It(o,{kind:"bpmn",xml:S.xml,assetBase:typeof u?.assetBase=="string"?u.assetBase:void 0,watermark:s$(u)},!0)}else It(o,{kind:"dossier",document:_.document},!0);s("rendered")}catch(f){if(h!==a)return;let g=f instanceof Error?f.message:String(f),x=og[t];l(x===void 0?{code:"semantic-invalid",path:"",message:"the element failed to render the envelope: ".concat(g),severity:"error",source:"host",detail:{cause:g}}:z_(x,g)),s("refused")}}return{get state(){return E(e)},get diagnostics(){return E(n)},get payload(){return E(o)},ingest:d,onSettle:c,noteEngineDiagnostic:p}}function c$(t){let e=rg.get(t);if(e===void 0){let n;e={promise:new Promise(o=>{n=o}),resolve:n},rg.set(t,e),qd.get(t)?.onSettle(n)}return e}function l$(t,e){qd.set(t,e);let n=rg.get(t);n!==void 0&&e.onSettle(n.resolve)}function Wf(t){let e=customElements.get(t);if(e===void 0)throw Error("the ".concat(t," element is not registered; import its module first"));let n=e.prototype;Object.defineProperty(n,"state",{get(){return qd.get(this)?.state??"idle"}}),Object.defineProperty(n,"diagnostics",{get(){return qd.get(this)?.diagnostics??[]}}),Object.defineProperty(n,"ready",{get(){return c$(this).promise}})}function Gf(t){return'[data-st-theme="'.concat(t,'"]')}function d$(t,e){return t.replace(RegExp("(^|[\\s,>+~])\\:root(?=\\[data-color-mode=)","g"),"$1".concat(Gf(e))).replace(RegExp("(^|[\\s,>+~])\\:root(?=\\:not\\()","g"),"$1".concat(Gf(e))).replace(RegExp("(^|[\\s,>+~])\\:root(?=[\\s,{])","g"),"$1".concat(Gf(e)))}function ag(t){return typeof t=="string"&&m$.includes(t)?t:"sent-tech"}async function h$(t){let e=ig.get(t);if(e!==void 0)return e;let n=await u$[t](),o=new CSSStyleSheet;return o.replaceSync(d$(n,t)),ig.set(t,o),o}async function H5(t,e){let n=await h$(e);t.adoptedStyleSheets=[...t.adoptedStyleSheets.filter(o=>o!==n),n]}function f$(t,e){let n=ig.get(e);t.adoptedStyleSheets=t.adoptedStyleSheets.filter(o=>o!==n)}function g$(t){return t==="light"||t==="dark"?t:void 0}function y$(t){let e=()=>{for(let o of[...t.querySelectorAll("style")]){let r=o.textContent??"";try{let i=new CSSStyleSheet;i.replaceSync(r),t.adoptedStyleSheets=[...t.adoptedStyleSheets.filter(a=>a!==i),i],o.remove()}catch{}}};e();let n=new MutationObserver(e);return n.observe(t,{childList:!0}),()=>n.disconnect()}function Cg(t,e){let n=t.getRootNode(),o=n instanceof ShadowRoot?n:void 0,r=o?.host;r instanceof HTMLElement&&l$(r,e.runtime);let i=ag(e.theme),a;return o!==void 0&&(H5(o,i),a=y$(o)),{update(s){let c=ag(s.theme);c!==i&&(o!==void 0&&(f$(o,i),H5(o,c)),i=c)},destroy(){a?.()}}}function Bg(t){return ag(t)}function Rg(t){return g$(t)}function N_(t){if(t===null||t.textContent===null)return;let e=t.textContent;try{return{value:JSON.parse(e),parsed:!0}}catch{return{value:e,parsed:!1}}}function I_(t){for(let e of t.children)if(e instanceof HTMLScriptElement&&e.type==="application/json")return N_(e)}function Mg(t){let e=t.getElementById("st-host-config");if(e===null)return;let n=N_(e);return n!==void 0&&n.parsed?n.value:void 0}function v$(t,e){let n=new MutationObserver(()=>{e(I_(t))});return n.observe(t,{childList:!0,subtree:!1}),()=>n.disconnect()}function Ag(t,e){let n=t.getRootNode(),o=n instanceof ShadowRoot&&n.host instanceof HTMLElement?n.host:void 0,r;if(o!==void 0){let i=I_(o);i!==void 0&&e.apply(i.value),r=v$(o,a=>{e.apply(a===void 0?void 0:a.value)})}return{destroy(){r?.()}}}function sg(t,e,n,o={}){let r={event:"intent",name:e,target:n,context:o};t.dispatchEvent(new CustomEvent("st-intent",{detail:r,bubbles:!0,composed:!0}))}function Pg(t,e){wa(e,!0),Ps(t,k$);var n=x$(),o=he(n),r=he(o);Xt(o);var i=ue(o,2);Qn(i,21,()=>e.diagnostics,a=>a.code+"|"+a.path+"|"+a.message,(a,s)=>{var c=b$(),l=he(c),p=he(l,!0);Xt(l);var d=ue(l,2),m=he(d,!0);Xt(d);var u=ue(d,2),h=he(u,!0);Xt(u),Xt(c),Jt(()=>{rn(p,E(s).code),rn(m,E(s).path||"(envelope)"),rn(h,E(s).message)}),Mt(a,c)}),Xt(i),Xt(n),Jt(()=>rn(r,"The envelope does not render \u2014 ".concat(e.diagnostics.length??"","\n ").concat(e.diagnostics.length===1?"diagnostic":"diagnostics",":"))),Mt(t,n),_a()}function E$(t,e){wa(e,!0),Ps(t,_$);let n=uo(e,"envelope",7),o=uo(e,"hostConfig",7),r=Tg("BarChart"),i=He(void 0),a=He(void 0),s=He(void 0),c=He(!1);Eg(()=>{It(s,Mg(globalThis.document),!0),It(c,!0)});let l=Ft(()=>n()??E(a)),p=Ft(()=>o()??E(s));Jd(()=>{(E(l)!==void 0||E(c))&&r.ingest(E(l),E(p))});var d={get envelope(){return n()},set envelope(g){n(g),xa()},get hostConfig(){return o()},set hostConfig(g){o(g),xa()}},m=w$(),u=he(m),h=g=>{Pg(g,{get diagnostics(){return r.diagnostics}})},f=g=>{Nj(g,ND(()=>r.payload.props,{onSelect:x=>{E(i)!==void 0&&sg(E(i),"select",x)},onSelectKey:x=>{x!==null&&E(i)!==void 0&&sg(E(i),"select",x)}}))};return $e(u,g=>{r.state==="refused"?g(h):r.payload?.kind==="bar-chart"&&g(f,1)}),Xt(m),j_(m,g=>It(i,g),()=>E(i)),Li(m,(g,x)=>Cg?.(g,x),()=>({runtime:r,theme:E(p)?.theme,colorScheme:E(p)?.colorScheme})),Li(m,(g,x)=>Ag?.(g,x),()=>({apply:g=>It(a,g,!0)})),Jt((g,x)=>{V(m,"data-st-theme",g),V(m,"data-color-mode",x)},[()=>Bg(E(p)?.theme),()=>Rg(E(p)?.colorScheme)]),Mt(t,m),_a(d)}function S$(t,e){let n=e,o=0,r;async function i(){let a=++o,s=n.runtime.payload;if(s===null||s.kind!=="bpmn")return;let c=await Ko(()=>Promise.resolve().then(()=>(Ua(),Df)).then(l=>l.t),[]);a===o&&(r?.(),r=await c.renderBpmn(t,s,n.runtime.noteEngineDiagnostic),a!==o&&(r?.(),r=void 0))}return i(),{update(a){n=a,i()},destroy(){o++,r?.(),r=void 0}}}function T$(t,e){let n=e,o=0,r;async function i(){let a=++o,s=n.runtime.payload;if(s===null||s.kind!=="dossier")return;let c=await Ko(()=>Promise.reject(new Error("engine not included in this per-component resource")),[]);a===o&&(r?.(),r=c.renderDossier(t,s.document,l=>{sg(t,"choose-option",l)}),a!==o&&(r?.(),r=void 0))}return i(),{update(a){n=a,i()},destroy(){o++,r?.(),r=void 0}}}function M$(t,e){wa(e,!0),Ps(t,R$);let n=uo(e,"envelope",7),o=uo(e,"hostConfig",7),r=Tg("BpmnCanvas"),i=He(void 0),a=He(void 0),s=He(!1);Eg(()=>{It(a,Mg(globalThis.document),!0),It(s,!0)});let c=Ft(()=>n()??E(i)),l=Ft(()=>o()??E(a));Jd(()=>{(E(c)!==void 0||E(s))&&r.ingest(E(c),E(l))});var p={get envelope(){return n()},set envelope(f){n(f),xa()},get hostConfig(){return o()},set hostConfig(f){o(f),xa()}},d=B$(),m=he(d),u=f=>{Pg(f,{get diagnostics(){return r.diagnostics}})},h=f=>{var g=C$();Li(g,(x,k)=>S$?.(x,k),()=>({runtime:r})),Mt(f,g)};return $e(m,f=>{r.state==="refused"?f(u):r.payload?.kind==="bpmn"&&f(h,1)}),Xt(d),Li(d,(f,g)=>Cg?.(f,g),()=>({runtime:r,theme:E(l)?.theme,colorScheme:E(l)?.colorScheme})),Li(d,(f,g)=>Ag?.(f,g),()=>({apply:f=>It(i,f,!0)})),Jt((f,g)=>{V(d,"data-st-theme",f),V(d,"data-color-mode",g)},[()=>Bg(E(l)?.theme),()=>Rg(E(l)?.colorScheme)]),Mt(t,d),_a(p)}function j$(t,e){wa(e,!0),Ps(t,D$);let n=uo(e,"envelope",7),o=uo(e,"hostConfig",7),r=Tg("DecisionDossier"),i=He(void 0),a=He(void 0),s=He(!1);Eg(()=>{It(a,Mg(globalThis.document),!0),It(s,!0)});let c=Ft(()=>n()??E(i)),l=Ft(()=>o()??E(a));Jd(()=>{(E(c)!==void 0||E(s))&&r.ingest(E(c),E(l))});var p={get envelope(){return n()},set envelope(f){n(f),xa()},get hostConfig(){return o()},set hostConfig(f){o(f),xa()}},d=P$(),m=he(d),u=f=>{Pg(f,{get diagnostics(){return r.diagnostics}})},h=f=>{var g=A$();Li(g,(x,k)=>T$?.(x,k),()=>({runtime:r})),Mt(f,g)};return $e(m,f=>{r.state==="refused"?f(u):r.payload?.kind==="dossier"&&f(h,1)}),Xt(d),Li(d,(f,g)=>Cg?.(f,g),()=>({runtime:r,theme:E(l)?.theme,colorScheme:E(l)?.colorScheme})),Li(d,(f,g)=>Ag?.(f,g),()=>({apply:f=>It(i,f,!0)})),Jt((f,g)=>{V(d,"data-st-theme",f),V(d,"data-color-mode",g)},[()=>Bg(E(l)?.theme),()=>Rg(E(l)?.colorScheme)]),Mt(t,d),_a(p)}var Ts,_n,yP,F5,vP,Qc,Kd,Id,Hd,Gr,W5,bP,xP,cg,g5,kP,Oo,vr,ba,lg,_P,V5,y5,pg,Ms,EP,Yc,nl,v5,SP,Fd,zi,dg,TP,U5,Vf,Uf,qf,Xd,CP,fe,ae,no,ua,VP,Dd,ws,te,Kf,Yo,Xf,Zc,jf,Ss,Od,b5,qP,As,Fr,YP,JP,jd,Vd,ga,s_,k5,p_,d_,m_,mD,Ld,Ur,pe,Zo,Yt,No,to,mo,jo,w_,fa,va,qc,B_,Qf,S5,vD,kD,zd,eg,SD,T5,C5,DD,jD,$D,R5,LD,HD,$_,WD,GD,VD,Lf,oj,rj,ij,aj,sj,cj,lj,pj,dj,mj,uj,hj,fj,gj,yj,vj,bj,xj,kj,wj,_j,Ej,Sj,Tj,Cj,Bj,Rj,Mj,Aj,Pj,Dj,jj,$j,zj,Oj,Lj,M5,A5,$5,z5,O5,L5,Wj,Gj,Vj,qj,If,L_,Hf,Qj,t$,e$,n$,o$,Ko,og,Ff,qd,rg,p$,m$,u$,ig,b$,x$,k$,w$,_$,C$,B$,R$,A$,P$,D$,Uh=gn(()=>{typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");Ts={},_n=Symbol(),yP="http://www.w3.org/1999/xhtml",F5=Array.isArray,vP=Array.prototype.indexOf,Qc=Array.prototype.includes,Kd=Array.from,Id=Object.keys,Hd=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,W5=Object.getOwnPropertyDescriptors,bP=Object.prototype,xP=Array.prototype,cg=Object.getPrototypeOf,g5=Object.isExtensible;kP=()=>{};Oo=1024,vr=2048,ba=4096,lg=8192,_P=16384,V5=32768,y5=1<<25,pg=65536,Ms=1<<19,EP=1<<20,Yc=1<<25,nl=65536,v5=1<<21,SP=1<<22,Fd=1<<23,zi=Symbol("$state"),dg=Symbol("legacy props"),TP=Symbol(""),U5=Symbol("attributes"),Vf=Symbol("class"),Uf=Symbol("style"),qf=Symbol("text"),Xd=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},CP=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");fe=!1;no=null;ua=[];VP=~(vr|ba|Oo);Dd=!1;ws=null,te=null,Kf=null,Yo=null,Xf=null,Zc=!1,jf=!1,Ss=null,Od=null,b5=0,qP=1,As=class Yf{id=qP++;#t=!1;linked=!0;#e=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#s=new Set;#o=new Set;#i=new Set;#r=0;#a=new Map;#m=null;#c=[];#h=[];#u=new Set;#l=new Set;#p=new Map;#d=new Set;is_fork=!1;#v=!1;#k(){if(this.is_fork)return!0;for(let o of this.#a.keys()){for(var e=o,n=!1;e.parent!==null;){if(this.#p.has(e)){n=!0;break}e=e.parent}if(!n)return!0}return!1}skip_effect(e){this.#p.has(e)||this.#p.set(e,{d:[],m:[]}),this.#d.delete(e)}unskip_effect(e,n=o=>this.schedule(o)){var o=this.#p.get(e);if(o){this.#p.delete(e);for(var r of o.d)pn(r,vr),n(r);for(r of o.m)pn(r,ba),n(r)}this.#d.add(e)}#g(){if(this.#t=!0,b5++>1e3&&(this.#f(),KP()),!this.#k()){for(let c of this.#u)this.#l.delete(c),pn(c,vr),this.schedule(c);for(let c of this.#l)pn(c,ba),this.schedule(c)}let e=this.#c;this.#c=[],this.apply();var n=Ss=[],o=[],r=Od=[];for(let c of e)try{this.#_(c,n,o)}catch(l){throw o_(c),l}if(te=null,r.length>0){var i=Yf.ensure();for(let c of r)i.schedule(c)}if(Ss=null,Od=null,this.#k()){this.#y(o),this.#y(n);for(let[c,l]of this.#p)n_(c,l);r.length>0&&te.#g();return}let a=this.#w();if(a)a.#b(this);else{this.#u.clear(),this.#l.clear();for(let c of this.#s)c(this);this.#s.clear(),Kf=this,x5(o),x5(n),Kf=null,this.#m?.resolve();var s=te;if(this.linked&&this.#r===0&&this.#f(),this.#c.length>0){s===null&&(s=this,this.#x());let c=s;c.#c.push(...this.#c.filter(l=>!c.#c.includes(l)))}s!==null&&s.#g()}}#_(e,n,o){e.f^=Oo;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#p.has(r))&&r.fn!==null){a?r.f^=Oo:i&4?n.push(r):rl(r)&&(i&16&&this.#l.add(r),Rs(r));var s=r.first;if(s!==null){r=s;continue}}for(;r!==null;){var c=r.next;if(c!==null){r=c;break}r=r.parent}}}#w(){for(var e=this.#e;e!==null;){if(!e.is_fork){for(let[n,[,o]]of this.current)if(e.current.has(n)&&!o)return e}e=e.#e}return null}#b(e){for(let[o,r]of e.current)!this.previous.has(o)&&e.previous.has(o)&&this.previous.set(o,e.previous.get(o)),this.current.set(o,r);for(let[o,r]of e.async_deriveds){let i=this.async_deriveds.get(o);i&&r.promise.then(i.resolve)}let n=o=>{var r=o.reactions;if(r!==null)for(let s of r){var i=s.f;if(i&2)n(s);else{var a=s;i&4194320&&!this.async_deriveds.has(a)&&(this.#l.delete(a),pn(a,vr),this.schedule(a))}}};for(let o of this.current.keys())n(o);this.oncommit(()=>e.discard()),e.#f(),te=this,this.#g()}#y(e){for(var n=0;n<e.length;n+=1)t_(e[n],this.#u,this.#l)}capture(e,n,o=!1){e.v!==_n&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[n,o]),Yo?.set(e,n)),this.is_fork||(e.v=n)}activate(){te=this}deactivate(){te=null,Yo=null}flush(){try{jf=!0,te=this,this.#g()}finally{b5=0,Xf=null,Ss=null,Od=null,jf=!1,te=null,Yo=null,ga.clear()}}discard(){for(let e of this.#o)e(this);this.#o.clear(),this.#i.clear(),this.#f()}register_created_effect(e){this.#h.push(e)}increment(e,n){if(this.#r+=1,e){let o=this.#a.get(n)??0;this.#a.set(n,o+1)}}decrement(e,n){if(--this.#r,e){let o=this.#a.get(n)??0;o===1?this.#a.delete(n):this.#a.set(n,o-1)}this.#v||(this.#v=!0,Oi(()=>{this.#v=!1,this.linked&&this.flush()}))}transfer_effects(e,n){for(let o of e)this.#u.add(o);for(let o of n)this.#l.add(o);e.clear(),n.clear()}oncommit(e){this.#s.add(e)}ondiscard(e){this.#o.add(e)}on_fork_commit(e){this.#i.add(e)}run_fork_commit_callbacks(){for(let e of this.#i)e(this);this.#i.clear()}settled(){return(this.#m??=G5()).promise}static ensure(){if(te===null){let e=te=new Yf;e.#x(),!jf&&!Zc&&Oi(()=>{e.#t||e.flush()})}return te}apply(){Yo=null}schedule(e){if(Xf=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768))e.b.defer_effect(e);else{for(var n=e;n.parent!==null;){n=n.parent;var o=n.f;if(Ss!==null&&n===Yt&&(pe===null||!(pe.f&2)))return;if(o&96){if(!(o&1024))return;n.f^=Oo}}this.#c.push(n)}}#x(){ws===null?ws=this:(ws.#n=this,this.#e=ws),ws=this}#f(){var e=this.#e,n=this.#n;e===null||(e.#n=n),n===null?ws=e:n.#e=e,this.linked=!1}};Fr=null;YP=pg|Ms;JP=class{parent;is_pending=!1;transform_error;#t;#e=fe?ae:null;#n;#s;#o;#i=null;#r=null;#a=null;#m=null;#c=0;#h=0;#u=!1;#l=new Set;#p=new Set;#d=null;#v=XP(()=>(this.#d=ka(this.#c),()=>{this.#d=null}));constructor(t,e,n,o){this.#t=t,this.#n=e,this.#s=r=>{var i=Yt;i.b=this,i.f|=128,n(r)},this.parent=Yt.b,this.transform_error=o??this.parent?.transform_error??(r=>r),this.#o=xg(()=>{if(fe){let r=this.#e;Zd();let i=r.data==="[!";if(r.data.startsWith("[?")){let a=JSON.parse(r.data.slice(2));this.#g(a)}else i?this.#_():this.#k()}else this.#w()},YP),fe&&(this.#t=ae)}#k(){try{this.#i=$o(()=>this.#s(this.#t))}catch(t){this.error(t)}}#g(t){let e=this.#n.failed;e&&(this.#a=$o(()=>{e(this.#t,()=>t,()=>()=>{})}))}#_(){let t=this.#n.pending;t&&(this.is_pending=!0,this.#r=$o(()=>t(this.#t)),Oi(()=>{var e=this.#m=document.createDocumentFragment(),n=Lo();e.append(n),this.#i=this.#y(()=>$o(()=>this.#s(n))),this.#h===0&&(this.#t.before(e),this.#m=null,ya(this.#r,()=>{this.#r=null}),this.#b(te))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#h=0,this.#c=0,this.#i=$o(()=>{this.#s(this.#t)}),this.#h>0){var t=this.#m=document.createDocumentFragment();_g(this.#i,t);let e=this.#n.pending;this.#r=$o(()=>e(this.#t))}else this.#b(te)}catch(e){this.error(e)}}#b(t){this.is_pending=!1,t.transfer_effects(this.#l,this.#p)}defer_effect(t){t_(t,this.#l,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#y(t){var e=Yt,n=pe,o=no;br(this.#o),Io(this.#o),Cs(this.#o.ctx);try{return As.ensure(),t()}catch(r){return J5(r),null}finally{br(e),Io(n),Cs(o)}}#x(t,e){this.has_pending_snippet()?(this.#h+=t,this.#h===0&&(this.#b(e),this.#r&&ya(this.#r,()=>{this.#r=null}),this.#m&&=(this.#t.before(this.#m),null))):this.parent&&this.parent.#x(t,e)}update_pending_count(t,e){this.#x(t,e),this.#c+=t,!(!this.#d||this.#u)&&(this.#u=!0,Oi(()=>{this.#u=!1,this.#d&&Bs(this.#d,this.#c)}))}get_effect_pending(){return this.#v(),E(this.#d)}error(t){if(!this.#n.onerror&&!this.#n.failed)throw t;te?.is_fork?(this.#i&&te.skip_effect(this.#i),this.#r&&te.skip_effect(this.#r),this.#a&&te.skip_effect(this.#a),te.on_fork_commit(()=>{this.#f(t)})):this.#f(t)}#f(t){this.#i&&=(Un(this.#i),null),this.#r&&=(Un(this.#r),null),this.#a&&=(Un(this.#a),null),fe&&(eo(this.#e),WP(),eo(Wd()));var e=this.#n.onerror;let n=this.#n.failed;var o=!1,r=!1;let i=()=>{o?FP():(o=!0,r&&IP(),this.#a!==null&&ya(this.#a,()=>{this.#a=null}),this.#y(()=>{this.#w()}))},a=s=>{try{r=!0,e?.(s,i),r=!1}catch(c){$i(c,this.#o&&this.#o.parent)}n&&(this.#a=this.#y(()=>{try{return $o(()=>{var c=Yt;c.b=this,c.f|=128,n(this.#t,()=>s,()=>i)})}catch(c){return $i(c,this.#o.parent),null}}))};Oi(()=>{var s;try{s=this.transform_error(t)}catch(c){$i(c,this.#o&&this.#o.parent);return}typeof s=="object"&&s&&typeof s.then=="function"?s.then(a,c=>$i(c,this.#o&&this.#o.parent)):a(s)})}};jd=Symbol("obsolete");Vd=new Set,ga=new Map,s_=!1;mD=null,Ld=!1,Ur=!1;pe=null,Zo=!1;Yt=null;No=null;to=null,mo=0,jo=null;w_=1,fa=0,va=fa;qc=Symbol("events"),B_=new Set,Qf=new Set;S5=null;vD=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});[..."allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];kD=["touchstart","touchmove"];zd=new Map;eg=new WeakMap;SD=class{anchor;#t=new Map;#e=new Map;#n=new Map;#s=new Set;#o=!0;constructor(t,e=!0){this.anchor=t,this.#o=e}#i=t=>{if(this.#t.has(t)){var e=this.#t.get(t),n=this.#e.get(e);if(n)wg(n),this.#s.delete(e);else{var o=this.#n.get(e);o&&(this.#e.set(e,o.effect),this.#n.delete(e),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(let[r,i]of this.#t){if(this.#t.delete(r),r===t)break;let a=this.#n.get(i);a&&(Un(a.effect),this.#n.delete(i))}for(let[r,i]of this.#e){if(r===e||this.#s.has(r))continue;let a=()=>{if(Array.from(this.#t.values()).includes(r)){var s=document.createDocumentFragment();_g(i,s),s.append(Lo()),this.#n.set(r,{effect:i,fragment:s})}else Un(i);this.#s.delete(r),this.#e.delete(r)};this.#o||!n?(this.#s.add(r),ya(i,a,!1)):a()}}};#r=t=>{this.#t.delete(t);let e=Array.from(this.#t.values());for(let[n,o]of this.#n)e.includes(n)||(Un(o.effect),this.#n.delete(n))};ensure(t,e){var n=te,o=h_();if(e&&!this.#e.has(t)&&!this.#n.has(t))if(o){var r=document.createDocumentFragment(),i=Lo();r.append(i),this.#n.set(t,{effect:$o(()=>e(i)),fragment:r})}else this.#e.set(t,$o(()=>e(this.anchor)));if(this.#t.set(n,t),o){for(let[a,s]of this.#e)a===t?n.unskip_effect(s):n.skip_effect(s);for(let[a,s]of this.#n)a===t?n.unskip_effect(s.effect):n.skip_effect(s.effect);n.oncommit(this.#i),n.ondiscard(this.#r)}else fe&&(this.anchor=ae),this.#i(n)}};C5=[..." \n\r\f\xA0\v\uFEFF"];DD=Symbol("is custom element"),jD=Symbol("is html"),$D=CP?"link":"LINK";R5=new Map;LD={get(t,e){let n=t.props.length;for(;n--;){let o=t.props[n];if(Vc(o)&&(o=o()),typeof o=="object"&&o&&e in o)return o[e]}},set(t,e,n){let o=t.props.length;for(;o--;){let r=t.props[o];Vc(r)&&(r=r());let i=Gr(r,e);if(i&&i.set)return i.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let o=t.props[n];if(Vc(o)&&(o=o()),typeof o=="object"&&o&&e in o){let r=Gr(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===zi||e===dg)return!1;for(let n of t.props)if(Vc(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){let e=[];for(let n of t.props)if(Vc(n)&&(n=n()),n){for(let o in n)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(n))e.includes(o)||e.push(o)}return e}};HD=class{#t;#e;constructor(t){var e=new Map,n=(r,i)=>{var a=c_(i,!1,!1);return e.set(r,a),a};let o=new Proxy({...t.props||{},$$events:{}},{get(r,i){return E(e.get(i)??n(i,Reflect.get(r,i)))},has(r,i){return i===dg||(E(e.get(i)??n(i,Reflect.get(r,i))),Reflect.has(r,i))},set(r,i,a){return It(e.get(i)??n(i,a),a),Reflect.set(r,i,a)}});this.#e=(t.hydrate?_D:M_)(t.component,{target:t.target,anchor:t.anchor,props:o,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&xa(),this.#t=o.$$events;for(let r of Object.keys(this.#e))r!=="$set"&&r!=="$destroy"&&r!=="$on"&&Hd(this,r,{get(){return this.#e[r]},set(i){this.#e[r]=i},enumerable:!0});this.#e.$set=r=>{Object.assign(o,r)},this.#e.$destroy=()=>{ED(this.#e)}}$set(t){this.#e.$set(t)}$on(t,e){this.#t[t]=this.#t[t]||[];let n=(...o)=>e.call(this,...o);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(o=>o!==n)}}$destroy(){this.#e.$destroy()}};typeof HTMLElement=="function"&&($_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{let a=fg("slot");r!=="default"&&(a.name=r),Mt(i,a)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=FD(this);for(let r of this.$$s)r in o&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),n.default=!0):n[r]=e(r));for(let r of this.attributes){let i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Nd(i,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=ID({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=sD(()=>{Qd(()=>{this.$$r=!0;for(let r of Id(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];let i=Nd(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(let r in this.$$l)for(let i of this.$$l[r]){let a=this.$$c.$on(r,i);this.$$l_u.set(i,a)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Nd(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Id(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});WD=ho("<li> </li>"),GD=ho("<ul></ul>"),VD={hash:"svelte-1ec57ko",code:".st-chartDataList.svelte-1ec57ko {border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;}"};Lf=t=>typeof t=="number"&&Number.isFinite(t);oj=ve('<line class="st-barChart__grid svelte-101a3kf"></line><text class="st-barChart__tickLabel svelte-101a3kf" text-anchor="end" dominant-baseline="middle"> </text>',1),rj=ve('<line class="st-barChart__grid svelte-101a3kf"></line><text class="st-barChart__tickLabel svelte-101a3kf" text-anchor="middle"> </text>',1),ij=ve('<text class="st-barChart__categoryLabel svelte-101a3kf" text-anchor="middle"> </text>'),aj=ve('<text class="st-barChart__categoryLabel svelte-101a3kf" text-anchor="end" dominant-baseline="middle"> </text>'),sj=ve('<text class="st-barChart__overlayLabel svelte-101a3kf"> </text>'),cj=ve("<rect></rect><!>",1),lj=ve('<text class="st-barChart__overlayLabel svelte-101a3kf"> </text>'),pj=ve("<line></line><!>",1),dj=ve('<text class="st-barChart__annotationLabel svelte-101a3kf"> </text>'),mj=ve('<rect class="st-barChart__annotationRegion svelte-101a3kf"></rect><!>',1),uj=ve('<g class="st-barChart__annotations st-barChart__annotations--behind"></g>'),hj=ve('<rect rx="2"></rect>'),fj=ve('<g class="st-barChart__errorBar"><line class="st-barChart__errorStem svelte-101a3kf"></line><line class="st-barChart__errorCap svelte-101a3kf"></line><line class="st-barChart__errorCap svelte-101a3kf"></line></g>'),gj=ve('<line class="st-barChart__goalLine svelte-101a3kf"></line>'),yj=ve('<line class="st-barChart__goalLine svelte-101a3kf"></line>'),vj=ve('<!><text class="st-barChart__goalLabel svelte-101a3kf"> </text>',1),bj=ve('<text class="st-barChart__annotationLabel svelte-101a3kf"> </text>'),xj=ve('<line class="st-barChart__annotationLine svelte-101a3kf"></line><!>',1),kj=ve('<text class="st-barChart__annotationLabel svelte-101a3kf" text-anchor="middle"> </text>'),wj=ve('<polygon class="st-barChart__annotationShape svelte-101a3kf"></polygon><!>',1),_j=ve('<text class="st-barChart__annotationLabel svelte-101a3kf" text-anchor="middle"> </text>'),Ej=ve('<circle class="st-barChart__annotationPoint svelte-101a3kf" r="4.5"></circle><!>',1),Sj=ve('<text class="st-barChart__annotationText svelte-101a3kf"> </text>'),Tj=ve('<g class="st-barChart__annotations st-barChart__annotations--above"></g>'),Cj=ve('<text class="st-barChart__dataLabel svelte-101a3kf"> </text>'),Bj=ve('<g class="st-barChart__dataLabels" aria-hidden="true"></g>'),Rj=ve('<line class="st-barChart__crosshairLine svelte-101a3kf"></line>'),Mj=ve('<line class="st-barChart__crosshairLine svelte-101a3kf"></line>'),Aj=ve('<g class="st-barChart__crosshair" aria-hidden="true"><!></g>'),Pj=ve('<rect class="st-barChart__navDatum" role="img"></rect>'),Dj=ve('<svg class="st-barChart__navLayer svelte-101a3kf" preserveAspectRatio="xMidYMid meet" width="100%" height="100%" role="group"></svg>'),jj=ho('<button type="button"><span class="st-barChart__filterSwatch svelte-101a3kf" aria-hidden="true"></span> </button>'),$j=ho('<div class="st-barChart__filters svelte-101a3kf" role="group"></div>'),zj=ho('<div class="st-barChart__tooltip svelte-101a3kf" role="presentation"><span class="st-barChart__tooltipLabel svelte-101a3kf"> </span> <span class="st-barChart__tooltipValue svelte-101a3kf"> </span></div>'),Oj=ho('<div><div class="st-barChart__visual svelte-101a3kf" role="img"><svg preserveAspectRatio="xMidYMid meet" width="100%" height="100%" focusable="false" aria-hidden="true" class="svelte-101a3kf"><!><line class="st-barChart__axis svelte-101a3kf"></line><line class="st-barChart__axis svelte-101a3kf"></line><!><!><!><!><!><!><!><!><!><!></svg> <!></div> <!> <!> <!></div>'),Lj={hash:"svelte-101a3kf",code:".st-barChart.svelte-101a3kf {color:var(--st-semantic-text-secondary);display:block;font-family:inherit;position:relative;width:100%;}.st-barChart.svelte-101a3kf svg:where(.svelte-101a3kf) {display:block;overflow:visible;}.st-barChart__visual.svelte-101a3kf {display:block;}.st-barChart__grid.svelte-101a3kf {stroke:var(--st-component-barChart-gridStroke, var(--st-semantic-border-subtle));stroke-dasharray:2 3;stroke-width:1;opacity:0.7;}.st-barChart__axis.svelte-101a3kf {stroke:var(--st-component-barChart-axisStroke, var(--st-semantic-border-subtle));stroke-width:1;}.st-barChart__tickLabel.svelte-101a3kf,\n .st-barChart__categoryLabel.svelte-101a3kf {fill:var(--st-component-barChart-labelColor, var(--st-semantic-text-secondary));font-size:0.6875rem;}.st-barChart__bar.svelte-101a3kf {cursor:pointer;transition:opacity var(--st-motion-fast, 120ms) var(--st-motion-easing, ease);}.st-barChart__bar.svelte-101a3kf:hover {opacity:0.82;}\n\n /* Non-selected bars are dimmed while a selection is active. Floor kept high\n (0.6) so the colour stays distinguishable \u2014 opacity is never the sole cue;\n selection also adds a stroke (shape), and the values stay in the chips +\n ChartDataList. */.st-barChart__bar--dim.svelte-101a3kf {opacity:0.6;}\n /* Hover still lifts a dimmed bar so it stays explorable. */.st-barChart__bar--dim.svelte-101a3kf:hover {opacity:0.8;}\n\n /* Selected bar: full opacity + a contrast-safe accent stroke (two signals,\n never a font/size reflow). Outranks the dim rule. */.st-barChart__bar--selected.svelte-101a3kf,\n .st-barChart__bar--selected.svelte-101a3kf:hover {opacity:1;stroke:var(--st-semantic-border-interactive, var(--st-semantic-action-primary));stroke-width:2;paint-order:stroke;}.st-barChart__bar--category1.svelte-101a3kf {fill:var(--st-semantic-data-category1);}.st-barChart__bar--category2.svelte-101a3kf {fill:var(--st-semantic-data-category2);}.st-barChart__bar--category3.svelte-101a3kf {fill:var(--st-semantic-data-category3);}.st-barChart__bar--category4.svelte-101a3kf {fill:var(--st-semantic-data-category4);}.st-barChart__bar--category5.svelte-101a3kf {fill:var(--st-semantic-data-category5);}.st-barChart__bar--category6.svelte-101a3kf {fill:var(--st-semantic-data-category6);}.st-barChart__bar--category7.svelte-101a3kf {fill:var(--st-semantic-data-category7);}.st-barChart__bar--category8.svelte-101a3kf {fill:var(--st-semantic-data-category8);}\n\n /* Accessible filter chips \u2014 keyboard + screen-reader selection surface,\n rendered outside the aria-hidden SVG. */.st-barChart__filters.svelte-101a3kf {display:flex;flex-wrap:wrap;gap:var(--st-spacing-2, 0.5rem);margin-top:var(--st-spacing-2, 0.5rem);}.st-barChart__filterChip.svelte-101a3kf {align-items:center;background:var(--st-semantic-surface-subtle, #f8fafc);border:1px solid var(--st-semantic-border-interactive, #cbd5e1);border-radius:var(--st-radius-pill, 999px);color:var(--st-semantic-text-secondary, #475569);cursor:var(--st-cursor-interactive, pointer);display:inline-flex;font:inherit;font-size:0.8125rem;font-weight:500;gap:var(--st-spacing-1, 0.25rem);line-height:1;padding:0.3125rem var(--st-spacing-2, 0.5rem);transition:background-color var(--st-motion-fast, 120ms) var(--st-motion-easing, ease),\n color var(--st-motion-fast, 120ms) var(--st-motion-easing, ease),\n border-color var(--st-motion-fast, 120ms) var(--st-motion-easing, ease);}.st-barChart__filterChip.svelte-101a3kf:hover {background:var(--st-semantic-surface-hover, #eef2f7);}.st-barChart__filterChip.svelte-101a3kf:focus-visible {outline:2px solid var(--st-semantic-border-interactive, var(--st-semantic-action-primary));outline-offset:2px;}\n\n /* Selected chip: solid accent fill + matching text \u2014 signalled by colour AND\n by aria-pressed, never by opacity alone. */.st-barChart__filterChip--selected.svelte-101a3kf {background:var(--st-semantic-action-primary, #2563eb);border-color:var(--st-semantic-action-primary, #2563eb);color:var(--st-semantic-text-inverse, #fff);}\n\n /* Colour swatch echoing the bar tone, for quick visual mapping chip\u2194bar. */.st-barChart__filterSwatch.svelte-101a3kf {border-radius:var(--st-radius-sm, 0.25rem);display:inline-block;height:0.625rem;width:0.625rem;}.st-barChart__filterChip--category1.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category1);}.st-barChart__filterChip--category2.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category2);}.st-barChart__filterChip--category3.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category3);}.st-barChart__filterChip--category4.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category4);}.st-barChart__filterChip--category5.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category5);}.st-barChart__filterChip--category6.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category6);}.st-barChart__filterChip--category7.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category7);}.st-barChart__filterChip--category8.svelte-101a3kf .st-barChart__filterSwatch:where(.svelte-101a3kf) {background:var(--st-semantic-data-category8);}.st-barChart__tooltip.svelte-101a3kf {background:var(--st-component-barChart-tooltipBackground, var(--st-semantic-surface-inverse));border-radius:var(--st-radius-sm, 0.25rem);color:var(--st-component-barChart-tooltipText, var(--st-semantic-text-inverse));display:inline-flex;flex-direction:column;font-size:0.75rem;gap:0.125rem;line-height:1.2;padding:0.375rem 0.5rem;pointer-events:none;position:absolute;transform:translate(-50%, calc(-100% - 8px));white-space:nowrap;z-index:1;}.st-barChart__tooltipLabel.svelte-101a3kf {font-weight:600;}.st-barChart__tooltipValue.svelte-101a3kf {opacity:0.85;}\n\n /* --- Analytical overlay layer --------------------------------------------\n Bands sit BELOW the bars via render order; fill uses color-mix (a\n semi-transparent tint of the tone token) instead of raw opacity, so the\n bars drawn on top keep full contrast. */.st-barChart__band.svelte-101a3kf {fill:color-mix(in srgb, var(--st-overlay-tone, var(--st-semantic-border-strong)) 12%, transparent);stroke:none;}.st-barChart__band--neutral.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-border-strong);}.st-barChart__band--success.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-success);}.st-barChart__band--warning.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-warning);}.st-barChart__band--error.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-error);}.st-barChart__band--info.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-info);}.st-barChart__refLine.svelte-101a3kf {stroke:var(--st-overlay-tone, var(--st-semantic-border-strong));stroke-width:1;stroke-dasharray:4 3;}.st-barChart__refLine--neutral.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-border-strong);}.st-barChart__refLine--success.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-success);}.st-barChart__refLine--warning.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-warning);}.st-barChart__refLine--error.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-error);}.st-barChart__refLine--info.svelte-101a3kf {--st-overlay-tone: var(--st-semantic-feedback-info);}.st-barChart__overlayLabel.svelte-101a3kf {fill:var(--st-semantic-text-secondary);font-size:0.625rem;}\n\n /* Error bars \u2014 a value-axis whisker centred on each bar. */.st-barChart__errorStem.svelte-101a3kf,\n .st-barChart__errorCap.svelte-101a3kf {stroke:var(--st-semantic-text-primary);stroke-width:1.25;}\n\n /* Goal line \u2014 drawn ABOVE the bars, emphasised (thicker, solid accent). */.st-barChart__goalLine.svelte-101a3kf {stroke:var(--st-semantic-feedback-success);stroke-width:2.5;}.st-barChart__goalLabel.svelte-101a3kf {fill:var(--st-semantic-feedback-success);font-size:0.6875rem;font-weight:600;}\n\n @media (prefers-reduced-motion: reduce) {.st-barChart__bar.svelte-101a3kf,\n .st-barChart__filterChip.svelte-101a3kf {transition:none;}\n }\n\n /* --- Annotation layer ----------------------------------------------------\n Regions render BEHIND the bars; lines/shapes/points/labels render ABOVE. */.st-barChart__annotationRegion.svelte-101a3kf {fill:color-mix(in srgb, var(--st-semantic-feedback-info) 12%, transparent);stroke:none;}.st-barChart__annotationLine.svelte-101a3kf {stroke:var(--st-semantic-feedback-info);stroke-width:1.5;stroke-dasharray:4 3;}.st-barChart__annotationShape.svelte-101a3kf {fill:color-mix(in srgb, var(--st-semantic-feedback-info) 14%, transparent);stroke:var(--st-semantic-feedback-info);stroke-width:1.5;}.st-barChart__annotationPoint.svelte-101a3kf {fill:var(--st-semantic-feedback-info);stroke:var(--st-semantic-surface-default);stroke-width:1.5;}.st-barChart__annotationLabel.svelte-101a3kf,\n .st-barChart__annotationText.svelte-101a3kf {fill:var(--st-semantic-text-primary);font-size:0.625rem;font-weight:600;}\n\n /* Data labels \u2014 per-bar value, drawn on top. Token-only colour. */.st-barChart__dataLabel.svelte-101a3kf {fill:var(--st-semantic-text-primary);font-size:0.6875rem;font-weight:600;}\n\n /* --- Crosshair layer (FR-3) ----------------------------------------------\n A tokenised dashed line on the CATEGORY axis at the active (hovered/\n controlled) bar. Decorative (aria-hidden). */.st-barChart__crosshairLine.svelte-101a3kf {stroke:var(--st-semantic-border-strong);stroke-width:1;stroke-dasharray:3 3;opacity:0.7;}"};yD(["pointermove","click","keydown"]);M5=1048576,A5="document";$5={$defs:{CatalogComponentCommon:{properties:{weight:{description:"The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column.",type:"number"}},type:"object"},DecisionDossierDocument:{$defs:{amendmentStep:{additionalProperties:!1,properties:{at:{type:"string"},author:{type:"string"},summary:{type:"string"}},required:["at","author","summary"],type:"object"},amendmentTraceNode:{additionalProperties:!1,properties:{id:{type:"string"},kind:{const:"amendmentTrace"},steps:{items:{$ref:"#/$defs/DecisionDossierDocument/$defs/amendmentStep"},type:"array"},targetRef:{type:"string"}},required:["id","kind","steps","targetRef"],type:"object"},comprehensionEvidence:{additionalProperties:!1,properties:{dossierHash:{type:"string"},signature:{type:"string"},subject:{type:"string"}},required:["dossierHash","subject"],type:"object"},diagramNode:{additionalProperties:!1,properties:{alt:{type:"string"},id:{type:"string"},kind:{const:"diagram"},scene:{description:"diagram-core SemanticDocument, profile generic@1, without views, geometry or layout hints. Opaque JSON until the design-system publishes its authoritative schema; no Focus-specific scene model.",type:"object"},source:{type:"string"},syntax:{enum:["mermaid","plantuml"]},targetRef:{type:"string"}},required:["alt","id","kind","source","syntax","targetRef"],type:"object"},glossaryEntry:{additionalProperties:!1,properties:{definition:{type:"string"},term:{type:"string"}},required:["definition","term"],type:"object"},interaction:{additionalProperties:!1,properties:{enabled:{const:!1},label:{type:"string"},name:{type:"string"},targetRef:{type:"string"}},required:["enabled","label","name","targetRef"],type:"object"},optionNode:{additionalProperties:!1,properties:{annotation:{enum:["accept","comment","none","reject"]},annotationComment:{type:"string"},body:{type:"string"},consequence:{type:"string"},id:{type:"string"},kind:{const:"option"},label:{type:"string"},targetRef:{type:"string"}},required:["annotation","id","kind","label","targetRef"],type:"object"},optionSetNode:{additionalProperties:!1,properties:{id:{type:"string"},kind:{const:"optionSet"},options:{items:{$ref:"#/$defs/DecisionDossierDocument/$defs/optionNode"},type:"array"},questionId:{type:"string"},targetRef:{type:"string"},title:{type:"string"}},required:["id","kind","options","targetRef"],type:"object"},outcomeNode:{additionalProperties:!1,properties:{id:{type:"string"},kind:{const:"outcome"},modality:{enum:["amendment","comment","decision","orientation"]},questionId:{type:"string"},statement:{type:"string"},targetRef:{type:"string"}},required:["id","kind","modality","statement","targetRef"],type:"object"},proseNode:{additionalProperties:!1,properties:{id:{type:"string"},kind:{const:"prose"},markdown:{type:"string"},questionId:{type:"string"},targetRef:{type:"string"}},required:["id","kind","markdown","targetRef"],type:"object"},provenance:{additionalProperties:!1,properties:{comprehensionEvidence:{$ref:"#/$defs/DecisionDossierDocument/$defs/comprehensionEvidence"},readAt:{type:"string"},source:{type:"string"}},required:["readAt","source"],type:"object"},questionNode:{additionalProperties:!1,properties:{answer:{type:"string"},context:{type:"string"},id:{type:"string"},kind:{const:"question"},question:{type:"string"},readingTimeMinutes:{type:"number"},recommendedAnswer:{type:"string"},recommendedOptionId:{type:"string"},state:{enum:["answered","open","validated"]},targetRef:{type:"string"}},required:["id","kind","question","state","targetRef"],type:"object"},readability:{additionalProperties:!1,properties:{glossary:{items:{$ref:"#/$defs/DecisionDossierDocument/$defs/glossaryEntry"},type:"array"},noOwnerRequest:{type:"boolean"},ownerRequestQuote:{type:"string"},readingBudgetMinutes:{type:"number"},stakes:{type:"string"},stakesLevel:{enum:["high","low","medium"]}},type:"object"},section:{oneOf:[{$ref:"#/$defs/DecisionDossierDocument/$defs/proseNode"},{$ref:"#/$defs/DecisionDossierDocument/$defs/questionNode"},{$ref:"#/$defs/DecisionDossierDocument/$defs/optionSetNode"},{$ref:"#/$defs/DecisionDossierDocument/$defs/outcomeNode"},{$ref:"#/$defs/DecisionDossierDocument/$defs/amendmentTraceNode"},{$ref:"#/$defs/DecisionDossierDocument/$defs/diagramNode"}]}},$schema:"https://json-schema.org/draft/2020-12/schema",additionalProperties:!1,description:"Read-only decision-dossier snapshot published by @sentropic/focus. Closed: unknown fields refuse. Snapshot interactions are disabled metadata (enabled:false); live decisions, signatures and amendments require separately qualified runtime capabilities.",properties:{amendmentTrace:{items:{$ref:"#/$defs/DecisionDossierDocument/$defs/amendmentStep"},type:"array"},cursor:{type:"string"},hash:{type:"string"},interactions:{items:{$ref:"#/$defs/DecisionDossierDocument/$defs/interaction"},type:"array"},provenance:{$ref:"#/$defs/DecisionDossierDocument/$defs/provenance"},readability:{$ref:"#/$defs/DecisionDossierDocument/$defs/readability"},ref:{type:"string"},sections:{items:{$ref:"#/$defs/DecisionDossierDocument/$defs/section"},type:"array"},subject:{type:"string"},title:{type:"string"}},required:["amendmentTrace","cursor","hash","interactions","provenance","ref","sections","subject","title"],title:"DecisionDossierDocument",type:"object"},anyComponent:{oneOf:[{$ref:"#/components/BarChart"},{$ref:"#/components/BpmnCanvas"},{$ref:"#/components/DecisionDossier"}]},theme:{properties:{themeId:{type:"string"}},type:"object"}},$id:"https://design-system.sent-tech.ca/catalogs/elements/v1/catalog.json",$schema:"https://json-schema.org/draft/2020-12/schema",catalogId:"https://design-system.sent-tech.ca/catalogs/elements/v1/catalog.json",components:JSON.parse('{"BarChart":{"allOf":[{"$ref":"https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"},{"$ref":"#/$defs/CatalogComponentCommon"},{"properties":{"accessibility":{"additionalProperties":false,"properties":{"description":{"type":"string"},"label":{"type":"string"}},"type":"object"},"annotations":{"description":"Annotation overlay in data space (see ChartAnnotation).","items":{"anyOf":[{"additionalProperties":false,"properties":{"kind":{"const":"point","type":"string"},"label":{"type":"string"},"marker":{"description":"Marker glyph for a point annotation.","enum":["circle","diamond","square"],"type":"string"},"x":{"type":["number","string"]},"y":{"type":"number"}},"required":["kind","x","y"],"type":"object"},{"additionalProperties":false,"properties":{"anchor":{"enum":["end","middle","start"],"type":"string"},"kind":{"const":"label","type":"string"},"text":{"type":"string"},"x":{"type":["number","string"]},"y":{"type":"number"}},"required":["kind","text","x","y"],"type":"object"},{"additionalProperties":false,"properties":{"axis":{"enum":["x","y"],"type":"string"},"kind":{"const":"line","type":"string"},"label":{"type":"string"},"value":{"type":"number"}},"required":["axis","kind","value"],"type":"object"},{"additionalProperties":false,"properties":{"axis":{"enum":["x","y"],"type":"string"},"from":{"type":"number"},"kind":{"const":"region","type":"string"},"label":{"type":"string"},"to":{"type":"number"}},"required":["axis","from","kind","to"],"type":"object"},{"additionalProperties":false,"properties":{"kind":{"const":"shape","type":"string"},"label":{"type":"string"},"points":{"items":{"additionalProperties":false,"properties":{"x":{"type":["number","string"]},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"type":"array"}},"required":["kind","points"],"type":"object"}],"description":"Annotation overlay in data space, discriminated on `kind`. The `x` coordinate is categorical for this chart: it matches a bar by its `label` and is ignored otherwise; `y` and every value-axis number are numeric."},"type":"array"},"bands":{"description":"Shaded value-axis bands.","items":{"additionalProperties":false,"description":"A shaded band between two value-axis positions.","properties":{"from":{"description":"Band start in value-axis units.","type":"number"},"label":{"description":"Human-readable band label.","type":"string"},"to":{"description":"Band end in value-axis units.","type":"number"},"tone":{"description":"Feedback-token tone for the band.","enum":["error","info","neutral","success","warning"],"type":"string"}},"required":["from","to"],"type":"object"},"type":"array"},"component":{"const":"BarChart"},"data":{"description":"The bars, in draw order. Required.","items":{"additionalProperties":false,"description":"One bar: its label is also its selection key.","properties":{"errorHigh":{"description":"Upper error-bar extent (value-axis units). Drawn only when finite.","type":"number"},"errorLow":{"description":"Lower error-bar extent (value-axis units). Drawn only when finite.","type":"number"},"label":{"description":"The bar\'s category label; also its key for selection and hover.","type":"string"},"tone":{"description":"Explicit categorical tone; the palette default when absent.","enum":["category1","category2","category3","category4","category5","category6","category7","category8"],"type":"string"},"value":{"description":"The bar\'s value (value-axis units).","type":"number"}},"required":["label","value"],"type":"object"},"type":"array"},"dataLabels":{"anyOf":[{"type":"boolean"},{"additionalProperties":false,"properties":{"position":{"description":"Placement hint; the chart\'s default when absent.","enum":["auto","center","inside","outside","top"],"type":"string"}},"type":"object"}],"description":"Per-bar value labels; absent or false renders none."},"domain":{"description":"Fixed value-axis domain [min, max]; the auto data range when absent.","items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"},"goalLine":{"additionalProperties":false,"description":"A single goal line, emphasised above the bars.","properties":{"label":{"description":"Human-readable goal label.","type":"string"},"value":{"description":"Position of the goal line in value-axis units.","type":"number"}},"required":["value"],"type":"object"},"height":{"description":"Fixed pixel height; the component\'s default when absent.","type":"number"},"hoverKey":{"description":"Controlled synchronised hover key (a bar\'s label, or null for none).","type":["null","string"]},"invertAxis":{"description":"Inverts the value axis (high values toward the origin). Default false.","type":"boolean"},"keyboardNav":{"description":"Keyboard navigation of the data points (roving tabindex).","type":"boolean"},"label":{"description":"Human-readable chart label (also the accessible name). Required.","type":"string"},"orientation":{"description":"Bar direction; \\"vertical\\" by default.","enum":["horizontal","vertical"],"type":"string"},"referenceLines":{"description":"Reference lines on the value axis.","items":{"additionalProperties":false,"description":"A reference line on one axis (default axis: \\"y\\").","properties":{"axis":{"description":"Which axis the line spans; \\"y\\" by default.","enum":["x","y"],"type":"string"},"label":{"description":"Human-readable line label.","type":"string"},"tone":{"description":"Feedback-token tone for the line.","enum":["error","info","neutral","success","warning"],"type":"string"},"value":{"description":"Position of the line in value-axis units.","type":"number"}},"required":["value"],"type":"object"},"type":"array"},"scale":{"description":"Value-axis scale; \\"linear\\" by default, \\"log\\" needs positive values.","enum":["linear","log"],"type":"string"},"selectedKeys":{"description":"Keys of the currently selected bars (a bar\'s key is its label). Controlled.","items":{"type":"string"},"type":"array"},"showLegend":{"description":"Accepted for cross-chart parity; BarChart has no separate legend surface.","type":"boolean"},"width":{"description":"Fixed pixel width; the container\'s when absent.","type":"number"}},"required":["component","data","label"],"type":"object"}],"type":"object","unevaluatedProperties":false,"x-sentropic":{"contract":"1.0","element":"st-bar-chart","engine":"core","events":["select"],"example":{"component":"BarChart","data":[{"label":"Q1","value":12},{"label":"Q2","value":18},{"label":"Q3","value":9}],"dataLabels":true,"id":"root","label":"Revenue (M\u20AC)","referenceLines":[{"label":"Target","value":15}]},"fallback":"svg","parity":{"angular":{"comparedProps":17,"file":"packages/components-angular/src/BarChart.ts","status":"match","type":"BarChartProps"},"react":{"comparedProps":17,"file":"packages/components-react/src/BarChart.tsx","note":"Own members after subtracting React.HTMLAttributes<HTMLDivElement>; className is React\'s name for the class style hook.","status":"match","type":"BarChartProps"},"svelte":{"file":"packages/components-svelte/src/lib/BarChart.svelte","note":"Reference pilot (\xA73.1); not mechanically generatable (Svelte file), mirrored here member for member.","status":"source-of-truth","type":"BarChartProps"},"vue":{"comparedProps":17,"file":"packages/components-vue/src/BarChart.ts","status":"match","type":"BarChartProps"}},"schema":"https://design-system.sent-tech.ca/catalogs/elements/v1/components/BarChart.json"}},"BpmnCanvas":{"allOf":[{"$ref":"https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"},{"$ref":"#/$defs/CatalogComponentCommon"},{"properties":{"accessibility":{"additionalProperties":false,"properties":{"description":{"type":"string"},"label":{"type":"string"}},"type":"object"},"component":{"const":"BpmnCanvas"},"document":{"additionalProperties":{},"description":"The F1 document to render: a structural envelope the engine\'s hydrate validates.","properties":{"$type":{"description":"F1 type discriminator, e.g. \\"bpmn:Definitions\\".","type":"string"}},"required":["$type"],"type":"object"}},"required":["component","document"],"type":"object"}],"type":"object","unevaluatedProperties":false,"x-sentropic":{"contract":"1.0","element":"st-bpmn-canvas","engine":"lazy:bpmn-canvas","events":[],"example":{"component":"BpmnCanvas","document":{"$type":"bpmn:Definitions","id":"definitions-1","targetNamespace":"https://example.com/bpmn"},"id":"root"},"fallback":"svg","parity":{"angular":{"file":"packages/components-angular","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"react":{"file":"packages/components-react","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"svelte":{"file":"packages/components-svelte","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"vue":{"file":"packages/components-vue","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"}},"schema":"https://design-system.sent-tech.ca/catalogs/elements/v1/components/BpmnCanvas.json","semantic":{"runtimePackage":"@sentropic/bpmn-canvas","source":"bpmn-canvas"}}},"DecisionDossier":{"allOf":[{"$ref":"https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"},{"$ref":"#/$defs/CatalogComponentCommon"},{"properties":{"accessibility":{"additionalProperties":false,"properties":{"description":{"type":"string"},"label":{"type":"string"}},"type":"object"},"component":{"const":"DecisionDossier"},"document":{"$ref":"#/$defs/DecisionDossierDocument"}},"required":["component","document"],"type":"object"}],"type":"object","unevaluatedProperties":false,"x-sentropic":{"contract":"1.0","element":"st-decision-dossier","engine":"lazy:focus","events":["choose-option"],"example":{"component":"DecisionDossier","document":{"amendmentTrace":[],"cursor":"2026-10-30T10:00:00Z","hash":"b7d3f0c9","interactions":[],"provenance":{"readAt":"2026-10-30T10:00:00Z","source":"track"},"ref":"decision-1","sections":[{"id":"q1","kind":"question","question":"Which rendering contract do we adopt?","state":"open","targetRef":"decision-1"},{"id":"options-1","kind":"optionSet","options":[{"annotation":"none","id":"opt-json","kind":"option","label":"Adopt the JSON render standard","targetRef":"q1"},{"annotation":"none","id":"opt-status-quo","kind":"option","label":"Keep the status quo","targetRef":"q1"}],"targetRef":"q1","title":"Options"}],"subject":"Adopt the JSON render standard for design-system rendering","title":"Decision: adopt the JSON render standard"},"id":"root"},"fallback":"text","parity":{"angular":{"file":"packages/components-angular","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"react":{"file":"packages/components-react","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"svelte":{"file":"packages/components-svelte","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"},"vue":{"file":"packages/components-vue","note":"No counterpart in this framework package (\xA75.1: components with no framework counterpart record that fact).","status":"no-counterpart"}},"schema":"https://design-system.sent-tech.ca/catalogs/elements/v1/components/DecisionDossier.json","semantic":{"runtimePackage":"@sentropic/focus@0.5.0","schemaId":"urn:sentropic:focus:DecisionDossierDocument:1.0.0","schemaSubpath":"schemas/decision-dossier-document.v1.schema.json","sha256":"725bc07e7c6b6ad51a1f720cc9fb02649d8f31bc54e71c61c350fd20058c8852","source":"focus"}}}}'),description:"A2UI v0.9.1 basic catalogue of the Sentropic design system elements (JSON render standard, spec/SPEC_EVOL_DS_JSON_RENDER_STANDARD.md \xA75.2). Each component carries its x-sentropic contract version, element name, engine, events, fallback and standalone schema id; semantic documents are validated by their owning runtimes (\xA74.3).",functions:{},title:"Sentropic design system elements catalogue"},z5={$id:"https://design-system.sent-tech.ca/catalogs/elements/v1/envelope.json",$schema:"https://json-schema.org/draft/2020-12/schema",description:"The render envelope of the JSON render standard (\xA74.2): one A2UI v0.9.1 component object under `root`, with the targeted component's contract version and an optional mode. The root interior is validated by the targeted component's catalogue entry, not by this schema.",properties:{catalogId:{type:"string"},contract:{pattern:"^[0-9]+\\.[0-9]+$",type:"string"},mode:{enum:["preview","snapshot"],type:"string"},root:{properties:{component:{type:"string"},id:{const:"root"}},required:["component","id"],type:"object"}},required:["contract","root"],title:"Sentropic render envelope",type:"object",unevaluatedProperties:!1},O5={$defs:{AccessibilityAttributes:{description:"Attributes to enhance accessibility when using assistive technologies like screen readers.",properties:{description:{$ref:"#/$defs/DynamicString",description:"Additional information provided by assistive technologies about an element such as instructions, format requirements, or result of an action. For example, a mute button might have a label of 'Mute' and a description of 'Silences notifications about this conversation'."},label:{$ref:"#/$defs/DynamicString",description:"A short string, typically 1 to 3 words, used by assistive technologies to convey the purpose or intent of an element. For example, an input field might have an accessible label of 'User ID' or a button might be labeled 'Submit'."}},type:"object"},Action:{description:"Defines an interaction handler that can either trigger a server-side event or execute a local client-side function.",oneOf:[{additionalProperties:!1,description:"Triggers a server-side event.",properties:{event:{additionalProperties:!1,description:"The event to dispatch to the server.",properties:{context:{additionalProperties:{$ref:"#/$defs/DynamicValue"},description:"A JSON object containing the key-value pairs for the action context. Values can be literals or paths. Use literal values unless the value must be dynamically bound to the data model. Do NOT use paths for static IDs.",type:"object"},name:{description:"The name of the action to be dispatched to the server.",type:"string"}},required:["name"],type:"object"}},required:["event"],type:"object"},{additionalProperties:!1,description:"Executes a local client-side function.",properties:{functionCall:{$ref:"#/$defs/FunctionCall"}},required:["functionCall"],type:"object"}]},CheckRule:{additionalProperties:!1,description:"A single validation rule applied to an input component.",properties:{condition:{$ref:"#/$defs/DynamicBoolean"},message:{description:"The error message to display if the check fails.",type:"string"}},required:["condition","message"],type:"object"},Checkable:{description:"Properties for components that support client-side checks.",properties:{checks:{description:"A list of checks to perform. These are function calls that must return a boolean indicating validity.",items:{$ref:"#/$defs/CheckRule"},type:"array"}},type:"object"},ChildList:{oneOf:[{description:"A static list of child component IDs.",items:{$ref:"#/$defs/ComponentId"},type:"array"},{additionalProperties:!1,description:"A template for generating a dynamic list of children from a data model list. The `componentId` is the component to use as a template.",properties:{componentId:{$ref:"#/$defs/ComponentId"},path:{description:"The path to the list of component property objects in the data model.",type:"string"}},required:["componentId","path"],type:"object"}]},ComponentCommon:{properties:{accessibility:{$ref:"#/$defs/AccessibilityAttributes"},id:{$ref:"#/$defs/ComponentId"}},required:["id"],type:"object"},ComponentId:{description:"The unique identifier for a component, used for both definitions and references within the same surface.",type:"string"},DataBinding:{additionalProperties:!1,properties:{path:{description:"A JSON Pointer path to a value in the data model.",type:"string"}},required:["path"],type:"object"},DynamicBoolean:{description:"A boolean value that can be a literal, a path, or a function call returning a boolean.",oneOf:[{type:"boolean"},{$ref:"#/$defs/DataBinding"},{allOf:[{$ref:"#/$defs/FunctionCall"},{properties:{returnType:{const:"boolean"}}}]}]},DynamicNumber:{description:"Represents a value that can be either a literal number, a path to a number in the data model, or a function call returning a number.",oneOf:[{type:"number"},{$ref:"#/$defs/DataBinding"},{allOf:[{$ref:"#/$defs/FunctionCall"},{properties:{returnType:{const:"number"}}}]}]},DynamicString:{description:"Represents a string",oneOf:[{type:"string"},{$ref:"#/$defs/DataBinding"},{allOf:[{$ref:"#/$defs/FunctionCall"},{properties:{returnType:{const:"string"}}}]}]},DynamicStringList:{description:"Represents a value that can be either a literal array of strings, a path to a string array in the data model, or a function call returning a string array.",oneOf:[{items:{type:"string"},type:"array"},{$ref:"#/$defs/DataBinding"},{allOf:[{$ref:"#/$defs/FunctionCall"},{properties:{returnType:{const:"array"}}}]}]},DynamicValue:{description:"A value that can be a literal, a path, or a function call returning any type.",oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{$ref:"#/$defs/DataBinding"},{$ref:"#/$defs/FunctionCall"}]},FunctionCall:{description:"Invokes a named function on the client.",oneOf:[{$ref:"catalog.json#/$defs/anyFunction"}],properties:{args:{additionalProperties:{anyOf:[{$ref:"#/$defs/DynamicValue"},{description:"A literal object argument (e.g. configuration).",type:"object"}]},description:"Arguments passed to the function.",type:"object"},call:{description:"The name of the function to call.",type:"string"},returnType:{default:"boolean",description:"The expected return type of the function call.",enum:["any","array","boolean","number","object","string","void"],type:"string"}},required:["call"],type:"object"}},$id:"https://a2ui.org/specification/v0_9_1/common_types.json",$schema:"https://json-schema.org/draft/2020-12/schema",description:"Common type definitions used across A2UI schemas.",title:"A2UI Common Types"},L5={$defs:{anyFunction:{not:{}}},$id:"https://a2ui.org/specification/v0_9_1/catalog.json",$schema:"https://json-schema.org/draft/2020-12/schema"},Wj=new Set(["$ref","type","enum","const","pattern","properties","required","additionalProperties","unevaluatedProperties","items","minItems","maxItems","allOf","anyOf","oneOf","not"]),Gj=new Set(["$schema","$id","$defs","$anchor","$dynamicAnchor","$comment","$vocabulary","title","description","default","examples","example","note","deprecated","readOnly","writeOnly","catalogId","components","functions","x-sentropic"]),Vj=new Set(["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","maxProperties","minProperties","uniqueItems","contains","maxContains","minContains","patternProperties","dependentRequired","dependentSchemas","propertyNames","prefixItems","unevaluatedItems","if","then","else","definitions","$dynamicRef","$recursiveRef"]);qj=class{#t=new Map;register(t,e){if(!En(t)||typeof t.$id!="string"||t.$id.length===0)throw Error("the ".concat(e," must carry its $id so every $ref resolves without network access"));return this.#t.set(t.$id,t),t.$id}resolve(t,e){let n=t.indexOf("#"),o=n===-1?t:t.slice(0,n),r=n===-1?"":t.slice(n+1),i=e;o.length>0&&(i=/^[a-z][a-z0-9+.-]*:/i.test(o)?o:Kj(e,o));let a=this.#t.get(i);if(a===void 0)throw Error('the $ref "'.concat(t,'" does not name a registered document (from ').concat(e,")"));return{schema:r.length===0?a:Xj(a,r,t),baseId:i}}};If=new Set;L_=new Map;Qj=(function(){let t=typeof document<"u"&&document.createElement("link").relList;return t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"})(),t$=function(t){return"/"+t},e$={},n$=function(t){return t.pathname.endsWith(".css")},o$=function(t,e,n){if(e in t)return t[e];let o=n();if(!o){t[e]=void 0;return}let r=o.then(()=>{t[e]=void 0},i=>{throw t[e]=void 0,i});return t[e]=r,r},Ko=function(t,e,n){let o=Promise.resolve();if(e&&e.length>0){let p=function(m){return Promise.all(m.map(u=>Promise.resolve(u).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))},d=function(m){return import.meta.resolve?new URL(import.meta.resolve(m)):new URL(m,import.meta.url)};var i=p,a=d;let s,c=document.querySelector("meta[property=csp-nonce]"),l=c?.nonce||c?.getAttribute("nonce");o=p(e.map(m=>{m=t$(m,n);let u=d(m),h=n$(u);return o$(e$,u.href,()=>{if(s===void 0){s={all:new Set,styles:new Set};let g=document.getElementsByTagName("link");for(let x=g.length-1;x>=0;x--){let k=g[x];s.all.add(k.href),k.rel==="stylesheet"&&s.styles.add(k.href)}}if((h?s.styles:s.all).has(u.href))return;let f=document.createElement("link");if(f.rel=h?"stylesheet":Qj,h||(f.as="script"),f.crossOrigin="",f.href=u.href,l&&f.setAttribute("nonce",l),document.head.appendChild(f),h)return new Promise((g,x)=>{f.addEventListener("load",g),f.addEventListener("error",()=>x(Error("Unable to preload CSS for ".concat(u))))})})}).filter(m=>m!==void 0))}function r(s){let c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return o.then(s=>{for(let c of s||[])c.status==="rejected"&&r(c.reason);return t().catch(r)})},og={BpmnCanvas:"bpmn-canvas",DecisionDossier:"focus"},Ff=new Map;qd=new WeakMap,rg=new WeakMap;p$="/* Generated by packages/themes/scripts/build-css.mjs. */\n/* Theme: Sent Tech (sent-tech) */\n/* Dark mode: 3 blocks (light + auto + explicit) */\n[data-st-theme=\"sent-tech\"] {\n color-scheme: light;\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-shadow-subtle: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-foundation-shadow-medium: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-shadow-medium: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-foundation-shadow-floating: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-shadow-floating: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: #ffffff;\n --st-semantic-surface-subtle: #f8fafc;\n --st-semantic-surface-raised: #ffffff;\n --st-semantic-surface-inverse: #0f172a;\n --st-semantic-surface-overlay: rgb(15 23 42 / 0.48);\n --st-semantic-text-primary: #0f172a;\n --st-semantic-text-secondary: #475569;\n --st-semantic-text-muted: #64748b;\n --st-semantic-text-inverse: #ffffff;\n --st-semantic-text-link: oklch(50% 0.134 242.749);\n --st-semantic-border-subtle: #e2e8f0;\n --st-semantic-border-strong: #94a3b8;\n --st-semantic-border-interactive: oklch(50% 0.134 242.749);\n --st-semantic-action-primary: oklch(50% 0.134 242.749);\n --st-semantic-action-primaryHover: oklch(32% 0.11 242);\n --st-semantic-action-primaryText: #ffffff;\n --st-semantic-action-secondary: #f8fafc;\n --st-semantic-action-secondaryHover: #e2e8f0;\n --st-semantic-action-secondaryText: #0f172a;\n --st-semantic-action-danger: #dc2626;\n --st-semantic-feedback-success: #16a34a;\n --st-semantic-feedback-warning: #d97706;\n --st-semantic-feedback-error: #dc2626;\n --st-semantic-feedback-info: #2563eb;\n --st-semantic-status-pending: #d97706;\n --st-semantic-status-processing: #2563eb;\n --st-semantic-status-completed: #16a34a;\n --st-semantic-status-failed: #dc2626;\n --st-semantic-data-category1: #4E79A7;\n --st-semantic-data-category2: #F28E2B;\n --st-semantic-data-category3: #E15759;\n --st-semantic-data-category4: #76B7B2;\n --st-semantic-data-category5: #59A14F;\n --st-semantic-data-category6: #EDC948;\n --st-semantic-data-category7: #B07AA1;\n --st-semantic-data-category8: #FF9DA7;\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: oklch(50% 0.134 242.749);\n --st-component-button-primaryText: #ffffff;\n --st-component-button-secondaryBackground: #f8fafc;\n --st-component-button-secondaryBorder: #e2e8f0;\n --st-component-button-secondaryHoverBackground: #e2e8f0;\n --st-component-button-secondaryText: #0f172a;\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(32% 0.11 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(50% 0.134 242.749);\n --st-component-link-hoverText: oklch(50% 0.134 242.749);\n --st-component-link-disabledText: #64748b;\n --st-component-link-focusRing: oklch(50% 0.134 242.749);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: oklch(50% 0.134 242.749);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: #64748b;\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: #ffffff;\n --st-component-alert-text: #0f172a;\n --st-component-alert-border: #e2e8f0;\n --st-component-alert-infoBorder: #2563eb;\n --st-component-alert-successBorder: #16a34a;\n --st-component-alert-warningBorder: #d97706;\n --st-component-alert-errorBorder: #dc2626;\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid #e2e8f0;\n --st-component-alert-borderRight: 1px solid #e2e8f0;\n --st-component-alert-borderBottom: 1px solid #e2e8f0;\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: #0f172a;\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: #f8fafc;\n --st-component-tag-neutralText: #475569;\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, #2563eb 14%, white);\n --st-component-badge-infoText: #2563eb;\n --st-component-card-background: #ffffff;\n --st-component-card-border: #e2e8f0;\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(15 23 42 / 0.08);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: #ffffff;\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: #ffffff;\n --st-component-menu-border: #e2e8f0;\n --st-component-menu-text: #0f172a;\n --st-component-menu-itemHoverBackground: #f8fafc;\n --st-component-menu-dangerText: #dc2626;\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: #64748b;\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-popover-background: #ffffff;\n --st-component-popover-border: #e2e8f0;\n --st-component-popover-text: #0f172a;\n --st-component-popover-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: #ffffff;\n --st-component-dropdown-border: #e2e8f0;\n --st-component-dropdown-text: #0f172a;\n --st-component-dropdown-optionHoverBackground: #f8fafc;\n --st-component-dropdown-selectedBackground: oklch(50% 0.134 242.749);\n --st-component-dropdown-selectedText: #ffffff;\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-input-background: #ffffff;\n --st-component-input-border: #e2e8f0;\n --st-component-input-focusRing: oklch(50% 0.134 242.749);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: #0f172a;\n --st-component-field-helpText: #475569;\n --st-component-field-errorText: #dc2626;\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: #ffffff;\n --st-component-control-text: #0f172a;\n --st-component-control-placeholderText: #64748b;\n --st-component-control-border: #e2e8f0;\n --st-component-control-hoverBorder: #94a3b8;\n --st-component-control-hoverBackground: #f8fafc;\n --st-component-control-focusRing: oklch(50% 0.134 242.749);\n --st-component-control-invalidBorder: #dc2626;\n --st-component-control-disabledBackground: #f8fafc;\n --st-component-control-disabledText: #64748b;\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderRight: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderBottom: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-borderLeft: 1px solid #e2e8f0;\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: #94a3b8;\n --st-component-control-anatomy-states-focus-border: oklch(50% 0.134 242.749);\n --st-component-control-anatomy-states-disabled-bg: #f8fafc;\n --st-component-control-anatomy-states-disabled-text: #64748b;\n --st-component-selection-checkedBackground: oklch(50% 0.134 242.749);\n --st-component-selection-checkedText: #ffffff;\n --st-component-selection-border: #e2e8f0;\n --st-component-selection-switchTrack: #94a3b8;\n --st-component-selection-switchTrackChecked: oklch(50% 0.134 242.749);\n --st-component-selection-switchThumb: #ffffff;\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: #0f172a;\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: #0f172a;\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(15 23 42 / 0.48);\n --st-component-overlay-surface: #ffffff;\n --st-component-overlay-border: #e2e8f0;\n --st-component-overlay-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(15 23 42 / 0.48);\n --st-component-drawer-surface: #ffffff;\n --st-component-drawer-border: #e2e8f0;\n --st-component-drawer-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: #f8fafc;\n --st-component-emptyState-border: #e2e8f0;\n --st-component-emptyState-titleText: #0f172a;\n --st-component-emptyState-messageText: #475569;\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: oklch(50% 0.134 242.749);\n --st-component-loadingState-track: #f8fafc;\n --st-component-loadingState-text: #475569;\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: #0f172a;\n --st-component-tooltip-text: #ffffff;\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(15 23 42 / 0.12);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: #ffffff;\n --st-component-toast-text: #0f172a;\n --st-component-toast-border: #e2e8f0;\n --st-component-toast-shadow: 0 18px 45px rgb(15 23 42 / 0.18);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: #2563eb;\n --st-component-toast-successBorder: #16a34a;\n --st-component-toast-warningBorder: #d97706;\n --st-component-toast-errorBorder: #dc2626;\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: #f8fafc;\n --st-component-dataTable-rowBackground: #ffffff;\n --st-component-dataTable-rowHoverBackground: #f8fafc;\n --st-component-dataTable-border: #e2e8f0;\n --st-component-dataTable-text: #0f172a;\n --st-component-dataTable-captionText: #475569;\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: #0f172a;\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: #475569;\n --st-component-tabs-border: #e2e8f0;\n --st-component-tabs-indicator: oklch(50% 0.134 242.749);\n --st-component-tabs-panelBackground: #ffffff;\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: #0f172a;\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: #ffffff;\n --st-component-pagination-border: #e2e8f0;\n --st-component-pagination-text: #0f172a;\n --st-component-pagination-activeBackground: oklch(50% 0.134 242.749);\n --st-component-pagination-activeText: #ffffff;\n --st-component-pagination-disabledText: #64748b;\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: #e2e8f0;\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: #ffffff;\n --st-component-paginationNav-border: #e2e8f0;\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: #0f172a;\n --st-component-paginationNav-hoverBackground: #f8fafc;\n --st-component-paginationNav-activeBackground: oklch(50% 0.134 242.749);\n --st-component-paginationNav-activeText: #ffffff;\n --st-component-paginationNav-disabledText: #64748b;\n --st-component-paginationNav-ellipsisText: #64748b;\n --st-component-breadcrumb-text: #475569;\n --st-component-breadcrumb-currentText: #0f172a;\n --st-component-breadcrumb-separator: #64748b;\n --st-component-breadcrumb-linkText: oklch(50% 0.134 242.749);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: #ffffff;\n --st-component-sideNav-border: #e2e8f0;\n --st-component-sideNav-itemText: #475569;\n --st-component-sideNav-activeBackground: #f8fafc;\n --st-component-sideNav-activeText: #0f172a;\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, oklch(50% 0.134 242.749) 12%, transparent);\n --st-component-selectableRow-selectedAccent: oklch(50% 0.134 242.749);\n --st-component-selectableRow-selectedText: color-mix(in oklch, oklch(50% 0.134 242.749) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, oklch(50% 0.134 242.749) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: oklch(50% 0.134 242.749);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, oklch(50% 0.134 242.749) 70%, white);\n --st-component-chat-userBubbleBackground: oklch(50% 0.134 242.749);\n --st-component-chat-userBubbleText: #ffffff;\n --st-component-chat-assistantBubbleBackground: #f8fafc;\n --st-component-chat-assistantBubbleText: #0f172a;\n --st-component-chat-composerSurface: #ffffff;\n --st-component-chat-toolCallSurface: #f8fafc;\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: #0f172a;\n --st-component-graph-panelText: #ffffff;\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: #4E79A7;\n --st-component-graph-community2: #F28E2B;\n --st-component-graph-community3: #E15759;\n --st-component-graph-community4: #76B7B2;\n}\n\n\n@media (prefers-color-scheme: dark) {\n color-scheme: dark;\n :root:not([data-color-mode=\"light\"]) {\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-foundation-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-foundation-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: oklch(15% 0.012 250);\n --st-semantic-surface-subtle: oklch(19% 0.014 250);\n --st-semantic-surface-raised: oklch(21% 0.015 250);\n --st-semantic-surface-inverse: oklch(96% 0.005 250);\n --st-semantic-surface-overlay: rgb(2 4 8 / 0.66);\n --st-semantic-text-primary: oklch(96% 0.005 250);\n --st-semantic-text-secondary: oklch(78% 0.012 250);\n --st-semantic-text-muted: oklch(66% 0.018 250);\n --st-semantic-text-inverse: oklch(15% 0.012 250);\n --st-semantic-text-link: oklch(72% 0.13 242);\n --st-semantic-border-subtle: oklch(28% 0.014 250);\n --st-semantic-border-strong: oklch(42% 0.016 250);\n --st-semantic-border-interactive: oklch(72% 0.13 242);\n --st-semantic-action-primary: oklch(62% 0.15 242);\n --st-semantic-action-primaryHover: oklch(70% 0.15 242);\n --st-semantic-action-primaryText: oklch(17% 0.012 250);\n --st-semantic-action-secondary: oklch(24% 0.015 250);\n --st-semantic-action-secondaryHover: oklch(28% 0.014 250);\n --st-semantic-action-secondaryText: oklch(96% 0.005 250);\n --st-semantic-action-danger: oklch(64% 0.19 25);\n --st-semantic-feedback-success: oklch(70% 0.17 150);\n --st-semantic-feedback-warning: oklch(76% 0.15 75);\n --st-semantic-feedback-error: oklch(64% 0.19 25);\n --st-semantic-feedback-info: oklch(68% 0.15 250);\n --st-semantic-status-pending: oklch(76% 0.15 75);\n --st-semantic-status-processing: oklch(68% 0.15 250);\n --st-semantic-status-completed: oklch(70% 0.17 150);\n --st-semantic-status-failed: oklch(64% 0.19 25);\n --st-semantic-data-category1: oklch(60% 0.08 242);\n --st-semantic-data-category2: oklch(75% 0.14 67);\n --st-semantic-data-category3: oklch(68% 0.16 23);\n --st-semantic-data-category4: oklch(73% 0.09 195);\n --st-semantic-data-category5: oklch(68% 0.14 148);\n --st-semantic-data-category6: oklch(83% 0.13 90);\n --st-semantic-data-category7: oklch(65% 0.10 320);\n --st-semantic-data-category8: oklch(78% 0.12 15);\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: oklch(62% 0.15 242);\n --st-component-button-primaryText: oklch(17% 0.012 250);\n --st-component-button-secondaryBackground: oklch(24% 0.015 250);\n --st-component-button-secondaryBorder: oklch(28% 0.014 250);\n --st-component-button-secondaryHoverBackground: oklch(28% 0.014 250);\n --st-component-button-secondaryText: oklch(96% 0.005 250);\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(70% 0.15 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(72% 0.13 242);\n --st-component-link-hoverText: oklch(62% 0.15 242);\n --st-component-link-disabledText: oklch(66% 0.018 250);\n --st-component-link-focusRing: oklch(72% 0.13 242);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: oklch(62% 0.15 242);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: oklch(21% 0.015 250);\n --st-component-alert-text: oklch(96% 0.005 250);\n --st-component-alert-border: oklch(28% 0.014 250);\n --st-component-alert-infoBorder: oklch(68% 0.15 250);\n --st-component-alert-successBorder: oklch(70% 0.17 150);\n --st-component-alert-warningBorder: oklch(76% 0.15 75);\n --st-component-alert-errorBorder: oklch(64% 0.19 25);\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: oklch(96% 0.005 250);\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: oklch(19% 0.014 250);\n --st-component-tag-neutralText: oklch(78% 0.012 250);\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, oklch(68% 0.15 250) 14%, white);\n --st-component-badge-infoText: oklch(68% 0.15 250);\n --st-component-card-background: oklch(21% 0.015 250);\n --st-component-card-border: oklch(28% 0.014 250);\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: oklch(21% 0.015 250);\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: oklch(21% 0.015 250);\n --st-component-menu-border: oklch(28% 0.014 250);\n --st-component-menu-text: oklch(96% 0.005 250);\n --st-component-menu-itemHoverBackground: oklch(19% 0.014 250);\n --st-component-menu-dangerText: oklch(64% 0.19 25);\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: oklch(66% 0.018 250);\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-popover-background: oklch(21% 0.015 250);\n --st-component-popover-border: oklch(28% 0.014 250);\n --st-component-popover-text: oklch(96% 0.005 250);\n --st-component-popover-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: oklch(15% 0.012 250);\n --st-component-dropdown-border: oklch(28% 0.014 250);\n --st-component-dropdown-text: oklch(96% 0.005 250);\n --st-component-dropdown-optionHoverBackground: oklch(19% 0.014 250);\n --st-component-dropdown-selectedBackground: oklch(62% 0.15 242);\n --st-component-dropdown-selectedText: oklch(17% 0.012 250);\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-input-background: oklch(15% 0.012 250);\n --st-component-input-border: oklch(28% 0.014 250);\n --st-component-input-focusRing: oklch(72% 0.13 242);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: oklch(96% 0.005 250);\n --st-component-field-helpText: oklch(78% 0.012 250);\n --st-component-field-errorText: oklch(64% 0.19 25);\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: oklch(15% 0.012 250);\n --st-component-control-text: oklch(96% 0.005 250);\n --st-component-control-placeholderText: oklch(66% 0.018 250);\n --st-component-control-border: oklch(28% 0.014 250);\n --st-component-control-hoverBorder: oklch(42% 0.016 250);\n --st-component-control-hoverBackground: oklch(19% 0.014 250);\n --st-component-control-focusRing: oklch(72% 0.13 242);\n --st-component-control-invalidBorder: oklch(64% 0.19 25);\n --st-component-control-disabledBackground: oklch(19% 0.014 250);\n --st-component-control-disabledText: oklch(66% 0.018 250);\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderLeft: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: oklch(42% 0.016 250);\n --st-component-control-anatomy-states-focus-border: oklch(72% 0.13 242);\n --st-component-control-anatomy-states-disabled-bg: oklch(19% 0.014 250);\n --st-component-control-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-selection-checkedBackground: oklch(62% 0.15 242);\n --st-component-selection-checkedText: oklch(17% 0.012 250);\n --st-component-selection-border: oklch(28% 0.014 250);\n --st-component-selection-switchTrack: oklch(42% 0.016 250);\n --st-component-selection-switchTrackChecked: oklch(62% 0.15 242);\n --st-component-selection-switchThumb: oklch(15% 0.012 250);\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: oklch(96% 0.005 250);\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: oklch(96% 0.005 250);\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(2 4 8 / 0.66);\n --st-component-overlay-surface: oklch(21% 0.015 250);\n --st-component-overlay-border: oklch(28% 0.014 250);\n --st-component-overlay-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(2 4 8 / 0.66);\n --st-component-drawer-surface: oklch(21% 0.015 250);\n --st-component-drawer-border: oklch(28% 0.014 250);\n --st-component-drawer-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: oklch(19% 0.014 250);\n --st-component-emptyState-border: oklch(28% 0.014 250);\n --st-component-emptyState-titleText: oklch(96% 0.005 250);\n --st-component-emptyState-messageText: oklch(78% 0.012 250);\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: oklch(62% 0.15 242);\n --st-component-loadingState-track: oklch(19% 0.014 250);\n --st-component-loadingState-text: oklch(78% 0.012 250);\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: oklch(96% 0.005 250);\n --st-component-tooltip-text: oklch(15% 0.012 250);\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: oklch(21% 0.015 250);\n --st-component-toast-text: oklch(96% 0.005 250);\n --st-component-toast-border: oklch(28% 0.014 250);\n --st-component-toast-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: oklch(68% 0.15 250);\n --st-component-toast-successBorder: oklch(70% 0.17 150);\n --st-component-toast-warningBorder: oklch(76% 0.15 75);\n --st-component-toast-errorBorder: oklch(64% 0.19 25);\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: oklch(19% 0.014 250);\n --st-component-dataTable-rowBackground: oklch(15% 0.012 250);\n --st-component-dataTable-rowHoverBackground: oklch(19% 0.014 250);\n --st-component-dataTable-border: oklch(28% 0.014 250);\n --st-component-dataTable-text: oklch(96% 0.005 250);\n --st-component-dataTable-captionText: oklch(78% 0.012 250);\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: oklch(96% 0.005 250);\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: oklch(78% 0.012 250);\n --st-component-tabs-border: oklch(28% 0.014 250);\n --st-component-tabs-indicator: oklch(62% 0.15 242);\n --st-component-tabs-panelBackground: oklch(15% 0.012 250);\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: oklch(96% 0.005 250);\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: oklch(15% 0.012 250);\n --st-component-pagination-border: oklch(28% 0.014 250);\n --st-component-pagination-text: oklch(96% 0.005 250);\n --st-component-pagination-activeBackground: oklch(62% 0.15 242);\n --st-component-pagination-activeText: oklch(17% 0.012 250);\n --st-component-pagination-disabledText: oklch(66% 0.018 250);\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: oklch(28% 0.014 250);\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: oklch(15% 0.012 250);\n --st-component-paginationNav-border: oklch(28% 0.014 250);\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: oklch(96% 0.005 250);\n --st-component-paginationNav-hoverBackground: oklch(19% 0.014 250);\n --st-component-paginationNav-activeBackground: oklch(62% 0.15 242);\n --st-component-paginationNav-activeText: oklch(17% 0.012 250);\n --st-component-paginationNav-disabledText: oklch(66% 0.018 250);\n --st-component-paginationNav-ellipsisText: oklch(66% 0.018 250);\n --st-component-breadcrumb-text: oklch(78% 0.012 250);\n --st-component-breadcrumb-currentText: oklch(96% 0.005 250);\n --st-component-breadcrumb-separator: oklch(66% 0.018 250);\n --st-component-breadcrumb-linkText: oklch(72% 0.13 242);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: oklch(15% 0.012 250);\n --st-component-sideNav-border: oklch(28% 0.014 250);\n --st-component-sideNav-itemText: oklch(78% 0.012 250);\n --st-component-sideNav-activeBackground: oklch(19% 0.014 250);\n --st-component-sideNav-activeText: oklch(96% 0.005 250);\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, oklch(62% 0.15 242) 12%, transparent);\n --st-component-selectableRow-selectedAccent: oklch(62% 0.15 242);\n --st-component-selectableRow-selectedText: color-mix(in oklch, oklch(62% 0.15 242) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, oklch(62% 0.15 242) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: oklch(62% 0.15 242);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, oklch(62% 0.15 242) 70%, white);\n --st-component-chat-userBubbleBackground: oklch(62% 0.15 242);\n --st-component-chat-userBubbleText: oklch(17% 0.012 250);\n --st-component-chat-assistantBubbleBackground: oklch(19% 0.014 250);\n --st-component-chat-assistantBubbleText: oklch(96% 0.005 250);\n --st-component-chat-composerSurface: oklch(21% 0.015 250);\n --st-component-chat-toolCallSurface: oklch(19% 0.014 250);\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: oklch(96% 0.005 250);\n --st-component-graph-panelText: oklch(15% 0.012 250);\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: oklch(60% 0.08 242);\n --st-component-graph-community2: oklch(75% 0.14 67);\n --st-component-graph-community3: oklch(68% 0.16 23);\n --st-component-graph-community4: oklch(73% 0.09 195);\n}\n\n}\n\n:root[data-color-mode=\"dark\"] {\n color-scheme: dark;\n --st-foundation-color-blue-10: oklch(97% 0.02 242);\n --st-color-blue-10: oklch(97% 0.02 242);\n --st-foundation-color-blue-60: oklch(50% 0.134 242.749);\n --st-color-blue-60: oklch(50% 0.134 242.749);\n --st-foundation-color-blue-80: oklch(32% 0.11 242);\n --st-color-blue-80: oklch(32% 0.11 242);\n --st-foundation-color-cyan-10: oklch(96% 0.04 195);\n --st-color-cyan-10: oklch(96% 0.04 195);\n --st-foundation-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-color-cyan-50: oklch(70.4% 0.14 182.503);\n --st-foundation-color-cyan-70: oklch(48% 0.12 190);\n --st-color-cyan-70: oklch(48% 0.12 190);\n --st-foundation-color-slate-0: #ffffff;\n --st-color-slate-0: #ffffff;\n --st-foundation-color-slate-10: #f8fafc;\n --st-color-slate-10: #f8fafc;\n --st-foundation-color-slate-20: #e2e8f0;\n --st-color-slate-20: #e2e8f0;\n --st-foundation-color-slate-60: #475569;\n --st-color-slate-60: #475569;\n --st-foundation-color-slate-80: #1e293b;\n --st-color-slate-80: #1e293b;\n --st-foundation-color-slate-90: #0f172a;\n --st-color-slate-90: #0f172a;\n --st-foundation-color-feedback-success: #16a34a;\n --st-color-feedback-success: #16a34a;\n --st-foundation-color-feedback-warning: #d97706;\n --st-color-feedback-warning: #d97706;\n --st-foundation-color-feedback-error: #dc2626;\n --st-color-feedback-error: #dc2626;\n --st-foundation-color-feedback-info: #2563eb;\n --st-color-feedback-info: #2563eb;\n --st-foundation-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n --st-foundation-font-display: Inter, system-ui, sans-serif;\n --st-font-display: Inter, system-ui, sans-serif;\n --st-foundation-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;\n --st-foundation-spacing-0: 0;\n --st-spacing-0: 0;\n --st-foundation-spacing-1: 0.25rem;\n --st-spacing-1: 0.25rem;\n --st-foundation-spacing-2: 0.5rem;\n --st-spacing-2: 0.5rem;\n --st-foundation-spacing-3: 0.75rem;\n --st-spacing-3: 0.75rem;\n --st-foundation-spacing-4: 1rem;\n --st-spacing-4: 1rem;\n --st-foundation-spacing-6: 1.5rem;\n --st-spacing-6: 1.5rem;\n --st-foundation-spacing-8: 2rem;\n --st-spacing-8: 2rem;\n --st-foundation-spacing-12: 3rem;\n --st-spacing-12: 3rem;\n --st-foundation-spacing-16: 4rem;\n --st-spacing-16: 4rem;\n --st-foundation-radius-none: 0;\n --st-radius-none: 0;\n --st-foundation-radius-sm: 0.25rem;\n --st-radius-sm: 0.25rem;\n --st-foundation-radius-md: 0.375rem;\n --st-radius-md: 0.375rem;\n --st-foundation-radius-lg: 0.5rem;\n --st-radius-lg: 0.5rem;\n --st-foundation-radius-pill: 999px;\n --st-radius-pill: 999px;\n --st-foundation-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-foundation-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-shadow-medium: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-foundation-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-shadow-floating: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-foundation-motion-fast: 120ms;\n --st-motion-fast: 120ms;\n --st-foundation-motion-normal: 180ms;\n --st-motion-normal: 180ms;\n --st-foundation-motion-slow: 280ms;\n --st-motion-slow: 280ms;\n --st-foundation-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-z-header: 50;\n --st-z-header: 50;\n --st-zindex-header: 50;\n --st-foundation-z-toast: 60;\n --st-z-toast: 60;\n --st-zindex-toast: 60;\n --st-foundation-z-overlay: 80;\n --st-z-overlay: 80;\n --st-zindex-overlay: 80;\n --st-foundation-z-modal: 100;\n --st-z-modal: 100;\n --st-zindex-modal: 100;\n --st-foundation-z-chat: 110;\n --st-z-chat: 110;\n --st-zindex-chat: 110;\n --st-foundation-borderWidth-none: 0;\n --st-borderWidth-none: 0;\n --st-foundation-borderWidth-thin: 1px;\n --st-borderWidth-thin: 1px;\n --st-foundation-borderWidth-thick: 2px;\n --st-borderWidth-thick: 2px;\n --st-foundation-borderStyle-solid: solid;\n --st-borderStyle-solid: solid;\n --st-foundation-density-sm-controlHeight: 2rem;\n --st-density-sm-controlHeight: 2rem;\n --st-foundation-density-sm-paddingBlock: 0;\n --st-density-sm-paddingBlock: 0;\n --st-foundation-density-sm-paddingInline: 0.75rem;\n --st-density-sm-paddingInline: 0.75rem;\n --st-foundation-density-sm-gap: 0.375rem;\n --st-density-sm-gap: 0.375rem;\n --st-foundation-density-sm-minWidth: 2rem;\n --st-density-sm-minWidth: 2rem;\n --st-foundation-density-md-controlHeight: 2.5rem;\n --st-density-md-controlHeight: 2.5rem;\n --st-foundation-density-md-paddingBlock: 0;\n --st-density-md-paddingBlock: 0;\n --st-foundation-density-md-paddingInline: 1rem;\n --st-density-md-paddingInline: 1rem;\n --st-foundation-density-md-gap: 0.5rem;\n --st-density-md-gap: 0.5rem;\n --st-foundation-density-md-minWidth: 2.5rem;\n --st-density-md-minWidth: 2.5rem;\n --st-foundation-density-lg-controlHeight: 3rem;\n --st-density-lg-controlHeight: 3rem;\n --st-foundation-density-lg-paddingBlock: 0;\n --st-density-lg-paddingBlock: 0;\n --st-foundation-density-lg-paddingInline: 1.25rem;\n --st-density-lg-paddingInline: 1.25rem;\n --st-foundation-density-lg-gap: 0.5rem;\n --st-density-lg-gap: 0.5rem;\n --st-foundation-density-lg-minWidth: 3rem;\n --st-density-lg-minWidth: 3rem;\n --st-foundation-typography-control-family: var(--st-font-sans);\n --st-typography-control-family: var(--st-font-sans);\n --st-foundation-typography-control-size: 0.9375rem;\n --st-typography-control-size: 0.9375rem;\n --st-foundation-typography-control-weight: 600;\n --st-typography-control-weight: 600;\n --st-foundation-typography-control-lineHeight: 1.2;\n --st-typography-control-lineHeight: 1.2;\n --st-foundation-typography-control-letterSpacing: 0;\n --st-typography-control-letterSpacing: 0;\n --st-foundation-typography-control-textTransform: none;\n --st-typography-control-textTransform: none;\n --st-foundation-typography-control-textDecoration: none;\n --st-typography-control-textDecoration: none;\n --st-foundation-typography-control-decorationThickness: auto;\n --st-typography-control-decorationThickness: auto;\n --st-foundation-typography-control-decorationOffset: auto;\n --st-typography-control-decorationOffset: auto;\n --st-foundation-typography-field-family: var(--st-font-sans);\n --st-typography-field-family: var(--st-font-sans);\n --st-foundation-typography-field-size: 1rem;\n --st-typography-field-size: 1rem;\n --st-foundation-typography-field-weight: 400;\n --st-typography-field-weight: 400;\n --st-foundation-typography-field-lineHeight: 1.5;\n --st-typography-field-lineHeight: 1.5;\n --st-foundation-typography-field-letterSpacing: 0;\n --st-typography-field-letterSpacing: 0;\n --st-foundation-typography-field-textTransform: none;\n --st-typography-field-textTransform: none;\n --st-foundation-typography-field-textDecoration: none;\n --st-typography-field-textDecoration: none;\n --st-foundation-typography-field-decorationThickness: auto;\n --st-typography-field-decorationThickness: auto;\n --st-foundation-typography-field-decorationOffset: auto;\n --st-typography-field-decorationOffset: auto;\n --st-foundation-typography-label-family: var(--st-font-sans);\n --st-typography-label-family: var(--st-font-sans);\n --st-foundation-typography-label-size: 0.875rem;\n --st-typography-label-size: 0.875rem;\n --st-foundation-typography-label-weight: 600;\n --st-typography-label-weight: 600;\n --st-foundation-typography-label-lineHeight: 1.4;\n --st-typography-label-lineHeight: 1.4;\n --st-foundation-typography-label-letterSpacing: 0;\n --st-typography-label-letterSpacing: 0;\n --st-foundation-typography-label-textTransform: none;\n --st-typography-label-textTransform: none;\n --st-foundation-typography-label-textDecoration: none;\n --st-typography-label-textDecoration: none;\n --st-foundation-typography-label-decorationThickness: auto;\n --st-typography-label-decorationThickness: auto;\n --st-foundation-typography-label-decorationOffset: auto;\n --st-typography-label-decorationOffset: auto;\n --st-foundation-typography-link-family: inherit;\n --st-typography-link-family: inherit;\n --st-foundation-typography-link-size: inherit;\n --st-typography-link-size: inherit;\n --st-foundation-typography-link-weight: inherit;\n --st-typography-link-weight: inherit;\n --st-foundation-typography-link-lineHeight: inherit;\n --st-typography-link-lineHeight: inherit;\n --st-foundation-typography-link-letterSpacing: 0;\n --st-typography-link-letterSpacing: 0;\n --st-foundation-typography-link-textTransform: none;\n --st-typography-link-textTransform: none;\n --st-foundation-typography-link-textDecoration: underline;\n --st-typography-link-textDecoration: underline;\n --st-foundation-typography-link-decorationThickness: auto;\n --st-typography-link-decorationThickness: auto;\n --st-foundation-typography-link-decorationOffset: 0.18em;\n --st-typography-link-decorationOffset: 0.18em;\n --st-foundation-disabledOpacity: 0.55;\n --st-disabledOpacity: 0.55;\n --st-foundation-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-transition-property: background-color, border-color, color, box-shadow, outline-color;\n --st-foundation-transition-duration: 120ms;\n --st-transition-duration: 120ms;\n --st-foundation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);\n --st-foundation-cursor-interactive: pointer;\n --st-cursor-interactive: pointer;\n --st-foundation-cursor-disabled: not-allowed;\n --st-cursor-disabled: not-allowed;\n --st-foundation-cursor-text: text;\n --st-cursor-text: text;\n --st-foundation-iconSize-sm: 1rem;\n --st-iconSize-sm: 1rem;\n --st-foundation-iconSize-md: 1.125rem;\n --st-iconSize-md: 1.125rem;\n --st-foundation-iconSize-lg: 1.25rem;\n --st-iconSize-lg: 1.25rem;\n --st-foundation-focus-strategy: outline;\n --st-focus-strategy: outline;\n --st-foundation-focus-width: 2px;\n --st-focus-width: 2px;\n --st-foundation-focus-offset: 2px;\n --st-focus-offset: 2px;\n --st-foundation-focus-color: var(--st-semantic-border-interactive);\n --st-focus-color: var(--st-semantic-border-interactive);\n --st-foundation-focus-inset: 0;\n --st-focus-inset: 0;\n --st-foundation-field-style: outline;\n --st-field-style: outline;\n --st-foundation-field-fillBg: var(--st-semantic-surface-default);\n --st-field-fillBg: var(--st-semantic-surface-default);\n --st-foundation-field-underlineColor: var(--st-semantic-border-strong);\n --st-field-underlineColor: var(--st-semantic-border-strong);\n --st-foundation-field-underlineWidth: 1px;\n --st-field-underlineWidth: 1px;\n --st-semantic-surface-default: oklch(15% 0.012 250);\n --st-semantic-surface-subtle: oklch(19% 0.014 250);\n --st-semantic-surface-raised: oklch(21% 0.015 250);\n --st-semantic-surface-inverse: oklch(96% 0.005 250);\n --st-semantic-surface-overlay: rgb(2 4 8 / 0.66);\n --st-semantic-text-primary: oklch(96% 0.005 250);\n --st-semantic-text-secondary: oklch(78% 0.012 250);\n --st-semantic-text-muted: oklch(66% 0.018 250);\n --st-semantic-text-inverse: oklch(15% 0.012 250);\n --st-semantic-text-link: oklch(72% 0.13 242);\n --st-semantic-border-subtle: oklch(28% 0.014 250);\n --st-semantic-border-strong: oklch(42% 0.016 250);\n --st-semantic-border-interactive: oklch(72% 0.13 242);\n --st-semantic-action-primary: oklch(62% 0.15 242);\n --st-semantic-action-primaryHover: oklch(70% 0.15 242);\n --st-semantic-action-primaryText: oklch(17% 0.012 250);\n --st-semantic-action-secondary: oklch(24% 0.015 250);\n --st-semantic-action-secondaryHover: oklch(28% 0.014 250);\n --st-semantic-action-secondaryText: oklch(96% 0.005 250);\n --st-semantic-action-danger: oklch(64% 0.19 25);\n --st-semantic-feedback-success: oklch(70% 0.17 150);\n --st-semantic-feedback-warning: oklch(76% 0.15 75);\n --st-semantic-feedback-error: oklch(64% 0.19 25);\n --st-semantic-feedback-info: oklch(68% 0.15 250);\n --st-semantic-status-pending: oklch(76% 0.15 75);\n --st-semantic-status-processing: oklch(68% 0.15 250);\n --st-semantic-status-completed: oklch(70% 0.17 150);\n --st-semantic-status-failed: oklch(64% 0.19 25);\n --st-semantic-data-category1: oklch(60% 0.08 242);\n --st-semantic-data-category2: oklch(75% 0.14 67);\n --st-semantic-data-category3: oklch(68% 0.16 23);\n --st-semantic-data-category4: oklch(73% 0.09 195);\n --st-semantic-data-category5: oklch(68% 0.14 148);\n --st-semantic-data-category6: oklch(83% 0.13 90);\n --st-semantic-data-category7: oklch(65% 0.10 320);\n --st-semantic-data-category8: oklch(78% 0.12 15);\n --st-component-button-radius: 0.375rem;\n --st-component-button-primaryBackground: oklch(62% 0.15 242);\n --st-component-button-primaryText: oklch(17% 0.012 250);\n --st-component-button-secondaryBackground: oklch(24% 0.015 250);\n --st-component-button-secondaryBorder: oklch(28% 0.014 250);\n --st-component-button-secondaryHoverBackground: oklch(28% 0.014 250);\n --st-component-button-secondaryText: oklch(96% 0.005 250);\n --st-component-button-anatomy-shape-radius: 0.375rem;\n --st-component-button-anatomy-shape-borderWidth: 1px;\n --st-component-button-anatomy-shape-borderStyle: solid;\n --st-component-button-anatomy-density-sm-controlHeight: 2rem;\n --st-component-button-anatomy-density-sm-paddingBlock: 0;\n --st-component-button-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-button-anatomy-density-sm-gap: 0.375rem;\n --st-component-button-anatomy-density-sm-minWidth: 2rem;\n --st-component-button-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-button-anatomy-density-sm-paddingInlineEnd: 0.75rem;\n --st-component-button-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-button-anatomy-density-md-paddingBlock: 0;\n --st-component-button-anatomy-density-md-paddingInline: 1rem;\n --st-component-button-anatomy-density-md-gap: 0.5rem;\n --st-component-button-anatomy-density-md-minWidth: 2.5rem;\n --st-component-button-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-button-anatomy-density-md-paddingInlineEnd: 1rem;\n --st-component-button-anatomy-density-lg-controlHeight: 3rem;\n --st-component-button-anatomy-density-lg-paddingBlock: 0;\n --st-component-button-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-button-anatomy-density-lg-gap: 0.5rem;\n --st-component-button-anatomy-density-lg-minWidth: 3rem;\n --st-component-button-anatomy-density-lg-fontSize: 1rem;\n --st-component-button-anatomy-density-lg-paddingInlineEnd: 1.25rem;\n --st-component-button-anatomy-typography-family: var(--st-font-sans);\n --st-component-button-anatomy-typography-size: 0.9375rem;\n --st-component-button-anatomy-typography-weight: 600;\n --st-component-button-anatomy-typography-lineHeight: 1.2;\n --st-component-button-anatomy-typography-letterSpacing: 0;\n --st-component-button-anatomy-typography-textTransform: none;\n --st-component-button-anatomy-typography-textDecoration: none;\n --st-component-button-anatomy-typography-decorationThickness: auto;\n --st-component-button-anatomy-typography-decorationOffset: auto;\n --st-component-button-anatomy-focus-strategy: outline;\n --st-component-button-anatomy-focus-width: 2px;\n --st-component-button-anatomy-focus-offset: 2px;\n --st-component-button-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-inset: 0;\n --st-component-button-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-button-anatomy-focus-boxShadow: none;\n --st-component-button-anatomy-icon-size: 1.125rem;\n --st-component-button-anatomy-icon-gap: 0.5rem;\n --st-component-button-anatomy-states-hover-bg: oklch(70% 0.15 242);\n --st-component-button-anatomy-states-hover-transform: none;\n --st-component-button-anatomy-states-active-transform: none;\n --st-component-button-anatomy-states-disabled-opacity: 0.55;\n --st-component-link-text: oklch(72% 0.13 242);\n --st-component-link-hoverText: oklch(62% 0.15 242);\n --st-component-link-disabledText: oklch(66% 0.018 250);\n --st-component-link-focusRing: oklch(72% 0.13 242);\n --st-component-link-anatomy-shape-radius: 0.25rem;\n --st-component-link-anatomy-shape-borderWidth: 0;\n --st-component-link-anatomy-shape-borderStyle: solid;\n --st-component-link-anatomy-typography-family: inherit;\n --st-component-link-anatomy-typography-size: inherit;\n --st-component-link-anatomy-typography-weight: inherit;\n --st-component-link-anatomy-typography-lineHeight: inherit;\n --st-component-link-anatomy-typography-letterSpacing: 0;\n --st-component-link-anatomy-typography-textTransform: none;\n --st-component-link-anatomy-typography-textDecoration: underline;\n --st-component-link-anatomy-typography-decorationThickness: auto;\n --st-component-link-anatomy-typography-decorationOffset: 0.18em;\n --st-component-link-anatomy-typography-decorationThicknessHover: auto;\n --st-component-link-anatomy-typography-decorationOffsetHover: 0.18em;\n --st-component-link-anatomy-typography-textDecorationHover: underline;\n --st-component-link-anatomy-focus-strategy: outline;\n --st-component-link-anatomy-focus-width: 2px;\n --st-component-link-anatomy-focus-offset: 2px;\n --st-component-link-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-inset: 0;\n --st-component-link-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-link-anatomy-focus-boxShadow: none;\n --st-component-link-anatomy-states-hover-text: oklch(62% 0.15 242);\n --st-component-link-anatomy-states-hover-decoration: underline;\n --st-component-link-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-link-anatomy-states-disabled-decoration: none;\n --st-component-link-anatomy-states-disabled-opacity: 0.55;\n --st-component-alert-background: oklch(21% 0.015 250);\n --st-component-alert-text: oklch(96% 0.005 250);\n --st-component-alert-border: oklch(28% 0.014 250);\n --st-component-alert-infoBorder: oklch(68% 0.15 250);\n --st-component-alert-successBorder: oklch(70% 0.17 150);\n --st-component-alert-warningBorder: oklch(76% 0.15 75);\n --st-component-alert-errorBorder: oklch(64% 0.19 25);\n --st-component-alert-radius: 0.5rem;\n --st-component-alert-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-alert-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-alert-accentWidth: 0.25rem;\n --st-component-alert-filetWidth: 0;\n --st-component-alert-paddingTop: 1rem;\n --st-component-alert-paddingRight: 1rem;\n --st-component-alert-paddingBottom: 1rem;\n --st-component-alert-paddingLeft: 1rem;\n --st-component-alert-fontSize: inherit;\n --st-component-alert-lineHeight: normal;\n --st-component-alert-letterSpacing: normal;\n --st-component-accordion-text: oklch(96% 0.005 250);\n --st-component-accordion-paddingBlock: 0.875rem;\n --st-component-accordion-paddingInline: 0.5rem;\n --st-component-accordion-fontSize: inherit;\n --st-component-accordion-fontWeight: 600;\n --st-component-accordion-lineHeight: normal;\n --st-component-tag-radius: 999px;\n --st-component-tag-paddingBlock: 0.25rem;\n --st-component-tag-paddingInline: 0.625rem;\n --st-component-tag-fontSize: 0.75rem;\n --st-component-tag-fontWeight: 600;\n --st-component-tag-lineHeight: 1;\n --st-component-tag-letterSpacing: normal;\n --st-component-tag-textTransform: none;\n --st-component-tag-minHeight: 0;\n --st-component-tag-neutralBackground: oklch(19% 0.014 250);\n --st-component-tag-neutralText: oklch(78% 0.012 250);\n --st-component-badge-radius: 999px;\n --st-component-badge-paddingBlock: 0.25rem;\n --st-component-badge-paddingInline: 0.5rem;\n --st-component-badge-fontSize: 0.75rem;\n --st-component-badge-fontWeight: 650;\n --st-component-badge-lineHeight: 1;\n --st-component-badge-letterSpacing: normal;\n --st-component-badge-textTransform: none;\n --st-component-badge-minHeight: 0;\n --st-component-badge-infoBackground: color-mix(in srgb, oklch(68% 0.15 250) 14%, white);\n --st-component-badge-infoText: oklch(68% 0.15 250);\n --st-component-card-background: oklch(21% 0.015 250);\n --st-component-card-border: oklch(28% 0.014 250);\n --st-component-card-radius: 0.5rem;\n --st-component-card-shadow: 0 1px 2px rgb(0 0 0 / 0.5);\n --st-component-card-anatomy-shape-radius: 0.5rem;\n --st-component-card-anatomy-shape-borderWidth: 1px;\n --st-component-card-anatomy-shape-borderStyle: solid;\n --st-component-card-anatomy-typography-family: var(--st-font-sans);\n --st-component-card-anatomy-typography-size: inherit;\n --st-component-card-anatomy-typography-weight: 400;\n --st-component-card-anatomy-typography-lineHeight: normal;\n --st-component-card-anatomy-typography-letterSpacing: normal;\n --st-component-card-anatomy-typography-textTransform: none;\n --st-component-card-anatomy-typography-textDecoration: none;\n --st-component-card-anatomy-typography-decorationThickness: auto;\n --st-component-card-anatomy-typography-decorationOffset: auto;\n --st-component-card-anatomy-focus-strategy: outline;\n --st-component-card-anatomy-focus-width: 2px;\n --st-component-card-anatomy-focus-offset: 2px;\n --st-component-card-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-inset: 0;\n --st-component-card-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-card-anatomy-focus-boxShadow: none;\n --st-component-card-anatomy-states-hover-bg: oklch(21% 0.015 250);\n --st-component-card-anatomy-states-hover-transform: translateY(-1px);\n --st-component-menu-background: oklch(21% 0.015 250);\n --st-component-menu-border: oklch(28% 0.014 250);\n --st-component-menu-text: oklch(96% 0.005 250);\n --st-component-menu-itemHoverBackground: oklch(19% 0.014 250);\n --st-component-menu-dangerText: oklch(64% 0.19 25);\n --st-component-menu-dangerHoverBackground: rgba(185, 28, 28, 0.08);\n --st-component-menu-disabledText: oklch(66% 0.018 250);\n --st-component-menu-radius: 0.375rem;\n --st-component-menu-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-popover-background: oklch(21% 0.015 250);\n --st-component-popover-border: oklch(28% 0.014 250);\n --st-component-popover-text: oklch(96% 0.005 250);\n --st-component-popover-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-popover-radius: 0.5rem;\n --st-component-popover-zIndex: 80;\n --st-component-dropdown-background: oklch(15% 0.012 250);\n --st-component-dropdown-border: oklch(28% 0.014 250);\n --st-component-dropdown-text: oklch(96% 0.005 250);\n --st-component-dropdown-optionHoverBackground: oklch(19% 0.014 250);\n --st-component-dropdown-selectedBackground: oklch(62% 0.15 242);\n --st-component-dropdown-selectedText: oklch(17% 0.012 250);\n --st-component-dropdown-radius: 0.375rem;\n --st-component-dropdown-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-input-background: oklch(15% 0.012 250);\n --st-component-input-border: oklch(28% 0.014 250);\n --st-component-input-focusRing: oklch(72% 0.13 242);\n --st-component-input-radius: 0.375rem;\n --st-component-field-labelText: oklch(96% 0.005 250);\n --st-component-field-helpText: oklch(78% 0.012 250);\n --st-component-field-errorText: oklch(64% 0.19 25);\n --st-component-field-gap: 0.5rem;\n --st-component-field-maxWidth: 28rem;\n --st-component-field-labelTypography-family: var(--st-font-sans);\n --st-component-field-labelTypography-size: 0.875rem;\n --st-component-field-labelTypography-weight: 600;\n --st-component-field-labelTypography-lineHeight: 1.4;\n --st-component-field-labelTypography-letterSpacing: 0;\n --st-component-field-labelTypography-textTransform: none;\n --st-component-field-labelTypography-textDecoration: none;\n --st-component-field-labelTypography-decorationThickness: auto;\n --st-component-field-labelTypography-decorationOffset: auto;\n --st-component-control-background: oklch(15% 0.012 250);\n --st-component-control-text: oklch(96% 0.005 250);\n --st-component-control-placeholderText: oklch(66% 0.018 250);\n --st-component-control-border: oklch(28% 0.014 250);\n --st-component-control-hoverBorder: oklch(42% 0.016 250);\n --st-component-control-hoverBackground: oklch(19% 0.014 250);\n --st-component-control-focusRing: oklch(72% 0.13 242);\n --st-component-control-invalidBorder: oklch(64% 0.19 25);\n --st-component-control-disabledBackground: oklch(19% 0.014 250);\n --st-component-control-disabledText: oklch(66% 0.018 250);\n --st-component-control-radius: 0.375rem;\n --st-component-control-smHeight: 2rem;\n --st-component-control-mdHeight: 2.5rem;\n --st-component-control-lgHeight: 3rem;\n --st-component-control-anatomy-shape-radius: 0.375rem;\n --st-component-control-anatomy-shape-borderWidth: 1px;\n --st-component-control-anatomy-shape-borderStyle: solid;\n --st-component-control-anatomy-density-sm-controlHeight: 2rem;\n --st-component-control-anatomy-density-sm-paddingBlock: 0;\n --st-component-control-anatomy-density-sm-paddingInline: 0.75rem;\n --st-component-control-anatomy-density-sm-gap: 0.375rem;\n --st-component-control-anatomy-density-sm-minWidth: 2rem;\n --st-component-control-anatomy-density-sm-fontSize: 0.875rem;\n --st-component-control-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-control-anatomy-density-md-paddingBlock: 0;\n --st-component-control-anatomy-density-md-paddingInline: 1rem;\n --st-component-control-anatomy-density-md-gap: 0.5rem;\n --st-component-control-anatomy-density-md-minWidth: 2.5rem;\n --st-component-control-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-control-anatomy-density-lg-controlHeight: 3rem;\n --st-component-control-anatomy-density-lg-paddingBlock: 0;\n --st-component-control-anatomy-density-lg-paddingInline: 1.25rem;\n --st-component-control-anatomy-density-lg-gap: 0.5rem;\n --st-component-control-anatomy-density-lg-minWidth: 3rem;\n --st-component-control-anatomy-density-lg-fontSize: 1rem;\n --st-component-control-anatomy-typography-family: var(--st-font-sans);\n --st-component-control-anatomy-typography-size: 1rem;\n --st-component-control-anatomy-typography-weight: 400;\n --st-component-control-anatomy-typography-lineHeight: 1.5;\n --st-component-control-anatomy-typography-letterSpacing: 0;\n --st-component-control-anatomy-typography-textTransform: none;\n --st-component-control-anatomy-typography-textDecoration: none;\n --st-component-control-anatomy-typography-decorationThickness: auto;\n --st-component-control-anatomy-typography-decorationOffset: auto;\n --st-component-control-anatomy-focus-strategy: outline;\n --st-component-control-anatomy-focus-width: 2px;\n --st-component-control-anatomy-focus-offset: 2px;\n --st-component-control-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-inset: 0;\n --st-component-control-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-control-anatomy-focus-boxShadow: none;\n --st-component-control-anatomy-field-style: outline;\n --st-component-control-anatomy-field-fillBg: var(--st-semantic-surface-default);\n --st-component-control-anatomy-field-borderTop: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderRight: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderBottom: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-borderLeft: 1px solid oklch(28% 0.014 250);\n --st-component-control-anatomy-field-radiusTop: 0.375rem;\n --st-component-control-anatomy-field-radiusBottom: 0.375rem;\n --st-component-control-anatomy-field-underline: none;\n --st-component-control-anatomy-field-focusShadow: none;\n --st-component-control-anatomy-field-selectAppearance: auto;\n --st-component-control-anatomy-field-selectChevron: none;\n --st-component-control-anatomy-field-selectPaddingRight: 2rem;\n --st-component-control-anatomy-states-hover-border: oklch(42% 0.016 250);\n --st-component-control-anatomy-states-focus-border: oklch(72% 0.13 242);\n --st-component-control-anatomy-states-disabled-bg: oklch(19% 0.014 250);\n --st-component-control-anatomy-states-disabled-text: oklch(66% 0.018 250);\n --st-component-selection-checkedBackground: oklch(62% 0.15 242);\n --st-component-selection-checkedText: oklch(17% 0.012 250);\n --st-component-selection-border: oklch(28% 0.014 250);\n --st-component-selection-switchTrack: oklch(42% 0.016 250);\n --st-component-selection-switchTrackChecked: oklch(62% 0.15 242);\n --st-component-selection-switchThumb: oklch(15% 0.012 250);\n --st-component-selection-choiceLabelFontSize: 0.9375rem;\n --st-component-selection-choiceLabelLineHeight: normal;\n --st-component-selection-choiceRadioLineHeight: normal;\n --st-component-selection-choiceLabelLetterSpacing: normal;\n --st-component-selection-choiceLabelColor: oklch(96% 0.005 250);\n --st-component-selection-toggleTrackRadius: 999px;\n --st-component-selection-toggleTrackPadding: 0.125rem;\n --st-component-selection-toggleTrackWidth: 2.25rem;\n --st-component-selection-toggleTrackHeight: 1.25rem;\n --st-component-selection-toggleThumbSize: 1rem;\n --st-component-selection-toggleFontSize: inherit;\n --st-component-selection-toggleLineHeight: normal;\n --st-component-selection-toggleLetterSpacing: normal;\n --st-component-selection-toggleTextColor: oklch(96% 0.005 250);\n --st-component-search-paddingBlock: 0;\n --st-component-search-paddingInline: 0;\n --st-component-search-paddingLeft: 0;\n --st-component-search-paddingRight: 0;\n --st-component-search-fontSize: 1rem;\n --st-component-search-lineHeight: normal;\n --st-component-search-letterSpacing: normal;\n --st-component-overlay-backdrop: rgb(2 4 8 / 0.66);\n --st-component-overlay-surface: oklch(21% 0.015 250);\n --st-component-overlay-border: oklch(28% 0.014 250);\n --st-component-overlay-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-overlay-radius: 0.5rem;\n --st-component-overlay-zIndex: 100;\n --st-component-drawer-backdrop: rgb(2 4 8 / 0.66);\n --st-component-drawer-surface: oklch(21% 0.015 250);\n --st-component-drawer-border: oklch(28% 0.014 250);\n --st-component-drawer-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-drawer-width: 24rem;\n --st-component-drawer-zIndex: 100;\n --st-component-emptyState-background: oklch(19% 0.014 250);\n --st-component-emptyState-border: oklch(28% 0.014 250);\n --st-component-emptyState-titleText: oklch(96% 0.005 250);\n --st-component-emptyState-messageText: oklch(78% 0.012 250);\n --st-component-emptyState-radius: 0.5rem;\n --st-component-loadingState-indicator: oklch(62% 0.15 242);\n --st-component-loadingState-track: oklch(19% 0.014 250);\n --st-component-loadingState-text: oklch(78% 0.012 250);\n --st-component-loadingState-radius: 999px;\n --st-component-tooltip-background: oklch(96% 0.005 250);\n --st-component-tooltip-text: oklch(15% 0.012 250);\n --st-component-tooltip-radius: 0.375rem;\n --st-component-tooltip-shadow: 0 8px 24px rgb(0 0 0 / 0.55);\n --st-component-tooltip-zIndex: 80;\n --st-component-toast-background: oklch(21% 0.015 250);\n --st-component-toast-text: oklch(96% 0.005 250);\n --st-component-toast-border: oklch(28% 0.014 250);\n --st-component-toast-shadow: 0 18px 45px rgb(0 0 0 / 0.6);\n --st-component-toast-radius: 0.5rem;\n --st-component-toast-infoBorder: oklch(68% 0.15 250);\n --st-component-toast-successBorder: oklch(70% 0.17 150);\n --st-component-toast-warningBorder: oklch(76% 0.15 75);\n --st-component-toast-errorBorder: oklch(64% 0.19 25);\n --st-component-toast-zIndex: 60;\n --st-component-dataTable-headerBackground: oklch(19% 0.014 250);\n --st-component-dataTable-rowBackground: oklch(15% 0.012 250);\n --st-component-dataTable-rowHoverBackground: oklch(19% 0.014 250);\n --st-component-dataTable-border: oklch(28% 0.014 250);\n --st-component-dataTable-text: oklch(96% 0.005 250);\n --st-component-dataTable-captionText: oklch(78% 0.012 250);\n --st-component-dataTable-radius: 0.5rem;\n --st-component-tabs-activeText: oklch(96% 0.005 250);\n --st-component-tabs-activeBackground: transparent;\n --st-component-tabs-inactiveBackground: transparent;\n --st-component-tabs-activeWeight: 600;\n --st-component-tabs-inactiveText: oklch(78% 0.012 250);\n --st-component-tabs-border: oklch(28% 0.014 250);\n --st-component-tabs-indicator: oklch(62% 0.15 242);\n --st-component-tabs-panelBackground: oklch(15% 0.012 250);\n --st-component-tabs-tabPaddingBlock: 0.75rem;\n --st-component-tabs-tabPaddingInline: 0.25rem;\n --st-component-tabs-tabFontSize: inherit;\n --st-component-tabs-tabLineHeight: 1.2;\n --st-component-tabs-activeBorderTopWidth: 0;\n --st-component-tabs-activeBorderBottomWidth: 1px;\n --st-component-tabs-activeShadow: none;\n --st-component-tabs-anatomy-shape-radius: 0;\n --st-component-tabs-anatomy-shape-borderWidth: 1px;\n --st-component-tabs-anatomy-shape-borderStyle: solid;\n --st-component-tabs-anatomy-density-md-controlHeight: 2.5rem;\n --st-component-tabs-anatomy-density-md-paddingBlock: 0;\n --st-component-tabs-anatomy-density-md-paddingInline: 1rem;\n --st-component-tabs-anatomy-density-md-gap: 0.5rem;\n --st-component-tabs-anatomy-density-md-minWidth: 2.5rem;\n --st-component-tabs-anatomy-density-md-fontSize: 0.9375rem;\n --st-component-tabs-anatomy-typography-family: var(--st-font-sans);\n --st-component-tabs-anatomy-typography-size: 0.9375rem;\n --st-component-tabs-anatomy-typography-weight: 600;\n --st-component-tabs-anatomy-typography-lineHeight: 1.2;\n --st-component-tabs-anatomy-typography-letterSpacing: 0;\n --st-component-tabs-anatomy-typography-textTransform: none;\n --st-component-tabs-anatomy-typography-textDecoration: none;\n --st-component-tabs-anatomy-typography-decorationThickness: auto;\n --st-component-tabs-anatomy-typography-decorationOffset: auto;\n --st-component-tabs-anatomy-focus-strategy: outline;\n --st-component-tabs-anatomy-focus-width: 2px;\n --st-component-tabs-anatomy-focus-offset: 2px;\n --st-component-tabs-anatomy-focus-color: var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-inset: 0;\n --st-component-tabs-anatomy-focus-outline: 2px solid var(--st-semantic-border-interactive);\n --st-component-tabs-anatomy-focus-boxShadow: none;\n --st-component-tabs-anatomy-states-hover-text: oklch(96% 0.005 250);\n --st-component-tabs-anatomy-states-disabled-opacity: 0.55;\n --st-component-pagination-background: oklch(15% 0.012 250);\n --st-component-pagination-border: oklch(28% 0.014 250);\n --st-component-pagination-text: oklch(96% 0.005 250);\n --st-component-pagination-activeBackground: oklch(62% 0.15 242);\n --st-component-pagination-activeText: oklch(17% 0.012 250);\n --st-component-pagination-disabledText: oklch(66% 0.018 250);\n --st-component-pagination-radius: 0.375rem;\n --st-component-pagination-borderWidth: 1px;\n --st-component-pagination-activeBorder: oklch(28% 0.014 250);\n --st-component-pagination-activeBorderWidth: 1px;\n --st-component-pagination-activeWeight: inherit;\n --st-component-pagination-paddingBlock: 0;\n --st-component-pagination-paddingInline: 0.75rem;\n --st-component-pagination-minSize: 2.25rem;\n --st-component-pagination-fontSize: inherit;\n --st-component-pagination-lineHeight: normal;\n --st-component-pagination-letterSpacing: normal;\n --st-component-paginationNav-background: oklch(15% 0.012 250);\n --st-component-paginationNav-border: oklch(28% 0.014 250);\n --st-component-paginationNav-radius: 0.375rem;\n --st-component-paginationNav-text: oklch(96% 0.005 250);\n --st-component-paginationNav-hoverBackground: oklch(19% 0.014 250);\n --st-component-paginationNav-activeBackground: oklch(62% 0.15 242);\n --st-component-paginationNav-activeText: oklch(17% 0.012 250);\n --st-component-paginationNav-disabledText: oklch(66% 0.018 250);\n --st-component-paginationNav-ellipsisText: oklch(66% 0.018 250);\n --st-component-breadcrumb-text: oklch(78% 0.012 250);\n --st-component-breadcrumb-currentText: oklch(96% 0.005 250);\n --st-component-breadcrumb-separator: oklch(66% 0.018 250);\n --st-component-breadcrumb-linkText: oklch(72% 0.13 242);\n --st-component-breadcrumb-fontSize: inherit;\n --st-component-breadcrumb-lineHeight: normal;\n --st-component-breadcrumb-letterSpacing: normal;\n --st-component-breadcrumb-currentWeight: 600;\n --st-component-sideNav-background: oklch(15% 0.012 250);\n --st-component-sideNav-border: oklch(28% 0.014 250);\n --st-component-sideNav-itemText: oklch(78% 0.012 250);\n --st-component-sideNav-activeBackground: oklch(19% 0.014 250);\n --st-component-sideNav-activeText: oklch(96% 0.005 250);\n --st-component-sideNav-width: 16rem;\n --st-component-selectableRow-selectedBackground: color-mix(in oklch, oklch(62% 0.15 242) 12%, transparent);\n --st-component-selectableRow-selectedAccent: oklch(62% 0.15 242);\n --st-component-selectableRow-selectedText: color-mix(in oklch, oklch(62% 0.15 242) 78%, black);\n --st-component-selectableRow-selectedBackgroundDark: color-mix(in oklch, oklch(62% 0.15 242) 22%, transparent);\n --st-component-selectableRow-selectedAccentDark: oklch(62% 0.15 242);\n --st-component-selectableRow-selectedTextDark: color-mix(in oklch, oklch(62% 0.15 242) 70%, white);\n --st-component-chat-userBubbleBackground: oklch(62% 0.15 242);\n --st-component-chat-userBubbleText: oklch(17% 0.012 250);\n --st-component-chat-assistantBubbleBackground: oklch(19% 0.014 250);\n --st-component-chat-assistantBubbleText: oklch(96% 0.005 250);\n --st-component-chat-composerSurface: oklch(21% 0.015 250);\n --st-component-chat-toolCallSurface: oklch(19% 0.014 250);\n --st-component-icon-strokeWidth: 2.25;\n --st-component-icon-color: currentColor;\n --st-component-graph-panelBackground: oklch(96% 0.005 250);\n --st-component-graph-panelText: oklch(15% 0.012 250);\n --st-component-graph-edgeDefault: rgb(226 232 240 / 0.56);\n --st-component-graph-community1: oklch(60% 0.08 242);\n --st-component-graph-community2: oklch(75% 0.14 67);\n --st-component-graph-community3: oklch(68% 0.16 23);\n --st-component-graph-community4: oklch(73% 0.09 195);\n}\n";m$=["sent-tech","forge","entropic"],u$={"sent-tech":async()=>p$,forge:async()=>(await Ko(async()=>{let{default:t}=await Promise.resolve().then(()=>(u5(),m5));return{default:t}},[])).default,entropic:async()=>(await Ko(async()=>{let{default:t}=await Promise.resolve().then(()=>(f5(),h5));return{default:t}},[])).default},ig=new Map;b$=ho('<li class="st-element__errorItem svelte-ia8wso" data-st-error-item=""><code class="st-element__errorCode svelte-ia8wso" data-st-error-code=""> </code> <span class="st-element__errorPath svelte-ia8wso" data-st-error-path=""> </span> <span class="st-element__errorMessage" data-st-error-message=""> </span></li>'),x$=ho('<div class="st-element__error svelte-ia8wso" role="alert" data-st-error=""><p class="st-element__errorTitle svelte-ia8wso" data-st-error-title=""> </p> <ul class="st-element__errorList svelte-ia8wso"></ul></div>'),k$={hash:"svelte-ia8wso",code:".st-element__error.svelte-ia8wso {border:1px solid var(--st-color-feedback-error-border, #dc2626);border-radius:8px;padding:12px;font-family:inherit;color:var(--st-color-feedback-error-text, #7f1d1d);background:var(--st-color-feedback-error-background, #fef2f2);}.st-element__errorTitle.svelte-ia8wso {margin:0 0 8px;font-weight:600;}.st-element__errorList.svelte-ia8wso {margin:0;padding:0;list-style:none;}.st-element__errorItem.svelte-ia8wso {display:grid;grid-template-columns:auto auto 1fr;gap:8px;margin:4px 0;font-size:0.875rem;}.st-element__errorCode.svelte-ia8wso {font-family:ui-monospace, monospace;}.st-element__errorPath.svelte-ia8wso {font-family:ui-monospace, monospace;opacity:0.8;}"};w$=ho('<div class="st-element__root svelte-17allio"><!></div>'),_$={hash:"svelte-17allio",code:".st-element__root.svelte-17allio {display:block;}"};customElements.define("st-bar-chart",Sg(E$,{envelope:{},hostConfig:{}},[],[],{mode:"open"}));C$=ho('<div class="st-element__body svelte-ji2uxk"></div>'),B$=ho('<div class="st-element__root svelte-ji2uxk"><!></div>'),R$={hash:"svelte-ji2uxk",code:".st-element__root.svelte-ji2uxk {display:block;}.st-element__body.svelte-ji2uxk {min-height:120px;}"};customElements.define("st-bpmn-canvas",Sg(M$,{envelope:{},hostConfig:{}},[],[],{mode:"open"}));A$=ho('<div class="st-element__body"></div>'),P$=ho('<div class="st-element__root svelte-2k2x7w"><!></div>'),D$={hash:"svelte-2k2x7w",code:".st-element__root.svelte-2k2x7w {display:block;}"};customElements.define("st-decision-dossier",Sg(j$,{envelope:{},hostConfig:{}},[],[],{mode:"open"})),Wf("st-bar-chart"),Wf("st-bpmn-canvas"),Wf("st-decision-dossier")});Uh();export{fs as n,Ko as t};