@fullstackhouse/cerber 1.6.4 → 1.6.5-pr.94.9eb37fa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/runner/prompt.js +6 -2
  2. package/package.json +1 -1
  3. package/web/dist/assets/{abnfDiagram-WEYOIA3C-DDWiBgJ_.js → abnfDiagram-WEYOIA3C-D5T4yrfy.js} +1 -1
  4. package/web/dist/assets/{arc-CXTmovRq.js → arc-DxeZxuoz.js} +1 -1
  5. package/web/dist/assets/{architectureDiagram-ZHVYKT53-DPwB58EC.js → architectureDiagram-ZHVYKT53-Cf-PS51B.js} +1 -1
  6. package/web/dist/assets/{blockDiagram-RJAE7QA3-BbdcPjtf.js → blockDiagram-RJAE7QA3-HHCDp7AV.js} +1 -1
  7. package/web/dist/assets/{c4Diagram-XDPPPE54-DHzjA55M.js → c4Diagram-XDPPPE54-NFn7SLDA.js} +1 -1
  8. package/web/dist/assets/channel-DYARpwfW.js +1 -0
  9. package/web/dist/assets/{chunk-2E7WHVMD-X1BSLNbz.js → chunk-2E7WHVMD-CfttgAMX.js} +1 -1
  10. package/web/dist/assets/{chunk-2Q5K7J3B-4uva6Krv.js → chunk-2Q5K7J3B-BWQte7pO.js} +1 -1
  11. package/web/dist/assets/{chunk-4EMNKR2T-DFnlUBTZ.js → chunk-4EMNKR2T-Bh9igyTN.js} +1 -1
  12. package/web/dist/assets/{chunk-55XCU76K-Cu8cVLZy.js → chunk-55XCU76K-BBU9TIqP.js} +1 -1
  13. package/web/dist/assets/{chunk-5VM5RSS4-B9WXEPBE.js → chunk-5VM5RSS4-yOy4xnSd.js} +1 -1
  14. package/web/dist/assets/{chunk-JWPE2WC7-CCsYBl0M.js → chunk-JWPE2WC7-EaliTm-i.js} +1 -1
  15. package/web/dist/assets/{chunk-VQ5W62QI-DBHQMI3P.js → chunk-VQ5W62QI-B7P9vp6w.js} +1 -1
  16. package/web/dist/assets/{chunk-XXDRQBXY-DFB2lFGh.js → chunk-XXDRQBXY-CEhLPaaF.js} +1 -1
  17. package/web/dist/assets/{chunk-ZCHMQSOR-dvczqjG8.js → chunk-ZCHMQSOR-DNwrj5b5.js} +2 -2
  18. package/web/dist/assets/{classDiagram-v2-4MYWR3UA-Ck2KUiuM.js → classDiagram-v2-4MYWR3UA-C6_yEpiD.js} +1 -1
  19. package/web/dist/assets/{cose-bilkent-JH36ORCC-DcMTug3a.js → cose-bilkent-JH36ORCC-DF8MzLB2.js} +1 -1
  20. package/web/dist/assets/{cynefin-EF2NZ3EQ-BG2opkNs.js → cynefin-EF2NZ3EQ-_uBS-emI.js} +1 -1
  21. package/web/dist/assets/{cynefinDiagram-WF24UDRP-BTIMNySy.js → cynefinDiagram-WF24UDRP-I2bp_XCH.js} +1 -1
  22. package/web/dist/assets/{dagre-NK4GIZVX-1qi-5iCE.js → dagre-NK4GIZVX-DfUspu1N.js} +1 -1
  23. package/web/dist/assets/{diagram-CBK3MWTC-CSH989hb.js → diagram-CBK3MWTC-D8GHnLKd.js} +1 -1
  24. package/web/dist/assets/{diagram-I5XIIV2D-Z_1T8l7R.js → diagram-I5XIIV2D-MabF84Kx.js} +1 -1
  25. package/web/dist/assets/{diagram-ODIL2UCW-B8jB07f-.js → diagram-ODIL2UCW-BBY_OJdu.js} +1 -1
  26. package/web/dist/assets/{diagram-PFBEJUXE-B9qraPmL.js → diagram-PFBEJUXE-D2qplw00.js} +1 -1
  27. package/web/dist/assets/{diagram-RJA3I4VV-CFhy381H.js → diagram-RJA3I4VV-CkFRz4Tj.js} +1 -1
  28. package/web/dist/assets/{diagram-TYUNFSNR-DYEBj8MB.js → diagram-TYUNFSNR-HXkSGAa2.js} +1 -1
  29. package/web/dist/assets/{ebnfDiagram-V4P3TTPT-DGtaeIoV.js → ebnfDiagram-V4P3TTPT-S9b4LkDB.js} +1 -1
  30. package/web/dist/assets/{elk-QONTBCTQ-Cpcx9jQq.js → elk-QONTBCTQ-BMQicl1e.js} +1 -1
  31. package/web/dist/assets/{erDiagram-KYQIGQAA-BFMhv1lb.js → erDiagram-KYQIGQAA-BiFU6q82.js} +1 -1
  32. package/web/dist/assets/{flowDiagram-IUGLLWBU-ZvrIwHpb.js → flowDiagram-IUGLLWBU-CdvYEjyn.js} +1 -1
  33. package/web/dist/assets/{ganttDiagram-R7GPNTJY-CMElMuNb.js → ganttDiagram-R7GPNTJY-Cp9b1JEq.js} +1 -1
  34. package/web/dist/assets/{gitGraphDiagram-PDYL7XHY-C2YKWJEE.js → gitGraphDiagram-PDYL7XHY-44WGMg7y.js} +1 -1
  35. package/web/dist/assets/{index-D_0po9OL.css → index-C-BR2leN.css} +1 -1
  36. package/web/dist/assets/{index-CcSO4iOX.js → index-vSZNWvZS.js} +44 -41
  37. package/web/dist/assets/{infoDiagram-MVDRKAX5-Cekh0IW0.js → infoDiagram-MVDRKAX5-CTTQw5fU.js} +1 -1
  38. package/web/dist/assets/{ishikawaDiagram-HPEHV2GE-BoxRJEa6.js → ishikawaDiagram-HPEHV2GE-DtRDFDCi.js} +1 -1
  39. package/web/dist/assets/{journeyDiagram-BOSHW7O7-kDJSSn-6.js → journeyDiagram-BOSHW7O7-I1Mj_QGJ.js} +1 -1
  40. package/web/dist/assets/{kanban-definition-FNSA4HC5-CBQ3lPM5.js → kanban-definition-FNSA4HC5-r9h9OFux.js} +1 -1
  41. package/web/dist/assets/{linear-DSIqP0TT.js → linear-Bbzk8ZVk.js} +1 -1
  42. package/web/dist/assets/{mermaid.core-wbwCbWuQ.js → mermaid.core-C0OE1PLO.js} +4 -4
  43. package/web/dist/assets/{mindmap-definition-6OY57UG3-C2PqDFz9.js → mindmap-definition-6OY57UG3-B9W_nVnX.js} +1 -1
  44. package/web/dist/assets/{pegDiagram-ECIUJNBX-S9r7bybM.js → pegDiagram-ECIUJNBX-C7Znr-Us.js} +1 -1
  45. package/web/dist/assets/{pieDiagram-GNMPY74T-C1DFot1v.js → pieDiagram-GNMPY74T-BSY-jXvd.js} +1 -1
  46. package/web/dist/assets/{quadrantDiagram-D57K4MC3-QaUZgGzi.js → quadrantDiagram-D57K4MC3-BHNIoyEH.js} +1 -1
  47. package/web/dist/assets/{railroadDiagram-Y72NRBL7-BTsaNbut.js → railroadDiagram-Y72NRBL7-DDdXI6e4.js} +1 -1
  48. package/web/dist/assets/{requirementDiagram-EQYSW5RA-Bul4YAfK.js → requirementDiagram-EQYSW5RA-BJ-Rf0e7.js} +1 -1
  49. package/web/dist/assets/{sankeyDiagram-SY24JHO5-J8X2PWDq.js → sankeyDiagram-SY24JHO5-BoOwQ9NN.js} +1 -1
  50. package/web/dist/assets/{sequenceDiagram-BLEHNHQU-CTX4Y6no.js → sequenceDiagram-BLEHNHQU-C0LL--xD.js} +1 -1
  51. package/web/dist/assets/{sizeCapture-INFHLROL-CXfB7h8n.js → sizeCapture-INFHLROL-CiC0ypIb.js} +1 -1
  52. package/web/dist/assets/{stateDiagram-v2-A6IESKWZ-Kr5pKDbm.js → stateDiagram-v2-A6IESKWZ-1v9Hde5d.js} +1 -1
  53. package/web/dist/assets/{swimlanes-B3ENRKFQ-DDWGDYUC.js → swimlanes-B3ENRKFQ-C0RmEF0_.js} +1 -1
  54. package/web/dist/assets/swimlanesDiagram-AYQRV4AK-bstHYQVN.js +8 -0
  55. package/web/dist/assets/{timeline-definition-JXYKGLGB-BAKElQ5f.js → timeline-definition-JXYKGLGB-k6G542yt.js} +1 -1
  56. package/web/dist/assets/{usecaseDiagram-WPOLBNNX-Dlw_OwnV.js → usecaseDiagram-WPOLBNNX-DXE62T0K.js} +1 -1
  57. package/web/dist/assets/{vennDiagram-Q3Y3IDCW-bTukfT0U.js → vennDiagram-Q3Y3IDCW-Cdp0QbnB.js} +1 -1
  58. package/web/dist/assets/{wardleyDiagram-IVAIDKWA-DeM6AGmO.js → wardleyDiagram-IVAIDKWA-DlnQNa9Q.js} +1 -1
  59. package/web/dist/assets/{xychartDiagram-4URNHDU4-CVYyvgbH.js → xychartDiagram-4URNHDU4-CFz9T3W3.js} +1 -1
  60. package/web/dist/index.html +2 -2
  61. package/web/dist/assets/channel-Bc1egjP3.js +0 -1
  62. package/web/dist/assets/swimlanesDiagram-AYQRV4AK-BkmYK-f1.js +0 -8
@@ -75,13 +75,17 @@ Writing style (applies to every markdown field):
75
75
 
76
76
  Summary shape:
77
77
  - General to specific, and a reader must be able to stop after any section with a correct, just less detailed, picture.
78
+ - One thing comes before all of it. If someone must do something by hand before merging or deploying, or the merge or deploy will break or lose data, the summary OPENS with it. Examples: run a data check, backfill or clean up rows; set a secret or environment variable; deploy another service first; tell users about a breaking change. Write it as a GitHub alert, the very first lines, before any paragraph or heading, at any summary size:
79
+ > [!WARNING]
80
+ > **The action, as an imperative.** One or two sentences: what breaks if it is skipped, and where it stands now ("staging was clean; prod has not been checked yet").
81
+ Use one alert. If there are several such steps, list them as bullets inside it. Risks, follow-ups and anything that merely deserves care are not this; they go under ⚠️. Most PRs have nothing here, so never invent a step to fill it. Once the alert says it, no section repeats it.
78
82
  - Past two paragraphs, break the summary into sections under \`###\` headings. These sections, in this order, each opening with its emoji — drop every one you have nothing real to say under; four sections of substance beat six with filler:
79
83
  - \`### 🎯 \` the problem — the symptom someone hit and what it cost them, in plain words. No identifiers yet; a product manager should follow this section. For a PR that fixes nothing, this is the goal instead.
80
84
  - \`### 🔧 \` the fix — the cause in a sentence, then what the PR does about it. Name things by what they do; identifiers wait for the sections below.
81
85
  - \`### 🧭 \` the impact — first say what merging itself does: it changes what runs, or, for a spec or design document, nothing runs differently and approving it commits to a plan. Then, in two or three sentences with no identifiers: what will be different afterwards, for whom, and what stays the same. When several behaviours change, follow with a short before/after table of what people see, never of code. A reviewer in a hurry stops here.
82
86
  - \`### 🧩 \` how the pieces fit — when the PR adds a flow or changes how parts work together, whether built or planned, even inside one module. Only a small internal change skips it. Zoom in through the C4 levels, each under a bold label: **System** (the people and outside systems around ours, and what passes between them), **Modules** (the deployable parts and modules, and who calls or notifies whom), **Inside a module** (the main components of the module where most of the change lives). Show only the levels that changed, and skip one that would just repeat the level above, even for a new flow: a new route to an existing service is the Modules level alone, and a new flow inside one module is usually Inside a module alone. **System** appears only when people or outside systems change. A spec PR draws the parts the plan names. Each level gets one or two plain sentences and one top-down \`\`\`mermaid flowchart (\`flowchart TD\`) of at most about 12 nodes, with plain-language labels in double quotes and each arrow labelled with what passes along it. When an existing flow changes, show "today" and "after" as two subgraphs. Use flowchart syntax, never Mermaid's C4 syntax.
83
87
  - \`### 🔍 \` details — what a reviewer needs, not everything decided: names, the choice behind the approach, what the PR's own tests pin down, anything counter-intuitive worth knowing.
84
- - \`### ⚠️ \` worth knowing — risk, follow-up, breaking change. Skip it when there is none.
88
+ - \`### ⚠️ \` worth knowing — risk, follow-up, breaking change. A step someone must take before merging or deploying is not here; it is in the alert at the top. Skip this section when there is nothing left to say.
85
89
  - The emoji and the order are fixed. The words after the emoji are yours: write the heading this PR needs ("### 🎯 Searching an order number returned every order"), and fall back to the plain label ("### 🎯 The problem") only when nothing sharper fits.
86
90
  - A small PR gets one or two short paragraphs and NO headings. Headings on a three-line summary are noise.
87
91
  - The summary describes the PR, never your review of it. Verification you performed ("I ran the tests", "checks came back green", "couldn't check X") belongs in the verdict's reasoning and nowhere else.
@@ -274,7 +278,7 @@ Rules:
274
278
  - "line" is a line in the NEW version of the file and must appear in the diff. Use null for a file-level comment.
275
279
  - "severity" is the finding's merge impact — "blocker" (would not approve with this in; the only tier that blocks), "minor" (should fix, author's call), "nit" (taste), null (not a finding: a question, a note). Grade as if the finding is true; hedge in the reply, never in the grade. A verdict revision must still follow from the worst finding left standing.
276
280
  - Your reply is prose to a person, not a changelog. The cockpit already shows what you changed — do not list your own edits back to them.
277
- - A revision keeps the shape the review is written in: a rewritten summary keeps its \`###\` sections (🎯 the problem, 🔧 the fix, 🧭 the impact, 🧩 how the pieces fit, with diagrams for only the levels that changed, 🔍 details a reviewer needs, ⚠️ worth knowing — the ones that earn their place), a rewritten "reasoning" stays one lead sentence plus bullets, and a comment body leads with the finding on its own line and never writes its own grade in — every surface prefixes that from "severity". The division of labor holds too: the summary describes the PR and the verdict's reasoning holds the review's own verification — neither retells the other.
281
+ - A revision keeps the shape the review is written in: a rewritten summary keeps its \`###\` sections (🎯 the problem, 🔧 the fix, 🧭 the impact, 🧩 how the pieces fit, with diagrams for only the levels that changed, 🔍 details a reviewer needs, ⚠️ worth knowing — the ones that earn their place). A step someone must take by hand before merging or deploying always opens the summary as a \`> [!WARNING]\` alert, never as a section further down. A rewritten "reasoning" stays one lead sentence plus bullets, and a comment body leads with the finding on its own line and never writes its own grade in — every surface prefixes that from "severity". The division of labor holds too: the summary describes the PR and the verdict's reasoning holds the review's own verification — neither retells the other.
278
282
 
279
283
  Writing style:
280
284
  - Plain words, short sentences, no jargon. Someone who has NOT read the diff should follow you.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullstackhouse/cerber",
3
- "version": "1.6.4",
3
+ "version": "1.6.5-pr.94.9eb37fa",
4
4
  "description": "AI code-review cockpit: Claude reviews your PRs into local artifacts; nothing reaches GitHub until you say so.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -1 +1 @@
1
- import{g as p,r as u,d as a}from"./chunk-2E7WHVMD-X1BSLNbz.js";import{p as f}from"./chunk-JWPE2WC7-CCsYBl0M.js";import{_ as n,l as o}from"./mermaid.core-wbwCbWuQ.js";import{M as c,b as d}from"./cynefin-EF2NZ3EQ-BG2opkNs.js";import"./index-CcSO4iOX.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},B={parser:R,db:a,renderer:u,styles:p};export{B as diagram};
1
+ import{g as p,r as u,d as a}from"./chunk-2E7WHVMD-CfttgAMX.js";import{p as f}from"./chunk-JWPE2WC7-EaliTm-i.js";import{_ as n,l as o}from"./mermaid.core-C0OE1PLO.js";import{M as c,b as d}from"./cynefin-EF2NZ3EQ-_uBS-emI.js";import"./index-vSZNWvZS.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},B={parser:R,db:a,renderer:u,styles:p};export{B as diagram};
@@ -1 +1 @@
1
- import{a5 as ln,a6 as an,a7 as H,a8 as j,a9 as B,aa as un,ab as g,ac as tn,ad as L,ae as _,af as rn,ag as o,ah as on,ai as sn,aj as fn}from"./mermaid.core-wbwCbWuQ.js";function cn(l){return l.innerRadius}function gn(l){return l.outerRadius}function yn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,E,q,v,A,C,a){var I=E-l,i=q-h,n=C-v,d=a-A,u=d*I-n*i;if(!(u*u<g))return u=(n*(h-A)-d*(l-v))/u,[l+u*I,h+u*i]}function W(l,h,E,q,v,A,C){var a=l-E,I=h-q,i=(C?A:-A)/L(a*a+I*I),n=i*I,d=-i*a,u=l+n,s=h+d,f=E+n,c=q+d,F=(u+f)/2,t=(s+c)/2,m=f-u,y=c-s,R=m*m+y*y,T=v-A,P=u*c-f*s,O=(y<0?-1:1)*L(on(0,T*T*R-P*P)),S=(P*y-m*O)/R,z=(-P*m-y*O)/R,w=(P*y+m*O)/R,p=(-P*m+y*O)/R,x=S-F,e=z-t,r=w-F,G=p-t;return x*x+e*e>r*r+G*G&&(S=w,z=p),{cx:S,cy:z,x01:-n,y01:-d,x11:S*(v/T-1),y11:z*(v/T-1)}}function hn(){var l=cn,h=gn,E=B(0),q=null,v=yn,A=dn,C=mn,a=null,I=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=A.apply(this,arguments)-un,F=rn(c-f),t=c>f;if(a||(a=n=I()),s<u&&(d=s,s=u,u=d),!(s>g))a.moveTo(0,0);else if(F>tn-g)a.moveTo(s*H(f),s*j(f)),a.arc(0,0,s,f,c,!t),u>g&&(a.moveTo(u*H(c),u*j(c)),a.arc(0,0,u,c,f,t));else{var m=f,y=c,R=f,T=c,P=F,O=F,S=C.apply(this,arguments)/2,z=S>g&&(q?+q.apply(this,arguments):L(u*u+s*s)),w=_(rn(s-u)/2,+E.apply(this,arguments)),p=w,x=w,e,r;if(z>g){var G=sn(z/u*j(S)),M=sn(z/s*j(S));(P-=G*2)>g?(G*=t?1:-1,R+=G,T-=G):(P=0,R=T=(f+c)/2),(O-=M*2)>g?(M*=t?1:-1,m+=M,y-=M):(O=0,m=y=(f+c)/2)}var J=s*H(m),K=s*j(m),N=u*H(T),Q=u*j(T);if(w>g){var U=s*H(y),V=s*j(y),X=u*H(R),Y=u*j(R),D;if(F<an)if(D=pn(J,K,X,Y,U,V,N,Q)){var Z=J-D[0],$=K-D[1],b=U-D[0],k=V-D[1],nn=1/j(fn((Z*b+$*k)/(L(Z*Z+$*$)*L(b*b+k*k)))/2),en=L(D[0]*D[0]+D[1]*D[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}O>g?x>g?(e=W(X,Y,J,K,s,x,t),r=W(U,V,N,Q,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(J,K),a.arc(0,0,s,m,y,!t)):a.moveTo(J,K),!(u>g)||!(P>g)?a.lineTo(N,Q):p>g?(e=W(N,Q,U,V,u,-p,t),r=W(J,K,X,Y,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[H(d)*n,j(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:B(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:B(+n),i):h},i.cornerRadius=function(n){return arguments.length?(E=typeof n=="function"?n:B(+n),i):E},i.padRadius=function(n){return arguments.length?(q=n==null?null:typeof n=="function"?n:B(+n),i):q},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:B(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:B(+n),i):A},i.padAngle=function(n){return arguments.length?(C=typeof n=="function"?n:B(+n),i):C},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
1
+ import{a5 as ln,a6 as an,a7 as H,a8 as j,a9 as B,aa as un,ab as g,ac as tn,ad as L,ae as _,af as rn,ag as o,ah as on,ai as sn,aj as fn}from"./mermaid.core-C0OE1PLO.js";function cn(l){return l.innerRadius}function gn(l){return l.outerRadius}function yn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,E,q,v,A,C,a){var I=E-l,i=q-h,n=C-v,d=a-A,u=d*I-n*i;if(!(u*u<g))return u=(n*(h-A)-d*(l-v))/u,[l+u*I,h+u*i]}function W(l,h,E,q,v,A,C){var a=l-E,I=h-q,i=(C?A:-A)/L(a*a+I*I),n=i*I,d=-i*a,u=l+n,s=h+d,f=E+n,c=q+d,F=(u+f)/2,t=(s+c)/2,m=f-u,y=c-s,R=m*m+y*y,T=v-A,P=u*c-f*s,O=(y<0?-1:1)*L(on(0,T*T*R-P*P)),S=(P*y-m*O)/R,z=(-P*m-y*O)/R,w=(P*y+m*O)/R,p=(-P*m+y*O)/R,x=S-F,e=z-t,r=w-F,G=p-t;return x*x+e*e>r*r+G*G&&(S=w,z=p),{cx:S,cy:z,x01:-n,y01:-d,x11:S*(v/T-1),y11:z*(v/T-1)}}function hn(){var l=cn,h=gn,E=B(0),q=null,v=yn,A=dn,C=mn,a=null,I=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=A.apply(this,arguments)-un,F=rn(c-f),t=c>f;if(a||(a=n=I()),s<u&&(d=s,s=u,u=d),!(s>g))a.moveTo(0,0);else if(F>tn-g)a.moveTo(s*H(f),s*j(f)),a.arc(0,0,s,f,c,!t),u>g&&(a.moveTo(u*H(c),u*j(c)),a.arc(0,0,u,c,f,t));else{var m=f,y=c,R=f,T=c,P=F,O=F,S=C.apply(this,arguments)/2,z=S>g&&(q?+q.apply(this,arguments):L(u*u+s*s)),w=_(rn(s-u)/2,+E.apply(this,arguments)),p=w,x=w,e,r;if(z>g){var G=sn(z/u*j(S)),M=sn(z/s*j(S));(P-=G*2)>g?(G*=t?1:-1,R+=G,T-=G):(P=0,R=T=(f+c)/2),(O-=M*2)>g?(M*=t?1:-1,m+=M,y-=M):(O=0,m=y=(f+c)/2)}var J=s*H(m),K=s*j(m),N=u*H(T),Q=u*j(T);if(w>g){var U=s*H(y),V=s*j(y),X=u*H(R),Y=u*j(R),D;if(F<an)if(D=pn(J,K,X,Y,U,V,N,Q)){var Z=J-D[0],$=K-D[1],b=U-D[0],k=V-D[1],nn=1/j(fn((Z*b+$*k)/(L(Z*Z+$*$)*L(b*b+k*k)))/2),en=L(D[0]*D[0]+D[1]*D[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}O>g?x>g?(e=W(X,Y,J,K,s,x,t),r=W(U,V,N,Q,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(J,K),a.arc(0,0,s,m,y,!t)):a.moveTo(J,K),!(u>g)||!(P>g)?a.lineTo(N,Q):p>g?(e=W(N,Q,U,V,u,-p,t),r=W(J,K,X,Y,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[H(d)*n,j(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:B(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:B(+n),i):h},i.cornerRadius=function(n){return arguments.length?(E=typeof n=="function"?n:B(+n),i):E},i.padRadius=function(n){return arguments.length?(q=n==null?null:typeof n=="function"?n:B(+n),i):q},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:B(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:B(+n),i):A},i.padAngle=function(n){return arguments.length?(C=typeof n=="function"?n:B(+n),i):C},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};