folderview 0.0.0-stage → 0.2.1
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/LICENSE +21 -0
- package/README.md +282 -2
- package/dist/cli.js +115 -0
- package/dist/client/assets/app.css +1 -0
- package/dist/client/assets/chunks/abap-EINPUMCJ.js +1 -0
- package/dist/client/assets/chunks/abnfDiagram-S7VZAUFO-W2CM2W6D.js +1 -0
- package/dist/client/assets/chunks/actionscript-3-O776AQUO.js +1 -0
- package/dist/client/assets/chunks/ada-WLOTXRTV.js +1 -0
- package/dist/client/assets/chunks/ahk-EF37A2DY.js +1 -0
- package/dist/client/assets/chunks/ahk2-FH4K3CKT.js +1 -0
- package/dist/client/assets/chunks/angular-html-ZALQFV2H.js +1 -0
- package/dist/client/assets/chunks/angular-ts-4IWMF7QO.js +1 -0
- package/dist/client/assets/chunks/apache-44AYOEWM.js +1 -0
- package/dist/client/assets/chunks/apex-XRYPID42.js +1 -0
- package/dist/client/assets/chunks/apl-5HBALFOI.js +1 -0
- package/dist/client/assets/chunks/applescript-2DZEHZEC.js +1 -0
- package/dist/client/assets/chunks/ara-ZGZQBLXL.js +1 -0
- package/dist/client/assets/chunks/architecture-WOLXFQ4H-EJGENNRL.js +1 -0
- package/dist/client/assets/chunks/architectureDiagram-YGSQEFNW-2VHWSKO6.js +36 -0
- package/dist/client/assets/chunks/asciidoc-GSQAKCPO.js +1 -0
- package/dist/client/assets/chunks/asm-BFURM5BK.js +1 -0
- package/dist/client/assets/chunks/astro-VJORWDZJ.js +1 -0
- package/dist/client/assets/chunks/awk-BSHTWXXX.js +1 -0
- package/dist/client/assets/chunks/ballerina-HAOQJ4B2.js +1 -0
- package/dist/client/assets/chunks/bat-OSH45EOF.js +1 -0
- package/dist/client/assets/chunks/beancount-RBATIHOV.js +1 -0
- package/dist/client/assets/chunks/berry-CZUIOUM4.js +1 -0
- package/dist/client/assets/chunks/bibtex-KCL2UWHE.js +1 -0
- package/dist/client/assets/chunks/bicep-SZJZB3SG.js +1 -0
- package/dist/client/assets/chunks/bird2-XBF5YQQV.js +1 -0
- package/dist/client/assets/chunks/blade-Q24LEVFC.js +1 -0
- package/dist/client/assets/chunks/blockDiagram-APKKGZFW-53LXSOOT.js +140 -0
- package/dist/client/assets/chunks/bpmnIcons-APHXDYXF-FMBRQNTY.js +1 -0
- package/dist/client/assets/chunks/bsl-TI44NWFB.js +1 -0
- package/dist/client/assets/chunks/c-NLHY4Y4N.js +1 -0
- package/dist/client/assets/chunks/c3-BUTEM6PO.js +1 -0
- package/dist/client/assets/chunks/c4Diagram-KJ2TOQU5-O53G4GQH.js +38 -0
- package/dist/client/assets/chunks/cadence-JIRTEU64.js +1 -0
- package/dist/client/assets/chunks/cairo-3W6NVDNW.js +1 -0
- package/dist/client/assets/chunks/chapel-BPBJ2E7K.js +1 -0
- package/dist/client/assets/chunks/chunk-25KVF5ZE.js +1 -0
- package/dist/client/assets/chunks/chunk-2CJKSQOI.js +1 -0
- package/dist/client/assets/chunks/chunk-2QIJRTWR.js +1 -0
- package/dist/client/assets/chunks/chunk-2ZCRJZGF.js +2 -0
- package/dist/client/assets/chunks/chunk-3ILNDZNY.js +213 -0
- package/dist/client/assets/chunks/chunk-3M2OOQ7S.js +1 -0
- package/dist/client/assets/chunks/chunk-3M57NTNK.js +1 -0
- package/dist/client/assets/chunks/chunk-3MR6DCZJ.js +1 -0
- package/dist/client/assets/chunks/chunk-3WGHS7F7.js +1 -0
- package/dist/client/assets/chunks/chunk-4JK75V33.js +1 -0
- package/dist/client/assets/chunks/chunk-4NXNVEWK.js +1 -0
- package/dist/client/assets/chunks/chunk-4RNNBDFQ.js +1 -0
- package/dist/client/assets/chunks/chunk-4T4NVH7V.js +1 -0
- package/dist/client/assets/chunks/chunk-4TFFBC35.js +1 -0
- package/dist/client/assets/chunks/chunk-4WYBE67P.js +1 -0
- package/dist/client/assets/chunks/chunk-56ITEUFA.js +1 -0
- package/dist/client/assets/chunks/chunk-5DXRE7IH.js +1 -0
- package/dist/client/assets/chunks/chunk-5IMADCNU.js +1 -0
- package/dist/client/assets/chunks/chunk-5XZPGKN4.js +1 -0
- package/dist/client/assets/chunks/chunk-6O32UKSP.js +1 -0
- package/dist/client/assets/chunks/chunk-7BAEB64Q.js +1 -0
- package/dist/client/assets/chunks/chunk-7FMWBHZO.js +1 -0
- package/dist/client/assets/chunks/chunk-7GFDITUT.js +1 -0
- package/dist/client/assets/chunks/chunk-7H4MLBHI.js +1 -0
- package/dist/client/assets/chunks/chunk-7OJ4MEEB.js +1 -0
- package/dist/client/assets/chunks/chunk-7RSEISFE.js +1 -0
- package/dist/client/assets/chunks/chunk-7YNZZQVT.js +1 -0
- package/dist/client/assets/chunks/chunk-AB7TIL2G.js +1 -0
- package/dist/client/assets/chunks/chunk-ADDF76FL.js +1 -0
- package/dist/client/assets/chunks/chunk-AF6UTCD4.js +321 -0
- package/dist/client/assets/chunks/chunk-AJ2K6ASU.js +1 -0
- package/dist/client/assets/chunks/chunk-AUBAENQZ.js +1 -0
- package/dist/client/assets/chunks/chunk-BJEYVZ65.js +1 -0
- package/dist/client/assets/chunks/chunk-BLRM6LXA.js +1 -0
- package/dist/client/assets/chunks/chunk-BOCTYCDZ.js +1 -0
- package/dist/client/assets/chunks/chunk-BU4VRYN7.js +1 -0
- package/dist/client/assets/chunks/chunk-CALYHV7D.js +1 -0
- package/dist/client/assets/chunks/chunk-CF4W3RZ4.js +1 -0
- package/dist/client/assets/chunks/chunk-DCZ2OBSL.js +1 -0
- package/dist/client/assets/chunks/chunk-DUFPBTHD.js +1 -0
- package/dist/client/assets/chunks/chunk-DUICIQBC.js +88 -0
- package/dist/client/assets/chunks/chunk-EH2N475V.js +1 -0
- package/dist/client/assets/chunks/chunk-EHLLNPZT.js +1 -0
- package/dist/client/assets/chunks/chunk-EIBFAW37.js +1 -0
- package/dist/client/assets/chunks/chunk-EO3ER3GN.js +1 -0
- package/dist/client/assets/chunks/chunk-FH24BIIA.js +1 -0
- package/dist/client/assets/chunks/chunk-FNOXGAL5.js +2 -0
- package/dist/client/assets/chunks/chunk-FTY6WLQF.js +3 -0
- package/dist/client/assets/chunks/chunk-FZFME6UK.js +1 -0
- package/dist/client/assets/chunks/chunk-FZJZZYYO.js +1 -0
- package/dist/client/assets/chunks/chunk-G4Z6L7OO.js +1 -0
- package/dist/client/assets/chunks/chunk-GNCEAN2B.js +1 -0
- package/dist/client/assets/chunks/chunk-GQJIKV3T.js +1 -0
- package/dist/client/assets/chunks/chunk-GUMNOKT2.js +1 -0
- package/dist/client/assets/chunks/chunk-GXRORAF3.js +1 -0
- package/dist/client/assets/chunks/chunk-H36ABDKY.js +1 -0
- package/dist/client/assets/chunks/chunk-HAR5NYVW.js +1 -0
- package/dist/client/assets/chunks/chunk-HIGPS4L2.js +1 -0
- package/dist/client/assets/chunks/chunk-HMOBGTME.js +1 -0
- package/dist/client/assets/chunks/chunk-HNO6SQ7M.js +1 -0
- package/dist/client/assets/chunks/chunk-HYVZ3GYN.js +1 -0
- package/dist/client/assets/chunks/chunk-I6TGFOQS.js +1 -0
- package/dist/client/assets/chunks/chunk-IHIOJK7I.js +1 -0
- package/dist/client/assets/chunks/chunk-IHJNUMSC.js +1 -0
- package/dist/client/assets/chunks/chunk-IP7PB2OC.js +1 -0
- package/dist/client/assets/chunks/chunk-ISDTMH2Y.js +1 -0
- package/dist/client/assets/chunks/chunk-J65M2LNT.js +1 -0
- package/dist/client/assets/chunks/chunk-JCWYZ7X2.js +62 -0
- package/dist/client/assets/chunks/chunk-JENWYTLI.js +1 -0
- package/dist/client/assets/chunks/chunk-JJ6YWJQS.js +1 -0
- package/dist/client/assets/chunks/chunk-JMUVGGX7.js +32 -0
- package/dist/client/assets/chunks/chunk-JNQUFMM4.js +1 -0
- package/dist/client/assets/chunks/chunk-JPTECOAL.js +1 -0
- package/dist/client/assets/chunks/chunk-JZNK4LKS.js +1 -0
- package/dist/client/assets/chunks/chunk-KPNXJBIW.js +1 -0
- package/dist/client/assets/chunks/chunk-KZO2GZL7.js +1 -0
- package/dist/client/assets/chunks/chunk-L2REESOQ.js +1 -0
- package/dist/client/assets/chunks/chunk-LJPJXR7R.js +1 -0
- package/dist/client/assets/chunks/chunk-LOEZMLCI.js +1 -0
- package/dist/client/assets/chunks/chunk-MLYC6FSE.js +1 -0
- package/dist/client/assets/chunks/chunk-MMDGEZYU.js +1 -0
- package/dist/client/assets/chunks/chunk-MYXE7CGE.js +1 -0
- package/dist/client/assets/chunks/chunk-NBH7YOBD.js +15 -0
- package/dist/client/assets/chunks/chunk-NCOVM3YF.js +1 -0
- package/dist/client/assets/chunks/chunk-NCWOBVU7.js +1 -0
- package/dist/client/assets/chunks/chunk-NLRIHHEH.js +1 -0
- package/dist/client/assets/chunks/chunk-NUPEOYK6.js +1 -0
- package/dist/client/assets/chunks/chunk-O4MVOA7X.js +1 -0
- package/dist/client/assets/chunks/chunk-OBHQQZ4H.js +1 -0
- package/dist/client/assets/chunks/chunk-OKPNJIIR.js +1 -0
- package/dist/client/assets/chunks/chunk-OLMPB57R.js +1 -0
- package/dist/client/assets/chunks/chunk-P2FYOAEV.js +1 -0
- package/dist/client/assets/chunks/chunk-PI3SNP4C.js +1 -0
- package/dist/client/assets/chunks/chunk-PRDTEROB.js +1 -0
- package/dist/client/assets/chunks/chunk-PZELHD2H.js +136 -0
- package/dist/client/assets/chunks/chunk-QR2Q34LM.js +1 -0
- package/dist/client/assets/chunks/chunk-R4GIXL6S.js +1 -0
- package/dist/client/assets/chunks/chunk-RORF4F5V.js +1 -0
- package/dist/client/assets/chunks/chunk-S73BYTLL.js +1 -0
- package/dist/client/assets/chunks/chunk-SFC5MRYR.js +1 -0
- package/dist/client/assets/chunks/chunk-SVM2H22K.js +2 -0
- package/dist/client/assets/chunks/chunk-SZ6UCGVD.js +1 -0
- package/dist/client/assets/chunks/chunk-SZYM6GIJ.js +127 -0
- package/dist/client/assets/chunks/chunk-TT5KJZKM.js +1 -0
- package/dist/client/assets/chunks/chunk-UFBKUYNH.js +1 -0
- package/dist/client/assets/chunks/chunk-UL57AD4T.js +1 -0
- package/dist/client/assets/chunks/chunk-UNEI7LMM.js +1 -0
- package/dist/client/assets/chunks/chunk-VNQBBFIY.js +1 -0
- package/dist/client/assets/chunks/chunk-WGVITPII.js +1 -0
- package/dist/client/assets/chunks/chunk-WRA6KJHX.js +10 -0
- package/dist/client/assets/chunks/chunk-WS5EHW43.js +1 -0
- package/dist/client/assets/chunks/chunk-XE6SLBBE.js +3 -0
- package/dist/client/assets/chunks/chunk-XF5T2P7U.js +72 -0
- package/dist/client/assets/chunks/chunk-XFRY5WKO.js +1 -0
- package/dist/client/assets/chunks/chunk-XWYV4OPA.js +1 -0
- package/dist/client/assets/chunks/chunk-YCE5ECKY.js +1 -0
- package/dist/client/assets/chunks/chunk-YIN5CSIF.js +1 -0
- package/dist/client/assets/chunks/chunk-YLFUX6XH.js +1 -0
- package/dist/client/assets/chunks/chunk-YNXJICZM.js +1 -0
- package/dist/client/assets/chunks/chunk-YOHF7NGD.js +1 -0
- package/dist/client/assets/chunks/chunk-YORIST7Z.js +1 -0
- package/dist/client/assets/chunks/chunk-YUL7CG4R.js +1 -0
- package/dist/client/assets/chunks/chunk-YUN7JSFJ.js +2 -0
- package/dist/client/assets/chunks/chunk-YZ7D2IT7.js +1 -0
- package/dist/client/assets/chunks/chunk-Z7LAPMFJ.js +1 -0
- package/dist/client/assets/chunks/chunk-ZE325LPC.js +1 -0
- package/dist/client/assets/chunks/chunk-ZN7TN6PO.js +1 -0
- package/dist/client/assets/chunks/chunk-ZST3EVPO.js +1 -0
- package/dist/client/assets/chunks/chunk-ZZHMDDZN.js +1 -0
- package/dist/client/assets/chunks/clarity-RKRYQ7WF.js +1 -0
- package/dist/client/assets/chunks/classDiagram-v2-L25IHNXF-Y67HVDZV.js +217 -0
- package/dist/client/assets/chunks/clojure-2X2DQECJ.js +1 -0
- package/dist/client/assets/chunks/cmake-LH5524XE.js +1 -0
- package/dist/client/assets/chunks/cobol-7DALQF3W.js +1 -0
- package/dist/client/assets/chunks/codeowners-52SZU5P5.js +1 -0
- package/dist/client/assets/chunks/codeql-EISH3KUP.js +1 -0
- package/dist/client/assets/chunks/coffee-VAWSGA7Y.js +1 -0
- package/dist/client/assets/chunks/common-lisp-4MVK2AN6.js +1 -0
- package/dist/client/assets/chunks/coq-4VRYZRZV.js +1 -0
- package/dist/client/assets/chunks/core-BRBMZSD2.js +12 -0
- package/dist/client/assets/chunks/cose-bilkent-JH36ORCC-BIOOHSAA.js +1 -0
- package/dist/client/assets/chunks/cpp-RFECMSKD.js +1 -0
- package/dist/client/assets/chunks/crystal-ZBGGFAOI.js +1 -0
- package/dist/client/assets/chunks/csharp-BZDPMKKW.js +1 -0
- package/dist/client/assets/chunks/css-3WWGM6UD.js +1 -0
- package/dist/client/assets/chunks/csv-AB4GNWSB.js +1 -0
- package/dist/client/assets/chunks/cue-2E46MZP2.js +1 -0
- package/dist/client/assets/chunks/cynefin-EF2NZ3EQ-TLFQLWUN.js +1 -0
- package/dist/client/assets/chunks/cynefinDiagram-L36ESFBY-FLPXCSSG.js +62 -0
- package/dist/client/assets/chunks/cypher-HR3ILFOL.js +1 -0
- package/dist/client/assets/chunks/d-TARSZPOL.js +1 -0
- package/dist/client/assets/chunks/dagre-SPEB5RXH-7EGEINJ2.js +4 -0
- package/dist/client/assets/chunks/dart-SALLJHVI.js +1 -0
- package/dist/client/assets/chunks/dax-WYMRGMXC.js +1 -0
- package/dist/client/assets/chunks/desktop-ND5CGLLJ.js +1 -0
- package/dist/client/assets/chunks/diagram-3B7GL73J-6USY4HZX.js +200 -0
- package/dist/client/assets/chunks/diagram-DNEMPZML-BNSOC4VW.js +24 -0
- package/dist/client/assets/chunks/diagram-L3MUGCDN-5V5FZYIG.js +41 -0
- package/dist/client/assets/chunks/diagram-LA4NIPWU-25VLY2CO.js +24 -0
- package/dist/client/assets/chunks/diagram-MHCOC4E2-G2LFP3JU.js +3 -0
- package/dist/client/assets/chunks/diagram-XPFHEONP-E6HBBIBV.js +30 -0
- package/dist/client/assets/chunks/diff-PWYGPM7B.js +1 -0
- package/dist/client/assets/chunks/docker-A4D7DT7W.js +1 -0
- package/dist/client/assets/chunks/dotenv-VWQWV2DY.js +1 -0
- package/dist/client/assets/chunks/dream-maker-M5YDQS35.js +1 -0
- package/dist/client/assets/chunks/ebnfDiagram-UZSYDL2S-BMXXZZPI.js +1 -0
- package/dist/client/assets/chunks/edge-3QXIDJHI.js +1 -0
- package/dist/client/assets/chunks/elixir-3OX2UHIZ.js +1 -0
- package/dist/client/assets/chunks/elk-XV6XMXQE-IPR65FON.js +27 -0
- package/dist/client/assets/chunks/elm-CTS65NCT.js +1 -0
- package/dist/client/assets/chunks/emacs-lisp-HHS2IDO7.js +1 -0
- package/dist/client/assets/chunks/engine-javascript-DNHSF67B.js +141 -0
- package/dist/client/assets/chunks/erDiagram-EYBAPDEH-3GEHFWHG.js +99 -0
- package/dist/client/assets/chunks/erb-ICYWK6HS.js +1 -0
- package/dist/client/assets/chunks/erlang-BDQPNCKX.js +1 -0
- package/dist/client/assets/chunks/eventmodeling-K75KTNOO-B27BJTZL.js +1 -0
- package/dist/client/assets/chunks/fennel-4ONBA2PH.js +1 -0
- package/dist/client/assets/chunks/fish-ATLPBZSD.js +1 -0
- package/dist/client/assets/chunks/flowDiagram-MALGAFMO-5PCLR4AE.js +1 -0
- package/dist/client/assets/chunks/fluent-GGMONBVW.js +1 -0
- package/dist/client/assets/chunks/fortran-fixed-form-5MSBDRWQ.js +1 -0
- package/dist/client/assets/chunks/fortran-free-form-TT3RBL75.js +1 -0
- package/dist/client/assets/chunks/fsharp-PAGHNW4O.js +1 -0
- package/dist/client/assets/chunks/ganttDiagram-23REXITY-VE5MVBTO.js +292 -0
- package/dist/client/assets/chunks/gdresource-5OTP326D.js +1 -0
- package/dist/client/assets/chunks/gdscript-VPWHSCLF.js +1 -0
- package/dist/client/assets/chunks/gdshader-FYLPXFE5.js +1 -0
- package/dist/client/assets/chunks/genie-UYMEEMA2.js +1 -0
- package/dist/client/assets/chunks/gherkin-SU7D5DMY.js +1 -0
- package/dist/client/assets/chunks/git-commit-5CF5QAG7.js +1 -0
- package/dist/client/assets/chunks/git-rebase-X72BAUZI.js +1 -0
- package/dist/client/assets/chunks/gitGraph-VSP46ZUC-J6CJ5YZF.js +1 -0
- package/dist/client/assets/chunks/gitGraphDiagram-STJD7YCW-7YJGT6ZP.js +106 -0
- package/dist/client/assets/chunks/gleam-LR42YRKO.js +1 -0
- package/dist/client/assets/chunks/glimmer-js-JPF67FJU.js +1 -0
- package/dist/client/assets/chunks/glimmer-ts-BYPAVIZT.js +1 -0
- package/dist/client/assets/chunks/glsl-GTGUULBN.js +1 -0
- package/dist/client/assets/chunks/gn-NMDQA4K3.js +1 -0
- package/dist/client/assets/chunks/gnuplot-UUAMYBCZ.js +1 -0
- package/dist/client/assets/chunks/go-4RERSTNP.js +1 -0
- package/dist/client/assets/chunks/graphql-5A6RK6YF.js +1 -0
- package/dist/client/assets/chunks/groovy-O7BJONCU.js +1 -0
- package/dist/client/assets/chunks/hack-7QGTNPDP.js +1 -0
- package/dist/client/assets/chunks/haml-ON5GAWN4.js +1 -0
- package/dist/client/assets/chunks/handlebars-6UOQSUBP.js +1 -0
- package/dist/client/assets/chunks/haskell-OIZXZ26Y.js +1 -0
- package/dist/client/assets/chunks/haxe-7FFVS4FO.js +1 -0
- package/dist/client/assets/chunks/hcl-XFUFQJHV.js +1 -0
- package/dist/client/assets/chunks/hjson-QDBHMTD5.js +1 -0
- package/dist/client/assets/chunks/hlsl-4LP25FFN.js +1 -0
- package/dist/client/assets/chunks/html-7RNQXAAV.js +1 -0
- package/dist/client/assets/chunks/html-derivative-ESOY72Q2.js +1 -0
- package/dist/client/assets/chunks/http-SAD4PMBD.js +1 -0
- package/dist/client/assets/chunks/hurl-ZSJJXPQH.js +1 -0
- package/dist/client/assets/chunks/hxml-HJCC37RK.js +1 -0
- package/dist/client/assets/chunks/hy-CLDE3P4K.js +1 -0
- package/dist/client/assets/chunks/imba-REB34U5V.js +1 -0
- package/dist/client/assets/chunks/info-OHQRW6UA-EQQKXR77.js +1 -0
- package/dist/client/assets/chunks/infoDiagram-KBXO4MBG-F6KGZCGS.js +2 -0
- package/dist/client/assets/chunks/ini-PDFEMGRA.js +1 -0
- package/dist/client/assets/chunks/ishikawaDiagram-M35NCXHK-5D6ZOZ34.js +70 -0
- package/dist/client/assets/chunks/java-KB6XENAD.js +1 -0
- package/dist/client/assets/chunks/javascript-3JX5T423.js +1 -0
- package/dist/client/assets/chunks/jinja-V4UNU6K4.js +1 -0
- package/dist/client/assets/chunks/jison-KH5XNLJP.js +1 -0
- package/dist/client/assets/chunks/journeyDiagram-OPLOXDXO-ANDOJZKW.js +139 -0
- package/dist/client/assets/chunks/json-HPXFRRPY.js +1 -0
- package/dist/client/assets/chunks/json5-LJM6TXWM.js +1 -0
- package/dist/client/assets/chunks/jsonc-UZWRU3JV.js +1 -0
- package/dist/client/assets/chunks/jsonl-RFZD5UN4.js +1 -0
- package/dist/client/assets/chunks/jsonnet-GFZABBL6.js +1 -0
- package/dist/client/assets/chunks/jssm-2YIGBISJ.js +1 -0
- package/dist/client/assets/chunks/jsx-KLV2ZWUT.js +1 -0
- package/dist/client/assets/chunks/julia-3TZDIPPO.js +1 -0
- package/dist/client/assets/chunks/just-UHCONBQS.js +1 -0
- package/dist/client/assets/chunks/kanban-definition-BZKZHSQY-GF5I5NVD.js +89 -0
- package/dist/client/assets/chunks/katex-PIN72PQZ.js +257 -0
- package/dist/client/assets/chunks/kdl-DARTFOCL.js +1 -0
- package/dist/client/assets/chunks/kotlin-7KT5DW6Y.js +1 -0
- package/dist/client/assets/chunks/kusto-EKYXZTC5.js +1 -0
- package/dist/client/assets/chunks/langs-GO3UQR4H.js +1 -0
- package/dist/client/assets/chunks/latex-T57MIHR5.js +1 -0
- package/dist/client/assets/chunks/lean-5QVPRMV6.js +1 -0
- package/dist/client/assets/chunks/less-K6QEH5TN.js +1 -0
- package/dist/client/assets/chunks/liquid-3LCNNEIV.js +1 -0
- package/dist/client/assets/chunks/llvm-O32ZIVRF.js +1 -0
- package/dist/client/assets/chunks/log-C4YPJ5BB.js +1 -0
- package/dist/client/assets/chunks/logo-JPMO43A6.js +1 -0
- package/dist/client/assets/chunks/lua-YKVSOG7K.js +1 -0
- package/dist/client/assets/chunks/luau-K4EECYSO.js +1 -0
- package/dist/client/assets/chunks/make-VHSYMHHW.js +1 -0
- package/dist/client/assets/chunks/markdown-GC5J46H4.js +1 -0
- package/dist/client/assets/chunks/marko-U45YFADC.js +1 -0
- package/dist/client/assets/chunks/matlab-AMOKC4LU.js +1 -0
- package/dist/client/assets/chunks/mdc-DIGA2UXP.js +1 -0
- package/dist/client/assets/chunks/mdx-BZUGCKQA.js +1 -0
- package/dist/client/assets/chunks/mermaid-WHDP6ZPA.js +1 -0
- package/dist/client/assets/chunks/mermaid.core-SQMPMUDN.js +10 -0
- package/dist/client/assets/chunks/mindmap-definition-I2QAS2VK-4NH5S56C.js +98 -0
- package/dist/client/assets/chunks/mipsasm-2S4CUGQV.js +1 -0
- package/dist/client/assets/chunks/mojo-ZOL2PNKT.js +1 -0
- package/dist/client/assets/chunks/moonbit-U3BDAIFE.js +1 -0
- package/dist/client/assets/chunks/move-YSXALBWA.js +1 -0
- package/dist/client/assets/chunks/narrat-DHFIAUJH.js +1 -0
- package/dist/client/assets/chunks/nextflow-ESAKNTI3.js +1 -0
- package/dist/client/assets/chunks/nextflow-groovy-FKDSPJUI.js +1 -0
- package/dist/client/assets/chunks/nginx-XYAYERLO.js +1 -0
- package/dist/client/assets/chunks/nim-XOWBVFDH.js +1 -0
- package/dist/client/assets/chunks/nix-RVSTQSHC.js +1 -0
- package/dist/client/assets/chunks/nsis-KMDUKQRL.js +1 -0
- package/dist/client/assets/chunks/nushell-SKJHHZ7U.js +1 -0
- package/dist/client/assets/chunks/objective-c-3B3KXQ7Q.js +1 -0
- package/dist/client/assets/chunks/objective-cpp-6JDULPJS.js +1 -0
- package/dist/client/assets/chunks/ocaml-TMRFXBVO.js +1 -0
- package/dist/client/assets/chunks/odin-IN3PLCK7.js +1 -0
- package/dist/client/assets/chunks/openscad-P52IKPNH.js +1 -0
- package/dist/client/assets/chunks/org-N3SJ2PIA.js +1 -0
- package/dist/client/assets/chunks/packet-JDAUHWVQ-4SWIKSKP.js +1 -0
- package/dist/client/assets/chunks/pascal-T7CUWCQ4.js +1 -0
- package/dist/client/assets/chunks/pegDiagram-FD4XPPHP-WDKZSEGN.js +1 -0
- package/dist/client/assets/chunks/perl-LCZ4KODH.js +1 -0
- package/dist/client/assets/chunks/php-4XHMBVR5.js +1 -0
- package/dist/client/assets/chunks/pie-XZMESJXO-PSSWOWGV.js +1 -0
- package/dist/client/assets/chunks/pieDiagram-J4AKIIQI-BDW5I5ON.js +39 -0
- package/dist/client/assets/chunks/pkl-OACG5B67.js +1 -0
- package/dist/client/assets/chunks/plsql-7E5C7CJX.js +1 -0
- package/dist/client/assets/chunks/po-ZSREFRRP.js +1 -0
- package/dist/client/assets/chunks/polar-4GBINVA7.js +1 -0
- package/dist/client/assets/chunks/postcss-B7RPVGFW.js +1 -0
- package/dist/client/assets/chunks/powerquery-6UFMTY4G.js +1 -0
- package/dist/client/assets/chunks/powershell-3STRPCNT.js +1 -0
- package/dist/client/assets/chunks/prisma-4TPSPIZ5.js +1 -0
- package/dist/client/assets/chunks/prolog-HEAYPKQW.js +1 -0
- package/dist/client/assets/chunks/proto-Y3Y3VKXM.js +1 -0
- package/dist/client/assets/chunks/pug-7PBPMG3M.js +1 -0
- package/dist/client/assets/chunks/puppet-FR35R4OI.js +1 -0
- package/dist/client/assets/chunks/purescript-OUHXQAOW.js +1 -0
- package/dist/client/assets/chunks/python-SNDG7FNU.js +1 -0
- package/dist/client/assets/chunks/qml-UVIOSWP4.js +1 -0
- package/dist/client/assets/chunks/qmldir-6JGUNYL5.js +1 -0
- package/dist/client/assets/chunks/qss-ZCC466IZ.js +1 -0
- package/dist/client/assets/chunks/quadrantDiagram-XTYBLID2-5VKXWVJ6.js +7 -0
- package/dist/client/assets/chunks/r-4XW4O3ZF.js +1 -0
- package/dist/client/assets/chunks/racket-YJAYXOOG.js +1 -0
- package/dist/client/assets/chunks/radar-ABXABTNO-3AXZCEY2.js +1 -0
- package/dist/client/assets/chunks/railroad-I3PHUGI6-2PLXYPOT.js +1 -0
- package/dist/client/assets/chunks/railroad-abnf-LNEFI6M7-M4DGICQX.js +1 -0
- package/dist/client/assets/chunks/railroad-ebnf-DWYD2UWJ-UEIHQMSZ.js +1 -0
- package/dist/client/assets/chunks/railroad-peg-JR7BVNR7-I7VLIBXM.js +1 -0
- package/dist/client/assets/chunks/railroadDiagram-MRQ6NCDL-Y6IYWEFL.js +1 -0
- package/dist/client/assets/chunks/raku-63NEL5JK.js +1 -0
- package/dist/client/assets/chunks/razor-J3CJP523.js +1 -0
- package/dist/client/assets/chunks/rbs-6GQLT7NW.js +1 -0
- package/dist/client/assets/chunks/reg-6Q3OEC2C.js +1 -0
- package/dist/client/assets/chunks/regexp-LPIMILT3.js +1 -0
- package/dist/client/assets/chunks/rel-TOQGUTHB.js +1 -0
- package/dist/client/assets/chunks/requirementDiagram-Y7LWUY3S-CIWXVVWJ.js +84 -0
- package/dist/client/assets/chunks/riscv-UELGBOXE.js +1 -0
- package/dist/client/assets/chunks/ron-FW7LCJJH.js +1 -0
- package/dist/client/assets/chunks/rosmsg-O63VHE3L.js +1 -0
- package/dist/client/assets/chunks/rst-3WJXGLA7.js +1 -0
- package/dist/client/assets/chunks/ruby-7S7L6JTH.js +1 -0
- package/dist/client/assets/chunks/rust-LIK4HRRI.js +1 -0
- package/dist/client/assets/chunks/sankeyDiagram-WGJFYUXA-OGNQPX5V.js +40 -0
- package/dist/client/assets/chunks/sas-FHDPZ2JH.js +1 -0
- package/dist/client/assets/chunks/sass-UI4HW2FN.js +1 -0
- package/dist/client/assets/chunks/scala-KN7RQSUJ.js +1 -0
- package/dist/client/assets/chunks/scheme-5R527YZ5.js +1 -0
- package/dist/client/assets/chunks/scss-KZ6DRE4A.js +1 -0
- package/dist/client/assets/chunks/sdbl-FHOCL5SL.js +1 -0
- package/dist/client/assets/chunks/sequenceDiagram-5NDRBG5M-QX2V24ZU.js +169 -0
- package/dist/client/assets/chunks/shaderlab-2TLHUS2H.js +1 -0
- package/dist/client/assets/chunks/shellscript-PIB6ZBDM.js +1 -0
- package/dist/client/assets/chunks/shellsession-5KL7NFNN.js +1 -0
- package/dist/client/assets/chunks/sizeCapture-INFHLROL-LCS2PIHM.js +1 -0
- package/dist/client/assets/chunks/smalltalk-JFLFU247.js +1 -0
- package/dist/client/assets/chunks/smithy-HONEXZAM.js +1 -0
- package/dist/client/assets/chunks/solidity-SJ3INJFZ.js +1 -0
- package/dist/client/assets/chunks/soy-ND4SWTM2.js +1 -0
- package/dist/client/assets/chunks/sparql-YB2JQBZD.js +1 -0
- package/dist/client/assets/chunks/splunk-UXIDDAWL.js +1 -0
- package/dist/client/assets/chunks/sql-K6OMG7SQ.js +1 -0
- package/dist/client/assets/chunks/ssh-config-I7KJY3KQ.js +1 -0
- package/dist/client/assets/chunks/stata-DNZ3DTFJ.js +1 -0
- package/dist/client/assets/chunks/stateDiagram-v2-FJ4FJNEA-LVAUWF3A.js +291 -0
- package/dist/client/assets/chunks/stylus-GWPR6IQY.js +1 -0
- package/dist/client/assets/chunks/surrealql-KQNHBWLC.js +1 -0
- package/dist/client/assets/chunks/svelte-YQKF25S4.js +1 -0
- package/dist/client/assets/chunks/swift-ZCIZUJXA.js +1 -0
- package/dist/client/assets/chunks/swimlanes-UMQ2AFYF-B3RQOARQ.js +1 -0
- package/dist/client/assets/chunks/swimlanesDiagram-OMPLPG4O-JOE33EOV.js +8 -0
- package/dist/client/assets/chunks/system-verilog-Y7E6FIO3.js +1 -0
- package/dist/client/assets/chunks/systemd-WHC7NBZP.js +1 -0
- package/dist/client/assets/chunks/talonscript-WC7SODAH.js +1 -0
- package/dist/client/assets/chunks/tasl-QHY2GTCB.js +1 -0
- package/dist/client/assets/chunks/tcl-VAMIL5PJ.js +1 -0
- package/dist/client/assets/chunks/temml-ISNSX3VV.js +96 -0
- package/dist/client/assets/chunks/templ-B3BHKWV4.js +1 -0
- package/dist/client/assets/chunks/terraform-Q4UEK6FK.js +1 -0
- package/dist/client/assets/chunks/tex-63OWCYAB.js +1 -0
- package/dist/client/assets/chunks/timeline-definition-SEUHKTQE-FDFTVAJG.js +120 -0
- package/dist/client/assets/chunks/toml-7Z4IPGES.js +1 -0
- package/dist/client/assets/chunks/treeView-D4JQ5SDB-ABSGRAGI.js +1 -0
- package/dist/client/assets/chunks/treemap-SAJKECNS-MYX2CBJN.js +1 -0
- package/dist/client/assets/chunks/ts-tags-DT62HE52.js +1 -0
- package/dist/client/assets/chunks/tsv-RTXHWADP.js +1 -0
- package/dist/client/assets/chunks/tsx-UANUBOC7.js +1 -0
- package/dist/client/assets/chunks/turtle-QVOUNUUL.js +1 -0
- package/dist/client/assets/chunks/twig-ZPC4BPDA.js +1 -0
- package/dist/client/assets/chunks/typescript-WGWKIMMW.js +1 -0
- package/dist/client/assets/chunks/typespec-TYCVR32J.js +1 -0
- package/dist/client/assets/chunks/typst-PIBFYUO6.js +1 -0
- package/dist/client/assets/chunks/usecaseDiagram-AFA6YXN4-KW7ADINR.js +370 -0
- package/dist/client/assets/chunks/v-3ERNWBSP.js +1 -0
- package/dist/client/assets/chunks/vala-UCBCT2GS.js +1 -0
- package/dist/client/assets/chunks/vb-DGI3VTPA.js +1 -0
- package/dist/client/assets/chunks/vennDiagram-NNMJR3RB-RDGLGOGM.js +34 -0
- package/dist/client/assets/chunks/verilog-G72NZROS.js +1 -0
- package/dist/client/assets/chunks/vhdl-PYGA77XE.js +1 -0
- package/dist/client/assets/chunks/viml-OOC5B5UU.js +1 -0
- package/dist/client/assets/chunks/vue-GTNHIOPG.js +1 -0
- package/dist/client/assets/chunks/vue-html-DKAMJV55.js +1 -0
- package/dist/client/assets/chunks/vue-vine-WTM5HREV.js +1 -0
- package/dist/client/assets/chunks/vyper-RHYEHOJM.js +1 -0
- package/dist/client/assets/chunks/wardley-7MLQ67FV-QJL2HSBT.js +1 -0
- package/dist/client/assets/chunks/wardleyDiagram-S7YFUSEH-A4XX3UJR.js +78 -0
- package/dist/client/assets/chunks/wasm-ZMM2Z5XV.js +1 -0
- package/dist/client/assets/chunks/wenyan-HF5UTKSJ.js +1 -0
- package/dist/client/assets/chunks/wgsl-O7D7OPO7.js +1 -0
- package/dist/client/assets/chunks/wikitext-T7BSWSKQ.js +1 -0
- package/dist/client/assets/chunks/wit-TKCHPPT6.js +1 -0
- package/dist/client/assets/chunks/wolfram-7MN66A7N.js +1 -0
- package/dist/client/assets/chunks/xml-NLTLAWOD.js +1 -0
- package/dist/client/assets/chunks/xsl-NZ4ECK3P.js +1 -0
- package/dist/client/assets/chunks/xychartDiagram-GGNKY7IX-OXJILWHR.js +7 -0
- package/dist/client/assets/chunks/yaml-HRJLEV3V.js +1 -0
- package/dist/client/assets/chunks/zenscript-4LLRSLPI.js +1 -0
- package/dist/client/assets/chunks/zig-Y7MUQFUO.js +1 -0
- package/dist/client/assets/main.js +186 -0
- package/dist/client/index.html +48 -0
- package/dist/config.js +322 -0
- package/dist/files.js +178 -0
- package/dist/git.js +365 -0
- package/dist/glob.js +89 -0
- package/dist/review.js +290 -0
- package/dist/search.js +136 -0
- package/dist/server.js +482 -0
- package/dist/watch.js +69 -0
- package/dist/zip.js +100 -0
- package/package.json +61 -4
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import{a as wa,b as Dt,d as H,e as R}from"./chunk-UNEI7LMM.js";import{a as v}from"./chunk-YORIST7Z.js";import{g as $t}from"./chunk-HIGPS4L2.js";import{c as Tt,e as ut}from"./chunk-XF5T2P7U.js";import{b as Sa,c as $a,d as va,e as St}from"./chunk-OBHQQZ4H.js";import{k as Wt,o as ka,s as Bt,u as Q}from"./chunk-FNOXGAL5.js";import{B as Pt,F as wt,H as Ft,J as Kt,K as xa,_ as V,ba as Qt,q as ba,u as xt}from"./chunk-SZYM6GIJ.js";import{b as J,d as Z}from"./chunk-5XZPGKN4.js";import{a as w}from"./chunk-EIBFAW37.js";var Gs=1,js=3;async function ga(n){let t=n.getElementsByTagName("img");if(!t||t.length===0)return;let s=!ya(n);await Promise.all([...t].map(l=>new Promise(o=>{function c(){if(l.style.display="flex",l.style.flexDirection="column",s){let p=V().fontSize?V().fontSize:window.getComputedStyle(document.body).fontSize,r=5,[h=ba.fontSize]=ka(p),i=h*r+"px";l.style.minWidth=i,l.style.maxWidth=i}else l.style.width="100%";o(l)}w(c,"setupImage"),setTimeout(()=>{l.complete&&c()}),l.addEventListener("error",c),l.addEventListener("load",c)})))}w(ga,"configureLabelImages");function ya(n){return n.nodeType===js?n.textContent?.trim()!=="":n.nodeType!==Gs||n.tagName.toLowerCase()==="img"?!1:[...n.childNodes].some(ya)}w(ya,"hasTextBesidesImages");var Ma=3,Fs=32,qs=w(async(n,t,s)=>{let l=V(),o=n.insert("g").attr("class",s??"node default").attr("id",t.domId||t.id),c=o.insert("g").attr("class","label").attr("style",Q(t.labelStyle)),r=[{text:typeof t.label=="string"?t.label:t.label?.[0]??"",cssClass:"c4-name"},{text:t.stereotype,cssClass:"c4-type"},...(t.description??[]).map(d=>({text:d,cssClass:"c4-descr"}))].filter(d=>d.text),h=t.width?Math.max(t.width-2*(t.padding??0),Fs):V().flowchart?.wrappingWidth??200,a=l.c4?.wrap??!0?h:Number.POSITIVE_INFINITY,e=await Promise.all(r.map(async d=>{let b=c.append("g").attr("class",d.cssClass),x=await ut(b,Ft(Bt(d.text??""),l),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:a,style:t.labelStyle},l);return Z(x).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),Z(x).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:b,box:b.node().getBBox()}})),g=Math.max(...e.map(({box:d})=>d.width),0),y=0;for(let{el:d,box:b}of e)d.attr("transform",`translate(${g/2-b.x-b.width/2}, ${y-b.y})`),y+=b.height+Ma;let f=e.length>0?y-Ma:0;c.insert("rect",":first-child"),c.attr("transform",`translate(${-g/2}, ${-f/2})`);let u=c.node().getBBox(),m=(t.padding??0)/2;return{shapeSvg:o,bbox:u,halfPadding:m,label:c}},"c4LabelHelper"),Pa=w((n,t)=>{let{x:s,y:l,width:o,height:c}=n;return o>=t?n:"left"in n?{x:s,y:l,width:t,height:c,top:l,left:s,bottom:l+c,right:s+t,toJSON:w(()=>({}),"toJSON")}:{x:s-(t-o)/2,y:l,width:t,height:c}},"withMinWidth"),Y=w(async(n,t,s,{ignoreMinWidth:l=!1}={})=>{if(t.stereotype!==void 0)return qs(n,t,s);let o,c=t.useHtmlLabels||xt(V()?.htmlLabels);s?o=s:o="node default";let p=n.insert("g").attr("class",o).attr("id",t.domId||t.id),r=p.insert("g").attr("class","label").attr("style",Q(t.labelStyle)),h;t.label===void 0?h="":h=typeof t.label=="string"?t.label:t.label[0];let i=!!t.icon||!!t.img,a=t.labelType==="markdown",e=h&&!t.width&&!l?t.minWidth??0:0,g=await ut(r,Ft(Bt(h),V()),{useHtmlLabels:c,width:t.width||t.wrappingWidth||V().flowchart?.wrappingWidth,minWidth:e,classes:a?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:i,markdown:a},V()),y=(t?.padding??0)/2,f;if(c){let u=g.children[0],m=Z(g);await ga(u),f=await Tt.measure(()=>u.getBoundingClientRect()),f=Pa(f,e),m.attr("width",f.width),m.attr("height",f.height)}else f=await Tt.measure(()=>g.getBBox()),f=Pa(f,e);return c?r.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):r.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&r.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),r.insert("rect",":first-child"),{shapeSvg:p,bbox:f,halfPadding:y,label:r}},"labelHelper"),Mt=w(async(n,t,s)=>{let l=s.useHtmlLabels??wt(V()),o=n.insert("g").attr("class","label").attr("style",s.labelStyle||""),c=await ut(o,Ft(Bt(t),V()),{useHtmlLabels:l,width:s.width||V()?.flowchart?.wrappingWidth,style:s.labelStyle,addSvgBackground:!!s.icon||!!s.img}),p=s.padding/2,r;if(wt(V())){let h=c.children[0],i=Z(c);r=await Tt.measure(()=>h.getBoundingClientRect()),i.attr("width",r.width),i.attr("height",r.height)}else r=await Tt.measure(()=>c.getBBox());return l?o.attr("transform","translate("+-r.width/2+", "+-r.height/2+")"):o.attr("transform","translate(0, "+-r.height/2+")"),s.centerLabel&&o.attr("transform","translate("+-r.width/2+", "+-r.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:n,bbox:r,halfPadding:p,label:o}},"insertLabel"),I=w((n,t,s)=>{if(s){n.width=s.width,n.height=s.height;return}let l=t.node().getBBox();n.width=l.width,n.height=l.height},"updateNodeBounds"),T=w((n,t)=>(n.look==="handDrawn"?"rough-node":"node")+" "+n.cssClasses+" "+(t||""),"getNodeClasses");function F(n){let t=n.map((s,l)=>`${l===0?"M":"L"}${s.x},${s.y}`);return t.push("Z"),t.join(" ")}w(F,"createPathFromPoints");function dt(n,t,s,l,o,c){let p=[],h=s-n,i=l-t,a=h/c,e=2*Math.PI/a,g=t+i/2;for(let y=0;y<=50;y++){let f=y/50,u=n+f*h,m=g+o*Math.sin(e*(u-n));p.push({x:u,y:m})}return p}w(dt,"generateFullSineWavePoints");function lt(n,t,s,l,o,c){let p=[],r=o*Math.PI/180,a=(c*Math.PI/180-r)/(l-1);for(let e=0;e<l;e++){let g=r+e*a,y=n+s*Math.cos(g),f=t+s*Math.sin(g);p.push({x:-y,y:-f})}return p}w(lt,"generateCirclePoints");function la(n){let t=Array.from(n.childNodes).filter(h=>h.tagName==="path"),s=document.createElementNS("http://www.w3.org/2000/svg","path"),l=t.map(h=>h.getAttribute("d")).filter(h=>h!==null).join(" ");s.setAttribute("d",l);let o=t.find(h=>h.getAttribute("fill")!=="none"),c=t.find(h=>h.getAttribute("stroke")!=="none"),p=w((h,i)=>h?.getAttribute(i)??void 0,"getAttr");if(o){let h={fill:p(o,"fill"),"fill-opacity":p(o,"fill-opacity")??"1"};Object.entries(h).forEach(([i,a])=>{a&&s.setAttribute(i,a)})}if(c){let h={stroke:p(c,"stroke"),"stroke-width":p(c,"stroke-width")??"1","stroke-opacity":p(c,"stroke-opacity")??"1"};Object.entries(h).forEach(([i,a])=>{a&&s.setAttribute(i,a)})}let r=document.createElementNS("http://www.w3.org/2000/svg","g");return r.appendChild(s),r}w(la,"mergePaths");var Vs=w((n,t)=>{var s=n.x,l=n.y,o=t.x-s,c=t.y-l,p=n.width/2,r=n.height/2,h,i;return Math.abs(c)*p>Math.abs(o)*r?(c<0&&(r=-r),h=c===0?0:r*o/c,i=r):(o<0&&(p=-p),h=p,i=o===0?0:p*c/o),{x:s+h,y:l+i}},"intersectRect"),zs=Vs;function Ua(n,t){return n.intersect(t)}w(Ua,"intersectNode");var Zs=Ua;function Ja(n,t,s,l){var o=n.x,c=n.y,p=o-l.x,r=c-l.y,h=Math.sqrt(t*t*r*r+s*s*p*p),i=Math.abs(t*s*p/h);l.x<o&&(i=-i);var a=Math.abs(t*s*r/h);return l.y<c&&(a=-a),{x:o+i,y:c+a}}w(Ja,"intersectEllipse");var Ka=Ja;function Qa(n,t,s){return Ka(n,t,t,s)}w(Qa,"intersectCircle");var Us=Qa;function te(n,t,s,l){{let o=t.y-n.y,c=n.x-t.x,p=t.x*n.y-n.x*t.y,r=o*s.x+c*s.y+p,h=o*l.x+c*l.y+p,i=1e-6;if(r!==0&&h!==0&&ca(r,h))return;let a=l.y-s.y,e=s.x-l.x,g=l.x*s.y-s.x*l.y,y=a*n.x+e*n.y+g,f=a*t.x+e*t.y+g;if(Math.abs(y)<i&&Math.abs(f)<i&&ca(y,f))return;let u=o*e-a*c;if(u===0)return;let m=(c*g-e*p)/u,d=(a*p-o*g)/u;return{x:m,y:d}}}w(te,"intersectLine");function ca(n,t){return n*t>0}w(ca,"sameSign");var Js=te;function ae(n,t,s){let l=n.x,o=n.y,c=[],p=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(a){p=Math.min(p,a.x),r=Math.min(r,a.y)}):(p=Math.min(p,t.x),r=Math.min(r,t.y));let h=l-n.width/2-p,i=o-n.height/2-r;for(let a=0;a<t.length;a++){let e=t[a],g=t[a<t.length-1?a+1:0],y=Js(n,s,{x:h+e.x,y:i+e.y},{x:h+g.x,y:i+g.y});y&&c.push(y)}return c.length?(c.length>1&&c.sort(function(a,e){let g=a.x-s.x,y=a.y-s.y,f=Math.sqrt(g*g+y*y),u=e.x-s.x,m=e.y-s.y,d=Math.sqrt(u*u+m*m);return f<d?-1:f===d?0:1}),c[0]):n}w(ae,"intersectPolygon");var Ks=ae,N={node:Zs,circle:Us,ellipse:Ka,polygon:Ks,rect:zs},yt=w((n,t,s,l,o)=>["M",n+o,t,"H",n+s-o,"A",o,o,0,0,1,n+s,t+o,"V",t+l-o,"A",o,o,0,0,1,n+s-o,t+l,"H",n+o,"A",o,o,0,0,1,n,t+l-o,"V",t+o,"A",o,o,0,0,1,n+o,t,"Z"].join(" "),"createRoundedRectPathD"),Qs=w(async(n,t,s,l=!1,o=!1)=>{let c=t||"";typeof c=="object"&&(c=c[0]);let p=V(),r=wt(p);return await ut(n,c,{style:s,isTitle:l,useHtmlLabels:r,markdown:!1,isNode:o,width:Number.POSITIVE_INFINITY},p)},"createLabel"),Da=Qs;function ee(n,t){let{labelStyles:s}=H(t);t.labelStyle=s;let l=T(t),o=l;l||(o="anchor");let c=n.insert("g").attr("class",o).attr("id",t.domId||t.id),p=1,{cssStyles:r}=t,h=v.svg(c),i=R(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(i.roughness=0);let a=h.circle(0,0,p*2,i),e=c.insert(()=>a,":first-child");return e.attr("class","anchor").attr("style",Q(r)),I(t,e),t.intersect=function(g){return J.info("Circle intersect",t,p,g),N.circle(t,p,g)},c}w(ee,"anchor");function oa(n,t,s,l,o,c,p){let h=(n+s)/2,i=(t+l)/2,a=Math.atan2(l-t,s-n),e=(s-n)/2,g=(l-t)/2,y=e/o,f=g/c,u=Math.sqrt(y**2+f**2);if(u>1)throw new Error("The given radii are too small to create an arc between the points.");let m=Math.sqrt(1-u**2),d=h+m*c*Math.sin(a)*(p?-1:1),b=i-m*o*Math.cos(a)*(p?-1:1),x=Math.atan2((t-b)/c,(n-d)/o),$=Math.atan2((l-b)/c,(s-d)/o)-x;p&&$<0&&($+=2*Math.PI),!p&&$>0&&($-=2*Math.PI);let M=[];for(let k=0;k<20;k++){let P=k/19,O=x+P*$,C=d+o*Math.cos(O),B=b+c*Math.sin(O);M.push({x:C,y:B})}return M}w(oa,"generateArcPoints");function se(n,t,s){let[l,o]=[t,s].sort((c,p)=>p-c);return o*(1-Math.sqrt(1-(n/l/2)**2))}w(se,"calculateArcSagitta");async function re(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,p=t.look==="neo"?12:o,r=w(O=>O+p,"calcTotalHeight"),h=w(O=>{let C=O/2;return[C/(2.5+O/50),C]},"calcEllipseRadius"),{shapeSvg:i,bbox:a}=await Y(n,t,T(t)),e=r(t?.height?t?.height:a.height),[g,y]=h(e),f=se(e,g,y),m=(t?.width?t?.width:a.width)+c*2+f-f,d=e,{cssStyles:b}=t,x=[{x:m/2,y:-d/2},{x:-m/2,y:-d/2},...oa(-m/2,-d/2,-m/2,d/2,g,y,!1),{x:m/2,y:d/2},...oa(m/2,d/2,m/2,-d/2,g,y,!0)],S=v.svg(i),$=R(t,{});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid");let M=F(x),k=S.path(M,$),P=i.insert(()=>k,":first-child");return P.attr("class","basic label-container outer-path"),b&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",b),l&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",l),P.attr("transform",`translate(${g/2}, 0)`),I(t,P),t.intersect=function(O){return N.polygon(t,x,O)},i}w(re,"bowTieRect");async function ie(n,t,{config:{themeVariables:s}}){let{labelStyles:l,nodeStyles:o}=H(t);t.labelStyle=l;let{shapeSvg:c,bbox:p,label:r}=await Y(n,t,T(t)),h=s?.nodeBorder??s?.lineColor??"currentColor",i=t.padding??12,a=Math.max(p.width+i*2,t.width??0,80),e=Math.max(Math.min(a*.08,12),5),g=Math.max(p.height+i*2+e,t.height??0),y=-g/2+e,f=g/2,u=a*.72,m=[`M${-a/2},${y}`,`L${-u/2},${f}`,`A${u/2},${e} 0 0 0 ${u/2},${f}`,`L${a/2},${y}`,`A${a/2},${e} 0 0 0 ${-a/2},${y}`,"Z"].join(" "),{cssStyles:d}=t,b=c.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let P=v.svg(c).path(m,R(t,{}));b.node()?.appendChild(P),d&&b.attr("style",d)}else b.append("path").attr("d",m).attr("style",o);b.append("ellipse").attr("cx",0).attr("cy",y).attr("rx",a/2).attr("ry",e).attr("style",`fill:none;stroke:${h};stroke-width:1px`),I(t,b);let x=y+(f-y)/2;r.attr("transform",`translate(${-(p.width/2)-(p.x-(p.left??0))}, ${x-p.height/2-(p.y-(p.top??0))})`);let S=12,$=w((k,P,O)=>Array.from({length:S+1},(C,B)=>{let L=Math.PI-B*Math.PI/S;return{x:k*Math.cos(L),y:P+O*e*Math.sin(L)}}),"arc"),M=[...$(a/2,y,-1),...$(u/2,f,1).reverse()];return t.intersect=function(k){return N.polygon(t,M,k)},c}w(ie,"bucket");var ta=20,aa=8,tr=80,ar=8;function ne(n){let{themeVariables:t}=V(),s=t.clusterBkg,l=t.clusterBorder;return n==="flow"?{rx:10,fill:"none",stroke:t.flowContainerStroke||t.secondaryBorderColor,strokeWidth:.75,cssClass:"flow-collapsed"}:{rx:ar,fill:s,stroke:l,cssClass:"collapsed-group"}}w(ne,"getCollapsedStyle");async function le(n,t){let s=ne(t.metadata?.containerType),{fill:l,stroke:o}=s,{nodeStyles:c}=H(t),{shapeSvg:p,bbox:r}=await Y(n,t,T(t)),{theme:h,themeVariables:i}=V();$t(p,t.colorIndex,h,i.borderColorArray);let a=t.padding??8,e=r.height,g=Math.max(r.width+a*2,tr,t?.width??0),y=Math.max(e+aa+ta+a*2,t?.height??0),f=-g/2,u=-y/2,m=-(aa+ta)/2,d=p.select(".label");d&&(t.useHtmlLabels??wt(V())?d.attr("transform",`translate(${-r.width/2}, ${-r.height/2+m})`):d.attr("transform",`translate(0, ${-r.height/2+m})`));let b;if(t.look==="handDrawn"){let k=v.svg(p),P=R(t,{fill:l,stroke:o,...s.strokeWidth===void 0?{}:{strokeWidth:s.strokeWidth},...l==="none"?{fillWeight:0}:{fillStyle:"solid"}}),O=k.path(yt(f,u,g,y,s.rx),P);b=p.insert(()=>O,":first-child"),b.attr("class","basic label-container "+s.cssClass).attr("style",Q(t.cssStyles))}else b=p.insert("rect",":first-child"),b.attr("class","basic label-container "+s.cssClass).attr("style",c).attr("rx",s.rx).attr("ry",s.rx).attr("x",f).attr("y",u).attr("width",g).attr("height",y).attr("fill",l).attr("stroke",o),s.strokeWidth!==void 0&&b.attr("stroke-width",s.strokeWidth+"px");let x=u+a+e+aa;p.append("line").attr("class","collapsed-separator").attr("x1",f+8).attr("y1",x).attr("x2",f+g-8).attr("y2",x).attr("stroke",o).attr("stroke-dasharray","3, 3");let S=x+ta/2,$=2.5,M=10;for(let k=-1;k<=1;k++)p.append("circle").attr("class","collapsed-indicator").attr("cx",k*M).attr("cy",S).attr("r",$).attr("fill",o);return I(t,b),t.calcIntersect=function(k,P){return N.rect(k,P)},t.intersect=function(k){return N.rect(t,k)},p}w(le,"collapsedGroup");function ct(n,t,s,l){return n.insert("polygon",":first-child").attr("points",l.map(function(o){return o.x+","+o.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+s/2+")")}w(ct,"insertPolygonShape");var er=["right","left","up","down"],pa="point",sr=w(n=>{let t=new Set;for(let s of n)switch(s){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(s);break}return t},"expandAndDeduplicateDirections"),rr=w(n=>er.filter(t=>n.has(t)).join("|")||pa,"getDirectionKey"),Ba={"right|left|up|down":w(({height:n,midpoint:t,padding:s,width:l})=>[{x:0,y:0},{x:t,y:0},{x:l/2,y:2*s},{x:l-t,y:0},{x:l,y:0},{x:l,y:-n/3},{x:l+2*s,y:-n/2},{x:l,y:-2*n/3},{x:l,y:-n},{x:l-t,y:-n},{x:l/2,y:-n-2*s},{x:t,y:-n},{x:0,y:-n},{x:0,y:-2*n/3},{x:-2*s,y:-n/2},{x:0,y:-n/3}],"right|left|up|down"),"right|left|up":w(({height:n,midpoint:t,width:s})=>[{x:t,y:0},{x:s-t,y:0},{x:s,y:-n/2},{x:s-t,y:-n},{x:t,y:-n},{x:0,y:-n/2}],"right|left|up"),"right|left|down":w(({height:n,midpoint:t,width:s})=>[{x:0,y:0},{x:t,y:-n},{x:s-t,y:-n},{x:s,y:0}],"right|left|down"),"right|up|down":w(({height:n,midpoint:t,width:s})=>[{x:0,y:0},{x:s,y:-t},{x:s,y:-n+t},{x:0,y:-n}],"right|up|down"),"left|up|down":w(({height:n,midpoint:t,width:s})=>[{x:s,y:0},{x:0,y:-t},{x:0,y:-n+t},{x:s,y:-n}],"left|up|down"),"right|left":w(({height:n,midpoint:t,padding:s,width:l})=>[{x:t,y:0},{x:t,y:-s},{x:l-t,y:-s},{x:l-t,y:0},{x:l,y:-n/2},{x:l-t,y:-n},{x:l-t,y:-n+s},{x:t,y:-n+s},{x:t,y:-n},{x:0,y:-n/2}],"right|left"),"up|down":w(({height:n,midpoint:t,padding:s,width:l})=>[{x:l/2,y:0},{x:0,y:-s},{x:t,y:-s},{x:t,y:-n+s},{x:0,y:-n+s},{x:l/2,y:-n},{x:l,y:-n+s},{x:l-t,y:-n+s},{x:l-t,y:-s},{x:l,y:-s}],"up|down"),"right|up":w(({height:n,midpoint:t,width:s})=>[{x:0,y:0},{x:s,y:-t},{x:0,y:-n}],"right|up"),"right|down":w(({height:n,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-n}],"right|down"),"left|up":w(({height:n,midpoint:t,width:s})=>[{x:s,y:0},{x:0,y:-t},{x:s,y:-n}],"left|up"),"left|down":w(({height:n,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-n}],"left|down"),right:w(({height:n,midpoint:t,padding:s,width:l})=>[{x:t,y:-s},{x:t,y:-s},{x:l-t,y:-s},{x:l-t,y:0},{x:l,y:-n/2},{x:l-t,y:-n},{x:l-t,y:-n+s},{x:t,y:-n+s},{x:t,y:-n+s}],"right"),left:w(({height:n,midpoint:t,padding:s,width:l})=>[{x:t,y:0},{x:t,y:-s},{x:l-t,y:-s},{x:l-t,y:-n+s},{x:t,y:-n+s},{x:t,y:-n},{x:0,y:-n/2}],"left"),up:w(({height:n,midpoint:t,padding:s,width:l})=>[{x:t,y:-s},{x:t,y:-n+s},{x:0,y:-n+s},{x:l/2,y:-n},{x:l,y:-n+s},{x:l-t,y:-n+s},{x:l-t,y:-s}],"up"),down:w(({height:n,midpoint:t,padding:s,width:l})=>[{x:l/2,y:0},{x:0,y:-s},{x:t,y:-s},{x:t,y:-n+s},{x:l-t,y:-n+s},{x:l-t,y:-s},{x:l,y:-s}],"down"),[pa]:()=>[{x:0,y:0}]},ir=w((n,t,s,l)=>{let o=sr(n),c=(s.padding??0)/2,p=t.height+4*c,r=p/2,h=l??t.width+2*r+2*c,i=rr(o);return(Ba[i]??Ba[pa])({height:p,midpoint:r,padding:c,width:h})},"getArrowPoints");async function ce(n,t){let s=t,{shapeSvg:l,bbox:o}=await Y(n,s,T(s)),c=s.padding??0,p=o.height+2*c,r=p/2,h=o.width+2*r+c,i=s.width??0,e=s.positioned&&(s.widthInColumns??1)>1&&i>h?i:h,g=ir(s.directions??[],o,s,e),y=ct(l,e,p,g);return y.attr("style",s.style??null),I(s,y),s.intersect=function(f){return N.polygon(s,g,f)},l}w(ce,"block_arrow");async function oe(n,t,{config:{themeVariables:s}}){let{labelStyles:l,nodeStyles:o}=H(t);t.labelStyle=l;let{shapeSvg:c,bbox:p,label:r}=await Y(n,t,T(t)),h=s?.nodeBorder??s?.lineColor??"currentColor",i=t.padding??12,a=18,e=12,g=Math.max(p.width+i*2,t.width??0,90),y=Math.max(p.height+i*2+a,t.height??0),f=-y/2,{cssStyles:u}=t,m=c.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let x=v.svg(c).path(yt(-g/2,f,g,y,e),R(t,{}));m.node()?.appendChild(x),u&&m.attr("style",u)}else m.append("rect").attr("x",-g/2).attr("y",f).attr("width",g).attr("height",y).attr("rx",e).attr("ry",e).attr("style",o);m.append("line").attr("x1",-g/2).attr("y1",f+a).attr("x2",g/2).attr("y2",f+a).attr("style",`stroke:${h};stroke-width:1px`);for(let b=0;b<3;b++)m.append("circle").attr("cx",-g/2+12+b*9).attr("cy",f+a/2).attr("r",2.5).attr("style",`fill:${h};stroke:none`);m.append("rect").attr("class","browser-address-bar").attr("x",-g/2+44).attr("y",f+4).attr("width",Math.max(g-56,10)).attr("height",a-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${h};stroke-width:1px;opacity:0.6`),I(t,m);let d=f+a+(y-a)/2;return r.attr("transform",`translate(${-(p.width/2)-(p.x-(p.left??0))}, ${d-p.height/2-(p.y-(p.top??0))})`),t.intersect=function(b){return N.rect(t,b)},c}w(oe,"browser");var qt=12;async function he(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?28:o,p=t.look==="neo"?24:o,{shapeSvg:r,bbox:h}=await Y(n,t,T(t)),i=(t?.width??h.width)+(t.look==="neo"?c*2:c+qt),a=(t?.height??h.height)+(t.look==="neo"?p*2:p),e=0,g=i,y=-a,f=0,u=[{x:e+qt,y},{x:g,y},{x:g,y:f},{x:e,y:f},{x:e,y:y+qt},{x:e+qt,y}],m,{cssStyles:d}=t;if(t.look==="handDrawn"){let b=v.svg(r),x=R(t,{}),S=F(u),$=b.path(S,x);m=r.insert(()=>$,":first-child").attr("transform",`translate(${-i/2}, ${a/2})`),d&&m.attr("style",d)}else m=ct(r,i,a,u);return l&&m.attr("style",l),I(t,m),t.intersect=function(b){return N.polygon(t,u,b)},r}w(he,"card");function ge(n,t){let{nodeStyles:s}=H(t);t.label="";let l=n.insert("g").attr("class",T(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,c=Math.max(28,t.width??0),p=[{x:0,y:c/2},{x:c/2,y:0},{x:0,y:-c/2},{x:-c/2,y:0}],r=v.svg(l),h=R(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let i=F(p),a=r.path(i,h),e=l.insert(()=>a,":first-child");return o&&t.look!=="handDrawn"&&e.selectAll("path").attr("style",o),s&&t.look!=="handDrawn"&&e.selectAll("path").attr("style",s),t.width=28,t.height=28,t.intersect=function(g){return N.polygon(t,p,g)},l}w(ge,"choice");async function fa(n,t,s){let{labelStyles:l,nodeStyles:o}=H(t);t.labelStyle=l;let{shapeSvg:c,bbox:p,halfPadding:r}=await Y(n,t,T(t),{ignoreMinWidth:!0}),h=16,i=s?.padding??r,a=Math.sqrt(p.width**2+p.height**2)/2,e=t.look==="neo"?a+h:a+i,g,{cssStyles:y}=t;if(t.look==="handDrawn"){let f=v.svg(c),u=R(t,{}),m=f.circle(0,0,e*2,u);g=c.insert(()=>m,":first-child"),g.attr("class","basic label-container").attr("style",Q(y))}else g=c.insert("circle",":first-child").attr("class","basic label-container").attr("style",o).attr("r",e).attr("cx",0).attr("cy",0);return I(t,g),t.calcIntersect=function(f,u){let m=f.width/2;return N.circle(f,m,u)},t.intersect=function(f){return J.info("Circle intersect",t,e,f),N.circle(t,e,f)},c}w(fa,"circle");async function ye(n,t){let s=t,l=["node",s.cssClasses,s.class].filter(Boolean).join(" "),{shapeSvg:o,bbox:c,halfPadding:p}=await Y(n,s,l),r=o.insert("rect",":first-child"),h=s.padding??0,i=s.positioned?s.width??0:c.width+h,a=s.positioned?s.height??0:c.height+h,e=s.positioned?-i/2:-c.width/2-p,g=s.positioned?-a/2:-c.height/2-p;return r.attr("class","basic cluster composite label-container").attr("style",s.style??null).attr("rx",s.rx??null).attr("ry",s.ry??null).attr("x",e).attr("y",g).attr("width",i).attr("height",a),I(s,r),s.intersect=function(y){return N.rect(s,y)},o}w(ye,"composite");async function pe(n,t,{config:{themeVariables:s}}){let{labelStyles:l,nodeStyles:o}=H(t);t.labelStyle=l;let{shapeSvg:c,bbox:p,label:r}=await Y(n,t,T(t)),h=s?.nodeBorder??s?.lineColor??"currentColor",i=t.padding??12,a=20,e=12,g=Math.max(p.width+i*2,t.width??0,90),y=Math.max(p.height+i*2+a,t.height??0),f=-y/2,{cssStyles:u}=t,m=c.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let x=v.svg(c).path(yt(-g/2,f,g,y,e),R(t,{}));m.node()?.appendChild(x),u&&m.attr("style",u)}else m.append("rect").attr("x",-g/2).attr("y",f).attr("width",g).attr("height",y).attr("rx",e).attr("ry",e).attr("style",o);m.append("text").attr("x",-g/2+12).attr("y",f+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${h}`).text(">_"),I(t,m);let d=f+a+(y-a)/2;return r.attr("transform",`translate(${-(p.width/2)-(p.x-(p.left??0))}, ${d-p.height/2-(p.y-(p.top??0))})`),t.intersect=function(b){return N.rect(t,b)},c}w(pe,"consoleWindow");function fe(n){let t=Math.cos(Math.PI/4),s=Math.sin(Math.PI/4),l=n*2,o={x:l/2*t,y:l/2*s},c={x:-(l/2)*t,y:l/2*s},p={x:-(l/2)*t,y:-(l/2)*s},r={x:l/2*t,y:-(l/2)*s};return`M ${c.x},${c.y} L ${r.x},${r.y}
|
|
2
|
+
M ${o.x},${o.y} L ${p.x},${p.y}`}w(fe,"createLine");function ue(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s,t.label="";let o=n.insert("g").attr("class",T(t)).attr("id",t.domId??t.id),c=Math.max(30,t?.width??0),{cssStyles:p}=t,r=v.svg(o),h=R(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let i=r.circle(0,0,c*2,h),a=fe(c),e=r.path(a,h),g=o.insert(()=>i,":first-child");return g.insert(()=>e),g.attr("class","outer-path"),p&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",p),l&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",l),I(t,g),t.intersect=function(y){return J.info("crossedCircle intersect",t,{radius:c,point:y}),N.circle(t,c,y)},o}w(ue,"crossedCircle");function ht(n,t,s,l=100,o=0,c=180){let p=[],r=o*Math.PI/180,a=(c*Math.PI/180-r)/(l-1);for(let e=0;e<l;e++){let g=r+e*a,y=n+s*Math.cos(g),f=t+s*Math.sin(g);p.push({x:-y,y:-f})}return p}w(ht,"generateCirclePoints");async function de(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,label:p}=await Y(n,t,T(t)),r=t.look==="neo"?18:t.padding??0,h=t.look==="neo"?12:t.padding??0,i=c.width+r,a=c.height+h,e=Math.max(5,a*.1),{cssStyles:g}=t,y=[...ht(i/2,-a/2,e,30,-90,0),{x:-i/2-e,y:e},...ht(i/2+e*2,-e,e,20,-180,-270),...ht(i/2+e*2,e,e,20,-90,-180),{x:-i/2-e,y:-a/2},...ht(i/2,a/2,e,20,0,90)],f=[{x:i/2,y:-a/2-e},{x:-i/2,y:-a/2-e},...ht(i/2,-a/2,e,20,-90,0),{x:-i/2-e,y:-e},...ht(i/2+i*.1,-e,e,20,-180,-270),...ht(i/2+i*.1,e,e,20,-90,-180),{x:-i/2-e,y:a/2},...ht(i/2,a/2,e,20,0,90),{x:-i/2,y:a/2+e},{x:i/2,y:a/2+e}],u=v.svg(o),m=R(t,{fill:"none"});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let b=F(y).replace("Z",""),x=u.path(b,m),S=F(f),$=u.path(S,{...m}),M=o.insert("g",":first-child");return M.insert(()=>$,":first-child").attr("stroke-opacity",0),M.insert(()=>x,":first-child"),M.attr("class","text"),g&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",g),l&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",l),M.attr("transform",`translate(${e}, 0)`),p.attr("transform",`translate(${-i/2+e-(c.x-(c.left??0))},${-a/2+(t.padding??0)/2-(c.y-(c.top??0))})`),I(t,M),t.intersect=function(k){return N.polygon(t,f,k)},o}w(de,"curlyBraceLeft");function gt(n,t,s,l=100,o=0,c=180){let p=[],r=o*Math.PI/180,a=(c*Math.PI/180-r)/(l-1);for(let e=0;e<l;e++){let g=r+e*a,y=n+s*Math.cos(g),f=t+s*Math.sin(g);p.push({x:y,y:f})}return p}w(gt,"generateCirclePoints");async function me(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,label:p}=await Y(n,t,T(t)),r=t.look==="neo"?18:t.padding??0,h=t.look==="neo"?12:t.padding??0,i=c.width+(t.look==="neo"?r*2:r),a=c.height+(t.look==="neo"?h*2:h),e=Math.max(5,a*.1),{cssStyles:g}=t,y=[...gt(i/2,-a/2,e,20,-90,0),{x:i/2+e,y:-e},...gt(i/2+e*2,-e,e,20,-180,-270),...gt(i/2+e*2,e,e,20,-90,-180),{x:i/2+e,y:a/2},...gt(i/2,a/2,e,20,0,90)],f=[{x:-i/2,y:-a/2-e},{x:i/2,y:-a/2-e},...gt(i/2,-a/2,e,20,-90,0),{x:i/2+e,y:-e},...gt(i/2+e*2,-e,e,20,-180,-270),...gt(i/2+e*2,e,e,20,-90,-180),{x:i/2+e,y:a/2},...gt(i/2,a/2,e,20,0,90),{x:i/2,y:a/2+e},{x:-i/2,y:a/2+e}],u=v.svg(o),m=R(t,{fill:"none"});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let b=F(y).replace("Z",""),x=u.path(b,m),S=F(f),$=u.path(S,{...m}),M=o.insert("g",":first-child");return M.insert(()=>$,":first-child").attr("stroke-opacity",0),M.insert(()=>x,":first-child"),M.attr("class","text"),g&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",g),l&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",l),M.attr("transform",`translate(${-e}, 0)`),p.attr("transform",`translate(${-i/2+(t.padding??0)/2-(c.x-(c.left??0))},${-a/2+(t.padding??0)/2-(c.y-(c.top??0))})`),I(t,M),t.intersect=function(k){return N.polygon(t,f,k)},o}w(me,"curlyBraceRight");function tt(n,t,s,l=100,o=0,c=180){let p=[],r=o*Math.PI/180,a=(c*Math.PI/180-r)/(l-1);for(let e=0;e<l;e++){let g=r+e*a,y=n+s*Math.cos(g),f=t+s*Math.sin(g);p.push({x:-y,y:-f})}return p}w(tt,"generateCirclePoints");async function be(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,label:p}=await Y(n,t,T(t)),r=t.look==="neo"?18:t.padding??0,h=t.look==="neo"?12:t.padding??0,i=c.width+(t.look==="neo"?r*2:r),a=c.height+(t.look==="neo"?h*2:h),e=Math.max(5,a*.1),{cssStyles:g}=t,y=[...tt(i/2,-a/2,e,30,-90,0),{x:-i/2-e,y:e},...tt(i/2+e*2,-e,e,20,-180,-270),...tt(i/2+e*2,e,e,20,-90,-180),{x:-i/2-e,y:-a/2},...tt(i/2,a/2,e,20,0,90)],f=[...tt(-i/2+e+e/2,-a/2,e,20,-90,-180),{x:i/2-e/2,y:e},...tt(-i/2-e/2,-e,e,20,0,90),...tt(-i/2-e/2,e,e,20,-90,0),{x:i/2-e/2,y:-e},...tt(-i/2+e+e/2,a/2,e,30,-180,-270)],u=[{x:i/2,y:-a/2-e},{x:-i/2,y:-a/2-e},...tt(i/2,-a/2,e,20,-90,0),{x:-i/2-e,y:-e},...tt(i/2+e*2,-e,e,20,-180,-270),...tt(i/2+e*2,e,e,20,-90,-180),{x:-i/2-e,y:a/2},...tt(i/2,a/2,e,20,0,90),{x:-i/2,y:a/2+e},{x:i/2-e-e/2,y:a/2+e},...tt(-i/2+e+e/2,-a/2,e,20,-90,-180),{x:i/2-e/2,y:e},...tt(-i/2-e/2,-e,e,20,0,90),...tt(-i/2-e/2,e,e,20,-90,0),{x:i/2-e/2,y:-e},...tt(-i/2+e+e/2,a/2,e,30,-180,-270)],m=v.svg(o),d=R(t,{fill:"none"});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let x=F(y).replace("Z",""),S=m.path(x,d),M=F(f).replace("Z",""),k=m.path(M,d),P=F(u),O=m.path(P,{...d}),C=o.insert("g",":first-child");return C.insert(()=>O,":first-child").attr("stroke-opacity",0),C.insert(()=>S,":first-child"),C.insert(()=>k,":first-child"),C.attr("class","text"),g&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",g),l&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",l),C.attr("transform",`translate(${e-e/4}, 0)`),p.attr("transform",`translate(${-i/2+(t.padding??0)/2-(c.x-(c.left??0))},${-a/2+(t.padding??0)/2-(c.y-(c.top??0))})`),I(t,C),t.intersect=function(B){return N.polygon(t,u,B)},o}w(be,"curlyBraces");async function xe(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,p=t.look==="neo"?12:o,r=20,h=5,{shapeSvg:i,bbox:a}=await Y(n,t,T(t)),e=Math.max(h,a.height+p*2,t?.height??0),g=e/2,y=g-Math.sqrt(Math.max(0,g**2-(a.height/2)**2)),f=Math.max(e/4,y),u=Math.max(r,a.width+c*2+f*2,(a.width+c*2)*1.25,t?.width??0),{cssStyles:m}=t,d=v.svg(i),b=R(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let x=u,S=e,$=x-g,M=S/4,k=[{x:$,y:0},{x:M,y:0},{x:0,y:S/2},{x:M,y:S},{x:$,y:S},...lt(-$,-S/2,g,50,270,90)],P=F(k),O=d.path(P,b),C=i.insert(()=>O,":first-child");return C.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",m),l&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",l),C.attr("transform",`translate(${-u/2}, ${-e/2})`),I(t,C),t.intersect=function(B){return N.polygon(t,k,B)},i}w(xe,"curvedTrapezoid");async function we(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,label:p}=await Y(n,t,T(t)),r=t.padding??20,h=Math.max(c.width+r*2,t.width??0,100),i=Math.min(Math.max(h*.23,16),56),a=i*.27,e=Math.max(c.height+r*2,t.height?t.height-(2*i-a):0),g=Math.min(h*.177,e*.45),y=e+2*i-a,f=-y/2,u=f+2*i-a,m=o.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:d}=t;if(t.look==="handDrawn"){let P=v.svg(o),O=R(t,{}),C=P.path(yt(-h/2,u,h,e,g),O),B=P.circle(0,f+i,i*2,O);m.insert(()=>B,":first-child"),m.insert(()=>C,":first-child"),d&&m.attr("style",d)}else m.append("rect").attr("x",-h/2).attr("y",u).attr("width",h).attr("height",e).attr("rx",g).attr("ry",g).attr("style",l),m.append("circle").attr("cx",0).attr("cy",f+i).attr("r",i).attr("style",l);I(t,m);let b=u+e/2;p.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${b-c.height/2-(c.y-(c.top??0))})`);let x=f+i,S=Math.asin(Math.min(1,(u-x)/i))*180/Math.PI,k=[...lt(0,-x,i,24,180+S,-S),...lt(-(-h/2+g),-(u+g),g,12,90,0),...lt(-(-h/2+g),-(y/2-g),g,12,360,270),...lt(-(h/2-g),-(y/2-g),g,12,270,180),...lt(-(h/2-g),-(u+g),g,12,180,90)];return t.intersect=function(P){return N.polygon(t,k,P)},o}w(we,"person");var nr=w((n,t,s,l,o,c)=>[`M${n},${t+c}`,`a${o},${c} 0,0,0 ${s},0`,`a${o},${c} 0,0,0 ${-s},0`,`l0,${l}`,`a${o},${c} 0,0,0 ${s},0`,`l0,${-l}`].join(" "),"createCylinderPathD"),lr=w((n,t,s,l,o,c)=>[`M${n},${t+c}`,`M${n+s},${t+c}`,`a${o},${c} 0,0,0 ${-s},0`,`l0,${l}`,`a${o},${c} 0,0,0 ${s},0`,`l0,${-l}`].join(" "),"createOuterCylinderPathD"),cr=w((n,t,s,l,o,c)=>[`M${n-s/2},${-l/2}`,`a${o},${c} 0,0,0 ${s},0`].join(" "),"createInnerCylinderPathD"),Ca=8,Na=8;async function Se(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?24:o,p=t.look==="neo"?24:o,r=t.width??0;if(t.width&&(t.width=t.width-p,t.width<Na&&(t.width=Na)),t.height){let b=r/2/(2.5+r/50);t.height=t.height-c-b*3,t.height<Ca&&(t.height=Ca)}let{shapeSvg:h,bbox:i,label:a}=await Y(n,t,T(t)),e=Math.max(t.width??0,i.width)+p,g=e/2,y=g/(2.5+e/50),f=Math.max(t.height??0,i.height)+c+y,u,{cssStyles:m}=t;if(t.look==="handDrawn"){let d=v.svg(h),b=lr(0,0,e,f,g,y),x=cr(0,y,e,f,g,y),S=R(t,{}),$=d.path(b,S),M=d.path(x,R(t,{fill:"none"}));u=h.insert(()=>M,":first-child"),u=h.insert(()=>$,":first-child"),u.attr("class","basic label-container"),m&&u.attr("style",m)}else{let d=nr(0,0,e,f,g,y);u=h.insert("path",":first-child").attr("d",d).attr("class","basic label-container outer-path").attr("style",Q(m)).attr("style",l)}return u.attr("label-offset-y",y),u.attr("transform",`translate(${-e/2}, ${-(f/2+y)})`),I(t,u),a.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)+(t.padding??0)/1.5-(i.y-(i.top??0))})`),t.intersect=function(d){let b=N.rect(t,d),x=b.x-(t.x??0);if(g!=0&&(Math.abs(x)<(t.width??0)/2||Math.abs(x)==(t.width??0)/2&&Math.abs(b.y-(t.y??0))>(t.height??0)/2-y)){let S=y*y*(1-x*x/(g*g));S>0&&(S=Math.sqrt(S)),S=y-S,d.y-(t.y??0)>0&&(S=-S),b.y+=S}return b},h}w(Se,"cylinder");async function Et(n,t,s){let{labelStyles:l,nodeStyles:o}=H(t);t.labelStyle=l;let{shapeSvg:c,bbox:p}=await Y(n,t,T(t)),r=Math.max(p.width+s.labelPaddingX*2,t?.width||0),h=Math.max(p.height+s.labelPaddingY*2,t?.height||0),i=-r/2,a=-h/2,e,{rx:g,ry:y}=t,{cssStyles:f}=t;if(s?.rx&&s.ry&&(g=s.rx,y=s.ry),t.look==="handDrawn"){let u=v.svg(c),m=R(t,{}),d=g||y?u.path(yt(i,a,r,h,g||0),m):u.rectangle(i,a,r,h,m);e=c.insert(()=>d,":first-child"),e.attr("class","basic label-container").attr("style",Q(f))}else e=c.insert("rect",":first-child"),e.attr("class","basic label-container").attr("style",o).attr("rx",Q(g)).attr("ry",Q(y)).attr("x",i).attr("y",a).attr("width",r).attr("height",h);return I(t,e,t.look==="handDrawn"?void 0:{width:r,height:h}),t.calcIntersect=function(u,m){return N.rect(u,m)},t.intersect=function(u){return N.rect(t,u)},c}w(Et,"drawRect");async function $e(n,t){let{cssClasses:s,labelPaddingX:l,labelPaddingY:o,padding:c,width:p,height:r}=t,h={rx:0,ry:0,classes:s??"",labelPaddingX:l??(c??0)*2,labelPaddingY:o??c??0},i=await Et(n,t,h);if(t.look==="handDrawn"){let y=v.svg(i),f=R(t,{}),u=i.select(".basic.label-container > path:nth-child(2)"),m=u.node();if(!m)return i;let d=null;if(m instanceof SVGGraphicsElement)d=m.getBBox();else return i;return i.insert(()=>y.line(d.x,d.y,d.x+d.width,d.y,f),".basic.label-container g.label"),i.insert(()=>y.line(d.x,d.y+d.height,d.x+d.width,d.y+d.height,f),".basic.label-container g.label"),u.remove(),i}let a=i.select(".basic.label-container"),e=(Number(a.attr("width"))||p)??0,g=(Number(a.attr("height"))||r)??0;return e>0&&g>0&&a.attr("stroke-dasharray",`${e} ${g}`),i}w($e,"datastore");async function ve(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.look==="neo"?16:t.padding??0,c=t.look==="neo"?16:t.padding??0,{shapeSvg:p,bbox:r,label:h}=await Y(n,t,T(t)),i=r.width+o,a=r.height+c,e=a*.2,g=-i/2,y=-a/2-e/2,{cssStyles:f}=t,u=v.svg(p),m=R(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let d=[{x:g,y:y+e},{x:-g,y:y+e},{x:-g,y:-y},{x:g,y:-y},{x:g,y},{x:-g,y},{x:-g,y:y+e}],b=u.polygon(d.map(S=>[S.x,S.y]),m),x=p.insert(()=>b,":first-child");return x.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",f),l&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",l),h.attr("transform",`translate(${g+(t.padding??0)/2-(r.x-(r.left??0))}, ${y+e+(t.padding??0)/2-(r.y-(r.top??0))})`),I(t,x),t.intersect=function(S){return N.rect(t,S)},p}w(ve,"dividedRectangle");async function ke(n,t){let{labelStyles:s,nodeStyles:l}=H(t),o=t.look==="neo"?12:5;t.labelStyle=s;let c=t.padding??0,p=t.look==="neo"?16:c,{shapeSvg:r,bbox:h}=await Y(n,t,T(t),{ignoreMinWidth:!0}),i=Math.sqrt(h.width**2+h.height**2)/2,a=(t?.width?t?.width/2:i)+(p??0),e=a+o,g,{cssStyles:y}=t;if(t.look==="handDrawn"){let f=v.svg(r),u=R(t,{roughness:.2,strokeWidth:2.5}),m=R(t,{roughness:.2,strokeWidth:1.5}),d=f.circle(0,0,e*2,u),b=f.circle(0,0,a*2,m);g=r.insert("g",":first-child"),g.attr("class",Q(t.cssClasses)).attr("style",Q(y)),g.node()?.appendChild(d),g.node()?.appendChild(b)}else{g=r.insert("g",":first-child");let f=g.insert("circle",":first-child"),u=g.insert("circle");g.attr("class","basic label-container").attr("style",l),f.attr("class","outer-circle").attr("style",l).attr("r",e).attr("cx",0).attr("cy",0),u.attr("class","inner-circle").attr("style",l).attr("r",a).attr("cx",0).attr("cy",0)}return I(t,g),t.intersect=function(f){return J.info("DoubleCircle intersect",t,e,f),N.circle(t,e,f)},r}w(ke,"doublecircle");async function Me(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,halfPadding:p}=await Y(n,t,T(t)),{theme:r,themeVariables:h}=V();$t(o,t.colorIndex,r,h.borderColorArray);let i=p??10,a=c.width/2+i*2,e=c.height/2+i*2,g,{cssStyles:y}=t;if(t.look==="handDrawn"){let f=v.svg(o),u=R(t,{}),m=f.ellipse(0,0,a*2,e*2,u);g=o.insert(()=>m,":first-child"),g.attr("class","basic label-container"),y&&g.attr("style",y)}else g=o.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",l).attr("rx",a).attr("ry",e).attr("cx",0).attr("cy",0);return t.width=a*2,t.height=e*2,I(t,g),t.calcIntersect=function(f,u){let m=f.width/2,d=f.height/2;return N.ellipse(f,m,d,u)},t.intersect=function(f){return N.ellipse(t,a,e,f)},o}w(Me,"usecaseEllipse");function Pe(n,t,{config:{themeVariables:s}}){let{labelStyles:l,nodeStyles:o}=H(t);t.label="",t.labelStyle=l;let c=n.insert("g").attr("class",T(t)).attr("id",t.domId??t.id),p=7,{cssStyles:r}=t,h=v.svg(c),{nodeBorder:i}=s,a=R(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(a.roughness=0);let e=h.circle(0,0,p*2,a),g=c.insert(()=>e,":first-child");return g.selectAll("path").attr("style",`fill: ${i} !important;`),r&&r.length>0&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",r),o&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",o),I(t,g),t.intersect=function(y){return J.info("filledCircle intersect",t,{radius:p,point:y}),N.circle(t,p,y)},c}w(Pe,"filledCircle");var Aa=10,Ha=10;async function De(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?o*2:o;(t.width||t.height)&&(t.height=t?.height??0,t.height<Aa&&(t.height=Aa),t.width=(t?.width??0)-c-c/2,t.width<Ha&&(t.width=Ha));let{shapeSvg:p,bbox:r,label:h}=await Y(n,t,T(t)),i=(t?.width?t?.width:r.width)+(c??0),a=t?.height?t?.height:i+r.height,e=a,g=[{x:0,y:-a},{x:e,y:-a},{x:e/2,y:0}],{cssStyles:y}=t,f=v.svg(p),u=R(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=F(g),d=f.path(m,u),b=p.insert(()=>d,":first-child").attr("transform",`translate(${-a/2}, ${a/2})`).attr("class","outer-path");return y&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",y),l&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",l),t.width=i,t.height=a,I(t,b),h.attr("transform",`translate(${-r.width/2-(r.x-(r.left??0))}, ${-a/2+(t.padding??0)/2+(r.y-(r.top??0))})`),t.intersect=function(x){return J.info("Triangle intersect",t,g,x),N.polygon(t,g,x)},p}w(De,"flippedTriangle");async function Be(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,label:p}=await Y(n,t,T(t)),r=t.padding??12,h=Math.max(c.width+r*2,t.width??0,90),i=c.height+r*2,a=Math.max(Math.min(i*.16,14),8),e=Math.max(i+a,t.height??0),g=e-a,y=Math.max(h*.38,28),f=-e/2,u=[{x:-h/2,y:f},{x:-h/2+y,y:f},{x:-h/2+y,y:f+a},{x:h/2,y:f+a},{x:h/2,y:e/2},{x:-h/2,y:e/2}],m=[`M${u[0].x},${u[0].y}`,...u.slice(1).map(S=>`L${S.x},${S.y}`),"Z"].join(" "),{cssStyles:d}=t,b;if(t.look==="handDrawn"){let $=v.svg(o).path(m,R(t,{}));b=o.insert(()=>$,":first-child").attr("class","basic label-container"),d&&b.attr("style",d)}else b=o.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",l);t.look==="handDrawn"?I(t,b):I(t,b,{width:h,height:e});let x=f+a+g/2;return p.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${x-c.height/2-(c.y-(c.top??0))})`),t.intersect=function(S){return N.polygon(t,u,S)},o}w(Be,"folder");function Ce(n,t,{dir:s,config:{state:l,themeVariables:o}}){let{nodeStyles:c}=H(t);t.label="";let p=n.insert("g").attr("class",T(t)).attr("id",t.domId??t.id),{cssStyles:r}=t,h=Math.max(70,t?.width??0),i=Math.max(10,t?.height??0);(s==="LR"||s==="RL")&&(h=Math.max(10,t?.width??0),i=Math.max(70,t?.height??0));let a=-1*h/2,e=-1*i/2,g=v.svg(p),y=R(t,{stroke:o.lineColor,fill:o.lineColor});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let f=g.rectangle(a,e,h,i,y),u=p.insert(()=>f,":first-child");r&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",r),c&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",c),I(t,u);let m=l?.padding??0;return t.width&&t.height&&(t.width+=m/2||0,t.height+=m/2||0),t.intersect=function(d){return N.rect(t,d)},p}w(Ce,"forkJoin");async function Ne(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=15,c=10,p=t.look==="neo"?16:t.padding??0,r=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=(t?.height??0)-r*2,t.height<c&&(t.height=c),t.width=(t?.width??0)-p*2,t.width<o&&(t.width=o));let{shapeSvg:h,bbox:i}=await Y(n,t,T(t)),a=(t?.height?t?.height:Math.max(c,i.height))+r*2,e=a/2,g=e-Math.sqrt(Math.max(0,e**2-(i.height/2)**2)),y=(t?.width?t?.width:Math.max(o,i.width)+g*2)+p*2,{cssStyles:f}=t,u=v.svg(h),m=R(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let d=[{x:-y/2,y:-a/2},{x:y/2-e,y:-a/2},...lt(-y/2+e,0,e,50,90,270),{x:y/2-e,y:a/2},{x:-y/2,y:a/2}],b=F(d),x=u.path(b,m),S=h.insert(()=>x,":first-child");return S.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",f),l&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",l),I(t,S),t.intersect=function($){return J.info("Pill intersect",t,{radius:e,point:$}),N.polygon(t,d,$)},h}w(Ne,"halfRoundedRectangle");var or=w((n,t,s,l,o)=>[`M${n+o},${t}`,`L${n+s-o},${t}`,`L${n+s},${t-l/2}`,`L${n+s-o},${t-l}`,`L${n+o},${t-l}`,`L${n},${t-l/2}`,"Z"].join(" "),"createHexagonPathD");async function Ae(n,t){let{labelStyles:s,nodeStyles:l}=H(t),o=t.look==="neo"?3.5:4;t.labelStyle=s;let c=t.padding??0,p=70,r=32,h=t.look==="neo"?p:c,i=t.look==="neo"?r:c;if(t.width||t.height){let x=(t.height??0)/o;t.width=(t?.width??0)-2*x-i,t.height=(t.height??0)-h}let{shapeSvg:a,bbox:e}=await Y(n,t,T(t)),g=(t?.height?t?.height:e.height)+h,y=g/o,f=(t?.width?t?.width:e.width)+2*y+i,u=[{x:y,y:0},{x:f-y,y:0},{x:f,y:-g/2},{x:f-y,y:-g},{x:y,y:-g},{x:0,y:-g/2}],m,{cssStyles:d}=t;if(t.look==="handDrawn"){let b=v.svg(a),x=R(t,{}),S=or(0,0,f,g,y),$=b.path(S,x);m=a.insert(()=>$,":first-child").attr("transform",`translate(${-f/2}, ${g/2})`),d&&m.attr("style",d)}else m=ct(a,f,g,u);return l&&m.attr("style",l),t.width=f,t.height=g,I(t,m),t.intersect=function(b){return N.polygon(t,u,b)},a}w(Ae,"hexagon");async function He(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.label="",t.labelStyle=s;let{shapeSvg:o}=await Y(n,t,T(t)),c=Math.max(30,t?.width??0),p=Math.max(30,t?.height??0),{cssStyles:r}=t,h=v.svg(o),i=R(t,{});t.look!=="handDrawn"&&(i.roughness=0,i.fillStyle="solid");let a=[{x:0,y:0},{x:c,y:0},{x:0,y:p},{x:c,y:p}],e=F(a),g=h.path(e,i),y=o.insert(()=>g,":first-child");return y.attr("class","basic label-container outer-path"),r&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",r),l&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",l),y.attr("transform",`translate(${-c/2}, ${-p/2})`),I(t,y),t.intersect=function(f){return J.info("Pill intersect",t,{points:a}),N.polygon(t,a,f)},o}w(He,"hourglass");async function Ie(n,t,{config:{themeVariables:s,flowchart:l}}){let{labelStyles:o}=H(t);t.labelStyle=o;let c=t.assetHeight??48,p=t.assetWidth??48,r=Math.max(c,p),h=l?.wrappingWidth;t.width=Math.max(r,h??0);let{shapeSvg:i,bbox:a,label:e}=await Y(n,t,"icon-shape default"),g=t.pos==="t",y=r,f=r,{nodeBorder:u}=s,{stylesMap:m}=Dt(t),d=-f/2,b=-y/2,x=t.label?8:0,S=v.svg(i),$=R(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid");let M=S.rectangle(d,b,f,y,$),k=Math.max(f,a.width),P=y+a.height+x,O=S.rectangle(-k/2,-P/2,k,P,{...$,fill:"transparent",stroke:"none"}),C=i.insert(()=>M,":first-child"),B=i.insert(()=>O);if(t.icon){let L=i.append("g");L.html(`<g>${await St(t.icon,{height:r,width:r,fallbackPrefix:""})}</g>`);let D=L.node().getBBox(),E=D.width,W=D.height,A=D.x,_=D.y;L.attr("transform",`translate(${-E/2-A},${g?a.height/2+x/2-W/2-_:-a.height/2-x/2-W/2-_})`),L.attr("style",`color: ${m.get("stroke")??u};`)}return e.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))},${g?-P/2:P/2-a.height})`),C.attr("transform",`translate(0,${g?a.height/2+x/2:-a.height/2-x/2})`),I(t,B),t.intersect=function(L){if(J.info("iconSquare intersect",t,L),!t.label)return N.rect(t,L);let D=t.x??0,E=t.y??0,W=t.height??0,A=[];return g?A=[{x:D-a.width/2,y:E-W/2},{x:D+a.width/2,y:E-W/2},{x:D+a.width/2,y:E-W/2+a.height+x},{x:D+f/2,y:E-W/2+a.height+x},{x:D+f/2,y:E+W/2},{x:D-f/2,y:E+W/2},{x:D-f/2,y:E-W/2+a.height+x},{x:D-a.width/2,y:E-W/2+a.height+x}]:A=[{x:D-f/2,y:E-W/2},{x:D+f/2,y:E-W/2},{x:D+f/2,y:E-W/2+y},{x:D+a.width/2,y:E-W/2+y},{x:D+a.width/2/2,y:E+W/2},{x:D-a.width/2,y:E+W/2},{x:D-a.width/2,y:E-W/2+y},{x:D-f/2,y:E-W/2+y}],N.polygon(t,A,L)},i}w(Ie,"icon");async function Re(n,t,{config:{themeVariables:s,flowchart:l}}){let{labelStyles:o}=H(t);t.labelStyle=o;let c=t.assetHeight??48,p=t.assetWidth??48,r=Math.max(c,p),h=l?.wrappingWidth;t.width=Math.max(r,h??0);let{shapeSvg:i,bbox:a,label:e}=await Y(n,t,"icon-shape default"),g=20,y=t.label?8:0,f=t.pos==="t",{nodeBorder:u,mainBkg:m}=s,{stylesMap:d}=Dt(t),b=v.svg(i),x=R(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let S=d.get("fill");x.stroke=S??m;let $=i.append("g");t.icon&&$.html(`<g>${await St(t.icon,{height:r,width:r,fallbackPrefix:""})}</g>`);let M=$.node().getBBox(),k=M.width,P=M.height,O=M.x,C=M.y,B=Math.max(k,P)*Math.SQRT2+g*2,L=b.circle(0,0,B,x),D=Math.max(B,a.width),E=B+a.height+y,W=b.rectangle(-D/2,-E/2,D,E,{...x,fill:"transparent",stroke:"none"}),A=i.insert(()=>L,":first-child"),_=i.insert(()=>W);return $.attr("transform",`translate(${-k/2-O},${f?a.height/2+y/2-P/2-C:-a.height/2-y/2-P/2-C})`),$.attr("style",`color: ${d.get("stroke")??u};`),e.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))},${f?-E/2:E/2-a.height})`),A.attr("transform",`translate(0,${f?a.height/2+y/2:-a.height/2-y/2})`),I(t,_),t.intersect=function(X){return J.info("iconSquare intersect",t,X),N.rect(t,X)},i}w(Re,"iconCircle");async function Le(n,t,{config:{themeVariables:s,flowchart:l}}){let{labelStyles:o}=H(t);t.labelStyle=o;let c=t.assetHeight??48,p=t.assetWidth??48,r=Math.max(c,p),h=l?.wrappingWidth;t.width=Math.max(r,h??0);let{shapeSvg:i,bbox:a,halfPadding:e,label:g}=await Y(n,t,"icon-shape default"),y=t.pos==="t",f=r+e*2,u=r+e*2,{nodeBorder:m,mainBkg:d}=s,{stylesMap:b}=Dt(t),x=-u/2,S=-f/2,$=t.label?8:0,M=v.svg(i),k=R(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let P=b.get("fill");k.stroke=P??d;let O=M.path(yt(x,S,u,f,5),k),C=Math.max(u,a.width),B=f+a.height+$,L=M.rectangle(-C/2,-B/2,C,B,{...k,fill:"transparent",stroke:"none"}),D=i.insert(()=>O,":first-child").attr("class","icon-shape2"),E=i.insert(()=>L);if(t.icon){let W=i.append("g");W.html(`<g>${await St(t.icon,{height:r,width:r,fallbackPrefix:""})}</g>`);let A=W.node().getBBox(),_=A.width,X=A.height,j=A.x,z=A.y;W.attr("transform",`translate(${-_/2-j},${y?a.height/2+$/2-X/2-z:-a.height/2-$/2-X/2-z})`),W.attr("style",`color: ${b.get("stroke")??m};`)}return g.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))},${y?-B/2:B/2-a.height})`),D.attr("transform",`translate(0,${y?a.height/2+$/2:-a.height/2-$/2})`),I(t,E),t.intersect=function(W){if(J.info("iconSquare intersect",t,W),!t.label)return N.rect(t,W);let A=t.x??0,_=t.y??0,X=t.height??0,j=[];return y?j=[{x:A-a.width/2,y:_-X/2},{x:A+a.width/2,y:_-X/2},{x:A+a.width/2,y:_-X/2+a.height+$},{x:A+u/2,y:_-X/2+a.height+$},{x:A+u/2,y:_+X/2},{x:A-u/2,y:_+X/2},{x:A-u/2,y:_-X/2+a.height+$},{x:A-a.width/2,y:_-X/2+a.height+$}]:j=[{x:A-u/2,y:_-X/2},{x:A+u/2,y:_-X/2},{x:A+u/2,y:_-X/2+f},{x:A+a.width/2,y:_-X/2+f},{x:A+a.width/2/2,y:_+X/2},{x:A-a.width/2,y:_+X/2},{x:A-a.width/2,y:_-X/2+f},{x:A-u/2,y:_-X/2+f}],N.polygon(t,j,W)},i}w(Le,"iconRounded");async function Ee(n,t,{config:{themeVariables:s,flowchart:l}}){let{labelStyles:o}=H(t);t.labelStyle=o;let c=t.assetHeight??48,p=t.assetWidth??48,r=Math.max(c,p),h=l?.wrappingWidth;t.width=Math.max(r,h??0);let{shapeSvg:i,bbox:a,halfPadding:e,label:g}=await Y(n,t,"icon-shape default"),y=t.pos==="t",f=r+e*2,u=r+e*2,{nodeBorder:m,mainBkg:d}=s,{stylesMap:b}=Dt(t),x=-u/2,S=-f/2,$=t.label?8:0,M=v.svg(i),k=R(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let P=b.get("fill");k.stroke=P??d;let O=M.path(yt(x,S,u,f,.1),k),C=Math.max(u,a.width),B=f+a.height+$,L=M.rectangle(-C/2,-B/2,C,B,{...k,fill:"transparent",stroke:"none"}),D=i.insert(()=>O,":first-child"),E=i.insert(()=>L);if(t.icon){let W=i.append("g");W.html(`<g>${await St(t.icon,{height:r,width:r,fallbackPrefix:""})}</g>`);let A=W.node().getBBox(),_=A.width,X=A.height,j=A.x,z=A.y;W.attr("transform",`translate(${-_/2-j},${y?a.height/2+$/2-X/2-z:-a.height/2-$/2-X/2-z})`),W.attr("style",`color: ${b.get("stroke")??m};`)}return g.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))},${y?-B/2:B/2-a.height})`),D.attr("transform",`translate(0,${y?a.height/2+$/2:-a.height/2-$/2})`),I(t,E),t.intersect=function(W){if(J.info("iconSquare intersect",t,W),!t.label)return N.rect(t,W);let A=t.x??0,_=t.y??0,X=t.height??0,j=[];return y?j=[{x:A-a.width/2,y:_-X/2},{x:A+a.width/2,y:_-X/2},{x:A+a.width/2,y:_-X/2+a.height+$},{x:A+u/2,y:_-X/2+a.height+$},{x:A+u/2,y:_+X/2},{x:A-u/2,y:_+X/2},{x:A-u/2,y:_-X/2+a.height+$},{x:A-a.width/2,y:_-X/2+a.height+$}]:j=[{x:A-u/2,y:_-X/2},{x:A+u/2,y:_-X/2},{x:A+u/2,y:_-X/2+f},{x:A+a.width/2,y:_-X/2+f},{x:A+a.width/2/2,y:_+X/2},{x:A-a.width/2,y:_+X/2},{x:A-a.width/2,y:_-X/2+f},{x:A-u/2,y:_-X/2+f}],N.polygon(t,j,W)},i}w(Ee,"iconSquare");async function We(n,t,{config:{flowchart:s}}){let l=new Image;l.src=t?.img??"",await l.decode();let o=Number(l.naturalWidth.toString().replace("px","")),c=Number(l.naturalHeight.toString().replace("px",""));t.imageAspectRatio=o/c;let{labelStyles:p}=H(t);t.labelStyle=p;let r=s?.wrappingWidth;t.defaultWidth=s?.wrappingWidth;let h=Math.max(t.label?r??0:0,t?.assetWidth??o),i=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:h,a=t.constraint==="on"?i/t.imageAspectRatio:t?.assetHeight??c;t.width=Math.max(i,r??0);let{shapeSvg:e,bbox:g,label:y}=await Y(n,t,"image-shape default"),f=t.pos==="t",u=-i/2,m=-a/2,d=t.label?8:0,b=v.svg(e),x=R(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let S=b.rectangle(u,m,i,a,x),$=Math.max(i,g.width),M=a+g.height+d,k=b.rectangle(-$/2,-M/2,$,M,{...x,fill:"none",stroke:"none"}),P=e.insert(()=>S,":first-child"),O=e.insert(()=>k);if(t.img){let C=e.append("image");C.attr("href",t.img),C.attr("width",i),C.attr("height",a),C.attr("preserveAspectRatio","none"),C.attr("transform",`translate(${-i/2},${f?M/2-a:-M/2})`)}return y.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${f?-a/2-g.height/2-d/2:a/2-g.height/2+d/2})`),P.attr("transform",`translate(0,${f?g.height/2+d/2:-g.height/2-d/2})`),I(t,O),t.intersect=function(C){if(J.info("iconSquare intersect",t,C),!t.label)return N.rect(t,C);let B=t.x??0,L=t.y??0,D=t.height??0,E=[];return f?E=[{x:B-g.width/2,y:L-D/2},{x:B+g.width/2,y:L-D/2},{x:B+g.width/2,y:L-D/2+g.height+d},{x:B+i/2,y:L-D/2+g.height+d},{x:B+i/2,y:L+D/2},{x:B-i/2,y:L+D/2},{x:B-i/2,y:L-D/2+g.height+d},{x:B-g.width/2,y:L-D/2+g.height+d}]:E=[{x:B-i/2,y:L-D/2},{x:B+i/2,y:L-D/2},{x:B+i/2,y:L-D/2+a},{x:B+g.width/2,y:L-D/2+a},{x:B+g.width/2/2,y:L+D/2},{x:B-g.width/2,y:L+D/2},{x:B-g.width/2,y:L-D/2+a},{x:B-i/2,y:L-D/2+a}],N.polygon(t,E,C)},e}w(We,"imageSquare");async function Te(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=o,p=t.look==="neo"?o*2:o,{shapeSvg:r,bbox:h}=await Y(n,t,T(t)),i=Math.max(h.height+c*2,t.height??0),a=Math.max(h.width+p*2,(t.width??0)-i),e=[{x:0,y:0},{x:a,y:0},{x:a+3*i/6,y:-i},{x:-3*i/6,y:-i}],g,{cssStyles:y}=t;if(t.look==="handDrawn"){let f=v.svg(r),u=R(t,{}),m=F(e),d=f.path(m,u);g=r.insert(()=>d,":first-child").attr("transform",`translate(${-a/2}, ${i/2})`),y&&g.attr("style",y)}else g=ct(r,a,i,e);return l&&g.attr("style",l),t.width=a,t.height=i,I(t,g),t.intersect=function(f){return N.polygon(t,e,f)},r}w(Te,"inv_trapezoid");async function _e(n,t){let{shapeSvg:s,bbox:l,label:o}=await Y(n,t,"label"),c=s.insert("rect",":first-child");return c.attr("width",.1).attr("height",.1),s.attr("class","label edgeLabel"),o.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),I(t,c),t.intersect=function(h){return N.rect(t,h)},s}w(_e,"labelRect");async function Ye(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=o,p=t.look==="neo"?o*2:o,{shapeSvg:r,bbox:h}=await Y(n,t,T(t)),i=Math.max(h.height+c,t.height??0),a=Math.max(h.width+p,(t.width??0)-i),e=[{x:0,y:0},{x:a+3*i/6,y:0},{x:a,y:-i},{x:-(3*i)/6,y:-i}],g,{cssStyles:y}=t;if(t.look==="handDrawn"){let f=v.svg(r),u=R(t,{}),m=F(e),d=f.path(m,u);g=r.insert(()=>d,":first-child").attr("transform",`translate(${-a/2}, ${i/2})`),y&&g.attr("style",y)}else g=ct(r,a,i,e);return l&&g.attr("style",l),t.width=a,t.height=i,I(t,g),t.intersect=function(f){return N.polygon(t,e,f)},r}w(Ye,"lean_left");async function Oe(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=o,p=t.look==="neo"?o*2:o,{shapeSvg:r,bbox:h}=await Y(n,t,T(t)),i=Math.max(h.height+c,t.height??0),a=Math.max(h.width+p,(t.width??0)-i),e=[{x:-3*i/6,y:0},{x:a,y:0},{x:a+3*i/6,y:-i},{x:0,y:-i}],g,{cssStyles:y}=t;if(t.look==="handDrawn"){let f=v.svg(r),u=R(t,{}),m=F(e),d=f.path(m,u);g=r.insert(()=>d,":first-child").attr("transform",`translate(${-a/2}, ${i/2})`),y&&g.attr("style",y)}else g=ct(r,a,i,e);return l&&g.attr("style",l),t.width=a,t.height=i,I(t,g),t.intersect=function(f){return N.polygon(t,e,f)},r}w(Oe,"lean_right");function Xe(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.label="",t.labelStyle=s;let o=n.insert("g").attr("class",T(t)).attr("id",t.domId??t.id),{cssStyles:c}=t,p=Math.max(35,t?.width??0),r=Math.max(35,t?.height??0),h=7,i=[{x:p,y:0},{x:0,y:r+h/2},{x:p-2*h,y:r+h/2},{x:0,y:2*r},{x:p,y:r-h/2},{x:2*h,y:r-h/2}],a=v.svg(o),e=R(t,{});t.look!=="handDrawn"&&(e.roughness=0,e.fillStyle="solid");let g=F(i),y=a.path(g,e),f=o.insert(()=>y,":first-child");return f.attr("class","outer-path"),c&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",c),l&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",l),f.attr("transform",`translate(-${p/2},${-r})`),I(t,f),t.intersect=function(u){return J.info("lightningBolt intersect",t,u),N.polygon(t,i,u)},o}w(Xe,"lightningBolt");var hr=w((n,t,s,l,o,c,p)=>[`M${n},${t+c}`,`a${o},${c} 0,0,0 ${s},0`,`a${o},${c} 0,0,0 ${-s},0`,`l0,${l}`,`a${o},${c} 0,0,0 ${s},0`,`l0,${-l}`,`M${n},${t+c+p}`,`a${o},${c} 0,0,0 ${s},0`].join(" "),"createCylinderPathD"),gr=w((n,t,s,l,o,c,p)=>[`M${n},${t+c}`,`M${n+s},${t+c}`,`a${o},${c} 0,0,0 ${-s},0`,`l0,${l}`,`a${o},${c} 0,0,0 ${s},0`,`l0,${-l}`,`M${n},${t+c+p}`,`a${o},${c} 0,0,0 ${s},0`].join(" "),"createOuterCylinderPathD"),yr=w((n,t,s,l,o,c)=>[`M${n-s/2},${-l/2}`,`a${o},${c} 0,0,0 ${s},0`].join(" "),"createInnerCylinderPathD"),Ia=10,Ra=10;async function Ge(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,p=t.look==="neo"?24:o;if(t.width||t.height){let d=t.width??0;t.width=(t.width??0)-c,t.width<Ra&&(t.width=Ra);let x=d/2/(2.5+d/50);t.height=(t.height??0)-p-x*3,t.height<Ia&&(t.height=Ia)}let{shapeSvg:r,bbox:h,label:i}=await Y(n,t,T(t)),a=(t?.width?t?.width:h.width)+c*2,e=a/2,g=e/(2.5+a/50),y=(t?.height?t?.height:h.height)+g+p*2,f=y*.1,u,{cssStyles:m}=t;if(t.look==="handDrawn"){let d=v.svg(r),b=gr(0,0,a,y,e,g,f),x=yr(0,g,a,y,e,g),S=R(t,{}),$=d.path(b,S),M=d.path(x,S);r.insert(()=>M,":first-child").attr("class","line"),u=r.insert(()=>$,":first-child"),u.attr("class","basic label-container"),m&&u.attr("style",m)}else{let d=hr(0,0,a,y,e,g,f);u=r.insert("path",":first-child").attr("d",d).attr("class","basic label-container outer-path").attr("style",Q(m)).attr("style",l)}return u.attr("label-offset-y",g),u.attr("transform",`translate(${-a/2}, ${-(y/2+g)})`),I(t,u),i.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${-(h.height/2)+g-(h.y-(h.top??0))})`),t.intersect=function(d){let b=N.rect(t,d),x=b.x-(t.x??0);if(e!=0&&(Math.abs(x)<(t.width??0)/2||Math.abs(x)==(t.width??0)/2&&Math.abs(b.y-(t.y??0))>(t.height??0)/2-g)){let S=g*g*(1-x*x/(e*e));S>0&&(S=Math.sqrt(S)),S=g-S,d.y-(t.y??0)>0&&(S=-S),b.y+=S}return b},r}w(Ge,"linedCylinder");async function je(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,p=t.look==="neo"?12:o;if(t.width||t.height){let S=t.width;t.width=(S??0)*10/11-c*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-p*2,t.height<10&&(t.height=10)}let{shapeSvg:r,bbox:h,label:i}=await Y(n,t,T(t)),a=(t?.width?t?.width:h.width)+(c??0)*2,e=(t?.height?t?.height:h.height)+(p??0)*2,g=t.look==="neo"?e/4:e/8,y=e+g,{cssStyles:f}=t,u=v.svg(r),m=R(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let d=[{x:-a/2-a/2*.1,y:-y/2},{x:-a/2-a/2*.1,y:y/2},...dt(-a/2-a/2*.1,y/2,a/2+a/2*.1,y/2,g,.8),{x:a/2+a/2*.1,y:-y/2},{x:-a/2-a/2*.1,y:-y/2},{x:-a/2,y:-y/2},{x:-a/2,y:y/2*1.1},{x:-a/2,y:-y/2}],b=u.polygon(d.map(S=>[S.x,S.y]),m),x=r.insert(()=>b,":first-child");return x.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",f),l&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",l),x.attr("transform",`translate(0,${-g/2})`),i.attr("transform",`translate(${-a/2+(t.padding??0)+a/2*.1/2-(h.x-(h.left??0))},${-e/2+(t.padding??0)-g-(h.y-(h.top??0))})`),I(t,x),t.intersect=function(S){return N.polygon(t,d,S)},r}w(je,"linedWaveEdgedRect");var pr=56,ea=72,La=8,Ea=2,fr=8,ur={normal:"usecase-actor-shape usecase-actor-normal",hollow:"usecase-actor-hollow",awesome:"usecase-actor-awesome",icon:"usecase-actor-icon"},Wa=Math.PI/3,Ta=.6,sa=w((n,t)=>{let s=t*Ta,l=t*Math.sqrt(1-Ta**2),o=Math.cos(Wa),c=-Math.sin(Wa),p=s*-c,r=n+s*o,h=l*o,i=l*c;return`M ${p-h} ${r-i} L ${p+h} ${r+i}`},"businessMarkerPathForCircle"),dr={normal:sa(-24,12),hollow:sa(-23,9),awesome:sa(-21,13),icon:"M 12 -8 L 26 -26"},_a=w((n,t,s)=>{let l=(t.x??0)-(t.left??0),o=(t.y??0)-(t.top??0);n.attr("transform",`translate(${-t.width/2-l},${s-t.height/2-o})`)},"positionLabel"),ua=w((n,t,s,l,o=!1)=>{if(t.look==="handDrawn"){let r=v.svg(n).path(s,R(t,o?{fill:"none"}:{}));return n.insert(()=>r,":first-child").attr("class",l)}let c=n.append("path").attr("class",l).attr("d",s);return o&&c.attr("fill","none"),c},"appendActorPath"),mr=w((n,t,s,l,o,c,p=!1)=>{if(t.look==="handDrawn"){let i=v.svg(n).circle(s,l,o*2,R(t,p?{fill:"none"}:{}));return n.insert(()=>i,":first-child").attr("class",c)}let r=n.append("circle").attr("class",c).attr("cx",s).attr("cy",l).attr("r",o);return p&&r.attr("fill","none"),r},"appendActorCircle"),br=w((n,t,s)=>{t.business&&n.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",dr[s]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");async function Ot(n,t,s,l){let{labelStyles:o,nodeStyles:c}=H(t);t.labelStyle=o;let p=s==="icon"||t.stereotype!==void 0?{...t,icon:s==="icon"?void 0:t.icon,stereotype:void 0}:t,{shapeSvg:r,bbox:h,label:i}=await Y(n,p,T(t,`usecase-actor-variant usecase-actor-${s}`)),a=t.accessibleName??t.label;a&&r.attr("role","img").attr("aria-label",a),i.attr("class","label actor-label usecase-actor-label");let{theme:e,themeVariables:g}=V();$t(r,t.colorIndex,e,g.borderColorArray);let y,f;if(t.stereotype){let P=await Mt(r,`\xAB${t.stereotype}\xBB`,{labelStyle:o,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});y=P.label.attr("class","label usecase-stereotype"),f=P.bbox}let u=r.append("g").attr("class",`usecase-actor-glyph ${ur[s]}`).attr("style",c||null);await l(u,t),br(u,t,s);let m=t.padding??fr,d=f?.height??0,b=ea+La+h.height+(f?d+Ea:0),x=Math.max(pr,h.width,f?.width??0)+m*2,S=b+m*2,$=-b/2;u.attr("transform",`translate(0,${$+ea/2})`);let M=$+ea+La;y&&f&&(M+=d/2,_a(y,f,M),M+=d/2+Ea),_a(i,h,M+h.height/2);let k=r.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-x/2).attr("y",-S/2).attr("width",x).attr("height",S).attr("opacity",0).attr("aria-hidden","true");return I(t,k),t.intersect=P=>N.rect(t,P),r}w(Ot,"renderUsecaseActor");var xr=["M 0 -12","C 6.627 -12 12 -17.373 12 -24","C 12 -30.627 6.627 -36 0 -36","C -6.627 -36 -12 -30.627 -12 -24","C -12 -17.373 -6.627 -12 0 -12 Z","M 0 -12 V 8","M -17 -5 H 17","M 0 8 L -15 28","M 0 8 L 15 28"].join(" ");async function Fe(n,t){return Ot(n,t,"normal",(s,l)=>{ua(s,l,xr,"usecase-actor-stick")})}w(Fe,"usecaseActor");var wr=["M 0 -34","C 7.18 -34 13 -28.18 13 -21","C 13 -13.82 7.18 -8 0 -8","C -7.18 -8 -13 -13.82 -13 -21","C -13 -28.18 -7.18 -34 0 -34 Z","M -24 25","C -24 7 -14 -3 0 -3","C 14 -3 24 7 24 25","C 24 28 21 30 18 30","H -18","C -21 30 -24 28 -24 25 Z"].join(" ");async function qe(n,t){return Ot(n,t,"awesome",(s,l)=>{ua(s,l,wr,"usecase-actor-awesome-silhouette")})}w(qe,"usecaseActorAwesome");var Sr=["M -22 -10","H 22","V 0","H 6","L 22 17","L 13 28","L 0 13","L -13 28","L -22 17","L -6 0","H -22","Z"].join(" ");async function Ve(n,t){return Ot(n,t,"hollow",(s,l)=>{mr(s,l,0,-23,9,"usecase-actor-hollow-head",!0),ua(s,l,Sr,"usecase-actor-hollow-body",!0)})}w(Ve,"usecaseActorHollow");var Ct=52,Ya=42,Oa=-2,$r=w(async(n,t)=>{let s=-Ct/2,l=Oa-Ct/2;if(t.look==="handDrawn"){let a=v.svg(n).rectangle(s,l,Ct,Ct,R(t,{}));n.insert(()=>a,":first-child").attr("class","usecase-actor-icon-frame")}else n.append("rect").attr("class","usecase-actor-icon-frame").attr("x",s).attr("y",l).attr("width",Ct).attr("height",Ct).attr("rx",4).attr("ry",4);let o=t.icon??"",c=await va(o.includes(":")?o:`fa:${o}`),p=await St(o,{height:Ya,width:Ya,fallbackPrefix:"fa"}),r=n.append("g").attr("class",`usecase-actor-icon-symbol${c?"":" usecase-actor-icon-fallback"}`).attr("aria-hidden","true").html(`<g>${p}</g>`),h=r.node()?.getBBox();h&&r.attr("transform",`translate(${-h.width/2-h.x},${Oa-h.height/2-h.y})`)},"drawIconActor");async function ze(n,t){return Ot(n,t,"icon",$r)}w(ze,"usecaseActorIcon");var Xa=w((n,t,s)=>{let l=(t.x??0)-(t.left??0),o=(t.y??0)-(t.top??0);n.attr("transform",`translate(${-t.width/2-l},${s-t.height/2-o})`)},"positionLabel");async function Ze(n,t){let s=t,{labelStyles:l,nodeStyles:o}=H(t);t.labelStyle=l;let c=s.stereotype?{...t,stereotype:void 0}:t,{shapeSvg:p,bbox:r,halfPadding:h,label:i}=await Y(n,c,T(t,"usecase-business-shape"));i.attr("class","label usecase-label");let{theme:a,themeVariables:e}=V();$t(p,t.colorIndex,a,e.borderColorArray);let g,y;if(s.stereotype){let D=await Mt(p,`\xAB${s.stereotype}\xBB`,{labelStyle:l,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});g=D.label.attr("class","label usecase-stereotype"),y=D.bbox}let f=y?2:0,u=r.height+(y?.height??0)+f,m=Math.max(r.width,y?.width??0),d=h??10,b=m/2+d*2,x=u/2+d*2,S=Math.min(Math.max(d/5,1),d/2),$=m/2+S,M=b-S,k=$/b,P=M/b,O=x*Math.sqrt(Math.max(0,1-k*k)),C=-x*Math.sqrt(Math.max(0,1-P*P));g&&y&&Xa(g,y,-u/2+y.height/2),Xa(i,r,u/2-r.height/2);let B;if(t.look==="handDrawn"){let E=v.svg(p).ellipse(0,0,b*2,x*2,R(t,{}));B=p.insert(()=>E,":first-child").attr("class","basic label-container usecase-business-ellipse")}else B=p.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",o).attr("rx",b).attr("ry",x).attr("cx",0).attr("cy",0);p.append("path").attr("class","usecase-business-marker").attr("d",`M ${$} ${O} L ${M} ${C}`).attr("fill","none").attr("style",o||null);let L=s.accessibleName??s.label;return L&&p.attr("role","img").attr("aria-label",L),I(t,B),t.calcIntersect=(D,E)=>N.ellipse(D,D.width/2,D.height/2,E),t.intersect=D=>N.ellipse(t,b,x,D),p}w(Ze,"usecaseBusiness");var ra=8,Ga=4,vr=1,ia=w((n,t,s,l)=>{let o=(t.x??0)-(t.left??0),c=(t.y??0)-(t.top??0);n.attr("transform",`translate(${s-t.width/2-o},${l-t.height/2-c})`)},"positionLabel"),kr=w(n=>{let t=Number.parseFloat(n??"");return Number.isFinite(t)&&t>=0?t:vr},"numericStrokeWidth");async function Ue(n,t){let s=t,{labelStyles:l,nodeStyles:o}=H(t),{stylesMap:c}=Dt(t);t.labelStyle=l;let{shapeSvg:p,bbox:r,label:h}=await Y(n,t,T(t,"usecase-json-table"));p.attr("role","img"),s.accessibleName&&p.attr("aria-label",s.accessibleName),h.attr("class","label usecase-json-title");let i=p.append("g").attr("class","usecase-json-table-grid"),a=[];for(let D of s.jsonRows??[]){let E=await Mt(i,D.key,{labelStyle:l,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0}),W=await Mt(i,D.value,{labelStyle:l,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0});a.push({key:{label:E.label.attr("class","label usecase-json-key"),bbox:E.bbox},value:{label:W.label.attr("class","label usecase-json-value"),bbox:W.bbox}})}let e=Math.max(0,...a.map(({key:D})=>D.bbox.width))+ra*2,g=Math.max(0,...a.map(({value:D})=>D.bbox.width))+ra*2,y=r.width+ra*2,f=Math.max(y,e+g),u=g+Math.max(0,f-e-g),m=r.height+Ga*2,d=a.map(({key:D,value:E})=>Math.max(D.bbox.height,E.bbox.height)+Ga*2),b=m+d.reduce((D,E)=>D+E,0),x=kr(c.get("stroke-width")),S=f+x*2,$=b+x*2,M=-f/2,k=-b/2,P=t.look==="handDrawn"?v.svg(p):void 0,O=P?R(t,{}):void 0,C=w((D,E,W,A,_,X)=>{if(P&&O){let j=P.rectangle(W,A,_,X,O);return D.insert(()=>j,":first-child").attr("class",E)}return D.insert("rect",":first-child").attr("class",E).attr("x",W).attr("y",A).attr("width",_).attr("height",X).attr("style",o)},"insertCell"),B=C(p,"label-container usecase-json-border",-S/2,-$/2,S,$);C(i,"usecase-json-cell usecase-json-title-cell",M,k,f,m),i.node()?.append(h.node()),ia(h,r,0,k+m/2);let L=k+m;return a.forEach(({key:D,value:E},W)=>{let A=d[W],_=i.append("g").attr("class","usecase-json-row").attr("data-row-index",W).attr("transform",`translate(0,${L})`);C(_,"usecase-json-cell usecase-json-key-cell",M,0,e,A),C(_,"usecase-json-cell usecase-json-value-cell",M+e,0,u,A),_.node()?.append(D.label.node(),E.label.node()),ia(D.label,D.bbox,M+e/2,A/2),ia(E.label,E.bbox,M+e+u/2,A/2),L+=A}),I(t,B),t.intersect=D=>N.rect(t,D),p}w(Ue,"usecaseJsonTable");async function Je(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,p=t.look==="neo"?12:o,r=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-c*2-2*r,10),t.height=Math.max((t?.height??0)-p*2-2*r,10));let{shapeSvg:h,bbox:i,label:a}=await Y(n,t,T(t)),e=(t?.width?t?.width:i.width)+c*2+2*r,g=(t?.height?t?.height:i.height)+p*2+2*r,y=e-2*r,f=g-2*r,u=-y/2,m=-f/2,{cssStyles:d}=t,b=v.svg(h),x=R(t,{}),S=[{x:u-r,y:m+r},{x:u-r,y:m+f+r},{x:u+y-r,y:m+f+r},{x:u+y-r,y:m+f},{x:u+y,y:m+f},{x:u+y,y:m+f-r},{x:u+y+r,y:m+f-r},{x:u+y+r,y:m-r},{x:u+r,y:m-r},{x:u+r,y:m},{x:u,y:m},{x:u,y:m+r}],$=[{x:u,y:m+r},{x:u+y-r,y:m+r},{x:u+y-r,y:m+f},{x:u+y,y:m+f},{x:u+y,y:m},{x:u,y:m}];t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let M=F(S),k=b.path(M,x),P=F($),O=b.path(P,x);t.look!=="handDrawn"&&(k=la(k),O=la(O));let C=h.insert("g",":first-child");return C.insert(()=>k),C.insert(()=>O),C.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",d),l&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",l),a.attr("transform",`translate(${-(i.width/2)-r-(i.x-(i.left??0))}, ${-(i.height/2)+r-(i.y-(i.top??0))})`),I(t,C),t.intersect=function(B){return N.polygon(t,S,B)},h}w(Je,"multiRect");async function Ke(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,label:p}=await Y(n,t,T(t)),r=t.padding??0,h=t.look==="neo"?16:r,i=t.look==="neo"?12:r,a=!0;(t.width||t.height)&&(a=!1,t.width=(t?.width??0)-h*2,t.height=(t?.height??0)-i*3);let e=Math.max(c.width,t?.width??0)+h*2,g=Math.max(c.height,t?.height??0)+i*3,y=t.look==="neo"?g/4:g/8,f=g+(a?y/2:-y/2),u=-e/2,m=-f/2,d=10,{cssStyles:b}=t,x=dt(u-d,m+f+d,u+e-d,m+f+d,y,.8),S=x?.[x.length-1],$=[{x:u-d,y:m+d},{x:u-d,y:m+f+d},...x,{x:u+e-d,y:S.y-d},{x:u+e,y:S.y-d},{x:u+e,y:S.y-2*d},{x:u+e+d,y:S.y-2*d},{x:u+e+d,y:m-d},{x:u+d,y:m-d},{x:u+d,y:m},{x:u,y:m},{x:u,y:m+d}],M=[{x:u,y:m+d},{x:u+e-d,y:m+d},{x:u+e-d,y:S.y-d},{x:u+e,y:S.y-d},{x:u+e,y:m},{x:u,y:m}],k=v.svg(o),P=R(t,{});t.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");let O=F($),C=k.path(O,P),B=F(M),L=k.path(B,P),D=o.insert(()=>C,":first-child");return D.insert(()=>L),D.attr("class","basic label-container outer-path"),b&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",b),l&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",l),D.attr("transform",`translate(0,${-y/2})`),p.attr("transform",`translate(${-(c.width/2)-d-(c.x-(c.left??0))}, ${-(c.height/2)+d-y-(c.y-(c.top??0))})`),I(t,D),t.intersect=function(E){return N.polygon(t,$,E)},o}w(Ke,"multiWaveEdgedRectangle");async function Qe(n,t,{config:{themeVariables:s}}){let{labelStyles:l,nodeStyles:o}=H(t);t.labelStyle=l,t.useHtmlLabels||wt(Pt())||(t.centerLabel=!0);let{shapeSvg:p,bbox:r,label:h}=await Y(n,t,T(t)),i=Math.max(r.width+(t.padding??0)*2,t?.width??0),a=Math.max(r.height+(t.padding??0)*2,t?.height??0),e=-i/2,g=-a/2,{cssStyles:y}=t,f=v.svg(p),u=R(t,{fill:s.noteBkgColor,stroke:s.noteBorderColor});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=f.rectangle(e,g,i,a,u),d=p.insert(()=>m,":first-child");return d.attr("class","basic label-container outer-path"),h.attr("class","label noteLabel"),y&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",y),o&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",o),h.attr("transform",`translate(${-r.width/2-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),I(t,d),t.intersect=function(b){return N.rect(t,b)},p}w(Qe,"note");var Mr=w((n,t,s)=>[`M${n+s/2},${t}`,`L${n+s},${t-s/2}`,`L${n+s/2},${t-s}`,`L${n},${t-s/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function ts(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let{shapeSvg:o,bbox:c}=await Y(n,t,T(t)),p=c.width+(t.padding??0),r=c.height+(t.padding??0),h=p+r,i=.5,a=[{x:h/2,y:0},{x:h,y:-h/2},{x:h/2,y:-h},{x:0,y:-h/2}],e,{cssStyles:g}=t;if(t.look==="handDrawn"){let y=v.svg(o),f=R(t,{}),u=Mr(0,0,h),m=y.path(u,f);e=o.insert(()=>m,":first-child").attr("transform",`translate(${-h/2+i}, ${h/2})`),g&&e.attr("style",g)}else e=ct(o,h,h,a),e.attr("transform",`translate(${-h/2+i}, ${h/2})`);return l&&e.attr("style",l),I(t,e),t.calcIntersect=function(y,f){let u=y.width,m=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}];return N.polygon(y,m,f)},t.intersect=function(y){return this.calcIntersect(t,y)},o}w(ts,"question");async function as(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?21:o??0,p=t.look==="neo"?12:o??0,{shapeSvg:r,bbox:h,label:i}=await Y(n,t,T(t)),a=h.width+(t.look==="neo"?c*2:c),e=Math.max(h.height+(t.look==="neo"?p*2:p),t.height??0),g=e/4,f=-Math.max(a,(t.width??0)-g)/2,u=-e/2,m=u/2,d=[{x:f+m,y:u},{x:f,y:0},{x:f+m,y:-u},{x:-f,y:-u},{x:-f,y:u}],{cssStyles:b}=t,x=v.svg(r),S=R(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let $=F(d),M=x.path($,S),k=r.insert(()=>M,":first-child");return k.attr("class","basic label-container outer-path"),b&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",b),l&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",l),k.attr("transform",`translate(${-m/2},0)`),i.attr("transform",`translate(${-m/2-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),I(t,k),t.intersect=function(P){return N.polygon(t,d,P)},r}w(as,"rect_left_inv_arrow");async function es(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o;t.cssClasses?o="node "+t.cssClasses:o="node default";let c=n.insert("g").attr("class",o).attr("id",t.domId||t.id),p=c.insert("g"),r=c.insert("g").attr("class","label").attr("style",l),h=t.description,i=t.label,a=await Da(r,i,t.labelStyle,!0,!0),e={width:0,height:0};if(wt(V())){let P=a.children[0],O=Z(a);e=P.getBoundingClientRect(),O.attr("width",e.width),O.attr("height",e.height)}J.info("Text 2",h);let g=h||[],y=a.getBBox(),f=await Da(r,Array.isArray(g)?g.join("<br/>"):g,t.labelStyle,!0,!0),u=f.children[0],m=Z(f);e=u.getBoundingClientRect(),m.attr("width",e.width),m.attr("height",e.height);let d=(t.padding||0)/2;Z(f).attr("transform","translate( "+(e.width>y.width?0:(y.width-e.width)/2)+", "+(y.height+d+5)+")"),Z(a).attr("transform","translate( "+(e.width<y.width?0:-(y.width-e.width)/2)+", 0)"),e=r.node().getBBox(),r.attr("transform","translate("+-e.width/2+", "+(-e.height/2-d+3)+")");let b=e.width+(t.padding||0),x=e.height+(t.padding||0),S=-e.width/2-d,$=-e.height/2-d,M,k;if(t.look==="handDrawn"){let P=v.svg(c),O=R(t,{}),C=P.path(yt(S,$,b,x,t.rx||0),O),B=P.line(-e.width/2-d,-e.height/2-d+y.height+d,e.width/2+d,-e.height/2-d+y.height+d,O);k=c.insert(()=>(J.debug("Rough node insert CXC",C),B),":first-child"),M=c.insert(()=>(J.debug("Rough node insert CXC",C),C),":first-child")}else M=p.insert("rect",":first-child"),k=p.insert("line"),M.attr("class","outer title-state").attr("style",l).attr("x",-e.width/2-d).attr("y",-e.height/2-d).attr("width",e.width+(t.padding||0)).attr("height",e.height+(t.padding||0)),k.attr("class","divider").attr("x1",-e.width/2-d).attr("x2",e.width/2+d).attr("y1",-e.height/2-d+y.height+d).attr("y2",-e.height/2-d+y.height+d);return I(t,M),t.intersect=function(P){return N.rect(t,P)},c}w(es,"rectWithTitle");async function ss(n,t,{config:{themeVariables:s}}){let l=s?.radius??5,o={rx:l,ry:l,classes:"",labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1};return Et(n,t,o)}w(ss,"roundedRect");var vt=8;async function rs(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.look==="neo"?16:t.padding??0,c=t.look==="neo"?12:t.padding??0,{shapeSvg:p,bbox:r,label:h}=await Y(n,t,T(t)),i=(t?.width??r.width)+o*2+(t.look==="neo"?vt:vt*2),a=(t?.height??r.height)+c*2,e=i-vt,g=a,y=vt-i/2,f=-a/2,{cssStyles:u}=t,m=v.svg(p),d=R(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let b=[{x:y,y:f},{x:y+e,y:f},{x:y+e,y:f+g},{x:y-vt,y:f+g},{x:y-vt,y:f},{x:y,y:f},{x:y,y:f+g}],x=m.polygon(b.map($=>[$.x,$.y]),d),S=p.insert(()=>x,":first-child");return S.attr("class","basic label-container outer-path").attr("style",Q(u)),l&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",l),u&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",l),h.attr("transform",`translate(${vt/2-r.width/2-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),I(t,S),t.intersect=function($){return N.rect(t,$)},p}w(rs,"shadedProcess");async function is(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,p=t.look==="neo"?12:o;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-c*2,10),t.height=Math.max((t?.height??0)/1.5-p*2,10));let{shapeSvg:r,bbox:h,label:i}=await Y(n,t,T(t)),a=(t?.width?t?.width:h.width)+c*2,e=((t?.height?t?.height:h.height)+p*2)*1.5,g=a,y=e/1.5,f=-g/2,u=-y/2,{cssStyles:m}=t,d=v.svg(r),b=R(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let x=[{x:f,y:u},{x:f,y:u+y},{x:f+g,y:u+y},{x:f+g,y:u-y/2}],S=F(x),$=d.path(S,b),M=r.insert(()=>$,":first-child");return M.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&M.selectChildren("path").attr("style",m),l&&t.look!=="handDrawn"&&M.selectChildren("path").attr("style",l),M.attr("transform",`translate(0, ${y/4})`),i.attr("transform",`translate(${-g/2+(t.padding??0)-(h.x-(h.left??0))}, ${-y/4+(t.padding??0)-(h.y-(h.top??0))})`),I(t,M),t.intersect=function(k){return N.polygon(t,x,k)},r}w(is,"slopedRect");async function ns(n,t){let s=t.padding??0,l=t.look==="neo"?16:s*2,o=t.look==="neo"?12:s,c={rx:0,ry:0,classes:"",labelPaddingX:t.labelPaddingX??l,labelPaddingY:o},p=await Et(n,t,c);if(t.colorIndex!==void 0){let{theme:r,themeVariables:h}=V();$t(p,t.colorIndex,r,h.borderColorArray)}return p}w(ns,"squareRect");var ha=50,Pr=w((n,t,s)=>{let l=n.height+s,o=l*Math.cos(Math.PI/(2*(ha-1))),c=Math.sqrt(Math.max(0,o**2-n.height**2));return{w:Math.max(n.width+l/4+t,1.5*l+(l-o),n.width+t+l-c),h:l}},"stadiumDimensions");async function ls(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?40:o,p=t.look==="neo"?24:o,{shapeSvg:r,bbox:h}=await Y(n,t,T(t)),{w:i,h:a}=Pr(h,c,p),e=a/2,{cssStyles:g}=t,y=v.svg(r),f=R(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");let u=[{x:-i/2+e,y:-a/2},{x:i/2-e,y:-a/2},...lt(-i/2+e,0,e,ha,90,270),{x:i/2-e,y:a/2},...lt(i/2-e,0,e,ha,270,450)],m=F(u),d=y.path(m,f),b=r.insert(()=>d,":first-child");return b.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",g),l&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",l),I(t,b),t.intersect=function(x){return N.polygon(t,u,x)},r}w(ls,"stadium");async function cs(n,t){let s={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5,classes:"flowchart-node"};return Et(n,t,s)}w(cs,"state");function os(n,t,{config:{themeVariables:s}}){let{labelStyles:l,nodeStyles:o}=H(t);t.labelStyle=l;let{cssStyles:c}=t,{lineColor:p,stateBorder:r,nodeBorder:h,nodeShadow:i}=s;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let a=n.insert("g").attr("class","node default").attr("id",t.domId??t.id),e=v.svg(a),g=R(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=e.circle(0,0,t.width,{...g,stroke:p,strokeWidth:2}),f=r??h,u=(t.width??0)*5/14,m=e.circle(0,0,u,{...g,fill:f,stroke:f,strokeWidth:2,fillStyle:"solid"}),d=a.insert(()=>y,":first-child");if(d.insert(()=>m),t.look!=="handDrawn"&&d.attr("class","outer-path"),c&&d.selectAll("path").attr("style",c),o&&d.selectAll("path").attr("style",o),t.width<25&&i&&t.look!=="handDrawn"){let b=n.node()?.ownerSVGElement?.id??"",x=b?`${b}-drop-shadow-small`:"drop-shadow-small";d.attr("style",`filter:url(#${x})`)}return I(t,d),t.intersect=function(b){return N.circle(t,(t.width??0)/2,b)},a}w(os,"stateEnd");function hs(n,t,{config:{themeVariables:s}}){let{lineColor:l,nodeShadow:o}=s;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let c=n.insert("g").attr("class","node default").attr("id",t.domId||t.id),p;if(t.look==="handDrawn"){let h=v.svg(c).circle(0,0,t.width,wa(l));p=c.insert(()=>h),p.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else p=c.insert("circle",":first-child"),p.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&o&&t.look!=="handDrawn"){let r=n.node()?.ownerSVGElement?.id??"",h=r?`${r}-drop-shadow-small`:"drop-shadow-small";p.attr("style",`filter:url(#${h})`)}return I(t,p),t.intersect=function(r){return N.circle(t,(t.width??7)/2,r)},c}w(hs,"stateStart");var Nt=8;async function gs(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t?.padding??8,c=t.look==="neo"?28:o,p=t.look==="neo"?12:o,{shapeSvg:r,bbox:h}=await Y(n,t,T(t)),i=Math.max(h.width+2*Nt+c,t.width??0),a=Math.max(h.height+p,t.height??0),e=i-2*Nt,g=a,y=-i/2,f=-a/2,u=[{x:0,y:0},{x:e,y:0},{x:e,y:-g},{x:0,y:-g},{x:0,y:0},{x:-8,y:0},{x:e+8,y:0},{x:e+8,y:-g},{x:-8,y:-g},{x:-8,y:0}];if(t.look==="handDrawn"){let m=v.svg(r),d=R(t,{}),b=m.rectangle(y,f,e+16,g,d),x=m.line(y+Nt,f,y+Nt,f+g,d),S=m.line(y+Nt+e,f,y+Nt+e,f+g,d);r.insert(()=>x,":first-child"),r.insert(()=>S,":first-child");let $=r.insert(()=>b,":first-child"),{cssStyles:M}=t;$.attr("class","basic label-container").attr("style",Q(M)),I(t,$)}else{let m=ct(r,e,g,u);l&&m.attr("style",l),I(t,m)}return t.intersect=function(m){return N.polygon(t,u,m)},r}w(gs,"subroutine");var na=.2;async function ys(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,p=t.look==="neo"?12:o;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-p*2,10),t.width=Math.max((t?.width??0)-c*2-na*(t.height+p*2),10));let{shapeSvg:r,bbox:h}=await Y(n,t,T(t)),i=(t?.height?t?.height:h.height)+p*2,a=na*i,e=na*i,y=(t?.width?t?.width:h.width)+c*2+a-a,f=i,u=-y/2,m=-f/2,{cssStyles:d}=t,b=v.svg(r),x=R(t,{}),S=[{x:u-a/2,y:m},{x:u+y+a/2,y:m},{x:u+y+a/2,y:m+f},{x:u-a/2,y:m+f}],$=[{x:u+y-a/2,y:m+f},{x:u+y+a/2,y:m+f},{x:u+y+a/2,y:m+f-e}];t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let M=F(S),k=b.path(M,x),P=F($),O=b.path(P,{...x,fillStyle:"solid"}),C=r.insert(()=>O,":first-child");return C.insert(()=>k,":first-child"),C.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",d),l&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",l),I(t,C),t.intersect=function(B){return N.polygon(t,S,B)},r}w(ys,"taggedRect");async function ps(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,label:p}=await Y(n,t,T(t)),r=Math.max(c.width+(t.padding??0)*2,t?.width??0),h=Math.max(c.height+(t.padding??0)*2,t?.height??0),i=h/8,a=.2*r,e=.2*h,g=h+i,{cssStyles:y}=t,f=v.svg(o),u=R(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=[{x:-r/2-r/2*.1,y:g/2},...dt(-r/2-r/2*.1,g/2,r/2+r/2*.1,g/2,i,.8),{x:r/2+r/2*.1,y:-g/2},{x:-r/2-r/2*.1,y:-g/2}],d=-r/2+r/2*.1,b=-g/2-e*.4,x=[{x:d+r-a,y:(b+h)*1.3},{x:d+r,y:b+h-e},{x:d+r,y:(b+h)*.9},...dt(d+r,(b+h)*1.25,d+r-a,(b+h)*1.3,-h*.02,.5)],S=F(m),$=f.path(S,u),M=F(x),k=f.path(M,{...u,fillStyle:"solid"}),P=o.insert(()=>k,":first-child");return P.insert(()=>$,":first-child"),P.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",y),l&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",l),P.attr("transform",`translate(0,${-i/2})`),p.attr("transform",`translate(${-r/2+(t.padding??0)-(c.x-(c.left??0))},${-h/2+(t.padding??0)-i/2-(c.y-(c.top??0))})`),I(t,P),t.intersect=function(O){return N.polygon(t,m,O)},o}w(ps,"taggedWaveEdgedRectangle");async function fs(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let{shapeSvg:o,bbox:c}=await Y(n,t,T(t)),p=Math.max(c.width+(t.padding??0),t?.width||0),r=Math.max(c.height+(t.padding??0),t?.height||0),h=-p/2,i=-r/2,a=o.insert("rect",":first-child");return a.attr("class","text").attr("style",l).attr("rx",0).attr("ry",0).attr("x",h).attr("y",i).attr("width",p).attr("height",r),I(t,a),t.intersect=function(e){return N.rect(t,e)},o}w(fs,"text");var Dr=w((n,t,s,l,o,c)=>`M${n},${t}
|
|
3
|
+
a${o},${c} 0,0,1 0,${-l}
|
|
4
|
+
l${s},0
|
|
5
|
+
a${o},${c} 0,0,1 0,${l}
|
|
6
|
+
M${s},${-l}
|
|
7
|
+
a${o},${c} 0,0,0 0,${l}
|
|
8
|
+
l${-s},0`,"createCylinderPathD"),Br=w((n,t,s,l,o,c)=>[`M${n},${t}`,`M${n+s},${t}`,`a${o},${c} 0,0,0 0,${-l}`,`l${-s},0`,`a${o},${c} 0,0,0 0,${l}`,`l${s},0`].join(" "),"createOuterCylinderPathD"),Cr=w((n,t,s,l,o,c)=>[`M${n+s/2},${-l/2}`,`a${o},${c} 0,0,0 0,${l}`].join(" "),"createInnerCylinderPathD"),ja=5,Fa=10;async function us(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?12:o/2,p=t.height??0;if(t.height&&(t.height=t.height-c,t.height<ja&&(t.height=ja)),t.width){let d=p/2/(2.5+p/50);t.width=t.width-c-d*3,t.width<Fa&&(t.width=Fa)}let{shapeSvg:r,bbox:h,label:i}=await Y(n,t,T(t)),a=Math.max(t.height??0,h.height)+c,e=a/2,g=e/(2.5+a/50),y=Math.max(t.width??0,h.width)+g+c,{cssStyles:f}=t,u;if(t.look==="handDrawn"){let m=v.svg(r),d=Br(0,0,y,a,g,e),b=Cr(0,0,y,a,g,e),x=m.path(d,R(t,{})),S=m.path(b,R(t,{fill:"none"}));u=r.insert(()=>S,":first-child"),u=r.insert(()=>x,":first-child"),u.attr("class","basic label-container"),f&&u.attr("style",f)}else{let m=Dr(0,0,y,a,g,e);u=r.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Q(f)).attr("style",l),u.attr("class","basic label-container outer-path"),f&&u.selectAll("path").attr("style",f),l&&u.selectAll("path").attr("style",l)}return u.attr("label-offset-x",g),u.attr("transform",`translate(${-y/2}, ${a/2} )`),i.attr("transform",`translate(${-(h.width/2)-g-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),I(t,u),t.intersect=function(m){let d=N.rect(t,m),b=d.y-(t.y??0);if(e!=0&&(Math.abs(b)<(t.height??0)/2||Math.abs(b)==(t.height??0)/2&&Math.abs(d.x-(t.x??0))>(t.width??0)/2-g)){let x=g*g*(1-b*b/(e*e));x!=0&&(x=Math.sqrt(Math.abs(x))),x=g-x,m.x-(t.x??0)>0&&(x=-x),d.x+=x}return d},r}w(us,"tiltedCylinder");async function ds(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=(t.look==="neo",o),p=t.look==="neo"?o*2:o,{shapeSvg:r,bbox:h}=await Y(n,t,T(t)),i=Math.max(h.height+c,t.height??0),a=Math.max(h.width+p,(t.width??0)-i),e=[{x:-3*i/6,y:0},{x:a+3*i/6,y:0},{x:a,y:-i},{x:0,y:-i}],g,{cssStyles:y}=t;if(t.look==="handDrawn"){let f=v.svg(r),u=R(t,{}),m=F(e),d=f.path(m,u);g=r.insert(()=>d,":first-child").attr("transform",`translate(${-a/2}, ${i/2})`),y&&g.attr("style",y)}else g=ct(r,a,i,e);return l&&g.attr("style",l),t.width=a,t.height=i,I(t,g),t.intersect=function(f){return N.polygon(t,e,f)},r}w(ds,"trapezoid");async function ms(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,p=t.look==="neo"?12:o,r=15,h=5;(t.width||t.height)&&(t.height=(t.height??0)-p*2,t.height<h&&(t.height=h),t.width=(t.width??0)-c*2,t.width<r&&(t.width=r));let{shapeSvg:i,bbox:a}=await Y(n,t,T(t)),e=(t?.width?t?.width:a.width)+c*2,g=(t?.height?t?.height:a.height)+p*2,{cssStyles:y}=t,f=v.svg(i),u=R(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=[{x:-e/2*.8,y:-g/2},{x:e/2*.8,y:-g/2},{x:e/2,y:-g/2*.6},{x:e/2,y:g/2},{x:-e/2,y:g/2},{x:-e/2,y:-g/2*.6}],d=F(m),b=f.path(d,u),x=i.insert(()=>b,":first-child");return x.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",y),l&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",l),I(t,x),t.intersect=function(S){return N.polygon(t,m,S)},i}w(ms,"trapezoidalPentagon");var qa=10,Va=10;async function bs(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?o*2:o;(t.width||t.height)&&(t.width=((t?.width??0)-c)/2,t.width<Va&&(t.width=Va),t.height=t?.height??0,t.height<qa&&(t.height=qa));let{shapeSvg:p,bbox:r,label:h}=await Y(n,t,T(t)),i=xt(V().flowchart?.htmlLabels),a=(t?.width?t?.width:r.width)+c,e=t?.height?t?.height:a+r.height,g=e,y=[{x:0,y:0},{x:g,y:0},{x:g/2,y:-e}],{cssStyles:f}=t,u=v.svg(p),m=R(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let d=F(y),b=u.path(d,m),x=p.insert(()=>b,":first-child").attr("transform",`translate(${-e/2}, ${e/2})`).attr("class","outer-path");return f&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",f),l&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",l),t.width=a,t.height=e,I(t,x),h.attr("transform",`translate(${-r.width/2-(r.x-(r.left??0))}, ${e/2-(r.height+(t.padding??0)/(i?2:1)-(r.y-(r.top??0)))})`),t.intersect=function(S){return J.info("Triangle intersect",t,y,S),N.polygon(t,y,S)},p}w(bs,"triangle");async function xs(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,p=t.look==="neo"?12:o,r=!0;(t.width||t.height)&&(r=!1,t.width=(t?.width??0)-c*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-p*2,t.height<10&&(t.height=10));let{shapeSvg:h,bbox:i,label:a}=await Y(n,t,T(t)),e=(t?.width?t?.width:i.width)+(c??0)*2,g=(t?.height?t?.height:i.height)+(p??0)*2,y=t.look==="neo"?g/4:g/8,f=g+(r?y:-y),{cssStyles:u}=t,d=14-e,b=d>0?d/2:0,x=v.svg(h),S=R(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let $=[{x:-e/2-b,y:f/2},...dt(-e/2-b,f/2,e/2+b,f/2,y,.8),{x:e/2+b,y:-f/2},{x:-e/2-b,y:-f/2}],M=F($),k=x.path(M,S),P=h.insert(()=>k,":first-child");return P.attr("class","basic label-container outer-path"),u&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",u),l&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",l),P.attr("transform",`translate(0,${-y/2})`),a.attr("transform",`translate(${-e/2+(t.padding??0)-(i.x-(i.left??0))},${-g/2+(t.padding??0)-y-(i.y-(i.top??0))})`),I(t,P),t.intersect=function(O){return N.polygon(t,$,O)},h}w(xs,"waveEdgedRectangle");async function ws(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.padding??0,c=t.look==="neo"?16:o,p=t.look==="neo"?20:o;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let S=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-p-S*(20/9)),t.width=t.width-c*2}let{shapeSvg:r,bbox:h}=await Y(n,t,T(t)),i=(t?.width?t?.width:h.width)+c*2,a=(t?.height?t?.height:h.height)+p,e=a/8,g=a+e*2,{cssStyles:y}=t,f=v.svg(r),u=R(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=[{x:-i/2,y:g/2},...dt(-i/2,g/2,i/2,g/2,e,1),{x:i/2,y:-g/2},...dt(i/2,-g/2,-i/2,-g/2,e,-1)],d=F(m),b=f.path(d,u),x=r.insert(()=>b,":first-child");return x.attr("class","basic label-container"),y&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",y),l&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",l),I(t,x),t.intersect=function(S){return N.polygon(t,m,S)},r}w(ws,"waveRectangle");var U=10;async function Ss(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t.look==="neo"?16:t.padding??0,c=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-o*2-U,10),t.height=Math.max((t?.height??0)-c*2-U,10));let{shapeSvg:p,bbox:r,label:h}=await Y(n,t,T(t)),i=(t?.width?t?.width:r.width)+o*2+U,a=(t?.height?t?.height:r.height)+c*2+U,e=i-U,g=a-U,y=-e/2,f=-g/2,{cssStyles:u}=t,m=v.svg(p),d=R(t,{}),b=[{x:y-U,y:f-U},{x:y-U,y:f+g},{x:y+e,y:f+g},{x:y+e,y:f-U}],x=`M${y-U},${f-U} L${y+e},${f-U} L${y+e},${f+g} L${y-U},${f+g} L${y-U},${f-U}
|
|
9
|
+
M${y-U},${f} L${y+e},${f}
|
|
10
|
+
M${y},${f-U} L${y},${f+g}`;t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let S=m.path(x,d),$=p.insert(()=>S,":first-child");return $.attr("transform",`translate(${U/2}, ${U/2})`),$.attr("class","basic label-container outer-path"),u&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",u),l&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",l),h.attr("transform",`translate(${-(r.width/2)+U/2-(r.x-(r.left??0))}, ${-(r.height/2)+U/2-(r.y-(r.top??0))})`),I(t,$),t.intersect=function(M){return N.polygon(t,b,M)},p}w(Ss,"windowPane");var za=new Set(["redux-color","redux-dark-color"]),Nr=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function da(n,t){let s=t;s.alias&&(t.label=s.alias);let{theme:l,themeVariables:o}=Pt(),{rowEven:c,rowOdd:p,nodeBorder:r,borderColorArray:h}=o;if(t.look==="handDrawn"){let{themeVariables:G}=Pt(),{background:q}=G,K={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${q}`]};await da(n,K)}let i=Pt();t.useHtmlLabels=i.htmlLabels;let a=i.er?.diagramPadding??10,e=i.er?.entityPadding??6,{cssStyles:g}=t,{labelStyles:y,nodeStyles:f}=H(t);if(s.attributes.length===0&&t.label){let G={rx:0,ry:0,labelPaddingX:a,labelPaddingY:a*1.5,classes:""};Wt(t.label,i)+G.labelPaddingX*2<i.er.minEntityWidth&&(t.width=i.er.minEntityWidth);let q=await Et(n,t,G);if(l!=null&&za.has(l)){let K=s.colorIndex??0;q.attr("data-color-id",`color-${K%h.length}`)}if(!xt(i.htmlLabels)){let K=q.select("text"),st=K.node()?.getBBox();K.attr("transform",`translate(${-st.width/2}, 0)`)}return q}i.htmlLabels||(a*=1.25,e*=1.25);let u=T(t);u||(u="node default");let m=n.insert("g").attr("class",u).attr("id",t.domId||t.id),d=await It(m,t.label??"",i,0,0,["name"],y);d.height+=e;let b=0,x=[],S=[],$=0,M=0,k=0,P=0,O=!0,C=!0;for(let G of s.attributes){let q=await It(m,G.type,i,0,b,["attribute-type"],y);$=Math.max($,q.width+a);let K=await It(m,G.name,i,0,b,["attribute-name"],y);M=Math.max(M,K.width+a);let st=await It(m,G.keys.join(),i,0,b,["attribute-keys"],y);k=Math.max(k,st.width+a);let bt=await It(m,G.comment,i,0,b,["attribute-comment"],y);P=Math.max(P,bt.width+a);let ft=Math.max(q.height,K.height,st.height,bt.height)+e;S.push({yOffset:b,rowHeight:ft}),b+=ft}let B=4;k<=a&&(O=!1,k=0,B--),P<=a&&(C=!1,P=0,B--);let L=m.node().getBBox();if(d.width+a*2-($+M+k+P)>0){let G=d.width+a*2-($+M+k+P);$+=G/B,M+=G/B,k>0&&(k+=G/B),P>0&&(P+=G/B)}let D=$+M+k+P,E=v.svg(m),W=R(t,{});t.look!=="handDrawn"&&(W.roughness=0,W.fillStyle="solid");let A=0;S.length>0&&(A=S.reduce((G,q)=>G+(q?.rowHeight??0),0));let _=Math.max(L.width+a*2,t?.width||0,D),X=Math.max((A??0)+d.height,t?.height||0),j=-_/2,z=-X/2;if(m.selectAll("g:not(:first-child)").each((G,q,K)=>{let st=Z(K[q]),bt=st.attr("transform"),ft=0,ma=0;if(bt){let Jt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(bt);Jt&&(ft=parseFloat(Jt[1]),ma=parseFloat(Jt[2]),st.attr("class").includes("attribute-name")?ft+=$:st.attr("class").includes("attribute-keys")?ft+=$+M:st.attr("class").includes("attribute-comment")&&(ft+=$+M+k))}st.attr("transform",`translate(${j+a/2+ft}, ${ma+z+d.height+e/2})`)}),m.select(".name").attr("transform","translate("+-d.width/2+", "+(z+e/2)+")"),l!=null&&za.has(l)){let G=s.colorIndex??0;m.attr("data-color-id",`color-${G%h.length}`)}let rt=E.rectangle(j,z,_,X,W),pt=m.insert(()=>rt,":first-child").attr("class","outer-path").attr("style",g.join(""));x.push(0);for(let[G,q]of S.entries()){let st=(G+1)%2===0&&q.yOffset!==0,bt=E.rectangle(j,d.height+z+q?.yOffset,_,q?.rowHeight,{...W,fill:st?c:p,stroke:r});m.insert(()=>bt,"g.label").attr("style",g.join("")).attr("class",`row-rect-${st?"even":"odd"}`)}let ot=1e-4,at=Rt(j,d.height+z,_+j,d.height+z,ot),et=E.polygon(at.map(G=>[G.x,G.y]),W);if(m.insert(()=>et).attr("class","divider"),at=Rt($+j,d.height+z,$+j,X+z,ot),et=E.polygon(at.map(G=>[G.x,G.y]),W),m.insert(()=>et).attr("class","divider"),O){let G=$+M+j;at=Rt(G,d.height+z,G,X+z,ot),et=E.polygon(at.map(q=>[q.x,q.y]),W),m.insert(()=>et).attr("class","divider")}if(C){let G=$+M+k+j;at=Rt(G,d.height+z,G,X+z,ot),et=E.polygon(at.map(q=>[q.x,q.y]),W),m.insert(()=>et).attr("class","divider")}for(let G of x){let q=d.height+z+G;at=Rt(j,q,_+j,q,ot),et=E.polygon(at.map(K=>[K.x,K.y]),W),m.insert(()=>et).attr("class","divider")}if(I(t,pt),f&&t.look!=="handDrawn")if(l!=null&&Nr.has(l))m.selectAll("path").attr("style",f);else{let q=f.split(";")?.filter(K=>K.includes("stroke"))?.map(K=>`${K}`).join("; ");m.selectAll("path").attr("style",q??""),m.selectAll(".row-rect-even path").attr("style",f)}return t.intersect=function(G){return N.rect(t,G)},m}w(da,"erBox");async function It(n,t,s,l=0,o=0,c=[],p=""){let r=n.insert("g").attr("class",`label ${c.join(" ")}`).attr("transform",`translate(${l}, ${o})`).attr("style",p);t!==Kt(t)&&(t=Kt(t),t=t.replaceAll("<","<").replaceAll(">",">"));let h=r.node().appendChild(await ut(r,t,{width:Wt(t,s)+100,style:p,useHtmlLabels:s.htmlLabels},s));if(t.includes("<")||t.includes(">")){let a=h.children[0];for(a.textContent=a.textContent.replaceAll("<","<").replaceAll(">",">");a.childNodes[0];)a=a.childNodes[0],a.textContent=a.textContent.replaceAll("<","<").replaceAll(">",">")}let i=h.getBBox();if(xt(s.htmlLabels)){let a=h.children[0];a.style.textAlign="start";let e=Z(h);i=a.getBoundingClientRect(),e.attr("width",i.width),e.attr("height",i.height)}return i}w(It,"addText");function Rt(n,t,s,l,o){return n===s?[{x:n-o/2,y:t},{x:n+o/2,y:t},{x:s+o/2,y:l},{x:s-o/2,y:l}]:[{x:n,y:t-o/2},{x:n,y:t+o/2},{x:s,y:l+o/2},{x:s,y:l-o/2}]}w(Rt,"lineToPolygon");async function $s(n,t,s,l,o=s.class.padding??12){let c=l?0:3,p=n.insert("g").attr("class",T(t)).attr("id",t.domId||t.id),r=null,h=null,i=null,a=null,e=0,g=0,y=0;if(r=p.insert("g").attr("class","annotation-group text"),t.annotations.length>0){let b=t.annotations[0];await Yt(r,{text:`\xAB${b}\xBB`},0),e=r.node().getBBox().height}h=p.insert("g").attr("class","label-group text"),await Yt(h,t,0,["font-weight: bolder"]);let f=h.node().getBBox();g=f.height,i=p.insert("g").attr("class","members-group text");let u=0;for(let b of t.members){let x=await Yt(i,b,u,[b.parseClassifier()]);u+=x+c}y=i.node().getBBox().height,y<=0&&(y=o/2),a=p.insert("g").attr("class","methods-group text");let m=0;for(let b of t.methods){let x=await Yt(a,b,m,[b.parseClassifier()]);m+=x+c}let d=p.node().getBBox();if(r!==null){let b=r.node().getBBox();r.attr("transform",`translate(${-b.width/2})`)}return h.attr("transform",`translate(${-f.width/2}, ${e})`),d=p.node().getBBox(),i.attr("transform",`translate(0, ${e+g+o*2})`),d=p.node().getBBox(),a.attr("transform",`translate(0, ${e+g+(y?y+o*4:o*2)})`),d=p.node().getBBox(),{shapeSvg:p,bbox:d}}w($s,"textHelper");async function Yt(n,t,s,l=[]){let o=n.insert("g").attr("class","label").attr("style",l.join("; ")),c=Pt(),p="useHtmlLabels"in t?t.useHtmlLabels:xt(c.htmlLabels)??!0,r="";"text"in t?r=t.text:r=t.label,!p&&r.startsWith("\\")&&(r=r.substring(1)),xa(r)&&(p=!0);let h=await ut(o,Qt(Bt(r)),{width:Wt(r,c)+50,classes:"markdown-node-label",useHtmlLabels:p},c),i,a=1;if(p){let e=h.children[0],g=Z(h);a=e.innerHTML.split("<br>").length,e.innerHTML.includes("</math>")&&(a+=e.innerHTML.split("<mrow>").length-1),await ga(e),i=e.getBoundingClientRect(),g.attr("width",i.width),g.attr("height",i.height)}else{l.includes("font-weight: bolder")&&Z(h).selectAll("tspan").attr("font-weight",""),a=h.children.length;let e=h.children[0];(h.textContent===""||h.textContent.includes(">"))&&(e.textContent=r[0]+r.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),r[1]===" "&&(e.textContent=e.textContent[0]+" "+e.textContent.substring(1))),e.textContent==="undefined"&&(e.textContent=""),i=h.getBBox()}return o.attr("transform","translate(0,"+(-i.height/(2*a)+s)+")"),i.height}w(Yt,"addText");async function vs(n,t){let s=V(),{theme:l,themeVariables:o}=s,{useGradient:c,borderColorArray:p}=o,r=s.class.padding??12,h=r,i=t.useHtmlLabels??xt(s.htmlLabels)??!0,a=t;a.annotations=a.annotations??[],a.members=a.members??[],a.methods=a.methods??[];let{shapeSvg:e,bbox:g}=await $s(n,t,s,i,h);$t(e,t.colorIndex,l,p);let{labelStyles:y,nodeStyles:f}=H(t);t.labelStyle=y,t.cssStyles=a.styles||"";let u=a.styles?.join(";")||f||"";t.cssStyles||(t.cssStyles=u.replaceAll("!important","").split(";"));let m=a.members.length===0&&a.methods.length===0&&!s.class?.hideEmptyMembersBox,d=v.svg(e),b=R(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let x=Math.max(t.width??0,g.width),S=Math.max(t.height??0,g.height),$=(t.height??0)>g.height;a.members.length===0&&a.methods.length===0?S+=h:a.members.length>0&&a.methods.length===0&&(S+=h*2);let M=-x/2,k=-S/2,P=m?r*2:a.members.length===0&&a.methods.length===0?-r:0;$&&(P=r*2);let O=d.rectangle(M-r,k-r-(m?r:a.members.length===0&&a.methods.length===0?-r/2:0),x+2*r,S+2*r+P,b),C=e.insert(()=>O,":first-child");C.attr("class","basic label-container outer-path");let B=C.node().getBBox(),L=e.select(".annotation-group").node().getBBox().height-(m?r/2:0)||0,D=e.select(".label-group").node().getBBox().height-(m?r/2:0)||0,E=e.select(".members-group").node().getBBox().height-(m?r/2:0)||0,W=(L+D+k+r-(k-r-(m?r:a.members.length===0&&a.methods.length===0?-r/2:0)))/2;if(e.selectAll(".text").each((A,_,X)=>{let j=Z(X[_]),z=j.attr("transform"),rt=0;if(z){let et=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(z);et&&(rt=parseFloat(et[2]))}let pt=rt+k+r-(m?r:a.members.length===0&&a.methods.length===0?-r/2:0);if(j.attr("class").includes("methods-group")){let at=Math.max(E,h/2);$?pt=Math.max(W,L+D+at+k+h*2+r)+h*2:pt=L+D+at+k+h*4+r}a.members.length===0&&a.methods.length===0&&s.class?.hideEmptyMembersBox&&(a.annotations.length>0?pt=rt-h:pt=rt),i||(pt-=4);let ot=M;(j.attr("class").includes("label-group")||j.attr("class").includes("annotation-group"))&&(ot=-j.node()?.getBBox().width/2||0,e.selectAll("text").each(function(at,et,G){window.getComputedStyle(G[et]).textAnchor==="middle"&&(ot=0)})),j.attr("transform",`translate(${ot}, ${pt})`)}),a.members.length>0||a.methods.length>0||m){let A=L+D+k+r,_=d.line(B.x,A,B.x+B.width,A+.001,b);e.insert(()=>_).attr("class",`divider${t.look==="neo"&&!c?" neo-line":""}`).attr("style",u)}if(m||a.members.length>0||a.methods.length>0){let A=L+D+E+k+h*2+r,_=d.line(B.x,$?Math.max(W,A):A,B.x+B.width,($?Math.max(W,A):A)+.001,b);e.insert(()=>_).attr("class",`divider${t.look==="neo"&&!c?" neo-line":""}`).attr("style",u)}if(a.look!=="handDrawn"&&e.selectAll("path").attr("style",u),C.select(":nth-child(2)").attr("style",u),e.selectAll(".divider").select("path").attr("style",u),t.labelStyle?e.selectAll("span").attr("style",t.labelStyle):e.selectAll("span").attr("style",u),!i){let A=RegExp(/color\s*:\s*([^;]*)/),_=A.exec(u);if(_){let X=_[0].replace("color","fill");e.selectAll("tspan").attr("style",X)}else if(y){let X=A.exec(y);if(X){let j=X[0].replace("color","fill");e.selectAll("tspan").attr("style",j)}}}return I(t,C),t.intersect=function(A){return N.rect(t,A)},e}w(vs,"classBox");async function ks(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let o=t,c=t,p=20,r=20,h="verifyMethod"in t,i=T(t),a=V(),{themeVariables:e}=a,{borderColorArray:g,requirementEdgeLabelBackground:y}=e,f=a.layout==="elk"?"start":"center",u=n.insert("g").attr("class",i).attr("id",t.domId??t.id),m;h?m=await nt(u,`<<${o.type}>>`,0,t.labelStyle):m=await nt(u,"<<Element>>",0,t.labelStyle);let d=m,b=await nt(u,o.name,d,t.labelStyle+"; font-weight: bold;");if(d+=b+r,h){let B=await nt(u,`${o.requirementId?`ID: ${o.requirementId}`:""}`,d,t.labelStyle,f);d+=B;let L=await nt(u,`${o.text?`Text: ${o.text}`:""}`,d,t.labelStyle,f);d+=L;let D=await nt(u,`${o.risk?`Risk: ${o.risk}`:""}`,d,t.labelStyle,f);d+=D,await nt(u,`${o.verifyMethod?`Verification: ${o.verifyMethod}`:""}`,d,t.labelStyle,f)}else{let B=await nt(u,`${c.type?`Type: ${c.type}`:""}`,d,t.labelStyle,f);d+=B,await nt(u,`${c.docRef?`Doc Ref: ${c.docRef}`:""}`,d,t.labelStyle,f)}let x=(u.node()?.getBBox().width??200)+p,S=(u.node()?.getBBox().height??200)+p,$=-x/2,M=-S/2,k=v.svg(u),P=R(t,{});t.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");let O=k.rectangle($,M,x,S,P),C=u.insert(()=>O,":first-child");if(C.attr("class","basic label-container outer-path").attr("style",l),g?.length){let B=t.colorIndex??0;u.attr("data-color-id",`color-${B%g.length}`)}if(u.selectAll(".label").each((B,L,D)=>{let E=Z(D[L]),W=E.attr("transform"),A=0,_=0;if(W){let rt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(W);rt&&(A=parseFloat(rt[1]),_=parseFloat(rt[2]))}let X=_-S/2,j=$+p/2;(L===0||L===1)&&(j=A),E.attr("transform",`translate(${j}, ${X+p})`)}),d>m+b+r){let B=M+m+b+r,L;if(t.look==="neo"){let W=[[$,B],[$+x,B],[$+x,B+.001],[$,B+.001]];L=k.polygon(W,P)}else L=k.line($,B,$+x,B,P);u.insert(()=>L).attr("class","divider")}return I(t,C),t.intersect=function(B){return N.rect(t,B)},l&&t.look!=="handDrawn"&&(y||g?.length)&&u.selectAll("path").attr("style",l),u}w(ks,"requirementBox");async function nt(n,t,s,l="",o="center"){if(t==="")return 0;let c=n.insert("g").attr("class","label").attr("style",l),p=V(),r=p.htmlLabels??!0,h=await ut(c,Qt(Bt(t)),{width:Wt(t,p)+50,classes:"markdown-node-label",useHtmlLabels:r,style:l},p),i;if(r){let a=h.children[0],e=Z(h);o==="start"&&Z(a).style("text-align","left"),i=a.getBoundingClientRect(),e.attr("width",i.width),e.attr("height",i.height)}else{let a=h.children[0];for(let e of a.children)l&&e.setAttribute("style",l);if(o==="start"){a.setAttribute("text-anchor","start");for(let e of a.children)e.setAttribute("text-anchor","start")}i=h.getBBox(),i.height+=6}return c.attr("transform",`translate(${-i.width/2},${-i.height/2+s})`),i.height}w(nt,"addText");var Ar=w(n=>{switch(n){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function Ms(n,t,{config:s}){let{labelStyles:l,nodeStyles:o}=H(t);t.labelStyle=l||"";let c=10,p=t.width;t.width=(t.width??200)-10;let{shapeSvg:r,bbox:h,label:i}=await Y(n,t,T(t)),a=t.padding||10,e="",g;"ticket"in t&&t.ticket&&s?.kanban?.ticketBaseUrl&&(e=s?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),g=r.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",e).attr("target","_blank"));let y={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},f,u;g?{label:f,bbox:u}=await Mt(g,"ticket"in t&&t.ticket||"",y):{label:f,bbox:u}=await Mt(r,"ticket"in t&&t.ticket||"",y);let{label:m,bbox:d}=await Mt(r,"assigned"in t&&t.assigned||"",y);t.width=p;let b=10,x=t?.width||0,S=Math.max(u.height,d.height)/2,$=Math.max(h.height+b*2,t?.height||0)+S,M=-x/2,k=-$/2;i.attr("transform","translate("+(a-x/2)+", "+(-S-h.height/2)+")"),f.attr("transform","translate("+(a-x/2)+", "+(-S+h.height/2)+")"),m.attr("transform","translate("+(a+x/2-d.width-2*c)+", "+(-S+h.height/2)+")");let P,{rx:O,ry:C}=t,{cssStyles:B}=t;if(t.look==="handDrawn"){let L=v.svg(r),D=R(t,{}),E=O||C?L.path(yt(M,k,x,$,O||0),D):L.rectangle(M,k,x,$,D);P=r.insert(()=>E,":first-child"),P.attr("class","basic label-container").attr("style",B||null)}else{P=r.insert("rect",":first-child"),P.attr("class","basic label-container __APA__").attr("style",o).attr("rx",O??5).attr("ry",C??5).attr("x",M).attr("y",k).attr("width",x).attr("height",$);let L="priority"in t&&t.priority;if(L){let D=r.append("line"),E=M+2,W=k+Math.floor((O??0)/2),A=k+$-Math.floor((O??0)/2);D.attr("x1",E).attr("y1",W).attr("x2",E).attr("y2",A).attr("stroke-width","4").attr("stroke",Ar(L))}}return I(t,P),t.height=$,t.intersect=function(L){return N.rect(t,L)},r}w(Ms,"kanbanItem");async function Ps(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,halfPadding:p,label:r}=await Y(n,t,T(t)),h=c.width+10*p,i=c.height+8*p,a=.15*h,{cssStyles:e}=t,g=c.width+20,y=c.height+20,f=Math.max(h,g),u=Math.max(i,y);r.attr("transform",`translate(${-c.width/2}, ${-c.height/2})`);let m,d=`M0 0
|
|
11
|
+
a${a},${a} 1 0,0 ${f*.25},${-1*u*.1}
|
|
12
|
+
a${a},${a} 1 0,0 ${f*.25},0
|
|
13
|
+
a${a},${a} 1 0,0 ${f*.25},0
|
|
14
|
+
a${a},${a} 1 0,0 ${f*.25},${u*.1}
|
|
15
|
+
|
|
16
|
+
a${a},${a} 1 0,0 ${f*.15},${u*.33}
|
|
17
|
+
a${a*.8},${a*.8} 1 0,0 0,${u*.34}
|
|
18
|
+
a${a},${a} 1 0,0 ${-1*f*.15},${u*.33}
|
|
19
|
+
|
|
20
|
+
a${a},${a} 1 0,0 ${-1*f*.25},${u*.15}
|
|
21
|
+
a${a},${a} 1 0,0 ${-1*f*.25},0
|
|
22
|
+
a${a},${a} 1 0,0 ${-1*f*.25},0
|
|
23
|
+
a${a},${a} 1 0,0 ${-1*f*.25},${-1*u*.15}
|
|
24
|
+
|
|
25
|
+
a${a},${a} 1 0,0 ${-1*f*.1},${-1*u*.33}
|
|
26
|
+
a${a*.8},${a*.8} 1 0,0 0,${-1*u*.34}
|
|
27
|
+
a${a},${a} 1 0,0 ${f*.1},${-1*u*.33}
|
|
28
|
+
H0 V0 Z`;if(t.look==="handDrawn"){let b=v.svg(o),x=R(t,{}),S=b.path(d,x);m=o.insert(()=>S,":first-child"),m.attr("class","basic label-container").attr("style",Q(e))}else m=o.insert("path",":first-child").attr("class","basic label-container").attr("style",l).attr("d",d);return m.attr("transform",`translate(${-f/2}, ${-u/2})`),I(t,m),t.calcIntersect=function(b,x){return N.rect(b,x)},t.intersect=function(b){return J.info("Bang intersect",t,b),N.rect(t,b)},o}w(Ps,"bang");async function Ds(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,halfPadding:p,label:r}=await Y(n,t,T(t)),h=c.width+2*p,i=c.height+2*p,a=.15*h,e=.25*h,g=.35*h,y=.2*h,{cssStyles:f}=t,u,m=`M0 0
|
|
29
|
+
a${a},${a} 0 0,1 ${h*.25},${-1*h*.1}
|
|
30
|
+
a${g},${g} 1 0,1 ${h*.4},${-1*h*.1}
|
|
31
|
+
a${e},${e} 1 0,1 ${h*.35},${h*.2}
|
|
32
|
+
|
|
33
|
+
a${a},${a} 1 0,1 ${h*.15},${i*.35}
|
|
34
|
+
a${y},${y} 1 0,1 ${-1*h*.15},${i*.65}
|
|
35
|
+
|
|
36
|
+
a${e},${a} 1 0,1 ${-1*h*.25},${h*.15}
|
|
37
|
+
a${g},${g} 1 0,1 ${-1*h*.5},0
|
|
38
|
+
a${a},${a} 1 0,1 ${-1*h*.25},${-1*h*.15}
|
|
39
|
+
|
|
40
|
+
a${a},${a} 1 0,1 ${-1*h*.1},${-1*i*.35}
|
|
41
|
+
a${y},${y} 1 0,1 ${h*.1},${-1*i*.65}
|
|
42
|
+
H0 V0 Z`;if(t.look==="handDrawn"){let d=v.svg(o),b=R(t,{}),x=d.path(m,b);u=o.insert(()=>x,":first-child"),u.attr("class","basic label-container").attr("style",Q(f))}else u=o.insert("path",":first-child").attr("class","basic label-container").attr("style",l).attr("d",m);return r.attr("transform",`translate(${-c.width/2}, ${-c.height/2})`),u.attr("transform",`translate(${-h/2}, ${-i/2})`),I(t,u),t.calcIntersect=function(d,b){return N.rect(d,b)},t.intersect=function(d){return J.info("Cloud intersect",t,d),N.rect(t,d)},o}w(Ds,"cloud");async function Bs(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,halfPadding:p,label:r}=await Y(n,t,T(t)),h=c.width+8*p,i=c.height+2*p,a=5,e=t.look==="neo"?`
|
|
43
|
+
M${-h/2} ${i/2-a}
|
|
44
|
+
v${-i+2*a}
|
|
45
|
+
q0,-${a} ${a},-${a}
|
|
46
|
+
h${h-2*a}
|
|
47
|
+
q${a},0 ${a},${a}
|
|
48
|
+
v${i-a}
|
|
49
|
+
H${-h/2}
|
|
50
|
+
Z
|
|
51
|
+
`:`
|
|
52
|
+
M${-h/2} ${i/2-a}
|
|
53
|
+
v${-i+2*a}
|
|
54
|
+
q0,-${a} ${a},-${a}
|
|
55
|
+
h${h-2*a}
|
|
56
|
+
q${a},0 ${a},${a}
|
|
57
|
+
v${i-2*a}
|
|
58
|
+
q0,${a} ${-a},${a}
|
|
59
|
+
h${-(h-2*a)}
|
|
60
|
+
q${-a},0 ${-a},${-a}
|
|
61
|
+
Z
|
|
62
|
+
`;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let g=o.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",l).attr("d",e);return o.append("line").attr("class","node-line-").attr("x1",-h/2).attr("y1",i/2).attr("x2",h/2).attr("y2",i/2),r.attr("transform",`translate(${-c.width/2}, ${-c.height/2})`),o.append(()=>r.node()),I(t,g),t.calcIntersect=function(y,f){return N.rect(y,f)},t.intersect=function(y){return N.rect(t,y)},o}w(Bs,"defaultMindmapNode");async function Cs(n,t){let s={padding:t.padding??0};return fa(n,t,s)}w(Cs,"mindmapCircle");var At=36,kt=50,Hr=100,Ir=80,mt=6,Lt=16,Rr="bpmn",Lr={start:{rings:1,strokeWidth:1.6},intermediate:{rings:2,strokeWidth:1.4},boundary:{rings:2,strokeWidth:1.4},end:{rings:1,strokeWidth:3.4}},Za;async function Ns(){return Za??=import("./bpmnIcons-APHXDYXF-FMBRQNTY.js").then(({bpmnIcons:n})=>{$a(n.prefix)||Sa([{name:n.prefix,icons:n}])}),Za}w(Ns,"ensureBpmnIcons");function As(n){let t=n.metadata?.dataDirection;return t==="input"||t==="output"?t:void 0}w(As,"dataDirectionOf");function Hs(n){return n.metadata?.isCollection===!0}w(Hs,"isCollectionData");async function zt(n,t){return await Ns(),St(n,{height:t,width:t,fallbackPrefix:Rr})}w(zt,"glyphSvg");var Xt=w((n,t,s)=>{let l=(t.x??0)-(t.left??0),o=(t.y??0)-(t.top??0);n.attr("transform",`translate(${-t.width/2-l},${s-t.height/2-o})`)},"positionLabelBelow"),Is=w(async(n,t,s)=>{if(!t)return;let l=n.append("g").attr("class","bpmn-glyph");l.html(`<g>${await zt(t,s)}</g>`),l.attr("transform",`translate(${-s/2}, ${-s/2})`)},"appendGlyph"),Gt=w((n,t,s,l,o)=>{o&&(t.metadata={...t.metadata??{},drawnExtent:o});let c=n.insert("rect",":first-child").attr("class","bpmn-bounds").attr("x",-s/2).attr("y",-l/2).attr("width",s).attr("height",l).attr("opacity",0).attr("aria-hidden","true");return I(t,c),c},"reserveBounds"),Er=8,Zt=w((n,t,s)=>Math.min(Math.max(n,t),s),"clamp"),Ut=w((n,t,s,l,o)=>{let c=n.x??0,p=n.y??0,r=t/2,h=s/2,i=l.x-c,a=l.y-p,e=o??(Math.abs(i)*h>Math.abs(a)*r?i>=0?"right":"left":a>=0?"bottom":"top"),g=w(y=>Math.max(0,y-Math.min(Er,y/2)),"reach");return e==="left"||e==="right"?{x:c+(e==="right"?r:-r),y:Zt(l.y,p-g(h),p+g(h))}:{x:Zt(l.x,c-g(r),c+g(r)),y:p+(e==="bottom"?h:-h)}},"faceProjectIntersect"),Wr=w((n,t,s)=>{let l=n.x??0,o=n.y??0,c=t/2,p=s.x-l,r=s.y-o,h=c*.85;if(Math.abs(r)>=Math.abs(p)){let a=Zt(p,-h,h);return{x:l+a,y:o+Math.sign(r||1)*Math.sqrt(c*c-a*a)}}let i=Zt(r,-h,h);return{x:l+Math.sign(p||1)*Math.sqrt(c*c-i*i),y:o+i}},"ringIntersect"),Tr=w((n,t,s,l)=>{let o=n.x??0,c=n.y??0,p=t/2,r=s/2,h=l.x-o,i=l.y-c;return Math.abs(h)*r>Math.abs(i)*p?{x:o+Math.sign(h)*p,y:c}:{x:o,y:c+Math.sign(i||1)*r}},"faceCentreIntersect");async function jt(n,t,s){let l=t,{labelStyles:o,nodeStyles:c}=H(t);t.labelStyle=o;let{rings:p,strokeWidth:r}=Lr[s],h=At/2,{shapeSvg:i,bbox:a,label:e}=await Y(n,t,T(t,`bpmn-event bpmn-event-${s}`)),g=i.insert("g",":first-child").attr("class","bpmn-event-body");g.attr("style",c);for(let d=0;d<p;d++)g.append("circle").attr("class",d===0?"bpmn-event-ring":"bpmn-event-ring bpmn-event-ring-inner").attr("r",h-d*3).style("stroke-width",`${r}px`);await Is(g,l.icon,Lt);let y=a.height>0&&!!t.label,f=y?mt+a.height:0,u=At+2*f,m=Math.max(At,y?a.width:0);return y&&Xt(e,a,h+mt+a.height/2),Gt(i,t,m,u,{width:At,height:At}),t.intersect=function(d){return Wr(t,At,d)},i}w(jt,"renderBpmnEvent");async function Rs(n,t){return jt(n,t,"start")}w(Rs,"bpmnStart");async function Ls(n,t){return jt(n,t,"intermediate")}w(Ls,"bpmnIntermediate");async function Es(n,t){return jt(n,t,"boundary")}w(Es,"bpmnBoundary");async function Ws(n,t){return jt(n,t,"end")}w(Ws,"bpmnEnd");async function Ts(n,t){let s=t,{labelStyles:l,nodeStyles:o}=H(t);t.labelStyle=l;let c=kt/2,{shapeSvg:p,bbox:r,label:h}=await Y(n,t,T(t,"bpmn-gateway")),i=p.insert("g",":first-child").attr("class","bpmn-gateway-body");i.append("polygon").attr("class","bpmn-gateway-diamond").attr("points",`0,${-c} ${c},0 0,${c} ${-c},0`).attr("style",o),await Is(i,s.icon,Lt+2);let a=r.height>0&&!!t.label,e=a?mt+r.height:0,g=kt+2*e,y=Math.max(kt,a?r.width:0);return a&&Xt(h,r,c+mt+r.height/2),Gt(p,t,y,g,{width:kt,height:kt}),t.intersect=function(f){return Tr(t,kt,kt,f)},p}w(Ts,"bpmnGateway");async function _s(n,t){let s=t,{labelStyles:l,nodeStyles:o}=H(t);t.labelStyle=l;let{shapeSvg:c,bbox:p,label:r}=await Y(n,t,T(t,"bpmn-activity")),h=s.markers??[],i=s.icon,a=i?Lt+6:10,e=h.length>0?Lt+4:10,g=Math.max(Hr,p.width+16),y=Math.max(Ir,p.height+a+e),f=c.insert("g",":first-child").attr("class","bpmn-activity-body");if(f.append("rect").attr("class","bpmn-activity-rect").attr("x",-g/2).attr("y",-y/2).attr("width",g).attr("height",y).attr("rx",10).attr("ry",10).attr("style",o),i){let u=f.append("g").attr("class","bpmn-activity-icon");u.html(`<g>${await zt(i,Lt)}</g>`),u.attr("transform",`translate(${-g/2+6}, ${-y/2+6})`)}if(h.length>0){let u=f.append("g").attr("class","bpmn-activity-markers"),m=Lt-2,d=h.length*m;for(let[b,x]of h.entries()){let S=u.append("g");S.html(`<g>${await zt(x,m)}</g>`),S.attr("transform",`translate(${-d/2+b*m}, 0)`)}u.attr("transform",`translate(0, ${y/2-m-3})`)}if(p.height>0){let u=-y/2+a,m=y/2-e;Xt(r,p,(u+m)/2)}return I(t,f),t.intersect=function(u){return Ut(t,g,y,u)},c}w(_s,"bpmnActivity");var _t=36,Ht=50,Vt=10;async function Ys(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,label:p}=await Y(n,t,T(t,"bpmn-data-object")),r=o.insert("g",":first-child").attr("class","bpmn-data-body"),h=-_t/2,i=-Ht/2,a=_t/2,e=Ht/2;r.append("path").attr("class","bpmn-data-page").attr("d",`M${h},${i} H${a-Vt} L${a},${i+Vt} V${e} H${h} Z`).attr("style",l),r.append("path").attr("class","bpmn-data-fold").attr("d",`M${a-Vt},${i} V${i+Vt} H${a}`);let g=As(t);g&&r.append("path").attr("class",`bpmn-data-arrow bpmn-data-arrow-${g}`).attr("d",`M${h+4},${i+9} h7 v-3 l5,4.5 -5,4.5 v-3 h-7 Z`),Hs(t)&&r.append("path").attr("class","bpmn-data-collection").attr("d",`M-4,${e-11} v9 M0,${e-11} v9 M4,${e-11} v9`);let y=c.height>0&&!!t.label,f=y?mt+c.height:0,u=Ht+2*f,m=Math.max(_t,y?c.width:0);return y&&Xt(p,c,Ht/2+mt+c.height/2),Gt(o,t,m,u,{width:_t,height:Ht}),t.intersect=function(d){return Ut(t,_t,Ht,d)},o}w(Ys,"bpmnDataObject");var it=50;async function Os(n,t){let{labelStyles:s,nodeStyles:l}=H(t);t.labelStyle=s;let{shapeSvg:o,bbox:c,label:p}=await Y(n,t,T(t,"bpmn-data-store")),r=o.insert("g",":first-child").attr("class","bpmn-data-body"),h=it/2,i=6;r.append("path").attr("class","bpmn-store-body").attr("d",`M${-h},${-h+i} a${h},${i} 0 0 1 ${it},0 V${h-i} a${h},${i} 0 0 1 ${-it},0 Z`).attr("style",l);for(let f of[0,5,10])r.append("path").attr("class","bpmn-store-rings").attr("d",`M${-h},${-h+i+f} a${h},${i} 0 0 0 ${it},0`);let a=c.height>0&&!!t.label,e=a?mt+c.height:0,g=it+2*e,y=Math.max(it,a?c.width:0);return a&&Xt(p,c,h+mt+c.height/2),Gt(o,t,y,g,{width:it,height:it}),t.intersect=function(f){return Ut(t,it,it,f)},o}w(Os,"bpmnDataStore");async function Xs(n,t){let{labelStyles:s}=H(t);t.labelStyle=s,t.wrappingWidth=160;let{shapeSvg:l,bbox:o,label:c}=await Y(n,t,T(t,"bpmn-annotation")),p=8,r=Math.max(28,o.height+p*2),h=o.width+p*2+6,i=t.metadata?.attachFace==="right"?"right":"left";l.insert("g",":first-child").attr("class","bpmn-annotation-body").append("path").attr("class","bpmn-annotation-bracket").attr("d",i==="right"?`M${h/2-6},${-r/2} h6 V${r/2} h-6`:`M${-h/2+6},${-r/2} h-6 V${r/2} h6`);let e=i==="right"?-h/2+p:-h/2+p+6;return c.attr("transform",`translate(${e-(o.x??0)+(o.left??0)},${-o.height/2-((o.y??0)-(o.top??0))})`),Gt(l,t,h,r),t.intersect=function(g){return Ut(t,h,r,g,i)},l}w(Xs,"bpmnAnnotation");var _r=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:ns},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:ss},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:ls},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:gs},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Se},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:$e},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:Be},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:ie},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:pe},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:oe},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:we},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:fa},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Ps},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Ds},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:ts},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Ae},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Oe},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Ye},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:ds},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:Te},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:ke},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:fs},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:he},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:rs},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:hs},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:os},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Ce},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:He},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:de},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:me},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:be},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Xe},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:xs},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Ne},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:us},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Ge},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:xe},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:ve},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:bs},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Ss},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Pe},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:ms},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:De},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:is},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Ke},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Je},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:re},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:ue},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:ps},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:ys},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:ws},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:as},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:je}],Yr=w(()=>{let t=[...Object.entries({state:cs,choice:ge,note:Qe,composite:ye,rectWithTitle:es,labelRect:_e,block_arrow:ce,collapsedGroup:le,iconSquare:Ee,iconCircle:Re,icon:Ie,iconRounded:Le,imageSquare:We,anchor:ee,kanbanItem:Ms,mindmapCircle:Cs,defaultMindmapNode:Bs,classBox:vs,erBox:da,requirementBox:ks,usecaseActor:Fe,usecaseActorHollow:Ve,usecaseActorAwesome:qe,usecaseActorIcon:ze,usecaseBusiness:Ze,usecaseEllipse:Me,usecaseJsonTable:Ue,"bpmn-start":Rs,"bpmn-intermediate":Ls,"bpmn-boundary":Es,"bpmn-end":Ws,"bpmn-gateway":Ts,"bpmn-activity":_s,"bpmn-data":Ys,"bpmn-data-store":Os,"bpmn-annotation":Xs}),..._r.flatMap(s=>[s.shortName,..."aliases"in s?s.aliases:[],..."internalAliases"in s?s.internalAliases:[]].map(o=>[o,s.handler]))];return Object.fromEntries(t)},"generateShapeMap"),Or=Yr();function Xr(n){return n in Or}w(Xr,"isValidShape");export{Y as a,I as b,zs as c,N as d,yt as e,Da as f,Or as g,Xr as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n=Object.freeze(JSON.parse('{"displayName":"JSON","name":"json","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json"}},"name":"meta.structure.array.json","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json"},{"match":"[^]\\\\s]","name":"invalid.illegal.expected-array-separator.json"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.documentation.json"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.json"},{"captures":{"1":{"name":"punctuation.definition.comment.json"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[Ee][-+]?\\\\d+)?)?","name":"constant.numeric.json"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json"}},"name":"meta.structure.dictionary.json","patterns":[{"include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json"}},"name":"meta.structure.dictionary.value.json","patterns":[{"include":"#value"},{"match":"[^,\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},{"match":"[^}\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json"}},"name":"string.json support.type.property-name.json","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json"}},"name":"string.quoted.double.json","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"/\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.json"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json"}')),e=[n];export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as c,b as u,c as n,d as s,e as o,g as l,h as d,w as h,y as m}from"./chunk-PZELHD2H.js";var a,C=(a=class extends m{constructor(){super(["architecture"])}},c(a,"ArchitectureTokenBuilder"),a),i,v=(i=class extends h{runCustomConverter(r,t,p){if(r.name==="ARCH_ICON")return t.replace(/[()]/g,"").trim();if(r.name==="ARCH_TEXT_ICON")return t.replace(/["()]/g,"");if(r.name==="ARCH_TITLE"){let e=t.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},c(i,"ArchitectureValueConverter"),i),T={parser:{TokenBuilder:c(()=>new C,"TokenBuilder"),ValueConverter:c(()=>new v,"ValueConverter")}};function f(A=o){let r=s(n(A),l),t=s(u({shared:r}),d,T);return r.ServiceRegistry.register(t),{shared:r,Architecture:t}}c(f,"createArchitectureServices");export{T as a,f as b};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import{a as r}from"./chunk-EIBFAW37.js";function $n(w){return w&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}r($n,"getDefaultExportFromCjs");var P={},Pe={},le={},_n;function Ae(){if(_n)return le;_n=1;function w(d){return typeof d>"u"||d===null}r(w,"isNothing");function x(d){return typeof d=="object"&&d!==null}r(x,"isObject");function _(d){return Array.isArray(d)?d:w(d)?[]:[d]}r(_,"toArray");function k(d,s){if(s){let C=Object.keys(s);for(let t=0,f=C.length;t<f;t+=1){let T=C[t];d[T]=s[T]}}return d}r(k,"extend");function h(d,s){let C="";for(let t=0;t<s;t+=1)C+=d;return C}r(h,"repeat");function A(d){return d===0&&Number.NEGATIVE_INFINITY===1/d}return r(A,"isNegativeZero"),le.isNothing=w,le.isObject=x,le.toArray=_,le.repeat=h,le.isNegativeZero=A,le.extend=k,le}r(Ae,"requireCommon");var Be,In;function ye(){if(In)return Be;In=1;function w(_,k){let h="",A=_.reason||"(unknown reason)";return _.mark?(_.mark.name&&(h+='in "'+_.mark.name+'" '),h+="("+(_.mark.line+1)+":"+(_.mark.column+1)+")",!k&&_.mark.snippet&&(h+=`
|
|
2
|
+
|
|
3
|
+
`+_.mark.snippet),A+" "+h):A}r(w,"formatError");function x(_,k){Error.call(this),this.name="YAMLException",this.reason=_,this.mark=k,this.message=w(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return r(x,"YAMLException2"),x.prototype=Object.create(Error.prototype),x.prototype.constructor=x,x.prototype.toString=r(function(k){return this.name+": "+w(this,k)},"toString"),Be=x,Be}r(ye,"requireException");var He,kn;function Zn(){if(kn)return He;kn=1;let w=Ae();function x(h,A,d,s,C){let t="",f="",T=Math.floor(C/2)-1;return s-A>T&&(t=" ... ",A=s-T+t.length),d-s>T&&(f=" ...",d=s+T-f.length),{str:t+h.slice(A,d).replace(/\t/g,"\u2192")+f,pos:s-A+t.length}}r(x,"getLine");function _(h,A){return w.repeat(" ",A-h.length)+h}r(_,"padStart");function k(h,A){if(A=Object.create(A||null),!h.buffer)return null;A.maxLength||(A.maxLength=79),typeof A.indent!="number"&&(A.indent=1),typeof A.linesBefore!="number"&&(A.linesBefore=3),typeof A.linesAfter!="number"&&(A.linesAfter=2);let d=/\r?\n|\r|\0/g,s=[0],C=[],t,f=-1;for(;t=d.exec(h.buffer);)C.push(t.index),s.push(t.index+t[0].length),h.position<=t.index&&f<0&&(f=s.length-2);f<0&&(f=s.length-1);let T="",O=Math.min(h.line+A.linesAfter,C.length).toString().length,N=A.maxLength-(A.indent+O+3);for(let q=1;q<=A.linesBefore&&!(f-q<0);q++){let U=x(h.buffer,s[f-q],C[f-q],h.position-(s[f]-s[f-q]),N);T=w.repeat(" ",A.indent)+_((h.line-q+1).toString(),O)+" | "+U.str+`
|
|
4
|
+
`+T}let $=x(h.buffer,s[f],C[f],h.position,N);T+=w.repeat(" ",A.indent)+_((h.line+1).toString(),O)+" | "+$.str+`
|
|
5
|
+
`,T+=w.repeat("-",A.indent+O+3+$.pos)+`^
|
|
6
|
+
`;for(let q=1;q<=A.linesAfter&&!(f+q>=C.length);q++){let U=x(h.buffer,s[f+q],C[f+q],h.position-(s[f]-s[f+q]),N);T+=w.repeat(" ",A.indent)+_((h.line+q+1).toString(),O)+" | "+U.str+`
|
|
7
|
+
`}return T.replace(/\n$/,"")}return r(k,"makeSnippet"),He=k,He}r(Zn,"requireSnippet");var je,Ln;function D(){if(Ln)return je;Ln=1;let w=ye(),x=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_=["scalar","sequence","mapping"];function k(A){let d={};return A!==null&&Object.keys(A).forEach(function(s){A[s].forEach(function(C){d[String(C)]=s})}),d}r(k,"compileStyleAliases");function h(A,d){if(d=d||{},Object.keys(d).forEach(function(s){if(x.indexOf(s)===-1)throw new w('Unknown option "'+s+'" is met in definition of "'+A+'" YAML type.')}),this.options=d,this.tag=A,this.kind=d.kind||null,this.resolve=d.resolve||function(){return!0},this.construct=d.construct||function(s){return s},this.instanceOf=d.instanceOf||null,this.predicate=d.predicate||null,this.represent=d.represent||null,this.representName=d.representName||null,this.defaultStyle=d.defaultStyle||null,this.multi=d.multi||!1,this.styleAliases=k(d.styleAliases||null),_.indexOf(this.kind)===-1)throw new w('Unknown kind "'+this.kind+'" is specified for "'+A+'" YAML type.')}return r(h,"Type2"),je=h,je}r(D,"requireType");var Ue,On;function fn(){if(On)return Ue;On=1;let w=ye(),x=D();function _(A,d){let s=[];return A[d].forEach(function(C){let t=s.length;s.forEach(function(f,T){f.tag===C.tag&&f.kind===C.kind&&f.multi===C.multi&&(t=T)}),s[t]=C}),s}r(_,"compileList");function k(){let A={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function d(s){s.multi?(A.multi[s.kind].push(s),A.multi.fallback.push(s)):A[s.kind][s.tag]=A.fallback[s.tag]=s}r(d,"collectType");for(let s=0,C=arguments.length;s<C;s+=1)arguments[s].forEach(d);return A}r(k,"compileMap");function h(A){return this.extend(A)}return r(h,"Schema2"),h.prototype.extend=r(function(d){let s=[],C=[];if(d instanceof x)C.push(d);else if(Array.isArray(d))C=C.concat(d);else if(d&&(Array.isArray(d.implicit)||Array.isArray(d.explicit)))d.implicit&&(s=s.concat(d.implicit)),d.explicit&&(C=C.concat(d.explicit));else throw new w("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");s.forEach(function(f){if(!(f instanceof x))throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(f.loadKind&&f.loadKind!=="scalar")throw new w("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(f.multi)throw new w("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),C.forEach(function(f){if(!(f instanceof x))throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let t=Object.create(h.prototype);return t.implicit=(this.implicit||[]).concat(s),t.explicit=(this.explicit||[]).concat(C),t.compiledImplicit=_(t,"implicit"),t.compiledExplicit=_(t,"explicit"),t.compiledTypeMap=k(t.compiledImplicit,t.compiledExplicit),t},"extend"),Ue=h,Ue}r(fn,"requireSchema");var Ke,vn;function an(){if(vn)return Ke;vn=1;let w=D();return Ke=new w("tag:yaml.org,2002:str",{kind:"scalar",construct:r(function(x){return x!==null?x:""},"construct")}),Ke}r(an,"requireStr");var We,Mn;function pn(){if(Mn)return We;Mn=1;let w=D();return We=new w("tag:yaml.org,2002:seq",{kind:"sequence",construct:r(function(x){return x!==null?x:[]},"construct")}),We}r(pn,"requireSeq");var Ge,Nn;function sn(){if(Nn)return Ge;Nn=1;let w=D();return Ge=new w("tag:yaml.org,2002:map",{kind:"mapping",construct:r(function(x){return x!==null?x:{}},"construct")}),Ge}r(sn,"requireMap");var Qe,Rn;function hn(){if(Rn)return Qe;Rn=1;let w=fn();return Qe=new w({explicit:[an(),pn(),sn()]}),Qe}r(hn,"requireFailsafe");var Ve,qn;function dn(){if(qn)return Ve;qn=1;let w=D();function x(h){if(h===null)return!0;let A=h.length;return A===1&&h==="~"||A===4&&(h==="null"||h==="Null"||h==="NULL")}r(x,"resolveYamlNull");function _(){return null}r(_,"constructYamlNull");function k(h){return h===null}return r(k,"isNull"),Ve=new w("tag:yaml.org,2002:null",{kind:"scalar",resolve:x,construct:_,predicate:k,represent:{canonical:r(function(){return"~"},"canonical"),lowercase:r(function(){return"null"},"lowercase"),uppercase:r(function(){return"NULL"},"uppercase"),camelcase:r(function(){return"Null"},"camelcase"),empty:r(function(){return""},"empty")},defaultStyle:"lowercase"}),Ve}r(dn,"require_null");var Je,Fn;function mn(){if(Fn)return Je;Fn=1;let w=D();function x(h){if(h===null)return!1;let A=h.length;return A===4&&(h==="true"||h==="True"||h==="TRUE")||A===5&&(h==="false"||h==="False"||h==="FALSE")}r(x,"resolveYamlBoolean");function _(h){return h==="true"||h==="True"||h==="TRUE"}r(_,"constructYamlBoolean");function k(h){return Object.prototype.toString.call(h)==="[object Boolean]"}return r(k,"isBoolean"),Je=new w("tag:yaml.org,2002:bool",{kind:"scalar",resolve:x,construct:_,predicate:k,represent:{lowercase:r(function(h){return h?"true":"false"},"lowercase"),uppercase:r(function(h){return h?"TRUE":"FALSE"},"uppercase"),camelcase:r(function(h){return h?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),Je}r(mn,"requireBool");var Xe,Yn;function gn(){if(Yn)return Xe;Yn=1;let w=Ae(),x=D();function _(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}r(_,"isHexCode");function k(t){return t>=48&&t<=55}r(k,"isOctCode");function h(t){return t>=48&&t<=57}r(h,"isDecCode");function A(t){if(t===null)return!1;let f=t.length,T=0,O=!1;if(!f)return!1;let N=t[T];if((N==="-"||N==="+")&&(N=t[++T]),N==="0"){if(T+1===f)return!0;if(N=t[++T],N==="b"){for(T++;T<f;T++){if(N=t[T],N!=="0"&&N!=="1")return!1;O=!0}return O&&isFinite(d(t))}if(N==="x"){for(T++;T<f;T++){if(!_(t.charCodeAt(T)))return!1;O=!0}return O&&isFinite(d(t))}if(N==="o"){for(T++;T<f;T++){if(!k(t.charCodeAt(T)))return!1;O=!0}return O&&isFinite(d(t))}}for(;T<f;T++){if(!h(t.charCodeAt(T)))return!1;O=!0}return O?isFinite(d(t)):!1}r(A,"resolveYamlInteger");function d(t){let f=t,T=1,O=f[0];if((O==="-"||O==="+")&&(O==="-"&&(T=-1),f=f.slice(1),O=f[0]),f==="0")return 0;if(O==="0"){if(f[1]==="b")return T*parseInt(f.slice(2),2);if(f[1]==="x")return T*parseInt(f.slice(2),16);if(f[1]==="o")return T*parseInt(f.slice(2),8)}return T*parseInt(f,10)}r(d,"parseYamlInteger");function s(t){return d(t)}r(s,"constructYamlInteger");function C(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!w.isNegativeZero(t)}return r(C,"isInteger"),Xe=new x("tag:yaml.org,2002:int",{kind:"scalar",resolve:A,construct:s,predicate:C,represent:{binary:r(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:r(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:r(function(t){return t.toString(10)},"decimal"),hexadecimal:r(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Xe}r(gn,"requireInt");var $e,Pn;function An(){if(Pn)return $e;Pn=1;let w=Ae(),x=D(),_=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),k=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function h(t){return t===null||!_.test(t)?!1:isFinite(parseFloat(t,10))?!0:k.test(t)}r(h,"resolveYamlFloat");function A(t){let f=t.toLowerCase(),T=f[0]==="-"?-1:1;return"+-".indexOf(f[0])>=0&&(f=f.slice(1)),f===".inf"?T===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:f===".nan"?NaN:T*parseFloat(f,10)}r(A,"constructYamlFloat");let d=/^[-+]?[0-9]+e/;function s(t,f){if(isNaN(t))switch(f){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(f){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(f){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(w.isNegativeZero(t))return"-0.0";let T=t.toString(10);return d.test(T)?T.replace("e",".e"):T}r(s,"representYamlFloat");function C(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||w.isNegativeZero(t))}return r(C,"isFloat"),$e=new x("tag:yaml.org,2002:float",{kind:"scalar",resolve:h,construct:A,predicate:C,represent:s,defaultStyle:"lowercase"}),$e}r(An,"requireFloat");var Ze,Dn;function yn(){return Dn||(Dn=1,Ze=hn().extend({implicit:[dn(),mn(),gn(),An()]})),Ze}r(yn,"requireJson");var ze,Bn;function Sn(){return Bn||(Bn=1,ze=yn()),ze}r(Sn,"requireCore");var en,Hn;function Cn(){if(Hn)return en;Hn=1;let w=D(),x=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function k(d){return d===null?!1:x.exec(d)!==null||_.exec(d)!==null}r(k,"resolveYamlTimestamp");function h(d){let s=0,C=null,t=x.exec(d);if(t===null&&(t=_.exec(d)),t===null)throw new Error("Date resolve error");let f=+t[1],T=+t[2]-1,O=+t[3];if(!t[4])return new Date(Date.UTC(f,T,O));let N=+t[4],$=+t[5],q=+t[6];if(t[7]){for(s=t[7].slice(0,3);s.length<3;)s+="0";s=+s}if(t[9]){let Z=+t[10],B=+(t[11]||0);C=(Z*60+B)*6e4,t[9]==="-"&&(C=-C)}let U=new Date(Date.UTC(f,T,O,N,$,q,s));return C&&U.setTime(U.getTime()-C),U}r(h,"constructYamlTimestamp");function A(d){return d.toISOString()}return r(A,"representYamlTimestamp"),en=new w("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:k,construct:h,instanceOf:Date,represent:A}),en}r(Cn,"requireTimestamp");var nn,jn;function Tn(){if(jn)return nn;jn=1;let w=D();function x(_){return _==="<<"||_===null}return r(x,"resolveYamlMerge"),nn=new w("tag:yaml.org,2002:merge",{kind:"scalar",resolve:x}),nn}r(Tn,"requireMerge");var rn,Un;function wn(){if(Un)return rn;Un=1;let w=D(),x=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
8
|
+
\r`;function _(d){if(d===null)return!1;let s=0,C=d.length,t=x;for(let f=0;f<C;f++){let T=t.indexOf(d.charAt(f));if(!(T>64)){if(T<0)return!1;s+=6}}return s%8===0}r(_,"resolveYamlBinary");function k(d){let s=d.replace(/[\r\n=]/g,""),C=s.length,t=x,f=0,T=[];for(let N=0;N<C;N++)N%4===0&&N&&(T.push(f>>16&255),T.push(f>>8&255),T.push(f&255)),f=f<<6|t.indexOf(s.charAt(N));let O=C%4*6;return O===0?(T.push(f>>16&255),T.push(f>>8&255),T.push(f&255)):O===18?(T.push(f>>10&255),T.push(f>>2&255)):O===12&&T.push(f>>4&255),new Uint8Array(T)}r(k,"constructYamlBinary");function h(d){let s="",C=0,t=d.length,f=x;for(let O=0;O<t;O++)O%3===0&&O&&(s+=f[C>>18&63],s+=f[C>>12&63],s+=f[C>>6&63],s+=f[C&63]),C=(C<<8)+d[O];let T=t%3;return T===0?(s+=f[C>>18&63],s+=f[C>>12&63],s+=f[C>>6&63],s+=f[C&63]):T===2?(s+=f[C>>10&63],s+=f[C>>4&63],s+=f[C<<2&63],s+=f[64]):T===1&&(s+=f[C>>2&63],s+=f[C<<4&63],s+=f[64],s+=f[64]),s}r(h,"representYamlBinary");function A(d){return Object.prototype.toString.call(d)==="[object Uint8Array]"}return r(A,"isBinary"),rn=new w("tag:yaml.org,2002:binary",{kind:"scalar",resolve:_,construct:k,predicate:A,represent:h}),rn}r(wn,"requireBinary");var ln,Kn;function xn(){if(Kn)return ln;Kn=1;let w=D(),x=Object.prototype.hasOwnProperty,_=Object.prototype.toString;function k(A){if(A===null)return!0;let d={},s=A;for(let C=0,t=s.length;C<t;C+=1){let f=s[C],T=!1;if(_.call(f)!=="[object Object]")return!1;let O;for(O in f)if(x.call(f,O))if(!T)T=!0;else return!1;if(!T||x.call(d,O))return!1;Object.defineProperty(d,O,{value:!0})}return!0}r(k,"resolveYamlOmap");function h(A){return A!==null?A:[]}return r(h,"constructYamlOmap"),ln=new w("tag:yaml.org,2002:omap",{kind:"sequence",resolve:k,construct:h}),ln}r(xn,"requireOmap");var on,Wn;function bn(){if(Wn)return on;Wn=1;let w=D(),x=Object.prototype.toString;function _(h){if(h===null)return!0;let A=h,d=new Array(A.length);for(let s=0,C=A.length;s<C;s+=1){let t=A[s];if(x.call(t)!=="[object Object]")return!1;let f=Object.keys(t);if(f.length!==1)return!1;d[s]=[f[0],t[f[0]]]}return!0}r(_,"resolveYamlPairs");function k(h){if(h===null)return[];let A=h,d=new Array(A.length);for(let s=0,C=A.length;s<C;s+=1){let t=A[s],f=Object.keys(t);d[s]=[f[0],t[f[0]]]}return d}return r(k,"constructYamlPairs"),on=new w("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:_,construct:k}),on}r(bn,"requirePairs");var tn,Gn;function En(){if(Gn)return tn;Gn=1;let w=D(),x=Object.prototype.hasOwnProperty;function _(h){if(h===null)return!0;let A=h;for(let d in A)if(x.call(A,d)&&A[d]!==null)return!1;return!0}r(_,"resolveYamlSet");function k(h){return h!==null?h:{}}return r(k,"constructYamlSet"),tn=new w("tag:yaml.org,2002:set",{kind:"mapping",resolve:_,construct:k}),tn}r(En,"requireSet");var cn,Qn;function De(){return Qn||(Qn=1,cn=Sn().extend({implicit:[Cn(),Tn()],explicit:[wn(),xn(),bn(),En()]})),cn}r(De,"require_default");var Vn;function zn(){if(Vn)return Pe;Vn=1;let w=Ae(),x=ye(),_=Zn(),k=De(),h=Object.prototype.hasOwnProperty,A=1,d=2,s=3,C=4,t=1,f=2,T=3,O=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,N=/[\x85\u2028\u2029]/,$=/[,\[\]{}]/,q=/^(?:!|!!|![0-9A-Za-z-]+!)$/,U=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function Z(e){return Object.prototype.toString.call(e)}r(Z,"_class");function B(e){return e===10||e===13}r(B,"isEol");function H(e){return e===9||e===32}r(H,"isWhiteSpace");function Y(e){return e===9||e===32||e===10||e===13}r(Y,"isWsOrEol");function J(e){return e===44||e===91||e===93||e===123||e===125}r(J,"isFlowIndicator");function Ne(e){if(e>=48&&e<=57)return e-48;let i=e|32;return i>=97&&i<=102?i-97+10:-1}r(Ne,"fromHexCode");function Re(e){return e===120?2:e===117?4:e===85?8:0}r(Re,"escapedHexLen");function Se(e){return e>=48&&e<=57?e-48:-1}r(Se,"fromDecimalCode");function fe(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
|
9
|
+
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}r(fe,"simpleEscapeSequence");function qe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}r(qe,"charFromCodepoint");function ae(e,i,a){i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):e[i]=a}r(ae,"setProperty");let Fe=new Array(256),Ce=new Array(256);for(let e=0;e<256;e++)Fe[e]=fe(e)?1:0,Ce[e]=fe(e);function F(e,i){this.input=e,this.filename=i.filename||null,this.schema=i.schema||k,this.onWarning=i.onWarning||null,this.legacy=i.legacy||!1,this.json=i.json||!1,this.listener=i.listener||null,this.maxDepth=typeof i.maxDepth=="number"?i.maxDepth:100,this.maxTotalMergeKeys=typeof i.maxTotalMergeKeys=="number"?i.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}r(F,"State");function Te(e,i){let a={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return a.snippet=_(a),new x(i,a)}r(Te,"generateError");function E(e,i){throw Te(e,i)}r(E,"throwError");function z(e,i){e.onWarning&&e.onWarning.call(null,Te(e,i))}r(z,"throwWarning");function W(e,i,a){let p=e.anchorMapTransactions;if(p.length!==0){let c=p[p.length-1];h.call(c,i)||(c[i]={existed:h.call(e.anchorMap,i),value:e.anchorMap[i]})}e.anchorMap[i]=a}r(W,"storeAnchor");function Ye(e){e.anchorMapTransactions.push(Object.create(null))}r(Ye,"beginAnchorTransaction");function ee(e){let i=e.anchorMapTransactions.pop(),a=e.anchorMapTransactions;if(a.length===0)return;let p=a[a.length-1],c=Object.keys(i);for(let n=0,l=c.length;n<l;n+=1){let o=c[n];h.call(p,o)||(p[o]=i[o])}}r(ee,"commitAnchorTransaction");function we(e){let i=e.anchorMapTransactions.pop(),a=Object.keys(i);for(let p=a.length-1;p>=0;p-=1){let c=i[a[p]];c.existed?e.anchorMap[a[p]]=c.value:delete e.anchorMap[a[p]]}}r(we,"rollbackAnchorTransaction");function oe(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}r(oe,"snapshotState");function ne(e,i){e.position=i.position,e.line=i.line,e.lineStart=i.lineStart,e.lineIndent=i.lineIndent,e.firstTabInLine=i.firstTabInLine,e.tag=i.tag,e.anchor=i.anchor,e.kind=i.kind,e.result=i.result}r(ne,"restoreState");let xe={YAML:r(function(i,a,p){i.version!==null&&E(i,"duplication of %YAML directive"),p.length!==1&&E(i,"YAML directive accepts exactly one argument");let c=/^([0-9]+)\.([0-9]+)$/.exec(p[0]);c===null&&E(i,"ill-formed argument of the YAML directive");let n=parseInt(c[1],10),l=parseInt(c[2],10);n!==1&&E(i,"unacceptable YAML version of the document"),i.version=p[0],i.checkLineBreaks=l<2,l!==1&&l!==2&&z(i,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:r(function(i,a,p){let c;p.length!==2&&E(i,"TAG directive accepts exactly two arguments");let n=p[0];c=p[1],q.test(n)||E(i,"ill-formed tag handle (first argument) of the TAG directive"),h.call(i.tagMap,n)&&E(i,'there is a previously declared suffix for "'+n+'" tag handle'),U.test(c)||E(i,"ill-formed tag prefix (second argument) of the TAG directive");try{c=decodeURIComponent(c)}catch{E(i,"tag prefix is malformed: "+c)}i.tagMap[n]=c},"handleTagDirective")};function j(e,i,a,p){if(i<a){let c=e.input.slice(i,a);if(p)for(let n=0,l=c.length;n<l;n+=1){let o=c.charCodeAt(n);o===9||o>=32&&o<=1114111||E(e,"expected valid JSON character")}else O.test(c)&&E(e,"the stream contains non-printable characters");e.result+=c}}r(j,"captureSegment");function Q(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&E(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}r(Q,"chargeMergeWork");function te(e,i,a,p){w.isObject(a)||E(e,"cannot merge mappings; the provided source object is unacceptable"),Q(e);let c=Object.keys(a);for(let n=0,l=c.length;n<l;n+=1){let o=c[n];Q(e),h.call(i,o)||(ae(i,o,a[o]),p[o]=!0)}}r(te,"mergeMappings");function G(e,i,a,p,c,n,l,o,m){if(Array.isArray(c)){c=Array.prototype.slice.call(c);for(let g=0,y=c.length;g<y;g+=1)Array.isArray(c[g])&&E(e,"nested arrays are not supported inside keys"),typeof c=="object"&&Z(c[g])==="[object Object]"&&(c[g]="[object Object]")}if(typeof c=="object"&&Z(c)==="[object Object]"&&(c="[object Object]"),c=String(c),i===null&&(i={}),p==="tag:yaml.org,2002:merge")if(Array.isArray(n)){n.length>100&&E(e,"abnormal merge sequence size");for(let g=0,y=n.length;g<y;g+=1)te(e,i,n[g],a)}else te(e,i,n,a);else!e.json&&!h.call(a,c)&&h.call(i,c)&&(e.line=l||e.line,e.lineStart=o||e.lineStart,e.position=m||e.position,E(e,"duplicated mapping key")),ae(i,c,n),delete a[c];return i}r(G,"storeMappingPair");function ce(e){let i=e.input.charCodeAt(e.position);i===10?e.position++:i===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):E(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}r(ce,"readLineBreak");function R(e,i,a){let p=0,c=e.input.charCodeAt(e.position);for(;c!==0;){for(;H(c);)c===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),c=e.input.charCodeAt(++e.position);if(i&&c===35)do c=e.input.charCodeAt(++e.position);while(c!==10&&c!==13&&c!==0);if(B(c))for(ce(e),c=e.input.charCodeAt(e.position),p++,e.lineIndent=0;c===32;)e.lineIndent++,c=e.input.charCodeAt(++e.position);else break}return a!==-1&&p!==0&&e.lineIndent<a&&z(e,"deficient indentation"),p}r(R,"skipSeparationSpace");function K(e){let i=e.position,a=e.input.charCodeAt(i);return!!((a===45||a===46)&&a===e.input.charCodeAt(i+1)&&a===e.input.charCodeAt(i+2)&&(i+=3,a=e.input.charCodeAt(i),a===0||Y(a)))}r(K,"testDocumentSeparator");function ie(e,i){i===1?e.result+=" ":i>1&&(e.result+=w.repeat(`
|
|
10
|
+
`,i-1))}r(ie,"writeFoldedLines");function be(e,i,a){let p,c,n,l,o,m,g=e.kind,y=e.result,u=e.input.charCodeAt(e.position);if(Y(u)||J(u)||u===35||u===38||u===42||u===33||u===124||u===62||u===39||u===34||u===37||u===64||u===96)return!1;if(u===63||u===45){let S=e.input.charCodeAt(e.position+1);if(Y(S)||a&&J(S))return!1}for(e.kind="scalar",e.result="",p=c=e.position,n=!1;u!==0;){if(u===58){let S=e.input.charCodeAt(e.position+1);if(Y(S)||a&&J(S))break}else if(u===35){let S=e.input.charCodeAt(e.position-1);if(Y(S))break}else{if(e.position===e.lineStart&&K(e)||a&&J(u))break;if(B(u))if(l=e.line,o=e.lineStart,m=e.lineIndent,R(e,!1,-1),e.lineIndent>=i){n=!0,u=e.input.charCodeAt(e.position);continue}else{e.position=c,e.line=l,e.lineStart=o,e.lineIndent=m;break}}n&&(j(e,p,c,!1),ie(e,e.line-l),p=c=e.position,n=!1),H(u)||(c=e.position+1),u=e.input.charCodeAt(++e.position)}return j(e,p,c,!1),e.result?!0:(e.kind=g,e.result=y,!1)}r(be,"readPlainScalar");function pe(e,i){let a,p,c=e.input.charCodeAt(e.position);if(c!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=p=e.position;(c=e.input.charCodeAt(e.position))!==0;)if(c===39)if(j(e,a,e.position,!0),c=e.input.charCodeAt(++e.position),c===39)a=e.position,e.position++,p=e.position;else return!0;else B(c)?(j(e,a,p,!0),ie(e,R(e,!1,i)),a=p=e.position):e.position===e.lineStart&&K(e)?E(e,"unexpected end of the document within a single quoted scalar"):(e.position++,H(c)||(p=e.position));E(e,"unexpected end of the stream within a single quoted scalar")}r(pe,"readSingleQuotedScalar");function Ee(e,i){let a,p,c,n=e.input.charCodeAt(e.position);if(n!==34)return!1;for(e.kind="scalar",e.result="",e.position++,a=p=e.position;(n=e.input.charCodeAt(e.position))!==0;){if(n===34)return j(e,a,e.position,!0),e.position++,!0;if(n===92){if(j(e,a,e.position,!0),n=e.input.charCodeAt(++e.position),B(n))R(e,!1,i);else if(n<256&&Fe[n])e.result+=Ce[n],e.position++;else if((c=Re(n))>0){let l=c,o=0;for(;l>0;l--)n=e.input.charCodeAt(++e.position),(c=Ne(n))>=0?o=(o<<4)+c:E(e,"expected hexadecimal character");e.result+=qe(o),e.position++}else E(e,"unknown escape sequence");a=p=e.position}else B(n)?(j(e,a,p,!0),ie(e,R(e,!1,i)),a=p=e.position):e.position===e.lineStart&&K(e)?E(e,"unexpected end of the document within a double quoted scalar"):(e.position++,H(n)||(p=e.position))}E(e,"unexpected end of the stream within a double quoted scalar")}r(Ee,"readDoubleQuotedScalar");function _e(e,i){let a=!0,p,c,n,l=e.tag,o,m=e.anchor,g,y,u,S,b=Object.create(null),I,L,v,M=e.input.charCodeAt(e.position);if(M===91)g=93,S=!1,o=[];else if(M===123)g=125,S=!0,o={};else return!1;for(e.anchor!==null&&W(e,e.anchor,o),M=e.input.charCodeAt(++e.position);M!==0;){if(R(e,!0,i),M=e.input.charCodeAt(e.position),M===g)return e.position++,e.tag=l,e.anchor=m,e.kind=S?"mapping":"sequence",e.result=o,!0;if(a?M===44&&E(e,"expected the node content, but found ','"):E(e,"missed comma between flow collection entries"),L=I=v=null,y=u=!1,M===63){let re=e.input.charCodeAt(e.position+1);Y(re)&&(y=u=!0,e.position++,R(e,!0,i))}p=e.line,c=e.lineStart,n=e.position,V(e,i,A,!1,!0),L=e.tag,I=e.result,R(e,!0,i),M=e.input.charCodeAt(e.position),(u||e.line===p)&&M===58&&(y=!0,M=e.input.charCodeAt(++e.position),R(e,!0,i),V(e,i,A,!1,!0),v=e.result),S?G(e,o,b,L,I,v,p,c,n):y?o.push(G(e,null,b,L,I,v,p,c,n)):o.push(I),R(e,!0,i),M=e.input.charCodeAt(e.position),M===44?(a=!0,M=e.input.charCodeAt(++e.position)):a=!1}E(e,"unexpected end of the stream within a flow collection")}r(_e,"readFlowCollection");function X(e,i){let a,p=t,c=!1,n=!1,l=i,o=0,m=!1,g,y=e.input.charCodeAt(e.position);if(y===124)a=!1;else if(y===62)a=!0;else return!1;for(e.kind="scalar",e.result="";y!==0;)if(y=e.input.charCodeAt(++e.position),y===43||y===45)t===p?p=y===43?T:f:E(e,"repeat of a chomping mode identifier");else if((g=Se(y))>=0)g===0?E(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):n?E(e,"repeat of an indentation width identifier"):(l=i+g-1,n=!0);else break;if(H(y)){do y=e.input.charCodeAt(++e.position);while(H(y));if(y===35)do y=e.input.charCodeAt(++e.position);while(!B(y)&&y!==0)}for(;y!==0;){for(ce(e),e.lineIndent=0,y=e.input.charCodeAt(e.position);(!n||e.lineIndent<l)&&y===32;)e.lineIndent++,y=e.input.charCodeAt(++e.position);if(!n&&e.lineIndent>l&&(l=e.lineIndent),B(y)){o++;continue}if(!n&&l===0&&E(e,"missing indentation for block scalar"),e.lineIndent<l){p===T?e.result+=w.repeat(`
|
|
11
|
+
`,c?1+o:o):p===t&&c&&(e.result+=`
|
|
12
|
+
`);break}a?H(y)?(m=!0,e.result+=w.repeat(`
|
|
13
|
+
`,c?1+o:o)):m?(m=!1,e.result+=w.repeat(`
|
|
14
|
+
`,o+1)):o===0?c&&(e.result+=" "):e.result+=w.repeat(`
|
|
15
|
+
`,o):e.result+=w.repeat(`
|
|
16
|
+
`,c?1+o:o),c=!0,n=!0,o=0;let u=e.position;for(;!B(y)&&y!==0;)y=e.input.charCodeAt(++e.position);j(e,u,e.position,!1)}return!0}r(X,"readBlockScalar");function se(e,i){let a=e.tag,p=e.anchor,c=[],n=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&W(e,e.anchor,c);let l=e.input.charCodeAt(e.position);for(;l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,E(e,"tab characters must not be used in indentation")),l===45);){let o=e.input.charCodeAt(e.position+1);if(!Y(o))break;if(n=!0,e.position++,R(e,!0,-1)&&e.lineIndent<=i){c.push(null),l=e.input.charCodeAt(e.position);continue}let m=e.line;if(V(e,i,s,!1,!0),c.push(e.result),R(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===m||e.lineIndent>i)&&l!==0)E(e,"bad indentation of a sequence entry");else if(e.lineIndent<i)break}return n?(e.tag=a,e.anchor=p,e.kind="sequence",e.result=c,!0):!1}r(se,"readBlockSequence");function he(e,i,a){let p,c,n,l,o=e.tag,m=e.anchor,g={},y=Object.create(null),u=null,S=null,b=null,I=!1,L=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&W(e,e.anchor,g);let v=e.input.charCodeAt(e.position);for(;v!==0;){!I&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,E(e,"tab characters must not be used in indentation"));let M=e.input.charCodeAt(e.position+1),re=e.line;if((v===63||v===58)&&Y(M))v===63?(I&&(G(e,g,y,u,S,null,c,n,l),u=S=b=null),L=!0,I=!0,p=!0):I?(I=!1,p=!0):E(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=M;else{if(c=e.line,n=e.lineStart,l=e.position,!V(e,a,d,!1,!0))break;if(e.line===re){for(v=e.input.charCodeAt(e.position);H(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),Y(v)||E(e,"a whitespace character is expected after the key-value separator within a block mapping"),I&&(G(e,g,y,u,S,null,c,n,l),u=S=b=null),L=!0,I=!1,p=!1,u=e.tag,S=e.result;else if(L)E(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=o,e.anchor=m,!0}else if(L)E(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=o,e.anchor=m,!0}if((e.line===re||e.lineIndent>i)&&(I&&(c=e.line,n=e.lineStart,l=e.position),V(e,i,C,!0,p)&&(I?S=e.result:b=e.result),I||(G(e,g,y,u,S,b,c,n,l),u=S=b=null),R(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===re||e.lineIndent>i)&&v!==0)E(e,"bad indentation of a mapping entry");else if(e.lineIndent<i)break}return I&&G(e,g,y,u,S,null,c,n,l),L&&(e.tag=o,e.anchor=m,e.kind="mapping",e.result=g),L}r(he,"readBlockMapping");function de(e){let i=!1,a=!1,p,c,n=e.input.charCodeAt(e.position);if(n!==33)return!1;e.tag!==null&&E(e,"duplication of a tag property"),n=e.input.charCodeAt(++e.position),n===60?(i=!0,n=e.input.charCodeAt(++e.position)):n===33?(a=!0,p="!!",n=e.input.charCodeAt(++e.position)):p="!";let l=e.position;if(i){do n=e.input.charCodeAt(++e.position);while(n!==0&&n!==62);e.position<e.length?(c=e.input.slice(l,e.position),n=e.input.charCodeAt(++e.position)):E(e,"unexpected end of the stream within a verbatim tag")}else{for(;n!==0&&!Y(n);)n===33&&(a?E(e,"tag suffix cannot contain exclamation marks"):(p=e.input.slice(l-1,e.position+1),q.test(p)||E(e,"named tag handle cannot contain such characters"),a=!0,l=e.position+1)),n=e.input.charCodeAt(++e.position);c=e.input.slice(l,e.position),$.test(c)&&E(e,"tag suffix cannot contain flow indicator characters")}c&&!U.test(c)&&E(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch{E(e,"tag name is malformed: "+c)}return i?e.tag=c:h.call(e.tagMap,p)?e.tag=e.tagMap[p]+c:p==="!"?e.tag="!"+c:p==="!!"?e.tag="tag:yaml.org,2002:"+c:E(e,'undeclared tag handle "'+p+'"'),!0}r(de,"readTagProperty");function me(e){let i=e.input.charCodeAt(e.position);if(i!==38)return!1;e.anchor!==null&&E(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position);let a=e.position;for(;i!==0&&!Y(i)&&!J(i);)i=e.input.charCodeAt(++e.position);return e.position===a&&E(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(a,e.position),!0}r(me,"readAnchorProperty");function Ie(e){let i=e.input.charCodeAt(e.position);if(i!==42)return!1;i=e.input.charCodeAt(++e.position);let a=e.position;for(;i!==0&&!Y(i)&&!J(i);)i=e.input.charCodeAt(++e.position);e.position===a&&E(e,"name of an alias node must contain at least one character");let p=e.input.slice(a,e.position);return h.call(e.anchorMap,p)||E(e,'unidentified alias "'+p+'"'),e.result=e.anchorMap[p],R(e,!0,-1),!0}r(Ie,"readAlias");function ge(e,i,a,p){let c=oe(e);return Ye(e),ne(e,i),e.tag=null,e.anchor=null,e.kind=null,e.result=null,he(e,a,p)&&e.kind==="mapping"?(ee(e),!0):(we(e),ne(e,c),!1)}r(ge,"tryReadBlockMappingFromProperty");function V(e,i,a,p,c){let n,l,o=1,m=!1,g=!1,y=null,u,S,b;e.depth>=e.maxDepth&&E(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let I=n=l=C===a||s===a;if(p&&R(e,!0,-1)&&(m=!0,e.lineIndent>i?o=1:e.lineIndent===i?o=0:e.lineIndent<i&&(o=-1)),o===1)for(;;){let L=e.input.charCodeAt(e.position),v=oe(e);if(m&&(L===33&&e.tag!==null||L===38&&e.anchor!==null)||!de(e)&&!me(e))break;y===null&&(y=v),R(e,!0,-1)?(m=!0,l=I,e.lineIndent>i?o=1:e.lineIndent===i?o=0:e.lineIndent<i&&(o=-1)):l=!1}if(l&&(l=m||c),o===1||C===a)if(A===a||d===a?S=i:S=i+1,b=e.position-e.lineStart,o===1)if(l&&(se(e,b)||he(e,b,S))||_e(e,S))g=!0;else{let L=e.input.charCodeAt(e.position);y!==null&&I&&!l&&L!==124&&L!==62&&ge(e,y,y.position-y.lineStart,S)||n&&X(e,S)||pe(e,S)||Ee(e,S)?g=!0:Ie(e)?(g=!0,(e.tag!==null||e.anchor!==null)&&E(e,"alias node should not have any properties")):be(e,S,A===a)&&(g=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&W(e,e.anchor,e.result)}else o===0&&(g=l&&se(e,b));if(e.tag===null)e.anchor!==null&&W(e,e.anchor,e.result);else if(e.tag==="?"){e.result!==null&&e.kind!=="scalar"&&E(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let L=0,v=e.implicitTypes.length;L<v;L+=1)if(u=e.implicitTypes[L],u.resolve(e.result)){e.result=u.construct(e.result),e.tag=u.tag,e.anchor!==null&&W(e,e.anchor,e.result);break}}else if(e.tag!=="!"){if(h.call(e.typeMap[e.kind||"fallback"],e.tag))u=e.typeMap[e.kind||"fallback"][e.tag];else{u=null;let L=e.typeMap.multi[e.kind||"fallback"];for(let v=0,M=L.length;v<M;v+=1)if(e.tag.slice(0,L[v].tag.length)===L[v].tag){u=L[v];break}}u||E(e,"unknown tag !<"+e.tag+">"),e.result!==null&&u.kind!==e.kind&&E(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+u.kind+'", not "'+e.kind+'"'),u.resolve(e.result,e.tag)?(e.result=u.construct(e.result,e.tag),e.anchor!==null&&W(e,e.anchor,e.result)):E(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.depth-=1,e.tag!==null||e.anchor!==null||g}r(V,"composeNode");function ke(e){let i=e.position,a=!1,p;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(p=e.input.charCodeAt(e.position))!==0&&(R(e,!0,-1),p=e.input.charCodeAt(e.position),!(e.lineIndent>0||p!==37));){a=!0,p=e.input.charCodeAt(++e.position);let c=e.position;for(;p!==0&&!Y(p);)p=e.input.charCodeAt(++e.position);let n=e.input.slice(c,e.position),l=[];for(n.length<1&&E(e,"directive name must not be less than one character in length");p!==0;){for(;H(p);)p=e.input.charCodeAt(++e.position);if(p===35){do p=e.input.charCodeAt(++e.position);while(p!==0&&!B(p));break}if(B(p))break;for(c=e.position;p!==0&&!Y(p);)p=e.input.charCodeAt(++e.position);l.push(e.input.slice(c,e.position))}p!==0&&ce(e),h.call(xe,n)?xe[n](e,n,l):z(e,'unknown document directive "'+n+'"')}if(R(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,R(e,!0,-1)):a&&E(e,"directives end mark is expected"),V(e,e.lineIndent-1,C,!1,!0),R(e,!0,-1),e.checkLineBreaks&&N.test(e.input.slice(i,e.position))&&z(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&K(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,R(e,!0,-1));return}e.position<e.length-1&&E(e,"end of the stream or a document separator is expected")}r(ke,"readDocument");function ue(e,i){e=String(e),i=i||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
17
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));let a=new F(e,i),p=e.indexOf("\0");for(p!==-1&&(a.position=p,E(a,"null byte is not allowed in input")),a.input+="\0";a.input.charCodeAt(a.position)===32;)a.lineIndent+=1,a.position+=1;for(;a.position<a.length-1;)ke(a);return a.documents}r(ue,"loadDocuments");function Le(e,i,a){i!==null&&typeof i=="object"&&typeof a>"u"&&(a=i,i=null);let p=ue(e,a);if(typeof i!="function")return p;for(let c=0,n=p.length;c<n;c+=1)i(p[c])}r(Le,"loadAll2");function Oe(e,i){let a=ue(e,i);if(a.length!==0){if(a.length===1)return a[0];throw new x("expected a single document in the stream, but found more")}}return r(Oe,"load2"),Pe.loadAll=Le,Pe.load=Oe,Pe}r(zn,"requireLoader");var un={},Jn;function ei(){if(Jn)return un;Jn=1;let w=Ae(),x=ye(),_=De(),k=Object.prototype.toString,h=Object.prototype.hasOwnProperty,A=65279,d=9,s=10,C=13,t=32,f=33,T=34,O=35,N=37,$=38,q=39,U=42,Z=44,B=45,H=58,Y=61,J=62,Ne=63,Re=64,Se=91,fe=93,qe=96,ae=123,Fe=124,Ce=125,F={};F[0]="\\0",F[7]="\\a",F[8]="\\b",F[9]="\\t",F[10]="\\n",F[11]="\\v",F[12]="\\f",F[13]="\\r",F[27]="\\e",F[34]='\\"',F[92]="\\\\",F[133]="\\N",F[160]="\\_",F[8232]="\\L",F[8233]="\\P";let Te=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],E=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function z(n,l){if(l===null)return{};let o={},m=Object.keys(l);for(let g=0,y=m.length;g<y;g+=1){let u=m[g],S=String(l[u]);u.slice(0,2)==="!!"&&(u="tag:yaml.org,2002:"+u.slice(2));let b=n.compiledTypeMap.fallback[u];b&&h.call(b.styleAliases,S)&&(S=b.styleAliases[S]),o[u]=S}return o}r(z,"compileStyleMap");function W(n){let l,o,m=n.toString(16).toUpperCase();if(n<=255)l="x",o=2;else if(n<=65535)l="u",o=4;else if(n<=4294967295)l="U",o=8;else throw new x("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+l+w.repeat("0",o-m.length)+m}r(W,"encodeHex");let Ye=1,ee=2;function we(n){this.schema=n.schema||_,this.indent=Math.max(1,n.indent||2),this.noArrayIndent=n.noArrayIndent||!1,this.skipInvalid=n.skipInvalid||!1,this.flowLevel=w.isNothing(n.flowLevel)?-1:n.flowLevel,this.styleMap=z(this.schema,n.styles||null),this.sortKeys=n.sortKeys||!1,this.lineWidth=n.lineWidth||80,this.noRefs=n.noRefs||!1,this.noCompatMode=n.noCompatMode||!1,this.condenseFlow=n.condenseFlow||!1,this.quotingType=n.quotingType==='"'?ee:Ye,this.forceQuotes=n.forceQuotes||!1,this.replacer=typeof n.replacer=="function"?n.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}r(we,"State");function oe(n,l){let o=w.repeat(" ",l),m=0,g="",y=n.length;for(;m<y;){let u,S=n.indexOf(`
|
|
18
|
+
`,m);S===-1?(u=n.slice(m),m=y):(u=n.slice(m,S+1),m=S+1),u.length&&u!==`
|
|
19
|
+
`&&(g+=o),g+=u}return g}r(oe,"indentString");function ne(n,l){return`
|
|
20
|
+
`+w.repeat(" ",n.indent*l)}r(ne,"generateNextLine");function xe(n,l){for(let o=0,m=n.implicitTypes.length;o<m;o+=1)if(n.implicitTypes[o].resolve(l))return!0;return!1}r(xe,"testImplicitResolving");function j(n){return n===t||n===d}r(j,"isWhitespace");function Q(n){return n>=32&&n<=126||n>=161&&n<=55295&&n!==8232&&n!==8233||n>=57344&&n<=65533&&n!==A||n>=65536&&n<=1114111}r(Q,"isPrintable");function te(n){return Q(n)&&n!==A&&n!==C&&n!==s}r(te,"isNsCharOrWhitespace");function G(n,l,o){let m=te(n),g=m&&!j(n);return(o?m:m&&n!==Z&&n!==Se&&n!==fe&&n!==ae&&n!==Ce)&&n!==O&&!(l===H&&!g)||te(l)&&!j(l)&&n===O||l===H&&g}r(G,"isPlainSafe");function ce(n){return Q(n)&&n!==A&&!j(n)&&n!==B&&n!==Ne&&n!==H&&n!==Z&&n!==Se&&n!==fe&&n!==ae&&n!==Ce&&n!==O&&n!==$&&n!==U&&n!==f&&n!==Fe&&n!==Y&&n!==J&&n!==q&&n!==T&&n!==N&&n!==Re&&n!==qe}r(ce,"isPlainSafeFirst");function R(n){return!j(n)&&n!==H}r(R,"isPlainSafeLast");function K(n,l){let o=n.charCodeAt(l),m;return o>=55296&&o<=56319&&l+1<n.length&&(m=n.charCodeAt(l+1),m>=56320&&m<=57343)?(o-55296)*1024+m-56320+65536:o}r(K,"codePointAt");function ie(n){return/^\n* /.test(n)}r(ie,"needIndentIndicator");let be=1,pe=2,Ee=3,_e=4,X=5;function se(n,l,o,m,g,y,u,S){let b,I=0,L=null,v=!1,M=!1,re=m!==-1,ve=-1,Me=ce(K(n,0))&&R(K(n,n.length-1));if(l||u)for(b=0;b<n.length;I>=65536?b+=2:b++){if(I=K(n,b),!Q(I))return X;Me=Me&&G(I,L,S),L=I}else{for(b=0;b<n.length;I>=65536?b+=2:b++){if(I=K(n,b),I===s)v=!0,re&&(M=M||b-ve-1>m&&n[ve+1]!==" ",ve=b);else if(!Q(I))return X;Me=Me&&G(I,L,S),L=I}M=M||re&&b-ve-1>m&&n[ve+1]!==" "}return!v&&!M?Me&&!u&&!g(n)?be:y===ee?X:pe:o>9&&ie(n)?X:u?y===ee?X:pe:M?_e:Ee}r(se,"chooseScalarStyle");function he(n,l,o,m,g){n.dump=(function(){if(l.length===0)return n.quotingType===ee?'""':"''";if(!n.noCompatMode&&(Te.indexOf(l)!==-1||E.test(l)))return n.quotingType===ee?'"'+l+'"':"'"+l+"'";let y=n.indent*Math.max(1,o),u=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-y),S=m||n.flowLevel>-1&&o>=n.flowLevel;function b(I){return xe(n,I)}switch(r(b,"testAmbiguity"),se(l,S,n.indent,u,b,n.quotingType,n.forceQuotes&&!m,g)){case be:return l;case pe:return"'"+l.replace(/'/g,"''")+"'";case Ee:return"|"+de(l,n.indent)+me(oe(l,y));case _e:return">"+de(l,n.indent)+me(oe(Ie(l,u),y));case X:return'"'+V(l)+'"';default:throw new x("impossible error: invalid scalar style")}})()}r(he,"writeScalar");function de(n,l){let o=ie(n)?String(l):"",m=n[n.length-1]===`
|
|
21
|
+
`,y=m&&(n[n.length-2]===`
|
|
22
|
+
`||n===`
|
|
23
|
+
`)?"+":m?"":"-";return o+y+`
|
|
24
|
+
`}r(de,"blockHeader");function me(n){return n[n.length-1]===`
|
|
25
|
+
`?n.slice(0,-1):n}r(me,"dropEndingNewline");function Ie(n,l){let o=/(\n+)([^\n]*)/g,m=(function(){let S=n.indexOf(`
|
|
26
|
+
`);return S=S!==-1?S:n.length,o.lastIndex=S,ge(n.slice(0,S),l)})(),g=n[0]===`
|
|
27
|
+
`||n[0]===" ",y,u;for(;u=o.exec(n);){let S=u[1],b=u[2];y=b[0]===" ",m+=S+(!g&&!y&&b!==""?`
|
|
28
|
+
`:"")+ge(b,l),g=y}return m}r(Ie,"foldString");function ge(n,l){if(n===""||n[0]===" ")return n;let o=/ [^ ]/g,m,g=0,y,u=0,S=0,b="";for(;m=o.exec(n);)S=m.index,S-g>l&&(y=u>g?u:S,b+=`
|
|
29
|
+
`+n.slice(g,y),g=y+1),u=S;return b+=`
|
|
30
|
+
`,n.length-g>l&&u>g?b+=n.slice(g,u)+`
|
|
31
|
+
`+n.slice(u+1):b+=n.slice(g),b.slice(1)}r(ge,"foldLine");function V(n){let l="",o=0;for(let m=0;m<n.length;o>=65536?m+=2:m++){o=K(n,m);let g=F[o];!g&&Q(o)?(l+=n[m],o>=65536&&(l+=n[m+1])):l+=g||W(o)}return l}r(V,"escapeString");function ke(n,l,o){let m="",g=n.tag;for(let y=0,u=o.length;y<u;y+=1){let S=o[y];n.replacer&&(S=n.replacer.call(o,String(y),S)),(i(n,l,S,!1,!1)||typeof S>"u"&&i(n,l,null,!1,!1))&&(m!==""&&(m+=","+(n.condenseFlow?"":" ")),m+=n.dump)}n.tag=g,n.dump="["+m+"]"}r(ke,"writeFlowSequence");function ue(n,l,o,m){let g="",y=n.tag;for(let u=0,S=o.length;u<S;u+=1){let b=o[u];n.replacer&&(b=n.replacer.call(o,String(u),b)),(i(n,l+1,b,!0,!0,!1,!0)||typeof b>"u"&&i(n,l+1,null,!0,!0,!1,!0))&&((!m||g!=="")&&(g+=ne(n,l)),n.dump&&s===n.dump.charCodeAt(0)?g+="-":g+="- ",g+=n.dump)}n.tag=y,n.dump=g||"[]"}r(ue,"writeBlockSequence");function Le(n,l,o){let m="",g=n.tag,y=Object.keys(o);for(let u=0,S=y.length;u<S;u+=1){let b="";m!==""&&(b+=", "),n.condenseFlow&&(b+='"');let I=y[u],L=o[I];n.replacer&&(L=n.replacer.call(o,I,L)),i(n,l,I,!1,!1)&&(n.dump.length>1024&&(b+="? "),b+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),i(n,l,L,!1,!1)&&(b+=n.dump,m+=b))}n.tag=g,n.dump="{"+m+"}"}r(Le,"writeFlowMapping");function Oe(n,l,o,m){let g="",y=n.tag,u=Object.keys(o);if(n.sortKeys===!0)u.sort();else if(typeof n.sortKeys=="function")u.sort(n.sortKeys);else if(n.sortKeys)throw new x("sortKeys must be a boolean or a function");for(let S=0,b=u.length;S<b;S+=1){let I="";(!m||g!=="")&&(I+=ne(n,l));let L=u[S],v=o[L];if(n.replacer&&(v=n.replacer.call(o,L,v)),!i(n,l+1,L,!0,!0,!0))continue;let M=n.tag!==null&&n.tag!=="?"||n.dump&&n.dump.length>1024;M&&(n.dump&&s===n.dump.charCodeAt(0)?I+="?":I+="? "),I+=n.dump,M&&(I+=ne(n,l)),i(n,l+1,v,!0,M)&&(n.dump&&s===n.dump.charCodeAt(0)?I+=":":I+=": ",I+=n.dump,g+=I)}n.tag=y,n.dump=g||"{}"}r(Oe,"writeBlockMapping");function e(n,l,o){let m=o?n.explicitTypes:n.implicitTypes;for(let g=0,y=m.length;g<y;g+=1){let u=m[g];if((u.instanceOf||u.predicate)&&(!u.instanceOf||typeof l=="object"&&l instanceof u.instanceOf)&&(!u.predicate||u.predicate(l))){if(o?u.multi&&u.representName?n.tag=u.representName(l):n.tag=u.tag:n.tag="?",u.represent){let S=n.styleMap[u.tag]||u.defaultStyle,b;if(k.call(u.represent)==="[object Function]")b=u.represent(l,S);else if(h.call(u.represent,S))b=u.represent[S](l,S);else throw new x("!<"+u.tag+'> tag resolver accepts not "'+S+'" style');n.dump=b}return!0}}return!1}r(e,"detectType");function i(n,l,o,m,g,y,u){n.tag=null,n.dump=o,e(n,o,!1)||e(n,o,!0);let S=k.call(n.dump),b=m;m&&(m=n.flowLevel<0||n.flowLevel>l);let I=S==="[object Object]"||S==="[object Array]",L,v;if(I&&(L=n.duplicates.indexOf(o),v=L!==-1),(n.tag!==null&&n.tag!=="?"||v||n.indent!==2&&l>0)&&(g=!1),v&&n.usedDuplicates[L])n.dump="*ref_"+L;else{if(I&&v&&!n.usedDuplicates[L]&&(n.usedDuplicates[L]=!0),S==="[object Object]")m&&Object.keys(n.dump).length!==0?(Oe(n,l,n.dump,g),v&&(n.dump="&ref_"+L+n.dump)):(Le(n,l,n.dump),v&&(n.dump="&ref_"+L+" "+n.dump));else if(S==="[object Array]")m&&n.dump.length!==0?(n.noArrayIndent&&!u&&l>0?ue(n,l-1,n.dump,g):ue(n,l,n.dump,g),v&&(n.dump="&ref_"+L+n.dump)):(ke(n,l,n.dump),v&&(n.dump="&ref_"+L+" "+n.dump));else if(S==="[object String]")n.tag!=="?"&&he(n,n.dump,l,y,b);else{if(S==="[object Undefined]")return!1;if(n.skipInvalid)return!1;throw new x("unacceptable kind of an object to dump "+S)}if(n.tag!==null&&n.tag!=="?"){let M=encodeURI(n.tag[0]==="!"?n.tag.slice(1):n.tag).replace(/!/g,"%21");n.tag[0]==="!"?M="!"+M:M.slice(0,18)==="tag:yaml.org,2002:"?M="!!"+M.slice(18):M="!<"+M+">",n.dump=M+" "+n.dump}}return!0}r(i,"writeNode");function a(n,l){let o=[],m=[];p(n,o,m);let g=m.length;for(let y=0;y<g;y+=1)l.duplicates.push(o[m[y]]);l.usedDuplicates=new Array(g)}r(a,"getDuplicateReferences");function p(n,l,o){if(n!==null&&typeof n=="object"){let m=l.indexOf(n);if(m!==-1)o.indexOf(m)===-1&&o.push(m);else if(l.push(n),Array.isArray(n))for(let g=0,y=n.length;g<y;g+=1)p(n[g],l,o);else{let g=Object.keys(n);for(let y=0,u=g.length;y<u;y+=1)p(n[g[y]],l,o)}}}r(p,"inspectNode");function c(n,l){l=l||{};let o=new we(l);o.noRefs||a(n,o);let m=n;return o.replacer&&(m=o.replacer.call({"":m},"",m)),i(o,0,m,!0,!0)?o.dump+`
|
|
32
|
+
`:""}return r(c,"dump2"),un.dump=c,un}r(ei,"requireDumper");var Xn;function ni(){if(Xn)return P;Xn=1;let w=zn(),x=ei();function _(k,h){return function(){throw new Error("Function yaml."+k+" is removed in js-yaml 4. Use yaml."+h+" instead, which is now safe by default.")}}return r(_,"renamed"),P.Type=D(),P.Schema=fn(),P.FAILSAFE_SCHEMA=hn(),P.JSON_SCHEMA=yn(),P.CORE_SCHEMA=Sn(),P.DEFAULT_SCHEMA=De(),P.load=w.load,P.loadAll=w.loadAll,P.dump=x.dump,P.YAMLException=ye(),P.types={binary:wn(),float:An(),map:sn(),null:dn(),pairs:bn(),set:En(),timestamp:Cn(),bool:mn(),int:gn(),merge:Tn(),omap:xn(),seq:pn(),str:an()},P.safeLoad=_("safeLoad","load"),P.safeLoadAll=_("safeLoadAll","loadAll"),P.safeDump=_("safeDump","dump"),P}r(ni,"requireJsYaml");var ii=ni(),ri=$n(ii),{Type:oi,Schema:ti,FAILSAFE_SCHEMA:ci,JSON_SCHEMA:ui,CORE_SCHEMA:fi,DEFAULT_SCHEMA:ai,load:pi,loadAll:si,dump:hi,YAMLException:di,types:mi,safeLoad:gi,safeLoadAll:Ai,safeDump:yi}=ri;export{ui as a,pi as b};
|