import { g as e, h as t, p as n } from "./src-BuisGndr.js";
import { b as r, h as i } from "./chunk-ABZYJK2D-DDrmE3Q7.js";
import { C as a, D as o, E as s, O as c, S as l, T as u, b as d, h as f, k as p, v as m, w as h, x as g, y as _ } from "./chunk-S3R3BYOJ-CG6GoSCd.js";
import { t as v } from "./line-DYhVGH2B.js";
import { n as y, r as b, t as x } from "./chunk-HN2XXSSU-CJL8wAZ2.js";
import { t as S } from "./chunk-CVBHYZKI-CiCGetln.js";
import { i as C, n as w } from "./chunk-ATLVNIR6-DHlCNWnJ.js";
import { n as T } from "./chunk-JA3XYJ7Z-CpKHrbOX.js";
import { d as E, r as D } from "./chunk-JZLCHNYA-CYo7ykJf.js";
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.mjs
var ee = /* @__PURE__ */ t((e, t, n, r, i, a) => {
	t.arrowTypeStart && k(e, "start", t.arrowTypeStart, n, r, i, a), t.arrowTypeEnd && k(e, "end", t.arrowTypeEnd, n, r, i, a);
}, "addEdgeMarkers"), O = {
	arrow_cross: {
		type: "cross",
		fill: !1
	},
	arrow_point: {
		type: "point",
		fill: !0
	},
	arrow_barb: {
		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
	}
}, k = /* @__PURE__ */ t((t, n, r, i, a, o, s) => {
	let c = O[r];
	if (!c) {
		e.warn(`Unknown arrow type: ${r}`);
		return;
	}
	let l = `${a}_${o}-${c.type}${n === "start" ? "Start" : "End"}`;
	if (s && s.trim() !== "") {
		let e = `${l}_${s.replace(/[^\dA-Za-z]/g, "_")}`;
		if (!document.getElementById(e)) {
			let t = document.getElementById(l);
			if (t) {
				let n = t.cloneNode(!0);
				n.id = e, n.querySelectorAll("path, circle, line").forEach((e) => {
					e.setAttribute("stroke", s), c.fill && e.setAttribute("fill", s);
				}), t.parentNode?.appendChild(n);
			}
		}
		t.attr(`marker-${n}`, `url(${i}#${e})`);
	} else t.attr(`marker-${n}`, `url(${i}#${l})`);
}, "addEdgeMarker"), A = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), M = /* @__PURE__ */ t(() => {
	A.clear(), j.clear();
}, "clear"), N = /* @__PURE__ */ t((e) => e ? e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), P = /* @__PURE__ */ t(async (t, a) => {
	let o = i(r().flowchart.htmlLabels), { labelStyles: s } = C(a);
	a.labelStyle = s;
	let c = await T(t, a.label, {
		style: a.labelStyle,
		useHtmlLabels: o,
		addSvgBackground: !0,
		isNode: !1
	});
	e.info("abc82", a, a.labelType);
	let l = t.insert("g").attr("class", "edgeLabel"), u = l.insert("g").attr("class", "label").attr("data-id", a.id);
	u.node().appendChild(c);
	let d = c.getBBox();
	if (o) {
		let e = c.children[0], t = n(c);
		d = e.getBoundingClientRect(), t.attr("width", d.width), t.attr("height", d.height);
	}
	u.attr("transform", "translate(" + -d.width / 2 + ", " + -d.height / 2 + ")"), A.set(a.id, l), a.width = d.width, a.height = d.height;
	let f;
	if (a.startLabelLeft) {
		let e = await D(a.startLabelLeft, N(a.labelStyle)), n = t.insert("g").attr("class", "edgeTerminals"), r = n.insert("g").attr("class", "inner");
		f = r.node().appendChild(e);
		let i = e.getBBox();
		r.attr("transform", "translate(" + -i.width / 2 + ", " + -i.height / 2 + ")"), j.get(a.id) || j.set(a.id, {}), j.get(a.id).startLeft = n, F(f, a.startLabelLeft);
	}
	if (a.startLabelRight) {
		let e = await D(a.startLabelRight, N(a.labelStyle)), n = t.insert("g").attr("class", "edgeTerminals"), r = n.insert("g").attr("class", "inner");
		f = n.node().appendChild(e), r.node().appendChild(e);
		let i = e.getBBox();
		r.attr("transform", "translate(" + -i.width / 2 + ", " + -i.height / 2 + ")"), j.get(a.id) || j.set(a.id, {}), j.get(a.id).startRight = n, F(f, a.startLabelRight);
	}
	if (a.endLabelLeft) {
		let e = await D(a.endLabelLeft, N(a.labelStyle)), n = t.insert("g").attr("class", "edgeTerminals"), r = n.insert("g").attr("class", "inner");
		f = r.node().appendChild(e);
		let i = e.getBBox();
		r.attr("transform", "translate(" + -i.width / 2 + ", " + -i.height / 2 + ")"), n.node().appendChild(e), j.get(a.id) || j.set(a.id, {}), j.get(a.id).endLeft = n, F(f, a.endLabelLeft);
	}
	if (a.endLabelRight) {
		let e = await D(a.endLabelRight, N(a.labelStyle)), n = t.insert("g").attr("class", "edgeTerminals"), r = n.insert("g").attr("class", "inner");
		f = r.node().appendChild(e);
		let i = e.getBBox();
		r.attr("transform", "translate(" + -i.width / 2 + ", " + -i.height / 2 + ")"), n.node().appendChild(e), j.get(a.id) || j.set(a.id, {}), j.get(a.id).endRight = n, F(f, a.endLabelRight);
	}
	return c;
}, "insertEdgeLabel");
function F(e, t) {
	r().flowchart.htmlLabels && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
}
t(F, "setTerminalWidth");
var I = /* @__PURE__ */ t((t, n) => {
	e.debug("Moving label abc88 ", t.id, t.label, A.get(t.id), n);
	let i = n.updatedPath ? n.updatedPath : n.originalPath, { subGraphTitleTotalMargin: a } = S(r());
	if (t.label) {
		let r = A.get(t.id), o = t.x, s = t.y;
		if (i) {
			let r = f.calcLabelPosition(i);
			e.debug("Moving label " + t.label + " from (", o, ",", s, ") to (", r.x, ",", r.y, ") abc88"), n.updatedPath && (o = r.x, s = r.y);
		}
		r.attr("transform", `translate(${o}, ${s + a / 2})`);
	}
	if (t.startLabelLeft) {
		let e = j.get(t.id).startLeft, n = t.x, r = t.y;
		if (i) {
			let e = f.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_left", i);
			n = e.x, r = e.y;
		}
		e.attr("transform", `translate(${n}, ${r})`);
	}
	if (t.startLabelRight) {
		let e = j.get(t.id).startRight, n = t.x, r = t.y;
		if (i) {
			let e = f.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_right", i);
			n = e.x, r = e.y;
		}
		e.attr("transform", `translate(${n}, ${r})`);
	}
	if (t.endLabelLeft) {
		let e = j.get(t.id).endLeft, n = t.x, r = t.y;
		if (i) {
			let e = f.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_left", i);
			n = e.x, r = e.y;
		}
		e.attr("transform", `translate(${n}, ${r})`);
	}
	if (t.endLabelRight) {
		let e = j.get(t.id).endRight, n = t.x, r = t.y;
		if (i) {
			let e = f.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_right", i);
			n = e.x, r = e.y;
		}
		e.attr("transform", `translate(${n}, ${r})`);
	}
}, "positionEdgeLabel"), L = /* @__PURE__ */ t((e, t) => {
	let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
	return i >= o || a >= s;
}, "outsideNode"), R = /* @__PURE__ */ t((t, n, r) => {
	e.debug(`intersection calc abc89:
  outsidePoint: ${JSON.stringify(n)}
  insidePoint : ${JSON.stringify(r)}
  node        : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);
	let i = t.x, a = t.y, o = Math.abs(i - r.x), s = t.width / 2, c = r.x < n.x ? s - o : s + o, l = t.height / 2, u = Math.abs(n.y - r.y), d = Math.abs(n.x - r.x);
	if (Math.abs(a - n.y) * s > Math.abs(i - n.x) * l) {
		let t = r.y < n.y ? n.y - l - a : a - l - n.y;
		c = d * t / u;
		let i = {
			x: r.x < n.x ? r.x + c : r.x - d + c,
			y: r.y < n.y ? r.y + u - t : r.y - u + t
		};
		return c === 0 && (i.x = n.x, i.y = n.y), d === 0 && (i.x = n.x), u === 0 && (i.y = n.y), e.debug(`abc89 top/bottom calc, Q ${u}, q ${t}, R ${d}, r ${c}`, i), i;
	} else {
		c = r.x < n.x ? n.x - s - i : i - s - n.x;
		let t = u * c / d, a = r.x < n.x ? r.x + d - c : r.x - d + c, o = r.y < n.y ? r.y + t : r.y - t;
		return e.debug(`sides calc abc89, Q ${u}, q ${t}, R ${d}, r ${c}`, {
			_x: a,
			_y: o
		}), c === 0 && (a = n.x, o = n.y), d === 0 && (a = n.x), u === 0 && (o = n.y), {
			x: a,
			y: o
		};
	}
}, "intersection"), z = /* @__PURE__ */ t((t, n) => {
	e.warn("abc88 cutPathAtIntersect", t, n);
	let r = [], i = t[0], a = !1;
	return t.forEach((t) => {
		if (e.info("abc88 checking point", t, n), !L(n, t) && !a) {
			let o = R(n, i, t);
			e.debug("abc88 inside", t, i, o), e.debug("abc88 intersection", o, n);
			let s = !1;
			r.forEach((e) => {
				s ||= e.x === o.x && e.y === o.y;
			}), r.some((e) => e.x === o.x && e.y === o.y) ? e.warn("abc88 no intersect", o, r) : r.push(o), a = !0;
		} else e.warn("abc88 outside", t, i), i = t, a || r.push(t);
	}), e.debug("returning points", r), r;
}, "cutPathAtIntersect");
function B(e) {
	let t = [], n = [];
	for (let r = 1; r < e.length - 1; r++) {
		let i = e[r - 1], a = e[r], o = e[r + 1];
		(i.x === a.x && a.y === o.y && Math.abs(a.x - o.x) > 5 && Math.abs(a.y - i.y) > 5 || i.y === a.y && a.x === o.x && Math.abs(a.x - i.x) > 5 && Math.abs(a.y - o.y) > 5) && (t.push(a), n.push(r));
	}
	return {
		cornerPoints: t,
		cornerPointPositions: n
	};
}
t(B, "extractCornerPoints");
var V = /* @__PURE__ */ t(function(e, t, n) {
	let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
	return {
		x: t.x - a * r,
		y: t.y - a * i
	};
}, "findAdjacentPoint"), H = /* @__PURE__ */ t(function(t) {
	let { cornerPointPositions: n } = B(t), r = [];
	for (let i = 0; i < t.length; i++) if (n.includes(i)) {
		let n = t[i - 1], a = t[i + 1], o = t[i], s = V(n, o, 5), c = V(a, o, 5), l = c.x - s.x, u = c.y - s.y;
		r.push(s);
		let d = Math.sqrt(2) * 2, f = {
			x: o.x,
			y: o.y
		};
		Math.abs(a.x - n.x) > 10 && Math.abs(a.y - n.y) >= 10 ? (e.debug("Corner point fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), f = o.x === s.x ? {
			x: l < 0 ? s.x - 5 + d : s.x + 5 - d,
			y: u < 0 ? s.y - d : s.y + d
		} : {
			x: l < 0 ? s.x - d : s.x + d,
			y: u < 0 ? s.y - 5 + d : s.y + 5 - d
		}) : e.debug("Corner point skipping fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), r.push(f, c);
	} else r.push(t[i]);
	return r;
}, "fixCorners"), U = /* @__PURE__ */ t((e, t, n) => {
	let r = e - t - n, i = Math.floor(r / 4);
	return `0 ${t} ${Array(i).fill("2 2").join(" ")} ${n}`;
}, "generateDashArray"), W = /* @__PURE__ */ t(function(t, i, y, S, C, T, D, O = !1) {
	let { handDrawnSeed: k } = r(), A = i.points, j = !1, M = C;
	var N = T;
	let P = [];
	for (let e in i.cssCompiledStyles) w(e) || P.push(i.cssCompiledStyles[e]);
	e.debug("UIO intersect check", i.points, N.x, M.x), N.intersect && M.intersect && !O && (A = A.slice(1, i.points.length - 1), A.unshift(M.intersect(A[0])), e.debug("Last point UIO", i.start, "-->", i.end, A[A.length - 1], N, N.intersect(A[A.length - 1])), A.push(N.intersect(A[A.length - 1])));
	let F = btoa(JSON.stringify(A));
	i.toCluster && (e.info("to cluster abc88", y.get(i.toCluster)), A = z(i.points, y.get(i.toCluster).node), j = !0), i.fromCluster && (e.debug("from cluster abc88", y.get(i.fromCluster), JSON.stringify(A, null, 2)), A = z(A.reverse(), y.get(i.fromCluster).node).reverse(), j = !0);
	let I = A.filter((e) => !Number.isNaN(e.y));
	I = H(I);
	let L = s;
	switch (L = p, i.curve) {
		case "linear":
			L = p;
			break;
		case "basis":
			L = s;
			break;
		case "cardinal":
			L = u;
			break;
		case "bumpX":
			L = o;
			break;
		case "bumpY":
			L = c;
			break;
		case "catmullRom":
			L = h;
			break;
		case "monotoneX":
			L = l;
			break;
		case "monotoneY":
			L = a;
			break;
		case "natural":
			L = g;
			break;
		case "step":
			L = d;
			break;
		case "stepAfter":
			L = m;
			break;
		case "stepBefore":
			L = _;
			break;
		default: L = s;
	}
	let { x: R, y: B } = x(i), V = v().x(R).y(B).curve(L), W;
	switch (i.thickness) {
		case "normal":
			W = "edge-thickness-normal";
			break;
		case "thick":
			W = "edge-thickness-thick";
			break;
		case "invisible":
			W = "edge-thickness-invisible";
			break;
		default: W = "edge-thickness-normal";
	}
	switch (i.pattern) {
		case "solid":
			W += " edge-pattern-solid";
			break;
		case "dotted":
			W += " edge-pattern-dotted";
			break;
		case "dashed":
			W += " edge-pattern-dashed";
			break;
		default: W += " edge-pattern-solid";
	}
	let K, J = i.curve === "rounded" ? G(q(I, i), 5) : V(I), Y = Array.isArray(i.style) ? i.style : [i.style], X = Y.find((e) => e?.startsWith("stroke:")), Z = !1;
	if (i.look === "handDrawn") {
		let e = E.svg(t);
		Object.assign([], I);
		let r = e.path(J, {
			roughness: .3,
			seed: k
		});
		W += " transition", K = n(r).select("path").attr("id", i.id).attr("class", " " + W + (i.classes ? " " + i.classes : "")).attr("style", Y ? Y.reduce((e, t) => e + ";" + t, "") : "");
		let a = K.attr("d");
		K.attr("d", a), t.node().appendChild(K.node());
	} else {
		let e = P.join(";"), n = Y ? Y.reduce((e, t) => e + t + ";", "") : "", r = "";
		i.animate && (r = " edge-animation-fast"), i.animation && (r = " edge-animation-" + i.animation);
		let a = (e ? e + ";" + n + ";" : n) + ";" + (Y ? Y.reduce((e, t) => e + ";" + t, "") : "");
		K = t.append("path").attr("d", J).attr("id", i.id).attr("class", " " + W + (i.classes ? " " + i.classes : "") + (r ?? "")).attr("style", a), X = a.match(/stroke:([^;]+)/)?.[1], Z = i.animate === !0 || !!i.animation || e.includes("animation");
		let o = K.node(), s = typeof o.getTotalLength == "function" ? o.getTotalLength() : 0, c = b[i.arrowTypeStart] || 0, l = b[i.arrowTypeEnd] || 0;
		if (i.look === "neo" && !Z) {
			let e = `stroke-dasharray: ${i.pattern === "dotted" || i.pattern === "dashed" ? U(s, c, l) : `0 ${c} ${s - c - l} ${l}`}; stroke-dashoffset: 0;`;
			K.attr("style", e + K.attr("style"));
		}
	}
	K.attr("data-edge", !0), K.attr("data-et", "edge"), K.attr("data-id", i.id), K.attr("data-points", F), i.showPoints && I.forEach((e) => {
		t.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", e.x).attr("cy", e.y);
	});
	let Q = "";
	(r().flowchart.arrowMarkerAbsolute || r().state.arrowMarkerAbsolute) && (Q = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, Q = Q.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), e.info("arrowTypeStart", i.arrowTypeStart), e.info("arrowTypeEnd", i.arrowTypeEnd), ee(K, i, Q, D, S, X);
	let te = Math.floor(A.length / 2), ne = A[te];
	f.isLabelCoordinateInPath(ne, K.attr("d")) || (j = !0);
	let $ = {};
	return j && ($.updatedPath = A), $.originalPath = i.points, $;
}, "insertEdge");
function G(e, t) {
	if (e.length < 2) return "";
	let n = "", r = e.length, i = 1e-5;
	for (let a = 0; a < r; a++) {
		let o = e[a], s = e[a - 1], c = e[a + 1];
		if (a === 0) n += `M${o.x},${o.y}`;
		else if (a === r - 1) n += `L${o.x},${o.y}`;
		else {
			let e = o.x - s.x, r = o.y - s.y, a = c.x - o.x, l = c.y - o.y, u = Math.hypot(e, r), d = Math.hypot(a, l);
			if (u < i || d < i) {
				n += `L${o.x},${o.y}`;
				continue;
			}
			let f = e / u, p = r / u, m = a / d, h = l / d, g = f * m + p * h, _ = Math.acos(Math.max(-1, Math.min(1, g)));
			if (_ < i || Math.abs(Math.PI - _) < i) {
				n += `L${o.x},${o.y}`;
				continue;
			}
			let v = Math.min(t / Math.sin(_ / 2), u / 2, d / 2), y = o.x - f * v, b = o.y - p * v, x = o.x + m * v, S = o.y + h * v;
			n += `L${y},${b}`, n += `Q${o.x},${o.y} ${x},${S}`;
		}
	}
	return n;
}
t(G, "generateRoundedPath");
function K(e, t) {
	if (!e || !t) return {
		angle: 0,
		deltaX: 0,
		deltaY: 0
	};
	let n = t.x - e.x, r = t.y - e.y;
	return {
		angle: Math.atan2(r, n),
		deltaX: n,
		deltaY: r
	};
}
t(K, "calculateDeltaAndAngle");
function q(e, t) {
	let n = e.map((e) => ({ ...e }));
	if (e.length >= 2 && y[t.arrowTypeStart]) {
		let r = y[t.arrowTypeStart], i = e[0], a = e[1], { angle: o } = K(i, a), s = r * Math.cos(o), c = r * Math.sin(o);
		n[0].x = i.x + s, n[0].y = i.y + c;
	}
	let r = e.length;
	if (r >= 2 && y[t.arrowTypeEnd]) {
		let i = y[t.arrowTypeEnd], a = e[r - 1], o = e[r - 2], { angle: s } = K(o, a), c = i * Math.cos(s), l = i * Math.sin(s);
		n[r - 1].x = a.x - c, n[r - 1].y = a.y - l;
	}
	return n;
}
t(q, "applyMarkerOffsetsToPoints");
var J = /* @__PURE__ */ t((e, t, n, r) => {
	t.forEach((t) => {
		Y[t](e, n, r);
	});
}, "insertMarkers"), Y = {
	extension: /* @__PURE__ */ t((t, n, r) => {
		e.trace("Making markers for ", r), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionStart").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd").attr("class", "marker extension " + n).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");
	}, "extension"),
	composition: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + 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"), e.append("defs").append("marker").attr("id", n + "_" + 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");
	}, "composition"),
	aggregation: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + 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"), e.append("defs").append("marker").attr("id", n + "_" + 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");
	}, "aggregation"),
	dependency: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + 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"), e.append("defs").append("marker").attr("id", n + "_" + 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");
	}, "dependency"),
	lollipop: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + 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("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + 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("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
	}, "lollipop"),
	point: /* @__PURE__ */ t((e, t, n) => {
		e.append("marker").attr("id", n + "_" + 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"), e.append("marker").attr("id", n + "_" + 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");
	}, "point"),
	circle: /* @__PURE__ */ t((e, t, n) => {
		e.append("marker").attr("id", n + "_" + 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"), e.append("marker").attr("id", n + "_" + 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");
	}, "circle"),
	cross: /* @__PURE__ */ t((e, t, n) => {
		e.append("marker").attr("id", n + "_" + 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"), e.append("marker").attr("id", n + "_" + 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");
	}, "cross"),
	barb: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + 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"),
	only_one: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + 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"), e.append("defs").append("marker").attr("id", n + "_" + 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"),
	zero_or_one: /* @__PURE__ */ t((e, t, n) => {
		let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
		r.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("d", "M9,0 L9,18");
		let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
		i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), i.append("path").attr("d", "M21,0 L21,18");
	}, "zero_or_one"),
	one_or_more: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + 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"), e.append("defs").append("marker").attr("id", n + "_" + 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"),
	zero_or_more: /* @__PURE__ */ t((e, t, n) => {
		let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
		r.append("circle").attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18");
		let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
		i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), i.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
	}, "zero_or_more"),
	requirement_arrow: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr("d", "M0,0\n      L20,10\n      M20,10\n      L0,20");
	}, "requirement_arrow"),
	requirement_contains: /* @__PURE__ */ t((e, t, n) => {
		let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
		r.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), r.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), r.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
	}, "requirement_contains")
}, X = J;
//#endregion
export { I as a, X as i, W as n, P as r, M as t };
