@aiquants/markdown 11.0.1 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -0
- package/dist/{abnfDiagram-VRR7QNED-Cgd_ClOa.js → abnfDiagram-VRR7QNED-C4Jxgx13.js} +3 -3
- package/dist/{abnfDiagram-VRR7QNED-CGbpxxTZ.cjs → abnfDiagram-VRR7QNED-WjiOMH07.cjs} +1 -1
- package/dist/{arc-83PgiFkI.cjs → arc-BASi8Hqx.cjs} +1 -1
- package/dist/{arc-B6YeA1yq.js → arc-C7CH7xqM.js} +20 -20
- package/dist/{architectureDiagram-ZJ3FMSHR-DUyxO_OT.js → architectureDiagram-ZJ3FMSHR-ClwidIel.js} +2 -2
- package/dist/{architectureDiagram-ZJ3FMSHR-CbKT84Qu.cjs → architectureDiagram-ZJ3FMSHR-QlFmKjZ2.cjs} +1 -1
- package/dist/{blockDiagram-677ZJIJ3-KhRxVKIG.cjs → blockDiagram-677ZJIJ3-B5QDrNQV.cjs} +1 -1
- package/dist/{blockDiagram-677ZJIJ3-BGRgY0Jq.js → blockDiagram-677ZJIJ3-BUrX_zhT.js} +3 -3
- package/dist/{c4Diagram-LMCZKHZV-DNyEsvRI.js → c4Diagram-LMCZKHZV-B2hi-Wi5.js} +2 -2
- package/dist/{c4Diagram-LMCZKHZV-DKwEMXl5.cjs → c4Diagram-LMCZKHZV-DYZO523e.cjs} +1 -1
- package/dist/{channel-BwAxLUKJ.cjs → channel-Cg3Vm619.cjs} +1 -1
- package/dist/{channel-CPuos4DK.js → channel-Cr1ANV4j.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-CwNIIf2z.js → chunk-2Q5K7J3B-Bxo9slkI.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-ueL9YXgS.cjs → chunk-2Q5K7J3B-ZmtWeAKF.cjs} +1 -1
- package/dist/{chunk-32BRIVSS-CyqPFuo9.cjs → chunk-32BRIVSS-8tw0VC1F.cjs} +1 -1
- package/dist/{chunk-32BRIVSS-4GH9FvG2.js → chunk-32BRIVSS-YISd1c8J.js} +1 -1
- package/dist/{chunk-5VM5RSS4-C5Js9nxl.js → chunk-5VM5RSS4-CqNTCifm.js} +1 -1
- package/dist/{chunk-5VM5RSS4-B9y1bN8p.cjs → chunk-5VM5RSS4-g88YAKYU.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-CmfR2Me0.cjs → chunk-EX3LRPZG-DP6g1uoN.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-BZcvojz_.js → chunk-EX3LRPZG-WwLq86XG.js} +4 -4
- package/dist/{chunk-JWPE2WC7-C-ypCY3I.cjs → chunk-JWPE2WC7-Bqw3GN0H.cjs} +1 -1
- package/dist/{chunk-JWPE2WC7-CtaWl_b_.js → chunk-JWPE2WC7-COh8RdRz.js} +1 -1
- package/dist/{chunk-MOJQB5TN-BwSAskm8.cjs → chunk-MOJQB5TN-BVAWgplu.cjs} +1 -1
- package/dist/{chunk-MOJQB5TN-01G2RIVR.js → chunk-MOJQB5TN-C1dao40o.js} +10 -10
- package/dist/{chunk-PUDLZKDR-D2o-M0Rj.cjs → chunk-PUDLZKDR-CC_D9ix1.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-CnpC3xcz.js → chunk-PUDLZKDR-Cmc1XT5M.js} +6 -6
- package/dist/{chunk-RYQCIY6F-sv402gFf.cjs → chunk-RYQCIY6F-C19BL3Ws.cjs} +1 -1
- package/dist/{chunk-RYQCIY6F-BJxwuEX_.js → chunk-RYQCIY6F-CjUwK4va.js} +12 -12
- package/dist/{chunk-V7JOEXUC-CAVk2pKT.js → chunk-V7JOEXUC-CypP8KXk.js} +15 -15
- package/dist/{chunk-V7JOEXUC-gP3tRqcD.cjs → chunk-V7JOEXUC-iaB-PSjI.cjs} +1 -1
- package/dist/{chunk-VR4S4FIN-BVOrMLGd.js → chunk-VR4S4FIN-CC2Up04Z.js} +3 -3
- package/dist/{chunk-VR4S4FIN-N9b38pB9.cjs → chunk-VR4S4FIN-CVdDLZPH.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-QR32cWjB.js → chunk-XXDRQBXY-D7hud77X.js} +1 -1
- package/dist/{chunk-XXDRQBXY-rk2BF2-a.cjs → chunk-XXDRQBXY-V6DQOxAN.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-CiKDmY89.cjs → classDiagram-OUVF2IWQ-BFfnrPra.cjs} +1 -1
- package/dist/{classDiagram-v2-EOCWNBFH-DWLi6mnu.js → classDiagram-OUVF2IWQ-CgyfPPk6.js} +2 -2
- package/dist/{classDiagram-v2-EOCWNBFH-CiKDmY89.cjs → classDiagram-v2-EOCWNBFH-BFfnrPra.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-DWLi6mnu.js → classDiagram-v2-EOCWNBFH-CgyfPPk6.js} +2 -2
- package/dist/components/BlockBoundary.d.ts +19 -0
- package/dist/components/MarkdownRenderer.d.ts +6 -1
- package/dist/components/MarkdownViewer.d.ts +3 -1
- package/dist/components/SvgImageBlock.d.ts +25 -0
- package/dist/components/blockFailureLabels.d.ts +2 -0
- package/dist/components/mdastNodes/CodeNode.d.ts +1 -0
- package/dist/components/rawHtml.d.ts +1 -0
- package/dist/components/svgImageLabels.d.ts +16 -0
- package/dist/components/viewerLabels.d.ts +7 -1
- package/dist/converter.wasm +0 -0
- package/dist/{cose-bilkent-JH36ORCC-DLL-HoNB.cjs → cose-bilkent-JH36ORCC-BQZprRVI.cjs} +1 -1
- package/dist/{cose-bilkent-JH36ORCC-Ndnjy2V_.js → cose-bilkent-JH36ORCC-DmxSHNLU.js} +5 -5
- package/dist/{cynefinDiagram-TSTJHNR4-BLc8lpj_.cjs → cynefinDiagram-TSTJHNR4-KM35ULZr.cjs} +1 -1
- package/dist/{cynefinDiagram-TSTJHNR4-CzQeK-ei.js → cynefinDiagram-TSTJHNR4-ku5HNgfN.js} +47 -47
- package/dist/{dagre-VKFMJZFB-BDWsqPrH.js → dagre-VKFMJZFB-57k1u_99.js} +20 -20
- package/dist/{dagre-VKFMJZFB-CpOLJSPF.cjs → dagre-VKFMJZFB-BmFsAJzi.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-DomkDZpC.js → diagram-FQU43EPY-0ev8XAoD.js} +2 -2
- package/dist/{diagram-FQU43EPY-BYwso-90.cjs → diagram-FQU43EPY-Bn7xPHj7.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-CJvutqnO.cjs → diagram-G47NLZAW-CjGc3D2u.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-B88unx9N.js → diagram-G47NLZAW-RPdbjZwZ.js} +38 -38
- package/dist/{diagram-NH7WQ7WH-c9X1ONTP.js → diagram-NH7WQ7WH-CnZ4iL7c.js} +20 -20
- package/dist/{diagram-NH7WQ7WH-B7_b2WAg.cjs → diagram-NH7WQ7WH-lHSM_pTi.cjs} +1 -1
- package/dist/{diagram-OA4YK3LP-Dgf5KLVb.cjs → diagram-OA4YK3LP-BcKaPsNW.cjs} +1 -1
- package/dist/{diagram-OA4YK3LP-ClopZbjk.js → diagram-OA4YK3LP-RtsRdjQV.js} +58 -58
- package/dist/{diagram-WEI45ONY-CFk-zdkR.cjs → diagram-WEI45ONY-Cm0jKyLw.cjs} +1 -1
- package/dist/{diagram-WEI45ONY-Ps4TgzF1.js → diagram-WEI45ONY-eVEUMERO.js} +10 -10
- package/dist/{ebnfDiagram-CCIWWBDH-Cj_QjqN9.js → ebnfDiagram-CCIWWBDH-BlAQU47p.js} +5 -5
- package/dist/{ebnfDiagram-CCIWWBDH-CQCWsevA.cjs → ebnfDiagram-CCIWWBDH-CcHTkkm8.cjs} +1 -1
- package/dist/{erDiagram-Q63AITRT-B8HuBKwU.js → erDiagram-Q63AITRT-Cz_PKpWU.js} +9 -9
- package/dist/{erDiagram-Q63AITRT-BzYknHNb.cjs → erDiagram-Q63AITRT-Dv27IAYm.cjs} +1 -1
- package/dist/{extractHeadings-CbjPphbm.cjs → extractHeadings-BMNm4Zss.cjs} +82 -82
- package/dist/{extractHeadings-Crd19E9z.js → extractHeadings-OhPxZ04C.js} +6611 -6424
- package/dist/flowDiagram-23GEKE2U-BoCXOrea.js +7 -0
- package/dist/flowDiagram-23GEKE2U-Dsludo9a.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-DmOJTDey.cjs → ganttDiagram-NO4QXBWP-CbbUbAi1.cjs} +1 -1
- package/dist/{ganttDiagram-NO4QXBWP-ssf7C_OK.js → ganttDiagram-NO4QXBWP-DtwVRaBN.js} +2 -2
- package/dist/{gitGraphDiagram-IHSO6WYX-BXw0xce8.cjs → gitGraphDiagram-IHSO6WYX-BHOaT-JP.cjs} +1 -1
- package/dist/{gitGraphDiagram-IHSO6WYX-DO-7gHh9.js → gitGraphDiagram-IHSO6WYX-BiUZZefR.js} +10 -10
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.d.ts +3 -1
- package/dist/index.client.js +32 -31
- package/dist/index.js +32 -31
- package/dist/{infoDiagram-FWYZ7A6U-D9CHdCHO.js → infoDiagram-FWYZ7A6U-DI2c0joH.js} +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-C_qI_jda.cjs → infoDiagram-FWYZ7A6U-DsF_dahQ.cjs} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-B-P0YpVr.js → ishikawaDiagram-FXEZZL3T-0U9dSh7F.js} +25 -25
- package/dist/{ishikawaDiagram-FXEZZL3T-BsAmXBFz.cjs → ishikawaDiagram-FXEZZL3T-CaDgpvd5.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-3vpGGLSR.cjs → journeyDiagram-5HDEW3XC-5qIvxqpC.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-BReIo-v3.js → journeyDiagram-5HDEW3XC-Y9ABNCEY.js} +4 -4
- package/dist/{kanban-definition-HUTT4EX6-CgVNbmAG.cjs → kanban-definition-HUTT4EX6-DDy8tXpk.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-DKqZmd21.js → kanban-definition-HUTT4EX6-DTsrmMh8.js} +52 -52
- package/dist/{linear-BZclxiW5.js → linear-B7M8-_qH.js} +5 -5
- package/dist/{linear-C6Pl8W7F.cjs → linear-CYNosLx1.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-CRGWlSrN.cjs → mindmap-definition-LN4V7U3C-AQHTbAWm.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-suiDe0CR.js → mindmap-definition-LN4V7U3C-CNXzfo0L.js} +16 -16
- package/dist/{pegDiagram-2B236MQR-CNg0sJ5j.js → pegDiagram-2B236MQR-CNgWrgv-.js} +3 -3
- package/dist/{pegDiagram-2B236MQR-DXTBiaER.cjs → pegDiagram-2B236MQR-D0SEAIrf.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-Pm5hFcS9.cjs → pieDiagram-ENE6RG2P-BlmNu0Kw.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-BjxQd0El.js → pieDiagram-ENE6RG2P-DzbrqPW4.js} +51 -51
- package/dist/{quadrantDiagram-ABIIQ3AL-Cn9jg0Nj.cjs → quadrantDiagram-ABIIQ3AL-BXPkUo_7.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-CbhdFi8L.js → quadrantDiagram-ABIIQ3AL-_XC0L6LA.js} +43 -43
- package/dist/{railroadDiagram-RFXS5EU6-DQZDzmuH.js → railroadDiagram-RFXS5EU6-CfXmkCxt.js} +7 -7
- package/dist/{railroadDiagram-RFXS5EU6-BsgUwAcz.cjs → railroadDiagram-RFXS5EU6-EyrFshDZ.cjs} +1 -1
- package/dist/{requirementDiagram-TGXJPOKE-B6qkEWAq.js → requirementDiagram-TGXJPOKE-DKjGDx3E.js} +18 -18
- package/dist/{requirementDiagram-TGXJPOKE-Bb7-fVzh.cjs → requirementDiagram-TGXJPOKE-KjSczfMx.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-D_i8qvPc.cjs → sankeyDiagram-HTMAVEWB-6JC0mA8g.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-B0lfTQm7.js → sankeyDiagram-HTMAVEWB-R3EgjVk3.js} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-hK_KsgkL.js → sequenceDiagram-DBY2YBRQ-BeK8wcJ4.js} +3 -3
- package/dist/{sequenceDiagram-DBY2YBRQ-Cis-Rynd.cjs → sequenceDiagram-DBY2YBRQ-jllfFbkK.cjs} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-CmMBsApW.js → sizeCapture-X5ZJPWSS-C9QakD3W.js} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-63py1Km1.cjs → sizeCapture-X5ZJPWSS-QkZ2crvh.cjs} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-DunX61Hp.cjs → stateDiagram-2N3HPSRC-CoHLlhZX.cjs} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-iHHDXYiT.js → stateDiagram-2N3HPSRC-DXh1e2K8.js} +10 -10
- package/dist/{stateDiagram-v2-6OUMAXLB-Cm5Vjes-.cjs → stateDiagram-v2-6OUMAXLB-B0KQB01K.cjs} +1 -1
- package/dist/{stateDiagram-v2-6OUMAXLB-BGf7WS-h.js → stateDiagram-v2-6OUMAXLB-D6Dlbs-H.js} +2 -2
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/markdown.standalone.css +1 -1
- package/dist/{swimlanes-5IMT3BWC-Dlxdol7t.js → swimlanes-5IMT3BWC-BaTEG5rQ.js} +313 -313
- package/dist/{swimlanes-5IMT3BWC-BJ1u6dlg.cjs → swimlanes-5IMT3BWC-D-D1lzxE.cjs} +1 -1
- package/dist/{swimlanesDiagram-G3AALYLV-DhG6vFeB.js → swimlanesDiagram-G3AALYLV-C6p-5K6G.js} +2 -2
- package/dist/{swimlanesDiagram-G3AALYLV-BJUZ0yd-.cjs → swimlanesDiagram-G3AALYLV-DSssDQXF.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-BpNpgP_f.js → timeline-definition-FHXFAJF6-Bq5nzkkn.js} +108 -108
- package/dist/{timeline-definition-FHXFAJF6-CC5nYPoS.cjs → timeline-definition-FHXFAJF6-DtewJvNV.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-BUO57UaZ.js → vennDiagram-L72KCM5P-5QsbfRVK.js} +101 -101
- package/dist/{vennDiagram-L72KCM5P-B3PoRUuk.cjs → vennDiagram-L72KCM5P-g-vN7N0T.cjs} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-BF8VCIge.cjs → wardleyDiagram-EHGQE667-B78Ehxdt.cjs} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-Bp6gS0HT.js → wardleyDiagram-EHGQE667-Dk_QVzpo.js} +85 -85
- package/dist/{xychartDiagram-FW5EYKEG-CBQgXLz_.js → xychartDiagram-FW5EYKEG-CwpcSS8_.js} +40 -40
- package/dist/{xychartDiagram-FW5EYKEG-C15kZN0r.cjs → xychartDiagram-FW5EYKEG-DwiqWfUA.cjs} +1 -1
- package/package.json +11 -11
- package/dist/flowDiagram-23GEKE2U-BIiIKtPl.cjs +0 -1
- package/dist/flowDiagram-23GEKE2U-CL3q35kI.js +0 -7
package/dist/{timeline-definition-FHXFAJF6-CC5nYPoS.cjs → timeline-definition-FHXFAJF6-DtewJvNV.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./extractHeadings-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./extractHeadings-BMNm4Zss.cjs"),st=require("./arc-BASi8Hqx.cjs");var Q=(function(){var e=r.__name(function(x,s,d,c){for(d=d||{},c=x.length;c--;d[x[c]]=s);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],i=[1,13],a=[1,14],h=[1,15],l=[1,16],o=[1,19],f=[1,20],p={trace:r.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:r.__name(function(s,d,c,g,y,u,S){var k=u.length-1;switch(y){case 1:return u[k-1];case 3:g.setDirection("LR");break;case 4:g.setDirection("TD");break;case 5:this.$=[];break;case 6:u[k-1].push(u[k]),this.$=u[k-1];break;case 7:case 8:this.$=u[k];break;case 9:case 10:this.$=[];break;case 11:g.getCommonDb().setDiagramTitle(u[k].substr(6)),this.$=u[k].substr(6);break;case 12:this.$=u[k].trim(),g.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[k].trim(),g.getCommonDb().setAccDescription(this.$);break;case 15:g.addSection(u[k].substr(8)),this.$=u[k].substr(8);break;case 18:g.addTask(u[k],0,""),this.$=u[k];break;case 19:g.addEvent(u[k].substr(2)),this.$=u[k];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:i,17:a,19:h,20:l,21:17,22:18,23:o,24:f},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:i,17:a,19:h,20:l,21:17,22:18,23:o,24:f},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:r.__name(function(s,d){if(d.recoverable)this.trace(s);else{var c=new Error(s);throw c.hash=d,c}},"parseError"),parse:r.__name(function(s){var d=this,c=[0],g=[],y=[null],u=[],S=this.table,k="",N=0,A=0,R=2,O=1,H=u.slice.call(arguments,1),w=Object.create(this.lexer),I={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(I.yy[B]=this.yy[B]);w.setInput(s,I.yy),I.yy.lexer=w,I.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var V=w.yylloc;u.push(V);var q=w.options&&w.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $(M){c.length=c.length-2*M,y.length=y.length-M,u.length=u.length-M}r.__name($,"popStack");function v(){var M;return M=g.pop()||w.lex()||O,typeof M!="number"&&(M instanceof Array&&(g=M,M=g.pop()),M=d.symbols_[M]||M),M}r.__name(v,"lex");for(var b,T,E,W,C={},z,P,j,K;;){if(T=c[c.length-1],this.defaultActions[T]?E=this.defaultActions[T]:((b===null||typeof b>"u")&&(b=v()),E=S[T]&&S[T][b]),typeof E>"u"||!E.length||!E[0]){var J="";K=[];for(z in S[T])this.terminals_[z]&&z>R&&K.push("'"+this.terminals_[z]+"'");w.showPosition?J="Parse error on line "+(N+1)+`:
|
|
2
2
|
`+w.showPosition()+`
|
|
3
3
|
Expecting `+K.join(", ")+", got '"+(this.terminals_[b]||b)+"'":J="Parse error on line "+(N+1)+": Unexpected "+(b==O?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(J,{text:w.match,token:this.terminals_[b]||b,line:w.yylineno,loc:V,expected:K})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+b);switch(E[0]){case 1:c.push(b),y.push(w.yytext),u.push(w.yylloc),c.push(E[1]),b=null,A=w.yyleng,k=w.yytext,N=w.yylineno,V=w.yylloc;break;case 2:if(P=this.productions_[E[1]][1],C.$=y[y.length-P],C._$={first_line:u[u.length-(P||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(P||1)].first_column,last_column:u[u.length-1].last_column},q&&(C._$.range=[u[u.length-(P||1)].range[0],u[u.length-1].range[1]]),W=this.performAction.apply(C,[k,A,N,I.yy,E[1],y,u].concat(H)),typeof W<"u")return W;P&&(c=c.slice(0,-1*P*2),y=y.slice(0,-1*P),u=u.slice(0,-1*P)),c.push(this.productions_[E[1]][0]),y.push(C.$),u.push(C._$),j=S[c[c.length-2]][c[c.length-1]],c.push(j);break;case 3:return!0}}return!0},"parse")},_=(function(){var x={EOF:1,parseError:r.__name(function(d,c){if(this.yy.parser)this.yy.parser.parseError(d,c);else throw new Error(d)},"parseError"),setInput:r.__name(function(s,d){return this.yy=d||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var d=s.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:r.__name(function(s){var d=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===g.length?this.yylloc.first_column:0)+g[g.length-c.length].length-c[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:r.__name(function(){return this._more=!0,this},"more"),reject:r.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:r.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r.__name(function(){var s=this.pastInput(),d=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bL as Kt, G as Wt, J as Ht, a9 as Yt, a8 as Xt, K as Zt, O as Jt, _ as w, ai as wt, an as Qt, R as ot, b0 as $t, aA as te, aB as ee, aC as ne, V as se, ae as ie, ak as oe, al as re } from "./extractHeadings-OhPxZ04C.js";
|
|
2
2
|
const It = (t, n) => Kt(t, "a", -n), _t = 1e-10;
|
|
3
3
|
function st(t, n) {
|
|
4
4
|
const s = le(t), e = s.filter((l) => ae(l, t));
|
|
@@ -23,7 +23,7 @@ function st(t, n) {
|
|
|
23
23
|
let _ = E - M;
|
|
24
24
|
_ < 0 && (_ += 2 * Math.PI);
|
|
25
25
|
const S = E - _ / 2;
|
|
26
|
-
let g =
|
|
26
|
+
let g = q(y, {
|
|
27
27
|
x: p.x + p.radius * Math.sin(S),
|
|
28
28
|
y: p.y + p.radius * Math.cos(S)
|
|
29
29
|
});
|
|
@@ -37,7 +37,7 @@ function st(t, n) {
|
|
|
37
37
|
t[u].radius < l.radius && (l = t[u]);
|
|
38
38
|
let f = !1;
|
|
39
39
|
for (let u = 0; u < t.length; ++u)
|
|
40
|
-
if (
|
|
40
|
+
if (q(t[u], l) > Math.abs(l.radius - t[u].radius)) {
|
|
41
41
|
f = !0;
|
|
42
42
|
break;
|
|
43
43
|
}
|
|
@@ -53,7 +53,7 @@ function st(t, n) {
|
|
|
53
53
|
return o /= 2, n && (n.area = i + o, n.arcArea = i, n.polygonArea = o, n.arcs = r, n.innerPoints = e, n.intersectionPoints = s), i + o;
|
|
54
54
|
}
|
|
55
55
|
function ae(t, n) {
|
|
56
|
-
return n.every((s) =>
|
|
56
|
+
return n.every((s) => q(t, s) < s.radius + _t);
|
|
57
57
|
}
|
|
58
58
|
function le(t) {
|
|
59
59
|
const n = [];
|
|
@@ -68,7 +68,7 @@ function le(t) {
|
|
|
68
68
|
function lt(t, n) {
|
|
69
69
|
return t * t * Math.acos(1 - n / t) - (t - n) * Math.sqrt(n * (2 * t - n));
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function q(t, n) {
|
|
72
72
|
return Math.sqrt((t.x - n.x) * (t.x - n.x) + (t.y - n.y) * (t.y - n.y));
|
|
73
73
|
}
|
|
74
74
|
function xt(t, n, s) {
|
|
@@ -80,7 +80,7 @@ function xt(t, n, s) {
|
|
|
80
80
|
return lt(t, e) + lt(n, i);
|
|
81
81
|
}
|
|
82
82
|
function Tt(t, n) {
|
|
83
|
-
const s =
|
|
83
|
+
const s = q(t, n), e = t.radius, i = n.radius;
|
|
84
84
|
if (s >= e + i || s <= Math.abs(e - i))
|
|
85
85
|
return [];
|
|
86
86
|
const o = (e * e - i * i + s * s) / (2 * s), r = Math.sqrt(e * e - o * o), l = t.x + o * (n.x - t.x) / s, f = t.y + o * (n.y - t.y) / s, u = -(n.y - t.y) * (r / s), a = -(n.x - t.x) * (r / s);
|
|
@@ -444,7 +444,7 @@ function tt(t, n) {
|
|
|
444
444
|
let i;
|
|
445
445
|
if (e.sets.length === 2) {
|
|
446
446
|
const r = t[e.sets[0]], l = t[e.sets[1]];
|
|
447
|
-
i = xt(r.radius, l.radius,
|
|
447
|
+
i = xt(r.radius, l.radius, q(r, l));
|
|
448
448
|
} else
|
|
449
449
|
i = st(e.sets.map((r) => t[r]));
|
|
450
450
|
const o = e.weight != null ? e.weight : 1;
|
|
@@ -460,7 +460,7 @@ function Ct(t, n) {
|
|
|
460
460
|
let i;
|
|
461
461
|
if (e.sets.length === 2) {
|
|
462
462
|
const l = t[e.sets[0]], f = t[e.sets[1]];
|
|
463
|
-
i = xt(l.radius, f.radius,
|
|
463
|
+
i = xt(l.radius, f.radius, q(l, f));
|
|
464
464
|
} else
|
|
465
465
|
i = st(e.sets.map((l) => t[l]));
|
|
466
466
|
const o = e.weight != null ? e.weight : 1, r = Math.log((i + 1) / (e.size + 1));
|
|
@@ -474,7 +474,7 @@ function me(t, n, s) {
|
|
|
474
474
|
for (const r of t)
|
|
475
475
|
r.x -= i, r.y -= o;
|
|
476
476
|
}
|
|
477
|
-
if (t.length === 2 &&
|
|
477
|
+
if (t.length === 2 && q(t[0], t[1]) < Math.abs(t[1].radius - t[0].radius) && (t[1].x = t[0].x + t[0].radius - t[1].radius - 1e-10, t[1].y = t[0].y), t.length > 1) {
|
|
478
478
|
const i = Math.atan2(t[1].x, t[1].y) - n, o = Math.cos(i), r = Math.sin(i);
|
|
479
479
|
for (const l of t) {
|
|
480
480
|
const f = l.x, u = l.y;
|
|
@@ -510,7 +510,7 @@ function be(t) {
|
|
|
510
510
|
for (let i = 0; i < t.length; ++i)
|
|
511
511
|
for (let o = i + 1; o < t.length; ++o) {
|
|
512
512
|
const r = t[i].radius + t[o].radius;
|
|
513
|
-
|
|
513
|
+
q(t[i], t[o]) + 1e-10 < r && s(t[o], t[i]);
|
|
514
514
|
}
|
|
515
515
|
const e = /* @__PURE__ */ new Map();
|
|
516
516
|
for (let i = 0; i < t.length; ++i) {
|
|
@@ -530,7 +530,7 @@ function dt(t) {
|
|
|
530
530
|
}
|
|
531
531
|
function Dt(t, n, s) {
|
|
532
532
|
n == null && (n = Math.PI / 2);
|
|
533
|
-
let e =
|
|
533
|
+
let e = Ft(t).map((u) => Object.assign({}, u));
|
|
534
534
|
const i = be(e);
|
|
535
535
|
for (const u of i) {
|
|
536
536
|
me(u, n, s);
|
|
@@ -565,10 +565,10 @@ function Dt(t, n, s) {
|
|
|
565
565
|
let f = 1;
|
|
566
566
|
for (; f < i.length; )
|
|
567
567
|
l(i[f], !0, !1), l(i[f + 1], !1, !0), l(i[f + 2], !0, !0), f += 3, o = dt(e);
|
|
568
|
-
return
|
|
568
|
+
return Nt(e);
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
const o =
|
|
570
|
+
function Ot(t, n, s, e, i) {
|
|
571
|
+
const o = Ft(t);
|
|
572
572
|
n -= 2 * e, s -= 2 * e;
|
|
573
573
|
const { xRange: r, yRange: l } = dt(o);
|
|
574
574
|
if (r.max === r.min || l.max === l.min)
|
|
@@ -580,7 +580,7 @@ function Nt(t, n, s, e, i) {
|
|
|
580
580
|
} else
|
|
581
581
|
f = n / (r.max - r.min), u = s / (l.max - l.min);
|
|
582
582
|
const a = Math.min(u, f), y = (n - (r.max - r.min) * a) / 2, h = (s - (l.max - l.min) * a) / 2;
|
|
583
|
-
return
|
|
583
|
+
return Nt(
|
|
584
584
|
o.map((b) => ({
|
|
585
585
|
radius: a * b.radius,
|
|
586
586
|
x: e + y + (b.x - r.min) * a,
|
|
@@ -589,13 +589,13 @@ function Nt(t, n, s, e, i) {
|
|
|
589
589
|
}))
|
|
590
590
|
);
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function Nt(t) {
|
|
593
593
|
const n = {};
|
|
594
594
|
for (const s of t)
|
|
595
595
|
n[s.setid] = s;
|
|
596
596
|
return n;
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function Ft(t) {
|
|
599
599
|
return Object.keys(t).map((s) => Object.assign(t[s], { setid: s }));
|
|
600
600
|
}
|
|
601
601
|
function ve(t = {}) {
|
|
@@ -621,45 +621,45 @@ function ve(t = {}) {
|
|
|
621
621
|
const C = /* @__PURE__ */ new Set();
|
|
622
622
|
d.forEach((I) => {
|
|
623
623
|
I.size == 0 && I.sets.length == 1 && C.add(I.sets[0]);
|
|
624
|
-
}), d = d.filter((I) => !I.sets.some((
|
|
624
|
+
}), d = d.filter((I) => !I.sets.some((F) => C.has(F)));
|
|
625
625
|
let k = {}, D = {};
|
|
626
626
|
if (d.length > 0) {
|
|
627
627
|
let I = m(d, { lossFunction: v, distinct: b });
|
|
628
|
-
l && (I = Dt(I, r, h)), k =
|
|
628
|
+
l && (I = Dt(I, r, h)), k = Ot(I, s, e, i, f), D = Lt(k, d, M);
|
|
629
629
|
}
|
|
630
|
-
const
|
|
630
|
+
const U = {};
|
|
631
631
|
d.forEach((I) => {
|
|
632
|
-
I.label && (
|
|
632
|
+
I.label && (U[I.sets] = I.label);
|
|
633
633
|
});
|
|
634
634
|
function V(I) {
|
|
635
|
-
if (I.sets in
|
|
636
|
-
return
|
|
635
|
+
if (I.sets in U)
|
|
636
|
+
return U[I.sets];
|
|
637
637
|
if (I.sets.length == 1)
|
|
638
638
|
return "" + I.sets[0];
|
|
639
639
|
}
|
|
640
640
|
x.selectAll("svg").data([k]).enter().append("svg");
|
|
641
|
-
const
|
|
642
|
-
n ?
|
|
641
|
+
const N = x.select("svg");
|
|
642
|
+
n ? N.attr("viewBox", `0 0 ${s} ${e}`) : N.attr("width", s).attr("height", e);
|
|
643
643
|
const R = {};
|
|
644
644
|
let T = !1;
|
|
645
|
-
|
|
646
|
-
const
|
|
647
|
-
I.sets.length == 1 &&
|
|
645
|
+
N.selectAll(".venn-area path").each(function(I) {
|
|
646
|
+
const F = this.getAttribute("d");
|
|
647
|
+
I.sets.length == 1 && F && !b && (T = !0, R[I.sets[0]] = Me(F));
|
|
648
648
|
});
|
|
649
649
|
function A(I) {
|
|
650
|
-
return (
|
|
650
|
+
return (F) => {
|
|
651
651
|
const H = I.sets.map((et) => {
|
|
652
652
|
let Y = R[et], Z = k[et];
|
|
653
653
|
return Y || (Y = { x: s / 2, y: e / 2, radius: 1 }), Z || (Z = { x: s / 2, y: e / 2, radius: 1 }), {
|
|
654
|
-
x: Y.x * (1 -
|
|
655
|
-
y: Y.y * (1 -
|
|
656
|
-
radius: Y.radius * (1 -
|
|
654
|
+
x: Y.x * (1 - F) + Z.x * F,
|
|
655
|
+
y: Y.y * (1 - F) + Z.y * F,
|
|
656
|
+
radius: Y.radius * (1 - F) + Z.radius * F
|
|
657
657
|
};
|
|
658
658
|
});
|
|
659
659
|
return St(H, p);
|
|
660
660
|
};
|
|
661
661
|
}
|
|
662
|
-
const G =
|
|
662
|
+
const G = N.selectAll(".venn-area").data(d, (I) => I.sets), P = G.enter().append("g").attr(
|
|
663
663
|
"class",
|
|
664
664
|
(I) => `venn-area venn-${I.sets.length == 1 ? "circle" : "intersection"}${I.colour || I.color ? " venn-coloured" : ""}`
|
|
665
665
|
).attr("data-venn-sets", (I) => I.sets.join("_")), B = P.append("path"), L = P.append("text").attr("class", "label").text((I) => V(I)).attr("text-anchor", "middle").attr("dy", ".35em").attr("x", s / 2).attr("y", e / 2);
|
|
@@ -668,13 +668,13 @@ function ve(t = {}) {
|
|
|
668
668
|
return typeof I.transition == "function" ? I.transition("venn").duration(o) : I;
|
|
669
669
|
}
|
|
670
670
|
let z = x;
|
|
671
|
-
T && typeof z.transition == "function" ? (z = W(x), z.selectAll("path").attrTween("d", A)) : z.selectAll("path").attr("d", (I) => St(I.sets.map((
|
|
672
|
-
const
|
|
673
|
-
u && (T ? "on" in
|
|
674
|
-
const
|
|
675
|
-
typeof G.transition == "function" &&
|
|
676
|
-
const X =
|
|
677
|
-
return y !== null && (L.style("font-size", "0px"),
|
|
671
|
+
T && typeof z.transition == "function" ? (z = W(x), z.selectAll("path").attrTween("d", A)) : z.selectAll("path").attr("d", (I) => St(I.sets.map((F) => k[F])), p);
|
|
672
|
+
const O = z.selectAll("text").filter((I) => I.sets in D).text((I) => V(I)).attr("x", (I) => Math.floor(D[I.sets].x)).attr("y", (I) => Math.floor(D[I.sets].y));
|
|
673
|
+
u && (T ? "on" in O ? O.on("end", rt(k, V)) : O.each("end", rt(k, V)) : O.each(rt(k, V)));
|
|
674
|
+
const j = W(G.exit()).remove();
|
|
675
|
+
typeof G.transition == "function" && j.selectAll("path").attrTween("d", A);
|
|
676
|
+
const X = j.selectAll("text").attr("x", s / 2).attr("y", e / 2);
|
|
677
|
+
return y !== null && (L.style("font-size", "0px"), O.style("font-size", y), X.style("font-size", "0px")), { circles: k, textCentres: D, nodes: G, enter: P, update: z, exit: j };
|
|
678
678
|
}
|
|
679
679
|
return c.wrap = function(x) {
|
|
680
680
|
return arguments.length ? (u = x, c) : u;
|
|
@@ -738,18 +738,18 @@ function rt(t, n) {
|
|
|
738
738
|
};
|
|
739
739
|
}
|
|
740
740
|
function at(t, n, s) {
|
|
741
|
-
let e = n[0].radius -
|
|
741
|
+
let e = n[0].radius - q(n[0], t);
|
|
742
742
|
for (let i = 1; i < n.length; ++i) {
|
|
743
|
-
const o = n[i].radius -
|
|
743
|
+
const o = n[i].radius - q(n[i], t);
|
|
744
744
|
o <= e && (e = o);
|
|
745
745
|
}
|
|
746
746
|
for (let i = 0; i < s.length; ++i) {
|
|
747
|
-
const o =
|
|
747
|
+
const o = q(s[i], t) - s[i].radius;
|
|
748
748
|
o <= e && (e = o);
|
|
749
749
|
}
|
|
750
750
|
return e;
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function jt(t, n, s) {
|
|
753
753
|
const e = [];
|
|
754
754
|
for (const a of t)
|
|
755
755
|
e.push({ x: a.x, y: a.y }), e.push({ x: a.x + a.radius / 2, y: a.y }), e.push({ x: a.x - a.radius / 2, y: a.y }), e.push({ x: a.x, y: a.y + a.radius / 2 }), e.push({ x: a.x, y: a.y - a.radius / 2 });
|
|
@@ -765,12 +765,12 @@ function Ft(t, n, s) {
|
|
|
765
765
|
).x, l = { x: s ? 0 : r[0], y: r[1] };
|
|
766
766
|
let f = !0;
|
|
767
767
|
for (const a of t)
|
|
768
|
-
if (
|
|
768
|
+
if (q(l, a) > a.radius) {
|
|
769
769
|
f = !1;
|
|
770
770
|
break;
|
|
771
771
|
}
|
|
772
772
|
for (const a of n)
|
|
773
|
-
if (
|
|
773
|
+
if (q(l, a) < a.radius) {
|
|
774
774
|
f = !1;
|
|
775
775
|
break;
|
|
776
776
|
}
|
|
@@ -779,7 +779,7 @@ function Ft(t, n, s) {
|
|
|
779
779
|
if (t.length == 1)
|
|
780
780
|
return { x: t[0].x, y: t[0].y };
|
|
781
781
|
const u = {};
|
|
782
|
-
return st(t, u), u.arcs.length === 0 ? { x: 0, y: -1e3, disjoint: !0 } : u.arcs.length == 1 ? { x: u.arcs[0].circle.x, y: u.arcs[0].circle.y } : n.length ?
|
|
782
|
+
return st(t, u), u.arcs.length === 0 ? { x: 0, y: -1e3, disjoint: !0 } : u.arcs.length == 1 ? { x: u.arcs[0].circle.x, y: u.arcs[0].circle.y } : n.length ? jt(t, []) : Et(u.arcs.map((a) => a.p1));
|
|
783
783
|
}
|
|
784
784
|
function ke(t) {
|
|
785
785
|
const n = {}, s = Object.keys(t);
|
|
@@ -788,7 +788,7 @@ function ke(t) {
|
|
|
788
788
|
for (let e = 0; e < s.length; e++) {
|
|
789
789
|
const i = s[e], o = t[i];
|
|
790
790
|
for (let r = e + 1; r < s.length; ++r) {
|
|
791
|
-
const l = s[r], f = t[l], u =
|
|
791
|
+
const l = s[r], f = t[l], u = q(o, f);
|
|
792
792
|
u + f.radius <= o.radius + 1e-10 ? n[l].push(i) : u + o.radius <= f.radius + 1e-10 && n[i].push(l);
|
|
793
793
|
}
|
|
794
794
|
}
|
|
@@ -807,7 +807,7 @@ function Lt(t, n, s) {
|
|
|
807
807
|
const u = [], a = [];
|
|
808
808
|
for (let h in t)
|
|
809
809
|
h in l ? u.push(t[h]) : h in f || a.push(t[h]);
|
|
810
|
-
const y =
|
|
810
|
+
const y = jt(u, a, s);
|
|
811
811
|
e[r] = y, y.disjoint && n[o].size > 0 && console.log("WARNING: area " + r + " not represented on screen");
|
|
812
812
|
}
|
|
813
813
|
return e;
|
|
@@ -870,7 +870,7 @@ function Se(t, n = {}) {
|
|
|
870
870
|
distinct: h
|
|
871
871
|
});
|
|
872
872
|
i && (p = Dt(p, o, r));
|
|
873
|
-
const M =
|
|
873
|
+
const M = Ot(p, l, f, u, a), E = Lt(M, t, y), _ = new Map(
|
|
874
874
|
Object.keys(M).map((m) => [
|
|
875
875
|
m,
|
|
876
876
|
{
|
|
@@ -1033,7 +1033,7 @@ var gt = (function() {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
}, "parseError"),
|
|
1035
1035
|
parse: /* @__PURE__ */ w(function(g) {
|
|
1036
|
-
var m = this, v = [0], c = [], x = [null], d = [], C = this.table, k = "", D = 0,
|
|
1036
|
+
var m = this, v = [0], c = [], x = [null], d = [], C = this.table, k = "", D = 0, U = 0, V = 2, N = 1, R = d.slice.call(arguments, 1), T = Object.create(this.lexer), A = { yy: {} };
|
|
1037
1037
|
for (var G in this.yy)
|
|
1038
1038
|
Object.prototype.hasOwnProperty.call(this.yy, G) && (A.yy[G] = this.yy[G]);
|
|
1039
1039
|
T.setInput(g, A.yy), A.yy.lexer = T, A.yy.parser = this, typeof T.yylloc > "u" && (T.yylloc = {});
|
|
@@ -1047,18 +1047,18 @@ var gt = (function() {
|
|
|
1047
1047
|
w(L, "popStack");
|
|
1048
1048
|
function W() {
|
|
1049
1049
|
var K;
|
|
1050
|
-
return K = c.pop() || T.lex() ||
|
|
1050
|
+
return K = c.pop() || T.lex() || N, typeof K != "number" && (K instanceof Array && (c = K, K = c.pop()), K = m.symbols_[K] || K), K;
|
|
1051
1051
|
}
|
|
1052
1052
|
w(W, "lex");
|
|
1053
|
-
for (var z,
|
|
1054
|
-
if (
|
|
1053
|
+
for (var z, O, j, X, I = {}, F, H, et, Y; ; ) {
|
|
1054
|
+
if (O = v[v.length - 1], this.defaultActions[O] ? j = this.defaultActions[O] : ((z === null || typeof z > "u") && (z = W()), j = C[O] && C[O][z]), typeof j > "u" || !j.length || !j[0]) {
|
|
1055
1055
|
var Z = "";
|
|
1056
1056
|
Y = [];
|
|
1057
|
-
for (
|
|
1058
|
-
this.terminals_[
|
|
1057
|
+
for (F in C[O])
|
|
1058
|
+
this.terminals_[F] && F > V && Y.push("'" + this.terminals_[F] + "'");
|
|
1059
1059
|
T.showPosition ? Z = "Parse error on line " + (D + 1) + `:
|
|
1060
1060
|
` + T.showPosition() + `
|
|
1061
|
-
Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : Z = "Parse error on line " + (D + 1) + ": Unexpected " + (z ==
|
|
1061
|
+
Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : Z = "Parse error on line " + (D + 1) + ": Unexpected " + (z == N ? "end of input" : "'" + (this.terminals_[z] || z) + "'"), this.parseError(Z, {
|
|
1062
1062
|
text: T.match,
|
|
1063
1063
|
token: this.terminals_[z] || z,
|
|
1064
1064
|
line: T.yylineno,
|
|
@@ -1066,14 +1066,14 @@ Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : Z = "
|
|
|
1066
1066
|
expected: Y
|
|
1067
1067
|
});
|
|
1068
1068
|
}
|
|
1069
|
-
if (
|
|
1070
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
1071
|
-
switch (
|
|
1069
|
+
if (j[0] instanceof Array && j.length > 1)
|
|
1070
|
+
throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + z);
|
|
1071
|
+
switch (j[0]) {
|
|
1072
1072
|
case 1:
|
|
1073
|
-
v.push(z), x.push(T.yytext), d.push(T.yylloc), v.push(
|
|
1073
|
+
v.push(z), x.push(T.yytext), d.push(T.yylloc), v.push(j[1]), z = null, U = T.yyleng, k = T.yytext, D = T.yylineno, P = T.yylloc;
|
|
1074
1074
|
break;
|
|
1075
1075
|
case 2:
|
|
1076
|
-
if (H = this.productions_[
|
|
1076
|
+
if (H = this.productions_[j[1]][1], I.$ = x[x.length - H], I._$ = {
|
|
1077
1077
|
first_line: d[d.length - (H || 1)].first_line,
|
|
1078
1078
|
last_line: d[d.length - 1].last_line,
|
|
1079
1079
|
first_column: d[d.length - (H || 1)].first_column,
|
|
@@ -1083,15 +1083,15 @@ Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : Z = "
|
|
|
1083
1083
|
d[d.length - 1].range[1]
|
|
1084
1084
|
]), X = this.performAction.apply(I, [
|
|
1085
1085
|
k,
|
|
1086
|
-
|
|
1086
|
+
U,
|
|
1087
1087
|
D,
|
|
1088
1088
|
A.yy,
|
|
1089
|
-
|
|
1089
|
+
j[1],
|
|
1090
1090
|
x,
|
|
1091
1091
|
d
|
|
1092
1092
|
].concat(R)), typeof X < "u")
|
|
1093
1093
|
return X;
|
|
1094
|
-
H && (v = v.slice(0, -1 * H * 2), x = x.slice(0, -1 * H), d = d.slice(0, -1 * H)), v.push(this.productions_[
|
|
1094
|
+
H && (v = v.slice(0, -1 * H * 2), x = x.slice(0, -1 * H), d = d.slice(0, -1 * H)), v.push(this.productions_[j[1]][0]), x.push(I.$), d.push(I._$), et = C[v[v.length - 2]][v[v.length - 1]], v.push(et);
|
|
1095
1095
|
break;
|
|
1096
1096
|
case 3:
|
|
1097
1097
|
return !0;
|
|
@@ -1370,11 +1370,11 @@ var we = gt, yt = [], pt = [], mt = [], bt = /* @__PURE__ */ new Set(), vt, kt =
|
|
|
1370
1370
|
const s = it(t).filter((e) => !bt.has(e));
|
|
1371
1371
|
if (s.length > 0)
|
|
1372
1372
|
throw new Error(`unknown set identifier: ${s.join(", ")}`);
|
|
1373
|
-
}, "validateUnionIdentifiers"), De = /* @__PURE__ */ w(() => pt, "getTextData"),
|
|
1373
|
+
}, "validateUnionIdentifiers"), De = /* @__PURE__ */ w(() => pt, "getTextData"), Oe = /* @__PURE__ */ w(() => vt, "getCurrentSets"), Ne = /* @__PURE__ */ w(() => kt, "getIndentMode"), Fe = /* @__PURE__ */ w((t) => {
|
|
1374
1374
|
kt = t;
|
|
1375
|
-
}, "setIndentMode"),
|
|
1375
|
+
}, "setIndentMode"), je = re.venn;
|
|
1376
1376
|
function Vt() {
|
|
1377
|
-
return oe(
|
|
1377
|
+
return oe(je, wt().venn);
|
|
1378
1378
|
}
|
|
1379
1379
|
w(Vt, "getConfig");
|
|
1380
1380
|
var Le = /* @__PURE__ */ w(() => {
|
|
@@ -1395,9 +1395,9 @@ var Le = /* @__PURE__ */ w(() => {
|
|
|
1395
1395
|
validateUnionIdentifiers: Ce,
|
|
1396
1396
|
getTextData: De,
|
|
1397
1397
|
getStyleData: Re,
|
|
1398
|
-
getCurrentSets:
|
|
1399
|
-
getIndentMode:
|
|
1400
|
-
setIndentMode:
|
|
1398
|
+
getCurrentSets: Oe,
|
|
1399
|
+
getIndentMode: Ne,
|
|
1400
|
+
setIndentMode: Fe
|
|
1401
1401
|
}, Be = /* @__PURE__ */ w((t) => `
|
|
1402
1402
|
.venn-title {
|
|
1403
1403
|
font-size: 32px;
|
|
@@ -1421,7 +1421,7 @@ var Le = /* @__PURE__ */ w(() => {
|
|
|
1421
1421
|
color: ${t.vennSetTextColor};
|
|
1422
1422
|
}
|
|
1423
1423
|
`, "getStyles"), Ve = Be;
|
|
1424
|
-
function
|
|
1424
|
+
function qt(t) {
|
|
1425
1425
|
const n = /* @__PURE__ */ new Map();
|
|
1426
1426
|
for (const s of t) {
|
|
1427
1427
|
const e = s.targets.join("|"), i = n.get(e);
|
|
@@ -1429,8 +1429,8 @@ function Ut(t) {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
return n;
|
|
1431
1431
|
}
|
|
1432
|
-
w(
|
|
1433
|
-
var
|
|
1432
|
+
w(qt, "buildStyleByKey");
|
|
1433
|
+
var qe = /* @__PURE__ */ w((t, n, s, e) => {
|
|
1434
1434
|
const i = e.db, o = i.getConfig?.(), { themeVariables: r, look: l, handDrawnSeed: f } = wt(), u = l === "handDrawn", a = [
|
|
1435
1435
|
r.venn1,
|
|
1436
1436
|
r.venn2,
|
|
@@ -1440,7 +1440,7 @@ var Ue = /* @__PURE__ */ w((t, n, s, e) => {
|
|
|
1440
1440
|
r.venn6,
|
|
1441
1441
|
r.venn7,
|
|
1442
1442
|
r.venn8
|
|
1443
|
-
].filter(Boolean), y = i.getDiagramTitle?.(), h = i.getSubsetData(), b = i.getTextData(), p =
|
|
1443
|
+
].filter(Boolean), y = i.getDiagramTitle?.(), h = i.getSubsetData(), b = i.getTextData(), p = qt(i.getStyleData()), M = Gt(h), E = o?.width ?? 800, _ = o?.height ?? 450, g = E / 1600, m = y ? 48 * g : 0, v = r.primaryTextColor ?? r.textColor, c = Qt(n);
|
|
1444
1444
|
c.attr("viewBox", `0 0 ${E} ${_}`), y && c.append("text").text(y).attr("class", "venn-title").attr("font-size", `${32 * g}px`).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("x", "50%").attr("y", 32 * g).style("fill", r.vennTitleTextColor || r.titleColor);
|
|
1445
1445
|
const x = ot(document.createElement("div")), d = ve().width(E).height(_ - m);
|
|
1446
1446
|
x.datum(M).call(d);
|
|
@@ -1453,16 +1453,16 @@ var Ue = /* @__PURE__ */ w((t, n, s, e) => {
|
|
|
1453
1453
|
const T = Q([...R.data.sets].sort());
|
|
1454
1454
|
D.set(T, R);
|
|
1455
1455
|
}
|
|
1456
|
-
b.length > 0 &&
|
|
1457
|
-
const
|
|
1456
|
+
b.length > 0 && Ut(o, D, x, b, g, p);
|
|
1457
|
+
const U = te(r.background || "#f4f4f4");
|
|
1458
1458
|
x.selectAll(".venn-circle").each(function(R, T) {
|
|
1459
1459
|
const A = ot(this), P = Q([...R.sets].sort()), B = p.get(P), L = B?.fill || a[T % a.length] || r.primaryColor;
|
|
1460
1460
|
A.classed(`venn-set-${T % 8}`, !0);
|
|
1461
|
-
const W = B?.["fill-opacity"] ?? 0.1, z = B?.stroke || L,
|
|
1461
|
+
const W = B?.["fill-opacity"] ?? 0.1, z = B?.stroke || L, O = B?.["stroke-width"] || `${5 * g}`;
|
|
1462
1462
|
if (u && C) {
|
|
1463
1463
|
const X = D.get(P);
|
|
1464
1464
|
if (X && X.circles.length > 0) {
|
|
1465
|
-
const I = X.circles[0],
|
|
1465
|
+
const I = X.circles[0], F = C.circle(I.x, I.y, I.radius * 2, {
|
|
1466
1466
|
roughness: 0.7,
|
|
1467
1467
|
seed: f,
|
|
1468
1468
|
fill: It(L, 0.7),
|
|
@@ -1471,14 +1471,14 @@ var Ue = /* @__PURE__ */ w((t, n, s, e) => {
|
|
|
1471
1471
|
hachureGap: 8,
|
|
1472
1472
|
hachureAngle: -41 + T * 60,
|
|
1473
1473
|
stroke: z,
|
|
1474
|
-
strokeWidth: parseFloat(String(
|
|
1474
|
+
strokeWidth: parseFloat(String(O))
|
|
1475
1475
|
});
|
|
1476
|
-
A.select("path").remove(), A.node()?.insertBefore(
|
|
1476
|
+
A.select("path").remove(), A.node()?.insertBefore(F, A.select("text").node());
|
|
1477
1477
|
}
|
|
1478
1478
|
} else
|
|
1479
|
-
A.select("path").style("fill", L).style("fill-opacity", W).style("stroke", z).style("stroke-width",
|
|
1480
|
-
const
|
|
1481
|
-
A.select("text").style("font-size", `${48 * g}px`).style("fill",
|
|
1479
|
+
A.select("path").style("fill", L).style("fill-opacity", W).style("stroke", z).style("stroke-width", O).style("stroke-opacity", 0.95);
|
|
1480
|
+
const j = B?.color || (U ? ee(L, 30) : ne(L, 30));
|
|
1481
|
+
A.select("text").style("font-size", `${48 * g}px`).style("fill", j);
|
|
1482
1482
|
}), u && C ? x.selectAll(".venn-intersection").each(function(R) {
|
|
1483
1483
|
const T = ot(this), G = Q([...R.sets].sort()), P = p.get(G), B = P?.fill;
|
|
1484
1484
|
if (B) {
|
|
@@ -1493,8 +1493,8 @@ var Ue = /* @__PURE__ */ w((t, n, s, e) => {
|
|
|
1493
1493
|
hachureGap: 6,
|
|
1494
1494
|
hachureAngle: 60,
|
|
1495
1495
|
stroke: "none"
|
|
1496
|
-
}),
|
|
1497
|
-
|
|
1496
|
+
}), O = L.node();
|
|
1497
|
+
O?.parentNode?.insertBefore(z, O), L.remove();
|
|
1498
1498
|
}
|
|
1499
1499
|
} else
|
|
1500
1500
|
T.select("path").style("fill-opacity", 0);
|
|
@@ -1509,9 +1509,9 @@ var Ue = /* @__PURE__ */ w((t, n, s, e) => {
|
|
|
1509
1509
|
const A = Q([...R.sets].sort());
|
|
1510
1510
|
return p.get(A)?.fill ?? "transparent";
|
|
1511
1511
|
}));
|
|
1512
|
-
const V = c.append("g").attr("transform", `translate(0, ${m})`),
|
|
1513
|
-
if (
|
|
1514
|
-
for (const R of [...
|
|
1512
|
+
const V = c.append("g").attr("transform", `translate(0, ${m})`), N = x.select("svg").node();
|
|
1513
|
+
if (N && "childNodes" in N)
|
|
1514
|
+
for (const R of [...N.childNodes])
|
|
1515
1515
|
V.node()?.appendChild(R);
|
|
1516
1516
|
se(c, _, E, o?.useMaxWidth ?? !0);
|
|
1517
1517
|
}, "draw");
|
|
@@ -1519,7 +1519,7 @@ function Q(t) {
|
|
|
1519
1519
|
return t.join("|");
|
|
1520
1520
|
}
|
|
1521
1521
|
w(Q, "stableSetsKey");
|
|
1522
|
-
function
|
|
1522
|
+
function Ut(t, n, s, e, i, o) {
|
|
1523
1523
|
const r = t?.useDebugLayout ?? !1, f = s.select("svg").append("g").attr("class", "venn-text-nodes"), u = /* @__PURE__ */ new Map();
|
|
1524
1524
|
for (const a of e) {
|
|
1525
1525
|
const y = Q(a.sets), h = u.get(y);
|
|
@@ -1529,23 +1529,23 @@ function qt(t, n, s, e, i, o) {
|
|
|
1529
1529
|
const h = n.get(a);
|
|
1530
1530
|
if (!h?.text)
|
|
1531
1531
|
continue;
|
|
1532
|
-
const b = h.text.x, p = h.text.y, M = Math.min(...h.circles.map((
|
|
1533
|
-
...h.circles.map((
|
|
1532
|
+
const b = h.text.x, p = h.text.y, M = Math.min(...h.circles.map((N) => N.radius)), E = Math.min(
|
|
1533
|
+
...h.circles.map((N) => N.radius - Math.hypot(b - N.x, p - N.y))
|
|
1534
1534
|
);
|
|
1535
1535
|
let _ = Number.isFinite(E) ? Math.max(0, E) : 0;
|
|
1536
1536
|
_ === 0 && Number.isFinite(M) && (_ = M * 0.6);
|
|
1537
1537
|
const S = f.append("g").attr("class", "venn-text-area").attr("font-size", `${40 * i}px`);
|
|
1538
1538
|
r && S.append("circle").attr("class", "venn-text-debug-circle").attr("cx", b).attr("cy", p).attr("r", _).attr("fill", "none").attr("stroke", "purple").attr("stroke-width", 1.5 * i).attr("stroke-dasharray", `${6 * i} ${4 * i}`);
|
|
1539
|
-
const g = Math.max(80 * i, _ * 2 * 0.95), m = Math.max(60 * i, _ * 2 * 0.95), x = (h.data.label && h.data.label.length > 0 ? Math.min(32 * i, _ * 0.25) : 0) + (y.length <= 2 ? 30 * i : 0), d = b - g / 2, C = p - m / 2 + x, k = Math.max(1, Math.ceil(Math.sqrt(y.length))), D = Math.max(1, Math.ceil(y.length / k)),
|
|
1540
|
-
for (const [
|
|
1541
|
-
const T =
|
|
1542
|
-
r && S.append("rect").attr("class", "venn-text-debug-cell").attr("x", d +
|
|
1543
|
-
const B =
|
|
1544
|
-
z &&
|
|
1539
|
+
const g = Math.max(80 * i, _ * 2 * 0.95), m = Math.max(60 * i, _ * 2 * 0.95), x = (h.data.label && h.data.label.length > 0 ? Math.min(32 * i, _ * 0.25) : 0) + (y.length <= 2 ? 30 * i : 0), d = b - g / 2, C = p - m / 2 + x, k = Math.max(1, Math.ceil(Math.sqrt(y.length))), D = Math.max(1, Math.ceil(y.length / k)), U = g / k, V = m / D;
|
|
1540
|
+
for (const [N, R] of y.entries()) {
|
|
1541
|
+
const T = N % k, A = Math.floor(N / k), G = d + U * (T + 0.5), P = C + V * (A + 0.5);
|
|
1542
|
+
r && S.append("rect").attr("class", "venn-text-debug-cell").attr("x", d + U * T).attr("y", C + V * A).attr("width", U).attr("height", V).attr("fill", "none").attr("stroke", "teal").attr("stroke-width", 1 * i).attr("stroke-dasharray", `${4 * i} ${3 * i}`);
|
|
1543
|
+
const B = U * 0.9, L = V * 0.9, W = S.append("foreignObject").attr("class", "venn-text-node-fo").attr("width", B).attr("height", L).attr("x", G - B / 2).attr("y", P - L / 2).attr("overflow", "visible"), z = o.get(R.id)?.color, O = W.append("xhtml:span").attr("class", "venn-text-node").style("display", "flex").style("width", "100%").style("height", "100%").style("white-space", "normal").style("align-items", "center").style("justify-content", "center").style("text-align", "center").style("overflow-wrap", "normal").style("word-break", "normal").text(R.label ?? R.id);
|
|
1544
|
+
z && O.style("color", z);
|
|
1545
1545
|
}
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
1548
|
-
w(
|
|
1548
|
+
w(Ut, "renderTextNodes");
|
|
1549
1549
|
function Gt(t) {
|
|
1550
1550
|
const n = new Set(t.map((i) => [...i.sets].sort().join("|"))), s = new Map(
|
|
1551
1551
|
t.filter((i) => i.sets.length === 1 && i.size !== void 0).map((i) => [i.sets[0], i.size])
|
|
@@ -1567,10 +1567,10 @@ function Gt(t) {
|
|
|
1567
1567
|
return e.length > 0 ? [...t, ...e] : t;
|
|
1568
1568
|
}
|
|
1569
1569
|
w(Gt, "ensurePairwiseSubsets");
|
|
1570
|
-
var
|
|
1570
|
+
var Ue = { draw: qe }, Ke = {
|
|
1571
1571
|
parser: we,
|
|
1572
1572
|
db: Pe,
|
|
1573
|
-
renderer:
|
|
1573
|
+
renderer: Ue,
|
|
1574
1574
|
styles: Ve
|
|
1575
1575
|
};
|
|
1576
1576
|
export {
|