artideck 0.0.1-alpha.0 → 1.112.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/AGENTS.md +1 -0
- package/LICENSE +4 -0
- package/README.md +203 -5
- package/bin/ryugi.cjs +9 -0
- package/dist/cli.cjs +994 -0
- package/dist/document-engine.cjs +1796 -0
- package/dist/loro_wasm_bg.wasm +0 -0
- package/dist/output-bootstrap.cjs +921 -0
- package/dist/runtime/Figtree-OFL.txt +93 -0
- package/dist/runtime/Geist-Mono-OFL.txt +92 -0
- package/dist/runtime/Goeist-OFL.txt +97 -0
- package/dist/runtime/deck/23I4SOAX-ByvRw0YV.js +263 -0
- package/dist/runtime/deck/26H2HVXD-bLsHUJg0.js +595 -0
- package/dist/runtime/deck/2IZ5MNOH-BMwid8pT.js +161 -0
- package/dist/runtime/deck/2P3CZEXH-CDGTr1B1.js +263 -0
- package/dist/runtime/deck/3E5HRNYT-DWV6YnPn.js +1328 -0
- package/dist/runtime/deck/3JIRLDUO-BxW79znC.js +489 -0
- package/dist/runtime/deck/5MJ3UKSG-CZlIMh9R.js +470 -0
- package/dist/runtime/deck/5THPTBWS-BCdZFhV1.js +32 -0
- package/dist/runtime/deck/7WLXJQOR-CjURryg_.js +22 -0
- package/dist/runtime/deck/A255FCTW-BsKVHooW.js +796 -0
- package/dist/runtime/deck/AM43MQ64-Ctg0tPg5.js +279 -0
- package/dist/runtime/deck/AOZTNTMC-BFmaehsA.js +563 -0
- package/dist/runtime/deck/AQNLM6KG-BaXA1Iyk.js +1264 -0
- package/dist/runtime/deck/BNU2RHQB-xTFbJFq5.js +181 -0
- package/dist/runtime/deck/C5HTQT3I-gSZhc4E5.js +168 -0
- package/dist/runtime/deck/CPKRWH5G-BWHn4GAl.js +1339 -0
- package/dist/runtime/deck/CUVCMPQX-CWb0Dm80.js +1235 -0
- package/dist/runtime/deck/D4V2MWCI-DU3TsZxx.js +24 -0
- package/dist/runtime/deck/DHKBVIA3-D7oUDJiJ.js +39 -0
- package/dist/runtime/deck/DKTLEL5E-CJdweuKi.js +35 -0
- package/dist/runtime/deck/DUZNPW7S-DbhjhetM.js +103 -0
- package/dist/runtime/deck/E3FWOBN4-BtJPMX8M.js +488 -0
- package/dist/runtime/deck/E65FQMJL-Dd_2fyME.js +21 -0
- package/dist/runtime/deck/FTXIJQGB-AHnjjGOa.js +226 -0
- package/dist/runtime/deck/G3MDBVQH-2qSadYZr.js +24 -0
- package/dist/runtime/deck/G3OATVW2-1h3YkBu7.js +1567 -0
- package/dist/runtime/deck/IV52FOAS-Zn4UzH4N.js +1404 -0
- package/dist/runtime/deck/JTJEEBDN-YkCHY8Zf.js +52 -0
- package/dist/runtime/deck/K7FUICZ3-CGPZ7izx.js +795 -0
- package/dist/runtime/deck/LHH2HHRB-B29BDRKn.js +356 -0
- package/dist/runtime/deck/MSPQPZZY-D8T12kEI.js +688 -0
- package/dist/runtime/deck/OB6ZFVKF-BXfQ4FMH.js +242 -0
- package/dist/runtime/deck/PLTZDMI2-Bt_th5t6.js +1 -0
- package/dist/runtime/deck/R7EPXMMD-Biy1Rh6R.js +1079 -0
- package/dist/runtime/deck/RVARI57O-DHZR7iMv.js +9 -0
- package/dist/runtime/deck/SPBWZ4VS-Ce9sEW6_.js +75 -0
- package/dist/runtime/deck/SR7OOV3Q-DnX0KpAd.js +1017 -0
- package/dist/runtime/deck/STAXBNH4-C4TCtjfh.js +22 -0
- package/dist/runtime/deck/SXFARSFO-DO8JeDyL.js +405 -0
- package/dist/runtime/deck/TC77ISAL-ByLfgcrY.js +1135 -0
- package/dist/runtime/deck/TYIQQHVC-TRfAzv7p.js +1859 -0
- package/dist/runtime/deck/TZUXETIT-B8gqbld-.js +776 -0
- package/dist/runtime/deck/U7N72BGE-BuZ4vKTn.js +519 -0
- package/dist/runtime/deck/UFPIB6EZ-4MlZnCrF.js +475 -0
- package/dist/runtime/deck/UO52YEYL-Bq22hG5W.js +146 -0
- package/dist/runtime/deck/VIK3ONSK-D_kEzfgj.js +445 -0
- package/dist/runtime/deck/VVVO4ZVP-CpABiIqr.js +166 -0
- package/dist/runtime/deck/WRGXZO53-UB13aRTu.js +947 -0
- package/dist/runtime/deck/X5SG7MGC-BfmHie-r.js +296 -0
- package/dist/runtime/deck/XLHPVVFU-B_uzIt_G.js +51 -0
- package/dist/runtime/deck/XXYPNCD5-CgyfByXb.js +183 -0
- package/dist/runtime/deck/Z6WRYFJC-Cxt5GIGU.js +416 -0
- package/dist/runtime/deck/ZI2QNEGF-zbLA5j2H.js +1414 -0
- package/dist/runtime/deck/code-Dzzx958k.js +786 -0
- package/dist/runtime/deck/diagram-D4QtUYG0.js +1095 -0
- package/dist/runtime/deck/embed-ByYr4D5y.js +94 -0
- package/dist/runtime/deck/magic-move-QHEhTESo.js +864 -0
- package/dist/runtime/deck/math-CyFe6hk1.js +21956 -0
- package/dist/runtime/deck/open-BwthTmko.js +788 -0
- package/dist/runtime/icons/a.json +1 -0
- package/dist/runtime/icons/b.json +1 -0
- package/dist/runtime/icons/c.json +1 -0
- package/dist/runtime/icons/d.json +1 -0
- package/dist/runtime/icons/e.json +1 -0
- package/dist/runtime/icons/f.json +1 -0
- package/dist/runtime/icons/g.json +1 -0
- package/dist/runtime/icons/h.json +1 -0
- package/dist/runtime/icons/i.json +1 -0
- package/dist/runtime/icons/index.json +1 -0
- package/dist/runtime/icons/j.json +1 -0
- package/dist/runtime/icons/k.json +1 -0
- package/dist/runtime/icons/l.json +1 -0
- package/dist/runtime/icons/m.json +1 -0
- package/dist/runtime/icons/n.json +1 -0
- package/dist/runtime/icons/o.json +1 -0
- package/dist/runtime/icons/p.json +1 -0
- package/dist/runtime/icons/q.json +1 -0
- package/dist/runtime/icons/r.json +1 -0
- package/dist/runtime/icons/s.json +1 -0
- package/dist/runtime/icons/t.json +1 -0
- package/dist/runtime/icons/u.json +1 -0
- package/dist/runtime/icons/v.json +1 -0
- package/dist/runtime/icons/w.json +1 -0
- package/dist/runtime/icons/x.json +1 -0
- package/dist/runtime/icons/z.json +1 -0
- package/dist/runtime/robots.txt +9 -0
- package/dist/runtime/ryugi-deck.js +4097 -0
- package/dist/runtime/ryugi-icons.js +47 -0
- package/dist/runtime/ryugi-mockup.js +558 -0
- package/dist/runtime/ryugi-preview-bridge.js +2 -0
- package/dist/runtime/ryugi-report.js +65827 -0
- package/dist/runtime/ryugi-storyboard.js +55 -0
- package/dist/runtime/ryugi-ui.js +90 -0
- package/dist/runtime/ryugi-whiteboard-embed.js +11904 -0
- package/dist/viewer/AgentDock-DO3wjCT6.js +2 -0
- package/dist/viewer/ArtboardLayout-CWx1_DVU.js +14 -0
- package/dist/viewer/ArtboardLayout-DLyi-yDq.css +1 -0
- package/dist/viewer/ArtifactList-DtgRku6l.js +2 -0
- package/dist/viewer/ArtifactModal-BU_PR8k8.css +1 -0
- package/dist/viewer/ArtifactModal-DfZqI4AY.js +1 -0
- package/dist/viewer/BottomSheet-DHasPJPu.js +1 -0
- package/dist/viewer/Canvas-C5NJh3wF.js +1 -0
- package/dist/viewer/CommentPopover-GqGMqaHP.js +1 -0
- package/dist/viewer/DocumentExportMenu-8sZID_nO.js +1 -0
- package/dist/viewer/DocumentLayout-CJ59MGXp.js +2 -0
- package/dist/viewer/DocumentPage-CcmkTxH-.js +5 -0
- package/dist/viewer/DocumentPage-DGJI3MRN.css +1 -0
- package/dist/viewer/DotGrid-DKKr_PyM.js +1 -0
- package/dist/viewer/DraggablePanel-BuFi6njZ.js +1 -0
- package/dist/viewer/DropdownMenu-CM7q1CMp.js +1 -0
- package/dist/viewer/Figtree-OFL.txt +93 -0
- package/dist/viewer/Geist-Mono-OFL.txt +92 -0
- package/dist/viewer/GeistMono-BoRIzn25.woff2 +0 -0
- package/dist/viewer/Goeist-OFL.txt +97 -0
- package/dist/viewer/GroupVerdict-DeeQUfkG.js +1 -0
- package/dist/viewer/HtmlLayout-vlPq4J9Y.js +1 -0
- package/dist/viewer/Input-CVcfIqt2.js +1 -0
- package/dist/viewer/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/viewer/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/viewer/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/viewer/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/viewer/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/viewer/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/viewer/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/viewer/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/viewer/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/viewer/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/viewer/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/viewer/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/viewer/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/viewer/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/viewer/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/viewer/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/viewer/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/viewer/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/viewer/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/viewer/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/viewer/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/viewer/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/viewer/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/viewer/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/viewer/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/viewer/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/viewer/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/viewer/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/viewer/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/viewer/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/viewer/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/viewer/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/viewer/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/viewer/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/viewer/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/viewer/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/viewer/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/viewer/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/viewer/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/viewer/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/viewer/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/viewer/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/viewer/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/viewer/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/viewer/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/viewer/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/viewer/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/viewer/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/viewer/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/viewer/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/viewer/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/viewer/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/viewer/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/viewer/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/viewer/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/viewer/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/viewer/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/viewer/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/viewer/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/viewer/MenuSubmenuTrigger-BczoxS9k.js +1 -0
- package/dist/viewer/MotionConfigContext-HC2vqcJO.js +1 -0
- package/dist/viewer/PhoneArtboardBar-BK3M_psy.js +1 -0
- package/dist/viewer/PlaybackIcon-D-vfZnSv.js +1 -0
- package/dist/viewer/Popover-O6mMCn1S.js +1 -0
- package/dist/viewer/PreviewArtifactLayout-KGeS-A9y.js +1 -0
- package/dist/viewer/PreviewLayout-C5knCbv-.js +2 -0
- package/dist/viewer/ReportLayout-BD1bNPfi.js +5 -0
- package/dist/viewer/RyugiMark-Dyu4ej9h.js +1 -0
- package/dist/viewer/Segmented-Clhtb1CD.js +1 -0
- package/dist/viewer/SelectScrollUpArrow-CTGOrluu.js +1 -0
- package/dist/viewer/SlidesLayout-8j14xYA-.js +12 -0
- package/dist/viewer/SlidesLayout-Bjds2UXz.css +1 -0
- package/dist/viewer/SnapshotDocument-CnqXgo4y.js +1 -0
- package/dist/viewer/SplitFrame-CQ3lXrch.js +1 -0
- package/dist/viewer/StoryboardLayout-ayS9S6Ff.js +1 -0
- package/dist/viewer/StoryboardRender--NOzkhyN.js +1 -0
- package/dist/viewer/ThreadView-OBDIwTkP.js +1 -0
- package/dist/viewer/Tooltip-DX1QlxEQ.js +1 -0
- package/dist/viewer/VerifyLayout-B9e4RHAZ.css +1 -0
- package/dist/viewer/VerifyLayout-Usn3NkOU.js +1 -0
- package/dist/viewer/VirtualizedEditor-uWe43zaI-C5Sahl_l.js +1 -0
- package/dist/viewer/VirtualizedRenderer-C_d95FXi-BpaHPQz0.js +1 -0
- package/dist/viewer/WarningsBadge-DGnz2zmy.js +1 -0
- package/dist/viewer/WhiteboardEditor-DrHOvXez-JWa5PVHK.js +22 -0
- package/dist/viewer/WhiteboardLayout-Dd8Uh61C.js +4 -0
- package/dist/viewer/WhiteboardLayout-SRFXrlmW.css +1 -0
- package/dist/viewer/WritingCursor-CRzyzaVO.js +1 -0
- package/dist/viewer/agentLook-CU806djA.js +1 -0
- package/dist/viewer/apl-gfMMiTNf.js +1 -0
- package/dist/viewer/app-icon-6WJOuhLx.svg +1 -0
- package/dist/viewer/app-icon-Bm9-i4yr.png +0 -0
- package/dist/viewer/arrow-up-right-0KreI6kY.js +1 -0
- package/dist/viewer/artifact-list-B9KTDzUh.js +1 -0
- package/dist/viewer/asciiarmor-C_eisQCp.js +1 -0
- package/dist/viewer/asn1-DCl_8MCW.js +1 -0
- package/dist/viewer/asterisk-BEn0Cwpx.js +1 -0
- package/dist/viewer/auto-publish-GJrN3H-Y.js +1 -0
- package/dist/viewer/backlinks-C_k8-LL2.js +1 -0
- package/dist/viewer/bem-vbke-3KC.js +1 -0
- package/dist/viewer/brainfuck-D5EjA2JK.js +1 -0
- package/dist/viewer/channel-CF9EHtSL.js +4 -0
- package/dist/viewer/chevron-left-C5itNrp5.js +1 -0
- package/dist/viewer/chevron-right-xNdXLJg6.js +1 -0
- package/dist/viewer/clapperboard-BfpJ7tpa.js +1 -0
- package/dist/viewer/clike-xvONpD0Z.js +1 -0
- package/dist/viewer/clojure-BflJGmDX.js +1 -0
- package/dist/viewer/cloud-upload-D8TpApTr.js +1 -0
- package/dist/viewer/cmake-84nbDH0I.js +1 -0
- package/dist/viewer/cobol-DHLQUbN7.js +1 -0
- package/dist/viewer/code-DnmQyGiF.js +1 -0
- package/dist/viewer/code-xml-c9QCqmhY.js +1 -0
- package/dist/viewer/coffeescript-De_zI4J0.js +1 -0
- package/dist/viewer/comments-DUAz1Q9X.js +1 -0
- package/dist/viewer/commonlisp-DgAKBe0r.js +1 -0
- package/dist/viewer/crop-encode-C1SdKlik.js +1 -0
- package/dist/viewer/crystal-Bl6YKCG_.js +1 -0
- package/dist/viewer/css-CnaYoQib.js +1 -0
- package/dist/viewer/cssVar.stylex-CGbpAC1Y.js +1 -0
- package/dist/viewer/cypher-p9eYesGn.js +1 -0
- package/dist/viewer/d-DWkQyNnU.js +1 -0
- package/dist/viewer/default-Ckb1jcnl.js +4 -0
- package/dist/viewer/diff-ChtP43wD.js +1 -0
- package/dist/viewer/dist-B0qXxOuX.js +1 -0
- package/dist/viewer/dist-B3-vnt93.js +1 -0
- package/dist/viewer/dist-BDGp5lli.js +6 -0
- package/dist/viewer/dist-BHga6o7i.js +1 -0
- package/dist/viewer/dist-BNB-dtd1.js +1 -0
- package/dist/viewer/dist-BWDri6GH.js +1 -0
- package/dist/viewer/dist-B_dCTH8c.js +9 -0
- package/dist/viewer/dist-BaGZx4vf.js +1 -0
- package/dist/viewer/dist-Bgia1wnJ.js +11 -0
- package/dist/viewer/dist-C4H1ECie.js +1 -0
- package/dist/viewer/dist-CJucIoCR.js +1 -0
- package/dist/viewer/dist-CiMWQRhQ.js +1 -0
- package/dist/viewer/dist-Cj74Rdec.js +1 -0
- package/dist/viewer/dist-CsBIrCGx.js +1 -0
- package/dist/viewer/dist-CyHqzrxc.js +1 -0
- package/dist/viewer/dist-CzD--XrY.js +1 -0
- package/dist/viewer/dist-D4as0PD-.js +1 -0
- package/dist/viewer/dist-DTD3yXBi.js +1 -0
- package/dist/viewer/dist-Dfck1z2n.js +23 -0
- package/dist/viewer/dist-Dmr_aVAS.js +1 -0
- package/dist/viewer/dist-Dn_o36dG.js +2 -0
- package/dist/viewer/dist-DxngwfWH.js +1 -0
- package/dist/viewer/dist-_D5xLBBO.js +1 -0
- package/dist/viewer/dist-vsF0cCGK.js +1 -0
- package/dist/viewer/dockerfile-DJkHQgkl.js +1 -0
- package/dist/viewer/dtd-DTF72YNO.js +1 -0
- package/dist/viewer/dylan-S7ucR4pR.js +1 -0
- package/dist/viewer/ebnf-D4c0_ac3.js +1 -0
- package/dist/viewer/ecl-BVIeWmwY.js +1 -0
- package/dist/viewer/editor-DHJQC-c0.js +397 -0
- package/dist/viewer/eiffel-BEjRio4Q.js +1 -0
- package/dist/viewer/elements-CmGVWYag.js +1 -0
- package/dist/viewer/elm-Cshzl8qu.js +1 -0
- package/dist/viewer/embed-src-CmyqZplg.js +1 -0
- package/dist/viewer/erlang-BV0c4Hdn.js +1 -0
- package/dist/viewer/external-link-D382oEvK.js +1 -0
- package/dist/viewer/factor-LKH5gN8L.js +1 -0
- package/dist/viewer/fcl-ClOhbFR7.js +1 -0
- package/dist/viewer/figtree-latin-ext-wght-normal-DCwSJGxG.woff2 +0 -0
- package/dist/viewer/figtree-latin-wght-normal-D_ZTVpCC.woff2 +0 -0
- package/dist/viewer/film-A6SU1RGC.js +1 -0
- package/dist/viewer/fit-BgVy5mbn.js +1 -0
- package/dist/viewer/folder-BViSPo7g.js +1 -0
- package/dist/viewer/forth-D6RzAl64.js +1 -0
- package/dist/viewer/fortran-Bt6PBEDR.js +1 -0
- package/dist/viewer/gas-BHEdbvp9.js +1 -0
- package/dist/viewer/gherkin-oBAE_ms0.js +1 -0
- package/dist/viewer/github-dark-C895GGrm.js +1 -0
- package/dist/viewer/github-light-B4HDwToD.js +1 -0
- package/dist/viewer/groovy-CUrWKPia.js +1 -0
- package/dist/viewer/haskell-BRsoo5mP.js +1 -0
- package/dist/viewer/haxe-DjVOVvNP.js +1 -0
- package/dist/viewer/http-CLVgA2GD.js +1 -0
- package/dist/viewer/icons-BwlHhLMH.js +1 -0
- package/dist/viewer/idl-BUZw3wgd.js +1 -0
- package/dist/viewer/imperative-D1UIq_CR.js +1 -0
- package/dist/viewer/index.css +1 -0
- package/dist/viewer/index.html +75 -0
- package/dist/viewer/index.js +2 -0
- package/dist/viewer/index2.css +1 -0
- package/dist/viewer/index3.css +1 -0
- package/dist/viewer/index4.css +1 -0
- package/dist/viewer/index5.css +6655 -0
- package/dist/viewer/is-html-element-DvgHo_1h.js +1 -0
- package/dist/viewer/javascript-lS2r2ifg.js +1 -0
- package/dist/viewer/jsx-runtime-LKYXHABd.js +1 -0
- package/dist/viewer/julia-CQfgDRfP.js +1 -0
- package/dist/viewer/katex-DuZJ-tFh.js +257 -0
- package/dist/viewer/lib-DJrc3aG3.js +3 -0
- package/dist/viewer/livescript-BXxG0Yva.js +1 -0
- package/dist/viewer/local-CvTEMav_.js +1 -0
- package/dist/viewer/local-split-host-DOfRlsgx.js +1 -0
- package/dist/viewer/lua-DPCEkfD_.js +1 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-100-DLPe7tEt.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-101-d3VsZKWT.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-102-ClzJuLq6.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-103-DuDnQ6K-.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-104-kPGW3Eem.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-105-BzD54h-0.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-106-BQ7fIzlx.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-107-D8tDfFHI.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-108-tGhkpwep.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-109-7SMVSrly.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-110-_uDKrFed.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-111-Bio825RE.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-112-D2ee0i-C.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-113-JPFVDrga.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-114-BcfxYA4w.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-115-B1HeeOsd.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-116-hY12tXpq.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-117-BvuZwmre.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-118-tzvs_H7j.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-119-J2DWuYDN.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-21-pDubCJV5.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-22-ChAPMpqp.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-23-BBx3oNpT.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-24-CYt-Oagk.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-25-Cx3j-ZUv.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-26-B9AfZ3LL.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-27-Bh2s9MNE.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-28-C02JPoKP.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-29-T_tbUGhk.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-30-DMfyNzhz.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-31-DFfdzbkg.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-32-Bs1fz2iW.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-33-cpB96OkZ.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-34-BhinPYWX.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-35-D_njRQqA.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-36-DqXlLE3t.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-37-j5LbvMph.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-38-oO4jWdKm.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-39-CabsX4rw.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-4-PatS3YHh.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-40-yrLg3C3e.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-41-DBXmCQhc.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-42-Bqij_UiQ.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-43-D3kp0Ntc.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-44-B_BNGvK4.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-45-CZc0cQWs.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-46-CHQX5Kd9.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-47-Ci8gLrHA.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-48-run3ugD3.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-49-DgfiUb6u.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-5-B0CtGbX_.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-50-CdCG-POr.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-51-L2okeQZ2.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-52-BZAqyGJW.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-53-B0xWqLeU.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-54-BZVQX-EA.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-55-093mkIUJ.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-56-CbhWG8G-.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-57-pLQuvo6c.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-58-BHhoY50x.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-59-D1_6DuIQ.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-6-BnAelmYU.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-60-HDBIuLTZ.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-61-C-c13SeU.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-62-kHRVOhZ2.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-63-C0MCsvFv.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-64-DZekguCj.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-65-CtP6c3IU.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-66-DLVWoMSf.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-67-BVuOnayH.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-68-DpxQ6Mnx.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-69-qesBxLmC.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-70-BBt1xN7h.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-71-BWqZacwB.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-72-B1wP_Yst.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-73-C99T7jNZ.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-74-DrUTsWBe.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-75-C4M5XXQe.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-76-Bq8spVWF.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-77-D9vNupE2.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-78-D6th7Gnu.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-79-bezM85cS.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-80-DD8pnhG2.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-81-N6jtSyBs.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-82-D6c180bZ.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-83-em17AadM.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-84-CJ8gdrMK.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-85-9PPGO1eB.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-86-CjWPf-u5.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-87-8D_X_yOC.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-88-9vtKFPBx.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-89-BhE5jAKX.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-90-D2Npfm5E.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-91-C6Ft1-Eu.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-97-CaExyQP9.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-98-CPoVbsUd.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-99-ZUQZGVgH.woff2 +0 -0
- package/dist/viewer/mathematica-u8YMmbU0.js +1 -0
- package/dist/viewer/maximize-2-Bc0lXBg6.js +1 -0
- package/dist/viewer/mbox-BEMVcqjs.js +1 -0
- package/dist/viewer/message-square-Yl8PoPy_.js +1 -0
- package/dist/viewer/mirc-C9zpzAZU.js +1 -0
- package/dist/viewer/mllike-B45xgp2S.js +1 -0
- package/dist/viewer/modelica-CqHI_q-D.js +1 -0
- package/dist/viewer/monitor-DRrnx_H5.js +1 -0
- package/dist/viewer/motion-Cy65kd7X.js +1 -0
- package/dist/viewer/mouse-pointer-2-B-OF_fcG.js +1 -0
- package/dist/viewer/mscgen-qgSLujhx.js +1 -0
- package/dist/viewer/mumps-BSzj6Xyz.js +1 -0
- package/dist/viewer/nginx-C-ORUuei.js +1 -0
- package/dist/viewer/nsis-viPvXFiq.js +1 -0
- package/dist/viewer/ntriples-CzMBulkp.js +1 -0
- package/dist/viewer/octave-D2Q8cUp1.js +1 -0
- package/dist/viewer/oz-BwTct_5T.js +1 -0
- package/dist/viewer/pages-DWkRbog-.js +1 -0
- package/dist/viewer/pascal-Dp_KdFgX.js +1 -0
- package/dist/viewer/pen-tool-BfwjhXQW.js +1 -0
- package/dist/viewer/perl-BkSkiI9m.js +1 -0
- package/dist/viewer/pig-AF4Hwhju.js +1 -0
- package/dist/viewer/play-6FAfeM1L.js +1 -0
- package/dist/viewer/plugin-_bGVeqI0-DZgj9wju.js +2 -0
- package/dist/viewer/plus-DZJ2BVkK.js +1 -0
- package/dist/viewer/powershell-D8WpQPaX.js +1 -0
- package/dist/viewer/preference-oNdcNeml.js +1 -0
- package/dist/viewer/presentation-DXrcAbwM.js +1 -0
- package/dist/viewer/preview.html +28 -0
- package/dist/viewer/preview.js +1 -0
- package/dist/viewer/printDocument-CUNshxwb.js +1 -0
- package/dist/viewer/properties-C357ku5U.js +1 -0
- package/dist/viewer/protobuf-D1ij_kNL.js +1 -0
- package/dist/viewer/pug-BqCHZ5xT.js +1 -0
- package/dist/viewer/puppet-BZyAS7I4.js +1 -0
- package/dist/viewer/python-B_1Jd8HM.js +1 -0
- package/dist/viewer/q-B9NhS7L_.js +1 -0
- package/dist/viewer/r-CxDmU1I4.js +1 -0
- package/dist/viewer/react-DlmbjZJV.js +1 -0
- package/dist/viewer/read-marks-CVVWpIvf.js +1 -0
- package/dist/viewer/ref-Bj5JiHki.js +1 -0
- package/dist/viewer/robots.txt +9 -0
- package/dist/viewer/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/viewer/rounds-BLj-tfMG.js +1 -0
- package/dist/viewer/route-Csi4PU7w.js +64 -0
- package/dist/viewer/route-messages-DeWSMVNI.js +1 -0
- package/dist/viewer/rpm-gpDK5sbt.js +1 -0
- package/dist/viewer/ruby-ChfNwlCY.js +1 -0
- package/dist/viewer/ruler-CYb0HZGT.js +1 -0
- package/dist/viewer/sas-C2OyD2Y6.js +1 -0
- package/dist/viewer/scheme-D9qYN0V5.js +1 -0
- package/dist/viewer/search-DTrfkTpJ.js +1 -0
- package/dist/viewer/selection-BWCQd_Fn.js +1 -0
- package/dist/viewer/settings-Ccw15Eyz.js +1 -0
- package/dist/viewer/shell-DwuoZtxw.js +1 -0
- package/dist/viewer/shims-s-YVfIlz.js +1 -0
- package/dist/viewer/sieve-tLWDfEkZ.js +1 -0
- package/dist/viewer/simple-mode-DXiLM1-G.js +1 -0
- package/dist/viewer/sliders-horizontal-CuS3-UwA.js +1 -0
- package/dist/viewer/smalltalk-BLp5-jwC.js +1 -0
- package/dist/viewer/snap-B7T8Fi-t.js +1 -0
- package/dist/viewer/solr-B78wSQJQ.js +1 -0
- package/dist/viewer/sparql-Dz-mlCAC.js +1 -0
- package/dist/viewer/split-DYwwKqIa.js +2 -0
- package/dist/viewer/spreadsheet-CTIncYxj.js +1 -0
- package/dist/viewer/sql-DuQMFDvy.js +1 -0
- package/dist/viewer/stable-CwENW2fR.js +1 -0
- package/dist/viewer/stex-DNzd62Q_.js +1 -0
- package/dist/viewer/store-D3ROW536.js +1 -0
- package/dist/viewer/stringifyLocale-D0juOOnH.js +1 -0
- package/dist/viewer/styles-clvPUBbJ.js +1 -0
- package/dist/viewer/stylus-BOVgKnng.js +1 -0
- package/dist/viewer/swift-DKB6_1j6.js +1 -0
- package/dist/viewer/table-2-D90vZ04E.js +1 -0
- package/dist/viewer/tcl-BGfruO1u.js +1 -0
- package/dist/viewer/text-align-start-CRhecbJR.js +1 -0
- package/dist/viewer/textile-C4jVoHG1.js +1 -0
- package/dist/viewer/tiddlywiki-VlUiK86J.js +1 -0
- package/dist/viewer/tiki-CvUEFusT.js +1 -0
- package/dist/viewer/toml-BPTmHmyx.js +1 -0
- package/dist/viewer/transport-CSbo3sV6.js +1 -0
- package/dist/viewer/troff-C2dAgh7P.js +1 -0
- package/dist/viewer/ttcn-PPSTk1ow.js +1 -0
- package/dist/viewer/ttcn-cfg-2b4Gb5sE.js +1 -0
- package/dist/viewer/turtle-Cx3rYX2g.js +1 -0
- package/dist/viewer/type-icons-CxYXZlMj.js +1 -0
- package/dist/viewer/types-BCsOeYI6.js +1 -0
- package/dist/viewer/underline-CT_nGhA9.js +1 -0
- package/dist/viewer/undo-2-B-JiyKIl.js +1 -0
- package/dist/viewer/upload-DffL3XsM.js +1 -0
- package/dist/viewer/url-D8qiZRqE.js +29 -0
- package/dist/viewer/useArtifactFeed-1e4jVUAL.js +1 -0
- package/dist/viewer/useArtifactSocket-wqYKSfgz.js +1 -0
- package/dist/viewer/useAssetBase-4Ut9QhBI.js +1 -0
- package/dist/viewer/useLayerZIndex-D4jsmz12.js +1 -0
- package/dist/viewer/useMedia-CFebB4XU.js +1 -0
- package/dist/viewer/useSandboxFrame-CJmSnwgG.js +1 -0
- package/dist/viewer/useStoryboardData-aWqqHGVH.js +1 -0
- package/dist/viewer/useTypeFavicon-yXOsFZBx.js +1 -0
- package/dist/viewer/vb-BthdM_4N.js +1 -0
- package/dist/viewer/vbscript-D9f6rSsU.js +1 -0
- package/dist/viewer/velocity-CqftRsjg.js +1 -0
- package/dist/viewer/verilog-CjI9Y6RI.js +1 -0
- package/dist/viewer/vhdl-kS471soi.js +1 -0
- package/dist/viewer/video-DKoRqEZW.js +1 -0
- package/dist/viewer/view-ClWzCAjM.js +3 -0
- package/dist/viewer/viewport-CFJHn_Y6--n1vZkKz.js +1 -0
- package/dist/viewer/webidl-D5jiJvOU.js +1 -0
- package/dist/viewer/xquery-BKJx4mf9.js +1 -0
- package/dist/viewer/yacas-CXXgtw0p.js +1 -0
- package/dist/viewer/z80-Co3PbHdE.js +1 -0
- package/dist/viewer/zoom-out-DsmGFv1v.js +1 -0
- package/package.json +124 -19
|
@@ -0,0 +1,595 @@
|
|
|
1
|
+
import { S as e, _ as t, b as n, f as r, g as i, s as a, u as o } from "./diagram-D4QtUYG0.js";
|
|
2
|
+
import { _ as s, f as c, i as l, o as u, s as d, u as f, x as p } from "./E3FWOBN4-BtJPMX8M.js";
|
|
3
|
+
// ../../node_modules/.pnpm/pele@1.10.0/node_modules/pele/dist/esm/chunks/NY2EJWPH.js
|
|
4
|
+
function m(e) {
|
|
5
|
+
let t = e.trim();
|
|
6
|
+
return t.length >= 2 && t.startsWith("\"") && t.endsWith("\"") ? t.slice(1, -1) : t;
|
|
7
|
+
}
|
|
8
|
+
function h(e) {
|
|
9
|
+
return e.map(m).sort();
|
|
10
|
+
}
|
|
11
|
+
var g = class {
|
|
12
|
+
type = "venn";
|
|
13
|
+
title;
|
|
14
|
+
subsets = [];
|
|
15
|
+
textNodes = [];
|
|
16
|
+
styles = [];
|
|
17
|
+
known = /* @__PURE__ */ new Set();
|
|
18
|
+
current;
|
|
19
|
+
indent = !1;
|
|
20
|
+
setDiagramTitle(e) {
|
|
21
|
+
this.title = e;
|
|
22
|
+
}
|
|
23
|
+
addSubsetData(e, t, n) {
|
|
24
|
+
let r = h(e);
|
|
25
|
+
this.current = r, r.length === 1 && this.known.add(r[0]), this.subsets.push({
|
|
26
|
+
sets: r,
|
|
27
|
+
size: n ?? 10 / e.length ** 2,
|
|
28
|
+
label: t ? m(t) : void 0
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
addTextData(e, t, n) {
|
|
32
|
+
this.textNodes.push({
|
|
33
|
+
sets: h(e),
|
|
34
|
+
id: m(t),
|
|
35
|
+
label: n ? m(n) : void 0
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
addStyleData(e, t) {
|
|
39
|
+
let n = /* @__PURE__ */ new Map();
|
|
40
|
+
for (let [e, r] of t) n.set(e, r && m(r));
|
|
41
|
+
this.styles.push({
|
|
42
|
+
targets: h(e),
|
|
43
|
+
styles: n
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
validateUnionIdentifiers(e) {
|
|
47
|
+
let t = e.map(m).filter((e) => !this.known.has(e));
|
|
48
|
+
if (t.length > 0) throw new r(`unknown set identifier: ${t.join(", ")}`, "semantic", { type: "venn" });
|
|
49
|
+
}
|
|
50
|
+
getCurrentSets() {
|
|
51
|
+
return this.current;
|
|
52
|
+
}
|
|
53
|
+
getIndentMode() {
|
|
54
|
+
return this.indent;
|
|
55
|
+
}
|
|
56
|
+
setIndentMode(e) {
|
|
57
|
+
this.indent = e;
|
|
58
|
+
}
|
|
59
|
+
}, _ = [
|
|
60
|
+
"$end",
|
|
61
|
+
"INVALID",
|
|
62
|
+
"EOF",
|
|
63
|
+
"NEWLINE",
|
|
64
|
+
"VENN",
|
|
65
|
+
"TITLE",
|
|
66
|
+
"SET",
|
|
67
|
+
"UNION",
|
|
68
|
+
"TEXT",
|
|
69
|
+
"INDENT_TEXT",
|
|
70
|
+
"STYLE",
|
|
71
|
+
"BRACKET_LABEL",
|
|
72
|
+
"NUMERIC",
|
|
73
|
+
"HEXCOLOR",
|
|
74
|
+
"RGBCOLOR",
|
|
75
|
+
"RGBACOLOR",
|
|
76
|
+
"IDENTIFIER",
|
|
77
|
+
"STRING",
|
|
78
|
+
"COMMA",
|
|
79
|
+
"COLON"
|
|
80
|
+
], v = [
|
|
81
|
+
["venn-beta", 4],
|
|
82
|
+
["set", 6],
|
|
83
|
+
["union", 7],
|
|
84
|
+
["text", 8],
|
|
85
|
+
["style", 10]
|
|
86
|
+
], y = class {
|
|
87
|
+
constructor(e, t) {
|
|
88
|
+
this.src = e, this.host = t;
|
|
89
|
+
}
|
|
90
|
+
src;
|
|
91
|
+
host;
|
|
92
|
+
text = "";
|
|
93
|
+
start = 0;
|
|
94
|
+
at = 0;
|
|
95
|
+
lineStart = !1;
|
|
96
|
+
ended = !1;
|
|
97
|
+
word(e, t) {
|
|
98
|
+
let n = this.src;
|
|
99
|
+
for (let r = 0; r < t.length; r++) {
|
|
100
|
+
let i = n.charCodeAt(e + r), a = t.charCodeAt(r);
|
|
101
|
+
if (i !== a && (i + 32 !== a || i < 65 || i > 90)) return !1;
|
|
102
|
+
}
|
|
103
|
+
return !0;
|
|
104
|
+
}
|
|
105
|
+
keyword(e, n) {
|
|
106
|
+
return this.word(e, n) && !t(this.src.charCodeAt(e + n.length));
|
|
107
|
+
}
|
|
108
|
+
color(e, t) {
|
|
109
|
+
let r = this.src, a = e + 1;
|
|
110
|
+
for (let e = 0; e < t; e++) {
|
|
111
|
+
for (; i(r.charCodeAt(a));) a++;
|
|
112
|
+
let o = a;
|
|
113
|
+
for (; n(r.charCodeAt(a)) || r.charCodeAt(a) === 46;) a++;
|
|
114
|
+
if (a === o) return -1;
|
|
115
|
+
for (; i(r.charCodeAt(a));) a++;
|
|
116
|
+
if (r.charCodeAt(a) !== (e === t - 1 ? 41 : 44)) return -1;
|
|
117
|
+
a++;
|
|
118
|
+
}
|
|
119
|
+
return a;
|
|
120
|
+
}
|
|
121
|
+
afterLineFeed(e) {
|
|
122
|
+
let t = e - 1;
|
|
123
|
+
for (; this.src.charCodeAt(t) === 32 || this.src.charCodeAt(t) === 9;) t--;
|
|
124
|
+
return this.src.charCodeAt(t) === 10;
|
|
125
|
+
}
|
|
126
|
+
lineEnd(e) {
|
|
127
|
+
let t = this.src.indexOf("\n", e);
|
|
128
|
+
return t === -1 ? this.src.length : t;
|
|
129
|
+
}
|
|
130
|
+
next() {
|
|
131
|
+
let r = this.src, a = r.length;
|
|
132
|
+
for (;;) {
|
|
133
|
+
let o = this.at;
|
|
134
|
+
if (this.start = o, this.text = "", o >= a) return this.ended ? 0 : (this.ended = !0, 2);
|
|
135
|
+
let s = r.charCodeAt(o);
|
|
136
|
+
if (s === 37 && r.charCodeAt(o + 1) === 37 && r.charCodeAt(o + 2) !== 123) this.at = this.lineEnd(o + 2);
|
|
137
|
+
else if (this.lineStart && this.word(o, "title") && this.afterLineFeed(o) && r.slice(o + 5, this.lineEnd(o + 5)).trim() === "") {
|
|
138
|
+
let e = this.lineEnd(o + 5);
|
|
139
|
+
for (; r.charCodeAt(e) === 10 || r.charCodeAt(e) === 13;) e++;
|
|
140
|
+
this.at = e;
|
|
141
|
+
} else {
|
|
142
|
+
if (this.lineStart) {
|
|
143
|
+
if (s === 32 || s === 9) {
|
|
144
|
+
let e = o + 1;
|
|
145
|
+
for (; r.charCodeAt(e) === 32 || r.charCodeAt(e) === 9;) e++;
|
|
146
|
+
if (this.at = e, this.keyword(e, "text") && this.host.getIndentMode()) return this.at = e + 4, this.lineStart = !1, this.text = r.slice(o, e), 9;
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
s !== 10 && s !== 13 && (this.host.setIndentMode(!1), this.lineStart = !1);
|
|
150
|
+
}
|
|
151
|
+
if (s === 10 || s === 13) {
|
|
152
|
+
for (o++; r.charCodeAt(o) === 10 || r.charCodeAt(o) === 13;) o++;
|
|
153
|
+
return this.lineStart = !0, this.token(3, o);
|
|
154
|
+
}
|
|
155
|
+
if (s === 37 && r.charCodeAt(o + 1) === 37) this.at = this.lineEnd(o);
|
|
156
|
+
else if (s === 32 || s === 9) {
|
|
157
|
+
for (o++; r.charCodeAt(o) === 32 || r.charCodeAt(o) === 9;) o++;
|
|
158
|
+
this.at = o;
|
|
159
|
+
} else {
|
|
160
|
+
if ((s | 32) >= 97 && (s | 32) <= 122 || s === 95) {
|
|
161
|
+
let e = r.charCodeAt(o + 5);
|
|
162
|
+
if (this.word(o, "title") && i(e) && e !== 10 && e !== 13) {
|
|
163
|
+
let e = o + 6;
|
|
164
|
+
for (; e < a;) {
|
|
165
|
+
let t = r.charCodeAt(e);
|
|
166
|
+
if (t === 35 || t === 10 || t === 59) break;
|
|
167
|
+
e++;
|
|
168
|
+
}
|
|
169
|
+
if (e > o + 6) return this.token(5, e);
|
|
170
|
+
}
|
|
171
|
+
for (let [e, t] of v) if (this.keyword(o, e)) return this.token(t, o + e.length);
|
|
172
|
+
if (this.word(o, "rgb")) {
|
|
173
|
+
let e = (r.charCodeAt(o + 3) | 32) == 97, t = o + (e ? 4 : 3), n = r.charCodeAt(t) === 40 ? this.color(t, e ? 4 : 3) : -1;
|
|
174
|
+
if (n !== -1) return this.token(e ? 15 : 14, n);
|
|
175
|
+
}
|
|
176
|
+
for (o++; t(r.charCodeAt(o)) || r.charCodeAt(o) === 45;) o++;
|
|
177
|
+
return this.token(16, o);
|
|
178
|
+
}
|
|
179
|
+
if (s === 91) {
|
|
180
|
+
if (r.charCodeAt(o + 1) === 34) {
|
|
181
|
+
let e = r.indexOf("\"", o + 2);
|
|
182
|
+
return e === -1 || r.charCodeAt(e + 1) !== 93 ? 1 : (this.at = e + 2, this.text = r.slice(o + 2, e), 11);
|
|
183
|
+
}
|
|
184
|
+
let e = o + 1;
|
|
185
|
+
for (; e < a && r.charCodeAt(e) !== 93 && r.charCodeAt(e) !== 34;) e++;
|
|
186
|
+
return e === o + 1 || r.charCodeAt(e) !== 93 ? 1 : (this.at = e + 1, this.text = r.slice(o + 1, e).trim(), 11);
|
|
187
|
+
}
|
|
188
|
+
if (n(s) || s === 46 || s === 43 || s === 45) {
|
|
189
|
+
(s === 43 || s === 45) && o++;
|
|
190
|
+
let e = o;
|
|
191
|
+
for (; n(r.charCodeAt(o));) o++;
|
|
192
|
+
if (o > e) {
|
|
193
|
+
if (r.charCodeAt(o) === 46 && n(r.charCodeAt(o + 1))) for (o += 2; n(r.charCodeAt(o));) o++;
|
|
194
|
+
} else if (r.charCodeAt(o) === 46 && n(r.charCodeAt(o + 1))) for (o += 2; n(r.charCodeAt(o));) o++;
|
|
195
|
+
else return 1;
|
|
196
|
+
return this.token(12, o);
|
|
197
|
+
}
|
|
198
|
+
if (s === 35) {
|
|
199
|
+
let t = o + 1;
|
|
200
|
+
for (; t < o + 9 && e(r.charCodeAt(t));) t++;
|
|
201
|
+
return t >= o + 4 ? this.token(13, t) : 1;
|
|
202
|
+
}
|
|
203
|
+
if (s === 34) {
|
|
204
|
+
let e = r.indexOf("\"", o + 1);
|
|
205
|
+
return e === -1 ? 1 : this.token(17, e + 1);
|
|
206
|
+
}
|
|
207
|
+
return s === 44 ? this.token(18, o + 1) : s === 58 ? this.token(19, o + 1) : 1;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
token(e, t) {
|
|
213
|
+
return this.text = this.src.slice(this.at, t), this.at = t, e;
|
|
214
|
+
}
|
|
215
|
+
}, b = "'EOF', 'NEWLINE', 'TITLE', 'SET', 'UNION', 'TEXT', 'INDENT_TEXT', 'STYLE'", x = "'NUMERIC', 'IDENTIFIER', 'STRING', 'HEXCOLOR', 'RGBCOLOR', 'RGBACOLOR'";
|
|
216
|
+
function S(e, t) {
|
|
217
|
+
let n = new y(e, t), i = -1, o = () => i === -1 ? i = n.next() : i, s = (t) => {
|
|
218
|
+
throw o() === 1 ? a("venn", e, n.start, "", !0) : a("venn", e, n.start, `Expecting ${t}, got '${_[i]}'`);
|
|
219
|
+
}, c = () => (i = -1, n.text), l = (e) => (o() !== e && s(`'${_[e]}'`), c()), u = () => (o() !== 16 && i !== 17 && s("'IDENTIFIER', 'STRING'"), c()), d = () => {
|
|
220
|
+
let e = [u()];
|
|
221
|
+
for (; o() === 18;) c(), e.push(u());
|
|
222
|
+
return e;
|
|
223
|
+
}, f = (e, n) => {
|
|
224
|
+
let i = o() === 11 ? c() : void 0, a;
|
|
225
|
+
if (o() === 19 && (c(), a = parseFloat(l(12))), n) {
|
|
226
|
+
if (e.length < 2) throw new r("union requires multiple identifiers", "semantic", { type: "venn" });
|
|
227
|
+
t.validateUnionIdentifiers(e);
|
|
228
|
+
}
|
|
229
|
+
t.addSubsetData(e, i, a), t.setIndentMode(!0);
|
|
230
|
+
}, p = (e) => {
|
|
231
|
+
let n = o();
|
|
232
|
+
n !== 16 && n !== 17 && n !== 12 && s("'NUMERIC', 'IDENTIFIER', 'STRING'");
|
|
233
|
+
let r = c(), i = n !== 12 && o() === 11 ? c() : void 0;
|
|
234
|
+
t.addTextData(e(), r, i);
|
|
235
|
+
}, m = () => {
|
|
236
|
+
let e = d(), n = [];
|
|
237
|
+
for (;;) {
|
|
238
|
+
let e = l(16);
|
|
239
|
+
l(19);
|
|
240
|
+
let t;
|
|
241
|
+
if (o() === 17) t = c();
|
|
242
|
+
else {
|
|
243
|
+
let e = [];
|
|
244
|
+
for (; o() === 16 || i >= 12 && i <= 15;) e.push(c());
|
|
245
|
+
e.length === 0 && s(x), t = e.join(" ");
|
|
246
|
+
}
|
|
247
|
+
if (n.push([e, t]), o() !== 18) break;
|
|
248
|
+
c();
|
|
249
|
+
}
|
|
250
|
+
t.addStyleData(e, n);
|
|
251
|
+
};
|
|
252
|
+
for (; o() === 3;) c();
|
|
253
|
+
for (l(4);;) {
|
|
254
|
+
let e = o();
|
|
255
|
+
if (e === 2) return;
|
|
256
|
+
if ((e < 3 || e > 10 || e === 4) && s(b), c(), e === 5) t.setDiagramTitle(n.text.slice(6));
|
|
257
|
+
else if (e === 6) f([u()], !1);
|
|
258
|
+
else if (e === 7) f(d(), !0);
|
|
259
|
+
else if (e === 8) {
|
|
260
|
+
let e = d();
|
|
261
|
+
p(() => e);
|
|
262
|
+
} else e === 9 ? p(() => {
|
|
263
|
+
let e = t.getCurrentSets();
|
|
264
|
+
if (!e) throw new r("text requires set", "semantic", { type: "venn" });
|
|
265
|
+
return e;
|
|
266
|
+
}) : e === 10 && m();
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
var C = Math.PI * 2;
|
|
270
|
+
function w(e) {
|
|
271
|
+
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
|
272
|
+
for (let r of e) t.add(JSON.stringify([...r.sets].sort())), r.sets.length === 1 && n.set(r.sets[0], r.size);
|
|
273
|
+
let r = [];
|
|
274
|
+
for (let i of e) {
|
|
275
|
+
if (i.sets.length < 3) continue;
|
|
276
|
+
let e = [...i.sets].sort();
|
|
277
|
+
for (let i = 0; i < e.length - 1; i++) for (let a = i + 1; a < e.length; a++) {
|
|
278
|
+
let o = [e[i], e[a]], s = JSON.stringify(o);
|
|
279
|
+
if (t.has(s)) continue;
|
|
280
|
+
t.add(s);
|
|
281
|
+
let c = n.get(o[0]), l = n.get(o[1]);
|
|
282
|
+
r.push({
|
|
283
|
+
sets: o,
|
|
284
|
+
size: c !== void 0 && l !== void 0 ? Math.min(c, l) / 4 : 2.5,
|
|
285
|
+
label: ""
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
return r.length > 0 ? [...e, ...r] : e;
|
|
290
|
+
}
|
|
291
|
+
function T(e, t, n) {
|
|
292
|
+
if (n >= e + t) return 0;
|
|
293
|
+
let r = Math.min(e, t);
|
|
294
|
+
if (n <= Math.abs(e - t)) return Math.PI * r * r;
|
|
295
|
+
let i = e * e * Math.acos((n * n + e * e - t * t) / (2 * n * e)), a = t * t * Math.acos((n * n + t * t - e * e) / (2 * n * t)), o = .5 * Math.sqrt(Math.max((-n + e + t) * (n + e - t) * (n - e + t) * (n + e + t), 0));
|
|
296
|
+
return i + a - o;
|
|
297
|
+
}
|
|
298
|
+
function E(e, t, n) {
|
|
299
|
+
let r = Math.abs(e - t), i = e + t;
|
|
300
|
+
if (!(n > 0)) return i;
|
|
301
|
+
if (n >= Math.PI * Math.min(e, t) ** 2) return r;
|
|
302
|
+
for (let a = 0; a < 48; a++) {
|
|
303
|
+
let a = (r + i) / 2;
|
|
304
|
+
T(e, t, a) > n ? r = a : i = a;
|
|
305
|
+
}
|
|
306
|
+
return (r + i) / 2;
|
|
307
|
+
}
|
|
308
|
+
function D(e, t, n, r, i, a) {
|
|
309
|
+
let o = 1 / 0;
|
|
310
|
+
for (let n of t) {
|
|
311
|
+
let t = e[n], s = r - t.x, c = i - t.y, l = t.r - Math.sqrt(s * s + c * c);
|
|
312
|
+
if (l < o) {
|
|
313
|
+
if (l < a) return l;
|
|
314
|
+
o = l;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
for (let t of n) {
|
|
318
|
+
let n = e[t], s = r - n.x, c = i - n.y, l = Math.sqrt(s * s + c * c) - n.r;
|
|
319
|
+
if (l < o) {
|
|
320
|
+
if (l < a) return l;
|
|
321
|
+
o = l;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
return o;
|
|
325
|
+
}
|
|
326
|
+
function O(e, t, n) {
|
|
327
|
+
let r = 0, i = 0, a = e[t[0]];
|
|
328
|
+
for (let n of t) {
|
|
329
|
+
let o = e[n];
|
|
330
|
+
r += o.x / t.length, i += o.y / t.length, o.r < a.r && (a = o);
|
|
331
|
+
}
|
|
332
|
+
let o = a.r, s = r, c = i, l = D(e, t, n, s, c, -1 / 0), u = 0, d = (a, d) => {
|
|
333
|
+
let f = D(e, t, n, a, d, l - o * 1e-9);
|
|
334
|
+
if (!(f > l - o * 1e-9)) return !1;
|
|
335
|
+
let p = Math.hypot(a - r, d - i);
|
|
336
|
+
return f > l + o * 1e-9 || p < u - o * 1e-9 ? (l = f, u = p, s = a, c = d, !0) : !1;
|
|
337
|
+
};
|
|
338
|
+
for (let e = -10; e <= 10; e++) for (let t = -10; t <= 10; t++) t * t + e * e <= 100 && d(a.x + t * o / 10, a.y + e * o / 10);
|
|
339
|
+
let f = o / 10;
|
|
340
|
+
for (let e = 0; e < 40 && f > o * 1e-6; e++) {
|
|
341
|
+
let e = !1;
|
|
342
|
+
for (let t = 0; t < 8; t++) {
|
|
343
|
+
let n = t * C / 8;
|
|
344
|
+
d(s + Math.cos(n) * f, c + Math.sin(n) * f) && (e = !0);
|
|
345
|
+
}
|
|
346
|
+
e || (f /= 2);
|
|
347
|
+
}
|
|
348
|
+
return {
|
|
349
|
+
x: s,
|
|
350
|
+
y: c,
|
|
351
|
+
margin: l
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
function k(e) {
|
|
355
|
+
let t = /* @__PURE__ */ new Map();
|
|
356
|
+
for (let n of e) for (let e of n.sets) t.has(e) || t.set(e, 10);
|
|
357
|
+
for (let n of e) n.sets.length === 1 && t.set(n.sets[0], n.size);
|
|
358
|
+
let n = /* @__PURE__ */ new Map(), r = [], i = 0;
|
|
359
|
+
for (let e of t.values()) Number.isFinite(e) && e > i && (i = e);
|
|
360
|
+
i === 0 && (i = 10);
|
|
361
|
+
let a = Math.sqrt(i / Math.PI);
|
|
362
|
+
for (let [e, i] of t) {
|
|
363
|
+
n.set(e, r.length);
|
|
364
|
+
let t = Number.isFinite(i) && i > 0 ? Math.sqrt(i / Math.PI) : 0;
|
|
365
|
+
r.push({
|
|
366
|
+
id: e,
|
|
367
|
+
x: 0,
|
|
368
|
+
y: 0,
|
|
369
|
+
r: Math.max(t, a * .3)
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
let o = r.length;
|
|
373
|
+
if (o < 2) return r;
|
|
374
|
+
let s = /* @__PURE__ */ new Map();
|
|
375
|
+
for (let t of w(e)) {
|
|
376
|
+
if (t.sets.length !== 2) continue;
|
|
377
|
+
let e = n.get(t.sets[0]), r = n.get(t.sets[1]);
|
|
378
|
+
e !== r && s.set(Math.min(e, r) * o + Math.max(e, r), t.size);
|
|
379
|
+
}
|
|
380
|
+
let c = /* @__PURE__ */ new Map();
|
|
381
|
+
for (let [e, t] of s) c.set(e, E(r[Math.floor(e / o)].r, r[e % o].r, t));
|
|
382
|
+
let l = a * .15, u = (e, t) => c.get(e * o + t) ?? r[e].r + r[t].r + l;
|
|
383
|
+
if (o === 2) return r[1].x = u(0, 1), r;
|
|
384
|
+
if (o === 3) {
|
|
385
|
+
let t = u(0, 1), n = u(0, 2), i = u(1, 2), o = e.some((e) => new Set(e.sets).size === 3);
|
|
386
|
+
for (let e = 0; e < 40; e++) {
|
|
387
|
+
let e = t > 0 ? (t * t + n * n - i * i) / (2 * t) : 0;
|
|
388
|
+
if (r[1].x = t, r[2].x = Math.max(-n, Math.min(n, e)), r[2].y = Math.sqrt(Math.max(n * n - e * e, 0)), !o || O(r, [
|
|
389
|
+
0,
|
|
390
|
+
1,
|
|
391
|
+
2
|
|
392
|
+
], []).margin > a * .12) break;
|
|
393
|
+
t *= .94, n *= .94, i *= .94;
|
|
394
|
+
}
|
|
395
|
+
return r;
|
|
396
|
+
}
|
|
397
|
+
let d = 0;
|
|
398
|
+
for (let e of r) d += 2 * e.r + l;
|
|
399
|
+
let f = Math.min(300, Math.floor(3e6 / (o * o)));
|
|
400
|
+
if (o <= 64) {
|
|
401
|
+
let e = d / C;
|
|
402
|
+
r.forEach((t, n) => {
|
|
403
|
+
let r = n * C / o - Math.PI / 2;
|
|
404
|
+
t.x = Math.cos(r) * e, t.y = Math.sin(r) * e;
|
|
405
|
+
});
|
|
406
|
+
} else {
|
|
407
|
+
let e = Math.ceil(Math.sqrt(o)), t = 2 * a + l;
|
|
408
|
+
r.forEach((n, r) => {
|
|
409
|
+
n.x = r % e * t, n.y = Math.floor(r / e) * t;
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
let p = new Float64Array(o), m = new Float64Array(o), h = new Int32Array(o);
|
|
413
|
+
for (let e = 0; e < f; e++) {
|
|
414
|
+
p.fill(0), m.fill(0), h.fill(0);
|
|
415
|
+
for (let e = 0; e < o; e++) for (let t = e + 1; t < o; t++) {
|
|
416
|
+
let n = c.get(e * o + t), i = r[e].r + r[t].r + l, a = r[t].x - r[e].x, s = r[t].y - r[e].y, u = Math.hypot(a, s);
|
|
417
|
+
if (n === void 0 && u >= i) continue;
|
|
418
|
+
u < 1e-9 && (a = Math.cos(e + t), s = Math.sin(e + t), u = 1);
|
|
419
|
+
let d = (u - (n ?? i)) / 2 / u;
|
|
420
|
+
p[e] += a * d, m[e] += s * d, p[t] -= a * d, m[t] -= s * d, h[e]++, h[t]++;
|
|
421
|
+
}
|
|
422
|
+
for (let e = 0; e < o; e++) h[e] !== 0 && (r[e].x += p[e] / h[e], r[e].y += m[e] / h[e]);
|
|
423
|
+
}
|
|
424
|
+
return r;
|
|
425
|
+
}
|
|
426
|
+
function A(e, t) {
|
|
427
|
+
let n = (e) => `M${t(e.x - e.r)},${t(e.y)}A${t(e.r)},${t(e.r)} 0 1 1 ${t(e.x + e.r)},${t(e.y)}A${t(e.r)},${t(e.r)} 0 1 1 ${t(e.x - e.r)},${t(e.y)}Z`;
|
|
428
|
+
if (e.length === 1) return n(e[0]);
|
|
429
|
+
let r = (t, n, r, i) => {
|
|
430
|
+
for (let a of e) if (a !== r && a !== i && Math.hypot(t - a.x, n - a.y) > a.r * (1 + 1e-9)) return !1;
|
|
431
|
+
return !0;
|
|
432
|
+
}, i = [];
|
|
433
|
+
for (let t = 0; t < e.length; t++) for (let n = t + 1; n < e.length; n++) {
|
|
434
|
+
let a = e[t], o = e[n], s = Math.hypot(o.x - a.x, o.y - a.y);
|
|
435
|
+
if (s >= a.r + o.r || s <= Math.abs(a.r - o.r) || s === 0) continue;
|
|
436
|
+
let c = (a.r * a.r - o.r * o.r + s * s) / (2 * s), l = Math.sqrt(Math.max(a.r * a.r - c * c, 0)), u = a.x + (o.x - a.x) * c / s, d = a.y + (o.y - a.y) * c / s;
|
|
437
|
+
for (let e of [1, -1]) {
|
|
438
|
+
let t = u + e * l * (o.y - a.y) / s, n = d - e * l * (o.x - a.x) / s;
|
|
439
|
+
r(t, n, a, o) && i.push({
|
|
440
|
+
x: t,
|
|
441
|
+
y: n,
|
|
442
|
+
a,
|
|
443
|
+
b: o
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
if (i.length < 2) {
|
|
448
|
+
let t = e[0];
|
|
449
|
+
for (let n of e) n.r < t.r && (t = n);
|
|
450
|
+
for (let n of e) if (n !== t && Math.hypot(n.x - t.x, n.y - t.y) + t.r > n.r * (1 + 1e-9)) return "";
|
|
451
|
+
return n(t);
|
|
452
|
+
}
|
|
453
|
+
let a = 0, o = 0;
|
|
454
|
+
for (let e of i) a += e.x / i.length, o += e.y / i.length;
|
|
455
|
+
i.sort((e, t) => Math.atan2(e.y - o, e.x - a) - Math.atan2(t.y - o, t.x - a));
|
|
456
|
+
let s = "";
|
|
457
|
+
for (let e = 0; e < i.length; e++) {
|
|
458
|
+
let n = i[e], r = i[(e + 1) % i.length];
|
|
459
|
+
e === 0 && (s = `M${t(n.x)},${t(n.y)}`);
|
|
460
|
+
let a, o = 0, c = 1 / 0;
|
|
461
|
+
for (let e of [n.a, n.b]) {
|
|
462
|
+
if (e !== r.a && e !== r.b) continue;
|
|
463
|
+
let t = Math.atan2(n.y - e.y, n.x - e.x), i = Math.atan2(r.y - e.y, r.x - e.x) - t;
|
|
464
|
+
i <= 0 && (i += C);
|
|
465
|
+
let s = e.x + e.r * Math.cos(t + i / 2), l = e.y + e.r * Math.sin(t + i / 2), u = Math.hypot(s - (n.x + r.x) / 2, l - (n.y + r.y) / 2);
|
|
466
|
+
u < c && (c = u, a = e, o = +(i > Math.PI));
|
|
467
|
+
}
|
|
468
|
+
s += a === void 0 ? `L${t(r.x)},${t(r.y)}` : `A${t(a.r)},${t(a.r)} 0 ${o} 1 ${t(r.x)},${t(r.y)}`;
|
|
469
|
+
}
|
|
470
|
+
return s + "Z";
|
|
471
|
+
}
|
|
472
|
+
var j = 100, M = 1.6, N = d([]);
|
|
473
|
+
function P(e) {
|
|
474
|
+
return e.length === 1 ? e[0] : JSON.stringify(e);
|
|
475
|
+
}
|
|
476
|
+
function F(e, t, n) {
|
|
477
|
+
let r = n.fontSize ?? 16, i = Math.round(r * .875), a = Math.round(r * .8125), h = n.measurer ?? o(n.fontFamily, n.fontFamilyMono), g = n.padding ?? 8, _ = k(e.subsets), v = /* @__PURE__ */ new Map();
|
|
478
|
+
_.forEach((e, t) => v.set(e.id, t));
|
|
479
|
+
let y = /* @__PURE__ */ new Map();
|
|
480
|
+
for (let { targets: t, styles: n } of e.styles) {
|
|
481
|
+
let e = P(t), r = y.get(e);
|
|
482
|
+
r || y.set(e, r = /* @__PURE__ */ new Map());
|
|
483
|
+
for (let [e, t] of n) r.set(e, t);
|
|
484
|
+
}
|
|
485
|
+
let b = (e) => {
|
|
486
|
+
let t = y.get(e);
|
|
487
|
+
if (!t) return N;
|
|
488
|
+
let n = [];
|
|
489
|
+
for (let [e, r] of t) n.push(`${e}:${r}`);
|
|
490
|
+
return d(n);
|
|
491
|
+
}, x = _.map(() => []);
|
|
492
|
+
for (let e = 0; e < _.length; e++) for (let t = e + 1; t < _.length; t++) Math.hypot(_[e].x - _[t].x, _[e].y - _[t].y) < _[e].r + _[t].r && (x[e].push(t), x[t].push(e));
|
|
493
|
+
let S = /* @__PURE__ */ new Map();
|
|
494
|
+
for (let t of e.subsets) S.set(P(t.sets), t);
|
|
495
|
+
let C = /* @__PURE__ */ new Map();
|
|
496
|
+
for (let [e, t] of S) {
|
|
497
|
+
let n = [...new Set(t.sets)], a = n.map((e) => v.get(e)), o = new Set(a), s = a[0];
|
|
498
|
+
for (let e of a) _[e].r < _[s].r && (s = e);
|
|
499
|
+
let c = b(e), l = t.label ?? (t.sets.length === 1 ? t.sets[0] : void 0), u = +!!c.bold | (c.italic ? 2 : 0), d = O(_, a, x[s].filter((e) => !o.has(e)));
|
|
500
|
+
d.margin < _[s].r * .2 && (d = O(_, a, []));
|
|
501
|
+
let p = {
|
|
502
|
+
sets: n,
|
|
503
|
+
inside: a,
|
|
504
|
+
spot: d,
|
|
505
|
+
lines: [],
|
|
506
|
+
style: c
|
|
507
|
+
};
|
|
508
|
+
if (l) {
|
|
509
|
+
let e = n.length === 1 ? r : i;
|
|
510
|
+
p.lines.push({
|
|
511
|
+
id: void 0,
|
|
512
|
+
raw: l,
|
|
513
|
+
size: e,
|
|
514
|
+
base: u,
|
|
515
|
+
label: f(l, !1, h, e, 4e3, u)
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
C.set(e, p);
|
|
519
|
+
}
|
|
520
|
+
for (let t of e.textNodes) {
|
|
521
|
+
let e = t.label ?? t.id;
|
|
522
|
+
C.get(P(t.sets))?.lines.push({
|
|
523
|
+
id: t.id,
|
|
524
|
+
raw: e,
|
|
525
|
+
size: a,
|
|
526
|
+
base: 0,
|
|
527
|
+
label: f(e, !1, h, a, 4e3)
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
let w = 0;
|
|
531
|
+
for (let e of _) e.r > w && (w = e.r);
|
|
532
|
+
let T = w > 0 ? j / w : 1, E = 1;
|
|
533
|
+
for (let e of C.values()) {
|
|
534
|
+
if (e.spot.margin <= 0) continue;
|
|
535
|
+
let t = 0, n = 0;
|
|
536
|
+
for (let r of e.lines) t = Math.max(t, r.label.width), n += r.label.height;
|
|
537
|
+
let r = Math.hypot(t, n) / 2 + 4;
|
|
538
|
+
E = Math.max(E, Math.min(r / (e.spot.margin * T), M));
|
|
539
|
+
}
|
|
540
|
+
T *= E;
|
|
541
|
+
for (let e of C.values()) {
|
|
542
|
+
let t = Math.max(e.spot.margin * T * 1.8, 72);
|
|
543
|
+
for (let n of e.lines) n.label.width > t && (n.label = f(n.raw, !1, h, n.size, t, n.base));
|
|
544
|
+
}
|
|
545
|
+
let D = 1 / 0, F = 1 / 0, I = -1 / 0, L = -1 / 0;
|
|
546
|
+
for (let e of _) D = Math.min(D, (e.x - e.r) * T), F = Math.min(F, (e.y - e.r) * T), I = Math.max(I, (e.x + e.r) * T), L = Math.max(L, (e.y + e.r) * T);
|
|
547
|
+
for (let e of C.values()) {
|
|
548
|
+
let t = 0, n = 0;
|
|
549
|
+
for (let r of e.lines) t = Math.max(t, r.label.width), n += r.label.height;
|
|
550
|
+
D = Math.min(D, e.spot.x * T - t / 2), I = Math.max(I, e.spot.x * T + t / 2), F = Math.min(F, e.spot.y * T - n / 2), L = Math.max(L, e.spot.y * T + n / 2);
|
|
551
|
+
}
|
|
552
|
+
_.length === 0 && (D = F = I = L = 0);
|
|
553
|
+
let R = f(e.title && m(e.title), !1, h, r, 4e3, 1), z = R.height > 0 ? R.height + 12 : 0, B = Math.max(I - D, R.width), V = g + (B - (I - D)) / 2 - D, H = g + z - F, U = Math.ceil(B + 2 * g), W = Math.ceil(L - F + z + 2 * g), G = _.map((e) => ({
|
|
554
|
+
id: e.id,
|
|
555
|
+
x: e.x * T + V,
|
|
556
|
+
y: e.y * T + H,
|
|
557
|
+
r: e.r * T
|
|
558
|
+
})), K = "";
|
|
559
|
+
G.forEach((e, t) => {
|
|
560
|
+
let n = c(t), r = C.get(e.id)?.style ?? N;
|
|
561
|
+
K += `<circle class="pele-venn-set" data-id="${l(e.id)}" cx="${p(e.x)}" cy="${p(e.y)}" r="${p(e.r)}" fill="${n}" fill-opacity="0.2" stroke="${n}"${r.shape}/>`;
|
|
562
|
+
});
|
|
563
|
+
let q = "", J = "";
|
|
564
|
+
for (let e of C.values()) {
|
|
565
|
+
let t = l(e.sets.join("|"));
|
|
566
|
+
if (e.sets.length > 1 && e.style.shape !== "") {
|
|
567
|
+
let n = A(e.inside.map((e) => G[e]), p);
|
|
568
|
+
n !== "" && (q += `<path class="pele-venn-overlap" data-id="${t}" d="${n}" fill="none"${e.style.shape}/>`);
|
|
569
|
+
}
|
|
570
|
+
let n = 0;
|
|
571
|
+
for (let t of e.lines) n += t.label.height;
|
|
572
|
+
if (n === 0) continue;
|
|
573
|
+
let i = e.spot.x * T + V, o = e.spot.y * T + H - n / 2, s = "";
|
|
574
|
+
for (let t of e.lines) {
|
|
575
|
+
let n = t.id === void 0 ? ` class="pele-label"${t.size === r ? "" : ` font-size="${t.size}"`}${e.style.text}` : ` class="pele-venn-text" data-id="${l(t.id)}" font-size="${a}" fill="var(--_m)"${b(t.id).text}`;
|
|
576
|
+
s += u(t.label, i, o + t.label.height / 2, n), o += t.label.height;
|
|
577
|
+
}
|
|
578
|
+
J += `<g class="pele-venn-region" data-id="${t}">${s}</g>`;
|
|
579
|
+
}
|
|
580
|
+
return {
|
|
581
|
+
svg: s("venn", U, W, r, n, {}, u(R, U / 2, g + R.height / 2, " class=\"pele-title\" font-weight=\"var(--_tw)\"") + `<g class="pele-venn-sets">${K}</g>` + (q ? `<g class="pele-venn-overlaps">${q}</g>` : "") + (J ? `<g class="pele-venn-labels">${J}</g>` : "")),
|
|
582
|
+
width: U,
|
|
583
|
+
height: W,
|
|
584
|
+
links: []
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
var I = {
|
|
588
|
+
type: "venn",
|
|
589
|
+
parse(e, t, n) {
|
|
590
|
+
let r = new g();
|
|
591
|
+
return n && (r.title = n), S(e, r), r;
|
|
592
|
+
},
|
|
593
|
+
render: F
|
|
594
|
+
};
|
|
595
|
+
export { I as venn };
|