@pi-outpost/embed 0.60.1 → 0.62.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/README.md +4 -0
- package/dist/{abnfDiagram-S7VZAUFO-BdOzCXh1.js → abnfDiagram-S7VZAUFO-BvdbTr4n.js} +2 -2
- package/dist/{abnfDiagram-S7VZAUFO-zyFnpqZ0.cjs → abnfDiagram-S7VZAUFO-C14iOswH.cjs} +1 -1
- package/dist/{architectureDiagram-YGSQEFNW-DiYOcBqo.js → architectureDiagram-YGSQEFNW-CPW5HJ_P.js} +20 -20
- package/dist/{architectureDiagram-YGSQEFNW-gEzRb5xY.cjs → architectureDiagram-YGSQEFNW-CfDEcnft.cjs} +3 -3
- package/dist/{blockDiagram-APKKGZFW-CIX-8mpK.js → blockDiagram-APKKGZFW-C4ig73DE.js} +5 -5
- package/dist/{blockDiagram-APKKGZFW-KL3nQT0s.cjs → blockDiagram-APKKGZFW-DLTDUF2F.cjs} +1 -1
- package/dist/{c4Diagram-KJ2TOQU5-BS_M90FN.js → c4Diagram-KJ2TOQU5-BViiS4eZ.js} +4 -4
- package/dist/{c4Diagram-KJ2TOQU5-D-dCJWvI.cjs → c4Diagram-KJ2TOQU5-BZrZGJnq.cjs} +1 -1
- package/dist/chunk-6MUBBAK2-Do5Y2VaL.js +631 -0
- package/dist/chunk-6MUBBAK2-fxSdrddJ.cjs +2 -0
- package/dist/{chunk-AXFCVDMN-DrVQa3gP.js → chunk-AXFCVDMN-BTcT9L5T.js} +196 -196
- package/dist/{chunk-AXFCVDMN-B6dhmE32.cjs → chunk-AXFCVDMN-DSN0_Pz7.cjs} +7 -7
- package/dist/{chunk-DQASFODM-DAaU7yoa.js → chunk-DQASFODM-BjATojAo.js} +30 -30
- package/dist/chunk-DQASFODM-GtaZ5zZF.cjs +10 -0
- package/dist/{chunk-HFQBQIA3-lOxrhpos.cjs → chunk-HFQBQIA3-Bt4zc3D1.cjs} +1 -1
- package/dist/{chunk-HFQBQIA3-DqHSeXIz.js → chunk-HFQBQIA3-l7lNC9FO.js} +1 -1
- package/dist/{chunk-KQLB2F66-C7twW9LJ.js → chunk-KQLB2F66-P-DwEW1U.js} +5 -5
- package/dist/{chunk-KQLB2F66-Ec2IAtUR.cjs → chunk-KQLB2F66-xBZn8cMv.cjs} +1 -1
- package/dist/{chunk-KS47KZWR-OD3AMBe8.js → chunk-KS47KZWR-Ca0eP7K6.js} +1 -1
- package/dist/{chunk-KS47KZWR-C7Yv0kfF.cjs → chunk-KS47KZWR-DLYUwvq1.cjs} +1 -1
- package/dist/{chunk-LEVMRMFU-BFGXlIAt.cjs → chunk-LEVMRMFU-8QpYqPF4.cjs} +1 -1
- package/dist/{chunk-LEVMRMFU-NLMudZfn.js → chunk-LEVMRMFU-DXj_Ks_M.js} +2 -2
- package/dist/{chunk-M57EVK23-BSZ7OEGY.cjs → chunk-M57EVK23-Cvl56jvK.cjs} +1 -1
- package/dist/{chunk-M57EVK23-C8-Jp43x.js → chunk-M57EVK23-D_qW99As.js} +3 -3
- package/dist/{chunk-OY52VR5R-B7NRk2-S.js → chunk-OY52VR5R-DAhIWmSX.js} +1 -1
- package/dist/{chunk-OY52VR5R-CvyV3pJF.cjs → chunk-OY52VR5R-DoFojbud.cjs} +1 -1
- package/dist/{chunk-QB3YPZ4I-DaIXN7QF.cjs → chunk-QB3YPZ4I-CcobelQp.cjs} +1 -1
- package/dist/{chunk-QB3YPZ4I-DPQ26dC9.js → chunk-QB3YPZ4I-DZ4KU0AI.js} +5 -5
- package/dist/{chunk-STOXU5M4-0WKKmqbF.js → chunk-STOXU5M4-CcGFpnKt.js} +7 -7
- package/dist/{chunk-STOXU5M4-CmoaBap6.cjs → chunk-STOXU5M4-_pvE8f8d.cjs} +2 -2
- package/dist/{classDiagram-v2-L25IHNXF-CAts0vNW.js → classDiagram-v2-L25IHNXF-CoK-3RrH.js} +8 -8
- package/dist/{classDiagram-v2-L25IHNXF-CAbdJ2_W.cjs → classDiagram-v2-L25IHNXF-DUh5AzbW.cjs} +1 -1
- package/dist/{conversationExport-DaPkz-Eh.cjs → conversationExport-DXxmgLoF.cjs} +7 -7
- package/dist/{conversationExport-C761zW6H.js → conversationExport-jRLUX0kH.js} +217 -205
- package/dist/{conversationHistory-DhOtJoSk.js → conversationHistory-3pDBlkZZ.js} +103 -11
- package/dist/{conversationHistory-V6AR3Ga4.cjs → conversationHistory-C6PqGsO9.cjs} +5 -5
- package/dist/{cynefinDiagram-L36ESFBY-CrsJmb7x.cjs → cynefinDiagram-L36ESFBY-BLUfdwhj.cjs} +1 -1
- package/dist/{cynefinDiagram-L36ESFBY-ByHpHKCc.js → cynefinDiagram-L36ESFBY-COLv504g.js} +7 -7
- package/dist/{dagre-SPEB5RXH-C01_UMxx.js → dagre-SPEB5RXH-CohPsDHQ.js} +7 -7
- package/dist/{dagre-SPEB5RXH-ExCiSqVu.cjs → dagre-SPEB5RXH-DF8bZfUb.cjs} +1 -1
- package/dist/{diagram-3B7GL73J-CRNoSH2i.cjs → diagram-3B7GL73J-CFwrYkyI.cjs} +1 -1
- package/dist/{diagram-3B7GL73J-D7i6eGGQ.js → diagram-3B7GL73J-w28Iaq_1.js} +8 -8
- package/dist/{diagram-DNEMPZML-CkhkOJo2.cjs → diagram-DNEMPZML-CezYrBHl.cjs} +1 -1
- package/dist/{diagram-DNEMPZML-Di5RqN_h.js → diagram-DNEMPZML-HpZqPF1t.js} +6 -6
- package/dist/{diagram-L3MUGCDN-BtQkAzOD.js → diagram-L3MUGCDN-Bg9oF9vU.js} +7 -7
- package/dist/{diagram-L3MUGCDN-B1vXsDB1.cjs → diagram-L3MUGCDN-FmKU8C82.cjs} +2 -2
- package/dist/{diagram-LA4NIPWU-DST6DvSP.cjs → diagram-LA4NIPWU-B4zPp12a.cjs} +2 -2
- package/dist/{diagram-LA4NIPWU-Badv-tyU.js → diagram-LA4NIPWU-D5S10Z1M.js} +16 -16
- package/dist/{diagram-MHCOC4E2-DmA9ezb9.js → diagram-MHCOC4E2-BMg2Maje.js} +5 -5
- package/dist/{diagram-MHCOC4E2-BafwTqOD.cjs → diagram-MHCOC4E2-DcF56W3-.cjs} +2 -2
- package/dist/{diagram-XPFHEONP-CZHt29x-.js → diagram-XPFHEONP-COT08Qlw.js} +9 -9
- package/dist/{diagram-XPFHEONP-DCm8Rjp8.cjs → diagram-XPFHEONP-GLEfHAAK.cjs} +5 -5
- package/dist/dist-BDWJ0PuE.js +1007 -0
- package/dist/dist-CeGGIzgU.cjs +1 -0
- package/dist/{docxExport-BlPADe6b.cjs → docxExport-D-T3fTj7.cjs} +2 -2
- package/dist/{docxExport-Bwi2TlqP.js → docxExport-diU6sv-G.js} +3 -3
- package/dist/download-C9gupL_X.js +45 -0
- package/dist/download-CVl_k6EM.cjs +1 -0
- package/dist/{ebnfDiagram-UZSYDL2S-DVGQga8g.js → ebnfDiagram-UZSYDL2S-Cu5-1sQW.js} +2 -2
- package/dist/{ebnfDiagram-UZSYDL2S-fO0plY-B.cjs → ebnfDiagram-UZSYDL2S-ftYbml6-.cjs} +1 -1
- package/dist/{elk-XV6XMXQE-CioXUob9.cjs → elk-XV6XMXQE-32eNFZGY.cjs} +2 -2
- package/dist/{elk-XV6XMXQE-BkH0WNCd.js → elk-XV6XMXQE-BoimJY8z.js} +9 -8
- package/dist/{erDiagram-EYBAPDEH-CUgDxVam.cjs → erDiagram-EYBAPDEH-BCiRLs1y.cjs} +1 -1
- package/dist/{erDiagram-EYBAPDEH-Byy0RKKe.js → erDiagram-EYBAPDEH-BxyIjrYb.js} +7 -7
- package/dist/flowDiagram-MALGAFMO-BwqIeP0j.js +15 -0
- package/dist/flowDiagram-MALGAFMO-DkxE7jK-.cjs +1 -0
- package/dist/ganttDiagram-23REXITY-CSCN0suz.cjs +292 -0
- package/dist/{ganttDiagram-23REXITY-DAs5LGLL.js → ganttDiagram-23REXITY-uW1Fo-_u.js} +467 -489
- package/dist/{gitGraphDiagram-STJD7YCW-B3zcpUUP.cjs → gitGraphDiagram-STJD7YCW-DsKvmxrY.cjs} +3 -3
- package/dist/{gitGraphDiagram-STJD7YCW-BVa0DHTU.js → gitGraphDiagram-STJD7YCW-j7-SImA3.js} +57 -57
- package/dist/{infoDiagram-KBXO4MBG-DRQkxKbg.cjs → infoDiagram-KBXO4MBG-CYMQGNUj.cjs} +1 -1
- package/dist/{infoDiagram-KBXO4MBG-BW7IcSQr.js → infoDiagram-KBXO4MBG-DE6zWbEk.js} +1 -1
- package/dist/init-DP9k4ltr.js +151 -0
- package/dist/init-UgQs1rm8.cjs +1 -0
- package/dist/{ishikawaDiagram-M35NCXHK-DBokYlS8.cjs → ishikawaDiagram-M35NCXHK-DbHbBLzt.cjs} +1 -1
- package/dist/{ishikawaDiagram-M35NCXHK-BiLoyI1l.js → ishikawaDiagram-M35NCXHK-zvWEWMyM.js} +2 -2
- package/dist/{journeyDiagram-OPLOXDXO-DsyubZVY.js → journeyDiagram-OPLOXDXO-Ckjy-e7g.js} +2 -2
- package/dist/{journeyDiagram-OPLOXDXO-CgabMAC2.cjs → journeyDiagram-OPLOXDXO-Df3Isppt.cjs} +2 -2
- package/dist/{kanban-definition-BZKZHSQY-DU8sOWQd.js → kanban-definition-BZKZHSQY-BmePUr-s.js} +6 -6
- package/dist/{kanban-definition-BZKZHSQY-CLi3J9cI.cjs → kanban-definition-BZKZHSQY-C0592yvk.cjs} +1 -1
- package/dist/linear-DgbjLlQ3.cjs +1 -0
- package/dist/linear-uoBSwo4a.js +198 -0
- package/dist/{loadReferencedImage-D47xCpa7.cjs → loadReferencedImage-N3Qidv7i.cjs} +1 -1
- package/dist/{loadReferencedImage-VNYxXIzB.js → loadReferencedImage-u2es0OEX.js} +1 -1
- package/dist/{mermaid.core-DPCy8dJO.js → mermaid.core-BlYpILf7.js} +65 -65
- package/dist/{mermaid.core-BL4WDqAH.cjs → mermaid.core-uCBIzEBU.cjs} +7 -7
- package/dist/{mermaidToImage-CViP9wx2.js → mermaidToImage-CBa4nUvP.js} +1 -1
- package/dist/{mermaidToImage-B7I6iJ9s.cjs → mermaidToImage-Gx6dNGEn.cjs} +1 -1
- package/dist/{mindmap-definition-I2QAS2VK-GT8_r7or.cjs → mindmap-definition-I2QAS2VK-CRXX7-9C.cjs} +1 -1
- package/dist/{mindmap-definition-I2QAS2VK-C2KpoDqG.js → mindmap-definition-I2QAS2VK-DgJirDRS.js} +7 -7
- package/dist/ordinal-CeUiYJ7_.cjs +1 -0
- package/dist/ordinal-DFWF7eBM.js +28 -0
- package/dist/{pegDiagram-FD4XPPHP-D0OZoETj.cjs → pegDiagram-FD4XPPHP-DFmA0OWh.cjs} +1 -1
- package/dist/{pegDiagram-FD4XPPHP-CSA4sB83.js → pegDiagram-FD4XPPHP-DpYyVjjQ.js} +2 -2
- package/dist/pi-outpost-embed.cjs +44 -44
- package/dist/pi-outpost-embed.js +5049 -4128
- package/dist/pieDiagram-J4AKIIQI-Cz-UbIk9.cjs +39 -0
- package/dist/pieDiagram-J4AKIIQI-DuqHiYUq.js +155 -0
- package/dist/{quadrantDiagram-XTYBLID2-BjaZuA3m.js → quadrantDiagram-XTYBLID2-B94UoyXc.js} +1 -1
- package/dist/{quadrantDiagram-XTYBLID2-CfdtTmYm.cjs → quadrantDiagram-XTYBLID2-BCN9RHwV.cjs} +1 -1
- package/dist/{railroadDiagram-MRQ6NCDL-DDOA_8gY.cjs → railroadDiagram-MRQ6NCDL-BlrwhMUX.cjs} +1 -1
- package/dist/{railroadDiagram-MRQ6NCDL-DgAKQKiD.js → railroadDiagram-MRQ6NCDL-Br7PQgSm.js} +2 -2
- package/dist/{requirementDiagram-Y7LWUY3S-Bhlk2ueA.js → requirementDiagram-Y7LWUY3S-CT4WIq10.js} +7 -7
- package/dist/{requirementDiagram-Y7LWUY3S-nSr_pknl.cjs → requirementDiagram-Y7LWUY3S-CzR9zsNk.cjs} +1 -1
- package/dist/{sankeyDiagram-WGJFYUXA-x6J896b3.cjs → sankeyDiagram-WGJFYUXA-D8LLSvqn.cjs} +1 -1
- package/dist/{sankeyDiagram-WGJFYUXA-DUYWd4HF.js → sankeyDiagram-WGJFYUXA-DiEth1kw.js} +1 -1
- package/dist/{sequenceDiagram-5NDRBG5M-BFgcr8MT.cjs → sequenceDiagram-5NDRBG5M-BATWsrlf.cjs} +1 -1
- package/dist/{sequenceDiagram-5NDRBG5M-D1YS8Amk.js → sequenceDiagram-5NDRBG5M-DJ1ruzP_.js} +4 -4
- package/dist/{stateDiagram-v2-FJ4FJNEA-6j2vDdvl.js → stateDiagram-v2-FJ4FJNEA-CtEFZimW.js} +8 -8
- package/dist/{stateDiagram-v2-FJ4FJNEA-DOTmLAY2.cjs → stateDiagram-v2-FJ4FJNEA-DS0IS9Xt.cjs} +1 -1
- package/dist/{swimlanes-UMQ2AFYF-CNb1NF60.js → swimlanes-UMQ2AFYF-B9sFO11Y.js} +8 -8
- package/dist/{swimlanes-UMQ2AFYF-BQLQzNLz.cjs → swimlanes-UMQ2AFYF-CNdzpvk7.cjs} +1 -1
- package/dist/{swimlanesDiagram-OMPLPG4O-BOl138lS.js → swimlanesDiagram-OMPLPG4O-CEjeo6Pa.js} +9 -9
- package/dist/swimlanesDiagram-OMPLPG4O-F8fhW_eR.cjs +8 -0
- package/dist/{timeline-definition-SEUHKTQE-B_909Amn.js → timeline-definition-SEUHKTQE-BiPtPmVz.js} +3 -3
- package/dist/{timeline-definition-SEUHKTQE-Du5-RSsU.cjs → timeline-definition-SEUHKTQE-CHvbMdoq.cjs} +2 -2
- package/dist/{usecaseDiagram-AFA6YXN4-BUs_YsqB.cjs → usecaseDiagram-AFA6YXN4-B_KoFCdb.cjs} +1 -1
- package/dist/{usecaseDiagram-AFA6YXN4-CiVGRP5X.js → usecaseDiagram-AFA6YXN4-VzWSjfFU.js} +7 -7
- package/dist/{vennDiagram-NNMJR3RB-CKxaec4G.cjs → vennDiagram-NNMJR3RB-BRWZo29n.cjs} +1 -1
- package/dist/{vennDiagram-NNMJR3RB-l3A_FZxZ.js → vennDiagram-NNMJR3RB-D5u2Njla.js} +2 -2
- package/dist/{wardleyDiagram-S7YFUSEH-Ctqri3T4.cjs → wardleyDiagram-S7YFUSEH-CSq-zmI3.cjs} +2 -2
- package/dist/{wardleyDiagram-S7YFUSEH-BMQf5dl9.js → wardleyDiagram-S7YFUSEH-VNmN8A6j.js} +5 -5
- package/dist/{xychartDiagram-GGNKY7IX-CuFU4ynf.js → xychartDiagram-GGNKY7IX-D-eT4Gjt.js} +18 -25
- package/dist/{xychartDiagram-GGNKY7IX-BUma86Wh.cjs → xychartDiagram-GGNKY7IX-D4bccPOk.cjs} +3 -3
- package/package.json +1 -1
- package/dist/arc-37kcMiGl.js +0 -82
- package/dist/arc-C7P0rHQr.cjs +0 -1
- package/dist/array-CApNbSU9.js +0 -6
- package/dist/array-DZSRzHA_.cjs +0 -1
- package/dist/chunk-6MUBBAK2-BTabKnTR.cjs +0 -2
- package/dist/chunk-6MUBBAK2-DlUTxzYh.js +0 -1334
- package/dist/chunk-DQASFODM-BBkQ8gE7.cjs +0 -10
- package/dist/dist-BB5r6V4R.cjs +0 -1
- package/dist/dist-CZhfI1u7.js +0 -59
- package/dist/download-DVJ5QY85.js +0 -7
- package/dist/download-U7JEZ6c9.cjs +0 -1
- package/dist/flowDiagram-MALGAFMO-D2e4rl0I.js +0 -15
- package/dist/flowDiagram-MALGAFMO-ZfeGO5tQ.cjs +0 -1
- package/dist/ganttDiagram-23REXITY-D82ogzPM.cjs +0 -292
- package/dist/init-BJdqMO10.cjs +0 -1
- package/dist/init-CuXVI8k2.js +0 -13
- package/dist/line-Bf0B129l.cjs +0 -1
- package/dist/line-DRq00lCg.js +0 -34
- package/dist/linear-Bh2vuvAF.cjs +0 -1
- package/dist/linear-CxE0kir0.js +0 -287
- package/dist/ordinal-Bm_chml2.cjs +0 -1
- package/dist/ordinal-D3SPD7Kk.js +0 -65
- package/dist/path-DIS6ck99.cjs +0 -1
- package/dist/path-PGqhG0Rz.js +0 -84
- package/dist/pieDiagram-J4AKIIQI-CNLlH6kK.js +0 -203
- package/dist/pieDiagram-J4AKIIQI-O870G6iX.cjs +0 -39
- package/dist/swimlanesDiagram-OMPLPG4O-BNDsO6gw.cjs +0 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime-DbbDpzbe.cjs");var t=Math.PI,n=2*t,r=1e-6,i=n-r;function a(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function o(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return a;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}function s(e,t,n,r){return e===n&&t===r}function c(e){let t=Math.floor(e);if(!(t<=15))return s;let n=10**t,r=function(e){return Math.round(e*n)};return function(e,t,n,i){return r(e)===r(n)&&r(t)===r(i)}}var l=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?a:o(e),this._equal=e==null?s:c(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,n,i,a,o){if(e=+e,n=+n,i=+i,a=+a,o=+o,o<0)throw Error(`negative radius: ${o}`);let s=this._x1,c=this._y1,l=i-e,u=a-n,d=s-e,f=c-n,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(p>r){if(!(Math.abs(f*l-u*d)>r)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let m=i-s,h=a-c,g=l*l+u*u,_=m*m+h*h,v=Math.sqrt(g),y=Math.sqrt(p),b=o*Math.tan((t-Math.acos((g+p-_)/(2*v*y)))/2),x=b/y,S=b/v;Math.abs(x-1)>r&&this._append`L${e+x*d},${n+x*f}`,this._append`A${o},${o},0,0,${+(f*m>d*h)},${this._x1=e+S*l},${this._y1=n+S*u}`}}}arc(e,a,o,s,c,l){if(e=+e,a=+a,o=+o,l=!!l,o<0)throw Error(`negative radius: ${o}`);let u=o*Math.cos(s),d=o*Math.sin(s),f=e+u,p=a+d,m=1^l,h=l?s-c:c-s;if(this._x1===null?this._append`M${f},${p}`:(Math.abs(this._x1-f)>r||Math.abs(this._y1-p)>r)&&this._append`L${f},${p}`,o){if(h<0&&(h=h%n+n),h>i)this._append`A${o},${o},0,1,${m},${e-u},${a-d}A${o},${o},0,1,${m},${this._x1=f},${this._y1=p}`;else if(h>r){let n=e+o*Math.cos(c),r=a+o*Math.sin(c);if(h>=t&&this._equal(f,p,n,r)){h/=2;let n=s+h;this._append`A${o},${o},0,${+(h>=t)},${m},${e+o*Math.cos(n)},${a+o*Math.sin(n)}`}this._append`A${o},${o},0,${+(h>=t)},${m},${this._x1=n},${this._y1=r}`}}}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};l.prototype;function u(e){return function(){return e}}var d=Math.abs,f=Math.atan2,p=Math.cos,m=Math.max,h=Math.min,g=Math.sin,_=Math.sqrt,v=1e-12,y=Math.PI,b=y/2,x=2*y;function S(e){return e>1?0:e<-1?y:Math.acos(e)}function C(e){return e>=1?b:e<=-1?-b:Math.asin(e)}function w(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new l(t)}function T(e){return e.innerRadius}function E(e){return e.outerRadius}function D(e){return e.startAngle}function O(e){return e.endAngle}function k(e){return e&&e.padAngle}function ee(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<v))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function A(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/_(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,h=n+u,g=r+d,v=(f+h)/2,y=(p+g)/2,b=h-f,x=g-p,S=b*b+x*x,C=i-a,w=f*g-h*p,T=(x<0?-1:1)*_(m(0,C*C*S-w*w)),E=(w*x-b*T)/S,D=(-w*b-x*T)/S,O=(w*x+b*T)/S,k=(-w*b+x*T)/S,ee=E-v,A=D-y,j=O-v,M=k-y;return ee*ee+A*A>j*j+M*M&&(E=O,D=k),{cx:E,cy:D,x01:-u,y01:-d,x11:E*(i/C-1),y11:D*(i/C-1)}}function j(){var e=T,t=E,n=u(0),r=null,i=D,a=O,o=k,s=null,c=w(l);function l(){var l,u,m=+e.apply(this,arguments),w=+t.apply(this,arguments),T=i.apply(this,arguments)-b,E=a.apply(this,arguments)-b,D=d(E-T),O=E>T;if(s||=l=c(),w<m&&(u=w,w=m,m=u),!(w>v))s.moveTo(0,0);else if(D>x-v)s.moveTo(w*p(T),w*g(T)),s.arc(0,0,w,T,E,!O),m>v&&(s.moveTo(m*p(E),m*g(E)),s.arc(0,0,m,E,T,O));else{var k=T,j=E,M=T,N=E,P=D,te=D,ne=o.apply(this,arguments)/2,F=ne>v&&(r?+r.apply(this,arguments):_(m*m+w*w)),I=h(d(w-m)/2,+n.apply(this,arguments)),L=I,R=I,z,B;if(F>v){var V=C(F/m*g(ne)),H=C(F/w*g(ne));(P-=V*2)>v?(V*=O?1:-1,M+=V,N-=V):(P=0,M=N=(T+E)/2),(te-=H*2)>v?(H*=O?1:-1,k+=H,j-=H):(te=0,k=j=(T+E)/2)}var U=w*p(k),W=w*g(k),G=m*p(N),K=m*g(N);if(I>v){var q=w*p(j),J=w*g(j),Y=m*p(M),re=m*g(M),X;if(D<y){if(X=ee(U,W,Y,re,q,J,G,K)){var ie=U-X[0],Z=W-X[1],ae=q-X[0],Q=J-X[1],$=1/g(S((ie*ae+Z*Q)/(_(ie*ie+Z*Z)*_(ae*ae+Q*Q)))/2),oe=_(X[0]*X[0]+X[1]*X[1]);L=h(I,(m-oe)/($-1)),R=h(I,(w-oe)/($+1))}else L=R=0}}te>v?R>v?(z=A(Y,re,U,W,w,R,O),B=A(q,J,G,K,w,R,O),s.moveTo(z.cx+z.x01,z.cy+z.y01),R<I?s.arc(z.cx,z.cy,R,f(z.y01,z.x01),f(B.y01,B.x01),!O):(s.arc(z.cx,z.cy,R,f(z.y01,z.x01),f(z.y11,z.x11),!O),s.arc(0,0,w,f(z.cy+z.y11,z.cx+z.x11),f(B.cy+B.y11,B.cx+B.x11),!O),s.arc(B.cx,B.cy,R,f(B.y11,B.x11),f(B.y01,B.x01),!O))):(s.moveTo(U,W),s.arc(0,0,w,k,j,!O)):s.moveTo(U,W),!(m>v)||!(P>v)?s.lineTo(G,K):L>v?(z=A(G,K,q,J,m,-L,O),B=A(U,W,Y,re,m,-L,O),s.lineTo(z.cx+z.x01,z.cy+z.y01),L<I?s.arc(z.cx,z.cy,L,f(z.y01,z.x01),f(B.y01,B.x01),!O):(s.arc(z.cx,z.cy,L,f(z.y01,z.x01),f(z.y11,z.x11),!O),s.arc(0,0,m,f(z.cy+z.y11,z.cx+z.x11),f(B.cy+B.y11,B.cx+B.x11),O),s.arc(B.cx,B.cy,L,f(B.y11,B.x11),f(B.y01,B.x01),!O))):s.arc(0,0,m,N,M,O)}if(s.closePath(),l)return s=null,l+``||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-y/2;return[p(r)*n,g(r)*n]},l.innerRadius=function(t){return arguments.length?(e=typeof t==`function`?t:u(+t),l):e},l.outerRadius=function(e){return arguments.length?(t=typeof e==`function`?e:u(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n=typeof e==`function`?e:u(+e),l):n},l.padRadius=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:u(+e),l):r},l.startAngle=function(e){return arguments.length?(i=typeof e==`function`?e:u(+e),l):i},l.endAngle=function(e){return arguments.length?(a=typeof e==`function`?e:u(+e),l):a},l.padAngle=function(e){return arguments.length?(o=typeof e==`function`?e:u(+e),l):o},l.context=function(e){return arguments.length?(s=e??null,l):s},l}Array.prototype.slice;function M(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function N(e){this._context=e}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function P(e){return new N(e)}function te(e){return e[0]}function ne(e){return e[1]}function F(e,t){var n=u(!0),r=null,i=P,a=null,o=w(s);e=typeof e==`function`?e:e===void 0?te:u(e),t=typeof t==`function`?t:t===void 0?ne:u(t);function s(s){var c,l=(s=M(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:u(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:u(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:u(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function I(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function L(e){return e}function R(){var e=L,t=I,n=null,r=u(0),i=u(x),a=u(0);function o(o){var s,c=(o=M(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),h=Math.min(x,Math.max(-x,i.apply(this,arguments)-m)),g,_=Math.min(Math.abs(h)/c,a.apply(this,arguments)),v=_*(h<0?-1:1),y;for(s=0;s<c;++s)(y=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=y);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(h-c*v)/d:0;s<c;++s,m=g)l=f[s],y=p[l],g=m+(y>0?y*u:0)+v,p[l]={data:o[l],index:s,value:y,startAngle:m,endAngle:g,padAngle:_};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:u(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:u(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:u(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:u(+e),o):a},o}B(P);function z(e){this._curve=e}z.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function B(e){function t(t){return new z(e(t))}return t._curve=e,t}var V=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function H(e){return new V(e,!0)}function U(e){return new V(e,!1)}_(3),_(1/3)*2;var W=g(y/10)/g(7*y/10);g(x/10)*W,-p(x/10)*W,_(3),_(3),_(3)/2,(1/_(12)/2+1)*3;function G(){}function K(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function q(e){this._context=e}q.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:K(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:K(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function J(e){return new q(e)}function Y(e){this._context=e}Y.prototype={areaStart:G,areaEnd:G,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:K(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function re(e){return new Y(e)}function X(e){this._context=e}X.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:K(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ie(e){return new X(e)}function Z(e,t){this._basis=new q(e),this._beta=t}Z.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var ae=(function e(t){function n(e){return t===1?new q(e):new Z(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function Q(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function $(e,t){this._context=e,this._k=(1-t)/6}$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Q(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Q(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var oe=(function e(t){function n(e){return new $(e,t)}return n.tension=function(t){return e(+t)},n})(0);function se(e,t){this._context=e,this._k=(1-t)/6}se.prototype={areaStart:G,areaEnd:G,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Q(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ce=(function e(t){function n(e){return new se(e,t)}return n.tension=function(t){return e(+t)},n})(0);function le(e,t){this._context=e,this._k=(1-t)/6}le.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Q(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ue=(function e(t){function n(e){return new le(e,t)}return n.tension=function(t){return e(+t)},n})(0);function de(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>v){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>v){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function fe(e,t){this._context=e,this._alpha=t}fe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:de(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var pe=(function e(t){function n(e){return t?new fe(e,t):new $(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function me(e,t){this._context=e,this._alpha=t}me.prototype={areaStart:G,areaEnd:G,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:de(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var he=(function e(t){function n(e){return t?new me(e,t):new se(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ge(e,t){this._context=e,this._alpha=t}ge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:de(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var _e=(function e(t){function n(e){return t?new ge(e,t):new le(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ve(e){this._context=e}ve.prototype={areaStart:G,areaEnd:G,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ye(e){return new ve(e)}function be(e){return e<0?-1:1}function xe(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(be(a)+be(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Se(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ce(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function we(e){this._context=e}we.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ce(this,this._t0,Se(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ce(this,Se(this,n=xe(this,e,t)),n);break;default:Ce(this,this._t0,n=xe(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Te(e){this._context=new Ee(e)}(Te.prototype=Object.create(we.prototype)).point=function(e,t){we.prototype.point.call(this,t,e)};function Ee(e){this._context=e}Ee.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function De(e){return new we(e)}function Oe(e){return new Te(e)}function ke(e){this._context=e}ke.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Ae(e),i=Ae(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Ae(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function je(e){return new ke(e)}function Me(e,t){this._context=e,this._t=t}Me.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function Ne(e){return new Me(e,.5)}function Pe(e){return new Me(e,0)}function Fe(e){return new Me(e,1)}var Ie=e.t((e=>{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`})),Le=e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=o;var t=Ie();function n(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}function r(e){return e.replace(t.ctrlCharactersRegex,``).replace(t.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function i(e){return URL.canParse(e)}function a(e){try{return decodeURIComponent(e)}catch{return e}}function o(e){if(!e)return t.BLANK_URL;var o,s=a(e.trim());do s=r(s).replace(t.htmlCtrlEntityRegex,``).replace(t.ctrlCharactersRegex,``).replace(t.whitespaceEscapeCharsRegex,``).trim(),s=a(s),o=s.match(t.ctrlCharactersRegex)||s.match(t.htmlEntitiesRegex)||s.match(t.htmlCtrlEntityRegex)||s.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var c=s;if(!c)return t.BLANK_URL;if(n(c))return c;var l=c.trimStart(),u=l.match(t.urlSchemeRegex);if(!u)return c;var d=u[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(d))return t.BLANK_URL;var f=l.replace(/\\/g,`/`);if(d===`mailto:`||d.includes(`://`))return f;if(d===`http:`||d===`https:`){if(!i(f))return t.BLANK_URL;var p=new URL(f);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return f}}));Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return ye}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return pe}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return _e}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return he}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return Oe}});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const e=require("./download-
|
|
1
|
+
const e=require("./download-CVl_k6EM.cjs"),t=require("./mermaidToImage-Gx6dNGEn.cjs"),n=require("./loadReferencedImage-N3Qidv7i.cjs");async function r(e,r){let i=r?.path??``,a=r?.serverUrl??``,o=r?.token??null,s=r?.workspace;return t.d(e,{imageKey:e=>n.n(i,e,a,o,s),loadImage:e=>n.t(i,e,a,o,s),renderDiagram:t.a})}var i=`Consolas, Courier New, monospace`;function a(e){return e.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\n$/,``).split(`
|
|
3
|
-
`).map(e=>new t.m({children:[new t.h({text:t.f(e===``?` `:e),font:i})],spacing:{before:0,after:0}}))}function o(e){let t=e.split(/[/\\]/).pop()??`document`,n=t.lastIndexOf(`.`);return`${n>0?t.slice(0,n):t}.docx`}function s(e){return/\.(md|markdown)$/i.test(e)}async function c(e,n,r){return t.p.toBlob(t.c(await l(e,n,r)))}async function l(e,t,n){return s(t)?r(e,{...n,path:t}):a(e)}async function u(t,n,r){e.
|
|
3
|
+
`).map(e=>new t.m({children:[new t.h({text:t.f(e===``?` `:e),font:i})],spacing:{before:0,after:0}}))}function o(e){let t=e.split(/[/\\]/).pop()??`document`,n=t.lastIndexOf(`.`);return`${n>0?t.slice(0,n):t}.docx`}function s(e){return/\.(md|markdown)$/i.test(e)}async function c(e,n,r){return t.p.toBlob(t.c(await l(e,n,r)))}async function l(e,t,n){return s(t)?r(e,{...n,path:t}):a(e)}async function u(t,n,r){e.n(await c(t,n,r),o(n))}var d=`application/vnd.openxmlformats-officedocument.wordprocessingml.document`;async function f(e,t,n){let r=await c(e,t,n),i={"Content-Type":d};n?.token&&(i.Authorization=`Bearer ${n.token}`);let a=await fetch(`${n?.serverUrl??``}/files/docx-template`,{method:`POST`,headers:i,body:r});if(!a.ok){let e=await a.json().catch(()=>null);throw Error(e?.message??`the server answered ${a.status}`)}return a.blob()}async function p(t,n,r){e.n(await f(t,n,r),o(n))}exports.downloadDocx=u,exports.downloadDocxInTemplate=p;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as t, c as n, d as r, f as i, h as a, m as o, p as s } from "./mermaidToImage-
|
|
3
|
-
import { n as c, t as l } from "./loadReferencedImage-
|
|
1
|
+
import { n as e } from "./download-C9gupL_X.js";
|
|
2
|
+
import { a as t, c as n, d as r, f as i, h as a, m as o, p as s } from "./mermaidToImage-CBa4nUvP.js";
|
|
3
|
+
import { n as c, t as l } from "./loadReferencedImage-u2es0OEX.js";
|
|
4
4
|
//#region ../ui/src/export/markdownToDocx.ts
|
|
5
5
|
async function u(e, n) {
|
|
6
6
|
let i = n?.path ?? "", a = n?.serverUrl ?? "", o = n?.token ?? null, s = n?.workspace;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region ../ui/src/util/download.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = URL.createObjectURL(e), r = document.createElement("a");
|
|
4
|
+
r.href = n, r.download = t, r.click(), URL.revokeObjectURL(n);
|
|
5
|
+
}
|
|
6
|
+
function t(e, t) {
|
|
7
|
+
let n = t.map((e) => `path=${encodeURIComponent(e)}`);
|
|
8
|
+
return e.token && n.push(`token=${encodeURIComponent(e.token)}`), e.workspace !== void 0 && n.push(`workspace=${encodeURIComponent(e.workspace)}`), `${e.serverUrl}/files/download?${n.join("&")}`;
|
|
9
|
+
}
|
|
10
|
+
var n = class extends Error {};
|
|
11
|
+
function r(e) {
|
|
12
|
+
if (!e) return null;
|
|
13
|
+
let t = /filename\*=UTF-8''([^;]+)/i.exec(e);
|
|
14
|
+
if (t) try {
|
|
15
|
+
return decodeURIComponent(t[1].trim());
|
|
16
|
+
} catch {}
|
|
17
|
+
let n = /filename="([^"]*)"/i.exec(e);
|
|
18
|
+
return n ? n[1] : null;
|
|
19
|
+
}
|
|
20
|
+
var i = () => ({
|
|
21
|
+
fetch: (...e) => fetch(...e),
|
|
22
|
+
document,
|
|
23
|
+
save: e
|
|
24
|
+
});
|
|
25
|
+
async function a(e, a, o, s = i()) {
|
|
26
|
+
if (a.length === 0) return { skipped: 0 };
|
|
27
|
+
let c = t(e, a);
|
|
28
|
+
if (o.singleFile && a.length === 1) {
|
|
29
|
+
let e = s.document.createElement("a");
|
|
30
|
+
return e.href = c, e.download = a[0].split("/").pop() ?? "", e.rel = "noopener", e.click(), { skipped: 0 };
|
|
31
|
+
}
|
|
32
|
+
let l = await s.fetch(c);
|
|
33
|
+
if (!l.ok) {
|
|
34
|
+
let e = `The download failed (${l.status})`;
|
|
35
|
+
try {
|
|
36
|
+
let t = await l.json();
|
|
37
|
+
typeof t.message == "string" ? e = t.message : typeof t.error == "string" && (e = `The download failed: ${t.error}`);
|
|
38
|
+
} catch {}
|
|
39
|
+
throw new n(e);
|
|
40
|
+
}
|
|
41
|
+
let u = Number(l.headers.get("X-Pi-Outpost-Skipped") ?? "0") || 0, d = r(l.headers.get("Content-Disposition")) ?? "files.zip";
|
|
42
|
+
return s.save(await l.blob(), d), { skipped: u };
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { e as n, a as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.click(),URL.revokeObjectURL(n)}function t(e,t){let n=t.map(e=>`path=${encodeURIComponent(e)}`);return e.token&&n.push(`token=${encodeURIComponent(e.token)}`),e.workspace!==void 0&&n.push(`workspace=${encodeURIComponent(e.workspace)}`),`${e.serverUrl}/files/download?${n.join(`&`)}`}var n=class extends Error{};function r(e){if(!e)return null;let t=/filename\*=UTF-8''([^;]+)/i.exec(e);if(t)try{return decodeURIComponent(t[1].trim())}catch{}let n=/filename="([^"]*)"/i.exec(e);return n?n[1]:null}var i=()=>({fetch:(...e)=>fetch(...e),document,save:e});async function a(e,a,o,s=i()){if(a.length===0)return{skipped:0};let c=t(e,a);if(o.singleFile&&a.length===1){let e=s.document.createElement(`a`);return e.href=c,e.download=a[0].split(`/`).pop()??``,e.rel=`noopener`,e.click(),{skipped:0}}let l=await s.fetch(c);if(!l.ok){let e=`The download failed (${l.status})`;try{let t=await l.json();typeof t.message==`string`?e=t.message:typeof t.error==`string`&&(e=`The download failed: ${t.error}`)}catch{}throw new n(e)}let u=Number(l.headers.get(`X-Pi-Outpost-Skipped`)??`0`)||0,d=r(l.headers.get(`Content-Disposition`))??`files.zip`;return s.save(await l.blob(),d),{skipped:u}}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
|
|
@@ -2,9 +2,9 @@ import { f as e, t } from "./mermaid-parser.core-IoY9gmm6.js";
|
|
|
2
2
|
import { n } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
3
3
|
import { m as r } from "./src-65Lfw03T.js";
|
|
4
4
|
import "./chunk-BG4553SI-j_gQs8M_.js";
|
|
5
|
-
import { n as i, r as a, t as o } from "./chunk-OY52VR5R-
|
|
5
|
+
import { n as i, r as a, t as o } from "./chunk-OY52VR5R-DAhIWmSX.js";
|
|
6
6
|
import { t as s } from "./chunk-JWPE2WC7-B_J6qwQL.js";
|
|
7
|
-
import "./mermaid.core-
|
|
7
|
+
import "./mermaid.core-BlYpILf7.js";
|
|
8
8
|
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/ebnfDiagram-UZSYDL2S.mjs
|
|
9
9
|
var c = e().RailroadEbnf.parser.LangiumParser, l = /* @__PURE__ */ n((e) => {
|
|
10
10
|
let t = e.alternatives.map(u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./mermaid-parser.core-DKJw9lm9.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-BN1VgXwj.cjs");require("./chunk-BG4553SI-DFPUniBw.cjs");const r=require("./chunk-OY52VR5R-
|
|
1
|
+
const e=require("./mermaid-parser.core-DKJw9lm9.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-BN1VgXwj.cjs");require("./chunk-BG4553SI-DFPUniBw.cjs");const r=require("./chunk-OY52VR5R-DoFojbud.cjs"),i=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs");require("./mermaid.core-uCBIzEBU.cjs");var a=e.f().RailroadEbnf.parser.LangiumParser,o=t.n(e=>{let t=e.alternatives.map(s);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformChoice`),s=t.n(e=>{let t=e.elements.map(u);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),c=t.n(e=>{switch(e.$type){case`EbnfTerminal`:return{type:`terminal`,value:e.value};case`EbnfNonTerminal`:return{type:`nonterminal`,name:e.name};case`EbnfSpecial`:return{type:`special`,text:e.text};case`EbnfGroup`:return o(e.element);case`EbnfOptional`:return{type:`optional`,element:o(e.element)};case`EbnfRepetition`:return{type:`repetition`,element:o(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},`transformPrimary`),l=t.n((e,t)=>{switch(t.$type){case`EbnfOptionalPostfix`:return{type:`optional`,element:e};case`EbnfZeroOrMorePostfix`:return{type:`repetition`,element:e,min:0,max:1/0};case`EbnfOneOrMorePostfix`:return{type:`repetition`,element:e,min:1,max:1/0};case`EbnfExceptionPostfix`:return{type:`sequence`,elements:[e,{type:`terminal`,value:`-`},c(t.except)]};default:throw Error(`Unsupported EBNF postfix node: ${t.$type}`)}},`transformPostfix`),u=t.n(e=>e.postfixes.reduce((e,t)=>l(e,t),c(e.base)),`transformTerm`),d=t.n(e=>({name:e.name,definition:o(e.definition)}),`transformRule`),f=t.n(e=>{i.t(e,r.t),e.title&&r.t.setTitle(e.title),e.rules.map(e=>r.t.addRule(d(e)))},`populateDb`),p={parser:{parse:t.n(t=>{r.t.clear(),n.m.debug(`[EBNF Parser] Starting Langium parse`);let i=a.parse(t);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new e.t(i);let o=i.value;n.m.debug(`[EBNF Parser] Parsed rules:`,o.rules.length),f(o),n.m.debug(`[EBNF Parser] Parse complete`)},`parse`),parser:{yy:r.t}},db:r.t,renderer:r.r,styles:r.n};exports.diagram=p;
|