runcell 0.1.16a3__py3-none-any.whl → 0.1.17__py3-none-any.whl
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.
- d5m_ai/__init__.py +9 -1
- d5m_ai/_version.py +1 -1
- d5m_ai/agent/path_utils.py +45 -0
- d5m_ai/agent/proxy_handler.py +62 -17
- d5m_ai/agent/tool_registry.py +3 -1
- d5m_ai/chat/history.py +17 -5
- d5m_ai/edit/edit_proxy_handler.py +6 -3
- d5m_ai/extension.py +2 -0
- d5m_ai/git_status_handler.py +1 -0
- d5m_ai/image_generation/__init__.py +9 -0
- d5m_ai/image_generation/image_generation_handler.py +117 -0
- d5m_ai/labextension/package.json +2 -2
- d5m_ai/labextension/schemas/runcell/package.json.orig +1 -1
- d5m_ai/labextension/static/1866.ab8af952d5f6e2abf015.js +1 -0
- d5m_ai/labextension/static/2331.cf0ae406b1f17e5c8518.js +1 -0
- d5m_ai/labextension/static/2732.afa510c6b53e86d62ca1.js +1 -0
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/2958.38f8dc8fc705367ecec4.js → d5m_ai/labextension/static/2774.6c28665d8d562e2eafab.js +1 -1
- d5m_ai/labextension/static/3111.ebf975f4bcee6f078398.js +1 -0
- d5m_ai/labextension/static/315.08557b7e89ae957a677c.js +1 -0
- d5m_ai/labextension/static/3314.bba33288b1bf072a1159.js +1 -0
- d5m_ai/labextension/static/345.b6c86a74cbb739491375.js +1 -0
- d5m_ai/labextension/static/3475.4bb63668582c9ee1aa75.js +1 -0
- d5m_ai/labextension/static/3550.0f796cddf846567f6eda.js +1 -0
- d5m_ai/labextension/static/4163.c5b167ad4c431223b14a.js +1 -0
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/6556.7a46eed7932ddfc9e659.js → d5m_ai/labextension/static/4175.d23c246efa6921b45150.js +1 -1
- d5m_ai/labextension/static/4255.657770d29f05e3da360c.js +1 -0
- d5m_ai/labextension/static/4398.20687aa11fadd8caab55.js +1 -0
- d5m_ai/labextension/static/4444.8776afd3310ade08de78.js +1 -0
- d5m_ai/labextension/static/4573.313f73d47b3e9e7e539a.js +1 -0
- d5m_ai/labextension/static/4640.c1c98b7c207045b8429e.js +1 -0
- d5m_ai/labextension/static/4712.867600779a30c292ecd7.js +48 -0
- d5m_ai/labextension/static/4797.6c1f52ca8940a1daa9ed.js +1 -0
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/9417.b1bbd219cb5ae78f19f9.js → d5m_ai/labextension/static/5009.375c39a105e8068ec0c0.js +1 -1
- d5m_ai/labextension/static/5225.77ee82ef77687f707c86.js +1 -0
- d5m_ai/labextension/static/5307.0cf41cdf5b6c0c01dbe3.js +1 -0
- d5m_ai/labextension/static/5388.8b14c718c4703b72635f.js +1 -0
- d5m_ai/labextension/static/5481.20ece9f96e241e634f15.js +1 -0
- d5m_ai/labextension/static/553.bd198ad217a7dbfcef42.js +1 -0
- d5m_ai/labextension/static/5785.c6fc662855351bdde523.js +1 -0
- d5m_ai/labextension/static/5953.fb531c692611683ab5f7.js +1 -0
- d5m_ai/labextension/static/6047.ed21945649e91106bee2.js +1 -0
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/5228.05d972957a2421ec1ce0.js → d5m_ai/labextension/static/6145.8bfe956b3c3b5a40e58d.js +1 -1
- d5m_ai/labextension/static/6286.db1168ea85a057c6f189.js +1 -0
- d5m_ai/labextension/static/6619.04732600d85fbbc50931.js +1 -0
- d5m_ai/labextension/static/6734.e5919666c842cdf1276d.js +1 -0
- d5m_ai/labextension/static/6789.346356d4f19b92e62321.js +1 -0
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/7440.4e80677e4d48bac95cb6.js → d5m_ai/labextension/static/6841.3906e65455bb5575b44b.js +1 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/9404.f6ff67c04b5dfb52e3d9.js → d5m_ai/labextension/static/7023.f00c7a4596b9e4730708.js +1 -1
- d5m_ai/labextension/static/783.63f9d3340979bfb89716.js +1 -0
- d5m_ai/labextension/static/790.1c740b9b76f7fd2dc0d6.js +1 -0
- d5m_ai/labextension/static/877.e8b79ec87c1325c45f62.js +2 -0
- d5m_ai/labextension/static/8823.2fc995c832aa529c3519.js +1 -0
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/6494.da246ca8363db0bb8bfc.js → d5m_ai/labextension/static/9064.5349664a3752925acab3.js +1 -1
- d5m_ai/labextension/static/9195.d0277553edf7593d967d.js +1 -0
- d5m_ai/labextension/static/9338.58debf8972aa5f8b68d7.js +1 -0
- d5m_ai/labextension/static/9404.f841eb045fbb87713d5e.js +1 -0
- d5m_ai/labextension/static/9575.8848adfb0c89daa1ca6b.js +1 -0
- d5m_ai/labextension/static/remoteEntry.5f8a7082e7be806b9281.js +1 -0
- d5m_ai/utils/__init__.py +26 -1
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/package.json +2 -2
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/schemas/runcell/package.json.orig +1 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/1866.ab8af952d5f6e2abf015.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/2331.cf0ae406b1f17e5c8518.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/2732.afa510c6b53e86d62ca1.js +1 -0
- d5m_ai/labextension/static/2958.38f8dc8fc705367ecec4.js → runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/2774.6c28665d8d562e2eafab.js +1 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/3111.ebf975f4bcee6f078398.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/315.08557b7e89ae957a677c.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/3314.bba33288b1bf072a1159.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/345.b6c86a74cbb739491375.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/3475.4bb63668582c9ee1aa75.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/3550.0f796cddf846567f6eda.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4163.c5b167ad4c431223b14a.js +1 -0
- d5m_ai/labextension/static/6556.7a46eed7932ddfc9e659.js → runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4175.d23c246efa6921b45150.js +1 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4255.657770d29f05e3da360c.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4398.20687aa11fadd8caab55.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4444.8776afd3310ade08de78.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4573.313f73d47b3e9e7e539a.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4640.c1c98b7c207045b8429e.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4712.867600779a30c292ecd7.js +48 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4797.6c1f52ca8940a1daa9ed.js +1 -0
- d5m_ai/labextension/static/9417.b1bbd219cb5ae78f19f9.js → runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/5009.375c39a105e8068ec0c0.js +1 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/5225.77ee82ef77687f707c86.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/5307.0cf41cdf5b6c0c01dbe3.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/5388.8b14c718c4703b72635f.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/5481.20ece9f96e241e634f15.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/553.bd198ad217a7dbfcef42.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/5785.c6fc662855351bdde523.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/5953.fb531c692611683ab5f7.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/6047.ed21945649e91106bee2.js +1 -0
- d5m_ai/labextension/static/5228.05d972957a2421ec1ce0.js → runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/6145.8bfe956b3c3b5a40e58d.js +1 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/6286.db1168ea85a057c6f189.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/6619.04732600d85fbbc50931.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/6734.e5919666c842cdf1276d.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/6789.346356d4f19b92e62321.js +1 -0
- d5m_ai/labextension/static/7440.4e80677e4d48bac95cb6.js → runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/6841.3906e65455bb5575b44b.js +1 -1
- d5m_ai/labextension/static/9404.f6ff67c04b5dfb52e3d9.js → runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/7023.f00c7a4596b9e4730708.js +1 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/783.63f9d3340979bfb89716.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/790.1c740b9b76f7fd2dc0d6.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/877.e8b79ec87c1325c45f62.js +2 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/8823.2fc995c832aa529c3519.js +1 -0
- d5m_ai/labextension/static/6494.da246ca8363db0bb8bfc.js → runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/9064.5349664a3752925acab3.js +1 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/9195.d0277553edf7593d967d.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/9338.58debf8972aa5f8b68d7.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/9404.f841eb045fbb87713d5e.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/9575.8848adfb0c89daa1ca6b.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/remoteEntry.5f8a7082e7be806b9281.js +1 -0
- {runcell-0.1.16a3.dist-info → runcell-0.1.17.dist-info}/METADATA +2 -29
- runcell-0.1.17.dist-info/RECORD +843 -0
- runcell-0.1.17.dist-info/licenses/LICENSE +2 -0
- d5m_ai/labextension/static/1105.da3b3cc0801d5b7daf78.js +0 -1
- d5m_ai/labextension/static/1113.a6206c1ce30c44e74d65.js +0 -1
- d5m_ai/labextension/static/1424.7330f97f81a7cbac0293.js +0 -1
- d5m_ai/labextension/static/1482.5594d3330698044d51b6.js +0 -1
- d5m_ai/labextension/static/1681.b7dbfbfc8e8bb443b01d.js +0 -1
- d5m_ai/labextension/static/1741.0e30660c73a4aa6109e0.js +0 -1
- d5m_ai/labextension/static/1980.a1d8fd213c03964ca2dd.js +0 -1
- d5m_ai/labextension/static/2313.e3756d51e535b61cbc41.js +0 -1
- d5m_ai/labextension/static/2331.f0e4d66886493b7ff0f6.js +0 -48
- d5m_ai/labextension/static/239.17dc9f15aff0e2c966f0.js +0 -1
- d5m_ai/labextension/static/2443.590c85be4982d61f9378.js +0 -1
- d5m_ai/labextension/static/2490.742d719657af69afad3e.js +0 -1
- d5m_ai/labextension/static/2636.c45f9685b0508a44882a.js +0 -1
- d5m_ai/labextension/static/2726.e9c471b4ad7fed0d085b.js +0 -1
- d5m_ai/labextension/static/2783.e11cc76ea288d3c135d0.js +0 -1
- d5m_ai/labextension/static/2951.ef10b72fe6b301f68146.js +0 -1
- d5m_ai/labextension/static/3033.98d8aa6a2f13a942b945.js +0 -1
- d5m_ai/labextension/static/3131.5b8a2d5bc188f95b8229.js +0 -1
- d5m_ai/labextension/static/3340.6609b3985073e002c83d.js +0 -2
- d5m_ai/labextension/static/4175.550a71c6766138e5a6ee.js +0 -1
- d5m_ai/labextension/static/4497.5c0323113f039c9558b6.js +0 -1
- d5m_ai/labextension/static/4664.73a65498a9c43ddcf17e.js +0 -1
- d5m_ai/labextension/static/5112.5f1cd8ee9c2297a251f7.js +0 -1
- d5m_ai/labextension/static/5264.37c842e2843ca2bf4298.js +0 -1
- d5m_ai/labextension/static/539.7b5e45294371c047b74e.js +0 -1
- d5m_ai/labextension/static/5455.c1d01203e7e387437b83.js +0 -1
- d5m_ai/labextension/static/559.a4c3a83a74025324f179.js +0 -1
- d5m_ai/labextension/static/6131.0393c6487450018afcae.js +0 -1
- d5m_ai/labextension/static/6633.6708bbc3c085110097da.js +0 -1
- d5m_ai/labextension/static/6820.b3aba76c0f17b2560849.js +0 -1
- d5m_ai/labextension/static/7556.c28352f72f5c6ab4e9e9.js +0 -1
- d5m_ai/labextension/static/7665.9b5dec1a38d313e36c39.js +0 -1
- d5m_ai/labextension/static/8263.47d184d4682b2f6564c4.js +0 -1
- d5m_ai/labextension/static/9319.3ef10e9c762263804ff8.js +0 -1
- d5m_ai/labextension/static/9517.b2f4fa51abd8b9d6687e.js +0 -1
- d5m_ai/labextension/static/9599.456325f0d51fefd16a42.js +0 -1
- d5m_ai/labextension/static/9977.17f268665ed85e3ccc62.js +0 -1
- d5m_ai/labextension/static/remoteEntry.8d3c0f526b02c6ff8c42.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/1105.da3b3cc0801d5b7daf78.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/1113.a6206c1ce30c44e74d65.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/1424.7330f97f81a7cbac0293.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/1482.5594d3330698044d51b6.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/1681.b7dbfbfc8e8bb443b01d.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/1741.0e30660c73a4aa6109e0.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/1980.a1d8fd213c03964ca2dd.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/2313.e3756d51e535b61cbc41.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/2331.f0e4d66886493b7ff0f6.js +0 -48
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/239.17dc9f15aff0e2c966f0.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/2443.590c85be4982d61f9378.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/2490.742d719657af69afad3e.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/2636.c45f9685b0508a44882a.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/2726.e9c471b4ad7fed0d085b.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/2783.e11cc76ea288d3c135d0.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/2951.ef10b72fe6b301f68146.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/3033.98d8aa6a2f13a942b945.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/3131.5b8a2d5bc188f95b8229.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/3340.6609b3985073e002c83d.js +0 -2
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/4175.550a71c6766138e5a6ee.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/4497.5c0323113f039c9558b6.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/4664.73a65498a9c43ddcf17e.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/5112.5f1cd8ee9c2297a251f7.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/5264.37c842e2843ca2bf4298.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/539.7b5e45294371c047b74e.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/5455.c1d01203e7e387437b83.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/559.a4c3a83a74025324f179.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/6131.0393c6487450018afcae.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/6633.6708bbc3c085110097da.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/6820.b3aba76c0f17b2560849.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/7556.c28352f72f5c6ab4e9e9.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/7665.9b5dec1a38d313e36c39.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/8263.47d184d4682b2f6564c4.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/9319.3ef10e9c762263804ff8.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/9517.b2f4fa51abd8b9d6687e.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/9599.456325f0d51fefd16a42.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/9977.17f268665ed85e3ccc62.js +0 -1
- runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/remoteEntry.8d3c0f526b02c6ff8c42.js +0 -1
- runcell-0.1.16a3.dist-info/RECORD +0 -840
- runcell-0.1.16a3.dist-info/licenses/LICENSE +0 -29
- /d5m_ai/labextension/static/{2331.f0e4d66886493b7ff0f6.js.LICENSE.txt → 4712.867600779a30c292ecd7.js.LICENSE.txt} +0 -0
- /d5m_ai/labextension/static/{3340.6609b3985073e002c83d.js.LICENSE.txt → 877.e8b79ec87c1325c45f62.js.LICENSE.txt} +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/etc/jupyter/jupyter_server_config.d/d5m_ai.json +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/etc/jupyter/jupyter_server_config.d/runcell.json +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/install.json +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/schemas/runcell/file-browser-toggle.json +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/schemas/runcell/plugin.json +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1045.a76db59a7c20953976f0.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1055.87aafb19805530488a2c.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/108.d7dbe40ec7e0ae1a68f8.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1104.a2b939bacec5e69efd99.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1171.130d3cc54764cac92856.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1178.3e25fad4a45450e227c9.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1203.5deaeee9e57ffc718f19.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1226.ff48aa5741f77eb739fe.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1273.4c5992b03f129c9e3025.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1285.cf3bab9529c47ac9288d.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1307.d98ceb66a2401e5f4ddd.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1328.38964f7daa84901e866f.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1377.edf5c2163aedef75c6a1.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1391.ab61eb03aed289d9d44c.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1431.a691b4fa7cf229072fc0.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1521.9f3807c4a4dd19a6ab8c.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1524.188ff9d525210d499ff3.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1534.39ba9b2bf5712b697b63.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1540.9eba7e882fd8e00a782a.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1552.5203480dcdda6574ef51.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1555.686745d50bd19fd9d271.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1618.9abd2093263741894755.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1635.84bd383b17e41c9fe103.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1678.57b141401f73a26257c8.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1685.842997eb9757846fe690.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1745.e6bb2c6882da5bf9883a.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1752.8c4ecff560428215fe75.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1797.f8ca14c3ec1c0f51f403.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1897.7cca7a664a9ca9b486ac.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1902.364fa5e977055fe14150.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1915.b55b7d52608421a7fc41.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/1970.dff4fcccbb6cadb04d0c.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/200.f1d30c245c18bbb03312.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2031.155ab0916a863c8787a7.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2031.155ab0916a863c8787a7.js.LICENSE.txt +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/207.f5bd6d1b383a6b01ca69.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2072.a4d04cc98bb118e689a1.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2075.5d6a026d7308b71b70a1.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2111.a3c1f620c0a31e54cb9f.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2152.4db0fcf1f4dccf54b600.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2173.9fddf72b827a6d629bad.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2198.e195afcaabb2e4063da9.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2224.c86b12cf9e2165904033.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2225.8d31eec53891ca7775b7.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2271.69d9ea25d4ddd02710f6.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2349.e7c5b5e507c7a81d1427.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2353.7b6b36b3164a86427209.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2382.9e67478cc4b31aede22c.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2385.cd85a7dd4acb5be739da.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/248.693fd98760ec6ce42219.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2555.7168a2616a6071addb97.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2576.56496d8cba50d3d69eb5.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2639.eb2553a7be688366d9f3.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2654.2453f6b5846a4719dba4.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/267.829ce2ca38940b778c91.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/270.9409a2f5631a31c79cd9.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2768.9e5b7c6ed84b2486f835.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2789.12830cdb21c09111668d.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2824.d02df014c07b7288e78c.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2824.d02df014c07b7288e78c.js.LICENSE.txt +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2838.2e689afee276e5e21c57.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2843.65aeb8be3744d20229b8.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2897.7bc91ca284ea12b863e8.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2905.0d34ef7a481f9a968f05.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2922.8cdf00bb7d09c5419d78.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2922.8cdf00bb7d09c5419d78.js.LICENSE.txt +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/2971.60c60668c130ed05d493.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/299.8600f54b39a11eeff427.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3027.2226147340da305061f3.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3028.953cd3b9865063969086.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3041.4059f9ba4f9eba56672a.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3045.a457aa1d023ba5f799c2.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3092.fad665f8cdb1da61b55b.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3142.7df01050c977ede2b13b.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3157.bcb9f8ff06fa4af27b6a.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3214.a986c1896fa590b2da27.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3239.4562297487744a7cc1d4.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/325.bd1e5cab3b6e068b25bc.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3254.9e1aa1fee12644fea2d9.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3267.ff884bf47b52ac634854.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3291.156ad2d1520857115575.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3311.dc97fd544e85acac8477.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3319.687f07bb2f993c1dc44b.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3325.c100f45711f539a7f262.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3386.4c8eebdb8d318c2913ce.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3386.4c8eebdb8d318c2913ce.js.LICENSE.txt +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3407.cbbf99a2ff4805726f3e.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3424.92b1a820ff2aa6156c36.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3426.27afd4c41cfad8e1a63d.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3436.ea677bb3e7f3ce87d7fd.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3449.5d8818fac081c207ce79.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3514.c8a1863df3cfd5390617.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/355.45290b03d6d4be49a58e.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3551.87e6eb270a212d08b1b5.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/359.1463d2cf955623ecceae.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3619.3dfa7c4eaa067a407275.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3645.5ea37d9f483120f69f4e.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3659.056fa5e4e39b72bc358b.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3688.7bd1ba5006b22ed5616e.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3722.688cdfd335ffeac13492.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3724.06a5a1b542ff978df3b4.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/376.f9c52e5bbd650da7b67f.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3794.c0236d400b2129ac42a9.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/3930.b142768bad429b3ebb04.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4003.95678dd199222938923b.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4017.d35a7557e5338be92770.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4050.00a6bfc9f23c6ef07199.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4087.ea430b62171512019400.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/410.fd643a255d72a83c1be6.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4127.0e783d9a497298e9fe18.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/415.0a1fdc1d9f76c0431d42.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4238.bd4642c4f9256441aea5.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4246.d8aedd2b15d1a95f1288.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4272.c92c9a0d98749863c853.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4296.7f1db6691a4ac120a383.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4317.1ba9f3c33b7a1484c5df.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/434.bfe4f51db2eb9644fbe7.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/434.bfe4f51db2eb9644fbe7.js.LICENSE.txt +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4353.6a83dae11a48e9d1b345.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4358.53a6106c5c93c3fda026.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4364.e87c307df69aa50a5b2a.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4365.b2b4496cc260301256b9.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4371.647bc44642d1ad0e99e4.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4390.1cafd3d4635b09e0c945.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4412.23a8cb5fb7377d3c81ab.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4412.23a8cb5fb7377d3c81ab.js.LICENSE.txt +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4425.a34c4f44daa5996eeec4.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4447.3ad32bafee045d2c0bab.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4477.d9e871faf650e6ad238a.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/45.560ee8b955f55e6a7471.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4503.794c4dd58c6bf2e6a66d.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4584.c610d4a425b036b86759.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4613.05840d3fc617590fff51.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4630.a78300f70b9af36897eb.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4682.1b69aa450cedd96227c9.js +0 -0
- /runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/2331.f0e4d66886493b7ff0f6.js.LICENSE.txt → /runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4712.867600779a30c292ecd7.js.LICENSE.txt +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4713.4e4e598399fd6de85f5d.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4725.5447994a36dfeda58b9f.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4755.74d46f71eb4d23e4bca2.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4838.688e36ea43737e72dbdc.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/485.d27de91b0124447cf435.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4872.1404f5d25464532c27c2.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4886.443bcf6af7b83f72b4b5.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4913.d226f3c41ebb36489ce3.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/492.a7f5e972b35c8c877bf1.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/4928.5c8ad7f80ba081dfdbba.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5146.45d9b015343e5a7cace1.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5183.8c5527ebc7a807107471.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/524.927c6a42244b04ee834f.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5253.2cea0b927b50c952fe98.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5331.c971f98ac4fd9e9751a4.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5391.375b4314cb4b851f0915.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5391.375b4314cb4b851f0915.js.LICENSE.txt +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5408.07fc40e33d3fd1a3f7b6.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5431.528d309549815d363599.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5447.1267bc4aa4938bd0f08d.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5466.e1da4e862af22e314f82.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5473.7ac9ad0a3e047bfeceb0.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5509.c8c8ddebaabc3579daba.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5590.fd188e01caa78afb3ec4.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5620.cd3cd230d09209b34fb5.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5636.ca803ffcf0d43c2402c9.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5672.156ad2d1520857115575.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5695.0da6228c48571d9386f3.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5715.66ad4e7324b22a5e27fb.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5741.edd8fd814866705aad98.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5748.53eb48f5623074a948ba.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5765.e957d823cdfe2746a356.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5788.b9c62804c0698b91ca8a.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5882.b40b5d690d3f6f67f09a.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5885.8cd4d3e3008fdb31ce2a.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5900.6dca06924caef83a5b52.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5906.870c0d7bb4e022aaca9d.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5908.e81f83f7a9906d9d7542.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5973.4e08bf1ee13205326051.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5973.4e08bf1ee13205326051.js.LICENSE.txt +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/5977.d264e9baaebc417e35c0.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6007.987a9850d5891b1908ae.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6030.dd5fd07844168dbaa6f6.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6030.dd5fd07844168dbaa6f6.js.LICENSE.txt +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6079.5c80b9de6aabb0be08d2.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6084.bf8d6b1da6c4cad209bb.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6094.f96654ca0070f8f391b1.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/611.5ae7fb260af8629f1528.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6176.bd441d4d6fe942889bf3.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6221.457e64a4f06be421eaa4.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6266.4f2bcc95c2d61cdaacbc.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/627.84c4aa26f69662abb72d.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6293.823b9bfe50fdfd62dd42.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6299.b14c1d46ba4ad9799f63.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6306.8d22227d6aa1dfc32da5.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6320.b844d6686eebcb036643.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6322.997db39a5d4b63e72b21.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6336.92de365c5fb0f261f799.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6354.0025efd7872b7d32b46b.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6354.0025efd7872b7d32b46b.js.LICENSE.txt +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6366.5049626e7d5bb38a8574.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/640.ebfad36f1dde45e9cd05.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/642.817a48a77e1c16e6e65d.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6520.ff2a9ec2e50dd45868ac.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6573.7899a873adb98c3c0190.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6648.b7ed5e9a732275dc85ac.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6676.1a71900a6131dbe02aad.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6678.fe58c12ce33b0f5706f5.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6772.01fcccfcabd525210aee.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6774.1e0a751d7079179f8f73.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6795.1c49fa950817836e3f1e.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6803.eccda2da06d869b0acda.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6822.5bf91484ea172f864747.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6853.48004207e7c689ec55b4.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6880.c3cfce260b3d25d9ef5e.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6906.1f65b08daf64af8d1f27.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/6982.d9f1a29fe7834b53c855.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7005.9f8920f4e58652fe3ef9.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/711.5c259d7417620cf8eef8.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7131.cab088ddb371234f1fd6.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7161.f03be5c4590ae6db98c1.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7166.6e64d20ff3d06bb0726a.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7181.1d3f5611193e734beaf4.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/72.081fe34e2c76320135d0.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7232.5969981a73dac6835b93.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7273.9e6765278092fd30a14f.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7280.5862e5cf2b594fd45f82.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7336.b8136533f61cd1b71adc.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7359.7bc0ef939742600dba39.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7399.6fa42c5d34d3659f9f68.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7400.ea48afe8766bd82b3741.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7441.bce20fb0ea3d8638bc30.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7488.f63b5ad13eb23dbc3915.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/751.48ddf412afdd781e868f.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7572.937d1e5ce68a384389e9.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7652.cf086dfcd950ff2c4554.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7672.61e8e5299259407f1ee1.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7705.962a56002e394e3755aa.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7719.9dbadc40622a97c6fa90.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7771.efa5c4cf41907b4c8cfc.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7772.094d82c7ec81259764f4.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7772.094d82c7ec81259764f4.js.LICENSE.txt +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/779.c50f60eeca2b40bf96db.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7792.e67368a87fa703a97f25.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7812.1b53bb1f6cce555d0b70.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7890.c8c8ddebaabc3579daba.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7954.b02433d4bd38b648ec0e.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7959.75734676fe5e861ad899.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7967.ccc236f921abba961fcb.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/7981.c14b5974541e98a1b340.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8053.ebcecafa176e4cb5c439.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8053.ebcecafa176e4cb5c439.js.LICENSE.txt +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8056.06f4e4d87d7ccc1e4662.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8066.ad6692e614937d4dc480.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8122.f671cfb05d97b5e220fa.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8146.fc69595fa9fb4dc989ec.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8151.e18e503723ffa9d576f7.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8177.d8e81718e82279286385.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8179.33453f3165561d33347d.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8181.0f15741bcd037cfaf528.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8249.01410b92489460697717.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8295.39003c08c2539bf22593.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8304.075c39345f3b817edfb1.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8321.3ba6a40e5ed74b977afc.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8343.31e93467f566af5fb10e.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8354.3044135d1229985d61c6.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8354.3044135d1229985d61c6.js.LICENSE.txt +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8366.55b8257f92b23e6f49ec.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8369.80293e64ec102044c767.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/84.3575d43472885d2b7714.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8400.7d8ed1bca69c56f67486.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8404.1c1c675dc23d7d9d80de.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8437.795ac38d87895b50d98e.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8480.6698a41d2cf895aafe0f.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8482.85d03122dfec6d4f9307.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/851.9faa523fb28cedcd6b88.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8522.dd261948e958bcf4ae64.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8524.4c79a5ea5e22a1389a1f.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8649.b722755e4bccf4a39cd5.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8675.ffadeba0edbfd8d2285d.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8748.bb9c4496cf4ab7577e74.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8751.e80b9f51b9cdb544d16b.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8768.4aba875e6cfb350edfa7.js +0 -0
- /runcell-0.1.16a3.data/data/share/jupyter/labextensions/runcell/static/3340.6609b3985073e002c83d.js.LICENSE.txt → /runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/877.e8b79ec87c1325c45f62.js.LICENSE.txt +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/880.0bcd5ab06196cb9533c4.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8824.4b08a890046be218bb35.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8829.c51ecb2bf77a1ca2a962.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8856.6e271445d6d3837302ec.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8860.c824d17d8869a6dd6207.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8887.6480b4ee0c5fa187c2d7.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8929.3329d360058c1764e201.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/8957.4f33250ba35099dbe048.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9014.0e67032c3d7119ce3370.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/904.60333ec0aebf2d092197.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9040.9376593b8e7caa5ed6a0.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9055.7b9ab3136d6a82b298a4.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9071.d8aea526bf53118639a9.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9113.f9e25015d31ee397e490.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9115.c30adf6f374eb1bd3b93.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9125.26a8a929493c19af9f50.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9165.8b0907227f85ba27306b.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9180.7d6cded0c9f36ac75093.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9184.33de87e8d509010a9bdf.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9193.3666b71cf376fdec58b4.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9205.a2f5f2a2c0b69582717e.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9251.822a5aa9397713d54ea2.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9255.ad693b359f0d12767fe1.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9262.bebc0ed75d7f86d722f2.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9277.f3623a34b457ca052d80.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9285.2d3c4984387ebca606d4.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9289.9fb56f7beb83d721e654.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/934.3ce5b696b827323e706e.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9402.b8868b6860051723bf48.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9412.fe8cf617636a0df90247.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9456.2f96fda82d4be6b0448e.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9494.b4ae8d6a63ec84cc4ec3.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9513.0db046603be52099c3ec.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9514.458d7630c50b4b658200.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9559.07e6563cb0b401ff88a6.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9576.b2d6c2e9831fda63f41f.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9607.a4f836281d0337527f6e.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9621.55ea68ee13d702908a10.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9640.c489050f3a1342328779.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9650.b4d4a115ac2fca1dfbe8.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9704.f4c6d15183531d37b825.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9734.63cf17414a5103d290bb.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9754.2f617d267f5167be63ed.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9885.f84ed1b0565de3b61e99.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9912.b6643895a628f9ea506c.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9926.6e52dbb62a19476aae87.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9939.eab64dfd409dd1df1844.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9986.e953beace913bfa7ba74.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/9997.1716894eb29a02d76575.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/style.js +0 -0
- {runcell-0.1.16a3.data → runcell-0.1.17.data}/data/share/jupyter/labextensions/runcell/static/third-party-licenses.json +0 -0
- {runcell-0.1.16a3.dist-info → runcell-0.1.17.dist-info}/WHEEL +0 -0
- {runcell-0.1.16a3.dist-info → runcell-0.1.17.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 877.e8b79ec87c1325c45f62.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkruncell=self.webpackChunkruncell||[]).push([[877],{50877:(t,e,r)=>{r.r(e),r.d(e,{$:()=>ql,A:()=>pa,B:()=>ar,C:()=>ir,D:()=>Re,E:()=>ga,F:()=>Gp,G:()=>on,H:()=>Ui,I:()=>$p,J:()=>Yu,K:()=>Uh,L:()=>De,M:()=>Zl,N:()=>Yl,O:()=>zl,P:()=>jl,Q:()=>Il,R:()=>Ul,S:()=>Hl,T:()=>Gl,U:()=>Xe,V:()=>Wl,W:()=>Rl,X:()=>Nl,Y:()=>Pl,Z:()=>Xl,_:()=>qe,a:()=>na,a$:()=>ls,a0:()=>Vl,a1:()=>Ii,a2:()=>Nn,a3:()=>Pn,a4:()=>Up,a5:()=>dp,a6:()=>Bn,a7:()=>qn,a8:()=>Fn,a9:()=>rh,aA:()=>Wg,aB:()=>ax,aC:()=>Sx,aD:()=>mx,aE:()=>gx,aF:()=>If,aG:()=>Kl,aH:()=>fn,aI:()=>wf,aJ:()=>Cf,aK:()=>mf,aL:()=>L,aM:()=>ft,aN:()=>ie,aO:()=>Fe,aP:()=>oe,aQ:()=>S,aR:()=>$t,aS:()=>rt,aT:()=>_e,aU:()=>Cs,aV:()=>Ss,aW:()=>vs,aX:()=>Ms,aY:()=>is,aZ:()=>ap,a_:()=>np,aa:()=>hh,ab:()=>Ap,ac:()=>Yn,ad:()=>or,ae:()=>lr,af:()=>hr,ag:()=>Zn,ah:()=>ly,ai:()=>nx,aj:()=>sx,ak:()=>Ju,al:()=>Mn,am:()=>qf,an:()=>tp,ao:()=>zf,ap:()=>Zp,aq:()=>Mp,ar:()=>Ae,as:()=>Be,at:()=>Ce,au:()=>O,av:()=>Jt,aw:()=>Ux,ax:()=>ox,ay:()=>px,az:()=>hy,b:()=>ia,b0:()=>os,b1:()=>zo,b2:()=>qo,b3:()=>Ro,b4:()=>ws,b5:()=>ks,b6:()=>Pe,b7:()=>ve,b8:()=>be,b9:()=>Se,bA:()=>$e,bB:()=>Mt,bC:()=>Fk,ba:()=>ee,bb:()=>xt,bc:()=>Oe,bd:()=>J,be:()=>s,bf:()=>et,bg:()=>Tt,bh:()=>Ft,bi:()=>Gt,bj:()=>dt,bk:()=>tt,bl:()=>vt,bm:()=>b,bn:()=>y,bo:()=>Xt,bp:()=>ne,bq:()=>x,br:()=>pe,bs:()=>fe,bt:()=>kt,bu:()=>ue,bv:()=>de,bw:()=>me,bx:()=>st,by:()=>yt,bz:()=>Dt,c:()=>da,d:()=>Po,e:()=>Hn,f:()=>Bi,g:()=>oa,h:()=>Pp,i:()=>_n,j:()=>cp,k:()=>Rn,l:()=>We,m:()=>Np,n:()=>gn,o:()=>ua,p:()=>Kx,q:()=>sa,r:()=>Zx,s:()=>aa,t:()=>la,u:()=>Vp,v:()=>Uu,w:()=>Dp,x:()=>rx,y:()=>Kp,z:()=>ra});var i=r(75662);t=r.hmd(t);var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,a="object"==typeof self&&self&&self.Object===Object&&self,o=n||a||Function("return this")(),s=o.Symbol,l=Object.prototype,h=l.hasOwnProperty,c=l.toString,d=s?s.toStringTag:void 0,u=Object.prototype.toString,p="[object Null]",f="[object Undefined]",g=s?s.toStringTag:void 0;function y(t){return null==t?void 0===t?f:p:g&&g in Object(t)?function(t){var e=h.call(t,d),r=t[d];try{t[d]=void 0;var i=!0}catch{}var n=c.call(t);return i&&(e?t[d]=r:delete t[d]),n}(t):function(t){return u.call(t)}(t)}function m(t,e){return function(r){return t(e(r))}}var x=m(Object.getPrototypeOf,Object);function b(t){return null!=t&&"object"==typeof t}var C=Function.prototype,_=Object.prototype,k=C.toString,w=_.hasOwnProperty,v=k.call(Object);function S(t,e){return t===e||t!=t&&e!=e}function T(t,e){for(var r=t.length;r--;)if(S(t[r][0],e))return r;return-1}var B=Array.prototype.splice;function M(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function L(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}M.prototype.clear=function(){this.__data__=[],this.size=0},M.prototype.delete=function(t){var e=this.__data__,r=T(e,t);return!(r<0||(r==e.length-1?e.pop():B.call(e,r,1),--this.size,0))},M.prototype.get=function(t){var e=this.__data__,r=T(e,t);return r<0?void 0:e[r][1]},M.prototype.has=function(t){return T(this.__data__,t)>-1},M.prototype.set=function(t,e){var r=this.__data__,i=T(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this};var A="[object AsyncFunction]",F="[object Function]",$="[object GeneratorFunction]",E="[object Proxy]";function O(t){if(!L(t))return!1;var e=y(t);return e==F||e==$||e==A||e==E}var D,I=o["__core-js_shared__"],N=(D=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",P=Function.prototype.toString;function z(t){if(null!=t){try{return P.call(t)}catch{}try{return t+""}catch{}}return""}var q=/^\[object .+?Constructor\]$/,R=Function.prototype,j=Object.prototype,W=R.toString,H=j.hasOwnProperty,Y=RegExp("^"+W.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function U(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!L(t)||function(t){return!!N&&N in t}(t))&&(O(t)?Y:q).test(z(t))}(r)?r:void 0}var G=U(o,"Map"),V=U(Object,"create"),X=Object.prototype.hasOwnProperty,Z=Object.prototype.hasOwnProperty;function K(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function Q(t,e){var r=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map}function J(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}function tt(t){var e=this.__data__=new M(t);this.size=e.size}K.prototype.clear=function(){this.__data__=V?V(null):{},this.size=0},K.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},K.prototype.get=function(t){var e=this.__data__;if(V){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return X.call(e,t)?e[t]:void 0},K.prototype.has=function(t){var e=this.__data__;return V?void 0!==e[t]:Z.call(e,t)},K.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=V&&void 0===e?"__lodash_hash_undefined__":e,this},J.prototype.clear=function(){this.size=0,this.__data__={hash:new K,map:new(G||M),string:new K}},J.prototype.delete=function(t){var e=Q(this,t).delete(t);return this.size-=e?1:0,e},J.prototype.get=function(t){return Q(this,t).get(t)},J.prototype.has=function(t){return Q(this,t).has(t)},J.prototype.set=function(t,e){var r=Q(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this},tt.prototype.clear=function(){this.__data__=new M,this.size=0},tt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},tt.prototype.get=function(t){return this.__data__.get(t)},tt.prototype.has=function(t){return this.__data__.has(t)},tt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof M){var i=r.__data__;if(!G||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new J(i)}return r.set(t,e),this.size=r.size,this};var et=o.Uint8Array,rt=Array.isArray;function it(t){return b(t)&&"[object Arguments]"==y(t)}var nt=Object.prototype,at=nt.hasOwnProperty,ot=nt.propertyIsEnumerable,st=it(function(){return arguments}())?it:function(t){return b(t)&&at.call(t,"callee")&&!ot.call(t,"callee")},lt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ht=lt&&t&&!t.nodeType&&t,ct=ht&&ht.exports===lt?o.Buffer:void 0,dt=(ct?ct.isBuffer:void 0)||function(){return!1},ut=9007199254740991,pt=/^(?:0|[1-9]\d*)$/;function ft(t,e){var r=typeof t;return!!(e=e??ut)&&("number"==r||"symbol"!=r&&pt.test(t))&&t>-1&&t%1==0&&t<e}var gt=9007199254740991;function yt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=gt}var mt={};function xt(t){return function(e){return t(e)}}mt["[object Float32Array]"]=mt["[object Float64Array]"]=mt["[object Int8Array]"]=mt["[object Int16Array]"]=mt["[object Int32Array]"]=mt["[object Uint8Array]"]=mt["[object Uint8ClampedArray]"]=mt["[object Uint16Array]"]=mt["[object Uint32Array]"]=!0,mt["[object Arguments]"]=mt["[object Array]"]=mt["[object ArrayBuffer]"]=mt["[object Boolean]"]=mt["[object DataView]"]=mt["[object Date]"]=mt["[object Error]"]=mt["[object Function]"]=mt["[object Map]"]=mt["[object Number]"]=mt["[object Object]"]=mt["[object RegExp]"]=mt["[object Set]"]=mt["[object String]"]=mt["[object WeakMap]"]=!1;var bt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ct=bt&&t&&!t.nodeType&&t,_t=Ct&&Ct.exports===bt&&n.process,kt=function(){try{return Ct&&Ct.require&&Ct.require("util").types||_t&&_t.binding&&_t.binding("util")}catch{}}(),wt=kt&&kt.isTypedArray,vt=wt?xt(wt):function(t){return b(t)&&yt(t.length)&&!!mt[y(t)]},St=Object.prototype.hasOwnProperty;function Tt(t,e){var r=rt(t),i=!r&&st(t),n=!r&&!i&&dt(t),a=!r&&!i&&!n&&vt(t),o=r||i||n||a,s=o?function(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}(t.length,String):[],l=s.length;for(var h in t)(e||St.call(t,h))&&(!o||!("length"==h||n&&("offset"==h||"parent"==h)||a&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||ft(h,l)))&&s.push(h);return s}var Bt=Object.prototype;function Mt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Bt)}var Lt=m(Object.keys,Object),At=Object.prototype.hasOwnProperty;function Ft(t){if(!Mt(t))return Lt(t);var e=[];for(var r in Object(t))At.call(t,r)&&"constructor"!=r&&e.push(r);return e}function $t(t){return null!=t&&yt(t.length)&&!O(t)}var Et=U(o,"DataView"),Ot=U(o,"Promise"),Dt=U(o,"Set"),It=U(o,"WeakMap"),Nt="[object Map]",Pt="[object Promise]",zt="[object Set]",qt="[object WeakMap]",Rt="[object DataView]",jt=z(Et),Wt=z(G),Ht=z(Ot),Yt=z(Dt),Ut=z(It),Gt=y;(Et&&Gt(new Et(new ArrayBuffer(1)))!=Rt||G&&Gt(new G)!=Nt||Ot&&Gt(Ot.resolve())!=Pt||Dt&&Gt(new Dt)!=zt||It&&Gt(new It)!=qt)&&(Gt=function(t){var e=y(t),r="[object Object]"==e?t.constructor:void 0,i=r?z(r):"";if(i)switch(i){case jt:return Rt;case Wt:return Nt;case Ht:return Pt;case Yt:return zt;case Ut:return qt}return e});var Vt="Expected a function";function Xt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Vt);var r=function(){var i=arguments,n=e?e.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var o=t.apply(this,i);return r.cache=a.set(n,o)||a,o};return r.cache=new(Xt.Cache||J),r}Xt.Cache=J;var Zt="[object Map]",Kt="[object Set]",Qt=Object.prototype.hasOwnProperty;function Jt(t){if(null==t)return!0;if($t(t)&&(rt(t)||"string"==typeof t||"function"==typeof t.splice||dt(t)||vt(t)||st(t)))return!t.length;var e=Gt(t);if(e==Zt||e==Kt)return!t.size;if(Mt(t))return!Ft(t).length;for(var r in t)if(Qt.call(t,r))return!1;return!0}var te=function(){try{var t=U(Object,"defineProperty");return t({},"",{}),t}catch{}}();function ee(t,e,r){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var re=Object.prototype.hasOwnProperty;function ie(t,e,r){var i=t[e];(!re.call(t,e)||!S(i,r)||void 0===r&&!(e in t))&&ee(t,e,r)}function ne(t,e,r,i){var n=!r;r||(r={});for(var a=-1,o=e.length;++a<o;){var s=e[a],l=void 0;void 0===l&&(l=t[s]),n?ee(r,s,l):ie(r,s,l)}return r}var ae=Object.prototype.hasOwnProperty;function oe(t){return $t(t)?Tt(t,!0):function(t){if(!L(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=Mt(t),r=[];for(var i in t)"constructor"==i&&(e||!ae.call(t,i))||r.push(i);return r}(t)}var se="object"==typeof exports&&exports&&!exports.nodeType&&exports,le=se&&t&&!t.nodeType&&t,he=le&&le.exports===se?o.Buffer:void 0,ce=he?he.allocUnsafe:void 0;function de(t,e){if(e)return t.slice();var r=t.length,i=ce?ce(r):new t.constructor(r);return t.copy(i),i}function ue(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r<i;)e[r]=t[r];return e}function pe(t){var e=new t.constructor(t.byteLength);return new et(e).set(new et(t)),e}function fe(t,e){var r=e?pe(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var ge=Object.create,ye=function(){function t(){}return function(e){if(!L(e))return{};if(ge)return ge(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function me(t){return"function"!=typeof t.constructor||Mt(t)?{}:ye(x(t))}var xe=Math.max;function be(t,e,r){return e=xe(void 0===e?t.length-1:e,0),function(){for(var i=arguments,n=-1,a=xe(i.length-e,0),o=Array(a);++n<a;)o[n]=i[e+n];n=-1;for(var s=Array(e+1);++n<e;)s[n]=i[n];return s[e]=r(o),function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(t,this,s)}}function Ce(t){return function(){return t}}function _e(t){return t}var ke=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Ce(e),writable:!0})}:_e,we=Date.now,ve=function(t){var e=0,r=0;return function(){var i=we(),n=16-(i-r);if(r=i,n>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ke),Se=function(t,e,r){for(var i=-1,n=Object(t),a=r(t),o=a.length;o--;){var s=a[++i];if(!1===e(n[s],s,n))break}return t};function Te(t,e,r){(void 0!==r&&!S(t[e],r)||void 0===r&&!(e in t))&&ee(t,e,r)}function Be(t){return b(t)&&$t(t)}function Me(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Le(t,e,r,i,n){t!==e&&Se(e,function(a,o){if(n||(n=new tt),L(a))!function(t,e,r,i,n,a,o){var s=Me(t,r),l=Me(e,r),h=o.get(l);if(h)Te(t,r,h);else{var c=a?a(s,l,r+"",t,e,o):void 0,d=void 0===c;if(d){var u=rt(l),p=!u&&dt(l),f=!u&&!p&&vt(l);c=l,u||p||f?rt(s)?c=s:Be(s)?c=ue(s):p?(d=!1,c=de(l,!0)):f?(d=!1,c=fe(l,!0)):c=[]:function(t){if(!b(t)||"[object Object]"!=y(t))return!1;var e=x(t);if(null===e)return!0;var r=w.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&k.call(r)==v}(l)||st(l)?(c=s,st(s)?c=function(t){return ne(t,oe(t))}(s):(!L(s)||O(s))&&(c=me(l))):d=!1}d&&(o.set(l,c),n(c,l,i,a,o),o.delete(l)),Te(t,r,c)}}(t,e,o,r,Le,i,n);else{var s=i?i(Me(t,o),a,o+"",t,e,n):void 0;void 0===s&&(s=a),Te(t,o,s)}},oe)}function Ae(t,e){return ve(be(t,e,_e),t+"")}function Fe(t,e,r){if(!L(r))return!1;var i=typeof e;return!!("number"==i?$t(r)&&ft(e,r.length):"string"==i&&e in r)&&S(r[e],t)}function $e(t){return Ae(function(e,r){var i=-1,n=r.length,a=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(n--,a):void 0,o&&Fe(r[0],r[1],o)&&(a=n<3?void 0:a,n=1),e=Object(e);++i<n;){var s=r[i];s&&t(e,s,i,a)}return e})}var Ee,Oe=$e(function(t,e,r){Le(t,e,r)}),De={name:"mermaid",version:"11.12.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},Ie={exports:{}},Ne=(Ee||(Ee=1,function(t){t.exports=function(){var t=6e4,e=36e5,r="millisecond",i="second",n="minute",a="hour",o="day",s="week",l="month",h="quarter",c="year",d="date",u="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},y=function(t,e,r){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(r)+t},m={s:y,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),i=Math.floor(r/60),n=r%60;return(e<=0?"+":"-")+y(i,2,"0")+":"+y(n,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var i=12*(r.year()-e.year())+(r.month()-e.month()),n=e.clone().add(i,l),a=r-n<0,o=e.clone().add(i+(a?-1:1),l);return+(-(i+(r-n)/(a?n-o:o-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:c,w:s,d:o,D:d,h:a,m:n,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},x="en",b={};b[x]=g;var C="$isDayjsObject",_=function(t){return t instanceof S||!(!t||!t[C])},k=function t(e,r,i){var n;if(!e)return x;if("string"==typeof e){var a=e.toLowerCase();b[a]&&(n=a),r&&(b[a]=r,n=a);var o=e.split("-");if(!n&&o.length>1)return t(o[0])}else{var s=e.name;b[s]=e,n=s}return!i&&n&&(x=n),n||!i&&x},w=function(t,e){if(_(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new S(r)},v=m;v.l=k,v.i=_,v.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function g(t){this.$L=k(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[C]=!0}var y=g.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(v.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(p);if(i){var n=i[2]-1||0,a=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)):new Date(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)}}return new Date(e)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return v},y.isValid=function(){return this.$d.toString()!==u},y.isSame=function(t,e){var r=w(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return w(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<w(t)},y.$g=function(t,e,r){return v.u(t)?this[e]:this.set(r,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var r=this,h=!!v.u(e)||e,u=v.p(t),p=function(t,e){var i=v.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return h?i:i.endOf(o)},f=function(t,e){return v.w(r.toDate()[t].apply(r.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},g=this.$W,y=this.$M,m=this.$D,x="set"+(this.$u?"UTC":"");switch(u){case c:return h?p(1,0):p(31,11);case l:return h?p(1,y):p(0,y+1);case s:var b=this.$locale().weekStart||0,C=(g<b?g+7:g)-b;return p(h?m-C:m+(6-C),y);case o:case d:return f(x+"Hours",0);case a:return f(x+"Minutes",1);case n:return f(x+"Seconds",2);case i:return f(x+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var s,h=v.p(t),u="set"+(this.$u?"UTC":""),p=(s={},s[o]=u+"Date",s[d]=u+"Date",s[l]=u+"Month",s[c]=u+"FullYear",s[a]=u+"Hours",s[n]=u+"Minutes",s[i]=u+"Seconds",s[r]=u+"Milliseconds",s)[h],f=h===o?this.$D+(e-this.$W):e;if(h===l||h===c){var g=this.clone().set(d,1);g.$d[p](f),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[v.p(t)]()},y.add=function(r,h){var d,u=this;r=Number(r);var p=v.p(h),f=function(t){var e=w(u);return v.w(e.date(e.date()+Math.round(t*r)),u)};if(p===l)return this.set(l,this.$M+r);if(p===c)return this.set(c,this.$y+r);if(p===o)return f(1);if(p===s)return f(7);var g=(d={},d[n]=t,d[a]=e,d[i]=1e3,d)[p]||1,y=this.$d.getTime()+r*g;return v.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var i=t||"YYYY-MM-DDTHH:mm:ssZ",n=v.z(this),a=this.$H,o=this.$m,s=this.$M,l=r.weekdays,h=r.months,c=r.meridiem,d=function(t,r,n,a){return t&&(t[r]||t(e,i))||n[r].slice(0,a)},p=function(t){return v.s(a%12||12,t,"0")},g=c||function(t,e,r){var i=t<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(f,function(t,i){return i||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return v.s(e.$y,4,"0");case"M":return s+1;case"MM":return v.s(s+1,2,"0");case"MMM":return d(r.monthsShort,s,h,3);case"MMMM":return d(h,s);case"D":return e.$D;case"DD":return v.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return d(r.weekdaysMin,e.$W,l,2);case"ddd":return d(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(a);case"HH":return v.s(a,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return v.s(o,2,"0");case"s":return String(e.$s);case"ss":return v.s(e.$s,2,"0");case"SSS":return v.s(e.$ms,3,"0");case"Z":return n}return null}(t)||n.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,d,u){var p,f=this,g=v.p(d),y=w(r),m=(y.utcOffset()-this.utcOffset())*t,x=this-y,b=function(){return v.m(f,y)};switch(g){case c:p=b()/12;break;case l:p=b();break;case h:p=b()/3;break;case s:p=(x-m)/6048e5;break;case o:p=(x-m)/864e5;break;case a:p=x/e;break;case n:p=x/t;break;case i:p=x/1e3;break;default:p=x}return u?p:v.a(p)},y.daysInMonth=function(){return this.endOf(l).$D},y.$locale=function(){return b[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),i=k(t,e,!0);return i&&(r.$L=i),r},y.clone=function(){return v.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),T=S.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",n],["$H",a],["$W",o],["$M",l],["$y",c],["$D",d]].forEach(function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),w.extend=function(t,e){return t.$i||(t(e,S,w),t.$i=!0),w},w.locale=k,w.isDayjs=_,w.unix=function(t){return w(1e3*t)},w.en=b[x],w.Ls=b,w.p={},w}()}(Ie)),Ie.exports);const Pe=(0,i.g)(Ne);var ze=Object.defineProperty,qe=(t,e)=>ze(t,"name",{value:e,configurable:!0}),Re=(t,e)=>{for(var r in e)ze(t,r,{get:e[r],enumerable:!0})},je={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},We={trace:qe((...t)=>{},"trace"),debug:qe((...t)=>{},"debug"),info:qe((...t)=>{},"info"),warn:qe((...t)=>{},"warn"),error:qe((...t)=>{},"error"),fatal:qe((...t)=>{},"fatal")},He=qe(function(t="fatal"){let e=je.fatal;"string"==typeof t?t.toLowerCase()in je&&(e=je[t]):"number"==typeof t&&(e=t),We.trace=()=>{},We.debug=()=>{},We.info=()=>{},We.warn=()=>{},We.error=()=>{},We.fatal=()=>{},e<=je.fatal&&(We.fatal=console.error?console.error.bind(console,Ye("FATAL"),"color: orange"):console.log.bind(console,"[35m",Ye("FATAL"))),e<=je.error&&(We.error=console.error?console.error.bind(console,Ye("ERROR"),"color: orange"):console.log.bind(console,"[31m",Ye("ERROR"))),e<=je.warn&&(We.warn=console.warn?console.warn.bind(console,Ye("WARN"),"color: orange"):console.log.bind(console,"[33m",Ye("WARN"))),e<=je.info&&(We.info=console.info?console.info.bind(console,Ye("INFO"),"color: lightblue"):console.log.bind(console,"[34m",Ye("INFO"))),e<=je.debug&&(We.debug=console.debug?console.debug.bind(console,Ye("DEBUG"),"color: lightgreen"):console.log.bind(console,"[32m",Ye("DEBUG"))),e<=je.trace&&(We.trace=console.debug?console.debug.bind(console,Ye("TRACE"),"color: lightgreen"):console.log.bind(console,"[32m",Ye("TRACE")))},"setLogLevel"),Ye=qe(t=>`%c${Pe().format("ss.SSS")} : ${t} : `,"format");const Ue={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return 2.55*r;t/=360,e/=100;const n=(r/=100)<.5?r*(1+e):r+e-r*e,a=2*r-n;switch(i){case"r":return 255*Ue.hue2rgb(a,n,t+1/3);case"g":return 255*Ue.hue2rgb(a,n,t);case"b":return 255*Ue.hue2rgb(a,n,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255,e/=255,r/=255;const n=Math.max(t,e,r),a=Math.min(t,e,r),o=(n+a)/2;if("l"===i)return 100*o;if(n===a)return 0;const s=n-a;if("s"===i)return 100*(o>.5?s/(2-n-a):s/(n+a));switch(n){case t:return 60*((e-r)/s+(e<r?6:0));case e:return 60*((r-t)/s+2);case r:return 60*((t-e)/s+4);default:return-1}}},Ge={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},Ve={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},Xe={channel:Ue,lang:Ge,unit:Ve},Ze={};for(let t=0;t<=255;t++)Ze[t]=Xe.unit.dec2hex(t);class Ke{constructor(){this.type=0}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=0}is(t){return this.type===t}}const Qe=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new Ke}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=0,this}_ensureHSL(){const t=this.data,{h:e,s:r,l:i}=t;void 0===e&&(t.h=Xe.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=Xe.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=Xe.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:r,b:i}=t;void 0===e&&(t.r=Xe.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=Xe.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=Xe.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(2)||void 0===e?(this._ensureHSL(),Xe.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(2)||void 0===e?(this._ensureHSL(),Xe.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(2)||void 0===e?(this._ensureHSL(),Xe.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(1)||void 0===e?(this._ensureRGB(),Xe.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(1)||void 0===e?(this._ensureRGB(),Xe.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(1)||void 0===e?(this._ensureRGB(),Xe.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(1),this.changed=!0,this.data.r=t}set g(t){this.type.set(1),this.changed=!0,this.data.g=t}set b(t){this.type.set(1),this.changed=!0,this.data.b=t}set h(t){this.type.set(2),this.changed=!0,this.data.h=t}set s(t){this.type.set(2),this.changed=!0,this.data.s=t}set l(t){this.type.set(2),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent"),Je={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(Je.re);if(!e)return;const r=e[1],i=parseInt(r,16),n=r.length,a=n%4==0,o=n>4,s=o?1:17,l=o?8:4,h=a?0:-1,c=o?255:15;return Qe.set({r:(i>>l*(h+3)&c)*s,g:(i>>l*(h+2)&c)*s,b:(i>>l*(h+1)&c)*s,a:a?(i&c)*s/255:1},t)},stringify:t=>{const{r:e,g:r,b:i,a:n}=t;return n<1?`#${Ze[Math.round(e)]}${Ze[Math.round(r)]}${Ze[Math.round(i)]}${Ze[Math.round(255*n)]}`:`#${Ze[Math.round(e)]}${Ze[Math.round(r)]}${Ze[Math.round(i)]}`}},tr={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(tr.hueRe);if(e){const[,t,r]=e;switch(r){case"grad":return Xe.channel.clamp.h(.9*parseFloat(t));case"rad":return Xe.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return Xe.channel.clamp.h(360*parseFloat(t))}}return Xe.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const r=t.match(tr.re);if(!r)return;const[,i,n,a,o,s]=r;return Qe.set({h:tr._hue2deg(i),s:Xe.channel.clamp.s(parseFloat(n)),l:Xe.channel.clamp.l(parseFloat(a)),a:o?Xe.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},t)},stringify:t=>{const{h:e,s:r,l:i,a:n}=t;return n<1?`hsla(${Xe.lang.round(e)}, ${Xe.lang.round(r)}%, ${Xe.lang.round(i)}%, ${n})`:`hsl(${Xe.lang.round(e)}, ${Xe.lang.round(r)}%, ${Xe.lang.round(i)}%)`}},er={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=er.colors[t];if(e)return Je.parse(e)},stringify:t=>{const e=Je.stringify(t);for(const t in er.colors)if(er.colors[t]===e)return t}},rr={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const r=t.match(rr.re);if(!r)return;const[,i,n,a,o,s,l,h,c]=r;return Qe.set({r:Xe.channel.clamp.r(n?2.55*parseFloat(i):parseFloat(i)),g:Xe.channel.clamp.g(o?2.55*parseFloat(a):parseFloat(a)),b:Xe.channel.clamp.b(l?2.55*parseFloat(s):parseFloat(s)),a:h?Xe.channel.clamp.a(c?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:r,b:i,a:n}=t;return n<1?`rgba(${Xe.lang.round(e)}, ${Xe.lang.round(r)}, ${Xe.lang.round(i)}, ${Xe.lang.round(n)})`:`rgb(${Xe.lang.round(e)}, ${Xe.lang.round(r)}, ${Xe.lang.round(i)})`}},ir={format:{keyword:er,hex:Je,rgb:rr,rgba:rr,hsl:tr,hsla:tr},parse:t=>{if("string"!=typeof t)return t;const e=Je.parse(t)||rr.parse(t)||tr.parse(t)||er.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(2)||void 0===t.data.r?tr.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?rr.stringify(t):Je.stringify(t)},nr=(t,e)=>{const r=ir.parse(t);for(const t in e)r[t]=Xe.channel.clamp[t](e[t]);return ir.stringify(r)},ar=(t,e,r=0,i=1)=>{if("number"!=typeof t)return nr(t,{a:e});const n=Qe.set({r:Xe.channel.clamp.r(t),g:Xe.channel.clamp.g(e),b:Xe.channel.clamp.b(r),a:Xe.channel.clamp.a(i)});return ir.stringify(n)},or=t=>!(t=>(t=>{const{r:e,g:r,b:i}=ir.parse(t),n=.2126*Xe.channel.toLinear(e)+.7152*Xe.channel.toLinear(r)+.0722*Xe.channel.toLinear(i);return Xe.lang.round(n)})(t)>=.5)(t),sr=(t,e,r)=>{const i=ir.parse(t),n=i[e],a=Xe.channel.clamp[e](n+r);return n!==a&&(i[e]=a),ir.stringify(i)},lr=(t,e)=>sr(t,"l",e),hr=(t,e)=>sr(t,"l",-e),cr=(t,e)=>{const r=ir.parse(t),i={};for(const t in e)e[t]&&(i[t]=r[t]+e[t]);return nr(t,i)},dr=(t,e=100)=>{const r=ir.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,((t,e,r=50)=>{const{r:i,g:n,b:a,a:o}=ir.parse(t),{r:s,g:l,b:h,a:c}=ir.parse(e),d=r/100,u=2*d-1,p=o-c,f=((u*p===-1?u:(u+p)/(1+u*p))+1)/2,g=1-f;return ar(i*f+s*g,n*f+l*g,a*f+h*g,o*d+c*(1-d))})(r,t,e)},{entries:ur,setPrototypeOf:pr,isFrozen:fr,getPrototypeOf:gr,getOwnPropertyDescriptor:yr}=Object;let{freeze:mr,seal:xr,create:br}=Object,{apply:Cr,construct:_r}=typeof Reflect<"u"&&Reflect;mr||(mr=function(t){return t}),xr||(xr=function(t){return t}),Cr||(Cr=function(t,e){for(var r=arguments.length,i=new Array(r>2?r-2:0),n=2;n<r;n++)i[n-2]=arguments[n];return t.apply(e,i)}),_r||(_r=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(...r)});const kr=Ir(Array.prototype.forEach),wr=Ir(Array.prototype.lastIndexOf),vr=Ir(Array.prototype.pop),Sr=Ir(Array.prototype.push),Tr=Ir(Array.prototype.splice),Br=Ir(String.prototype.toLowerCase),Mr=Ir(String.prototype.toString),Lr=Ir(String.prototype.match),Ar=Ir(String.prototype.replace),Fr=Ir(String.prototype.indexOf),$r=Ir(String.prototype.trim),Er=Ir(Object.prototype.hasOwnProperty),Or=Ir(RegExp.prototype.test),Dr=function(t){return function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return _r(t,r)}}(TypeError);function Ir(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return Cr(t,e,i)}}function Nr(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Br;pr&&pr(t,null);let i=e.length;for(;i--;){let n=e[i];if("string"==typeof n){const t=r(n);t!==n&&(fr(e)||(e[i]=t),n=t)}t[n]=!0}return t}function Pr(t){for(let e=0;e<t.length;e++)Er(t,e)||(t[e]=null);return t}function zr(t){const e=br(null);for(const[r,i]of ur(t))Er(t,r)&&(Array.isArray(i)?e[r]=Pr(i):i&&"object"==typeof i&&i.constructor===Object?e[r]=zr(i):e[r]=i);return e}function qr(t,e){for(;null!==t;){const r=yr(t,e);if(r){if(r.get)return Ir(r.get);if("function"==typeof r.value)return Ir(r.value)}t=gr(t)}return function(){return null}}const Rr=mr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),jr=mr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Wr=mr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Hr=mr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Yr=mr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ur=mr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Gr=mr(["#text"]),Vr=mr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Xr=mr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Zr=mr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Kr=mr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Qr=xr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Jr=xr(/<%[\w\W]*|[\w\W]*%>/gm),ti=xr(/\$\{[\w\W]*/gm),ei=xr(/^data-[\-\w.\u00B7-\uFFFF]+$/),ri=xr(/^aria-[\-\w]+$/),ii=xr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ni=xr(/^(?:\w+script|data):/i),ai=xr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oi=xr(/^html$/i),si=xr(/^[a-z][.\w]*(-[.\w]+)+$/i);var li=Object.freeze({__proto__:null,ARIA_ATTR:ri,ATTR_WHITESPACE:ai,CUSTOM_ELEMENT:si,DATA_ATTR:ei,DOCTYPE_NAME:oi,ERB_EXPR:Jr,IS_ALLOWED_URI:ii,IS_SCRIPT_OR_DATA:ni,MUSTACHE_EXPR:Qr,TMPLIT_EXPR:ti});var hi,ci,di,ui,pi,fi,gi,yi=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:typeof window>"u"?null:window;const r=e=>t(e);if(r.version="3.3.0",r.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return r.isSupported=!1,r;let{document:i}=e;const n=i,a=n.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:l,Element:h,NodeFilter:c,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:p,trustedTypes:f}=e,g=h.prototype,y=qr(g,"cloneNode"),m=qr(g,"remove"),x=qr(g,"nextSibling"),b=qr(g,"childNodes"),C=qr(g,"parentNode");if("function"==typeof s){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let _,k="";const{implementation:w,createNodeIterator:v,createDocumentFragment:S,getElementsByTagName:T}=i,{importNode:B}=n;let M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof ur&&"function"==typeof C&&w&&void 0!==w.createHTMLDocument;const{MUSTACHE_EXPR:L,ERB_EXPR:A,TMPLIT_EXPR:F,DATA_ATTR:$,ARIA_ATTR:E,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:I}=li;let{IS_ALLOWED_URI:N}=li,P=null;const z=Nr({},[...Rr,...jr,...Wr,...Yr,...Gr]);let q=null;const R=Nr({},[...Vr,...Xr,...Zr,...Kr]);let j=Object.seal(br(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,H=null;const Y=Object.seal(br(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let U=!0,G=!0,V=!1,X=!0,Z=!1,K=!0,Q=!1,J=!1,tt=!1,et=!1,rt=!1,it=!1,nt=!0,at=!1,ot=!0,st=!1,lt={},ht=null;const ct=Nr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let dt=null;const ut=Nr({},["audio","video","img","source","image","track"]);let pt=null;const ft=Nr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gt="http://www.w3.org/1998/Math/MathML",yt="http://www.w3.org/2000/svg",mt="http://www.w3.org/1999/xhtml";let xt=mt,bt=!1,Ct=null;const _t=Nr({},[gt,yt,mt],Mr);let kt=Nr({},["mi","mo","mn","ms","mtext"]),wt=Nr({},["annotation-xml"]);const vt=Nr({},["title","style","font","a","script"]);let St=null;const Tt=["application/xhtml+xml","text/html"];let Bt=null,Mt=null;const Lt=i.createElement("form"),At=function(t){return t instanceof RegExp||t instanceof Function},Ft=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Mt||Mt!==t){if((!t||"object"!=typeof t)&&(t={}),t=zr(t),St=-1===Tt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Bt="application/xhtml+xml"===St?Mr:Br,P=Er(t,"ALLOWED_TAGS")?Nr({},t.ALLOWED_TAGS,Bt):z,q=Er(t,"ALLOWED_ATTR")?Nr({},t.ALLOWED_ATTR,Bt):R,Ct=Er(t,"ALLOWED_NAMESPACES")?Nr({},t.ALLOWED_NAMESPACES,Mr):_t,pt=Er(t,"ADD_URI_SAFE_ATTR")?Nr(zr(ft),t.ADD_URI_SAFE_ATTR,Bt):ft,dt=Er(t,"ADD_DATA_URI_TAGS")?Nr(zr(ut),t.ADD_DATA_URI_TAGS,Bt):ut,ht=Er(t,"FORBID_CONTENTS")?Nr({},t.FORBID_CONTENTS,Bt):ct,W=Er(t,"FORBID_TAGS")?Nr({},t.FORBID_TAGS,Bt):zr({}),H=Er(t,"FORBID_ATTR")?Nr({},t.FORBID_ATTR,Bt):zr({}),lt=!!Er(t,"USE_PROFILES")&&t.USE_PROFILES,U=!1!==t.ALLOW_ARIA_ATTR,G=!1!==t.ALLOW_DATA_ATTR,V=t.ALLOW_UNKNOWN_PROTOCOLS||!1,X=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Z=t.SAFE_FOR_TEMPLATES||!1,K=!1!==t.SAFE_FOR_XML,Q=t.WHOLE_DOCUMENT||!1,et=t.RETURN_DOM||!1,rt=t.RETURN_DOM_FRAGMENT||!1,it=t.RETURN_TRUSTED_TYPE||!1,tt=t.FORCE_BODY||!1,nt=!1!==t.SANITIZE_DOM,at=t.SANITIZE_NAMED_PROPS||!1,ot=!1!==t.KEEP_CONTENT,st=t.IN_PLACE||!1,N=t.ALLOWED_URI_REGEXP||ii,xt=t.NAMESPACE||mt,kt=t.MATHML_TEXT_INTEGRATION_POINTS||kt,wt=t.HTML_INTEGRATION_POINTS||wt,j=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&At(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&At(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(G=!1),rt&&(et=!0),lt&&(P=Nr({},Gr),q=[],!0===lt.html&&(Nr(P,Rr),Nr(q,Vr)),!0===lt.svg&&(Nr(P,jr),Nr(q,Xr),Nr(q,Kr)),!0===lt.svgFilters&&(Nr(P,Wr),Nr(q,Xr),Nr(q,Kr)),!0===lt.mathMl&&(Nr(P,Yr),Nr(q,Zr),Nr(q,Kr))),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?Y.tagCheck=t.ADD_TAGS:(P===z&&(P=zr(P)),Nr(P,t.ADD_TAGS,Bt))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?Y.attributeCheck=t.ADD_ATTR:(q===R&&(q=zr(q)),Nr(q,t.ADD_ATTR,Bt))),t.ADD_URI_SAFE_ATTR&&Nr(pt,t.ADD_URI_SAFE_ATTR,Bt),t.FORBID_CONTENTS&&(ht===ct&&(ht=zr(ht)),Nr(ht,t.FORBID_CONTENTS,Bt)),ot&&(P["#text"]=!0),Q&&Nr(P,["html","head","body"]),P.table&&(Nr(P,["tbody"]),delete W.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Dr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Dr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=t.TRUSTED_TYPES_POLICY,k=_.createHTML("")}else void 0===_&&(_=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(r=e.getAttribute(i));const n="dompurify"+(r?"#"+r:"");try{return t.createPolicy(n,{createHTML:t=>t,createScriptURL:t=>t})}catch{return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(f,a)),null!==_&&"string"==typeof k&&(k=_.createHTML(""));mr&&mr(t),Mt=t}},$t=Nr({},[...jr,...Wr,...Hr]),Et=Nr({},[...Yr,...Ur]),Ot=function(t){Sr(r.removed,{element:t});try{C(t).removeChild(t)}catch{m(t)}},Dt=function(t,e){try{Sr(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch{Sr(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(et||rt)try{Ot(e)}catch{}else try{e.setAttribute(t,"")}catch{}},It=function(t){let e=null,r=null;if(tt)t="<remove></remove>"+t;else{const e=Lr(t,/^[\r\n\t ]+/);r=e&&e[0]}"application/xhtml+xml"===St&&xt===mt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const n=_?_.createHTML(t):t;if(xt===mt)try{e=(new p).parseFromString(n,St)}catch{}if(!e||!e.documentElement){e=w.createDocument(xt,"template",null);try{e.documentElement.innerHTML=bt?k:n}catch{}}const a=e.body||e.documentElement;return t&&r&&a.insertBefore(i.createTextNode(r),a.childNodes[0]||null),xt===mt?T.call(e,Q?"html":"body")[0]:Q?e.documentElement:a},Nt=function(t){return v.call(t.ownerDocument||t,t,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Pt=function(t){return t instanceof u&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},zt=function(t){return"function"==typeof l&&t instanceof l};function qt(t,e,i){kr(t,t=>{t.call(r,e,i,Mt)})}const Rt=function(t){let e=null;if(qt(M.beforeSanitizeElements,t,null),Pt(t))return Ot(t),!0;const i=Bt(t.nodeName);if(qt(M.uponSanitizeElement,t,{tagName:i,allowedTags:P}),K&&t.hasChildNodes()&&!zt(t.firstElementChild)&&Or(/<[/\w!]/g,t.innerHTML)&&Or(/<[/\w!]/g,t.textContent)||7===t.nodeType||K&&8===t.nodeType&&Or(/<[/\w]/g,t.data))return Ot(t),!0;if(!(Y.tagCheck instanceof Function&&Y.tagCheck(i))&&(!P[i]||W[i])){if(!W[i]&&Wt(i)&&(j.tagNameCheck instanceof RegExp&&Or(j.tagNameCheck,i)||j.tagNameCheck instanceof Function&&j.tagNameCheck(i)))return!1;if(ot&&!ht[i]){const e=C(t)||t.parentNode,r=b(t)||t.childNodes;if(r&&e)for(let i=r.length-1;i>=0;--i){const n=y(r[i],!0);n.__removalCount=(t.__removalCount||0)+1,e.insertBefore(n,x(t))}}return Ot(t),!0}return t instanceof h&&!function(t){let e=C(t);(!e||!e.tagName)&&(e={namespaceURI:xt,tagName:"template"});const r=Br(t.tagName),i=Br(e.tagName);return!!Ct[t.namespaceURI]&&(t.namespaceURI===yt?e.namespaceURI===mt?"svg"===r:e.namespaceURI===gt?"svg"===r&&("annotation-xml"===i||kt[i]):!!$t[r]:t.namespaceURI===gt?e.namespaceURI===mt?"math"===r:e.namespaceURI===yt?"math"===r&&wt[i]:!!Et[r]:t.namespaceURI===mt?!(e.namespaceURI===yt&&!wt[i]||e.namespaceURI===gt&&!kt[i])&&!Et[r]&&(vt[r]||!$t[r]):!("application/xhtml+xml"!==St||!Ct[t.namespaceURI]))}(t)||("noscript"===i||"noembed"===i||"noframes"===i)&&Or(/<\/no(script|embed|frames)/i,t.innerHTML)?(Ot(t),!0):(Z&&3===t.nodeType&&(e=t.textContent,kr([L,A,F],t=>{e=Ar(e,t," ")}),t.textContent!==e&&(Sr(r.removed,{element:t.cloneNode()}),t.textContent=e)),qt(M.afterSanitizeElements,t,null),!1)},jt=function(t,e,r){if(nt&&("id"===e||"name"===e)&&(r in i||r in Lt))return!1;if((!G||H[e]||!Or($,e))&&!(U&&Or(E,e)||Y.attributeCheck instanceof Function&&Y.attributeCheck(e,t)))if(!q[e]||H[e]){if(!(Wt(t)&&(j.tagNameCheck instanceof RegExp&&Or(j.tagNameCheck,t)||j.tagNameCheck instanceof Function&&j.tagNameCheck(t))&&(j.attributeNameCheck instanceof RegExp&&Or(j.attributeNameCheck,e)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(e,t))||"is"===e&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&Or(j.tagNameCheck,r)||j.tagNameCheck instanceof Function&&j.tagNameCheck(r))))return!1}else if(!pt[e]&&!Or(N,Ar(r,D,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==Fr(r,"data:")||!dt[t])&&(!V||Or(O,Ar(r,D,"")))&&r)return!1;return!0},Wt=function(t){return"annotation-xml"!==t&&Lr(t,I)},Ht=function(t){qt(M.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||Pt(t))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let n=e.length;for(;n--;){const a=e[n],{name:o,namespaceURI:s,value:l}=a,h=Bt(o),c=l;let d="value"===o?c:$r(c);if(i.attrName=h,i.attrValue=d,i.keepAttr=!0,i.forceKeepAttr=void 0,qt(M.uponSanitizeAttribute,t,i),d=i.attrValue,at&&("id"===h||"name"===h)&&(Dt(o,t),d="user-content-"+d),K&&Or(/((--!?|])>)|<\/(style|title|textarea)/i,d)){Dt(o,t);continue}if("attributename"===h&&Lr(d,"href")){Dt(o,t);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){Dt(o,t);continue}if(!X&&Or(/\/>/i,d)){Dt(o,t);continue}Z&&kr([L,A,F],t=>{d=Ar(d,t," ")});const u=Bt(t.nodeName);if(jt(u,h,d)){if(_&&"object"==typeof f&&"function"==typeof f.getAttributeType&&!s)switch(f.getAttributeType(u,h)){case"TrustedHTML":d=_.createHTML(d);break;case"TrustedScriptURL":d=_.createScriptURL(d)}if(d!==c)try{s?t.setAttributeNS(s,o,d):t.setAttribute(o,d),Pt(t)?Ot(t):vr(r.removed)}catch{Dt(o,t)}}else Dt(o,t)}qt(M.afterSanitizeAttributes,t,null)},Yt=function t(e){let r=null;const i=Nt(e);for(qt(M.beforeSanitizeShadowDOM,e,null);r=i.nextNode();)qt(M.uponSanitizeShadowNode,r,null),Rt(r),Ht(r),r.content instanceof o&&t(r.content);qt(M.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,a=null,s=null,h=null;if(bt=!t,bt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!zt(t)){if("function"!=typeof t.toString)throw Dr("toString is not a function");if("string"!=typeof(t=t.toString()))throw Dr("dirty is not a string, aborting")}if(!r.isSupported)return t;if(J||Ft(e),r.removed=[],"string"==typeof t&&(st=!1),st){if(t.nodeName){const e=Bt(t.nodeName);if(!P[e]||W[e])throw Dr("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)i=It("\x3c!----\x3e"),a=i.ownerDocument.importNode(t,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a);else{if(!et&&!Z&&!Q&&-1===t.indexOf("<"))return _&&it?_.createHTML(t):t;if(i=It(t),!i)return et?null:it?k:""}i&&tt&&Ot(i.firstChild);const c=Nt(st?t:i);for(;s=c.nextNode();)Rt(s),Ht(s),s.content instanceof o&&Yt(s.content);if(st)return t;if(et){if(rt)for(h=S.call(i.ownerDocument);i.firstChild;)h.appendChild(i.firstChild);else h=i;return(q.shadowroot||q.shadowrootmode)&&(h=B.call(n,h,!0)),h}let d=Q?i.outerHTML:i.innerHTML;return Q&&P["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Or(oi,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),Z&&kr([L,A,F],t=>{d=Ar(d,t," ")}),_&&it?_.createHTML(d):d},r.setConfig=function(){Ft(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},r.clearConfig=function(){Mt=null,J=!1},r.isValidAttribute=function(t,e,r){Mt||Ft({});const i=Bt(t),n=Bt(e);return jt(i,n,r)},r.addHook=function(t,e){"function"==typeof e&&Sr(M[t],e)},r.removeHook=function(t,e){if(void 0!==e){const r=wr(M[t],e);return-1===r?void 0:Tr(M[t],r,1)[0]}return vr(M[t])},r.removeHooks=function(t){M[t]=[]},r.removeAllHooks=function(){M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}(),mi=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,xi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,bi=/\s*%%.*\n/gm,Ci=(hi=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},qe(hi,"UnknownDiagramError"),hi),_i={},ki=qe(function(t,e){t=t.replace(mi,"").replace(xi,"").replace(bi,"\n");for(const[r,{detector:i}]of Object.entries(_i))if(i(t,e))return r;throw new Ci(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),wi=qe((...t)=>{for(const{id:e,detector:r,loader:i}of t)vi(e,r,i)},"registerLazyLoadedDiagrams"),vi=qe((t,e,r)=>{_i[t]&&We.warn(`Detector with key ${t} already exists. Overwriting.`),_i[t]={detector:e,loader:r},We.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),Si=qe(t=>_i[t].loader,"getDiagramLoader"),Ti=qe((t,e,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(e=>Ti(t,e,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(e=>{t.includes(e)||t.push(e)}),t):void 0===t||r<=0?null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e:(void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach(n=>{"object"!=typeof e[n]||void 0!==t[n]&&"object"!=typeof t[n]?(i||"object"!=typeof t[n]&&"object"!=typeof e[n])&&(t[n]=e[n]):(void 0===t[n]&&(t[n]=Array.isArray(e[n])?[]:{}),t[n]=Ti(t[n],e[n],{depth:r-1,clobber:i}))}),t)},"assignWithDepth"),Bi=Ti,Mi="#ffffff",Li="#f2f2f2",Ai=qe((t,e)=>cr(t,e?{s:-40,l:10}:{s:-40,l:-10}),"mkBorder"),Fi=(qe(ci=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var t,e,r,i,n,a,o,s,l,h,c,d,u,p,f,g,y,m,x,b,C;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||cr(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||cr(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Ai(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ai(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ai(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ai(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||dr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||dr(this.tertiaryColor),this.lineColor=this.lineColor||dr(this.background),this.arrowheadColor=this.arrowheadColor||dr(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?hr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||hr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||dr(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||lr(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||hr(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||hr(this.mainBkg,10)):(this.rowOdd=this.rowOdd||lr(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||lr(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||cr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||cr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||cr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||cr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||cr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||cr(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||cr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||cr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||cr(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=hr(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=hr(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||dr(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||lr(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||hr(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const _=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||cr(this.mainBkg,{h:180,s:-15,l:_*(5+3*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||cr(this.mainBkg,{h:180,s:-15,l:_*(8+3*t)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||cr(this.primaryColor,{h:64}),this.fillType3=this.fillType3||cr(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||cr(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||cr(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||cr(this.primaryColor,{h:128}),this.fillType7=this.fillType7||cr(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||cr(this.primaryColor,{l:-10}),this.pie5=this.pie5||cr(this.secondaryColor,{l:-10}),this.pie6=this.pie6||cr(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||cr(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||cr(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||cr(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||cr(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||cr(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||cr(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:(null==(t=this.radar)?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:(null==(e=this.radar)?void 0:e.axisStrokeWidth)||2,axisLabelFontSize:(null==(r=this.radar)?void 0:r.axisLabelFontSize)||12,curveOpacity:(null==(i=this.radar)?void 0:i.curveOpacity)||.5,curveStrokeWidth:(null==(n=this.radar)?void 0:n.curveStrokeWidth)||2,graticuleColor:(null==(a=this.radar)?void 0:a.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(o=this.radar)?void 0:o.graticuleStrokeWidth)||1,graticuleOpacity:(null==(s=this.radar)?void 0:s.graticuleOpacity)||.3,legendBoxSize:(null==(l=this.radar)?void 0:l.legendBoxSize)||12,legendFontSize:(null==(h=this.radar)?void 0:h.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||cr(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||cr(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||cr(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||cr(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||cr(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||cr(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||or(this.quadrant1Fill)?lr(this.quadrant1Fill):hr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(c=this.xyChart)?void 0:c.backgroundColor)||this.background,titleColor:(null==(d=this.xyChart)?void 0:d.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(u=this.xyChart)?void 0:u.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(p=this.xyChart)?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(f=this.xyChart)?void 0:f.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(g=this.xyChart)?void 0:g.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(y=this.xyChart)?void 0:y.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(m=this.xyChart)?void 0:m.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(x=this.xyChart)?void 0:x.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(b=this.xyChart)?void 0:b.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(C=this.xyChart)?void 0:C.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?hr(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||cr(this.primaryColor,{h:-30}),this.git4=this.git4||cr(this.primaryColor,{h:-60}),this.git5=this.git5||cr(this.primaryColor,{h:-90}),this.git6=this.git6||cr(this.primaryColor,{h:60}),this.git7=this.git7||cr(this.primaryColor,{h:120}),this.darkMode?(this.git0=lr(this.git0,25),this.git1=lr(this.git1,25),this.git2=lr(this.git2,25),this.git3=lr(this.git3,25),this.git4=lr(this.git4,25),this.git5=lr(this.git5,25),this.git6=lr(this.git6,25),this.git7=lr(this.git7,25)):(this.git0=hr(this.git0,25),this.git1=hr(this.git1,25),this.git2=hr(this.git2,25),this.git3=hr(this.git3,25),this.git4=hr(this.git4,25),this.git5=hr(this.git5,25),this.git6=hr(this.git6,25),this.git7=hr(this.git7,25)),this.gitInv0=this.gitInv0||dr(this.git0),this.gitInv1=this.gitInv1||dr(this.git1),this.gitInv2=this.gitInv2||dr(this.git2),this.gitInv3=this.gitInv3||dr(this.git3),this.gitInv4=this.gitInv4||dr(this.git4),this.gitInv5=this.gitInv5||dr(this.git5),this.gitInv6=this.gitInv6||dr(this.git6),this.gitInv7=this.gitInv7||dr(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Mi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Li}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},"Theme"),ci),$i=qe(t=>{const e=new Fi;return e.calculate(t),e},"getThemeVariables"),Ei=(qe(di=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=lr(this.primaryColor,16),this.tertiaryColor=cr(this.primaryColor,{h:-160}),this.primaryBorderColor=dr(this.background),this.secondaryBorderColor=Ai(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ai(this.tertiaryColor,this.darkMode),this.primaryTextColor=dr(this.primaryColor),this.secondaryTextColor=dr(this.secondaryColor),this.tertiaryTextColor=dr(this.tertiaryColor),this.lineColor=dr(this.background),this.textColor=dr(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=lr(dr("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=ar(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=hr("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=hr(this.sectionBkgColor,10),this.taskBorderColor=ar(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ar(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||lr(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||hr(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,e,r,i,n,a,o,s,l,h,c,d,u,p,f,g,y,m,x,b,C;this.secondBkg=lr(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=lr(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=lr(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=cr(this.primaryColor,{h:64}),this.fillType3=cr(this.secondaryColor,{h:64}),this.fillType4=cr(this.primaryColor,{h:-64}),this.fillType5=cr(this.secondaryColor,{h:-64}),this.fillType6=cr(this.primaryColor,{h:128}),this.fillType7=cr(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||cr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||cr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||cr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||cr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||cr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||cr(this.primaryColor,{h:210}),this.cScale9=this.cScale9||cr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||cr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||cr(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||dr(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||lr(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||cr(this.mainBkg,{h:30,s:-30,l:-(4*t-10)}),this["surfacePeer"+t]=this["surfacePeer"+t]||cr(this.mainBkg,{h:30,s:-30,l:-(4*t-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||cr(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||cr(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||cr(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||cr(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||cr(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||cr(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||or(this.quadrant1Fill)?lr(this.quadrant1Fill):hr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(t=this.xyChart)?void 0:t.backgroundColor)||this.background,titleColor:(null==(e=this.xyChart)?void 0:e.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(r=this.xyChart)?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(i=this.xyChart)?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(n=this.xyChart)?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(a=this.xyChart)?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(o=this.xyChart)?void 0:o.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(s=this.xyChart)?void 0:s.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(l=this.xyChart)?void 0:l.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(h=this.xyChart)?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(c=this.xyChart)?void 0:c.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:(null==(d=this.radar)?void 0:d.axisColor)||this.lineColor,axisStrokeWidth:(null==(u=this.radar)?void 0:u.axisStrokeWidth)||2,axisLabelFontSize:(null==(p=this.radar)?void 0:p.axisLabelFontSize)||12,curveOpacity:(null==(f=this.radar)?void 0:f.curveOpacity)||.5,curveStrokeWidth:(null==(g=this.radar)?void 0:g.curveStrokeWidth)||2,graticuleColor:(null==(y=this.radar)?void 0:y.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(m=this.radar)?void 0:m.graticuleStrokeWidth)||1,graticuleOpacity:(null==(x=this.radar)?void 0:x.graticuleOpacity)||.3,legendBoxSize:(null==(b=this.radar)?void 0:b.legendBoxSize)||12,legendFontSize:(null==(C=this.radar)?void 0:C.legendFontSize)||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?hr(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=lr(this.secondaryColor,20),this.git1=lr(this.pie2||this.secondaryColor,20),this.git2=lr(this.pie3||this.tertiaryColor,20),this.git3=lr(this.pie4||cr(this.primaryColor,{h:-30}),20),this.git4=lr(this.pie5||cr(this.primaryColor,{h:-60}),20),this.git5=lr(this.pie6||cr(this.primaryColor,{h:-90}),10),this.git6=lr(this.pie7||cr(this.primaryColor,{h:60}),10),this.git7=lr(this.pie8||cr(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||dr(this.git0),this.gitInv1=this.gitInv1||dr(this.git1),this.gitInv2=this.gitInv2||dr(this.git2),this.gitInv3=this.gitInv3||dr(this.git3),this.gitInv4=this.gitInv4||dr(this.git4),this.gitInv5=this.gitInv5||dr(this.git5),this.gitInv6=this.gitInv6||dr(this.git6),this.gitInv7=this.gitInv7||dr(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||dr(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||dr(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||lr(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||lr(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},"Theme"),di),Oi=qe(t=>{const e=new Ei;return e.calculate(t),e},"getThemeVariables"),Di=(qe(ui=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=cr(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=cr(this.primaryColor,{h:-160}),this.primaryBorderColor=Ai(this.primaryColor,this.darkMode),this.secondaryBorderColor=Ai(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ai(this.tertiaryColor,this.darkMode),this.primaryTextColor=dr(this.primaryColor),this.secondaryTextColor=dr(this.secondaryColor),this.tertiaryTextColor=dr(this.tertiaryColor),this.lineColor=dr(this.background),this.textColor=dr(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=ar(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,e,r,i,n,a,o,s,l,h,c,d,u,p,f,g,y,m,x,b,C;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||cr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||cr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||cr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||cr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||cr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||cr(this.primaryColor,{h:210}),this.cScale9=this.cScale9||cr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||cr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||cr(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||hr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||hr(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=hr(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||hr(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||cr(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||cr(this.mainBkg,{h:30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||cr(this.mainBkg,{h:30,l:-(7+5*t)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||dr(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||dr(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=lr(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||lr(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||lr(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=cr(this.primaryColor,{h:64}),this.fillType3=cr(this.secondaryColor,{h:64}),this.fillType4=cr(this.primaryColor,{h:-64}),this.fillType5=cr(this.secondaryColor,{h:-64}),this.fillType6=cr(this.primaryColor,{h:128}),this.fillType7=cr(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||cr(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||cr(this.primaryColor,{l:-10}),this.pie5=this.pie5||cr(this.secondaryColor,{l:-30}),this.pie6=this.pie6||cr(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||cr(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||cr(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||cr(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||cr(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||cr(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||cr(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||cr(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||cr(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||cr(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||cr(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||cr(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||cr(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||or(this.quadrant1Fill)?lr(this.quadrant1Fill):hr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:(null==(t=this.radar)?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:(null==(e=this.radar)?void 0:e.axisStrokeWidth)||2,axisLabelFontSize:(null==(r=this.radar)?void 0:r.axisLabelFontSize)||12,curveOpacity:(null==(i=this.radar)?void 0:i.curveOpacity)||.5,curveStrokeWidth:(null==(n=this.radar)?void 0:n.curveStrokeWidth)||2,graticuleColor:(null==(a=this.radar)?void 0:a.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(o=this.radar)?void 0:o.graticuleStrokeWidth)||1,graticuleOpacity:(null==(s=this.radar)?void 0:s.graticuleOpacity)||.3,legendBoxSize:(null==(l=this.radar)?void 0:l.legendBoxSize)||12,legendFontSize:(null==(h=this.radar)?void 0:h.legendFontSize)||12},this.xyChart={backgroundColor:(null==(c=this.xyChart)?void 0:c.backgroundColor)||this.background,titleColor:(null==(d=this.xyChart)?void 0:d.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(u=this.xyChart)?void 0:u.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(p=this.xyChart)?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(f=this.xyChart)?void 0:f.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(g=this.xyChart)?void 0:g.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(y=this.xyChart)?void 0:y.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(m=this.xyChart)?void 0:m.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(x=this.xyChart)?void 0:x.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(b=this.xyChart)?void 0:b.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(C=this.xyChart)?void 0:C.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||cr(this.primaryColor,{h:-30}),this.git4=this.git4||cr(this.primaryColor,{h:-60}),this.git5=this.git5||cr(this.primaryColor,{h:-90}),this.git6=this.git6||cr(this.primaryColor,{h:60}),this.git7=this.git7||cr(this.primaryColor,{h:120}),this.darkMode?(this.git0=lr(this.git0,25),this.git1=lr(this.git1,25),this.git2=lr(this.git2,25),this.git3=lr(this.git3,25),this.git4=lr(this.git4,25),this.git5=lr(this.git5,25),this.git6=lr(this.git6,25),this.git7=lr(this.git7,25)):(this.git0=hr(this.git0,25),this.git1=hr(this.git1,25),this.git2=hr(this.git2,25),this.git3=hr(this.git3,25),this.git4=hr(this.git4,25),this.git5=hr(this.git5,25),this.git6=hr(this.git6,25),this.git7=hr(this.git7,25)),this.gitInv0=this.gitInv0||hr(dr(this.git0),25),this.gitInv1=this.gitInv1||dr(this.git1),this.gitInv2=this.gitInv2||dr(this.git2),this.gitInv3=this.gitInv3||dr(this.git3),this.gitInv4=this.gitInv4||dr(this.git4),this.gitInv5=this.gitInv5||dr(this.git5),this.gitInv6=this.gitInv6||dr(this.git6),this.gitInv7=this.gitInv7||dr(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||dr(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||dr(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Mi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Li}calculate(t){if(Object.keys(this).forEach(t=>{"calculated"===this[t]&&(this[t]=void 0)}),"object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},"Theme"),ui),Ii=qe(t=>{const e=new Di;return e.calculate(t),e},"getThemeVariables"),Ni=(qe(pi=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=lr("#cde498",10),this.primaryBorderColor=Ai(this.primaryColor,this.darkMode),this.secondaryBorderColor=Ai(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ai(this.tertiaryColor,this.darkMode),this.primaryTextColor=dr(this.primaryColor),this.secondaryTextColor=dr(this.secondaryColor),this.tertiaryTextColor=dr(this.primaryColor),this.lineColor=dr(this.background),this.textColor=dr(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,e,r,i,n,a,o,s,l,h,c,d,u,p,f,g,y,m,x,b,C;this.actorBorder=hr(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||cr(this.primaryColor,{h:30}),this.cScale4=this.cScale4||cr(this.primaryColor,{h:60}),this.cScale5=this.cScale5||cr(this.primaryColor,{h:90}),this.cScale6=this.cScale6||cr(this.primaryColor,{h:120}),this.cScale7=this.cScale7||cr(this.primaryColor,{h:150}),this.cScale8=this.cScale8||cr(this.primaryColor,{h:210}),this.cScale9=this.cScale9||cr(this.primaryColor,{h:270}),this.cScale10=this.cScale10||cr(this.primaryColor,{h:300}),this.cScale11=this.cScale11||cr(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||hr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||hr(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=hr(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||hr(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||cr(this["cScale"+t],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||cr(this.mainBkg,{h:30,s:-30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||cr(this.mainBkg,{h:30,s:-30,l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||lr(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||lr(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=cr(this.primaryColor,{h:64}),this.fillType3=cr(this.secondaryColor,{h:64}),this.fillType4=cr(this.primaryColor,{h:-64}),this.fillType5=cr(this.secondaryColor,{h:-64}),this.fillType6=cr(this.primaryColor,{h:128}),this.fillType7=cr(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||cr(this.primaryColor,{l:-30}),this.pie5=this.pie5||cr(this.secondaryColor,{l:-30}),this.pie6=this.pie6||cr(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||cr(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||cr(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||cr(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||cr(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||cr(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||cr(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||cr(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||cr(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||cr(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||cr(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||cr(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||cr(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||or(this.quadrant1Fill)?lr(this.quadrant1Fill):hr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:(null==(t=this.radar)?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:(null==(e=this.radar)?void 0:e.axisStrokeWidth)||2,axisLabelFontSize:(null==(r=this.radar)?void 0:r.axisLabelFontSize)||12,curveOpacity:(null==(i=this.radar)?void 0:i.curveOpacity)||.5,curveStrokeWidth:(null==(n=this.radar)?void 0:n.curveStrokeWidth)||2,graticuleColor:(null==(a=this.radar)?void 0:a.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(o=this.radar)?void 0:o.graticuleStrokeWidth)||1,graticuleOpacity:(null==(s=this.radar)?void 0:s.graticuleOpacity)||.3,legendBoxSize:(null==(l=this.radar)?void 0:l.legendBoxSize)||12,legendFontSize:(null==(h=this.radar)?void 0:h.legendFontSize)||12},this.xyChart={backgroundColor:(null==(c=this.xyChart)?void 0:c.backgroundColor)||this.background,titleColor:(null==(d=this.xyChart)?void 0:d.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(u=this.xyChart)?void 0:u.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(p=this.xyChart)?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(f=this.xyChart)?void 0:f.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(g=this.xyChart)?void 0:g.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(y=this.xyChart)?void 0:y.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(m=this.xyChart)?void 0:m.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(x=this.xyChart)?void 0:x.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(b=this.xyChart)?void 0:b.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(C=this.xyChart)?void 0:C.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||cr(this.primaryColor,{h:-30}),this.git4=this.git4||cr(this.primaryColor,{h:-60}),this.git5=this.git5||cr(this.primaryColor,{h:-90}),this.git6=this.git6||cr(this.primaryColor,{h:60}),this.git7=this.git7||cr(this.primaryColor,{h:120}),this.darkMode?(this.git0=lr(this.git0,25),this.git1=lr(this.git1,25),this.git2=lr(this.git2,25),this.git3=lr(this.git3,25),this.git4=lr(this.git4,25),this.git5=lr(this.git5,25),this.git6=lr(this.git6,25),this.git7=lr(this.git7,25)):(this.git0=hr(this.git0,25),this.git1=hr(this.git1,25),this.git2=hr(this.git2,25),this.git3=hr(this.git3,25),this.git4=hr(this.git4,25),this.git5=hr(this.git5,25),this.git6=hr(this.git6,25),this.git7=hr(this.git7,25)),this.gitInv0=this.gitInv0||dr(this.git0),this.gitInv1=this.gitInv1||dr(this.git1),this.gitInv2=this.gitInv2||dr(this.git2),this.gitInv3=this.gitInv3||dr(this.git3),this.gitInv4=this.gitInv4||dr(this.git4),this.gitInv5=this.gitInv5||dr(this.git5),this.gitInv6=this.gitInv6||dr(this.git6),this.gitInv7=this.gitInv7||dr(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||dr(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||dr(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Mi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Li}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},"Theme"),pi),Pi=qe(t=>{const e=new Ni;return e.calculate(t),e},"getThemeVariables"),zi=(qe(fi=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=lr(this.contrast,55),this.background="#ffffff",this.tertiaryColor=cr(this.primaryColor,{h:-160}),this.primaryBorderColor=Ai(this.primaryColor,this.darkMode),this.secondaryBorderColor=Ai(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ai(this.tertiaryColor,this.darkMode),this.primaryTextColor=dr(this.primaryColor),this.secondaryTextColor=dr(this.secondaryColor),this.tertiaryTextColor=dr(this.tertiaryColor),this.lineColor=dr(this.background),this.textColor=dr(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||lr(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,e,r,i,n,a,o,s,l,h,c,d,u,p,f,g,y,m,x,b,C;this.secondBkg=lr(this.contrast,55),this.border2=this.contrast,this.actorBorder=lr(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||dr(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||lr(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||hr(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||cr(this.mainBkg,{l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||cr(this.mainBkg,{l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=lr(this.contrast,30),this.sectionBkgColor2=lr(this.contrast,30),this.taskBorderColor=hr(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=lr(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=hr(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=cr(this.primaryColor,{h:64}),this.fillType3=cr(this.secondaryColor,{h:64}),this.fillType4=cr(this.primaryColor,{h:-64}),this.fillType5=cr(this.secondaryColor,{h:-64}),this.fillType6=cr(this.primaryColor,{h:128}),this.fillType7=cr(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||cr(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||cr(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||cr(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||cr(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||cr(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||cr(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||or(this.quadrant1Fill)?lr(this.quadrant1Fill):hr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(t=this.xyChart)?void 0:t.backgroundColor)||this.background,titleColor:(null==(e=this.xyChart)?void 0:e.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(r=this.xyChart)?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(i=this.xyChart)?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(n=this.xyChart)?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(a=this.xyChart)?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(o=this.xyChart)?void 0:o.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(s=this.xyChart)?void 0:s.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(l=this.xyChart)?void 0:l.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(h=this.xyChart)?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(c=this.xyChart)?void 0:c.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:(null==(d=this.radar)?void 0:d.axisColor)||this.lineColor,axisStrokeWidth:(null==(u=this.radar)?void 0:u.axisStrokeWidth)||2,axisLabelFontSize:(null==(p=this.radar)?void 0:p.axisLabelFontSize)||12,curveOpacity:(null==(f=this.radar)?void 0:f.curveOpacity)||.5,curveStrokeWidth:(null==(g=this.radar)?void 0:g.curveStrokeWidth)||2,graticuleColor:(null==(y=this.radar)?void 0:y.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(m=this.radar)?void 0:m.graticuleStrokeWidth)||1,graticuleOpacity:(null==(x=this.radar)?void 0:x.graticuleOpacity)||.3,legendBoxSize:(null==(b=this.radar)?void 0:b.legendBoxSize)||12,legendFontSize:(null==(C=this.radar)?void 0:C.legendFontSize)||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=hr(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||cr(this.primaryColor,{h:-30}),this.git4=this.pie5||cr(this.primaryColor,{h:-60}),this.git5=this.pie6||cr(this.primaryColor,{h:-90}),this.git6=this.pie7||cr(this.primaryColor,{h:60}),this.git7=this.pie8||cr(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||dr(this.git0),this.gitInv1=this.gitInv1||dr(this.git1),this.gitInv2=this.gitInv2||dr(this.git2),this.gitInv3=this.gitInv3||dr(this.git3),this.gitInv4=this.gitInv4||dr(this.git4),this.gitInv5=this.gitInv5||dr(this.git5),this.gitInv6=this.gitInv6||dr(this.git6),this.gitInv7=this.gitInv7||dr(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Mi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Li}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},"Theme"),fi),qi=qe(t=>{const e=new zi;return e.calculate(t),e},"getThemeVariables"),Ri={base:{getThemeVariables:$i},dark:{getThemeVariables:Oi},default:{getThemeVariables:Ii},forest:{getThemeVariables:Pi},neutral:{getThemeVariables:qi}},ji={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Wi={...ji,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Ri.default.getThemeVariables(),sequence:{...ji.sequence,messageFont:qe(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:qe(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:qe(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...ji.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ji.c4,useWidth:void 0,personFont:qe(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...ji.flowchart,inheritDir:!1},external_personFont:qe(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:qe(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:qe(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:qe(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:qe(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:qe(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:qe(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:qe(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:qe(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:qe(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:qe(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:qe(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:qe(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:qe(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:qe(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:qe(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:qe(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:qe(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:qe(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:qe(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:qe(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...ji.pie,useWidth:984},xyChart:{...ji.xyChart,useWidth:void 0},requirement:{...ji.requirement,useWidth:void 0},packet:{...ji.packet},radar:{...ji.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},Hi=qe((t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:"object"==typeof t[i]&&null!==t[i]?[...r,e+i,...Hi(t[i],"")]:[...r,e+i],[]),"keyify"),Yi=new Set(Hi(Wi,"")),Ui=Wi,Gi=qe(t=>{if(We.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t){if(Array.isArray(t))return void t.forEach(t=>Gi(t));for(const e of Object.keys(t)){if(We.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Yi.has(e)||null==t[e]){We.debug("sanitize deleting key: ",e),delete t[e];continue}if("object"==typeof t[e]){We.debug("sanitizing object",e),Gi(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)e.includes(i)&&(We.debug("sanitizing css option",e),t[e]=Vi(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];null!=r&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}We.debug("After sanitization",t)}},"sanitizeDirective"),Vi=qe(t=>{let e=0,r=0;for(const i of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";"{"===i?e++:"}"===i&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),Xi=Object.freeze(Ui),Zi=Bi({},Xi),Ki=[],Qi=Bi({},Xi),Ji=qe((t,e)=>{let r=Bi({},t),i={};for(const t of e)sn(t),i=Bi(i,t);if(r=Bi(r,i),i.theme&&i.theme in Ri){const t=Bi({},gi),e=Bi(t.themeVariables||{},i.themeVariables);r.theme&&r.theme in Ri&&(r.themeVariables=Ri[r.theme].getThemeVariables(e))}return pn(Qi=r),Qi},"updateCurrentConfig"),tn=qe(t=>(Zi=Bi({},Xi),Zi=Bi(Zi,t),t.theme&&Ri[t.theme]&&(Zi.themeVariables=Ri[t.theme].getThemeVariables(t.themeVariables)),Ji(Zi,Ki),Zi),"setSiteConfig"),en=qe(t=>{gi=Bi({},t)},"saveConfigFromInitialize"),rn=qe(t=>(Zi=Bi(Zi,t),Ji(Zi,Ki),Zi),"updateSiteConfig"),nn=qe(()=>Bi({},Zi),"getSiteConfig"),an=qe(t=>(pn(t),Bi(Qi,t),on()),"setConfig"),on=qe(()=>Bi({},Qi),"getConfig"),sn=qe(t=>{t&&(["secure",...Zi.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(We.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&sn(t[e])}))},"sanitize"),ln=qe(t=>{var e;Gi(t),t.fontFamily&&!(null!=(e=t.themeVariables)&&e.fontFamily)&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),Ki.push(t),Ji(Zi,Ki)},"addDirective"),hn=qe((t=Zi)=>{Ji(t,Ki=[])},"reset"),cn={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},dn={},un=qe(t=>{dn[t]||(We.warn(cn[t]),dn[t]=!0)},"issueWarning"),pn=qe(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&un("LAZY_LOAD_DEPRECATED")},"checkConfig"),fn=qe(()=>{let t={};gi&&(t=Bi(t,gi));for(const e of Ki)t=Bi(t,e);return t},"getUserDefinedConfig"),gn=/<br\s*\/?>/gi,yn=qe(t=>t?Tn(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),mn=(()=>{let t=!1;return()=>{t||(xn(),t=!0)}})();function xn(){const t="data-temp-href-target";yi.addHook("beforeSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),yi.addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))})}qe(xn,"setupDompurifyHooks");var bn=qe(t=>(mn(),yi.sanitize(t)),"removeScript"),Cn=qe((t,e)=>{var r;if(!1!==(null==(r=e.flowchart)?void 0:r.htmlLabels)){const r=e.securityLevel;"antiscript"===r||"strict"===r?t=bn(t):"loose"!==r&&(t=(t=(t=Tn(t)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),t=Sn(t))}return t},"sanitizeMore"),_n=qe((t,e)=>t&&(e.dompurifyConfig?yi.sanitize(Cn(t,e),e.dompurifyConfig).toString():yi.sanitize(Cn(t,e),{FORBID_TAGS:["style"]}).toString()),"sanitizeText"),kn=qe((t,e)=>"string"==typeof t?_n(t,e):t.flat().map(t=>_n(t,e)),"sanitizeTextOrArray"),wn=qe(t=>gn.test(t),"hasBreaks"),vn=qe(t=>t.split(gn),"splitBreaks"),Sn=qe(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Tn=qe(t=>t.replace(gn,"#br#"),"breakToPlaceholder"),Bn=qe(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),Mn=qe(t=>!(!1===t||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),Ln=qe(function(...t){const e=t.filter(t=>!isNaN(t));return Math.max(...e)},"getMax"),An=qe(function(...t){const e=t.filter(t=>!isNaN(t));return Math.min(...e)},"getMin"),Fn=qe(function(t){const e=t.split(/(,)/),r=[];for(let t=0;t<e.length;t++){let i=e[t];if(","===i&&t>0&&t+1<e.length){const n=e[t-1],a=e[t+1];En(n,a)&&(i=n+","+a,t++,r.pop())}r.push(On(i))}return r.join("")},"parseGenericTypes"),$n=qe((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),En=qe((t,e)=>{const r=$n(t,"~"),i=$n(e,"~");return 1===r&&1===i},"shouldCombineSets"),On=qe(t=>{const e=$n(t,"~");let r=!1;if(e<=1)return t;e%2!=0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const i=[...t];let n=i.indexOf("~"),a=i.lastIndexOf("~");for(;-1!==n&&-1!==a&&n!==a;)i[n]="<",i[a]=">",n=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),Dn=qe(()=>void 0!==window.MathMLElement,"isMathMLSupported"),In=/\$\$(.*)\$\$/g,Nn=qe(t=>{var e;return((null==(e=t.match(In))?void 0:e.length)??0)>0},"hasKatex"),Pn=qe(async(t,e)=>{const r=document.createElement("div");r.innerHTML=await qn(t,e),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");null==i||i.insertAdjacentElement("beforeend",r);const n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),zn=qe(async(t,e)=>{if(!Nn(t))return t;if(!(Dn()||e.legacyMathML||e.forceLegacyMathML))return t.replace(In,"MathML is unsupported in this environment.");{const{default:i}=await Promise.resolve().then(r.bind(r,75662)).then(t=>t.T),n=e.forceLegacyMathML||!Dn()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(gn).map(t=>Nn(t)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${t}</div>`:`<div>${t}</div>`).join("").replace(In,(t,e)=>i.renderToString(e,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),qn=qe(async(t,e)=>_n(await zn(t,e),e),"renderKatexSanitized"),Rn={getRows:yn,sanitizeText:_n,sanitizeTextOrArray:kn,hasBreaks:wn,splitBreaks:vn,lineBreakRegex:gn,removeScript:bn,getUrl:Bn,evaluate:Mn,getMax:Ln,getMin:An},jn=qe(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),Wn=qe(function(t,e,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},"calculateSvgSizeAttrs"),Hn=qe(function(t,e,r,i){const n=Wn(e,r,i);jn(t,n)},"configureSvgSize"),Yn=qe(function(t,e,r,i){const n=e.node().getBBox(),a=n.width,o=n.height;We.info(`SVG bounds: ${a}x${o}`,n);let s=0,l=0;We.info(`Graph bounds: ${s}x${l}`,t),s=a+2*r,l=o+2*r,We.info(`Calculated bounds: ${s}x${l}`),Hn(e,l,s,i);const h=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;e.attr("viewBox",h)},"setupGraphViewbox"),Un={},Gn=qe((t,e,r)=>{let i="";return t in Un&&Un[t]?i=Un[t](r):We.warn(`No theme found for ${t}`),` & {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n fill: ${r.textColor}\n }\n @keyframes edge-animation-frame {\n from {\n stroke-dashoffset: 0;\n }\n }\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n & .edge-animation-slow {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 50s linear infinite;\n stroke-linecap: round;\n }\n & .edge-animation-fast {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 20s linear infinite;\n stroke-linecap: round;\n }\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${r.errorBkgColor};\n }\n & .error-text {\n fill: ${r.errorTextColor};\n stroke: ${r.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 1px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n & .edge-thickness-invisible {\n stroke-width: 0;\n fill: none;\n }\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${r.lineColor};\n stroke: ${r.lineColor};\n }\n & .marker.cross {\n stroke: ${r.lineColor};\n }\n\n & svg {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n }\n & p {\n margin: 0\n }\n\n ${i}\n\n ${e}\n`},"getStyles"),Vn=qe((t,e)=>{void 0!==e&&(Un[t]=e)},"addStylesForDiagram"),Xn=Gn,Zn={};Re(Zn,{clear:()=>ra,getAccDescription:()=>oa,getAccTitle:()=>na,getDiagramTitle:()=>la,setAccDescription:()=>aa,setAccTitle:()=>ia,setDiagramTitle:()=>sa});var Kn,Qn="",Jn="",ta="",ea=qe(t=>_n(t,on()),"sanitizeText"),ra=qe(()=>{Qn="",ta="",Jn=""},"clear"),ia=qe(t=>{Qn=ea(t).replace(/^\s+/g,"")},"setAccTitle"),na=qe(()=>Qn,"getAccTitle"),aa=qe(t=>{ta=ea(t).replace(/\n\s+/g,"\n")},"setAccDescription"),oa=qe(()=>ta,"getAccDescription"),sa=qe(t=>{Jn=ea(t)},"setDiagramTitle"),la=qe(()=>Jn,"getDiagramTitle"),ha=We,ca=He,da=on,ua=an,pa=Xi,fa=qe(t=>_n(t,da()),"sanitizeText"),ga=Yn,ya=qe(()=>Zn,"getCommonDb"),ma={},xa=qe((t,e,r)=>{var i;ma[t]&&ha.warn(`Diagram with id ${t} already registered. Overwriting.`),ma[t]=e,r&&vi(t,r),Vn(t,e.styles),null==(i=e.injectUtils)||i.call(e,ha,ca,da,fa,ga,ya(),()=>{})},"registerDiagram"),ba=qe(t=>{if(t in ma)return ma[t];throw new Ca(t)},"getDiagram"),Ca=(Kn=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},qe(Kn,"DiagramNotFoundError"),Kn),_a={value:()=>{}};function ka(){for(var t,e=0,r=arguments.length,i={};e<r;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new wa(i)}function wa(t){this._=t}function va(t,e){for(var r,i=0,n=t.length;i<n;++i)if((r=t[i]).name===e)return r.value}function Sa(t,e,r){for(var i=0,n=t.length;i<n;++i)if(t[i].name===e){t[i]=_a,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=r&&t.push({name:e,value:r}),t}wa.prototype=ka.prototype={constructor:wa,on:function(t,e){var r,i=this._,n=function(t,e){return t.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");if(i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:r}})}(t+"",i),a=-1,o=n.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(r=(t=n[a]).type)i[r]=Sa(i[r],t.name,e);else if(null==e)for(r in i)i[r]=Sa(i[r],t.name,null);return this}for(;++a<o;)if((r=(t=n[a]).type)&&(r=va(i[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new wa(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,i,n=new Array(r),a=0;a<r;++a)n[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,r=(i=this._[t]).length;a<r;++a)i[a].value.apply(e,n)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],n=0,a=i.length;n<a;++n)i[n].value.apply(e,r)}};var Ta="http://www.w3.org/1999/xhtml";const Ba={svg:"http://www.w3.org/2000/svg",xhtml:Ta,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ma(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),Ba.hasOwnProperty(e)?{space:Ba[e],local:t}:t}function La(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Ta&&e.documentElement.namespaceURI===Ta?e.createElement(t):e.createElementNS(r,t)}}function Aa(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Fa(t){var e=Ma(t);return(e.local?Aa:La)(e)}function $a(){}function Ea(t){return null==t?$a:function(){return this.querySelector(t)}}function Oa(){return[]}function Da(t){return null==t?Oa:function(){return this.querySelectorAll(t)}}function Ia(t){return function(){return this.matches(t)}}function Na(t){return function(e){return e.matches(t)}}var Pa=Array.prototype.find;function za(){return this.firstElementChild}var qa=Array.prototype.filter;function Ra(){return Array.from(this.children)}function ja(t){return new Array(t.length)}function Wa(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Ha(t,e,r,i,n,a){for(var o,s=0,l=e.length,h=a.length;s<h;++s)(o=e[s])?(o.__data__=a[s],i[s]=o):r[s]=new Wa(t,a[s]);for(;s<l;++s)(o=e[s])&&(n[s]=o)}function Ya(t,e,r,i,n,a,o){var s,l,h,c=new Map,d=e.length,u=a.length,p=new Array(d);for(s=0;s<d;++s)(l=e[s])&&(p[s]=h=o.call(l,l.__data__,s,e)+"",c.has(h)?n[s]=l:c.set(h,l));for(s=0;s<u;++s)h=o.call(t,a[s],s,a)+"",(l=c.get(h))?(i[s]=l,l.__data__=a[s],c.delete(h)):r[s]=new Wa(t,a[s]);for(s=0;s<d;++s)(l=e[s])&&c.get(p[s])===l&&(n[s]=l)}function Ua(t){return t.__data__}function Ga(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Va(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Xa(t){return function(){this.removeAttribute(t)}}function Za(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ka(t,e){return function(){this.setAttribute(t,e)}}function Qa(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ja(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}function to(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function eo(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ro(t){return function(){this.style.removeProperty(t)}}function io(t,e,r){return function(){this.style.setProperty(t,e,r)}}function no(t,e,r){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function ao(t,e){return t.style.getPropertyValue(e)||eo(t).getComputedStyle(t,null).getPropertyValue(e)}function oo(t){return function(){delete this[t]}}function so(t,e){return function(){this[t]=e}}function lo(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}function ho(t){return t.trim().split(/^|\s+/)}function co(t){return t.classList||new uo(t)}function uo(t){this._node=t,this._names=ho(t.getAttribute("class")||"")}function po(t,e){for(var r=co(t),i=-1,n=e.length;++i<n;)r.add(e[i])}function fo(t,e){for(var r=co(t),i=-1,n=e.length;++i<n;)r.remove(e[i])}function go(t){return function(){po(this,t)}}function yo(t){return function(){fo(this,t)}}function mo(t,e){return function(){(e.apply(this,arguments)?po:fo)(this,t)}}function xo(){this.textContent=""}function bo(t){return function(){this.textContent=t}}function Co(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function _o(){this.innerHTML=""}function ko(t){return function(){this.innerHTML=t}}function wo(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function vo(){this.nextSibling&&this.parentNode.appendChild(this)}function So(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function To(){return null}function Bo(){var t=this.parentNode;t&&t.removeChild(this)}function Mo(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Lo(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ao(t){return function(){var e=this.__on;if(e){for(var r,i=0,n=-1,a=e.length;i<a;++i)r=e[i],t.type&&r.type!==t.type||r.name!==t.name?e[++n]=r:this.removeEventListener(r.type,r.listener,r.options);++n?e.length=n:delete this.__on}}}function Fo(t,e,r){return function(){var i,n=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(n)for(var o=0,s=n.length;o<s;++o)if((i=n[o]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),void(i.value=e);this.addEventListener(t.type,a,r),i={type:t.type,name:t.name,value:e,listener:a,options:r},n?n.push(i):this.__on=[i]}}function $o(t,e,r){var i=eo(t),n=i.CustomEvent;"function"==typeof n?n=new n(e,r):(n=i.document.createEvent("Event"),r?(n.initEvent(e,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function Eo(t,e){return function(){return $o(this,t,e)}}function Oo(t,e){return function(){return $o(this,t,e.apply(this,arguments))}}Wa.prototype={constructor:Wa,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},uo.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Do=[null];function Io(t,e){this._groups=t,this._parents=e}function No(){return new Io([[document.documentElement]],Do)}function Po(t){return"string"==typeof t?new Io([[document.querySelector(t)]],[document.documentElement]):new Io([[t]],Do)}function zo(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function qo(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}function Ro(){}Io.prototype=No.prototype={constructor:Io,select:function(t){"function"!=typeof t&&(t=Ea(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var a,o,s=e[n],l=s.length,h=i[n]=new Array(l),c=0;c<l;++c)(a=s[c])&&(o=t.call(a,a.__data__,c,s))&&("__data__"in a&&(o.__data__=a.__data__),h[c]=o);return new Io(i,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return function(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}(t.apply(this,arguments))}}(t):Da(t);for(var e=this._groups,r=e.length,i=[],n=[],a=0;a<r;++a)for(var o,s=e[a],l=s.length,h=0;h<l;++h)(o=s[h])&&(i.push(t.call(o,o.__data__,h,s)),n.push(o));return new Io(i,n)},selectChild:function(t){return this.select(null==t?za:function(t){return function(){return Pa.call(this.children,t)}}("function"==typeof t?t:Na(t)))},selectChildren:function(t){return this.selectAll(null==t?Ra:function(t){return function(){return qa.call(this.children,t)}}("function"==typeof t?t:Na(t)))},filter:function(t){"function"!=typeof t&&(t=Ia(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var a,o=e[n],s=o.length,l=i[n]=[],h=0;h<s;++h)(a=o[h])&&t.call(a,a.__data__,h,o)&&l.push(a);return new Io(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Ua);var r=e?Ya:Ha,i=this._parents,n=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var a=n.length,o=new Array(a),s=new Array(a),l=new Array(a),h=0;h<a;++h){var c=i[h],d=n[h],u=d.length,p=Ga(t.call(c,c&&c.__data__,h,i)),f=p.length,g=s[h]=new Array(f),y=o[h]=new Array(f);r(c,d,g,y,l[h]=new Array(u),p,e);for(var m,x,b=0,C=0;b<f;++b)if(m=g[b]){for(b>=C&&(C=b+1);!(x=y[C])&&++C<f;);m._next=x||null}}return(o=new Io(o,i))._enter=s,o._exit=l,o},enter:function(){return new Io(this._enter||this._groups.map(ja),this._parents)},exit:function(){return new Io(this._exit||this._groups.map(ja),this._parents)},join:function(t,e,r){var i=this.enter(),n=this,a=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(n=e(n))&&(n=n.selection()),null==r?a.remove():r(a),i&&n?i.merge(n).order():n},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,i=e._groups,n=r.length,a=i.length,o=Math.min(n,a),s=new Array(n),l=0;l<o;++l)for(var h,c=r[l],d=i[l],u=c.length,p=s[l]=new Array(u),f=0;f<u;++f)(h=c[f]||d[f])&&(p[f]=h);for(;l<n;++l)s[l]=r[l];return new Io(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var i,n=t[e],a=n.length-1,o=n[a];--a>=0;)(i=n[a])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=Va);for(var r=this._groups,i=r.length,n=new Array(i),a=0;a<i;++a){for(var o,s=r[a],l=s.length,h=n[a]=new Array(l),c=0;c<l;++c)(o=s[c])&&(h[c]=o);h.sort(e)}return new Io(n,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],n=0,a=i.length;n<a;++n){var o=i[n];if(o)return o}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,i=e.length;r<i;++r)for(var n,a=e[r],o=0,s=a.length;o<s;++o)(n=a[o])&&t.call(n,n.__data__,o,a);return this},attr:function(t,e){var r=Ma(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((null==e?r.local?Za:Xa:"function"==typeof e?r.local?to:Ja:r.local?Qa:Ka)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((null==e?ro:"function"==typeof e?no:io)(t,e,r??"")):ao(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?oo:"function"==typeof e?lo:so)(t,e)):this.node()[t]},classed:function(t,e){var r=ho(t+"");if(arguments.length<2){for(var i=co(this.node()),n=-1,a=r.length;++n<a;)if(!i.contains(r[n]))return!1;return!0}return this.each(("function"==typeof e?mo:e?go:yo)(r,e))},text:function(t){return arguments.length?this.each(null==t?xo:("function"==typeof t?Co:bo)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?_o:("function"==typeof t?wo:ko)(t)):this.node().innerHTML},raise:function(){return this.each(vo)},lower:function(){return this.each(So)},append:function(t){var e="function"==typeof t?t:Fa(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r="function"==typeof t?t:Fa(t),i=null==e?To:"function"==typeof e?e:Ea(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(Bo)},clone:function(t){return this.select(t?Lo:Mo)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var i,n,a=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");return r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),{type:t,name:e}})}(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?Fo:Ao,i=0;i<o;++i)this.each(s(a[i],e,r));return this}var s=this.node().__on;if(s)for(var l,h=0,c=s.length;h<c;++h)for(i=0,l=s[h];i<o;++i)if((n=a[i]).type===l.type&&n.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Oo:Eo)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i,n=t[e],a=0,o=n.length;a<o;++a)(i=n[a])&&(yield i)}};var jo=.7,Wo=1/jo,Ho="\\s*([+-]?\\d+)\\s*",Yo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Uo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Go=/^#([0-9a-f]{3,8})$/,Vo=new RegExp(`^rgb\\(${Ho},${Ho},${Ho}\\)$`),Xo=new RegExp(`^rgb\\(${Uo},${Uo},${Uo}\\)$`),Zo=new RegExp(`^rgba\\(${Ho},${Ho},${Ho},${Yo}\\)$`),Ko=new RegExp(`^rgba\\(${Uo},${Uo},${Uo},${Yo}\\)$`),Qo=new RegExp(`^hsl\\(${Yo},${Uo},${Uo}\\)$`),Jo=new RegExp(`^hsla\\(${Yo},${Uo},${Uo},${Yo}\\)$`),ts={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function es(){return this.rgb().formatHex()}function rs(){return this.rgb().formatRgb()}function is(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Go.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?ns(e):3===r?new ls(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?as(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?as(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Vo.exec(t))?new ls(e[1],e[2],e[3],1):(e=Xo.exec(t))?new ls(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Zo.exec(t))?as(e[1],e[2],e[3],e[4]):(e=Ko.exec(t))?as(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Qo.exec(t))?fs(e[1],e[2]/100,e[3]/100,1):(e=Jo.exec(t))?fs(e[1],e[2]/100,e[3]/100,e[4]):ts.hasOwnProperty(t)?ns(ts[t]):"transparent"===t?new ls(NaN,NaN,NaN,0):null}function ns(t){return new ls(t>>16&255,t>>8&255,255&t,1)}function as(t,e,r,i){return i<=0&&(t=e=r=NaN),new ls(t,e,r,i)}function os(t){return t instanceof Ro||(t=is(t)),t?new ls((t=t.rgb()).r,t.g,t.b,t.opacity):new ls}function ss(t,e,r,i){return 1===arguments.length?os(t):new ls(t,e,r,i??1)}function ls(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}function hs(){return`#${ps(this.r)}${ps(this.g)}${ps(this.b)}`}function cs(){const t=ds(this.opacity);return`${1===t?"rgb(":"rgba("}${us(this.r)}, ${us(this.g)}, ${us(this.b)}${1===t?")":`, ${t})`}`}function ds(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function us(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ps(t){return((t=us(t))<16?"0":"")+t.toString(16)}function fs(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new ys(t,e,r,i)}function gs(t){if(t instanceof ys)return new ys(t.h,t.s,t.l,t.opacity);if(t instanceof Ro||(t=is(t)),!t)return new ys;if(t instanceof ys)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,n=Math.min(e,r,i),a=Math.max(e,r,i),o=NaN,s=a-n,l=(a+n)/2;return s?(o=e===a?(r-i)/s+6*(r<i):r===a?(i-e)/s+2:(e-r)/s+4,s/=l<.5?a+n:2-a-n,o*=60):s=l>0&&l<1?0:o,new ys(o,s,l,t.opacity)}function ys(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}function ms(t){return(t=(t||0)%360)<0?t+360:t}function xs(t){return Math.max(0,Math.min(1,t||0))}function bs(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}zo(Ro,is,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:es,formatHex:es,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return gs(this).formatHsl()},formatRgb:rs,toString:rs}),zo(ls,ss,qo(Ro,{brighter(t){return t=null==t?Wo:Math.pow(Wo,t),new ls(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?jo:Math.pow(jo,t),new ls(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ls(us(this.r),us(this.g),us(this.b),ds(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hs,formatHex:hs,formatHex8:function(){return`#${ps(this.r)}${ps(this.g)}${ps(this.b)}${ps(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:cs,toString:cs})),zo(ys,function(t,e,r,i){return 1===arguments.length?gs(t):new ys(t,e,r,i??1)},qo(Ro,{brighter(t){return t=null==t?Wo:Math.pow(Wo,t),new ys(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?jo:Math.pow(jo,t),new ys(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,n=2*r-i;return new ls(bs(t>=240?t-240:t+120,n,i),bs(t,n,i),bs(t<120?t+240:t-120,n,i),this.opacity)},clamp(){return new ys(ms(this.h),xs(this.s),xs(this.l),ds(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=ds(this.opacity);return`${1===t?"hsl(":"hsla("}${ms(this.h)}, ${100*xs(this.s)}%, ${100*xs(this.l)}%${1===t?")":`, ${t})`}`}}));const Cs=t=>()=>t;function _s(t,e){return function(r){return t+r*e}}function ks(t,e){var r=e-t;return r?_s(t,r>180||r<-180?r-360*Math.round(r/360):r):Cs(isNaN(t)?e:t)}function ws(t,e){var r=e-t;return r?_s(t,r):Cs(isNaN(t)?e:t)}const vs=function t(e){var r=function(t){return 1==(t=+t)?ws:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(i){return Math.pow(t+i*e,r)}}(e,r,t):Cs(isNaN(e)?r:e)}}(e);function i(t,e){var i=r((t=ss(t)).r,(e=ss(e)).r),n=r(t.g,e.g),a=r(t.b,e.b),o=ws(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=n(e),t.b=a(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function Ss(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var Ts=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bs=new RegExp(Ts.source,"g");function Ms(t,e){var r,i,n,a=Ts.lastIndex=Bs.lastIndex=0,o=-1,s=[],l=[];for(t+="",e+="";(r=Ts.exec(t))&&(i=Bs.exec(e));)(n=i.index)>a&&(n=e.slice(a,n),s[o]?s[o]+=n:s[++o]=n),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Ss(r,i)})),a=Bs.lastIndex;return a<e.length&&(n=e.slice(a),s[o]?s[o]+=n:s[++o]=n),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var r,i=0;i<e;++i)s[(r=l[i]).i]=r.x(t);return s.join("")})}var Ls,As=180/Math.PI,Fs={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $s(t,e,r,i,n,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*r+e*i)&&(r-=t*l,i-=e*l),(s=Math.sqrt(r*r+i*i))&&(r/=s,i/=s,l/=s),t*i<e*r&&(t=-t,e=-e,l=-l,o=-o),{translateX:n,translateY:a,rotate:Math.atan2(e,t)*As,skewX:Math.atan(l)*As,scaleX:o,scaleY:s}}function Es(t,e,r,i){function n(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,i,n,a,o,s){if(t!==n||i!==a){var l=o.push("translate(",null,e,null,r);s.push({i:l-4,x:Ss(t,n)},{i:l-2,x:Ss(i,a)})}else(n||a)&&o.push("translate("+n+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,r,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:r.push(n(r)+"rotate(",null,i)-2,x:Ss(t,e)})):e&&r.push(n(r)+"rotate("+e+i)}(a.rotate,o.rotate,s,l),function(t,e,r,a){t!==e?a.push({i:r.push(n(r)+"skewX(",null,i)-2,x:Ss(t,e)}):e&&r.push(n(r)+"skewX("+e+i)}(a.skewX,o.skewX,s,l),function(t,e,r,i,a,o){if(t!==r||e!==i){var s=a.push(n(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Ss(t,r)},{i:s-2,x:Ss(e,i)})}else(1!==r||1!==i)&&a.push(n(a)+"scale("+r+","+i+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,r=-1,i=l.length;++r<i;)s[(e=l[r]).i]=e.x(t);return s.join("")}}}var Os,Ds,Is=Es(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Fs:$s(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Ns=Es(function(t){return null!=t&&(Ls||(Ls=document.createElementNS("http://www.w3.org/2000/svg","g")),Ls.setAttribute("transform",t),t=Ls.transform.baseVal.consolidate())?$s((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Fs},", ",")",")"),Ps=0,zs=0,qs=0,Rs=0,js=0,Ws=0,Hs="object"==typeof performance&&performance.now?performance:Date,Ys="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Us(){return js||(Ys(Gs),js=Hs.now()+Ws)}function Gs(){js=0}function Vs(){this._call=this._time=this._next=null}function Xs(t,e,r){var i=new Vs;return i.restart(t,e,r),i}function Zs(){js=(Rs=Hs.now())+Ws,Ps=zs=0;try{!function(){Us(),++Ps;for(var t,e=Os;e;)(t=js-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ps}()}finally{Ps=0,function(){for(var t,e,r=Os,i=1/0;r;)r._call?(i>r._time&&(i=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Os=e);Ds=t,Qs(i)}(),js=0}}function Ks(){var t=Hs.now(),e=t-Rs;e>1e3&&(Ws-=e,Rs=t)}function Qs(t){Ps||(zs&&(zs=clearTimeout(zs)),t-js>24?(t<1/0&&(zs=setTimeout(Zs,t-Hs.now()-Ws)),qs&&(qs=clearInterval(qs))):(qs||(Rs=Hs.now(),qs=setInterval(Ks,1e3)),Ps=1,Ys(Zs)))}function Js(t,e,r){var i=new Vs;return e=null==e?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,r),i}Vs.prototype=Xs.prototype={constructor:Vs,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?Us():+r)+(null==e?0:+e),!this._next&&Ds!==this&&(Ds?Ds._next=this:Os=this,Ds=this),this._call=t,this._time=r,Qs()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qs())}};var tl=ka("start","end","cancel","interrupt"),el=[];function rl(t,e,r,i,n,a){var o=t.__transition;if(o){if(r in o)return}else t.__transition={};!function(t,e,r){var i,n=t.__transition;function a(l){var h,c,d,u;if(1!==r.state)return s();for(h in n)if((u=n[h]).name===r.name){if(3===u.state)return Js(a);4===u.state?(u.state=6,u.timer.stop(),u.on.call("interrupt",t,t.__data__,u.index,u.group),delete n[h]):+h<e&&(u.state=6,u.timer.stop(),u.on.call("cancel",t,t.__data__,u.index,u.group),delete n[h])}if(Js(function(){3===r.state&&(r.state=4,r.timer.restart(o,r.delay,r.time),o(l))}),r.state=2,r.on.call("start",t,t.__data__,r.index,r.group),2===r.state){for(r.state=3,i=new Array(d=r.tween.length),h=0,c=-1;h<d;++h)(u=r.tween[h].value.call(t,t.__data__,r.index,r.group))&&(i[++c]=u);i.length=c+1}}function o(e){for(var n=e<r.duration?r.ease.call(null,e/r.duration):(r.timer.restart(s),r.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(t,n);5===r.state&&(r.on.call("end",t,t.__data__,r.index,r.group),s())}function s(){for(var i in r.state=6,r.timer.stop(),delete n[e],n)return;delete t.__transition}n[e]=r,r.timer=Xs(function(t){r.state=1,r.timer.restart(a,r.delay,r.time),r.delay<=t&&a(t-r.delay)},0,r.time)}(t,r,{name:e,index:i,group:n,on:tl,tween:el,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function il(t,e){var r=al(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function nl(t,e){var r=al(t,e);if(r.state>3)throw new Error("too late; already running");return r}function al(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function ol(t,e){var r,i;return function(){var n=nl(this,t),a=n.tween;if(a!==r)for(var o=0,s=(i=r=a).length;o<s;++o)if(i[o].name===e){(i=i.slice()).splice(o,1);break}n.tween=i}}function sl(t,e,r){var i,n;if("function"!=typeof r)throw new Error;return function(){var a=nl(this,t),o=a.tween;if(o!==i){n=(i=o).slice();for(var s={name:e,value:r},l=0,h=n.length;l<h;++l)if(n[l].name===e){n[l]=s;break}l===h&&n.push(s)}a.tween=n}}function ll(t,e,r){var i=t._id;return t.each(function(){var t=nl(this,i);(t.value||(t.value={}))[e]=r.apply(this,arguments)}),function(t){return al(t,i).value[e]}}function hl(t,e){var r;return("number"==typeof e?Ss:e instanceof is?vs:(r=is(e))?(e=r,vs):Ms)(t,e)}function cl(t){return function(){this.removeAttribute(t)}}function dl(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ul(t,e,r){var i,n,a=r+"";return function(){var o=this.getAttribute(t);return o===a?null:o===i?n:n=e(i=o,r)}}function pl(t,e,r){var i,n,a=r+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===i?n:n=e(i=o,r)}}function fl(t,e,r){var i,n,a;return function(){var o,s,l=r(this);return null==l?void this.removeAttribute(t):(o=this.getAttribute(t))===(s=l+"")?null:o===i&&s===n?a:(n=s,a=e(i=o,l))}}function gl(t,e,r){var i,n,a;return function(){var o,s,l=r(this);return null==l?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:o===i&&s===n?a:(n=s,a=e(i=o,l))}}function yl(t,e){var r,i;function n(){var n=e.apply(this,arguments);return n!==i&&(r=(i=n)&&function(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}(t,n)),r}return n._value=e,n}function ml(t,e){var r,i;function n(){var n=e.apply(this,arguments);return n!==i&&(r=(i=n)&&function(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}(t,n)),r}return n._value=e,n}function xl(t,e){return function(){il(this,t).delay=+e.apply(this,arguments)}}function bl(t,e){return e=+e,function(){il(this,t).delay=e}}function Cl(t,e){return function(){nl(this,t).duration=+e.apply(this,arguments)}}function _l(t,e){return e=+e,function(){nl(this,t).duration=e}}var kl=No.prototype.constructor;function wl(t){return function(){this.style.removeProperty(t)}}var vl=0;function Sl(t,e,r,i){this._groups=t,this._parents=e,this._name=r,this._id=i}function Tl(){return++vl}var Bl=No.prototype;Sl.prototype={constructor:Sl,select:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=Ea(t));for(var i=this._groups,n=i.length,a=new Array(n),o=0;o<n;++o)for(var s,l,h=i[o],c=h.length,d=a[o]=new Array(c),u=0;u<c;++u)(s=h[u])&&(l=t.call(s,s.__data__,u,h))&&("__data__"in s&&(l.__data__=s.__data__),d[u]=l,rl(d[u],e,r,u,d,al(s,r)));return new Sl(a,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=Da(t));for(var i=this._groups,n=i.length,a=[],o=[],s=0;s<n;++s)for(var l,h=i[s],c=h.length,d=0;d<c;++d)if(l=h[d]){for(var u,p=t.call(l,l.__data__,d,h),f=al(l,r),g=0,y=p.length;g<y;++g)(u=p[g])&&rl(u,e,r,g,p,f);a.push(p),o.push(l)}return new Sl(a,o,e,r)},selectChild:Bl.selectChild,selectChildren:Bl.selectChildren,filter:function(t){"function"!=typeof t&&(t=Ia(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var a,o=e[n],s=o.length,l=i[n]=[],h=0;h<s;++h)(a=o[h])&&t.call(a,a.__data__,h,o)&&l.push(a);return new Sl(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,i=e.length,n=r.length,a=Math.min(i,n),o=new Array(i),s=0;s<a;++s)for(var l,h=e[s],c=r[s],d=h.length,u=o[s]=new Array(d),p=0;p<d;++p)(l=h[p]||c[p])&&(u[p]=l);for(;s<i;++s)o[s]=e[s];return new Sl(o,this._parents,this._name,this._id)},selection:function(){return new kl(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=Tl(),i=this._groups,n=i.length,a=0;a<n;++a)for(var o,s=i[a],l=s.length,h=0;h<l;++h)if(o=s[h]){var c=al(o,e);rl(o,t,r,h,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Sl(i,this._parents,t,r)},call:Bl.call,nodes:Bl.nodes,node:Bl.node,size:Bl.size,empty:Bl.empty,each:Bl.each,on:function(t,e){var r=this._id;return arguments.length<2?al(this.node(),r).on.on(t):this.each(function(t,e,r){var i,n,a=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?il:nl;return function(){var o=a(this,t),s=o.on;s!==i&&(n=(i=s).copy()).on(e,r),o.on=n}}(r,t,e))},attr:function(t,e){var r=Ma(t),i="transform"===r?Ns:hl;return this.attrTween(t,"function"==typeof e?(r.local?gl:fl)(r,i,ll(this,"attr."+t,e)):null==e?(r.local?dl:cl)(r):(r.local?pl:ul)(r,i,e))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;var i=Ma(t);return this.tween(r,(i.local?yl:ml)(i,e))},style:function(t,e,r){var i="transform"==(t+="")?Is:hl;return null==e?this.styleTween(t,function(t,e){var r,i,n;return function(){var a=ao(this,t),o=(this.style.removeProperty(t),ao(this,t));return a===o?null:a===r&&o===i?n:n=e(r=a,i=o)}}(t,i)).on("end.style."+t,wl(t)):"function"==typeof e?this.styleTween(t,function(t,e,r){var i,n,a;return function(){var o=ao(this,t),s=r(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=ao(this,t)),o===l?null:o===i&&l===n?a:(n=l,a=e(i=o,s))}}(t,i,ll(this,"style."+t,e))).each(function(t,e){var r,i,n,a,o="style."+e,s="end."+o;return function(){var l=nl(this,t),h=l.on,c=null==l.value[o]?a||(a=wl(e)):void 0;(h!==r||n!==c)&&(i=(r=h).copy()).on(s,n=c),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,r){var i,n,a=r+"";return function(){var o=ao(this,t);return o===a?null:o===i?n:n=e(i=o,r)}}(t,i,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,function(t,e,r){var i,n;function a(){var a=e.apply(this,arguments);return a!==n&&(i=(n=a)&&function(t,e,r){return function(i){this.style.setProperty(t,e.call(this,i),r)}}(t,a,r)),i}return a._value=e,a}(t,e,r??""))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=e??""}}(ll(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,r;function i(){var i=t.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var i,n=al(this.node(),r).tween,a=0,o=n.length;a<o;++a)if((i=n[a]).name===t)return i.value;return null}return this.each((null==e?ol:sl)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?xl:bl)(e,t)):al(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Cl:_l)(e,t)):al(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){nl(this,t).ease=e}}(e,t)):al(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var r=e.apply(this,arguments);if("function"!=typeof r)throw new Error;nl(this,t).ease=r}}(this._id,t))},end:function(){var t,e,r=this,i=r._id,n=r.size();return new Promise(function(a,o){var s={value:o},l={value:function(){0===--n&&a()}};r.each(function(){var r=nl(this,i),n=r.on;n!==t&&((e=(t=n).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),r.on=e}),0===n&&a()})},[Symbol.iterator]:Bl[Symbol.iterator]};var Ml={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Ll(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}No.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var r,i,n,a=t.__transition,o=!0;if(a){for(n in e=null==e?null:e+"",a)(r=a[n]).name===e?(i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete a[n]):o=!1;o&&delete t.__transition}}(this,t)})},No.prototype.transition=function(t){var e,r;t instanceof Sl?(e=t._id,t=t._name):(e=Tl(),(r=Ml).time=Us(),t=null==t?null:t+"");for(var i=this._groups,n=i.length,a=0;a<n;++a)for(var o,s=i[a],l=s.length,h=0;h<l;++h)(o=s[h])&&rl(o,t,e,h,s,r||Ll(o,e));return new Sl(i,this._parents,t,e)};const Al=Math.PI,Fl=2*Al,$l=1e-6,El=Fl-$l;function Ol(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class Dl{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Ol:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Ol;const r=10**e;return function(t){this._+=t[0];for(let e=1,i=t.length;e<i;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,i){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,e,r,i,n,a){this._append`C${+t},${+e},${+r},${+i},${this._x1=+n},${this._y1=+a}`}arcTo(t,e,r,i,n){if(t=+t,e=+e,r=+r,i=+i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=this._x1,o=this._y1,s=r-t,l=i-e,h=a-t,c=o-e,d=h*h+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(d>$l)if(Math.abs(c*s-l*h)>$l&&n){let u=r-a,p=i-o,f=s*s+l*l,g=u*u+p*p,y=Math.sqrt(f),m=Math.sqrt(d),x=n*Math.tan((Al-Math.acos((f+d-g)/(2*y*m)))/2),b=x/m,C=x/y;Math.abs(b-1)>$l&&this._append`L${t+b*h},${e+b*c}`,this._append`A${n},${n},0,0,${+(c*u>h*p)},${this._x1=t+C*s},${this._y1=e+C*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,i,n,a){if(t=+t,e=+e,a=!!a,(r=+r)<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(i),s=r*Math.sin(i),l=t+o,h=e+s,c=1^a,d=a?i-n:n-i;null===this._x1?this._append`M${l},${h}`:(Math.abs(this._x1-l)>$l||Math.abs(this._y1-h)>$l)&&this._append`L${l},${h}`,r&&(d<0&&(d=d%Fl+Fl),d>El?this._append`A${r},${r},0,1,${c},${t-o},${e-s}A${r},${r},0,1,${c},${this._x1=l},${this._y1=h}`:d>$l&&this._append`A${r},${r},0,${+(d>=Al)},${c},${this._x1=t+r*Math.cos(n)},${this._y1=e+r*Math.sin(n)}`)}rect(t,e,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Il(t){return function(){return t}}const Nl=Math.abs,Pl=Math.atan2,zl=Math.cos,ql=Math.max,Rl=Math.min,jl=Math.sin,Wl=Math.sqrt,Hl=1e-12,Yl=Math.PI,Ul=Yl/2,Gl=2*Yl;function Vl(t){return t>1?0:t<-1?Yl:Math.acos(t)}function Xl(t){return t>=1?Ul:t<=-1?-Ul:Math.asin(t)}function Zl(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new Dl(e)}function Kl(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Ql(t){this._context=t}function Jl(t){return new Ql(t)}function th(t){return t[0]}function eh(t){return t[1]}function rh(t,e){var r=Il(!0),i=null,n=Jl,a=null,o=Zl(s);function s(s){var l,h,c,d=(s=Kl(s)).length,u=!1;for(null==i&&(a=n(c=o())),l=0;l<=d;++l)!(l<d&&r(h=s[l],l,s))===u&&((u=!u)?a.lineStart():a.lineEnd()),u&&a.point(+t(h,l,s),+e(h,l,s));if(c)return a=null,c+""||null}return t="function"==typeof t?t:void 0===t?th:Il(t),e="function"==typeof e?e:void 0===e?eh:Il(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:Il(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:Il(+t),s):e},s.defined=function(t){return arguments.length?(r="function"==typeof t?t:Il(!!t),s):r},s.curve=function(t){return arguments.length?(n=t,null!=i&&(a=n(i)),s):n},s.context=function(t){return arguments.length?(null==t?i=a=null:a=n(i=t),s):i},s}Ql.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};class ih{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function nh(t){return new ih(t,!0)}function ah(t){return new ih(t,!1)}function oh(){}function sh(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function lh(t){this._context=t}function hh(t){return new lh(t)}function ch(t){this._context=t}function dh(t){this._context=t}function uh(t,e){this._basis=new lh(t),this._beta=e}lh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:sh(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:sh(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ch.prototype={areaStart:oh,areaEnd:oh,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:sh(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},dh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:sh(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},uh.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var i,n=t[0],a=e[0],o=t[r]-n,s=e[r]-a,l=-1;++l<=r;)i=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(n+i*o),this._beta*e[l]+(1-this._beta)*(a+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const ph=function t(e){function r(t){return 1===e?new lh(t):new uh(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function fh(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function gh(t,e){this._context=t,this._k=(1-e)/6}gh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:fh(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:fh(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const yh=function t(e){function r(t){return new gh(t,e)}return r.tension=function(e){return t(+e)},r}(0);function mh(t,e){this._context=t,this._k=(1-e)/6}mh.prototype={areaStart:oh,areaEnd:oh,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:fh(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const xh=function t(e){function r(t){return new mh(t,e)}return r.tension=function(e){return t(+e)},r}(0);function bh(t,e){this._context=t,this._k=(1-e)/6}bh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:fh(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ch=function t(e){function r(t){return new bh(t,e)}return r.tension=function(e){return t(+e)},r}(0);function _h(t,e,r){var i=t._x1,n=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Hl){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Hl){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*h+t._x1*t._l23_2a-e*t._l12_2a)/c,o=(o*h+t._y1*t._l23_2a-r*t._l12_2a)/c}t._context.bezierCurveTo(i,n,a,o,t._x2,t._y2)}function kh(t,e){this._context=t,this._alpha=e}kh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:_h(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const wh=function t(e){function r(t){return e?new kh(t,e):new gh(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function vh(t,e){this._context=t,this._alpha=e}vh.prototype={areaStart:oh,areaEnd:oh,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:_h(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Sh=function t(e){function r(t){return e?new vh(t,e):new mh(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Th(t,e){this._context=t,this._alpha=e}Th.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_h(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Bh=function t(e){function r(t){return e?new Th(t,e):new bh(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Mh(t){this._context=t}function Lh(t){return t<0?-1:1}function Ah(t,e,r){var i=t._x1-t._x0,n=e-t._x1,a=(t._y1-t._y0)/(i||n<0&&-0),o=(r-t._y1)/(n||i<0&&-0),s=(a*n+o*i)/(i+n);return(Lh(a)+Lh(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Fh(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function $h(t,e,r){var i=t._x0,n=t._y0,a=t._x1,o=t._y1,s=(a-i)/3;t._context.bezierCurveTo(i+s,n+s*e,a-s,o-s*r,a,o)}function Eh(t){this._context=t}function Oh(t){this._context=new Dh(t)}function Dh(t){this._context=t}function Ih(t){return new Eh(t)}function Nh(t){return new Oh(t)}function Ph(t){this._context=t}function zh(t){var e,r,i=t.length-1,n=new Array(i),a=new Array(i),o=new Array(i);for(n[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<i-1;++e)n[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(n[i-1]=2,a[i-1]=7,o[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=n[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(n[i-1]=o[i-1]/a[i-1],e=i-2;e>=0;--e)n[e]=(o[e]-n[e+1])/a[e];for(a[i-1]=(t[i]+n[i-1])/2,e=0;e<i-1;++e)a[e]=2*t[e+1]-n[e+1];return[n,a]}function qh(t){return new Ph(t)}function Rh(t,e){this._context=t,this._t=e}function jh(t){return new Rh(t,.5)}function Wh(t){return new Rh(t,0)}function Hh(t){return new Rh(t,1)}function Yh(t,e,r){this.k=t,this.x=e,this.y=r}Mh.prototype={areaStart:oh,areaEnd:oh,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Eh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:$h(this,this._t0,Fh(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,$h(this,Fh(this,r=Ah(this,t,e)),r);break;default:$h(this,this._t0,r=Ah(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Oh.prototype=Object.create(Eh.prototype)).point=function(t,e){Eh.prototype.point.call(this,e,t)},Dh.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,i,n,a){this._context.bezierCurveTo(e,t,i,r,a,n)}},Ph.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var i=zh(t),n=zh(e),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(i[0][a],n[0][a],i[1][a],n[1][a],t[o],e[o]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Rh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},Yh.prototype={constructor:Yh,scale:function(t){return 1===t?this:new Yh(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Yh(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Yh.prototype;var Uh=qe(t=>{var e;const{securityLevel:r}=da();let i=Po("body");if("sandbox"===r){const r=(null==(e=Po(`#i${t}`).node())?void 0:e.contentDocument)??document;i=Po(r.body)}return i.select(`#${t}`)},"selectSvgElement");function Gh(t){return typeof t>"u"||null===t}function Vh(t){return"object"==typeof t&&null!==t}function Xh(t){return Array.isArray(t)?t:Gh(t)?[]:[t]}function Zh(t,e){var r,i,n,a;if(e)for(r=0,i=(a=Object.keys(e)).length;r<i;r+=1)t[n=a[r]]=e[n];return t}function Kh(t,e){var r,i="";for(r=0;r<e;r+=1)i+=t;return i}function Qh(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}qe(Gh,"isNothing"),qe(Vh,"isObject"),qe(Xh,"toArray"),qe(Zh,"extend"),qe(Kh,"repeat"),qe(Qh,"isNegativeZero");var Jh={isNothing:Gh,isObject:Vh,toArray:Xh,repeat:Kh,isNegativeZero:Qh,extend:Zh};function tc(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),i+" "+r):i}function ec(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=tc(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}qe(tc,"formatError"),qe(ec,"YAMLException$1"),ec.prototype=Object.create(Error.prototype),ec.prototype.constructor=ec,ec.prototype.toString=qe(function(t){return this.name+": "+tc(this,t)},"toString");var rc=ec;function ic(t,e,r,i,n){var a="",o="",s=Math.floor(n/2)-1;return i-e>s&&(e=i-s+(a=" ... ").length),r-i>s&&(r=i+s-(o=" ...").length),{str:a+t.slice(e,r).replace(/\t/g,"→")+o,pos:i-e+a.length}}function nc(t,e){return Jh.repeat(" ",e-t.length)+t}function ac(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r,i=/\r?\n|\r|\0/g,n=[0],a=[],o=-1;r=i.exec(t.buffer);)a.push(r.index),n.push(r.index+r[0].length),t.position<=r.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var s,l,h="",c=Math.min(t.line+e.linesAfter,a.length).toString().length,d=e.maxLength-(e.indent+c+3);for(s=1;s<=e.linesBefore&&!(o-s<0);s++)l=ic(t.buffer,n[o-s],a[o-s],t.position-(n[o]-n[o-s]),d),h=Jh.repeat(" ",e.indent)+nc((t.line-s+1).toString(),c)+" | "+l.str+"\n"+h;for(l=ic(t.buffer,n[o],a[o],t.position,d),h+=Jh.repeat(" ",e.indent)+nc((t.line+1).toString(),c)+" | "+l.str+"\n",h+=Jh.repeat("-",e.indent+c+3+l.pos)+"^\n",s=1;s<=e.linesAfter&&!(o+s>=a.length);s++)l=ic(t.buffer,n[o+s],a[o+s],t.position-(n[o]-n[o+s]),d),h+=Jh.repeat(" ",e.indent)+nc((t.line+s+1).toString(),c)+" | "+l.str+"\n";return h.replace(/\n$/,"")}qe(ic,"getLine"),qe(nc,"padStart"),qe(ac,"makeSnippet");var oc=ac,sc=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],lc=["scalar","sequence","mapping"];function hc(t){var e={};return null!==t&&Object.keys(t).forEach(function(r){t[r].forEach(function(t){e[String(t)]=r})}),e}function cc(t,e){if(e=e||{},Object.keys(e).forEach(function(e){if(-1===sc.indexOf(e))throw new rc('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=hc(e.styleAliases||null),-1===lc.indexOf(this.kind))throw new rc('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}qe(hc,"compileStyleAliases"),qe(cc,"Type$1");var dc=cc;function uc(t,e){var r=[];return t[e].forEach(function(t){var e=r.length;r.forEach(function(r,i){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=i)}),r[e]=t}),r}function pc(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for(qe(i,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return r}function fc(t){return this.extend(t)}qe(uc,"compileList"),qe(pc,"compileMap"),qe(fc,"Schema$1"),fc.prototype.extend=qe(function(t){var e=[],r=[];if(t instanceof dc)r.push(t);else if(Array.isArray(t))r=r.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new rc("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit))}e.forEach(function(t){if(!(t instanceof dc))throw new rc("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new rc("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new rc("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof dc))throw new rc("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(fc.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=uc(i,"implicit"),i.compiledExplicit=uc(i,"explicit"),i.compiledTypeMap=pc(i.compiledImplicit,i.compiledExplicit),i},"extend");var gc=fc,yc=new dc("tag:yaml.org,2002:str",{kind:"scalar",construct:qe(function(t){return null!==t?t:""},"construct")}),mc=new dc("tag:yaml.org,2002:seq",{kind:"sequence",construct:qe(function(t){return null!==t?t:[]},"construct")}),xc=new dc("tag:yaml.org,2002:map",{kind:"mapping",construct:qe(function(t){return null!==t?t:{}},"construct")}),bc=new gc({explicit:[yc,mc,xc]});function Cc(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function _c(){return null}function kc(t){return null===t}qe(Cc,"resolveYamlNull"),qe(_c,"constructYamlNull"),qe(kc,"isNull");var wc=new dc("tag:yaml.org,2002:null",{kind:"scalar",resolve:Cc,construct:_c,predicate:kc,represent:{canonical:qe(function(){return"~"},"canonical"),lowercase:qe(function(){return"null"},"lowercase"),uppercase:qe(function(){return"NULL"},"uppercase"),camelcase:qe(function(){return"Null"},"camelcase"),empty:qe(function(){return""},"empty")},defaultStyle:"lowercase"});function vc(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function Sc(t){return"true"===t||"True"===t||"TRUE"===t}function Tc(t){return"[object Boolean]"===Object.prototype.toString.call(t)}qe(vc,"resolveYamlBoolean"),qe(Sc,"constructYamlBoolean"),qe(Tc,"isBoolean");var Bc=new dc("tag:yaml.org,2002:bool",{kind:"scalar",resolve:vc,construct:Sc,predicate:Tc,represent:{lowercase:qe(function(t){return t?"true":"false"},"lowercase"),uppercase:qe(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:qe(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function Mc(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Lc(t){return 48<=t&&t<=55}function Ac(t){return 48<=t&&t<=57}function Fc(t){if(null===t)return!1;var e,r=t.length,i=0,n=!1;if(!r)return!1;if(("-"===(e=t[i])||"+"===e)&&(e=t[++i]),"0"===e){if(i+1===r)return!0;if("b"===(e=t[++i])){for(i++;i<r;i++)if("_"!==(e=t[i])){if("0"!==e&&"1"!==e)return!1;n=!0}return n&&"_"!==e}if("x"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!Mc(t.charCodeAt(i)))return!1;n=!0}return n&&"_"!==e}if("o"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!Lc(t.charCodeAt(i)))return!1;n=!0}return n&&"_"!==e}}if("_"===e)return!1;for(;i<r;i++)if("_"!==(e=t[i])){if(!Ac(t.charCodeAt(i)))return!1;n=!0}return!(!n||"_"===e)}function $c(t){var e,r=t,i=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),("-"===(e=r[0])||"+"===e)&&("-"===e&&(i=-1),e=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===e){if("b"===r[1])return i*parseInt(r.slice(2),2);if("x"===r[1])return i*parseInt(r.slice(2),16);if("o"===r[1])return i*parseInt(r.slice(2),8)}return i*parseInt(r,10)}function Ec(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!Jh.isNegativeZero(t)}qe(Mc,"isHexCode"),qe(Lc,"isOctCode"),qe(Ac,"isDecCode"),qe(Fc,"resolveYamlInteger"),qe($c,"constructYamlInteger"),qe(Ec,"isInteger");var Oc=new dc("tag:yaml.org,2002:int",{kind:"scalar",resolve:Fc,construct:$c,predicate:Ec,represent:{binary:qe(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:qe(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:qe(function(t){return t.toString(10)},"decimal"),hexadecimal:qe(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"]}}),Dc=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Ic(t){return!(null===t||!Dc.test(t)||"_"===t[t.length-1])}function Nc(t){var e,r;return r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:r*parseFloat(e,10)}qe(Ic,"resolveYamlFloat"),qe(Nc,"constructYamlFloat");var Pc=/^[-+]?[0-9]+e/;function zc(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Jh.isNegativeZero(t))return"-0.0";return r=t.toString(10),Pc.test(r)?r.replace("e",".e"):r}function qc(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||Jh.isNegativeZero(t))}qe(zc,"representYamlFloat"),qe(qc,"isFloat");var Rc=new dc("tag:yaml.org,2002:float",{kind:"scalar",resolve:Ic,construct:Nc,predicate:qc,represent:zc,defaultStyle:"lowercase"}),jc=bc.extend({implicit:[wc,Bc,Oc,Rc]}),Wc=jc,Hc=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Yc=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 Uc(t){return null!==t&&(null!==Hc.exec(t)||null!==Yc.exec(t))}function Gc(t){var e,r,i,n,a,o,s,l,h=0,c=null;if(null===(e=Hc.exec(t))&&(e=Yc.exec(t)),null===e)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(a=+e[4],o=+e[5],s=+e[6],e[7]){for(h=e[7].slice(0,3);h.length<3;)h+="0";h=+h}return e[9]&&(c=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(c=-c)),l=new Date(Date.UTC(r,i,n,a,o,s,h)),c&&l.setTime(l.getTime()-c),l}function Vc(t){return t.toISOString()}qe(Uc,"resolveYamlTimestamp"),qe(Gc,"constructYamlTimestamp"),qe(Vc,"representYamlTimestamp");var Xc=new dc("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Uc,construct:Gc,instanceOf:Date,represent:Vc});function Zc(t){return"<<"===t||null===t}qe(Zc,"resolveYamlMerge");var Kc=new dc("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Zc}),Qc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function Jc(t){if(null===t)return!1;var e,r,i=0,n=t.length,a=Qc;for(r=0;r<n;r++)if(!((e=a.indexOf(t.charAt(r)))>64)){if(e<0)return!1;i+=6}return i%8==0}function td(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,a=Qc,o=0,s=[];for(e=0;e<n;e++)e%4==0&&e&&(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)),o=o<<6|a.indexOf(i.charAt(e));return 0==(r=n%4*6)?(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)):18===r?(s.push(o>>10&255),s.push(o>>2&255)):12===r&&s.push(o>>4&255),new Uint8Array(s)}function ed(t){var e,r,i="",n=0,a=t.length,o=Qc;for(e=0;e<a;e++)e%3==0&&e&&(i+=o[n>>18&63],i+=o[n>>12&63],i+=o[n>>6&63],i+=o[63&n]),n=(n<<8)+t[e];return 0==(r=a%3)?(i+=o[n>>18&63],i+=o[n>>12&63],i+=o[n>>6&63],i+=o[63&n]):2===r?(i+=o[n>>10&63],i+=o[n>>4&63],i+=o[n<<2&63],i+=o[64]):1===r&&(i+=o[n>>2&63],i+=o[n<<4&63],i+=o[64],i+=o[64]),i}function rd(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}qe(Jc,"resolveYamlBinary"),qe(td,"constructYamlBinary"),qe(ed,"representYamlBinary"),qe(rd,"isBinary");var id=new dc("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Jc,construct:td,predicate:rd,represent:ed}),nd=Object.prototype.hasOwnProperty,ad=Object.prototype.toString;function od(t){if(null===t)return!0;var e,r,i,n,a,o=[],s=t;for(e=0,r=s.length;e<r;e+=1){if(i=s[e],a=!1,"[object Object]"!==ad.call(i))return!1;for(n in i)if(nd.call(i,n)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==o.indexOf(n))return!1;o.push(n)}return!0}function sd(t){return null!==t?t:[]}qe(od,"resolveYamlOmap"),qe(sd,"constructYamlOmap");var ld=new dc("tag:yaml.org,2002:omap",{kind:"sequence",resolve:od,construct:sd}),hd=Object.prototype.toString;function cd(t){if(null===t)return!0;var e,r,i,n,a,o=t;for(a=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],"[object Object]"!==hd.call(i)||1!==(n=Object.keys(i)).length)return!1;a[e]=[n[0],i[n[0]]]}return!0}function dd(t){if(null===t)return[];var e,r,i,n,a,o=t;for(a=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),a[e]=[n[0],i[n[0]]];return a}qe(cd,"resolveYamlPairs"),qe(dd,"constructYamlPairs");var ud=new dc("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:cd,construct:dd}),pd=Object.prototype.hasOwnProperty;function fd(t){if(null===t)return!0;var e,r=t;for(e in r)if(pd.call(r,e)&&null!==r[e])return!1;return!0}function gd(t){return null!==t?t:{}}qe(fd,"resolveYamlSet"),qe(gd,"constructYamlSet");var yd=new dc("tag:yaml.org,2002:set",{kind:"mapping",resolve:fd,construct:gd}),md=Wc.extend({implicit:[Xc,Kc],explicit:[id,ld,ud,yd]}),xd=Object.prototype.hasOwnProperty,bd=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Cd=/[\x85\u2028\u2029]/,_d=/[,\[\]\{\}]/,kd=/^(?:!|!!|![a-z\-]+!)$/i,wd=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function vd(t){return Object.prototype.toString.call(t)}function Sd(t){return 10===t||13===t}function Td(t){return 9===t||32===t}function Bd(t){return 9===t||32===t||10===t||13===t}function Md(t){return 44===t||91===t||93===t||123===t||125===t}function Ld(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function Ad(t){return 120===t?2:117===t?4:85===t?8:0}function Fd(t){return 48<=t&&t<=57?t-48:-1}function $d(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"
":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function Ed(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}qe(vd,"_class"),qe(Sd,"is_EOL"),qe(Td,"is_WHITE_SPACE"),qe(Bd,"is_WS_OR_EOL"),qe(Md,"is_FLOW_INDICATOR"),qe(Ld,"fromHexCode"),qe(Ad,"escapedHexLen"),qe(Fd,"fromDecimalCode"),qe($d,"simpleEscapeSequence"),qe(Ed,"charFromCodepoint");var Od,Dd=new Array(256),Id=new Array(256);for(Od=0;Od<256;Od++)Dd[Od]=$d(Od)?1:0,Id[Od]=$d(Od);function Nd(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||md,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Pd(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=oc(r),new rc(e,r)}function zd(t,e){throw Pd(t,e)}function qd(t,e){t.onWarning&&t.onWarning.call(null,Pd(t,e))}qe(Nd,"State$1"),qe(Pd,"generateError"),qe(zd,"throwError"),qe(qd,"throwWarning");var Rd={YAML:qe(function(t,e,r){var i,n,a;null!==t.version&&zd(t,"duplication of %YAML directive"),1!==r.length&&zd(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&zd(t,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),a=parseInt(i[2],10),1!==n&&zd(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&qd(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:qe(function(t,e,r){var i,n;2!==r.length&&zd(t,"TAG directive accepts exactly two arguments"),i=r[0],n=r[1],kd.test(i)||zd(t,"ill-formed tag handle (first argument) of the TAG directive"),xd.call(t.tagMap,i)&&zd(t,'there is a previously declared suffix for "'+i+'" tag handle'),wd.test(n)||zd(t,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{zd(t,"tag prefix is malformed: "+n)}t.tagMap[i]=n},"handleTagDirective")};function jd(t,e,r,i){var n,a,o,s;if(e<r){if(s=t.input.slice(e,r),i)for(n=0,a=s.length;n<a;n+=1)9===(o=s.charCodeAt(n))||32<=o&&o<=1114111||zd(t,"expected valid JSON character");else bd.test(s)&&zd(t,"the stream contains non-printable characters");t.result+=s}}function Wd(t,e,r,i){var n,a,o,s;for(Jh.isObject(r)||zd(t,"cannot merge mappings; the provided source object is unacceptable"),o=0,s=(n=Object.keys(r)).length;o<s;o+=1)a=n[o],xd.call(e,a)||(e[a]=r[a],i[a]=!0)}function Hd(t,e,r,i,n,a,o,s,l){var h,c;if(Array.isArray(n))for(h=0,c=(n=Array.prototype.slice.call(n)).length;h<c;h+=1)Array.isArray(n[h])&&zd(t,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===vd(n[h])&&(n[h]="[object Object]");if("object"==typeof n&&"[object Object]"===vd(n)&&(n="[object Object]"),n=String(n),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(a))for(h=0,c=a.length;h<c;h+=1)Wd(t,e,a[h],r);else Wd(t,e,a,r);else!t.json&&!xd.call(r,n)&&xd.call(e,n)&&(t.line=o||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,zd(t,"duplicated mapping key")),"__proto__"===n?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:a}):e[n]=a,delete r[n];return e}function Yd(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):zd(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Ud(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);0!==n;){for(;Td(n);)9===n&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&35===n)do{n=t.input.charCodeAt(++t.position)}while(10!==n&&13!==n&&0!==n);if(!Sd(n))break;for(Yd(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;32===n;)t.lineIndent++,n=t.input.charCodeAt(++t.position)}return-1!==r&&0!==i&&t.lineIndent<r&&qd(t,"deficient indentation"),i}function Gd(t){var e,r=t.position;return!(45!==(e=t.input.charCodeAt(r))&&46!==e||e!==t.input.charCodeAt(r+1)||e!==t.input.charCodeAt(r+2)||(r+=3,e=t.input.charCodeAt(r),0!==e&&!Bd(e)))}function Vd(t,e){1===e?t.result+=" ":e>1&&(t.result+=Jh.repeat("\n",e-1))}function Xd(t,e,r){var i,n,a,o,s,l,h,c,d=t.kind,u=t.result;if(Bd(c=t.input.charCodeAt(t.position))||Md(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(Bd(i=t.input.charCodeAt(t.position+1))||r&&Md(i)))return!1;for(t.kind="scalar",t.result="",n=a=t.position,o=!1;0!==c;){if(58===c){if(Bd(i=t.input.charCodeAt(t.position+1))||r&&Md(i))break}else if(35===c){if(Bd(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&Gd(t)||r&&Md(c))break;if(Sd(c)){if(s=t.line,l=t.lineStart,h=t.lineIndent,Ud(t,!1,-1),t.lineIndent>=e){o=!0,c=t.input.charCodeAt(t.position);continue}t.position=a,t.line=s,t.lineStart=l,t.lineIndent=h;break}}o&&(jd(t,n,a,!1),Vd(t,t.line-s),n=a=t.position,o=!1),Td(c)||(a=t.position+1),c=t.input.charCodeAt(++t.position)}return jd(t,n,a,!1),!!t.result||(t.kind=d,t.result=u,!1)}function Zd(t,e){var r,i,n;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(jd(t,i,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;i=t.position,t.position++,n=t.position}else Sd(r)?(jd(t,i,n,!0),Vd(t,Ud(t,!1,e)),i=n=t.position):t.position===t.lineStart&&Gd(t)?zd(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);zd(t,"unexpected end of the stream within a single quoted scalar")}function Kd(t,e){var r,i,n,a,o,s;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return jd(t,r,t.position,!0),t.position++,!0;if(92===s){if(jd(t,r,t.position,!0),Sd(s=t.input.charCodeAt(++t.position)))Ud(t,!1,e);else if(s<256&&Dd[s])t.result+=Id[s],t.position++;else if((o=Ad(s))>0){for(n=o,a=0;n>0;n--)(o=Ld(s=t.input.charCodeAt(++t.position)))>=0?a=(a<<4)+o:zd(t,"expected hexadecimal character");t.result+=Ed(a),t.position++}else zd(t,"unknown escape sequence");r=i=t.position}else Sd(s)?(jd(t,r,i,!0),Vd(t,Ud(t,!1,e)),r=i=t.position):t.position===t.lineStart&&Gd(t)?zd(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}zd(t,"unexpected end of the stream within a double quoted scalar")}function Qd(t,e){var r,i,n,a,o,s,l,h,c,d,u,p,f=!0,g=t.tag,y=t.anchor,m=Object.create(null);if(91===(p=t.input.charCodeAt(t.position)))o=93,h=!1,a=[];else{if(123!==p)return!1;o=125,h=!0,a={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),p=t.input.charCodeAt(++t.position);0!==p;){if(Ud(t,!0,e),(p=t.input.charCodeAt(t.position))===o)return t.position++,t.tag=g,t.anchor=y,t.kind=h?"mapping":"sequence",t.result=a,!0;f?44===p&&zd(t,"expected the node content, but found ','"):zd(t,"missed comma between flow collection entries"),u=null,s=l=!1,63===p&&Bd(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,Ud(t,!0,e)),r=t.line,i=t.lineStart,n=t.position,au(t,e,1,!1,!0),d=t.tag,c=t.result,Ud(t,!0,e),p=t.input.charCodeAt(t.position),(l||t.line===r)&&58===p&&(s=!0,p=t.input.charCodeAt(++t.position),Ud(t,!0,e),au(t,e,1,!1,!0),u=t.result),h?Hd(t,a,m,d,c,u,r,i,n):s?a.push(Hd(t,null,m,d,c,u,r,i,n)):a.push(c),Ud(t,!0,e),44===(p=t.input.charCodeAt(t.position))?(f=!0,p=t.input.charCodeAt(++t.position)):f=!1}zd(t,"unexpected end of the stream within a flow collection")}function Jd(t,e){var r,i,n,a,o=1,s=!1,l=!1,h=e,c=0,d=!1;if(124===(a=t.input.charCodeAt(t.position)))i=!1;else{if(62!==a)return!1;i=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)1===o?o=43===a?3:2:zd(t,"repeat of a chomping mode identifier");else{if(!((n=Fd(a))>=0))break;0===n?zd(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?zd(t,"repeat of an indentation width identifier"):(h=e+n-1,l=!0)}if(Td(a)){do{a=t.input.charCodeAt(++t.position)}while(Td(a));if(35===a)do{a=t.input.charCodeAt(++t.position)}while(!Sd(a)&&0!==a)}for(;0!==a;){for(Yd(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!l||t.lineIndent<h)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>h&&(h=t.lineIndent),Sd(a))c++;else{if(t.lineIndent<h){3===o?t.result+=Jh.repeat("\n",s?1+c:c):1===o&&s&&(t.result+="\n");break}for(i?Td(a)?(d=!0,t.result+=Jh.repeat("\n",s?1+c:c)):d?(d=!1,t.result+=Jh.repeat("\n",c+1)):0===c?s&&(t.result+=" "):t.result+=Jh.repeat("\n",c):t.result+=Jh.repeat("\n",s?1+c:c),s=!0,l=!0,c=0,r=t.position;!Sd(a)&&0!==a;)a=t.input.charCodeAt(++t.position);jd(t,r,t.position,!1)}}return!0}function tu(t,e){var r,i,n=t.tag,a=t.anchor,o=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,zd(t,"tab characters must not be used in indentation")),45===i&&Bd(t.input.charCodeAt(t.position+1)));)if(s=!0,t.position++,Ud(t,!0,-1)&&t.lineIndent<=e)o.push(null),i=t.input.charCodeAt(t.position);else if(r=t.line,au(t,e,3,!1,!0),o.push(t.result),Ud(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==i)zd(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!s&&(t.tag=n,t.anchor=a,t.kind="sequence",t.result=o,!0)}function eu(t,e,r){var i,n,a,o,s,l,h,c=t.tag,d=t.anchor,u={},p=Object.create(null),f=null,g=null,y=null,m=!1,x=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=u),h=t.input.charCodeAt(t.position);0!==h;){if(!m&&-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,zd(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),a=t.line,63!==h&&58!==h||!Bd(i)){if(o=t.line,s=t.lineStart,l=t.position,!au(t,r,2,!1,!0))break;if(t.line===a){for(h=t.input.charCodeAt(t.position);Td(h);)h=t.input.charCodeAt(++t.position);if(58===h)Bd(h=t.input.charCodeAt(++t.position))||zd(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Hd(t,u,p,f,g,null,o,s,l),f=g=y=null),x=!0,m=!1,n=!1,f=t.tag,g=t.result;else{if(!x)return t.tag=c,t.anchor=d,!0;zd(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!x)return t.tag=c,t.anchor=d,!0;zd(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===h?(m&&(Hd(t,u,p,f,g,null,o,s,l),f=g=y=null),x=!0,m=!0,n=!0):m?(m=!1,n=!0):zd(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,h=i;if((t.line===a||t.lineIndent>e)&&(m&&(o=t.line,s=t.lineStart,l=t.position),au(t,e,4,!0,n)&&(m?g=t.result:y=t.result),m||(Hd(t,u,p,f,g,y,o,s,l),f=g=y=null),Ud(t,!0,-1),h=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&0!==h)zd(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&Hd(t,u,p,f,g,null,o,s,l),x&&(t.tag=c,t.anchor=d,t.kind="mapping",t.result=u),x}function ru(t){var e,r,i,n,a=!1,o=!1;if(33!==(n=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&zd(t,"duplication of a tag property"),60===(n=t.input.charCodeAt(++t.position))?(a=!0,n=t.input.charCodeAt(++t.position)):33===n?(o=!0,r="!!",n=t.input.charCodeAt(++t.position)):r="!",e=t.position,a){do{n=t.input.charCodeAt(++t.position)}while(0!==n&&62!==n);t.position<t.length?(i=t.input.slice(e,t.position),n=t.input.charCodeAt(++t.position)):zd(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!Bd(n);)33===n&&(o?zd(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),kd.test(r)||zd(t,"named tag handle cannot contain such characters"),o=!0,e=t.position+1)),n=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),_d.test(i)&&zd(t,"tag suffix cannot contain flow indicator characters")}i&&!wd.test(i)&&zd(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch{zd(t,"tag name is malformed: "+i)}return a?t.tag=i:xd.call(t.tagMap,r)?t.tag=t.tagMap[r]+i:"!"===r?t.tag="!"+i:"!!"===r?t.tag="tag:yaml.org,2002:"+i:zd(t,'undeclared tag handle "'+r+'"'),!0}function iu(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&zd(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!Bd(r)&&!Md(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&zd(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function nu(t){var e,r,i;if(42!==(i=t.input.charCodeAt(t.position)))return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!Bd(i)&&!Md(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&zd(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),xd.call(t.anchorMap,r)||zd(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Ud(t,!0,-1),!0}function au(t,e,r,i,n){var a,o,s,l,h,c,d,u,p,f=1,g=!1,y=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=o=s=4===r||3===r,i&&Ud(t,!0,-1)&&(g=!0,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)),1===f)for(;ru(t)||iu(t);)Ud(t,!0,-1)?(g=!0,s=a,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)):s=!1;if(s&&(s=g||n),(1===f||4===r)&&(u=1===r||2===r?e:e+1,p=t.position-t.lineStart,1===f?s&&(tu(t,p)||eu(t,p,u))||Qd(t,u)?y=!0:(o&&Jd(t,u)||Zd(t,u)||Kd(t,u)?y=!0:nu(t)?(y=!0,(null!==t.tag||null!==t.anchor)&&zd(t,"alias node should not have any properties")):Xd(t,u,1===r)&&(y=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===f&&(y=s&&tu(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&zd(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,h=t.implicitTypes.length;l<h;l+=1)if((d=t.implicitTypes[l]).resolve(t.result)){t.result=d.construct(t.result),t.tag=d.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(xd.call(t.typeMap[t.kind||"fallback"],t.tag))d=t.typeMap[t.kind||"fallback"][t.tag];else for(d=null,l=0,h=(c=t.typeMap.multi[t.kind||"fallback"]).length;l<h;l+=1)if(t.tag.slice(0,c[l].tag.length)===c[l].tag){d=c[l];break}d||zd(t,"unknown tag !<"+t.tag+">"),null!==t.result&&d.kind!==t.kind&&zd(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+d.kind+'", not "'+t.kind+'"'),d.resolve(t.result,t.tag)?(t.result=d.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):zd(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||y}function ou(t){var e,r,i,n,a=t.position,o=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(n=t.input.charCodeAt(t.position))&&(Ud(t,!0,-1),n=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==n));){for(o=!0,n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!Bd(n);)n=t.input.charCodeAt(++t.position);for(i=[],(r=t.input.slice(e,t.position)).length<1&&zd(t,"directive name must not be less than one character in length");0!==n;){for(;Td(n);)n=t.input.charCodeAt(++t.position);if(35===n){do{n=t.input.charCodeAt(++t.position)}while(0!==n&&!Sd(n));break}if(Sd(n))break;for(e=t.position;0!==n&&!Bd(n);)n=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position))}0!==n&&Yd(t),xd.call(Rd,r)?Rd[r](t,r,i):qd(t,'unknown document directive "'+r+'"')}Ud(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,Ud(t,!0,-1)):o&&zd(t,"directives end mark is expected"),au(t,t.lineIndent-1,4,!1,!0),Ud(t,!0,-1),t.checkLineBreaks&&Cd.test(t.input.slice(a,t.position))&&qd(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Gd(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,Ud(t,!0,-1)):t.position<t.length-1&&zd(t,"end of the stream or a document separator is expected")}function su(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var r=new Nd(t,e),i=t.indexOf("\0");for(-1!==i&&(r.position=i,zd(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)ou(r);return r.documents}function lu(t,e){var r=su(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new rc("expected a single document in the stream, but found more")}}qe(jd,"captureSegment"),qe(Wd,"mergeMappings"),qe(Hd,"storeMappingPair"),qe(Yd,"readLineBreak"),qe(Ud,"skipSeparationSpace"),qe(Gd,"testDocumentSeparator"),qe(Vd,"writeFoldedLines"),qe(Xd,"readPlainScalar"),qe(Zd,"readSingleQuotedScalar"),qe(Kd,"readDoubleQuotedScalar"),qe(Qd,"readFlowCollection"),qe(Jd,"readBlockScalar"),qe(tu,"readBlockSequence"),qe(eu,"readBlockMapping"),qe(ru,"readTagProperty"),qe(iu,"readAnchorProperty"),qe(nu,"readAlias"),qe(au,"composeNode"),qe(ou,"readDocument"),qe(su,"loadDocuments"),qe(function(t,e,r){null!==e&&"object"==typeof e&&typeof r>"u"&&(r=e,e=null);var i=su(t,r);if("function"!=typeof e)return i;for(var n=0,a=i.length;n<a;n+=1)e(i[n])},"loadAll$1"),qe(lu,"load$1");var hu=lu,cu=Object.prototype.toString,du=Object.prototype.hasOwnProperty,uu=65279,pu={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},fu=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],gu=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function yu(t,e){var r,i,n,a,o,s,l;if(null===e)return{};for(r={},n=0,a=(i=Object.keys(e)).length;n<a;n+=1)o=i[n],s=String(e[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(l=t.compiledTypeMap.fallback[o])&&du.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[o]=s;return r}function mu(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else{if(!(t<=4294967295))throw new rc("code point within a string may not be greater than 0xFFFFFFFF");r="U",i=8}return"\\"+r+Jh.repeat("0",i-e.length)+e}function xu(t){this.schema=t.schema||md,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Jh.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=yu(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function bu(t,e){for(var r,i=Jh.repeat(" ",e),n=0,a=-1,o="",s=t.length;n<s;)-1===(a=t.indexOf("\n",n))?(r=t.slice(n),n=s):(r=t.slice(n,a+1),n=a+1),r.length&&"\n"!==r&&(o+=i),o+=r;return o}function Cu(t,e){return"\n"+Jh.repeat(" ",t.indent*e)}function _u(t,e){var r,i;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function ku(t){return 32===t||9===t}function wu(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&t!==uu||65536<=t&&t<=1114111}function vu(t){return wu(t)&&t!==uu&&13!==t&&10!==t}function Su(t,e,r){var i=vu(t),n=i&&!ku(t);return(r?i:i&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!n)||vu(e)&&!ku(e)&&35===t||58===e&&n}function Tu(t){return wu(t)&&t!==uu&&!ku(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function Bu(t){return!ku(t)&&58!==t}function Mu(t,e){var r,i=t.charCodeAt(e);return i>=55296&&i<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1))>=56320&&r<=57343?1024*(i-55296)+r-56320+65536:i}function Lu(t){return/^\n* /.test(t)}function Au(t,e,r,i,n,a,o,s){var l,h=0,c=null,d=!1,u=!1,p=-1!==i,f=-1,g=Tu(Mu(t,0))&&Bu(Mu(t,t.length-1));if(e||o)for(l=0;l<t.length;h>=65536?l+=2:l++){if(!wu(h=Mu(t,l)))return 5;g=g&&Su(h,c,s),c=h}else{for(l=0;l<t.length;h>=65536?l+=2:l++){if(10===(h=Mu(t,l)))d=!0,p&&(u=u||l-f-1>i&&" "!==t[f+1],f=l);else if(!wu(h))return 5;g=g&&Su(h,c,s),c=h}u=u||p&&l-f-1>i&&" "!==t[f+1]}return d||u?r>9&&Lu(t)?5:o?2===a?5:2:u?4:3:!g||o||n(t)?2===a?5:2:1}function Fu(t,e,r,i,n){t.dump=function(){if(0===e.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==fu.indexOf(e)||gu.test(e)))return 2===t.quotingType?'"'+e+'"':"'"+e+"'";var a=t.indent*Math.max(1,r),o=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),s=i||t.flowLevel>-1&&r>=t.flowLevel;function l(e){return _u(t,e)}switch(qe(l,"testAmbiguity"),Au(e,s,t.indent,o,l,t.quotingType,t.forceQuotes&&!i,n)){case 1:return e;case 2:return"'"+e.replace(/'/g,"''")+"'";case 3:return"|"+$u(e,t.indent)+Eu(bu(e,a));case 4:return">"+$u(e,t.indent)+Eu(bu(Ou(e,o),a));case 5:return'"'+Iu(e)+'"';default:throw new rc("impossible error: invalid scalar style")}}()}function $u(t,e){var r=Lu(t)?String(e):"",i="\n"===t[t.length-1];return r+(!i||"\n"!==t[t.length-2]&&"\n"!==t?i?"":"-":"+")+"\n"}function Eu(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function Ou(t,e){for(var r,i,n=/(\n+)([^\n]*)/g,a=(h=void 0,h=-1!==(h=t.indexOf("\n"))?h:t.length,n.lastIndex=h,Du(t.slice(0,h),e)),o="\n"===t[0]||" "===t[0];i=n.exec(t);){var s=i[1],l=i[2];r=" "===l[0],a+=s+(o||r||""===l?"":"\n")+Du(l,e),o=r}var h;return a}function Du(t,e){if(""===t||" "===t[0])return t;for(var r,i,n=/ [^ ]/g,a=0,o=0,s=0,l="";r=n.exec(t);)(s=r.index)-a>e&&(i=o>a?o:s,l+="\n"+t.slice(a,i),a=i+1),o=s;return l+="\n",t.length-a>e&&o>a?l+=t.slice(a,o)+"\n"+t.slice(o+1):l+=t.slice(a),l.slice(1)}function Iu(t){for(var e,r="",i=0,n=0;n<t.length;i>=65536?n+=2:n++)i=Mu(t,n),!(e=pu[i])&&wu(i)?(r+=t[n],i>=65536&&(r+=t[n+1])):r+=e||mu(i);return r}function Nu(t,e,r){var i,n,a,o="",s=t.tag;for(i=0,n=r.length;i<n;i+=1)a=r[i],t.replacer&&(a=t.replacer.call(r,String(i),a)),(ju(t,e,a,!1,!1)||typeof a>"u"&&ju(t,e,null,!1,!1))&&(""!==o&&(o+=","+(t.condenseFlow?"":" ")),o+=t.dump);t.tag=s,t.dump="["+o+"]"}function Pu(t,e,r,i){var n,a,o,s="",l=t.tag;for(n=0,a=r.length;n<a;n+=1)o=r[n],t.replacer&&(o=t.replacer.call(r,String(n),o)),(ju(t,e+1,o,!0,!0,!1,!0)||typeof o>"u"&&ju(t,e+1,null,!0,!0,!1,!0))&&((!i||""!==s)&&(s+=Cu(t,e)),t.dump&&10===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=l,t.dump=s||"[]"}function zu(t,e,r){var i,n,a,o,s,l="",h=t.tag,c=Object.keys(r);for(i=0,n=c.length;i<n;i+=1)s="",""!==l&&(s+=", "),t.condenseFlow&&(s+='"'),o=r[a=c[i]],t.replacer&&(o=t.replacer.call(r,a,o)),ju(t,e,a,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),ju(t,e,o,!1,!1)&&(l+=s+=t.dump));t.tag=h,t.dump="{"+l+"}"}function qu(t,e,r,i){var n,a,o,s,l,h,c="",d=t.tag,u=Object.keys(r);if(!0===t.sortKeys)u.sort();else if("function"==typeof t.sortKeys)u.sort(t.sortKeys);else if(t.sortKeys)throw new rc("sortKeys must be a boolean or a function");for(n=0,a=u.length;n<a;n+=1)h="",(!i||""!==c)&&(h+=Cu(t,e)),s=r[o=u[n]],t.replacer&&(s=t.replacer.call(r,o,s)),ju(t,e+1,o,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,l&&(h+=Cu(t,e)),ju(t,e+1,s,!0,l)&&(t.dump&&10===t.dump.charCodeAt(0)?h+=":":h+=": ",c+=h+=t.dump));t.tag=d,t.dump=c||"{}"}function Ru(t,e,r){var i,n,a,o,s,l;for(a=0,o=(n=r?t.explicitTypes:t.implicitTypes).length;a<o;a+=1)if(((s=n[a]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof e&&e instanceof s.instanceOf)&&(!s.predicate||s.predicate(e))){if(r?s.multi&&s.representName?t.tag=s.representName(e):t.tag=s.tag:t.tag="?",s.represent){if(l=t.styleMap[s.tag]||s.defaultStyle,"[object Function]"===cu.call(s.represent))i=s.represent(e,l);else{if(!du.call(s.represent,l))throw new rc("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');i=s.represent[l](e,l)}t.dump=i}return!0}return!1}function ju(t,e,r,i,n,a,o){t.tag=null,t.dump=r,Ru(t,r,!1)||Ru(t,r,!0);var s,l=cu.call(t.dump),h=i;i&&(i=t.flowLevel<0||t.flowLevel>e);var c,d,u="[object Object]"===l||"[object Array]"===l;if(u&&(d=-1!==(c=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||d||2!==t.indent&&e>0)&&(n=!1),d&&t.usedDuplicates[c])t.dump="*ref_"+c;else{if(u&&d&&!t.usedDuplicates[c]&&(t.usedDuplicates[c]=!0),"[object Object]"===l)i&&0!==Object.keys(t.dump).length?(qu(t,e,t.dump,n),d&&(t.dump="&ref_"+c+t.dump)):(zu(t,e,t.dump),d&&(t.dump="&ref_"+c+" "+t.dump));else if("[object Array]"===l)i&&0!==t.dump.length?(t.noArrayIndent&&!o&&e>0?Pu(t,e-1,t.dump,n):Pu(t,e,t.dump,n),d&&(t.dump="&ref_"+c+t.dump)):(Nu(t,e,t.dump),d&&(t.dump="&ref_"+c+" "+t.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(t.skipInvalid)return!1;throw new rc("unacceptable kind of an object to dump "+l)}"?"!==t.tag&&Fu(t,t.dump,e,a,h)}null!==t.tag&&"?"!==t.tag&&(s=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),s="!"===t.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",t.dump=s+" "+t.dump)}return!0}function Wu(t,e){var r,i,n=[],a=[];for(Hu(t,n,a),r=0,i=a.length;r<i;r+=1)e.duplicates.push(n[a[r]]);e.usedDuplicates=new Array(i)}function Hu(t,e,r){var i,n,a;if(null!==t&&"object"==typeof t)if(-1!==(n=e.indexOf(t)))-1===r.indexOf(n)&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,a=t.length;n<a;n+=1)Hu(t[n],e,r);else for(n=0,a=(i=Object.keys(t)).length;n<a;n+=1)Hu(t[i[n]],e,r)}qe(yu,"compileStyleMap"),qe(mu,"encodeHex"),qe(xu,"State"),qe(bu,"indentString"),qe(Cu,"generateNextLine"),qe(_u,"testImplicitResolving"),qe(ku,"isWhitespace"),qe(wu,"isPrintable"),qe(vu,"isNsCharOrWhitespace"),qe(Su,"isPlainSafe"),qe(Tu,"isPlainSafeFirst"),qe(Bu,"isPlainSafeLast"),qe(Mu,"codePointAt"),qe(Lu,"needIndentIndicator"),qe(Au,"chooseScalarStyle"),qe(Fu,"writeScalar"),qe($u,"blockHeader"),qe(Eu,"dropEndingNewline"),qe(Ou,"foldString"),qe(Du,"foldLine"),qe(Iu,"escapeString"),qe(Nu,"writeFlowSequence"),qe(Pu,"writeBlockSequence"),qe(zu,"writeFlowMapping"),qe(qu,"writeBlockMapping"),qe(Ru,"detectType"),qe(ju,"writeNode"),qe(Wu,"getDuplicateReferences"),qe(Hu,"inspectNode"),qe(function(t,e){var r=new xu(e=e||{});r.noRefs||Wu(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),ju(r,0,i,!0,!0)?r.dump+"\n":""},"dump$1"),qe(function(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}},"renamed");var Yu=jc,Uu=hu,Gu={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},Vu={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function Xu(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=Qu(t),e=Qu(e);const[r,i]=[t.x,t.y],[n,a]=[e.x,e.y],o=n-r,s=a-i;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}qe(Xu,"calculateDeltaAndAngle");var Zu,Ku,Qu=qe(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),Ju=qe(t=>({x:qe(function(e,r,i){let n=0;const a=Qu(i[0]).x<Qu(i[i.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(Gu,t.arrowTypeStart)){const{angle:e,deltaX:r}=Xu(i[0],i[1]);n=Gu[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Gu,t.arrowTypeEnd)){const{angle:e,deltaX:r}=Xu(i[i.length-1],i[i.length-2]);n=Gu[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}const o=Math.abs(Qu(e).x-Qu(i[i.length-1]).x),s=Math.abs(Qu(e).y-Qu(i[i.length-1]).y),l=Math.abs(Qu(e).x-Qu(i[0]).x),h=Math.abs(Qu(e).y-Qu(i[0]).y),c=Gu[t.arrowTypeStart],d=Gu[t.arrowTypeEnd];if(o<d&&o>0&&s<d){let t=d+1-o;t*="right"===a?-1:1,n-=t}if(l<c&&l>0&&h<c){let t=c+1-l;t*="right"===a?-1:1,n+=t}return Qu(e).x+n},"x"),y:qe(function(e,r,i){let n=0;const a=Qu(i[0]).y<Qu(i[i.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(Gu,t.arrowTypeStart)){const{angle:e,deltaY:r}=Xu(i[0],i[1]);n=Gu[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Gu,t.arrowTypeEnd)){const{angle:e,deltaY:r}=Xu(i[i.length-1],i[i.length-2]);n=Gu[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}const o=Math.abs(Qu(e).y-Qu(i[i.length-1]).y),s=Math.abs(Qu(e).x-Qu(i[i.length-1]).x),l=Math.abs(Qu(e).y-Qu(i[0]).y),h=Math.abs(Qu(e).x-Qu(i[0]).x),c=Gu[t.arrowTypeStart],d=Gu[t.arrowTypeEnd];if(o<d&&o>0&&s<d){let t=d+1-o;t*="up"===a?-1:1,n-=t}if(l<c&&l>0&&h<c){let t=c+1-l;t*="up"===a?-1:1,n+=t}return Qu(e).y+n},"y")}),"getLineFunctionsWithOffset"),tp=qe(({flowchart:t})=>{var e,r;const i=(null==(e=null==t?void 0:t.subGraphTitleMargin)?void 0:e.top)??0,n=(null==(r=null==t?void 0:t.subGraphTitleMargin)?void 0:r.bottom)??0;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:i+n}},"getSubGraphTitleMargins"),ep=qe(t=>{const{handDrawnSeed:e}=da();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),rp=qe(t=>{const e=ip([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),ip=qe(t=>{const e=new Map;return t.forEach(t=>{const[r,i]=t.split(":");e.set(r.trim(),null==i?void 0:i.trim())}),e},"styles2Map"),np=qe(t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t,"isLabelStyle"),ap=qe(t=>{const{stylesArray:e}=rp(t),r=[],i=[],n=[],a=[];return e.forEach(t=>{const e=t[0];np(e)?r.push(t.join(":")+" !important"):(i.push(t.join(":")+" !important"),e.includes("stroke")&&n.push(t.join(":")+" !important"),"fill"===e&&a.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:n,backgroundStyles:a}},"styles2String"),op=qe((t,e)=>{var r;const{themeVariables:i,handDrawnSeed:n}=da(),{nodeBorder:a,mainBkg:o}=i,{stylesMap:s}=rp(t);return Object.assign({roughness:.7,fill:s.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||a,seed:n,strokeWidth:(null==(r=s.get("stroke-width"))?void 0:r.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:sp(s.get("stroke-dasharray"))},e)},"userNodeOverrides"),sp=qe(t=>{if(!t)return[0,0];const e=t.trim().split(/\s+/).map(Number);if(1===e.length){const t=isNaN(e[0])?0:e[0];return[t,t]}return[isNaN(e[0])?0:e[0],isNaN(e[1])?0:e[1]]},"getStrokeDashArray"),lp={},hp={},cp=function(){if(Ku)return lp;Ku=1,Object.defineProperty(lp,"__esModule",{value:!0}),lp.sanitizeUrl=void 0;var t=(Zu||(Zu=1,Object.defineProperty(hp,"__esModule",{value:!0}),hp.BLANK_URL=hp.relativeFirstCharacters=hp.whitespaceEscapeCharsRegex=hp.urlSchemeRegex=hp.ctrlCharactersRegex=hp.htmlCtrlEntityRegex=hp.htmlEntitiesRegex=hp.invalidProtocolRegex=void 0,hp.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,hp.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,hp.htmlCtrlEntityRegex=/&(newline|tab);/gi,hp.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,hp.urlSchemeRegex=/^.+(:|:)/gim,hp.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,hp.relativeFirstCharacters=[".","/"],hp.BLANK_URL="about:blank"),hp);function e(e){return e.replace(t.ctrlCharactersRegex,"").replace(t.htmlEntitiesRegex,function(t,e){return String.fromCharCode(e)})}function r(t){try{return decodeURIComponent(t)}catch{return t}}return lp.sanitizeUrl=function(i){if(!i)return t.BLANK_URL;var n,a=r(i.trim());do{n=(a=r(a=e(a).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim())).match(t.ctrlCharactersRegex)||a.match(t.htmlEntitiesRegex)||a.match(t.htmlCtrlEntityRegex)||a.match(t.whitespaceEscapeCharsRegex)}while(n&&n.length>0);var o=a;if(!o)return t.BLANK_URL;if(function(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}(o))return o;var s=o.trimStart(),l=s.match(t.urlSchemeRegex);if(!l)return o;var h=l[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(h))return t.BLANK_URL;var c=s.replace(/\\/g,"/");if("mailto:"===h||h.includes("://"))return c;if("http:"===h||"https:"===h){if(!function(t){return URL.canParse(t)}(c))return t.BLANK_URL;var d=new URL(c);return d.protocol=d.protocol.toLowerCase(),d.hostname=d.hostname.toLowerCase(),d.toString()}return c},lp}(),dp="",up={curveBasis:hh,curveBasisClosed:function(t){return new ch(t)},curveBasisOpen:function(t){return new dh(t)},curveBumpX:nh,curveBumpY:ah,curveBundle:ph,curveCardinalClosed:xh,curveCardinalOpen:Ch,curveCardinal:yh,curveCatmullRomClosed:Sh,curveCatmullRomOpen:Bh,curveCatmullRom:wh,curveLinear:Jl,curveLinearClosed:function(t){return new Mh(t)},curveMonotoneX:Ih,curveMonotoneY:Nh,curveNatural:qh,curveStep:jh,curveStepAfter:Hh,curveStepBefore:Wh},pp=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,fp=qe(function(t,e){const r=gp(t,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const t=r.map(t=>t.args);Gi(t),i=Bi(i,[...t])}else i=r.args;if(!i)return;let n=ki(t,e);const a="config";return void 0!==i[a]&&("flowchart-v2"===n&&(n="flowchart"),i[n]=i[a],delete i[a]),i},"detectInit"),gp=qe(function(t,e=null){var r,i;try{const n=new RegExp(`[%]{2}(?![{]${pp.source})(?=[}][%]{2}).*\n`,"ig");let a;t=t.trim().replace(n,"").replace(/'/gm,'"'),We.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);const o=[];for(;null!==(a=xi.exec(t));)if(a.index===xi.lastIndex&&xi.lastIndex++,a&&!e||e&&null!=(r=a[1])&&r.match(e)||e&&null!=(i=a[2])&&i.match(e)){const t=a[1]?a[1]:a[2],e=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;o.push({type:t,args:e})}return 0===o.length?{type:t,args:null}:1===o.length?o[0]:o}catch(r){return We.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),yp=qe(function(t){return t.replace(xi,"")},"removeDirectives"),mp=qe(function(t,e){for(const[r,i]of e.entries())if(i.match(t))return r;return-1},"isSubstringInArray");function xp(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return up[r]??e}function bp(t,e){const r=t.trim();if(r)return"loose"!==e.securityLevel?cp.sanitizeUrl(r):r}qe(xp,"interpolateToCurve"),qe(bp,"formatUrl");var Cp=qe((t,...e)=>{const r=t.split("."),i=r.length-1,n=r[i];let a=window;for(let e=0;e<i;e++)if(a=a[r[e]],!a)return void We.error(`Function name: ${t} not found in window`);a[n](...e)},"runFunc");function _p(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function kp(t){let e,r=0;return t.forEach(t=>{r+=_p(t,e),e=t}),Sp(t,r/2)}function wp(t){return 1===t.length?t[0]:kp(t)}qe(_p,"distance"),qe(kp,"traverseEdge"),qe(wp,"calcLabelPosition");var vp=qe((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),Sp=qe((t,e)=>{let r,i=e;for(const e of t){if(r){const t=_p(e,r);if(0===t)return r;if(t<i)i-=t;else{const n=i/t;if(n<=0)return r;if(n>=1)return{x:e.x,y:e.y};if(n>0&&n<1)return{x:vp((1-n)*r.x+n*e.x,5),y:vp((1-n)*r.y+n*e.y,5)}}}r=e}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Tp=qe((t,e,r)=>{We.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const i=Sp(e,25),n=t?10:5,a=Math.atan2(e[0].y-i.y,e[0].x-i.x),o={x:0,y:0};return o.x=Math.sin(a)*n+(e[0].x+i.x)/2,o.y=-Math.cos(a)*n+(e[0].y+i.y)/2,o},"calcCardinalityPosition");function Bp(t,e,r){const i=structuredClone(r);We.info("our points",i),"start_left"!==e&&"start_right"!==e&&i.reverse();const n=Sp(i,25+t),a=10+.5*t,o=Math.atan2(i[0].y-n.y,i[0].x-n.x),s={x:0,y:0};return"start_left"===e?(s.x=Math.sin(o+Math.PI)*a+(i[0].x+n.x)/2,s.y=-Math.cos(o+Math.PI)*a+(i[0].y+n.y)/2):"end_right"===e?(s.x=Math.sin(o-Math.PI)*a+(i[0].x+n.x)/2-5,s.y=-Math.cos(o-Math.PI)*a+(i[0].y+n.y)/2-5):"end_left"===e?(s.x=Math.sin(o)*a+(i[0].x+n.x)/2-5,s.y=-Math.cos(o)*a+(i[0].y+n.y)/2-5):(s.x=Math.sin(o)*a+(i[0].x+n.x)/2,s.y=-Math.cos(o)*a+(i[0].y+n.y)/2),s}function Mp(t){let e="",r="";for(const i of t)void 0!==i&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}qe(Bp,"calcTerminalLabelPosition"),qe(Mp,"getStylesFromArray");var Lp=0,Ap=qe(()=>(Lp++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Lp),"generateId");function Fp(t){let e="";for(let r=0;r<t;r++)e+="0123456789abcdef".charAt(Math.floor(16*Math.random()));return e}qe(Fp,"makeRandomHex");var $p=qe(t=>Fp(t.length),"random"),Ep=qe(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Op=qe(function(t,e){const r=e.text.replace(Rn.lineBreakRegex," "),[,i]=Up(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",i),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),void 0!==e.class&&n.attr("class",e.class);const a=n.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.attr("fill",e.fill),a.text(r),n},"drawSimpleText"),Dp=Xt((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Rn.lineBreakRegex.test(t)))return t;const i=t.split(" ").filter(Boolean),n=[];let a="";return i.forEach((t,o)=>{const s=Pp(`${t} `,r),l=Pp(a,r);if(s>e){const{hyphenatedStrings:i,remainingWord:o}=Ip(t,e,"-",r);n.push(a,...i),a=o}else l+s>=e?(n.push(a),a=t):a=[a,t].filter(Boolean).join(" ");o+1===i.length&&n.push(a)}),n.filter(t=>""!==t).join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Ip=Xt((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const n=[...t],a=[];let o="";return n.forEach((t,s)=>{const l=`${o}${t}`;if(Pp(l,i)>=e){const t=s+1,e=n.length===t,i=`${l}${r}`;a.push(e?l:i),o=""}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function Np(t,e){return Rp(t,e).height}function Pp(t,e){return Rp(t,e).width}qe(Np,"calculateTextHeight"),qe(Pp,"calculateTextWidth");var zp,qp,Rp=Xt((t,e)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,a]=Up(r),o=["sans-serif",i],s=t.split(Rn.lineBreakRegex),l=[],h=Po("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const c=h.append("svg");for(const t of o){let e=0;const r={width:0,height:0,lineHeight:0};for(const i of s){const o=Ep();o.text=i||dp;const s=Op(c,o).style("font-size",a).style("font-weight",n).style("font-family",t),l=(s._groups||s)[0][0].getBBox();if(0===l.width&&0===l.height)throw new Error("svg element not in render tree");r.width=Math.round(Math.max(r.width,l.width)),e=Math.round(l.height),r.height+=e,r.lineHeight=Math.round(Math.max(r.lineHeight,e))}l.push(r)}return c.remove(),l[isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),jp=(qe(zp=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}},"InitIDGenerator"),zp),Wp=qe(function(t){return qp=qp||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),qp.innerHTML=t,unescape(qp.textContent)},"entityDecode");function Hp(t){return"str"in t}qe(Hp,"isDetailedError");var Yp=qe((t,e,r,i)=>{var n;if(!i)return;const a=null==(n=t.node())?void 0:n.getBBox();a&&t.append("text").text(i).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-r).attr("class",e)},"insertTitle"),Up=qe(t=>{if("number"==typeof t)return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function Gp(t,e){return Oe({},t,e)}qe(Gp,"cleanAndMerge");var Vp={assignWithDepth:Bi,wrapLabel:Dp,calculateTextHeight:Np,calculateTextWidth:Pp,calculateTextDimensions:Rp,cleanAndMerge:Gp,detectInit:fp,detectDirective:gp,isSubstringInArray:mp,interpolateToCurve:xp,calcLabelPosition:wp,calcCardinalityPosition:Tp,calcTerminalLabelPosition:Bp,formatUrl:bp,getStylesFromArray:Mp,generateId:Ap,random:$p,runFunc:Cp,entityDecode:Wp,insertTitle:Yp,isLabelCoordinateInPath:Jp,parseFontSize:Up,InitIDGenerator:jp},Xp=qe(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)}),e=e.replace(/#\w+;/g,function(t){const e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"}),e},"encodeEntities"),Zp=qe(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Kp=qe((t,e,{counter:r=0,prefix:i,suffix:n},a)=>a||`${i?`${i}_`:""}${t}_${e}_${r}${n?`_${n}`:""}`,"getEdgeId");function Qp(t){return t??null}function Jp(t,e){const r=Math.round(t.x),i=Math.round(t.y),n=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return n.includes(r.toString())||n.includes(i.toString())}qe(Qp,"handleUndefinedAttr"),qe(Jp,"isLabelCoordinateInPath");const tf=Object.freeze({left:0,top:0,width:16,height:16}),ef=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),rf=Object.freeze({...tf,...ef}),nf=Object.freeze({...rf,body:"",hidden:!1}),af=Object.freeze({width:null,height:null}),of=Object.freeze({...af,...ef}),sf=(t,e)=>!!t&&!(!(e&&""===t.prefix||t.prefix)||!t.name);function lf(t,e){const r=function(t,e){const r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);const i=((t.rotate||0)+(e.rotate||0))%4;return i&&(r.rotate=i),r}(t,e);for(const i in nf)i in ef?i in t&&!(i in r)&&(r[i]=ef[i]):i in e?r[i]=e[i]:i in t&&(r[i]=t[i]);return r}function hf(t,e,r){const i=t.icons,n=t.aliases||Object.create(null);let a={};function o(t){a=lf(i[t]||n[t],a)}return o(e),r.forEach(o),lf(t,a)}const cf=/(-?[0-9.]*[0-9]+[0-9.]*)/g,df=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function uf(t,e,r){if(1===e)return t;if(r=r||100,"number"==typeof t)return Math.ceil(t*e*r)/r;if("string"!=typeof t)return t;const i=t.split(cf);if(null===i||!i.length)return t;const n=[];let a=i.shift(),o=df.test(a);for(;;){if(o){const t=parseFloat(a);isNaN(t)?n.push(a):n.push(Math.ceil(t*e*r)/r)}else n.push(a);if(a=i.shift(),void 0===a)return n.join("");o=!o}}const pf=/\sid="(\S+)"/g,ff="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let gf=0;function yf(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from("string"==typeof t?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(t,e){var r=e.match(/\n([\t ]+|(?!\s).)/g);return r?t.concat(r.map(function(t){var e,r;return null!==(r=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==r?r:0})):t},[]);if(n.length){var a=new RegExp("\n[\t ]{"+Math.min.apply(Math,n)+"}","g");i=i.map(function(t){return t.replace(a,"\n")})}i[0]=i[0].replace(/^\r?\n/,"");var o=i[0];return e.forEach(function(t,e){var r=o.match(/(?:^|\n)( *)$/),n=r?r[1]:"",a=t;"string"==typeof t&&t.includes("\n")&&(a=String(t).split("\n").map(function(t,e){return 0===e?t:""+n+t}).join("\n")),o+=a+i[e+1]}),o}var mf={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},xf=new Map,bf=new Map,Cf=qe(t=>{for(const e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(We.debug("Registering icon pack:",e.name),"loader"in e)bf.set(e.name,e.loader);else{if(!("icons"in e))throw We.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.');xf.set(e.name,e.icons)}}},"registerIconPacks"),_f=qe(async(t,e)=>{const r=((t,e,r,i="")=>{const n=t.split(":");if("@"===t.slice(0,1)){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const t=n.pop(),e=n.pop(),r={provider:n.length>0?n[0]:i,prefix:e,name:t};return sf(r)?r:null}const a=n[0],o=a.split("-");if(o.length>1){const t={provider:i,prefix:o.shift(),name:o.join("-")};return sf(t)?t:null}if(r&&""===i){const t={provider:i,prefix:"",name:a};return sf(t,r)?t:null}return null})(t,0,void 0!==e);if(!r)throw new Error(`Invalid icon name: ${t}`);const i=r.prefix||e;if(!i)throw new Error(`Icon name must contain a prefix: ${t}`);let n=xf.get(i);if(!n){const t=bf.get(i);if(!t)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await t(),prefix:i},xf.set(i,n)}catch(t){throw We.error(t),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=function(t,e){if(t.icons[e])return hf(t,e,[]);const r=function(t,e){const r=t.icons,i=t.aliases||Object.create(null),n=Object.create(null);return(e||Object.keys(r).concat(Object.keys(i))).forEach(function t(e){if(r[e])return n[e]=[];if(!(e in n)){n[e]=null;const r=i[e]&&i[e].parent,a=r&&t(r);a&&(n[e]=[r].concat(a))}return n[e]}),n}(t,[e])[e];return r?hf(t,e,r):null}(n,r.name);if(!a)throw new Error(`Icon not found: ${t}`);return a},"getRegisteredIconData"),kf=qe(async t=>{try{return await _f(t),!0}catch{return!1}},"isIconAvailable"),wf=qe(async(t,e,r)=>{let i;try{i=await _f(t,null==e?void 0:e.fallbackPrefix)}catch(t){We.error(t),i=mf}const n=function(t,e){const r={...rf,...t},i={...of,...e},n={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,i].forEach(t=>{const e=[],r=t.hFlip,i=t.vFlip;let o,s=t.rotate;switch(r?i?s+=2:(e.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),e.push("scale(-1 1)"),n.top=n.left=0):i&&(e.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),e.push("scale(1 -1)"),n.top=n.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:o=n.height/2+n.top,e.unshift("rotate(90 "+o.toString()+" "+o.toString()+")");break;case 2:e.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:o=n.width/2+n.left,e.unshift("rotate(-90 "+o.toString()+" "+o.toString()+")")}s%2==1&&(n.left!==n.top&&(o=n.left,n.left=n.top,n.top=o),n.width!==n.height&&(o=n.width,n.width=n.height,n.height=o)),e.length&&(a=function(t,e){const r=function(t,e="defs"){let r="";const i=t.indexOf("<"+e);for(;i>=0;){const n=t.indexOf(">",i),a=t.indexOf("</"+e);if(-1===n||-1===a)break;const o=t.indexOf(">",a);if(-1===o)break;r+=t.slice(n+1,a).trim(),t=t.slice(0,i).trim()+t.slice(o+1)}return{defs:r,content:t}}(t);return function(t,e){return t?"<defs>"+t+"</defs>"+e:e}(r.defs,e+r.content+"</g>")}(a,'<g transform="'+e.join(" ")+'">'))});const o=i.width,s=i.height,l=n.width,h=n.height;let c,d;null===o?(d=null===s?"1em":"auto"===s?h:s,c=uf(d,l/h)):(c="auto"===o?l:o,d=null===s?uf(c,h/l):"auto"===s?h:s);const u={},p=(t,e)=>{(t=>"unset"===t||"undefined"===t||"none"===t)(e)||(u[t]=e.toString())};p("width",c),p("height",d);const f=[n.left,n.top,l,h];return u.viewBox=f.join(" "),{attributes:u,viewBox:f,body:a}}(i,e),a=function(t,e){let r=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const t in e)r+=" "+t+'="'+e[t]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}(function(t,e=ff){const r=[];let i;for(;i=pf.exec(t);)r.push(i[1]);if(!r.length)return t;const n="suffix"+(16777216*Math.random()|Date.now()).toString(16);return r.forEach(r=>{const i="function"==typeof e?e(r):e+(gf++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+n+"$3")}),t=t.replace(new RegExp(n,"g"),"")}(n.body),{...n.attributes,...r});return _n(a,on())},"getIconSVG");function vf(t,{markdownAutoWrap:e}){const r=yf(t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n"));return!1===e?r.replace(/ /g," "):r}function Sf(t,e={}){const r=vf(t,e),n=i.k.lexer(r),a=[[]];let o=0;function s(t,e="normal"){"text"===t.type?t.text.split("\n").forEach((t,r)=>{0!==r&&(o++,a.push([])),t.split(" ").forEach(t=>{(t=t.replace(/'/g,"'"))&&a[o].push({content:t,type:e})})}):"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{s(e,t.type)}):"html"===t.type&&a[o].push({content:t.text,type:"normal"})}return qe(s,"processNode"),n.forEach(t=>{var e;"paragraph"===t.type?null==(e=t.tokens)||e.forEach(t=>{s(t)}):"html"===t.type?a[o].push({content:t.text,type:"normal"}):a[o].push({content:t.raw,type:"normal"})}),a}function Tf(t,{markdownAutoWrap:e}={}){const r=i.k.lexer(t);function n(t){var r,i,a;return"text"===t.type?!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g," "):t.text.replace(/\n */g,"<br/>"):"strong"===t.type?`<strong>${null==(r=t.tokens)?void 0:r.map(n).join("")}</strong>`:"em"===t.type?`<em>${null==(i=t.tokens)?void 0:i.map(n).join("")}</em>`:"paragraph"===t.type?`<p>${null==(a=t.tokens)?void 0:a.map(n).join("")}</p>`:"space"===t.type?"":"html"===t.type?`${t.text}`:"escape"===t.type?t.text:(We.warn(`Unsupported markdown: ${t.type}`),t.raw)}return qe(n,"output"),r.map(n).join("")}function Bf(t){return Intl.Segmenter?[...(new Intl.Segmenter).segment(t)].map(t=>t.segment):[...t]}function Mf(t,e){return Lf(t,[],Bf(e.content),e.type)}function Lf(t,e,r,i){if(0===r.length)return[{content:e.join(""),type:i},{content:"",type:i}];const[n,...a]=r,o=[...e,n];return t([{content:o.join(""),type:i}])?Lf(t,o,a,i):(0===e.length&&n&&(e.push(n),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}])}function Af(t,e){if(t.some(({content:t})=>t.includes("\n")))throw new Error("splitLineToFitWidth does not support newlines in the line");return Ff(t,e)}function Ff(t,e,r=[],i=[]){if(0===t.length)return i.length>0&&r.push(i),r.length>0?r:[];let n="";" "===t[0].content&&(n=" ",t.shift());const a=t.shift()??{content:" ",type:"normal"},o=[...i];if(""!==n&&o.push({content:n,type:"normal"}),o.push(a),e(o))return Ff(t,e,r,o);if(i.length>0)r.push(i),t.unshift(a);else if(a.content){const[i,n]=Mf(e,a);r.push([i]),n.content&&t.unshift(n)}return Ff(t,e,r)}function $f(t,e){e&&t.attr("style",e)}async function Ef(t,e,r,i,n=!1,a=on()){const o=t.append("foreignObject");o.attr("width",10*r+"px"),o.attr("height",10*r+"px");const s=o.append("xhtml:div"),l=Nn(e.label)?await qn(e.label.replace(Rn.lineBreakRegex,"\n"),a):_n(e.label,a),h=e.isNode?"nodeLabel":"edgeLabel",c=s.append("span");c.html(l),$f(c,e.labelStyle),c.attr("class",`${h} ${i}`),$f(s,e.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",r+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&s.attr("class","labelBkg");let d=s.node().getBoundingClientRect();return d.width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),d=s.node().getBoundingClientRect()),o.node()}function Of(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}function Df(t,e,r){const i=t.append("text"),n=Of(i,1,e);Pf(n,r);const a=n.node().getComputedTextLength();return i.remove(),a}function If(t,e,r){var i;const n=t.append("text"),a=Of(n,1,e);Pf(a,[{content:r,type:"normal"}]);const o=null==(i=a.node())?void 0:i.getBoundingClientRect();return o&&n.remove(),o}function Nf(t,e,r,i=!1){const n=e.append("g"),a=n.insert("rect").attr("class","background").attr("style","stroke: none"),o=n.append("text").attr("y","-10.1");let s=0;for(const e of r){const r=qe(e=>Df(n,1.1,e)<=t,"checkWidth"),i=r(e)?[e]:Af(e,r);for(const t of i)Pf(Of(o,s,1.1),t),s++}if(i){const t=o.node().getBBox(),e=2;return a.attr("x",t.x-e).attr("y",t.y-e).attr("width",t.width+2*e).attr("height",t.height+2*e),n.node()}return o.node()}function Pf(t,e){t.text(""),e.forEach((e,r)=>{const i=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?i.text(e.content):i.text(" "+e.content)})}async function zf(t,e={}){const r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,i,n)=>(r.push((async()=>{const r=`${i}:${n}`;return await kf(r)?await wf(r,void 0,{class:"label-icon"}):`<i class='${_n(t,e).replace(":"," ")}'></i>`})()),t));const i=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}qe(vf,"preprocessMarkdown"),qe(Sf,"markdownToLines"),qe(Tf,"markdownToHTML"),qe(Bf,"splitTextToChars"),qe(Mf,"splitWordToFitWidth"),qe(Lf,"splitWordToFitWidthRecursion"),qe(Af,"splitLineToFitWidth"),qe(Ff,"splitLineToFitWidthRecursion"),qe($f,"applyStyle"),qe(Ef,"addHtmlSpan"),qe(Of,"createTspan"),qe(Df,"computeWidthOfText"),qe(If,"computeDimensionOfText"),qe(Nf,"createFormattedText"),qe(Pf,"updateTextContentAndStyles"),qe(zf,"replaceIconSubstring");var qf=qe(async(t,e="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,isNode:o=!0,width:s=200,addSvgBackground:l=!1}={},h)=>{if(We.debug("XYZ createText",e,r,i,n,a,o,"addSvgBackground: ",l),a){const i=Tf(e,h),a=await zf(Zp(i),h),c=e.replace(/\\\\/g,"\\"),d={isNode:o,label:Nn(e)?c:a,labelStyle:r.replace("fill:","color:")};return await Ef(t,d,s,n,l,h)}{const i=Nf(s,t,Sf(e.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),h),!!e&&l);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Po(i).attr("style",t)}else{const t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Po(i).select("rect").attr("style",t.replace(/background:/g,"fill:"));const e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Po(i).select("text").attr("style",e)}return i}},"createText");function Rf(t,e,r){if(t&&t.length){const[i,n]=e,a=Math.PI/180*r,o=Math.cos(a),s=Math.sin(a);for(const e of t){const[t,r]=e;e[0]=(t-i)*o-(r-n)*s+i,e[1]=(t-i)*s+(r-n)*o+n}}}function jf(t,e){return t[0]===e[0]&&t[1]===e[1]}function Wf(t,e){var r;const i=e.hachureAngle+90;let n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.round(Math.max(n,.1));let a=1;return e.roughness>=1&&((null===(r=e.randomizer)||void 0===r?void 0:r.next())||Math.random())>.7&&(a=n),function(t,e,r,i=1){const n=r,a=Math.max(e,.1),o=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,s=[0,0];if(n)for(const t of o)Rf(t,s,n);const l=function(t,e,r){const i=[];for(const e of t){const t=[...e];jf(t[0],t[t.length-1])||t.push([t[0][0],t[0][1]]),t.length>2&&i.push(t)}const n=[];e=Math.max(e,.1);const a=[];for(const t of i)for(let e=0;e<t.length-1;e++){const r=t[e],i=t[e+1];if(r[1]!==i[1]){const t=Math.min(r[1],i[1]);a.push({ymin:t,ymax:Math.max(r[1],i[1]),x:t===r[1]?r[0]:i[0],islope:(i[0]-r[0])/(i[1]-r[1])})}}if(a.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!a.length)return n;let o=[],s=a[0].ymin,l=0;for(;o.length||a.length;){if(a.length){let t=-1;for(let e=0;e<a.length&&!(a[e].ymin>s);e++)t=e;a.splice(0,t+1).forEach(t=>{o.push({s,edge:t})})}if(o=o.filter(t=>!(t.edge.ymax<=s)),o.sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||l%e==0)&&o.length>1)for(let t=0;t<o.length;t+=2){const e=t+1;if(e>=o.length)break;const r=o[t].edge,i=o[e].edge;n.push([[Math.round(r.x),s],[Math.round(i.x),s]])}s+=r,o.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),l++}return n}(o,a,i);if(n){for(const t of o)Rf(t,s,-n);!function(t,e,r){const i=[];t.forEach(t=>i.push(...t)),Rf(i,e,r)}(l,s,-n)}return l}(t,n,i,a||1)}class Hf{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){const r=Wf(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){const r=[];for(const i of t)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],e));return r}}function Yf(t){const e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class Uf extends Hf{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth),r=Math.max(r,.1);const i=Wf(t,Object.assign({},e,{hachureGap:r})),n=Math.PI/180*e.hachureAngle,a=[],o=.5*r*Math.cos(n),s=.5*r*Math.sin(n);for(const[t,e]of i)Yf([t,e])&&a.push([[t[0]-o,t[1]+s],[...e]],[[t[0]+o,t[1]-s],[...e]]);return{type:"fillSketch",ops:this.renderLines(a,e)}}}class Gf extends Hf{fillPolygons(t,e){const r=this._fillPolygons(t,e),i=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),n=this._fillPolygons(t,i);return r.ops=r.ops.concat(n.ops),r}}class Vf{constructor(t){this.helper=t}fillPolygons(t,e){const r=Wf(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){const r=[];let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.max(i,.1);let n=e.fillWeight;n<0&&(n=e.strokeWidth/2);const a=i/4;for(const o of t){const t=Yf(o),s=t/i,l=Math.ceil(s)-1,h=t-l*i,c=(o[0][0]+o[1][0])/2-i/4,d=Math.min(o[0][1],o[1][1]);for(let t=0;t<l;t++){const o=d+h+t*i,s=c-a+2*Math.random()*a,l=o-a+2*Math.random()*a,u=this.helper.ellipse(s,l,n,n,e);r.push(...u.ops)}}return{type:"fillSketch",ops:r}}}class Xf{constructor(t){this.helper=t}fillPolygons(t,e){const r=Wf(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}dashedLine(t,e){const r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,i=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,n=[];return t.forEach(t=>{const a=Yf(t),o=Math.floor(a/(r+i)),s=(a+i-o*(r+i))/2;let l=t[0],h=t[1];l[0]>h[0]&&(l=t[1],h=t[0]);const c=Math.atan((h[1]-l[1])/(h[0]-l[0]));for(let t=0;t<o;t++){const a=t*(r+i),o=a+r,h=[l[0]+a*Math.cos(c)+s*Math.cos(c),l[1]+a*Math.sin(c)+s*Math.sin(c)],d=[l[0]+o*Math.cos(c)+s*Math.cos(c),l[1]+o*Math.sin(c)+s*Math.sin(c)];n.push(...this.helper.doubleLineOps(h[0],h[1],d[0],d[1],e))}}),n}}class Zf{constructor(t){this.helper=t}fillPolygons(t,e){const r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,i=e.zigzagOffset<0?r:e.zigzagOffset,n=Wf(t,e=Object.assign({},e,{hachureGap:r+i}));return{type:"fillSketch",ops:this.zigzagLines(n,i,e)}}zigzagLines(t,e,r){const i=[];return t.forEach(t=>{const n=Yf(t),a=Math.round(n/(2*e));let o=t[0],s=t[1];o[0]>s[0]&&(o=t[1],s=t[0]);const l=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let t=0;t<a;t++){const n=2*t*e,a=2*(t+1)*e,s=Math.sqrt(2*Math.pow(e,2)),h=[o[0]+n*Math.cos(l),o[1]+n*Math.sin(l)],c=[o[0]+a*Math.cos(l),o[1]+a*Math.sin(l)],d=[h[0]+s*Math.cos(l+Math.PI/4),h[1]+s*Math.sin(l+Math.PI/4)];i.push(...this.helper.doubleLineOps(h[0],h[1],d[0],d[1],r),...this.helper.doubleLineOps(d[0],d[1],c[0],c[1],r))}}),i}}const Kf={};class Qf{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const Jf={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function tg(t,e){return t.type===e}function eg(t){const e=[],r=function(t){const e=new Array;for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t);let i="BOD",n=0,a=r[n];for(;!tg(a,2);){let o=0;const s=[];if("BOD"===i){if("M"!==a.text&&"m"!==a.text)return eg("M0,0"+t);n++,o=Jf[a.text],i=a.text}else tg(a,1)?o=Jf[i]:(n++,o=Jf[a.text],i=a.text);if(!(n+o<r.length))throw new Error("Path data ended short");for(let t=n;t<n+o;t++){const e=r[t];if(!tg(e,1))throw new Error("Param not a number: "+i+","+e.text);s[s.length]=+e.text}if("number"!=typeof Jf[i])throw new Error("Bad segment: "+i);{const t={key:i,data:s};e.push(t),n+=o,a=r[n],"M"===i&&(i="L"),"m"===i&&(i="l")}}return e}function rg(t){let e=0,r=0,i=0,n=0;const a=[];for(const{key:o,data:s}of t)switch(o){case"M":a.push({key:"M",data:[...s]}),[e,r]=s,[i,n]=s;break;case"m":e+=s[0],r+=s[1],a.push({key:"M",data:[e,r]}),i=e,n=r;break;case"L":a.push({key:"L",data:[...s]}),[e,r]=s;break;case"l":e+=s[0],r+=s[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...s]}),e=s[4],r=s[5];break;case"c":{const t=s.map((t,i)=>i%2?t+r:t+e);a.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":a.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{const t=s.map((t,i)=>i%2?t+r:t+e);a.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":a.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":a.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{const t=s.map((t,i)=>i%2?t+r:t+e);a.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":a.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=i,r=n}return a}function ig(t){const e=[];let r="",i=0,n=0,a=0,o=0,s=0,l=0;for(const{key:h,data:c}of t){switch(h){case"M":e.push({key:"M",data:[...c]}),[i,n]=c,[a,o]=c;break;case"C":e.push({key:"C",data:[...c]}),i=c[4],n=c[5],s=c[2],l=c[3];break;case"L":e.push({key:"L",data:[...c]}),[i,n]=c;break;case"H":i=c[0],e.push({key:"L",data:[i,n]});break;case"V":n=c[0],e.push({key:"L",data:[i,n]});break;case"S":{let t=0,a=0;"C"===r||"S"===r?(t=i+(i-s),a=n+(n-l)):(t=i,a=n),e.push({key:"C",data:[t,a,...c]}),s=c[0],l=c[1],i=c[2],n=c[3];break}case"T":{const[t,a]=c;let o=0,h=0;"Q"===r||"T"===r?(o=i+(i-s),h=n+(n-l)):(o=i,h=n);const d=i+2*(o-i)/3,u=n+2*(h-n)/3,p=t+2*(o-t)/3,f=a+2*(h-a)/3;e.push({key:"C",data:[d,u,p,f,t,a]}),s=o,l=h,i=t,n=a;break}case"Q":{const[t,r,a,o]=c,h=i+2*(t-i)/3,d=n+2*(r-n)/3,u=a+2*(t-a)/3,p=o+2*(r-o)/3;e.push({key:"C",data:[h,d,u,p,a,o]}),s=t,l=r,i=a,n=o;break}case"A":{const t=Math.abs(c[0]),r=Math.abs(c[1]),a=c[2],o=c[3],s=c[4],l=c[5],h=c[6];0===t||0===r?(e.push({key:"C",data:[i,n,l,h,l,h]}),i=l,n=h):(i!==l||n!==h)&&(ag(i,n,l,h,t,r,a,o,s).forEach(function(t){e.push({key:"C",data:t})}),i=l,n=h);break}case"Z":e.push({key:"Z",data:[]}),i=a,n=o}r=h}return e}function ng(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function ag(t,e,r,i,n,a,o,s,l,h){const c=(d=o,Math.PI*d/180);var d;let u=[],p=0,f=0,g=0,y=0;if(h)[p,f,g,y]=h;else{[t,e]=ng(t,e,-c),[r,i]=ng(r,i,-c);const o=(t-r)/2,h=(e-i)/2;let d=o*o/(n*n)+h*h/(a*a);d>1&&(d=Math.sqrt(d),n*=d,a*=d);const u=n*n,m=a*a,x=u*m-u*h*h-m*o*o,b=u*h*h+m*o*o,C=(s===l?-1:1)*Math.sqrt(Math.abs(x/b));g=C*n*h/a+(t+r)/2,y=C*-a*o/n+(e+i)/2,p=Math.asin(parseFloat(((e-y)/a).toFixed(9))),f=Math.asin(parseFloat(((i-y)/a).toFixed(9))),t<g&&(p=Math.PI-p),r<g&&(f=Math.PI-f),p<0&&(p=2*Math.PI+p),f<0&&(f=2*Math.PI+f),l&&p>f&&(p-=2*Math.PI),!l&&f>p&&(f-=2*Math.PI)}let m=f-p;if(Math.abs(m)>120*Math.PI/180){const t=f,e=r,s=i;f=l&&f>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,u=ag(r=g+n*Math.cos(f),i=y+a*Math.sin(f),e,s,n,a,o,0,l,[f,t,g,y])}m=f-p;const x=Math.cos(p),b=Math.sin(p),C=Math.cos(f),_=Math.sin(f),k=Math.tan(m/4),w=4/3*n*k,v=4/3*a*k,S=[t,e],T=[t+w*b,e-v*x],B=[r+w*_,i-v*C],M=[r,i];if(T[0]=2*S[0]-T[0],T[1]=2*S[1]-T[1],h)return[T,B,M].concat(u);{u=[T,B,M].concat(u);const t=[];for(let e=0;e<u.length;e+=3){const r=ng(u[e][0],u[e][1],c),i=ng(u[e+1][0],u[e+1][1],c),n=ng(u[e+2][0],u[e+2][1],c);t.push([r[0],r[1],i[0],i[1],n[0],n[1]])}return t}}const og={randOffset:function(t,e){return bg(t,e)},randOffsetWithRange:function(t,e,r){return xg(t,e,r)},ellipse:function(t,e,r,i,n){return dg(t,e,n,cg(r,i,n)).opset},doubleLineOps:function(t,e,r,i,n){return Cg(t,e,r,i,n,!0)}};function sg(t,e,r,i,n){return{type:"path",ops:Cg(t,e,r,i,n)}}function lg(t,e,r){const i=(t||[]).length;if(i>2){const n=[];for(let e=0;e<i-1;e++)n.push(...Cg(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&n.push(...Cg(t[i-1][0],t[i-1][1],t[0][0],t[0][1],r)),{type:"path",ops:n}}return 2===i?sg(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function hg(t,e){if(t.length){const r="number"==typeof t[0][0]?[t]:t,i=kg(r[0],1*(1+.2*e.roughness),e),n=e.disableMultiStroke?[]:kg(r[0],1.5*(1+.22*e.roughness),yg(e));for(let t=1;t<r.length;t++){const a=r[t];if(a.length){const t=kg(a,1*(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:kg(a,1.5*(1+.22*e.roughness),yg(e));for(const e of t)"move"!==e.op&&i.push(e);for(const t of r)"move"!==t.op&&n.push(t)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}function cg(t,e,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),n=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),a=2*Math.PI/n;let o=Math.abs(t/2),s=Math.abs(e/2);const l=1-r.curveFitting;return o+=bg(o*l,r),s+=bg(s*l,r),{increment:a,rx:o,ry:s}}function dg(t,e,r,i){const[n,a]=vg(i.increment,t,e,i.rx,i.ry,1,i.increment*xg(.1,xg(.4,1,r),r),r);let o=wg(n,0,r);if(!r.disableMultiStroke&&0!==r.roughness){const[n]=vg(i.increment,t,e,i.rx,i.ry,1.5,0,r),a=wg(n,0,r);o=o.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function ug(t,e,r,i,n,a,o,s,l){const h=t,c=e;let d=Math.abs(r/2),u=Math.abs(i/2);d+=bg(.01*d,l),u+=bg(.01*u,l);let p=n,f=a;for(;p<0;)p+=2*Math.PI,f+=2*Math.PI;f-p>2*Math.PI&&(p=0,f=2*Math.PI);const g=2*Math.PI/l.curveStepCount,y=Math.min(g/2,(f-p)/2),m=Sg(y,h,c,d,u,p,f,1,l);if(!l.disableMultiStroke){const t=Sg(y,h,c,d,u,p,f,1.5,l);m.push(...t)}return o&&(s?m.push(...Cg(h,c,h+d*Math.cos(p),c+u*Math.sin(p),l),...Cg(h,c,h+d*Math.cos(f),c+u*Math.sin(f),l)):m.push({op:"lineTo",data:[h,c]},{op:"lineTo",data:[h+d*Math.cos(p),c+u*Math.sin(p)]})),{type:"path",ops:m}}function pg(t,e){const r=ig(rg(eg(t))),i=[];let n=[0,0],a=[0,0];for(const{key:t,data:o}of r)switch(t){case"M":a=[o[0],o[1]],n=[o[0],o[1]];break;case"L":i.push(...Cg(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]];break;case"C":{const[t,r,n,s,l,h]=o;i.push(...Tg(t,r,n,s,l,h,a,e)),a=[l,h];break}case"Z":i.push(...Cg(a[0],a[1],n[0],n[1],e)),a=[n[0],n[1]]}return{type:"path",ops:i}}function fg(t,e){const r=[];for(const i of t)if(i.length){const t=e.maxRandomnessOffset||0,n=i.length;if(n>2){r.push({op:"move",data:[i[0][0]+bg(t,e),i[0][1]+bg(t,e)]});for(let a=1;a<n;a++)r.push({op:"lineTo",data:[i[a][0]+bg(t,e),i[a][1]+bg(t,e)]})}}return{type:"fillPath",ops:r}}function gg(t,e){return function(t,e){let r=t.fillStyle||"hachure";if(!Kf[r])switch(r){case"zigzag":Kf[r]||(Kf[r]=new Uf(e));break;case"cross-hatch":Kf[r]||(Kf[r]=new Gf(e));break;case"dots":Kf[r]||(Kf[r]=new Vf(e));break;case"dashed":Kf[r]||(Kf[r]=new Xf(e));break;case"zigzag-line":Kf[r]||(Kf[r]=new Zf(e));break;default:r="hachure",Kf[r]||(Kf[r]=new Hf(e))}return Kf[r]}(e,og).fillPolygons(t,e)}function yg(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function mg(t){return t.randomizer||(t.randomizer=new Qf(t.seed||0)),t.randomizer.next()}function xg(t,e,r,i=1){return r.roughness*i*(mg(r)*(e-t)+t)}function bg(t,e,r=1){return xg(-t,t,e,r)}function Cg(t,e,r,i,n,a=!1){const o=a?n.disableMultiStrokeFill:n.disableMultiStroke,s=_g(t,e,r,i,n,0,!1);if(o)return s;const l=_g(t,e,r,i,n,0,!0);return s.concat(l)}function _g(t,e,r,i,n,a,o){const s=Math.pow(t-r,2)+Math.pow(e-i,2),l=Math.sqrt(s);let h=1;h=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=n.maxRandomnessOffset||0;c*c*100>s&&(c=l/10);const d=c/2,u=.2+.2*mg(n);let p=n.bowing*n.maxRandomnessOffset*(i-e)/200,f=n.bowing*n.maxRandomnessOffset*(t-r)/200;p=bg(p,n,h),f=bg(f,n,h);const g=[],y=()=>bg(d,n,h),m=()=>bg(c,n,h),x=n.preserveVertices;return o?g.push({op:"move",data:[t+(x?0:y()),e+(x?0:y())]}):g.push({op:"move",data:[t+(x?0:bg(c,n,h)),e+(x?0:bg(c,n,h))]}),o?g.push({op:"bcurveTo",data:[p+t+(r-t)*u+y(),f+e+(i-e)*u+y(),p+t+2*(r-t)*u+y(),f+e+2*(i-e)*u+y(),r+(x?0:y()),i+(x?0:y())]}):g.push({op:"bcurveTo",data:[p+t+(r-t)*u+m(),f+e+(i-e)*u+m(),p+t+2*(r-t)*u+m(),f+e+2*(i-e)*u+m(),r+(x?0:m()),i+(x?0:m())]}),g}function kg(t,e,r){if(!t.length)return[];const i=[];i.push([t[0][0]+bg(e,r),t[0][1]+bg(e,r)]),i.push([t[0][0]+bg(e,r),t[0][1]+bg(e,r)]);for(let n=1;n<t.length;n++)i.push([t[n][0]+bg(e,r),t[n][1]+bg(e,r)]),n===t.length-1&&i.push([t[n][0]+bg(e,r),t[n][1]+bg(e,r)]);return wg(i,0,r)}function wg(t,e,r){const i=t.length,n=[];if(i>3){const e=[],a=1-r.curveTightness;n.push({op:"move",data:[t[1][0],t[1][1]]});for(let r=1;r+2<i;r++){const i=t[r];e[0]=[i[0],i[1]],e[1]=[i[0]+(a*t[r+1][0]-a*t[r-1][0])/6,i[1]+(a*t[r+1][1]-a*t[r-1][1])/6],e[2]=[t[r+1][0]+(a*t[r][0]-a*t[r+2][0])/6,t[r+1][1]+(a*t[r][1]-a*t[r+2][1])/6],e[3]=[t[r+1][0],t[r+1][1]],n.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[3][0],e[3][1]]})}}else 3===i?(n.push({op:"move",data:[t[1][0],t[1][1]]}),n.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===i&&n.push(..._g(t[0][0],t[0][1],t[1][0],t[1][1],r,0,!0));return n}function vg(t,e,r,i,n,a,o,s){const l=[],h=[];if(0===s.roughness){t/=4,h.push([e+i*Math.cos(-t),r+n*Math.sin(-t)]);for(let a=0;a<=2*Math.PI;a+=t){const t=[e+i*Math.cos(a),r+n*Math.sin(a)];l.push(t),h.push(t)}h.push([e+i*Math.cos(0),r+n*Math.sin(0)]),h.push([e+i*Math.cos(t),r+n*Math.sin(t)])}else{const c=bg(.5,s)-Math.PI/2;h.push([bg(a,s)+e+.9*i*Math.cos(c-t),bg(a,s)+r+.9*n*Math.sin(c-t)]);const d=2*Math.PI+c-.01;for(let o=c;o<d;o+=t){const t=[bg(a,s)+e+i*Math.cos(o),bg(a,s)+r+n*Math.sin(o)];l.push(t),h.push(t)}h.push([bg(a,s)+e+i*Math.cos(c+2*Math.PI+.5*o),bg(a,s)+r+n*Math.sin(c+2*Math.PI+.5*o)]),h.push([bg(a,s)+e+.98*i*Math.cos(c+o),bg(a,s)+r+.98*n*Math.sin(c+o)]),h.push([bg(a,s)+e+.9*i*Math.cos(c+.5*o),bg(a,s)+r+.9*n*Math.sin(c+.5*o)])}return[h,l]}function Sg(t,e,r,i,n,a,o,s,l){const h=a+bg(.1,l),c=[];c.push([bg(s,l)+e+.9*i*Math.cos(h-t),bg(s,l)+r+.9*n*Math.sin(h-t)]);for(let a=h;a<=o;a+=t)c.push([bg(s,l)+e+i*Math.cos(a),bg(s,l)+r+n*Math.sin(a)]);return c.push([e+i*Math.cos(o),r+n*Math.sin(o)]),c.push([e+i*Math.cos(o),r+n*Math.sin(o)]),wg(c,0,l)}function Tg(t,e,r,i,n,a,o,s){const l=[],h=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3];let c=[0,0];const d=s.disableMultiStroke?1:2,u=s.preserveVertices;for(let p=0;p<d;p++)0===p?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(u?0:bg(h[0],s)),o[1]+(u?0:bg(h[0],s))]}),c=u?[n,a]:[n+bg(h[p],s),a+bg(h[p],s)],l.push({op:"bcurveTo",data:[t+bg(h[p],s),e+bg(h[p],s),r+bg(h[p],s),i+bg(h[p],s),c[0],c[1]]});return l}function Bg(t){return[...t]}function Mg(t,e=0){const r=t.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(3===r)i.push(Bg(t[0]),Bg(t[1]),Bg(t[2]),Bg(t[2]));else{const r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);const n=[],a=1-e;i.push(Bg(r[0]));for(let t=1;t+2<r.length;t++){const e=r[t];n[0]=[e[0],e[1]],n[1]=[e[0]+(a*r[t+1][0]-a*r[t-1][0])/6,e[1]+(a*r[t+1][1]-a*r[t-1][1])/6],n[2]=[r[t+1][0]+(a*r[t][0]-a*r[t+2][0])/6,r[t+1][1]+(a*r[t][1]-a*r[t+2][1])/6],n[3]=[r[t+1][0],r[t+1][1]],i.push(n[1],n[2],n[3])}}return i}function Lg(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function Ag(t,e,r){const i=Lg(e,r);if(0===i)return Lg(t,e);let n=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/i;return n=Math.max(0,Math.min(1,n)),Lg(t,Fg(e,r,n))}function Fg(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function $g(t,e,r,i){const n=i||[];if(function(t,e){const r=t[e+0],i=t[e+1],n=t[e+2],a=t[e+3];let o=3*i[0]-2*r[0]-a[0];o*=o;let s=3*i[1]-2*r[1]-a[1];s*=s;let l=3*n[0]-2*a[0]-r[0];l*=l;let h=3*n[1]-2*a[1]-r[1];return h*=h,o<l&&(o=l),s<h&&(s=h),o+s}(t,e)<r){const r=t[e+0];n.length?(a=n[n.length-1],o=r,Math.sqrt(Lg(a,o))>1&&n.push(r)):n.push(r),n.push(t[e+3])}else{const i=t[e+0],a=t[e+1],o=t[e+2],s=t[e+3],l=Fg(i,a,.5),h=Fg(a,o,.5),c=Fg(o,s,.5),d=Fg(l,h,.5),u=Fg(h,c,.5),p=Fg(d,u,.5);$g([i,l,d,p],0,r,n),$g([p,u,c,s],0,r,n)}var a,o;return n}function Eg(t,e){return Og(t,0,t.length,e)}function Og(t,e,r,i,n){const a=n||[],o=t[e],s=t[r-1];let l=0,h=1;for(let i=e+1;i<r-1;++i){const e=Ag(t[i],o,s);e>l&&(l=e,h=i)}return Math.sqrt(l)>i?(Og(t,e,h+1,i,a),Og(t,h,r,i,a)):(a.length||a.push(o),a.push(s)),a}function Dg(t,e=.15,r){const i=[],n=(t.length-1)/3;for(let r=0;r<n;r++)$g(t,3*r,e,i);return r&&r>0?Og(i,0,i.length,r):i}const Ig="none";class Ng{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,i,n){const a=this._o(n);return this._d("line",[sg(t,e,r,i,a)],a)}rectangle(t,e,r,i,n){const a=this._o(n),o=[],s=function(t,e,r,i,n){return lg([[t,e],[t+r,e],[t+r,e+i],[t,e+i]],!0,n)}(t,e,r,i,a);if(a.fill){const n=[[t,e],[t+r,e],[t+r,e+i],[t,e+i]];"solid"===a.fillStyle?o.push(fg([n],a)):o.push(gg([n],a))}return a.stroke!==Ig&&o.push(s),this._d("rectangle",o,a)}ellipse(t,e,r,i,n){const a=this._o(n),o=[],s=cg(r,i,a),l=dg(t,e,a,s);if(a.fill)if("solid"===a.fillStyle){const r=dg(t,e,a,s).opset;r.type="fillPath",o.push(r)}else o.push(gg([l.estimatedPoints],a));return a.stroke!==Ig&&o.push(l.opset),this._d("ellipse",o,a)}circle(t,e,r,i){const n=this.ellipse(t,e,r,r,i);return n.shape="circle",n}linearPath(t,e){const r=this._o(e);return this._d("linearPath",[lg(t,!1,r)],r)}arc(t,e,r,i,n,a,o=!1,s){const l=this._o(s),h=[],c=ug(t,e,r,i,n,a,o,!0,l);if(o&&l.fill)if("solid"===l.fillStyle){const o=Object.assign({},l);o.disableMultiStroke=!0;const s=ug(t,e,r,i,n,a,!0,!1,o);s.type="fillPath",h.push(s)}else h.push(function(t,e,r,i,n,a,o){const s=t,l=e;let h=Math.abs(r/2),c=Math.abs(i/2);h+=bg(.01*h,o),c+=bg(.01*c,o);let d=n,u=a;for(;d<0;)d+=2*Math.PI,u+=2*Math.PI;u-d>2*Math.PI&&(d=0,u=2*Math.PI);const p=(u-d)/o.curveStepCount,f=[];for(let t=d;t<=u;t+=p)f.push([s+h*Math.cos(t),l+c*Math.sin(t)]);return f.push([s+h*Math.cos(u),l+c*Math.sin(u)]),f.push([s,l]),gg([f],o)}(t,e,r,i,n,a,l));return l.stroke!==Ig&&h.push(c),this._d("arc",h,l)}curve(t,e){const r=this._o(e),i=[],n=hg(t,r);if(r.fill&&r.fill!==Ig)if("solid"===r.fillStyle){const e=hg(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{const e=[],n=t;if(n.length){const t="number"==typeof n[0][0]?[n]:n;for(const i of t)i.length<3?e.push(...i):3===i.length?e.push(...Dg(Mg([i[0],i[0],i[1],i[2]]),10,(1+r.roughness)/2)):e.push(...Dg(Mg(i),10,(1+r.roughness)/2))}e.length&&i.push(gg([e],r))}return r.stroke!==Ig&&i.push(n),this._d("curve",i,r)}polygon(t,e){const r=this._o(e),i=[],n=lg(t,!0,r);return r.fill&&("solid"===r.fillStyle?i.push(fg([t],r)):i.push(gg([t],r))),r.stroke!==Ig&&i.push(n),this._d("polygon",i,r)}path(t,e){const r=this._o(e),i=[];if(!t)return this._d("path",i,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const n=r.fill&&"transparent"!==r.fill&&r.fill!==Ig,a=r.stroke!==Ig,o=!!(r.simplification&&r.simplification<1),s=function(t,e,r){const i=ig(rg(eg(t))),n=[];let a=[],o=[0,0],s=[];const l=()=>{s.length>=4&&a.push(...Dg(s,1)),s=[]},h=()=>{l(),a.length&&(n.push(a),a=[])};for(const{key:t,data:e}of i)switch(t){case"M":h(),o=[e[0],e[1]],a.push(o);break;case"L":l(),a.push([e[0],e[1]]);break;case"C":if(!s.length){const t=a.length?a[a.length-1]:o;s.push([t[0],t[1]])}s.push([e[0],e[1]]),s.push([e[2],e[3]]),s.push([e[4],e[5]]);break;case"Z":l(),a.push([o[0],o[1]])}if(h(),!r)return n;const c=[];for(const t of n){const e=Eg(t,r);e.length&&c.push(e)}return c}(t,0,o?4-4*(r.simplification||1):(1+r.roughness)/2),l=pg(t,r);if(n)if("solid"===r.fillStyle)if(1===s.length){const e=pg(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else i.push(fg(s,r));else i.push(gg(s,r));return a&&(o?s.forEach(t=>{i.push(lg(t,!1,r))}):i.push(l)),this._d("path",i,r)}opsToPath(t,e){let r="";for(const i of t.ops){const t="number"==typeof e&&e>=0?i.data.map(t=>+t.toFixed(e)):i.data;switch(i.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){const e=t.sets||[],r=t.options||this.defaultOptions,i=[];for(const t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:Ig};break;case"fillPath":e={d:this.opsToPath(t),stroke:Ig,strokeWidth:0,fill:r.fill||Ig};break;case"fillSketch":e=this.fillSketch(t,r)}e&&i.push(e)}return i}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||Ig,strokeWidth:r,fill:Ig}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}const Pg="http://www.w3.org/2000/svg";class zg{constructor(t,e){this.svg=t,this.gen=new Ng(e)}draw(t){const e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,n=i.createElementNS(Pg,"g"),a=t.options.fixedDecimalPlaceDigits;for(const o of e){let e=null;switch(o.type){case"path":e=i.createElementNS(Pg,"path"),e.setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":e=i.createElementNS(Pg,"path"),e.setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(i,o,r)}e&&n.appendChild(e)}return n}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const n=t.createElementNS(Pg,"path");return n.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),n.setAttribute("stroke",r.fill||""),n.setAttribute("stroke-width",i+""),n.setAttribute("fill","none"),r.fillLineDash&&n.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&n.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),n}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,i,n){const a=this.gen.line(t,e,r,i,n);return this.draw(a)}rectangle(t,e,r,i,n){const a=this.gen.rectangle(t,e,r,i,n);return this.draw(a)}ellipse(t,e,r,i,n){const a=this.gen.ellipse(t,e,r,i,n);return this.draw(a)}circle(t,e,r,i){const n=this.gen.circle(t,e,r,i);return this.draw(n)}linearPath(t,e){const r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){const r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,i,n,a,o=!1,s){const l=this.gen.arc(t,e,r,i,n,a,o,s);return this.draw(l)}curve(t,e){const r=this.gen.curve(t,e);return this.draw(r)}path(t,e){const r=this.gen.path(t,e);return this.draw(r)}}var qg=(t,e)=>new zg(t,e),Rg=qe(async(t,e,r)=>{var i,n;let a;const o=e.useHtmlLabels||Mn(null==(i=da())?void 0:i.htmlLabels);a=r||"node default";const s=t.insert("g").attr("class",a).attr("id",e.domId||e.id),l=s.insert("g").attr("class","label").attr("style",Qp(e.labelStyle));let h;h=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];const c=await qf(l,_n(Zp(h),da()),{useHtmlLabels:o,width:e.width||(null==(n=da().flowchart)?void 0:n.wrappingWidth),cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img});let d=c.getBBox();const u=((null==e?void 0:e.padding)??0)/2;if(o){const t=c.children[0],e=Po(c),r=t.getElementsByTagName("img");if(r){const t=""===h.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(e=>new Promise(r=>{function i(){if(e.style.display="flex",e.style.flexDirection="column",t){const t=da().fontSize?da().fontSize:window.getComputedStyle(document.body).fontSize,r=5,[i=Ui.fontSize]=Up(t),n=i*r+"px";e.style.minWidth=n,e.style.maxWidth=n}else e.style.width="100%";r(e)}qe(i,"setupImage"),setTimeout(()=>{e.complete&&i()}),e.addEventListener("error",i),e.addEventListener("load",i)})))}d=t.getBoundingClientRect(),e.attr("width",d.width),e.attr("height",d.height)}return o?l.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"):l.attr("transform","translate(0, "+-d.height/2+")"),e.centerLabel&&l.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:s,bbox:d,halfPadding:u,label:l}},"labelHelper"),jg=qe(async(t,e,r)=>{var i,n,a,o,s,l;const h=r.useHtmlLabels||Mn(null==(n=null==(i=da())?void 0:i.flowchart)?void 0:n.htmlLabels),c=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),d=await qf(c,_n(Zp(e),da()),{useHtmlLabels:h,width:r.width||(null==(o=null==(a=da())?void 0:a.flowchart)?void 0:o.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let u=d.getBBox();const p=r.padding/2;if(Mn(null==(l=null==(s=da())?void 0:s.flowchart)?void 0:l.htmlLabels)){const t=d.children[0],e=Po(d);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}return h?c.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):c.attr("transform","translate(0, "+-u.height/2+")"),r.centerLabel&&c.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),c.insert("rect",":first-child"),{shapeSvg:t,bbox:u,halfPadding:p,label:c}},"insertLabel"),Wg=qe((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),Hg=qe((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function Yg(t){const e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function Ug(t,e,r,i,n,a){const o=[],s=r-t,l=i-e,h=s/a,c=2*Math.PI/h,d=e+l/2;for(let e=0;e<=50;e++){const r=t+e/50*s,i=d+n*Math.sin(c*(r-t));o.push({x:r,y:i})}return o}function Gg(t,e,r,i,n,a){const o=[],s=n*Math.PI/180,l=(a*Math.PI/180-s)/(i-1);for(let n=0;n<i;n++){const i=s+n*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);o.push({x:-a,y:-h})}return o}qe(Yg,"createPathFromPoints"),qe(Ug,"generateFullSineWavePoints"),qe(Gg,"generateCirclePoints");var Vg=qe((t,e)=>{var r,i,n=t.x,a=t.y,o=e.x-n,s=e.y-a,l=t.width/2,h=t.height/2;return Math.abs(s)*l>Math.abs(o)*h?(s<0&&(h=-h),r=0===s?0:h*o/s,i=h):(o<0&&(l=-l),r=l,i=0===o?0:l*s/o),{x:n+r,y:a+i}},"intersectRect"),Xg=Vg;function Zg(t,e){e&&t.attr("style",e)}async function Kg(t){const e=Po(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),i=da();let n=t.label;t.label&&Nn(t.label)&&(n=await qn(t.label.replace(Rn.lineBreakRegex,"\n"),i));const a='<span class="'+(t.isNode?"nodeLabel":"edgeLabel")+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+n+"</span>";return r.html(_n(a,i)),Zg(r,t.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}qe(Zg,"applyStyle"),qe(Kg,"addHtmlLabel");var Qg=qe(async(t,e,r,i)=>{let n=t||"";if("object"==typeof n&&(n=n[0]),Mn(da().flowchart.htmlLabels)){n=n.replace(/\\n|\n/g,"<br />"),We.info("vertexText"+n);const t={isNode:i,label:Zp(n).replace(/fa[blrs]?:fa-[\w-]+/g,t=>`<i class='${t.replace(":"," ")}'></i>`),labelStyle:e&&e.replace("fill:","color:")};return await Kg(t)}{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let i=[];i="string"==typeof n?n.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(n)?n:[];for(const e of i){const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),r?i.setAttribute("class","title-row"):i.setAttribute("class","row"),i.textContent=e.trim(),t.appendChild(i)}return t}},"createLabel"),Jg=Qg,ty=qe((t,e,r,i,n)=>["M",t+n,e,"H",t+r-n,"A",n,n,0,0,1,t+r,e+n,"V",e+i-n,"A",n,n,0,0,1,t+r-n,e+i,"H",t+n,"A",n,n,0,0,1,t,e+i-n,"V",e+n,"A",n,n,0,0,1,t+n,e,"Z"].join(" "),"createRoundedRectPathD"),ey=qe(async(t,e)=>{We.info("Creating subgraph rect for ",e.id,e);const r=da(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:o}=i,{labelStyles:s,nodeStyles:l,borderStyles:h,backgroundStyles:c}=ap(e),d=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),u=Mn(r.flowchart.htmlLabels),p=d.insert("g").attr("class","cluster-label "),f=await qf(p,e.label,{style:e.labelStyle,useHtmlLabels:u,isNode:!0});let g=f.getBBox();if(Mn(r.flowchart.htmlLabels)){const t=f.children[0],e=Po(f);g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}const y=e.width<=g.width+e.padding?g.width+e.padding:e.width;e.width<=g.width+e.padding?e.diff=(y-e.width)/2-e.padding:e.diff=-e.padding;const m=e.height,x=e.x-y/2,b=e.y-m/2;let C;if(We.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){const t=qg(d),r=op(e,{roughness:.7,fill:a,stroke:o,fillWeight:3,seed:n}),i=t.path(ty(x,b,y,m,0),r);C=d.insert(()=>(We.debug("Rough node insert CXC",i),i),":first-child"),C.select("path:nth-child(2)").attr("style",h.join(";")),C.select("path").attr("style",c.join(";").replace("fill","stroke"))}else C=d.insert("rect",":first-child"),C.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",x).attr("y",b).attr("width",y).attr("height",m);const{subGraphTitleTopMargin:_}=tp(r);if(p.attr("transform",`translate(${e.x-g.width/2}, ${e.y-e.height/2+_})`),s){const t=p.select("span");t&&t.attr("style",s)}const k=C.node().getBBox();return e.offsetX=0,e.width=k.width,e.height=k.height,e.offsetY=g.height-e.padding/2,e.intersect=function(t){return Xg(e,t)},{cluster:d,labelBBox:g}},"rect"),ry=qe((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.id),i=r.insert("rect",":first-child"),n=0*e.padding,a=n/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+n).attr("height",e.height+n).attr("fill","none");const o=i.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return Xg(e,t)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),iy=qe(async(t,e)=>{const r=da(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:a,compositeBackground:o,compositeTitleBackground:s,nodeBorder:l}=i,h=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),c=h.insert("g",":first-child"),d=h.insert("g").attr("class","cluster-label");let u=h.append("rect");const p=d.node().appendChild(await Jg(e.label,e.labelStyle,void 0,!0));let f=p.getBBox();if(Mn(r.flowchart.htmlLabels)){const t=p.children[0],e=Po(p);f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}const g=0*e.padding,y=g/2,m=(e.width<=f.width+e.padding?f.width+e.padding:e.width)+g;e.width<=f.width+e.padding?e.diff=(m-e.width)/2-e.padding:e.diff=-e.padding;const x=e.height+g,b=e.height+g-f.height-6,C=e.x-m/2,_=e.y-x/2;e.width=m;const k=e.y-e.height/2-y+f.height+2;let w;if("handDrawn"===e.look){const t=e.cssClasses.includes("statediagram-cluster-alt"),r=qg(h),i=e.rx||e.ry?r.path(ty(C,_,m,x,10),{roughness:.7,fill:s,fillStyle:"solid",stroke:l,seed:n}):r.rectangle(C,_,m,x,{seed:n});w=h.insert(()=>i,":first-child");const c=r.rectangle(C,k,m,b,{fill:t?a:o,fillStyle:t?"hachure":"solid",stroke:l,seed:n});w=h.insert(()=>i,":first-child"),u=h.insert(()=>c)}else w=c.insert("rect",":first-child"),w.attr("class","outer").attr("x",C).attr("y",_).attr("width",m).attr("height",x).attr("data-look",e.look),u.attr("class","inner").attr("x",C).attr("y",k).attr("width",m).attr("height",b);d.attr("transform",`translate(${e.x-f.width/2}, ${_+1-(Mn(r.flowchart.htmlLabels)?0:3)})`);const v=w.node().getBBox();return e.height=v.height,e.offsetX=0,e.offsetY=f.height-e.padding/2,e.labelBBox=f,e.intersect=function(t){return Xg(e,t)},{cluster:h,labelBBox:f}},"roundedWithTitle"),ny=qe(async(t,e)=>{We.info("Creating subgraph rect for ",e.id,e);const r=da(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:o}=i,{labelStyles:s,nodeStyles:l,borderStyles:h,backgroundStyles:c}=ap(e),d=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),u=Mn(r.flowchart.htmlLabels),p=d.insert("g").attr("class","cluster-label "),f=await qf(p,e.label,{style:e.labelStyle,useHtmlLabels:u,isNode:!0,width:e.width});let g=f.getBBox();if(Mn(r.flowchart.htmlLabels)){const t=f.children[0],e=Po(f);g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}const y=e.width<=g.width+e.padding?g.width+e.padding:e.width;e.width<=g.width+e.padding?e.diff=(y-e.width)/2-e.padding:e.diff=-e.padding;const m=e.height,x=e.x-y/2,b=e.y-m/2;let C;if(We.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){const t=qg(d),r=op(e,{roughness:.7,fill:a,stroke:o,fillWeight:4,seed:n}),i=t.path(ty(x,b,y,m,e.rx),r);C=d.insert(()=>(We.debug("Rough node insert CXC",i),i),":first-child"),C.select("path:nth-child(2)").attr("style",h.join(";")),C.select("path").attr("style",c.join(";").replace("fill","stroke"))}else C=d.insert("rect",":first-child"),C.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",x).attr("y",b).attr("width",y).attr("height",m);const{subGraphTitleTopMargin:_}=tp(r);if(p.attr("transform",`translate(${e.x-g.width/2}, ${e.y-e.height/2+_})`),s){const t=p.select("span");t&&t.attr("style",s)}const k=C.node().getBBox();return e.offsetX=0,e.width=k.width,e.height=k.height,e.offsetY=g.height-e.padding/2,e.intersect=function(t){return Xg(e,t)},{cluster:d,labelBBox:g}},"kanbanSection"),ay=qe((t,e)=>{const r=da(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:a}=i,o=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),s=o.insert("g",":first-child"),l=0*e.padding,h=e.width+l;e.diff=-e.padding;const c=e.height+l,d=e.x-h/2,u=e.y-c/2;let p;if(e.width=h,"handDrawn"===e.look){const t=qg(o).rectangle(d,u,h,c,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});p=o.insert(()=>t,":first-child")}else p=s.insert("rect",":first-child"),p.attr("class","divider").attr("x",d).attr("y",u).attr("width",h).attr("height",c).attr("data-look",e.look);const f=p.node().getBBox();return e.height=f.height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return Xg(e,t)},{cluster:o,labelBBox:{}}},"divider"),oy={rect:ey,squareRect:ey,roundedWithTitle:iy,noteGroup:ry,divider:ay,kanbanSection:ny},sy=new Map,ly=qe(async(t,e)=>{const r=e.shape||"rect",i=await oy[r](t,e);return sy.set(e.id,i),i},"insertCluster"),hy=qe(()=>{sy=new Map},"clear");function cy(t,e){return t.intersect(e)}qe(cy,"intersectNode");var dy=cy;function uy(t,e,r,i){var n=t.x,a=t.y,o=n-i.x,s=a-i.y,l=Math.sqrt(e*e*s*s+r*r*o*o),h=Math.abs(e*r*o/l);i.x<n&&(h=-h);var c=Math.abs(e*r*s/l);return i.y<a&&(c=-c),{x:n+h,y:a+c}}qe(uy,"intersectEllipse");var py=uy;function fy(t,e,r){return py(t,e,e,r)}qe(fy,"intersectCircle");var gy=fy;function yy(t,e,r,i){{const n=e.y-t.y,a=t.x-e.x,o=e.x*t.y-t.x*e.y,s=n*r.x+a*r.y+o,l=n*i.x+a*i.y+o,h=1e-6;if(0!==s&&0!==l&&my(s,l))return;const c=i.y-r.y,d=r.x-i.x,u=i.x*r.y-r.x*i.y,p=c*t.x+d*t.y+u,f=c*e.x+d*e.y+u;if(Math.abs(p)<h&&Math.abs(f)<h&&my(p,f))return;const g=n*d-c*a;if(0===g)return;const y=Math.abs(g/2);let m=a*u-d*o;const x=m<0?(m-y)/g:(m+y)/g;return m=c*o-n*u,{x,y:m<0?(m-y)/g:(m+y)/g}}}function my(t,e){return t*e>0}qe(yy,"intersectLine"),qe(my,"sameSign");var xy=yy;function by(t,e,r){let i=t.x,n=t.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach(function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)}):(o=Math.min(o,e.x),s=Math.min(s,e.y));let l=i-t.width/2-o,h=n-t.height/2-s;for(let i=0;i<e.length;i++){let n=e[i],o=e[i<e.length-1?i+1:0],s=xy(t,r,{x:l+n.x,y:h+n.y},{x:l+o.x,y:h+o.y});s&&a.push(s)}return a.length?(a.length>1&&a.sort(function(t,e){let i=t.x-r.x,n=t.y-r.y,a=Math.sqrt(i*i+n*n),o=e.x-r.x,s=e.y-r.y,l=Math.sqrt(o*o+s*s);return a<l?-1:a===l?0:1}),a[0]):t}qe(by,"intersectPolygon");var Cy={node:dy,circle:gy,ellipse:py,polygon:by,rect:Xg};function _y(t,e){const{labelStyles:r}=ap(e);e.labelStyle=r;const i=Hg(e);let n=i;i||(n="anchor");const a=t.insert("g").attr("class",n).attr("id",e.domId||e.id),{cssStyles:o}=e,s=qg(a),l=op(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(l.roughness=0);const h=s.circle(0,0,2,l),c=a.insert(()=>h,":first-child");return c.attr("class","anchor").attr("style",Qp(o)),Wg(e,c),e.intersect=function(t){return We.info("Circle intersect",e,1,t),Cy.circle(e,1,t)},a}function ky(t,e,r,i,n,a,o){const s=(t+r)/2,l=(e+i)/2,h=Math.atan2(i-e,r-t),c=(r-t)/2/n,d=(i-e)/2/a,u=Math.sqrt(c**2+d**2);if(u>1)throw new Error("The given radii are too small to create an arc between the points.");const p=Math.sqrt(1-u**2),f=s+p*a*Math.sin(h)*(o?-1:1),g=l-p*n*Math.cos(h)*(o?-1:1),y=Math.atan2((e-g)/a,(t-f)/n);let m=Math.atan2((i-g)/a,(r-f)/n)-y;o&&m<0&&(m+=2*Math.PI),!o&&m>0&&(m-=2*Math.PI);const x=[];for(let t=0;t<20;t++){const e=y+t/19*m,r=f+n*Math.cos(e),i=g+a*Math.sin(e);x.push({x:r,y:i})}return x}async function wy(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=a.width+e.padding+20,s=a.height+e.padding,l=s/2,h=l/(2.5+s/50),{cssStyles:c}=e,d=[{x:o/2,y:-s/2},{x:-o/2,y:-s/2},...ky(-o/2,-s/2,-o/2,s/2,h,l,!1),{x:o/2,y:s/2},...ky(o/2,s/2,o/2,-s/2,h,l,!0)],u=qg(n),p=op(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const f=Yg(d),g=u.path(f,p),y=n.insert(()=>g,":first-child");return y.attr("class","basic label-container"),c&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",c),i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(${h/2}, 0)`),Wg(e,y),e.intersect=function(t){return Cy.polygon(e,d,t)},n}function vy(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}async function Sy(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=a.height+e.padding,s=a.width+e.padding+12,l=-o,h=[{x:12,y:l},{x:s,y:l},{x:s,y:0},{x:0,y:0},{x:0,y:l+12},{x:12,y:l}];let c;const{cssStyles:d}=e;if("handDrawn"===e.look){const t=qg(n),r=op(e,{}),i=Yg(h),a=t.path(i,r);c=n.insert(()=>a,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),d&&c.attr("style",d)}else c=vy(n,s,o,h);return i&&c.attr("style",i),Wg(e,c),e.intersect=function(t){return Cy.polygon(e,h,t)},n}function Ty(t,e){const{nodeStyles:r}=ap(e);e.label="";const i=t.insert("g").attr("class",Hg(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,a=Math.max(28,e.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],s=qg(i),l=op(e,{});"handDrawn"!==e.look&&(l.roughness=0,l.fillStyle="solid");const h=Yg(o),c=s.path(h,l),d=i.insert(()=>c,":first-child");return n&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",n),r&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(t){return Cy.polygon(e,o,t)},i}async function By(t,e,r){const{labelStyles:i,nodeStyles:n}=ap(e);e.labelStyle=i;const{shapeSvg:a,bbox:o,halfPadding:s}=await Rg(t,e,Hg(e)),l=(null==r?void 0:r.padding)??s,h=o.width/2+l;let c;const{cssStyles:d}=e;if("handDrawn"===e.look){const t=qg(a),r=op(e,{}),i=t.circle(0,0,2*h,r);c=a.insert(()=>i,":first-child"),c.attr("class","basic label-container").attr("style",Qp(d))}else c=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",h).attr("cx",0).attr("cy",0);return Wg(e,c),e.calcIntersect=function(t,e){const r=t.width/2;return Cy.circle(t,r,e)},e.intersect=function(t){return We.info("Circle intersect",e,h,t),Cy.circle(e,h,t)},a}function My(t){const e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=2*t;return`M ${-i/2*e},${i/2*r} L ${i/2*e},${-i/2*r}\n M ${i/2*e},${i/2*r} L ${-i/2*e},${-i/2*r}`}function Ly(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r,e.label="";const n=t.insert("g").attr("class",Hg(e)).attr("id",e.domId??e.id),a=Math.max(30,(null==e?void 0:e.width)??0),{cssStyles:o}=e,s=qg(n),l=op(e,{});"handDrawn"!==e.look&&(l.roughness=0,l.fillStyle="solid");const h=s.circle(0,0,2*a,l),c=My(a),d=s.path(c,l),u=n.insert(()=>h,":first-child");return u.insert(()=>d),o&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",o),i&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",i),Wg(e,u),e.intersect=function(t){return We.info("crossedCircle intersect",e,{radius:a,point:t}),Cy.circle(e,a,t)},n}function Ay(t,e,r,i=100,n=0,a=180){const o=[],s=n*Math.PI/180,l=(a*Math.PI/180-s)/(i-1);for(let n=0;n<i;n++){const i=s+n*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);o.push({x:-a,y:-h})}return o}async function Fy(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=a.width+(e.padding??0),l=a.height+(e.padding??0),h=Math.max(5,.1*l),{cssStyles:c}=e,d=[...Ay(s/2,-l/2,h,30,-90,0),{x:-s/2-h,y:h},...Ay(s/2+2*h,-h,h,20,-180,-270),...Ay(s/2+2*h,h,h,20,-90,-180),{x:-s/2-h,y:-l/2},...Ay(s/2,l/2,h,20,0,90)],u=[{x:s/2,y:-l/2-h},{x:-s/2,y:-l/2-h},...Ay(s/2,-l/2,h,20,-90,0),{x:-s/2-h,y:-h},...Ay(s/2+.1*s,-h,h,20,-180,-270),...Ay(s/2+.1*s,h,h,20,-90,-180),{x:-s/2-h,y:l/2},...Ay(s/2,l/2,h,20,0,90),{x:-s/2,y:l/2+h},{x:s/2,y:l/2+h}],p=qg(n),f=op(e,{fill:"none"});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const g=Yg(d).replace("Z",""),y=p.path(g,f),m=Yg(u),x=p.path(m,{...f}),b=n.insert("g",":first-child");return b.insert(()=>x,":first-child").attr("stroke-opacity",0),b.insert(()=>y,":first-child"),b.attr("class","text"),c&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",c),i&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(${h}, 0)`),o.attr("transform",`translate(${-s/2+h-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Wg(e,b),e.intersect=function(t){return Cy.polygon(e,u,t)},n}function $y(t,e,r,i=100,n=0,a=180){const o=[],s=n*Math.PI/180,l=(a*Math.PI/180-s)/(i-1);for(let n=0;n<i;n++){const i=s+n*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);o.push({x:a,y:h})}return o}async function Ey(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=a.width+(e.padding??0),l=a.height+(e.padding??0),h=Math.max(5,.1*l),{cssStyles:c}=e,d=[...$y(s/2,-l/2,h,20,-90,0),{x:s/2+h,y:-h},...$y(s/2+2*h,-h,h,20,-180,-270),...$y(s/2+2*h,h,h,20,-90,-180),{x:s/2+h,y:l/2},...$y(s/2,l/2,h,20,0,90)],u=[{x:-s/2,y:-l/2-h},{x:s/2,y:-l/2-h},...$y(s/2,-l/2,h,20,-90,0),{x:s/2+h,y:-h},...$y(s/2+2*h,-h,h,20,-180,-270),...$y(s/2+2*h,h,h,20,-90,-180),{x:s/2+h,y:l/2},...$y(s/2,l/2,h,20,0,90),{x:s/2,y:l/2+h},{x:-s/2,y:l/2+h}],p=qg(n),f=op(e,{fill:"none"});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const g=Yg(d).replace("Z",""),y=p.path(g,f),m=Yg(u),x=p.path(m,{...f}),b=n.insert("g",":first-child");return b.insert(()=>x,":first-child").attr("stroke-opacity",0),b.insert(()=>y,":first-child"),b.attr("class","text"),c&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",c),i&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(${-h}, 0)`),o.attr("transform",`translate(${-s/2+(e.padding??0)/2-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Wg(e,b),e.intersect=function(t){return Cy.polygon(e,u,t)},n}function Oy(t,e,r,i=100,n=0,a=180){const o=[],s=n*Math.PI/180,l=(a*Math.PI/180-s)/(i-1);for(let n=0;n<i;n++){const i=s+n*l,a=t+r*Math.cos(i),h=e+r*Math.sin(i);o.push({x:-a,y:-h})}return o}async function Dy(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=a.width+(e.padding??0),l=a.height+(e.padding??0),h=Math.max(5,.1*l),{cssStyles:c}=e,d=[...Oy(s/2,-l/2,h,30,-90,0),{x:-s/2-h,y:h},...Oy(s/2+2*h,-h,h,20,-180,-270),...Oy(s/2+2*h,h,h,20,-90,-180),{x:-s/2-h,y:-l/2},...Oy(s/2,l/2,h,20,0,90)],u=[...Oy(-s/2+h+h/2,-l/2,h,20,-90,-180),{x:s/2-h/2,y:h},...Oy(-s/2-h/2,-h,h,20,0,90),...Oy(-s/2-h/2,h,h,20,-90,0),{x:s/2-h/2,y:-h},...Oy(-s/2+h+h/2,l/2,h,30,-180,-270)],p=[{x:s/2,y:-l/2-h},{x:-s/2,y:-l/2-h},...Oy(s/2,-l/2,h,20,-90,0),{x:-s/2-h,y:-h},...Oy(s/2+2*h,-h,h,20,-180,-270),...Oy(s/2+2*h,h,h,20,-90,-180),{x:-s/2-h,y:l/2},...Oy(s/2,l/2,h,20,0,90),{x:-s/2,y:l/2+h},{x:s/2-h-h/2,y:l/2+h},...Oy(-s/2+h+h/2,-l/2,h,20,-90,-180),{x:s/2-h/2,y:h},...Oy(-s/2-h/2,-h,h,20,0,90),...Oy(-s/2-h/2,h,h,20,-90,0),{x:s/2-h/2,y:-h},...Oy(-s/2+h+h/2,l/2,h,30,-180,-270)],f=qg(n),g=op(e,{fill:"none"});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const y=Yg(d).replace("Z",""),m=f.path(y,g),x=Yg(u).replace("Z",""),b=f.path(x,g),C=Yg(p),_=f.path(C,{...g}),k=n.insert("g",":first-child");return k.insert(()=>_,":first-child").attr("stroke-opacity",0),k.insert(()=>m,":first-child"),k.insert(()=>b,":first-child"),k.attr("class","text"),c&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",c),i&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(${h-h/4}, 0)`),o.attr("transform",`translate(${-s/2+(e.padding??0)/2-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Wg(e,k),e.intersect=function(t){return Cy.polygon(e,p,t)},n}async function Iy(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=Math.max(80,1.25*(a.width+2*(e.padding??0)),(null==e?void 0:e.width)??0),s=Math.max(20,a.height+2*(e.padding??0),(null==e?void 0:e.height)??0),l=s/2,{cssStyles:h}=e,c=qg(n),d=op(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");const u=o-l,p=s/4,f=[{x:u,y:0},{x:p,y:0},{x:0,y:s/2},{x:p,y:s},{x:u,y:s},...Gg(-u,-s/2,l,50,270,90)],g=Yg(f),y=c.path(g,d),m=n.insert(()=>y,":first-child");return m.attr("class","basic label-container"),h&&"handDrawn"!==e.look&&m.selectChildren("path").attr("style",h),i&&"handDrawn"!==e.look&&m.selectChildren("path").attr("style",i),m.attr("transform",`translate(${-o/2}, ${-s/2})`),Wg(e,m),e.intersect=function(t){return Cy.polygon(e,f,t)},n}qe(_y,"anchor"),qe(ky,"generateArcPoints"),qe(wy,"bowTieRect"),qe(vy,"insertPolygonShape"),qe(Sy,"card"),qe(Ty,"choice"),qe(By,"circle"),qe(My,"createLine"),qe(Ly,"crossedCircle"),qe(Ay,"generateCirclePoints"),qe(Fy,"curlyBraceLeft"),qe($y,"generateCirclePoints"),qe(Ey,"curlyBraceRight"),qe(Oy,"generateCirclePoints"),qe(Dy,"curlyBraces"),qe(Iy,"curvedTrapezoid");var Ny=qe((t,e,r,i,n,a)=>[`M${t},${e+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,"l0,"+-i].join(" "),"createCylinderPathD"),Py=qe((t,e,r,i,n,a)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,"l0,"+-i].join(" "),"createOuterCylinderPathD"),zy=qe((t,e,r,i,n,a)=>[`M${t-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function qy(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=Math.max(a.width+e.padding,e.width??0),l=s/2,h=l/(2.5+s/50),c=Math.max(a.height+h+e.padding,e.height??0);let d;const{cssStyles:u}=e;if("handDrawn"===e.look){const t=qg(n),r=Py(0,0,s,c,l,h),i=zy(0,h,s,c,l,h),a=t.path(r,op(e,{})),o=t.path(i,op(e,{fill:"none"}));d=n.insert(()=>o,":first-child"),d=n.insert(()=>a,":first-child"),d.attr("class","basic label-container"),u&&d.attr("style",u)}else{const t=Ny(0,0,s,c,l,h);d=n.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",Qp(u)).attr("style",i)}return d.attr("label-offset-y",h),d.attr("transform",`translate(${-s/2}, ${-(c/2+h)})`),Wg(e,d),o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-a.height/2+(e.padding??0)/1.5-(a.y-(a.top??0))})`),e.intersect=function(t){const r=Cy.rect(e,t),i=r.x-(e.x??0);if(0!=l&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-h)){let n=h*h*(1-i*i/(l*l));n>0&&(n=Math.sqrt(n)),n=h-n,t.y-(e.y??0)>0&&(n=-n),r.y+=n}return r},n}async function Ry(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=a.width+e.padding,l=a.height+e.padding,h=.2*l,c=-s/2,d=-l/2-h/2,{cssStyles:u}=e,p=qg(n),f=op(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const g=[{x:c,y:d+h},{x:-c,y:d+h},{x:-c,y:-d},{x:c,y:-d},{x:c,y:d},{x:-c,y:d},{x:-c,y:d+h}],y=p.polygon(g.map(t=>[t.x,t.y]),f),m=n.insert(()=>y,":first-child");return m.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",u),i&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",i),o.attr("transform",`translate(${c+(e.padding??0)/2-(a.x-(a.left??0))}, ${d+h+(e.padding??0)/2-(a.y-(a.top??0))})`),Wg(e,m),e.intersect=function(t){return Cy.rect(e,t)},n}async function jy(t,e){var r,i;const{labelStyles:n,nodeStyles:a}=ap(e);e.labelStyle=n;const{shapeSvg:o,bbox:s,halfPadding:l}=await Rg(t,e,Hg(e)),h=s.width/2+l+5,c=s.width/2+l;let d;const{cssStyles:u}=e;if("handDrawn"===e.look){const t=qg(o),n=op(e,{roughness:.2,strokeWidth:2.5}),a=op(e,{roughness:.2,strokeWidth:1.5}),s=t.circle(0,0,2*h,n),l=t.circle(0,0,2*c,a);d=o.insert("g",":first-child"),d.attr("class",Qp(e.cssClasses)).attr("style",Qp(u)),null==(r=d.node())||r.appendChild(s),null==(i=d.node())||i.appendChild(l)}else{d=o.insert("g",":first-child");const t=d.insert("circle",":first-child"),e=d.insert("circle");d.attr("class","basic label-container").attr("style",a),t.attr("class","outer-circle").attr("style",a).attr("r",h).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",a).attr("r",c).attr("cx",0).attr("cy",0)}return Wg(e,d),e.intersect=function(t){return We.info("DoubleCircle intersect",e,h,t),Cy.circle(e,h,t)},o}function Wy(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=ap(e);e.label="",e.labelStyle=i;const a=t.insert("g").attr("class",Hg(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,s=qg(a),{nodeBorder:l}=r,h=op(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(h.roughness=0);const c=s.circle(0,0,14,h),d=a.insert(()=>c,":first-child");return d.selectAll("path").attr("style",`fill: ${l} !important;`),o&&o.length>0&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",o),n&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",n),Wg(e,d),e.intersect=function(t){return We.info("filledCircle intersect",e,{radius:7,point:t}),Cy.circle(e,7,t)},a}async function Hy(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=a.width+(e.padding??0),l=s+a.height,h=s+a.height,c=[{x:0,y:-l},{x:h,y:-l},{x:h/2,y:0}],{cssStyles:d}=e,u=qg(n),p=op(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const f=Yg(c),g=u.path(f,p),y=n.insert(()=>g,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`);return d&&"handDrawn"!==e.look&&y.selectChildren("path").attr("style",d),i&&"handDrawn"!==e.look&&y.selectChildren("path").attr("style",i),e.width=s,e.height=l,Wg(e,y),o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-l/2+(e.padding??0)/2+(a.y-(a.top??0))})`),e.intersect=function(t){return We.info("Triangle intersect",e,c,t),Cy.polygon(e,c,t)},n}function Yy(t,e,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:a}=ap(e);e.label="";const o=t.insert("g").attr("class",Hg(e)).attr("id",e.domId??e.id),{cssStyles:s}=e;let l=Math.max(70,(null==e?void 0:e.width)??0),h=Math.max(10,(null==e?void 0:e.height)??0);"LR"===r&&(l=Math.max(10,(null==e?void 0:e.width)??0),h=Math.max(70,(null==e?void 0:e.height)??0));const c=-1*l/2,d=-1*h/2,u=qg(o),p=op(e,{stroke:n.lineColor,fill:n.lineColor});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const f=u.rectangle(c,d,l,h,p),g=o.insert(()=>f,":first-child");s&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",s),a&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",a),Wg(e,g);const y=(null==i?void 0:i.padding)??0;return e.width&&e.height&&(e.width+=y/2||0,e.height+=y/2||0),e.intersect=function(t){return Cy.rect(e,t)},o}async function Uy(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=Math.max(80,a.width+2*(e.padding??0),(null==e?void 0:e.width)??0),s=Math.max(50,a.height+2*(e.padding??0),(null==e?void 0:e.height)??0),l=s/2,{cssStyles:h}=e,c=qg(n),d=op(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");const u=[{x:-o/2,y:-s/2},{x:o/2-l,y:-s/2},...Gg(-o/2+l,0,l,50,90,270),{x:o/2-l,y:s/2},{x:-o/2,y:s/2}],p=Yg(u),f=c.path(p,d),g=n.insert(()=>f,":first-child");return g.attr("class","basic label-container"),h&&"handDrawn"!==e.look&&g.selectChildren("path").attr("style",h),i&&"handDrawn"!==e.look&&g.selectChildren("path").attr("style",i),Wg(e,g),e.intersect=function(t){return We.info("Pill intersect",e,{radius:l,point:t}),Cy.polygon(e,u,t)},n}async function Gy(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=a.height+(e.padding??0),s=a.width+2.5*(e.padding??0),{cssStyles:l}=e,h=qg(n),c=op(e,{});"handDrawn"!==e.look&&(c.roughness=0,c.fillStyle="solid");let d=s/2;d+=d/6;const u=o/2,p=d-u/2,f=[{x:-p,y:-u},{x:0,y:-u},{x:p,y:-u},{x:d,y:0},{x:p,y:u},{x:0,y:u},{x:-p,y:u},{x:-d,y:0}],g=Yg(f),y=h.path(g,c),m=n.insert(()=>y,":first-child");return m.attr("class","basic label-container"),l&&"handDrawn"!==e.look&&m.selectChildren("path").attr("style",l),i&&"handDrawn"!==e.look&&m.selectChildren("path").attr("style",i),e.width=s,e.height=o,Wg(e,m),e.intersect=function(t){return Cy.polygon(e,f,t)},n}async function Vy(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.label="",e.labelStyle=r;const{shapeSvg:n}=await Rg(t,e,Hg(e)),a=Math.max(30,(null==e?void 0:e.width)??0),o=Math.max(30,(null==e?void 0:e.height)??0),{cssStyles:s}=e,l=qg(n),h=op(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");const c=[{x:0,y:0},{x:a,y:0},{x:0,y:o},{x:a,y:o}],d=Yg(c),u=l.path(d,h),p=n.insert(()=>u,":first-child");return p.attr("class","basic label-container"),s&&"handDrawn"!==e.look&&p.selectChildren("path").attr("style",s),i&&"handDrawn"!==e.look&&p.selectChildren("path").attr("style",i),p.attr("transform",`translate(${-a/2}, ${-o/2})`),Wg(e,p),e.intersect=function(t){return We.info("Pill intersect",e,{points:c}),Cy.polygon(e,c,t)},n}async function Xy(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=ap(e);e.labelStyle=n;const a=e.assetHeight??48,o=e.assetWidth??48,s=Math.max(a,o),l=null==i?void 0:i.wrappingWidth;e.width=Math.max(s,l??0);const{shapeSvg:h,bbox:c,label:d}=await Rg(t,e,"icon-shape default"),u="t"===e.pos,p=s,f=s,{nodeBorder:g}=r,{stylesMap:y}=rp(e),m=-f/2,x=-p/2,b=e.label?8:0,C=qg(h),_=op(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(_.roughness=0,_.fillStyle="solid");const k=C.rectangle(m,x,f,p,_),w=Math.max(f,c.width),v=p+c.height+b,S=C.rectangle(-w/2,-v/2,w,v,{..._,fill:"transparent",stroke:"none"}),T=h.insert(()=>k,":first-child"),B=h.insert(()=>S);if(e.icon){const t=h.append("g");t.html(`<g>${await wf(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const r=t.node().getBBox(),i=r.width,n=r.height,a=r.x,o=r.y;t.attr("transform",`translate(${-i/2-a},${u?c.height/2+b/2-n/2-o:-c.height/2-b/2-n/2-o})`),t.attr("style",`color: ${y.get("stroke")??g};`)}return d.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${u?-v/2:v/2-c.height})`),T.attr("transform",`translate(0,${u?c.height/2+b/2:-c.height/2-b/2})`),Wg(e,B),e.intersect=function(t){if(We.info("iconSquare intersect",e,t),!e.label)return Cy.rect(e,t);const r=e.x??0,i=e.y??0,n=e.height??0;let a=[];return a=u?[{x:r-c.width/2,y:i-n/2},{x:r+c.width/2,y:i-n/2},{x:r+c.width/2,y:i-n/2+c.height+b},{x:r+f/2,y:i-n/2+c.height+b},{x:r+f/2,y:i+n/2},{x:r-f/2,y:i+n/2},{x:r-f/2,y:i-n/2+c.height+b},{x:r-c.width/2,y:i-n/2+c.height+b}]:[{x:r-f/2,y:i-n/2},{x:r+f/2,y:i-n/2},{x:r+f/2,y:i-n/2+p},{x:r+c.width/2,y:i-n/2+p},{x:r+c.width/2/2,y:i+n/2},{x:r-c.width/2,y:i+n/2},{x:r-c.width/2,y:i-n/2+p},{x:r-f/2,y:i-n/2+p}],Cy.polygon(e,a,t)},h}async function Zy(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=ap(e);e.labelStyle=n;const a=e.assetHeight??48,o=e.assetWidth??48,s=Math.max(a,o),l=null==i?void 0:i.wrappingWidth;e.width=Math.max(s,l??0);const{shapeSvg:h,bbox:c,label:d}=await Rg(t,e,"icon-shape default"),u=e.label?8:0,p="t"===e.pos,{nodeBorder:f,mainBkg:g}=r,{stylesMap:y}=rp(e),m=qg(h),x=op(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=y.get("fill");x.stroke=b??g;const C=h.append("g");e.icon&&C.html(`<g>${await wf(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const _=C.node().getBBox(),k=_.width,w=_.height,v=_.x,S=_.y,T=Math.max(k,w)*Math.SQRT2+40,B=m.circle(0,0,T,x),M=Math.max(T,c.width),L=T+c.height+u,A=m.rectangle(-M/2,-L/2,M,L,{...x,fill:"transparent",stroke:"none"}),F=h.insert(()=>B,":first-child"),$=h.insert(()=>A);return C.attr("transform",`translate(${-k/2-v},${p?c.height/2+u/2-w/2-S:-c.height/2-u/2-w/2-S})`),C.attr("style",`color: ${y.get("stroke")??f};`),d.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${p?-L/2:L/2-c.height})`),F.attr("transform",`translate(0,${p?c.height/2+u/2:-c.height/2-u/2})`),Wg(e,$),e.intersect=function(t){return We.info("iconSquare intersect",e,t),Cy.rect(e,t)},h}async function Ky(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=ap(e);e.labelStyle=n;const a=e.assetHeight??48,o=e.assetWidth??48,s=Math.max(a,o),l=null==i?void 0:i.wrappingWidth;e.width=Math.max(s,l??0);const{shapeSvg:h,bbox:c,halfPadding:d,label:u}=await Rg(t,e,"icon-shape default"),p="t"===e.pos,f=s+2*d,g=s+2*d,{nodeBorder:y,mainBkg:m}=r,{stylesMap:x}=rp(e),b=-g/2,C=-f/2,_=e.label?8:0,k=qg(h),w=op(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");const v=x.get("fill");w.stroke=v??m;const S=k.path(ty(b,C,g,f,5),w),T=Math.max(g,c.width),B=f+c.height+_,M=k.rectangle(-T/2,-B/2,T,B,{...w,fill:"transparent",stroke:"none"}),L=h.insert(()=>S,":first-child").attr("class","icon-shape2"),A=h.insert(()=>M);if(e.icon){const t=h.append("g");t.html(`<g>${await wf(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const r=t.node().getBBox(),i=r.width,n=r.height,a=r.x,o=r.y;t.attr("transform",`translate(${-i/2-a},${p?c.height/2+_/2-n/2-o:-c.height/2-_/2-n/2-o})`),t.attr("style",`color: ${x.get("stroke")??y};`)}return u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${p?-B/2:B/2-c.height})`),L.attr("transform",`translate(0,${p?c.height/2+_/2:-c.height/2-_/2})`),Wg(e,A),e.intersect=function(t){if(We.info("iconSquare intersect",e,t),!e.label)return Cy.rect(e,t);const r=e.x??0,i=e.y??0,n=e.height??0;let a=[];return a=p?[{x:r-c.width/2,y:i-n/2},{x:r+c.width/2,y:i-n/2},{x:r+c.width/2,y:i-n/2+c.height+_},{x:r+g/2,y:i-n/2+c.height+_},{x:r+g/2,y:i+n/2},{x:r-g/2,y:i+n/2},{x:r-g/2,y:i-n/2+c.height+_},{x:r-c.width/2,y:i-n/2+c.height+_}]:[{x:r-g/2,y:i-n/2},{x:r+g/2,y:i-n/2},{x:r+g/2,y:i-n/2+f},{x:r+c.width/2,y:i-n/2+f},{x:r+c.width/2/2,y:i+n/2},{x:r-c.width/2,y:i+n/2},{x:r-c.width/2,y:i-n/2+f},{x:r-g/2,y:i-n/2+f}],Cy.polygon(e,a,t)},h}async function Qy(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=ap(e);e.labelStyle=n;const a=e.assetHeight??48,o=e.assetWidth??48,s=Math.max(a,o),l=null==i?void 0:i.wrappingWidth;e.width=Math.max(s,l??0);const{shapeSvg:h,bbox:c,halfPadding:d,label:u}=await Rg(t,e,"icon-shape default"),p="t"===e.pos,f=s+2*d,g=s+2*d,{nodeBorder:y,mainBkg:m}=r,{stylesMap:x}=rp(e),b=-g/2,C=-f/2,_=e.label?8:0,k=qg(h),w=op(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");const v=x.get("fill");w.stroke=v??m;const S=k.path(ty(b,C,g,f,.1),w),T=Math.max(g,c.width),B=f+c.height+_,M=k.rectangle(-T/2,-B/2,T,B,{...w,fill:"transparent",stroke:"none"}),L=h.insert(()=>S,":first-child"),A=h.insert(()=>M);if(e.icon){const t=h.append("g");t.html(`<g>${await wf(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const r=t.node().getBBox(),i=r.width,n=r.height,a=r.x,o=r.y;t.attr("transform",`translate(${-i/2-a},${p?c.height/2+_/2-n/2-o:-c.height/2-_/2-n/2-o})`),t.attr("style",`color: ${x.get("stroke")??y};`)}return u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${p?-B/2:B/2-c.height})`),L.attr("transform",`translate(0,${p?c.height/2+_/2:-c.height/2-_/2})`),Wg(e,A),e.intersect=function(t){if(We.info("iconSquare intersect",e,t),!e.label)return Cy.rect(e,t);const r=e.x??0,i=e.y??0,n=e.height??0;let a=[];return a=p?[{x:r-c.width/2,y:i-n/2},{x:r+c.width/2,y:i-n/2},{x:r+c.width/2,y:i-n/2+c.height+_},{x:r+g/2,y:i-n/2+c.height+_},{x:r+g/2,y:i+n/2},{x:r-g/2,y:i+n/2},{x:r-g/2,y:i-n/2+c.height+_},{x:r-c.width/2,y:i-n/2+c.height+_}]:[{x:r-g/2,y:i-n/2},{x:r+g/2,y:i-n/2},{x:r+g/2,y:i-n/2+f},{x:r+c.width/2,y:i-n/2+f},{x:r+c.width/2/2,y:i+n/2},{x:r-c.width/2,y:i+n/2},{x:r-c.width/2,y:i-n/2+f},{x:r-g/2,y:i-n/2+f}],Cy.polygon(e,a,t)},h}async function Jy(t,e,{config:{flowchart:r}}){const i=new Image;i.src=(null==e?void 0:e.img)??"",await i.decode();const n=Number(i.naturalWidth.toString().replace("px","")),a=Number(i.naturalHeight.toString().replace("px",""));e.imageAspectRatio=n/a;const{labelStyles:o}=ap(e);e.labelStyle=o;const s=null==r?void 0:r.wrappingWidth;e.defaultWidth=null==r?void 0:r.wrappingWidth;const l=Math.max(e.label?s??0:0,(null==e?void 0:e.assetWidth)??n),h="on"===e.constraint&&null!=e&&e.assetHeight?e.assetHeight*e.imageAspectRatio:l,c="on"===e.constraint?h/e.imageAspectRatio:(null==e?void 0:e.assetHeight)??a;e.width=Math.max(h,s??0);const{shapeSvg:d,bbox:u,label:p}=await Rg(t,e,"image-shape default"),f="t"===e.pos,g=-h/2,y=-c/2,m=e.label?8:0,x=qg(d),b=op(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const C=x.rectangle(g,y,h,c,b),_=Math.max(h,u.width),k=c+u.height+m,w=x.rectangle(-_/2,-k/2,_,k,{...b,fill:"none",stroke:"none"}),v=d.insert(()=>C,":first-child"),S=d.insert(()=>w);if(e.img){const t=d.append("image");t.attr("href",e.img),t.attr("width",h),t.attr("height",c),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-h/2},${f?k/2-c:-k/2})`)}return p.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${f?-c/2-u.height/2-m/2:c/2-u.height/2+m/2})`),v.attr("transform",`translate(0,${f?u.height/2+m/2:-u.height/2-m/2})`),Wg(e,S),e.intersect=function(t){if(We.info("iconSquare intersect",e,t),!e.label)return Cy.rect(e,t);const r=e.x??0,i=e.y??0,n=e.height??0;let a=[];return a=f?[{x:r-u.width/2,y:i-n/2},{x:r+u.width/2,y:i-n/2},{x:r+u.width/2,y:i-n/2+u.height+m},{x:r+h/2,y:i-n/2+u.height+m},{x:r+h/2,y:i+n/2},{x:r-h/2,y:i+n/2},{x:r-h/2,y:i-n/2+u.height+m},{x:r-u.width/2,y:i-n/2+u.height+m}]:[{x:r-h/2,y:i-n/2},{x:r+h/2,y:i-n/2},{x:r+h/2,y:i-n/2+c},{x:r+u.width/2,y:i-n/2+c},{x:r+u.width/2/2,y:i+n/2},{x:r-u.width/2,y:i+n/2},{x:r-u.width/2,y:i-n/2+c},{x:r-h/2,y:i-n/2+c}],Cy.polygon(e,a,t)},d}async function tm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=Math.max(a.width+2*(e.padding??0),(null==e?void 0:e.width)??0),s=Math.max(a.height+2*(e.padding??0),(null==e?void 0:e.height)??0),l=[{x:0,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:-3*s/6,y:-s}];let h;const{cssStyles:c}=e;if("handDrawn"===e.look){const t=qg(n),r=op(e,{}),i=Yg(l),a=t.path(i,r);h=n.insert(()=>a,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),c&&h.attr("style",c)}else h=vy(n,o,s,l);return i&&h.attr("style",i),e.width=o,e.height=s,Wg(e,h),e.intersect=function(t){return Cy.polygon(e,l,t)},n}async function em(t,e,r){const{labelStyles:i,nodeStyles:n}=ap(e);e.labelStyle=i;const{shapeSvg:a,bbox:o}=await Rg(t,e,Hg(e)),s=Math.max(o.width+2*r.labelPaddingX,(null==e?void 0:e.width)||0),l=Math.max(o.height+2*r.labelPaddingY,(null==e?void 0:e.height)||0),h=-s/2,c=-l/2;let d,{rx:u,ry:p}=e;const{cssStyles:f}=e;if(null!=r&&r.rx&&r.ry&&(u=r.rx,p=r.ry),"handDrawn"===e.look){const t=qg(a),r=op(e,{}),i=u||p?t.path(ty(h,c,s,l,u||0),r):t.rectangle(h,c,s,l,r);d=a.insert(()=>i,":first-child"),d.attr("class","basic label-container").attr("style",Qp(f))}else d=a.insert("rect",":first-child"),d.attr("class","basic label-container").attr("style",n).attr("rx",Qp(u)).attr("ry",Qp(p)).attr("x",h).attr("y",c).attr("width",s).attr("height",l);return Wg(e,d),e.calcIntersect=function(t,e){return Cy.rect(t,e)},e.intersect=function(t){return Cy.rect(e,t)},a}async function rm(t,e){const{shapeSvg:r,bbox:i,label:n}=await Rg(t,e,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-i.width/2-(i.x-(i.left??0))}, ${-i.height/2-(i.y-(i.top??0))})`),Wg(e,a),e.intersect=function(t){return Cy.rect(e,t)},r}async function im(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=Math.max(a.width+(e.padding??0),(null==e?void 0:e.width)??0),s=Math.max(a.height+(e.padding??0),(null==e?void 0:e.height)??0),l=[{x:0,y:0},{x:o+3*s/6,y:0},{x:o,y:-s},{x:-3*s/6,y:-s}];let h;const{cssStyles:c}=e;if("handDrawn"===e.look){const t=qg(n),r=op(e,{}),i=Yg(l),a=t.path(i,r);h=n.insert(()=>a,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),c&&h.attr("style",c)}else h=vy(n,o,s,l);return i&&h.attr("style",i),e.width=o,e.height=s,Wg(e,h),e.intersect=function(t){return Cy.polygon(e,l,t)},n}async function nm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=Math.max(a.width+(e.padding??0),(null==e?void 0:e.width)??0),s=Math.max(a.height+(e.padding??0),(null==e?void 0:e.height)??0),l=[{x:-3*s/6,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:0,y:-s}];let h;const{cssStyles:c}=e;if("handDrawn"===e.look){const t=qg(n),r=op(e,{}),i=Yg(l),a=t.path(i,r);h=n.insert(()=>a,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),c&&h.attr("style",c)}else h=vy(n,o,s,l);return i&&h.attr("style",i),e.width=o,e.height=s,Wg(e,h),e.intersect=function(t){return Cy.polygon(e,l,t)},n}function am(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.label="",e.labelStyle=r;const n=t.insert("g").attr("class",Hg(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,o=Math.max(35,(null==e?void 0:e.width)??0),s=Math.max(35,(null==e?void 0:e.height)??0),l=[{x:o,y:0},{x:0,y:s+3.5},{x:o-14,y:s+3.5},{x:0,y:2*s},{x:o,y:s-3.5},{x:14,y:s-3.5}],h=qg(n),c=op(e,{});"handDrawn"!==e.look&&(c.roughness=0,c.fillStyle="solid");const d=Yg(l),u=h.path(d,c),p=n.insert(()=>u,":first-child");return a&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",a),i&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",i),p.attr("transform",`translate(-${o/2},${-s})`),Wg(e,p),e.intersect=function(t){return We.info("lightningBolt intersect",e,t),Cy.polygon(e,l,t)},n}qe(qy,"cylinder"),qe(Ry,"dividedRectangle"),qe(jy,"doublecircle"),qe(Wy,"filledCircle"),qe(Hy,"flippedTriangle"),qe(Yy,"forkJoin"),qe(Uy,"halfRoundedRectangle"),qe(Gy,"hexagon"),qe(Vy,"hourglass"),qe(Xy,"icon"),qe(Zy,"iconCircle"),qe(Ky,"iconRounded"),qe(Qy,"iconSquare"),qe(Jy,"imageSquare"),qe(tm,"inv_trapezoid"),qe(em,"drawRect"),qe(rm,"labelRect"),qe(im,"lean_left"),qe(nm,"lean_right"),qe(am,"lightningBolt");var om=qe((t,e,r,i,n,a,o)=>[`M${t},${e+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,"l0,"+-i,`M${t},${e+a+o}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),sm=qe((t,e,r,i,n,a,o)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,"l0,"+-i,`M${t},${e+a+o}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),lm=qe((t,e,r,i,n,a)=>[`M${t-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function hm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=Math.max(a.width+(e.padding??0),e.width??0),l=s/2,h=l/(2.5+s/50),c=Math.max(a.height+h+(e.padding??0),e.height??0),d=.1*c;let u;const{cssStyles:p}=e;if("handDrawn"===e.look){const t=qg(n),r=sm(0,0,s,c,l,h,d),i=lm(0,h,s,c,l,h),a=op(e,{}),o=t.path(r,a),f=t.path(i,a);n.insert(()=>f,":first-child").attr("class","line"),u=n.insert(()=>o,":first-child"),u.attr("class","basic label-container"),p&&u.attr("style",p)}else{const t=om(0,0,s,c,l,h,d);u=n.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",Qp(p)).attr("style",i)}return u.attr("label-offset-y",h),u.attr("transform",`translate(${-s/2}, ${-(c/2+h)})`),Wg(e,u),o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-a.height/2+h-(a.y-(a.top??0))})`),e.intersect=function(t){const r=Cy.rect(e,t),i=r.x-(e.x??0);if(0!=l&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-h)){let n=h*h*(1-i*i/(l*l));n>0&&(n=Math.sqrt(n)),n=h-n,t.y-(e.y??0)>0&&(n=-n),r.y+=n}return r},n}async function cm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=Math.max(a.width+2*(e.padding??0),(null==e?void 0:e.width)??0),l=Math.max(a.height+2*(e.padding??0),(null==e?void 0:e.height)??0),h=l/4,c=l+h,{cssStyles:d}=e,u=qg(n),p=op(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const f=[{x:-s/2-s/2*.1,y:-c/2},{x:-s/2-s/2*.1,y:c/2},...Ug(-s/2-s/2*.1,c/2,s/2+s/2*.1,c/2,h,.8),{x:s/2+s/2*.1,y:-c/2},{x:-s/2-s/2*.1,y:-c/2},{x:-s/2,y:-c/2},{x:-s/2,y:c/2*1.1},{x:-s/2,y:-c/2}],g=u.polygon(f.map(t=>[t.x,t.y]),p),y=n.insert(()=>g,":first-child");return y.attr("class","basic label-container"),d&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",d),i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(0,${-h/2})`),o.attr("transform",`translate(${-s/2+(e.padding??0)+s/2*.1/2-(a.x-(a.left??0))},${-l/2+(e.padding??0)-h/2-(a.y-(a.top??0))})`),Wg(e,y),e.intersect=function(t){return Cy.polygon(e,f,t)},n}async function dm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=Math.max(a.width+2*(e.padding??0),(null==e?void 0:e.width)??0),l=Math.max(a.height+2*(e.padding??0),(null==e?void 0:e.height)??0),h=-s/2,c=-l/2,{cssStyles:d}=e,u=qg(n),p=op(e,{}),f=[{x:h-5,y:c+5},{x:h-5,y:c+l+5},{x:h+s-5,y:c+l+5},{x:h+s-5,y:c+l},{x:h+s,y:c+l},{x:h+s,y:c+l-5},{x:h+s+5,y:c+l-5},{x:h+s+5,y:c-5},{x:h+5,y:c-5},{x:h+5,y:c},{x:h,y:c},{x:h,y:c+5}],g=[{x:h,y:c+5},{x:h+s-5,y:c+5},{x:h+s-5,y:c+l},{x:h+s,y:c+l},{x:h+s,y:c},{x:h,y:c}];"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const y=Yg(f),m=u.path(y,p),x=Yg(g),b=u.path(x,{...p,fill:"none"}),C=n.insert(()=>b,":first-child");return C.insert(()=>m,":first-child"),C.attr("class","basic label-container"),d&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",d),i&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",i),o.attr("transform",`translate(${-a.width/2-5-(a.x-(a.left??0))}, ${-a.height/2+5-(a.y-(a.top??0))})`),Wg(e,C),e.intersect=function(t){return Cy.polygon(e,f,t)},n}async function um(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=Math.max(a.width+2*(e.padding??0),(null==e?void 0:e.width)??0),l=Math.max(a.height+2*(e.padding??0),(null==e?void 0:e.height)??0),h=l/4,c=l+h,d=-s/2,u=-c/2,{cssStyles:p}=e,f=Ug(d-5,u+c+5,d+s-5,u+c+5,h,.8),g=null==f?void 0:f[f.length-1],y=[{x:d-5,y:u+5},{x:d-5,y:u+c+5},...f,{x:d+s-5,y:g.y-5},{x:d+s,y:g.y-5},{x:d+s,y:g.y-10},{x:d+s+5,y:g.y-10},{x:d+s+5,y:u-5},{x:d+5,y:u-5},{x:d+5,y:u},{x:d,y:u},{x:d,y:u+5}],m=[{x:d,y:u+5},{x:d+s-5,y:u+5},{x:d+s-5,y:g.y-5},{x:d+s,y:g.y-5},{x:d+s,y:u},{x:d,y:u}],x=qg(n),b=op(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const C=Yg(y),_=x.path(C,b),k=Yg(m),w=x.path(k,b),v=n.insert(()=>_,":first-child");return v.insert(()=>w),v.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",p),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(0,${-h/2})`),o.attr("transform",`translate(${-a.width/2-5-(a.x-(a.left??0))}, ${-a.height/2+5-h/2-(a.y-(a.top??0))})`),Wg(e,v),e.intersect=function(t){return Cy.polygon(e,y,t)},n}async function pm(t,e,{config:{themeVariables:r}}){var i;const{labelStyles:n,nodeStyles:a}=ap(e);e.labelStyle=n,e.useHtmlLabels||!1!==(null==(i=on().flowchart)?void 0:i.htmlLabels)||(e.centerLabel=!0);const{shapeSvg:o,bbox:s,label:l}=await Rg(t,e,Hg(e)),h=Math.max(s.width+2*(e.padding??0),(null==e?void 0:e.width)??0),c=Math.max(s.height+2*(e.padding??0),(null==e?void 0:e.height)??0),d=-h/2,u=-c/2,{cssStyles:p}=e,f=qg(o),g=op(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const y=f.rectangle(d,u,h,c,g),m=o.insert(()=>y,":first-child");return m.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",p),a&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",a),l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-s.height/2-(s.y-(s.top??0))})`),Wg(e,m),e.intersect=function(t){return Cy.rect(e,t)},o}qe(hm,"linedCylinder"),qe(cm,"linedWaveEdgedRect"),qe(dm,"multiRect"),qe(um,"multiWaveEdgedRectangle"),qe(pm,"note");var fm=qe((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function gm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=a.width+e.padding+(a.height+e.padding),s=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}];let l;const{cssStyles:h}=e;if("handDrawn"===e.look){const t=qg(n),r=op(e,{}),i=fm(0,0,o),a=t.path(i,r);l=n.insert(()=>a,":first-child").attr("transform",`translate(${-o/2+.5}, ${o/2})`),h&&l.attr("style",h)}else l=vy(n,o,o,s),l.attr("transform",`translate(${-o/2+.5}, ${o/2})`);return i&&l.attr("style",i),Wg(e,l),e.calcIntersect=function(t,e){const r=t.width,i=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}],n=Cy.polygon(t,i,e);return{x:n.x-.5,y:n.y-.5}},e.intersect=function(t){return this.calcIntersect(e,t)},n}async function ym(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=-Math.max(a.width+(e.padding??0),(null==e?void 0:e.width)??0)/2,l=-Math.max(a.height+(e.padding??0),(null==e?void 0:e.height)??0)/2,h=l/2,c=[{x:s+h,y:l},{x:s,y:0},{x:s+h,y:-l},{x:-s,y:-l},{x:-s,y:l}],{cssStyles:d}=e,u=qg(n),p=op(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const f=Yg(c),g=u.path(f,p),y=n.insert(()=>g,":first-child");return y.attr("class","basic label-container"),d&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",d),i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(${-h/2},0)`),o.attr("transform",`translate(${-h/2-a.width/2-(a.x-(a.left??0))}, ${-a.height/2-(a.y-(a.top??0))})`),Wg(e,y),e.intersect=function(t){return Cy.polygon(e,c,t)},n}async function mm(t,e){var r,i;const{labelStyles:n,nodeStyles:a}=ap(e);let o;e.labelStyle=n,o=e.cssClasses?"node "+e.cssClasses:"node default";const s=t.insert("g").attr("class",o).attr("id",e.domId||e.id),l=s.insert("g"),h=s.insert("g").attr("class","label").attr("style",a),c=e.description,d=e.label,u=h.node().appendChild(await Jg(d,e.labelStyle,!0,!0));let p={width:0,height:0};if(Mn(null==(i=null==(r=da())?void 0:r.flowchart)?void 0:i.htmlLabels)){const t=u.children[0],e=Po(u);p=t.getBoundingClientRect(),e.attr("width",p.width),e.attr("height",p.height)}We.info("Text 2",c);const f=c||[],g=u.getBBox(),y=h.node().appendChild(await Jg(f.join?f.join("<br/>"):f,e.labelStyle,!0,!0)),m=y.children[0],x=Po(y);p=m.getBoundingClientRect(),x.attr("width",p.width),x.attr("height",p.height);const b=(e.padding||0)/2;Po(y).attr("transform","translate( "+(p.width>g.width?0:(g.width-p.width)/2)+", "+(g.height+b+5)+")"),Po(u).attr("transform","translate( "+(p.width<g.width?0:-(g.width-p.width)/2)+", 0)"),p=h.node().getBBox(),h.attr("transform","translate("+-p.width/2+", "+(-p.height/2-b+3)+")");const C=p.width+(e.padding||0),_=p.height+(e.padding||0),k=-p.width/2-b,w=-p.height/2-b;let v,S;if("handDrawn"===e.look){const t=qg(s),r=op(e,{}),i=t.path(ty(k,w,C,_,e.rx||0),r),n=t.line(-p.width/2-b,-p.height/2-b+g.height+b,p.width/2+b,-p.height/2-b+g.height+b,r);S=s.insert(()=>(We.debug("Rough node insert CXC",i),n),":first-child"),v=s.insert(()=>(We.debug("Rough node insert CXC",i),i),":first-child")}else v=l.insert("rect",":first-child"),S=l.insert("line"),v.attr("class","outer title-state").attr("style",a).attr("x",-p.width/2-b).attr("y",-p.height/2-b).attr("width",p.width+(e.padding||0)).attr("height",p.height+(e.padding||0)),S.attr("class","divider").attr("x1",-p.width/2-b).attr("x2",p.width/2+b).attr("y1",-p.height/2-b+g.height+b).attr("y2",-p.height/2-b+g.height+b);return Wg(e,v),e.intersect=function(t){return Cy.rect(e,t)},s}function xm(t,e,r,i,n,a,o){const s=(t+r)/2,l=(e+i)/2,h=Math.atan2(i-e,r-t),c=(r-t)/2/n,d=(i-e)/2/a,u=Math.sqrt(c**2+d**2);if(u>1)throw new Error("The given radii are too small to create an arc between the points.");const p=Math.sqrt(1-u**2),f=s+p*a*Math.sin(h)*(o?-1:1),g=l-p*n*Math.cos(h)*(o?-1:1),y=Math.atan2((e-g)/a,(t-f)/n);let m=Math.atan2((i-g)/a,(r-f)/n)-y;o&&m<0&&(m+=2*Math.PI),!o&&m>0&&(m-=2*Math.PI);const x=[];for(let t=0;t<20;t++){const e=y+t/19*m,r=f+n*Math.cos(e),i=g+a*Math.sin(e);x.push({x:r,y:i})}return x}async function bm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=(null==e?void 0:e.padding)??0,s=(null==e?void 0:e.padding)??0,l=(null!=e&&e.width?null==e?void 0:e.width:a.width)+2*o,h=(null!=e&&e.height?null==e?void 0:e.height:a.height)+2*s,c=e.radius||5,d=e.taper||5,{cssStyles:u}=e,p=qg(n),f=op(e,{});e.stroke&&(f.stroke=e.stroke),"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const g=[{x:-l/2+d,y:-h/2},{x:l/2-d,y:-h/2},...xm(l/2-d,-h/2,l/2,-h/2+d,c,c,!0),{x:l/2,y:-h/2+d},{x:l/2,y:h/2-d},...xm(l/2,h/2-d,l/2-d,h/2,c,c,!0),{x:l/2-d,y:h/2},{x:-l/2+d,y:h/2},...xm(-l/2+d,h/2,-l/2,h/2-d,c,c,!0),{x:-l/2,y:h/2-d},{x:-l/2,y:-h/2+d},...xm(-l/2,-h/2+d,-l/2+d,-h/2,c,c,!0)],y=Yg(g),m=p.path(y,f),x=n.insert(()=>m,":first-child");return x.attr("class","basic label-container outer-path"),u&&"handDrawn"!==e.look&&x.selectChildren("path").attr("style",u),i&&"handDrawn"!==e.look&&x.selectChildren("path").attr("style",i),Wg(e,x),e.intersect=function(t){return Cy.polygon(e,g,t)},n}async function Cm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=(null==e?void 0:e.padding)??0,l=Math.max(a.width+2*(e.padding??0),(null==e?void 0:e.width)??0),h=Math.max(a.height+2*(e.padding??0),(null==e?void 0:e.height)??0),c=-a.width/2-s,d=-a.height/2-s,{cssStyles:u}=e,p=qg(n),f=op(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const g=[{x:c,y:d},{x:c+l+8,y:d},{x:c+l+8,y:d+h},{x:c-8,y:d+h},{x:c-8,y:d},{x:c,y:d},{x:c,y:d+h}],y=p.polygon(g.map(t=>[t.x,t.y]),f),m=n.insert(()=>y,":first-child");return m.attr("class","basic label-container").attr("style",Qp(u)),i&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",i),u&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",i),o.attr("transform",`translate(${-l/2+4+(e.padding??0)-(a.x-(a.left??0))},${-h/2+(e.padding??0)-(a.y-(a.top??0))})`),Wg(e,m),e.intersect=function(t){return Cy.rect(e,t)},n}async function _m(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=Math.max(a.width+2*(e.padding??0),(null==e?void 0:e.width)??0),l=Math.max(a.height+2*(e.padding??0),(null==e?void 0:e.height)??0),h=-s/2,c=-l/2,{cssStyles:d}=e,u=qg(n),p=op(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const f=[{x:h,y:c},{x:h,y:c+l},{x:h+s,y:c+l},{x:h+s,y:c-l/2}],g=Yg(f),y=u.path(g,p),m=n.insert(()=>y,":first-child");return m.attr("class","basic label-container"),d&&"handDrawn"!==e.look&&m.selectChildren("path").attr("style",d),i&&"handDrawn"!==e.look&&m.selectChildren("path").attr("style",i),m.attr("transform",`translate(0, ${l/4})`),o.attr("transform",`translate(${-s/2+(e.padding??0)-(a.x-(a.left??0))}, ${-l/4+(e.padding??0)-(a.y-(a.top??0))})`),Wg(e,m),e.intersect=function(t){return Cy.polygon(e,f,t)},n}async function km(t,e){return em(t,e,{rx:0,ry:0,labelPaddingX:e.labelPaddingX??2*((null==e?void 0:e.padding)||0),labelPaddingY:1*((null==e?void 0:e.padding)||0)})}async function wm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=a.height+e.padding,s=a.width+o/4+e.padding,l=o/2,{cssStyles:h}=e,c=qg(n),d=op(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");const u=[{x:-s/2+l,y:-o/2},{x:s/2-l,y:-o/2},...Gg(-s/2+l,0,l,50,90,270),{x:s/2-l,y:o/2},...Gg(s/2-l,0,l,50,270,450)],p=Yg(u),f=c.path(p,d),g=n.insert(()=>f,":first-child");return g.attr("class","basic label-container outer-path"),h&&"handDrawn"!==e.look&&g.selectChildren("path").attr("style",h),i&&"handDrawn"!==e.look&&g.selectChildren("path").attr("style",i),Wg(e,g),e.intersect=function(t){return Cy.polygon(e,u,t)},n}async function vm(t,e){return em(t,e,{rx:5,ry:5})}function Sm(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=ap(e);e.labelStyle=i;const{cssStyles:a}=e,{lineColor:o,stateBorder:s,nodeBorder:l}=r,h=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),c=qg(h),d=op(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");const u=c.circle(0,0,14,{...d,stroke:o,strokeWidth:2}),p=s??l,f=c.circle(0,0,5,{...d,fill:p,stroke:p,strokeWidth:2,fillStyle:"solid"}),g=h.insert(()=>u,":first-child");return g.insert(()=>f),a&&g.selectAll("path").attr("style",a),n&&g.selectAll("path").attr("style",n),Wg(e,g),e.intersect=function(t){return Cy.circle(e,7,t)},h}function Tm(t,e,{config:{themeVariables:r}}){const{lineColor:i}=r,n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let a;if("handDrawn"===e.look){const t=qg(n).circle(0,0,14,ep(i));a=n.insert(()=>t),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else a=n.insert("circle",":first-child"),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return Wg(e,a),e.intersect=function(t){return Cy.circle(e,7,t)},n}async function Bm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=((null==e?void 0:e.padding)||0)/2,s=a.width+e.padding,l=a.height+e.padding,h=-a.width/2-o,c=-a.height/2-o,d=[{x:0,y:0},{x:s,y:0},{x:s,y:-l},{x:0,y:-l},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-l},{x:-8,y:-l},{x:-8,y:0}];if("handDrawn"===e.look){const t=qg(n),r=op(e,{}),i=t.rectangle(h-8,c,s+16,l,r),a=t.line(h,c,h,c+l,r),o=t.line(h+s,c,h+s,c+l,r);n.insert(()=>a,":first-child"),n.insert(()=>o,":first-child");const d=n.insert(()=>i,":first-child"),{cssStyles:u}=e;d.attr("class","basic label-container").attr("style",Qp(u)),Wg(e,d)}else{const t=vy(n,s,l,d);i&&t.attr("style",i),Wg(e,t)}return e.intersect=function(t){return Cy.polygon(e,d,t)},n}async function Mm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=Math.max(a.width+2*(e.padding??0),(null==e?void 0:e.width)??0),s=Math.max(a.height+2*(e.padding??0),(null==e?void 0:e.height)??0),l=-o/2,h=-s/2,c=.2*s,d=.2*s,{cssStyles:u}=e,p=qg(n),f=op(e,{}),g=[{x:l-c/2,y:h},{x:l+o+c/2,y:h},{x:l+o+c/2,y:h+s},{x:l-c/2,y:h+s}],y=[{x:l+o-c/2,y:h+s},{x:l+o+c/2,y:h+s},{x:l+o+c/2,y:h+s-d}];"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const m=Yg(g),x=p.path(m,f),b=Yg(y),C=p.path(b,{...f,fillStyle:"solid"}),_=n.insert(()=>C,":first-child");return _.insert(()=>x,":first-child"),_.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",u),i&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",i),Wg(e,_),e.intersect=function(t){return Cy.polygon(e,g,t)},n}async function Lm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=Math.max(a.width+2*(e.padding??0),(null==e?void 0:e.width)??0),l=Math.max(a.height+2*(e.padding??0),(null==e?void 0:e.height)??0),h=l/4,c=.2*s,d=.2*l,u=l+h,{cssStyles:p}=e,f=qg(n),g=op(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const y=[{x:-s/2-s/2*.1,y:u/2},...Ug(-s/2-s/2*.1,u/2,s/2+s/2*.1,u/2,h,.8),{x:s/2+s/2*.1,y:-u/2},{x:-s/2-s/2*.1,y:-u/2}],m=-s/2+s/2*.1,x=-u/2-.4*d,b=[{x:m+s-c,y:1.4*(x+l)},{x:m+s,y:x+l-d},{x:m+s,y:.9*(x+l)},...Ug(m+s,1.3*(x+l),m+s-c,1.5*(x+l),.03*-l,.5)],C=Yg(y),_=f.path(C,g),k=Yg(b),w=f.path(k,{...g,fillStyle:"solid"}),v=n.insert(()=>w,":first-child");return v.insert(()=>_,":first-child"),v.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",p),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(0,${-h/2})`),o.attr("transform",`translate(${-s/2+(e.padding??0)-(a.x-(a.left??0))},${-l/2+(e.padding??0)-h/2-(a.y-(a.top??0))})`),Wg(e,v),e.intersect=function(t){return Cy.polygon(e,y,t)},n}async function Am(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=Math.max(a.width+e.padding,(null==e?void 0:e.width)||0),s=Math.max(a.height+e.padding,(null==e?void 0:e.height)||0),l=-o/2,h=-s/2,c=n.insert("rect",":first-child");return c.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",l).attr("y",h).attr("width",o).attr("height",s),Wg(e,c),e.intersect=function(t){return Cy.rect(e,t)},n}qe(gm,"question"),qe(ym,"rect_left_inv_arrow"),qe(mm,"rectWithTitle"),qe(xm,"generateArcPoints"),qe(bm,"roundedRect"),qe(Cm,"shadedProcess"),qe(_m,"slopedRect"),qe(km,"squareRect"),qe(wm,"stadium"),qe(vm,"state"),qe(Sm,"stateEnd"),qe(Tm,"stateStart"),qe(Bm,"subroutine"),qe(Mm,"taggedRect"),qe(Lm,"taggedWaveEdgedRectangle"),qe(Am,"text");var Fm=qe((t,e,r,i,n,a)=>`M${t},${e}\n a${n},${a} 0,0,1 0,${-i}\n l${r},0\n a${n},${a} 0,0,1 0,${i}\n M${r},${-i}\n a${n},${a} 0,0,0 0,${i}\n l${-r},0`,"createCylinderPathD"),$m=qe((t,e,r,i,n,a)=>[`M${t},${e}`,`M${t+r},${e}`,`a${n},${a} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${a} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),Em=qe((t,e,r,i,n,a)=>[`M${t+r/2},${-i/2}`,`a${n},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD");async function Om(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o,halfPadding:s}=await Rg(t,e,Hg(e)),l="neo"===e.look?2*s:s,h=a.height+l,c=h/2,d=c/(2.5+h/50),u=a.width+d+l,{cssStyles:p}=e;let f;if("handDrawn"===e.look){const t=qg(n),r=$m(0,0,u,h,d,c),i=Em(0,0,u,h,d,c),a=t.path(r,op(e,{})),o=t.path(i,op(e,{fill:"none"}));f=n.insert(()=>o,":first-child"),f=n.insert(()=>a,":first-child"),f.attr("class","basic label-container"),p&&f.attr("style",p)}else{const t=Fm(0,0,u,h,d,c);f=n.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",Qp(p)).attr("style",i),f.attr("class","basic label-container"),p&&f.selectAll("path").attr("style",p),i&&f.selectAll("path").attr("style",i)}return f.attr("label-offset-x",d),f.attr("transform",`translate(${-u/2}, ${h/2} )`),o.attr("transform",`translate(${-a.width/2-d-(a.x-(a.left??0))}, ${-a.height/2-(a.y-(a.top??0))})`),Wg(e,f),e.intersect=function(t){const r=Cy.rect(e,t),i=r.y-(e.y??0);if(0!=c&&(Math.abs(i)<(e.height??0)/2||Math.abs(i)==(e.height??0)/2&&Math.abs(r.x-(e.x??0))>(e.width??0)/2-d)){let n=d*d*(1-i*i/(c*c));0!=n&&(n=Math.sqrt(Math.abs(n))),n=d-n,t.x-(e.x??0)>0&&(n=-n),r.x+=n}return r},n}async function Dm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=a.width+e.padding,s=a.height+e.padding,l=[{x:-3*s/6,y:0},{x:o+3*s/6,y:0},{x:o,y:-s},{x:0,y:-s}];let h;const{cssStyles:c}=e;if("handDrawn"===e.look){const t=qg(n),r=op(e,{}),i=Yg(l),a=t.path(i,r);h=n.insert(()=>a,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),c&&h.attr("style",c)}else h=vy(n,o,s,l);return i&&h.attr("style",i),e.width=o,e.height=s,Wg(e,h),e.intersect=function(t){return Cy.polygon(e,l,t)},n}async function Im(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=Math.max(60,a.width+2*(e.padding??0),(null==e?void 0:e.width)??0),s=Math.max(20,a.height+2*(e.padding??0),(null==e?void 0:e.height)??0),{cssStyles:l}=e,h=qg(n),c=op(e,{});"handDrawn"!==e.look&&(c.roughness=0,c.fillStyle="solid");const d=[{x:-o/2*.8,y:-s/2},{x:o/2*.8,y:-s/2},{x:o/2,y:-s/2*.6},{x:o/2,y:s/2},{x:-o/2,y:s/2},{x:-o/2,y:-s/2*.6}],u=Yg(d),p=h.path(u,c),f=n.insert(()=>p,":first-child");return f.attr("class","basic label-container"),l&&"handDrawn"!==e.look&&f.selectChildren("path").attr("style",l),i&&"handDrawn"!==e.look&&f.selectChildren("path").attr("style",i),Wg(e,f),e.intersect=function(t){return Cy.polygon(e,d,t)},n}async function Nm(t,e){var r;const{labelStyles:i,nodeStyles:n}=ap(e);e.labelStyle=i;const{shapeSvg:a,bbox:o,label:s}=await Rg(t,e,Hg(e)),l=Mn(null==(r=da().flowchart)?void 0:r.htmlLabels),h=o.width+(e.padding??0),c=h+o.height,d=h+o.height,u=[{x:0,y:0},{x:d,y:0},{x:d/2,y:-c}],{cssStyles:p}=e,f=qg(a),g=op(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const y=Yg(u),m=f.path(y,g),x=a.insert(()=>m,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return p&&"handDrawn"!==e.look&&x.selectChildren("path").attr("style",p),n&&"handDrawn"!==e.look&&x.selectChildren("path").attr("style",n),e.width=h,e.height=c,Wg(e,x),s.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${c/2-(o.height+(e.padding??0)/(l?2:1)-(o.y-(o.top??0)))})`),e.intersect=function(t){return We.info("Triangle intersect",e,u,t),Cy.polygon(e,u,t)},a}async function Pm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=Math.max(a.width+2*(e.padding??0),(null==e?void 0:e.width)??0),l=Math.max(a.height+2*(e.padding??0),(null==e?void 0:e.height)??0),h=l/8,c=l+h,{cssStyles:d}=e,u=70-s,p=u>0?u/2:0,f=qg(n),g=op(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const y=[{x:-s/2-p,y:c/2},...Ug(-s/2-p,c/2,s/2+p,c/2,h,.8),{x:s/2+p,y:-c/2},{x:-s/2-p,y:-c/2}],m=Yg(y),x=f.path(m,g),b=n.insert(()=>x,":first-child");return b.attr("class","basic label-container"),d&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",d),i&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(0,${-h/2})`),o.attr("transform",`translate(${-s/2+(e.padding??0)-(a.x-(a.left??0))},${-l/2+(e.padding??0)-h-(a.y-(a.top??0))})`),Wg(e,b),e.intersect=function(t){return Cy.polygon(e,y,t)},n}async function zm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a}=await Rg(t,e,Hg(e)),o=Math.max(a.width+2*(e.padding??0),(null==e?void 0:e.width)??0),s=Math.max(a.height+2*(e.padding??0),(null==e?void 0:e.height)??0),l=o/s;let h=o,c=s;h>c*l?c=h/l:h=c*l,h=Math.max(h,100),c=Math.max(c,50);const d=Math.min(.2*c,c/4),u=c+2*d,{cssStyles:p}=e,f=qg(n),g=op(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const y=[{x:-h/2,y:u/2},...Ug(-h/2,u/2,h/2,u/2,d,1),{x:h/2,y:-u/2},...Ug(h/2,-u/2,-h/2,-u/2,d,-1)],m=Yg(y),x=f.path(m,g),b=n.insert(()=>x,":first-child");return b.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",p),i&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",i),Wg(e,b),e.intersect=function(t){return Cy.polygon(e,y,t)},n}async function qm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Rg(t,e,Hg(e)),s=Math.max(a.width+2*(e.padding??0),(null==e?void 0:e.width)??0),l=Math.max(a.height+2*(e.padding??0),(null==e?void 0:e.height)??0),h=-s/2,c=-l/2,{cssStyles:d}=e,u=qg(n),p=op(e,{}),f=[{x:h-5,y:c-5},{x:h-5,y:c+l},{x:h+s,y:c+l},{x:h+s,y:c-5}],g=`M${h-5},${c-5} L${h+s},${c-5} L${h+s},${c+l} L${h-5},${c+l} L${h-5},${c-5}\n M${h-5},${c} L${h+s},${c}\n M${h},${c-5} L${h},${c+l}`;"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const y=u.path(g,p),m=n.insert(()=>y,":first-child");return m.attr("transform","translate(2.5, 2.5)"),m.attr("class","basic label-container"),d&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",d),i&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",i),o.attr("transform",`translate(${-a.width/2+2.5-(a.x-(a.left??0))}, ${-a.height/2+2.5-(a.y-(a.top??0))})`),Wg(e,m),e.intersect=function(t){return Cy.polygon(e,f,t)},n}async function Rm(t,e){var r,i,n,a;const o=e;if(o.alias&&(e.label=o.alias),"handDrawn"===e.look){const{themeVariables:r}=on(),{background:i}=r,n={...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${i}`]};await Rm(t,n)}const s=on();e.useHtmlLabels=s.htmlLabels;let l=(null==(r=s.er)?void 0:r.diagramPadding)??10,h=(null==(i=s.er)?void 0:i.entityPadding)??6;const{cssStyles:c}=e,{labelStyles:d,nodeStyles:u}=ap(e);if(0===o.attributes.length&&e.label){const r={rx:0,ry:0,labelPaddingX:l,labelPaddingY:1.5*l};Pp(e.label,s)+2*r.labelPaddingX<s.er.minEntityWidth&&(e.width=s.er.minEntityWidth);const i=await em(t,e,r);if(!Mn(s.htmlLabels)){const t=i.select("text"),e=null==(n=t.node())?void 0:n.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return i}s.htmlLabels||(l*=1.25,h*=1.25);let p=Hg(e);p||(p="node default");const f=t.insert("g").attr("class",p).attr("id",e.domId||e.id),g=await jm(f,e.label??"",s,0,0,["name"],d);g.height+=h;let y=0;const m=[],x=[];let b=0,C=0,_=0,k=0,w=!0,v=!0;for(const t of o.attributes){const e=await jm(f,t.type,s,0,y,["attribute-type"],d);b=Math.max(b,e.width+l);const r=await jm(f,t.name,s,0,y,["attribute-name"],d);C=Math.max(C,r.width+l);const i=await jm(f,t.keys.join(),s,0,y,["attribute-keys"],d);_=Math.max(_,i.width+l);const n=await jm(f,t.comment,s,0,y,["attribute-comment"],d);k=Math.max(k,n.width+l);const a=Math.max(e.height,r.height,i.height,n.height)+h;x.push({yOffset:y,rowHeight:a}),y+=a}let S=4;_<=l&&(w=!1,_=0,S--),k<=l&&(v=!1,k=0,S--);const T=f.node().getBBox();if(g.width+2*l-(b+C+_+k)>0){const t=g.width+2*l-(b+C+_+k);b+=t/S,C+=t/S,_>0&&(_+=t/S),k>0&&(k+=t/S)}const B=b+C+_+k,M=qg(f),L=op(e,{});"handDrawn"!==e.look&&(L.roughness=0,L.fillStyle="solid");let A=0;x.length>0&&(A=x.reduce((t,e)=>t+((null==e?void 0:e.rowHeight)??0),0));const F=Math.max(T.width+2*l,(null==e?void 0:e.width)||0,B),$=Math.max((A??0)+g.height,(null==e?void 0:e.height)||0),E=-F/2,O=-$/2;f.selectAll("g:not(:first-child)").each((t,e,r)=>{const i=Po(r[e]),n=i.attr("transform");let a=0,o=0;if(n){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(n);t&&(a=parseFloat(t[1]),o=parseFloat(t[2]),i.attr("class").includes("attribute-name")?a+=b:i.attr("class").includes("attribute-keys")?a+=b+C:i.attr("class").includes("attribute-comment")&&(a+=b+C+_))}i.attr("transform",`translate(${E+l/2+a}, ${o+O+g.height+h/2})`)}),f.select(".name").attr("transform","translate("+-g.width/2+", "+(O+h/2)+")");const D=M.rectangle(E,O,F,$,L),I=f.insert(()=>D,":first-child").attr("style",c.join("")),{themeVariables:N}=on(),{rowEven:P,rowOdd:z,nodeBorder:q}=N;m.push(0);for(const[t,e]of x.entries()){const r=(t+1)%2==0&&0!==e.yOffset,i=M.rectangle(E,g.height+O+(null==e?void 0:e.yOffset),F,null==e?void 0:e.rowHeight,{...L,fill:r?P:z,stroke:q});f.insert(()=>i,"g.label").attr("style",c.join("")).attr("class","row-rect-"+(r?"even":"odd"))}let R=M.line(E,g.height+O,F+E,g.height+O,L);f.insert(()=>R).attr("class","divider"),R=M.line(b+E,g.height+O,b+E,$+O,L),f.insert(()=>R).attr("class","divider"),w&&(R=M.line(b+C+E,g.height+O,b+C+E,$+O,L),f.insert(()=>R).attr("class","divider")),v&&(R=M.line(b+C+_+E,g.height+O,b+C+_+E,$+O,L),f.insert(()=>R).attr("class","divider"));for(const t of m)R=M.line(E,g.height+O+t,F+E,g.height+O+t,L),f.insert(()=>R).attr("class","divider");if(Wg(e,I),u&&"handDrawn"!==e.look){const t=u.split(";"),e=null==(a=null==t?void 0:t.filter(t=>t.includes("stroke")))?void 0:a.map(t=>`${t}`).join("; ");f.selectAll("path").attr("style",e??""),f.selectAll(".row-rect-even path").attr("style",u)}return e.intersect=function(t){return Cy.rect(e,t)},f}async function jm(t,e,r,i=0,n=0,a=[],o=""){const s=t.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",o);e!==Fn(e)&&(e=(e=Fn(e)).replaceAll("<","<").replaceAll(">",">"));const l=s.node().appendChild(await qf(s,e,{width:Pp(e,r)+100,style:o,useHtmlLabels:r.htmlLabels},r));if(e.includes("<")||e.includes(">")){let t=l.children[0];for(t.textContent=t.textContent.replaceAll("<","<").replaceAll(">",">");t.childNodes[0];)t=t.childNodes[0],t.textContent=t.textContent.replaceAll("<","<").replaceAll(">",">")}let h=l.getBBox();if(Mn(r.htmlLabels)){const t=l.children[0];t.style.textAlign="start";const e=Po(l);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}return h}async function Wm(t,e,r,i,n=r.class.padding??12){const a=i?0:3,o=t.insert("g").attr("class",Hg(e)).attr("id",e.domId||e.id);let s=null,l=null,h=null,c=null,d=0,u=0,p=0;if(s=o.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const t=e.annotations[0];await Hm(s,{text:`«${t}»`},0),d=s.node().getBBox().height}l=o.insert("g").attr("class","label-group text"),await Hm(l,e,0,["font-weight: bolder"]);const f=l.node().getBBox();u=f.height,h=o.insert("g").attr("class","members-group text");let g=0;for(const t of e.members)g+=await Hm(h,t,g,[t.parseClassifier()])+a;p=h.node().getBBox().height,p<=0&&(p=n/2),c=o.insert("g").attr("class","methods-group text");let y=0;for(const t of e.methods)y+=await Hm(c,t,y,[t.parseClassifier()])+a;let m=o.node().getBBox();if(null!==s){const t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return l.attr("transform",`translate(${-f.width/2}, ${d})`),m=o.node().getBBox(),h.attr("transform",`translate(0, ${d+u+2*n})`),m=o.node().getBBox(),c.attr("transform",`translate(0, ${d+u+(p?p+4*n:2*n)})`),m=o.node().getBBox(),{shapeSvg:o,bbox:m}}async function Hm(t,e,r,i=[]){const n=t.insert("g").attr("class","label").attr("style",i.join("; ")),a=on();let o="useHtmlLabels"in e?e.useHtmlLabels:Mn(a.htmlLabels)??!0,s="";s="text"in e?e.text:e.label,!o&&s.startsWith("\\")&&(s=s.substring(1)),Nn(s)&&(o=!0);const l=await qf(n,fa(Zp(s)),{width:Pp(s,a)+50,classes:"markdown-node-label",useHtmlLabels:o},a);let h,c=1;if(o){const t=l.children[0],e=Po(l);c=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(c+=t.innerHTML.split("<mrow>").length-1);const r=t.getElementsByTagName("img");if(r){const t=""===s.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(e=>new Promise(r=>{function i(){var i;if(e.style.display="flex",e.style.flexDirection="column",t){const t=(null==(i=a.fontSize)?void 0:i.toString())??window.getComputedStyle(document.body).fontSize,r=5*parseInt(t,10)+"px";e.style.minWidth=r,e.style.maxWidth=r}else e.style.width="100%";r(e)}qe(i,"setupImage"),setTimeout(()=>{e.complete&&i()}),e.addEventListener("error",i),e.addEventListener("load",i)})))}h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}else{i.includes("font-weight: bolder")&&Po(l).selectAll("tspan").attr("font-weight",""),c=l.children.length;const t=l.children[0];(""===l.textContent||l.textContent.includes(">"))&&(t.textContent=s[0]+s.substring(1).replaceAll(">",">").replaceAll("<","<").trim()," "===s[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),h=l.getBBox()}return n.attr("transform","translate(0,"+(-h.height/(2*c)+r)+")"),h.height}async function Ym(t,e){var r,i;const n=da(),a=n.class.padding??12,o=a,s=e.useHtmlLabels??Mn(n.htmlLabels)??!0,l=e;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:h,bbox:c}=await Wm(t,e,n,s,o),{labelStyles:d,nodeStyles:u}=ap(e);e.labelStyle=d,e.cssStyles=l.styles||"";const p=(null==(r=l.styles)?void 0:r.join(";"))||u||"";e.cssStyles||(e.cssStyles=p.replaceAll("!important","").split(";"));const f=0===l.members.length&&0===l.methods.length&&!(null!=(i=n.class)&&i.hideEmptyMembersBox),g=qg(h),y=op(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");const m=c.width;let x=c.height;0===l.members.length&&0===l.methods.length?x+=o:l.members.length>0&&0===l.methods.length&&(x+=2*o);const b=-m/2,C=-x/2,_=g.rectangle(b-a,C-a-(f?a:0===l.members.length&&0===l.methods.length?-a/2:0),m+2*a,x+2*a+(f?2*a:0===l.members.length&&0===l.methods.length?-a:0),y),k=h.insert(()=>_,":first-child");k.attr("class","basic label-container");const w=k.node().getBBox();h.selectAll(".text").each((t,e,r)=>{var i;const n=Po(r[e]),o=n.attr("transform");let c=0;if(o){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);t&&(c=parseFloat(t[2]))}let d=c+C+a-(f?a:0===l.members.length&&0===l.methods.length?-a/2:0);s||(d-=4);let u=b;(n.attr("class").includes("label-group")||n.attr("class").includes("annotation-group"))&&(u=-(null==(i=n.node())?void 0:i.getBBox().width)/2||0,h.selectAll("text").each(function(t,e,r){"middle"===window.getComputedStyle(r[e]).textAnchor&&(u=0)})),n.attr("transform",`translate(${u}, ${d})`)});const v=h.select(".annotation-group").node().getBBox().height-(f?a/2:0)||0,S=h.select(".label-group").node().getBBox().height-(f?a/2:0)||0,T=h.select(".members-group").node().getBBox().height-(f?a/2:0)||0;if(l.members.length>0||l.methods.length>0||f){const t=g.line(w.x,v+S+C+a,w.x+w.width,v+S+C+a,y);h.insert(()=>t).attr("class","divider").attr("style",p)}if(f||l.members.length>0||l.methods.length>0){const t=g.line(w.x,v+S+T+C+2*o+a,w.x+w.width,v+S+T+C+a+2*o,y);h.insert(()=>t).attr("class","divider").attr("style",p)}if("handDrawn"!==l.look&&h.selectAll("path").attr("style",p),k.select(":nth-child(2)").attr("style",p),h.selectAll(".divider").select("path").attr("style",p),e.labelStyle?h.selectAll("span").attr("style",e.labelStyle):h.selectAll("span").attr("style",p),!s){const t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(p);if(e){const t=e[0].replace("color","fill");h.selectAll("tspan").attr("style",t)}else if(d){const e=t.exec(d);if(e){const t=e[0].replace("color","fill");h.selectAll("tspan").attr("style",t)}}}return Wg(e,k),e.intersect=function(t){return Cy.rect(e,t)},h}async function Um(t,e){var r,i;const{labelStyles:n,nodeStyles:a}=ap(e);e.labelStyle=n;const o=e,s=e,l="verifyMethod"in e,h=Hg(e),c=t.insert("g").attr("class",h).attr("id",e.domId??e.id);let d;d=l?await Gm(c,`<<${o.type}>>`,0,e.labelStyle):await Gm(c,"<<Element>>",0,e.labelStyle);let u=d;const p=await Gm(c,o.name,u,e.labelStyle+"; font-weight: bold;");u+=p+20,l?(u+=await Gm(c,o.requirementId?`ID: ${o.requirementId}`:"",u,e.labelStyle),u+=await Gm(c,o.text?`Text: ${o.text}`:"",u,e.labelStyle),u+=await Gm(c,o.risk?`Risk: ${o.risk}`:"",u,e.labelStyle),await Gm(c,o.verifyMethod?`Verification: ${o.verifyMethod}`:"",u,e.labelStyle)):(u+=await Gm(c,s.type?`Type: ${s.type}`:"",u,e.labelStyle),await Gm(c,s.docRef?`Doc Ref: ${s.docRef}`:"",u,e.labelStyle));const f=((null==(r=c.node())?void 0:r.getBBox().width)??200)+20,g=((null==(i=c.node())?void 0:i.getBBox().height)??200)+20,y=-f/2,m=-g/2,x=qg(c),b=op(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const C=x.rectangle(y,m,f,g,b),_=c.insert(()=>C,":first-child");if(_.attr("class","basic label-container").attr("style",a),c.selectAll(".label").each((t,e,r)=>{const i=Po(r[e]),n=i.attr("transform");let a=0,o=0;if(n){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(n);t&&(a=parseFloat(t[1]),o=parseFloat(t[2]))}const s=o-g/2;let l=y+10;(0===e||1===e)&&(l=a),i.attr("transform",`translate(${l}, ${s+20})`)}),u>d+p+20){const t=x.line(y,m+d+p+20,y+f,m+d+p+20,b);c.insert(()=>t).attr("style",a)}return Wg(e,_),e.intersect=function(t){return Cy.rect(e,t)},c}async function Gm(t,e,r,i=""){if(""===e)return 0;const n=t.insert("g").attr("class","label").attr("style",i),a=da(),o=a.htmlLabels??!0,s=await qf(n,fa(Zp(e)),{width:Pp(e,a)+50,classes:"markdown-node-label",useHtmlLabels:o,style:i},a);let l;if(o){const t=s.children[0],e=Po(s);l=t.getBoundingClientRect(),e.attr("width",l.width),e.attr("height",l.height)}else{const t=s.children[0];for(const e of t.children)e.textContent=e.textContent.replaceAll(">",">").replaceAll("<","<"),i&&e.setAttribute("style",i);l=s.getBBox(),l.height+=6}return n.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}qe(Om,"tiltedCylinder"),qe(Dm,"trapezoid"),qe(Im,"trapezoidalPentagon"),qe(Nm,"triangle"),qe(Pm,"waveEdgedRectangle"),qe(zm,"waveRectangle"),qe(qm,"windowPane"),qe(Rm,"erBox"),qe(jm,"addText"),qe(Wm,"textHelper"),qe(Hm,"addText"),qe(Ym,"classBox"),qe(Um,"requirementBox"),qe(Gm,"addText");var Vm=qe(t=>{switch(t){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 Xm(t,e,{config:r}){var i,n;const{labelStyles:a,nodeStyles:o}=ap(e);e.labelStyle=a||"";const s=e.width;e.width=(e.width??200)-10;const{shapeSvg:l,bbox:h,label:c}=await Rg(t,e,Hg(e)),d=e.padding||10;let u,p="";"ticket"in e&&e.ticket&&null!=(i=null==r?void 0:r.kanban)&&i.ticketBaseUrl&&(p=null==(n=null==r?void 0:r.kanban)?void 0:n.ticketBaseUrl.replace("#TICKET#",e.ticket),u=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",p).attr("target","_blank"));const f={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let g,y;({label:g,bbox:y}=u?await jg(u,"ticket"in e&&e.ticket||"",f):await jg(l,"ticket"in e&&e.ticket||"",f));const{label:m,bbox:x}=await jg(l,"assigned"in e&&e.assigned||"",f);e.width=s;const b=(null==e?void 0:e.width)||0,C=Math.max(y.height,x.height)/2,_=Math.max(h.height+20,(null==e?void 0:e.height)||0)+C,k=-b/2,w=-_/2;let v;c.attr("transform","translate("+(d-b/2)+", "+(-C-h.height/2)+")"),g.attr("transform","translate("+(d-b/2)+", "+(-C+h.height/2)+")"),m.attr("transform","translate("+(d+b/2-x.width-20)+", "+(-C+h.height/2)+")");const{rx:S,ry:T}=e,{cssStyles:B}=e;if("handDrawn"===e.look){const t=qg(l),r=op(e,{}),i=S||T?t.path(ty(k,w,b,_,S||0),r):t.rectangle(k,w,b,_,r);v=l.insert(()=>i,":first-child"),v.attr("class","basic label-container").attr("style",B||null)}else{v=l.insert("rect",":first-child"),v.attr("class","basic label-container __APA__").attr("style",o).attr("rx",S??5).attr("ry",T??5).attr("x",k).attr("y",w).attr("width",b).attr("height",_);const t="priority"in e&&e.priority;if(t){const e=l.append("line"),r=k+2,i=w+Math.floor((S??0)/2),n=w+_-Math.floor((S??0)/2);e.attr("x1",r).attr("y1",i).attr("x2",r).attr("y2",n).attr("stroke-width","4").attr("stroke",Vm(t))}}return Wg(e,v),e.height=_,e.intersect=function(t){return Cy.rect(e,t)},l}async function Zm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o,label:s}=await Rg(t,e,Hg(e)),l=a.width+10*o,h=a.height+8*o,c=.15*l,{cssStyles:d}=e,u=a.width+20,p=a.height+20,f=Math.max(l,u),g=Math.max(h,p);let y;s.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);const m=`M0 0 \n a${c},${c} 1 0,0 ${.25*f},${-1*g*.1}\n a${c},${c} 1 0,0 ${.25*f},0\n a${c},${c} 1 0,0 ${.25*f},0\n a${c},${c} 1 0,0 ${.25*f},${.1*g}\n\n a${c},${c} 1 0,0 ${.15*f},${.33*g}\n a${.8*c},${.8*c} 1 0,0 0,${.34*g}\n a${c},${c} 1 0,0 ${-1*f*.15},${.33*g}\n\n a${c},${c} 1 0,0 ${-1*f*.25},${.15*g}\n a${c},${c} 1 0,0 ${-1*f*.25},0\n a${c},${c} 1 0,0 ${-1*f*.25},0\n a${c},${c} 1 0,0 ${-1*f*.25},${-1*g*.15}\n\n a${c},${c} 1 0,0 ${-1*f*.1},${-1*g*.33}\n a${.8*c},${.8*c} 1 0,0 0,${-1*g*.34}\n a${c},${c} 1 0,0 ${.1*f},${-1*g*.33}\n H0 V0 Z`;if("handDrawn"===e.look){const t=qg(n),r=op(e,{}),i=t.path(m,r);y=n.insert(()=>i,":first-child"),y.attr("class","basic label-container").attr("style",Qp(d))}else y=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",m);return y.attr("transform",`translate(${-f/2}, ${-g/2})`),Wg(e,y),e.calcIntersect=function(t,e){return Cy.rect(t,e)},e.intersect=function(t){return We.info("Bang intersect",e,t),Cy.rect(e,t)},n}async function Km(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o,label:s}=await Rg(t,e,Hg(e)),l=a.width+2*o,h=a.height+2*o,c=.15*l,d=.25*l,u=.35*l,p=.2*l,{cssStyles:f}=e;let g;const y=`M0 0 \n a${c},${c} 0 0,1 ${.25*l},${-1*l*.1}\n a${u},${u} 1 0,1 ${.4*l},${-1*l*.1}\n a${d},${d} 1 0,1 ${.35*l},${.2*l}\n\n a${c},${c} 1 0,1 ${.15*l},${.35*h}\n a${p},${p} 1 0,1 ${-1*l*.15},${.65*h}\n\n a${d},${c} 1 0,1 ${-1*l*.25},${.15*l}\n a${u},${u} 1 0,1 ${-1*l*.5},0\n a${c},${c} 1 0,1 ${-1*l*.25},${-1*l*.15}\n\n a${c},${c} 1 0,1 ${-1*l*.1},${-1*h*.35}\n a${p},${p} 1 0,1 ${.1*l},${-1*h*.65}\n H0 V0 Z`;if("handDrawn"===e.look){const t=qg(n),r=op(e,{}),i=t.path(y,r);g=n.insert(()=>i,":first-child"),g.attr("class","basic label-container").attr("style",Qp(f))}else g=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",y);return s.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),g.attr("transform",`translate(${-l/2}, ${-h/2})`),Wg(e,g),e.calcIntersect=function(t,e){return Cy.rect(t,e)},e.intersect=function(t){return We.info("Cloud intersect",e,t),Cy.rect(e,t)},n}async function Qm(t,e){const{labelStyles:r,nodeStyles:i}=ap(e);e.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o,label:s}=await Rg(t,e,Hg(e)),l=a.width+8*o,h=a.height+2*o,c=`\n M${-l/2} ${h/2-5}\n v${10-h}\n q0,-5 5,-5\n h${l-10}\n q5,0 5,5\n v${h-10}\n q0,5 -5,5\n h${10-l}\n q-5,0 -5,-5\n Z\n `,d=n.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("style",i).attr("d",c);return n.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",h/2).attr("x2",l/2).attr("y2",h/2),s.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),n.append(()=>s.node()),Wg(e,d),e.calcIntersect=function(t,e){return Cy.rect(t,e)},e.intersect=function(t){return Cy.rect(e,t)},n}async function Jm(t,e){return By(t,e,{padding:e.padding??0})}qe(Xm,"kanbanItem"),qe(Zm,"bang"),qe(Km,"cloud"),qe(Qm,"defaultMindmapNode"),qe(Jm,"mindmapCircle");var tx=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:km},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:bm},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:wm},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Bm},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:qy},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:By},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Zm},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Km},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:gm},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Gy},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:nm},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:im},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Dm},{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:tm},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:jy},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Am},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Sy},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Cm},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Tm},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Sm},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Yy},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Vy},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Fy},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Ey},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Dy},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:am},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Pm},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Uy},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Om},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:hm},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Iy},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Ry},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Nm},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:qm},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Wy},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:Im},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Hy},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:_m},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:um},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:dm},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:wy},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Ly},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Lm},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Mm},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:zm},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:ym},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:cm}],ex=qe(()=>{const t=[...Object.entries({state:vm,choice:Ty,note:pm,rectWithTitle:mm,labelRect:rm,iconSquare:Qy,iconCircle:Zy,icon:Xy,iconRounded:Ky,imageSquare:Jy,anchor:_y,kanbanItem:Xm,mindmapCircle:Jm,defaultMindmapNode:Qm,classBox:Ym,erBox:Rm,requirementBox:Um}),...tx.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))];return Object.fromEntries(t)},"generateShapeMap")();function rx(t){return t in ex}qe(rx,"isValidShape");var ix=new Map;async function nx(t,e,r){let i,n;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const a=e.shape?ex[e.shape]:void 0;if(!a)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let o;"sandbox"===r.config.securityLevel?o="_top":e.linkTarget&&(o=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",o??null),n=await a(i,e,r)}else n=await a(t,e,r),i=n;return e.tooltip&&n.attr("title",e.tooltip),ix.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}qe(nx,"insertNode");var ax=qe((t,e)=>{ix.set(e.id,t)},"setNodeElem"),ox=qe(()=>{ix.clear()},"clear"),sx=qe(t=>{const e=ix.get(t.id);We.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode"),lx=qe((t,e,r,i,n,a)=>{e.arrowTypeStart&&cx(t,"start",e.arrowTypeStart,r,i,n,a),e.arrowTypeEnd&&cx(t,"end",e.arrowTypeEnd,r,i,n,a)},"addEdgeMarkers"),hx={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},cx=qe((t,e,r,i,n,a,o)=>{var s;const l=hx[r];if(!l)return void We.warn(`Unknown arrow type: ${r}`);const h=`${n}_${a}-${l.type}${"start"===e?"Start":"End"}`;if(o&&""!==o.trim()){const r=`${h}_${o.replace(/[^\dA-Za-z]/g,"_")}`;if(!document.getElementById(r)){const t=document.getElementById(h);if(t){const e=t.cloneNode(!0);e.id=r,e.querySelectorAll("path, circle, line").forEach(t=>{t.setAttribute("stroke",o),l.fill&&t.setAttribute("fill",o)}),null==(s=t.parentNode)||s.appendChild(e)}}t.attr(`marker-${e}`,`url(${i}#${r})`)}else t.attr(`marker-${e}`,`url(${i}#${h})`)},"addEdgeMarker"),dx=new Map,ux=new Map,px=qe(()=>{dx.clear(),ux.clear()},"clear"),fx=qe(t=>t?t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),gx=qe(async(t,e)=>{let r=Mn(da().flowchart.htmlLabels);const{labelStyles:i}=ap(e);e.labelStyle=i;const n=await qf(t,e.label,{style:e.labelStyle,useHtmlLabels:r,addSvgBackground:!0,isNode:!1});We.info("abc82",e,e.labelType);const a=t.insert("g").attr("class","edgeLabel"),o=a.insert("g").attr("class","label").attr("data-id",e.id);o.node().appendChild(n);let s,l=n.getBBox();if(r){const t=n.children[0],e=Po(n);l=t.getBoundingClientRect(),e.attr("width",l.width),e.attr("height",l.height)}if(o.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),dx.set(e.id,a),e.width=l.width,e.height=l.height,e.startLabelLeft){const r=await Jg(e.startLabelLeft,fx(e.labelStyle)),i=t.insert("g").attr("class","edgeTerminals"),n=i.insert("g").attr("class","inner");s=n.node().appendChild(r);const a=r.getBBox();n.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),ux.get(e.id)||ux.set(e.id,{}),ux.get(e.id).startLeft=i,yx(s,e.startLabelLeft)}if(e.startLabelRight){const r=await Jg(e.startLabelRight,fx(e.labelStyle)),i=t.insert("g").attr("class","edgeTerminals"),n=i.insert("g").attr("class","inner");s=i.node().appendChild(r),n.node().appendChild(r);const a=r.getBBox();n.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),ux.get(e.id)||ux.set(e.id,{}),ux.get(e.id).startRight=i,yx(s,e.startLabelRight)}if(e.endLabelLeft){const r=await Jg(e.endLabelLeft,fx(e.labelStyle)),i=t.insert("g").attr("class","edgeTerminals"),n=i.insert("g").attr("class","inner");s=n.node().appendChild(r);const a=r.getBBox();n.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),i.node().appendChild(r),ux.get(e.id)||ux.set(e.id,{}),ux.get(e.id).endLeft=i,yx(s,e.endLabelLeft)}if(e.endLabelRight){const r=await Jg(e.endLabelRight,fx(e.labelStyle)),i=t.insert("g").attr("class","edgeTerminals"),n=i.insert("g").attr("class","inner");s=n.node().appendChild(r);const a=r.getBBox();n.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),i.node().appendChild(r),ux.get(e.id)||ux.set(e.id,{}),ux.get(e.id).endRight=i,yx(s,e.endLabelRight)}return n},"insertEdgeLabel");function yx(t,e){da().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}qe(yx,"setTerminalWidth");var mx=qe((t,e)=>{We.debug("Moving label abc88 ",t.id,t.label,dx.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath;const i=da(),{subGraphTitleTotalMargin:n}=tp(i);if(t.label){const i=dx.get(t.id);let a=t.x,o=t.y;if(r){const i=Vp.calcLabelPosition(r);We.debug("Moving label "+t.label+" from (",a,",",o,") to (",i.x,",",i.y,") abc88"),e.updatedPath&&(a=i.x,o=i.y)}i.attr("transform",`translate(${a}, ${o+n/2})`)}if(t.startLabelLeft){const e=ux.get(t.id).startLeft;let i=t.x,n=t.y;if(r){const e=Vp.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);i=e.x,n=e.y}e.attr("transform",`translate(${i}, ${n})`)}if(t.startLabelRight){const e=ux.get(t.id).startRight;let i=t.x,n=t.y;if(r){const e=Vp.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);i=e.x,n=e.y}e.attr("transform",`translate(${i}, ${n})`)}if(t.endLabelLeft){const e=ux.get(t.id).endLeft;let i=t.x,n=t.y;if(r){const e=Vp.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);i=e.x,n=e.y}e.attr("transform",`translate(${i}, ${n})`)}if(t.endLabelRight){const e=ux.get(t.id).endRight;let i=t.x,n=t.y;if(r){const e=Vp.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);i=e.x,n=e.y}e.attr("transform",`translate(${i}, ${n})`)}},"positionEdgeLabel"),xx=qe((t,e)=>{const r=t.x,i=t.y,n=Math.abs(e.x-r),a=Math.abs(e.y-i),o=t.width/2,s=t.height/2;return n>=o||a>=s},"outsideNode"),bx=qe((t,e,r)=>{We.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(r)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const i=t.x,n=t.y,a=Math.abs(i-r.x),o=t.width/2;let s=r.x<e.x?o-a:o+a;const l=t.height/2,h=Math.abs(e.y-r.y),c=Math.abs(e.x-r.x);if(Math.abs(n-e.y)*o>Math.abs(i-e.x)*l){let t=r.y<e.y?e.y-l-n:n-l-e.y;s=c*t/h;const i={x:r.x<e.x?r.x+s:r.x-c+s,y:r.y<e.y?r.y+h-t:r.y-h+t};return 0===s&&(i.x=e.x,i.y=e.y),0===c&&(i.x=e.x),0===h&&(i.y=e.y),We.debug(`abc89 top/bottom calc, Q ${h}, q ${t}, R ${c}, r ${s}`,i),i}{s=r.x<e.x?e.x-o-i:i-o-e.x;let t=h*s/c,n=r.x<e.x?r.x+c-s:r.x-c+s,a=r.y<e.y?r.y+t:r.y-t;return We.debug(`sides calc abc89, Q ${h}, q ${t}, R ${c}, r ${s}`,{_x:n,_y:a}),0===s&&(n=e.x,a=e.y),0===c&&(n=e.x),0===h&&(a=e.y),{x:n,y:a}}},"intersection"),Cx=qe((t,e)=>{We.warn("abc88 cutPathAtIntersect",t,e);let r=[],i=t[0],n=!1;return t.forEach(t=>{if(We.info("abc88 checking point",t,e),xx(e,t)||n)We.warn("abc88 outside",t,i),i=t,n||r.push(t);else{const a=bx(e,i,t);We.debug("abc88 inside",t,i,a),We.debug("abc88 intersection",a,e);let o=!1;r.forEach(t=>{o=o||t.x===a.x&&t.y===a.y}),r.some(t=>t.x===a.x&&t.y===a.y)?We.warn("abc88 no intersect",a,r):r.push(a),n=!0}}),We.debug("returning points",r),r},"cutPathAtIntersect");function _x(t){const e=[],r=[];for(let i=1;i<t.length-1;i++){const n=t[i-1],a=t[i],o=t[i+1];(n.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-n.y)>5||n.y===a.y&&a.x===o.x&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-o.y)>5)&&(e.push(a),r.push(i))}return{cornerPoints:e,cornerPointPositions:r}}qe(_x,"extractCornerPoints");var kx=qe(function(t,e,r){const i=e.x-t.x,n=e.y-t.y,a=r/Math.sqrt(i*i+n*n);return{x:e.x-a*i,y:e.y-a*n}},"findAdjacentPoint"),wx=qe(function(t){const{cornerPointPositions:e}=_x(t),r=[];for(let i=0;i<t.length;i++)if(e.includes(i)){const e=t[i-1],n=t[i+1],a=t[i],o=kx(e,a,5),s=kx(n,a,5),l=s.x-o.x,h=s.y-o.y;r.push(o);const c=2*Math.sqrt(2);let d={x:a.x,y:a.y};if(Math.abs(n.x-e.x)>10&&Math.abs(n.y-e.y)>=10){We.debug("Corner point fixing",Math.abs(n.x-e.x),Math.abs(n.y-e.y));const t=5;d=a.x===o.x?{x:l<0?o.x-t+c:o.x+t-c,y:h<0?o.y-c:o.y+c}:{x:l<0?o.x-c:o.x+c,y:h<0?o.y-t+c:o.y+t-c}}else We.debug("Corner point skipping fixing",Math.abs(n.x-e.x),Math.abs(n.y-e.y));r.push(d,s)}else r.push(t[i]);return r},"fixCorners"),vx=qe((t,e,r)=>{const i=t-e-r,n=Math.floor(i/4);return`0 ${e} ${Array(n).fill("2 2").join(" ")} ${r}`},"generateDashArray"),Sx=qe(function(t,e,r,i,n,a,o,s=!1){var l;const{handDrawnSeed:h}=da();let c=e.points,d=!1;const u=n;var p=a;const f=[];for(const t in e.cssCompiledStyles)np(t)||f.push(e.cssCompiledStyles[t]);We.debug("UIO intersect check",e.points,p.x,u.x),p.intersect&&u.intersect&&!s&&(c=c.slice(1,e.points.length-1),c.unshift(u.intersect(c[0])),We.debug("Last point UIO",e.start,"--\x3e",e.end,c[c.length-1],p,p.intersect(c[c.length-1])),c.push(p.intersect(c[c.length-1])));const g=btoa(JSON.stringify(c));e.toCluster&&(We.info("to cluster abc88",r.get(e.toCluster)),c=Cx(e.points,r.get(e.toCluster).node),d=!0),e.fromCluster&&(We.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(c,null,2)),c=Cx(c.reverse(),r.get(e.fromCluster).node).reverse(),d=!0);let y=c.filter(t=>!Number.isNaN(t.y));y=wx(y);let m=hh;switch(m=Jl,e.curve){case"linear":m=Jl;break;case"basis":default:m=hh;break;case"cardinal":m=yh;break;case"bumpX":m=nh;break;case"bumpY":m=ah;break;case"catmullRom":m=wh;break;case"monotoneX":m=Ih;break;case"monotoneY":m=Nh;break;case"natural":m=qh;break;case"step":m=jh;break;case"stepAfter":m=Hh;break;case"stepBefore":m=Wh}const{x,y:b}=Ju(e),C=rh().x(x).y(b).curve(m);let _;switch(e.thickness){case"normal":default:_="edge-thickness-normal";break;case"thick":_="edge-thickness-thick";break;case"invisible":_="edge-thickness-invisible"}switch(e.pattern){case"solid":default:_+=" edge-pattern-solid";break;case"dotted":_+=" edge-pattern-dotted";break;case"dashed":_+=" edge-pattern-dashed"}let k,w="rounded"===e.curve?Tx(Mx(y,e),5):C(y);const v=Array.isArray(e.style)?e.style:[e.style];let S=v.find(t=>null==t?void 0:t.startsWith("stroke:")),T=!1;if("handDrawn"===e.look){const r=qg(t);Object.assign([],y),_+=" transition",k=Po(r.path(w,{roughness:.3,seed:h})).select("path").attr("id",e.id).attr("class"," "+_+(e.classes?" "+e.classes:"")).attr("style",v?v.reduce((t,e)=>t+";"+e,""):"");let i=k.attr("d");k.attr("d",i),t.node().appendChild(k.node())}else{const r=f.join(";"),i=v?v.reduce((t,e)=>t+e+";",""):"";let n="";e.animate&&(n=" edge-animation-fast"),e.animation&&(n=" edge-animation-"+e.animation);const a=(r?r+";"+i+";":i)+";"+(v?v.reduce((t,e)=>t+";"+e,""):"");k=t.append("path").attr("d",w).attr("id",e.id).attr("class"," "+_+(e.classes?" "+e.classes:"")+(n??"")).attr("style",a),S=null==(l=a.match(/stroke:([^;]+)/))?void 0:l[1],T=!0===e.animate||!!e.animation||r.includes("animation");const o=k.node(),s="function"==typeof o.getTotalLength?o.getTotalLength():0,h=Vu[e.arrowTypeStart]||0,c=Vu[e.arrowTypeEnd]||0;if("neo"===e.look&&!T){const t=`stroke-dasharray: ${"dotted"===e.pattern||"dashed"===e.pattern?vx(s,h,c):`0 ${h} ${s-h-c} ${c}`}; stroke-dashoffset: 0;`;k.attr("style",t+k.attr("style"))}}k.attr("data-edge",!0),k.attr("data-et","edge"),k.attr("data-id",e.id),k.attr("data-points",g),e.showPoints&&y.forEach(e=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)});let B="";(da().flowchart.arrowMarkerAbsolute||da().state.arrowMarkerAbsolute)&&(B=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,B=B.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),We.info("arrowTypeStart",e.arrowTypeStart),We.info("arrowTypeEnd",e.arrowTypeEnd),lx(k,e,B,o,i,S);const M=c[Math.floor(c.length/2)];Vp.isLabelCoordinateInPath(M,k.attr("d"))||(d=!0);let L={};return d&&(L.updatedPath=c),L.originalPath=e.points,L},"insertEdge");function Tx(t,e){if(t.length<2)return"";let r="";const i=t.length,n=1e-5;for(let a=0;a<i;a++){const o=t[a],s=t[a-1],l=t[a+1];if(0===a)r+=`M${o.x},${o.y}`;else if(a===i-1)r+=`L${o.x},${o.y}`;else{const t=o.x-s.x,i=o.y-s.y,a=l.x-o.x,h=l.y-o.y,c=Math.hypot(t,i),d=Math.hypot(a,h);if(c<n||d<n){r+=`L${o.x},${o.y}`;continue}const u=t/c,p=i/c,f=a/d,g=h/d,y=u*f+p*g,m=Math.max(-1,Math.min(1,y)),x=Math.acos(m);if(x<n||Math.abs(Math.PI-x)<n){r+=`L${o.x},${o.y}`;continue}const b=Math.min(e/Math.sin(x/2),c/2,d/2),C=o.x-u*b,_=o.y-p*b,k=o.x+f*b,w=o.y+g*b;r+=`L${C},${_}`,r+=`Q${o.x},${o.y} ${k},${w}`}}return r}function Bx(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};const r=e.x-t.x,i=e.y-t.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}function Mx(t,e){const r=t.map(t=>({...t}));if(t.length>=2&&Gu[e.arrowTypeStart]){const i=Gu[e.arrowTypeStart],n=t[0],a=t[1],{angle:o}=Bx(n,a),s=i*Math.cos(o),l=i*Math.sin(o);r[0].x=n.x+s,r[0].y=n.y+l}const i=t.length;if(i>=2&&Gu[e.arrowTypeEnd]){const n=Gu[e.arrowTypeEnd],a=t[i-1],o=t[i-2],{angle:s}=Bx(o,a),l=n*Math.cos(s),h=n*Math.sin(s);r[i-1].x=a.x-l,r[i-1].y=a.y-h}return r}qe(Tx,"generateRoundedPath"),qe(Bx,"calculateDeltaAndAngle"),qe(Mx,"applyMarkerOffsetsToPoints");var Lx=qe((t,e,r,i)=>{e.forEach(e=>{Yx[e](t,r,i)})},"insertMarkers"),Ax=qe((t,e,r)=>{We.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),Fx=qe((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),$x=qe((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Ex=qe((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Ox=qe((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),Dx=qe((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),Ix=qe((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),Nx=qe((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),Px=qe((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),zx=qe((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),qx=qe((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),Rx=qe((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),jx=qe((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),Wx=qe((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d","M0,0\n L20,10\n M20,10\n L0,20")},"requirement_arrow"),Hx=qe((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),Yx={extension:Ax,composition:Fx,aggregation:$x,dependency:Ex,lollipop:Ox,point:Dx,circle:Ix,cross:Nx,barb:Px,only_one:zx,zero_or_one:qx,one_or_more:Rx,zero_or_more:jx,requirement_arrow:Wx,requirement_contains:Hx},Ux=Lx,Gx={common:Rn,getConfig:on,insertCluster:ly,insertEdge:Sx,insertEdgeLabel:gx,insertMarkers:Ux,insertNode:nx,interpolateToCurve:xp,labelHelper:Rg,log:We,positionEdgeLabel:mx},Vx={},Xx=qe(t=>{for(const e of t)Vx[e.name]=e},"registerLayoutLoaders");qe(()=>{Xx([{name:"dagre",loader:qe(async()=>await Promise.all([r.e(4444),r.e(4255),r.e(2732)]).then(r.bind(r,22732)),"loader")},{name:"cose-bilkent",loader:qe(async()=>await Promise.all([r.e(6030),r.e(6841)]).then(r.bind(r,96841)),"loader")}])},"registerDefaultLayoutLoaders")();var Zx=qe(async(t,e)=>{if(!(t.layoutAlgorithm in Vx))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);const r=Vx[t.layoutAlgorithm];return(await r.loader()).render(t,e,Gx,{algorithm:r.algorithm})},"render"),Kx=qe((t="",{fallback:e="dagre"}={})=>{if(t in Vx)return t;if(e in Vx)return We.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm"),Qx="comm",Jx="rule",tb="decl",eb=Math.abs,rb=String.fromCharCode;function ib(t){return t.trim()}function nb(t,e,r){return t.replace(e,r)}function ab(t,e,r){return t.indexOf(e,r)}function ob(t,e){return 0|t.charCodeAt(e)}function sb(t,e,r){return t.slice(e,r)}function lb(t){return t.length}function hb(t,e){return e.push(t),t}var cb=1,db=1,ub=0,pb=0,fb=0,gb="";function yb(t,e,r,i,n,a,o,s){return{value:t,root:e,parent:r,type:i,props:n,children:a,line:cb,column:db,length:o,return:"",siblings:s}}function mb(){return fb=pb>0?ob(gb,--pb):0,db--,10===fb&&(db=1,cb--),fb}function xb(){return fb=pb<ub?ob(gb,pb++):0,db++,10===fb&&(db=1,cb++),fb}function bb(){return ob(gb,pb)}function Cb(){return pb}function _b(t,e){return sb(gb,t,e)}function kb(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wb(t){return ib(_b(pb-1,Tb(91===t?t+2:40===t?t+1:t)))}function vb(t){for(;(fb=bb())&&fb<33;)xb();return kb(t)>2||kb(fb)>3?"":" "}function Sb(t,e){for(;--e&&xb()&&!(fb<48||fb>102||fb>57&&fb<65||fb>70&&fb<97););return _b(t,Cb()+(e<6&&32==bb()&&32==xb()))}function Tb(t){for(;xb();)switch(fb){case t:return pb;case 34:case 39:34!==t&&39!==t&&Tb(fb);break;case 40:41===t&&Tb(t);break;case 92:xb()}return pb}function Bb(t,e){for(;xb()&&t+fb!==57&&(t+fb!==84||47!==bb()););return"/*"+_b(e,pb-1)+"*"+rb(47===t?t:xb())}function Mb(t){for(;!kb(bb());)xb();return _b(t,pb)}function Lb(t){return function(t){return gb="",t}(Ab("",null,null,null,[""],t=function(t){return cb=db=1,ub=lb(gb=t),pb=0,[]}(t),0,[0],t))}function Ab(t,e,r,i,n,a,o,s,l){for(var h=0,c=0,d=o,u=0,p=0,f=0,g=1,y=1,m=1,x=0,b="",C=n,_=a,k=i,w=b;y;)switch(f=x,x=xb()){case 40:if(108!=f&&58==ob(w,d-1)){-1!=ab(w+=nb(wb(x),"&","&\f"),"&\f",eb(h?s[h-1]:0))&&(m=-1);break}case 34:case 39:case 91:w+=wb(x);break;case 9:case 10:case 13:case 32:w+=vb(f);break;case 92:w+=Sb(Cb()-1,7);continue;case 47:switch(bb()){case 42:case 47:hb($b(Bb(xb(),Cb()),e,r,l),l),(5==kb(f||1)||5==kb(bb()||1))&&lb(w)&&" "!==sb(w,-1,void 0)&&(w+=" ");break;default:w+="/"}break;case 123*g:s[h++]=lb(w)*m;case 125*g:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+c:-1==m&&(w=nb(w,/\f/g,"")),p>0&&(lb(w)-d||0===g&&47===f)&&hb(p>32?Eb(w+";",i,r,d-1,l):Eb(nb(w," ","")+";",i,r,d-2,l),l);break;case 59:w+=";";default:if(hb(k=Fb(w,e,r,h,c,n,s,b,C=[],_=[],d,a),a),123===x)if(0===c)Ab(w,e,k,k,C,a,d,s,_);else{switch(u){case 99:if(110===ob(w,3))break;case 108:if(97===ob(w,2))break;default:c=0;case 100:case 109:case 115:}c?Ab(t,k,k,i&&hb(Fb(t,k,k,0,0,n,s,b,n,C=[],d,_),_),n,_,d,s,i?C:_):Ab(w,k,k,k,[""],_,0,s,_)}}h=c=p=0,g=m=1,b=w="",d=o;break;case 58:d=1+lb(w),p=f;default:if(g<1)if(123==x)--g;else if(125==x&&0==g++&&125==mb())continue;switch(w+=rb(x),x*g){case 38:m=c>0?1:(w+="\f",-1);break;case 44:s[h++]=(lb(w)-1)*m,m=1;break;case 64:45===bb()&&(w+=wb(xb())),u=bb(),c=d=lb(b=w+=Mb(Cb())),x++;break;case 45:45===f&&2==lb(w)&&(g=0)}}return a}function Fb(t,e,r,i,n,a,o,s,l,h,c,d){for(var u=n-1,p=0===n?a:[""],f=function(t){return t.length}(p),g=0,y=0,m=0;g<i;++g)for(var x=0,b=sb(t,u+1,u=eb(y=o[g])),C=t;x<f;++x)(C=ib(y>0?p[x]+" "+b:nb(b,/&\f/g,p[x])))&&(l[m++]=C);return yb(t,e,r,0===n?Jx:s,l,h,c,d)}function $b(t,e,r,i){return yb(t,e,r,Qx,rb(fb),sb(t,2,-2),0,i)}function Eb(t,e,r,i,n){return yb(t,e,r,tb,sb(t,0,i),sb(t,i+1,-1),i,n)}function Ob(t,e){for(var r="",i=0;i<t.length;i++)r+=e(t[i],i,t,e)||"";return r}function Db(t,e,r,i){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case"@namespace":case tb:return t.return=t.return||t.value;case Qx:return"";case"@keyframes":return t.return=t.value+"{"+Ob(t.children,i)+"}";case Jx:if(!lb(t.value=t.props.join(",")))return""}return lb(r=Ob(t.children,i))?t.return=t.value+"{"+r+"}":""}var Ib=qe(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),Nb=qe(async()=>{const{diagram:t}=await r.e(6619).then(r.bind(r,76619));return{id:"c4",diagram:t}},"loader"),Pb={id:"c4",detector:Ib,loader:Nb},zb="flowchart",qb=qe((t,e)=>{var r,i;return"dagre-wrapper"!==(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer)&&"elk"!==(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer)&&/^\s*graph/.test(t)},"detector"),Rb=qe(async()=>{const{diagram:t}=await r.e(2331).then(r.bind(r,52331));return{id:zb,diagram:t}},"loader"),jb={id:zb,detector:qb,loader:Rb},Wb="flowchart-v2",Hb=qe((t,e)=>{var r,i,n;return"dagre-d3"!==(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer)&&("elk"===(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer)&&(e.layout="elk"),!(!/^\s*graph/.test(t)||"dagre-wrapper"!==(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer))||/^\s*flowchart/.test(t))},"detector"),Yb=qe(async()=>{const{diagram:t}=await r.e(2331).then(r.bind(r,52331));return{id:Wb,diagram:t}},"loader"),Ub={id:Wb,detector:Hb,loader:Yb},Gb=qe(t=>/^\s*erDiagram/.test(t),"detector"),Vb=qe(async()=>{const{diagram:t}=await r.e(9195).then(r.bind(r,99195));return{id:"er",diagram:t}},"loader"),Xb={id:"er",detector:Gb,loader:Vb},Zb="gitGraph",Kb=qe(t=>/^\s*gitGraph/.test(t),"detector"),Qb=qe(async()=>{const{diagram:t}=await Promise.all([r.e(4444),r.e(3111),r.e(9338)]).then(r.bind(r,39338));return{id:Zb,diagram:t}},"loader"),Jb={id:Zb,detector:Kb,loader:Qb},tC="gantt",eC=qe(t=>/^\s*gantt/.test(t),"detector"),rC=qe(async()=>{const{diagram:t}=await r.e(3475).then(r.bind(r,83475));return{id:tC,diagram:t}},"loader"),iC={id:tC,detector:eC,loader:rC},nC="info",aC=qe(t=>/^\s*info/.test(t),"detector"),oC=qe(async()=>{const{diagram:t}=await Promise.all([r.e(4444),r.e(3111),r.e(6286)]).then(r.bind(r,6286));return{id:nC,diagram:t}},"loader"),sC={id:nC,detector:aC,loader:oC},lC=qe(t=>/^\s*pie/.test(t),"detector"),hC=qe(async()=>{const{diagram:t}=await Promise.all([r.e(4444),r.e(3111),r.e(9575)]).then(r.bind(r,69575));return{id:"pie",diagram:t}},"loader"),cC={id:"pie",detector:lC,loader:hC},dC="quadrantChart",uC=qe(t=>/^\s*quadrantChart/.test(t),"detector"),pC=qe(async()=>{const{diagram:t}=await r.e(5225).then(r.bind(r,85225));return{id:dC,diagram:t}},"loader"),fC={id:dC,detector:uC,loader:pC},gC="xychart",yC=qe(t=>/^\s*xychart(-beta)?/.test(t),"detector"),mC=qe(async()=>{const{diagram:t}=await r.e(8823).then(r.bind(r,78823));return{id:gC,diagram:t}},"loader"),xC={id:gC,detector:yC,loader:mC},bC="requirement",CC=qe(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),_C=qe(async()=>{const{diagram:t}=await r.e(5009).then(r.bind(r,85009));return{id:bC,diagram:t}},"loader"),kC={id:bC,detector:CC,loader:_C},wC="sequence",vC=qe(t=>/^\s*sequenceDiagram/.test(t),"detector"),SC=qe(async()=>{const{diagram:t}=await r.e(9064).then(r.bind(r,59064));return{id:wC,diagram:t}},"loader"),TC={id:wC,detector:vC,loader:SC},BC="class",MC=qe((t,e)=>{var r;return"dagre-wrapper"!==(null==(r=null==e?void 0:e.class)?void 0:r.defaultRenderer)&&/^\s*classDiagram/.test(t)},"detector"),LC=qe(async()=>{const{diagram:t}=await Promise.all([r.e(9404),r.e(553)]).then(r.bind(r,40553));return{id:BC,diagram:t}},"loader"),AC={id:BC,detector:MC,loader:LC},FC="classDiagram",$C=qe((t,e)=>{var r;return!(!/^\s*classDiagram/.test(t)||"dagre-wrapper"!==(null==(r=null==e?void 0:e.class)?void 0:r.defaultRenderer))||/^\s*classDiagram-v2/.test(t)},"detector"),EC=qe(async()=>{const{diagram:t}=await Promise.all([r.e(9404),r.e(3314)]).then(r.bind(r,73314));return{id:FC,diagram:t}},"loader"),OC={id:FC,detector:$C,loader:EC},DC="state",IC=qe((t,e)=>{var r;return"dagre-wrapper"!==(null==(r=null==e?void 0:e.state)?void 0:r.defaultRenderer)&&/^\s*stateDiagram/.test(t)},"detector"),NC=qe(async()=>{const{diagram:t}=await Promise.all([r.e(4444),r.e(5481),r.e(4255),r.e(2774)]).then(r.bind(r,52774));return{id:DC,diagram:t}},"loader"),PC={id:DC,detector:IC,loader:NC},zC="stateDiagram",qC=qe((t,e)=>{var r;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&"dagre-wrapper"===(null==(r=null==e?void 0:e.state)?void 0:r.defaultRenderer))},"detector"),RC=qe(async()=>{const{diagram:t}=await Promise.all([r.e(5481),r.e(4163)]).then(r.bind(r,54163));return{id:zC,diagram:t}},"loader"),jC={id:zC,detector:qC,loader:RC},WC="journey",HC=qe(t=>/^\s*journey/.test(t),"detector"),YC=qe(async()=>{const{diagram:t}=await r.e(5388).then(r.bind(r,95388));return{id:WC,diagram:t}},"loader"),UC={id:WC,detector:HC,loader:YC},GC={draw:qe((t,e,r)=>{We.debug("rendering svg for syntax error\n");const i=Uh(e),n=i.append("g");i.attr("viewBox","0 0 2412 512"),Hn(i,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw")},VC=GC,XC={db:{},renderer:GC,parser:{parse:qe(()=>{},"parse")}},ZC="flowchart-elk",KC=qe((t,e={})=>{var r;return!!(/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&"elk"===(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer))&&(e.layout="elk",!0)},"detector"),QC=qe(async()=>{const{diagram:t}=await r.e(2331).then(r.bind(r,52331));return{id:ZC,diagram:t}},"loader"),JC={id:ZC,detector:KC,loader:QC},t_="timeline",e_=qe(t=>/^\s*timeline/.test(t),"detector"),r_=qe(async()=>{const{diagram:t}=await r.e(4797).then(r.bind(r,64797));return{id:t_,diagram:t}},"loader"),i_={id:t_,detector:e_,loader:r_},n_="mindmap",a_=qe(t=>/^\s*mindmap/.test(t),"detector"),o_=qe(async()=>{const{diagram:t}=await r.e(5307).then(r.bind(r,85307));return{id:n_,diagram:t}},"loader"),s_={id:n_,detector:a_,loader:o_},l_="kanban",h_=qe(t=>/^\s*kanban/.test(t),"detector"),c_=qe(async()=>{const{diagram:t}=await r.e(3550).then(r.bind(r,73550));return{id:l_,diagram:t}},"loader"),d_={id:l_,detector:h_,loader:c_},u_="sankey",p_=qe(t=>/^\s*sankey(-beta)?/.test(t),"detector"),f_=qe(async()=>{const{diagram:t}=await r.e(6145).then(r.bind(r,66145));return{id:u_,diagram:t}},"loader"),g_={id:u_,detector:p_,loader:f_},y_="packet",m_=qe(t=>/^\s*packet(-beta)?/.test(t),"detector"),x_=qe(async()=>{const{diagram:t}=await Promise.all([r.e(4444),r.e(3111),r.e(6047)]).then(r.bind(r,96047));return{id:y_,diagram:t}},"loader"),b_={id:y_,detector:m_,loader:x_},C_="radar",__=qe(t=>/^\s*radar-beta/.test(t),"detector"),k_=qe(async()=>{const{diagram:t}=await Promise.all([r.e(4444),r.e(3111),r.e(4640)]).then(r.bind(r,24640));return{id:C_,diagram:t}},"loader"),w_={id:C_,detector:__,loader:k_},v_="block",S_=qe(t=>/^\s*block(-beta)?/.test(t),"detector"),T_=qe(async()=>{const{diagram:t}=await r.e(6789).then(r.bind(r,96789));return{id:v_,diagram:t}},"loader"),B_={id:v_,detector:S_,loader:T_},M_="architecture",L_=qe(t=>/^\s*architecture/.test(t),"detector"),A_=qe(async()=>{const{diagram:t}=await Promise.all([r.e(4444),r.e(3111),r.e(6030),r.e(5953)]).then(r.bind(r,75953));return{id:M_,diagram:t}},"loader"),F_={id:M_,detector:L_,loader:A_},$_="treemap",E_=qe(t=>/^\s*treemap/.test(t),"detector"),O_=qe(async()=>{const{diagram:t}=await Promise.all([r.e(4444),r.e(3111),r.e(1866)]).then(r.bind(r,81866));return{id:$_,diagram:t}},"loader"),D_={id:$_,detector:E_,loader:O_},I_=!1,N_=qe(()=>{I_||(I_=!0,xa("error",XC,t=>"error"===t.toLowerCase().trim()),xa("---",{db:{clear:qe(()=>{},"clear")},styles:{},renderer:{draw:qe(()=>{},"draw")},parser:{parse:qe(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:qe(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),wi(JC,s_,F_),wi(Pb,d_,OC,AC,Xb,iC,sC,cC,kC,TC,Ub,jb,i_,Jb,jC,PC,UC,fC,g_,b_,xC,B_,w_,D_))},"addDiagrams"),P_=qe(async()=>{We.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(_i).map(async([t,{detector:e,loader:r}])=>{if(r)try{ba(t)}catch{try{const{diagram:t,id:i}=await r();xa(i,t,e)}catch(e){throw We.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete _i[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){We.error(`Failed to load ${t.length} external diagrams`);for(const e of t)We.error(e);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function z_(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function q_(t,e,r,i){if(void 0!==t.insert){if(r){const e=`chart-desc-${i}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){const r=`chart-title-${i}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}qe(z_,"setA11yDiagramInfo"),qe(q_,"addSVGa11yTitleDescription");var R_,j_=(qe(R_=class{constructor(t,e,r,i,n){this.type=t,this.text=e,this.db=r,this.parser=i,this.renderer=n}static async fromText(t,e={}){var r,i;const n=on(),a=ki(t,n);t=Xp(t)+"\n";try{ba(a)}catch{const t=Si(a);if(!t)throw new Ci(`Diagram ${a} not found.`);const{id:e,diagram:r}=await t();xa(e,r)}const{db:o,parser:s,renderer:l,init:h}=ba(a);return s.parser&&(s.parser.yy=o),null==(r=o.clear)||r.call(o),null==h||h(n),e.title&&(null==(i=o.setDiagramTitle)||i.call(o,e.title)),await s.parse(t),new R_(a,t,o,s,l)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},"Diagram"),R_),W_=[],H_=qe(()=>{W_.forEach(t=>{t()}),W_=[]},"attachFunctions"),Y_=qe(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function U_(t){const e=t.match(mi);if(!e)return{text:t,metadata:{}};let r=Uu(e[1],{schema:Yu})??{};r="object"!=typeof r||Array.isArray(r)?{}:r;const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:t.slice(e[0].length),metadata:i}}qe(U_,"extractFrontMatter");var G_=qe(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),V_=qe(t=>{const{text:e,metadata:r}=U_(t),{displayMode:i,title:n,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:e}},"processFrontmatter"),X_=qe(t=>{const e=Vp.detectInit(t)??{},r=Vp.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):"wrap"===(null==r?void 0:r.type)&&(e.wrap=!0),{text:yp(t),directive:e}},"processDirectives");function Z_(t){const e=G_(t),r=V_(e),i=X_(r.text),n=Gp(r.config,i.directive);return{code:t=Y_(i.text),title:r.title,config:n}}function K_(t){const e=(new TextEncoder).encode(t),r=Array.from(e,t=>String.fromCodePoint(t)).join("");return btoa(r)}qe(Z_,"preprocessDiagram"),qe(K_,"toBase64");var Q_=["foreignobject"],J_=["dominant-baseline"];function tk(t){const e=Z_(t);return hn(),ln(e.config??{}),e}async function ek(t,e){N_();try{const{code:e,config:r}=tk(t);return{diagramType:(await uk(e)).type,config:r}}catch(t){if(null!=e&&e.suppressErrors)return!1;throw t}}qe(tk,"processAndSetConfigs"),qe(ek,"parse");var rk=qe((t,e,r=[])=>`\n.${t} ${e} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),ik=qe((t,e=new Map)=>{var r;let i="";if(void 0!==t.themeCSS&&(i+=`\n${t.themeCSS}`),void 0!==t.fontFamily&&(i+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(i+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){const n=t.htmlLabels??(null==(r=t.flowchart)?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(t=>{Jt(t.styles)||n.forEach(e=>{i+=rk(t.id,e,t.styles)}),Jt(t.textStyles)||(i+=rk(t.id,"tspan",((null==t?void 0:t.textStyles)||[]).map(t=>t.replace("color","fill"))))})}return i},"createCssStyles"),nk=qe((t,e,r,i)=>{const n=ik(t,r);return Ob(Lb(`${i}{${Xn(e,n,t.themeVariables)}}`),Db)},"createUserStyles"),ak=qe((t="",e,r)=>{let i=t;return!r&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Zp(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),ok=qe((t="",e)=>{var r,i;return`<iframe style="width:100%;height:${null!=(i=null==(r=null==e?void 0:e.viewBox)?void 0:r.baseVal)&&i.height?e.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${K_(`<body style="margin:0">${t}</body>`)}" sandbox="allow-top-navigation-by-user-activation allow-popups">\n The "iframe" tag is not supported by your browser.\n</iframe>`},"putIntoIFrame"),sk=qe((t,e,r,i,n)=>{const a=t.append("div");a.attr("id",r),i&&a.attr("style",i);const o=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return n&&o.attr("xmlns:xlink",n),o.append("g"),t},"appendDivSvgG");function lk(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}qe(lk,"sandboxedIframe");var hk=qe((t,e,r,i)=>{var n,a,o;null==(n=t.getElementById(e))||n.remove(),null==(a=t.getElementById(r))||a.remove(),null==(o=t.getElementById(i))||o.remove()},"removeExistingElements"),ck=qe(async function(t,e,r){var i,n,a,o,s,l;N_();const h=tk(e);e=h.code;const c=on();We.debug(c),e.length>((null==c?void 0:c.maxTextSize)??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");const d="#"+t,u="i"+t,p="#"+u,f="d"+t,g="#"+f,y=qe(()=>{const t=Po(x?p:g).node();t&&"remove"in t&&t.remove()},"removeTempElements");let m=Po("body");const x="sandbox"===c.securityLevel,b="loose"===c.securityLevel,C=c.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),x){const t=lk(Po(r),u);m=Po(t.nodes()[0].contentDocument.body),m.node().style.margin=0}else m=Po(r);sk(m,t,f,`font-family: ${C}`,"http://www.w3.org/1999/xlink")}else{if(hk(document,t,f,u),x){const t=lk(Po("body"),u);m=Po(t.nodes()[0].contentDocument.body),m.node().style.margin=0}else m=Po("body");sk(m,t,f)}let _,k;try{_=await j_.fromText(e,{title:h.title})}catch(t){if(c.suppressErrorRendering)throw y(),t;_=await j_.fromText("error"),k=t}const w=m.select(g).node(),v=_.type,S=w.firstChild,T=S.firstChild,B=null==(n=(i=_.renderer).getClasses)?void 0:n.call(i,e,_),M=nk(c,v,B,d),L=document.createElement("style");L.innerHTML=M,S.insertBefore(L,T);try{await _.renderer.draw(e,t,De.version,_)}catch(r){throw c.suppressErrorRendering?y():VC.draw(e,t,De.version),r}pk(v,m.select(`${g} svg`),null==(o=(a=_.db).getAccTitle)?void 0:o.call(a),null==(l=(s=_.db).getAccDescription)?void 0:l.call(s)),m.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let A=m.select(g).node().innerHTML;if(We.debug("config.arrowMarkerAbsolute",c.arrowMarkerAbsolute),A=ak(A,x,Mn(c.arrowMarkerAbsolute)),x){const t=m.select(g+" svg").node();A=ok(A,t)}else b||(A=yi.sanitize(A,{ADD_TAGS:Q_,ADD_ATTR:J_,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(H_(),k)throw k;return y(),{diagramType:v,svg:A,bindFunctions:_.db.bindFunctions}},"render");function dk(t={}){var e;const r=Bi({},t);null!=r&&r.fontFamily&&!(null!=(e=r.themeVariables)&&e.fontFamily)&&(r.themeVariables||(r.themeVariables={}),r.themeVariables.fontFamily=r.fontFamily),en(r),null!=r&&r.theme&&r.theme in Ri?r.themeVariables=Ri[r.theme].getThemeVariables(r.themeVariables):r&&(r.themeVariables=Ri.default.getThemeVariables(r.themeVariables));const i="object"==typeof r?tn(r):nn();He(i.logLevel),N_()}qe(dk,"initialize");var uk=qe((t,e={})=>{const{code:r}=Z_(t);return j_.fromText(r,e)},"getDiagramFromText");function pk(t,e,r,i){z_(e,t),q_(e,r,i,e.attr("id"))}qe(pk,"addA11yInfo");var fk=Object.freeze({render:ck,parse:ek,getDiagramFromText:uk,initialize:dk,getConfig:on,setConfig:an,getSiteConfig:nn,updateSiteConfig:rn,reset:qe(()=>{hn()},"reset"),globalReset:qe(()=>{hn(Xi)},"globalReset"),defaultConfig:Xi});He(on().logLevel),hn(on());var gk=qe((t,e,r)=>{We.warn(t),Hp(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),yk=qe(async function(t={querySelector:".mermaid"}){try{await mk(t)}catch(e){if(Hp(e)&&We.error(e.str),Lk.parseError&&Lk.parseError(e),!t.suppressErrors)throw We.error("Use the suppressErrors option to suppress these errors"),e}},"run"),mk=qe(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const i=fk.getConfig();let n;if(We.debug((t?"":"No ")+"Callback function found"),r)n=r;else{if(!e)throw new Error("Nodes and querySelector are both undefined");n=document.querySelectorAll(e)}We.debug(`Found ${n.length} diagrams`),void 0!==(null==i?void 0:i.startOnLoad)&&(We.debug("Start On Load: "+(null==i?void 0:i.startOnLoad)),fk.updateSiteConfig({startOnLoad:null==i?void 0:i.startOnLoad}));const a=new Vp.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const s=[];for(const e of Array.from(n)){if(We.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");const r=`mermaid-${a.next()}`;o=e.innerHTML,o=yf(Vp.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const i=Vp.detectInit(o);i&&We.debug("Detected early reinit: ",i);try{const{svg:i,bindFunctions:n}=await Bk(r,o,e);e.innerHTML=i,t&&await t(r),n&&n(e)}catch(t){gk(t,s,Lk.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),xk=qe(function(t){fk.initialize(t)},"initialize"),bk=qe(async function(t,e,r){We.warn("mermaid.init is deprecated. Please use run instead."),t&&xk(t);const i={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof e?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await yk(i)},"init"),Ck=qe(async(t,{lazyLoad:e=!0}={})=>{N_(),wi(...t),!1===e&&await P_()},"registerExternalDiagrams"),_k=qe(function(){if(Lk.startOnLoad){const{startOnLoad:t}=fk.getConfig();t&&Lk.run().catch(t=>We.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",_k,!1);var kk=qe(function(t){Lk.parseError=t},"setParseErrorHandler"),wk=[],vk=!1,Sk=qe(async()=>{if(!vk){for(vk=!0;wk.length>0;){const t=wk.shift();if(t)try{await t()}catch(t){We.error("Error executing queue",t)}}vk=!1}},"executeQueue"),Tk=qe(async(t,e)=>new Promise((r,i)=>{const n=qe(()=>new Promise((n,a)=>{fk.parse(t,e).then(t=>{n(t),r(t)},t=>{var e;We.error("Error parsing",t),null==(e=Lk.parseError)||e.call(Lk,t),a(t),i(t)})}),"performCall");wk.push(n),Sk().catch(i)}),"parse"),Bk=qe((t,e,r)=>new Promise((i,n)=>{const a=qe(()=>new Promise((a,o)=>{fk.render(t,e,r).then(t=>{a(t),i(t)},t=>{var e;We.error("Error parsing",t),null==(e=Lk.parseError)||e.call(Lk,t),o(t),n(t)})}),"performCall");wk.push(a),Sk().catch(n)}),"render"),Mk=qe(()=>Object.keys(_i).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),Lk={startOnLoad:!0,mermaidAPI:fk,parse:Tk,render:Bk,init:bk,run:yk,registerExternalDiagrams:Ck,registerLayoutLoaders:Xx,initialize:xk,parseError:void 0,contentLoaded:_k,setParseErrorHandler:kk,detectType:ki,registerIconPacks:Cf,getRegisteredDiagramsMetadata:Mk},Ak=Lk;const Fk=Object.freeze(Object.defineProperty({__proto__:null,default:Ak},Symbol.toStringTag,{value:"Module"}))}}]);
|