@codingame/monaco-vscode-markdown-language-features-default-extension 36.2.7 → 37.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +237 -23
- package/package.json +2 -2
- package/resources/abnfDiagram-VCTEODGH-MFZBS7QV.js +1 -0
- package/resources/architecture-7GRP2DOG-KMESPJ5A.js +1 -0
- package/resources/architectureDiagram-5GKGNRK7-MTTZPDNG.js +36 -0
- package/resources/blockDiagram-NRAW4CY4-UDRMVB5I.js +129 -0
- package/resources/c4Diagram-UCG6FXSJ-CNUYFC6N.js +38 -0
- package/resources/chunk-2KBWIZHB.js +14 -0
- package/resources/chunk-3CEAP2V5.js +1 -0
- package/resources/chunk-43RBMH4Y.js +1 -0
- package/resources/chunk-4AUIAGYT.js +1 -0
- package/resources/chunk-4PRM3W7S.js +88 -0
- package/resources/chunk-5DJUZA4F.js +1 -0
- package/resources/chunk-6LQNQPBM.js +1 -0
- package/resources/chunk-A3DHMJKP.js +1 -0
- package/resources/chunk-ATDVZUJ2.js +231 -0
- package/resources/chunk-CBQW2LLN.js +1 -0
- package/resources/chunk-CCQNES6G.js +1 -0
- package/resources/chunk-CD5RYVNW.js +1 -0
- package/resources/chunk-CQFFNO72.js +1 -0
- package/resources/chunk-EWILYK3H.js +1 -0
- package/resources/chunk-EWVD6AUZ.js +15 -0
- package/resources/chunk-EXFMYL6U.js +1 -0
- package/resources/chunk-FH3BATM5.js +1 -0
- package/resources/chunk-FK4OKHO7.js +178 -0
- package/resources/chunk-FZLE27CN.js +1 -0
- package/resources/chunk-HRJ5UBVC.js +1 -0
- package/resources/chunk-IEMKBRIG.js +339 -0
- package/resources/chunk-IRNO36C3.js +1 -0
- package/resources/chunk-J4SQIVOP.js +1 -0
- package/resources/chunk-JAORNH2M.js +2 -0
- package/resources/chunk-JBQZ5UCE.js +1 -0
- package/resources/chunk-JFI5BOLY.js +1 -0
- package/resources/chunk-JXCTOEX6.js +1 -0
- package/resources/chunk-K2JFJOPP.js +1 -0
- package/resources/chunk-LK6KML2S.js +10 -0
- package/resources/chunk-MNHOAW4R.js +3 -0
- package/resources/chunk-NLCJ5AKJ.js +132 -0
- package/resources/chunk-OOJM4CTU.js +1 -0
- package/resources/chunk-R7CM4BQN.js +2 -0
- package/resources/chunk-RBL2QVA3.js +1 -0
- package/resources/chunk-SNGMH3JW.js +2 -0
- package/resources/chunk-TGD3YKTU.js +32 -0
- package/resources/chunk-TGYBLZFN.js +1 -0
- package/resources/chunk-U3E5RSXE.js +62 -0
- package/resources/chunk-U7TCJVVP.js +1 -0
- package/resources/chunk-WSHCWW4Q.js +2 -0
- package/resources/chunk-WVYKIHVG.js +1 -0
- package/resources/chunk-XCMS6RVA.js +1 -0
- package/resources/chunk-XM54GAH3.js +206 -0
- package/resources/chunk-YICKNY6Y.js +1 -0
- package/resources/chunk-YNKYB66X.js +257 -0
- package/resources/chunk-ZMBQGVIF.js +1 -0
- package/resources/chunk-ZNREFWKG.js +1 -0
- package/resources/chunk-ZU7JKVUR.js +168 -0
- package/resources/chunk-ZYRITDEB.js +72 -0
- package/resources/classDiagram-DTDB5LWJ-TBJLBGTZ.js +1 -0
- package/resources/codicon-R6HEZFPR.ttf +0 -0
- package/resources/cose-bilkent-JH36ORCC-7TCRTQWC.js +1 -0
- package/resources/cynefin-OW5HDTMX-QMEUXFXO.js +1 -0
- package/resources/cynefinDiagram-5FMLGOSQ-J745EYTI.js +62 -0
- package/resources/dagre-3AP2YEHR-CUFPL4A5.js +4 -0
- package/resources/diagram-S7CK7UJ4-SC5AFKXH.js +30 -0
- package/resources/diagram-UQ7AKVKN-3O7WQJXE.js +41 -0
- package/resources/diagram-VSXAHHWV-SN3VCCS5.js +3 -0
- package/resources/diagram-VX7I27RA-7PQJWMN5.js +24 -0
- package/resources/diagram-Z3DM3KII-QZ45TJFK.js +24 -0
- package/resources/ebnfDiagram-PWID7BFC-CBJPGG56.js +1 -0
- package/resources/editor.css.txt +1 -1
- package/resources/editor.js +137 -3431
- package/resources/editor.ts +587 -46
- package/resources/erDiagram-SSCWMZ5O-TUKYG42P.js +99 -0
- package/resources/eventmodeling-NTZA5JFV-MGOPW7BD.js +1 -0
- package/resources/extension.js +179 -172
- package/resources/extension.js.map +4 -4
- package/resources/flowDiagram-A5DVABFB-M6K5X26V.js +1 -0
- package/resources/ganttDiagram-EL5Y4UJY-JCSKUU2V.js +292 -0
- package/resources/gitGraph-4MIJSDKK-ITDCTFJT.js +1 -0
- package/resources/gitGraphDiagram-WWUBYQGX-RXRB5JA2.js +106 -0
- package/resources/index.js +3 -3
- package/resources/index2.js +17 -17
- package/resources/info-A6RAGUB7-VXIEHQAI.js +1 -0
- package/resources/infoDiagram-RXCK75RN-2T6V4JS2.js +2 -0
- package/resources/ishikawaDiagram-5VMMS53U-6WC4IGXZ.js +70 -0
- package/resources/journeyDiagram-EYS64GPL-PZQYT6UF.js +139 -0
- package/resources/kanban-definition-3QL26DDD-VYBV345J.js +89 -0
- package/resources/katex-QJ7O5CJ5.js +1 -0
- package/resources/linkPresentationProvider.ts +179 -0
- package/resources/markdown.css.txt +39 -0
- package/resources/markdownEditor.css.txt +13 -0
- package/resources/mermaid.core-S5KCHHL2.js +18 -0
- package/resources/mindmap-definition-FBJOCRG2-H3I5F4WB.js +96 -0
- package/resources/package.json +1 -1
- package/resources/package.nls.json +1 -1
- package/resources/package.schema.json +1 -1
- package/resources/packet-AYTQ26CC-WLFKOXIZ.js +1 -0
- package/resources/pegDiagram-XKGWAZYB-HUV4U5RU.js +1 -0
- package/resources/pie-WAS4IAKB-GZIMD664.js +1 -0
- package/resources/pieDiagram-E7YTZNPT-XOJEVCEO.js +39 -0
- package/resources/pre.js +1 -1
- package/resources/preview-dark.svg +1 -1
- package/resources/preview-light.svg +1 -1
- package/resources/quadrantDiagram-AXDQQJYC-YPPZYAGP.js +7 -0
- package/resources/radar-RG4KPBEZ-URG5LVGS.js +1 -0
- package/resources/railroad-74A4TZTK-3ZMXCKLP.js +1 -0
- package/resources/railroad-abnf-HS5TGJTU-LBR5MV33.js +1 -0
- package/resources/railroad-ebnf-LZEXJU2U-YEVF3EJR.js +1 -0
- package/resources/railroad-peg-WCYAUIDC-CV774YSK.js +1 -0
- package/resources/railroadDiagram-O6MQD6OU-YZF7JNDT.js +1 -0
- package/resources/requirementDiagram-EFPCY7ZU-PZ7BYTDZ.js +84 -0
- package/resources/sankeyDiagram-P5KCCOFB-3P5DWREA.js +40 -0
- package/resources/sequenceDiagram-WJ2MYXX4-O52K5NPU.js +162 -0
- package/resources/sizeCapture-X5ZJPWSS-PRFE7SKK.js +1 -0
- package/resources/stateDiagram-HBIQ2CUA-KDPYCQOT.js +1 -0
- package/resources/stateDiagram-v2-4QOOHH4V-QBQE56JB.js +1 -0
- package/resources/swimlanes-XN3QIQJK-YCLJ3KIH.js +1 -0
- package/resources/swimlanesDiagram-VK2B7HYN-RS7VRH6T.js +8 -0
- package/resources/syntaxHighlighter.ts +2 -2
- package/resources/timeline-definition-24CTP7MA-GQ3MCHCF.js +120 -0
- package/resources/treeView-Q6P3EWNA-UEXUSAGC.js +1 -0
- package/resources/treemap-WGGIJYW6-NFXJPDAT.js +1 -0
- package/resources/tsconfig.json +1 -1
- package/resources/vennDiagram-4TSXK5OY-PNMXQJF6.js +34 -0
- package/resources/wardley-WFR3VGLG-MQ6DEZYA.js +1 -0
- package/resources/wardleyDiagram-VM6X3IG4-46KJTB57.js +78 -0
- package/resources/xychartDiagram-S5SC5T6Z-NSN5W7VL.js +7 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as o,c as n,d as i,e as s,g as u,n as d,w as l,y as c}from"./chunk-FK4OKHO7.js";var m=class extends c{static{e(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},v=class extends l{static{e(this,"PieValueConverter")}runCustomConverter(t,r,a){if(t.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},C={parser:{TokenBuilder:e(()=>new m,"TokenBuilder"),ValueConverter:e(()=>new v,"ValueConverter")}};function P(t=s){let r=i(n(t),u),a=i(o({shared:r}),d,C);return r.ServiceRegistry.register(a),{shared:r,Pie:a}}e(P,"createPieServices");export{C as a,P as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-6LQNQPBM.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as pt}from"./chunk-JBQZ5UCE.js";import{A as E,D as dr,N as F,h as or,l as gr}from"./chunk-NLCJ5AKJ.js";import{$ as Tr,G as xr,J as br,K as Ar,L as wr,M as Or,N as Sr,O as Br,P as Ir,Q as Pr,R as Mr,S as Wr,T as Er,U as Lr,V as Dr,W as $r,X as Rr,Y as Fr,Z as Nr,_ as jr,b as w,h as hr}from"./chunk-3CEAP2V5.js";import{a}from"./chunk-6LQNQPBM.js";import{c as at}from"./chunk-OOJM4CTU.js";function h(r){return r==null||typeof r!="object"&&typeof r!="function"}function d(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}var N="[object RegExp]",O="[object String]",S="[object Number]",B="[object Boolean]",I="[object Arguments]",j="[object Symbol]",T="[object Date]",z="[object Map]",_="[object Set]",v="[object Array]";var U="[object ArrayBuffer]",k="[object Object]";var H="[object DataView]",q="[object Uint8Array]",K="[object Uint8ClampedArray]",V="[object Uint16Array]",X="[object Uint32Array]";var Y="[object Int8Array]",G="[object Int16Array]",J="[object Int32Array]";var Z="[object Float32Array]",Q="[object Float64Array]";function zr(r){return Array.isArray(r)}function P(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function x(r){return P(r)}function ct(r){if(h(r))return r;let t=d(r);if(!ut(r))return{};if(zr(r)){let e=Array.from(r);return r.length>0&&typeof r[0]=="string"&&Object.hasOwn(r,"index")&&(e.index=r.index,e.input=r.input),e}if(x(r)){let e=r,n=e.constructor;return new n(e.buffer,e.byteOffset,e.length)}if(t==="[object ArrayBuffer]")return new ArrayBuffer(r.byteLength);if(t==="[object DataView]"){let e=r,n=e.buffer,m=e.byteOffset,o=e.byteLength,f=new ArrayBuffer(o),s=new Uint8Array(n,m,o);return new Uint8Array(f).set(s),new DataView(f)}if(t==="[object Boolean]"||t==="[object Number]"||t==="[object String]"){let e=r.constructor,n=new e(r.valueOf());return t==="[object String]"?yt(n,r):nr(n,r),n}if(t==="[object Date]")return new Date(Number(r));if(t==="[object RegExp]"){let e=r,n=new RegExp(e.source,e.flags);return n.lastIndex=e.lastIndex,n}if(t==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(r));if(t==="[object Map]"){let e=r,n=new Map;return e.forEach((m,o)=>{n.set(o,m)}),n}if(t==="[object Set]"){let e=r,n=new Set;return e.forEach(m=>{n.add(m)}),n}if(t==="[object Arguments]"){let e=r,n={};return nr(n,e),n.length=e.length,n[Symbol.iterator]=e[Symbol.iterator],n}let i={};return gt(i,r),nr(i,r),lt(i,r),i}function ut(r){switch(d(r)){case I:case v:case U:case H:case B:case T:case Z:case Q:case Y:case G:case J:case z:case S:case k:case N:case _:case O:case j:case q:case K:case V:case X:return!0;default:return!1}}function nr(r,t){for(let i in t)Object.hasOwn(t,i)&&(r[i]=t[i])}function lt(r,t){let i=Object.getOwnPropertySymbols(t);for(let e=0;e<i.length;e++){let n=i[e];Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}}function yt(r,t){let i=t.valueOf().length;for(let e in t)Object.hasOwn(t,e)&&(Number.isNaN(Number(e))||Number(e)>=i)&&(r[e]=t[e])}function gt(r,t){let i=Object.getPrototypeOf(t);i!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(r,i)}var mr=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})()||Function("return this")();function M(r){return typeof mr.Buffer<"u"&&mr.Buffer.isBuffer(r)}function _r(r){return Number.isSafeInteger(r)&&r>=0}function C(r){return r!=null&&typeof r!="function"&&_r(r.length)}function L(r){return r!==null&&typeof r=="object"&&d(r)==="[object Arguments]"}function vr(r){let t=r?.constructor;return r===(typeof t=="function"?t.prototype:Object.prototype)}function dt(r){if(r==null)return!0;if(C(r))return typeof r.splice!="function"&&typeof r!="string"&&!M(r)&&!x(r)&&!L(r)?!1:r.length===0;if(typeof r=="object"){if(r instanceof Map||r instanceof Set)return r.size===0;let t=Object.keys(r);return vr(r)?t.filter(i=>i!=="constructor").length===0:t.length===0}return!0}function rr(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){let i=r[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${i}]`}let t=r;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function Ur(){}function tr(r){return Object.getOwnPropertySymbols(r).filter(t=>Object.prototype.propertyIsEnumerable.call(r,t))}function kr(r){return r==="__proto__"}function Hr(r,t){return W(r,void 0,r,new Map,t)}function W(r,t,i,e=new Map,n=void 0){let m=n?.(r,t,i,e);if(m!==void 0)return m;if(h(r))return r;if(e.has(r))return e.get(r);if(Array.isArray(r)){let o=new Array(r.length);e.set(r,o);for(let f=0;f<r.length;f++)o[f]=W(r[f],f,i,e,n);return Object.hasOwn(r,"index")&&(o.index=r.index),Object.hasOwn(r,"input")&&(o.input=r.input),o}if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp){let o=new RegExp(r.source,r.flags);return o.lastIndex=r.lastIndex,o}if(r instanceof Map){let o=new Map;e.set(r,o);for(let[f,s]of r)o.set(f,W(s,f,i,e,n));return o}if(r instanceof Set){let o=new Set;e.set(r,o);for(let f of r)o.add(W(f,void 0,i,e,n));return o}if(M(r))return r.subarray();if(P(r)){let o=new(Object.getPrototypeOf(r)).constructor(r.length);e.set(r,o);for(let f=0;f<r.length;f++)o[f]=W(r[f],f,i,e,n);return o}if(r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);if(r instanceof DataView){let o=new DataView(r.buffer.slice(0),r.byteOffset,r.byteLength);return e.set(r,o),u(o,r,i,e,n),o}if(typeof File<"u"&&r instanceof File){let o=new File([r],r.name,{type:r.type});return e.set(r,o),u(o,r,i,e,n),o}if(typeof Blob<"u"&&r instanceof Blob){let o=new Blob([r],{type:r.type});return e.set(r,o),u(o,r,i,e,n),o}if(r instanceof Error){let o=structuredClone(r);return e.set(r,o),o.message=r.message,o.name=r.name,o.stack=r.stack,o.cause=r.cause,o.constructor=r.constructor,u(o,r,i,e,n),o}if(r instanceof Boolean){let o=new Boolean(r.valueOf());return e.set(r,o),u(o,r,i,e,n),o}if(r instanceof Number){let o=new Number(r.valueOf());return e.set(r,o),u(o,r,i,e,n),o}if(r instanceof String){let o=new String(r.valueOf());return e.set(r,o),u(o,r,i,e,n),o}if(typeof r=="object"&&ht(r)){let o=Object.create(Object.getPrototypeOf(r));return e.set(r,o),u(o,r,i,e,n),o}return r}function u(r,t,i=r,e,n){let m=[...Object.keys(t),...tr(t)];for(let o=0;o<m.length;o++){let f=m[o],s=Object.getOwnPropertyDescriptor(r,f);(s==null||s.writable)&&(r[f]=W(t[f],f,i,e,n))}}function ht(r){switch(d(r)){case I:case v:case U:case H:case B:case T:case Z:case Q:case Y:case G:case J:case z:case S:case k:case N:case _:case O:case j:case q:case K:case V:case X:return!0;default:return!1}}function qr(r,t){return Hr(r,(i,e,n,m)=>{let o=t?.(i,e,n,m);if(o!==void 0)return o;if(typeof r=="object"){if(d(r)==="[object Object]"&&typeof r.constructor!="function"){let f={};return m.set(r,f),u(f,r,n,m),f}switch(Object.prototype.toString.call(r)){case S:case O:case B:{let f=new r.constructor(r?.valueOf());return u(f,r),f}case I:{let f={};return u(f,r),f.length=r.length,f[Symbol.iterator]=r[Symbol.iterator],f}default:return}}})}function fr(r){return qr(r)}function D(r){return typeof r=="object"&&r!==null}function Kr(r){return D(r)&&C(r)}function b(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");let i=function(...e){let n=t?t.apply(this,e):e[0],m=i.cache;if(m.has(n))return m.get(n);let o=r.apply(this,e);return i.cache=m.set(n,o)||m,o};return i.cache=new(b.Cache||Map),i}b.Cache=Map;function Vr(r){if(h(r))return r;if(Array.isArray(r)||P(r)||r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);let t=Object.getPrototypeOf(r);if(t==null)return Object.assign(Object.create(t),r);let i=t.constructor;if(r instanceof Date||r instanceof Map||r instanceof Set)return new i(r);if(r instanceof RegExp){let e=new i(r);return e.lastIndex=r.lastIndex,e}if(r instanceof DataView)return new i(r.buffer.slice(0));if(r instanceof Error){let e;return r instanceof AggregateError?e=new i(r.errors,r.message,{cause:r.cause}):e=new i(r.message,{cause:r.cause}),e.stack=r.stack,Object.assign(e,r),e}return typeof File<"u"&&r instanceof File?new i([r],r.name,{type:r.type,lastModified:r.lastModified}):typeof r=="object"?Object.assign(Object.create(t),r):r}function Xr(r,...t){let i=t.slice(0,-1),e=t[t.length-1],n=r;for(let m=0;m<i.length;m++){let o=i[m];n=er(n,o,e,new Map)}return n}function er(r,t,i,e){if(h(r)&&(r=Object(r)),t==null||typeof t!="object")return r;if(e.has(t))return Vr(e.get(t));if(e.set(t,r),Array.isArray(t)){t=t.slice();for(let m=0;m<t.length;m++)t[m]=t[m]??void 0}let n=[...Object.keys(t),...tr(t)];for(let m=0;m<n.length;m++){let o=n[m];if(kr(o))continue;let f=t[o],s=r[o];if(L(f)&&(f={...f}),L(s)&&(s={...s}),M(f)&&(f=fr(f)),Array.isArray(f))if(Array.isArray(s)){let l=[],c=Reflect.ownKeys(s);for(let g=0;g<c.length;g++){let y=c[g];l[y]=s[y]}s=l}else if(Kr(s)){let l=[];for(let c=0;c<s.length;c++)l[c]=s[c];s=l}else s=[];let p=i(s,f,o,r,t,e);p!==void 0?r[o]=p:Array.isArray(f)||D(s)&&D(f)&&(rr(s)||rr(f)||x(s)||x(f))?r[o]=er(s,f,i,e):s==null&&rr(f)?r[o]=er({},f,i,e):s==null&&x(f)?r[o]=fr(f):(s===void 0||f!==void 0)&&(r[o]=f)}return r}function sr(r,...t){return Xr(r,...t,Ur)}var Jr=at(pt(),1);var xt="\u200B",bt={curveBasis:wr,curveBasisClosed:Or,curveBasisOpen:Sr,curveBumpX:br,curveBumpY:Ar,curveBundle:Br,curveCardinalClosed:Pr,curveCardinalOpen:Mr,curveCardinal:Ir,curveCatmullRomClosed:Er,curveCatmullRomOpen:Lr,curveCatmullRom:Wr,curveLinear:xr,curveLinearClosed:Dr,curveMonotoneX:$r,curveMonotoneY:Rr,curveNatural:Fr,curveStep:Nr,curveStepAfter:Tr,curveStepBefore:jr},At=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,wt=a(function(r,t){let i=Zr(r,/(?:init\b)|(?:initialize\b)/),e={};if(Array.isArray(i)){let o=i.map(f=>f.args);gr(o),e=or(e,[...o])}else e=i.args;if(!e)return;let n=dr(r,t),m="config";return e[m]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),e[n]=e[m],delete e[m]),e},"detectInit"),Zr=a(function(r,t=null){try{let i=new RegExp(`[%]{2}(?![{]${At.source})(?=[}][%]{2}).*
|
|
2
|
+
`,"ig");r=r.trim().replace(i,"").replace(/'/gm,'"'),w.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${r}`);let e,n=[];for(;(e=E.exec(r))!==null;)if(e.index===E.lastIndex&&E.lastIndex++,e&&!t||t&&e[1]?.match(t)||t&&e[2]?.match(t)){let m=e[1]?e[1]:e[2],o=e[3]?e[3].trim():e[4]?JSON.parse(e[4].trim()):null;n.push({type:m,args:o})}return n.length===0?{type:r,args:null}:n.length===1?n[0]:n}catch(i){return w.error(`ERROR: ${i.message} - Unable to parse directive type: '${t}' based on the text: '${r}'`),{type:void 0,args:null}}},"detectDirective"),mi=a(function(r){return r.replace(E,"")},"removeDirectives"),Ot=a(function(r,t){for(let[i,e]of t.entries())if(e.match(r))return i;return-1},"isSubstringInArray");function Qr(r,t){if(!r)return t;let i=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return bt[i]??t}a(Qr,"interpolateToCurve");function Cr(r,t){let i=r.trim();if(i)return t.securityLevel!=="loose"?(0,Jr.sanitizeUrl)(i):i}a(Cr,"formatUrl");var St=a((r,...t)=>{let i=r.split("."),e=i.length-1,n=i[e],m=window;for(let o=0;o<e;o++)if(m=m[i[o]],!m){w.error(`Function name: ${r} not found in window`);return}m[n](...t)},"runFunc");function ar(r,t){return!r||!t?0:Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}a(ar,"distance");function rt(r){let t,i=0;r.forEach(n=>{i+=ar(n,t),t=n});let e=i/2;return pr(r,e)}a(rt,"traverseEdge");function tt(r){return r.length===1?r[0]:rt(r)}a(tt,"calcLabelPosition");var Yr=a((r,t=2)=>{let i=Math.pow(10,t);return Math.round(r*i)/i},"roundNumber"),pr=a((r,t)=>{let i,e=t;for(let n of r){if(i){let m=ar(n,i);if(m===0)return i;if(m<e)e-=m;else{let o=e/m;if(o<=0)return i;if(o>=1)return{x:n.x,y:n.y};if(o>0&&o<1)return{x:Yr((1-o)*i.x+o*n.x,5),y:Yr((1-o)*i.y+o*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Bt=a((r,t,i)=>{w.info(`our points ${JSON.stringify(t)}`),t[0]!==i&&(t=t.reverse());let n=pr(t,25),m=r?10:5,o=Math.atan2(t[0].y-n.y,t[0].x-n.x),f={x:0,y:0};return f.x=Math.sin(o)*m+(t[0].x+n.x)/2,f.y=-Math.cos(o)*m+(t[0].y+n.y)/2,f},"calcCardinalityPosition");function et(r,t,i){let e=structuredClone(i);w.info("our points",e),t!=="start_left"&&t!=="start_right"&&e.reverse();let n=25+r,m=pr(e,n),o=10+r*.5,f=Math.atan2(e[0].y-m.y,e[0].x-m.x),s={x:0,y:0};return t==="start_left"?(s.x=Math.sin(f+Math.PI)*o+(e[0].x+m.x)/2,s.y=-Math.cos(f+Math.PI)*o+(e[0].y+m.y)/2):t==="end_right"?(s.x=Math.sin(f-Math.PI)*o+(e[0].x+m.x)/2-5,s.y=-Math.cos(f-Math.PI)*o+(e[0].y+m.y)/2-5):t==="end_left"?(s.x=Math.sin(f)*o+(e[0].x+m.x)/2-5,s.y=-Math.cos(f)*o+(e[0].y+m.y)/2-5):(s.x=Math.sin(f)*o+(e[0].x+m.x)/2,s.y=-Math.cos(f)*o+(e[0].y+m.y)/2),s}a(et,"calcTerminalLabelPosition");function it(r){let t="",i="";for(let e of r)e!==void 0&&(e.startsWith("color:")||e.startsWith("text-align:")?i=i+e+";":t=t+e+";");return{style:t,labelStyle:i}}a(it,"getStylesFromArray");var Gr=0,It=a(()=>(Gr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Gr),"generateId");function ot(r){let t="",i="0123456789abcdef",e=i.length;for(let n=0;n<r;n++)t+=i.charAt(Math.floor(Math.random()*e));return t}a(ot,"makeRandomHex");var Pt=a(r=>ot(r.length),"random"),Mt=a(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Wt=a(function(r,t){let i=t.text.replace(F.lineBreakRegex," "),[,e]=ur(t.fontSize),n=r.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",e),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);let m=n.append("tspan");return m.attr("x",t.x+t.textMargin*2),m.attr("fill",t.fill),m.text(i),n},"drawSimpleText"),Et=b((r,t,i)=>{if(!r||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),F.lineBreakRegex.test(r)))return r;let e=r.split(" ").filter(Boolean),n=[],m="";return e.forEach((o,f)=>{let s=$(`${o} `,i),p=$(m,i);if(s>t){let{hyphenatedStrings:g,remainingWord:y}=Lt(o,t,"-",i);n.push(m,...g),m=y}else p+s>=t?(n.push(m),m=o):m=[m,o].filter(Boolean).join(" ");f+1===e.length&&n.push(m)}),n.filter(o=>o!=="").join(i.joinWith)},(r,t,i)=>`${r}${t}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Lt=b((r,t,i="-",e)=>{e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},e);let n=[...r],m=[],o="";return n.forEach((f,s)=>{let p=`${o}${f}`;if($(p,e)>=t){let c=s+1,g=n.length===c,y=`${p}${i}`;m.push(g?p:y),o=""}else o=p}),{hyphenatedStrings:m,remainingWord:o}},(r,t,i="-",e)=>`${r}${t}${i}${e.fontSize}${e.fontWeight}${e.fontFamily}`);function nt(r,t){return cr(r,t).height}a(nt,"calculateTextHeight");function $(r,t){return cr(r,t).width}a($,"calculateTextWidth");var cr=b((r,t)=>{let{fontSize:i=12,fontFamily:e="Arial",fontWeight:n=400}=t;if(!r)return{width:0,height:0};let[,m]=ur(i),o=["sans-serif",e],f=r.split(F.lineBreakRegex),s=[],p=hr("body");if(!p.remove)return{width:0,height:0,lineHeight:0};let l=p.append("svg");for(let g of o){let y=0,A={width:0,height:0,lineHeight:0};for(let st of f){let lr=Mt();lr.text=st||xt;let yr=Wt(l,lr).style("font-size",m).style("font-weight",n).style("font-family",g),R=(yr._groups||yr)[0][0].getBBox();if(R.width===0&&R.height===0)throw new Error("svg element not in render tree");A.width=Math.round(Math.max(A.width,R.width)),y=Math.round(R.height),A.height+=y,A.lineHeight=Math.round(Math.max(A.lineHeight,y))}s.push(A)}l.remove();let c=isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHeight)||s[0].height>s[1].height&&s[0].width>s[1].width&&s[0].lineHeight>s[1].lineHeight?0:1;return s[c]},(r,t)=>`${r}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Dt=class{constructor(r=!1,t){this.count=0,this.count=t?t.length:0,this.next=r?()=>this.count++:()=>Date.now()}static{a(this,"InitIDGenerator")}},ir,$t=a(function(r){return ir=ir||document.createElement("div"),r=escape(r).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ir.innerHTML=r,unescape(ir.textContent)},"entityDecode");function Rt(r){return"str"in r}a(Rt,"isDetailedError");var Ft=a((r,t,i,e)=>{if(!e)return;let n=r.node()?.getBBox();n&&r.append("text").text(e).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-i).attr("class",t)},"insertTitle"),ur=a(r=>{if(typeof r=="number")return[r,r+"px"];let t=parseInt(r??"",10);return Number.isNaN(t)?[void 0,void 0]:r===String(t)?[t,r+"px"]:[t,r]},"parseFontSize");function mt(r,t){return sr({},r,t)}a(mt,"cleanAndMerge");var fi={assignWithDepth:or,wrapLabel:Et,calculateTextHeight:nt,calculateTextWidth:$,calculateTextDimensions:cr,cleanAndMerge:mt,detectInit:wt,detectDirective:Zr,isSubstringInArray:Ot,interpolateToCurve:Qr,calcLabelPosition:tt,calcCardinalityPosition:Bt,calcTerminalLabelPosition:et,formatUrl:Cr,getStylesFromArray:it,generateId:It,random:Pt,runFunc:St,entityDecode:$t,insertTitle:Ft,isLabelCoordinateInPath:ft,parseFontSize:ur,InitIDGenerator:Dt},si=a(function(r){let t=r;return t=t.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),t=t.replace(/#\w+;/g,function(i){let e=i.substring(1,i.length-1);return/^\+?\d+$/.test(e)?"\uFB02\xB0\xB0"+e+"\xB6\xDF":"\uFB02\xB0"+e+"\xB6\xDF"}),t},"encodeEntities"),ai=a(function(r){return r.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),pi=a((r,t,{counter:i=0,prefix:e,suffix:n},m)=>m||`${e?`${e}_`:""}${r}_${t}_${i}${n?`_${n}`:""}`,"getEdgeId");function Nt(r){return r??null}a(Nt,"handleUndefinedAttr");function ft(r,t){let i=Math.round(r.x),e=Math.round(r.y),n=t.replace(/(\d+\.\d+)/g,m=>Math.round(parseFloat(m)).toString());return n.includes(i.toString())||n.includes(e.toString())}a(ft,"isLabelCoordinateInPath");export{ct as a,dt as b,xt as c,mi as d,Qr as e,it as f,It as g,Pt as h,Et as i,nt as j,$ as k,cr as l,Rt as m,ur as n,mt as o,fi as p,si as q,ai as r,pi as s,Nt as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-OOJM4CTU.js";var R=m(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0;e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;e.htmlCtrlEntityRegex=/&(newline|tab);/gi;e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;e.urlSchemeRegex=/^.+(:|:)/gim;e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;e.relativeFirstCharacters=[".","/"];e.BLANK_URL="about:blank"});var v=m(s=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});s.sanitizeUrl=p;var t=R();function d(r){return t.relativeFirstCharacters.indexOf(r[0])>-1}function x(r){var c=r.replace(t.ctrlCharactersRegex,"");return c.replace(t.htmlEntitiesRegex,function(a,i){return String.fromCharCode(i)})}function C(r){return URL.canParse(r)}function g(r){try{return decodeURIComponent(r)}catch{return r}}function p(r){if(!r)return t.BLANK_URL;var c,a=g(r.trim());do a=x(a).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),a=g(a),c=a.match(t.ctrlCharactersRegex)||a.match(t.htmlEntitiesRegex)||a.match(t.htmlCtrlEntityRegex)||a.match(t.whitespaceEscapeCharsRegex);while(c&&c.length>0);var i=a;if(!i)return t.BLANK_URL;if(d(i))return i;var h=i.trimStart(),u=h.match(t.urlSchemeRegex);if(!u)return i;var n=u[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(n))return t.BLANK_URL;var o=h.replace(/\\/g,"/");if(n==="mailto:"||n.includes("://"))return o;if(n==="http:"||n==="https:"){if(!C(o))return t.BLANK_URL;var l=new URL(o);return l.protocol=l.protocol.toLowerCase(),l.hostname=l.hostname.toLowerCase(),l.toString()}return o}});export{v as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as o,c,d as t,e as n,g as i,m as u,x as d,y as l}from"./chunk-FK4OKHO7.js";var k=class extends l{static{e(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},m={parser:{TokenBuilder:e(()=>new k,"TokenBuilder"),ValueConverter:e(()=>new d,"ValueConverter")}};function v(s=n){let r=t(c(s),i),a=t(o({shared:r}),u,m);return r.ServiceRegistry.register(a),{shared:r,Packet:a}}e(v,"createPacketServices");export{m as a,v as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as B,B as Q,C as b,a as mr,b as M,c as g,d as vr,e as K,f as _r,g as T,h as f,i as N,j as D,k as v,l as wr,m as br,n as W,o as I,p as E,q as F,r as y,s as Y,t as P,u as G,v as V,w as x,x as R,y as Er,z as O}from"./chunk-2KBWIZHB.js";function k(r,e,n,t){var o;do o=B(t);while(r.hasNode(o));return n.dummy=e,r.setNode(o,n),o}function yr(r){var e=new b().setGraph(r.graph());return f(r.nodes(),function(n){e.setNode(n,r.node(n))}),f(r.edges(),function(n){var t=e.edge(n.v,n.w)||{weight:0,minlen:1},o=r.edge(n);e.setEdge(n.v,n.w,{weight:t.weight+o.weight,minlen:Math.max(t.minlen,o.minlen)})}),e}function q(r){var e=new b({multigraph:r.isMultigraph()}).setGraph(r.graph());return f(r.nodes(),function(n){r.children(n).length||e.setNode(n,r.node(n))}),f(r.edges(),function(n){e.setEdge(n,r.edge(n))}),e}function Z(r,e){var n=r.x,t=r.y,o=e.x-n,a=e.y-t,i=r.width/2,s=r.height/2;if(!o&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var u,d;return Math.abs(a)*i>Math.abs(o)*s?(a<0&&(s=-s),u=s*o/a,d=s):(o<0&&(i=-i),u=i,d=i*a/o),{x:n+u,y:t+d}}function L(r){var e=v(x(rr(r)+1),function(){return[]});return f(r.nodes(),function(n){var t=r.node(n),o=t.rank;E(o)||(e[o][t.order]=n)}),e}function xr(r){var e=P(v(r.nodes(),function(n){return r.node(n).rank}));f(r.nodes(),function(n){var t=r.node(n);W(t,"rank")&&(t.rank-=e)})}function kr(r){var e=P(v(r.nodes(),function(a){return r.node(a).rank})),n=[];f(r.nodes(),function(a){var i=r.node(a).rank-e;n[i]||(n[i]=[]),n[i].push(a)});var t=0,o=r.graph().nodeRankFactor;f(n,function(a,i){E(a)&&i%o!==0?--t:t&&f(a,function(s){r.node(s).rank+=t})})}function $(r,e,n,t){var o={width:0,height:0};return arguments.length>=4&&(o.rank=n,o.order=t),k(r,"border",o,e)}function rr(r){return y(v(r.nodes(),function(e){var n=r.node(e).rank;if(!E(n))return n}))}function gr(r,e){var n={lhs:[],rhs:[]};return f(r,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n}function Nr(r,e){var n=K();try{return e()}finally{console.log(r+" time: "+(K()-n)+"ms")}}function Or(r,e){return e()}function Pr(r){function e(n){var t=r.children(n),o=r.node(n);if(t.length&&f(t,e),Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var a=o.minRank,i=o.maxRank+1;a<i;++a)Ir(r,"borderLeft","_bl",n,o,a),Ir(r,"borderRight","_br",n,o,a)}}f(r.children(),e)}function Ir(r,e,n,t,o,a){var i={width:0,height:0,rank:a,borderType:e},s=o[e][a-1],u=k(r,"border",i,n);o[e][a]=u,r.setParent(u,t),s&&r.setEdge(s,u,{weight:1})}function Cr(r){var e=r.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Tr(r)}function jr(r){var e=r.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&le(r),(e==="lr"||e==="rl")&&(pe(r),Tr(r))}function Tr(r){f(r.nodes(),function(e){Lr(r.node(e))}),f(r.edges(),function(e){Lr(r.edge(e))})}function Lr(r){var e=r.width;r.width=r.height,r.height=e}function le(r){f(r.nodes(),function(e){er(r.node(e))}),f(r.edges(),function(e){var n=r.edge(e);f(n.points,er),Object.prototype.hasOwnProperty.call(n,"y")&&er(n)})}function er(r){r.y=-r.y}function pe(r){f(r.nodes(),function(e){nr(r.node(e))}),f(r.edges(),function(e){var n=r.edge(e);f(n.points,nr),Object.prototype.hasOwnProperty.call(n,"x")&&nr(n)})}function nr(r){var e=r.x;r.x=r.y,r.y=e}var X=class{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,n=e._prev;if(n!==e)return Rr(n),n}enqueue(e){var n=this._sentinel;e._prev&&e._next&&Rr(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n}toString(){for(var e=[],n=this._sentinel,t=n._prev;t!==n;)e.push(JSON.stringify(t,ve)),t=t._prev;return"["+e.join(", ")+"]"}};function Rr(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function ve(r,e){if(r!=="_next"&&r!=="_prev")return e}var _e=M(1);function Sr(r,e){if(r.nodeCount()<=1)return[];var n=be(r,e||_e),t=we(n.graph,n.buckets,n.zeroIdx);return g(v(t,function(o){return r.outEdges(o.v,o.w)}))}function we(r,e,n){for(var t=[],o=e[e.length-1],a=e[0],i;r.nodeCount();){for(;i=a.dequeue();)tr(r,e,n,i);for(;i=o.dequeue();)tr(r,e,n,i);if(r.nodeCount()){for(var s=e.length-2;s>0;--s)if(i=e[s].dequeue(),i){t=t.concat(tr(r,e,n,i,!0));break}}}return t}function tr(r,e,n,t,o){var a=o?[]:void 0;return f(r.inEdges(t.v),function(i){var s=r.edge(i),u=r.node(i.v);o&&a.push({v:i.v,w:i.w}),u.out-=s,or(e,n,u)}),f(r.outEdges(t.v),function(i){var s=r.edge(i),u=i.w,d=r.node(u);d.in-=s,or(e,n,d)}),r.removeNode(t.v),a}function be(r,e){var n=new b,t=0,o=0;f(r.nodes(),function(s){n.setNode(s,{v:s,in:0,out:0})}),f(r.edges(),function(s){var u=n.edge(s.v,s.w)||0,d=e(s),c=u+d;n.setEdge(s.v,s.w,c),o=Math.max(o,n.node(s.v).out+=d),t=Math.max(t,n.node(s.w).in+=d)});var a=x(o+t+3).map(function(){return new X}),i=t+1;return f(n.nodes(),function(s){or(a,i,n.node(s))}),{graph:n,buckets:a,zeroIdx:i}}function or(r,e,n){n.out?n.in?r[n.out-n.in+e].enqueue(n):r[r.length-1].enqueue(n):r[0].enqueue(n)}function Mr(r){var e=r.graph().acyclicer==="greedy"?Sr(r,n(r)):Ee(r);f(e,function(t){var o=r.edge(t);r.removeEdge(t),o.forwardName=t.name,o.reversed=!0,r.setEdge(t.w,t.v,o,B("rev"))});function n(t){return function(o){return t.edge(o).weight}}}function Ee(r){var e=[],n={},t={};function o(a){Object.prototype.hasOwnProperty.call(t,a)||(t[a]=!0,n[a]=!0,f(r.outEdges(a),function(i){Object.prototype.hasOwnProperty.call(n,i.w)?e.push(i):o(i.w)}),delete n[a])}return f(r.nodes(),o),e}function Fr(r){f(r.edges(),function(e){var n=r.edge(e);if(n.reversed){r.removeEdge(e);var t=n.forwardName;delete n.reversed,delete n.forwardName,r.setEdge(e.w,e.v,n,t)}})}function Vr(r){r.graph().dummyChains=[],f(r.edges(),function(e){ye(r,e)})}function ye(r,e){var n=e.v,t=r.node(n).rank,o=e.w,a=r.node(o).rank,i=e.name,s=r.edge(e),u=s.labelRank;if(a!==t+1){r.removeEdge(e);var d=void 0,c,h;for(h=0,++t;t<a;++h,++t)s.points=[],d={width:0,height:0,edgeLabel:s,edgeObj:e,rank:t},c=k(r,"edge",d,"_d"),t===u&&(d.width=s.width,d.height=s.height,d.dummy="edge-label",d.labelpos=s.labelpos),r.setEdge(n,c,{weight:s.weight},i),h===0&&r.graph().dummyChains.push(c),n=c;r.setEdge(n,o,{weight:s.weight},i)}}function Br(r){f(r.graph().dummyChains,function(e){var n=r.node(e),t=n.edgeLabel,o;for(r.setEdge(n.edgeObj,t);n.dummy;)o=r.successors(e)[0],r.removeNode(e),t.points.push({x:n.x,y:n.y}),n.dummy==="edge-label"&&(t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height),e=o,n=r.node(e)})}function z(r){var e={};function n(t){var o=r.node(t);if(Object.prototype.hasOwnProperty.call(e,t))return o.rank;e[t]=!0;var a=P(v(r.outEdges(t),function(i){return n(i.w)-r.edge(i).minlen}));return(a===Number.POSITIVE_INFINITY||a===void 0||a===null)&&(a=0),o.rank=a}f(r.sources(),n)}function S(r,e){return r.node(e.w).rank-r.node(e.v).rank-r.edge(e).minlen}function H(r){var e=new b({directed:!1}),n=r.nodes()[0],t=r.nodeCount();e.setNode(n,{});for(var o,a;xe(e,r)<t;)o=ke(e,r),a=e.hasNode(o.v)?S(r,o):-S(r,o),ge(e,r,a);return e}function xe(r,e){function n(t){f(e.nodeEdges(t),function(o){var a=o.v,i=t===a?o.w:a;!r.hasNode(i)&&!S(e,o)&&(r.setNode(i,{}),r.setEdge(t,i,{}),n(i))})}return f(r.nodes(),n),r.nodeCount()}function ke(r,e){return G(e.edges(),function(n){if(r.hasNode(n.v)!==r.hasNode(n.w))return S(e,n)})}function ge(r,e,n){f(r.nodes(),function(t){e.node(t).rank+=n})}var Wn=M(1);var Zn=M(1);ar.CycleException=U;function ar(r){var e={},n={},t=[];function o(a){if(Object.prototype.hasOwnProperty.call(n,a))throw new U;Object.prototype.hasOwnProperty.call(e,a)||(n[a]=!0,e[a]=!0,f(r.predecessors(a),o),delete n[a],t.push(a))}if(f(r.sinks(),o),Er(e)!==r.nodeCount())throw new U;return t}function U(){}U.prototype=new Error;function J(r,e,n){mr(e)||(e=[e]);var t=(r.isDirected()?r.successors:r.neighbors).bind(r),o=[],a={};return f(e,function(i){if(!r.hasNode(i))throw new Error("Graph does not have node: "+i);Dr(r,i,n==="post",a,t,o)}),o}function Dr(r,e,n,t,o,a){Object.prototype.hasOwnProperty.call(t,e)||(t[e]=!0,n||a.push(e),f(o(e),function(i){Dr(r,i,n,t,o,a)}),n&&a.push(e))}function ir(r,e){return J(r,e,"post")}function sr(r,e){return J(r,e,"pre")}j.initLowLimValues=ur;j.initCutValues=fr;j.calcCutValue=zr;j.leaveEdge=Wr;j.enterEdge=qr;j.exchangeEdges=Xr;function j(r){r=yr(r),z(r);var e=H(r);ur(e),fr(e,r);for(var n,t;n=Wr(e);)t=qr(e,r,n),Xr(e,r,n,t)}function fr(r,e){var n=ir(r,r.nodes());n=n.slice(0,n.length-1),f(n,function(t){Le(r,e,t)})}function Le(r,e,n){var t=r.node(n),o=t.parent;r.edge(n,o).cutvalue=zr(r,e,n)}function zr(r,e,n){var t=r.node(n),o=t.parent,a=!0,i=e.edge(n,o),s=0;return i||(a=!1,i=e.edge(o,n)),s=i.weight,f(e.nodeEdges(n),function(u){var d=u.v===n,c=d?u.w:u.v;if(c!==o){var h=d===a,l=e.edge(u).weight;if(s+=h?l:-l,je(r,n,c)){var p=r.edge(n,c).cutvalue;s+=h?-p:p}}}),s}function ur(r,e){arguments.length<2&&(e=r.nodes()[0]),Ur(r,{},1,e)}function Ur(r,e,n,t,o){var a=n,i=r.node(t);return e[t]=!0,f(r.neighbors(t),function(s){Object.prototype.hasOwnProperty.call(e,s)||(n=Ur(r,e,n,s,t))}),i.low=a,i.lim=n++,o?i.parent=o:delete i.parent,n}function Wr(r){return D(r.edges(),function(e){return r.edge(e).cutvalue<0})}function qr(r,e,n){var t=n.v,o=n.w;e.hasEdge(t,o)||(t=n.w,o=n.v);var a=r.node(t),i=r.node(o),s=a,u=!1;a.lim>i.lim&&(s=i,u=!0);var d=N(e.edges(),function(c){return u===Yr(r,r.node(c.v),s)&&u!==Yr(r,r.node(c.w),s)});return G(d,function(c){return S(e,c)})}function Xr(r,e,n,t){var o=n.v,a=n.w;r.removeEdge(o,a),r.setEdge(t.v,t.w,{}),ur(r),fr(r,e),Ce(r,e)}function Ce(r,e){var n=D(r.nodes(),function(o){return!e.node(o).parent}),t=sr(r,n);t=t.slice(1),f(t,function(o){var a=r.node(o).parent,i=e.edge(o,a),s=!1;i||(i=e.edge(a,o),s=!0),e.node(o).rank=e.node(a).rank+(s?i.minlen:-i.minlen)})}function je(r,e,n){return r.hasEdge(e,n)}function Yr(r,e,n){return n.low<=e.lim&&e.lim<=n.lim}function dr(r){switch(r.graph().ranker){case"network-simplex":Hr(r);break;case"tight-tree":Re(r);break;case"longest-path":Te(r);break;default:Hr(r)}}var Te=z;function Re(r){z(r),H(r)}function Hr(r){j(r)}function Jr(r){var e=k(r,"root",{},"_root"),n=Se(r),t=y(I(n))-1,o=2*t+1;r.graph().nestingRoot=e,f(r.edges(),function(i){r.edge(i).minlen*=o});var a=Me(r)+1;f(r.children(),function(i){Kr(r,e,o,a,t,n,i)}),r.graph().nodeRankFactor=o}function Kr(r,e,n,t,o,a,i){var s=r.children(i);if(!s.length){i!==e&&r.setEdge(e,i,{weight:0,minlen:n});return}var u=$(r,"_bt"),d=$(r,"_bb"),c=r.node(i);r.setParent(u,i),c.borderTop=u,r.setParent(d,i),c.borderBottom=d,f(s,function(h){Kr(r,e,n,t,o,a,h);var l=r.node(h),p=l.borderTop?l.borderTop:h,m=l.borderBottom?l.borderBottom:h,w=l.borderTop?t:2*t,A=p!==m?1:o-a[i]+1;r.setEdge(u,p,{weight:w,minlen:A,nestingEdge:!0}),r.setEdge(m,d,{weight:w,minlen:A,nestingEdge:!0})}),r.parent(i)||r.setEdge(e,u,{weight:0,minlen:o+a[i]})}function Se(r){var e={};function n(t,o){var a=r.children(t);a&&a.length&&f(a,function(i){n(i,o+1)}),e[t]=o}return f(r.children(),function(t){n(t,1)}),e}function Me(r){return R(r.edges(),function(e,n){return e+r.edge(n).weight},0)}function Qr(r){var e=r.graph();r.removeNode(e.nestingRoot),delete e.nestingRoot,f(r.edges(),function(n){var t=r.edge(n);t.nestingEdge&&r.removeEdge(n)})}function Zr(r,e,n){var t={},o;f(n,function(a){for(var i=r.parent(a),s,u;i;){if(s=r.parent(i),s?(u=t[s],t[s]=i):(u=o,o=i),u&&u!==i){e.setEdge(u,i);return}i=s}})}function $r(r,e,n){var t=Ge(r),o=new b({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(a){return r.node(a)});return f(r.nodes(),function(a){var i=r.node(a),s=r.parent(a);(i.rank===e||i.minRank<=e&&e<=i.maxRank)&&(o.setNode(a),o.setParent(a,s||t),f(r[n](a),function(u){var d=u.v===a?u.w:u.v,c=o.edge(d,a),h=E(c)?0:c.weight;o.setEdge(d,a,{weight:r.edge(u).weight+h})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&o.setNode(a,{borderLeft:i.borderLeft[e],borderRight:i.borderRight[e]}))}),o}function Ge(r){for(var e;r.hasNode(e=B("_root")););return e}function re(r,e){for(var n=0,t=1;t<e.length;++t)n+=Ve(r,e[t-1],e[t]);return n}function Ve(r,e,n){for(var t=Q(n,v(n,function(d,c){return c})),o=g(v(e,function(d){return O(v(r.outEdges(d),function(c){return{pos:t[c.w],weight:r.edge(c).weight}}),"pos")})),a=1;a<n.length;)a<<=1;var i=2*a-1;a-=1;var s=v(new Array(i),function(){return 0}),u=0;return f(o.forEach(function(d){var c=d.pos+a;s[c]+=d.weight;for(var h=0;c>0;)c%2&&(h+=s[c+1]),c=c-1>>1,s[c]+=d.weight;u+=d.weight*h})),u}function ee(r){var e={},n=N(r.nodes(),function(s){return!r.children(s).length}),t=y(v(n,function(s){return r.node(s).rank})),o=v(x(t+1),function(){return[]});function a(s){if(!W(e,s)){e[s]=!0;var u=r.node(s);o[u.rank].push(s),f(r.successors(s),a)}}var i=O(n,function(s){return r.node(s).rank});return f(i,a),o}function ne(r,e){return v(e,function(n){var t=r.inEdges(n);if(t.length){var o=R(t,function(a,i){var s=r.edge(i),u=r.node(i.v);return{sum:a.sum+s.weight*u.order,weight:a.weight+s.weight}},{sum:0,weight:0});return{v:n,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:n}})}function te(r,e){var n={};f(r,function(o,a){var i=n[o.v]={indegree:0,in:[],out:[],vs:[o.v],i:a};E(o.barycenter)||(i.barycenter=o.barycenter,i.weight=o.weight)}),f(e.edges(),function(o){var a=n[o.v],i=n[o.w];!E(a)&&!E(i)&&(i.indegree++,a.out.push(n[o.w]))});var t=N(n,function(o){return!o.indegree});return Be(t)}function Be(r){var e=[];function n(a){return function(i){i.merged||(E(i.barycenter)||E(a.barycenter)||i.barycenter>=a.barycenter)&&Ae(a,i)}}function t(a){return function(i){i.in.push(a),--i.indegree===0&&r.push(i)}}for(;r.length;){var o=r.pop();e.push(o),f(o.in.reverse(),n(o)),f(o.out,t(o))}return v(N(e,function(a){return!a.merged}),function(a){return V(a,["vs","i","barycenter","weight"])})}function Ae(r,e){var n=0,t=0;r.weight&&(n+=r.barycenter*r.weight,t+=r.weight),e.weight&&(n+=e.barycenter*e.weight,t+=e.weight),r.vs=e.vs.concat(r.vs),r.barycenter=n/t,r.weight=t,r.i=Math.min(e.i,r.i),e.merged=!0}function ae(r,e){var n=gr(r,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=n.lhs,o=O(n.rhs,function(c){return-c.i}),a=[],i=0,s=0,u=0;t.sort(De(!!e)),u=oe(a,o,u),f(t,function(c){u+=c.vs.length,a.push(c.vs),i+=c.barycenter*c.weight,s+=c.weight,u=oe(a,o,u)});var d={vs:g(a)};return s&&(d.barycenter=i/s,d.weight=s),d}function oe(r,e,n){for(var t;e.length&&(t=T(e)).i<=n;)e.pop(),r.push(t.vs),n++;return n}function De(r){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:r?n.i-e.i:e.i-n.i}}function cr(r,e,n,t){var o=r.children(e),a=r.node(e),i=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,u={};i&&(o=N(o,function(m){return m!==i&&m!==s}));var d=ne(r,o);f(d,function(m){if(r.children(m.v).length){var w=cr(r,m.v,n,t);u[m.v]=w,Object.prototype.hasOwnProperty.call(w,"barycenter")&&ze(m,w)}});var c=te(d,n);Ye(c,u);var h=ae(c,t);if(i&&(h.vs=g([i,h.vs,s]),r.predecessors(i).length)){var l=r.node(r.predecessors(i)[0]),p=r.node(r.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+p.order)/(h.weight+2),h.weight+=2}return h}function Ye(r,e){f(r,function(n){n.vs=g(n.vs.map(function(t){return e[t]?e[t].vs:t}))})}function ze(r,e){E(r.barycenter)?(r.barycenter=e.barycenter,r.weight=e.weight):(r.barycenter=(r.barycenter*r.weight+e.barycenter*e.weight)/(r.weight+e.weight),r.weight+=e.weight)}function fe(r){var e=rr(r),n=ie(r,x(1,e+1),"inEdges"),t=ie(r,x(e-1,-1,-1),"outEdges"),o=ee(r);se(r,o);for(var a=Number.POSITIVE_INFINITY,i,s=0,u=0;u<4;++s,++u){Ue(s%2?n:t,s%4>=2),o=L(r);var d=re(r,o);d<a&&(u=0,i=vr(o),a=d)}se(r,i)}function ie(r,e,n){return v(e,function(t){return $r(r,t,n)})}function Ue(r,e){var n=new b;f(r,function(t){var o=t.graph().root,a=cr(t,o,n,e);f(a.vs,function(i,s){t.node(i).order=s}),Zr(t,n,a.vs)})}function se(r,e){f(e,function(n){f(n,function(t,o){r.node(t).order=o})})}function ue(r){var e=qe(r);f(r.graph().dummyChains,function(n){for(var t=r.node(n),o=t.edgeObj,a=We(r,e,o.v,o.w),i=a.path,s=a.lca,u=0,d=i[u],c=!0;n!==o.w;){if(t=r.node(n),c){for(;(d=i[u])!==s&&r.node(d).maxRank<t.rank;)u++;d===s&&(c=!1)}if(!c){for(;u<i.length-1&&r.node(d=i[u+1]).minRank<=t.rank;)u++;d=i[u]}r.setParent(n,d),n=r.successors(n)[0]}})}function We(r,e,n,t){var o=[],a=[],i=Math.min(e[n].low,e[t].low),s=Math.max(e[n].lim,e[t].lim),u,d;u=n;do u=r.parent(u),o.push(u);while(u&&(e[u].low>i||s>e[u].lim));for(d=u,u=t;(u=r.parent(u))!==d;)a.push(u);return{path:o.concat(a.reverse()),lca:d}}function qe(r){var e={},n=0;function t(o){var a=n;f(r.children(o),t),e[o]={low:a,lim:n++}}return f(r.children(),t),e}function Xe(r,e){var n={};function t(o,a){var i=0,s=0,u=o.length,d=T(a);return f(a,function(c,h){var l=Je(r,c),p=l?r.node(l).order:u;(l||c===d)&&(f(a.slice(s,h+1),function(m){f(r.predecessors(m),function(w){var A=r.node(w),pr=A.order;(pr<i||p<pr)&&!(A.dummy&&r.node(m).dummy)&&de(n,w,m)})}),s=h+1,i=p)}),a}return R(e,t),n}function He(r,e){var n={};function t(a,i,s,u,d){var c;f(x(i,s),function(h){c=a[h],r.node(c).dummy&&f(r.predecessors(c),function(l){var p=r.node(l);p.dummy&&(p.order<u||p.order>d)&&de(n,l,c)})})}function o(a,i){var s=-1,u,d=0;return f(i,function(c,h){if(r.node(c).dummy==="border"){var l=r.predecessors(c);l.length&&(u=r.node(l[0]).order,t(i,d,h,s,u),d=h,s=u)}t(i,d,i.length,u,a.length)}),i}return R(e,o),n}function Je(r,e){if(r.node(e).dummy)return D(r.predecessors(e),function(n){return r.node(n).dummy})}function de(r,e,n){if(e>n){var t=e;e=n,n=t}Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:{},writable:!0});var o=r[e];Object.defineProperty(o,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Ke(r,e,n){if(e>n){var t=e;e=n,n=t}return!!r[e]&&Object.prototype.hasOwnProperty.call(r[e],n)}function Qe(r,e,n,t){var o={},a={},i={};return f(e,function(s){f(s,function(u,d){o[u]=u,a[u]=u,i[u]=d})}),f(e,function(s){var u=-1;f(s,function(d){var c=t(d);if(c.length){c=O(c,function(w){return i[w]});for(var h=(c.length-1)/2,l=Math.floor(h),p=Math.ceil(h);l<=p;++l){var m=c[l];a[d]===d&&u<i[m]&&!Ke(n,d,m)&&(a[m]=d,a[d]=o[d]=o[m],u=i[m])}}})}),{root:o,align:a}}function Ze(r,e,n,t,o){var a={},i=$e(r,e,n,o),s=o?"borderLeft":"borderRight";function u(h,l){for(var p=i.nodes(),m=p.pop(),w={};m;)w[m]?h(m):(w[m]=!0,p.push(m),p=p.concat(l(m))),m=p.pop()}function d(h){a[h]=i.inEdges(h).reduce(function(l,p){return Math.max(l,a[p.v]+i.edge(p))},0)}function c(h){var l=i.outEdges(h).reduce(function(m,w){return Math.min(m,a[w.w]-i.edge(w))},Number.POSITIVE_INFINITY),p=r.node(h);l!==Number.POSITIVE_INFINITY&&p.borderType!==s&&(a[h]=Math.max(a[h],l))}return u(d,i.predecessors.bind(i)),u(c,i.successors.bind(i)),f(t,function(h){a[h]=a[n[h]]}),a}function $e(r,e,n,t){var o=new b,a=r.graph(),i=tn(a.nodesep,a.edgesep,t);return f(e,function(s){var u;f(s,function(d){var c=n[d];if(o.setNode(c),u){var h=n[u],l=o.edge(h,c);o.setEdge(h,c,Math.max(i(r,d,u),l||0))}u=d})}),o}function rn(r,e){return G(I(e),function(n){var t=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return wr(n,function(a,i){var s=on(r,i)/2;t=Math.max(a+s,t),o=Math.min(a-s,o)}),t-o})}function en(r,e){var n=I(e),t=P(n),o=y(n);f(["u","d"],function(a){f(["l","r"],function(i){var s=a+i,u=r[s],d;if(u!==e){var c=I(u);d=i==="l"?t-P(c):o-y(c),d&&(r[s]=F(u,function(h){return h+d}))}})})}function nn(r,e){return F(r.ul,function(n,t){if(e)return r[e.toLowerCase()][t];var o=O(v(r,t));return(o[1]+o[2])/2})}function ce(r){var e=L(r),n=Y(Xe(r,e),He(r,e)),t={},o;f(["u","d"],function(i){o=i==="u"?e:I(e).reverse(),f(["l","r"],function(s){s==="r"&&(o=v(o,function(h){return I(h).reverse()}));var u=(i==="u"?r.predecessors:r.successors).bind(r),d=Qe(r,o,n,u),c=Ze(r,o,d.root,d.align,s==="r");s==="r"&&(c=F(c,function(h){return-h})),t[i+s]=c})});var a=rn(r,t);return en(t,a),nn(t,r.graph().align)}function tn(r,e,n){return function(t,o,a){var i=t.node(o),s=t.node(a),u=0,d;if(u+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":d=-i.width/2;break;case"r":d=i.width/2;break}if(d&&(u+=n?d:-d),d=0,u+=(i.dummy?e:r)/2,u+=(s.dummy?e:r)/2,u+=s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":d=s.width/2;break;case"r":d=-s.width/2;break}return d&&(u+=n?d:-d),d=0,u}}function on(r,e){return r.node(e).width}function he(r){r=q(r),an(r),br(ce(r),function(e,n){r.node(n).x=e})}function an(r){var e=L(r),n=r.graph().ranksep,t=0;f(e,function(o){var a=y(v(o,function(i){return r.node(i).height}));f(o,function(i){r.node(i).y=t+a/2}),t+=a+n})}function sn(r,e){var n=e&&e.debugTiming?Nr:Or;n("layout",()=>{var t=n(" buildLayoutGraph",()=>wn(r));n(" runLayout",()=>fn(t,n)),n(" updateInputGraph",()=>un(r,t))})}function fn(r,e){e(" makeSpaceForEdgeLabels",()=>bn(r)),e(" removeSelfEdges",()=>Pn(r)),e(" acyclic",()=>Mr(r)),e(" nestingGraph.run",()=>Jr(r)),e(" rank",()=>dr(q(r))),e(" injectEdgeLabelProxies",()=>En(r)),e(" removeEmptyRanks",()=>kr(r)),e(" nestingGraph.cleanup",()=>Qr(r)),e(" normalizeRanks",()=>xr(r)),e(" assignRankMinMax",()=>yn(r)),e(" removeEdgeLabelProxies",()=>xn(r)),e(" normalize.run",()=>Vr(r)),e(" parentDummyChains",()=>ue(r)),e(" addBorderSegments",()=>Pr(r)),e(" order",()=>fe(r)),e(" insertSelfEdges",()=>Ln(r)),e(" adjustCoordinateSystem",()=>Cr(r)),e(" position",()=>he(r)),e(" positionSelfEdges",()=>Cn(r)),e(" removeBorderNodes",()=>In(r)),e(" normalize.undo",()=>Br(r)),e(" fixupEdgeLabelCoords",()=>Nn(r)),e(" undoCoordinateSystem",()=>jr(r)),e(" translateGraph",()=>kn(r)),e(" assignNodeIntersects",()=>gn(r)),e(" reversePoints",()=>On(r)),e(" acyclic.undo",()=>Fr(r))}function un(r,e){f(r.nodes(),function(n){var t=r.node(n),o=e.node(n);t&&(t.x=o.x,t.y=o.y,e.children(n).length&&(t.width=o.width,t.height=o.height))}),f(r.edges(),function(n){var t=r.edge(n),o=e.edge(n);t.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(t.x=o.x,t.y=o.y)}),r.graph().width=e.graph().width,r.graph().height=e.graph().height}var dn=["nodesep","edgesep","ranksep","marginx","marginy"],cn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},hn=["acyclicer","ranker","rankdir","align"],ln=["width","height"],pn={width:0,height:0},mn=["minlen","weight","width","height","labeloffset"],vn={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},_n=["labelpos"];function wn(r){var e=new b({multigraph:!0,compound:!0}),n=lr(r.graph());return e.setGraph(Y({},cn,hr(n,dn),V(n,hn))),f(r.nodes(),function(t){var o=lr(r.node(t));e.setNode(t,_r(hr(o,ln),pn)),e.setParent(t,r.parent(t))}),f(r.edges(),function(t){var o=lr(r.edge(t));e.setEdge(t,Y({},vn,hr(o,mn),V(o,_n)))}),e}function bn(r){var e=r.graph();e.ranksep/=2,f(r.edges(),function(n){var t=r.edge(n);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function En(r){f(r.edges(),function(e){var n=r.edge(e);if(n.width&&n.height){var t=r.node(e.v),o=r.node(e.w),a={rank:(o.rank-t.rank)/2+t.rank,e};k(r,"edge-proxy",a,"_ep")}})}function yn(r){var e=0;f(r.nodes(),function(n){var t=r.node(n);t.borderTop&&(t.minRank=r.node(t.borderTop).rank,t.maxRank=r.node(t.borderBottom).rank,e=y(e,t.maxRank))}),r.graph().maxRank=e}function xn(r){f(r.nodes(),function(e){var n=r.node(e);n.dummy==="edge-proxy"&&(r.edge(n.e).labelRank=n.rank,r.removeNode(e))})}function kn(r){var e=Number.POSITIVE_INFINITY,n=0,t=Number.POSITIVE_INFINITY,o=0,a=r.graph(),i=a.marginx||0,s=a.marginy||0;function u(d){var c=d.x,h=d.y,l=d.width,p=d.height;e=Math.min(e,c-l/2),n=Math.max(n,c+l/2),t=Math.min(t,h-p/2),o=Math.max(o,h+p/2)}f(r.nodes(),function(d){u(r.node(d))}),f(r.edges(),function(d){var c=r.edge(d);Object.prototype.hasOwnProperty.call(c,"x")&&u(c)}),e-=i,t-=s,f(r.nodes(),function(d){var c=r.node(d);c.x-=e,c.y-=t}),f(r.edges(),function(d){var c=r.edge(d);f(c.points,function(h){h.x-=e,h.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=e),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),a.width=n-e+i,a.height=o-t+s}function gn(r){f(r.edges(),function(e){var n=r.edge(e),t=r.node(e.v),o=r.node(e.w),a,i;n.points?(a=n.points[0],i=n.points[n.points.length-1]):(n.points=[],a=o,i=t),n.points.unshift(Z(t,a)),n.points.push(Z(o,i))})}function Nn(r){f(r.edges(),function(e){var n=r.edge(e);if(Object.prototype.hasOwnProperty.call(n,"x"))switch((n.labelpos==="l"||n.labelpos==="r")&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}})}function On(r){f(r.edges(),function(e){var n=r.edge(e);n.reversed&&n.points.reverse()})}function In(r){f(r.nodes(),function(e){if(r.children(e).length){var n=r.node(e),t=r.node(n.borderTop),o=r.node(n.borderBottom),a=r.node(T(n.borderLeft)),i=r.node(T(n.borderRight));n.width=Math.abs(i.x-a.x),n.height=Math.abs(o.y-t.y),n.x=a.x+n.width/2,n.y=t.y+n.height/2}}),f(r.nodes(),function(e){r.node(e).dummy==="border"&&r.removeNode(e)})}function Pn(r){f(r.edges(),function(e){if(e.v===e.w){var n=r.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:r.edge(e)}),r.removeEdge(e)}})}function Ln(r){var e=L(r);f(e,function(n){var t=0;f(n,function(o,a){var i=r.node(o);i.order=a+t,f(i.selfEdges,function(s){k(r,"selfedge",{width:s.label.width,height:s.label.height,rank:i.rank,order:a+ ++t,e:s.e,label:s.label},"_se")}),delete i.selfEdges})})}function Cn(r){f(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="selfedge"){var t=r.node(n.e.v),o=t.x+t.width/2,a=t.y,i=n.x-o,s=t.height/2;r.setEdge(n.e,n.label),r.removeNode(e),n.label.points=[{x:o+2*i/3,y:a-s},{x:o+5*i/6,y:a-s},{x:o+i,y:a},{x:o+5*i/6,y:a+s},{x:o+2*i/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function hr(r,e){return F(V(r,e),Number)}function lr(r){var e={};return f(r,function(n,t){e[t.toLowerCase()]=n}),e}export{sn as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t,b as s,c as u,d as i,e as n,g as o,h as l,w as d,y as h}from"./chunk-FK4OKHO7.js";var m=class extends h{static{t(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},A=class extends d{static{t(this,"ArchitectureValueConverter")}runCustomConverter(c,r,a){if(c.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();if(c.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");if(c.name==="ARCH_TITLE"){let e=r.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},C={parser:{TokenBuilder:t(()=>new m,"TokenBuilder"),ValueConverter:t(()=>new A,"ValueConverter")}};function v(c=n){let r=i(u(c),o),a=i(s({shared:r}),l,C);return r.ServiceRegistry.register(a),{shared:r,Architecture:a}}t(v,"createArchitectureServices");export{C as a,v as b};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{a as Mt}from"./chunk-CBQW2LLN.js";import{e as I}from"./chunk-U3E5RSXE.js";import{a as wt}from"./chunk-EWILYK3H.js";import{c as yt,d as gt}from"./chunk-XCMS6RVA.js";import{b as nt,d as bt}from"./chunk-ZYRITDEB.js";import{p as A,t as xt}from"./chunk-JAORNH2M.js";import{_ as U,u as Y,y as at}from"./chunk-NLCJ5AKJ.js";import{$ as ut,G as J,H as ot,J as it,K as lt,L as et,P as ct,S as dt,W as pt,X as ht,Y as ft,Z as mt,_ as kt,b,h as W}from"./chunk-3CEAP2V5.js";import{a as p}from"./chunk-6LQNQPBM.js";var N=p((r,t)=>{if(t)return"translate("+-r.width/2+", "+-r.height/2+")";let a=r.x??0,e=r.y??0;return"translate("+-(a+r.width/2)+", "+-(e+r.height/2)+")"},"computeLabelTransform"),S={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Lt={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Q(r,t){if(r===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};r=x(r),t=x(t);let[a,e]=[r.x,r.y],[o,s]=[t.x,t.y],n=o-a,i=s-e;return{angle:Math.atan(i/n),deltaX:n,deltaY:i}}p(Q,"calculateDeltaAndAngle");var x=p(r=>Array.isArray(r)?{x:r[0],y:r[1]}:r,"pointTransformer"),Ht=p(r=>({x:p(function(t,a,e){let o=0,s=x(e[0]).x<x(e[e.length-1]).x?"left":"right";if(a===0&&Object.hasOwn(S,r.arrowTypeStart)){let{angle:c,deltaX:y}=Q(e[0],e[1]);o=S[r.arrowTypeStart]*Math.cos(c)*(y>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(S,r.arrowTypeEnd)){let{angle:c,deltaX:y}=Q(e[e.length-1],e[e.length-2]);o=S[r.arrowTypeEnd]*Math.cos(c)*(y>=0?1:-1)}let n=Math.abs(x(t).x-x(e[e.length-1]).x),i=Math.abs(x(t).y-x(e[e.length-1]).y),d=Math.abs(x(t).x-x(e[0]).x),m=Math.abs(x(t).y-x(e[0]).y),l=S[r.arrowTypeStart],f=S[r.arrowTypeEnd],h=1;if(n<f&&n>0&&i<f){let c=f+h-n;c*=s==="right"?-1:1,o-=c}if(d<l&&d>0&&m<l){let c=l+h-d;c*=s==="right"?-1:1,o+=c}return x(t).x+o},"x"),y:p(function(t,a,e){let o=0,s=x(e[0]).y<x(e[e.length-1]).y?"down":"up";if(a===0&&Object.hasOwn(S,r.arrowTypeStart)){let{angle:c,deltaY:y}=Q(e[0],e[1]);o=S[r.arrowTypeStart]*Math.abs(Math.sin(c))*(y>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(S,r.arrowTypeEnd)){let{angle:c,deltaY:y}=Q(e[e.length-1],e[e.length-2]);o=S[r.arrowTypeEnd]*Math.abs(Math.sin(c))*(y>=0?1:-1)}let n=Math.abs(x(t).y-x(e[e.length-1]).y),i=Math.abs(x(t).x-x(e[e.length-1]).x),d=Math.abs(x(t).y-x(e[0]).y),m=Math.abs(x(t).x-x(e[0]).x),l=S[r.arrowTypeStart],f=S[r.arrowTypeEnd],h=1;if(n<f&&n>0&&i<f){let c=f+h-n;c*=s==="up"?-1:1,o-=c}if(d<l&&d>0&&m<l){let c=l+h-d;c*=s==="up"?-1:1,o+=c}return x(t).y+o},"y")}),"getLineFunctionsWithOffset"),At=p((r,t,a,e,o,s=!1,n)=>{t.arrowTypeStart&&_t(r,"start",t.arrowTypeStart,a,e,o,s,n),t.arrowTypeEnd&&_t(r,"end",t.arrowTypeEnd,a,e,o,s,n)},"addEdgeMarkers"),Bt={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Ct=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],_t=p((r,t,a,e,o,s,n=!1,i)=>{if(!a||a==="none")return;let d=Bt[a],m=d&&Ct.includes(d.type);if(!d){b.warn(`Unknown arrow type: ${a}`);return}let l=d.type,c=`${o}_${s}-${l}${t==="start"?"Start":"End"}${n&&m?"-margin":""}`;if(i&&i.trim()!==""){let y=i.replace(/[^\dA-Za-z]/g,"_"),g=`${c}_${y}`;if(!document.getElementById(g)){let k=document.getElementById(c);if(k){let M=k.cloneNode(!0);M.id=g,M.querySelectorAll("path, circle, line").forEach(B=>{B.setAttribute("stroke",i),d.fill&&B.setAttribute("fill",i)}),k.parentNode?.appendChild(M)}}r.attr(`marker-${t}`,`url(${e}#${g})`)}else r.attr(`marker-${t}`,`url(${e}#${c})`)},"addEdgeMarker"),zt=p(r=>typeof r=="string"?r:U()?.flowchart?.curve,"resolveEdgeCurveType"),G=new Map,_=new Map,vr=p(()=>{G.clear(),_.clear()},"clear"),Sr=p(r=>!!(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),D=p(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),Or=p(async(r,t)=>{let a=U(),e=at(a),{labelStyles:o}=gt(t);t.labelStyle=o;let s=r.insert("g").attr("class","edgeLabel"),n=s.insert("g").attr("class","label").attr("data-id",t.id),i=t.labelType==="markdown",m=await bt(r,t.label,{style:D(t.labelStyle),useHtmlLabels:e,addSvgBackground:!0,isNode:!1,markdown:i,width:i?void 0:void 0},a);n.node().appendChild(m),b.info("abc82",t,t.labelType);let l,f;if(e){let c=m.children[0],y=W(m);l=await nt.measure(()=>c.getBoundingClientRect()),f=l,y.attr("width",l.width),y.attr("height",l.height)}else{let c=W(m).select("text").node();await nt.measure(()=>{l=m.getBBox(),c&&typeof c.getBBox=="function"?f=c.getBBox():f=l})}n.attr("transform",N(f,e)),G.set(t.id,s),t.width=l.width,t.height=l.height;let h;if(t.startLabelLeft){let c=r.insert("g").attr("class","edgeTerminals"),y=c.insert("g").attr("class","inner"),g=await I(y,t.startLabelLeft,D(t.labelStyle)||"",!1,!1);h=g;let k=g.getBBox();if(e){let M=g.children[0],u=W(g);k=M.getBoundingClientRect(),u.attr("width",k.width),u.attr("height",k.height)}y.attr("transform",N(k,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).startLeft=c,Z(h,t.startLabelLeft)}if(t.startLabelRight){let c=r.insert("g").attr("class","edgeTerminals"),y=c.insert("g").attr("class","inner"),g=await I(y,t.startLabelRight,D(t.labelStyle)||"",!1,!1);h=g;let k=g.getBBox();if(e){let M=g.children[0],u=W(g);k=M.getBoundingClientRect(),u.attr("width",k.width),u.attr("height",k.height)}y.attr("transform",N(k,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).startRight=c,Z(h,t.startLabelRight)}if(t.endLabelLeft){let c=r.insert("g").attr("class","edgeTerminals"),y=c.insert("g").attr("class","inner"),g=await I(c,t.endLabelLeft,D(t.labelStyle)||"",!1,!1);h=g;let k=g.getBBox();if(e){let M=g.children[0],u=W(g);k=M.getBoundingClientRect(),u.attr("width",k.width),u.attr("height",k.height)}y.attr("transform",N(k,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).endLeft=c,Z(h,t.endLabelLeft)}if(t.endLabelRight){let c=r.insert("g").attr("class","edgeTerminals"),y=c.insert("g").attr("class","inner"),g=await I(c,t.endLabelRight,D(t.labelStyle)||"",!1,!1);h=g;let k=g.getBBox();if(e){let M=g.children[0],u=W(g);k=M.getBoundingClientRect(),u.attr("width",k.width),u.attr("height",k.height)}y.attr("transform",N(k,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).endRight=c,Z(h,t.endLabelRight)}return m},"insertEdgeLabel");function Z(r,t){at(U())&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}p(Z,"setTerminalWidth");var Er=p((r,t)=>{b.debug("Moving label abc88 ",r.id,r.label,G.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,e=U(),{subGraphTitleTotalMargin:o}=Mt(e);if(r.label){let s=G.get(r.id),n=r.x,i=r.y;if(a){let d=A.calcLabelPosition(a);b.debug("Moving label "+r.label+" from (",n,",",i,") to (",d.x,",",d.y,") abc88"),t.updatedPath&&(n=d.x,i=d.y)}s.attr("transform",`translate(${n}, ${i+o/2})`)}if(r.startLabelLeft){let s=_.get(r.id).startLeft,n=r.x,i=r.y;if(a){let d=A.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);n=d.x,i=d.y}s.attr("transform",`translate(${n}, ${i})`)}if(r.startLabelRight){let s=_.get(r.id).startRight,n=r.x,i=r.y;if(a){let d=A.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);n=d.x,i=d.y}s.attr("transform",`translate(${n}, ${i})`)}if(r.endLabelLeft){let s=_.get(r.id).endLeft,n=r.x,i=r.y;if(a){let d=A.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);n=d.x,i=d.y}s.attr("transform",`translate(${n}, ${i})`)}if(r.endLabelRight){let s=_.get(r.id).endRight,n=r.x,i=r.y;if(a){let d=A.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);n=d.x,i=d.y}s.attr("transform",`translate(${n}, ${i})`)}},"positionEdgeLabel"),Rt=p((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;let[a,e]=t,o=Math.abs(e.x-a.x),s=Math.abs(e.y-a.y);return o<.001||s<.001?t:s>=o?[a,{x:a.x,y:e.y},e]:[a,{x:e.x,y:a.y},e]},"orthogonalizeToLabelClippedPoints"),qt=p((r,t)=>{let a=r.x,e=r.y,o=Math.abs(t.x-a),s=Math.abs(t.y-e),n=r.width/2,i=r.height/2;return o>=n||s>=i},"outsideNode"),Pt=p((r,t,a)=>{b.debug(`intersection calc abc89:
|
|
2
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
3
|
+
insidePoint : ${JSON.stringify(a)}
|
|
4
|
+
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let e=r.x,o=r.y,s=Math.abs(e-a.x),n=r.width/2,i=a.x<t.x?n-s:n+s,d=r.height/2,m=Math.abs(t.y-a.y),l=Math.abs(t.x-a.x);if(Math.abs(o-t.y)*n>Math.abs(e-t.x)*d){let f=a.y<t.y?t.y-d-o:o-d-t.y;i=l*f/m;let h={x:a.x<t.x?a.x+i:a.x-l+i,y:a.y<t.y?a.y+m-f:a.y-m+f};return i===0&&(h.x=t.x,h.y=t.y),l===0&&(h.x=t.x),m===0&&(h.y=t.y),b.debug(`abc89 top/bottom calc, Q ${m}, q ${f}, R ${l}, r ${i}`,h),h}else{a.x<t.x?i=t.x-n-e:i=e-n-t.x;let f=m*i/l,h=a.x<t.x?a.x+l-i:a.x-l+i,c=a.y<t.y?a.y+f:a.y-f;return b.debug(`sides calc abc89, Q ${m}, q ${f}, R ${l}, r ${i}`,{_x:h,_y:c}),i===0&&(h=t.x,c=t.y),l===0&&(h=t.x),m===0&&(c=t.y),{x:h,y:c}}},"intersection"),vt=p((r,t)=>{b.warn("abc88 cutPathAtIntersect",r,t);let a=[],e=r[0],o=!1;return r.forEach(s=>{if(b.info("abc88 checking point",s,t),!qt(t,s)&&!o){let n=Pt(t,e,s);b.debug("abc88 inside",s,e,n),b.debug("abc88 intersection",n,t);let i=!1;a.forEach(d=>{i=i||d.x===n.x&&d.y===n.y}),a.some(d=>d.x===n.x&&d.y===n.y)?b.warn("abc88 no intersect",n,a):a.push(n),o=!0}else b.warn("abc88 outside",s,e),e=s,o||a.push(s)}),b.debug("returning points",a),a},"cutPathAtIntersect");function Ot(r){let t=[],a=[];for(let e=1;e<r.length-1;e++){let o=r[e-1],s=r[e],n=r[e+1];(o.x===s.x&&s.y===n.y&&Math.abs(s.x-n.x)>5&&Math.abs(s.y-o.y)>5||o.y===s.y&&s.x===n.x&&Math.abs(s.x-o.x)>5&&Math.abs(s.y-n.y)>5)&&(t.push(s),a.push(e))}return{cornerPoints:t,cornerPointPositions:a}}p(Ot,"extractCornerPoints");var St=p(function(r,t,a){let e=t.x-r.x,o=t.y-r.y,s=Math.sqrt(e*e+o*o),n=a/s;return{x:t.x-n*e,y:t.y-n*o}},"findAdjacentPoint"),It=p(function(r){let{cornerPointPositions:t}=Ot(r),a=[];for(let e=0;e<r.length;e++)if(t.includes(e)){let o=r[e-1],s=r[e+1],n=r[e],i=St(o,n,5),d=St(s,n,5),m=d.x-i.x,l=d.y-i.y;a.push(i);let f=Math.sqrt(2)*2,h={x:n.x,y:n.y};if(Math.abs(s.x-o.x)>10&&Math.abs(s.y-o.y)>=10){b.debug("Corner point fixing",Math.abs(s.x-o.x),Math.abs(s.y-o.y));let c=5;n.x===i.x?h={x:m<0?i.x-c+f:i.x+c-f,y:l<0?i.y-f:i.y+f}:h={x:m<0?i.x-f:i.x+f,y:l<0?i.y-c+f:i.y+c-f}}else b.debug("Corner point skipping fixing",Math.abs(s.x-o.x),Math.abs(s.y-o.y));a.push(h,d)}else a.push(r[e]);return a},"fixCorners"),Nt=p((r,t,a)=>{let e=r-t-a,o=2,s=2,n=o+s,i=Math.floor(e/n),d=Number.isFinite(i)?Math.max(0,i):0,m=Array(d).fill(`${o} ${s}`).join(" ");return`0 ${t} ${m} ${a}`},"generateDashArray"),$r=p(function(r,t,a,e,o,s,n,i=!1){if(!n)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:d,layout:m}=U(),l=t.points,f=!1,h=o;var c=s;let y=[];for(let w in t.cssCompiledStyles)yt(w)||y.push(t.cssCompiledStyles[w]);if(m==="swimlane"){if(c.intersect&&h.intersect&&Array.isArray(l)&&l.length>=2)if(l.length===2)l=[h.intersect(l[0]),c.intersect(l[1])];else{let w=l.slice(1,-1),X=w[0],O=w[w.length-1],E=.5,z=Math.abs(l[l.length-1].x-O.x)<E&&Math.abs(l[l.length-1].y-O.y)<E,T=h.intersect(X),H=z?O:c.intersect(O),R=Math.abs(H.x-O.x)<E&&Math.abs(H.y-O.y)<E,Wt=Math.abs(T.x-X.x)<E&&Math.abs(T.y-X.y)<E?[]:[T],Tt=R?[]:[H];l=[...Wt,...w,...Tt]}l=Rt(t,l)}else c.intersect&&h.intersect&&!i&&(l=l.slice(1,t.points.length-1),l.unshift(h.intersect(l[0])),l.push(c.intersect(l[l.length-1])));let g=btoa(JSON.stringify(l));t.toCluster&&(b.info("to cluster abc88",a.get(t.toCluster)),l=vt(t.points,a.get(t.toCluster).node),f=!0),t.fromCluster&&(b.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(l,null,2)),l=vt(l.reverse(),a.get(t.fromCluster).node).reverse(),f=!0);let k=l.filter(w=>!Number.isNaN(w.y)),M=zt(t.curve);M!=="rounded"&&(k=It(k));let u=J;switch(M){case"linear":u=J;break;case"basis":u=et;break;case"cardinal":u=ct;break;case"bumpX":u=it;break;case"bumpY":u=lt;break;case"catmullRom":u=dt;break;case"monotoneX":u=pt;break;case"monotoneY":u=ht;break;case"natural":u=ft;break;case"step":u=mt;break;case"stepAfter":u=ut;break;case"stepBefore":u=kt;break;case"rounded":u=J;break;default:u=et}let{x:B,y:K}=Ht(t),P=ot().x(B).y(K).curve(u),v;switch(t.thickness){case"normal":v="edge-thickness-normal";break;case"thick":v="edge-thickness-thick";break;case"invisible":v="edge-thickness-invisible";break;default:v="edge-thickness-normal"}switch(t.pattern){case"solid":v+=" edge-pattern-solid";break;case"dotted":v+=" edge-pattern-dotted";break;case"dashed":v+=" edge-pattern-dashed";break;default:v+=" edge-pattern-solid"}let L,j=M==="rounded"?Et($t(k,t),5):P(k),$=Array.isArray(t.style)?t.style:[t.style],V=$.find(w=>w?.startsWith("stroke:")),C="";t.animate&&(C="edge-animation-fast"),t.animation&&(C="edge-animation-"+t.animation);let tt=!1;if(t.look==="handDrawn"){let w=wt.svg(r);Object.assign([],k);let X=w.path(j,{roughness:.3,seed:d});v+=" transition",L=W(X).select("path").attr("id",`${n}-${t.id}`).attr("class"," "+v+(t.classes?" "+t.classes:"")+(C?" "+C:"")).attr("style",$?$.reduce((E,z)=>E+";"+z,""):"");let O=L.attr("d");L.attr("d",O),r.node().appendChild(L.node())}else{let w=y.join(";"),X=$?$.reduce((R,q)=>R+q+";",""):"",O=(w?w+";"+X+";":X)+";"+($?$.reduce((R,q)=>R+";"+q,""):"");L=r.append("path").attr("d",j).attr("id",`${n}-${t.id}`).attr("class"," "+v+(t.classes?" "+t.classes:"")+(C?" "+C:"")).attr("style",O),V=O.match(/stroke:([^;]+)/)?.[1],tt=t.animate===!0||!!t.animation||w.includes("animation");let E=L.node(),z=typeof E.getTotalLength=="function"?E.getTotalLength():0,T=Lt[t.arrowTypeStart]||0,H=Lt[t.arrowTypeEnd]||0;if(t.look==="neo"&&!tt){let q=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Nt(z,T,H):`0 ${T} ${z-T-H} ${H}`}; stroke-dashoffset: 0;`;L.attr("style",q+L.attr("style"))}}L.attr("data-edge",!0),L.attr("data-et","edge"),L.attr("data-id",t.id),L.attr("data-points",g),L.attr("data-look",xt(t.look)),t.showPoints&&k.forEach(w=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",w.x).attr("cy",w.y)});let F="";(U().flowchart.arrowMarkerAbsolute||U().state.arrowMarkerAbsolute)&&(F=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,F=F.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),b.info("arrowTypeStart",t.arrowTypeStart),b.info("arrowTypeEnd",t.arrowTypeEnd);let Xt=!tt&&t?.look==="neo";At(L,t,F,n,e,Xt,V);let Yt=Math.floor(l.length/2),Ut=l[Yt];A.isLabelCoordinateInPath(Ut,L.attr("d"))||(f=!0);let rt={};return f&&(rt.updatedPath=l),rt.originalPath=t.points,rt},"insertEdge");function Et(r,t){if(r.length<2)return"";let a="",e=r.length,o=1e-5;for(let s=0;s<e;s++){let n=r[s],i=r[s-1],d=r[s+1];if(s===0)a+=`M${n.x},${n.y}`;else if(s===e-1)a+=`L${n.x},${n.y}`;else{let m=n.x-i.x,l=n.y-i.y,f=d.x-n.x,h=d.y-n.y,c=Math.hypot(m,l),y=Math.hypot(f,h);if(c<o||y<o){a+=`L${n.x},${n.y}`;continue}let g=m/c,k=l/c,M=f/y,u=h/y,B=g*M+k*u,K=Math.max(-1,Math.min(1,B)),P=Math.acos(K);if(P<o||Math.abs(Math.PI-P)<o){a+=`L${n.x},${n.y}`;continue}let v=Math.min(t/Math.sin(P/2),c/2,y/2),L=n.x-g*v,j=n.y-k*v,$=n.x+M*v,V=n.y+u*v;a+=`L${L},${j}`,a+=`Q${n.x},${n.y} ${$},${V}`}}return a}p(Et,"generateRoundedPath");function st(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};let a=t.x-r.x,e=t.y-r.y;return{angle:Math.atan2(e,a),deltaX:a,deltaY:e}}p(st,"calculateDeltaAndAngle");function $t(r,t){let a=r.map(o=>({...o}));if(r.length>=2&&S[t.arrowTypeStart]){let o=S[t.arrowTypeStart],s=r[0],n=r[1],{angle:i}=st(s,n),d=o*Math.cos(i),m=o*Math.sin(i);a[0].x=s.x+d,a[0].y=s.y+m}let e=r.length;if(e>=2&&S[t.arrowTypeEnd]){let o=S[t.arrowTypeEnd],s=r[e-1],n=r[e-2],{angle:i}=st(n,s),d=o*Math.cos(i),m=o*Math.sin(i);a[e-1].x=s.x-d,a[e-1].y=s.y-m}return a}p($t,"applyMarkerOffsetsToPoints");var Dt=p((r,t,a,e)=>{t.forEach(o=>{mr[o](r,a,e)})},"insertMarkers"),Qt=p((r,t,a)=>{b.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",a+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),Zt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),jt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Vt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Ft=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),Jt=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),Gt=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),Kt=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",a+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),tr=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),rr=p((r,t,a)=>{let e=Y(),{themeVariables:o}=e,{transitionColor:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${s}`)},"barbNeo"),ar=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),er=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),e.append("path").attr("d","M9,0 L9,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),nr=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),sr=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),e.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),or=p((r,t,a)=>{let e=Y(),{themeVariables:o}=e,{strokeWidth:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${s}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${s}`)},"only_one_neo"),ir=p((r,t,a)=>{let e=Y(),{themeVariables:o}=e,{strokeWidth:s,mainBkg:n}=o,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");i.append("circle").attr("fill",n??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),i.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${s}`);let d=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");d.append("circle").attr("fill",n??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),d.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${s}`)},"zero_or_one_neo"),lr=p((r,t,a)=>{let e=Y(),{themeVariables:o}=e,{strokeWidth:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${s}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${s}`)},"one_or_more_neo"),cr=p((r,t,a)=>{let e=Y(),{themeVariables:o}=e,{strokeWidth:s,mainBkg:n}=o,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");i.append("circle").attr("fill",n??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${s}`);let d=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");d.append("circle").attr("fill",n??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),d.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${s}`)},"zero_or_more_neo"),dr=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
5
|
+
L20,10
|
|
6
|
+
M20,10
|
|
7
|
+
L0,20`)},"requirement_arrow"),pr=p((r,t,a)=>{let e=Y(),{themeVariables:o}=e,{strokeWidth:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${s}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
8
|
+
L20,10
|
|
9
|
+
M20,10
|
|
10
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),hr=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");e.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),e.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),e.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),fr=p((r,t,a)=>{let e=Y(),{themeVariables:o}=e,{strokeWidth:s}=o,n=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),n.selectAll("*").attr("stroke-width",`${s}`)},"requirement_contains_neo"),mr={extension:Qt,composition:Zt,aggregation:jt,dependency:Vt,lollipop:Ft,point:Jt,circle:Gt,cross:Kt,barb:tr,barbNeo:rr,only_one:ar,zero_or_one:er,one_or_more:nr,zero_or_more:sr,only_one_neo:or,zero_or_one_neo:ir,one_or_more_neo:lr,zero_or_more_neo:cr,requirement_arrow:dr,requirement_contains:hr,requirement_arrow_neo:pr,requirement_contains_neo:fr},Xr=Dt;export{S as a,G as b,_ as c,vr as d,Sr as e,Or as f,Er as g,$r as h,Xr as i};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a}from"./chunk-FK4OKHO7.js";var i={},c={info:a(async()=>{let{createInfoServices:e}=await import("./info-A6RAGUB7-VXIEHQAI.js"),r=e().Info.parser.LangiumParser;i.info=r},"info"),packet:a(async()=>{let{createPacketServices:e}=await import("./packet-AYTQ26CC-WLFKOXIZ.js"),r=e().Packet.parser.LangiumParser;i.packet=r},"packet"),pie:a(async()=>{let{createPieServices:e}=await import("./pie-WAS4IAKB-GZIMD664.js"),r=e().Pie.parser.LangiumParser;i.pie=r},"pie"),treeView:a(async()=>{let{createTreeViewServices:e}=await import("./treeView-Q6P3EWNA-UEXUSAGC.js"),r=e().TreeView.parser.LangiumParser;i.treeView=r},"treeView"),architecture:a(async()=>{let{createArchitectureServices:e}=await import("./architecture-7GRP2DOG-KMESPJ5A.js"),r=e().Architecture.parser.LangiumParser;i.architecture=r},"architecture"),gitGraph:a(async()=>{let{createGitGraphServices:e}=await import("./gitGraph-4MIJSDKK-ITDCTFJT.js"),r=e().GitGraph.parser.LangiumParser;i.gitGraph=r},"gitGraph"),eventmodeling:a(async()=>{let{createEventModelingServices:e}=await import("./eventmodeling-NTZA5JFV-MGOPW7BD.js"),r=e().EventModel.parser.LangiumParser;i.eventmodeling=r},"eventmodeling"),radar:a(async()=>{let{createRadarServices:e}=await import("./radar-RG4KPBEZ-URG5LVGS.js"),r=e().Radar.parser.LangiumParser;i.radar=r},"radar"),railroad:a(async()=>{let{createRailroadServices:e}=await import("./railroad-74A4TZTK-3ZMXCKLP.js"),r=e().Railroad.parser.LangiumParser;i.railroad=r},"railroad"),railroadEbnf:a(async()=>{let{createRailroadEbnfServices:e}=await import("./railroad-ebnf-LZEXJU2U-YEVF3EJR.js"),r=e().RailroadEbnf.parser.LangiumParser;i.railroadEbnf=r},"railroadEbnf"),railroadAbnf:a(async()=>{let{createRailroadAbnfServices:e}=await import("./railroad-abnf-HS5TGJTU-LBR5MV33.js"),r=e().RailroadAbnf.parser.LangiumParser;i.railroadAbnf=r},"railroadAbnf"),railroadPeg:a(async()=>{let{createRailroadPegServices:e}=await import("./railroad-peg-WCYAUIDC-CV774YSK.js"),r=e().RailroadPeg.parser.LangiumParser;i.railroadPeg=r},"railroadPeg"),treemap:a(async()=>{let{createTreemapServices:e}=await import("./treemap-WGGIJYW6-NFXJPDAT.js"),r=e().Treemap.parser.LangiumParser;i.treemap=r},"treemap"),wardley:a(async()=>{let{createWardleyServices:e}=await import("./wardley-WFR3VGLG-MQ6DEZYA.js"),r=e().Wardley.parser.LangiumParser;i.wardley=r},"wardley"),cynefin:a(async()=>{let{createCynefinServices:e}=await import("./cynefin-OW5HDTMX-QMEUXFXO.js"),r=e().Cynefin.parser.LangiumParser;i.cynefin=r},"cynefin")};async function d(e,r){let n=c[e];if(!n)throw new Error(`Unknown diagram type: ${e}`);i[e]||await n();let t=i[e].parse(r);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new l(t);return t.value}a(d,"parse");var l=class extends Error{constructor(e){let r=e.lexerErrors.map(o=>{let t=o.line!==void 0&&!isNaN(o.line)?o.line:"?",s=o.column!==void 0&&!isNaN(o.column)?o.column:"?";return`Lexer error on line ${t}, column ${s}: ${o.message}`}).join(`
|
|
2
|
+
`),n=e.parserErrors.map(o=>{let t=o.token.startLine!==void 0&&!isNaN(o.token.startLine)?o.token.startLine:"?",s=o.token.startColumn!==void 0&&!isNaN(o.token.startColumn)?o.token.startColumn:"?";return`Parse error on line ${t}, column ${s}: ${o.message}`}).join(`
|
|
3
|
+
`);super(`Parsing failed: ${r} ${n}`),this.result=e}static{a(this,"MermaidParseError")}};export{d as a,l as b};
|