runcell 0.1.17__py3-none-any.whl → 0.1.17a0__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 +1 -9
- d5m_ai/_version.py +1 -1
- d5m_ai/agent/proxy_handler.py +1 -39
- d5m_ai/chat/history.py +5 -17
- d5m_ai/image_generation/image_generation_handler.py +1 -1
- d5m_ai/labextension/package.json +2 -2
- d5m_ai/labextension/schemas/runcell/package.json.orig +1 -1
- d5m_ai/labextension/static/1056.15746eb85d4ff91670be.js +1 -0
- d5m_ai/labextension/static/1090.c3229c0e6d9728a6c644.js +1 -0
- d5m_ai/labextension/static/1149.3ecadd0087226c8970e3.js +1 -0
- d5m_ai/labextension/static/1438.9dbfc069a3f8314688a2.js +1 -0
- d5m_ai/labextension/static/1587.57c6f6253e6fd9a8e959.js +1 -0
- d5m_ai/labextension/static/1918.e4e3f55b32e419e5bded.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/6619.04732600d85fbbc50931.js → d5m_ai/labextension/static/1919.2744f1be03aa3e42c676.js +1 -1
- d5m_ai/labextension/static/1974.57239ca6f732b5b26746.js +1 -0
- d5m_ai/labextension/static/2331.95846da756aafdf588c3.js +48 -0
- d5m_ai/labextension/static/2981.653b66edb1e1fe707edd.js +1 -0
- d5m_ai/labextension/static/301.605642dd94fd6eca0b89.js +1 -0
- d5m_ai/labextension/static/315.a8974f93a79d929386c8.js +1 -0
- d5m_ai/labextension/static/3413.4ea18d9cf3dc9b40e01b.js +1 -0
- d5m_ai/labextension/static/4195.20c1f3b77c61c880c04f.js +2 -0
- d5m_ai/labextension/static/4583.07ad1cb83a0449456d69.js +1 -0
- d5m_ai/labextension/static/4652.cad42df06a5a32e98b2c.js +1 -0
- d5m_ai/labextension/static/{3111.ebf975f4bcee6f078398.js → 4889.331af81fcdc5d39334a8.js} +1 -1
- d5m_ai/labextension/static/4892.fcd59dd5cc13519842bb.js +1 -0
- d5m_ai/labextension/static/5098.d92744ba5c64c7c2e765.js +1 -0
- d5m_ai/labextension/static/5128.a642a06ac8607cdb80a8.js +1 -0
- d5m_ai/labextension/static/{6145.8bfe956b3c3b5a40e58d.js → 5164.d618f0b95d5e515438d6.js} +1 -1
- d5m_ai/labextension/static/5647.9465757082c9d204c9f0.js +1 -0
- d5m_ai/labextension/static/5673.2b8365b588a02fba7340.js +1 -0
- d5m_ai/labextension/static/568.cca69b0120fd5940a406.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4797.6c1f52ca8940a1daa9ed.js → d5m_ai/labextension/static/6437.e488d0d95e105a84c173.js +1 -1
- d5m_ai/labextension/static/6524.62fa40c9ef4f2fedd1a3.js +1 -0
- d5m_ai/labextension/static/72.98dcc65e7830d3142747.js +1 -0
- d5m_ai/labextension/static/7630.0b96a94aae82f153651a.js +1 -0
- d5m_ai/labextension/static/7691.060f4124ae0567c3a8d4.js +1 -0
- d5m_ai/labextension/static/7750.ca38f33596631b6e5f5d.js +1 -0
- d5m_ai/labextension/static/7762.2ccbf1fbc5722748dd9b.js +1 -0
- d5m_ai/labextension/static/7798.cb23cb642f9265b7d070.js +1 -0
- d5m_ai/labextension/static/7839.7f5dd693fa76b9e862c2.js +1 -0
- d5m_ai/labextension/static/8082.8a798c41d2661720ed37.js +1 -0
- d5m_ai/labextension/static/8328.19b9e9adc3468adb0b64.js +1 -0
- d5m_ai/labextension/static/8505.d738a35e8efb92baf8ec.js +1 -0
- d5m_ai/labextension/static/8720.c8ef0e72345fd3b62d25.js +1 -0
- d5m_ai/labextension/static/{5307.0cf41cdf5b6c0c01dbe3.js → 9357.392eec4f896f4c017135.js} +1 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/7023.f00c7a4596b9e4730708.js → d5m_ai/labextension/static/9404.f6ff67c04b5dfb52e3d9.js +1 -1
- d5m_ai/labextension/static/9427.0d17e40190b3d4b6d0e8.js +1 -0
- d5m_ai/labextension/static/956.49239ba85eee7e8abd4e.js +1 -0
- d5m_ai/labextension/static/9645.081da0f5d66768c08aea.js +1 -0
- d5m_ai/labextension/static/9854.bcfdfcdeb12e3daa8934.js +1 -0
- d5m_ai/labextension/static/9899.f130196d9303c96d306e.js +1 -0
- d5m_ai/labextension/static/remoteEntry.3411be0f74563fe22172.js +1 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/package.json +2 -2
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/schemas/runcell/package.json.orig +1 -1
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/1056.15746eb85d4ff91670be.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/1090.c3229c0e6d9728a6c644.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/1149.3ecadd0087226c8970e3.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/1438.9dbfc069a3f8314688a2.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/1587.57c6f6253e6fd9a8e959.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/1918.e4e3f55b32e419e5bded.js +1 -0
- d5m_ai/labextension/static/6619.04732600d85fbbc50931.js → runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/1919.2744f1be03aa3e42c676.js +1 -1
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/1974.57239ca6f732b5b26746.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/2331.95846da756aafdf588c3.js +48 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/2981.653b66edb1e1fe707edd.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/301.605642dd94fd6eca0b89.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/315.a8974f93a79d929386c8.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/3413.4ea18d9cf3dc9b40e01b.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/4195.20c1f3b77c61c880c04f.js +2 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/4583.07ad1cb83a0449456d69.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/4652.cad42df06a5a32e98b2c.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/3111.ebf975f4bcee6f078398.js → runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/4889.331af81fcdc5d39334a8.js +1 -1
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/4892.fcd59dd5cc13519842bb.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/5098.d92744ba5c64c7c2e765.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/5128.a642a06ac8607cdb80a8.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/6145.8bfe956b3c3b5a40e58d.js → runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/5164.d618f0b95d5e515438d6.js +1 -1
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/5647.9465757082c9d204c9f0.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/5673.2b8365b588a02fba7340.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/568.cca69b0120fd5940a406.js +1 -0
- d5m_ai/labextension/static/4797.6c1f52ca8940a1daa9ed.js → runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/6437.e488d0d95e105a84c173.js +1 -1
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/6524.62fa40c9ef4f2fedd1a3.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/72.98dcc65e7830d3142747.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/7630.0b96a94aae82f153651a.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/7691.060f4124ae0567c3a8d4.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/7750.ca38f33596631b6e5f5d.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/7762.2ccbf1fbc5722748dd9b.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/7798.cb23cb642f9265b7d070.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/7839.7f5dd693fa76b9e862c2.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/8082.8a798c41d2661720ed37.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/8328.19b9e9adc3468adb0b64.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/8505.d738a35e8efb92baf8ec.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/8720.c8ef0e72345fd3b62d25.js +1 -0
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/5307.0cf41cdf5b6c0c01dbe3.js → runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/9357.392eec4f896f4c017135.js +1 -1
- d5m_ai/labextension/static/7023.f00c7a4596b9e4730708.js → runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/9404.f6ff67c04b5dfb52e3d9.js +1 -1
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/9427.0d17e40190b3d4b6d0e8.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/956.49239ba85eee7e8abd4e.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/9645.081da0f5d66768c08aea.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/9854.bcfdfcdeb12e3daa8934.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/9899.f130196d9303c96d306e.js +1 -0
- runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/remoteEntry.3411be0f74563fe22172.js +1 -0
- {runcell-0.1.17.dist-info → runcell-0.1.17a0.dist-info}/METADATA +1 -1
- runcell-0.1.17a0.dist-info/RECORD +842 -0
- d5m_ai/agent/path_utils.py +0 -45
- d5m_ai/labextension/static/1866.ab8af952d5f6e2abf015.js +0 -1
- d5m_ai/labextension/static/2331.cf0ae406b1f17e5c8518.js +0 -1
- d5m_ai/labextension/static/2732.afa510c6b53e86d62ca1.js +0 -1
- d5m_ai/labextension/static/2774.6c28665d8d562e2eafab.js +0 -1
- d5m_ai/labextension/static/315.08557b7e89ae957a677c.js +0 -1
- d5m_ai/labextension/static/3314.bba33288b1bf072a1159.js +0 -1
- d5m_ai/labextension/static/345.b6c86a74cbb739491375.js +0 -1
- d5m_ai/labextension/static/3475.4bb63668582c9ee1aa75.js +0 -1
- d5m_ai/labextension/static/3550.0f796cddf846567f6eda.js +0 -1
- d5m_ai/labextension/static/4163.c5b167ad4c431223b14a.js +0 -1
- d5m_ai/labextension/static/4255.657770d29f05e3da360c.js +0 -1
- d5m_ai/labextension/static/4398.20687aa11fadd8caab55.js +0 -1
- d5m_ai/labextension/static/4444.8776afd3310ade08de78.js +0 -1
- d5m_ai/labextension/static/4573.313f73d47b3e9e7e539a.js +0 -1
- d5m_ai/labextension/static/4640.c1c98b7c207045b8429e.js +0 -1
- d5m_ai/labextension/static/4712.867600779a30c292ecd7.js +0 -48
- d5m_ai/labextension/static/5009.375c39a105e8068ec0c0.js +0 -1
- d5m_ai/labextension/static/5225.77ee82ef77687f707c86.js +0 -1
- d5m_ai/labextension/static/5388.8b14c718c4703b72635f.js +0 -1
- d5m_ai/labextension/static/5481.20ece9f96e241e634f15.js +0 -1
- d5m_ai/labextension/static/553.bd198ad217a7dbfcef42.js +0 -1
- d5m_ai/labextension/static/5785.c6fc662855351bdde523.js +0 -1
- d5m_ai/labextension/static/5953.fb531c692611683ab5f7.js +0 -1
- d5m_ai/labextension/static/6047.ed21945649e91106bee2.js +0 -1
- d5m_ai/labextension/static/6286.db1168ea85a057c6f189.js +0 -1
- d5m_ai/labextension/static/6734.e5919666c842cdf1276d.js +0 -1
- d5m_ai/labextension/static/6789.346356d4f19b92e62321.js +0 -1
- d5m_ai/labextension/static/6841.3906e65455bb5575b44b.js +0 -1
- d5m_ai/labextension/static/72.081fe34e2c76320135d0.js +0 -1
- d5m_ai/labextension/static/783.63f9d3340979bfb89716.js +0 -1
- d5m_ai/labextension/static/790.1c740b9b76f7fd2dc0d6.js +0 -1
- d5m_ai/labextension/static/877.e8b79ec87c1325c45f62.js +0 -2
- d5m_ai/labextension/static/8823.2fc995c832aa529c3519.js +0 -1
- d5m_ai/labextension/static/9064.5349664a3752925acab3.js +0 -1
- d5m_ai/labextension/static/9195.d0277553edf7593d967d.js +0 -1
- d5m_ai/labextension/static/9338.58debf8972aa5f8b68d7.js +0 -1
- d5m_ai/labextension/static/9404.f841eb045fbb87713d5e.js +0 -1
- d5m_ai/labextension/static/9575.8848adfb0c89daa1ca6b.js +0 -1
- d5m_ai/labextension/static/remoteEntry.5f8a7082e7be806b9281.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/1866.ab8af952d5f6e2abf015.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/2331.cf0ae406b1f17e5c8518.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/2732.afa510c6b53e86d62ca1.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/2774.6c28665d8d562e2eafab.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/315.08557b7e89ae957a677c.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/3314.bba33288b1bf072a1159.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/345.b6c86a74cbb739491375.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/3475.4bb63668582c9ee1aa75.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/3550.0f796cddf846567f6eda.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4163.c5b167ad4c431223b14a.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4255.657770d29f05e3da360c.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4398.20687aa11fadd8caab55.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4444.8776afd3310ade08de78.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4573.313f73d47b3e9e7e539a.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4640.c1c98b7c207045b8429e.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4712.867600779a30c292ecd7.js +0 -48
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/5009.375c39a105e8068ec0c0.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/5225.77ee82ef77687f707c86.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/5388.8b14c718c4703b72635f.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/5481.20ece9f96e241e634f15.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/553.bd198ad217a7dbfcef42.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/5785.c6fc662855351bdde523.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/5953.fb531c692611683ab5f7.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/6047.ed21945649e91106bee2.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/6286.db1168ea85a057c6f189.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/6734.e5919666c842cdf1276d.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/6789.346356d4f19b92e62321.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/6841.3906e65455bb5575b44b.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/72.081fe34e2c76320135d0.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/783.63f9d3340979bfb89716.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/790.1c740b9b76f7fd2dc0d6.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/877.e8b79ec87c1325c45f62.js +0 -2
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/8823.2fc995c832aa529c3519.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/9064.5349664a3752925acab3.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/9195.d0277553edf7593d967d.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/9338.58debf8972aa5f8b68d7.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/9404.f841eb045fbb87713d5e.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/9575.8848adfb0c89daa1ca6b.js +0 -1
- runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/remoteEntry.5f8a7082e7be806b9281.js +0 -1
- runcell-0.1.17.dist-info/RECORD +0 -843
- /d5m_ai/labextension/static/{4712.867600779a30c292ecd7.js.LICENSE.txt → 2331.95846da756aafdf588c3.js.LICENSE.txt} +0 -0
- /d5m_ai/labextension/static/{877.e8b79ec87c1325c45f62.js.LICENSE.txt → 4195.20c1f3b77c61c880c04f.js.LICENSE.txt} +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/etc/jupyter/jupyter_server_config.d/d5m_ai.json +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/etc/jupyter/jupyter_server_config.d/runcell.json +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/install.json +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/schemas/runcell/file-browser-toggle.json +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/schemas/runcell/plugin.json +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1045.a76db59a7c20953976f0.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1055.87aafb19805530488a2c.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/108.d7dbe40ec7e0ae1a68f8.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1104.a2b939bacec5e69efd99.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1171.130d3cc54764cac92856.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1178.3e25fad4a45450e227c9.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1203.5deaeee9e57ffc718f19.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1226.ff48aa5741f77eb739fe.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1273.4c5992b03f129c9e3025.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1285.cf3bab9529c47ac9288d.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1307.d98ceb66a2401e5f4ddd.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1328.38964f7daa84901e866f.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1377.edf5c2163aedef75c6a1.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1391.ab61eb03aed289d9d44c.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1431.a691b4fa7cf229072fc0.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1521.9f3807c4a4dd19a6ab8c.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1524.188ff9d525210d499ff3.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1534.39ba9b2bf5712b697b63.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1540.9eba7e882fd8e00a782a.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1552.5203480dcdda6574ef51.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1555.686745d50bd19fd9d271.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1618.9abd2093263741894755.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1635.84bd383b17e41c9fe103.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1678.57b141401f73a26257c8.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1685.842997eb9757846fe690.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1745.e6bb2c6882da5bf9883a.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1752.8c4ecff560428215fe75.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1797.f8ca14c3ec1c0f51f403.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1897.7cca7a664a9ca9b486ac.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1902.364fa5e977055fe14150.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1915.b55b7d52608421a7fc41.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/1970.dff4fcccbb6cadb04d0c.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/200.f1d30c245c18bbb03312.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2031.155ab0916a863c8787a7.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2031.155ab0916a863c8787a7.js.LICENSE.txt +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/207.f5bd6d1b383a6b01ca69.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2072.a4d04cc98bb118e689a1.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2075.5d6a026d7308b71b70a1.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2111.a3c1f620c0a31e54cb9f.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2152.4db0fcf1f4dccf54b600.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2173.9fddf72b827a6d629bad.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2198.e195afcaabb2e4063da9.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2224.c86b12cf9e2165904033.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2225.8d31eec53891ca7775b7.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2271.69d9ea25d4ddd02710f6.js +0 -0
- /runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/4712.867600779a30c292ecd7.js.LICENSE.txt → /runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/2331.95846da756aafdf588c3.js.LICENSE.txt +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2349.e7c5b5e507c7a81d1427.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2353.7b6b36b3164a86427209.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2382.9e67478cc4b31aede22c.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2385.cd85a7dd4acb5be739da.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/248.693fd98760ec6ce42219.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2555.7168a2616a6071addb97.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2576.56496d8cba50d3d69eb5.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2639.eb2553a7be688366d9f3.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2654.2453f6b5846a4719dba4.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/267.829ce2ca38940b778c91.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/270.9409a2f5631a31c79cd9.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2768.9e5b7c6ed84b2486f835.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2789.12830cdb21c09111668d.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2824.d02df014c07b7288e78c.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2824.d02df014c07b7288e78c.js.LICENSE.txt +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2838.2e689afee276e5e21c57.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2843.65aeb8be3744d20229b8.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2897.7bc91ca284ea12b863e8.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2905.0d34ef7a481f9a968f05.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2922.8cdf00bb7d09c5419d78.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2922.8cdf00bb7d09c5419d78.js.LICENSE.txt +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/2971.60c60668c130ed05d493.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/299.8600f54b39a11eeff427.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3027.2226147340da305061f3.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3028.953cd3b9865063969086.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3041.4059f9ba4f9eba56672a.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3045.a457aa1d023ba5f799c2.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3092.fad665f8cdb1da61b55b.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3142.7df01050c977ede2b13b.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3157.bcb9f8ff06fa4af27b6a.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3214.a986c1896fa590b2da27.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3239.4562297487744a7cc1d4.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/325.bd1e5cab3b6e068b25bc.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3254.9e1aa1fee12644fea2d9.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3267.ff884bf47b52ac634854.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3291.156ad2d1520857115575.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3311.dc97fd544e85acac8477.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3319.687f07bb2f993c1dc44b.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3325.c100f45711f539a7f262.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3386.4c8eebdb8d318c2913ce.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3386.4c8eebdb8d318c2913ce.js.LICENSE.txt +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3407.cbbf99a2ff4805726f3e.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3424.92b1a820ff2aa6156c36.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3426.27afd4c41cfad8e1a63d.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3436.ea677bb3e7f3ce87d7fd.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3449.5d8818fac081c207ce79.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3514.c8a1863df3cfd5390617.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/355.45290b03d6d4be49a58e.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3551.87e6eb270a212d08b1b5.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/359.1463d2cf955623ecceae.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3619.3dfa7c4eaa067a407275.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3645.5ea37d9f483120f69f4e.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3659.056fa5e4e39b72bc358b.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3688.7bd1ba5006b22ed5616e.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3722.688cdfd335ffeac13492.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3724.06a5a1b542ff978df3b4.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/376.f9c52e5bbd650da7b67f.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3794.c0236d400b2129ac42a9.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/3930.b142768bad429b3ebb04.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4003.95678dd199222938923b.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4017.d35a7557e5338be92770.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4050.00a6bfc9f23c6ef07199.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4087.ea430b62171512019400.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/410.fd643a255d72a83c1be6.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4127.0e783d9a497298e9fe18.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/415.0a1fdc1d9f76c0431d42.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4175.d23c246efa6921b45150.js +0 -0
- /runcell-0.1.17.data/data/share/jupyter/labextensions/runcell/static/877.e8b79ec87c1325c45f62.js.LICENSE.txt → /runcell-0.1.17a0.data/data/share/jupyter/labextensions/runcell/static/4195.20c1f3b77c61c880c04f.js.LICENSE.txt +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4238.bd4642c4f9256441aea5.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4246.d8aedd2b15d1a95f1288.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4272.c92c9a0d98749863c853.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4296.7f1db6691a4ac120a383.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4317.1ba9f3c33b7a1484c5df.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/434.bfe4f51db2eb9644fbe7.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/434.bfe4f51db2eb9644fbe7.js.LICENSE.txt +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4353.6a83dae11a48e9d1b345.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4358.53a6106c5c93c3fda026.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4364.e87c307df69aa50a5b2a.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4365.b2b4496cc260301256b9.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4371.647bc44642d1ad0e99e4.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4390.1cafd3d4635b09e0c945.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4412.23a8cb5fb7377d3c81ab.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4412.23a8cb5fb7377d3c81ab.js.LICENSE.txt +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4425.a34c4f44daa5996eeec4.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4447.3ad32bafee045d2c0bab.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4477.d9e871faf650e6ad238a.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/45.560ee8b955f55e6a7471.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4503.794c4dd58c6bf2e6a66d.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4584.c610d4a425b036b86759.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4613.05840d3fc617590fff51.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4630.a78300f70b9af36897eb.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4682.1b69aa450cedd96227c9.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4713.4e4e598399fd6de85f5d.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4725.5447994a36dfeda58b9f.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4755.74d46f71eb4d23e4bca2.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4838.688e36ea43737e72dbdc.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/485.d27de91b0124447cf435.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4872.1404f5d25464532c27c2.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4886.443bcf6af7b83f72b4b5.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4913.d226f3c41ebb36489ce3.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/492.a7f5e972b35c8c877bf1.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/4928.5c8ad7f80ba081dfdbba.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5146.45d9b015343e5a7cace1.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5183.8c5527ebc7a807107471.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/524.927c6a42244b04ee834f.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5253.2cea0b927b50c952fe98.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5331.c971f98ac4fd9e9751a4.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5391.375b4314cb4b851f0915.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5391.375b4314cb4b851f0915.js.LICENSE.txt +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5408.07fc40e33d3fd1a3f7b6.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5431.528d309549815d363599.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5447.1267bc4aa4938bd0f08d.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5466.e1da4e862af22e314f82.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5473.7ac9ad0a3e047bfeceb0.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5509.c8c8ddebaabc3579daba.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5590.fd188e01caa78afb3ec4.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5620.cd3cd230d09209b34fb5.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5636.ca803ffcf0d43c2402c9.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5672.156ad2d1520857115575.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5695.0da6228c48571d9386f3.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5715.66ad4e7324b22a5e27fb.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5741.edd8fd814866705aad98.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5748.53eb48f5623074a948ba.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5765.e957d823cdfe2746a356.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5788.b9c62804c0698b91ca8a.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5882.b40b5d690d3f6f67f09a.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5885.8cd4d3e3008fdb31ce2a.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5900.6dca06924caef83a5b52.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5906.870c0d7bb4e022aaca9d.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5908.e81f83f7a9906d9d7542.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5973.4e08bf1ee13205326051.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5973.4e08bf1ee13205326051.js.LICENSE.txt +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/5977.d264e9baaebc417e35c0.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6007.987a9850d5891b1908ae.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6030.dd5fd07844168dbaa6f6.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6030.dd5fd07844168dbaa6f6.js.LICENSE.txt +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6079.5c80b9de6aabb0be08d2.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6084.bf8d6b1da6c4cad209bb.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6094.f96654ca0070f8f391b1.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/611.5ae7fb260af8629f1528.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6176.bd441d4d6fe942889bf3.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6221.457e64a4f06be421eaa4.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6266.4f2bcc95c2d61cdaacbc.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/627.84c4aa26f69662abb72d.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6293.823b9bfe50fdfd62dd42.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6299.b14c1d46ba4ad9799f63.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6306.8d22227d6aa1dfc32da5.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6320.b844d6686eebcb036643.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6322.997db39a5d4b63e72b21.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6336.92de365c5fb0f261f799.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6354.0025efd7872b7d32b46b.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6354.0025efd7872b7d32b46b.js.LICENSE.txt +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6366.5049626e7d5bb38a8574.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/640.ebfad36f1dde45e9cd05.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/642.817a48a77e1c16e6e65d.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6520.ff2a9ec2e50dd45868ac.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6573.7899a873adb98c3c0190.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6648.b7ed5e9a732275dc85ac.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6676.1a71900a6131dbe02aad.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6678.fe58c12ce33b0f5706f5.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6772.01fcccfcabd525210aee.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6774.1e0a751d7079179f8f73.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6795.1c49fa950817836e3f1e.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6803.eccda2da06d869b0acda.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6822.5bf91484ea172f864747.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6853.48004207e7c689ec55b4.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6880.c3cfce260b3d25d9ef5e.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6906.1f65b08daf64af8d1f27.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/6982.d9f1a29fe7834b53c855.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7005.9f8920f4e58652fe3ef9.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/711.5c259d7417620cf8eef8.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7131.cab088ddb371234f1fd6.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7161.f03be5c4590ae6db98c1.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7166.6e64d20ff3d06bb0726a.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7181.1d3f5611193e734beaf4.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7232.5969981a73dac6835b93.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7273.9e6765278092fd30a14f.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7280.5862e5cf2b594fd45f82.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7336.b8136533f61cd1b71adc.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7359.7bc0ef939742600dba39.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7399.6fa42c5d34d3659f9f68.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7400.ea48afe8766bd82b3741.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7441.bce20fb0ea3d8638bc30.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7488.f63b5ad13eb23dbc3915.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/751.48ddf412afdd781e868f.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7572.937d1e5ce68a384389e9.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7652.cf086dfcd950ff2c4554.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7672.61e8e5299259407f1ee1.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7705.962a56002e394e3755aa.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7719.9dbadc40622a97c6fa90.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7771.efa5c4cf41907b4c8cfc.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7772.094d82c7ec81259764f4.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7772.094d82c7ec81259764f4.js.LICENSE.txt +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/779.c50f60eeca2b40bf96db.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7792.e67368a87fa703a97f25.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7812.1b53bb1f6cce555d0b70.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7890.c8c8ddebaabc3579daba.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7954.b02433d4bd38b648ec0e.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7959.75734676fe5e861ad899.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7967.ccc236f921abba961fcb.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/7981.c14b5974541e98a1b340.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8053.ebcecafa176e4cb5c439.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8053.ebcecafa176e4cb5c439.js.LICENSE.txt +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8056.06f4e4d87d7ccc1e4662.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8066.ad6692e614937d4dc480.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8122.f671cfb05d97b5e220fa.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8146.fc69595fa9fb4dc989ec.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8151.e18e503723ffa9d576f7.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8177.d8e81718e82279286385.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8179.33453f3165561d33347d.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8181.0f15741bcd037cfaf528.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8249.01410b92489460697717.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8295.39003c08c2539bf22593.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8304.075c39345f3b817edfb1.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8321.3ba6a40e5ed74b977afc.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8343.31e93467f566af5fb10e.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8354.3044135d1229985d61c6.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8354.3044135d1229985d61c6.js.LICENSE.txt +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8366.55b8257f92b23e6f49ec.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8369.80293e64ec102044c767.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/84.3575d43472885d2b7714.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8400.7d8ed1bca69c56f67486.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8404.1c1c675dc23d7d9d80de.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8437.795ac38d87895b50d98e.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8480.6698a41d2cf895aafe0f.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8482.85d03122dfec6d4f9307.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/851.9faa523fb28cedcd6b88.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8522.dd261948e958bcf4ae64.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8524.4c79a5ea5e22a1389a1f.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8649.b722755e4bccf4a39cd5.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8675.ffadeba0edbfd8d2285d.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8748.bb9c4496cf4ab7577e74.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8751.e80b9f51b9cdb544d16b.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8768.4aba875e6cfb350edfa7.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/880.0bcd5ab06196cb9533c4.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8824.4b08a890046be218bb35.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8829.c51ecb2bf77a1ca2a962.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8856.6e271445d6d3837302ec.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8860.c824d17d8869a6dd6207.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8887.6480b4ee0c5fa187c2d7.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8929.3329d360058c1764e201.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/8957.4f33250ba35099dbe048.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9014.0e67032c3d7119ce3370.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/904.60333ec0aebf2d092197.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9040.9376593b8e7caa5ed6a0.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9055.7b9ab3136d6a82b298a4.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9071.d8aea526bf53118639a9.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9113.f9e25015d31ee397e490.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9115.c30adf6f374eb1bd3b93.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9125.26a8a929493c19af9f50.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9165.8b0907227f85ba27306b.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9180.7d6cded0c9f36ac75093.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9184.33de87e8d509010a9bdf.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9193.3666b71cf376fdec58b4.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9205.a2f5f2a2c0b69582717e.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9251.822a5aa9397713d54ea2.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9255.ad693b359f0d12767fe1.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9262.bebc0ed75d7f86d722f2.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9277.f3623a34b457ca052d80.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9285.2d3c4984387ebca606d4.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9289.9fb56f7beb83d721e654.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/934.3ce5b696b827323e706e.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9402.b8868b6860051723bf48.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9412.fe8cf617636a0df90247.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9456.2f96fda82d4be6b0448e.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9494.b4ae8d6a63ec84cc4ec3.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9513.0db046603be52099c3ec.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9514.458d7630c50b4b658200.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9559.07e6563cb0b401ff88a6.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9576.b2d6c2e9831fda63f41f.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9607.a4f836281d0337527f6e.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9621.55ea68ee13d702908a10.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9640.c489050f3a1342328779.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9650.b4d4a115ac2fca1dfbe8.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9704.f4c6d15183531d37b825.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9734.63cf17414a5103d290bb.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9754.2f617d267f5167be63ed.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9885.f84ed1b0565de3b61e99.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9912.b6643895a628f9ea506c.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9926.6e52dbb62a19476aae87.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9939.eab64dfd409dd1df1844.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9986.e953beace913bfa7ba74.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/9997.1716894eb29a02d76575.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/style.js +0 -0
- {runcell-0.1.17.data → runcell-0.1.17a0.data}/data/share/jupyter/labextensions/runcell/static/third-party-licenses.json +0 -0
- {runcell-0.1.17.dist-info → runcell-0.1.17a0.dist-info}/WHEEL +0 -0
- {runcell-0.1.17.dist-info → runcell-0.1.17a0.dist-info}/entry_points.txt +0 -0
- {runcell-0.1.17.dist-info → runcell-0.1.17a0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 4712.867600779a30c292ecd7.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkruncell=self.webpackChunkruncell||[]).push([[4712],{39907:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&m())}function m(){if(!c){var e=o(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||c||o(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},40439:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>a});var i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=r(function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})},42331:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Avatar:()=>r.A,AvatarFallback:()=>r.j,AvatarImage:()=>r.i,Badge:()=>r.m,Button:()=>r.B,ClaudeIcon:()=>r.y,CodeContextBadge:()=>r.c,CodeMergePane:()=>r.C,CodeView:()=>r.b,ContextUsageBar:()=>r.r,DEFAULT_SAFE_MODEL:()=>r.D,DeepSeekIcon:()=>r.I,ErrorMessage:()=>r.E,FileTree:()=>r.F,GeminiIcon:()=>r.G,GrokIcon:()=>r.L,HistoryPanel:()=>r.H,KimiIcon:()=>r.K,MentionBadges:()=>r.p,MessageBubble:()=>r.a,MessageList:()=>r.M,MinimaxIcon:()=>r.N,ModelList:()=>r.f,OpenAIIcon:()=>r.z,OrderedContentRenderer:()=>r.O,ProgressCircle:()=>r.P,QuickFix:()=>r.Q,QwenIcon:()=>r.J,RerunConfirmMessage:()=>r.R,SelectionToolbar:()=>r.u,ShellPermissionMessage:()=>r.S,Switch:()=>r.o,UnifiedStatusBadge:()=>r.U,UpgradeNotification:()=>r.q,WebSocketState:()=>r.W,ZaiIcon:()=>r.Z,avatarVariants:()=>r.l,badgeVariants:()=>r.n,buttonVariants:()=>r.h,cn:()=>r.v,formatTokenCount:()=>r.s,getCodeBadgeLabel:()=>r.e,getErrorTitle:()=>r.w,getIconForFileExtension:()=>r.d,getUsageColor:()=>r.t,useModels:()=>r.x});var r=n(75662)},52681:(e,t,n)=>{"use strict";n.d(t,{oQ:()=>u});var r=n(45024),i=n(60195),a=n(72084),o=n(22944),s=n(83174),l=n(58482),c=n(33697);const u=(()=>[(0,r.lineNumbers)(),(0,r.highlightActiveLineGutter)(),(0,r.highlightSpecialChars)(),(0,o.b6)(),(0,a.foldGutter)(),(0,r.drawSelection)(),(0,r.dropCursor)(),i.EditorState.allowMultipleSelections.of(!0),(0,a.indentOnInput)(),(0,a.syntaxHighlighting)(a.defaultHighlightStyle,{fallback:!0}),(0,a.bracketMatching)(),(0,l.wm)(),(0,l.yU)(),(0,r.rectangularSelection)(),(0,r.crosshairCursor)(),(0,r.highlightActiveLine)(),(0,s.gN)(),r.keymap.of([...l.Bc,...o.pw,...s.Eo,...o.cL,...a.foldKeymap,...l.OO,...c.$w])])()},75662:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{A:()=>Avatar,B:()=>Button,C:()=>CodeMergePane,D:()=>DEFAULT_SAFE_MODEL,E:()=>ErrorMessage,F:()=>FileTree,G:()=>GeminiIcon,H:()=>HistoryPanel,I:()=>DeepSeekIcon,J:()=>QwenIcon,K:()=>KimiIcon,L:()=>GrokIcon,M:()=>MessageList,N:()=>MinimaxIcon,O:()=>OrderedContentRenderer,P:()=>ProgressCircle,Q:()=>QuickFix,R:()=>RerunConfirmMessage,S:()=>ShellPermissionMessage,T:()=>katex$1,U:()=>UnifiedStatusBadge,W:()=>WebSocketState,Z:()=>ZaiIcon,a:()=>MessageBubble,b:()=>CodeView,c:()=>CodeContextBadge,d:()=>getIconForFileExtension,e:()=>getCodeBadgeLabel,f:()=>ModelList,g:()=>getDefaultExportFromCjs,h:()=>buttonVariants,i:()=>AvatarImage,j:()=>AvatarFallback,k:()=>k$1,l:()=>avatarVariants,m:()=>Badge,n:()=>badgeVariants,o:()=>Switch,p:()=>MentionBadges,q:()=>UpgradeNotification,r:()=>ContextUsageBar,s:()=>formatTokenCount,t:()=>getUsageColor,u:()=>SelectionToolbar,v:()=>cn,w:()=>getErrorTitle,x:()=>useModels,y:()=>ClaudeIcon,z:()=>OpenAIIcon});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(93345),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),react_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7628),react_dom__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__),_uiw_react_codemirror__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(99025),_uiw_react_codemirror__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_uiw_react_codemirror__WEBPACK_IMPORTED_MODULE_2__),_codemirror_lang_python__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(72783),_codemirror_lang_python__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_codemirror_lang_python__WEBPACK_IMPORTED_MODULE_3__),_codemirror_lang_javascript__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(61306),_codemirror_lang_javascript__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_codemirror_lang_javascript__WEBPACK_IMPORTED_MODULE_4__),_codemirror_lang_markdown__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(20158),_codemirror_lang_markdown__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_codemirror_lang_markdown__WEBPACK_IMPORTED_MODULE_5__),_codemirror_view__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(45024),_codemirror_view__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_codemirror_view__WEBPACK_IMPORTED_MODULE_6__),_codemirror_state__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(60195),_codemirror_state__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_codemirror_state__WEBPACK_IMPORTED_MODULE_7__),codemirror__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(52681),_codemirror_merge__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(90633),_codemirror_merge__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_codemirror_merge__WEBPACK_IMPORTED_MODULE_8__),_codemirror_theme_one_dark__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(79607),process=__webpack_require__(39907),ui=Object.defineProperty,ci=Object.getPrototypeOf,di=Reflect.get,Vr=e=>{throw TypeError(e)},mi=(e,t,n)=>t in e?ui(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rn=(e,t,n)=>mi(e,"symbol"!=typeof t?t+"":t,n),Mr=(e,t,n)=>t.has(e)||Vr("Cannot "+n),Bn=(e,t,n)=>(Mr(e,t,"read from private field"),n?n.call(e):t.get(e)),fr=(e,t,n)=>t.has(e)?Vr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Zn=(e,t,n,r)=>(Mr(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Dr=(e,t,n)=>(Mr(e,t,"access private method"),n),qr=(e,t,n)=>di(ci(e),n,t),commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},hasRequiredReactJsxRuntime_production_min;function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1;var e=react__WEBPACK_IMPORTED_MODULE_0___default(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(e,n,o){var s,l={},c=null,u=null;for(s in void 0!==o&&(c=""+o),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:i.current}}return reactJsxRuntime_production_min.Fragment=n,reactJsxRuntime_production_min.jsx=o,reactJsxRuntime_production_min.jsxs=o,reactJsxRuntime_production_min}var reactJsxRuntime_development={},hasRequiredReactJsxRuntime_development,hasRequiredJsxRuntime;function requireReactJsxRuntime_development(){return hasRequiredReactJsxRuntime_development||(hasRequiredReactJsxRuntime_development=1),reactJsxRuntime_development}function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production_min()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime();const toKebabCase$1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),toCamelCase$1=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),toPascalCase$1=e=>{const t=toCamelCase$1(e);return t.charAt(0).toUpperCase()+t.slice(1)},mergeClasses$1=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),hasA11yProp$1=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var defaultAttributes$1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Icon$1=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:o,...s},l)=>(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg",{ref:l,...defaultAttributes$1,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:mergeClasses$1("lucide",i),...!a&&!hasA11yProp$1(s)&&{"aria-hidden":"true"},...s},[...o.map(([e,t])=>(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(e,t)),...Array.isArray(a)?a:[a]])),createLucideIcon$1=(e,t)=>{const n=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(({className:n,...r},i)=>(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(Icon$1,{ref:i,iconNode:t,className:mergeClasses$1(`lucide-${toKebabCase$1(toPascalCase$1(e))}`,`lucide-${e}`,n),...r}));return n.displayName=toPascalCase$1(e),n},__iconNode$F=[["rect",{width:"13",height:"7",x:"3",y:"3",rx:"1",key:"11xb64"}],["path",{d:"m22 15-3-3 3-3",key:"26chmm"}],["rect",{width:"13",height:"7",x:"3",y:"14",rx:"1",key:"k6ky7n"}]],BetweenHorizontalEnd=createLucideIcon$1("between-horizontal-end",__iconNode$F),__iconNode$E=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],Boxes=createLucideIcon$1("boxes",__iconNode$E),__iconNode$D=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Brain=createLucideIcon$1("brain",__iconNode$D),__iconNode$C=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ChevronDown=createLucideIcon$1("chevron-down",__iconNode$C),__iconNode$B=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ChevronRight=createLucideIcon$1("chevron-right",__iconNode$B),__iconNode$A=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ChevronUp=createLucideIcon$1("chevron-up",__iconNode$A),__iconNode$z=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],CircleAlert=createLucideIcon$1("circle-alert",__iconNode$z),__iconNode$y=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],CircleCheckBig=createLucideIcon$1("circle-check-big",__iconNode$y),__iconNode$x=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],CircleCheck=createLucideIcon$1("circle-check",__iconNode$x),__iconNode$w=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],CirclePlay=createLucideIcon$1("circle-play",__iconNode$w),__iconNode$v=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],CircleX=createLucideIcon$1("circle-x",__iconNode$v),__iconNode$u=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Copy$1=createLucideIcon$1("copy",__iconNode$u),__iconNode$t=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Cpu=createLucideIcon$1("cpu",__iconNode$t),__iconNode$s=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Download$1=createLucideIcon$1("download",__iconNode$s),__iconNode$r=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ExternalLink=createLucideIcon$1("external-link",__iconNode$r),__iconNode$q=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Eye=createLucideIcon$1("eye",__iconNode$q),__iconNode$p=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],FilePen=createLucideIcon$1("file-pen",__iconNode$p),__iconNode$o=[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]],FilePlusCorner=createLucideIcon$1("file-plus-corner",__iconNode$o),__iconNode$n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]],FileSearch=createLucideIcon$1("file-search",__iconNode$n),__iconNode$m=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],File=createLucideIcon$1("file",__iconNode$m),__iconNode$l=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Folder=createLucideIcon$1("folder",__iconNode$l),__iconNode$k=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Globe=createLucideIcon$1("globe",__iconNode$k),__iconNode$j=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Image=createLucideIcon$1("image",__iconNode$j),__iconNode$i=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Info$2=createLucideIcon$1("info",__iconNode$i),__iconNode$h=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],LoaderCircle=createLucideIcon$1("loader-circle",__iconNode$h),__iconNode$g=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],NotebookPen=createLucideIcon$1("notebook-pen",__iconNode$g),__iconNode$f=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Plus=createLucideIcon$1("plus",__iconNode$f),__iconNode$e=[["rect",{width:"12",height:"20",x:"6",y:"2",rx:"2",key:"1oxtiu"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]],Ratio=createLucideIcon$1("ratio",__iconNode$e),__iconNode$d=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],RefreshCw=createLucideIcon$1("refresh-cw",__iconNode$d),__iconNode$c=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Search=createLucideIcon$1("search",__iconNode$c),__iconNode$b=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Send=createLucideIcon$1("send",__iconNode$b),__iconNode$a=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Server=createLucideIcon$1("server",__iconNode$a),__iconNode$9=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Shield=createLucideIcon$1("shield",__iconNode$9),__iconNode$8=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Sparkles=createLucideIcon$1("sparkles",__iconNode$8),__iconNode$7=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Terminal=createLucideIcon$1("terminal",__iconNode$7),__iconNode$6=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Trash2=createLucideIcon$1("trash-2",__iconNode$6),__iconNode$5=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],TriangleAlert=createLucideIcon$1("triangle-alert",__iconNode$5),__iconNode$4=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Upload=createLucideIcon$1("upload",__iconNode$4),__iconNode$3=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],X$4=createLucideIcon$1("x",__iconNode$3);function composeEventHandlers$2(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function setRef(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function composeRefs(...e){return t=>{let n=!1;const r=e.map(e=>{const r=setRef(e,t);return!n&&"function"==typeof r&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():setRef(e[t],null)}}}}function useComposedRefs(...e){return react__WEBPACK_IMPORTED_MODULE_0__.useCallback(composeRefs(...e),e)}function createContextScope(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>react__WEBPACK_IMPORTED_MODULE_0__.createContext(e));return function(n){const r=(null==n?void 0:n[e])||t;return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const i=react__WEBPACK_IMPORTED_MODULE_0__.createContext(r),a=n.length;n=[...n,r];const o=t=>{var n;const{scope:r,children:o,...s}=t,l=(null==(n=null==r?void 0:r[e])?void 0:n[a])||i,c=react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>s,Object.values(s));return jsxRuntimeExports.jsx(l.Provider,{value:c,children:o})};return o.displayName=t+"Provider",[o,function(n,o){var s;const l=(null==(s=null==o?void 0:o[e])?void 0:s[a])||i,c=react__WEBPACK_IMPORTED_MODULE_0__.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},composeContextScopes(r,...t)]}function composeContextScopes(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function createSlot(e){const t=createSlotClone(e),n=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,n)=>{const{children:r,...i}=e,a=react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(r),o=a.find(isSlottable);if(o){const e=o.props.children,r=a.map(t=>t===o?react__WEBPACK_IMPORTED_MODULE_0__.Children.count(e)>1?react__WEBPACK_IMPORTED_MODULE_0__.Children.only(null):react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(e)?e.props.children:null:t);return jsxRuntimeExports.jsx(t,{...i,ref:n,children:react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(e)?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(e,void 0,r):null})}return jsxRuntimeExports.jsx(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var Slot=createSlot("Slot");function createSlotClone(e){const t=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{children:n,...r}=e;if(react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(n)){const e=getElementRef$2(n),i=mergeProps(r,n.props);return n.type!==react__WEBPACK_IMPORTED_MODULE_0__.Fragment&&(i.ref=t?composeRefs(t,e):e),react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(n,i)}return react__WEBPACK_IMPORTED_MODULE_0__.Children.count(n)>1?react__WEBPACK_IMPORTED_MODULE_0__.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var SLOTTABLE_IDENTIFIER=Symbol("radix.slottable");function createSlottable(e){const t=({children:e})=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=SLOTTABLE_IDENTIFIER,t}function isSlottable(e){return react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===SLOTTABLE_IDENTIFIER}function mergeProps(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{const t=a(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...a}:"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function getElementRef$2(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var NODES=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Primitive=NODES.reduce((e,t)=>{const n=createSlot(`Primitive.${t}`),r=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,r)=>{const{asChild:i,...a}=e,o=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),jsxRuntimeExports.jsx(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function dispatchDiscreteCustomEvent(e,t){e&&react_dom__WEBPACK_IMPORTED_MODULE_1__.flushSync(()=>e.dispatchEvent(t))}function useCallbackRef(e){const t=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{t.current=e}),react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[])}function useEscapeKeydown(e,t=(null==globalThis?void 0:globalThis.document)){const n=useCallbackRef(e);react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}var DISMISSABLE_LAYER_NAME="DismissableLayer",CONTEXT_UPDATE="dismissableLayer.update",POINTER_DOWN_OUTSIDE="dismissableLayer.pointerDownOutside",FOCUS_OUTSIDE="dismissableLayer.focusOutside",originalBodyPointerEvents,DismissableLayerContext=react__WEBPACK_IMPORTED_MODULE_0__.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),DismissableLayer=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...l}=e,c=react__WEBPACK_IMPORTED_MODULE_0__.useContext(DismissableLayerContext),[u,d]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),m=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=react__WEBPACK_IMPORTED_MODULE_0__.useState({}),p=useComposedRefs(t,e=>d(e)),f=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),_=f.indexOf(g),b=u?f.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,E=b>=_,y=usePointerDownOutside(e=>{const t=e.target,n=[...c.branches].some(e=>e.contains(t));!E||n||(null==i||i(e),null==o||o(e),e.defaultPrevented||null==s||s())},m),T=useFocusOutside(e=>{const t=e.target;[...c.branches].some(e=>e.contains(t))||(null==a||a(e),null==o||o(e),e.defaultPrevented||null==s||s())},m);return useEscapeKeydown(e=>{b===c.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},m),react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(originalBodyPointerEvents=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),dispatchUpdate(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=originalBodyPointerEvents)}},[u,m,n,c]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),dispatchUpdate())},[u,c]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{const e=()=>h({});return document.addEventListener(CONTEXT_UPDATE,e),()=>document.removeEventListener(CONTEXT_UPDATE,e)},[]),jsxRuntimeExports.jsx(Primitive.div,{...l,ref:p,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:composeEventHandlers$2(e.onFocusCapture,T.onFocusCapture),onBlurCapture:composeEventHandlers$2(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:composeEventHandlers$2(e.onPointerDownCapture,y.onPointerDownCapture)})});DismissableLayer.displayName=DISMISSABLE_LAYER_NAME;var BRANCH_NAME="DismissableLayerBranch",DismissableLayerBranch=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const n=react__WEBPACK_IMPORTED_MODULE_0__.useContext(DismissableLayerContext),r=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),i=useComposedRefs(t,r);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),jsxRuntimeExports.jsx(Primitive.div,{...e,ref:i})});function usePointerDownOutside(e,t=(null==globalThis?void 0:globalThis.document)){const n=useCallbackRef(e),r=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(()=>{});return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){handleAndDispatchCustomEvent(POINTER_DOWN_OUTSIDE,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function useFocusOutside(e,t=(null==globalThis?void 0:globalThis.document)){const n=useCallbackRef(e),r=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{const e=e=>{e.target&&!r.current&&handleAndDispatchCustomEvent(FOCUS_OUTSIDE,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function dispatchUpdate(){const e=new CustomEvent(CONTEXT_UPDATE);document.dispatchEvent(e)}function handleAndDispatchCustomEvent(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?dispatchDiscreteCustomEvent(i,a):i.dispatchEvent(a)}DismissableLayerBranch.displayName=BRANCH_NAME;var useLayoutEffect2=null!=globalThis&&globalThis.document?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:()=>{},useReactId=react__WEBPACK_IMPORTED_MODULE_0__[" useId ".trim().toString()]||(()=>{}),count=0;function useId(e){const[t,n]=react__WEBPACK_IMPORTED_MODULE_0__.useState(useReactId());return useLayoutEffect2(()=>{n(e=>e??String(count++))},[e]),e||(t?`radix-${t}`:"")}const sides=["top","right","bottom","left"],min$1=Math.min,max$1=Math.max,round=Math.round,floor=Math.floor,createCoords=e=>({x:e,y:e}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp$2(e,t,n){return max$1(e,min$1(t,n))}function evaluate(e,t){return"function"==typeof e?e(t):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return"x"===e?"y":"x"}function getAxisLength(e){return"y"===e?"height":"width"}function getSideAxis(e){return["top","bottom"].includes(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,t,n){void 0===n&&(n=!1);const r=getAlignment(e),i=getAlignmentAxis(e),a=getAxisLength(i);let o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=getOppositePlacement(o)),[o,getOppositePlacement(o)]}function getExpandedPlacements(e){const t=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,e=>oppositeAlignmentMap[e])}function getSideList(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function getOppositeAxisPlacements(e,t,n,r){const i=getAlignment(e);let a=getSideList(getSide(e),"start"===n,r);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(getOppositeAlignmentPlacement)))),a}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,e=>oppositeSideMap[e])}function expandPaddingObject(e){return{top:0,right:0,bottom:0,left:0,...e}}function getPaddingObject(e){return"number"!=typeof e?expandPaddingObject(e):{top:e,right:e,bottom:e,left:e}}function rectToClientRect(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function computeCoordsFromPlacement(e,t,n){let{reference:r,floating:i}=e;const a=getSideAxis(t),o=getAlignmentAxis(t),s=getAxisLength(o),l=getSide(t),c="y"===a,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-i.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(getAlignment(t)){case"start":h[o]-=m*(n&&c?-1:1);break;case"end":h[o]+=m*(n&&c?-1:1)}return h}const computePosition$1=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(null==o.isRTL?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=computeCoordsFromPlacement(c,r,l),m=r,h={},p=0;for(let n=0;n<s.length;n++){const{name:a,fn:f}=s[n],{x:g,y:_,data:b,reset:x}=await f({x:u,y:d,initialPlacement:r,placement:m,strategy:i,middlewareData:h,rects:c,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,h={...h,[a]:{...h[a],...b}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(m=x.placement),x.rects&&(c=!0===x.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),({x:u,y:d}=computeCoordsFromPlacement(c,m,l))),n=-1)}return{x:u,y:d,placement:m,strategy:i,middlewareData:h}};async function detectOverflow(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:h=0}=evaluate(t,e),p=getPaddingObject(h),f=s[m?"floating"===d?"reference":"floating":d],g=rectToClientRect(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(f)))||n?f:f.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),_="floating"===d?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),x=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},E=rectToClientRect(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:b,strategy:l}):_);return{top:(g.top-E.top+p.top)/x.y,bottom:(E.bottom-g.bottom+p.bottom)/x.y,left:(g.left-E.left+p.left)/x.x,right:(E.right-g.right+p.right)/x.x}}const arrow$3=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=evaluate(e,t)||{};if(null==c)return{};const d=getPaddingObject(u),m={x:n,y:r},h=getAlignmentAxis(i),p=getAxisLength(h),f=await o.getDimensions(c),g="y"===h,_=g?"top":"left",b=g?"bottom":"right",x=g?"clientHeight":"clientWidth",E=a.reference[p]+a.reference[h]-m[h]-a.floating[p],y=m[h]-a.reference[h],T=await(null==o.getOffsetParent?void 0:o.getOffsetParent(c));let v=T?T[x]:0;(!v||!await(null==o.isElement?void 0:o.isElement(T)))&&(v=s.floating[x]||a.floating[p]);const S=E/2-y/2,w=v/2-f[p]/2-1,k=min$1(d[_],w),A=min$1(d[b],w),C=k,I=v-f[p]-A,M=v/2-f[p]/2+S,R=clamp$2(C,M,I),D=!l.arrow&&null!=getAlignment(i)&&M!==R&&a.reference[p]/2-(M<C?k:A)-f[p]/2<0,N=D?M<C?M-C:M-I:0;return{[h]:m[h]+N,data:{[h]:R,centerOffset:M-R-N,...D&&{alignmentOffset:N}},reset:D}}}),flip$2=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:f=!0,...g}=evaluate(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const _=getSide(i),b=getSideAxis(s),x=getSide(s)===s,E=await(null==l.isRTL?void 0:l.isRTL(c.floating)),y=m||(x||!f?[getOppositePlacement(s)]:getExpandedPlacements(s)),T="none"!==p;!m&&T&&y.push(...getOppositeAxisPlacements(s,f,p,E));const v=[s,...y],S=await detectOverflow(t,g),w=[];let k=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&w.push(S[_]),d){const e=getAlignmentSides(i,o,E);w.push(S[e[0]],S[e[1]])}if(k=[...k,{placement:i,overflows:w}],!w.every(e=>e<=0)){var A,C;const e=((null==(A=a.flip)?void 0:A.index)||0)+1,t=v[e];if(t&&("alignment"!==d||b===getSideAxis(t)||k.every(e=>e.overflows[0]>0&&getSideAxis(e.placement)===b)))return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(C=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!n)switch(h){case"bestFit":{var I;const e=null==(I=k.filter(e=>{if(T){const t=getSideAxis(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:I[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}};function getSideOffsets(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function isAnySideFullyClipped(e){return sides.some(t=>e[t]>=0)}const hide$2=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=evaluate(e,t);switch(r){case"referenceHidden":{const e=getSideOffsets(await detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:isAnySideFullyClipped(e)}}}case"escaped":{const e=getSideOffsets(await detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:isAnySideFullyClipped(e)}}}default:return{}}}}};async function convertValueToCoords(e,t){const{placement:n,platform:r,elements:i}=e,a=await(null==r.isRTL?void 0:r.isRTL(i.floating)),o=getSide(n),s=getAlignment(n),l="y"===getSideAxis(n),c=["left","top"].includes(o)?-1:1,u=a&&l?-1:1,d=evaluate(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*u,y:m*c}:{x:m*c,y:h*u}}const offset$2=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await convertValueToCoords(t,e);return o===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},shift$2=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=evaluate(e,t),c={x:n,y:r},u=await detectOverflow(t,l),d=getSideAxis(getSide(i)),m=getOppositeAxis(d);let h=c[m],p=c[d];if(a){const e="y"===m?"bottom":"right";h=clamp$2(h+u["y"===m?"top":"left"],h,h-u[e])}if(o){const e="y"===d?"bottom":"right";p=clamp$2(p+u["y"===d?"top":"left"],p,p-u[e])}const f=s.fn({...t,[m]:h,[d]:p});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[m]:a,[d]:o}}}}}},limitShift$2=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=evaluate(e,t),u={x:n,y:r},d=getSideAxis(i),m=getOppositeAxis(d);let h=u[m],p=u[d];const f=evaluate(s,t),g="number"==typeof f?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const e="y"===m?"height":"width",t=a.reference[m]-a.floating[e]+g.mainAxis,n=a.reference[m]+a.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var _,b;const e="y"===m?"width":"height",t=["top","left"].includes(getSide(i)),n=a.reference[d]-a.floating[e]+(t&&(null==(_=o.offset)?void 0:_[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(b=o.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[m]:h,[d]:p}}}},size$2=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:o,elements:s}=t,{apply:l=()=>{},...c}=evaluate(e,t),u=await detectOverflow(t,c),d=getSide(i),m=getAlignment(i),h="y"===getSideAxis(i),{width:p,height:f}=a.floating;let g,_;"top"===d||"bottom"===d?(g=d,_=m===(await(null==o.isRTL?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(_=d,g="end"===m?"top":"bottom");const b=f-u.top-u.bottom,x=p-u.left-u.right,E=min$1(f-u[g],b),y=min$1(p-u[_],x),T=!t.middlewareData.shift;let v=E,S=y;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=x),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(v=b),T&&!m){const e=max$1(u.left,0),t=max$1(u.right,0),n=max$1(u.top,0),r=max$1(u.bottom,0);h?S=p-2*(0!==e||0!==t?e+t:max$1(u.left,u.right)):v=f-2*(0!==n||0!==r?n+r:max$1(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:v});const w=await o.getDimensions(s.floating);return p!==w.width||f!==w.height?{reset:{rects:!0}}:{}}}};function hasWindow(){return typeof window<"u"}function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return!!hasWindow()&&(e instanceof Node||e instanceof getWindow(e).Node)}function isElement(e){return!!hasWindow()&&(e instanceof Element||e instanceof getWindow(e).Element)}function isHTMLElement$1(e){return!!hasWindow()&&(e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement)}function isShadowRoot(e){return!(!hasWindow()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=getComputedStyle$2(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function isTableElement(e){return["table","td","th"].includes(getNodeName(e))}function isTopLayer(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function isContainingBlock(e){const t=isWebKit(),n=isElement(e)?getComputedStyle$2(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function getContainingBlock(e){let t=getParentNode(e);for(;isHTMLElement$1(t)&&!isLastTraversableNode(t);){if(isContainingBlock(t))return t;if(isTopLayer(t))return null;t=getParentNode(t)}return null}function isWebKit(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}function getComputedStyle$2(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function getParentNode(e){if("html"===getNodeName(e))return e;const t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){const t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement$1(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=getNearestOverflowAncestor(e),a=i===(null==(r=e.ownerDocument)?void 0:r.body),o=getWindow(i);if(a){const e=getFrameElement(o);return t.concat(o,o.visualViewport||[],isOverflowElement(i)?i:[],e&&n?getOverflowAncestors(e):[])}return t.concat(i,getOverflowAncestors(i,[],n))}function getFrameElement(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function getCssDimensions(e){const t=getComputedStyle$2(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=isHTMLElement$1(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=round(n)!==a||round(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){const t=unwrapElement(e);if(!isHTMLElement$1(t))return createCoords(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=getCssDimensions(t);let o=(a?round(n.width):n.width)/r,s=(a?round(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const noOffsets=createCoords(0);function getVisualOffsets(e){const t=getWindow(e);return isWebKit()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:noOffsets}function shouldAddVisualOffsets(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==getWindow(e))&&t}function getBoundingClientRect(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),a=unwrapElement(e);let o=createCoords(1);t&&(r?isElement(r)&&(o=getScale(r)):o=getScale(e));const s=shouldAddVisualOffsets(a,n,r)?getVisualOffsets(a):createCoords(0);let l=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){const e=getWindow(a),t=r&&isElement(r)?getWindow(r):r;let n=e,i=getFrameElement(n);for(;i&&r&&t!==n;){const e=getScale(i),t=i.getBoundingClientRect(),r=getComputedStyle$2(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=o,n=getWindow(i),i=getFrameElement(n)}}return rectToClientRect({width:u,height:d,x:l,y:c})}function getWindowScrollBarX(e,t){const n=getNodeScroll(e).scrollLeft;return t?t.left+n:getBoundingClientRect(getDocumentElement(e)).left+n}function getHTMLOffset(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:getWindowScrollBarX(e,r)),y:r.top+t.scrollTop}}function convertOffsetParentRelativeRectToViewportRelativeRect(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a="fixed"===i,o=getDocumentElement(r),s=!!t&&isTopLayer(t.floating);if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=createCoords(1);const u=createCoords(0),d=isHTMLElement$1(r);if((d||!d&&!a)&&(("body"!==getNodeName(r)||isOverflowElement(o))&&(l=getNodeScroll(r)),isHTMLElement$1(r))){const e=getBoundingClientRect(r);c=getScale(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const m=!o||d||a?createCoords(0):getHTMLOffset(o,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+m.x,y:n.y*c.y-l.scrollTop*c.y+u.y+m.y}}function getClientRects(e){return Array.from(e.getClientRects())}function getDocumentRect(e){const t=getDocumentElement(e),n=getNodeScroll(e),r=e.ownerDocument.body,i=max$1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=max$1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+getWindowScrollBarX(e);const s=-n.scrollTop;return"rtl"===getComputedStyle$2(r).direction&&(o+=max$1(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function getViewportRect(e,t){const n=getWindow(e),r=getDocumentElement(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const e=isWebKit();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}function getInnerBoundingClientRect(e,t){const n=getBoundingClientRect(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=isHTMLElement$1(e)?getScale(e):createCoords(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function getClientRectFromClippingAncestor(e,t,n){let r;if("viewport"===t)r=getViewportRect(e,n);else if("document"===t)r=getDocumentRect(getDocumentElement(e));else if(isElement(t))r=getInnerBoundingClientRect(t,n);else{const n=getVisualOffsets(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return rectToClientRect(r)}function hasFixedPositionAncestor(e,t){const n=getParentNode(e);return!(n===t||!isElement(n)||isLastTraversableNode(n))&&("fixed"===getComputedStyle$2(n).position||hasFixedPositionAncestor(n,t))}function getClippingElementAncestors(e,t){const n=t.get(e);if(n)return n;let r=getOverflowAncestors(e,[],!1).filter(e=>isElement(e)&&"body"!==getNodeName(e)),i=null;const a="fixed"===getComputedStyle$2(e).position;let o=a?getParentNode(e):e;for(;isElement(o)&&!isLastTraversableNode(o);){const t=getComputedStyle$2(o),n=isContainingBlock(o);!n&&"fixed"===t.position&&(i=null),(a?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||isOverflowElement(o)&&!n&&hasFixedPositionAncestor(e,o))?r=r.filter(e=>e!==o):i=t,o=getParentNode(o)}return t.set(e,r),r}function getClippingRect(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[..."clippingAncestors"===n?isTopLayer(t)?[]:getClippingElementAncestors(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{const r=getClientRectFromClippingAncestor(t,n,i);return e.top=max$1(r.top,e.top),e.right=min$1(r.right,e.right),e.bottom=min$1(r.bottom,e.bottom),e.left=max$1(r.left,e.left),e},getClientRectFromClippingAncestor(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function getDimensions(e){const{width:t,height:n}=getCssDimensions(e);return{width:t,height:n}}function getRectRelativeToOffsetParent(e,t,n){const r=isHTMLElement$1(t),i=getDocumentElement(t),a="fixed"===n,o=getBoundingClientRect(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=createCoords(0);function c(){l.x=getWindowScrollBarX(i)}if(r||!r&&!a)if(("body"!==getNodeName(t)||isOverflowElement(i))&&(s=getNodeScroll(t)),r){const e=getBoundingClientRect(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&c();a&&!r&&i&&c();const u=!i||r||a?createCoords(0):getHTMLOffset(i,s);return{x:o.left+s.scrollLeft-l.x-u.x,y:o.top+s.scrollTop-l.y-u.y,width:o.width,height:o.height}}function isStaticPositioned(e){return"static"===getComputedStyle$2(e).position}function getTrueOffsetParent(e,t){if(!isHTMLElement$1(e)||"fixed"===getComputedStyle$2(e).position)return null;if(t)return t(e);let n=e.offsetParent;return getDocumentElement(e)===n&&(n=n.ownerDocument.body),n}function getOffsetParent(e,t){const n=getWindow(e);if(isTopLayer(e))return n;if(!isHTMLElement$1(e)){let t=getParentNode(e);for(;t&&!isLastTraversableNode(t);){if(isElement(t)&&!isStaticPositioned(t))return t;t=getParentNode(t)}return n}let r=getTrueOffsetParent(e,t);for(;r&&isTableElement(r)&&isStaticPositioned(r);)r=getTrueOffsetParent(r,t);return r&&isLastTraversableNode(r)&&isStaticPositioned(r)&&!isContainingBlock(r)?n:r||getContainingBlock(e)||n}const getElementRects=async function(e){const t=this.getOffsetParent||getOffsetParent,n=this.getDimensions,r=await n(e.floating);return{reference:getRectRelativeToOffsetParent(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function isRTL(e){return"rtl"===getComputedStyle$2(e).direction}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function rectsAreEqual(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function observeMove(e,t){let n,r=null;const i=getDocumentElement(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function o(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:m,height:h}=c;if(s||t(),!m||!h)return;const p={rootMargin:-floor(d)+"px "+-floor(i.clientWidth-(u+m))+"px "+-floor(i.clientHeight-(d+h))+"px "+-floor(u)+"px",threshold:max$1(0,min$1(1,l))||1};let f=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!f)return o();r?o(!1,r):n=setTimeout(()=>{o(!1,1e-7)},1e3)}1===r&&!rectsAreEqual(c,e.getBoundingClientRect())&&o(),f=!1}try{r=new IntersectionObserver(g,{...p,root:i.ownerDocument})}catch{r=new IntersectionObserver(g,p)}r.observe(e)}(!0),a}function autoUpdate(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=unwrapElement(e),u=i||a?[...c?getOverflowAncestors(c):[],...getOverflowAncestors(t)]:[];u.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=c&&s?observeMove(c,n):null;let m=-1,h=null;o&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let p,f=l?getBoundingClientRect(e):null;return l&&function t(){const r=getBoundingClientRect(e);f&&!rectsAreEqual(f,r)&&n(),f=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const offset$1=offset$2,shift$1=shift$2,flip$1=flip$2,size$1=size$2,hide$1=hide$2,arrow$2=arrow$3,limitShift$1=limitShift$2,computePosition=(e,t,n)=>{const r=new Map,i={platform,...n},a={...i.platform,_c:r};return computePosition$1(e,t,{...i,platform:a})};var isClient=typeof document<"u",noop$1=function(){},index$1=isClient?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:noop$1;function deepEqual(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!deepEqual(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(!("_owner"===n&&e.$$typeof||deepEqual(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function getDPR(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(e,t){const n=getDPR(e);return Math.round(t*n)/n}function useLatestRef(e){const t=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e);return index$1(()=>{t.current=e}),t}function useFloating(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=react__WEBPACK_IMPORTED_MODULE_0__.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=react__WEBPACK_IMPORTED_MODULE_0__.useState(r);deepEqual(m,r)||h(r);const[p,f]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[g,_]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),b=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(e=>{e!==T.current&&(T.current=e,f(e))},[]),x=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(e=>{e!==v.current&&(v.current=e,_(e))},[]),E=a||p,y=o||g,T=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),v=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),S=react__WEBPACK_IMPORTED_MODULE_0__.useRef(u),w=null!=l,k=useLatestRef(l),A=useLatestRef(i),C=useLatestRef(c),I=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(()=>{if(!T.current||!v.current)return;const e={placement:t,strategy:n,middleware:m};A.current&&(e.platform=A.current),computePosition(T.current,v.current,e).then(e=>{const t={...e,isPositioned:!1!==C.current};M.current&&!deepEqual(S.current,t)&&(S.current=t,react_dom__WEBPACK_IMPORTED_MODULE_1__.flushSync(()=>{d(t)}))})},[m,t,n,A,C]);index$1(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);const M=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1);index$1(()=>(M.current=!0,()=>{M.current=!1}),[]),index$1(()=>{if(E&&(T.current=E),y&&(v.current=y),E&&y){if(k.current)return k.current(E,y,I);I()}},[E,y,I,k,w]);const R=react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>({reference:T,floating:v,setReference:b,setFloating:x}),[b,x]),D=react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>({reference:E,floating:y}),[E,y]),N=react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>{const e={position:n,left:0,top:0};if(!D.floating)return e;const t=roundByDPR(D.floating,u.x),r=roundByDPR(D.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...getDPR(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,D.floating,u.x,u.y]);return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>({...u,update:I,refs:R,elements:D,floatingStyles:N}),[u,I,R,D,N])}const arrow$1=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?arrow$2({element:n.current,padding:r}).fn(t):{}:n?arrow$2({element:n,padding:r}).fn(t):{}}}),offset=(e,t)=>({...offset$1(e),options:[e,t]}),shift=(e,t)=>({...shift$1(e),options:[e,t]}),limitShift=(e,t)=>({...limitShift$1(e),options:[e,t]}),flip=(e,t)=>({...flip$1(e),options:[e,t]}),size=(e,t)=>({...size$1(e),options:[e,t]}),hide=(e,t)=>({...hide$1(e),options:[e,t]}),arrow=(e,t)=>({...arrow$1(e),options:[e,t]});var NAME$1="Arrow",Arrow$1=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return jsxRuntimeExports.jsx(Primitive.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});Arrow$1.displayName=NAME$1;var Root$4=Arrow$1;function useSize(e){const[t,n]=react__WEBPACK_IMPORTED_MODULE_0__.useState(void 0);return useLayoutEffect2(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let i,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}var POPPER_NAME="Popper",[createPopperContext,createPopperScope]=createContextScope(POPPER_NAME),[PopperProvider,usePopperContext]=createPopperContext(POPPER_NAME),Popper=e=>{const{__scopePopper:t,children:n}=e,[r,i]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null);return jsxRuntimeExports.jsx(PopperProvider,{scope:t,anchor:r,onAnchorChange:i,children:n})};Popper.displayName=POPPER_NAME;var ANCHOR_NAME="PopperAnchor",PopperAnchor=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=usePopperContext(ANCHOR_NAME,n),o=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),s=useComposedRefs(t,o);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{a.onAnchorChange((null==r?void 0:r.current)||o.current)}),r?null:jsxRuntimeExports.jsx(Primitive.div,{...i,ref:s})});PopperAnchor.displayName=ANCHOR_NAME;var CONTENT_NAME$2="PopperContent",[PopperContentProvider,useContentContext]=createPopperContext(CONTENT_NAME$2),PopperContent=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{var n,r,i,a,o,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:p=!0,collisionBoundary:f=[],collisionPadding:g=0,sticky:_="partial",hideWhenDetached:b=!1,updatePositionStrategy:x="optimized",onPlaced:E,...y}=e,T=usePopperContext(CONTENT_NAME$2,l),[v,S]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),w=useComposedRefs(t,e=>S(e)),[k,A]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),C=useSize(k),I=(null==C?void 0:C.width)??0,M=(null==C?void 0:C.height)??0,R=c+("center"!==d?"-"+d:""),D="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},N=Array.isArray(f)?f:[f],P=N.length>0,O={padding:D,boundary:N.filter(isNotNull$2),altBoundary:P},{refs:L,floatingStyles:$,placement:B,isPositioned:j,middlewareData:F}=useFloating({strategy:"fixed",placement:R,whileElementsMounted:(...e)=>autoUpdate(...e,{animationFrame:"always"===x}),elements:{reference:T.anchor},middleware:[offset({mainAxis:u+M,alignmentAxis:m}),p&&shift({mainAxis:!0,crossAxis:!1,limiter:"partial"===_?limitShift():void 0,...O}),p&&flip({...O}),size({...O,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty("--radix-popper-available-width",`${n}px`),o.setProperty("--radix-popper-available-height",`${r}px`),o.setProperty("--radix-popper-anchor-width",`${i}px`),o.setProperty("--radix-popper-anchor-height",`${a}px`)}}),k&&arrow({element:k,padding:h}),transformOrigin({arrowWidth:I,arrowHeight:M}),b&&hide({strategy:"referenceHidden",...O})]}),[U,G]=getSideAndAlignFromPlacement(B),q=useCallbackRef(E);useLayoutEffect2(()=>{j&&(null==q||q())},[j,q]);const z=null==(n=F.arrow)?void 0:n.x,H=null==(r=F.arrow)?void 0:r.y,V=0!==(null==(i=F.arrow)?void 0:i.centerOffset),[W,K]=react__WEBPACK_IMPORTED_MODULE_0__.useState();return useLayoutEffect2(()=>{v&&K(window.getComputedStyle(v).zIndex)},[v]),jsxRuntimeExports.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:j?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[null==(a=F.transformOrigin)?void 0:a.x,null==(o=F.transformOrigin)?void 0:o.y].join(" "),...(null==(s=F.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:jsxRuntimeExports.jsx(PopperContentProvider,{scope:l,placedSide:U,onArrowChange:A,arrowX:z,arrowY:H,shouldHideArrow:V,children:jsxRuntimeExports.jsx(Primitive.div,{"data-side":U,"data-align":G,...y,ref:w,style:{...y.style,animation:j?void 0:"none"}})})})});PopperContent.displayName=CONTENT_NAME$2;var ARROW_NAME$1="PopperArrow",OPPOSITE_SIDE={top:"bottom",right:"left",bottom:"top",left:"right"},PopperArrow=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,i=useContentContext(ARROW_NAME$1,n),a=OPPOSITE_SIDE[i.placedSide];return jsxRuntimeExports.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:jsxRuntimeExports.jsx(Root$4,{...r,ref:t,style:{...r.style,display:"block"}})})});function isNotNull$2(e){return null!==e}PopperArrow.displayName=ARROW_NAME$1;var transformOrigin=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i;const{placement:a,rects:o,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,m]=getSideAndAlignFromPlacement(a),h={start:"0%",center:"50%",end:"100%"}[m],p=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,f=((null==(i=s.arrow)?void 0:i.y)??0)+u/2;let g="",_="";return"bottom"===d?(g=l?h:`${p}px`,_=-u+"px"):"top"===d?(g=l?h:`${p}px`,_=`${o.floating.height+u}px`):"right"===d?(g=-u+"px",_=l?h:`${f}px`):"left"===d&&(g=`${o.floating.width+u}px`,_=l?h:`${f}px`),{data:{x:g,y:_}}}});function getSideAndAlignFromPlacement(e){const[t,n="center"]=e.split("-");return[t,n]}var Root2=Popper,Anchor$1=PopperAnchor,Content=PopperContent,Arrow=PopperArrow,PORTAL_NAME$1="Portal",Portal$1=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{var n;const{container:r,...i}=e,[a,o]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1);useLayoutEffect2(()=>o(!0),[]);const s=r||a&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return s?react_dom__WEBPACK_IMPORTED_MODULE_1___default().createPortal(jsxRuntimeExports.jsx(Primitive.div,{...i,ref:t}),s):null});function useStateMachine$2(e,t){return react__WEBPACK_IMPORTED_MODULE_0__.useReducer((e,n)=>t[e][n]??e,e)}Portal$1.displayName=PORTAL_NAME$1;var Presence$1=e=>{const{present:t,children:n}=e,r=usePresence$2(t),i="function"==typeof n?n({present:r.isPresent}):react__WEBPACK_IMPORTED_MODULE_0__.Children.only(n),a=useComposedRefs(r.ref,getElementRef$1(i));return"function"==typeof n||r.isPresent?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(i,{ref:a}):null};function usePresence$2(e){const[t,n]=react__WEBPACK_IMPORTED_MODULE_0__.useState(),r=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef("none"),o=e?"mounted":"unmounted",[s,l]=useStateMachine$2(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{const e=getAnimationName$1(r.current);a.current="mounted"===s?e:"none"},[s]),useLayoutEffect2(()=>{const t=r.current,n=i.current;if(n!==e){const r=a.current,o=getAnimationName$1(t);e?l("MOUNT"):"none"===o||"none"===(null==t?void 0:t.display)?l("UNMOUNT"):l(n&&r!==o?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),useLayoutEffect2(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,o=a=>{const o=getAnimationName$1(r.current).includes(a.animationName);if(a.target===t&&o&&(l("ANIMATION_END"),!i.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(a.current=getAnimationName$1(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",o),t.addEventListener("animationend",o),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",o),t.removeEventListener("animationend",o)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:react__WEBPACK_IMPORTED_MODULE_0__.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function getAnimationName$1(e){return(null==e?void 0:e.animationName)||"none"}function getElementRef$1(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}Presence$1.displayName="Presence";var useInsertionEffect=react__WEBPACK_IMPORTED_MODULE_0__[" useInsertionEffect ".trim().toString()]||useLayoutEffect2;function useControllableState({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,a,o]=useUncontrolledState({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:i;{const t=react__WEBPACK_IMPORTED_MODULE_0__.useRef(void 0!==e);react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{const e=t.current;e!==s&&console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[l,react__WEBPACK_IMPORTED_MODULE_0__.useCallback(t=>{var n;if(s){const r=isFunction(t)?t(e):t;r!==e&&(null==(n=o.current)||n.call(o,r))}else a(t)},[s,e,a,o])]}function useUncontrolledState({defaultProp:e,onChange:t}){const[n,r]=react__WEBPACK_IMPORTED_MODULE_0__.useState(e),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(n),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef(t);return useInsertionEffect(()=>{a.current=t},[t]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{var e;i.current!==n&&(null==(e=a.current)||e.call(a,n),i.current=n)},[n,i]),[n,r,a]}function isFunction(e){return"function"==typeof e}var VISUALLY_HIDDEN_STYLES=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),NAME="VisuallyHidden",VisuallyHidden=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>jsxRuntimeExports.jsx(Primitive.span,{...e,ref:t,style:{...VISUALLY_HIDDEN_STYLES,...e.style}}));VisuallyHidden.displayName=NAME;var Root$3=VisuallyHidden,[createTooltipContext,createTooltipScope]=createContextScope("Tooltip",[createPopperScope]),usePopperScope=createPopperScope(),PROVIDER_NAME="TooltipProvider",DEFAULT_DELAY_DURATION=700,TOOLTIP_OPEN="tooltip.open",[TooltipProviderContextProvider,useTooltipProviderContext]=createTooltipContext(PROVIDER_NAME),TooltipProvider$1=e=>{const{__scopeTooltip:t,delayDuration:n=DEFAULT_DELAY_DURATION,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!0),s=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1),l=react__WEBPACK_IMPORTED_MODULE_0__.useRef(0);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{const e=l.current;return()=>window.clearTimeout(e)},[]),jsxRuntimeExports.jsx(TooltipProviderContextProvider,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:react__WEBPACK_IMPORTED_MODULE_0__.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:react__WEBPACK_IMPORTED_MODULE_0__.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:react__WEBPACK_IMPORTED_MODULE_0__.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};TooltipProvider$1.displayName=PROVIDER_NAME;var TOOLTIP_NAME="Tooltip",[TooltipContextProvider,useTooltipContext]=createTooltipContext(TOOLTIP_NAME),Tooltip$1=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,l=useTooltipProviderContext(TOOLTIP_NAME,e.__scopeTooltip),c=usePopperScope(t),[u,d]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),m=useId(),h=react__WEBPACK_IMPORTED_MODULE_0__.useRef(0),p=o??l.disableHoverableContent,f=s??l.delayDuration,g=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1),[_,b]=useControllableState({prop:r,defaultProp:i??!1,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(TOOLTIP_OPEN))):l.onClose(),null==a||a(e)},caller:TOOLTIP_NAME}),x=react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>_?g.current?"delayed-open":"instant-open":"closed",[_]),E=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,b(!0)},[b]),y=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),T=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,b(!0),h.current=0},f)},[f,b]);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),jsxRuntimeExports.jsx(Root2,{...c,children:jsxRuntimeExports.jsx(TooltipContextProvider,{scope:t,contentId:m,open:_,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:react__WEBPACK_IMPORTED_MODULE_0__.useCallback(()=>{l.isOpenDelayedRef.current?T():E()},[l.isOpenDelayedRef,T,E]),onTriggerLeave:react__WEBPACK_IMPORTED_MODULE_0__.useCallback(()=>{p?y():(window.clearTimeout(h.current),h.current=0)},[y,p]),onOpen:E,onClose:y,disableHoverableContent:p,children:n})})};Tooltip$1.displayName=TOOLTIP_NAME;var TRIGGER_NAME$1="TooltipTrigger",TooltipTrigger$1=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=useTooltipContext(TRIGGER_NAME$1,n),a=useTooltipProviderContext(TRIGGER_NAME$1,n),o=usePopperScope(n),s=useComposedRefs(t,react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),i.onTriggerChange),l=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1),c=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1),u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(()=>l.current=!1,[]);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),jsxRuntimeExports.jsx(Anchor$1,{asChild:!0,...o,children:jsxRuntimeExports.jsx(Primitive.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:composeEventHandlers$2(e.onPointerMove,e=>{"touch"!==e.pointerType&&!c.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:composeEventHandlers$2(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:composeEventHandlers$2(e.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:composeEventHandlers$2(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:composeEventHandlers$2(e.onBlur,i.onClose),onClick:composeEventHandlers$2(e.onClick,i.onClose)})})});TooltipTrigger$1.displayName=TRIGGER_NAME$1;var PORTAL_NAME="TooltipPortal",[PortalProvider,usePortalContext]=createTooltipContext(PORTAL_NAME,{forceMount:void 0}),TooltipPortal=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=useTooltipContext(PORTAL_NAME,t);return jsxRuntimeExports.jsx(PortalProvider,{scope:t,forceMount:n,children:jsxRuntimeExports.jsx(Presence$1,{present:n||a.open,children:jsxRuntimeExports.jsx(Portal$1,{asChild:!0,container:i,children:r})})})};TooltipPortal.displayName=PORTAL_NAME;var CONTENT_NAME$1="TooltipContent",TooltipContent$1=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const n=usePortalContext(CONTENT_NAME$1,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,o=useTooltipContext(CONTENT_NAME$1,e.__scopeTooltip);return jsxRuntimeExports.jsx(Presence$1,{present:r||o.open,children:o.disableHoverableContent?jsxRuntimeExports.jsx(TooltipContentImpl,{side:i,...a,ref:t}):jsxRuntimeExports.jsx(TooltipContentHoverable,{side:i,...a,ref:t})})}),TooltipContentHoverable=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const n=useTooltipContext(CONTENT_NAME$1,e.__scopeTooltip),r=useTooltipProviderContext(CONTENT_NAME$1,e.__scopeTooltip),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),a=useComposedRefs(t,i),[o,s]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),{trigger:l,onClose:c}=n,u=i.current,{onPointerInTransitChange:d}=r,m=react__WEBPACK_IMPORTED_MODULE_0__.useCallback(()=>{s(null),d(!1)},[d]),h=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=getHull([...getPaddedExitPoints(r,getExitSideFromRect(r,n.getBoundingClientRect())),...getPointsFromRect(t.getBoundingClientRect())]);s(i),d(!0)},[d]);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>()=>m(),[m]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{if(l&&u){const e=e=>h(e,u),t=e=>h(e,l);return l.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}},[l,u,h,m]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{if(o){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==u?void 0:u.contains(t)),i=!isPointInPolygon(n,o);r?m():i&&(m(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,u,o,c,m]),jsxRuntimeExports.jsx(TooltipContentImpl,{...e,ref:a})}),[VisuallyHiddenContentContextProvider,useVisuallyHiddenContentContext]=createTooltipContext(TOOLTIP_NAME,{isInside:!1}),Slottable=createSlottable("TooltipContent"),TooltipContentImpl=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,l=useTooltipContext(CONTENT_NAME$1,n),c=usePopperScope(n),{onClose:u}=l;return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>(document.addEventListener(TOOLTIP_OPEN,u),()=>document.removeEventListener(TOOLTIP_OPEN,u)),[u]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{if(l.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(l.trigger)&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,u]),jsxRuntimeExports.jsx(DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:jsxRuntimeExports.jsxs(Content,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[jsxRuntimeExports.jsx(Slottable,{children:r}),jsxRuntimeExports.jsx(VisuallyHiddenContentContextProvider,{scope:n,isInside:!0,children:jsxRuntimeExports.jsx(Root$3,{id:l.contentId,role:"tooltip",children:i||r})})]})})});TooltipContent$1.displayName=CONTENT_NAME$1;var ARROW_NAME="TooltipArrow",TooltipArrow=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=usePopperScope(n);return useVisuallyHiddenContentContext(ARROW_NAME,n).isInside?null:jsxRuntimeExports.jsx(Arrow,{...i,...r,ref:t})});function getExitSideFromRect(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function getPaddedExitPoints(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function getPointsFromRect(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function isPointInPolygon(e,t){const{x:n,y:r}=e;let i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const o=t[e],s=t[a],l=o.x,c=o.y,u=s.x,d=s.y;c>r!=d>r&&n<(u-l)*(r-c)/(d-c)+l&&(i=!i)}return i}function getHull(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),getHullPresorted(t)}function getHullPresorted(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}TooltipArrow.displayName=ARROW_NAME;var Provider=TooltipProvider$1,Root3=Tooltip$1,Trigger=TooltipTrigger$1,Portal=TooltipPortal,Content2=TooltipContent$1,Arrow2=TooltipArrow;function r$3(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r$3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function clsx(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r$3(e))&&(r&&(r+=" "),r+=t);return r}const CLASS_PART_SEPARATOR="-",createClassGroupUtils=e=>{const t=createClassMap(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split(CLASS_PART_SEPARATOR);return""===n[0]&&1!==n.length&&n.shift(),getGroupRecursive(n,t)||getGroupIdForArbitraryProperty(e)},getConflictingClassGroupIds:(e,t)=>{const i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},getGroupRecursive=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const r=e[0],i=t.nextPart.get(r),a=i?getGroupRecursive(e.slice(1),i):void 0;if(a)return a;if(0===t.validators.length)return;const o=e.join(CLASS_PART_SEPARATOR);return null==(n=t.validators.find(({validator:e})=>e(o)))?void 0:n.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=e=>{if(arbitraryPropertyRegex.test(e)){const t=arbitraryPropertyRegex.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},createClassMap=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)processClassesRecursively(n[e],r,e,t);return r},processClassesRecursively=(e,t,n,r)=>{e.forEach(e=>{if("string"!=typeof e)return"function"==typeof e?isThemeGetter(e)?void processClassesRecursively(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n}):void Object.entries(e).forEach(([e,i])=>{processClassesRecursively(i,getPart(t,e),n,r)});(""===e?t:getPart(t,e)).classGroupId=n})},getPart=(e,t)=>{let n=e;return t.split(CLASS_PART_SEPARATOR).forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},isThemeGetter=e=>e.isThemeGetter,createLruCache=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",MODIFIER_SEPARATOR_LENGTH=MODIFIER_SEPARATOR.length,createParseClassName=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,i=0,a=0;for(let o=0;o<e.length;o++){let s=e[o];if(0===r&&0===i){if(s===MODIFIER_SEPARATOR){t.push(e.slice(a,o)),a=o+MODIFIER_SEPARATOR_LENGTH;continue}if("/"===s){n=o;continue}}"["===s?r++:"]"===s?r--:"("===s?i++:")"===s&&i--}const o=0===t.length?e:e.substring(a),s=stripImportantModifier(o);return{modifiers:t,hasImportantModifier:s!==o,baseClassName:s,maybePostfixModifierPosition:n&&n>a?n-a:void 0}};if(t){const e=t+MODIFIER_SEPARATOR,n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},stripImportantModifier=e=>e.endsWith(IMPORTANT_MODIFIER)?e.substring(0,e.length-1):e.startsWith(IMPORTANT_MODIFIER)?e.substring(1):e,createSortModifiers=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},createConfigUtils=e=>({cache:createLruCache(e.cacheSize),parseClassName:createParseClassName(e),sortModifiers:createSortModifiers(e),...createClassGroupUtils(e)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(SPLIT_CLASSES_REGEX);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:h}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let p=!!h,f=r(p?m.substring(0,h):m);if(!f){if(!p){l=t+(l.length>0?" "+l:l);continue}if(f=r(m),!f){l=t+(l.length>0?" "+l:l);continue}p=!1}const g=a(u).join(":"),_=d?g+IMPORTANT_MODIFIER:g,b=_+f;if(o.includes(b))continue;o.push(b);const x=i(f,p);for(let e=0;e<x.length;++e){const t=x[e];o.push(_+t)}l=t+(l.length>0?" "+l:l)}return l};function twJoin(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=toValue(e))&&(r&&(r+=" "),r+=t);return r}const toValue=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=toValue(e[r]))&&(n&&(n+=" "),n+=t);return n};function createTailwindMerge(e,...t){let n,r,i,a=function(s){const l=t.reduce((e,t)=>t(e),e());return n=createConfigUtils(l),r=n.cache.get,i=n.cache.set,a=o,o(s)};function o(e){const t=r(e);if(t)return t;const a=mergeClassList(e,n);return i(e,a),a}return function(){return a(twJoin.apply(null,arguments))}}const fromTheme=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},arbitraryValueRegex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,arbitraryVariableRegex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fractionRegex=/^\d+\/\d+$/,tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isFraction=e=>fractionRegex.test(e),isNumber$1=e=>!!e&&!Number.isNaN(Number(e)),isInteger=e=>!!e&&Number.isInteger(Number(e)),isPercent=e=>e.endsWith("%")&&isNumber$1(e.slice(0,-1)),isTshirtSize=e=>tshirtUnitRegex.test(e),isAny=()=>!0,isLengthOnly=e=>lengthUnitRegex.test(e)&&!colorFunctionRegex.test(e),isNever=()=>!1,isShadow=e=>shadowRegex.test(e),isImage=e=>imageRegex.test(e),isAnyNonArbitrary=e=>!isArbitraryValue(e)&&!isArbitraryVariable(e),isArbitrarySize=e=>getIsArbitraryValue(e,isLabelSize,isNever),isArbitraryValue=e=>arbitraryValueRegex.test(e),isArbitraryLength=e=>getIsArbitraryValue(e,isLabelLength,isLengthOnly),isArbitraryNumber=e=>getIsArbitraryValue(e,isLabelNumber,isNumber$1),isArbitraryPosition=e=>getIsArbitraryValue(e,isLabelPosition,isNever),isArbitraryImage=e=>getIsArbitraryValue(e,isLabelImage,isImage),isArbitraryShadow=e=>getIsArbitraryValue(e,isLabelShadow,isShadow),isArbitraryVariable=e=>arbitraryVariableRegex.test(e),isArbitraryVariableLength=e=>getIsArbitraryVariable(e,isLabelLength),isArbitraryVariableFamilyName=e=>getIsArbitraryVariable(e,isLabelFamilyName),isArbitraryVariablePosition=e=>getIsArbitraryVariable(e,isLabelPosition),isArbitraryVariableSize=e=>getIsArbitraryVariable(e,isLabelSize),isArbitraryVariableImage=e=>getIsArbitraryVariable(e,isLabelImage),isArbitraryVariableShadow=e=>getIsArbitraryVariable(e,isLabelShadow,!0),getIsArbitraryValue=(e,t,n)=>{const r=arbitraryValueRegex.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},getIsArbitraryVariable=(e,t,n=!1)=>{const r=arbitraryVariableRegex.exec(e);return!!r&&(r[1]?t(r[1]):n)},isLabelPosition=e=>"position"===e||"percentage"===e,isLabelImage=e=>"image"===e||"url"===e,isLabelSize=e=>"length"===e||"size"===e||"bg-size"===e,isLabelLength=e=>"length"===e,isLabelNumber=e=>"number"===e,isLabelFamilyName=e=>"family-name"===e,isLabelShadow=e=>"shadow"===e,getDefaultConfig=()=>{const e=fromTheme("color"),t=fromTheme("font"),n=fromTheme("text"),r=fromTheme("font-weight"),i=fromTheme("tracking"),a=fromTheme("leading"),o=fromTheme("breakpoint"),s=fromTheme("container"),l=fromTheme("spacing"),c=fromTheme("radius"),u=fromTheme("shadow"),d=fromTheme("inset-shadow"),m=fromTheme("text-shadow"),h=fromTheme("drop-shadow"),p=fromTheme("blur"),f=fromTheme("perspective"),g=fromTheme("aspect"),_=fromTheme("ease"),b=fromTheme("animate"),x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",isArbitraryVariable,isArbitraryValue],E=()=>[isArbitraryVariable,isArbitraryValue,l],y=()=>[isFraction,"full","auto",...E()],T=()=>[isInteger,"none","subgrid",isArbitraryVariable,isArbitraryValue],v=()=>["auto",{span:["full",isInteger,isArbitraryVariable,isArbitraryValue]},isInteger,isArbitraryVariable,isArbitraryValue],S=()=>[isInteger,"auto",isArbitraryVariable,isArbitraryValue],w=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],k=()=>["auto",...E()],A=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],C=()=>[e,isArbitraryVariable,isArbitraryValue],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",isArbitraryVariablePosition,isArbitraryPosition,{position:[isArbitraryVariable,isArbitraryValue]}],M=()=>["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize,{size:[isArbitraryVariable,isArbitraryValue]}],R=()=>[isPercent,isArbitraryVariableLength,isArbitraryLength],D=()=>["","none","full",c,isArbitraryVariable,isArbitraryValue],N=()=>["",isNumber$1,isArbitraryVariableLength,isArbitraryLength],P=()=>[isNumber$1,isPercent,isArbitraryVariablePosition,isArbitraryPosition],O=()=>["","none",p,isArbitraryVariable,isArbitraryValue],L=()=>["none",isNumber$1,isArbitraryVariable,isArbitraryValue],$=()=>["none",isNumber$1,isArbitraryVariable,isArbitraryValue],B=()=>[isNumber$1,isArbitraryVariable,isArbitraryValue],j=()=>[isFraction,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[isTshirtSize],breakpoint:[isTshirtSize],color:[isAny],container:[isTshirtSize],"drop-shadow":[isTshirtSize],ease:["in","out","in-out"],font:[isAnyNonArbitrary],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[isTshirtSize],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[isTshirtSize],shadow:[isTshirtSize],spacing:["px",isNumber$1],text:[isTshirtSize],"text-shadow":[isTshirtSize],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",isFraction,isArbitraryValue,isArbitraryVariable,g]}],container:["container"],columns:[{columns:[isNumber$1,isArbitraryValue,isArbitraryVariable,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:y()}],"inset-x":[{"inset-x":y()}],"inset-y":[{"inset-y":y()}],start:[{start:y()}],end:[{end:y()}],top:[{top:y()}],right:[{right:y()}],bottom:[{bottom:y()}],left:[{left:y()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",s,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[isNumber$1,isFraction,"auto","initial","none",isArbitraryValue]}],grow:[{grow:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],shrink:[{shrink:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],order:[{order:[isInteger,"first","last","none",isArbitraryVariable,isArbitraryValue]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:v()}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:v()}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":w()}],"auto-rows":[{"auto-rows":w()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:A()}],w:[{w:[s,"screen",...A()]}],"min-w":[{"min-w":[s,"screen","none",...A()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...A()]}],h:[{h:["screen","lh",...A()]}],"min-h":[{"min-h":["screen","lh","none",...A()]}],"max-h":[{"max-h":["screen","lh",...A()]}],"font-size":[{text:["base",n,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,isArbitraryVariable,isArbitraryNumber]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",isPercent,isArbitraryValue]}],"font-family":[{font:[isArbitraryVariableFamilyName,isArbitraryValue,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber$1,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[a,...E()]}],"list-image":[{"list-image":["none",isArbitraryVariable,isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",isArbitraryVariable,isArbitraryValue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[isNumber$1,"from-font","auto",isArbitraryVariable,isArbitraryLength]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[isNumber$1,"auto",isArbitraryVariable,isArbitraryValue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryVariable,isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryVariable,isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},isInteger,isArbitraryVariable,isArbitraryValue],radial:["",isArbitraryVariable,isArbitraryValue],conic:[isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariableImage,isArbitraryImage]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":N()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber$1,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",u,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",d,isArbitraryVariableShadow,isArbitraryShadow]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[isNumber$1,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",m,isArbitraryVariableShadow,isArbitraryShadow]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[isNumber$1]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[isArbitraryVariable,isArbitraryValue]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[isNumber$1]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",isArbitraryVariable,isArbitraryValue]}],filter:[{filter:["","none",isArbitraryVariable,isArbitraryValue]}],blur:[{blur:O()}],brightness:[{brightness:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],contrast:[{contrast:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"drop-shadow":[{"drop-shadow":["","none",h,isArbitraryVariableShadow,isArbitraryShadow]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"hue-rotate":[{"hue-rotate":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],invert:[{invert:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],saturate:[{saturate:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],sepia:[{sepia:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-filter":[{"backdrop-filter":["","none",isArbitraryVariable,isArbitraryValue]}],"backdrop-blur":[{"backdrop-blur":O()}],"backdrop-brightness":[{"backdrop-brightness":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-contrast":[{"backdrop-contrast":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-invert":[{"backdrop-invert":["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-opacity":[{"backdrop-opacity":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-saturate":[{"backdrop-saturate":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-sepia":[{"backdrop-sepia":["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",isArbitraryVariable,isArbitraryValue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[isNumber$1,"initial",isArbitraryVariable,isArbitraryValue]}],ease:[{ease:["linear","initial",_,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",b,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:$()}],"scale-x":[{"scale-x":$()}],"scale-y":[{"scale-y":$()}],"scale-z":[{"scale-z":$()}],"scale-3d":["scale-3d"],skew:[{skew:B()}],"skew-x":[{"skew-x":B()}],"skew-y":[{"skew-y":B()}],transform:[{transform:[isArbitraryVariable,isArbitraryValue,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:j()}],"translate-x":[{"translate-x":j()}],"translate-y":[{"translate-y":j()}],"translate-z":[{"translate-z":j()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryVariable,isArbitraryValue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryVariable,isArbitraryValue]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[isNumber$1,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},twMerge=createTailwindMerge(getDefaultConfig);function cn(...e){return twMerge(clsx(e))}function TooltipProvider({delayDuration:e=0,...t}){return jsxRuntimeExports.jsx(Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Tooltip({...e}){return jsxRuntimeExports.jsx(TooltipProvider,{children:jsxRuntimeExports.jsx(Root3,{"data-slot":"tooltip",...e})})}function TooltipTrigger({...e}){return jsxRuntimeExports.jsx(Trigger,{"data-slot":"tooltip-trigger",...e})}function TooltipContent({className:e,sideOffset:t=0,children:n,...r}){return jsxRuntimeExports.jsx(Portal,{children:jsxRuntimeExports.jsxs(Content2,{"data-slot":"tooltip-content",sideOffset:t,className:cn("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,jsxRuntimeExports.jsx(Arrow2,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const UnifiedStatusBadge=({localPingPath:e="/api/d5m_ai/ping_local",remotePingPath:t="/api/d5m_ai/ping",timeoutMs:n=5e3,statusOverride:r})=>{const[i,a]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("pinging"),[o,s]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("pinging"),[l,c]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),[u,d]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),m=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(async e=>{const t=new AbortController,r=setTimeout(()=>t.abort(),n);try{const n=await fetch(e,{method:"GET",signal:t.signal});if(clearTimeout(r),!n.ok)return{status:"error",message:`HTTP ${n.status}`};const i=await n.json().catch(()=>null);return"success"===(null==i?void 0:i.status)?{status:"success",message:null==i?void 0:i.message}:"error"===(null==i?void 0:i.status)?{status:"error",message:null==i?void 0:i.message}:{status:"success"}}catch(e){return clearTimeout(r),{status:"error",message:e instanceof Error?e.message:"Request failed"}}},[n]),h=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(async()=>{if(r)return a(r.local),s(r.remote),c(r.localMessage??null),void d(r.remoteMessage??null);a("pinging"),s("pinging"),c(null),d(null);try{const[n,r]=await Promise.all([m(e),m(t)]);a(n.status),s(r.status),c(n.message??null),d(r.message??null)}catch(e){a("error"),s("error"),c(null),d(null),console.error("Error pinging service:",e)}},[m,e,t,r]);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{if(r)return a(r.local),s(r.remote),c(r.localMessage??null),void d(r.remoteMessage??null);h()},[h,r]);const p=`${"error"===i&&"error"===o?"Backend and remote service are offline. Restart JupyterLab, enable RunCell, and check your internet.":"error"===i?"Backend is offline. Restart JupyterLab and enable RunCell.":"error"===o?"Remote service is offline. Check your internet and try again.":"success"===i&&"success"===o?"All services online.":"Checking system status..."}${(l||u?"error"===i&&l?` Local: ${l}.`:"error"===o&&u?` Remote: ${u}.`:null:null)??""}${"error"===i||"error"===o?" Click to retry.":""}`;return jsxRuntimeExports.jsx("div",{className:"inline-flex items-center gap-1.5 rounded-full border border-border bg-popover px-2 py-1 text-xs text-foreground",children:jsxRuntimeExports.jsxs(Tooltip,{children:[jsxRuntimeExports.jsx(TooltipTrigger,{asChild:!0,children:jsxRuntimeExports.jsxs("div",{className:"flex cursor-pointer items-center gap-1 text-muted-foreground",onClick:h,children:[jsxRuntimeExports.jsx(Server,{size:12}),jsxRuntimeExports.jsx("div",{className:"h-1.5 w-1.5 shrink-0 rounded-full",style:{backgroundColor:(()=>{switch("error"===i||"error"===o?"error":"success"===i&&"success"===o?"success":"pinging"){case"success":return"#22c55e";case"pinging":default:return"#6b7280";case"error":return"#ef4444"}})()}})]})}),jsxRuntimeExports.jsx(TooltipContent,{side:"top",sideOffset:4,className:"max-w-xs text-xs whitespace-pre-line text-left",children:p})]})})};var DirectionContext=react__WEBPACK_IMPORTED_MODULE_0__.createContext(void 0);function useDirection(e){const t=react__WEBPACK_IMPORTED_MODULE_0__.useContext(DirectionContext);return e||t||"ltr"}function clamp$1(e,[t,n]){return Math.min(n,Math.max(t,e))}function useStateMachine$1(e,t){return react__WEBPACK_IMPORTED_MODULE_0__.useReducer((e,n)=>t[e][n]??e,e)}var SCROLL_AREA_NAME="ScrollArea",[createScrollAreaContext,createScrollAreaScope]=createContextScope(SCROLL_AREA_NAME),[ScrollAreaProvider,useScrollAreaContext]=createScrollAreaContext(SCROLL_AREA_NAME),ScrollArea$1=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...o}=e,[s,l]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[c,u]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[d,m]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[h,p]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[f,g]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[_,b]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),[x,E]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),[y,T]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),[v,S]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),w=useComposedRefs(t,e=>l(e)),k=useDirection(i);return jsxRuntimeExports.jsx(ScrollAreaProvider,{scope:n,type:r,dir:k,scrollHideDelay:a,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:m,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:y,onScrollbarXEnabledChange:T,scrollbarY:f,onScrollbarYChange:g,scrollbarYEnabled:v,onScrollbarYEnabledChange:S,onCornerWidthChange:b,onCornerHeightChange:E,children:jsxRuntimeExports.jsx(Primitive.div,{dir:k,...o,ref:w,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});ScrollArea$1.displayName=SCROLL_AREA_NAME;var VIEWPORT_NAME="ScrollAreaViewport",ScrollAreaViewport=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:i,...a}=e,o=useScrollAreaContext(VIEWPORT_NAME,n),s=useComposedRefs(t,react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),o.onViewportChange);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),jsxRuntimeExports.jsx(Primitive.div,{"data-radix-scroll-area-viewport":"",...a,ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:jsxRuntimeExports.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});ScrollAreaViewport.displayName=VIEWPORT_NAME;var SCROLLBAR_NAME="ScrollAreaScrollbar",ScrollAreaScrollbar=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=useScrollAreaContext(SCROLLBAR_NAME,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s="horizontal"===e.orientation;return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),"hover"===i.type?jsxRuntimeExports.jsx(ScrollAreaScrollbarHover,{...r,ref:t,forceMount:n}):"scroll"===i.type?jsxRuntimeExports.jsx(ScrollAreaScrollbarScroll,{...r,ref:t,forceMount:n}):"auto"===i.type?jsxRuntimeExports.jsx(ScrollAreaScrollbarAuto,{...r,ref:t,forceMount:n}):"always"===i.type?jsxRuntimeExports.jsx(ScrollAreaScrollbarVisible,{...r,ref:t}):null});ScrollAreaScrollbar.displayName=SCROLLBAR_NAME;var ScrollAreaScrollbarHover=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=useScrollAreaContext(SCROLLBAR_NAME,e.__scopeScrollArea),[a,o]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{const e=i.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),jsxRuntimeExports.jsx(Presence$1,{present:n||a,children:jsxRuntimeExports.jsx(ScrollAreaScrollbarAuto,{"data-state":a?"visible":"hidden",...r,ref:t})})}),ScrollAreaScrollbarScroll=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=useScrollAreaContext(SCROLLBAR_NAME,e.__scopeScrollArea),a="horizontal"===e.orientation,o=useDebounceCallback(()=>l("SCROLL_END"),100),[s,l]=useStateMachine$1("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{if("idle"===s){const e=window.setTimeout(()=>l("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,i.scrollHideDelay,l]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{const e=i.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t];const r=()=>{const r=e[t];n!==r&&(l("SCROLL"),o()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[i.viewport,a,l,o]),jsxRuntimeExports.jsx(Presence$1,{present:n||"hidden"!==s,children:jsxRuntimeExports.jsx(ScrollAreaScrollbarVisible,{"data-state":"hidden"===s?"hidden":"visible",...r,ref:t,onPointerEnter:composeEventHandlers$2(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:composeEventHandlers$2(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),ScrollAreaScrollbarAuto=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const n=useScrollAreaContext(SCROLLBAR_NAME,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),s="horizontal"===e.orientation,l=useDebounceCallback(()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;o(s?e:t)}},10);return useResizeObserver(n.viewport,l),useResizeObserver(n.content,l),jsxRuntimeExports.jsx(Presence$1,{present:r||a,children:jsxRuntimeExports.jsx(ScrollAreaScrollbarVisible,{"data-state":a?"visible":"hidden",...i,ref:t})})}),ScrollAreaScrollbarVisible=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,i=useScrollAreaContext(SCROLLBAR_NAME,e.__scopeScrollArea),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),o=react__WEBPACK_IMPORTED_MODULE_0__.useRef(0),[s,l]=react__WEBPACK_IMPORTED_MODULE_0__.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=getThumbRatio(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return getScrollPositionFromPointer(e,o.current,s,t)}return"horizontal"===n?jsxRuntimeExports.jsx(ScrollAreaScrollbarX,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const e=getThumbOffsetFromScroll(i.viewport.scrollLeft,s,i.dir);a.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}}):"vertical"===n?jsxRuntimeExports.jsx(ScrollAreaScrollbarY,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const e=getThumbOffsetFromScroll(i.viewport.scrollTop,s);a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}),ScrollAreaScrollbarX=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=useScrollAreaContext(SCROLLBAR_NAME,e.__scopeScrollArea),[o,s]=react__WEBPACK_IMPORTED_MODULE_0__.useState(),l=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),c=useComposedRefs(t,l,a.onScrollbarXChange);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),jsxRuntimeExports.jsx(ScrollAreaScrollbarImpl,{"data-orientation":"horizontal",...i,ref:c,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":getThumbSize(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){const r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),isScrollingWithinScrollbarBounds(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:toInt(o.paddingLeft),paddingEnd:toInt(o.paddingRight)}})}})}),ScrollAreaScrollbarY=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=useScrollAreaContext(SCROLLBAR_NAME,e.__scopeScrollArea),[o,s]=react__WEBPACK_IMPORTED_MODULE_0__.useState(),l=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),c=useComposedRefs(t,l,a.onScrollbarYChange);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),jsxRuntimeExports.jsx(ScrollAreaScrollbarImpl,{"data-orientation":"vertical",...i,ref:c,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":getThumbSize(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){const r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),isScrollingWithinScrollbarBounds(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:toInt(o.paddingTop),paddingEnd:toInt(o.paddingBottom)}})}})}),[ScrollbarProvider,useScrollbarContext]=createScrollAreaContext(SCROLLBAR_NAME),ScrollAreaScrollbarImpl=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...m}=e,h=useScrollAreaContext(SCROLLBAR_NAME,n),[p,f]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),g=useComposedRefs(t,e=>f(e)),_=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),b=react__WEBPACK_IMPORTED_MODULE_0__.useRef(""),x=h.viewport,E=r.content-r.viewport,y=useCallbackRef(u),T=useCallbackRef(l),v=useDebounceCallback(d,10);function S(e){if(_.current){const t=e.clientX-_.current.left,n=e.clientY-_.current.top;c({x:t,y:n})}}return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{const e=e=>{const t=e.target;(null==p?void 0:p.contains(t))&&y(e,E)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[x,p,E,y]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect(T,[r,T]),useResizeObserver(p,v),useResizeObserver(h.content,v),jsxRuntimeExports.jsx(ScrollbarProvider,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:useCallbackRef(a),onThumbPointerUp:useCallbackRef(o),onThumbPositionChange:T,onThumbPointerDown:useCallbackRef(s),children:jsxRuntimeExports.jsx(Primitive.div,{...m,ref:g,style:{position:"absolute",...m.style},onPointerDown:composeEventHandlers$2(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),_.current=p.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),S(e))}),onPointerMove:composeEventHandlers$2(e.onPointerMove,S),onPointerUp:composeEventHandlers$2(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,h.viewport&&(h.viewport.style.scrollBehavior=""),_.current=null})})})}),THUMB_NAME$1="ScrollAreaThumb",ScrollAreaThumb=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=useScrollbarContext(THUMB_NAME$1,e.__scopeScrollArea);return jsxRuntimeExports.jsx(Presence$1,{present:n||i.hasThumb,children:jsxRuntimeExports.jsx(ScrollAreaThumbImpl,{ref:t,...r})})}),ScrollAreaThumbImpl=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,a=useScrollAreaContext(THUMB_NAME$1,n),o=useScrollbarContext(THUMB_NAME$1,n),{onThumbPositionChange:s}=o,l=useComposedRefs(t,e=>o.onThumbChange(e)),c=react__WEBPACK_IMPORTED_MODULE_0__.useRef(void 0),u=useDebounceCallback(()=>{c.current&&(c.current(),c.current=void 0)},100);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{const e=a.viewport;if(e){const t=()=>{if(u(),!c.current){const t=addUnlinkedScrollListener(e,s);c.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,u,s]),jsxRuntimeExports.jsx(Primitive.div,{"data-state":o.hasThumb?"visible":"hidden",...i,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:composeEventHandlers$2(e.onPointerDownCapture,e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:composeEventHandlers$2(e.onPointerUp,o.onThumbPointerUp)})});ScrollAreaThumb.displayName=THUMB_NAME$1;var CORNER_NAME="ScrollAreaCorner",ScrollAreaCorner=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const n=useScrollAreaContext(CORNER_NAME,e.__scopeScrollArea),r=!(!n.scrollbarX||!n.scrollbarY);return"scroll"!==n.type&&r?jsxRuntimeExports.jsx(ScrollAreaCornerImpl,{...e,ref:t}):null});ScrollAreaCorner.displayName=CORNER_NAME;var ScrollAreaCornerImpl=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,i=useScrollAreaContext(CORNER_NAME,n),[a,o]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),[s,l]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),c=!(!a||!s);return useResizeObserver(i.scrollbarX,()=>{var e;const t=(null==(e=i.scrollbarX)?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),useResizeObserver(i.scrollbarY,()=>{var e;const t=(null==(e=i.scrollbarY)?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),o(t)}),c?jsxRuntimeExports.jsx(Primitive.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function toInt(e){return e?parseInt(e,10):0}function getThumbRatio(e,t){const n=e/t;return isNaN(n)?0:n}function getThumbSize(e){const t=getThumbRatio(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function getScrollPositionFromPointer(e,t,n,r="ltr"){const i=getThumbSize(n),a=t||i/2,o=i-a,s=n.scrollbar.paddingStart+a,l=n.scrollbar.size-n.scrollbar.paddingEnd-o,c=n.content-n.viewport;return linearScale([s,l],"ltr"===r?[0,c]:[-1*c,0])(e)}function getThumbOffsetFromScroll(e,t,n="ltr"){const r=getThumbSize(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,l=clamp$1(e,"ltr"===n?[0,o]:[-1*o,0]);return linearScale([0,o],[0,s])(l)}function linearScale(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function isScrollingWithinScrollbarBounds(e,t){return e>0&&e<t}var addUnlinkedScrollListener=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){const a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function useDebounceCallback(e,t){const n=useCallbackRef(e),r=react__WEBPACK_IMPORTED_MODULE_0__.useRef(0);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>()=>window.clearTimeout(r.current),[]),react__WEBPACK_IMPORTED_MODULE_0__.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function useResizeObserver(e,t){const n=useCallbackRef(t);useLayoutEffect2(()=>{let t=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var Root$2=ScrollArea$1,Viewport=ScrollAreaViewport,Corner=ScrollAreaCorner;function ScrollArea({className:e,children:t,...n}){return jsxRuntimeExports.jsxs(Root$2,{"data-slot":"scroll-area",className:cn("relative",e),...n,children:[jsxRuntimeExports.jsx(Viewport,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] [&>div]:!block transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),jsxRuntimeExports.jsx(ScrollBar,{}),jsxRuntimeExports.jsx(Corner,{})]})}function ScrollBar({className:e,orientation:t="vertical",...n}){return jsxRuntimeExports.jsx(ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:t,className:cn("flex touch-none p-px transition-colors select-none","vertical"===t&&"h-full w-2.5 border-l border-l-transparent","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:jsxRuntimeExports.jsx(ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}const falsyToString=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,cx=clsx,cva=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return cx(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const o=falsyToString(t)||falsyToString(r);return i[e][o]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n})?[...e,n,r]:e},[]);return cx(e,o,l,null==n?void 0:n.class,null==n?void 0:n.className)},buttonVariants=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Button({className:e,variant:t,size:n,asChild:r=!1,...i}){const a=r?Slot:"button";return jsxRuntimeExports.jsx(a,{"data-slot":"button",className:cn(buttonVariants({variant:t,size:n,className:e})),...i})}const groupHistoryByDate=e=>{const t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r=new Date(n);r.setDate(r.getDate()-1);const i=new Date(n);i.setDate(i.getDate()-7);const a=new Date(n);a.setMonth(a.getMonth()-1);const o={Today:[],Yesterday:[],"This week":[],"This month":[],Older:[]};return e.forEach(e=>{const t=new Date(e.updatedAt),s=new Date(t.getFullYear(),t.getMonth(),t.getDate());s.getTime()===n.getTime()?o.Today.push(e):s.getTime()===r.getTime()?o.Yesterday.push(e):t>=i?o["This week"].push(e):t>=a?o["This month"].push(e):o.Older.push(e)}),Object.values(o).forEach(e=>{e.sort((e,t)=>new Date(t.updatedAt).getTime()-new Date(e.updatedAt).getTime())}),o},HistoryPanel=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(({isOpen:e,chatHistory:t,currentChatId:n,onLoadHistory:r,onDeleteHistory:i,setIsOpen:a,triggerRef:o,onExportHistory:s,onImportHistory:l},c)=>{const u=(e,t)=>{const n=new Date(e);return"Today"===t||"Yesterday"===t?n.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):n.toLocaleDateString([],{month:"short",day:"numeric"})},d=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>{try{return"true"===localStorage.getItem("runcell-canary")}catch(e){return console.warn("Unable to read runcell-canary flag:",e),!1}},[]),m=d&&"function"==typeof s,h=d&&"function"==typeof l,p=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>groupHistoryByDate(t),[t]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{const t=t=>{var n,r;if(!e)return;const i=t.target,s=(null==(n=t.composedPath)?void 0:n.call(t))??[],l=c&&"current"in c&&(null==(r=c.current)?void 0:r.contains(i)),u=!!o.current&&s.includes(o.current)||!!i.closest('[data-history-trigger="true"]');!l&&!u&&setTimeout(()=>{a(!1)},0)};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[e,c,o,a]),e?jsxRuntimeExports.jsxs("div",{ref:c,className:"fixed w-80 rounded-md border border-border bg-popover text-popover-foreground shadow-lg p-0 z-[1000]",style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxHeight:"80vh"},children:[jsxRuntimeExports.jsxs("div",{className:"px-4 py-2 border-b border-border flex items-center justify-between",children:[jsxRuntimeExports.jsx("h3",{className:"font-medium",children:"Chat History"}),h&&jsxRuntimeExports.jsx(Button,{variant:"ghost",size:"icon",className:"h-7 w-7",title:"Import history JSON",onMouseDown:e=>{e.stopPropagation()},onClick:e=>{e.stopPropagation(),null==l||l()},children:jsxRuntimeExports.jsx(Upload,{className:"h-4 w-4"})})]}),jsxRuntimeExports.jsxs(ScrollArea,{className:"h-80",children:[0===t.length&&jsxRuntimeExports.jsx("div",{className:"p-4 text-center text-muted-foreground",children:"No chat history found"}),t.length>0&&jsxRuntimeExports.jsx("div",{className:"py-2",children:Object.entries(p).map(([e,t])=>0===t.length?null:jsxRuntimeExports.jsxs("div",{className:"mb-4",children:[jsxRuntimeExports.jsx("div",{className:"px-4 py-2 text-xs font-medium text-muted-foreground uppercase tracking-wide",children:e}),t.map(t=>jsxRuntimeExports.jsxs("div",{className:cn("group relative w-full px-4 py-2 hover:bg-muted/60 flex flex-col cursor-pointer",n===t.id&&"bg-muted"),onMouseDown:e=>{e.stopPropagation()},onClick:e=>{e.stopPropagation(),r(t.id)},children:[jsxRuntimeExports.jsxs("div",{className:"text-left flex flex-col w-full",children:[jsxRuntimeExports.jsx("span",{className:"font-medium truncate text-sm",children:t.title}),jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground",children:u(t.updatedAt,e)})]}),jsxRuntimeExports.jsx(Button,{variant:"ghost",size:"icon",className:"absolute right-2 top-1/2 -translate-y-1/2 opacity-0 group-hover:opacity-100 h-6 w-6",onMouseDown:e=>{e.stopPropagation()},onClick:e=>{e.stopPropagation(),i(t.id)},children:jsxRuntimeExports.jsx(Trash2,{className:"h-3 w-3"})}),m&&jsxRuntimeExports.jsx(Button,{variant:"ghost",size:"icon",className:"absolute right-8 top-1/2 -translate-y-1/2 opacity-0 group-hover:opacity-100 h-6 w-6",onMouseDown:e=>{e.stopPropagation()},onClick:e=>{e.stopPropagation(),null==s||s(t.id)},title:"Export history JSON",children:jsxRuntimeExports.jsx(Download$1,{className:"h-3 w-3"})})]},t.id))]},e))})]})]}):null});function ok$1(){}function unreachable(){}function parse$2(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);const e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function stringify$2(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}HistoryPanel.displayName="HistoryPanel";const nameRe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nameReJsx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,emptyOptions$7={};function name$1(e,t){return(emptyOptions$7.jsx?nameReJsx:nameRe).test(e)}const re$2=/[ \t\n\f\r]/g;function whitespace(e){return"object"==typeof e?"text"===e.type&&empty$2(e.value):empty$2(e)}function empty$2(e){return""===e.replace(re$2,"")}let Schema$1=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function merge$1(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Schema$1(n,r,t)}function normalize$2(e){return e.toLowerCase()}Schema$1.prototype.normal={},Schema$1.prototype.property={},Schema$1.prototype.space=void 0;let Info$1=class{constructor(e,t){this.attribute=t,this.property=e}};Info$1.prototype.attribute="",Info$1.prototype.booleanish=!1,Info$1.prototype.boolean=!1,Info$1.prototype.commaOrSpaceSeparated=!1,Info$1.prototype.commaSeparated=!1,Info$1.prototype.defined=!1,Info$1.prototype.mustUseProperty=!1,Info$1.prototype.number=!1,Info$1.prototype.overloadedBoolean=!1,Info$1.prototype.property="",Info$1.prototype.spaceSeparated=!1,Info$1.prototype.space=void 0;let powers$1=0;const boolean$1=increment$1(),booleanish$1=increment$1(),overloadedBoolean$1=increment$1(),number$3=increment$1(),spaceSeparated$1=increment$1(),commaSeparated$1=increment$1(),commaOrSpaceSeparated$1=increment$1();function increment$1(){return 2**++powers$1}const types$2=Object.freeze(Object.defineProperty({__proto__:null,boolean:boolean$1,booleanish:booleanish$1,commaOrSpaceSeparated:commaOrSpaceSeparated$1,commaSeparated:commaSeparated$1,number:number$3,overloadedBoolean:overloadedBoolean$1,spaceSeparated:spaceSeparated$1},Symbol.toStringTag,{value:"Module"})),checks$1=Object.keys(types$2);let DefinedInfo$1=class extends Info$1{constructor(e,t,n,r){let i=-1;if(super(e,t),mark$1(this,"space",r),"number"==typeof n)for(;++i<checks$1.length;){const e=checks$1[i];mark$1(this,checks$1[i],(n&types$2[e])===types$2[e])}}};function mark$1(e,t,n){n&&(e[t]=n)}function create$2(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new DefinedInfo$1(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[normalize$2(r)]=r,n[normalize$2(a.attribute)]=r}return new Schema$1(t,n,e.space)}DefinedInfo$1.prototype.defined=!0;const aria$1=create$2({properties:{ariaActiveDescendant:null,ariaAtomic:booleanish$1,ariaAutoComplete:null,ariaBusy:booleanish$1,ariaChecked:booleanish$1,ariaColCount:number$3,ariaColIndex:number$3,ariaColSpan:number$3,ariaControls:spaceSeparated$1,ariaCurrent:null,ariaDescribedBy:spaceSeparated$1,ariaDetails:null,ariaDisabled:booleanish$1,ariaDropEffect:spaceSeparated$1,ariaErrorMessage:null,ariaExpanded:booleanish$1,ariaFlowTo:spaceSeparated$1,ariaGrabbed:booleanish$1,ariaHasPopup:null,ariaHidden:booleanish$1,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:spaceSeparated$1,ariaLevel:number$3,ariaLive:null,ariaModal:booleanish$1,ariaMultiLine:booleanish$1,ariaMultiSelectable:booleanish$1,ariaOrientation:null,ariaOwns:spaceSeparated$1,ariaPlaceholder:null,ariaPosInSet:number$3,ariaPressed:booleanish$1,ariaReadOnly:booleanish$1,ariaRelevant:null,ariaRequired:booleanish$1,ariaRoleDescription:spaceSeparated$1,ariaRowCount:number$3,ariaRowIndex:number$3,ariaRowSpan:number$3,ariaSelected:booleanish$1,ariaSetSize:number$3,ariaSort:null,ariaValueMax:number$3,ariaValueMin:number$3,ariaValueNow:number$3,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function caseSensitiveTransform$1(e,t){return t in e?e[t]:t}function caseInsensitiveTransform$1(e,t){return caseSensitiveTransform$1(e,t.toLowerCase())}const html$7=create$2({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:commaSeparated$1,acceptCharset:spaceSeparated$1,accessKey:spaceSeparated$1,action:null,allow:null,allowFullScreen:boolean$1,allowPaymentRequest:boolean$1,allowUserMedia:boolean$1,alt:null,as:null,async:boolean$1,autoCapitalize:null,autoComplete:spaceSeparated$1,autoFocus:boolean$1,autoPlay:boolean$1,blocking:spaceSeparated$1,capture:null,charSet:null,checked:boolean$1,cite:null,className:spaceSeparated$1,cols:number$3,colSpan:null,content:null,contentEditable:booleanish$1,controls:boolean$1,controlsList:spaceSeparated$1,coords:number$3|commaSeparated$1,crossOrigin:null,data:null,dateTime:null,decoding:null,default:boolean$1,defer:boolean$1,dir:null,dirName:null,disabled:boolean$1,download:overloadedBoolean$1,draggable:booleanish$1,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:boolean$1,formTarget:null,headers:spaceSeparated$1,height:number$3,hidden:overloadedBoolean$1,high:number$3,href:null,hrefLang:null,htmlFor:spaceSeparated$1,httpEquiv:spaceSeparated$1,id:null,imageSizes:null,imageSrcSet:null,inert:boolean$1,inputMode:null,integrity:null,is:null,isMap:boolean$1,itemId:null,itemProp:spaceSeparated$1,itemRef:spaceSeparated$1,itemScope:boolean$1,itemType:spaceSeparated$1,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:boolean$1,low:number$3,manifest:null,max:null,maxLength:number$3,media:null,method:null,min:null,minLength:number$3,multiple:boolean$1,muted:boolean$1,name:null,nonce:null,noModule:boolean$1,noValidate:boolean$1,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:boolean$1,optimum:number$3,pattern:null,ping:spaceSeparated$1,placeholder:null,playsInline:boolean$1,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:boolean$1,referrerPolicy:null,rel:spaceSeparated$1,required:boolean$1,reversed:boolean$1,rows:number$3,rowSpan:number$3,sandbox:spaceSeparated$1,scope:null,scoped:boolean$1,seamless:boolean$1,selected:boolean$1,shadowRootClonable:boolean$1,shadowRootDelegatesFocus:boolean$1,shadowRootMode:null,shape:null,size:number$3,sizes:null,slot:null,span:number$3,spellCheck:booleanish$1,src:null,srcDoc:null,srcLang:null,srcSet:null,start:number$3,step:null,style:null,tabIndex:number$3,target:null,title:null,translate:null,type:null,typeMustMatch:boolean$1,useMap:null,value:booleanish$1,width:number$3,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:spaceSeparated$1,axis:null,background:null,bgColor:null,border:number$3,borderColor:null,bottomMargin:number$3,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:boolean$1,declare:boolean$1,event:null,face:null,frame:null,frameBorder:null,hSpace:number$3,leftMargin:number$3,link:null,longDesc:null,lowSrc:null,marginHeight:number$3,marginWidth:number$3,noResize:boolean$1,noHref:boolean$1,noShade:boolean$1,noWrap:boolean$1,object:null,profile:null,prompt:null,rev:null,rightMargin:number$3,rules:null,scheme:null,scrolling:booleanish$1,standby:null,summary:null,text:null,topMargin:number$3,valueType:null,version:null,vAlign:null,vLink:null,vSpace:number$3,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:boolean$1,disableRemotePlayback:boolean$1,prefix:null,property:null,results:number$3,security:null,unselectable:null},space:"html",transform:caseInsensitiveTransform$1}),svg$3=create$2({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:commaOrSpaceSeparated$1,accentHeight:number$3,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:number$3,amplitude:number$3,arabicForm:null,ascent:number$3,attributeName:null,attributeType:null,azimuth:number$3,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:number$3,by:null,calcMode:null,capHeight:number$3,className:spaceSeparated$1,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:number$3,diffuseConstant:number$3,direction:null,display:null,dur:null,divisor:number$3,dominantBaseline:null,download:boolean$1,dx:null,dy:null,edgeMode:null,editable:null,elevation:number$3,enableBackground:null,end:null,event:null,exponent:number$3,externalResourcesRequired:null,fill:null,fillOpacity:number$3,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:commaSeparated$1,g2:commaSeparated$1,glyphName:commaSeparated$1,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:number$3,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:number$3,horizOriginX:number$3,horizOriginY:number$3,id:null,ideographic:number$3,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:number$3,k:number$3,k1:number$3,k2:number$3,k3:number$3,k4:number$3,kernelMatrix:commaOrSpaceSeparated$1,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:number$3,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:number$3,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:number$3,overlineThickness:number$3,paintOrder:null,panose1:null,path:null,pathLength:number$3,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:spaceSeparated$1,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:number$3,pointsAtY:number$3,pointsAtZ:number$3,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:commaOrSpaceSeparated$1,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:commaOrSpaceSeparated$1,rev:commaOrSpaceSeparated$1,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:commaOrSpaceSeparated$1,requiredFeatures:commaOrSpaceSeparated$1,requiredFonts:commaOrSpaceSeparated$1,requiredFormats:commaOrSpaceSeparated$1,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:number$3,specularExponent:number$3,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:number$3,strikethroughThickness:number$3,string:null,stroke:null,strokeDashArray:commaOrSpaceSeparated$1,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:number$3,strokeOpacity:number$3,strokeWidth:null,style:null,surfaceScale:number$3,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:commaOrSpaceSeparated$1,tabIndex:number$3,tableValues:null,target:null,targetX:number$3,targetY:number$3,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:commaOrSpaceSeparated$1,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:number$3,underlineThickness:number$3,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:number$3,values:null,vAlphabetic:number$3,vMathematical:number$3,vectorEffect:null,vHanging:number$3,vIdeographic:number$3,version:null,vertAdvY:number$3,vertOriginX:number$3,vertOriginY:number$3,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:number$3,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:caseSensitiveTransform$1}),xlink$1=create$2({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),xmlns$1=create$2({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:caseInsensitiveTransform$1}),xml$1=create$2({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),hastToReact={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},cap$2=/[A-Z]/g,dash$1=/-[a-z]/g,valid$1=/^data[-\w.:]+$/i;function find$2(e,t){const n=normalize$2(t);let r=t,i=Info$1;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&valid$1.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(dash$1,camelcase$1);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!dash$1.test(e)){let n=e.replace(cap$2,kebab$1);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=DefinedInfo$1}return new i(r,t)}function kebab$1(e){return"-"+e.toLowerCase()}function camelcase$1(e){return e.charAt(1).toUpperCase()}const html$6=merge$1([aria$1,html$7,xlink$1,xmlns$1,xml$1],"html"),svg$2=merge$1([aria$1,svg$3,xlink$1,xmlns$1,xml$1],"svg");function parse$1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function stringify$1(e){return e.join(" ").trim()}var cjs$1={},inlineStyleParser,hasRequiredInlineStyleParser,hasRequiredCjs$1;function requireInlineStyleParser(){if(hasRequiredInlineStyleParser)return inlineStyleParser;hasRequiredInlineStyleParser=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(s,l):l}return inlineStyleParser=function(s,u){if("string"!=typeof s)throw new TypeError("First argument must be a string");if(!s)return[];u=u||{};var d=1,m=1;function h(e){var n=e.match(t);n&&(d+=n.length);var r=e.lastIndexOf("\n");m=~r?e.length-r:m+e.length}function p(){var e={line:d,column:m};return function(t){return t.position=new f(e),b(),t}}function f(e){this.start=e,this.end={line:d,column:m},this.source=u.source}function g(e){var t=new Error(u.source+":"+d+":"+m+": "+e);if(t.reason=e,t.filename=u.source,t.line=d,t.column=m,t.source=s,!u.silent)throw t}function _(e){var t=e.exec(s);if(t){var n=t[0];return h(n),s=s.slice(n.length),t}}function b(){_(n)}function x(e){var t;for(e=e||[];t=E();)!1!==t&&e.push(t);return e}function E(){var e=p();if("/"==s.charAt(0)&&"*"==s.charAt(1)){for(var t=2;l!=s.charAt(t)&&("*"!=s.charAt(t)||"/"!=s.charAt(t+1));)++t;if(t+=2,l===s.charAt(t-1))return g("End of comment missing");var n=s.slice(2,t-2);return m+=2,h(n),s=s.slice(t),m+=2,e({type:"comment",comment:n})}}function y(){var t=p(),n=_(r);if(n){if(E(),!_(i))return g("property missing ':'");var s=_(a),u=t({type:"declaration",property:c(n[0].replace(e,l)),value:s?c(s[0].replace(e,l)):l});return _(o),u}}return f.prototype.content=s,b(),function(){var e,t=[];for(x(t);e=y();)!1!==e&&(t.push(e),x(t));return t}()}}function requireCjs$1(){if(hasRequiredCjs$1)return cjs$1;hasRequiredCjs$1=1;var e=cjs$1&&cjs$1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cjs$1,"__esModule",{value:!0}),cjs$1.default=function(e,n){var r=null;if(!e||"string"!=typeof e)return r;var i=(0,t.default)(e),a="function"==typeof n;return i.forEach(function(e){if("declaration"===e.type){var t=e.property,i=e.value;a?n(t,i,e):i&&((r=r||{})[t]=i)}}),r};var t=e(requireInlineStyleParser());return cjs$1}var utilities$1={},hasRequiredUtilities$1,cjs,hasRequiredCjs;function requireUtilities$1(){if(hasRequiredUtilities$1)return utilities$1;hasRequiredUtilities$1=1,Object.defineProperty(utilities$1,"__esModule",{value:!0}),utilities$1.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},o=function(e,t){return"".concat(t,"-")};return utilities$1.camelCase=function(s,l){return void 0===l&&(l={}),function(t){return!t||n.test(t)||e.test(t)}(s)?s:(s=s.toLowerCase(),(s=l.reactCompat?s.replace(i,o):s.replace(r,o)).replace(t,a))},utilities$1}function requireCjs(){if(hasRequiredCjs)return cjs;hasRequiredCjs=1;var e=(cjs&&cjs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(requireCjs$1()),t=requireUtilities$1();function n(n,r){var i={};return!n||"string"!=typeof n||(0,e.default)(n,function(e,n){e&&n&&(i[(0,t.camelCase)(e,r)]=n)}),i}return n.default=n,cjs=n}var cjsExports=requireCjs();const styleToJs=getDefaultExportFromCjs(cjsExports),pointEnd=point$3("end"),pointStart=point$3("start");function point$3(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function position$2(e){const t=pointStart(e),n=pointEnd(e);if(t&&n)return{start:t,end:n}}function stringifyPosition(e){return e&&"object"==typeof e?"position"in e||"type"in e?position$1(e.position):"start"in e||"end"in e?position$1(e):"line"in e||"column"in e?point$2(e):"":""}function point$2(e){return index(e&&e.line)+":"+index(e&&e.column)}function position$1(e){return point$2(e&&e.start)+"-"+point$2(e&&e.end)}function index(e){return e&&"number"==typeof e?e:1}class VFileMessage extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},a=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=o?o.line:void 0,this.name=stringifyPosition(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}VFileMessage.prototype.file="",VFileMessage.prototype.name="",VFileMessage.prototype.reason="",VFileMessage.prototype.message="",VFileMessage.prototype.stack="",VFileMessage.prototype.column=void 0,VFileMessage.prototype.line=void 0,VFileMessage.prototype.ancestors=void 0,VFileMessage.prototype.cause=void 0,VFileMessage.prototype.fatal=void 0,VFileMessage.prototype.place=void 0,VFileMessage.prototype.ruleId=void 0,VFileMessage.prototype.source=void 0;const own$9={}.hasOwnProperty,emptyMap=new Map,cap$1=/[A-Z]/g,tableElements=new Set(["table","tbody","thead","tfoot","tr"]),tableCellElement=new Set(["td","th"]),docs="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function toJsxRuntime(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=developmentCreate(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=productionCreate(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?svg$2:html$6,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},a=one$5(i,e,void 0);return a&&"string"!=typeof a?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function one$5(e,t,n){return"element"===t.type?element$7(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?mdxExpression(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?mdxJsxElement(e,t,n):"mdxjsEsm"===t.type?mdxEsm(e,t):"root"===t.type?root$6(e,t,n):"text"===t.type?text$b(e,t):void 0}function element$7(e,t,n){const r=e.schema;let i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=svg$2,e.schema=i),e.ancestors.push(t);const a=findComponentFromName(e,t.tagName,!1),o=createElementProps(e,t);let s=createChildren(e,t);return tableElements.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!whitespace(e)})),addNode(e,o,a,t),addChildren(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function mdxExpression(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}crashEstree(e,t.position)}function mdxEsm(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);crashEstree(e,t.position)}function mdxJsxElement(e,t,n){const r=e.schema;let i=r;"svg"===t.name&&"html"===r.space&&(i=svg$2,e.schema=i),e.ancestors.push(t);const a=null===t.name?e.Fragment:findComponentFromName(e,t.name,!0),o=createJsxElementProps(e,t),s=createChildren(e,t);return addNode(e,o,a,t),addChildren(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function root$6(e,t,n){const r={};return addChildren(r,createChildren(e,t)),e.create(t,e.Fragment,r,n)}function text$b(e,t){return t.value}function addNode(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function addChildren(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function productionCreate(e,t,n){return function(e,r,i,a){const o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function developmentCreate(e,t){return function(n,r,i,a){const o=Array.isArray(i.children),s=pointStart(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function createElementProps(e,t){const n={};let r,i;for(i in t.properties)if("children"!==i&&own$9.call(t.properties,i)){const a=createProperty$1(e,i,t.properties[i]);if(a){const[i,o]=a;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof o&&tableCellElement.has(t.tagName)?r=o:n[i]=o}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}function createJsxElementProps(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const i=t.expression;i.type;const a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else crashEstree(e,t.position);else{const i=r.name;let a;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else crashEstree(e,t.position);else a=null===r.value||r.value;n[i]=a}return n}function createChildren(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:emptyMap;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){const t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}const s=one$5(e,a,o);void 0!==s&&n.push(s)}return n}function createProperty$1(e,t,n){const r=find$2(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?stringify$2(n):stringify$1(n)),"style"===r.property){let t="object"==typeof n?n:parseStyle(e,String(n));return"css"===e.stylePropertyNameCase&&(t=transformStylesToCssCasing(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?hastToReact[r.property]||r.property:r.attribute,n]}}function parseStyle(e,t){try{return styleToJs(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new VFileMessage("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=docs+"#cannot-parse-style-attribute",r}}function findComponentFromName(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,i=-1;for(;++i<e.length;){const t=name$1(e[i])?{type:"Identifier",name:e[i]}:{type:"Literal",value:e[i]};n=n?{type:"MemberExpression",object:n,property:t,computed:!(!i||"Literal"!==t.type),optional:!1}:t}r=n}else r=name$1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return own$9.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);crashEstree(e)}function crashEstree(e,t){const n=new VFileMessage("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=docs+"#cannot-handle-mdx-estrees-without-createevaluater",n}function transformStylesToCssCasing(e){const t={};let n;for(n in e)own$9.call(e,n)&&(t[transformStyleToCssCasing(n)]=e[n]);return t}function transformStyleToCssCasing(e){let t=e.replace(cap$1,toDash);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function toDash(e){return"-"+e.toLowerCase()}const urlAttributes={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},emptyOptions$6={};function toString$1(e,t){const n=emptyOptions$6;return one$4(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function one$4(e,t,n){if(node(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return all$5(e.children,t,n)}return Array.isArray(e)?all$5(e,t,n):""}function all$5(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=one$4(e[i],t,n);return r.join("")}function node(e){return!(!e||"object"!=typeof e)}const element$6=document.createElement("i");function decodeNamedCharacterReference(e){const t="&"+e+";";element$6.innerHTML=t;const n=element$6.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}function splice(e,t,n,r){const i=e.length;let a,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function push(e,t){return e.length>0?(splice(e,e.length,0,t),e):t}const hasOwnProperty={}.hasOwnProperty;function combineExtensions(e){const t={};let n=-1;for(;++n<e.length;)syntaxExtension(t,e[n]);return t}function syntaxExtension(e,t){let n;for(n in t){const r=(hasOwnProperty.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let a;if(i)for(a in i){hasOwnProperty.call(r,a)||(r[a]=[]);const e=i[a];constructs(r[a],Array.isArray(e)?e:e?[e]:[])}}}function constructs(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);splice(e,0,0,r)}function decodeNumericCharacterReference(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function normalizeIdentifier(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const asciiAlpha=regexCheck(/[A-Za-z]/),asciiAlphanumeric=regexCheck(/[\dA-Za-z]/),asciiAtext=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(e){return null!==e&&(e<32||127===e)}const asciiDigit=regexCheck(/\d/),asciiHexDigit=regexCheck(/[\dA-Fa-f]/),asciiPunctuation=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(e){return null!==e&&e<-2}function markdownLineEndingOrSpace(e){return null!==e&&(e<0||32===e)}function markdownSpace(e){return-2===e||-1===e||32===e}const unicodePunctuation=regexCheck(new RegExp("\\p{P}|\\p{S}","u")),unicodeWhitespace=regexCheck(/\s/);function regexCheck(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function normalizeUri(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(37===a&&asciiAlphanumeric(e.charCodeAt(n+1))&&asciiAlphanumeric(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function factorySpace(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return markdownSpace(r)?(e.enter(n),o(r)):t(r)};function o(r){return markdownSpace(r)&&a++<i?(e.consume(r),o):(e.exit(n),t(r))}}const content$2={tokenize:initializeContent};function initializeContent(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),factorySpace(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):markdownLineEnding(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}const document$2={tokenize:initializeDocument},containerConstruct={tokenize:tokenizeContainer};function initializeDocument(e){const t=this,n=[];let r,i,a,o=0;return s;function s(r){if(o<n.length){const i=n[o];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let i,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){i=t.events[a][1].end;break}_(o);let s=n;for(;s<t.events.length;)t.events[s][1].end={...i},s++;return splice(t.events,a+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(i){if(o===n.length){if(!r)return m(i);if(r.currentConstruct&&r.currentConstruct.concrete)return p(i);t.interrupt=!(!r.currentConstruct||r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(containerConstruct,u,d)(i)}function u(e){return r&&b(),_(o),m(e)}function d(e){return t.parser.lazy[t.now().line]=o!==n.length,a=t.now().offset,p(e)}function m(n){return t.containerState={},e.attempt(containerConstruct,h,p)(n)}function h(e){return o++,n.push([t.currentConstruct,t.containerState]),m(e)}function p(n){return null===n?(r&&b(),_(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),f(n))}function f(n){return null===n?(g(e.exit("chunkFlow"),!0),_(0),void e.consume(n)):markdownLineEnding(n)?(e.consume(n),g(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(n),f)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<a&&(!r.events[e][1].end||r.events[e][1].end.offset>a))return;const n=t.events.length;let i,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(_(o),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;splice(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}function tokenizeContainer(e,t,n){return factorySpace(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function classifyCharacter(e){return null===e||markdownLineEndingOrSpace(e)||unicodeWhitespace(e)?1:unicodePunctuation(e)?2:void 0}function resolveAll(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const attention={name:"attention",resolveAll:resolveAllAttention,tokenize:tokenizeAttention};function resolveAllAttention(e,t){let n,r,i,a,o,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},m={...e[u][1].start};movePoint(d,-s),movePoint(m,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:m},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[n][1].end={...a.start},e[u][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=push(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=push(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=push(l,resolveAll(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=push(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=push(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,splice(e,n-1,u-n+3,l),u=n+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}function tokenizeAttention(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=classifyCharacter(r);let a;return function(t){return a=t,e.enter("attentionSequence"),o(t)};function o(s){if(s===a)return e.consume(s),o;const l=e.exit("attentionSequence"),c=classifyCharacter(s),u=!c||2===c&&i||n.includes(s),d=!i||2===i&&c||n.includes(r);return l._open=!!(42===a?u:u&&(i||!d)),l._close=!!(42===a?d:d&&(c||!u)),t(s)}}function movePoint(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const autolink={name:"autolink",tokenize:tokenizeAutolink};function tokenizeAutolink(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return asciiAlpha(t)?(e.consume(t),a):64===t?n(t):l(t)}function a(e){return 43===e||45===e||46===e||asciiAlphanumeric(e)?(r=1,o(e)):l(e)}function o(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||asciiAlphanumeric(t))&&r++<32?(e.consume(t),o):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||asciiControl(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):asciiAtext(t)?(e.consume(t),l):n(t)}function c(e){return asciiAlphanumeric(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||asciiAlphanumeric(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}const blankLine={partial:!0,tokenize:tokenizeBlankLine};function tokenizeBlankLine(e,t,n){return function(t){return markdownSpace(t)?factorySpace(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||markdownLineEnding(e)?t(e):n(e)}}const blockQuote={continuation:{tokenize:tokenizeBlockQuoteContinuation},exit:exit$1,name:"blockQuote",tokenize:tokenizeBlockQuoteStart};function tokenizeBlockQuoteStart(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return markdownSpace(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}function tokenizeBlockQuoteContinuation(e,t,n){const r=this;return function(t){return markdownSpace(t)?factorySpace(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(blockQuote,t,n)(r)}}function exit$1(e){e.exit("blockQuote")}const characterEscape={name:"characterEscape",tokenize:tokenizeCharacterEscape};function tokenizeCharacterEscape(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return asciiPunctuation(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}const characterReference={name:"characterReference",tokenize:tokenizeCharacterReference};function tokenizeCharacterReference(e,t,n){const r=this;let i,a,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,a=asciiAlphanumeric,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=asciiHexDigit,c):(e.enter("characterReferenceValue"),i=7,a=asciiDigit,c(t))}function c(s){if(59===s&&o){const i=e.exit("characterReferenceValue");return a!==asciiAlphanumeric||decodeNamedCharacterReference(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return a(s)&&o++<i?(e.consume(s),c):n(s)}}const nonLazyContinuation$1={partial:!0,tokenize:tokenizeNonLazyContinuation$1},codeFenced={concrete:!0,name:"codeFenced",tokenize:tokenizeCodeFenced};function tokenizeCodeFenced(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),markdownSpace(t)?factorySpace(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===a?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===a?(i++,e.consume(t),c):i>=s?(e.exit("codeFencedFenceSequence"),markdownSpace(t)?factorySpace(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||markdownLineEnding(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let a,o=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return o=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===a?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),markdownSpace(t)?factorySpace(e,c,"whitespace")(t):c(t))}function c(n){return null===n||markdownLineEnding(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(nonLazyContinuation$1,h,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||markdownLineEnding(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):markdownSpace(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),factorySpace(e,d,"whitespace")(t)):96===t&&t===a?n(t):(e.consume(t),u)}function d(t){return null===t||markdownLineEnding(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(t))}function m(t){return null===t||markdownLineEnding(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===a?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return o>0&&markdownSpace(t)?factorySpace(e,g,"linePrefix",o+1)(t):g(t)}function g(t){return null===t||markdownLineEnding(t)?e.check(nonLazyContinuation$1,h,b)(t):(e.enter("codeFlowValue"),_(t))}function _(t){return null===t||markdownLineEnding(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),_)}function b(n){return e.exit("codeFenced"),t(n)}}function tokenizeNonLazyContinuation$1(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}const codeIndented={name:"codeIndented",tokenize:tokenizeCodeIndented},furtherStart={partial:!0,tokenize:tokenizeFurtherStart};function tokenizeCodeIndented(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),factorySpace(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):n(e)}function a(t){return null===t?s(t):markdownLineEnding(t)?e.attempt(furtherStart,a,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||markdownLineEnding(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),o)}function s(n){return e.exit("codeIndented"),t(n)}}function tokenizeFurtherStart(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):markdownLineEnding(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):factorySpace(e,a,"linePrefix",5)(t)}function a(e){const a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):markdownLineEnding(e)?i(e):n(e)}}const codeText={name:"codeText",previous:previous$2,resolve:resolveCodeText,tokenize:tokenizeCodeText};function resolveCodeText(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e}function previous$2(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}function tokenizeCodeText(e,t,n){let r,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),a++,o):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):markdownLineEnding(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||markdownLineEnding(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}}class SpliceBuffer{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=t??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&chunkedPush(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),chunkedPush(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),chunkedPush(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);chunkedPush(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);chunkedPush(this.left,t.reverse())}}}function chunkedPush(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function subtokenize(e){const t={};let n,r,i,a,o,s,l,c=-1;const u=new SpliceBuffer(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,subcontent(u,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--;)if(a=u.get(i),"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type)"enter"===a[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),a[1].type="lineEnding",r=i);else if("linePrefix"!==a[1].type&&"listItemIndent"!==a[1].type)break;r&&(n[1].end={...u.get(r)[1].start},o=u.slice(r,c),o.unshift(n),u.splice(r,c-r+1,o))}}return splice(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function subcontent(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],c={};let u,d,m=-1,h=n,p=0,f=0;const g=[f];for(;h;){for(;e.get(++i)[1]!==h;);a.push(i),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++m<s.length;)"exit"===s[m][0]&&"enter"===s[m-1][0]&&s[m][1].type===s[m-1][1].type&&s[m][1].start.line!==s[m][1].end.line&&(f=m+1,g.push(f),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),m=g.length;m--;){const t=s.slice(g[m],g[m+1]),n=a.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),m=-1;++m<l.length;)c[p+l[m][0]]=p+l[m][1],p+=l[m][1]-l[m][0]-1;return c}const content$1={resolve:resolveContent,tokenize:tokenizeContent},continuationConstruct={partial:!0,tokenize:tokenizeContinuation};function resolveContent(e){return subtokenize(e),e}function tokenizeContent(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):markdownLineEnding(t)?e.check(continuationConstruct,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function tokenizeContinuation(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),factorySpace(e,i,"linePrefix")};function i(i){if(null===i||markdownLineEnding(i))return n(i);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function factoryDestination(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||asciiControl(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t))};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),m(n))}function m(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||markdownLineEnding(t)?n(t):(e.consume(t),92===t?h:m)}function h(t){return 60===t||62===t||92===t?(e.consume(t),m):m(t)}function p(i){return u||null!==i&&41!==i&&!markdownLineEndingOrSpace(i)?u<c&&40===i?(e.consume(i),u++,p):41===i?(e.consume(i),u--,p):null===i||32===i||40===i||asciiControl(i)?n(i):(e.consume(i),92===i?f:p):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(i))}function f(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function factoryLabel(e,t,n,r,i,a){const o=this;let s,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):93===d?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):markdownLineEnding(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||markdownLineEnding(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!markdownSpace(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function factoryTitle(e,t,n,r,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),s(o)):null===t?n(t):markdownLineEnding(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),factorySpace(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||markdownLineEnding(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function factoryWhitespace(e,t){let n;return function r(i){return markdownLineEnding(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):markdownSpace(i)?factorySpace(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const definition$1={name:"definition",tokenize:tokenizeDefinition},titleBefore={partial:!0,tokenize:tokenizeTitleBefore};function tokenizeDefinition(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return factoryLabel.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return i=normalizeIdentifier(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return markdownLineEndingOrSpace(t)?factoryWhitespace(e,s)(t):s(t)}function s(t){return factoryDestination(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(titleBefore,c,c)(t)}function c(t){return markdownSpace(t)?factorySpace(e,u,"whitespace")(t):u(t)}function u(a){return null===a||markdownLineEnding(a)?(e.exit("definition"),r.parser.defined.push(i),t(a)):n(a)}}function tokenizeTitleBefore(e,t,n){return function(t){return markdownLineEndingOrSpace(t)?factoryWhitespace(e,r)(t):n(t)};function r(t){return factoryTitle(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return markdownSpace(t)?factorySpace(e,a,"whitespace")(t):a(t)}function a(e){return null===e||markdownLineEnding(e)?t(e):n(e)}}const hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return markdownLineEnding(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}const headingAtx={name:"headingAtx",resolve:resolveHeadingAtx,tokenize:tokenizeHeadingAtx};function resolveHeadingAtx(e,t){let n,r,i=e.length-2,a=3;return"whitespace"===e[a][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},splice(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}function tokenizeHeadingAtx(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||markdownLineEndingOrSpace(t)?(e.exit("atxHeadingSequence"),a(t)):n(t)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),o(n)):null===n||markdownLineEnding(n)?(e.exit("atxHeading"),t(n)):markdownSpace(n)?factorySpace(e,a,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function o(t){return 35===t?(e.consume(t),o):(e.exit("atxHeadingSequence"),a(t))}function s(t){return null===t||35===t||markdownLineEndingOrSpace(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),s)}}const htmlBlockNames=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],htmlRawNames=["pre","script","style","textarea"],htmlFlow={concrete:!0,name:"htmlFlow",resolveTo:resolveToHtmlFlow,tokenize:tokenizeHtmlFlow},blankLineBefore={partial:!0,tokenize:tokenizeBlankLineBefore},nonLazyContinuationStart={partial:!0,tokenize:tokenizeNonLazyContinuationStart};function resolveToHtmlFlow(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function tokenizeHtmlFlow(e,t,n){const r=this;let i,a,o,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),a=!0,h):63===s?(e.consume(s),i=3,r.interrupt?t:P):asciiAlpha(s)?(e.consume(s),o=String.fromCharCode(s),p):n(s)}function u(a){return 45===a?(e.consume(a),i=2,d):91===a?(e.consume(a),i=5,s=0,m):asciiAlpha(a)?(e.consume(a),i=4,r.interrupt?t:P):n(a)}function d(i){return 45===i?(e.consume(i),r.interrupt?t:P):n(i)}function m(i){return i==="CDATA[".charCodeAt(s++)?(e.consume(i),6===s?r.interrupt?t:k:m):n(i)}function h(t){return asciiAlpha(t)?(e.consume(t),o=String.fromCharCode(t),p):n(t)}function p(s){if(null===s||47===s||62===s||markdownLineEndingOrSpace(s)){const l=47===s,c=o.toLowerCase();return l||a||!htmlRawNames.includes(c)?htmlBlockNames.includes(o.toLowerCase())?(i=6,l?(e.consume(s),f):r.interrupt?t(s):k(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?g(s):_(s)):(i=1,r.interrupt?t(s):k(s))}return 45===s||asciiAlphanumeric(s)?(e.consume(s),o+=String.fromCharCode(s),p):n(s)}function f(i){return 62===i?(e.consume(i),r.interrupt?t:k):n(i)}function g(t){return markdownSpace(t)?(e.consume(t),g):S(t)}function _(t){return 47===t?(e.consume(t),S):58===t||95===t||asciiAlpha(t)?(e.consume(t),b):markdownSpace(t)?(e.consume(t),_):S(t)}function b(t){return 45===t||46===t||58===t||95===t||asciiAlphanumeric(t)?(e.consume(t),b):x(t)}function x(t){return 61===t?(e.consume(t),E):markdownSpace(t)?(e.consume(t),x):_(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,y):markdownSpace(t)?(e.consume(t),E):T(t)}function y(t){return t===l?(e.consume(t),l=null,v):null===t||markdownLineEnding(t)?n(t):(e.consume(t),y)}function T(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||markdownLineEndingOrSpace(t)?x(t):(e.consume(t),T)}function v(e){return 47===e||62===e||markdownSpace(e)?_(e):n(e)}function S(t){return 62===t?(e.consume(t),w):n(t)}function w(t){return null===t||markdownLineEnding(t)?k(t):markdownSpace(t)?(e.consume(t),w):n(t)}function k(t){return 45===t&&2===i?(e.consume(t),M):60===t&&1===i?(e.consume(t),R):62===t&&4===i?(e.consume(t),O):63===t&&3===i?(e.consume(t),P):93===t&&5===i?(e.consume(t),N):!markdownLineEnding(t)||6!==i&&7!==i?null===t||markdownLineEnding(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),k):(e.exit("htmlFlowData"),e.check(blankLineBefore,L,A)(t))}function A(t){return e.check(nonLazyContinuationStart,C,L)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||markdownLineEnding(t)?A(t):(e.enter("htmlFlowData"),k(t))}function M(t){return 45===t?(e.consume(t),P):k(t)}function R(t){return 47===t?(e.consume(t),o="",D):k(t)}function D(t){if(62===t){const n=o.toLowerCase();return htmlRawNames.includes(n)?(e.consume(t),O):k(t)}return asciiAlpha(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),D):k(t)}function N(t){return 93===t?(e.consume(t),P):k(t)}function P(t){return 62===t?(e.consume(t),O):45===t&&2===i?(e.consume(t),P):k(t)}function O(t){return null===t||markdownLineEnding(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),O)}function L(n){return e.exit("htmlFlow"),t(n)}}function tokenizeNonLazyContinuationStart(e,t,n){const r=this;return function(t){return markdownLineEnding(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function tokenizeBlankLineBefore(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(blankLine,t,n)}}const htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(e,t,n){const r=this;let i,a,o;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),E):63===t?(e.consume(t),b):asciiAlpha(t)?(e.consume(t),v):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,h):asciiAlpha(t)?(e.consume(t),_):n(t)}function c(t){return 45===t?(e.consume(t),m):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):markdownLineEnding(t)?(o=u,D(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),m):u(t)}function m(e){return 62===e?R(e):45===e?d(e):u(e)}function h(t){return t==="CDATA[".charCodeAt(a++)?(e.consume(t),6===a?p:h):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),f):markdownLineEnding(t)?(o=p,D(t)):(e.consume(t),p)}function f(t){return 93===t?(e.consume(t),g):p(t)}function g(t){return 62===t?R(t):93===t?(e.consume(t),g):p(t)}function _(t){return null===t||62===t?R(t):markdownLineEnding(t)?(o=_,D(t)):(e.consume(t),_)}function b(t){return null===t?n(t):63===t?(e.consume(t),x):markdownLineEnding(t)?(o=b,D(t)):(e.consume(t),b)}function x(e){return 62===e?R(e):b(e)}function E(t){return asciiAlpha(t)?(e.consume(t),y):n(t)}function y(t){return 45===t||asciiAlphanumeric(t)?(e.consume(t),y):T(t)}function T(t){return markdownLineEnding(t)?(o=T,D(t)):markdownSpace(t)?(e.consume(t),T):R(t)}function v(t){return 45===t||asciiAlphanumeric(t)?(e.consume(t),v):47===t||62===t||markdownLineEndingOrSpace(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),R):58===t||95===t||asciiAlpha(t)?(e.consume(t),w):markdownLineEnding(t)?(o=S,D(t)):markdownSpace(t)?(e.consume(t),S):R(t)}function w(t){return 45===t||46===t||58===t||95===t||asciiAlphanumeric(t)?(e.consume(t),w):k(t)}function k(t){return 61===t?(e.consume(t),A):markdownLineEnding(t)?(o=k,D(t)):markdownSpace(t)?(e.consume(t),k):S(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,C):markdownLineEnding(t)?(o=A,D(t)):markdownSpace(t)?(e.consume(t),A):(e.consume(t),I)}function C(t){return t===i?(e.consume(t),i=void 0,M):null===t?n(t):markdownLineEnding(t)?(o=C,D(t)):(e.consume(t),C)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||markdownLineEndingOrSpace(t)?S(t):(e.consume(t),I)}function M(e){return 47===e||62===e||markdownLineEndingOrSpace(e)?S(e):n(e)}function R(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return markdownSpace(t)?factorySpace(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),o(t)}}const labelEnd={name:"labelEnd",resolveAll:resolveAllLabelEnd,resolveTo:resolveToLabelEnd,tokenize:tokenizeLabelEnd},resourceConstruct={tokenize:tokenizeResource},referenceFullConstruct={tokenize:tokenizeReferenceFull},referenceCollapsedConstruct={tokenize:tokenizeReferenceCollapsed};function resolveAllLabelEnd(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&splice(e,0,e.length,n),e}function resolveToLabelEnd(e,t){let n,r,i,a,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=push(a,e.slice(r+1,r+s+3)),a=push(a,[["enter",u,t]]),a=push(a,resolveAll(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),a=push(a,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),a=push(a,e.slice(i+1)),a=push(a,[["exit",l,t]]),splice(e,r,e.length,a),e}function tokenizeLabelEnd(e,t,n){const r=this;let i,a,o=r.events.length;for(;o--;)if(("labelImage"===r.events[o][1].type||"labelLink"===r.events[o][1].type)&&!r.events[o][1]._balanced){i=r.events[o][1];break}return function(t){return i?i._inactive?u(t):(a=r.parser.defined.includes(normalizeIdentifier(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(resourceConstruct,c,a?c:u)(t):91===t?e.attempt(referenceFullConstruct,c,a?l:u)(t):a?c(t):u(t)}function l(t){return e.attempt(referenceCollapsedConstruct,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}}function tokenizeResource(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return markdownLineEndingOrSpace(t)?factoryWhitespace(e,i)(t):i(t)}function i(t){return 41===t?c(t):factoryDestination(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return markdownLineEndingOrSpace(t)?factoryWhitespace(e,s)(t):c(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?factoryTitle(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return markdownLineEndingOrSpace(t)?factoryWhitespace(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}function tokenizeReferenceFull(e,t,n){const r=this;return function(t){return factoryLabel.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(normalizeIdentifier(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}function tokenizeReferenceCollapsed(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}const labelStartImage={name:"labelStartImage",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartImage};function tokenizeLabelStartImage(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}const labelStartLink={name:"labelStartLink",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartLink};function tokenizeLabelStartLink(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}const lineEnding={name:"lineEnding",tokenize:tokenizeLineEnding};function tokenizeLineEnding(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),factorySpace(e,t,"linePrefix")}}const thematicBreak$2={name:"thematicBreak",tokenize:tokenizeThematicBreak};function tokenizeThematicBreak(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,a(e)}(t)};function a(a){return a===r?(e.enter("thematicBreakSequence"),o(a)):i>=3&&(null===a||markdownLineEnding(a))?(e.exit("thematicBreak"),t(a)):n(a)}function o(t){return t===r?(e.consume(t),i++,o):(e.exit("thematicBreakSequence"),markdownSpace(t)?factorySpace(e,a,"whitespace")(t):a(t))}}const list$2={continuation:{tokenize:tokenizeListContinuation},exit:tokenizeListEnd,name:"list",tokenize:tokenizeListStart},listItemPrefixWhitespaceConstruct={partial:!0,tokenize:tokenizeListItemPrefixWhitespace},indentConstruct={partial:!0,tokenize:tokenizeIndent$1};function tokenizeListStart(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:asciiDigit(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(thematicBreak$2,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return asciiDigit(t)&&++o<10?(e.consume(t),s):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(blankLine,r.interrupt?n:c,e.attempt(listItemPrefixWhitespaceConstruct,d,u))}function c(e){return r.containerState.initialBlankLine=!0,a++,d(e)}function u(t){return markdownSpace(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}function tokenizeListContinuation(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(blankLine,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,factorySpace(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!markdownSpace(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(indentConstruct,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,factorySpace(e,e.attempt(list$2,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}function tokenizeIndent$1(e,t,n){const r=this;return factorySpace(e,function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}function tokenizeListEnd(e){e.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(e,t,n){const r=this;return factorySpace(e,function(e){const i=r.events[r.events.length-1];return!markdownSpace(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}const setextUnderline={name:"setextUnderline",resolveTo:resolveToSetextUnderline,tokenize:tokenizeSetextUnderline};function resolveToSetextUnderline(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),!i&&"definition"===e[a][1].type&&(i=a);const o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e}function tokenizeSetextUnderline(e,t,n){const r=this;let i;return function(t){let o,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){o="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!o?n(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t))};function a(t){return t===i?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),markdownSpace(t)?factorySpace(e,o,"lineSuffix")(t):o(t))}function o(r){return null===r||markdownLineEnding(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}const flow$1={tokenize:initializeFlow};function initializeFlow(e){const t=this,n=e.attempt(blankLine,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,factorySpace(e,e.attempt(this.parser.constructs.flow,r,e.attempt(content$1,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}const resolver={resolveAll:createResolver()},string$2=initializeFactory("string"),text$a=initializeFactory("text");function initializeFactory(e){return{resolveAll:createResolver("text"===e?resolveAllLineSuffixes:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function createResolver(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):(!t[i]||"data"!==t[i][1].type)&&(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function resolveAllLineSuffixes(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let a,o=i.length,s=-1,l=0;for(;o--;){const e=i[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)a=!0,l++;else if(-1!==e){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const i={type:n===e.length||a||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}const document$1={42:list$2,43:list$2,45:list$2,48:list$2,49:list$2,50:list$2,51:list$2,52:list$2,53:list$2,54:list$2,55:list$2,56:list$2,57:list$2,62:blockQuote},contentInitial={91:definition$1},flowInitial={[-2]:codeIndented,[-1]:codeIndented,32:codeIndented},flow={35:headingAtx,42:thematicBreak$2,45:[setextUnderline,thematicBreak$2],60:htmlFlow,61:setextUnderline,95:thematicBreak$2,96:codeFenced,126:codeFenced},string$1={38:characterReference,92:characterEscape},text$9={[-5]:lineEnding,[-4]:lineEnding,[-3]:lineEnding,33:labelStartImage,38:characterReference,42:attention,60:[autolink,htmlText],91:labelStartLink,92:[hardBreakEscape,characterEscape],93:labelEnd,95:attention,96:codeText},insideSpan={null:[attention,resolver]},attentionMarkers={null:[42,95]},disable={null:[]},defaultConstructs=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers,contentInitial,disable,document:document$1,flow,flowInitial,insideSpan,string:string$1,text:text$9},Symbol.toStringTag,{value:"Module"}));function createTokenizer(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],s=[];const l={attempt:f(function(e,t){g(e,t.from)}),check:f(p),consume:function(e){markdownLineEnding(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,_()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=m(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=m(),c.events.push(["exit",t,c]),t},interrupt:f(p,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,_()},events:[],now:m,parser:e,previous:null,sliceSerialize:function(e,t){return serializeChunks(d(e),t)},sliceStream:d,write:function(e){return o=push(o,e),function(){let e;for(;r._index<o.length;){const t=o[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}(),null!==o[o.length-1]?[]:(g(t,0),c.events=resolveAll(a,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function d(e){return sliceChunks(o,e)}function m(){const{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){u=u(e)}function p(e,t){t.restore()}function f(e,t){return function(n,i,a){let o,u,d,h;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):(p=n,function(e){const t=null!==e&&p[e],n=null!==e&&p.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});var p;function f(e){return o=e,u=0,0===e.length?a:g(e[u])}function g(e){return function(n){return h=function(){const e=m(),t=c.previous,n=c.currentConstruct,i=c.events.length,a=Array.from(s);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=a,_()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?x():e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,b,x)(n)}}function b(t){return e(d,h),i}function x(e){return h.restore(),++u<o.length?g(o[u]):a}}}function g(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&splice(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function _(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function sliceChunks(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const e=o[0];"string"==typeof e?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function serializeChunks(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if("string"==typeof a)o=a;else switch(a){case-5:o="\r";break;case-4:o="\n";break;case-3:o="\r\n";break;case-2:o=t?" ":"\t";break;case-1:if(!t&&i)continue;o=" ";break;default:o=String.fromCharCode(a)}i=-2===a,r.push(o)}return r.join("")}function parse(e){const t={constructs:combineExtensions([defaultConstructs,...(e||{}).extensions||[]]),content:n(content$2),defined:[],document:n(document$2),flow:n(flow$1),lazy:{},string:n(string$2),text:n(text$a)};return t;function n(e){return function(n){return createTokenizer(t,e,n)}}}function postprocess(e){for(;!subtokenize(e););return e}const search$1=/[\0\t\n\r]/g;function preprocess(){let e,t=1,n="",r=!0;return function(i,a,o){const s=[];let l,c,u,d,m;for(i=n+("string"==typeof i?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(search$1.lastIndex=u,l=search$1.exec(i),d=l&&void 0!==l.index?l.index:i.length,m=i.charCodeAt(d),!l){n=i.slice(u);break}if(10===m&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(i.slice(u,d)),t+=d-u),m){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return o&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}const characterEscapeOrReference=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(e){return e.replace(characterEscapeOrReference,decode)}function decode(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return decodeNumericCharacterReference(n.slice(t?2:1),t?16:10)}return decodeNamedCharacterReference(n)||e}const own$8={}.hasOwnProperty;function fromMarkdown(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),compiler(n)(postprocess(parse(n).document().write(preprocess()(e,t,!0))))}function compiler(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(b),autolinkProtocol:u,autolinkEmail:u,atxHeading:i(f),blockQuote:i(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:i(p),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(p,a),codeText:i(function(){return{type:"inlineCode",value:""}},a),codeTextData:u,data:u,codeFlowValue:u,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:i(g),hardBreakTrailing:i(g),htmlFlow:i(_,a),htmlFlowData:u,htmlText:i(_,a),htmlTextData:u,image:i(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:i(b),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(x,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:i(x),paragraph:i(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(f),strong:i(function(){return{type:"strong",children:[]}}),thematicBreak:i(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:s(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=decodeNumericCharacterReference(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=decodeNamedCharacterReference(t),this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=point$1(e.end)},codeFenced:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:s(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=normalizeIdentifier(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(m),hardBreakTrailing:s(m),htmlFlow:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=decodeString(t),n.identifier=normalizeIdentifier(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=point$1(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),d.call(this,e))},link:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=normalizeIdentifier(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};configure(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let i={type:"root",children:[]};const s={stack:[i],tokenStack:[],config:t,enter:o,exit:l,buffer:a,resume:c,data:n},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=r(e,u.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];own$8.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},s),e[d][1])}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||defaultOnError).call(s,void 0,e[0])}for(i.position={start:point$1(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:point$1(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)i=t.transforms[d](i)||i;return i};function r(e,t,n){let r,i,a,o,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(r&&!o&&!l&&!a&&(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(i=void 0;o--;){const t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,a=void 0,o=!0}}}return e[t][1]._spread=c,n}function i(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:point$1(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+stringifyPosition({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||defaultOnError).call(this,e,r[0])),n.position.end=point$1(e.end)}function c(){return toString$1(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];(!n||"text"!==n.type)&&(n={type:"text",value:""},n.position={start:point$1(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=point$1(e.end)}function m(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function _(){return{type:"html",value:""}}function b(){return{type:"link",title:null,url:"",children:[]}}function x(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}function point$1(e){return{line:e.line,column:e.column,offset:e.offset}}function configure(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?configure(e,r):extension(e,r)}}function extension(e,t){let n;for(n in t)if(own$8.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function defaultOnError(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+stringifyPosition({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+stringifyPosition({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+stringifyPosition({start:t.start,end:t.end})+") is still open")}function remarkParse(e){const t=this;t.parser=function(n){return fromMarkdown(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function blockquote$1(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function hardBreak$1(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]}function code$2(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function strikethrough(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function emphasis$1(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function footnoteReference$1(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=normalizeUri(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function heading$2(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function html$5(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function revert(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function imageReference$1(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return revert(e,t);const i={src:normalizeUri(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function image$1(e,t){const n={src:normalizeUri(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function inlineCode$1(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function linkReference$1(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return revert(e,t);const i={href:normalizeUri(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function link$1(e,t){const n={href:normalizeUri(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function listItem$1(e,t,n){const r=e.all(t),i=n?listLoose(n):listItemLoose(t),a={},o=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)}function listLoose(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=listItemLoose(n[r])}return t}function listItemLoose(e){return e.spread??e.children.length>1}function list$1(e,t){const n={},r=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function paragraph$1(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function root$5(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function strong$1(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function table(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=pointStart(t.children[1]),o=pointEnd(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function tableRow(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,o=a?a.length:t.children.length;let s=-1;const l=[];for(;++s<o;){const n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)}function tableCell(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const tab=9,space=32;function trimLines(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(trimLine(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(trimLine(t.slice(i),i>0,!1)),a.join("")}function trimLine(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===tab||t===space;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===tab||t===space;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function text$8(e,t){const n={type:"text",value:trimLines(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function thematicBreak$1(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const handlers={blockquote:blockquote$1,break:hardBreak$1,code:code$2,delete:strikethrough,emphasis:emphasis$1,footnoteReference:footnoteReference$1,heading:heading$2,html:html$5,imageReference:imageReference$1,image:image$1,inlineCode:inlineCode$1,linkReference:linkReference$1,link:link$1,listItem:listItem$1,list:list$1,paragraph:paragraph$1,root:root$5,strong:strong$1,table,tableCell,tableRow,text:text$8,thematicBreak:thematicBreak$1,toml:ignore,yaml:ignore,definition:ignore,footnoteDefinition:ignore};function ignore(){}const VOID=-1,PRIMITIVE=0,ARRAY=1,OBJECT=2,DATE=3,REGEXP=4,MAP=5,SET=6,ERROR=7,BIGINT=8,env="object"==typeof self?self:globalThis,deserializer=(e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case PRIMITIVE:case VOID:return n(o,i);case ARRAY:{const e=n([],i);for(const t of o)e.push(r(t));return e}case OBJECT:{const e=n({},i);for(const[t,n]of o)e[r(t)]=r(n);return e}case DATE:return n(new Date(o),i);case REGEXP:{const{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case MAP:{const e=n(new Map,i);for(const[t,n]of o)e.set(r(t),r(n));return e}case SET:{const e=n(new Set,i);for(const t of o)e.add(r(t));return e}case ERROR:{const{name:e,message:t}=o;return n(new env[e](t),i)}case BIGINT:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new env[a](o),i)};return r},deserialize=e=>deserializer(new Map,e)(0),EMPTY="",{toString}={},{keys}=Object,typeOf=e=>{const t=typeof e;if("object"!==t||!e)return[PRIMITIVE,t];const n=toString.call(e).slice(8,-1);switch(n){case"Array":return[ARRAY,EMPTY];case"Object":return[OBJECT,EMPTY];case"Date":return[DATE,EMPTY];case"RegExp":return[REGEXP,EMPTY];case"Map":return[MAP,EMPTY];case"Set":return[SET,EMPTY];case"DataView":return[ARRAY,n]}return n.includes("Array")?[ARRAY,n]:n.includes("Error")?[ERROR,n]:[OBJECT,n]},shouldSkip=([e,t])=>e===PRIMITIVE&&("function"===t||"symbol"===t),serializer=(e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=typeOf(r);switch(o){case PRIMITIVE:{let t=r;switch(s){case"bigint":o=BIGINT,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([VOID],r)}return i([o,t],r)}case ARRAY:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}const e=[],t=i([o,e],r);for(const t of r)e.push(a(t));return t}case OBJECT:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());const n=[],l=i([o,n],r);for(const t of keys(r))(e||!shouldSkip(typeOf(r[t])))&&n.push([a(t),a(r[t])]);return l}case DATE:return i([o,r.toISOString()],r);case REGEXP:{const{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case MAP:{const t=[],n=i([o,t],r);for(const[n,i]of r)(e||!shouldSkip(typeOf(n))&&!shouldSkip(typeOf(i)))&&t.push([a(n),a(i)]);return n}case SET:{const t=[],n=i([o,t],r);for(const n of r)(e||!shouldSkip(typeOf(n)))&&t.push(a(n));return n}}const{message:l}=r;return i([o,{name:s,message:l}],r)};return a},serialize$1=(e,{json:t,lossy:n}={})=>{const r=[];return serializer(!(t||n),!!t,new Map,r)(e),r},structuredClone$1="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?deserialize(serialize$1(e,t)):structuredClone(e):(e,t)=>deserialize(serialize$1(e,t));function defaultFootnoteBackContent(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function defaultFootnoteBackLabel(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function footer(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||defaultFootnoteBackContent,r=e.options.footnoteBackLabel||defaultFootnoteBackLabel,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;const a=e.all(i),o=String(i.identifier).toUpperCase(),c=normalizeUri(o.toLowerCase());let u=0;const d=[],m=e.footnoteCounts.get(o);for(;void 0!==m&&++u<=m;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=a[a.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else a.push(...d);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,p),s.push(p)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...structuredClone$1(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}const convert=function(e){if(null==e)return ok;if("function"==typeof e)return castFactory$1(e);if("object"==typeof e)return Array.isArray(e)?anyFactory$1(e):propsFactory(e);if("string"==typeof e)return typeFactory(e);throw new Error("Expected function, string, or object as test")};function anyFactory$1(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=convert(e[n]);return castFactory$1(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}function propsFactory(e){const t=e;return castFactory$1(function(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0})}function typeFactory(e){return castFactory$1(function(t){return t&&t.type===e})}function castFactory$1(e){return function(t,n,r){return!(!looksLikeANode(t)||!e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function ok(){return!0}function looksLikeANode(e){return null!==e&&"object"==typeof e&&"type"in e}function color$1(e){return e}const empty$1=[],CONTINUE=!0,EXIT=!1,SKIP="skip";function visitParents(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;const a=convert(i),o=r?-1:1;!function e(i,s,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,m=empty$1;if((!t||a(i,s,l[l.length-1]||void 0))&&(m=toResult(n(i,l)),m[0]===EXIT))return m;if("children"in i&&i.children){const t=i;if(t.children&&m[0]!==SKIP)for(u=(r?t.children.length:-1)+o,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===EXIT)return c;u="number"==typeof c[1]?c[1]:u+o}}return m}}(e,void 0,[])()}function toResult(e){return Array.isArray(e)?e:"number"==typeof e?[CONTINUE,e]:null==e?empty$1:[e]}function visit(e,t,n,r){let i,a,o;"function"==typeof t&&"function"!=typeof n?(a=void 0,o=t,i=n):(a=t,o=n,i=r),visitParents(e,a,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},i)}const own$7={}.hasOwnProperty,emptyOptions$5={};function createState$1(e,t){const n=t||emptyOptions$5,r=new Map,i=new Map,a=new Map,o={...handlers,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=s.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(!Array.isArray(i)&&"text"===i.type&&(i.value=trimMarkdownSpaceStart(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=trimMarkdownSpaceStart(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:function(e,t){const n=e.type,r=s.handlers[n];if(own$7.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=structuredClone$1(n);return r.children=s.all(e),r}return structuredClone$1(e)}return(s.options.unknownHandler||defaultUnknownHandler)(s,e,t)},options:n,patch:patch$2,wrap:wrap$1};return visit(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}function patch$2(e,t){e.position&&(t.position=position$2(e))}function applyData(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,structuredClone$1(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function defaultUnknownHandler(e,t){const n=t.data||{},r=!("value"in t)||own$7.call(n,"hProperties")||own$7.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function wrap$1(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function trimMarkdownSpaceStart(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function toHast(e,t){const n=createState$1(e,t),r=n.one(e,void 0),i=footer(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:"\n"},i),a}function remarkRehype(e,t){return e&&"run"in e?async function(n,r){const i=toHast(n,{file:r,...t});await e.run(i,r)}:function(n,r){return toHast(n,{file:r,...e||t})}}function bail(e){if(e)throw e}var extend$1,hasRequiredExtend;function requireExtend(){if(hasRequiredExtend)return extend$1;hasRequiredExtend=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},a=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),a=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!a)return!1;for(r in n);return typeof r>"u"||e.call(n,r)},o=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return extend$1=function e(){var t,n,r,l,c,u,d=arguments[0],m=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},m=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});m<h;++m)if(null!=(t=arguments[m]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(p&&l&&(a(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},o(d,{name:n,newValue:e(p,u,l)})):typeof l<"u"&&o(d,{name:n,newValue:l}));return d},extend$1}var extendExports=requireExtend();const extend=getDefaultExportFromCjs(extendExports);function isPlainObject(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function trough(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(a,...o){const s=e[++n];let l=-1;if(a)r(a);else{for(;++l<t.length;)(null===o[l]||void 0===o[l])&&(o[l]=t[l]);t=o,s?wrap(s,i)(...o):r(null,...o)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}function wrap(e,t){let n;return function(...t){const a=e.length>t.length;let o;a&&t.push(r);try{o=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...r){n||(n=!0,t(e,...r))}function i(e){r(null,e)}}const minpath={basename:basename$1,dirname,extname,join:join$1,sep:"/"};function basename$1(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');assertPath$1(e);let n,r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)}function dirname(e){if(assertPath$1(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)}function extname(e){assertPath$1(e);let t,n=e.length,r=-1,i=0,a=-1,o=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==o&&(o=1):a>-1&&(o=-1);else if(t){i=n+1;break}}return a<0||r<0||0===o||1===o&&a===r-1&&a===i+1?"":e.slice(a,r)}function join$1(...e){let t,n=-1;for(;++n<e.length;)assertPath$1(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":normalize$1(t)}function normalize$1(e){assertPath$1(e);const t=47===e.codePointAt(0);let n=normalizeString(e,!t);return 0===n.length&&!t&&(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}function normalizeString(e,t){let n,r,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(o!==l-1&&1!==s)if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",a=0):(i=i.slice(0,r),a=i.length-1-i.lastIndexOf("/")),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}function assertPath$1(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const minproc={cwd};function cwd(){return"/"}function isUrl(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function urlToPath(e){if("string"==typeof e)e=new URL(e);else if(!isUrl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return getPathFromURLPosix(e)}function getPathFromURLPosix(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}const order=["history","path","basename","stem","extname","dirname"];class VFile{constructor(e){let t;t=e?isUrl(e)?{path:e}:"string"==typeof e||isUint8Array$1(e)?{value:e}:e:{},this.cwd="cwd"in t?"":minproc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<order.length;){const e=order[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)order.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?minpath.basename(this.path):void 0}set basename(e){assertNonEmpty(e,"basename"),assertPart(e,"basename"),this.path=minpath.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?minpath.dirname(this.path):void 0}set dirname(e){assertPath(this.basename,"dirname"),this.path=minpath.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?minpath.extname(this.path):void 0}set extname(e){if(assertPart(e,"extname"),assertPath(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=minpath.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){isUrl(e)&&(e=urlToPath(e)),assertNonEmpty(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?minpath.basename(this.path,this.extname):void 0}set stem(e){assertNonEmpty(e,"stem"),assertPart(e,"stem"),this.path=minpath.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new VFileMessage(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function assertPart(e,t){if(e&&e.includes(minpath.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+minpath.sep+"`")}function assertNonEmpty(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function assertPath(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function isUint8Array$1(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}const CallableInstance=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},own$6={}.hasOwnProperty;class Processor extends CallableInstance{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=trough()}copy(){const e=new Processor;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(extend(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(assertUnfrozen("data",this.frozen),this.namespace[e]=t,this):own$6.call(this.namespace,e)&&this.namespace[e]||void 0:e?(assertUnfrozen("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=vfile(e),n=this.parser||this.Parser;return assertParser("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),assertParser("process",this.parser||this.Parser),assertCompiler("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const a=vfile(e),o=n.parse(a);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);const i=t,a=n.stringify(i,r);looksLikeAValue(a)?r.value=a:r.result=a,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),assertParser("processSync",this.parser||this.Parser),assertCompiler("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,bail(e),t=r}),assertDone("processSync","process",n),t}run(e,t,n){assertNode(e),this.freeze();const r=this.transformers;return!n&&"function"==typeof t&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){const o=vfile(t);r.run(e,o,function(t,r,o){const s=r||e;t?a(t):i?i(s):n(void 0,s,o)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){bail(e),n=t,r=!0}),assertDone("runSync","run",r),n}stringify(e,t){this.freeze();const n=vfile(t),r=this.compiler||this.Compiler;return assertCompiler("stringify",r),assertNode(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(assertUnfrozen("use",this.frozen),null!=e)if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?o(e):a(e)}return this;function i(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else a(e)}}function a(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=extend(!0,r.settings,e.settings))}function o(e){let t=-1;if(null!=e){if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)i(e[t])}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...a]=t;const o=n[i][1];isPlainObject(o)&&isPlainObject(r)&&(r=extend(!0,o,r)),n[i]=[e,r,...a]}}}}const unified=(new Processor).freeze();function assertParser(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function assertCompiler(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function assertUnfrozen(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(e){if(!isPlainObject(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function assertDone(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function vfile(e){return looksLikeAVFile(e)?e:new VFile(e)}function looksLikeAVFile(e){return!!(e&&"object"==typeof e&&"message"in e&&"messages"in e)}function looksLikeAValue(e){return"string"==typeof e||isUint8Array(e)}function isUint8Array(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}const changelog="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",emptyPlugins=[],emptyRemarkRehypeOptions={allowDangerousHtml:!0},safeProtocol=/^(https?|ircs?|mailto|xmpp)$/i,deprecations=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Markdown(e){const t=createProcessor(e),n=createFile(e);return post(t.runSync(t.parse(n),n),e)}function createProcessor(e){const t=e.rehypePlugins||emptyPlugins,n=e.remarkPlugins||emptyPlugins,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...emptyRemarkRehypeOptions}:emptyRemarkRehypeOptions;return unified().use(remarkParse).use(n).use(remarkRehype,r).use(t)}function createFile(e){const t=e.children||"",n=new VFile;return"string"==typeof t&&(n.value=t),n}function post(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||defaultUrlTransform;for(const e of deprecations)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return visit(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return o?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in urlAttributes)if(Object.hasOwn(urlAttributes,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=urlAttributes[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&r&&"number"==typeof t&&(o=!r(e,t,i)),o&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),toJsxRuntime(e,{Fragment:jsxRuntimeExports.Fragment,components:i,ignoreInvalidStyle:!0,jsx:jsxRuntimeExports.jsx,jsxs:jsxRuntimeExports.jsxs,passKeys:!0,passNode:!0})}function defaultUrlTransform(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||safeProtocol.test(e.slice(0,t))?e:""}const parseMixedOutput=e=>{if("string"!=typeof e)return e&&"object"==typeof e&&e.image_url?{textContent:"",imageUrl:e.image_url}:{textContent:JSON.stringify(e,null,2),imageUrl:null};const t=e.split("\n");let n=-1,r=-1,i=0,a=!1;for(let o=0;o<t.length;o++){const s=t[o].trim();if(s.startsWith("{")&&e.includes('"image_url"')&&(n=o,a=!0,i=0),a){for(const e of s)"{"===e&&i++,"}"===e&&i--;if(0===i){r=o;break}}}if(-1!==n&&-1!==r){const e=t.slice(n,r+1).join("\n");try{const i=JSON.parse(e);if(i.image_url)return{textContent:[...t.slice(0,n),...t.slice(r+1)].join("\n").trim(),imageUrl:i.image_url}}catch{console.warn("Failed to parse JSON from mixed output, falling back to regex")}}const o=e.match(/\{[^{}]*"image_url"[^{}]*\}/g);if(o&&o.length>0)for(const t of o)try{const n=JSON.parse(t);if(n.image_url)return{textContent:e.replace(t,"").trim(),imageUrl:n.image_url}}catch{continue}return{textContent:e,imageUrl:null}},getToolLabels=(e,t)=>{switch(e){case"interpret_image":return{loading:"Interpreting image...",completed:"Interpreted image",outputLabel:"INTERPRETATION"};case"cell_execute":return{loading:"Executing...",completed:"Code executed",outputLabel:"OUTPUT"};case"shell_execute":return{loading:"Executing command...",completed:"Command executed",outputLabel:"OUTPUT"};case"run_cell":return{loading:"Run cell...",completed:"Cell finished",outputLabel:"OUTPUT"};case"edit_cell":return{loading:"Editing cell...",completed:"Edited cell",outputLabel:"RESULT"};case"insert_markdown_cell":return{loading:"Writing doc...",completed:"Doc(markdown) added",outputLabel:"Info"};case"insert_cell":return{loading:"Inserting cell...",completed:"Cell inserted",outputLabel:"RESULT"};case"rerun_all_cells":return{loading:"Rerunning all cells...",completed:"Reran all cells",outputLabel:"RESULT"};case"web_search":return{loading:"Searching web...",completed:"Web search completed",outputLabel:"SEARCH RESULTS"};case"list_dir":return{loading:"List dir...",completed:"Listed",outputLabel:"Items"};case"glob":return{loading:"Finding files...",completed:"Found files",outputLabel:"FILES"};case"read_file":return{loading:"Reading...",completed:"Read",outputLabel:"Read"};case"write_file":return{loading:"Writing file...",completed:"File written",outputLabel:"RESULT"};case"edit":return{loading:"Applying edit...",completed:"Edit applied",outputLabel:"RESULT"};case"apply_patch":return{loading:"Applying patch...",completed:"Patch applied",outputLabel:"RESULT"};case"open_tab":return{loading:"Open File in Tab...",completed:"Open Tab",outputLabel:"Open Tab"};case"create_notebook":return{loading:"Creating Notebook...",completed:"Create Notebook",outputLabel:"Create Notebook"};case"run_long_terminal":return{loading:"Opening Terminal",completed:"Run in Terminal",outputLabel:"Run in Terminal"};default:return{loading:"Processing...",completed:e,outputLabel:"OUTPUT"}}},badgeVariants=cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Badge({className:e,variant:t,asChild:n=!1,...r}){const i=n?Slot:"span";return jsxRuntimeExports.jsx(i,{"data-slot":"badge",className:cn(badgeVariants({variant:t}),e),...r})}function ccount(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}function escapeStringRegexp(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function findAndReplace(e,t,n){const r=convert((n||{}).ignore||[]),i=toPairs(t);let a=-1;for(;++a<i.length;)visitParents(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){const e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=i[a][0],o=i[a][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,i={index:d.index,input:d.input,stack:[...t,e]};let a=o(...d,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}function toPairs(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([toExpression(e[0]),toFunction(e[1])])}return t}function toExpression(e){return"string"==typeof e?new RegExp(escapeStringRegexp(e),"g"):e}function toFunction(e){return"function"==typeof e?e:function(){return e}}const inConstruct="phrasing",notInConstruct=["autolink","link","image","label"];function gfmAutolinkLiteralFromMarkdown(){return{transforms:[transformGfmAutolinkLiterals],enter:{literalAutolink:enterLiteralAutolink,literalAutolinkEmail:enterLiteralAutolinkValue,literalAutolinkHttp:enterLiteralAutolinkValue,literalAutolinkWww:enterLiteralAutolinkValue},exit:{literalAutolink:exitLiteralAutolink,literalAutolinkEmail:exitLiteralAutolinkEmail,literalAutolinkHttp:exitLiteralAutolinkHttp,literalAutolinkWww:exitLiteralAutolinkWww}}}function gfmAutolinkLiteralToMarkdown(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:":",before:"[ps]",after:"\\/",inConstruct,notInConstruct}]}}function enterLiteralAutolink(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function enterLiteralAutolinkValue(e){this.config.enter.autolinkProtocol.call(this,e)}function exitLiteralAutolinkHttp(e){this.config.exit.autolinkProtocol.call(this,e)}function exitLiteralAutolinkWww(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function exitLiteralAutolinkEmail(e){this.config.exit.autolinkEmail.call(this,e)}function exitLiteralAutolink(e){this.exit(e)}function transformGfmAutolinkLiterals(e){findAndReplace(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,findUrl],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),findEmail]],{ignore:["link","linkReference"]})}function findUrl(e,t,n,r,i){let a="";if(!previous$1(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!isCorrectDomain(n)))return!1;const o=splitUrl(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function findEmail(e,t,n,r){return!(!previous$1(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function isCorrectDomain(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function splitUrl(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=ccount(e,"(");let a=ccount(e,")");for(;-1!==r&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function previous$1(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||unicodeWhitespace(n)||unicodePunctuation(n))&&(!t||47!==n)}function enterFootnoteCallString(){this.buffer()}function enterFootnoteCall(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function enterFootnoteDefinitionLabelString(){this.buffer()}function enterFootnoteDefinition(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function exitFootnoteCallString(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=normalizeIdentifier(this.sliceSerialize(e)).toLowerCase(),n.label=t}function exitFootnoteCall(e){this.exit(e)}function exitFootnoteDefinitionLabelString(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=normalizeIdentifier(this.sliceSerialize(e)).toLowerCase(),n.label=t}function exitFootnoteDefinition(e){this.exit(e)}function footnoteReferencePeek(){return"["}function footnoteReference(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function gfmFootnoteFromMarkdown(){return{enter:{gfmFootnoteCallString:enterFootnoteCallString,gfmFootnoteCall:enterFootnoteCall,gfmFootnoteDefinitionLabelString:enterFootnoteDefinitionLabelString,gfmFootnoteDefinition:enterFootnoteDefinition},exit:{gfmFootnoteCallString:exitFootnoteCallString,gfmFootnoteCall:exitFootnoteCall,gfmFootnoteDefinitionLabelString:exitFootnoteDefinitionLabelString,gfmFootnoteDefinition:exitFootnoteDefinition}}}function gfmFootnoteToMarkdown(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){const a=r.createTracker(i);let o=a.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");return o+=a.move(r.safe(r.associationId(e),{before:o,after:"]"})),l(),o+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,a.current()),t?mapAll:mapExceptFirst))),s(),o},footnoteReference},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function mapExceptFirst(e,t,n){return 0===t?e:mapAll(e,t,n)}function mapAll(e,t,n){return(n?"":" ")+e}footnoteReference.peek=footnoteReferencePeek;const constructsWithoutStrikethrough=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function gfmStrikethroughFromMarkdown(){return{canContainEols:["delete"],enter:{strikethrough:enterStrikethrough},exit:{strikethrough:exitStrikethrough}}}function gfmStrikethroughToMarkdown(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:constructsWithoutStrikethrough}],handlers:{delete:handleDelete}}}function enterStrikethrough(e){this.enter({type:"delete",children:[]},e)}function exitStrikethrough(e){this.exit(e)}function handleDelete(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function peekDelete(){return"~"}function defaultStringLength(e){return e.length}function markdownTable(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||defaultStringLength,a=[],o=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let a=-1;for(e[u].length>c&&(c=e[u].length);++a<e[u].length;){const o=serialize(e[u][a]);if(!1!==n.alignDelimiters){const e=i(o);r[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<c;)a[d]=toAlignment(r[d]);else{const e=toAlignment(r);for(;++d<c;)a[d]=e}d=-1;const m=[],h=[];for(;++d<c;){const e=a[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length);const o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&(i=t.length+i+r.length,i>l[d]&&(l[d]=i),h[d]=i),m[d]=o}o.splice(1,0,m),s.splice(1,0,h),u=-1;const p=[];for(;++u<o.length;){const e=o[u],t=s[u];d=-1;const r=[];for(;++d<c;){const i=e[d]||"";let o="",s="";if(!1!==n.alignDelimiters){const e=l[d]-(t[d]||0),n=a[d];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(o=" ".repeat(e/2),s=o):s=" ".repeat(e)}!1!==n.delimiterStart&&!d&&r.push("|"),!1!==n.padding&&!(!1===n.alignDelimiters&&""===i)&&(!1!==n.delimiterStart||d)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||d!==c-1)&&r.push("|")}p.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return p.join("\n")}function serialize(e){return null==e?"":String(e)}function toAlignment(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}handleDelete.peek=peekDelete;const own$5={}.hasOwnProperty;function zwitch(e,t){const n=t||{};function r(t,...n){let i=r.invalid;const a=r.handlers;if(t&&own$5.call(t,e)){const n=String(t[e]);i=own$5.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function blockquote(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),map$2);return i(),o}function map$2(e,t,n){return">"+(n?"":" ")+e}function patternInScope(e,t){return listInScope(e,t.inConstruct,!0)&&!listInScope(e,t.notInConstruct,!1)}function listInScope(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function hardBreak(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&patternInScope(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function longestStreak(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,o=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function formatCodeAsIndented(e,t){return!(!1!==t.options.fences||!e.value||e.lang||!/[^ \r\n]/.test(e.value)||/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function checkFence(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function code$1(e,t,n,r){const i=checkFence(n),a=e.value||"",o="`"===i?"GraveAccent":"Tilde";if(formatCodeAsIndented(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(a,map$1);return e(),t}const s=n.createTracker(r),l=i.repeat(Math.max(longestStreak(a,i)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${o}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),a&&(u+=s.move(a+"\n")),u+=s.move(l),c(),u}function map$1(e,t,n){return(n?"":" ")+e}function checkQuote(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function definition(e,t,n,r){const i=checkQuote(n),a='"'===i?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),o(),c}function checkEmphasis(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function encodeCharacterReference(e){return"&#x"+e.toString(16).toUpperCase()+";"}function encodeInfo(e,t,n){const r=classifyCharacter(e),i=classifyCharacter(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function emphasis(e,t,n,r){const i=checkEmphasis(n),a=n.enter("emphasis"),o=n.createTracker(r),s=o.move(i);let l=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),u=encodeInfo(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=encodeCharacterReference(c)+l.slice(1));const d=l.charCodeAt(l.length-1),m=encodeInfo(r.after.charCodeAt(0),d,i);m.inside&&(l=l.slice(0,-1)+encodeCharacterReference(d));const h=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:m.outside,before:u.outside},s+l+h}function emphasisPeek(e,t,n){return n.options.emphasis||"*"}function formatHeadingAsSetext(e,t){let n=!1;return visit(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,EXIT}),!(e.depth&&!(e.depth<3)||!toString$1(e)||!t.options.setext&&!n)}function heading$1(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(formatHeadingAsSetext(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),o=n.containerPhrasing(e,{...a.current(),before:"\n",after:"\n"});return r(),t(),o+"\n"+(1===i?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const o="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");a.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...a.current()});return/^[\t ]/.test(c)&&(c=encodeCharacterReference(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),s(),c}function html$4(e){return e.value||""}function htmlPeek(){return"<"}function image(e,t,n,r){const i=checkQuote(n),a='"'===i?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),o(),c}function imagePeek(){return"!"}function imageReference(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,a(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function imageReferencePeek(){return"!"}function inlineCode(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const e=n.unsafe[a],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function inlineCodePeek(){return"`"}function formatLinkAsAutolink(e,t){const n=toString$1(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||1!==e.children.length||"text"!==e.children[0].type||n!==e.url&&"mailto:"+n!==e.url||!/^[a-z][a-z+.-]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}function link(e,t,n,r){const i=checkQuote(n),a='"'===i?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(formatLinkAsAutolink(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=o.move("<");return r+=o.move(n.containerPhrasing(e,{before:r,after:">",...o.current()})),r+=o.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),l()),c+=o.move(")"),s(),c}function linkPeek(e,t,n){return formatLinkAsAutolink(e,n)?"<":"["}function linkReference(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,a(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function linkReferencePeek(){return"["}function checkBullet(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function checkBulletOther(e){const t=checkBullet(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function checkBulletOrdered(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function checkRule(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function list(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?checkBulletOrdered(n):checkBullet(n);const s=e.ordered?"."===o?")":".":checkBulletOther(n);let l=!(!t||!n.bulletLastUsed)&&o===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if(("*"===o||"-"===o)&&t&&(!t.children||!t.children[0])&&"list"===n.stack[n.stack.length-1]&&"listItem"===n.stack[n.stack.length-2]&&"list"===n.stack[n.stack.length-3]&&"listItem"===n.stack[n.stack.length-4]&&0===n.indexStack[n.indexStack.length-1]&&0===n.indexStack[n.indexStack.length-2]&&0===n.indexStack[n.indexStack.length-3]&&(l=!0),checkRule(n)===o&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(o=s),n.bulletCurrent=o;const c=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),c}function checkListItemIndent(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function listItem(e,t,n,r){const i=checkListItemIndent(n);let a=n.bulletCurrent||checkBullet(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let o=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?a:a+" ".repeat(o-a.length))+e});return l(),c}function paragraph(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}emphasis.peek=emphasisPeek,html$4.peek=htmlPeek,image.peek=imagePeek,imageReference.peek=imageReferencePeek,inlineCode.peek=inlineCodePeek,link.peek=linkPeek,linkReference.peek=linkReferencePeek;const phrasing=convert(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function root$4(e,t,n,r){return(e.children.some(function(e){return phrasing(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function checkStrong(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}function strong(e,t,n,r){const i=checkStrong(n),a=n.enter("strong"),o=n.createTracker(r),s=o.move(i+i);let l=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),u=encodeInfo(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=encodeCharacterReference(c)+l.slice(1));const d=l.charCodeAt(l.length-1),m=encodeInfo(r.after.charCodeAt(0),d,i);m.inside&&(l=l.slice(0,-1)+encodeCharacterReference(d));const h=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:m.outside,before:u.outside},s+l+h}function strongPeek(e,t,n){return n.options.strong||"*"}function text$7(e,t,n,r){return n.safe(e.value,r)}function checkRuleRepetition(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function thematicBreak(e,t,n){const r=(checkRule(n)+(n.options.ruleSpaces?" ":"")).repeat(checkRuleRepetition(n));return n.options.ruleSpaces?r.slice(0,-1):r}strong.peek=strongPeek;const handle$1={blockquote,break:hardBreak,code:code$1,definition,emphasis,hardBreak,heading:heading$1,html:html$4,image,imageReference,inlineCode,link,linkReference,list,listItem,paragraph,root:root$4,strong,text:text$7,thematicBreak};function gfmTableFromMarkdown(){return{enter:{table:enterTable,tableData:enterCell,tableHeader:enterCell,tableRow:enterRow},exit:{codeText:exitCodeText,table:exitTable,tableData:exit,tableHeader:exit,tableRow:exit}}}function enterTable(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function exitTable(e){this.exit(e),this.data.inTable=void 0}function enterRow(e){this.enter({type:"tableRow",children:[]},e)}function exit(e){this.exit(e)}function enterCell(e){this.enter({type:"tableCell",children:[]},e)}function exitCodeText(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,replace));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function replace(e,t){return"|"===t?t:e}function gfmTableToMarkdown(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=handle$1.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let i=-1;const a=[],o=t.enter("table");for(;++i<r.length;)a[i]=l(r[i],t,n);return o(),a}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){const i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){const i=n.enter("tableCell"),o=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function s(e,t){return markdownTable(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){const r=e.children;let i=-1;const a=[],s=t.enter("tableRow");for(;++i<r.length;)a[i]=o(r[i],0,t,n);return s(),a}}function gfmTaskListItemFromMarkdown(){return{exit:{taskListCheckValueChecked:exitCheck,taskListCheckValueUnchecked:exitCheck,paragraph:exitParagraphWithTaskListItem}}}function gfmTaskListItemToMarkdown(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:listItemWithTaskListItem}}}function exitCheck(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function exitParagraphWithTaskListItem(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,a=-1;for(;++a<r.length;){const e=r[a];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function listItemWithTaskListItem(e,t,n,r){const i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let l=handle$1.listItem(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}function gfmFromMarkdown(){return[gfmAutolinkLiteralFromMarkdown(),gfmFootnoteFromMarkdown(),gfmStrikethroughFromMarkdown(),gfmTableFromMarkdown(),gfmTaskListItemFromMarkdown()]}function gfmToMarkdown(e){return{extensions:[gfmAutolinkLiteralToMarkdown(),gfmFootnoteToMarkdown(e),gfmStrikethroughToMarkdown(),gfmTableToMarkdown(e),gfmTaskListItemToMarkdown()]}}const wwwPrefix={tokenize:tokenizeWwwPrefix,partial:!0},domain={tokenize:tokenizeDomain,partial:!0},path$2={tokenize:tokenizePath,partial:!0},trail={tokenize:tokenizeTrail,partial:!0},emailDomainDotTrail={tokenize:tokenizeEmailDomainDotTrail,partial:!0},wwwAutolink={name:"wwwAutolink",tokenize:tokenizeWwwAutolink,previous:previousWww},protocolAutolink={name:"protocolAutolink",tokenize:tokenizeProtocolAutolink,previous:previousProtocol},emailAutolink={name:"emailAutolink",tokenize:tokenizeEmailAutolink,previous:previousEmail},text$6={};function gfmAutolinkLiteral(){return{text:text$6}}let code=48;for(;code<123;)text$6[code]=emailAutolink,code++,58===code?code=65:91===code&&(code=97);function tokenizeEmailAutolink(e,t,n){const r=this;let i,a;return function(t){return gfmAtext(t)&&previousEmail.call(r,r.previous)&&!previousUnbalanced(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(t)):n(t)};function o(t){return gfmAtext(t)?(e.consume(t),o):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(emailDomainDotTrail,c,l)(t):45===t||95===t||asciiAlphanumeric(t)?(a=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),i=!0,s}function c(o){return a&&i&&asciiAlpha(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}}function tokenizeWwwAutolink(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!previousWww.call(r,r.previous)||previousUnbalanced(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(wwwPrefix,e.attempt(domain,e.attempt(path$2,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}}function tokenizeProtocolAutolink(e,t,n){const r=this;let i="",a=!1;return function(t){return 72!==t&&104!==t||!previousProtocol.call(r,r.previous)||previousUnbalanced(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o)};function o(t){if(asciiAlpha(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),a?l:(a=!0,s)):n(t)}function l(t){return null===t||asciiControl(t)||markdownLineEndingOrSpace(t)||unicodeWhitespace(t)||unicodePunctuation(t)?n(t):e.attempt(domain,e.attempt(path$2,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}}function tokenizeWwwPrefix(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}}function tokenizeDomain(e,t,n){let r,i,a;return o;function o(t){return 46===t||95===t?e.check(trail,l,s)(t):null===t||markdownLineEndingOrSpace(t)||unicodeWhitespace(t)||45!==t&&unicodePunctuation(t)?l(t):(a=!0,e.consume(t),o)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function l(e){return i||r||!a?n(e):t(e)}}function tokenizePath(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?a(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(trail,t,a)(o):null===o||markdownLineEndingOrSpace(o)||unicodeWhitespace(o)?t(o):(e.consume(o),i)}function a(t){return 41===t&&r++,e.consume(t),i}}function tokenizeTrail(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),a):93===o?(e.consume(o),i):60===o||null===o||markdownLineEndingOrSpace(o)||unicodeWhitespace(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||markdownLineEndingOrSpace(e)||unicodeWhitespace(e)?t(e):r(e)}function a(e){return asciiAlpha(e)?o(e):n(e)}function o(t){return 59===t?(e.consume(t),r):asciiAlpha(t)?(e.consume(t),o):n(t)}}function tokenizeEmailDomainDotTrail(e,t,n){return function(t){return e.consume(t),r};function r(e){return asciiAlphanumeric(e)?n(e):t(e)}}function previousWww(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||markdownLineEndingOrSpace(e)}function previousProtocol(e){return!asciiAlpha(e)}function previousEmail(e){return!(47===e||gfmAtext(e))}function gfmAtext(e){return 43===e||45===e||46===e||95===e||asciiAlphanumeric(e)}function previousUnbalanced(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}text$6[43]=emailAutolink,text$6[45]=emailAutolink,text$6[46]=emailAutolink,text$6[95]=emailAutolink,text$6[72]=[emailAutolink,protocolAutolink],text$6[104]=[emailAutolink,protocolAutolink],text$6[87]=[emailAutolink,wwwAutolink],text$6[119]=[emailAutolink,wwwAutolink];const indent={tokenize:tokenizeIndent,partial:!0};function gfmFootnote(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:tokenizeDefinitionStart,continuation:{tokenize:tokenizeDefinitionContinuation},exit:gfmFootnoteDefinitionEnd}},text:{91:{name:"gfmFootnoteCall",tokenize:tokenizeGfmFootnoteCall},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:tokenizePotentialGfmFootnoteCall,resolveTo:resolveToPotentialGfmFootnoteCall}}}}function tokenizePotentialGfmFootnoteCall(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){o=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!o||!o._balanced)return n(i);const s=normalizeIdentifier(r.sliceSerialize({start:o.end,end:r.now()}));return 94===s.codePointAt(0)&&a.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):n(i)}}function resolveToPotentialGfmFootnoteCall(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function tokenizeGfmFootnoteCall(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(o>999||93===s&&!a||null===s||91===s||markdownLineEndingOrSpace(s))return n(s);if(93===s){e.exit("chunkString");const a=e.exit("gfmFootnoteCallString");return i.includes(normalizeIdentifier(r.sliceSerialize(a)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return markdownLineEndingOrSpace(s)||(a=!0),o++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,l):l(t)}}function tokenizeDefinitionStart(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!o||null===t||91===t||markdownLineEndingOrSpace(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return a=normalizeIdentifier(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return markdownLineEndingOrSpace(t)||(o=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(a)||i.push(a),factorySpace(e,m,"gfmFootnoteDefinitionWhitespace")):n(t)}function m(e){return t(e)}}function tokenizeDefinitionContinuation(e,t,n){return e.check(blankLine,t,e.attempt(indent,t,n))}function gfmFootnoteDefinitionEnd(e){e.exit("gfmFootnoteDefinition")}function tokenizeIndent(e,t,n){const r=this;return factorySpace(e,function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)}function gfmStrikethrough(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const i=this.previous,a=this.events;let o=0;return function(t){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(a){const l=classifyCharacter(i);if(126===a)return o>1?r(a):(e.consume(a),o++,s);if(o<2&&!t)return r(a);const c=e.exit("strikethroughSequenceTemporary"),u=classifyCharacter(a);return c._open=!u||2===u&&!!l,c._close=!l||2===l&&!!u,n(a)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&splice(o,o.length,0,resolveAll(s,e.slice(r+1,n),t)),splice(o,o.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),splice(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class EditMap{constructor(){this.map=[]}add(e,t,n){addImplementation(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function addImplementation(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}}function gfmTableAlign(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}function gfmTable(){return{flow:{null:{name:"table",tokenize:tokenizeTable,resolveAll:resolveTable}}}}function tokenizeTable(e,t,n){const r=this;let i,a=0,o=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,a="tableHead"===i||"tableRow"===i?E:s;return a===E&&r.parser.lazy[r.now().line]?n(e):a(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(i=!0,o+=1),l(e)}(t)}function l(t){return null===t?n(t):markdownLineEnding(t)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):markdownSpace(t)?factorySpace(e,l,"whitespace")(t):(o+=1,i&&(i=!1,a+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||markdownLineEndingOrSpace(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,markdownSpace(t)?factorySpace(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):m(t))}function m(t){return 45===t||58===t?p(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):x(t)}function h(t){return markdownSpace(t)?factorySpace(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(o+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),f):45===t?(o+=1,f(t)):null===t||markdownLineEnding(t)?b(t):x(t)}function f(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):x(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(t))}function _(t){return markdownSpace(t)?factorySpace(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?m(n):(null===n||markdownLineEnding(n))&&i&&a===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):x(n)}function x(e){return n(e)}function E(t){return e.enter("tableRow"),y(t)}function y(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),y):null===n||markdownLineEnding(n)?(e.exit("tableRow"),t(n)):markdownSpace(n)?factorySpace(e,y,"whitespace")(n):(e.enter("data"),T(n))}function T(t){return null===t||124===t||markdownLineEndingOrSpace(t)?(e.exit("data"),y(t)):(e.consume(t),92===t?v:T)}function v(t){return 92===t||124===t?(e.consume(t),T):T(t)}}function resolveTable(e,t){let n,r,i,a=-1,o=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const m=new EditMap;for(;++a<e.length;){const h=e[a],p=h[1];"enter"===h[0]?"tableHead"===p.type?(u=!1,0!==d&&(flushTableEnd(m,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},m.add(a,0,[["enter",n,t]])):"tableRow"===p.type||"tableDelimiterRow"===p.type?(o=!0,i=void 0,l=[0,0,0,0],c=[0,a+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},m.add(a,0,[["enter",r,t]])),s="tableDelimiterRow"===p.type?2:r?3:1):!s||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type?"tableCellDivider"===p.type&&(o?o=!1:(0!==l[1]&&(c[0]=c[1],i=flushCell(m,t,l,s,void 0,i)),l=c,c=[l[1],a,0,0])):(o=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=flushCell(m,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=a)):"tableHead"===p.type?(u=!0,d=a):"tableRow"===p.type||"tableDelimiterRow"===p.type?(d=a,0!==l[1]?(c[0]=c[1],i=flushCell(m,t,l,s,a,i)):0!==c[1]&&(i=flushCell(m,t,c,s,a,i)),s=0):s&&("data"===p.type||"tableDelimiterMarker"===p.type||"tableDelimiterFiller"===p.type)&&(c[3]=a)}for(0!==d&&flushTableEnd(m,t,d,n,r),m.consume(t.events),a=-1;++a<t.events.length;){const e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=gfmTableAlign(t.events,a))}return e}function flushCell(e,t,n,r,i,a){const o=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(a.end=Object.assign({},getPoint(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const s=getPoint(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){const i=getPoint(t.events,n[2]),a=getPoint(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){const r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({},getPoint(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function flushTableEnd(e,t,n,r,i){const a=[],o=getPoint(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function getPoint(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const tasklistCheck={name:"tasklistCheck",tokenize:tokenizeTasklistCheck};function gfmTaskListItem(){return{text:{91:tasklistCheck}}}function tokenizeTasklistCheck(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return markdownLineEndingOrSpace(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return markdownLineEnding(r)?t(r):markdownSpace(r)?e.check({tokenize:spaceThenNonSpace},t,n)(r):n(r)}}function spaceThenNonSpace(e,t,n){return factorySpace(e,function(e){return null===e?n(e):t(e)},"whitespace")}function gfm(e){return combineExtensions([gfmAutolinkLiteral(),gfmFootnote(),gfmStrikethrough(e),gfmTable(),gfmTaskListItem()])}const emptyOptions$4={};function remarkGfm(e){const t=e||emptyOptions$4,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(gfm(t)),i.push(gfmFromMarkdown()),a.push(gfmToMarkdown(t))}const remarkPlugins=[remarkGfm],getLanguageExtension=e=>{switch(e){case"js":case"javascript":return(0,_codemirror_lang_javascript__WEBPACK_IMPORTED_MODULE_4__.javascript)();case"py":case"python":default:return(0,_codemirror_lang_python__WEBPACK_IMPORTED_MODULE_3__.python)();case"md":case"markdown":return(0,_codemirror_lang_markdown__WEBPACK_IMPORTED_MODULE_5__.markdown)()}};var lib$1={},activitymonitor={},ArrayExt,Private$3,e,StringExt;function*chain(...e){for(const t of e)yield*t}function*empty(){}function*enumerate(e,t=0){for(const n of e)yield[t++,n]}function*filter$1(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}function find$1(e,t){let n=0;for(const r of e)if(t(r,n++))return r}function findIndex(e,t){let n=0;for(const r of e)if(t(r,n++))return n-1;return-1}function min(e,t){let n;for(const r of e)void 0!==n?t(r,n)<0&&(n=r):n=r;return n}function max(e,t){let n;for(const r of e)void 0!==n?t(r,n)>0&&(n=r):n=r;return n}function minmax(e,t){let n,r,i=!0;for(const a of e)i?(n=a,r=a,i=!1):t(a,n)<0?n=a:t(a,r)>0&&(r=a);return i?void 0:[n,r]}function toArray$1(e){return Array.from(e)}function toObject(e){const t={};for(const[n,r]of e)t[n]=r;return t}function each(e,t){let n=0;for(const r of e)if(!1===t(r,n++))return}function every(e,t){let n=0;for(const r of e)if(!1===t(r,n++))return!1;return!0}function some(e,t){let n=0;for(const r of e)if(t(r,n++))return!0;return!1}function*map(e,t){let n=0;for(const r of e)yield t(r,n++)}function*range$1(e,t,n){void 0===t?(t=e,e=0,n=1):void 0===n&&(n=1);const r=Private$3.rangeLength(e,t,n);for(let t=0;t<r;t++)yield e+n*t}function reduce(e,t,n){const r=e[Symbol.iterator]();let i=0,a=r.next();if(a.done&&void 0===n)throw new TypeError("Reduce of empty iterable with no initial value.");if(a.done)return n;let o,s,l=r.next();if(l.done&&void 0===n)return a.value;if(l.done)return t(n,a.value,i++);for(o=t(void 0===n?a.value:t(n,a.value,i++),l.value,i++);!(s=r.next()).done;)o=t(o,s.value,i++);return o}function*repeat(e,t){for(;0<t--;)yield e}function*once(e){yield e}function*retro(e){if("function"==typeof e.retro)yield*e.retro();else for(let t=e.length-1;t>-1;t--)yield e[t]}function topologicSort(e){let t=[],n=new Set,r=new Map;for(const t of e)i(t);for(const[e]of r)a(e);return t;function i(e){let[t,n]=e,i=r.get(n);i?i.push(t):r.set(n,[t])}function a(e){if(n.has(e))return;n.add(e);let i=r.get(e);if(i)for(const e of i)a(e);t.push(e)}}function*stride(e,t){let n=0;for(const r of e)n++%t===0&&(yield r)}function*take(e,t){if(t<1)return;const n=e[Symbol.iterator]();let r;for(;0<t--&&!(r=n.next()).done;)yield r.value}function*zip(...e){const t=e.map(e=>e[Symbol.iterator]());let n=t.map(e=>e.next());for(;every(n,e=>!e.done);n=t.map(e=>e.next()))yield n.map(e=>e.value)}!function(e){function t(e,t,n=0,r=-1){let i,a=e.length;if(0===a)return-1;n=n<0?Math.max(0,n+a):Math.min(n,a-1),i=(r=r<0?Math.max(0,r+a):Math.min(r,a-1))<n?r+1+(a-n):r-n+1;for(let r=0;r<i;++r){let i=(n+r)%a;if(e[i]===t)return i}return-1}function n(e,t,n=-1,r=0){let i,a=e.length;if(0===a)return-1;i=(n=n<0?Math.max(0,n+a):Math.min(n,a-1))<(r=r<0?Math.max(0,r+a):Math.min(r,a-1))?n+1+(a-r):n-r+1;for(let r=0;r<i;++r){let i=(n-r+a)%a;if(e[i]===t)return i}return-1}function r(e,t,n=0,r=-1){let i,a=e.length;if(0===a)return-1;n=n<0?Math.max(0,n+a):Math.min(n,a-1),i=(r=r<0?Math.max(0,r+a):Math.min(r,a-1))<n?r+1+(a-n):r-n+1;for(let r=0;r<i;++r){let i=(n+r)%a;if(t(e[i],i))return i}return-1}function i(e,t,n=-1,r=0){let i,a=e.length;if(0===a)return-1;i=(n=n<0?Math.max(0,n+a):Math.min(n,a-1))<(r=r<0?Math.max(0,r+a):Math.min(r,a-1))?n+1+(a-r):n-r+1;for(let r=0;r<i;++r){let i=(n-r+a)%a;if(t(e[i],i))return i}return-1}function a(e,t=0,n=-1){let r=e.length;if(!(r<=1))for(t=t<0?Math.max(0,t+r):Math.min(t,r-1),n=n<0?Math.max(0,n+r):Math.min(n,r-1);t<n;){let r=e[t],i=e[n];e[t++]=i,e[n--]=r}}function o(e,t){let n=e.length;if(t<0&&(t+=n),t<0||t>=n)return;let r=e[t];for(let r=t+1;r<n;++r)e[r-1]=e[r];return e.length=n-1,r}e.firstIndexOf=t,e.lastIndexOf=n,e.findFirstIndex=r,e.findLastIndex=i,e.findFirstValue=function(e,t,n=0,i=-1){let a=r(e,t,n,i);return-1!==a?e[a]:void 0},e.findLastValue=function(e,t,n=-1,r=0){let a=i(e,t,n,r);return-1!==a?e[a]:void 0},e.lowerBound=function(e,t,n,r=0,i=-1){let a=e.length;if(0===a)return 0;let o=r=r<0?Math.max(0,r+a):Math.min(r,a-1),s=(i=i<0?Math.max(0,i+a):Math.min(i,a-1))-r+1;for(;s>0;){let r=s>>1,i=o+r;n(e[i],t)<0?(o=i+1,s-=r+1):s=r}return o},e.upperBound=function(e,t,n,r=0,i=-1){let a=e.length;if(0===a)return 0;let o=r=r<0?Math.max(0,r+a):Math.min(r,a-1),s=(i=i<0?Math.max(0,i+a):Math.min(i,a-1))-r+1;for(;s>0;){let r=s>>1,i=o+r;n(e[i],t)>0?s=r:(o=i+1,s-=r+1)}return o},e.shallowEqual=function(e,t,n){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;++r)if(n?!n(e[r],t[r]):e[r]!==t[r])return!1;return!0},e.slice=function(e,t={}){let{start:n,stop:r,step:i}=t;if(void 0===i&&(i=1),0===i)throw new Error("Slice `step` cannot be zero.");let a,o=e.length;void 0===n?n=i<0?o-1:0:n<0?n=Math.max(n+o,i<0?-1:0):n>=o&&(n=i<0?o-1:o),void 0===r?r=i<0?-1:o:r<0?r=Math.max(r+o,i<0?-1:0):r>=o&&(r=i<0?o-1:o),a=i<0&&r>=n||i>0&&n>=r?0:i<0?Math.floor((r-n+1)/i+1):Math.floor((r-n-1)/i+1);let s=[];for(let t=0;t<a;++t)s[t]=e[n+t*i];return s},e.move=function(e,t,n){let r=e.length;if(r<=1||(t=t<0?Math.max(0,t+r):Math.min(t,r-1))===(n=n<0?Math.max(0,n+r):Math.min(n,r-1)))return;let i=e[t],a=t<n?1:-1;for(let r=t;r!==n;r+=a)e[r]=e[r+a];e[n]=i},e.reverse=a,e.rotate=function(e,t,n=0,r=-1){let i=e.length;if(i<=1||(n=n<0?Math.max(0,n+i):Math.min(n,i-1))>=(r=r<0?Math.max(0,r+i):Math.min(r,i-1)))return;let o=r-n+1;if(t>0?t%=o:t<0&&(t=(t%o+o)%o),0===t)return;let s=n+t;a(e,n,s-1),a(e,s,r),a(e,n,r)},e.fill=function(e,t,n=0,r=-1){let i,a=e.length;if(0!==a){n=n<0?Math.max(0,n+a):Math.min(n,a-1),i=(r=r<0?Math.max(0,r+a):Math.min(r,a-1))<n?r+1+(a-n):r-n+1;for(let r=0;r<i;++r)e[(n+r)%a]=t}},e.insert=function(e,t,n){let r=e.length;t=t<0?Math.max(0,t+r):Math.min(t,r);for(let n=r;n>t;--n)e[n]=e[n-1];e[t]=n},e.removeAt=o,e.removeFirstOf=function(e,n,r=0,i=-1){let a=t(e,n,r,i);return-1!==a&&o(e,a),a},e.removeLastOf=function(e,t,r=-1,i=0){let a=n(e,t,r,i);return-1!==a&&o(e,a),a},e.removeAllOf=function(e,t,n=0,r=-1){let i=e.length;if(0===i)return 0;n=n<0?Math.max(0,n+i):Math.min(n,i-1),r=r<0?Math.max(0,r+i):Math.min(r,i-1);let a=0;for(let o=0;o<i;++o)n<=r&&o>=n&&o<=r&&e[o]===t||r<n&&(o<=r||o>=n)&&e[o]===t?a++:a>0&&(e[o-a]=e[o]);return a>0&&(e.length=i-a),a},e.removeFirstWhere=function(e,t,n=0,i=-1){let a,s=r(e,t,n,i);return-1!==s&&(a=o(e,s)),{index:s,value:a}},e.removeLastWhere=function(e,t,n=-1,r=0){let a,s=i(e,t,n,r);return-1!==s&&(a=o(e,s)),{index:s,value:a}},e.removeAllWhere=function(e,t,n=0,r=-1){let i=e.length;if(0===i)return 0;n=n<0?Math.max(0,n+i):Math.min(n,i-1),r=r<0?Math.max(0,r+i):Math.min(r,i-1);let a=0;for(let o=0;o<i;++o)n<=r&&o>=n&&o<=r&&t(e[o],o)||r<n&&(o<=r||o>=n)&&t(e[o],o)?a++:a>0&&(e[o-a]=e[o]);return a>0&&(e.length=i-a),a}}(ArrayExt||(ArrayExt={})),e=Private$3||(Private$3={}),e.rangeLength=function(e,t,n){return 0===n?1/0:e>t&&n>0||e<t&&n<0?0:Math.ceil((t-e)/n)},function(e){function t(e,t,n=0){let r=new Array(t.length);for(let i=0,a=n,o=t.length;i<o;++i,++a){if(a=e.indexOf(t[i],a),-1===a)return null;r[i]=a}return r}e.findIndices=t,e.matchSumOfSquares=function(e,n,r=0){let i=t(e,n,r);if(!i)return null;let a=0;for(let e=0,t=i.length;e<t;++e){let t=i[e]-r;a+=t*t}return{score:a,indices:i}},e.matchSumOfDeltas=function(e,n,r=0){let i=t(e,n,r);if(!i)return null;let a=0,o=r-1;for(let e=0,t=i.length;e<t;++e){let t=i[e];a+=t-o-1,o=t}return{score:a,indices:i}},e.highlight=function(e,t,n){let r=[],i=0,a=0,o=t.length;for(;i<o;){let s=t[i],l=t[i];for(;++i<o&&t[i]===l+1;)l++;a<s&&r.push(e.slice(a,s)),s<l+1&&r.push(n(e.slice(s,l+1))),a=l+1}return a<e.length&&r.push(e.slice(a)),r},e.cmp=function(e,t){return e<t?-1:e>t?1:0}}(StringExt||(StringExt={}));const index_es6$1=Object.freeze(Object.defineProperty({__proto__:null,get ArrayExt(){return ArrayExt},get StringExt(){return StringExt},chain,each,empty,enumerate,every,filter:filter$1,find:find$1,findIndex,map,max,min,minmax,once,range:range$1,reduce,repeat,retro,some,stride,take,toArray:toArray$1,toObject,topologicSort,zip},Symbol.toStringTag,{value:"Module"}));var JSONExt,Private$2,Random,UUID,Private$1;!function(e){function t(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e}function n(e){return Array.isArray(e)}e.emptyObject=Object.freeze({}),e.emptyArray=Object.freeze([]),e.isPrimitive=t,e.isArray=n,e.isObject=function(e){return!t(e)&&!n(e)},e.deepEqual=function e(r,i){if(r===i)return!0;if(t(r)||t(i))return!1;let a=n(r),o=n(i);return a===o&&(a&&o?function(t,n){if(t===n)return!0;if(t.length!==n.length)return!1;for(let r=0,i=t.length;r<i;++r)if(!e(t[r],n[r]))return!1;return!0}(r,i):function(t,n){if(t===n)return!0;for(let e in t)if(void 0!==t[e]&&!(e in n))return!1;for(let e in n)if(void 0!==n[e]&&!(e in t))return!1;for(let r in t){let i=t[r],a=n[r];if(!(void 0===i&&void 0===a||void 0!==i&&void 0!==a&&e(i,a)))return!1}return!0}(r,i))},e.deepCopy=function e(r){return t(r)?r:n(r)?function(t){let n=new Array(t.length);for(let r=0,i=t.length;r<i;++r)n[r]=e(t[r]);return n}(r):function(t){let n={};for(let r in t){let i=t[r];void 0!==i&&(n[r]=e(i))}return n}(r)}}(JSONExt||(JSONExt={})),function(e){class t{constructor(e){var t,n,r,i;this._activated=!1,this._promise=null,this._service=null,this.id=e.id,this.description=null!==(t=e.description)&&void 0!==t?t:"",this.activate=e.activate,this.deactivate=null!==(n=e.deactivate)&&void 0!==n?n:null,this.provides=null!==(r=e.provides)&&void 0!==r?r:null,this.autoStart=null!==(i=e.autoStart)&&void 0!==i&&i,this.requires=e.requires?e.requires.slice():[],this.optional=e.optional?e.optional.slice():[]}get activated(){return this._activated}set activated(e){this._activated=e}get service(){return this._service}set service(e){this._service=e}get promise(){return this._promise}set promise(e){this._promise=e}}e.createPluginData=function(e){return new t(e)},e.ensureNoCycle=function(e,t,n){const r=[...e.requires,...e.optional],i=r=>{if(r===e.provides)return!0;const o=n.get(r);if(!o)return!1;const s=t.get(o),l=[...s.requires,...s.optional];return 0!==l.length&&(a.push(o),!!l.some(i)||(a.pop(),!1))};if(!e.provides||0===r.length)return;const a=[e.id];if(r.some(i))throw new ReferenceError(`Cycle detected: ${a.join(" -> ")}.`)},e.findDependents=function(e,t,n){const r=new Array,i=e=>{const i=t.get(e),a=[...i.requires,...i.optional];r.push(...a.reduce((t,r)=>{const i=n.get(r);return i&&t.push([e,i]),t},[]))};for(const e of t.keys())i(e);const a=r.filter(t=>t[1]===e);let o=0;for(;a.length>o;){const e=a.length,t=new Set(a.map(e=>e[0]));for(const e of t)r.filter(t=>t[1]===e).forEach(e=>{a.includes(e)||a.push(e)});o=e}const s=topologicSort(a),l=s.findIndex(t=>t===e);return-1===l?[e]:s.slice(0,l+1)},e.collectStartupPlugins=function(e,t){const n=new Set;for(const t of e.keys())!0===e.get(t).autoStart&&n.add(t);if(t.startPlugins)for(const e of t.startPlugins)n.add(e);if(t.ignorePlugins)for(const e of t.ignorePlugins)n.delete(e);return Array.from(n)}}(Private$2||(Private$2={}));class PromiseDelegate{constructor(){this.promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}resolve(e){(0,this._resolve)(e)}reject(e){(0,this._reject)(e)}}function fallbackRandomValues(e){let t=0;for(let n=0,r=e.length;n<r;++n)n%4==0&&(t=4294967295*Math.random()>>>0),e[n]=255&t,t>>>=8}function uuid4Factory(e){const t=new Uint8Array(16),n=new Array(256);for(let e=0;e<16;++e)n[e]="0"+e.toString(16);for(let e=16;e<256;++e)n[e]=e.toString(16);return function(){return e(t),t[6]=64|15&t[6],t[8]=128|63&t[8],n[t[0]]+n[t[1]]+n[t[2]]+n[t[3]]+"-"+n[t[4]]+n[t[5]]+"-"+n[t[6]]+n[t[7]]+"-"+n[t[8]]+n[t[9]]+"-"+n[t[10]]+n[t[11]]+n[t[12]]+n[t[13]]+n[t[14]]+n[t[15]]}}!function(e){e.getRandomValues=(()=>{const e=typeof window<"u"&&(window.crypto||window.msCrypto)||null;return e&&"function"==typeof e.getRandomValues?function(t){return e.getRandomValues(t)}:fallbackRandomValues})()}(Random||(Random={})),function(e){e.uuid4=uuid4Factory(Random.getRandomValues)}(UUID||(UUID={}));class Signal{constructor(e){this.sender=e}connect(e,t){return Private$1.connect(this,e,t)}disconnect(e,t){return Private$1.disconnect(this,e,t)}emit(e){Private$1.emit(this,e)}}!function(e){e.disconnectBetween=function(e,t){Private$1.disconnectBetween(e,t)},e.disconnectSender=function(e){Private$1.disconnectSender(e)},e.disconnectReceiver=function(e){Private$1.disconnectReceiver(e)},e.disconnectAll=function(e){Private$1.disconnectAll(e)},e.clearData=function(e){Private$1.disconnectAll(e)},e.getExceptionHandler=function(){return Private$1.exceptionHandler},e.setExceptionHandler=function(e){let t=Private$1.exceptionHandler;return Private$1.exceptionHandler=e,t}}(Signal||(Signal={}));class Stream extends Signal{constructor(){super(...arguments),this._pending=new PromiseDelegate}async*[Symbol.asyncIterator](){let e=this._pending;for(;;)try{const{args:t,next:n}=await e.promise;e=n,yield t}catch{return}}emit(e){const t=this._pending,n=this._pending=new PromiseDelegate;t.resolve({args:e,next:n}),super.emit(e)}stop(){this._pending.promise.catch(()=>{}),this._pending.reject("stop"),this._pending=new PromiseDelegate}}!function(e){function t(e){let t=r.get(e);if(t&&0!==t.length){for(const e of t){if(!e.signal)continue;let t=e.thisArg||e.slot;e.signal=null,c(i.get(t))}c(t)}}function n(e){let t=i.get(e);if(t&&0!==t.length){for(const e of t){if(!e.signal)continue;let t=e.signal.sender;e.signal=null,c(r.get(t))}c(t)}}e.exceptionHandler=e=>{console.error(e)},e.connect=function(e,t,n){n=n||void 0;let a=r.get(e.sender);if(a||(a=[],r.set(e.sender,a)),s(a,e,t,n))return!1;let o=n||t,l=i.get(o);l||(l=[],i.set(o,l));let c={signal:e,slot:t,thisArg:n};return a.push(c),l.push(c),!0},e.disconnect=function(e,t,n){n=n||void 0;let a=r.get(e.sender);if(!a||0===a.length)return!1;let o=s(a,e,t,n);if(!o)return!1;let l=n||t,u=i.get(l);return o.signal=null,c(a),c(u),!0},e.disconnectBetween=function(e,t){let n=r.get(e);if(!n||0===n.length)return;let a=i.get(t);if(a&&0!==a.length){for(const t of a)t.signal&&t.signal.sender===e&&(t.signal=null);c(n),c(a)}},e.disconnectSender=t,e.disconnectReceiver=n,e.disconnectAll=function(e){t(e),n(e)},e.emit=function(e,t){let n=r.get(e.sender);if(n&&0!==n.length)for(let r=0,i=n.length;r<i;++r){let i=n[r];i.signal===e&&l(i,t)}};const r=new WeakMap,i=new WeakMap,a=new Set,o="function"==typeof requestAnimationFrame?requestAnimationFrame:setImmediate;function s(e,t,n,r){return find$1(e,e=>e.signal===t&&e.slot===n&&e.thisArg===r)}function l(t,n){let{signal:r,slot:i,thisArg:a}=t;try{i.call(a,r.sender,n)}catch(t){e.exceptionHandler(t)}}function c(e){0===a.size&&o(u),a.add(e)}function u(){a.forEach(d),a.clear()}function d(e){ArrayExt.removeAllWhere(e,m)}function m(e){return null===e.signal}}(Private$1||(Private$1={}));const index_es6=Object.freeze(Object.defineProperty({__proto__:null,get Signal(){return Signal},Stream},Symbol.toStringTag,{value:"Module"})),require$$0$2=getAugmentedNamespace(index_es6);var hasRequiredActivitymonitor;function requireActivitymonitor(){if(hasRequiredActivitymonitor)return activitymonitor;hasRequiredActivitymonitor=1,Object.defineProperty(activitymonitor,"__esModule",{value:!0}),activitymonitor.ActivityMonitor=void 0;const e=require$$0$2;return activitymonitor.ActivityMonitor=class{constructor(t){this._timer=-1,this._timeout=-1,this._isDisposed=!1,this._activityStopped=new e.Signal(this),t.signal.connect(this._onSignalFired,this),this._timeout=t.timeout||1e3}get activityStopped(){return this._activityStopped}get timeout(){return this._timeout}set timeout(e){this._timeout=e}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,e.Signal.clearData(this))}_onSignalFired(e,t){clearTimeout(this._timer),this._sender=e,this._args=t,this._timer=setTimeout(()=>{this._activityStopped.emit({sender:this._sender,args:this._args})},this._timeout)}},activitymonitor}var interfaces={},hasRequiredInterfaces;function requireInterfaces(){return hasRequiredInterfaces||(hasRequiredInterfaces=1,Object.defineProperty(interfaces,"__esModule",{value:!0})),interfaces}var lru={},hasRequiredLru;function requireLru(){return hasRequiredLru||(hasRequiredLru=1,Object.defineProperty(lru,"__esModule",{value:!0}),lru.LruCache=void 0,lru.LruCache=class{constructor(e={}){this._map=new Map,this._maxSize=(null==e?void 0:e.maxSize)||128}get size(){return this._map.size}clear(){this._map.clear()}get(e){const t=this._map.get(e)||null;return null!=t&&(this._map.delete(e),this._map.set(e,t)),t}set(e,t){this._map.size>=this._maxSize&&this._map.delete(this._map.keys().next().value),this._map.set(e,t)}}),lru}var markdowncodeblocks={},hasRequiredMarkdowncodeblocks;function requireMarkdowncodeblocks(){return hasRequiredMarkdowncodeblocks||(hasRequiredMarkdowncodeblocks=1,Object.defineProperty(markdowncodeblocks,"__esModule",{value:!0}),markdowncodeblocks.MarkdownCodeBlocks=void 0,function(e){e.CODE_BLOCK_MARKER="```";const t=[".markdown",".mdown",".mkdn",".md",".mkd",".mdwn",".mdtxt",".mdtext",".text",".txt",".Rmd"];class n{constructor(e){this.startLine=e,this.code="",this.endLine=-1}}e.MarkdownCodeBlock=n,e.isMarkdown=function(e){return t.indexOf(e)>-1},e.findMarkdownCodeBlocks=function(t){if(!t||""===t)return[];const r=t.split("\n"),i=[];let a=null;for(let t=0;t<r.length;t++){const o=r[t],s=0===o.indexOf(e.CODE_BLOCK_MARKER),l=null!=a;if(s||l)if(l)a&&(s?(a.endLine=t-1,i.push(a),a=null):a.code+=o+"\n");else{a=new n(t);const r=o.indexOf(e.CODE_BLOCK_MARKER),s=o.lastIndexOf(e.CODE_BLOCK_MARKER);r!==s&&(a.code=o.substring(r+e.CODE_BLOCK_MARKER.length,s),a.endLine=t,i.push(a),a=null)}}return i}}(e||(markdowncodeblocks.MarkdownCodeBlocks=e={}))),markdowncodeblocks;var e}var pageconfig={},dist$1={exports:{}};const require$$0$1=getAugmentedNamespace(index_es6$1);var dist=dist$1.exports,hasRequiredDist,minimist,hasRequiredMinimist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(e,t){e.JSONExt=void 0,function(e){function t(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e}function n(e){return Array.isArray(e)}function r(e,i){if(e===i)return!0;if(t(e)||t(i))return!1;let a=n(e),o=n(i);return a===o&&(a&&o?function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;++n)if(!r(e[n],t[n]))return!1;return!0}(e,i):function(e,t){if(e===t)return!0;for(let n in e)if(void 0!==e[n]&&!(n in t))return!1;for(let n in t)if(void 0!==t[n]&&!(n in e))return!1;for(let n in e){let i=e[n],a=t[n];if(!(void 0===i&&void 0===a||void 0!==i&&void 0!==a&&r(i,a)))return!1}return!0}(e,i))}function i(e){return t(e)?e:n(e)?function(e){let t=new Array(e.length);for(let n=0,r=e.length;n<r;++n)t[n]=i(e[n]);return t}(e):function(e){let t={};for(let n in e){let r=e[n];void 0!==r&&(t[n]=i(r))}return t}(e)}e.emptyObject=Object.freeze({}),e.emptyArray=Object.freeze([]),e.isPrimitive=t,e.isArray=n,e.isObject=function(e){return!t(e)&&!n(e)},e.deepEqual=r,e.deepCopy=i}(e.JSONExt||(e.JSONExt={}));var n;!function(e){class n{constructor(e){var t,n,r,i;this._activated=!1,this._promise=null,this._service=null,this.id=e.id,this.description=null!==(t=e.description)&&void 0!==t?t:"",this.activate=e.activate,this.deactivate=null!==(n=e.deactivate)&&void 0!==n?n:null,this.provides=null!==(r=e.provides)&&void 0!==r?r:null,this.autoStart=null!==(i=e.autoStart)&&void 0!==i&&i,this.requires=e.requires?e.requires.slice():[],this.optional=e.optional?e.optional.slice():[]}get activated(){return this._activated}set activated(e){this._activated=e}get service(){return this._service}set service(e){this._service=e}get promise(){return this._promise}set promise(e){this._promise=e}}e.createPluginData=function(e){return new n(e)},e.ensureNoCycle=function(e,t,n){const r=[...e.requires,...e.optional],i=r=>{if(r===e.provides)return!0;const o=n.get(r);if(!o)return!1;const s=t.get(o),l=[...s.requires,...s.optional];return 0!==l.length&&(a.push(o),!!l.some(i)||(a.pop(),!1))};if(!e.provides||0===r.length)return;const a=[e.id];if(r.some(i))throw new ReferenceError(`Cycle detected: ${a.join(" -> ")}.`)},e.findDependents=function(e,n,r){const i=new Array,a=e=>{const t=n.get(e),a=[...t.requires,...t.optional];i.push(...a.reduce((t,n)=>{const i=r.get(n);return i&&t.push([e,i]),t},[]))};for(const e of n.keys())a(e);const o=i.filter(t=>t[1]===e);let s=0;for(;o.length>s;){const e=o.length,t=new Set(o.map(e=>e[0]));for(const e of t)i.filter(t=>t[1]===e).forEach(e=>{o.includes(e)||o.push(e)});s=e}const l=t.topologicSort(o),c=l.findIndex(t=>t===e);return-1===c?[e]:l.slice(0,c+1)},e.collectStartupPlugins=function(e,t){const n=new Set;for(const t of e.keys())!0===e.get(t).autoStart&&n.add(t);if(t.startPlugins)for(const e of t.startPlugins)n.add(e);if(t.ignorePlugins)for(const e of t.ignorePlugins)n.delete(e);return Array.from(n)}}(n||(n={}));function r(e){let t=0;for(let n=0,r=e.length;n<r;++n)n%4==0&&(t=4294967295*Math.random()>>>0),e[n]=255&t,t>>>=8}e.Random=void 0,(e.Random||(e.Random={})).getRandomValues=(()=>{const e=typeof window<"u"&&(window.crypto||window.msCrypto)||null;return e&&"function"==typeof e.getRandomValues?function(t){return e.getRandomValues(t)}:r})(),e.UUID=void 0,(e.UUID||(e.UUID={})).uuid4=function(e){const t=new Uint8Array(16),n=new Array(256);for(let e=0;e<16;++e)n[e]="0"+e.toString(16);for(let e=16;e<256;++e)n[e]=e.toString(16);return function(){return e(t),t[6]=64|15&t[6],t[8]=128|63&t[8],n[t[0]]+n[t[1]]+n[t[2]]+n[t[3]]+"-"+n[t[4]]+n[t[5]]+"-"+n[t[6]]+n[t[7]]+"-"+n[t[8]]+n[t[9]]+"-"+n[t[10]]+n[t[11]]+n[t[12]]+n[t[13]]+n[t[14]]+n[t[15]]}}(e.Random.getRandomValues),e.MimeData=class{constructor(){this._types=[],this._values=[]}types(){return this._types.slice()}hasData(e){return-1!==this._types.indexOf(e)}getData(e){let t=this._types.indexOf(e);return-1!==t?this._values[t]:void 0}setData(e,t){this.clearData(e),this._types.push(e),this._values.push(t)}clearData(e){let t=this._types.indexOf(e);-1!==t&&(this._types.splice(t,1),this._values.splice(t,1))}clear(){this._types.length=0,this._values.length=0}},e.PluginRegistry=class{constructor(e={}){this._application=null,this._validatePlugin=()=>!0,this._plugins=new Map,this._services=new Map,e.validatePlugin&&(console.info("Plugins may be rejected by the custom validation plugin method."),this._validatePlugin=e.validatePlugin)}get application(){return this._application}set application(e){if(null!==this._application)throw Error("PluginRegistry.application is already set. It cannot be overridden.");this._application=e}get deferredPlugins(){return Array.from(this._plugins).filter(([e,t])=>"defer"===t.autoStart).map(([e,t])=>e)}getPluginDescription(e){var t,n;return null!==(n=null===(t=this._plugins.get(e))||void 0===t?void 0:t.description)&&void 0!==n?n:""}hasPlugin(e){return this._plugins.has(e)}isPluginActivated(e){var t,n;return null!==(n=null===(t=this._plugins.get(e))||void 0===t?void 0:t.activated)&&void 0!==n&&n}listPlugins(){return Array.from(this._plugins.keys())}registerPlugin(e){if(this._plugins.has(e.id))throw new TypeError(`Plugin '${e.id}' is already registered.`);if(!this._validatePlugin(e))throw new Error(`Plugin '${e.id}' is not valid.`);const t=n.createPluginData(e);n.ensureNoCycle(t,this._plugins,this._services),t.provides&&this._services.set(t.provides,t.id),this._plugins.set(t.id,t)}registerPlugins(e){for(const t of e)this.registerPlugin(t)}deregisterPlugin(e,t){const n=this._plugins.get(e);if(n){if(n.activated&&!t)throw new Error(`Plugin '${e}' is still active.`);this._plugins.delete(e)}}async activatePlugin(e){const t=this._plugins.get(e);if(!t)throw new ReferenceError(`Plugin '${e}' is not registered.`);if(t.activated)return;if(t.promise)return t.promise;const n=t.requires.map(e=>this.resolveRequiredService(e)),r=t.optional.map(e=>this.resolveOptionalService(e));return t.promise=Promise.all([...n,...r]).then(e=>t.activate.apply(void 0,[this.application,...e])).then(e=>{t.service=e,t.activated=!0,t.promise=null}).catch(e=>{throw t.promise=null,e}),t.promise}async activatePlugins(e,t={}){switch(e){case"defer":{const e=this.deferredPlugins.filter(e=>this._plugins.get(e).autoStart).map(e=>this.activatePlugin(e));await Promise.all(e);break}case"startUp":{const e=n.collectStartupPlugins(this._plugins,t).map(async e=>{try{return await this.activatePlugin(e)}catch(t){console.error(`Plugin '${e}' failed to activate.`,t)}});await Promise.all(e);break}}}async deactivatePlugin(e){const t=this._plugins.get(e);if(!t)throw new ReferenceError(`Plugin '${e}' is not registered.`);if(!t.activated)return[];if(!t.deactivate)throw new TypeError(`Plugin '${e}'#deactivate() method missing`);const r=n.findDependents(e,this._plugins,this._services),i=r.map(e=>this._plugins.get(e));for(const t of i)if(!t.deactivate)throw new TypeError(`Plugin ${t.id}#deactivate() method missing (depends on ${e})`);for(const e of i){const t=[...e.requires,...e.optional].map(e=>{const t=this._services.get(e);return t?this._plugins.get(t).service:null});await e.deactivate(this.application,...t),e.service=null,e.activated=!1}return r.pop(),r}async resolveRequiredService(e){const t=this._services.get(e);if(!t)throw new TypeError(`No provider for: ${e.name}.`);const n=this._plugins.get(t);return n.activated||await this.activatePlugin(t),n.service}async resolveOptionalService(e){const t=this._services.get(e);if(!t)return null;const n=this._plugins.get(t);if(!n.activated)try{await this.activatePlugin(t)}catch(e){return console.error(e),null}return n.service}},e.PromiseDelegate=class{constructor(){this.promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}resolve(e){(0,this._resolve)(e)}reject(e){(0,this._reject)(e)}},e.Token=class{constructor(e,t){this.name=e,this.description=t??"",this._tokenStructuralPropertyT=null}}}(dist$1.exports,require$$0$1)),dist$1.exports}function requireMinimist(){if(hasRequiredMinimist)return minimist;function e(e){return!("number"!=typeof e&&!/^0x[0-9a-f]+$/i.test(e))||/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function t(e,t){return"constructor"===t&&"function"==typeof e[t]||"__proto__"===t}return hasRequiredMinimist=1,minimist=function(n,r){r||(r={});var i={bools:{},strings:{},unknownFn:null};"function"==typeof r.unknown&&(i.unknownFn=r.unknown),"boolean"==typeof r.boolean&&r.boolean?i.allBools=!0:[].concat(r.boolean).filter(Boolean).forEach(function(e){i.bools[e]=!0});var a={};function o(e){return a[e].some(function(e){return i.bools[e]})}Object.keys(r.alias||{}).forEach(function(e){a[e]=[].concat(r.alias[e]),a[e].forEach(function(t){a[t]=[e].concat(a[e].filter(function(e){return t!==e}))})}),[].concat(r.string).filter(Boolean).forEach(function(e){i.strings[e]=!0,a[e]&&[].concat(a[e]).forEach(function(e){i.strings[e]=!0})});var s=r.default||{},l={_:[]};function c(e,n,r){for(var a=e,o=0;o<n.length-1;o++){var s=n[o];if(t(a,s))return;void 0===a[s]&&(a[s]={}),(a[s]===Object.prototype||a[s]===Number.prototype||a[s]===String.prototype)&&(a[s]={}),a[s]===Array.prototype&&(a[s]=[]),a=a[s]}var l=n[n.length-1];t(a,l)||((a===Object.prototype||a===Number.prototype||a===String.prototype)&&(a={}),a===Array.prototype&&(a=[]),void 0===a[l]||i.bools[l]||"boolean"==typeof a[l]?a[l]=r:Array.isArray(a[l])?a[l].push(r):a[l]=[a[l],r])}function u(t,n,r){if(!r||!i.unknownFn||function(e,t){return i.allBools&&/^--[^=]+$/.test(t)||i.strings[e]||i.bools[e]||a[e]}(t,r)||!1!==i.unknownFn(r)){var o=!i.strings[t]&&e(n)?Number(n):n;c(l,t.split("."),o),(a[t]||[]).forEach(function(e){c(l,e.split("."),o)})}}Object.keys(i.bools).forEach(function(e){u(e,void 0!==s[e]&&s[e])});var d=[];-1!==n.indexOf("--")&&(d=n.slice(n.indexOf("--")+1),n=n.slice(0,n.indexOf("--")));for(var m=0;m<n.length;m++){var h,p,f=n[m];if(/^--.+=/.test(f)){var g=f.match(/^--([^=]+)=([\s\S]*)$/);h=g[1];var _=g[2];i.bools[h]&&(_="false"!==_),u(h,_,f)}else if(/^--no-.+/.test(f))u(h=f.match(/^--no-(.+)/)[1],!1,f);else if(/^--.+/.test(f))h=f.match(/^--(.+)/)[1],void 0===(p=n[m+1])||/^(-|--)[^-]/.test(p)||i.bools[h]||i.allBools||a[h]&&o(h)?/^(true|false)$/.test(p)?(u(h,"true"===p,f),m+=1):u(h,!i.strings[h]||"",f):(u(h,p,f),m+=1);else if(/^-[^-]+/.test(f)){for(var b=f.slice(1,-1).split(""),x=!1,E=0;E<b.length;E++)if("-"!==(p=f.slice(E+2))){if(/[A-Za-z]/.test(b[E])&&"="===p[0]){u(b[E],p.slice(1),f),x=!0;break}if(/[A-Za-z]/.test(b[E])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(p)){u(b[E],p,f),x=!0;break}if(b[E+1]&&b[E+1].match(/\W/)){u(b[E],f.slice(E+2),f),x=!0;break}u(b[E],!i.strings[b[E]]||"",f)}else u(b[E],p,f);h=f.slice(-1)[0],!x&&"-"!==h&&(!n[m+1]||/^(-|--)[^-]/.test(n[m+1])||i.bools[h]||a[h]&&o(h)?n[m+1]&&/^(true|false)$/.test(n[m+1])?(u(h,"true"===n[m+1],f),m+=1):u(h,!i.strings[h]||"",f):(u(h,n[m+1],f),m+=1))}else if((!i.unknownFn||!1!==i.unknownFn(f))&&l._.push(i.strings._||!e(f)?f:Number(f)),r.stopEarly){l._.push.apply(l._,n.slice(m+1));break}}return Object.keys(s).forEach(function(e){(function(e,t){var n=e;return t.slice(0,-1).forEach(function(e){n=n[e]||{}}),t[t.length-1]in n})(l,e.split("."))||(c(l,e.split("."),s[e]),(a[e]||[]).forEach(function(t){c(l,t.split("."),s[e])}))}),r["--"]?l["--"]=d.slice():d.forEach(function(e){l._.push(e)}),l}}var url={},pathBrowserify,hasRequiredPathBrowserify,requiresPort,hasRequiredRequiresPort;function requirePathBrowserify(){if(hasRequiredPathBrowserify)return pathBrowserify;function e(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,t){for(var n,r="",i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(a!==s-1&&1!==o)if(a!==s-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),a=s,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,a=s,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===n&&-1!==o?++o:o=-1}return r}hasRequiredPathBrowserify=1;var n={resolve:function(){for(var n,r="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(void 0===n&&(n=process.cwd()),o=n),e(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=t(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(n){if(e(n),0===n.length)return".";var r=47===n.charCodeAt(0),i=47===n.charCodeAt(n.length-1);return 0===(n=t(n,!r)).length&&!r&&(n="."),n.length>0&&i&&(n+="/"),r?"/"+n:n},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,r=0;r<arguments.length;++r){var i=arguments[r];e(i),i.length>0&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":n.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r||(t=n.resolve(t))===(r=n.resolve(r)))return"";for(var i=1;i<t.length&&47===t.charCodeAt(i);++i);for(var a=t.length,o=a-i,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var l=r.length-s,c=o<l?o:l,u=-1,d=0;d<=c;++d){if(d===c){if(l>c){if(47===r.charCodeAt(s+d))return r.slice(s+d+1);if(0===d)return r.slice(s+d)}else o>c&&(47===t.charCodeAt(i+d)?u=d:0===d&&(u=0));break}var m=t.charCodeAt(i+d);if(m!==r.charCodeAt(s+d))break;47===m&&(u=d)}var h="";for(d=i+u+1;d<=a;++d)(d===a||47===t.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+r.slice(s+u):(s+=u,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(t){if(e(t),0===t.length)return".";for(var n=t.charCodeAt(0),r=47===n,i=-1,a=!0,o=t.length-1;o>=1;--o)if(47===(n=t.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return-1===i?r?"/":".":r&&1===i?"//":t.slice(0,i)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');e(t);var r,i=0,a=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var s=n.length-1,l=-1;for(r=t.length-1;r>=0;--r){var c=t.charCodeAt(r);if(47===c){if(!o){i=r+1;break}}else-1===l&&(o=!1,l=r+1),s>=0&&(c===n.charCodeAt(s)?-1===--s&&(a=r):(s=-1,a=l))}return i===a?a=l:-1===a&&(a=t.length),t.slice(i,a)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!o){i=r+1;break}}else-1===a&&(o=!1,a=r+1);return-1===a?"":t.slice(i,a)},extname:function(t){e(t);for(var n=-1,r=0,i=-1,a=!0,o=0,s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(47!==l)-1===i&&(a=!1,i=s+1),46===l?-1===n?n=s:1!==o&&(o=1):-1!==n&&(o=-1);else if(!a){r=s+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(t){e(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return n;var r,i=t.charCodeAt(0),a=47===i;a?(n.root="/",r=1):r=0;for(var o=-1,s=0,l=-1,c=!0,u=t.length-1,d=0;u>=r;--u)if(47!==(i=t.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===i?-1===o?o=u:1!==d&&(d=1):-1!==o&&(d=-1);else if(!c){s=u+1;break}return-1===o||-1===l||0===d||1===d&&o===l-1&&o===s+1?-1!==l&&(n.base=n.name=0===s&&a?t.slice(1,l):t.slice(s,l)):(0===s&&a?(n.name=t.slice(1,o),n.base=t.slice(1,l)):(n.name=t.slice(s,o),n.base=t.slice(s,l)),n.ext=t.slice(o,l)),s>0?n.dir=t.slice(0,s-1):a&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,pathBrowserify=n}function requireRequiresPort(){return hasRequiredRequiresPort||(hasRequiredRequiresPort=1,requiresPort=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}),requiresPort}var querystringify={},hasRequiredQuerystringify,urlParse,hasRequiredUrlParse,hasRequiredUrl,hasRequiredPageconfig;function requireQuerystringify(){if(hasRequiredQuerystringify)return querystringify;hasRequiredQuerystringify=1;var e=Object.prototype.hasOwnProperty;function t(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function n(e){try{return encodeURIComponent(e)}catch{return null}}return querystringify.stringify=function(t,r){r=r||"";var i,a,o=[];for(a in"string"!=typeof r&&(r="?"),t)if(e.call(t,a)){if(!(i=t[a])&&(null==i||isNaN(i))&&(i=""),a=n(a),i=n(i),null===a||null===i)continue;o.push(a+"="+i)}return o.length?r+o.join("&"):""},querystringify.parse=function(e){for(var n,r=/([^=?#&]+)=?([^&]*)/g,i={};n=r.exec(e);){var a=t(n[1]),o=t(n[2]);null===a||null===o||a in i||(i[a]=o)}return i},querystringify}function requireUrlParse(){if(hasRequiredUrlParse)return urlParse;hasRequiredUrlParse=1;var e=requireRequiresPort(),t=requireQuerystringify(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,a=/:\d+$/,o=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,s=/^[a-zA-Z]:/;function l(e){return(e||"").toString().replace(n,"")}var c=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],u={hash:1,query:1};function d(e){var t,n=(typeof window<"u"?window:typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:{}).location||{},r={},a=typeof(e=e||n);if("blob:"===e.protocol)r=new p(unescape(e.pathname),{});else if("string"===a)for(t in r=new p(e,{}),u)delete r[t];else if("object"===a){for(t in e)t in u||(r[t]=e[t]);void 0===r.slashes&&(r.slashes=i.test(e.href))}return r}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function h(e,t){e=(e=l(e)).replace(r,""),t=t||{};var n,i=o.exec(e),a=i[1]?i[1].toLowerCase():"",s=!!i[2],c=!!i[3],u=0;return s?c?(n=i[2]+i[3]+i[4],u=i[2].length+i[3].length):(n=i[2]+i[4],u=i[2].length):c?(n=i[3]+i[4],u=i[3].length):n=i[4],"file:"===a?u>=2&&(n=n.slice(2)):m(a)?n=i[4]:a?s&&(n=n.slice(2)):u>=2&&m(t.protocol)&&(n=i[4]),{protocol:a,slashes:s||m(a),slashesCount:u,rest:n}}function p(n,i,a){if(n=(n=l(n)).replace(r,""),!(this instanceof p))return new p(n,i,a);var o,u,f,g,_,b,x=c.slice(),E=typeof i,y=this,T=0;for("object"!==E&&"string"!==E&&(a=i,i=null),a&&"function"!=typeof a&&(a=t.parse),o=!(u=h(n||"",i=d(i))).protocol&&!u.slashes,y.slashes=u.slashes||o&&i.slashes,y.protocol=u.protocol||i.protocol||"",n=u.rest,("file:"===u.protocol&&(2!==u.slashesCount||s.test(n))||!u.slashes&&(u.protocol||u.slashesCount<2||!m(y.protocol)))&&(x[3]=[/(.*)/,"pathname"]);T<x.length;T++)"function"!=typeof(g=x[T])?(f=g[0],b=g[1],f!=f?y[b]=n:"string"==typeof f?~(_="@"===f?n.lastIndexOf(f):n.indexOf(f))&&("number"==typeof g[2]?(y[b]=n.slice(0,_),n=n.slice(_+g[2])):(y[b]=n.slice(_),n=n.slice(0,_))):(_=f.exec(n))&&(y[b]=_[1],n=n.slice(0,_.index)),y[b]=y[b]||o&&g[3]&&i[b]||"",g[4]&&(y[b]=y[b].toLowerCase())):n=g(n,y);a&&(y.query=a(y.query)),o&&i.slashes&&"/"!==y.pathname.charAt(0)&&(""!==y.pathname||""!==i.pathname)&&(y.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,i=n[r-1],a=!1,o=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),o++):o&&(0===r&&(a=!0),n.splice(r,1),o--);return a&&n.unshift(""),("."===i||".."===i)&&n.push(""),n.join("/")}(y.pathname,i.pathname)),"/"!==y.pathname.charAt(0)&&m(y.protocol)&&(y.pathname="/"+y.pathname),e(y.port,y.protocol)||(y.host=y.hostname,y.port=""),y.username=y.password="",y.auth&&(~(_=y.auth.indexOf(":"))?(y.username=y.auth.slice(0,_),y.username=encodeURIComponent(decodeURIComponent(y.username)),y.password=y.auth.slice(_+1),y.password=encodeURIComponent(decodeURIComponent(y.password))):y.username=encodeURIComponent(decodeURIComponent(y.auth)),y.auth=y.password?y.username+":"+y.password:y.username),y.origin="file:"!==y.protocol&&m(y.protocol)&&y.host?y.protocol+"//"+y.host:"null",y.href=y.toString()}return p.prototype={set:function(n,r,i){var o=this;switch(n){case"query":"string"==typeof r&&r.length&&(r=(i||t.parse)(r)),o[n]=r;break;case"port":o[n]=r,e(r,o.protocol)?r&&(o.host=o.hostname+":"+r):(o.host=o.hostname,o[n]="");break;case"hostname":o[n]=r,o.port&&(r+=":"+o.port),o.host=r;break;case"host":o[n]=r,a.test(r)?(r=r.split(":"),o.port=r.pop(),o.hostname=r.join(":")):(o.hostname=r,o.port="");break;case"protocol":o.protocol=r.toLowerCase(),o.slashes=!i;break;case"pathname":case"hash":if(r){var s="pathname"===n?"/":"#";o[n]=r.charAt(0)!==s?s+r:r}else o[n]=r;break;case"username":case"password":o[n]=encodeURIComponent(r);break;case"auth":var l=r.indexOf(":");~l?(o.username=r.slice(0,l),o.username=encodeURIComponent(decodeURIComponent(o.username)),o.password=r.slice(l+1),o.password=encodeURIComponent(decodeURIComponent(o.password))):o.username=encodeURIComponent(decodeURIComponent(r))}for(var u=0;u<c.length;u++){var d=c[u];d[4]&&(o[d[1]]=o[d[1]].toLowerCase())}return o.auth=o.password?o.username+":"+o.password:o.username,o.origin="file:"!==o.protocol&&m(o.protocol)&&o.host?o.protocol+"//"+o.host:"null",o.href=o.toString(),o},toString:function(e){(!e||"function"!=typeof e)&&(e=t.stringify);var n,r=this,i=r.host,o=r.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var s=o+(r.protocol&&r.slashes||m(r.protocol)?"//":"");return r.username?(s+=r.username,r.password&&(s+=":"+r.password),s+="@"):r.password?(s+=":"+r.password,s+="@"):"file:"!==r.protocol&&m(r.protocol)&&!i&&"/"!==r.pathname&&(s+="@"),(":"===i[i.length-1]||a.test(r.hostname)&&!r.port)&&(i+=":"),s+=i+r.pathname,(n="object"==typeof r.query?e(r.query):r.query)&&(s+="?"!==n.charAt(0)?"?"+n:n),r.hash&&(s+=r.hash),s}},p.extractProtocol=h,p.location=d,p.trimLeft=l,p.qs=t,urlParse=p}function requireUrl(){if(hasRequiredUrl)return url;hasRequiredUrl=1;var e=url&&url.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(url,"__esModule",{value:!0}),url.URLExt=void 0;const t=requirePathBrowserify(),n=e(requireUrlParse());var r;return function(e){function r(e){if(typeof document<"u"&&document){const t=document.createElement("a");return t.href=e,t}return(0,n.default)(e)}function i(...e){let r=(0,n.default)(e[0],{});const i=""===r.protocol&&r.slashes;i&&(r=(0,n.default)(e[0],"https:"+e[0]));const a=`${i?"":r.protocol}${r.slashes?"//":""}${r.auth}${r.auth?"@":""}${r.host}`,o=t.posix.join(`${a&&"/"!==r.pathname[0]?"/":""}${r.pathname}`,...e.slice(1));return`${a}${"."===o?"":o}`}e.parse=r,e.getHostName=function(e){return(0,n.default)(e).hostname},e.normalize=function(e){return e&&r(e).toString()},e.join=i,e.encodeParts=function(e){return i(...e.split("/").map(encodeURIComponent))},e.objectToQueryString=function(e){const t=Object.keys(e).filter(e=>e.length>0);return t.length?"?"+t.map(t=>{const n=encodeURIComponent(String(e[t]));return t+(n?"="+n:"")}).join("&"):""},e.queryStringToObject=function(e){return e.replace(/^\?/,"").split("&").reduce((e,t)=>{const[n,r]=t.split("=");return n.length>0&&(e[n]=decodeURIComponent(r||"")),e},{})},e.isLocal=function(e,t=!1){const{protocol:n}=r(e);return(!n||0!==e.toLowerCase().indexOf(n))&&(t?0!==e.indexOf("//"):0!==e.indexOf("/"))}}(r||(url.URLExt=r={})),url}function requirePageconfig(){if(hasRequiredPageconfig)return pageconfig;hasRequiredPageconfig=1;var __importDefault=pageconfig&&pageconfig.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pageconfig,"__esModule",{value:!0}),pageconfig.PageConfig=void 0;const coreutils_1=requireDist(),minimist_1=__importDefault(requireMinimist()),url_1=requireUrl();var PageConfig;return function(PageConfig){function getOption(name){if(configData)return configData[name]||getBodyData(name);configData=Object.create(null);let found=!1;if(typeof document<"u"&&document){const e=document.getElementById("jupyter-config-data");e&&(configData=JSON.parse(e.textContent||""),found=!0)}if(!found&&typeof process<"u"&&process.argv)try{const cli=(0,minimist_1.default)(process.argv.slice(2)),path=requirePathBrowserify();let fullPath="";"jupyter-config-data"in cli?fullPath=path.resolve(cli["jupyter-config-data"]):"JUPYTER_CONFIG_DATA"in process.env&&(fullPath=path.resolve(process.env.JUPYTER_CONFIG_DATA)),fullPath&&(configData=eval("require")(fullPath))}catch(e){console.error(e)}if(coreutils_1.JSONExt.isObject(configData))for(const e in configData)"string"!=typeof configData[e]&&(configData[e]=JSON.stringify(configData[e]));else configData=Object.create(null);return configData[name]||getBodyData(name)}function setOption(e,t){const n=getOption(e);return configData[e]=t,n}function getBaseUrl(){return url_1.URLExt.normalize(getOption("baseUrl")||"/")}function getTreeUrl(){return url_1.URLExt.join(getBaseUrl(),getOption("treeUrl"))}function getShareUrl(){return url_1.URLExt.normalize(getOption("shareUrl")||getBaseUrl())}function getTreeShareUrl(){return url_1.URLExt.normalize(url_1.URLExt.join(getShareUrl(),getOption("treeUrl")))}function getUrl(e){var t,n,r,i;let a=e.toShare?getShareUrl():getBaseUrl();const o=null!==(t=e.mode)&&void 0!==t?t:getOption("mode"),s=null!==(n=e.workspace)&&void 0!==n?n:getOption("workspace"),l="single-document"===o?"doc":"lab";a=url_1.URLExt.join(a,l),s!==PageConfig.defaultWorkspace&&(a=url_1.URLExt.join(a,"workspaces",encodeURIComponent(null!==(r=getOption("workspace"))&&void 0!==r?r:PageConfig.defaultWorkspace)));const c=null!==(i=e.treePath)&&void 0!==i?i:getOption("treePath");return c&&(a=url_1.URLExt.join(a,"tree",url_1.URLExt.encodeParts(c))),a}function getWsUrl(e){let t=getOption("wsUrl");if(!t){if(0!==(e=e?url_1.URLExt.normalize(e):getBaseUrl()).indexOf("http"))return"";t="ws"+e.slice(4)}return url_1.URLExt.normalize(t)}function getNBConvertURL({path:e,format:t,download:n}){const r=url_1.URLExt.encodeParts(e),i=url_1.URLExt.join(getBaseUrl(),"nbconvert",t,r);return n?i+"?download=true":i}function getToken(){return getOption("token")||getBodyData("jupyterApiToken")}function getNotebookVersion(){const e=getOption("notebookVersion");return""===e?[0,0,0]:JSON.parse(e)}PageConfig.getOption=getOption,PageConfig.setOption=setOption,PageConfig.getBaseUrl=getBaseUrl,PageConfig.getTreeUrl=getTreeUrl,PageConfig.getShareUrl=getShareUrl,PageConfig.getTreeShareUrl=getTreeShareUrl,PageConfig.getUrl=getUrl,PageConfig.defaultWorkspace="default",PageConfig.getWsUrl=getWsUrl,PageConfig.getNBConvertURL=getNBConvertURL,PageConfig.getToken=getToken,PageConfig.getNotebookVersion=getNotebookVersion;let configData=null;function getBodyData(e){if(typeof document>"u"||!document.body)return"";const t=document.body.dataset[e];return typeof t>"u"?"":decodeURIComponent(t)}!function(e){function t(e){try{const t=getOption(e);if(t)return JSON.parse(t)}catch(t){console.warn(`Unable to parse ${e}.`,t)}return[]}e.deferred=t("deferredExtensions"),e.disabled=t("disabledExtensions"),e.isDeferred=function(t){const n=t.indexOf(":");let r="";return-1!==n&&(r=t.slice(0,n)),e.deferred.some(e=>e===t||r&&e===r)},e.isDisabled=function(t){const n=t.indexOf(":");let r="";return-1!==n&&(r=t.slice(0,n)),e.disabled.some(e=>e===t||r&&e===r)}}(PageConfig.Extension||(PageConfig.Extension={}))}(PageConfig||(pageconfig.PageConfig=PageConfig={})),pageconfig}var path$1={},hasRequiredPath;function requirePath(){if(hasRequiredPath)return path$1;hasRequiredPath=1,Object.defineProperty(path$1,"__esModule",{value:!0}),path$1.PathExt=void 0;const e=requirePathBrowserify();var t;return function(t){function n(e){return 0===e.indexOf("/")&&(e=e.slice(1)),e}t.join=function(...t){const r=e.posix.join(...t);return"."===r?"":n(r)},t.joinWithLeadingSlash=function(...t){const n=e.posix.join(...t);return"."===n?"":n},t.basename=function(t,n){return e.posix.basename(t,n)},t.dirname=function(t){const r=n(e.posix.dirname(t));return"."===r?"":r},t.extname=function(t){return e.posix.extname(t)},t.normalize=function(t){return""===t?"":n(e.posix.normalize(t))},t.resolve=function(...t){return n(e.posix.resolve(...t))},t.relative=function(t,r){return n(e.posix.relative(t,r))},t.normalizeExtension=function(e){return e.length>0&&0!==e.indexOf(".")&&(e=`.${e}`),e},t.removeSlash=n}(t||(path$1.PathExt=t={})),path$1}var signal={},hasRequiredSignal;function requireSignal(){if(hasRequiredSignal)return signal;hasRequiredSignal=1,Object.defineProperty(signal,"__esModule",{value:!0}),signal.signalToPromise=function(t,n){const r=new e.PromiseDelegate;function i(){t.disconnect(a)}function a(e,t){i(),r.resolve([e,t])}return t.connect(a),(n??0)>0&&setTimeout(()=>{i(),r.reject(`Signal not emitted within ${n} ms.`)},n),r.promise};const e=requireDist();return signal}var text$5={},hasRequiredText;function requireText(){return hasRequiredText||(hasRequiredText=1,Object.defineProperty(text$5,"__esModule",{value:!0}),text$5.Text=void 0,(t=e||(text$5.Text=e={})).jsIndexToCharIndex=function(e,t){return e},t.charIndexToJsIndex=function(e,t){return e},t.camelCase=function(e,t=!1){return e.replace(/^(\w)|[\s-_:]+(\w)/g,function(e,n,r){return r?r.toUpperCase():t?n.toUpperCase():n.toLowerCase()})},t.titleCase=function(e){return(e||"").toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}),text$5;var e,t}var time$1={},hasRequiredTime,hasRequiredLib$1;function requireTime(){if(hasRequiredTime)return time$1;hasRequiredTime=1,Object.defineProperty(time$1,"__esModule",{value:!0}),time$1.Time=void 0;const e=[{name:"years",milliseconds:31536e6},{name:"months",milliseconds:2592e6},{name:"days",milliseconds:864e5},{name:"hours",milliseconds:36e5},{name:"minutes",milliseconds:6e4},{name:"seconds",milliseconds:1e3}];var t,n;return(n=t||(time$1.Time=t={})).formatHuman=function(t,n="long"){const r=document.documentElement.lang||"en",i=new Intl.RelativeTimeFormat(r,{numeric:"auto",style:n}),a=new Date(t).getTime()-Date.now();for(let t of e){const e=Math.ceil(a/t.milliseconds);if(0!==e)return i.format(e,t.name)}return i.format(0,"seconds")},n.format=function(e){const t=document.documentElement.lang||"en";return new Intl.DateTimeFormat(t,{dateStyle:"short",timeStyle:"short"}).format(new Date(e))},time$1}function requireLib$1(){return hasRequiredLib$1||(hasRequiredLib$1=1,function(e){var t=lib$1&&lib$1.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=lib$1&&lib$1.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(requireActivitymonitor(),e),n(requireInterfaces(),e),n(requireLru(),e),n(requireMarkdowncodeblocks(),e),n(requirePageconfig(),e),n(requirePath(),e),n(requireSignal(),e),n(requireText(),e),n(requireTime(),e),n(requireUrl(),e)}(lib$1)),lib$1}var libExports$1=requireLib$1();function _classes(e){return e.map(e=>e&&"object"==typeof e?Object.keys(e).map(t=>!!e[t]&&t):"string"==typeof e?e.split(/\s+/):[]).reduce((e,t)=>e.concat(t),[]).filter(e=>!!e)}function classes(...e){return _classes(e).join(" ")}function getReactAttrs(e,{ignore:t=[]}={}){return e.getAttributeNames().reduce((n,r)=>("style"===r||t.includes(r)||(r.startsWith("data")||r.startsWith("aria")?n[r]=e.getAttribute(r):n[libExports$1.Text.camelCase(r)]=e.getAttribute(r)),n),{})}var client={},hasRequiredClient;function requireClient(){if(hasRequiredClient)return client;hasRequiredClient=1;var e=react_dom__WEBPACK_IMPORTED_MODULE_1___default();return client.createRoot=e.createRoot,client.hydrateRoot=e.hydrateRoot,client}var clientExports=requireClient();const badSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20class='jp-icon0'%20fill='%23000'%20d='M24%2020.188l-8.315-8.209%208.2-8.282-3.697-3.697-8.212%208.318-8.31-8.203-3.666%203.666%208.321%208.24-8.206%208.313%203.666%203.666%208.237-8.318%208.285%208.203z'%20/%3e%3c/svg%3e",blankSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23000'%20fill-opacity='0.0'%20d='M24%2020.188l-8.315-8.209%208.2-8.282-3.697-3.697-8.212%208.318-8.31-8.203-3.666%203.666%208.321%208.24-8.206%208.313%203.666%203.666%208.237-8.318%208.285%208.203z'%20/%3e%3c/svg%3e",refreshSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2018%2018'%3e%3cpath%20fill='%23616161'%20d='M9%2013.5c-2.49%200-4.5-2.01-4.5-4.5S6.51%204.5%209%204.5c1.24%200%202.36.52%203.17%201.33L10%208h5V3l-1.76%201.76A6%206%200%200%200%209%203C5.69%203%203.01%205.69%203.01%209S5.69%2015%209%2015a5.98%205.98%200%200%200%205.9-5h-1.52c-.46%202-2.24%203.5-4.38%203.5'%20class='jp-icon3'/%3e%3c/svg%3e";var lib={},typestyle={};let uniqueId=0;const CSS_NUMBER=Object.create(null),CSS_NUMBER_KEYS=["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","columns","counter-increment","counter-reset","flex","flex-grow","flex-positive","flex-shrink","flex-negative","flex-order","font-weight","grid-area","grid-column","grid-column-end","grid-column-span","grid-column-start","grid-row","grid-row-end","grid-row-span","grid-row-start","line-clamp","line-height","opacity","order","orphans","tab-size","widows","z-index","zoom","fill-opacity","flood-opacity","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width"];for(const e of CSS_NUMBER_KEYS)for(const t of["-webkit-","-ms-","-moz-","-o-",""])CSS_NUMBER[t+e]=!0;function escape$1(e){return e.replace(/[ !#$%&()*+,./;<=>?@[\]^`{|}~"'\\]/g,"\\$&")}function hyphenate$1(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/^ms-/,"-ms-")}function stringHash(e){let t=5381,n=e.length;for(;n--;)t=33*t^e.charCodeAt(n);return(t>>>0).toString(36)}function styleToString(e,t){return t&&"number"==typeof t&&!CSS_NUMBER[e]?`${e}:${t}px`:`${e}:${t}`}function sortTuples(e){return e.sort((e,t)=>e[0]>t[0]?1:-1)}function parseStyles(e,t){const n=[],r=[];for(const t of Object.keys(e)){const i=t.trim(),a=e[t];36!==i.charCodeAt(0)&&null!=a&&("object"!=typeof a||Array.isArray(a)?n.push([hyphenate$1(i),a]):r.push([i,a]))}return{style:stringifyProperties(sortTuples(n)),nested:t?r:sortTuples(r),isUnique:!!e.$unique}}function stringifyProperties(e){return e.map(([e,t])=>Array.isArray(t)?t.map(t=>styleToString(e,t)).join(";"):styleToString(e,t)).join(";")}function interpolate$1(e,t){return-1===e.indexOf("&")?`${t} ${e}`:e.replace(/&/g,t)}function stylize(e,t,n,r,i){const{style:a,nested:o,isUnique:s}=parseStyles(t,""!==e);let l=a;if(64===e.charCodeAt(0)){const t={selector:e,styles:[],rules:[],style:i?"":a};n.push(t),a&&i&&t.styles.push({selector:i,style:a,isUnique:s});for(const[e,n]of o)l+=e+stylize(e,n,t.rules,t.styles,i)}else{const t=i?interpolate$1(e,i):e;a&&r.push({selector:t,style:a,isUnique:s});for(const[e,i]of o)l+=e+stylize(e,i,n,r,t)}return l}function composeStylize(e,t,n,r,i,a){for(const{selector:n,style:o,isUnique:s}of r){const r=a?interpolate$1(n,i):n,l=s?`u\0${(++uniqueId).toString(36)}`:`s\0${t}\0${o}`,c=new Style$2(o,l);c.add(new Selector(r,`k\0${t}\0${r}`)),e.add(c)}for(const{selector:r,style:o,rules:s,styles:l}of n){const n=new Rule$2(r,o,`r\0${t}\0${r}\0${o}`);composeStylize(n,t,s,l,i,a),e.add(n)}}function join(e){let t="";for(let n=0;n<e.length;n++)t+=e[n];return t}const noopChanges={add:()=>{},change:()=>{},remove:()=>{}};class Cache{constructor(e=noopChanges){this.changes=e,this.sheet=[],this.changeId=0,this._keys=[],this._children=Object.create(null),this._counters=Object.create(null)}add(e){const t=this._counters[e.id]||0,n=this._children[e.id]||e.clone();if(this._counters[e.id]=t+1,0===t)this._children[n.id]=n,this._keys.push(n.id),this.sheet.push(n.getStyles()),this.changeId++,this.changes.add(n,this._keys.length-1);else if(n instanceof Cache&&e instanceof Cache){const t=this._keys.indexOf(e.id),r=n.changeId;n.merge(e),n.changeId!==r&&(this.sheet.splice(t,1,n.getStyles()),this.changeId++,this.changes.change(n,t,t))}}remove(e){const t=this._counters[e.id];if(t){this._counters[e.id]=t-1;const n=this._children[e.id],r=this._keys.indexOf(n.id);if(1===t)delete this._counters[e.id],delete this._children[e.id],this._keys.splice(r,1),this.sheet.splice(r,1),this.changeId++,this.changes.remove(n,r);else if(n instanceof Cache&&e instanceof Cache){const t=n.changeId;n.unmerge(e),n.changeId!==t&&(this.sheet.splice(r,1,n.getStyles()),this.changeId++,this.changes.change(n,r,r))}}}values(){return this._keys.map(e=>this._children[e])}merge(e){for(const t of e.values())this.add(t);return this}unmerge(e){for(const t of e.values())this.remove(t);return this}clone(){return(new Cache).merge(this)}}class Selector{constructor(e,t){this.selector=e,this.id=t}getStyles(){return this.selector}clone(){return this}}let Style$2=class e extends Cache{constructor(e,t){super(),this.style=e,this.id=t}getStyles(){return`${this.sheet.join(",")}{${this.style}}`}clone(){return new e(this.style,this.id).merge(this)}},Rule$2=class e extends Cache{constructor(e,t,n){super(),this.rule=e,this.style=t,this.id=n}getStyles(){return`${this.rule}{${this.style}${join(this.sheet)}}`}clone(){return new e(this.rule,this.style,this.id).merge(this)}};function key$1(e,t){return`f${stringHash(e)}`}class FreeStyle extends Cache{constructor(e,t){super(t),this.id=e}registerStyle(e){const t=[],n=[],r=stylize("&",e,t,n),i=key$1(r,e);return composeStylize(this,r,t,n,`.${i}`,!0),i}registerKeyframes(e){return this.registerHashRule("@keyframes",e)}registerHashRule(e,t){const n=[],r=[],i=stylize("",t,n,r),a=key$1(i,t),o=new Rule$2(`${e} ${a}`,"",`h\0${i}\0${e}`);return composeStylize(o,i,n,r,"",!1),this.add(o),a}registerRule(e,t){const n=[],r=[];composeStylize(this,stylize(e,t,n,r),n,r,"",!1)}registerCss(e){return this.registerRule("",e)}getStyles(){return join(this.sheet)}clone(){return new FreeStyle(this.id,this.changes).merge(this)}}function create$1(e){return new FreeStyle(`f${(++uniqueId).toString(36)}`,e)}const dist_es2015=Object.freeze(Object.defineProperty({__proto__:null,Cache,FreeStyle,Rule:Rule$2,Selector,Style:Style$2,create:create$1},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(dist_es2015);var formatting={},hasRequiredFormatting;function requireFormatting(){return hasRequiredFormatting||(hasRequiredFormatting=1,Object.defineProperty(formatting,"__esModule",{value:!0}),formatting.convertToStyles=function e(t){var n={};for(var r in t){var i=t[r];if("$nest"===r){var a=i;for(var o in a){var s=a[o];n[o]=e(s)}}else"$debugName"===r?n.$displayName=i:n[r]=i}return n},formatting.convertToKeyframes=function(e){var t={};for(var n in e)"$debugName"!==n&&(t[n]=e[n]);return e.$debugName&&(t.$displayName=e.$debugName),t}),formatting}var utilities={},hasRequiredUtilities,hasRequiredTypestyle;function requireUtilities(){if(hasRequiredUtilities)return utilities;function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r={},i=0,a=t;i<a.length;i++){var o=a[i];if(null!=o&&!1!==o)for(var s in o){var l=o[s];!l&&0!==l||("$nest"===s&&l?r[s]=r.$nest?e(r.$nest,l):l:-1!==s.indexOf("&")||0===s.indexOf("@media")?r[s]=r[s]?e(r[s],l):l:r[s]=l)}}return r}hasRequiredUtilities=1,Object.defineProperty(utilities,"__esModule",{value:!0}),utilities.raf=typeof requestAnimationFrame>"u"?function(e){return setTimeout(e)}:typeof window>"u"?requestAnimationFrame:requestAnimationFrame.bind(window),utilities.classes=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.map(function(e){return e&&"object"==typeof e?Object.keys(e).map(function(t){return!!e[t]&&t}):[e]}).reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return!!e}).join(" ")},utilities.extend=e,utilities.media=function(n){for(var r,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];var o=[];return n.type&&o.push(n.type),n.orientation&&o.push("(orientation: "+n.orientation+")"),n.minWidth&&o.push("(min-width: "+t(n.minWidth)+")"),n.maxWidth&&o.push("(max-width: "+t(n.maxWidth)+")"),n.minHeight&&o.push("(min-height: "+t(n.minHeight)+")"),n.maxHeight&&o.push("(max-height: "+t(n.maxHeight)+")"),n.prefersColorScheme&&o.push("(prefers-color-scheme: "+n.prefersColorScheme+")"),{$nest:(r={},r["@media "+o.join(" and ")]=e.apply(void 0,i),r)}};var t=function(e){return"string"==typeof e?e:e+"px"};return utilities}function requireTypestyle(){if(hasRequiredTypestyle)return typestyle;hasRequiredTypestyle=1,Object.defineProperty(typestyle,"__esModule",{value:!0});var e=require$$0,t=requireFormatting(),n=requireUtilities(),r=function(){return e.create()},i=function(){function e(e){var i=this,a=e.autoGenerateTag;this.cssRaw=function(e){e&&(i._raw+=e||"",i._pendingRawChange=!0,i._styleUpdated())},this.cssRule=function(e){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];var o=t.convertToStyles(n.extend.apply(void 0,r));i._freeStyle.registerRule(e,o),i._styleUpdated()},this.forceRenderStyles=function(){var e=i._getTag();e&&(e.textContent=i.getStyles())},this.fontFace=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=i._freeStyle,r=0,a=e;r<a.length;r++){var o=a[r];n.registerRule("@font-face",o)}i._styleUpdated()},this.getStyles=function(){return(i._raw||"")+i._freeStyle.getStyles()},this.keyframes=function(e){var n=t.convertToKeyframes(e),r=i._freeStyle.registerKeyframes(n);return i._styleUpdated(),r},this.reinit=function(){var e=r();i._freeStyle=e,i._lastFreeStyleChangeId=e.changeId,i._raw="",i._pendingRawChange=!1;var t=i._getTag();t&&(t.textContent="")},this.setStylesTarget=function(e){i._tag&&(i._tag.textContent=""),i._tag=e,i.forceRenderStyles()},this.stylesheet=function(e){for(var t={},n=0,r=Object.getOwnPropertyNames(e);n<r.length;n++){var a=r[n],o=e[a];o&&(o.$debugName=a,t[a]=i.style(o))}return t};var o=r();this._autoGenerateTag=a,this._freeStyle=o,this._lastFreeStyleChangeId=o.changeId,this._pending=0,this._pendingRawChange=!1,this._raw="",this._tag=void 0,this.style=this.style.bind(this)}return e.prototype._afterAllSync=function(e){var t=this;this._pending++;var r=this._pending;n.raf(function(){r===t._pending&&e()})},e.prototype._getTag=function(){if(this._tag)return this._tag;if(this._autoGenerateTag){var e=typeof window>"u"?{textContent:""}:document.createElement("style");return typeof document<"u"&&document.head.appendChild(e),this._tag=e,e}},e.prototype._styleUpdated=function(){var e=this,t=this._freeStyle.changeId,n=this._lastFreeStyleChangeId;!this._pendingRawChange&&t===n||(this._lastFreeStyleChangeId=t,this._pendingRawChange=!1,this._afterAllSync(function(){return e.forceRenderStyles()}))},e.prototype.style=function(){var e=this._freeStyle.registerStyle(t.convertToStyles(n.extend.apply(void 0,arguments)));return this._styleUpdated(),e},e}();return typestyle.TypeStyle=i,typestyle}var types$1={},hasRequiredTypes,hasRequiredLib;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,Object.defineProperty(types$1,"__esModule",{value:!0})),types$1}function requireLib(){if(hasRequiredLib)return lib;hasRequiredLib=1,Object.defineProperty(lib,"__esModule",{value:!0});var e=requireTypestyle();lib.TypeStyle=e.TypeStyle;var t=requireTypes();lib.types=t;var n=requireUtilities();lib.extend=n.extend,lib.classes=n.classes,lib.media=n.media;var r=new e.TypeStyle({autoGenerateTag:!0});return lib.setStylesTarget=r.setStylesTarget,lib.cssRaw=r.cssRaw,lib.cssRule=r.cssRule,lib.forceRenderStyles=r.forceRenderStyles,lib.fontFace=r.fontFace,lib.getStyles=r.getStyles,lib.keyframes=r.keyframes,lib.reinit=r.reinit,lib.style=r.style,lib.stylesheet=r.stylesheet,lib.createTypeStyle=function(t){var n=new e.TypeStyle({autoGenerateTag:!1});return t&&n.setStylesTarget(t),n},lib}var libExports=requireLib(),LabIconStyle,Private;!function(e){const t={breadCrumb:{container:{$nest:{"&:first-child svg":{bottom:"1px",marginLeft:"0px",position:"relative"},"&:hover":{backgroundColor:"var(--jp-layout-color2)"},".jp-mod-dropTarget&":{backgroundColor:"var(--jp-brand-color2)",opacity:.7}}},element:{borderRadius:"var(--jp-border-radius)",cursor:"pointer",margin:"0px 2px",padding:"0px 2px",height:"16px",width:"16px",verticalAlign:"middle"}},commandPaletteHeader:{container:{height:"14px",margin:"0 14px 0 auto"},element:{height:"14px",width:"14px"},options:{elementPosition:"center"}},commandPaletteItem:{element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},launcherCard:{container:{height:"52px",width:"52px"},element:{height:"52px",width:"52px"},options:{elementPosition:"center"}},launcherSection:{container:{boxSizing:"border-box",marginRight:"12px",height:"32px",width:"32px"},element:{height:"32px",width:"32px"},options:{elementPosition:"center"}},listing:{container:{flex:"0 0 20px",marginRight:"4px",position:"relative"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},listingHeaderItem:{container:{display:"inline",height:"16px",width:"16px"},element:{height:"auto",margin:"-2px 0 0 0",width:"20px"},options:{elementPosition:"center"}},mainAreaTab:{container:{$nest:{".lm-DockPanel-tabBar &":{marginRight:"4px"}}},element:{$nest:{".lm-DockPanel-tabBar &":{height:"14px",width:"14px"}}},options:{elementPosition:"center"}},menuItem:{container:{display:"inline-block",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},runningItem:{container:{margin:"0px 4px 0px 4px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},select:{container:{pointerEvents:"none"},element:{position:"absolute",height:"auto",width:"16px"}},settingsEditor:{container:{display:"flex",flex:"0 0 20px",margin:"0 3px 0 0",position:"relative",height:"20px",width:"20px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},sideBar:{element:{height:"auto",width:"20px"},options:{elementPosition:"center"}},splash:{container:{animation:"0.3s fade-in linear forwards",height:"100%",width:"100%",zIndex:1},element:{width:"100px"},options:{elementPosition:"center"}},statusBar:{element:{left:"0px",top:"0px",height:"18px",width:"20px",position:"relative"}},toolbarButton:{container:{display:"inline-block",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}}};function n(e){return{container:{alignItems:"center",display:"flex"},element:{display:"block",...e}}}const r={center:n({margin:"0 auto",width:"100%"}),top:n({margin:"0 0 auto 0"}),right:n({margin:"0 0 0 auto"}),bottom:n({margin:"auto 0 0 0"}),left:n({margin:"0 auto 0 0"}),"top right":n({margin:"0 0 auto auto"}),"bottom right":n({margin:"auto 0 0 auto"}),"bottom left":n({margin:"auto auto 0 0"}),"top left":n({margin:"0 auto 0 auto"})};function i(e){return{element:{height:e,width:e}}}const a={small:i("14px"),normal:i("16px"),large:i("20px"),xlarge:i("24px")};const o=new Map;e.styleClass=function(e){if(!e||0===Object.keys(e).length)return"";let{elementPosition:n,elementSize:i,stylesheet:s,...l}=e;const c={...n&&{elementPosition:n},...i&&{elementSize:i}},u="string"==typeof s&&0===Object.keys(l).length,d=u?[s,n,i].join(","):"";if(u&&o.has(d))return o.get(d);const m=function(e){return e?(Array.isArray(e)||(e=[e]),e.map(e=>"string"==typeof e?t[e]:e)):[]}(s);m.push({element:l,options:c});const h=function(e){var t;return libExports.style({...e.container,$nest:{...null===(t=e.container)||void 0===t?void 0:t.$nest,svg:e.element}})}(function(e){const t=Object.assign({},...e.map(e=>e.options));return t.elementPosition&&e.unshift(r[t.elementPosition]),t.elementSize&&e.unshift(a[t.elementSize]),function(e){return{container:Object.assign({},...e.map(e=>e.container)),element:Object.assign({},...e.map(e=>e.element))}}(e)}(m));return u&&o.set(d,h),h}}(LabIconStyle||(LabIconStyle={}));class LabIcon{static remove(e){for(;e.firstChild;)e.firstChild.remove();return e.className="",e}static resolve({icon:e}){return e instanceof LabIcon?e:"string"==typeof e?LabIcon._instances.get(e)||(LabIcon._debug&&console.warn(`Lookup failed for icon, creating loading icon. icon: ${e}`),new LabIcon({name:e,svgstr:refreshSvgstr,_loading:!0})):new LabIcon(e)}static resolveElement({icon:e,iconClass:t,fallback:n,...r}){return Private.isResolvable(e)?LabIcon.resolve({icon:e}).element(r):!t&&n?n.element(r):(r.className=classes(t,r.className),Private.blankElement(r))}static resolveReact({icon:e,iconClass:t,fallback:n,...r}){if(!Private.isResolvable(e))return!t&&n?react__WEBPACK_IMPORTED_MODULE_0___default().createElement(n.react,{...r}):(r.className=classes(t,r.className),react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Private.blankReact,{...r}));const i=LabIcon.resolve({icon:e});return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(i.react,{...r})}static resolveSvg({name:e,svgstr:t}){const n=(new DOMParser).parseFromString(Private.svgstrShim(t),"image/svg+xml"),r=n.querySelector("parsererror");if(r){const n=`SVG HTML was malformed for LabIcon instance.\nname: ${e}, svgstr: ${t}`;return LabIcon._debug?(console.error(n),r):(console.warn(n),null)}return n.documentElement}static toggleDebug(e){LabIcon._debug=e??!LabIcon._debug}constructor({name:e,svgstr:t,render:n,unrender:r,_loading:i=!1}){if(this._props={},this._svgReplaced=new Signal(this),this._svgElement=void 0,this._svgInnerHTML=void 0,this._svgReactAttrs=void 0,!e||!t)return console.error(`When defining a new LabIcon, name and svgstr must both be non-empty strings. name: ${e}, svgstr: ${t}`),badIcon;if(this._loading=i,LabIcon._instances.has(e)){const n=LabIcon._instances.get(e);return this._loading?(n.svgstr=t,this._loading=!1,n):(LabIcon._debug&&console.warn(`Redefining previously loaded icon svgstr. name: ${e}, svgstrOld: ${n.svgstr}, svgstr: ${t}`),n.svgstr=t,n)}this.name=e,this.react=this._initReact(e),this.svgstr=t,this._initRender({render:n,unrender:r}),LabIcon._instances.set(this.name,this)}bindprops(e){const t=Object.create(this);return t._props=e,t.react=t._initReact(t.name+"_bind"),t}element(e={}){var t;let{className:n,container:r,label:i,title:a,tag:o="div",...s}={...this._props,...e};const l=null==r?void 0:r.firstChild;if((null===(t=null==l?void 0:l.dataset)||void 0===t?void 0:t.iconId)===this._uuid)return l;if(!this.svgElement)return document.createElement("div");if(r)for(;r.firstChild;)r.firstChild.remove();else o&&(r=document.createElement(o));const c=this.svgElement.cloneNode(!0);return r?(null!=i&&(r.textContent=i),Private.initContainer({container:r,className:n,styleProps:s,title:a}),r.appendChild(c),r):(i&&console.warn(),c)}render(e,t){var n;let r=null===(n=null==t?void 0:t.children)||void 0===n?void 0:n[0];"string"!=typeof r&&(r=void 0),this.element({container:e,label:r,...null==t?void 0:t.props})}get svgElement(){return void 0===this._svgElement&&(this._svgElement=this._initSvg({uuid:this._uuid})),this._svgElement}get svgInnerHTML(){return void 0===this._svgInnerHTML&&(null===this.svgElement?this._svgInnerHTML=null:this._svgInnerHTML=this.svgElement.innerHTML),this._svgInnerHTML}get svgReactAttrs(){return void 0===this._svgReactAttrs&&(null===this.svgElement?this._svgReactAttrs=null:this._svgReactAttrs=getReactAttrs(this.svgElement,{ignore:["data-icon-id"]})),this._svgReactAttrs}get svgstr(){return this._svgstr}set svgstr(e){this._svgstr=e;const t=UUID.uuid4(),n=this._uuid;this._uuid=t,this._svgElement=void 0,this._svgInnerHTML=void 0,this._svgReactAttrs=void 0,document.querySelectorAll(`[data-icon-id="${n}"]`).forEach(e=>{this.svgElement&&e.replaceWith(this.svgElement.cloneNode(!0))}),this._svgReplaced.emit()}_initReact(e){const t=react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef((e={},t)=>{const{className:n,container:r,label:i,title:a,slot:o,tag:s="div",...l}={...this._props,...e},[,c]=react__WEBPACK_IMPORTED_MODULE_0___default().useState(this._uuid);react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(()=>{const e=()=>{c(this._uuid)};return this._svgReplaced.connect(e),()=>{this._svgReplaced.disconnect(e)}});const u=s??react__WEBPACK_IMPORTED_MODULE_0___default().Fragment;if(!this.svgInnerHTML||!this.svgReactAttrs)return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment,null);const d={...this.svgReactAttrs};s||Object.assign(d,{className:n||l?classes(n,LabIconStyle.styleClass(l)):void 0,title:a,slot:o});const m=react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg",{...d,...this.svgReactAttrs,dangerouslySetInnerHTML:{__html:this.svgInnerHTML},ref:t});if(r)return Private.initContainer({container:r,className:n,styleProps:l,title:a}),react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment,null,m,i);{let e={};return u!==react__WEBPACK_IMPORTED_MODULE_0___default().Fragment&&(e={className:n||l?classes(n,LabIconStyle.styleClass(l)):void 0,title:a,slot:o}),react__WEBPACK_IMPORTED_MODULE_0___default().createElement(u,{...e},m,i)}});return t.displayName=`LabIcon_${e}`,t}_initRender({render:e,unrender:t}){e?(this.render=e,t&&(this.unrender=t)):t&&console.warn("In _initRender, ignoring unrender arg since render is undefined")}_initSvg({title:e,uuid:t}={}){const n=LabIcon.resolveSvg(this);return n&&("parsererror"!==n.tagName&&(n.dataset.icon=this.name,t&&(n.dataset.iconId=t),e?Private.setTitleSvg(n,e):n.setAttribute("aria-hidden","true")),n)}}LabIcon._debug=!1,LabIcon._instances=new Map,function(e){function t({container:e,className:t,styleProps:n,title:r}){null!=r&&(e.title=r);const i=LabIconStyle.styleClass(n);if(null!=t){const n=classes(t,i);return e.className=n,n}return i?(e.classList.add(i),i):""}e.blankElement=function({className:t="",container:n,label:r,title:i,tag:a="div",slot:o,...s}){if((null==n?void 0:n.className)===t)return n;if(n)for(;n.firstChild;)n.firstChild.remove();else n=document.createElement(a??"div");return null!=r&&(n.textContent=r),e.initContainer({container:n,className:t,styleProps:s,title:i}),n},e.blankReact=react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(({className:e="",container:n,label:r,title:i,tag:a="div",...o},s)=>{const l=a??"div";return n?(t({container:n,className:e,styleProps:o,title:i}),react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment,null)):react__WEBPACK_IMPORTED_MODULE_0___default().createElement(l,{className:classes(e,LabIconStyle.styleClass(o))},s&&blankIcon.react({ref:s}),r)}),e.blankReact.displayName="BlankReact",e.initContainer=t,e.isResolvable=function(e){return!(!e||!("string"==typeof e||e.name&&e.svgstr))},e.setTitleSvg=function(e,t){const n=e.getElementsByTagName("title");if(n.length)n[0].textContent=t;else{const n=document.createElement("title");n.textContent=t,e.appendChild(n)}},e.svgstrShim=function(e,t=!0){const[,n,r]=decodeURIComponent(e).replace(/>\s*\n\s*</g,"><").replace(/\s*\n\s*/g," ").match(t?/^(?:data:.*?(;base64)?,)?(.*)/:/(?:(base64).*)?(<svg.*)/);return n?atob(r):r};class n{constructor(e,t){this._icon=e,this._rendererOptions=t}render(e,t){}}e.Renderer=n,e.ElementRenderer=class extends n{render(e,t){var n,r;let i=null===(n=null==t?void 0:t.children)||void 0===n?void 0:n[0];"string"!=typeof i&&(i=void 0),this._icon.element({container:e,label:i,...null===(r=this._rendererOptions)||void 0===r?void 0:r.props,...null==t?void 0:t.props})}},e.ReactRenderer=class extends n{constructor(){super(...arguments),this._rootDOM=null}render(e,t){var n,r;let i=null===(n=null==t?void 0:t.children)||void 0===n?void 0:n[0];"string"!=typeof i&&(i=void 0);const a=this._icon;null!==this._rootDOM&&this._rootDOM.unmount(),this._rootDOM=clientExports.createRoot(e),this._rootDOM.render(react__WEBPACK_IMPORTED_MODULE_0___default().createElement(a.react,{container:e,label:i,...null===(r=this._rendererOptions)||void 0===r?void 0:r.props,...null==t?void 0:t.props}))}unrender(e){null!==this._rootDOM&&(this._rootDOM.unmount(),this._rootDOM=null)}}}(Private||(Private={}));const badIcon=new LabIcon({name:"ui-components:bad",svgstr:badSvgstr}),blankIcon=new LabIcon({name:"ui-components:blank",svgstr:blankSvgstr}),addAboveSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20fill='none'%20viewBox='0%200%2014%2014'%3e%3cg%20clip-path='url(%23addabovea)'%3e%3cpath%20fill='%23616161'%20stroke='%23616161'%20stroke-width='.7'%20d='M4.75%204.93h1.875v1.876c0%20.206.169.375.375.375a.376.376%200%200%200%20.375-.375V4.93H9.25a.376.376%200%200%200%20.375-.375.376.376%200%200%200-.375-.375H7.375V2.306A.376.376%200%200%200%207%201.93a.376.376%200%200%200-.375.375V4.18H4.75a.376.376%200%200%200-.375.375c0%20.206.169.375.375.375Z'%20class='jp-icon3'/%3e%3c/g%3e%3cpath%20fill='%23616161'%20fill-rule='evenodd'%20d='M11.5%209.5v2h-9v-2zM12%208a1%201%200%200%201%201%201v3a1%201%200%200%201-1%201H2a1%201%200%200%201-1-1V9a1%201%200%200%201%201-1z'%20class='jp-icon3'%20clip-rule='evenodd'/%3e%3cdefs%3e%3cclipPath%20id='addabovea'%3e%3cpath%20fill='%23fff'%20d='M10%201.556H4v6h6z'%20class='jp-icon3'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",addBelowSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20fill='none'%20viewBox='0%200%2014%2014'%3e%3cg%20clip-path='url(%23addbelowa)'%3e%3cpath%20fill='%23616161'%20stroke='%23616161'%20stroke-width='.7'%20d='M9.25%2010.07H7.375V8.193A.376.376%200%200%200%207%207.82a.376.376%200%200%200-.375.375v1.875H4.75a.376.376%200%200%200-.375.375c0%20.207.169.375.375.375h1.875v1.875c0%20.207.169.375.375.375a.376.376%200%200%200%20.375-.375V10.82H9.25a.376.376%200%200%200%20.375-.375.376.376%200%200%200-.375-.375Z'%20class='jp-icon3'/%3e%3c/g%3e%3cpath%20fill='%23616161'%20fill-rule='evenodd'%20d='M2.5%205.5v-2h9v2zM2%207a1%201%200%200%201-1-1V3a1%201%200%200%201%201-1h10a1%201%200%200%201%201%201v3a1%201%200%200%201-1%201z'%20class='jp-icon3'%20clip-rule='evenodd'/%3e%3cdefs%3e%3cclipPath%20id='addbelowa'%3e%3cpath%20fill='%23fff'%20d='M4%2013.444h6v-6H4z'%20class='jp-icon3'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",addSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M19%2013h-6v6h-2v-6H5v-2h6V5h2v6h6z'%20class='jp-icon3'/%3e%3c/svg%3e",bellSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20version='1.1'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23333'%20d='M8%20.29c-1.4%200-2.7.73-3.6%201.8-1.2%201.5-1.4%203.4-1.5%205.2-.18%202.2-.44%204-2.3%205.3l.28%201.3h5c.026.66.32%201.1.71%201.5.84.61%202%20.61%202.8%200%20.52-.4.6-1%20.71-1.5h5l.28-1.3c-1.9-.97-2.2-3.3-2.3-5.3-.13-1.8-.26-3.7-1.5-5.2-.85-1-2.2-1.8-3.6-1.8zm0%201.4c.88%200%201.9.55%202.5%201.3.88%201.1%201.1%202.7%201.2%204.4.13%201.7.23%203.6%201.3%205.2H3c1.1-1.6%201.2-3.4%201.3-5.2.13-1.7.3-3.3%201.2-4.4.59-.72%201.6-1.3%202.5-1.3m-.74%2012h1.5c-.001.28.015.79-.74.79-.73.002-.72-.53-.74-.79z'%20class='jp-icon2%20jp-icon-selectable'/%3e%3c/svg%3e",bugDotSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cg%20fill='%23616161'%20class='jp-icon3%20jp-icon-selectable'%3e%3cpath%20fill-rule='evenodd'%20d='M17.19%208H20v2h-2.09c.05.33.09.66.09%201v1h2v2h-2v.027a4.5%204.5%200%200%200-3.545%206.447A5.997%205.997%200%200%201%206.81%2018H4v-2h2.09c-.05-.33-.09-.66-.09-1v-1H4v-2h2v-1c0-.34.04-.67.09-1H4V8h2.81c.45-.78%201.07-1.45%201.81-1.96L7%204.41%208.41%203l2.18%202.17c.45-.11.92-.17%201.41-.17s.96.06%201.42.17L15.59%203%2017%204.41l-1.63%201.63c.75.51%201.37%201.18%201.82%201.96M10%2016h4v-2h-4zm0-4h4v-2h-4z'%20clip-rule='evenodd'/%3e%3cpath%20d='M22%2018.5a3.5%203.5%200%201%201-7%200%203.5%203.5%200%200%201%207%200'/%3e%3c/g%3e%3c/svg%3e",bugSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M20%208h-2.81a6%206%200%200%200-1.82-1.96L17%204.41%2015.59%203l-2.17%202.17C12.96%205.06%2012.49%205%2012%205s-.96.06-1.41.17L8.41%203%207%204.41l1.62%201.63C7.88%206.55%207.26%207.22%206.81%208H4v2h2.09c-.05.33-.09.66-.09%201v1H4v2h2v1c0%20.34.04.67.09%201H4v2h2.81c1.04%201.79%202.97%203%205.19%203s4.15-1.21%205.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6%208h-4v-2h4zm0-4h-4v-2h4z'%20class='jp-icon3%20jp-icon-selectable'/%3e%3c/svg%3e",buildSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M14.9%2017.45c1.35%200%202.45-1.1%202.45-2.45s-1.1-2.45-2.45-2.45c-1.36%200-2.45%201.1-2.45%202.45s1.09%202.45%202.45%202.45m5.2-1.77%201.48%201.16c.13.11.17.29.08.45l-1.4%202.42a.35.35%200%200%201-.43.15l-1.74-.7c-.36.28-.76.51-1.18.69l-.27%201.85c-.02.17-.17.3-.34.3h-2.8c-.18%200-.32-.13-.35-.3l-.26-1.85c-.43-.18-.82-.41-1.18-.69l-1.75.7c-.15.06-.34%200-.42-.15l-1.4-2.42a.35.35%200%200%201%20.08-.45l1.48-1.16-.05-.68.05-.69-1.48-1.15a.35.35%200%200%201-.08-.45l1.4-2.42c.08-.16.27-.22.42-.16l1.75.71c.36-.28.75-.52%201.18-.69l.26-1.86c.03-.16.17-.29.35-.29h2.8c.17%200%20.32.13.34.29l.27%201.86c.42.17.82.41%201.18.69l1.74-.71c.17-.06.34%200%20.43.16l1.4%202.42c.09.15.05.34-.08.45l-1.48%201.15.05.69zM7.33%207.445A1.566%201.566%200%200%200%207.904%205.3a1.575%201.575%200%201%200-.574%202.145m2.327-2.65%201.21.157c.096.025.173.12.171.236v1.8a.214.214%200%200%201-.183.223l-1.195.17-.42.75.43%201.126c.037.106%200%20.22-.096.275l-1.559.9a.23.23%200%200%201-.294-.05l-.734-.95-.878-.001-.762.96c-.058.08-.173.1-.275.043l-1.56-.901a.23.23%200%200%201-.101-.276l.452-1.116-.246-.366-.194-.396-1.192-.166a.23.23%200%200%201-.189-.226V5.186c.002-.117.077-.206.175-.217l1.204-.175.446-.766-.456-1.11a.23.23%200%200%201%20.104-.28l1.56-.9a.225.225%200%200%201%20.285.054l.76.936.86.01.745-.949a.214.214%200%200%201%20.284-.048l1.56.9a.24.24%200%200%201%20.118.267l-.47%201.126.246.366z'%20class='jp-icon3'/%3e%3c/svg%3e",caretDownEmptySvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2018%2018'%3e%3cpath%20fill='%23616161'%20d='M5.2%205.9%209%209.7l3.8-3.8L14%207.1l-4.9%205-4.9-5z'%20class='jp-icon3'%20shape-rendering='geometricPrecision'/%3e%3c/svg%3e",caretDownEmptyThinSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2020%2020'%3e%3cpath%20fill='%23616161'%20d='M9.9%2013.6%203.6%207.4l.8-.8%205.5%205.6%205.5-5.5.7.7z'%20class='jp-icon3'%20shape-rendering='geometricPrecision'/%3e%3c/svg%3e",caretDownSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2018%2018'%3e%3cpath%20fill='%23616161'%20d='M5.2%207.5%209%2011.2l3.8-3.8H5.2z'%20class='jp-icon3'%20shape-rendering='geometricPrecision'/%3e%3c/svg%3e",caretLeftSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2018%2018'%3e%3cpath%20fill='%23616161'%20d='M10.8%2012.8%207.1%209l3.8-3.8v7.6z'%20class='jp-icon3'%20shape-rendering='geometricPrecision'/%3e%3c/svg%3e",caretRightSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2018%2018'%3e%3cpath%20fill='%23616161'%20d='M7.2%205.2%2010.9%209l-3.8%203.8V5.2z'%20class='jp-icon3'%20shape-rendering='geometricPrecision'/%3e%3c/svg%3e",caretUpEmptyThinSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2020%2020'%3e%3cpath%20fill='%23616161'%20d='M15.4%2013.3%209.9%207.7l-5.5%205.5-.8-.7%206.3-6.2%206.2%206.3z'%20class='jp-icon3'%20shape-rendering='geometricPrecision'/%3e%3c/svg%3e",caretUpSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2018%2018'%3e%3cpath%20fill='%23616161'%20d='M5.2%2010.5%209%206.8l3.8%203.8H5.2z'%20class='jp-icon3'%20shape-rendering='geometricPrecision'/%3e%3c/svg%3e",caseSensitiveSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2020%2020'%3e%3cpath%20fill='%23414141'%20d='M2%202h16v16H2z'%20class='jp-icon2'/%3e%3cpath%20fill='%23FFF'%20d='M7.6%208h.9l3.5%208h-1.1l-.9-2H6l-.9%202H4zM8%209.1%206.4%2013h3.2zm8.6.7c-.2.1-.4.1-.7.1-.2%200-.4-.1-.6-.2-.1-.1-.2-.4-.2-.7-.3.3-.6.5-.9.7-.3.1-.7.2-1.1.2-.3%200-.5%200-.7-.1l-.6-.3c-.2-.1-.3-.3-.4-.5s-.1-.4-.1-.7.1-.6.2-.8.3-.4.4-.5c.1%200%20.3-.1.6-.2.2-.1.5-.1.7-.2.3-.1.5-.1.7-.1s.4-.1.6-.1.3-.1.4-.2.2-.2.2-.4c0-1-1.1-1-1.3-1-.4%200-1.4%200-1.4%201.2h-.9c0-.4.1-.7.2-1%20.1-.2.3-.4.5-.6s.5-.3.8-.3c.3-.1.6-.1.9-.1s.5%200%20.8.1c.3%200%20.5.1.7.2s.4.3.5.5.1.4.1.8V9c0%20.1.1.2.3.2h.3zm-1.4-2.9c-1.2.6-3.1.2-3.1%201.4%200%201.4%203.1%201%203.1-.5z'%20class='jp-icon-accent2'/%3e%3c/svg%3e",checkSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M9%2016.17%204.83%2012l-1.42%201.41L9%2019%2021%207l-1.41-1.41z'%20class='jp-icon3%20jp-icon-selectable'/%3e%3c/svg%3e",circleEmptySvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M12%202C6.47%202%202%206.47%202%2012s4.47%2010%2010%2010%2010-4.47%2010-10S17.53%202%2012%202m0%2018c-4.41%200-8-3.59-8-8s3.59-8%208-8%208%203.59%208%208-3.59%208-8%208'%20class='jp-icon3'/%3e%3c/svg%3e",circleSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2018%2018'%3e%3ccircle%20cx='9'%20cy='9'%20r='8'%20fill='%23616161'%20class='jp-icon3'/%3e%3c/svg%3e",cleaningSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M16%2011h-1V3c0-1.1-.9-2-2-2h-2c-1.1%200-2%20.9-2%202v8H8c-2.76%200-5%202.24-5%205v7h18v-7c0-2.76-2.24-5-5-5m3%2010h-2v-3c0-.55-.45-1-1-1s-1%20.45-1%201v3h-2v-3c0-.55-.45-1-1-1s-1%20.45-1%201v3H9v-3c0-.55-.45-1-1-1s-1%20.45-1%201v3H5v-5c0-1.65%201.35-3%203-3h8c1.65%200%203%201.35%203%203z'%20class='jp-icon3'/%3e%3c/svg%3e",clearSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cmask%20id='cleara'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3ccircle%20cx='12'%20cy='12'%20r='8'%20fill='%23000'/%3e%3c/mask%3e%3cg%20fill='%23616161'%20class='jp-icon3'%3e%3cpath%20d='M4.929%206.343%206.343%204.93l12.728%2012.728-1.414%201.414z'/%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%20mask='url(%23cleara)'/%3e%3c/g%3e%3c/svg%3e",closeAllSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cg%20fill='%23616161'%20class='jp-icon3'%3e%3cpath%20d='M16.48%2017.248A7.5%207.5%200%200%200%206.32%207.706a7%207%200%201%201%2010.16%209.542'/%3e%3cpath%20d='M19.16%2014.248A7.5%207.5%200%200%200%209%204.706a7%207%200%201%201%2010.16%209.542M16%2015a7%207%200%201%201-14%200%207%207%200%200%201%2014%200m-4.209-4L13%2012.209%2010.209%2015%2013%2017.791%2011.791%2019%209%2016.209%206.209%2019%205%2017.791%207.791%2015%205%2012.209%206.209%2011%209%2013.791z'/%3e%3c/g%3e%3c/svg%3e",closeSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3ccircle%20cx='12'%20cy='12'%20r='11'%20fill='none'%20class='jp-icon-none%20jp-icon-selectable-inverse%20jp-icon3-hover'/%3e%3cpath%20fill='%23616161'%20d='M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z'%20class='jp-icon3%20jp-icon-selectable%20jp-icon-accent2-hover'/%3e%3ccircle%20cx='12'%20cy='12'%20r='7'%20fill='none'%20class='jp-icon-none%20jp-icon-busy'/%3e%3c/svg%3e",codeCheckSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M6.59%203.41%202%208l4.59%204.6L8%2011.18%204.82%208%208%204.82zm5.82%200L11%204.82%2014.18%208%2011%2011.18l1.41%201.42L17%208zm9.18%208.18-8.09%208.09L9.83%2016l-1.41%201.41%205.08%205.09L23%2013z'%20class='jp-icon3%20jp-icon-selectable'%20shape-rendering='geometricPrecision'/%3e%3c/svg%3e",codeSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='22'%20height='22'%20viewBox='0%200%2028%2028'%3e%3cpath%20fill='%23616161'%20d='M11.4%2018.6%206.8%2014l4.6-4.6L10%208l-6%206%206%206zm5.2%200%204.6-4.6-4.6-4.6L18%208l6%206-6%206z'%20class='jp-icon3'/%3e%3c/svg%3e",collapseAllSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cg%20fill='%23616161'%20class='jp-icon3'%3e%3cpath%20d='M8%202h12c1%200%202%201%202%202v12c0%201%200%202-2%202V4H6c0-2%201-2%202-2'/%3e%3cpath%20d='M18%208c0-1-1-2-2-2H4C3%206%202%207%202%208v12c0%201%201%202%202%202h12c1%200%202-1%202-2zm-2%200v12H4V8z'/%3e%3cpath%20d='M6%2013v2h8v-2z'/%3e%3c/g%3e%3c/svg%3e",collapseSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%208.5%2010.5'%3e%3cg%20fill='%23BDBDBD'%20class='jp-icon-output'%3e%3cpath%20d='M.019%200h8.458v1.064H.019zM0%209.52h8.491v1.059H0zm4.776-6.608H3.72V1.323h1.056z'/%3e%3cpath%20d='m4.244%205.243-1.06-1.167-1.06-1.167h4.24l-1.06%201.167zm.528%204.014H3.716V7.665h1.056z'/%3e%3cpath%20d='M4.242%205.332%205.302%206.5l1.06%201.167h-4.24L3.182%206.5z'/%3e%3c/g%3e%3c/svg%3e",consoleSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%20200%20200'%3e%3cpath%20fill='%230288D1'%20d='M20%2019.8h160v159.9H20z'%20class='jp-console-icon-background-color%20jp-icon-selectable'/%3e%3cpath%20fill='%23fff'%20d='M105%20127.3h40v12.8h-40zM51.1%2077%2074%2099.9l-23.3%2023.3%2010.5%2010.5%2023.3-23.3L95%2099.9%2084.5%2089.4%2061.6%2066.5z'%20class='jp-console-icon-color%20jp-icon-selectable-inverse'/%3e%3c/svg%3e",copySvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2018%2018'%3e%3cpath%20fill='%23616161'%20d='M11.9%201H3.2c-.8%200-1.5.7-1.5%201.5v10.2h1.5V2.5h8.7zm2.2%202.9h-8c-.8%200-1.5.7-1.5%201.5v10.2c0%20.8.7%201.5%201.5%201.5h8c.8%200%201.5-.7%201.5-1.5V5.4c-.1-.8-.7-1.5-1.5-1.5m0%2011.6h-8V5.4h8z'%20class='jp-icon3'/%3e%3c/svg%3e",copyrightSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M11.88%209.14c1.28.06%201.61%201.15%201.63%201.66h1.79c-.08-1.98-1.49-3.19-3.45-3.19C9.64%207.61%208%209%208%2012.14c0%201.94.93%204.24%203.84%204.24%202.22%200%203.41-1.65%203.44-2.95h-1.79c-.03.59-.45%201.38-1.63%201.44-1.31-.04-1.86-1.06-1.86-2.73%200-2.89%201.28-2.98%201.88-3M12%202C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202m0%2018c-4.41%200-8-3.59-8-8s3.59-8%208-8%208%203.59%208%208-3.59%208-8%208'%20class='jp-icon3'/%3e%3c/svg%3e",cutSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M9.64%207.64c.23-.5.36-1.05.36-1.64%200-2.21-1.79-4-4-4S2%203.79%202%206s1.79%204%204%204c.59%200%201.14-.13%201.64-.36L10%2012l-2.36%202.36C7.14%2014.13%206.59%2014%206%2014c-2.21%200-4%201.79-4%204s1.79%204%204%204%204-1.79%204-4c0-.59-.13-1.14-.36-1.64L12%2014l7%207h3v-1zM6%208c-1.1%200-2-.89-2-2s.9-2%202-2%202%20.89%202%202-.9%202-2%202m0%2012c-1.1%200-2-.89-2-2s.9-2%202-2%202%20.89%202%202-.9%202-2%202m6-7.5c-.28%200-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5M19%203l-6%206%202%202%207-7V3z'%20class='jp-icon3'/%3e%3c/svg%3e",deleteSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23626262'%20d='M6%2019c0%201.1.9%202%202%202h8c1.1%200%202-.9%202-2V7H6zM19%204h-3.5l-1-1h-5l-1%201H5v2h14z'%20class='jp-icon3'/%3e%3c/svg%3e",dockBottomSvgstr="data:image/svg+xml,%3csvg%20width='16'%20version='1.1'%20viewBox='0%200%2022%2022'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20class='jp-icon3'%20d='m19.8%2019.8v-17.6h-17.6v17.6zm-15.408-2.2v-3.8027h13.208v3.8027zm13.208-5.5301h-13.218v-7.6699h13.218z'%20fill='%23616161'/%3e%3c/svg%3e",dockLeftSvgstr="data:image/svg+xml,%3csvg%20width='16'%20version='1.1'%20viewBox='0%200%2022%2022'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20class='jp-icon3'%20d='m2.2%2019.8h17.6v-17.6h-17.6zm2.2-15.408h3.8027v13.208h-3.8027zm5.5301%2013.208v-13.218h7.6699v13.218z'%20fill='%23616161'/%3e%3c/svg%3e",dockRightSvgstr="data:image/svg+xml,%3csvg%20width='16'%20version='1.1'%20viewBox='0%200%2022%2022'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20class='jp-icon3'%20d='m19.8%202.2h-17.6v17.6h17.6zm-2.2%2015.408h-3.8027v-13.208h3.8027zm-5.5301-13.208v13.218h-7.6699v-13.218z'%20fill='%23616161'/%3e%3c/svg%3e",dockTopSvgstr="data:image/svg+xml,%3csvg%20width='16'%20version='1.1'%20viewBox='0%200%2022%2022'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20class='jp-icon3'%20d='m2.2%202.2v17.6h17.6v-17.6zm15.408%202.2v3.8027h-13.208v-3.8027zm-13.208%205.5301h13.218v7.6699h-13.218z'%20fill='%23616161'/%3e%3c/svg%3e",dotsSvgstr="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16'%20version='1.1'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20class='jp-icon3'%20transform='rotate(90,12,12)'%20fill='%23616161'%3e%3ccircle%20cx='5'%20cy='12'%20r='2'/%3e%3ccircle%20cx='12'%20cy='12'%20r='2'/%3e%3ccircle%20cx='19'%20cy='12'%20r='2'/%3e%3c/g%3e%3c/svg%3e",downloadSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M19%209h-4V3H9v6H5l7%207zM5%2018v2h14v-2z'%20class='jp-icon3'/%3e%3c/svg%3e",duplicateSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20fill='none'%20viewBox='0%200%2014%2014'%3e%3cpath%20fill='%23616161'%20fill-rule='evenodd'%20d='M2.8.875h6.096c.305%200%20.554.264.554.587s-.25.587-.554.587H3.354c-.305%200-.554.264-.554.587V9.68c0%20.322-.25.587-.554.587s-.554-.264-.554-.587V2.049c0-.646.498-1.174%201.108-1.174M5.367%2011.9V4.55h5.716v7.35zM4.142%204.142c0-.451.365-.817.816-.817h6.534c.45%200%20.816.366.816.817v8.166a.817.817%200%200%201-.816.817H4.958a.817.817%200%200%201-.816-.817z'%20class='jp-icon3'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23616161'%20stroke='%23616161'%20stroke-width='.5'%20d='M9.436%208.265H8.364v1.071a.215.215%200%200%201-.214.215.215.215%200%200%201-.214-.215v-1.07H6.864a.215.215%200%200%201-.214-.215c0-.118.096-.215.214-.215h1.072v-1.07a.214.214%200%201%201%20.428-.001v1.072h1.072c.118%200%20.214.096.214.214a.215.215%200%200%201-.214.214Z'%20class='jp-icon3'/%3e%3c/svg%3e",editSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M3%2017.25V21h3.75L17.81%209.94l-3.75-3.75zM20.71%207.04a.996.996%200%200%200%200-1.41l-2.34-2.34a.996.996%200%200%200-1.41%200l-1.83%201.83%203.75%203.75z'%20class='jp-icon3'/%3e%3c/svg%3e",ellipsesSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cg%20fill='%23616161'%20class='jp-icon3'%3e%3ccircle%20cx='5'%20cy='12'%20r='2'/%3e%3ccircle%20cx='12'%20cy='12'%20r='2'/%3e%3ccircle%20cx='19'%20cy='12'%20r='2'/%3e%3c/g%3e%3c/svg%3e",errorSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cg%20fill='%23616161'%20class='jp-icon3'%3e%3ccircle%20cx='12'%20cy='19'%20r='2'/%3e%3cpath%20d='M10%203h4v12h-4z'/%3e%3c/g%3e%3c/svg%3e",exceptionsSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cg%20fill='%23616161'%20class='jp-icon3'%3e%3cpath%20d='m12.039.5-.753%201.506L.5%2023.576l23.082-.001zm.001%204.017%208.528%2017.05-17.055.001z'/%3e%3cpath%20d='M11%208h2v10h-2zm0%2011h2v2h-2z'/%3e%3c/g%3e%3c/svg%3e",expandAllSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cg%20fill='%23616161'%20class='jp-icon3'%3e%3cpath%20d='M8%202h12c1%200%202%201%202%202v12c0%201%200%202-2%202V4H6c0-2%201-2%202-2'/%3e%3cpath%20d='M18%208c0-1-1-2-2-2H4C3%206%202%207%202%208v12c0%201%201%202%202%202h12c1%200%202-1%202-2zm-2%200v12H4V8z'/%3e%3cpath%20d='M11%2010H9v3H6v2h3v3h2v-3h3v-2h-3z'/%3e%3c/g%3e%3c/svg%3e",expandSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%208.5%2010.5'%3e%3cg%20fill='%23BDBDBD'%20class='jp-icon-output'%3e%3cpath%20d='M.019%200h8.458v1.064H.019zM0%209.521h8.491v1.059H0zm3.712-5.822h1.056v1.589H3.712z'/%3e%3cpath%20d='m4.244%201.368%201.06%201.167%201.06%201.167h-4.24l1.06-1.167zm-.532%203.92h1.056V6.88H3.712z'/%3e%3cpath%20d='m4.242%209.213-1.06-1.167-1.06-1.167h4.24l-1.06%201.167z'/%3e%3c/g%3e%3c/svg%3e",extensionSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M20.5%2011H19V7c0-1.1-.9-2-2-2h-4V3.5a2.5%202.5%200%200%200-5%200V5H4c-1.1%200-1.99.9-1.99%202v3.8H3.5c1.49%200%202.7%201.21%202.7%202.7s-1.21%202.7-2.7%202.7H2V20c0%201.1.9%202%202%202h3.8v-1.5c0-1.49%201.21-2.7%202.7-2.7s2.7%201.21%202.7%202.7V22H17c1.1%200%202-.9%202-2v-4h1.5a2.5%202.5%200%200%200%200-5'%20class='jp-icon3'/%3e%3c/svg%3e",fastForwardSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='m4%2018%208.5-6L4%206zm9-12v12l8.5-6z'%20class='jp-icon3'/%3e%3c/svg%3e",fileSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2022%2022'%3e%3cpath%20fill='%23616161'%20d='m19.3%208.2-5.5-5.5c-.3-.3-.7-.5-1.2-.5H3.9c-.8.1-1.6.9-1.6%201.8v14.1c0%20.9.7%201.6%201.6%201.6h14.2c.9%200%201.6-.7%201.6-1.6V9.4c.1-.5-.1-.9-.4-1.2m-5.8-3.3%203.4%203.6h-3.4zm3.9%2012.7H4.7c-.1%200-.2%200-.2-.2V4.7c0-.2.1-.3.2-.3h7.2v4.4s0%20.8.3%201.1%201.1.3%201.1.3h4.3v7.2s-.1.2-.2.2'%20class='jp-icon3%20jp-icon-selectable'/%3e%3c/svg%3e",fileUploadSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M9%2016h6v-6h4l-7-7-7%207h4zm-4%202h14v2H5z'%20class='jp-icon3'/%3e%3c/svg%3e",filterDotSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23FFF'%20d='M14%2012v7.88c.04.3-.06.62-.29.83a.996.996%200%200%201-1.41%200l-2.01-2.01a.99.99%200%200%201-.29-.83V12h-.03L4.21%204.62a1%201%200%200%201%20.17-1.4c.19-.14.4-.22.62-.22h14c.22%200%20.43.08.62.22a1%201%200%200%201%20.17%201.4L14.03%2012z'%20class='jp-icon3'/%3e%3ccircle%20cx='18'%20cy='17'%20r='3'%20fill='%23FFF'%20class='jp-icon-dot'/%3e%3c/svg%3e",filterListSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M10%2018h4v-2h-4zM3%206v2h18V6zm3%207h12v-2H6z'%20class='jp-icon3'/%3e%3c/svg%3e",filterSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23FFF'%20d='M14%2012v7.88c.04.3-.06.62-.29.83a.996.996%200%200%201-1.41%200l-2.01-2.01a.99.99%200%200%201-.29-.83V12h-.03L4.21%204.62a1%201%200%200%201%20.17-1.4c.19-.14.4-.22.62-.22h14c.22%200%20.43.08.62.22a1%201%200%200%201%20.17%201.4L14.03%2012z'%20class='jp-icon3'/%3e%3c/svg%3e",folderFavoriteSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='%23000'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M20%206h-8l-2-2H4c-1.1%200-2%20.9-2%202v12c0%201.1.9%202%202%202h16c1.1%200%202-.9%202-2V8c0-1.1-.9-2-2-2m-2.06%2011L15%2015.28%2012.06%2017l.78-3.33-2.59-2.24%203.41-.29L15%208l1.34%203.14%203.41.29-2.59%202.24z'%20class='jp-icon3%20jp-icon-selectable'/%3e%3c/svg%3e",folderSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M10%204H4c-1.1%200-1.99.9-1.99%202L2%2018c0%201.1.9%202%202%202h16c1.1%200%202-.9%202-2V8c0-1.1-.9-2-2-2h-8z'%20class='jp-icon3%20jp-icon-selectable'/%3e%3c/svg%3e",historySvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M13.5%208H12v5l4.28%202.54.72-1.21-3.5-2.08zM13%203a9%209%200%200%200-9%209H1l3.96%204.03L9%2012H6a7%207%200%200%201%207-7%207%207%200%200%201%207%207%207%207%200%200%201-7%207c-1.93%200-3.68-.79-4.94-2.06l-1.42%201.42A8.9%208.9%200%200%200%2013%2021a9%209%200%200%200%209-9%209%209%200%200%200-9-9'%20class='jp-icon3'/%3e%3c/svg%3e",homeSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='%23000'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M10%2020v-6h4v6h5v-8h3L12%203%202%2012h3v8z'%20class='jp-icon3%20jp-icon-selectable'/%3e%3c/svg%3e",html5Svgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%20512%20512'%3e%3cpath%20fill='%23000'%20d='M108.4%200h23v22.8h21.2V0h23v69h-23V46h-21v23h-23.2M206%2023h-20.3V0h63.7v23H229v46h-23m53.5-69h24.1l14.8%2024.3L313.2%200h24.1v69h-23V34.8l-16.1%2024.8-16.1-24.8V69h-22.6m89.2-69h23v46.2h32.6V69h-55.6'%20class='jp-icon0%20jp-icon-selectable'/%3e%3cpath%20fill='%23e44d26'%20d='m107.6%20471-33-370.4h362.8l-33%20370.2L255.7%20512'%20class='jp-icon-selectable'/%3e%3cpath%20fill='%23f16529'%20d='M256%20480.5V131h148.3L376%20447'%20class='jp-icon-selectable'/%3e%3cpath%20fill='%23ebebeb'%20d='M142%20176.3h114v45.4h-64.2l4.2%2046.5h60v45.3H154.4m2%2022.8H202l3.2%2036.3%2050.8%2013.6v47.4l-93.2-26'%20class='jp-icon-selectable-inverse'/%3e%3cpath%20fill='%23fff'%20d='M369.6%20176.3H255.8v45.4h109.6m-4.1%2046.5H255.8v45.4h56l-5.3%2059-50.7%2013.6v47.2l93-25.8'%20class='jp-icon-selectable-inverse'/%3e%3c/svg%3e",imageSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2022%2022'%3e%3cpath%20fill='%23FFF'%20d='M2.2%202.2h17.5v17.5H2.2z'%20class='jp-icon-brand4%20jp-icon-selectable-inverse'/%3e%3cpath%20fill='%233F51B5'%20d='M2.2%202.2v17.5h17.5l.1-17.5zm12.1%202.2c1.2%200%202.2%201%202.2%202.2s-1%202.2-2.2%202.2-2.2-1-2.2-2.2%201-2.2%202.2-2.2M4.4%2017.6l3.3-8.8%203.3%206.6%202.2-3.2%204.4%205.4z'%20class='jp-icon-brand0%20jp-icon-selectable'/%3e%3c/svg%3e",infoSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2050.978%2050.978'%3e%3cg%20fill='%23616161'%20class='jp-icon3'%3e%3cpath%20d='M43.52%207.458C38.711%202.648%2032.307%200%2025.489%200%2018.67%200%2012.266%202.648%207.458%207.458c-9.943%209.941-9.943%2026.119%200%2036.062%204.809%204.809%2011.212%207.456%2018.031%207.458h.002c6.816%200%2013.221-2.648%2018.029-7.458%204.809-4.809%207.457-11.212%207.457-18.03%200-6.82-2.649-13.224-7.457-18.032m-1.414%2034.647c-4.432%204.431-10.332%206.872-16.615%206.872h-.002c-6.285-.001-12.187-2.441-16.617-6.872-9.162-9.163-9.162-24.071%200-33.233C13.303%204.44%2019.204%202%2025.489%202c6.284%200%2012.186%202.44%2016.617%206.872%204.431%204.431%206.871%2010.332%206.871%2016.617%200%206.283-2.441%2012.186-6.871%2016.616'/%3e%3cpath%20d='M23.578%2032.218q-.034-2.602.496-3.972t2.272-3.253q.702-.805%201.367-1.575.939-1.13%201.436-2.175.496-1.061.495-2.5%200-1.643-.779-2.979-.848-1.319-2.806-1.369-2.703.085-3.55%201.832a5.3%205.3%200%200%200-.607%201.814%2011.3%2011.3%200%200%200-.207%202.174h-2.937q-.136-3.312%201.493-5.719%201.593-2.459%205.378-2.527%203.24.034%205.141%201.758%201.918%201.74%201.95%204.811%200%201.712-.41%202.911a7.6%207.6%200%200%201-1.268%202.243%2022%2022%200%200%201-1.73%202.002%2034%2034%200%200%200-1.987%202.346%205.2%205.2%200%200%200-.565%201.199q-.24%201.438-.171%202.979zm0%206.002v-3.484h3.076v3.484z'/%3e%3c/g%3e%3c/svg%3e",inspectorSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M20%204H4c-1.1%200-1.99.9-1.99%202L2%2018c0%201.1.9%202%202%202h16c1.1%200%202-.9%202-2V6c0-1.1-.9-2-2-2m-5%2014H4v-4h11zm0-5H4V9h11zm5%205h-4V9h4z'%20class='jp-inspector-icon-color%20jp-icon-selectable'/%3e%3c/svg%3e",jsonSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2022%2022'%3e%3cg%20fill='%23F9A825'%20class='jp-json-icon-color%20jp-icon-selectable'%3e%3cpath%20d='M20.2%2011.8c-1.6%200-1.7.5-1.7%201%200%20.4.1.9.1%201.3.1.5.1.9.1%201.3%200%201.7-1.4%202.3-3.5%202.3h-.9v-1.9h.5c1.1%200%201.4%200%201.4-.8%200-.3%200-.6-.1-1%200-.4-.1-.8-.1-1.2%200-1.3%200-1.8%201.3-2-1.3-.2-1.3-.7-1.3-2%200-.4.1-.8.1-1.2.1-.4.1-.7.1-1%200-.8-.4-.7-1.4-.8h-.5V4.1h.9c2.2%200%203.5.7%203.5%202.3%200%20.4-.1.9-.1%201.3-.1.5-.1.9-.1%201.3%200%20.5.2%201%201.7%201zM1.8%2010.1c1.6%200%201.7-.5%201.7-1%200-.4-.1-.9-.1-1.3-.1-.5-.1-.9-.1-1.3%200-1.6%201.4-2.3%203.5-2.3h.9v1.9h-.5c-1%200-1.4%200-1.4.8%200%20.3%200%20.6.1%201%200%20.2.1.6.1%201%200%201.3%200%201.8-1.3%202C6%2011.2%206%2011.7%206%2013c0%20.4-.1.8-.1%201.2-.1.3-.1.7-.1%201%200%20.8.3.8%201.4.8h.5v1.9h-.9c-2.1%200-3.5-.6-3.5-2.3%200-.4.1-.9.1-1.3.1-.5.1-.9.1-1.3%200-.5-.2-1-1.7-1z'/%3e%3ccircle%20cx='11'%20cy='13.8'%20r='2.1'/%3e%3ccircle%20cx='11'%20cy='8.2'%20r='2.1'/%3e%3c/g%3e%3c/svg%3e",juliaSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%20325%20300'%3e%3cpath%20fill='%23cb3c33'%20d='M150.898%20225c0%2041.422-33.578%2075-75%2075s-75-33.578-75-75%2033.579-75%2075-75%2075%2033.578%2075%2075'%20class='jp-brand0%20jp-icon-selectable'/%3e%3cpath%20fill='%23389826'%20d='M237.5%2075c0%2041.422-33.578%2075-75%2075s-75-33.578-75-75%2033.578-75%2075-75%2075%2033.578%2075%2075'%20class='jp-brand0%20jp-icon-selectable'/%3e%3cpath%20fill='%239558b2'%20d='M324.102%20225c0%2041.422-33.579%2075-75%2075s-75-33.578-75-75%2033.578-75%2075-75%2075%2033.578%2075%2075'%20class='jp-brand0%20jp-icon-selectable'/%3e%3c/svg%3e",jupyterFaviconSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='152'%20height='165'%20version='1.1'%20viewBox='0%200%20152%20165'%3e%3cpath%20fill='%23F37726'%20d='M76.021%20140.163c-32.64%200-61.145-11.927-75.942-29.58%205.51%2015.84%2015.781%2029.567%2029.39%2039.278a80.17%2080.17%200%200%200%2046.57%2014.929%2080.17%2080.17%200%200%200%2046.57-14.929c13.61-9.711%2023.88-23.437%2029.391-39.278-14.833%2017.653-43.338%2029.58-75.979%2029.58m-.005-114.832c32.64%200%2061.146%2011.927%2075.943%2029.58a80.9%2080.9%200%200%200-29.391-39.278A80.16%2080.16%200%200%200%2075.998.705a80.16%2080.16%200%200%200-46.57%2014.928A80.9%2080.9%200%200%200%20.038%2054.912c14.832-17.617%2043.338-29.58%2075.978-29.58'%20class='jp-jupyter-icon-color'/%3e%3c/svg%3e",jupyterSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='39'%20height='51'%20viewBox='0%200%2039%2051'%3e%3cpath%20fill='%23F37726'%20d='M20.005%2038.114c-7.85%200-14.706-2.876-18.265-7.134a19.5%2019.5%200%200%200%207.069%209.473%2019.24%2019.24%200%200%200%2011.2%203.6c4.013%200%207.927-1.258%2011.2-3.6a19.5%2019.5%200%200%200%207.069-9.473c-3.567%204.258-10.423%207.134-18.273%207.134m-.002-27.694c7.85%200%2014.706%202.876%2018.265%207.133a19.5%2019.5%200%200%200-7.069-9.473A19.24%2019.24%200%200%200%2020%204.48a19.24%2019.24%200%200%200-11.2%203.6%2019.5%2019.5%200%200%200-7.069%209.473c3.567-4.248%2010.423-7.134%2018.273-7.134'%20class='jp-jupyter-icon-color'/%3e%3cpath%20fill='%23616161'%20d='M37.194%203.154a3%203%200%200%201-.426%201.672%202.96%202.96%200%200%201-1.275%201.153%202.93%202.93%200%200%201-3.238-.505%203%203%200%200%201-.776-3.21c.2-.553.558-1.033%201.029-1.38a2.93%202.93%200%200%201%203.733.209c.576.532.919%201.274.953%202.061M9.228%2046.393a3.77%203.77%200%200%201-.536%202.11%203.73%203.73%200%200%201-1.608%201.452%203.69%203.69%200%200%201-4.082-.638%203.75%203.75%200%200%201-1.097-1.875%203.8%203.8%200%200%201%20.122-2.173%203.74%203.74%200%200%201%201.299-1.739%203.696%203.696%200%200%201%204.704.268%203.76%203.76%200%200%201%201.198%202.595M2.635%209.456a2.17%202.17%200%200%201-1.227-.318%202.2%202.2%200%200%201-.845-.951A2.22%202.22%200%200%201%20.935%205.77a2.16%202.16%200%200%201%202.356-.577c.405.15.757.418%201.011.77a2.21%202.21%200%200%201-.156%202.783%202.17%202.17%200%200%201-1.511.71'%20class='jp-icon3'/%3e%3c/svg%3e",jupyterlabWordmarkSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20viewBox='0%200%201860.8%20475'%3e%3cpath%20fill='%234E4E4E'%20d='M53.324%20293.087c0%2048.7-3.7%2064.7-13.6%2076.4-10.8%2010-25%2015.5-39.7%2015.5l3.7%2029c22.8.3%2044.8-7.9%2061.9-23.1%2017.8-18.5%2024-44.1%2024-83.3v-184.3h-36.4v170.1zm271.42-22.179c0%2021%200%2039.5%201.7%2055.4h-31.8l-2.1-33.3h-.8c-6.7%2011.6-16.4%2021.3-28%2027.9s-24.8%2010-38.2%209.8c-31.4%200-69-17.7-69-89v-118.8h36.4v112.7c0%2038.7%2011.6%2064.7%2044.6%2064.7%2010.3-.2%2020.4-3.5%2028.9-9.4s15.1-14.3%2018.9-23.9c2.2-6.1%203.3-12.5%203.3-18.9v-125h36.4v147.8zm68.512-81.525c0-26-.8-47-1.7-66.7h32.7l1.7%2034.8h.8c7.1-12.5%2017.5-22.8%2030.1-29.7%2012.5-7%2026.7-10.3%2041-9.8%2048.3%200%2084.7%2041.7%2084.7%20103.3%200%2073.1-43.7%20109.2-91%20109.2-12.1.5-24.2-2.2-35-7.8s-19.9-13.9-26.6-24.2h-.8v110.5h-36v-220zm36%2054.2c.1%205.1.6%2010.1%201.7%2015.1%203%2012.3%209.9%2023.3%2019.8%2031.1s22.1%2012.1%2034.7%2012.1c38.5%200%2060.7-31.9%2060.7-78.5%200-40.7-21.1-75.6-59.5-75.6-12.9.4-25.3%205.1-35.3%2013.4-9.9%208.3-16.9%2019.7-19.6%2032.4-1.5%204.9-2.3%2010-2.5%2015.1zm217.572-120.485%2043.7%20120.1c4.5%2013.4%209.5%2029.4%2012.8%2041.7h.8c3.7-12.2%207.9-27.7%2012.8-42.4l39.7-119.2h38.5l-54.4%20144.8c-26%2069.7-43.7%20105.4-68.6%20127.2-12.5%2011.7-27.9%2020-44.6%2023.9l-9.1-31.1c11.7-3.9%2022.5-10.1%2031.8-18.1%2013.2-11.1%2023.7-25.2%2030.6-41.2%201.5-2.8%202.5-5.7%202.9-8.8-.3-3.3-1.2-6.6-2.5-9.7l-73.8-187.1h39.7zM890.649%2064.65v58.3h52v28.2h-52v109.5c0%2025%207%2039.5%2027.3%2039.5%207.1.1%2014.2-.7%2021.1-2.5l1.7%2027.7c-10.3%203.7-21.3%205.4-32.2%205-7.3.4-14.6-.7-21.3-3.4-6.8-2.7-12.9-6.8-17.9-12.1-10.3-10.9-14.1-29-14.1-52.9v-110.8h-31v-28.2h31v-48.7zm119.111%20166.711c.8%2050%2032.2%2070.6%2068.6%2070.6%2019%20.6%2037.9-3%2055.3-10.5l6.2%2026.4c-20.9%208.9-43.5%2013.1-66.2%2012.6-61.5%200-98.3-41.2-98.3-102.5%200-61.4%2035.5-109.6%2093.7-109.6%2065.2%200%2082.7%2058.3%2082.7%2095.7-.1%205.8-.5%2011.5-1.2%2017.2h-140.8zm106.6-26.4c.4-23.5-9.5-60.1-50.4-60.1-36.8%200-52.8%2034.4-55.7%2060.1zm88.317-18.505c0-23.9-.4-44.5-1.7-63.4h31.8l1.2%2039.9h1.7c9.1-27.3%2031-44.5%2055.3-44.5%203.5-.1%207%20.4%2010.3%201.2v34.8c-4.1-.9-8.2-1.3-12.4-1.2-25.6%200-43.7%2019.7-48.7%2047.4-1%205.7-1.6%2011.5-1.7%2017.2v108.3h-36v-139.7z'%20class='jp-icon2'/%3e%3cpath%20fill='%23F37726'%20d='M1352.3%20326.2h37V28h-37zm252.5%200c-2.5-13.9-3.4-31.1-3.4-48.7v-76c0-40.7-15.1-83.1-77.3-83.1-25.6%200-50%207.1-66.8%2018.1l8.4%2024.4c14.3-9.2%2034-15.1%2053-15.1%2041.6%200%2046.2%2030.2%2046.2%2047v4.2c-78.6-.4-122.3%2026.5-122.3%2075.6%200%2029.4%2021%2058.4%2062.2%2058.4%2029%200%2050.9-14.3%2062.2-30.2h1.3l2.9%2025.6h33.6zm-39.1-68.5c0%203.8-.8%208-2.1%2011.8-5.9%2017.2-22.7%2034-49.2%2034-18.9%200-34.9-11.3-34.9-35.3%200-39.5%2045.8-46.6%2086.2-45.8zm132.8%2068.5%201.7-33.6h1.3c15.1%2026.9%2038.7%2038.2%2068.1%2038.2%2045.4%200%2091.2-36.1%2091.2-108.8.4-61.7-35.3-103.7-85.7-103.7-32.8%200-56.3%2014.7-69.3%2037.4h-.8V28h-36.6v245.7c0%2018.1-.8%2038.6-1.7%2052.5zm6.3-118c0-5.9%201.3-10.9%202.1-15.1%207.6-28.1%2031.1-45.4%2056.3-45.4%2039.5%200%2060.5%2034.9%2060.5%2075.6%200%2046.6-23.1%2078.1-61.8%2078.1-26.9%200-48.3-17.6-55.5-43.3-.8-4.2-1.7-8.8-1.7-13.4v-36.5z'%20class='jp-jupyter-icon-color'/%3e%3c/svg%3e",kernelSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M15%209H9v6h6zm-2%204h-2v-2h2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1%200-2%20.9-2%202v2H3v2h2v2H3v2h2v2c0%201.1.9%202%202%202h2v2h2v-2h2v2h2v-2h2c1.1%200%202-.9%202-2v-2h2v-2h-2v-2zm-4%206H7V7h10z'%20class='jp-icon2'/%3e%3c/svg%3e",keyboardSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M20%205H4c-1.1%200-1.99.9-1.99%202L2%2017c0%201.1.9%202%202%202h16c1.1%200%202-.9%202-2V7c0-1.1-.9-2-2-2m-9%203h2v2h-2zm0%203h2v2h-2zM8%208h2v2H8zm0%203h2v2H8zm-1%202H5v-2h2zm0-3H5V8h2zm9%207H8v-2h8zm0-4h-2v-2h2zm0-3h-2V8h2zm3%203h-2v-2h2zm0-3h-2V8h2z'%20class='jp-icon3%20jp-icon-selectable'/%3e%3c/svg%3e",launchSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20viewBox='0%200%2032%2032'%3e%3cg%20fill='%23616161'%20class='jp-icon3%20jp-icon-selectable'%3e%3cpath%20d='M26%2028H6a2.003%202.003%200%200%201-2-2V6a2.003%202.003%200%200%201%202-2h10v2H6v20h20V16h2v10a2.003%202.003%200%200%201-2%202'/%3e%3cpath%20d='M20%202v2h6.586L18%2012.586%2019.414%2014%2028%205.414V12h2V2z'/%3e%3c/g%3e%3c/svg%3e",launcherSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M19%2019H5V5h7V3H5a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h14c1.1%200%202-.9%202-2v-7h-2zM14%203v2h3.59l-9.83%209.83%201.41%201.41L19%206.41V10h2V3z'%20class='jp-icon3%20jp-icon-selectable'/%3e%3c/svg%3e",lineFormSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23fff'%20d='M5.88%204.12%2013.76%2012l-7.88%207.88L8%2022l10-10L8%202z'/%3e%3c/svg%3e",linkSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M3.9%2012c0-1.71%201.39-3.1%203.1-3.1h4V7H7c-2.76%200-5%202.24-5%205s2.24%205%205%205h4v-1.9H7c-1.71%200-3.1-1.39-3.1-3.1M8%2013h8v-2H8zm9-6h-4v1.9h4c1.71%200%203.1%201.39%203.1%203.1s-1.39%203.1-3.1%203.1h-4V17h4c2.76%200%205-2.24%205-5s-2.24-5-5-5'%20class='jp-icon3'/%3e%3c/svg%3e",listSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M19%205v14H5V5zm1.1-2H3.9c-.5%200-.9.4-.9.9v16.2c0%20.4.4.9.9.9h16.2c.4%200%20.9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11%207h6v2h-6zm0%204h6v2h-6zm0%204h6v2h-6zM7%207h2v2H7zm0%204h2v2H7zm0%204h2v2H7z'%20class='jp-icon2%20jp-icon-selectable'/%3e%3c/svg%3e",lockSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2023'%3e%3cpath%20fill='%23333'%20d='M12%2017a2%202%200%200%200%202-2%202%202%200%200%200-2-2%202%202%200%200%200-2%202%202%202%200%200%200%202%202m6-9a2%202%200%200%201%202%202v10a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V10a2%202%200%200%201%202-2h1V6a5%205%200%200%201%205-5%205%205%200%200%201%205%205v2zm-6-5a3%203%200%200%200-3%203v2h6V6a3%203%200%200%200-3-3'%20class='jp-icon4'/%3e%3c/svg%3e",markdownSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2022%2022'%3e%3cpath%20fill='%237B1FA2'%20d='M5%2014.9h12l-6.1%206zm9.4-6.8c0-1.3-.1-2.9-.1-4.5-.4%201.4-.9%202.9-1.3%204.3l-1.3%204.3h-2L8.5%207.9c-.4-1.3-.7-2.9-1-4.3-.1%201.6-.1%203.2-.2%204.6L7%2012.4H4.8l.7-11h3.3L10%205c.4%201.2.7%202.7%201%203.9.3-1.2.7-2.6%201-3.9l1.2-3.7h3.3l.6%2011h-2.4z'%20class='jp-icon-contrast0%20jp-icon-selectable'/%3e%3c/svg%3e",mermaidSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20version='1.1'%20viewBox='0%200%20491%20675'%3e%3cpath%20fill='%23ff3670'%20d='M85%2092c-46%200-85%2037-85%2085v321c0%2046%2037%2085%2085%2085h321c46%200%2085-37%2085-85V177c0-46-37-85-85-85zm-2%20111c72-3.1%20139%2041%20162%20109%2025-67%2091-112%20162-109%202.4%2057-25%20111-72%20144-24%2016-39%2044-39%2074v51H192v-51c.08-29-15-57-39-74-47-32-75-86-72-144z'%20class='jp-icon-contrast2%20jp-icon-selectable'/%3e%3c/svg%3e",moveDownSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20fill='none'%20viewBox='0%200%2014%2014'%3e%3cpath%20fill='%23616161'%20d='M12.471%207.529a.748.748%200%200%200-1.057-1.058L7.75%2010.127V1.75a.75.75%200%200%200-1.5%200v8.378l-3.653-3.66a.753.753%200%201%200-1.065%201.064l4.76%204.76a1%201%200%200%200%201.415%200z'%20class='jp-icon3'/%3e%3c/svg%3e",moveUpSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20fill='none'%20viewBox='0%200%2014%2014'%3e%3cpath%20fill='%23616161'%20d='M1.529%206.471a.748.748%200%200%200%201.057%201.058L6.25%203.873v8.377a.75.75%200%200%200%201.5%200V3.873l3.653%203.659a.753.753%200%201%200%201.065-1.064l-4.76-4.76a1%201%200%200%200-1.415%200z'%20class='jp-icon3'/%3e%3c/svg%3e",newFolderSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M20%206h-8l-2-2H4c-1.11%200-1.99.89-1.99%202L2%2018c0%201.11.89%202%202%202h16c1.11%200%202-.89%202-2V8c0-1.11-.89-2-2-2m-1%208h-3v3h-2v-3h-3v-2h3V9h2v3h3z'%20class='jp-icon3'/%3e%3c/svg%3e",notTrustedSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20fill='none'%20viewBox='0%200%2025%2025'%3e%3cpath%20stroke='%23333'%20stroke-width='2'%20d='M4.86%2014.44c-1.034-2.67-.996-5.382-.61-7.24%201.232-.267%202.83-.797%204.351-1.355a92%2092%200%200%200%204.387-1.75%2068%2068%200%200%200%204.23%201.748c1.532.57%203.182%201.11%204.536%201.37.382%201.859.417%204.564-.615%207.228-1.109%202.862-3.472%205.743-8.139%207.494-4.667-1.75-7.03-4.632-8.14-7.494Zm11.824-5.12-7.368%207.365m7.368-.001L9.316%209.319'%20class='jp-icon2'/%3e%3c/svg%3e",notebookSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2022%2022'%3e%3cg%20fill='%23EF6C00'%20class='jp-notebook-icon-color%20jp-icon-selectable'%3e%3cpath%20d='M18.7%203.3v15.4H3.3V3.3zm1.5-1.5H1.8v18.3h18.3z'/%3e%3cpath%20d='m16.5%2016.5-5.4-4.3-5.6%204.3v-11h11z'/%3e%3c/g%3e%3c/svg%3e",numberingSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='22'%20height='22'%20viewBox='0%200%2028%2028'%3e%3cpath%20fill='%23616161'%20d='M4%2019h2v.5H5v1h1v.5H4v1h3v-4H4zm1-9h1V6H4v1h1zm-1%203h1.8L4%2015.1v.9h3v-1H5.2L7%2012.9V12H4zm5-6v2h14V7zm0%2014h14v-2H9zm0-6h14v-2H9z'%20class='jp-icon3'/%3e%3c/svg%3e",offlineBoltSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M12%202.02c-5.51%200-9.98%204.47-9.98%209.98s4.47%209.98%209.98%209.98%209.98-4.47%209.98-9.98S17.51%202.02%2012%202.02M11.48%2020v-6.26H8L13%204v6.26h3.35z'%20class='jp-icon3'/%3e%3c/svg%3e",openKernelSourceSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M5%202h10l5%205v13a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2v-6h1v2l4-3-4-3v2H3V4a2%202%200%200%201%202-2m7%2016h4v-2h-4zm0-4h6v-2h-6zm0-4h6V8h-6zm-2%204a1%201%200%201%200%200-2%201%201%200%200%200%200%202m-7-2v2H1v-2z'%20class='jp-icon3'/%3e%3c/svg%3e",paletteSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cg%20fill='%23616161'%20class='jp-icon3'%3e%3cpath%20d='M18%2013v7H4V6h5.02c.05-.71.22-1.38.48-2H4c-1.1%200-2%20.9-2%202v14c0%201.1.9%202%202%202h14c1.1%200%202-.9%202-2v-5zm1.3-4.11c.44-.7.7-1.51.7-2.39C20%204.01%2017.99%202%2015.5%202S11%204.01%2011%206.5s2.01%204.5%204.49%204.5c.88%200%201.7-.26%202.39-.7L21%2013.42%2022.42%2012zM15.5%209a2.5%202.5%200%200%201%200-5%202.5%202.5%200%200%201%200%205'/%3e%3cpath%20fill-rule='evenodd'%20d='M4%206h5.019a6.5%206.5%200%200%200%203.015%206H9v2h7v-1.019c.57-.043%201.12-.16%201.64-.341L18%2013v7H4zm4%202H6v2h2zm-2%204h2v2H6zm2%204H6v2h2zm1%200h7v2H9z'%20clip-rule='evenodd'/%3e%3c/g%3e%3c/svg%3e",pasteSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M19%202h-4.18C14.4.84%2013.3%200%2012%200S9.6.84%209.18%202H5c-1.1%200-2%20.9-2%202v16c0%201.1.9%202%202%202h14c1.1%200%202-.9%202-2V4c0-1.1-.9-2-2-2m-7%200c.55%200%201%20.45%201%201s-.45%201-1%201-1-.45-1-1%20.45-1%201-1m7%2018H5V4h2v3h10V4h2z'%20class='jp-icon3'/%3e%3c/svg%3e",pauseSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M7%206h4v12H7Zm6%200h4v12h-4z'%20class='jp-icon3'/%3e%3c/svg%3e",pdfSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2022%2022'%3e%3cpath%20fill='%23FF2A2A'%20d='m17.933%2013.667%203.987%203.987-1.117%201.117-2.51-2.51-1.066%201.067%202.36%202.36-1.117%201.117-2.36-2.36-2.43%202.429-1.477-1.478zm-6.163-3.93-3.496%203.496.53.53q.905.906%201.83.932.929.031%201.784-.825.852-.852.822-1.773t-.94-1.83zm-.36-2.594%201.557%201.558q1.305%201.305%201.754%202.13.456.825.468%201.727.015.79-.296%201.493-.31.702-.951%201.343-.649.648-1.355.963-.702.31-1.493.295-.905-.015-1.738-.472-.829-.46-2.118-1.75L5.68%2012.874zm-5.76-5.76L8.1%203.835Q9.195%204.93%209.291%206q.103%201.07-.795%201.968-.901.902-1.976.802-1.067-.1-2.16-1.193l-.975-.975L1.397%208.59-.08%207.113Zm.406%202.548-1.6%201.6.817.818q.43.43.871.457.445.023.829-.361t.357-.825-.457-.871z'%20class='jp-icon-selectable'/%3e%3c/svg%3e",pythonSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='-10%20-10%20131.161%20132.389'%3e%3cpath%20fill='%23306998'%20d='M54.919%200c-4.584.022-8.961.413-12.813%201.095C30.76%203.099%2028.7%207.295%2028.7%2015.032v10.219h26.813v3.406H18.638c-7.793%200-14.616%204.684-16.75%2013.594-2.462%2010.213-2.571%2016.586%200%2027.25%201.905%207.938%206.457%2013.594%2014.25%2013.594h9.218v-12.25c0-8.85%207.657-16.657%2016.75-16.657h26.782c7.454%200%2013.406-6.138%2013.406-13.625v-25.53c0-7.267-6.13-12.726-13.406-13.938C64.282.328%2059.502-.02%2054.918%200m-14.5%208.22c2.77%200%205.031%202.298%205.031%205.125%200%202.816-2.262%205.093-5.031%205.093-2.78%200-5.031-2.277-5.031-5.093%200-2.827%202.251-5.125%205.03-5.125'%20class='jp-icon-selectable'/%3e%3cpath%20fill='%23ffd43b'%20d='M85.638%2028.657v11.906c0%209.231-7.826%2017-16.75%2017H42.106c-7.336%200-13.406%206.279-13.406%2013.625V96.72c0%207.266%206.319%2011.54%2013.406%2013.625%208.488%202.495%2016.627%202.946%2026.782%200%206.75-1.955%2013.406-5.888%2013.406-13.625V86.5H55.513v-3.405H95.7c7.793%200%2010.696-5.436%2013.406-13.594%202.8-8.399%202.68-16.476%200-27.25-1.925-7.758-5.604-13.594-13.406-13.594zM70.575%2093.313c2.78%200%205.031%202.278%205.031%205.094%200%202.827-2.251%205.125-5.031%205.125-2.77%200-5.031-2.298-5.031-5.125%200-2.816%202.261-5.094%205.031-5.094'%20class='jp-icon-selectable'/%3e%3c/svg%3e",rKernelSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='xMidYMid'%20width='16'%20height='16'%20viewBox='0%200%20724%20561'%3e%3cpath%20class='jp-icon-selectable'%20d='M361.453,485.937%20C162.329,485.937%200.906,377.828%200.906,244.469%20C0.906,111.109%20162.329,3.000%20361.453,3.000%20C560.578,3.000%20722.000,111.109%20722.000,244.469%20C722.000,377.828%20560.578,485.937%20361.453,485.937%20ZM416.641,97.406%20C265.289,97.406%20142.594,171.314%20142.594,262.484%20C142.594,353.654%20265.289,427.562%20416.641,427.562%20C567.992,427.562%20679.687,377.033%20679.687,262.484%20C679.687,147.971%20567.992,97.406%20416.641,97.406%20Z'%20fill='rgb(179,179,179)'%20fill-rule='evenodd'/%3e%3cpath%20class='jp-icon-selectable'%20d='M550.000,377.000%20C550.000,377.000%20571.822,383.585%20584.500,390.000%20C588.899,392.226%20596.510,396.668%20602.000,402.500%20C607.378,408.212%20610.000,414.000%20610.000,414.000%20L696.000,559.000%20L557.000,559.062%20L492.000,437.000%20C492.000,437.000%20478.690,414.131%20470.500,407.500%20C463.668,401.969%20460.755,400.000%20454.000,400.000%20C449.298,400.000%20420.974,400.000%20420.974,400.000%20L421.000,558.974%20L298.000,559.026%20L298.000,152.938%20L545.000,152.938%20C545.000,152.938%20657.500,154.967%20657.500,262.000%20C657.500,369.033%20550.000,377.000%20550.000,377.000%20ZM496.500,241.024%20L422.037,240.976%20L422.000,310.026%20L496.500,310.002%20C496.500,310.002%20531.000,309.895%20531.000,274.877%20C531.000,239.155%20496.500,241.024%20496.500,241.024%20Z'%20fill='rgb(52,101,176)'%20fill-rule='evenodd'/%3e%3c/svg%3e",reactSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='150%20150%20541.9%20295.3'%3e%3cg%20fill='%2361DAFB'%20class='jp-icon-brand2%20jp-icon-selectable'%3e%3cpath%20d='M666.3%20296.5c0-32.5-40.7-63.3-103.1-82.4%2014.4-63.6%208-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6%200%208.3.9%2011.4%202.6%2013.6%207.8%2019.5%2037.5%2014.9%2075.7-1.1%209.4-2.9%2019.3-5.1%2029.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50%2032.6-30.3%2063.2-46.9%2084-46.9V78c-27.5%200-63.5%2019.6-99.9%2053.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7%200%2051.4%2016.5%2084%2046.6-14%2014.7-28%2031.4-41.3%2049.9-22.6%202.4-44%206.1-63.6%2011-2.3-10-4-19.7-5.2-29-4.7-38.2%201.1-67.9%2014.6-75.8%203-1.8%206.9-2.6%2011.5-2.6V78.5c-8.4%200-16%201.8-22.6%205.6-28.1%2016.2-34.4%2066.7-19.9%20130.1-62.2%2019.2-102.7%2049.9-102.7%2082.3%200%2032.5%2040.7%2063.3%20103.1%2082.4-14.4%2063.6-8%20114.2%2020.2%20130.4%206.5%203.8%2014.1%205.6%2022.5%205.6%2027.5%200%2063.5-19.6%2099.9-53.6%2036.4%2033.8%2072.4%2053.2%2099.9%2053.2%208.4%200%2016-1.8%2022.6-5.6%2028.1-16.2%2034.4-66.7%2019.9-130.1%2062-19.1%20102.5-49.9%20102.5-82.3m-130.2-66.7c-3.7%2012.9-8.3%2026.2-13.5%2039.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4%2014.2%202.1%2027.9%204.7%2041%207.9m-45.8%20106.5c-7.8%2013.5-15.8%2026.3-24.1%2038.2-14.9%201.3-30%202-45.2%202-15.1%200-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8%206.2-13.4%2013.2-26.8%2020.7-39.9%207.8-13.5%2015.8-26.3%2024.1-38.2%2014.9-1.3%2030-2%2045.2-2%2015.1%200%2030.2.7%2045%201.9%208.3%2011.9%2016.4%2024.6%2024.2%2038%207.6%2013.1%2014.5%2026.4%2020.8%2039.8-6.3%2013.4-13.2%2026.8-20.7%2039.9m32.3-13c5.4%2013.4%2010%2026.8%2013.8%2039.8-13.1%203.2-26.9%205.9-41.2%208%204.9-7.7%209.8-15.6%2014.4-23.7%204.6-8%208.9-16.1%2013-24.1M421.2%20430c-9.3-9.6-18.6-20.3-27.8-32%209%20.4%2018.2.7%2027.5.7%209.4%200%2018.7-.2%2027.8-.7-9%2011.7-18.3%2022.4-27.5%2032m-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9%203.7-12.9%208.3-26.2%2013.5-39.5%204.1%208%208.4%2016%2013.1%2024q7.05%2012%2014.4%2023.4M420.7%20163c9.3%209.6%2018.6%2020.3%2027.8%2032-9-.4-18.2-.7-27.5-.7-9.4%200-18.7.2-27.8.7%209-11.7%2018.3-22.4%2027.5-32m-74%2058.9c-4.9%207.7-9.8%2015.6-14.4%2023.7-4.6%208-8.9%2016-13%2024-5.4-13.4-10-26.8-13.8-39.8%2013.1-3.1%2026.9-5.8%2041.2-7.9m-90.5%20125.2c-35.4-15.1-58.3-34.9-58.3-50.6s22.9-35.6%2058.3-50.6c8.6-3.7%2018-7%2027.7-10.1%205.7%2019.6%2013.2%2040%2022.5%2060.9-9.2%2020.8-16.6%2041.1-22.2%2060.6-9.9-3.1-19.3-6.5-28-10.2M310%20490c-13.6-7.8-19.5-37.5-14.9-75.7%201.1-9.4%202.9-19.3%205.1-29.4%2019.6%204.8%2041%208.5%2063.5%2010.9%2013.5%2018.5%2027.5%2035.3%2041.6%2050-32.6%2030.3-63.2%2046.9-84%2046.9-4.5-.1-8.3-1-11.3-2.7m237.2-76.2c4.7%2038.2-1.1%2067.9-14.6%2075.8-3%201.8-6.9%202.6-11.5%202.6-20.7%200-51.4-16.5-84-46.6%2014-14.7%2028-31.4%2041.3-49.9%2022.6-2.4%2044-6.1%2063.6-11%202.3%2010.1%204.1%2019.8%205.2%2029.1m38.5-66.7c-8.6%203.7-18%207-27.7%2010.1-5.7-19.6-13.2-40-22.5-60.9%209.2-20.8%2016.6-41.1%2022.2-60.6%209.9%203.1%2019.3%206.5%2028.1%2010.2%2035.4%2015.1%2058.3%2034.9%2058.3%2050.6-.1%2015.7-23%2035.6-58.4%2050.6M320.8%2078.4'/%3e%3ccircle%20cx='420.9'%20cy='296.5'%20r='45.7'/%3e%3c/g%3e%3c/svg%3e",redoSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M18.4%2010.6C16.55%208.99%2014.15%208%2011.5%208c-4.65%200-8.58%203.03-9.96%207.22L3.9%2016a8%208%200%200%201%207.6-5.5c1.95%200%203.73.72%205.12%201.88L13%2016h9V7z'%20class='jp-icon3'/%3e%3c/svg%3e",regexSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2020%2020'%3e%3cpath%20fill='%23414141'%20d='M2%202h16v16H2z'%20class='jp-icon2'/%3e%3cg%20fill='%23FFF'%20class='jp-icon-accent2'%3e%3ccircle%20cx='5.5'%20cy='14.5'%20r='1.5'/%3e%3cpath%20d='M12%204h1v8h-1z'/%3e%3cpath%20d='m8.786%209.567%206.928-4%20.5.866-6.928%204z'/%3e%3cpath%20d='m8.786%206.433.5-.866%206.928%204-.5.866z'/%3e%3c/g%3e%3c/svg%3e",runSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M8%205v14l11-7z'%20class='jp-icon3'/%3e%3c/svg%3e",runningSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%20512%20512'%3e%3cpath%20fill='%23616161'%20d='M256%208C119%208%208%20119%208%20256s111%20248%20248%20248%20248-111%20248-248S393%208%20256%208m96%20328c0%208.8-7.2%2016-16%2016H176c-8.8%200-16-7.2-16-16V176c0-8.8%207.2-16%2016-16h160c8.8%200%2016%207.2%2016%2016z'%20class='jp-icon3'/%3e%3c/svg%3e",saveSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M17%203H5a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h14c1.1%200%202-.9%202-2V7zm-5%2016c-1.66%200-3-1.34-3-3s1.34-3%203-3%203%201.34%203%203-1.34%203-3%203m3-10H5V5h10z'%20class='jp-icon3'/%3e%3c/svg%3e",searchSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2018%2018'%3e%3cpath%20fill='%23616161'%20d='M12.1%2010.9h-.7l-.2-.2c.8-.9%201.3-2.2%201.3-3.5%200-3-2.4-5.4-5.4-5.4S1.8%204.2%201.8%207.1s2.4%205.4%205.4%205.4c1.3%200%202.5-.5%203.5-1.3l.2.2v.7l4.1%204.1%201.2-1.2zm-5%200c-2.1%200-3.7-1.7-3.7-3.7s1.7-3.7%203.7-3.7%203.7%201.7%203.7%203.7-1.6%203.7-3.7%203.7'%20class='jp-icon3'/%3e%3c/svg%3e",settingsSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M19.43%2012.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49%201c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.49.49%200%200%200%2014%202h-4c-.25%200-.46.18-.49.42l-.38%202.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49%200-.61.22l-2%203.46c-.13.22-.07.49.12.64l2.11%201.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11%201.65c-.19.15-.24.42-.12.64l2%203.46c.12.22.39.3.61.22l2.49-1c.52.4%201.08.73%201.69.98l.38%202.65c.03.24.24.42.49.42h4c.25%200%20.46-.18.49-.42l.38-2.65c.61-.25%201.17-.59%201.69-.98l2.49%201c.23.09.49%200%20.61-.22l2-3.46c.12-.22.07-.49-.12-.64zM12%2015.5c-1.93%200-3.5-1.57-3.5-3.5s1.57-3.5%203.5-3.5%203.5%201.57%203.5%203.5-1.57%203.5-3.5%203.5'%20class='jp-icon3%20jp-icon-selectable'/%3e%3c/svg%3e",shareSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M18%202c-1.645%200-3%201.355-3%203%200%20.191.022.377.057.559L7.922%209.72A2.97%202.97%200%200%200%206%209c-1.645%200-3%201.355-3%203s1.355%203%203%203c.732%200%201.399-.278%201.922-.72l7.135%204.16A3%203%200%200%200%2015%2019c0%201.645%201.355%203%203%203s3-1.355%203-3-1.355-3-3-3a2.97%202.97%200%200%200-1.922.723l-7.135-4.164C8.978%2012.377%209%2012.19%209%2012s-.022-.377-.057-.559l7.135-4.162C16.601%207.722%2017.268%208%2018%208c1.645%200%203-1.355%203-3s-1.355-3-3-3m0%202c.564%200%201%20.436%201%201s-.436%201-1%201-1-.436-1-1%20.436-1%201-1M6%2011c.564%200%201%20.436%201%201s-.436%201-1%201-1-.436-1-1%20.436-1%201-1m12%207c.564%200%201%20.436%201%201s-.436%201-1%201-1-.436-1-1%20.436-1%201-1'%20class='jp-icon3'/%3e%3c/svg%3e",spreadsheetSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2022%2022'%3e%3cpath%20fill='%234CAF50'%20d='M2.2%202.2v17.6h17.6V2.2zm15.4%207.7h-5.5V4.4h5.5zM9.9%204.4v5.5H4.4V4.4zm-5.5%207.7h5.5v5.5H4.4zm7.7%205.5v-5.5h5.5v5.5z'%20class='jp-icon-contrast1%20jp-icon-selectable'/%3e%3c/svg%3e",stepIntoSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23616161'%20d='M8%209.532h.542l3.905-3.905-1.061-1.06-2.637%202.61V1H7.251v6.177l-2.637-2.61-1.061%201.06%203.905%203.905zm1.956%203.481a2%202%200%201%201-4%200%202%202%200%200%201%204%200'%20class='jp-icon3'/%3e%3c/svg%3e",stepOutSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23616161'%20d='M8%201h-.542L3.553%204.905l1.061%201.06%202.637-2.61v6.177h1.498V3.355l2.637%202.61%201.061-1.06L8.542%201zm1.956%2012.013a2%202%200%201%201-4%200%202%202%200%200%201%204%200'%20class='jp-icon3'/%3e%3c/svg%3e",stepOverSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23616161'%20d='M14.25%205.75v-4h-1.5v2.542c-1.145-1.359-2.911-2.209-4.84-2.209-3.177%200-5.92%202.307-6.16%205.398l-.02.269h1.5l.022-.226c.212-2.195%202.202-3.94%204.656-3.94%201.736%200%203.244.875%204.05%202.166h-2.83v1.5h4.163l.962-.975V5.75zM8%2014a2%202%200%201%200%200-4%202%202%200%200%200%200%204'%20class='jp-icon3'/%3e%3c/svg%3e",stopSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M6%206h12v12H6z'%20class='jp-icon3'/%3e%3c/svg%3e",tabSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M21%203H3c-1.1%200-2%20.9-2%202v14c0%201.1.9%202%202%202h18c1.1%200%202-.9%202-2V5c0-1.1-.9-2-2-2m0%2016H3V5h10v4h8z'%20class='jp-icon3'/%3e%3c/svg%3e",tableRowsSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M21%208H3V4h18zm0%202H3v4h18zm0%206H3v4h18z'%20class='jp-icon3'/%3e%3c/svg%3e",tagSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20viewBox='0%200%2043%2028'%3e%3cpath%20fill='%23616161'%20d='M28.833%2012.334%2033%2016.501l4.166-4.167zM16.21%2021.61c-.523.52-1.366.52-1.885%200l-7.342-6.885c-.41-.386-.9-1.115-.935-1.677-.095-1.52-.028-4.429.018-5.971A1.093%201.093%200%200%201%207.118%206.03c1.97-.046%206.146-.095%206.534.293l8.085%207.315c.519.52.048%201.833-.475%202.356zM9.775%208.265a1.126%201.126%200%201%200-1.593%201.592%201.126%201.126%200%200%200%201.593-1.592'%20class='jp-icon3'/%3e%3c/svg%3e",terminalSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23333'%20d='M2%202h20v20H2z'%20class='jp-terminal-icon-background-color%20jp-icon-selectable'/%3e%3cpath%20fill='%23fff'%20d='M9.01%2014.762q0-.246-.077-.434a.9.9%200%200%200-.234-.351%201.6%201.6%200%200%200-.422-.288%205%205%200%200%200-.627-.263q-.592-.211-1.078-.446a3.5%203.5%200%200%201-.832-.544%202.2%202.2%200%200%201-.528-.721%202.4%202.4%200%200%201-.187-.985q0-.498.17-.908a2.1%202.1%200%200%201%20.48-.72q.31-.306.75-.493.44-.188.979-.24V7.11h.937v1.272q.527.07.95.287.421.217.714.568.3.345.457.82.165.47.164%201.055H8.998q0-.709-.323-1.072-.322-.37-.873-.37-.299%200-.521.083a.9.9%200%200%200-.358.223.9.9%200%200%200-.21.334q-.066.194-.065.421%200%20.23.064.41a.9.9%200%200%200%20.229.329q.165.152.428.293.263.134.656.275.591.223%201.072.463.48.235.82.55.346.312.528.727.187.41.187.973%200%20.515-.17.932-.17.41-.486.709t-.762.48a3.7%203.7%200%200%201-.996.229v1.148h-.931V17.1a4%204%200%200%201-.967-.217%202.6%202.6%200%200%201-.832-.504%202.4%202.4%200%200%201-.574-.826q-.217-.505-.217-1.207h1.635q0%20.421.123.709.123.281.316.45.2.165.451.235.252.07.516.07.627%200%20.949-.292a.98.98%200%200%200%20.322-.756m8.36%203.51h-5.343V17h5.344z'%20class='jp-terminal-icon-color%20jp-icon-selectable-inverse'/%3e%3c/svg%3e",textEditorSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M15%2015H3v2h12zm0-8H3v2h12zM3%2013h18v-2H3zm0%208h18v-2H3zM3%203v2h18V3z'%20class='jp-text-editor-icon-color%20jp-icon-selectable'/%3e%3c/svg%3e",tocSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M7%205h14v2H7zm0%208v-2h14v2zM4%204.5A1.5%201.5%200%200%201%205.5%206%201.5%201.5%200%200%201%204%207.5%201.5%201.5%200%200%201%202.5%206%201.5%201.5%200%200%201%204%204.5m0%206A1.5%201.5%200%200%201%205.5%2012%201.5%201.5%200%200%201%204%2013.5%201.5%201.5%200%200%201%202.5%2012%201.5%201.5%200%200%201%204%2010.5M7%2019v-2h14v2zm-3-2.5A1.5%201.5%200%200%201%205.5%2018%201.5%201.5%200%200%201%204%2019.5%201.5%201.5%200%200%201%202.5%2018%201.5%201.5%200%200%201%204%2016.5'%20class='jp-icon3%20jp-icon-selectable'/%3e%3c/svg%3e",treeViewSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M22%2011V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z'%20class='jp-icon3'/%3e%3c/svg%3e",trustedSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20fill='none'%20viewBox='0%200%2024%2025'%3e%3cpath%20stroke='%23333'%20stroke-width='2'%20d='M3.86%2014.44c-1.034-2.67-.996-5.382-.61-7.24%201.232-.267%202.83-.797%204.351-1.355a92%2092%200%200%200%204.387-1.75%2068%2068%200%200%200%204.23%201.748c1.532.57%203.182%201.11%204.536%201.37.382%201.859.417%204.564-.615%207.228-1.109%202.862-3.472%205.743-8.139%207.494-4.667-1.75-7.03-4.632-8.14-7.494Z'%20class='jp-icon2'/%3e%3cpath%20fill='%23333'%20stroke='%23333'%20d='m10.86%2014.733-2.133-1.866-.727.63L10.86%2016%2016%2010.5l-.721-.632z'%20class='jp-icon2'/%3e%3c/svg%3e",undoSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M12.5%208c-2.65%200-5.05.99-6.9%202.6L2%207v9h9l-3.62-3.62c1.39-1.16%203.16-1.88%205.12-1.88%203.54%200%206.55%202.31%207.6%205.5l2.37-.78C21.08%2011.03%2017.15%208%2012.5%208'%20class='jp-icon3'/%3e%3c/svg%3e",userSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M16%207a4%204%200%201%201-8%200%204%204%200%200%201%208%200m-4%207a7%207%200%200%200-7%207h14a7%207%200%200%200-7-7'%20class='jp-icon3'/%3e%3c/svg%3e",usersSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20version='1.1'%20viewBox='0%200%2036%2024'%3e%3cg%20fill='%23616161'%20class='jp-icon3'%20transform='translate(-3.628%20.1)scale(1.7327)'%3e%3cpath%20d='M18.279%205.265c-1.58%200-2.964.85-3.718%202.115a6.7%206.7%200%200%201%202.81%202.21h5.23a4.32%204.32%200%200%200-4.322-4.325m2.186-2.875a2.19%202.19%200%200%201-2.188%202.188%202.19%202.19%200%200%201-2.189-2.189A2.19%202.19%200%200%201%2018.277.201a2.19%202.19%200%200%201%202.188%202.188M5.385%206.633a3.02%203.02%200%200%200-3.02%203.02h4.22a6.7%206.7%200%200%201%201.44-1.467%203.02%203.02%200%200%200-2.64-1.553m1.53-2.01a1.53%201.53%200%200%201-1.529%201.53%201.53%201.53%200%200%201-1.53-1.53%201.53%201.53%200%200%201%201.53-1.53%201.53%201.53%200%200%201%201.53%201.53m-.781%208.912a5.865%205.865%200%200%201%2011.73%200z'/%3e%3ccircle%20cx='12'%20cy='3.768'%20r='2.969'/%3e%3c/g%3e%3c/svg%3e",variableSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='none'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23007ACC'%20fill-rule='evenodd'%20d='m1.5%204-.5.5v8l.5.5H4v-1H2V5h2V4zm13%209%20.5-.5v-8l-.5-.5H12v1h2v7h-2v1zM8.797%205l-4.5%202L4%207.457v2.5l.243.429%202.5%201.5.46.028%204.5-2L12%209.457v-2.5l-.243-.429-2.5-1.5zM5%208.34v1.334l1.5.9V9.24zm2.5.942v1.406L11%209.131V7.726zm2.918-2.391-1.452-.872-3.384%201.504%201.452.871z'%20clip-rule='evenodd'/%3e%3c/svg%3e",vegaSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2022%2022'%3e%3cg%20fill='%23212121'%20class='jp-icon1%20jp-icon-selectable'%3e%3cpath%20d='m10.6%205.4%202.2-3.2H2.2v7.3l4-6.6z'/%3e%3cpath%20d='m15.8%202.2-4.4%206.6L7%206.3l-4.8%208v5.5h17.6V2.2zm-7%2015.4H5.5v-4.4h3.3zm4.4%200H9.8V9.8h3.4zm4.4%200h-3.4V6.5h3.4z'/%3e%3c/g%3e%3c/svg%3e",viewBreakpointSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23616161'%20d='M5%202h10l5%205v13a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2v-6h1v2l4-3-4-3v2H3V4a2%202%200%200%201%202-2m7%2016h4v-2h-4zm0-4h6v-2h-6zm0-4h6V8h-6zm-2%204a1%201%200%201%200%200-2%201%201%200%200%200%200%202m-7-2v2H1v-2z'%20class='jp-icon3'/%3e%3c/svg%3e",wordSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2020%2020'%3e%3cpath%20fill='%23414141'%20d='M2%202h16v16H2z'%20class='jp-icon2'/%3e%3cpath%20fill='%23fff'%20d='M4.57%208.8q.068-1.89%202.42-1.89%201.16%200%201.68.42.567.41.567%201.16v3.47q0%20.462.514.462.103%200%20.2-.023v.714q-.399.103-.651.103-.452%200-.693-.22-.231-.2-.284-.662-.956.872-2%20.872-.903%200-1.47-.472-.525-.472-.525-1.26%200-.262.045-.472.057-.22.116-.378.068-.168.231-.304l.262-.242q.116-.091.368-.168.262-.091.4-.126.135-.045.471-.103t.504-.08l.567-.08q.556-.068.777-.22.22-.153.22-.442v-.252q0-.43-.357-.662-.336-.23-.976-.23-.662%200-.998.261-.336.252-.399.798zm1.89%203.68q.788%200%201.26-.41.504-.42.504-.903v-1.05q-.284.136-.861.231l-.987.158q-.42.068-.766.326-.336.252-.336.704t.304.704.861.252zm3.97-7.88h.945v3.15q.651-.976%201.89-.976%201.16%200%201.89.84.682.84.682%202.31t-.704%202.42q-.704.882-1.89.882-1.26%200-1.89-1.02v.766h-.85zm2.62%203.04q-.746%200-1.16.64-.452.63-.452%201.68t.452%201.68%201.16.63q.777%200%201.26-.63.494-.64.494-1.68%200-1.05-.472-1.68-.462-.64-1.26-.64zm-9.89%208.2%2013.6.008c.007%200%200-2.6%200-2.6%200-.008-1.15%200-1.15%200-.007%200-.008%201.5-.008%201.5l-11.3-.001-.006-1.5c0-.008-1.17.001-1.17.001z'%20class='jp-icon-accent2'/%3e%3c/svg%3e",yamlSvgstr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20viewBox='0%200%2022%2022'%3e%3cg%20fill='%23D81B60'%20class='jp-icon-contrast2%20jp-icon-selectable'%3e%3cpath%20d='M7.2%2018.6v-5.4L3%205.6h3.3l1.4%203.1c.3.9.6%201.6%201%202.5.3-.8.6-1.6%201-2.5l1.4-3.1h3.4l-4.4%207.6v5.5z'/%3e%3ccircle%20cx='17.6'%20cy='16.5'%20r='2.1'/%3e%3ccircle%20cx='17.6'%20cy='11'%20r='2.1'/%3e%3c/g%3e%3c/svg%3e";new LabIcon({name:"ui-components:add-above",svgstr:addAboveSvgstr}),new LabIcon({name:"ui-components:add-below",svgstr:addBelowSvgstr}),new LabIcon({name:"ui-components:add",svgstr:addSvgstr}),new LabIcon({name:"ui-components:bell",svgstr:bellSvgstr}),new LabIcon({name:"ui-components:bug-dot",svgstr:bugDotSvgstr}),new LabIcon({name:"ui-components:bug",svgstr:bugSvgstr}),new LabIcon({name:"ui-components:build",svgstr:buildSvgstr}),new LabIcon({name:"ui-components:caret-down-empty",svgstr:caretDownEmptySvgstr}),new LabIcon({name:"ui-components:caret-down-empty-thin",svgstr:caretDownEmptyThinSvgstr}),new LabIcon({name:"ui-components:caret-down",svgstr:caretDownSvgstr}),new LabIcon({name:"ui-components:caret-left",svgstr:caretLeftSvgstr}),new LabIcon({name:"ui-components:caret-right",svgstr:caretRightSvgstr}),new LabIcon({name:"ui-components:caret-up-empty-thin",svgstr:caretUpEmptyThinSvgstr}),new LabIcon({name:"ui-components:caret-up",svgstr:caretUpSvgstr}),new LabIcon({name:"ui-components:case-sensitive",svgstr:caseSensitiveSvgstr}),new LabIcon({name:"ui-components:check",svgstr:checkSvgstr}),new LabIcon({name:"ui-components:circle-empty",svgstr:circleEmptySvgstr}),new LabIcon({name:"ui-components:circle",svgstr:circleSvgstr}),new LabIcon({name:"ui-components:cleaning",svgstr:cleaningSvgstr}),new LabIcon({name:"ui-components:clear",svgstr:clearSvgstr}),new LabIcon({name:"ui-components:close-all",svgstr:closeAllSvgstr}),new LabIcon({name:"ui-components:close",svgstr:closeSvgstr}),new LabIcon({name:"ui-components:code-check",svgstr:codeCheckSvgstr}),new LabIcon({name:"ui-components:code",svgstr:codeSvgstr}),new LabIcon({name:"ui-components:collapse-all",svgstr:collapseAllSvgstr}),new LabIcon({name:"ui-components:collapse",svgstr:collapseSvgstr}),new LabIcon({name:"ui-components:console",svgstr:consoleSvgstr}),new LabIcon({name:"ui-components:copy",svgstr:copySvgstr}),new LabIcon({name:"ui-components:copyright",svgstr:copyrightSvgstr}),new LabIcon({name:"ui-components:cut",svgstr:cutSvgstr}),new LabIcon({name:"ui-components:delete",svgstr:deleteSvgstr}),new LabIcon({name:"ui-components:dock-bottom",svgstr:dockBottomSvgstr}),new LabIcon({name:"ui-components:dock-left",svgstr:dockLeftSvgstr}),new LabIcon({name:"ui-components:dock-right",svgstr:dockRightSvgstr}),new LabIcon({name:"ui-components:dock-top",svgstr:dockTopSvgstr}),new LabIcon({name:"ui-components:dots",svgstr:dotsSvgstr}),new LabIcon({name:"ui-components:download",svgstr:downloadSvgstr}),new LabIcon({name:"ui-components:duplicate",svgstr:duplicateSvgstr}),new LabIcon({name:"ui-components:edit",svgstr:editSvgstr}),new LabIcon({name:"ui-components:ellipses",svgstr:ellipsesSvgstr}),new LabIcon({name:"ui-components:error",svgstr:errorSvgstr}),new LabIcon({name:"ui-components:exceptions",svgstr:exceptionsSvgstr}),new LabIcon({name:"ui-components:expand-all",svgstr:expandAllSvgstr}),new LabIcon({name:"ui-components:expand",svgstr:expandSvgstr}),new LabIcon({name:"ui-components:extension",svgstr:extensionSvgstr}),new LabIcon({name:"ui-components:fast-forward",svgstr:fastForwardSvgstr}),new LabIcon({name:"ui-components:file",svgstr:fileSvgstr}),new LabIcon({name:"ui-components:file-upload",svgstr:fileUploadSvgstr}),new LabIcon({name:"ui-components:filter-dot",svgstr:filterDotSvgstr}),new LabIcon({name:"ui-components:filter",svgstr:filterSvgstr}),new LabIcon({name:"ui-components:filter-list",svgstr:filterListSvgstr}),new LabIcon({name:"ui-components:folder-favorite",svgstr:folderFavoriteSvgstr}),new LabIcon({name:"ui-components:folder",svgstr:folderSvgstr}),new LabIcon({name:"ui-components:history",svgstr:historySvgstr}),new LabIcon({name:"ui-components:home",svgstr:homeSvgstr}),new LabIcon({name:"ui-components:html5",svgstr:html5Svgstr}),new LabIcon({name:"ui-components:image",svgstr:imageSvgstr}),new LabIcon({name:"ui-components:info",svgstr:infoSvgstr}),new LabIcon({name:"ui-components:inspector",svgstr:inspectorSvgstr});const jsonIcon=new LabIcon({name:"ui-components:json",svgstr:jsonSvgstr});new LabIcon({name:"ui-components:julia",svgstr:juliaSvgstr}),new LabIcon({name:"ui-components:jupyter-favicon",svgstr:jupyterFaviconSvgstr}),new LabIcon({name:"ui-components:jupyter",svgstr:jupyterSvgstr}),new LabIcon({name:"ui-components:jupyterlab-wordmark",svgstr:jupyterlabWordmarkSvgstr}),new LabIcon({name:"ui-components:kernel",svgstr:kernelSvgstr}),new LabIcon({name:"ui-components:keyboard",svgstr:keyboardSvgstr}),new LabIcon({name:"ui-components:launch",svgstr:launchSvgstr}),new LabIcon({name:"ui-components:launcher",svgstr:launcherSvgstr}),new LabIcon({name:"ui-components:line-form",svgstr:lineFormSvgstr}),new LabIcon({name:"ui-components:link",svgstr:linkSvgstr}),new LabIcon({name:"ui-components:list",svgstr:listSvgstr}),new LabIcon({name:"ui-components:lock",svgstr:lockSvgstr});const markdownIcon=new LabIcon({name:"ui-components:markdown",svgstr:markdownSvgstr});new LabIcon({name:"ui-components:mermaid",svgstr:mermaidSvgstr}),new LabIcon({name:"ui-components:move-down",svgstr:moveDownSvgstr}),new LabIcon({name:"ui-components:move-up",svgstr:moveUpSvgstr}),new LabIcon({name:"ui-components:new-folder",svgstr:newFolderSvgstr}),new LabIcon({name:"ui-components:not-trusted",svgstr:notTrustedSvgstr});const notebookIcon=new LabIcon({name:"ui-components:notebook",svgstr:notebookSvgstr});new LabIcon({name:"ui-components:numbering",svgstr:numberingSvgstr}),new LabIcon({name:"ui-components:offline-bolt",svgstr:offlineBoltSvgstr}),new LabIcon({name:"ui-components:open-kernel-source",svgstr:openKernelSourceSvgstr}),new LabIcon({name:"ui-components:palette",svgstr:paletteSvgstr}),new LabIcon({name:"ui-components:paste",svgstr:pasteSvgstr}),new LabIcon({name:"ui-components:pause",svgstr:pauseSvgstr});const pdfIcon=new LabIcon({name:"ui-components:pdf",svgstr:pdfSvgstr}),pythonIcon=new LabIcon({name:"ui-components:python",svgstr:pythonSvgstr});new LabIcon({name:"ui-components:r-kernel",svgstr:rKernelSvgstr}),new LabIcon({name:"ui-components:react",svgstr:reactSvgstr}),new LabIcon({name:"ui-components:redo",svgstr:redoSvgstr}),new LabIcon({name:"ui-components:refresh",svgstr:refreshSvgstr}),new LabIcon({name:"ui-components:regex",svgstr:regexSvgstr}),new LabIcon({name:"ui-components:run",svgstr:runSvgstr}),new LabIcon({name:"ui-components:running",svgstr:runningSvgstr}),new LabIcon({name:"ui-components:save",svgstr:saveSvgstr}),new LabIcon({name:"ui-components:search",svgstr:searchSvgstr}),new LabIcon({name:"ui-components:settings",svgstr:settingsSvgstr}),new LabIcon({name:"ui-components:share",svgstr:shareSvgstr}),new LabIcon({name:"ui-components:spreadsheet",svgstr:spreadsheetSvgstr}),new LabIcon({name:"ui-components:step-into",svgstr:stepIntoSvgstr}),new LabIcon({name:"ui-components:step-out",svgstr:stepOutSvgstr}),new LabIcon({name:"ui-components:step-over",svgstr:stepOverSvgstr}),new LabIcon({name:"ui-components:stop",svgstr:stopSvgstr}),new LabIcon({name:"ui-components:tab",svgstr:tabSvgstr}),new LabIcon({name:"ui-components:table-rows",svgstr:tableRowsSvgstr}),new LabIcon({name:"ui-components:tag",svgstr:tagSvgstr}),new LabIcon({name:"ui-components:terminal",svgstr:terminalSvgstr}),new LabIcon({name:"ui-components:text-editor",svgstr:textEditorSvgstr}),new LabIcon({name:"ui-components:toc",svgstr:tocSvgstr}),new LabIcon({name:"ui-components:tree-view",svgstr:treeViewSvgstr}),new LabIcon({name:"ui-components:trusted",svgstr:trustedSvgstr}),new LabIcon({name:"ui-components:undo",svgstr:undoSvgstr}),new LabIcon({name:"ui-components:user",svgstr:userSvgstr}),new LabIcon({name:"ui-components:users",svgstr:usersSvgstr}),new LabIcon({name:"ui-components:variable",svgstr:variableSvgstr}),new LabIcon({name:"ui-components:vega",svgstr:vegaSvgstr}),new LabIcon({name:"ui-components:view-breakpoint",svgstr:viewBreakpointSvgstr}),new LabIcon({name:"ui-components:word",svgstr:wordSvgstr}),new LabIcon({name:"ui-components:yaml",svgstr:yamlSvgstr});const ReactIcon=({className:e,style:t})=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:e,width:"35.93",height:"32",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 256 228",style:t,children:jsxRuntimeExports.jsx("path",{fill:"#00D8FF",d:"M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"})}),JupyterIcon$1=notebookIcon.react,PythonIcon$1=pythonIcon.react,MarkdownIcon$1=markdownIcon.react,JSONIcon=jsonIcon.react,PDFIcon=pdfIcon.react;function getIconForFilePath(e){switch(e.split(".").pop()){case"ipynb":return jsxRuntimeExports.jsx(JupyterIcon$1,{className:"w-4 h-4"});case"py":return jsxRuntimeExports.jsx(PythonIcon$1,{className:"w-4 h-4"});case"md":return jsxRuntimeExports.jsx(MarkdownIcon$1,{className:"w-4 h-4"});case"json":return jsxRuntimeExports.jsx(JSONIcon,{className:"w-4 h-4"});case"tsx":case"jsx":return jsxRuntimeExports.jsx(ReactIcon,{className:"w-4 h-4"});case"pdf":return jsxRuntimeExports.jsx(PDFIcon,{className:"w-4 h-4"});default:return jsxRuntimeExports.jsx(File,{className:"size-4"})}}const parseCellOutput$1=e=>{try{const t=JSON.parse(e);if(t&&"object"==typeof t){const e=t["text/html"];return{isJson:!0,hasHtmlTable:e&&"string"==typeof e&&e.includes("<table"),data:t,htmlContent:e}}}catch{}return{isJson:!1,hasHtmlTable:!1,data:e}},CellExecuteRenderer=({toolCall:e,output:t,hasOutput:n,toolLabels:r,defaultCollapsed:i=!1})=>{var a,o,s,l,c,u,d,m,h;const[p,f]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}),[g,_]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(i),[b,x]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),E=(e,t)=>{navigator.clipboard.writeText(e),f(e=>({...e,[t]:!0})),setTimeout(()=>f(e=>({...e,[t]:!1})),3e3)},y=()=>{_(!g)};(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{if(n&&!g){let e;x(!1);const t=requestAnimationFrame(()=>{e=setTimeout(()=>{x(!0)},100)});return()=>{cancelAnimationFrame(t),e&&clearTimeout(e)}}x(!1)},[n,g]);const{textContent:T,imageUrl:v}=parseMixedOutput(t),S=parseCellOutput$1(t);return jsxRuntimeExports.jsxs("div",{className:"my-1",children:[n&&!g&&jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsxs("div",{className:"relative z-10 bg-gradient-to-br from-zinc-900 to-zinc-800 rounded-xl shadow-2xl overflow-hidden border border-border",children:[jsxRuntimeExports.jsx("div",{className:"px-4 py-1.5 bg-zinc-900/50 backdrop-blur-sm",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[g&&jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[jsxRuntimeExports.jsx("div",{className:"w-2 h-2 rounded-full bg-green-400"}),jsxRuntimeExports.jsx("span",{className:"text-xs text-zinc-400",children:"Executed"})]}),(null==(a=e.args)?void 0:a.file_path)&&jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-zinc-300 font-medium min-w-0",children:[jsxRuntimeExports.jsx("span",{className:"shrink-0",children:getIconForFilePath(null==(o=e.args)?void 0:o.file_path)}),jsxRuntimeExports.jsx("span",{className:"truncate min-w-0",children:null==(s=e.args)?void 0:s.file_path})]}),jsxRuntimeExports.jsx("div",{className:"flex-grow shrink"}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[(null==(l=e.args)?void 0:l.code)&&jsxRuntimeExports.jsxs("button",{className:"p-1.5 text-zinc-400 hover:text-zinc-200 hover:bg-zinc-700/50 rounded transition-colors",onClick:()=>E(e.args.code,`${e.callId}-code`),title:"Copy code",children:[p[`${e.callId}-code`]&&jsxRuntimeExports.jsx(CircleCheckBig,{className:"w-3.5 h-3.5 text-green-400"}),!p[`${e.callId}-code`]&&jsxRuntimeExports.jsx(Copy$1,{className:"w-3.5 h-3.5"})]}),jsxRuntimeExports.jsx("button",{className:"p-1.5 text-zinc-400 hover:text-zinc-200 hover:bg-zinc-700/50 rounded transition-colors",onClick:y,title:"Collapse",children:jsxRuntimeExports.jsx(ChevronUp,{className:"w-3.5 h-3.5"})})]})]})}),(null==(c=e.args)?void 0:c.code)&&jsxRuntimeExports.jsx("div",{className:"border-t border-zinc-700/50",children:jsxRuntimeExports.jsx(_uiw_react_codemirror__WEBPACK_IMPORTED_MODULE_2___default(),{value:e.args.code,readOnly:!0,height:"auto",extensions:[getLanguageExtension("python"),_codemirror_view__WEBPACK_IMPORTED_MODULE_6__.EditorView.theme({".cm-content":{fontSize:"13px"},".cm-gutters":{fontSize:"13px"},"&":{backgroundColor:"transparent"}})],theme:"dark",basicSetup:{lineNumbers:!0,foldGutter:!1,highlightActiveLineGutter:!1}})}),jsxRuntimeExports.jsx("div",{className:"px-4 py-2 bg-gradient-to-r from-green-500/20 to-emerald-500/20",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx(CirclePlay,{className:"w-3.5 h-3.5 text-green-400"}),jsxRuntimeExports.jsx("span",{className:"text-xs text-green-300 font-medium",children:"Cell executed"})]})})]}),jsxRuntimeExports.jsx("div",{className:"relative z-0 pt-16 pb-4 px-4 bg-card text-card-foreground rounded-xl border border-border -translate-y-12 -mb-12 transition-all duration-1000 ease-out "+(b?"opacity-100 translate-y-0":"opacity-0 -translate-y-8"),style:{transform:b?"translateY(-3rem)":"translateY(-5rem)"},children:jsxRuntimeExports.jsxs("div",{className:"pt-1",children:[S.isJson&&jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[S.hasHtmlTable&&S.htmlContent&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"text-xs font-semibold text-muted-foreground mb-2 uppercase tracking-wide",children:"Table"}),jsxRuntimeExports.jsx("div",{className:"border border-border rounded-lg max-h-96 overflow-auto bg-background shadow-sm",dangerouslySetInnerHTML:{__html:S.htmlContent}})]}),v&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"text-xs font-semibold text-muted-foreground mb-2 uppercase tracking-wide",children:"Image"}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-2",children:[jsxRuntimeExports.jsx("img",{src:v,alt:"Cell execution output",className:"max-w-full h-auto rounded-lg border border-border shadow-sm",onError:e=>{console.error("Failed to load image:",v),e.currentTarget.style.display="none"}}),jsxRuntimeExports.jsx("div",{className:"text-xs text-muted-foreground font-mono bg-muted/60 px-2 py-1 rounded",children:v})]})]}),T&&T.trim()&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"text-xs font-semibold text-muted-foreground mb-2 uppercase tracking-wide",children:"Text"}),jsxRuntimeExports.jsx("pre",{className:"bg-muted/60 text-foreground p-3 rounded-lg font-mono text-xs whitespace-pre overflow-x-auto max-h-64 overflow-y-auto border border-border",children:T})]}),!S.hasHtmlTable&&!v&&(!T||!T.trim())&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"text-xs font-semibold text-muted-foreground mb-2 uppercase tracking-wide",children:"JSON"}),jsxRuntimeExports.jsx("pre",{className:"bg-muted/60 text-foreground p-3 rounded-lg font-mono text-sm whitespace-pre overflow-x-auto max-h-64 overflow-y-auto border border-border",children:JSON.stringify(S.data,null,2)})]})]}),!S.isJson&&jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[v&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"text-xs font-semibold text-muted-foreground mb-2 uppercase tracking-wide",children:"Image"}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-2",children:[jsxRuntimeExports.jsx("img",{src:v,alt:"Cell execution output",className:"max-w-full h-auto rounded-lg border border-border shadow-sm",onError:e=>{console.error("Failed to load image:",v),e.currentTarget.style.display="none"}}),jsxRuntimeExports.jsx("div",{className:"text-xs text-muted-foreground font-mono bg-muted/60 px-2 py-1 rounded",children:v})]})]}),T&&T.trim()&&jsxRuntimeExports.jsxs("div",{children:[v&&jsxRuntimeExports.jsx("div",{className:"text-xs font-semibold text-muted-foreground mb-2 uppercase tracking-wide",children:"Text"}),jsxRuntimeExports.jsx("pre",{className:"bg-muted/60 text-foreground p-3 rounded-lg font-mono text-xs whitespace-pre overflow-x-auto max-h-64 overflow-y-auto border border-border",children:T})]}),!v&&(!T||!T.trim())&&jsxRuntimeExports.jsx("pre",{className:"bg-muted/60 text-foreground p-3 rounded-lg font-mono text-sm whitespace-pre overflow-x-auto max-h-64 overflow-y-auto border border-border",children:t})]})]})})]}),(!n||g)&&jsxRuntimeExports.jsx("div",{className:"relative bg-gradient-to-br from-zinc-900 to-zinc-800 rounded-xl overflow-hidden",children:jsxRuntimeExports.jsx("div",{className:"px-4 py-1.5 bg-zinc-900/50 backdrop-blur-sm",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[!n&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"w-2 h-2 rounded-full bg-amber-400 animate-pulse"}),jsxRuntimeExports.jsx("span",{className:"text-xs text-zinc-400",children:"Running"})]}),n&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"w-2 h-2 rounded-full bg-green-400"}),jsxRuntimeExports.jsx("span",{className:"text-xs text-zinc-400",children:"Executed"})]})]}),(null==(u=e.args)?void 0:u.file_path)&&jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-zinc-300 font-medium min-w-0",children:[jsxRuntimeExports.jsx("span",{className:"shrink-0",children:getIconForFilePath(null==(d=e.args)?void 0:d.file_path)}),jsxRuntimeExports.jsx("span",{className:"truncate min-w-0",children:null==(m=e.args)?void 0:m.file_path})]}),jsxRuntimeExports.jsx("div",{className:"flex-grow shrink"}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[(null==(h=e.args)?void 0:h.code)&&jsxRuntimeExports.jsxs("button",{className:"p-1.5 text-zinc-400 hover:text-zinc-200 hover:bg-zinc-700/50 rounded transition-colors",onClick:()=>E(e.args.code,`${e.callId}-code`),title:"Copy code",children:[p[`${e.callId}-code`]&&jsxRuntimeExports.jsx(CircleCheckBig,{className:"w-3.5 h-3.5 text-green-400"}),!p[`${e.callId}-code`]&&jsxRuntimeExports.jsx(Copy$1,{className:"w-3.5 h-3.5"})]}),n&&jsxRuntimeExports.jsx("button",{className:"p-1.5 text-zinc-400 hover:text-zinc-200 hover:bg-zinc-700/50 rounded transition-colors",onClick:y,title:"Expand",children:jsxRuntimeExports.jsx(ChevronDown,{className:"w-3.5 h-3.5"})})]})]})})})]})},DefaultBufferLength=1024;let nextPropID=0;class Range{constructor(e,t){this.from=e,this.to=t}}class NodeProp{constructor(e={}){this.id=nextPropID++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=NodeType.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}NodeProp.closedBy=new NodeProp({deserialize:e=>e.split(" ")}),NodeProp.openedBy=new NodeProp({deserialize:e=>e.split(" ")}),NodeProp.group=new NodeProp({deserialize:e=>e.split(" ")}),NodeProp.isolate=new NodeProp({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),NodeProp.contextHash=new NodeProp({perNode:!0}),NodeProp.lookAhead=new NodeProp({perNode:!0}),NodeProp.mounted=new NodeProp({perNode:!0});class MountedTree{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[NodeProp.mounted.id]}}const noProps=Object.create(null);class NodeType{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):noProps,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new NodeType(e.name||"",t,e.id,n);if(e.props)for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(NodeProp.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(NodeProp.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}NodeType.none=new NodeType("",Object.create(null),0,8);class NodeSet{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let r=null;for(let t of e){let e=t(n);e&&(r||(r=Object.assign({},n.props)),r[e[0].id]=e[1])}t.push(r?new NodeType(n.name,r,n.id,n.flags):n)}return new NodeSet(t)}}const CachedNode=new WeakMap,CachedInnerNode=new WeakMap;var IterMode;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(IterMode||(IterMode={}));class Tree{constructor(e,t,n,r,i){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,i&&i.length){this.props=Object.create(null);for(let[e,t]of i)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=MountedTree.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let n=e.toString();n&&(t&&(t+=","),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new TreeCursor(this.topNode,e)}cursorAt(e,t=0,n=0){let r=CachedNode.get(this)||this.topNode,i=new TreeCursor(r);return i.moveTo(e,t),CachedNode.set(this,i._tree),i}get topNode(){return new TreeNode(this,0,0,null)}resolve(e,t=0){let n=resolveNode(CachedNode.get(this)||this.topNode,e,t,!1);return CachedNode.set(this,n),n}resolveInner(e,t=0){let n=resolveNode(CachedInnerNode.get(this)||this.topNode,e,t,!0);return CachedInnerNode.set(this,n),n}resolveStack(e,t=0){return stackIterator(this,e,t)}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e,a=e.mode||0,o=(a&IterMode.IncludeAnonymous)>0;for(let e=this.cursor(a|IterMode.IncludeAnonymous);;){let a=!1;if(e.from<=i&&e.to>=r&&(!o&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;a=!0}for(;a&&n&&(o||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;a=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:balanceRange(NodeType.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,n)=>new Tree(this.type,e,t,n,this.propValues),e.makeTree||((e,t,n)=>new Tree(NodeType.none,e,t,n)))}static build(e){return buildTree$1(e)}}Tree.empty=new Tree(NodeType.none,[],[],0);class FlatBufferCursor{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new FlatBufferCursor(this.buffer,this.index)}}class TreeBuffer{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return NodeType.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),n==(e+=4))return i;let a=[];for(;e<n;)a.push(this.childString(e)),e=this.buffer[e+3];return i+"("+a.join(",")+")"}findChild(e,t,n,r,i){let{buffer:a}=this,o=-1;for(let s=e;s!=t&&!(checkSide(i,r,a[s+1],a[s+2])&&(o=s,n>0));s=a[s+3]);return o}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),a=0;for(let o=e,s=0;o<t;){i[s++]=r[o++],i[s++]=r[o++]-n;let t=i[s++]=r[o++]-n;i[s++]=r[o++]-e,a=Math.max(a,t)}return new TreeBuffer(i,a,this.set)}}function checkSide(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function resolveNode(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!r&&e instanceof TreeNode&&e.index<0?null:e.parent;if(!t)return e;e=t}let a=r?0:IterMode.IgnoreOverlays;if(r)for(let r=e,o=r.parent;o;r=o,o=r.parent)r instanceof TreeNode&&r.index<0&&(null===(i=o.enter(t,n,a))||void 0===i?void 0:i.from)!=r.from&&(e=o);for(;;){let r=e.enter(t,n,a);if(!r)return e;e=r}}class BaseNode{cursor(e=0){return new TreeCursor(this,e)}getChild(e,t=null,n=null){let r=getChildren(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return getChildren(this,e,t,n)}resolve(e,t=0){return resolveNode(this,e,t,!1)}resolveInner(e,t=0){return resolveNode(this,e,t,!0)}matchContext(e){return matchNodeContext(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}}class TreeNode extends BaseNode{constructor(e,t,n,r){super(),this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,r,i=0){for(let a=this;;){for(let{children:o,positions:s}=a._tree,l=t>0?o.length:-1;e!=l;e+=t){let l=o[e],c=s[e]+a.from;if(checkSide(r,n,c,c+l.length))if(l instanceof TreeBuffer){if(i&IterMode.ExcludeBuffers)continue;let o=l.findChild(0,l.buffer.length,t,n-c,r);if(o>-1)return new BufferNode(new BufferContext(a,l,e,c),null,o)}else if(i&IterMode.IncludeAnonymous||!l.type.isAnonymous||hasChild(l)){let o;if(!(i&IterMode.IgnoreMounts)&&(o=MountedTree.get(l))&&!o.overlay)return new TreeNode(o.tree,c,e,a);let s=new TreeNode(l,c,e,a);return i&IterMode.IncludeAnonymous||!s.type.isAnonymous?s:s.nextChild(t<0?l.children.length-1:0,t,n,r)}}if(i&IterMode.IncludeAnonymous||!a.type.isAnonymous||(e=a.index>=0?a.index+t:t<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let r;if(!(n&IterMode.IgnoreOverlays)&&(r=MountedTree.get(this._tree))&&r.overlay){let n=e-this.from;for(let{from:e,to:i}of r.overlay)if((t>0?e<=n:e<n)&&(t<0?i>=n:i>n))return new TreeNode(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function getChildren(e,t,n,r){let i=e.cursor(),a=[];if(!i.firstChild())return a;if(null!=n)for(let e=!1;!e;)if(e=i.type.is(n),!i.nextSibling())return a;for(;;){if(null!=r&&i.type.is(r))return a;if(i.type.is(t)&&a.push(i.node),!i.nextSibling())return null==r?a:[]}}function matchNodeContext(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class BufferContext{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class BufferNode extends BaseNode{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new BufferNode(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&IterMode.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new BufferNode(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new BufferNode(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new BufferNode(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let a=n.buffer[this.index+1];e.push(n.slice(r,i,a)),t.push(0)}return new Tree(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function iterStack(e){if(!e.length)return null;let t=0,n=e[0];for(let r=1;r<e.length;r++){let i=e[r];(i.from>n.from||i.to<n.to)&&(n=i,t=r)}let r=n instanceof TreeNode&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new StackIterator(i,n)}class StackIterator{constructor(e,t){this.heads=e,this.node=t}get next(){return iterStack(this.heads)}}function stackIterator(e,t,n){let r=e.resolveInner(t,n),i=null;for(let e=r instanceof TreeNode?r:r.context.parent;e;e=e.parent)if(e.index<0){let a=e.parent;(i||(i=[r])).push(a.resolve(t,n)),e=a}else{let a=MountedTree.get(e.tree);if(a&&a.overlay&&a.overlay[0].from<=t&&a.overlay[a.overlay.length-1].to>=t){let o=new TreeNode(a.tree,a.overlay[0].from+e.from,-1,e);(i||(i=[r])).push(resolveNode(o,t,n,!1))}}return i?iterStack(i):r}class TreeCursor{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof TreeNode)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof TreeNode?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&IterMode.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&IterMode.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&IterMode.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(r.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=r)}else({index:t,_parent:n}=this._tree);for(;n;({index:t,_parent:n}=n))if(t>-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&IterMode.IncludeAnonymous||e instanceof TreeBuffer||!e.type.isAnonymous||hasChild(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let r=this.index,i=this.stack.length;i>=0;){for(let a=e;a;a=a._parent)if(a.index==r){if(r==this.index)return a;t=a,n=i+1;break e}r=this.stack[--i]}for(let e=n;e<this.stack.length;e++)t=new BufferNode(this.buffer,t,this.stack[e]);return this.bufferNode=new BufferNode(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&t&&t(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return matchNodeContext(this.node.parent,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let r=e.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return matchNodeContext(this._tree,e,r);let a=n[t.buffer[this.stack[i]]];if(!a.isAnonymous){if(e[r]&&e[r]!=a.name)return!1;r--}}return!0}}function hasChild(e){return e.children.some(e=>e instanceof TreeBuffer||!e.type.isAnonymous||hasChild(e))}function buildTree$1(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=DefaultBufferLength,reused:a=[],minRepeatType:o=r.types.length}=e,s=Array.isArray(n)?new FlatBufferCursor(n,n.length):n,l=r.types,c=0,u=0;function d(e,t,n,g,_,b){let{id:x,start:E,end:y,size:T}=s,v=u,S=c;for(;T<0;){if(s.next(),-1==T){let t=a[x];return n.push(t),void g.push(E-e)}if(-3==T)return void(c=x);if(-4==T)return void(u=x);throw new RangeError(`Unrecognized record size: ${T}`)}let w,k,A=l[x],C=E-e;if(y-E<=i&&(k=function(e,t){let n=s.fork(),r=0,a=0,l=0,c=n.end-i,u={size:0,start:0,skip:0};e:for(let i=n.pos-e;n.pos>i;){let e=n.size;if(n.id==t&&e>=0){u.size=r,u.start=a,u.skip=l,l+=4,r+=4,n.next();continue}let s=n.pos-e;if(e<0||s<i||n.start<c)break;let d=n.id>=o?4:0,m=n.start;for(n.next();n.pos>s;){if(n.size<0){if(-3!=n.size)break e;d+=4}else n.id>=o&&(d+=4);n.next()}a=m,r+=e,l+=d}return(t<0||r==e)&&(u.size=r,u.start=a,u.skip=l),u.size>4?u:void 0}(s.pos-t,_))){let t=new Uint16Array(k.size-k.skip),n=s.pos-k.size,i=t.length;for(;s.pos>n;)i=f(k.start,t,i);w=new TreeBuffer(t,y-k.start,r),C=k.start-e}else{let e=s.pos-T;s.next();let t=[],n=[],r=x>=o?x:-1,a=0,l=y;for(;s.pos>e;)r>=0&&s.id==r&&s.size>=0?(s.end<=l-i&&(h(t,n,E,a,s.end,l,r,v,S),a=t.length,l=s.end),s.next()):b>2500?m(E,e,t,n):d(E,e,t,n,r,b+1);if(r>=0&&a>0&&a<t.length&&h(t,n,E,a,E,l,r,v,S),t.reverse(),n.reverse(),r>-1&&a>0){let e=function(e,t){return(n,r,i)=>{let a,o,s=0,l=n.length-1;if(l>=0&&(a=n[l])instanceof Tree){if(!l&&a.type==e&&a.length==i)return a;(o=a.prop(NodeProp.lookAhead))&&(s=r[l]+a.length+o)}return p(e,n,r,i,s,t)}}(A,S);w=balanceRange(A,t,n,0,t.length,0,y-E,e,e)}else w=p(A,t,n,y-E,v-y,S)}n.push(w),g.push(C)}function m(e,t,n,a){let o=[],l=0,c=-1;for(;s.pos>t;){let{id:e,start:t,end:n,size:r}=s;if(r>4)s.next();else{if(c>-1&&t<c)break;c<0&&(c=n-i),o.push(e,t,n),l++,s.next()}}if(l){let t=new Uint16Array(4*l),i=o[o.length-2];for(let e=o.length-3,n=0;e>=0;e-=3)t[n++]=o[e],t[n++]=o[e+1]-i,t[n++]=o[e+2]-i,t[n++]=n;n.push(new TreeBuffer(t,o[2]-i,r)),a.push(i-e)}}function h(e,t,n,i,a,o,s,l,c){let u=[],d=[];for(;e.length>i;)u.push(e.pop()),d.push(t.pop()+n-a);e.push(p(r.types[s],u,d,o-a,l-o,c)),t.push(a-n)}function p(e,t,n,r,i,a,o){if(a){let e=[NodeProp.contextHash,a];o=o?[e].concat(o):[e]}if(i>25){let e=[NodeProp.lookAhead,i];o=o?[e].concat(o):[e]}return new Tree(e,t,n,r,o)}function f(e,t,n){let{id:r,start:i,end:a,size:l}=s;if(s.next(),l>=0&&r<o){let o=n;if(l>4){let r=s.pos-(l-4);for(;s.pos>r;)n=f(e,t,n)}t[--n]=o,t[--n]=a-e,t[--n]=i-e,t[--n]=r}else-3==l?c=r:-4==l&&(u=r);return n}let g=[],_=[];for(;s.pos>0;)d(e.start||0,e.bufferStart||0,g,_,-1,0);let b=null!==(t=e.length)&&void 0!==t?t:g.length?_[0]+g[0].length:0;return new Tree(l[e.topID],g.reverse(),_.reverse(),b)}const nodeSizeCache=new WeakMap;function nodeSize(e,t){if(!e.isAnonymous||t instanceof TreeBuffer||t.type!=e)return 1;let n=nodeSizeCache.get(t);if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof Tree)){n=1;break}n+=nodeSize(e,r)}nodeSizeCache.set(t,n)}return n}function balanceRange(e,t,n,r,i,a,o,s,l){let c=0;for(let n=r;n<i;n++)c+=nodeSize(e,t[n]);let u=Math.ceil(1.5*c/8),d=[],m=[];return function t(n,r,i,o,s){for(let c=i;c<o;){let i=c,h=r[c],p=nodeSize(e,n[c]);for(c++;c<o;c++){let t=nodeSize(e,n[c]);if(p+t>=u)break;p+=t}if(c==i+1){if(p>u){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+s);continue}d.push(n[i])}else{let t=r[c-1]+n[c-1].length-h;d.push(balanceRange(e,n,r,i,c,h,t,null,l))}m.push(h+s-a)}}(t,n,r,i,0),(s||l)(d,m,o)}class TreeFragment{constructor(e,t,n,r,i=!1,a=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(a?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new TreeFragment(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,a=e.length?e[0]:null;for(let o=0,s=0,l=0;;o++){let c=o<t.length?t[o]:null,u=c?c.fromA:1e9;if(u-s>=n)for(;a&&a.from<u;){let t=a;if(s>=t.from||u<=t.to||l){let e=Math.max(t.from,s)-l,n=Math.min(t.to,u)-l;t=e>=n?null:new TreeFragment(e,n,t.tree,t.offset+l,o>0,!!c)}if(t&&r.push(t),a.to>u)break;a=i<e.length?e[i++]:null}if(!c)break;s=c.toA,l=c.toA-c.toB}return r}}let Parser$2=class{startParse(e,t,n){return"string"==typeof e&&(e=new StringInput(e)),n=n?n.length?n.map(e=>new Range(e.from,e.to)):[new Range(0,0)]:[new Range(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}};class StringInput{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new NodeProp({perNode:!0});let nextTagID=0;class Tag{constructor(e,t,n,r){this.name=e,this.set=t,this.base=n,this.modified=r,this.id=nextTagID++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let n="string"==typeof e?e:"?";if(e instanceof Tag&&(t=e),null!=t&&t.base)throw new Error("Can not derive from a modified tag");let r=new Tag(n,[],null,[]);if(r.set.push(r),t)for(let e of t.set)r.set.push(e);return r}static defineModifier(e){let t=new Modifier(e);return e=>e.modified.indexOf(t)>-1?e:Modifier.get(e.base||e,e.modified.concat(t).sort((e,t)=>e.id-t.id))}}let nextModifierID=0;class Modifier{constructor(e){this.name=e,this.instances=[],this.id=nextModifierID++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(n=>n.base==e&&sameArray(t,n.modified));if(n)return n;let r=[],i=new Tag(e.name,r,e,t);for(let e of t)e.instances.push(i);let a=powerSet(t);for(let t of e.set)if(!t.modified.length)for(let e of a)r.push(Modifier.get(t,e));return i}}function sameArray(e,t){return e.length==t.length&&e.every((e,n)=>e==t[n])}function powerSet(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((e,t)=>t.length-e.length)}function styleTags(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(" "))if(e){let n=[],i=2,a=e;for(let t=0;;){if("..."==a&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!r)throw new RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let o=e[t++];if(t==e.length&&"!"==o){i=0;break}if("/"!=o)throw new RangeError("Invalid path: "+e);a=e.slice(t)}let o=n.length-1,s=n[o];if(!s)throw new RangeError("Invalid path: "+e);let l=new Rule$1(r,i,o>0?n.slice(0,o):null);t[s]=l.sort(t[s])}}return ruleNodeProp.add(t)}const ruleNodeProp=new NodeProp;let Rule$1=class{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}};function tagHighlighter(e,t){let n=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)n[e.id]=t.class;else n[t.tag.id]=t.class;let{scope:r,all:i=null}={};return{style:e=>{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}Rule$1.empty=new Rule$1([],2,null);const t=Tag.define,comment$4=t(),name=t(),typeName=t(name),propertyName=t(name),literal=t(),string=t(literal),number$2=t(literal),content=t(),heading=t(content),keyword=t(),operator=t(),punctuation=t(),bracket=t(punctuation),meta=t(),tags={comment:comment$4,lineComment:t(comment$4),blockComment:t(comment$4),docComment:t(comment$4),name,variableName:t(name),typeName,tagName:t(typeName),propertyName,attributeName:t(propertyName),className:t(name),labelName:t(name),namespace:t(name),macroName:t(name),literal,string,docString:t(string),character:t(string),attributeValue:t(string),number:number$2,integer:t(number$2),float:t(number$2),bool:t(literal),regexp:t(literal),escape:t(literal),color:t(literal),url:t(literal),keyword,self:t(keyword),null:t(keyword),atom:t(keyword),unit:t(keyword),modifier:t(keyword),operatorKeyword:t(keyword),controlKeyword:t(keyword),definitionKeyword:t(keyword),moduleKeyword:t(keyword),operator,derefOperator:t(operator),arithmeticOperator:t(operator),logicOperator:t(operator),bitwiseOperator:t(operator),compareOperator:t(operator),updateOperator:t(operator),definitionOperator:t(operator),typeOperator:t(operator),controlOperator:t(operator),punctuation,separator:t(punctuation),bracket,angleBracket:t(bracket),squareBracket:t(bracket),paren:t(bracket),brace:t(bracket),content,heading,heading1:t(heading),heading2:t(heading),heading3:t(heading),heading4:t(heading),heading5:t(heading),heading6:t(heading),contentSeparator:t(content),list:t(content),quote:t(content),emphasis:t(content),strong:t(content),link:t(content),monospace:t(content),strikethrough:t(content),inserted:t(),deleted:t(),changed:t(),invalid:t(),meta,documentMeta:t(meta),annotation:t(meta),processingInstruction:t(meta),definition:Tag.defineModifier("definition"),constant:Tag.defineModifier("constant"),function:Tag.defineModifier("function"),standard:Tag.defineModifier("standard"),local:Tag.defineModifier("local"),special:Tag.defineModifier("special")};for(let e in tags){let t=tags[e];t instanceof Tag&&(t.name=e)}var _a;tagHighlighter([{tag:tags.link,class:"tok-link"},{tag:tags.heading,class:"tok-heading"},{tag:tags.emphasis,class:"tok-emphasis"},{tag:tags.strong,class:"tok-strong"},{tag:tags.keyword,class:"tok-keyword"},{tag:tags.atom,class:"tok-atom"},{tag:tags.bool,class:"tok-bool"},{tag:tags.url,class:"tok-url"},{tag:tags.labelName,class:"tok-labelName"},{tag:tags.inserted,class:"tok-inserted"},{tag:tags.deleted,class:"tok-deleted"},{tag:tags.literal,class:"tok-literal"},{tag:tags.string,class:"tok-string"},{tag:tags.number,class:"tok-number"},{tag:[tags.regexp,tags.escape,tags.special(tags.string)],class:"tok-string2"},{tag:tags.variableName,class:"tok-variableName"},{tag:tags.local(tags.variableName),class:"tok-variableName tok-local"},{tag:tags.definition(tags.variableName),class:"tok-variableName tok-definition"},{tag:tags.special(tags.variableName),class:"tok-variableName2"},{tag:tags.definition(tags.propertyName),class:"tok-propertyName tok-definition"},{tag:tags.typeName,class:"tok-typeName"},{tag:tags.namespace,class:"tok-namespace"},{tag:tags.className,class:"tok-className"},{tag:tags.macroName,class:"tok-macroName"},{tag:tags.propertyName,class:"tok-propertyName"},{tag:tags.operator,class:"tok-operator"},{tag:tags.comment,class:"tok-comment"},{tag:tags.meta,class:"tok-meta"},{tag:tags.invalid,class:"tok-invalid"},{tag:tags.punctuation,class:"tok-punctuation"}]);const languageDataProp=new NodeProp;function defineLanguageFacet(e){return _codemirror_state__WEBPACK_IMPORTED_MODULE_7__.Facet.define({combine:e?t=>t.concat(e):void 0})}const sublanguageProp=new NodeProp;class Language{constructor(e,t,n=[],r=""){this.data=e,this.name=r,_codemirror_state__WEBPACK_IMPORTED_MODULE_7__.EditorState.prototype.hasOwnProperty("tree")||Object.defineProperty(_codemirror_state__WEBPACK_IMPORTED_MODULE_7__.EditorState.prototype,"tree",{get(){return syntaxTree(this)}}),this.parser=t,this.extension=[language.of(this),_codemirror_state__WEBPACK_IMPORTED_MODULE_7__.EditorState.languageData.of((e,t,n)=>{let r=topNodeAt(e,t,n),i=r.type.prop(languageDataProp);if(!i)return[];let a=e.facet(i),o=r.type.prop(sublanguageProp);if(o){let i=r.resolve(t-r.from,n);for(let t of o)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(a)}}return a})].concat(n)}isActiveAt(e,t,n=-1){return topNodeAt(e,t,n).type.prop(languageDataProp)==this.data}findRegions(e){let t=e.facet(language);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(languageDataProp)==this.data)return void n.push({from:t,to:t+e.length});let i=e.prop(NodeProp.mounted);if(i){if(i.tree.prop(languageDataProp)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(i.overlay){let e=n.length;if(r(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let i=e.children[n];i instanceof Tree&&r(i,e.positions[n]+t)}};return r(syntaxTree(e),0),n}get allowsNesting(){return!0}}function topNodeAt(e,t,n){let r=e.facet(language),i=syntaxTree(e).topNode;if(!r||r.allowsNesting)for(let e=i;e;e=e.enter(t,n,IterMode.ExcludeBuffers))e.type.isTop&&(i=e);return i}function syntaxTree(e){let t=e.field(Language.state,!1);return t?t.tree:Tree.empty}Language.setState=_codemirror_state__WEBPACK_IMPORTED_MODULE_7__.StateEffect.define();class DocInput{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let currentContext=null;class ParseContext{constructor(e,t,n=[],r,i,a,o,s){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=a,this.skipped=o,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new ParseContext(e,t,[],Tree.empty,0,n,[],null)}startParse(){return this.parser.startParse(new DocInput(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=Tree.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(TreeFragment.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(t??this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(TreeFragment.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=currentContext;currentContext=this;try{return e()}finally{currentContext=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=cutFragments(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:i,viewport:a,skipped:o}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i})),n=TreeFragment.applyChanges(n,t),r=Tree.empty,i=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){o=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);n<r&&o.push({from:n,to:r})}}}return new ParseContext(this.parser,t,n,r,i,a,o,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:n,to:r}=this.skipped[t];n<e.to&&r>e.from&&(this.fragments=cutFragments(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Parser$2{createParse(t,n,r){let i=r[0].from,a=r[r.length-1].to;return{parsedPos:i,advance(){let t=currentContext;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=a,new Tree(NodeType.none,[],[],a-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return currentContext}}function cutFragments(e,t,n){return TreeFragment.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class LanguageState{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new LanguageState(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=ParseContext.create(e.facet(language).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new LanguageState(n)}}Language.state=_codemirror_state__WEBPACK_IMPORTED_MODULE_7__.StateField.define({create:LanguageState.init,update(e,t){for(let e of t.effects)if(e.is(Language.setState))return e.value;return t.startState.facet(language)!=t.state.facet(language)?LanguageState.init(t.state):e.apply(t)}});let requestIdle=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(requestIdle=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const isInputPending=typeof navigator<"u"&&null!==(_a=navigator.scheduling)&&void 0!==_a&&_a.isInputPending?()=>navigator.scheduling.isInputPending():null,parseWorker=_codemirror_view__WEBPACK_IMPORTED_MODULE_6__.ViewPlugin.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Language.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Language.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=requestIdle(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(Language.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let a=Date.now()+Math.min(this.chunkBudget,100,e&&!isInputPending?Math.max(25,e.timeRemaining()-5):1e9),o=i.context.treeLen<r&&n.doc.length>r+1e3,s=i.context.work(()=>isInputPending&&isInputPending()||Date.now()>a,r+(o?0:1e5));this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:Language.setState.of(new LanguageState(i.context))})),this.chunkBudget>0&&!(s&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>(0,_codemirror_view__WEBPACK_IMPORTED_MODULE_6__.logException)(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),language=_codemirror_state__WEBPACK_IMPORTED_MODULE_7__.Facet.define({combine:e=>e.length?e[0]:null,enables:e=>[Language.state,parseWorker,_codemirror_view__WEBPACK_IMPORTED_MODULE_6__.EditorView.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]}),indentUnit=_codemirror_state__WEBPACK_IMPORTED_MODULE_7__.Facet.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function getIndentUnit(e){let t=e.facet(indentUnit);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}const indentNodeProp=new NodeProp;function countCol(e,t,n,r=0,i=0){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);let a=i;for(let i=r;i<t;i++)9==e.charCodeAt(i)?a+=n-a%n:a++;return a}class StringStream{constructor(e,t,n,r){this.string=e,this.tabSize=t,this.indentUnit=n,this.overrideIndent=r,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(e){let t,n=this.string.charAt(this.pos);if(t="string"==typeof e?n==e:n&&(e instanceof RegExp?e.test(n):e(n)),t)return++this.pos,n}eatWhile(e){let t=this.pos;for(;this.eat(e););return this.pos>t}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=countCol(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var e;return null!==(e=this.overrideIndent)&&void 0!==e?e:countCol(this.string,null,this.tabSize)}match(e,t,n){if("string"==typeof e){let r=e=>n?e.toLowerCase():e;return r(this.string.substr(this.pos,e.length))==r(e)?(!1!==t&&(this.pos+=e.length),!0):null}{let n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}}function fullParser(e){return{name:e.name||"",token:e.token,blankLine:e.blankLine||(()=>{}),startState:e.startState||(()=>!0),copyState:e.copyState||defaultCopyState,indent:e.indent||(()=>null),languageData:e.languageData||{},tokenTable:e.tokenTable||noTokens,mergeTokens:!1!==e.mergeTokens}}function defaultCopyState(e){if("object"!=typeof e)return e;let t={};for(let n in e){let r=e[n];t[n]=r instanceof Array?r.slice():r}return t}const IndentedFrom=new WeakMap;class StreamLanguage extends Language{constructor(e){let t,n=defineLanguageFacet(e.languageData),r=fullParser(e);super(n,new class extends Parser$2{createParse(e,n,r){return new Parse(t,e,n,r)}},[],e.name),this.topNode=docID(n,this),t=this,this.streamParser=r,this.stateAfter=new NodeProp({perNode:!0}),this.tokenTable=e.tokenTable?new TokenTable(r.tokenTable):defaultTokenTable}static define(e){return new StreamLanguage(e)}getIndent(e){let t,{overrideIndentation:n}=e.options;n&&(t=IndentedFrom.get(e.state),null!=t&&t<e.pos-1e4&&(t=void 0));let r,i,a=findState(this,e.node.tree,e.node.from,e.node.from,t??e.pos);if(a?(i=a.state,r=a.pos+1):(i=this.streamParser.startState(e.unit),r=e.node.from),e.pos-r>1e4)return null;for(;r<e.pos;){let t=e.state.doc.lineAt(r),a=Math.min(e.pos,t.to);if(t.length){let r=n?n(t.from):-1,o=new StringStream(t.text,e.state.tabSize,e.unit,r<0?void 0:r);for(;o.pos<a-t.from;)readToken(this.streamParser.token,o,i)}else this.streamParser.blankLine(i,e.unit);if(a==e.pos)break;r=t.to+1}let o=e.lineAt(e.pos);return n&&null==t&&IndentedFrom.set(e.state,o.from),this.streamParser.indent(i,/^\s*(.*)/.exec(o.text)[1],e)}get allowsNesting(){return!1}}function findState(e,t,n,r,i){let a=n>=r&&n+t.length<=i&&t.prop(e.stateAfter);if(a)return{state:e.streamParser.copyState(a),pos:n+t.length};for(let a=t.children.length-1;a>=0;a--){let o=t.children[a],s=n+t.positions[a],l=o instanceof Tree&&s<i&&findState(e,o,s,r,i);if(l)return l}return null}function cutTree(e,t,n,r,i){if(i&&n<=0&&r>=t.length)return t;!i&&0==n&&t.type==e.topNode&&(i=!0);for(let a=t.children.length-1;a>=0;a--){let o,s=t.positions[a],l=t.children[a];if(s<r&&l instanceof Tree){if(!(o=cutTree(e,l,n-s,r-s,i)))break;return i?new Tree(t.type,t.children.slice(0,a).concat(o),t.positions.slice(0,a+1),s+o.length):o}}return null}function findStartInFragments(e,t,n,r,i){for(let i of t){let t,a=i.from+(i.openStart?25:0),o=i.to-(i.openEnd?25:0),s=a<=n&&o>n&&findState(e,i.tree,0-i.offset,n,o);if(s&&s.pos<=r&&(t=cutTree(e,i.tree,n+i.offset,s.pos+i.offset,!1)))return{state:s.state,tree:t}}return{state:e.streamParser.startState(i?getIndentUnit(i):4),tree:Tree.empty}}class Parse{constructor(e,t,n,r){this.lang=e,this.input=t,this.fragments=n,this.ranges=r,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=r[r.length-1].to;let i=ParseContext.get(),a=r[0].from,{state:o,tree:s}=findStartInFragments(e,n,a,this.to,null==i?void 0:i.state);this.state=o,this.parsedPos=this.chunkStart=a+s.length;for(let e=0;e<s.children.length;e++)this.chunks.push(s.children[e]),this.chunkPos.push(s.positions[e]);i&&this.parsedPos<i.viewport.from-1e5&&r.some(e=>e.from<=i.viewport.from&&e.to>=i.viewport.from)&&(this.state=this.lang.streamParser.startState(getIndentUnit(i.state)),i.skipUntilInView(this.parsedPos,i.viewport.from),this.parsedPos=i.viewport.from),this.moveRangeIndex()}advance(){let e=ParseContext.get(),t=null==this.stoppedAt?this.to:Math.min(this.to,this.stoppedAt),n=Math.min(t,this.chunkStart+2048);for(e&&(n=Math.min(n,e.viewport.to));this.parsedPos<n;)this.parseLine(e);return this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)"\n"==t&&(t="");else{let e=t.indexOf("\n");e>-1&&(t=t.slice(0,e))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),n=e+t.length;for(let e=this.rangeIndex;;){let r=this.ranges[e].to;if(r>=n||(t=t.slice(0,r-(n-t.length)),e++,e==this.ranges.length))break;let i=this.ranges[e].from,a=this.lineAfter(i);t+=a,n=i+a.length}return{line:t,end:n}}skipGapsTo(e,t,n){for(;;){let r=this.ranges[this.rangeIndex].to,i=e+t;if(n>0?r>i:r>=i)break;t+=this.ranges[++this.rangeIndex].from-r}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(e,t,n,r){let i=4;if(this.ranges.length>1){t+=r=this.skipGapsTo(t,r,1);let e=this.chunk.length;n+=r=this.skipGapsTo(n,r,-1),i+=this.chunk.length-e}let a=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&4==i&&a>=0&&this.chunk[a]==e&&this.chunk[a+2]==t?this.chunk[a+2]=n:this.chunk.push(e,t,n,i),r}parseLine(e){let{line:t,end:n}=this.nextLine(),r=0,{streamParser:i}=this.lang,a=new StringStream(t,e?e.state.tabSize:4,e?getIndentUnit(e.state):2);if(a.eol())i.blankLine(this.state,a.indentUnit);else for(;!a.eol();){let e=readToken(i.token,a,this.state);if(e&&(r=this.emitToken(this.lang.tokenTable.resolve(e),this.parsedPos+a.start,this.parsedPos+a.pos,r)),a.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let e=Tree.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet,topID:0,maxBufferLength:2048,reused:this.chunkReused});e=new Tree(e.type,e.children,e.positions,e.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(e),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new Tree(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}}function readToken(e,t,n){t.start=t.pos;for(let r=0;r<10;r++){let r=e(t,n);if(t.pos>t.start)return r}throw new Error("Stream parser failed to advance stream.")}const noTokens=Object.create(null),typeArray=[NodeType.none],nodeSet=new NodeSet(typeArray),warned$1=[],byTag=Object.create(null),defaultTable=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])defaultTable[e]=createTokenType(noTokens,t);class TokenTable{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),defaultTable)}resolve(e){return e?this.table[e]||(this.table[e]=createTokenType(this.extra,e)):0}}const defaultTokenTable=new TokenTable(noTokens);function warnForPart(e,t){warned$1.indexOf(e)>-1||(warned$1.push(e),console.warn(t))}function createTokenType(e,t){let n=[];for(let r of t.split(" ")){let t=[];for(let n of r.split(".")){let r=e[n]||tags[n];r?"function"==typeof r?t.length?t=t.map(r):warnForPart(n,`Modifier ${n} used at start of tag`):t.length?warnForPart(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:warnForPart(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(e=>e.id),a=byTag[i];if(a)return a.id;let o=byTag[i]=NodeType.define({id:typeArray.length,name:r,props:[styleTags({[r]:n})]});return typeArray.push(o),o.id}function docID(e,t){let n=NodeType.define({id:typeArray.length,name:"Document",props:[languageDataProp.add(()=>e),indentNodeProp.add(()=>e=>t.getIndent(e))],top:!0});return typeArray.push(n),n}_codemirror_view__WEBPACK_IMPORTED_MODULE_6__.Direction.RTL,_codemirror_view__WEBPACK_IMPORTED_MODULE_6__.Direction.LTR;var words={};function define(e,t){for(var n=0;n<t.length;n++)words[t[n]]=e}var commonAtoms=["true","false"],commonKeywords=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],commonCommands=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];function tokenBase(e,t){if(e.eatSpace())return null;var n=e.sol(),r=e.next();if("\\"===r)return e.next(),null;if("'"===r||'"'===r||"`"===r)return t.tokens.unshift(tokenString(r,"`"===r?"quote":"string")),tokenize(e,t);if("#"===r)return n&&e.eat("!")?(e.skipToEnd(),"meta"):(e.skipToEnd(),"comment");if("$"===r)return t.tokens.unshift(tokenDollar),tokenize(e,t);if("+"===r||"="===r)return"operator";if("-"===r)return e.eat("-"),e.eatWhile(/\w/),"attribute";if("<"==r){if(e.match("<<"))return"operator";var i=e.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);if(i)return t.tokens.unshift(tokenHeredoc(i[1]||i[2])),"string.special"}if(/\d/.test(r)&&(e.eatWhile(/\d/),e.eol()||!/\w/.test(e.peek())))return"number";e.eatWhile(/[\w-]/);var a=e.current();return"="===e.peek()&&/\w+/.test(a)?"def":words.hasOwnProperty(a)?words[a]:null}function tokenString(e,t){var n="("==e?")":"{"==e?"}":e;return function(r,i){for(var a,o=!1;null!=(a=r.next());){if(a===n&&!o){i.tokens.shift();break}if("$"===a&&!o&&"'"!==e&&r.peek()!=n){o=!0,r.backUp(1),i.tokens.unshift(tokenDollar);break}if(!o&&e!==n&&a===e)return i.tokens.unshift(tokenString(e,t)),tokenize(r,i);if(!o&&/['"]/.test(a)&&!/['"]/.test(e)){i.tokens.unshift(tokenStringStart(a,"string")),r.backUp(1);break}o=!o&&"\\"===a}return t}}function tokenStringStart(e,t){return function(n,r){return r.tokens[0]=tokenString(e,t),n.next(),tokenize(n,r)}}define("atom",commonAtoms),define("keyword",commonKeywords),define("builtin",commonCommands);var tokenDollar=function(e,t){t.tokens.length>1&&e.eat("$");var n=e.next();return/['"({]/.test(n)?(t.tokens[0]=tokenString(n,"("==n?"quote":"{"==n?"def":"string"),tokenize(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function tokenHeredoc(e){return function(t,n){return t.sol()&&t.string==e&&n.tokens.shift(),t.skipToEnd(),"string.special"}}function tokenize(e,t){return(t.tokens[0]||tokenBase)(e,t)}const shell={name:"shell",startState:function(){return{tokens:[]}},token:function(e,t){return tokenize(e,t)},languageData:{autocomplete:commonAtoms.concat(commonKeywords,commonCommands),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}},CommandLineRenderer=({toolCall:e,output:t,hasOutput:n,toolLabels:r})=>{var i,a,o;const[s,l]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}),[c,u]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),{textContent:d,imageUrl:m}=parseMixedOutput(t);return jsxRuntimeExports.jsxs("div",{className:"rounded-lg overflow-hidden my-1 shadow-lg",style:{backgroundColor:"#2d2d2d"},children:[jsxRuntimeExports.jsx("div",{className:"px-3 py-1.5",style:{backgroundColor:"#363636"},children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1.5 mr-2",children:[jsxRuntimeExports.jsx("button",{onClick:()=>{u(!0)},className:"w-2.5 h-2.5 rounded-full cursor-pointer hover:opacity-80 transition-opacity",style:{backgroundColor:"#ffbd2e"},title:"Collapse"}),jsxRuntimeExports.jsx("button",{onClick:()=>{u(!1)},className:"w-2.5 h-2.5 rounded-full cursor-pointer hover:opacity-80 transition-opacity",style:{backgroundColor:"#28ca42"},title:"Expand"})]}),!c&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 flex-1 justify-center",children:[n&&jsxRuntimeExports.jsx(Terminal,{className:"w-4 h-4 text-gray-400"}),!n&&jsxRuntimeExports.jsx(LoaderCircle,{className:"w-4 h-4 text-gray-400 animate-spin"}),jsxRuntimeExports.jsx("span",{className:"text-sm font-medium text-gray-300",children:n?r.completed:r.loading})]}),jsxRuntimeExports.jsx("div",{className:"w-16"})," "]}),c&&jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[n&&jsxRuntimeExports.jsx(Terminal,{className:"w-4 h-4 text-gray-400"}),!n&&jsxRuntimeExports.jsx(LoaderCircle,{className:"w-4 h-4 text-gray-400 animate-spin"}),(null==(i=e.args)?void 0:i.command)&&jsxRuntimeExports.jsxs("span",{className:"text-xs text-gray-500 font-mono truncate",children:["$ ",null!=(h=e.args)&&h.command?e.args.command.split("\n")[0]:""]})]})]})}),!c&&jsxRuntimeExports.jsxs("div",{style:{backgroundColor:"#1e1e1e",borderTop:"1px solid #404040",maxHeight:"400px",overflowY:"auto"},children:[(null==(a=e.args)?void 0:a.command)&&jsxRuntimeExports.jsx("div",{className:"p-0",children:jsxRuntimeExports.jsx(_uiw_react_codemirror__WEBPACK_IMPORTED_MODULE_2___default(),{value:`$ ${e.args.command}`,readOnly:!0,height:"auto",extensions:[StreamLanguage.define(shell),_codemirror_view__WEBPACK_IMPORTED_MODULE_6__.EditorView.theme({".cm-content":{fontFamily:'SF Mono, Monaco, Menlo, "Courier New", monospace',fontSize:"13px",padding:"12px"},".cm-editor":{backgroundColor:"#1e1e1e"},".cm-scroller":{fontFamily:'SF Mono, Monaco, Menlo, "Courier New", monospace'},".cm-line":{color:"#d4d4d4"},".cm-gutters":{fontSize:"13px"},".cm-lineNumbers":{fontSize:"13px"}})],theme:"dark"})}),n&&jsxRuntimeExports.jsx("div",{style:{backgroundColor:"#1e1e1e",borderTop:null!=(o=e.args)&&o.command?"1px solid #404040":"none"},children:jsxRuntimeExports.jsx("div",{className:"p-0",children:m?jsxRuntimeExports.jsxs("div",{className:"p-3 space-y-3",style:{backgroundColor:"#1e1e1e"},children:[d&&d.trim()&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"text-xs font-medium mb-2 text-gray-400",children:"STDOUT"}),jsxRuntimeExports.jsx(_uiw_react_codemirror__WEBPACK_IMPORTED_MODULE_2___default(),{value:d,readOnly:!0,height:"auto",extensions:[_codemirror_view__WEBPACK_IMPORTED_MODULE_6__.EditorView.theme({".cm-content":{fontFamily:'SF Mono, Monaco, Menlo, "Courier New", monospace',fontSize:"13px",color:"#4ade80",padding:"12px"},".cm-editor":{backgroundColor:"#1e1e1e"},".cm-gutters":{fontSize:"13px"},".cm-lineNumbers":{fontSize:"13px"}})],theme:"dark"})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"text-xs font-medium mb-2 text-gray-400",children:"IMAGE OUTPUT"}),jsxRuntimeExports.jsxs("div",{className:"p-2 rounded",style:{backgroundColor:"#2d2d2d"},children:[jsxRuntimeExports.jsx("img",{src:m,alt:"Command output image",className:"max-w-full h-auto rounded",style:{border:"1px solid #404040"},onError:e=>{console.error("Failed to load image:",m),e.currentTarget.style.display="none"}}),jsxRuntimeExports.jsx("div",{className:"text-xs text-gray-500 font-mono mt-1",children:m})]})]})]}):jsxRuntimeExports.jsx(_uiw_react_codemirror__WEBPACK_IMPORTED_MODULE_2___default(),{value:"string"==typeof t?t:JSON.stringify(t,null,2),readOnly:!0,height:"auto",extensions:[_codemirror_view__WEBPACK_IMPORTED_MODULE_6__.EditorView.theme({".cm-content":{fontFamily:'SF Mono, Monaco, Menlo, "Courier New", monospace',fontSize:"13px",color:"#4ade80",padding:"12px"},".cm-editor":{backgroundColor:"#1e1e1e"},".cm-gutters":{fontSize:"13px"},".cm-lineNumbers":{fontSize:"13px"}})],theme:"dark"})})})]})]});var h};function composeEventHandlers$1(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function useStateMachine(e,t){return react__WEBPACK_IMPORTED_MODULE_0__.useReducer((e,n)=>t[e][n]??e,e)}var Presence=e=>{const{present:t,children:n}=e,r=usePresence$1(t),i="function"==typeof n?n({present:r.isPresent}):react__WEBPACK_IMPORTED_MODULE_0__.Children.only(n),a=useComposedRefs(r.ref,getElementRef(i));return"function"==typeof n||r.isPresent?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(i,{ref:a}):null};function usePresence$1(e){const[t,n]=react__WEBPACK_IMPORTED_MODULE_0__.useState(),r=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef("none"),o=e?"mounted":"unmounted",[s,l]=useStateMachine(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{const e=getAnimationName(r.current);a.current="mounted"===s?e:"none"},[s]),useLayoutEffect2(()=>{const t=r.current,n=i.current;if(n!==e){const r=a.current,o=getAnimationName(t);e?l("MOUNT"):"none"===o||"none"===(null==t?void 0:t.display)?l("UNMOUNT"):l(n&&r!==o?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),useLayoutEffect2(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,o=a=>{const o=getAnimationName(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(l("ANIMATION_END"),!i.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(a.current=getAnimationName(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",o),t.addEventListener("animationend",o),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",o),t.removeEventListener("animationend",o)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:react__WEBPACK_IMPORTED_MODULE_0__.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function getAnimationName(e){return(null==e?void 0:e.animationName)||"none"}function getElementRef(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}Presence.displayName="Presence";var COLLAPSIBLE_NAME="Collapsible",[createCollapsibleContext,createCollapsibleScope]=createContextScope(COLLAPSIBLE_NAME),[CollapsibleProvider,useCollapsibleContext]=createCollapsibleContext(COLLAPSIBLE_NAME),Collapsible$1=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[l,c]=useControllableState({prop:r,defaultProp:i??!1,onChange:o,caller:COLLAPSIBLE_NAME});return jsxRuntimeExports.jsx(CollapsibleProvider,{scope:n,disabled:a,contentId:useId(),open:l,onOpenToggle:react__WEBPACK_IMPORTED_MODULE_0__.useCallback(()=>c(e=>!e),[c]),children:jsxRuntimeExports.jsx(Primitive.div,{"data-state":getState$1(l),"data-disabled":a?"":void 0,...s,ref:t})})});Collapsible$1.displayName=COLLAPSIBLE_NAME;var TRIGGER_NAME="CollapsibleTrigger",CollapsibleTrigger$1=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=useCollapsibleContext(TRIGGER_NAME,n);return jsxRuntimeExports.jsx(Primitive.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":getState$1(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:composeEventHandlers$1(e.onClick,i.onOpenToggle)})});CollapsibleTrigger$1.displayName=TRIGGER_NAME;var CONTENT_NAME="CollapsibleContent",CollapsibleContent$1=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=useCollapsibleContext(CONTENT_NAME,e.__scopeCollapsible);return jsxRuntimeExports.jsx(Presence,{present:n||i.open,children:({present:e})=>jsxRuntimeExports.jsx(CollapsibleContentImpl,{...r,ref:t,present:e})})});CollapsibleContent$1.displayName=CONTENT_NAME;var CollapsibleContentImpl=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...a}=e,o=useCollapsibleContext(CONTENT_NAME,n),[s,l]=react__WEBPACK_IMPORTED_MODULE_0__.useState(r),c=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),u=useComposedRefs(t,c),d=react__WEBPACK_IMPORTED_MODULE_0__.useRef(0),m=d.current,h=react__WEBPACK_IMPORTED_MODULE_0__.useRef(0),p=h.current,f=o.open||s,g=react__WEBPACK_IMPORTED_MODULE_0__.useRef(f),_=react__WEBPACK_IMPORTED_MODULE_0__.useRef(void 0);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{const e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),useLayoutEffect2(()=>{const e=c.current;if(e){_.current=_.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,g.current||(e.style.transitionDuration=_.current.transitionDuration,e.style.animationName=_.current.animationName),l(r)}},[o.open,r]),jsxRuntimeExports.jsx(Primitive.div,{"data-state":getState$1(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!f,...a,ref:u,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style},children:f&&i})});function getState$1(e){return e?"open":"closed"}var Root$1=Collapsible$1;function Collapsible({...e}){return jsxRuntimeExports.jsx(Root$1,{"data-slot":"collapsible",...e})}function CollapsibleTrigger({...e}){return jsxRuntimeExports.jsx(CollapsibleTrigger$1,{"data-slot":"collapsible-trigger",...e})}function CollapsibleContent({...e}){return jsxRuntimeExports.jsx(CollapsibleContent$1,{"data-slot":"collapsible-content",...e})}const AUTO_CLOSE_DELAY$1=1e3,TaskItem=({children:e,className:t,...n})=>jsxRuntimeExports.jsx("div",{className:cn("text-muted-foreground text-sm",t),...n,children:e}),Task=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({defaultOpen:e=!0,isStreaming:t=!1,open:n,onOpenChange:r,className:i,children:a,...o})=>{const[s,l]=useControllableState({prop:n,defaultProp:e,onChange:r}),[c,u]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),d=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(t);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{t&&!s&&(l(!0),u(!1))},[t,s,l]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{const e=d.current&&!t;if(d.current=t,e&&s&&!c){const e=setTimeout(()=>{l(!1),u(!0)},AUTO_CLOSE_DELAY$1);return()=>clearTimeout(e)}},[t,s,l,c]),jsxRuntimeExports.jsx(Collapsible,{className:cn(i),open:s,onOpenChange:e=>{l(e)},...o,children:a})});Task.displayName="Task";const TaskTrigger=({children:e,className:t,title:n,...r})=>jsxRuntimeExports.jsx(CollapsibleTrigger,{asChild:!0,className:cn("group",t),...r,children:e??jsxRuntimeExports.jsxs("div",{className:"flex w-full cursor-pointer items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",children:[jsxRuntimeExports.jsx(Search,{className:"size-4"}),jsxRuntimeExports.jsx("p",{className:"text-sm",children:n}),jsxRuntimeExports.jsx(ChevronDown,{className:"size-4 transition-transform group-data-[state=open]:rotate-180"})]})}),TaskContent=({children:e,className:t,...n})=>jsxRuntimeExports.jsx(CollapsibleContent,{className:cn("data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",t),...n,children:jsxRuntimeExports.jsx("div",{className:"mt-2 space-y-2 border-muted border-l-2 pl-4",children:e})}),InterpretImageRenderer=({toolCall:e,output:t,hasOutput:n,toolLabels:r})=>{var i;const a=null==(i=e.args)?void 0:i.image_url,o=n?r.completed:r.loading;return jsxRuntimeExports.jsxs(Task,{defaultOpen:!1,isStreaming:!n,children:[jsxRuntimeExports.jsx(TaskTrigger,{title:o,children:jsxRuntimeExports.jsxs("div",{className:"flex w-full cursor-pointer items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",children:[jsxRuntimeExports.jsx(Eye,{className:"size-4"}),jsxRuntimeExports.jsx("div",{className:"text-sm",children:o})]})}),jsxRuntimeExports.jsx(TaskContent,{children:jsxRuntimeExports.jsxs("div",{className:"space-y-3",children:[a&&jsxRuntimeExports.jsx(TaskItem,{children:jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 justify-between",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx(Image,{className:"w-4 h-4"}),jsxRuntimeExports.jsx("span",{className:"text-xs font-medium",children:"Input Image"})]}),jsxRuntimeExports.jsx("button",{className:"p-1 hover:bg-muted rounded",onClick:async()=>{if(a)try{const t=await(await fetch(a)).blob(),n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=`image-${e.callId}.png`,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}catch(e){console.error("Failed to download image:",e)}},title:"Download image",children:jsxRuntimeExports.jsx(Download$1,{className:"w-3 h-3 text-muted-foreground"})})]}),jsxRuntimeExports.jsx("div",{className:"rounded overflow-hidden border",children:jsxRuntimeExports.jsx("img",{src:a,alt:"Interpreted image",className:"max-w-full h-auto",style:{maxHeight:"300px"}})})]})}),n&&jsxRuntimeExports.jsx(TaskItem,{children:jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx(Eye,{className:"w-4 h-4"}),jsxRuntimeExports.jsx("span",{className:"text-xs font-medium",children:r.outputLabel})]}),jsxRuntimeExports.jsx("div",{className:"prose prose-sm max-w-none text-foreground dark:prose-invert",children:jsxRuntimeExports.jsx(Markdown,{remarkPlugins,children:t})})]})})]})})]})},search=/[#.]/g;function parseSelector(e,t){const n=e||"",r={};let i,a,o=0;for(;o<n.length;){search.lastIndex=o;const e=search.exec(n),t=n.slice(o,e?e.index:n.length);t&&(i?"#"===i?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:a=t,o+=t.length),e&&(i=e[0],o++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}function createH(e,t,n){const r=n?createAdjustMap(n):void 0;return function(n,i,...a){let o;if(null==n){o={type:"root",children:[]};const e=i;a.unshift(e)}else{o=parseSelector(n,t);const s=o.tagName.toLowerCase(),l=r?r.get(s):void 0;if(o.tagName=l||s,isChild(i))a.unshift(i);else for(const[t,n]of Object.entries(i))addProperty(e,o.properties,t,n)}for(const e of a)addChild(o.children,e);return"element"===o.type&&"template"===o.tagName&&(o.content={type:"root",children:o.children},o.children=[]),o}}function isChild(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const e of n){const n=t[e];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;const e=n;for(const t of e)if("number"!=typeof t&&"string"!=typeof t)return!0}}return!(!("children"in e)||!Array.isArray(e.children))}function addProperty(e,t,n,r){const i=find$2(e,n);let a;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;a=r}else a="boolean"==typeof r?r:"string"==typeof r?i.spaceSeparated?parse$1(r):i.commaSeparated?parse$2(r):i.commaOrSpaceSeparated?parse$1(parse$2(r).join(" ")):parsePrimitive(i,i.property,r):Array.isArray(r)?[...r]:"style"===i.property?style(r):String(r);if(Array.isArray(a)){const e=[];for(const t of a)e.push(parsePrimitive(i,i.property,t));a=e}"className"===i.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function addChild(e,t){if(null!=t)if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)addChild(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?addChild(e,t.children):e.push(t)}}function parsePrimitive(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||normalize$2(n)===normalize$2(t)))return!0}return n}function style(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function createAdjustMap(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const svgCaseSensitiveTagNames=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],h$1=createH(html$6,"div"),s$1=createH(svg$2,"g",svgCaseSensitiveTagNames),webNamespaces={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function fromDom(e,t){return transform$1(e,{})||{type:"root",children:[]}}function transform$1(e,t){const n=one$3(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function one$3(e,t){switch(e.nodeType){case 1:return element$5(e,t);case 3:return text$4(e);case 8:return comment$3(e);case 9:case 11:return root$3(e,t);case 10:return doctype$3();default:return}}function root$3(e,t){return{type:"root",children:all$4(e,t)}}function doctype$3(){return{type:"doctype"}}function text$4(e){return{type:"text",value:e.nodeValue||""}}function comment$3(e){return{type:"comment",value:e.nodeValue||""}}function element$5(e,t){const n=e.namespaceURI,r=n===webNamespaces.svg?s$1:h$1,i=n===webNamespaces.html?e.tagName.toLowerCase():e.tagName,a=n===webNamespaces.html&&"template"===i?e.content:e,o=e.getAttributeNames(),s={};let l=-1;for(;++l<o.length;)s[o[l]]=e.getAttribute(o[l])||"";return r(i,s,all$4(a,t))}function all$4(e,t){const n=e.childNodes,r=[];let i=-1;for(;++i<n.length;){const e=transform$1(n[i],t);void 0!==e&&r.push(e)}return r}function fromHtmlIsomorphic(e,t){return fromDom(parseFragment$1(e))}function parseFragment$1(e){const t=document.createElement("template");return t.innerHTML=e,t.content}new DOMParser;const findAfter=function(e,t,n){const r=convert(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},convertElement=function(e){if(null==e)return element$4;if("string"==typeof e)return tagNameFactory(e);if("object"==typeof e)return anyFactory(e);if("function"==typeof e)return castFactory(e);throw new Error("Expected function, string, or array as `test`")};function anyFactory(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=convertElement(e[n]);return castFactory(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}function tagNameFactory(e){return castFactory(function(t){return t.tagName===e})}function castFactory(e){return function(t,n,r){return!(!looksLikeAnElement(t)||!e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function element$4(e){return!!(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}function looksLikeAnElement(e){return null!==e&&"object"==typeof e&&"type"in e&&"tagName"in e}const searchLineFeeds=/\n/g,searchTabOrSpaces=/[\t ]+/g,br=convertElement("br"),cell=convertElement(isCell),p$1=convertElement("p"),row=convertElement("tr"),notRendered=convertElement(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",hidden,closedDialog]),blockOrCaption=convertElement(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function toText(e,t){const n=t||{},r="children"in e?e.children:[],i=blockOrCaption(e),a=inferWhitespace(e,{whitespace:n.whitespace||"normal"}),o=[];("text"===e.type||"comment"===e.type)&&o.push(...collectText(e,{breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...renderedTextCollection(r[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<r.length-1?br(r[s+1]):i}));const l=[];let c;for(s=-1;++s<o.length;){const e=o[s];"number"==typeof e?void 0!==c&&e>c&&(c=e):e&&(void 0!==c&&c>-1&&l.push("\n".repeat(c)||" "),c=-1,l.push(e))}return l.join("")}function renderedTextCollection(e,t,n){return"element"===e.type?collectElement(e,t,n):"text"===e.type?"normal"===n.whitespace?collectText(e,n):collectPreText(e):[]}function collectElement(e,t,n){const r=inferWhitespace(e,n),i=e.children||[];let a,o,s=-1,l=[];if(notRendered(e))return l;for(br(e)||row(e)&&findAfter(t,e,row)?o="\n":p$1(e)?(a=2,o=2):blockOrCaption(e)&&(a=1,o=1);++s<i.length;)l=l.concat(renderedTextCollection(i[s],e,{whitespace:r,breakBefore:s?void 0:a,breakAfter:s<i.length-1?br(i[s+1]):o}));return cell(e)&&findAfter(t,e,cell)&&l.push("\t"),a&&l.unshift(a),o&&l.push(o),l}function collectText(e,t){const n=String(e.value),r=[],i=[];let a=0;for(;a<=n.length;){searchLineFeeds.lastIndex=a;const e=searchLineFeeds.exec(n),i=e&&"index"in e?e.index:n.length;r.push(trimAndCollapseSpacesAndTabs(n.slice(a,i).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==a||t.breakBefore,i!==n.length||t.breakAfter)),a=i+1}let o,s=-1;for(;++s<r.length;)8203===r[s].charCodeAt(r[s].length-1)||s<r.length-1&&8203===r[s+1].charCodeAt(0)?(i.push(r[s]),o=void 0):r[s]?("number"==typeof o&&i.push(o),i.push(r[s]),o=0):(0===s||s===r.length-1)&&i.push(0);return i}function collectPreText(e){return[String(e.value)]}function trimAndCollapseSpacesAndTabs(e,t,n){const r=[];let i,a=0;for(;a<e.length;){searchTabOrSpaces.lastIndex=a;const n=searchTabOrSpaces.exec(e);i=n?n.index:e.length,!a&&!i&&n&&!t&&r.push(""),a!==i&&r.push(e.slice(a,i)),a=n?i+n[0].length:i}return a!==i&&!n&&r.push(""),r.join(" ")}function inferWhitespace(e,t){if("element"===e.type){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function hidden(e){return!!(e.properties||{}).hidden}function isCell(e){return"td"===e.tagName||"th"===e.tagName}function closedDialog(e){return"dialog"===e.tagName&&!(e.properties||{}).open}class SourceLocation{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new SourceLocation(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class Token{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new Token(t,SourceLocation.range(this,e))}}class ParseError{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n,r,i="KaTeX parse error: "+e,a=t&&t.loc;if(a&&a.start<=a.end){var o=a.lexer.input;n=a.start,r=a.end,n===o.length?i+=" at end of input: ":i+=" at position "+(n+1)+": ";var s=o.slice(n,r).replace(/[^]/g,"$&̲");i+=(n>15?"…"+o.slice(n-15,n):o.slice(0,n))+s+(r+15<o.length?o.slice(r,r+15)+"…":o.slice(r))}var l=new Error(i);return l.name="ParseError",l.__proto__=ParseError.prototype,l.position=n,null!=n&&null!=r&&(l.length=r-n),l.rawMessage=e,l}}ParseError.prototype.__proto__=Error.prototype;var deflt=function(e,t){return void 0===e?t:e},uppercase=/([A-Z])/g,hyphenate=function(e){return e.replace(uppercase,"-$1").toLowerCase()},ESCAPE_LOOKUP={"&":"&",">":">","<":"<",'"':""","'":"'"},ESCAPE_REGEX=/[&><"']/g;function escape(e){return String(e).replace(ESCAPE_REGEX,e=>ESCAPE_LOOKUP[e])}var getBaseElem=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},isCharacterBox=function(e){var t=getBaseElem(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},assert=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},protocolFromUrl=function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"===t[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"},utils={deflt,escape,hyphenate,getBaseElem,isCharacterBox,protocolFromUrl},SETTINGS_SCHEMA={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function getDefaultValue(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if("string"!=typeof n)return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Settings{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},SETTINGS_SCHEMA)if(SETTINGS_SCHEMA.hasOwnProperty(t)){var n=SETTINGS_SCHEMA[t];this[t]=void 0!==e[t]?n.processor?n.processor(e[t]):e[t]:getDefaultValue(n)}}reportNonstrict(e,t,n){var r=this.strict;if("function"==typeof r&&(r=r(e,t,n)),r&&"ignore"!==r){if(!0===r||"error"===r)throw new ParseError("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===r?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,n){var r=this.strict;if("function"==typeof r)try{r=r(e,t,n)}catch{r="error"}return!(!r||"ignore"===r||!0!==r&&"error"!==r&&("warn"===r?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]"),1)))}isTrusted(e){if(e.url&&!e.protocol){var t=utils.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}return!!("function"==typeof this.trust?this.trust(e):this.trust)}}class Style{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return styles[sup[this.id]]}sub(){return styles[sub[this.id]]}fracNum(){return styles[fracNum[this.id]]}fracDen(){return styles[fracDen[this.id]]}cramp(){return styles[cramp[this.id]]}text(){return styles[text$1$1[this.id]]}isTight(){return this.size>=2}}var D$3=0,Dc=1,T$3=2,Tc=3,S$2=4,Sc=5,SS=6,SSc=7,styles=[new Style(D$3,0,!1),new Style(Dc,0,!0),new Style(T$3,1,!1),new Style(Tc,1,!0),new Style(S$2,2,!1),new Style(Sc,2,!0),new Style(SS,3,!1),new Style(SSc,3,!0)],sup=[S$2,Sc,S$2,Sc,SS,SSc,SS,SSc],sub=[Sc,Sc,Sc,Sc,SSc,SSc,SSc,SSc],fracNum=[T$3,Tc,S$2,Sc,SS,SSc,SS,SSc],fracDen=[Tc,Tc,Sc,Sc,SSc,SSc,SSc,SSc],cramp=[Dc,Dc,Tc,Tc,Sc,Sc,SSc,SSc],text$1$1=[D$3,Dc,T$3,Tc,T$3,Tc,T$3,Tc],Style$1={DISPLAY:styles[D$3],TEXT:styles[T$3],SCRIPT:styles[S$2],SCRIPTSCRIPT:styles[SS]},scriptData=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function scriptFromCodepoint(e){for(var t=0;t<scriptData.length;t++)for(var n=scriptData[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var allBlocks=[];function supportedCodepoint(e){for(var t=0;t<allBlocks.length;t+=2)if(e>=allBlocks[t]&&e<=allBlocks[t+1])return!0;return!1}scriptData.forEach(e=>e.blocks.forEach(e=>allBlocks.push(...e)));var hLinePad=80,sqrtMain=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},sqrtSize1=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},sqrtSize2=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},sqrtSize3=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"},sqrtSize4=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},phasePath=function(e){return"M400000 "+e+" H0 L"+e/2+" 0 l65 45 L145 "+(e-80)+" H400000z"},sqrtTall=function(e,t,n){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(n-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"},sqrtPath=function(e,t,n){t*=1e3;var r="";switch(e){case"sqrtMain":r=sqrtMain(t,hLinePad);break;case"sqrtSize1":r=sqrtSize1(t,hLinePad);break;case"sqrtSize2":r=sqrtSize2(t,hLinePad);break;case"sqrtSize3":r=sqrtSize3(t,hLinePad);break;case"sqrtSize4":r=sqrtSize4(t,hLinePad);break;case"sqrtTall":r=sqrtTall(t,hLinePad,n)}return r},innerPath=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}},path={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},tallDelim=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}};class DocumentFragment{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join("")}}var fontMetricsData={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},sigmasAndXis={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},extraCharacterMap={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function setFontMetrics(e,t){fontMetricsData[e]=t}function getCharacterMetrics(e,t,n){if(!fontMetricsData[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=fontMetricsData[t][r];if(!i&&e[0]in extraCharacterMap&&(r=extraCharacterMap[e[0]].charCodeAt(0),i=fontMetricsData[t][r]),!i&&"text"===n&&supportedCodepoint(r)&&(i=fontMetricsData[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var fontMetricsBySizeIndex={};function getGlobalMetrics(e){var t;if(!fontMetricsBySizeIndex[t=e>=5?0:e>=3?1:2]){var n=fontMetricsBySizeIndex[t]={cssEmPerMu:sigmasAndXis.quad[t]/18};for(var r in sigmasAndXis)sigmasAndXis.hasOwnProperty(r)&&(n[r]=sigmasAndXis[r][t])}return fontMetricsBySizeIndex[t]}var sizeStyleMap=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],sizeMultipliers=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],sizeAtStyle=function(e,t){return t.size<2?e:sizeStyleMap[e-1][t.size-1]};class Options{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||Options.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=sizeMultipliers[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return new Options(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:sizeAtStyle(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:sizeMultipliers[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=sizeAtStyle(Options.BASESIZE,e);return this.size===t&&this.textSize===Options.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Options.BASESIZE?["sizing","reset-size"+this.size,"size"+Options.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=getGlobalMetrics(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Options.BASESIZE=6;var ptPerUnit={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},relativeUnit={ex:!0,em:!0,mu:!0},validUnit=function(e){return"string"!=typeof e&&(e=e.unit),e in ptPerUnit||e in relativeUnit||"ex"===e},calculateSize=function(e,t){var n;if(e.unit in ptPerUnit)n=ptPerUnit[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var r;if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=r.fontMetrics().xHeight;else{if("em"!==e.unit)throw new ParseError("Invalid unit: '"+e.unit+"'");n=r.fontMetrics().quad}r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},makeEm=function(e){return+e.toFixed(4)+"em"},createClass=function(e){return e.filter(e=>e).join(" ")},initNode=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}},toNode=function(e){var t=document.createElement(e);for(var n in t.className=createClass(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)t.appendChild(this.children[i].toNode());return t},invalidAttributeNameRegex=/[\s"'>/=\x00-\x1f]/,toMarkup=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+utils.escape(createClass(this.classes))+'"');var n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=utils.hyphenate(r)+":"+this.style[r]+";");for(var i in n&&(t+=' style="'+utils.escape(n)+'"'),this.attributes)if(this.attributes.hasOwnProperty(i)){if(invalidAttributeNameRegex.test(i))throw new ParseError("Invalid attribute name '"+i+"'");t+=" "+i+'="'+utils.escape(this.attributes[i])+'"'}t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+"</"+e+">"};class Span{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,initNode.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return toNode.call(this,"span")}toMarkup(){return toMarkup.call(this,"span")}}class Anchor{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,initNode.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return toNode.call(this,"a")}toMarkup(){return toMarkup.call(this,"a")}}class Img{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+utils.escape(this.src)+'" alt="'+utils.escape(this.alt)+'"',t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=utils.hyphenate(n)+":"+this.style[n]+";");return t&&(e+=' style="'+utils.escape(t)+'"'),e+"'/>"}}var iCombinations={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class SymbolNode{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=scriptFromCodepoint(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=iCombinations[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&((t=document.createElement("span")).style.marginRight=makeEm(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=createClass(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=utils.escape(createClass(this.classes)),t+='"');var n="";for(var r in this.italic>0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=utils.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+utils.escape(n)+'"');var i=utils.escape(this.text);return e?(t+=">",t+=i,t+="</span>"):i}}class SvgNode{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+utils.escape(this.attributes[t])+'"');e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+"</svg>"}}class PathNode{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",path[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+utils.escape(this.alternate)+'"/>':'<path d="'+utils.escape(path[this.pathName])+'"/>'}}class LineNode{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+utils.escape(this.attributes[t])+'"');return e+"/>"}}function assertSymbolDomNode(e){if(e instanceof SymbolNode)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function assertSpan(e){if(e instanceof Span)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var ATOMS={bin:1,close:1,inner:1,open:1,punct:1,rel:1},NON_ATOMS={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},symbols={math:{},text:{}};function defineSymbol(e,t,n,r,i,a){symbols[e][i]={font:t,group:n,replace:r},a&&r&&(symbols[e][r]=symbols[e][i])}var math$1="math",text$3="text",main$1="main",ams="ams",accent="accent-token",bin="bin",close="close",inner="inner",mathord="mathord",op="op-token",open="open",punct="punct",rel="rel",spacing="spacing",textord="textord";defineSymbol(math$1,main$1,rel,"≡","\\equiv",!0),defineSymbol(math$1,main$1,rel,"≺","\\prec",!0),defineSymbol(math$1,main$1,rel,"≻","\\succ",!0),defineSymbol(math$1,main$1,rel,"∼","\\sim",!0),defineSymbol(math$1,main$1,rel,"⊥","\\perp"),defineSymbol(math$1,main$1,rel,"⪯","\\preceq",!0),defineSymbol(math$1,main$1,rel,"⪰","\\succeq",!0),defineSymbol(math$1,main$1,rel,"≃","\\simeq",!0),defineSymbol(math$1,main$1,rel,"∣","\\mid",!0),defineSymbol(math$1,main$1,rel,"≪","\\ll",!0),defineSymbol(math$1,main$1,rel,"≫","\\gg",!0),defineSymbol(math$1,main$1,rel,"≍","\\asymp",!0),defineSymbol(math$1,main$1,rel,"∥","\\parallel"),defineSymbol(math$1,main$1,rel,"⋈","\\bowtie",!0),defineSymbol(math$1,main$1,rel,"⌣","\\smile",!0),defineSymbol(math$1,main$1,rel,"⊑","\\sqsubseteq",!0),defineSymbol(math$1,main$1,rel,"⊒","\\sqsupseteq",!0),defineSymbol(math$1,main$1,rel,"≐","\\doteq",!0),defineSymbol(math$1,main$1,rel,"⌢","\\frown",!0),defineSymbol(math$1,main$1,rel,"∋","\\ni",!0),defineSymbol(math$1,main$1,rel,"∝","\\propto",!0),defineSymbol(math$1,main$1,rel,"⊢","\\vdash",!0),defineSymbol(math$1,main$1,rel,"⊣","\\dashv",!0),defineSymbol(math$1,main$1,rel,"∋","\\owns"),defineSymbol(math$1,main$1,punct,".","\\ldotp"),defineSymbol(math$1,main$1,punct,"⋅","\\cdotp"),defineSymbol(math$1,main$1,textord,"#","\\#"),defineSymbol(text$3,main$1,textord,"#","\\#"),defineSymbol(math$1,main$1,textord,"&","\\&"),defineSymbol(text$3,main$1,textord,"&","\\&"),defineSymbol(math$1,main$1,textord,"ℵ","\\aleph",!0),defineSymbol(math$1,main$1,textord,"∀","\\forall",!0),defineSymbol(math$1,main$1,textord,"ℏ","\\hbar",!0),defineSymbol(math$1,main$1,textord,"∃","\\exists",!0),defineSymbol(math$1,main$1,textord,"∇","\\nabla",!0),defineSymbol(math$1,main$1,textord,"♭","\\flat",!0),defineSymbol(math$1,main$1,textord,"ℓ","\\ell",!0),defineSymbol(math$1,main$1,textord,"♮","\\natural",!0),defineSymbol(math$1,main$1,textord,"♣","\\clubsuit",!0),defineSymbol(math$1,main$1,textord,"℘","\\wp",!0),defineSymbol(math$1,main$1,textord,"♯","\\sharp",!0),defineSymbol(math$1,main$1,textord,"♢","\\diamondsuit",!0),defineSymbol(math$1,main$1,textord,"ℜ","\\Re",!0),defineSymbol(math$1,main$1,textord,"♡","\\heartsuit",!0),defineSymbol(math$1,main$1,textord,"ℑ","\\Im",!0),defineSymbol(math$1,main$1,textord,"♠","\\spadesuit",!0),defineSymbol(math$1,main$1,textord,"§","\\S",!0),defineSymbol(text$3,main$1,textord,"§","\\S"),defineSymbol(math$1,main$1,textord,"¶","\\P",!0),defineSymbol(text$3,main$1,textord,"¶","\\P"),defineSymbol(math$1,main$1,textord,"†","\\dag"),defineSymbol(text$3,main$1,textord,"†","\\dag"),defineSymbol(text$3,main$1,textord,"†","\\textdagger"),defineSymbol(math$1,main$1,textord,"‡","\\ddag"),defineSymbol(text$3,main$1,textord,"‡","\\ddag"),defineSymbol(text$3,main$1,textord,"‡","\\textdaggerdbl"),defineSymbol(math$1,main$1,close,"⎱","\\rmoustache",!0),defineSymbol(math$1,main$1,open,"⎰","\\lmoustache",!0),defineSymbol(math$1,main$1,close,"⟯","\\rgroup",!0),defineSymbol(math$1,main$1,open,"⟮","\\lgroup",!0),defineSymbol(math$1,main$1,bin,"∓","\\mp",!0),defineSymbol(math$1,main$1,bin,"⊖","\\ominus",!0),defineSymbol(math$1,main$1,bin,"⊎","\\uplus",!0),defineSymbol(math$1,main$1,bin,"⊓","\\sqcap",!0),defineSymbol(math$1,main$1,bin,"∗","\\ast"),defineSymbol(math$1,main$1,bin,"⊔","\\sqcup",!0),defineSymbol(math$1,main$1,bin,"◯","\\bigcirc",!0),defineSymbol(math$1,main$1,bin,"∙","\\bullet",!0),defineSymbol(math$1,main$1,bin,"‡","\\ddagger"),defineSymbol(math$1,main$1,bin,"≀","\\wr",!0),defineSymbol(math$1,main$1,bin,"⨿","\\amalg"),defineSymbol(math$1,main$1,bin,"&","\\And"),defineSymbol(math$1,main$1,rel,"⟵","\\longleftarrow",!0),defineSymbol(math$1,main$1,rel,"⇐","\\Leftarrow",!0),defineSymbol(math$1,main$1,rel,"⟸","\\Longleftarrow",!0),defineSymbol(math$1,main$1,rel,"⟶","\\longrightarrow",!0),defineSymbol(math$1,main$1,rel,"⇒","\\Rightarrow",!0),defineSymbol(math$1,main$1,rel,"⟹","\\Longrightarrow",!0),defineSymbol(math$1,main$1,rel,"↔","\\leftrightarrow",!0),defineSymbol(math$1,main$1,rel,"⟷","\\longleftrightarrow",!0),defineSymbol(math$1,main$1,rel,"⇔","\\Leftrightarrow",!0),defineSymbol(math$1,main$1,rel,"⟺","\\Longleftrightarrow",!0),defineSymbol(math$1,main$1,rel,"↦","\\mapsto",!0),defineSymbol(math$1,main$1,rel,"⟼","\\longmapsto",!0),defineSymbol(math$1,main$1,rel,"↗","\\nearrow",!0),defineSymbol(math$1,main$1,rel,"↩","\\hookleftarrow",!0),defineSymbol(math$1,main$1,rel,"↪","\\hookrightarrow",!0),defineSymbol(math$1,main$1,rel,"↘","\\searrow",!0),defineSymbol(math$1,main$1,rel,"↼","\\leftharpoonup",!0),defineSymbol(math$1,main$1,rel,"⇀","\\rightharpoonup",!0),defineSymbol(math$1,main$1,rel,"↙","\\swarrow",!0),defineSymbol(math$1,main$1,rel,"↽","\\leftharpoondown",!0),defineSymbol(math$1,main$1,rel,"⇁","\\rightharpoondown",!0),defineSymbol(math$1,main$1,rel,"↖","\\nwarrow",!0),defineSymbol(math$1,main$1,rel,"⇌","\\rightleftharpoons",!0),defineSymbol(math$1,ams,rel,"≮","\\nless",!0),defineSymbol(math$1,ams,rel,"","\\@nleqslant"),defineSymbol(math$1,ams,rel,"","\\@nleqq"),defineSymbol(math$1,ams,rel,"⪇","\\lneq",!0),defineSymbol(math$1,ams,rel,"≨","\\lneqq",!0),defineSymbol(math$1,ams,rel,"","\\@lvertneqq"),defineSymbol(math$1,ams,rel,"⋦","\\lnsim",!0),defineSymbol(math$1,ams,rel,"⪉","\\lnapprox",!0),defineSymbol(math$1,ams,rel,"⊀","\\nprec",!0),defineSymbol(math$1,ams,rel,"⋠","\\npreceq",!0),defineSymbol(math$1,ams,rel,"⋨","\\precnsim",!0),defineSymbol(math$1,ams,rel,"⪹","\\precnapprox",!0),defineSymbol(math$1,ams,rel,"≁","\\nsim",!0),defineSymbol(math$1,ams,rel,"","\\@nshortmid"),defineSymbol(math$1,ams,rel,"∤","\\nmid",!0),defineSymbol(math$1,ams,rel,"⊬","\\nvdash",!0),defineSymbol(math$1,ams,rel,"⊭","\\nvDash",!0),defineSymbol(math$1,ams,rel,"⋪","\\ntriangleleft"),defineSymbol(math$1,ams,rel,"⋬","\\ntrianglelefteq",!0),defineSymbol(math$1,ams,rel,"⊊","\\subsetneq",!0),defineSymbol(math$1,ams,rel,"","\\@varsubsetneq"),defineSymbol(math$1,ams,rel,"⫋","\\subsetneqq",!0),defineSymbol(math$1,ams,rel,"","\\@varsubsetneqq"),defineSymbol(math$1,ams,rel,"≯","\\ngtr",!0),defineSymbol(math$1,ams,rel,"","\\@ngeqslant"),defineSymbol(math$1,ams,rel,"","\\@ngeqq"),defineSymbol(math$1,ams,rel,"⪈","\\gneq",!0),defineSymbol(math$1,ams,rel,"≩","\\gneqq",!0),defineSymbol(math$1,ams,rel,"","\\@gvertneqq"),defineSymbol(math$1,ams,rel,"⋧","\\gnsim",!0),defineSymbol(math$1,ams,rel,"⪊","\\gnapprox",!0),defineSymbol(math$1,ams,rel,"⊁","\\nsucc",!0),defineSymbol(math$1,ams,rel,"⋡","\\nsucceq",!0),defineSymbol(math$1,ams,rel,"⋩","\\succnsim",!0),defineSymbol(math$1,ams,rel,"⪺","\\succnapprox",!0),defineSymbol(math$1,ams,rel,"≆","\\ncong",!0),defineSymbol(math$1,ams,rel,"","\\@nshortparallel"),defineSymbol(math$1,ams,rel,"∦","\\nparallel",!0),defineSymbol(math$1,ams,rel,"⊯","\\nVDash",!0),defineSymbol(math$1,ams,rel,"⋫","\\ntriangleright"),defineSymbol(math$1,ams,rel,"⋭","\\ntrianglerighteq",!0),defineSymbol(math$1,ams,rel,"","\\@nsupseteqq"),defineSymbol(math$1,ams,rel,"⊋","\\supsetneq",!0),defineSymbol(math$1,ams,rel,"","\\@varsupsetneq"),defineSymbol(math$1,ams,rel,"⫌","\\supsetneqq",!0),defineSymbol(math$1,ams,rel,"","\\@varsupsetneqq"),defineSymbol(math$1,ams,rel,"⊮","\\nVdash",!0),defineSymbol(math$1,ams,rel,"⪵","\\precneqq",!0),defineSymbol(math$1,ams,rel,"⪶","\\succneqq",!0),defineSymbol(math$1,ams,rel,"","\\@nsubseteqq"),defineSymbol(math$1,ams,bin,"⊴","\\unlhd"),defineSymbol(math$1,ams,bin,"⊵","\\unrhd"),defineSymbol(math$1,ams,rel,"↚","\\nleftarrow",!0),defineSymbol(math$1,ams,rel,"↛","\\nrightarrow",!0),defineSymbol(math$1,ams,rel,"⇍","\\nLeftarrow",!0),defineSymbol(math$1,ams,rel,"⇏","\\nRightarrow",!0),defineSymbol(math$1,ams,rel,"↮","\\nleftrightarrow",!0),defineSymbol(math$1,ams,rel,"⇎","\\nLeftrightarrow",!0),defineSymbol(math$1,ams,rel,"△","\\vartriangle"),defineSymbol(math$1,ams,textord,"ℏ","\\hslash"),defineSymbol(math$1,ams,textord,"▽","\\triangledown"),defineSymbol(math$1,ams,textord,"◊","\\lozenge"),defineSymbol(math$1,ams,textord,"Ⓢ","\\circledS"),defineSymbol(math$1,ams,textord,"®","\\circledR"),defineSymbol(text$3,ams,textord,"®","\\circledR"),defineSymbol(math$1,ams,textord,"∡","\\measuredangle",!0),defineSymbol(math$1,ams,textord,"∄","\\nexists"),defineSymbol(math$1,ams,textord,"℧","\\mho"),defineSymbol(math$1,ams,textord,"Ⅎ","\\Finv",!0),defineSymbol(math$1,ams,textord,"⅁","\\Game",!0),defineSymbol(math$1,ams,textord,"‵","\\backprime"),defineSymbol(math$1,ams,textord,"▲","\\blacktriangle"),defineSymbol(math$1,ams,textord,"▼","\\blacktriangledown"),defineSymbol(math$1,ams,textord,"■","\\blacksquare"),defineSymbol(math$1,ams,textord,"⧫","\\blacklozenge"),defineSymbol(math$1,ams,textord,"★","\\bigstar"),defineSymbol(math$1,ams,textord,"∢","\\sphericalangle",!0),defineSymbol(math$1,ams,textord,"∁","\\complement",!0),defineSymbol(math$1,ams,textord,"ð","\\eth",!0),defineSymbol(text$3,main$1,textord,"ð","ð"),defineSymbol(math$1,ams,textord,"╱","\\diagup"),defineSymbol(math$1,ams,textord,"╲","\\diagdown"),defineSymbol(math$1,ams,textord,"□","\\square"),defineSymbol(math$1,ams,textord,"□","\\Box"),defineSymbol(math$1,ams,textord,"◊","\\Diamond"),defineSymbol(math$1,ams,textord,"¥","\\yen",!0),defineSymbol(text$3,ams,textord,"¥","\\yen",!0),defineSymbol(math$1,ams,textord,"✓","\\checkmark",!0),defineSymbol(text$3,ams,textord,"✓","\\checkmark"),defineSymbol(math$1,ams,textord,"ℶ","\\beth",!0),defineSymbol(math$1,ams,textord,"ℸ","\\daleth",!0),defineSymbol(math$1,ams,textord,"ℷ","\\gimel",!0),defineSymbol(math$1,ams,textord,"ϝ","\\digamma",!0),defineSymbol(math$1,ams,textord,"ϰ","\\varkappa"),defineSymbol(math$1,ams,open,"┌","\\@ulcorner",!0),defineSymbol(math$1,ams,close,"┐","\\@urcorner",!0),defineSymbol(math$1,ams,open,"└","\\@llcorner",!0),defineSymbol(math$1,ams,close,"┘","\\@lrcorner",!0),defineSymbol(math$1,ams,rel,"≦","\\leqq",!0),defineSymbol(math$1,ams,rel,"⩽","\\leqslant",!0),defineSymbol(math$1,ams,rel,"⪕","\\eqslantless",!0),defineSymbol(math$1,ams,rel,"≲","\\lesssim",!0),defineSymbol(math$1,ams,rel,"⪅","\\lessapprox",!0),defineSymbol(math$1,ams,rel,"≊","\\approxeq",!0),defineSymbol(math$1,ams,bin,"⋖","\\lessdot"),defineSymbol(math$1,ams,rel,"⋘","\\lll",!0),defineSymbol(math$1,ams,rel,"≶","\\lessgtr",!0),defineSymbol(math$1,ams,rel,"⋚","\\lesseqgtr",!0),defineSymbol(math$1,ams,rel,"⪋","\\lesseqqgtr",!0),defineSymbol(math$1,ams,rel,"≑","\\doteqdot"),defineSymbol(math$1,ams,rel,"≓","\\risingdotseq",!0),defineSymbol(math$1,ams,rel,"≒","\\fallingdotseq",!0),defineSymbol(math$1,ams,rel,"∽","\\backsim",!0),defineSymbol(math$1,ams,rel,"⋍","\\backsimeq",!0),defineSymbol(math$1,ams,rel,"⫅","\\subseteqq",!0),defineSymbol(math$1,ams,rel,"⋐","\\Subset",!0),defineSymbol(math$1,ams,rel,"⊏","\\sqsubset",!0),defineSymbol(math$1,ams,rel,"≼","\\preccurlyeq",!0),defineSymbol(math$1,ams,rel,"⋞","\\curlyeqprec",!0),defineSymbol(math$1,ams,rel,"≾","\\precsim",!0),defineSymbol(math$1,ams,rel,"⪷","\\precapprox",!0),defineSymbol(math$1,ams,rel,"⊲","\\vartriangleleft"),defineSymbol(math$1,ams,rel,"⊴","\\trianglelefteq"),defineSymbol(math$1,ams,rel,"⊨","\\vDash",!0),defineSymbol(math$1,ams,rel,"⊪","\\Vvdash",!0),defineSymbol(math$1,ams,rel,"⌣","\\smallsmile"),defineSymbol(math$1,ams,rel,"⌢","\\smallfrown"),defineSymbol(math$1,ams,rel,"≏","\\bumpeq",!0),defineSymbol(math$1,ams,rel,"≎","\\Bumpeq",!0),defineSymbol(math$1,ams,rel,"≧","\\geqq",!0),defineSymbol(math$1,ams,rel,"⩾","\\geqslant",!0),defineSymbol(math$1,ams,rel,"⪖","\\eqslantgtr",!0),defineSymbol(math$1,ams,rel,"≳","\\gtrsim",!0),defineSymbol(math$1,ams,rel,"⪆","\\gtrapprox",!0),defineSymbol(math$1,ams,bin,"⋗","\\gtrdot"),defineSymbol(math$1,ams,rel,"⋙","\\ggg",!0),defineSymbol(math$1,ams,rel,"≷","\\gtrless",!0),defineSymbol(math$1,ams,rel,"⋛","\\gtreqless",!0),defineSymbol(math$1,ams,rel,"⪌","\\gtreqqless",!0),defineSymbol(math$1,ams,rel,"≖","\\eqcirc",!0),defineSymbol(math$1,ams,rel,"≗","\\circeq",!0),defineSymbol(math$1,ams,rel,"≜","\\triangleq",!0),defineSymbol(math$1,ams,rel,"∼","\\thicksim"),defineSymbol(math$1,ams,rel,"≈","\\thickapprox"),defineSymbol(math$1,ams,rel,"⫆","\\supseteqq",!0),defineSymbol(math$1,ams,rel,"⋑","\\Supset",!0),defineSymbol(math$1,ams,rel,"⊐","\\sqsupset",!0),defineSymbol(math$1,ams,rel,"≽","\\succcurlyeq",!0),defineSymbol(math$1,ams,rel,"⋟","\\curlyeqsucc",!0),defineSymbol(math$1,ams,rel,"≿","\\succsim",!0),defineSymbol(math$1,ams,rel,"⪸","\\succapprox",!0),defineSymbol(math$1,ams,rel,"⊳","\\vartriangleright"),defineSymbol(math$1,ams,rel,"⊵","\\trianglerighteq"),defineSymbol(math$1,ams,rel,"⊩","\\Vdash",!0),defineSymbol(math$1,ams,rel,"∣","\\shortmid"),defineSymbol(math$1,ams,rel,"∥","\\shortparallel"),defineSymbol(math$1,ams,rel,"≬","\\between",!0),defineSymbol(math$1,ams,rel,"⋔","\\pitchfork",!0),defineSymbol(math$1,ams,rel,"∝","\\varpropto"),defineSymbol(math$1,ams,rel,"◀","\\blacktriangleleft"),defineSymbol(math$1,ams,rel,"∴","\\therefore",!0),defineSymbol(math$1,ams,rel,"∍","\\backepsilon"),defineSymbol(math$1,ams,rel,"▶","\\blacktriangleright"),defineSymbol(math$1,ams,rel,"∵","\\because",!0),defineSymbol(math$1,ams,rel,"⋘","\\llless"),defineSymbol(math$1,ams,rel,"⋙","\\gggtr"),defineSymbol(math$1,ams,bin,"⊲","\\lhd"),defineSymbol(math$1,ams,bin,"⊳","\\rhd"),defineSymbol(math$1,ams,rel,"≂","\\eqsim",!0),defineSymbol(math$1,main$1,rel,"⋈","\\Join"),defineSymbol(math$1,ams,rel,"≑","\\Doteq",!0),defineSymbol(math$1,ams,bin,"∔","\\dotplus",!0),defineSymbol(math$1,ams,bin,"∖","\\smallsetminus"),defineSymbol(math$1,ams,bin,"⋒","\\Cap",!0),defineSymbol(math$1,ams,bin,"⋓","\\Cup",!0),defineSymbol(math$1,ams,bin,"⩞","\\doublebarwedge",!0),defineSymbol(math$1,ams,bin,"⊟","\\boxminus",!0),defineSymbol(math$1,ams,bin,"⊞","\\boxplus",!0),defineSymbol(math$1,ams,bin,"⋇","\\divideontimes",!0),defineSymbol(math$1,ams,bin,"⋉","\\ltimes",!0),defineSymbol(math$1,ams,bin,"⋊","\\rtimes",!0),defineSymbol(math$1,ams,bin,"⋋","\\leftthreetimes",!0),defineSymbol(math$1,ams,bin,"⋌","\\rightthreetimes",!0),defineSymbol(math$1,ams,bin,"⋏","\\curlywedge",!0),defineSymbol(math$1,ams,bin,"⋎","\\curlyvee",!0),defineSymbol(math$1,ams,bin,"⊝","\\circleddash",!0),defineSymbol(math$1,ams,bin,"⊛","\\circledast",!0),defineSymbol(math$1,ams,bin,"⋅","\\centerdot"),defineSymbol(math$1,ams,bin,"⊺","\\intercal",!0),defineSymbol(math$1,ams,bin,"⋒","\\doublecap"),defineSymbol(math$1,ams,bin,"⋓","\\doublecup"),defineSymbol(math$1,ams,bin,"⊠","\\boxtimes",!0),defineSymbol(math$1,ams,rel,"⇢","\\dashrightarrow",!0),defineSymbol(math$1,ams,rel,"⇠","\\dashleftarrow",!0),defineSymbol(math$1,ams,rel,"⇇","\\leftleftarrows",!0),defineSymbol(math$1,ams,rel,"⇆","\\leftrightarrows",!0),defineSymbol(math$1,ams,rel,"⇚","\\Lleftarrow",!0),defineSymbol(math$1,ams,rel,"↞","\\twoheadleftarrow",!0),defineSymbol(math$1,ams,rel,"↢","\\leftarrowtail",!0),defineSymbol(math$1,ams,rel,"↫","\\looparrowleft",!0),defineSymbol(math$1,ams,rel,"⇋","\\leftrightharpoons",!0),defineSymbol(math$1,ams,rel,"↶","\\curvearrowleft",!0),defineSymbol(math$1,ams,rel,"↺","\\circlearrowleft",!0),defineSymbol(math$1,ams,rel,"↰","\\Lsh",!0),defineSymbol(math$1,ams,rel,"⇈","\\upuparrows",!0),defineSymbol(math$1,ams,rel,"↿","\\upharpoonleft",!0),defineSymbol(math$1,ams,rel,"⇃","\\downharpoonleft",!0),defineSymbol(math$1,main$1,rel,"⊶","\\origof",!0),defineSymbol(math$1,main$1,rel,"⊷","\\imageof",!0),defineSymbol(math$1,ams,rel,"⊸","\\multimap",!0),defineSymbol(math$1,ams,rel,"↭","\\leftrightsquigarrow",!0),defineSymbol(math$1,ams,rel,"⇉","\\rightrightarrows",!0),defineSymbol(math$1,ams,rel,"⇄","\\rightleftarrows",!0),defineSymbol(math$1,ams,rel,"↠","\\twoheadrightarrow",!0),defineSymbol(math$1,ams,rel,"↣","\\rightarrowtail",!0),defineSymbol(math$1,ams,rel,"↬","\\looparrowright",!0),defineSymbol(math$1,ams,rel,"↷","\\curvearrowright",!0),defineSymbol(math$1,ams,rel,"↻","\\circlearrowright",!0),defineSymbol(math$1,ams,rel,"↱","\\Rsh",!0),defineSymbol(math$1,ams,rel,"⇊","\\downdownarrows",!0),defineSymbol(math$1,ams,rel,"↾","\\upharpoonright",!0),defineSymbol(math$1,ams,rel,"⇂","\\downharpoonright",!0),defineSymbol(math$1,ams,rel,"⇝","\\rightsquigarrow",!0),defineSymbol(math$1,ams,rel,"⇝","\\leadsto"),defineSymbol(math$1,ams,rel,"⇛","\\Rrightarrow",!0),defineSymbol(math$1,ams,rel,"↾","\\restriction"),defineSymbol(math$1,main$1,textord,"‘","`"),defineSymbol(math$1,main$1,textord,"$","\\$"),defineSymbol(text$3,main$1,textord,"$","\\$"),defineSymbol(text$3,main$1,textord,"$","\\textdollar"),defineSymbol(math$1,main$1,textord,"%","\\%"),defineSymbol(text$3,main$1,textord,"%","\\%"),defineSymbol(math$1,main$1,textord,"_","\\_"),defineSymbol(text$3,main$1,textord,"_","\\_"),defineSymbol(text$3,main$1,textord,"_","\\textunderscore"),defineSymbol(math$1,main$1,textord,"∠","\\angle",!0),defineSymbol(math$1,main$1,textord,"∞","\\infty",!0),defineSymbol(math$1,main$1,textord,"′","\\prime"),defineSymbol(math$1,main$1,textord,"△","\\triangle"),defineSymbol(math$1,main$1,textord,"Γ","\\Gamma",!0),defineSymbol(math$1,main$1,textord,"Δ","\\Delta",!0),defineSymbol(math$1,main$1,textord,"Θ","\\Theta",!0),defineSymbol(math$1,main$1,textord,"Λ","\\Lambda",!0),defineSymbol(math$1,main$1,textord,"Ξ","\\Xi",!0),defineSymbol(math$1,main$1,textord,"Π","\\Pi",!0),defineSymbol(math$1,main$1,textord,"Σ","\\Sigma",!0),defineSymbol(math$1,main$1,textord,"Υ","\\Upsilon",!0),defineSymbol(math$1,main$1,textord,"Φ","\\Phi",!0),defineSymbol(math$1,main$1,textord,"Ψ","\\Psi",!0),defineSymbol(math$1,main$1,textord,"Ω","\\Omega",!0),defineSymbol(math$1,main$1,textord,"A","Α"),defineSymbol(math$1,main$1,textord,"B","Β"),defineSymbol(math$1,main$1,textord,"E","Ε"),defineSymbol(math$1,main$1,textord,"Z","Ζ"),defineSymbol(math$1,main$1,textord,"H","Η"),defineSymbol(math$1,main$1,textord,"I","Ι"),defineSymbol(math$1,main$1,textord,"K","Κ"),defineSymbol(math$1,main$1,textord,"M","Μ"),defineSymbol(math$1,main$1,textord,"N","Ν"),defineSymbol(math$1,main$1,textord,"O","Ο"),defineSymbol(math$1,main$1,textord,"P","Ρ"),defineSymbol(math$1,main$1,textord,"T","Τ"),defineSymbol(math$1,main$1,textord,"X","Χ"),defineSymbol(math$1,main$1,textord,"¬","\\neg",!0),defineSymbol(math$1,main$1,textord,"¬","\\lnot"),defineSymbol(math$1,main$1,textord,"⊤","\\top"),defineSymbol(math$1,main$1,textord,"⊥","\\bot"),defineSymbol(math$1,main$1,textord,"∅","\\emptyset"),defineSymbol(math$1,ams,textord,"∅","\\varnothing"),defineSymbol(math$1,main$1,mathord,"α","\\alpha",!0),defineSymbol(math$1,main$1,mathord,"β","\\beta",!0),defineSymbol(math$1,main$1,mathord,"γ","\\gamma",!0),defineSymbol(math$1,main$1,mathord,"δ","\\delta",!0),defineSymbol(math$1,main$1,mathord,"ϵ","\\epsilon",!0),defineSymbol(math$1,main$1,mathord,"ζ","\\zeta",!0),defineSymbol(math$1,main$1,mathord,"η","\\eta",!0),defineSymbol(math$1,main$1,mathord,"θ","\\theta",!0),defineSymbol(math$1,main$1,mathord,"ι","\\iota",!0),defineSymbol(math$1,main$1,mathord,"κ","\\kappa",!0),defineSymbol(math$1,main$1,mathord,"λ","\\lambda",!0),defineSymbol(math$1,main$1,mathord,"μ","\\mu",!0),defineSymbol(math$1,main$1,mathord,"ν","\\nu",!0),defineSymbol(math$1,main$1,mathord,"ξ","\\xi",!0),defineSymbol(math$1,main$1,mathord,"ο","\\omicron",!0),defineSymbol(math$1,main$1,mathord,"π","\\pi",!0),defineSymbol(math$1,main$1,mathord,"ρ","\\rho",!0),defineSymbol(math$1,main$1,mathord,"σ","\\sigma",!0),defineSymbol(math$1,main$1,mathord,"τ","\\tau",!0),defineSymbol(math$1,main$1,mathord,"υ","\\upsilon",!0),defineSymbol(math$1,main$1,mathord,"ϕ","\\phi",!0),defineSymbol(math$1,main$1,mathord,"χ","\\chi",!0),defineSymbol(math$1,main$1,mathord,"ψ","\\psi",!0),defineSymbol(math$1,main$1,mathord,"ω","\\omega",!0),defineSymbol(math$1,main$1,mathord,"ε","\\varepsilon",!0),defineSymbol(math$1,main$1,mathord,"ϑ","\\vartheta",!0),defineSymbol(math$1,main$1,mathord,"ϖ","\\varpi",!0),defineSymbol(math$1,main$1,mathord,"ϱ","\\varrho",!0),defineSymbol(math$1,main$1,mathord,"ς","\\varsigma",!0),defineSymbol(math$1,main$1,mathord,"φ","\\varphi",!0),defineSymbol(math$1,main$1,bin,"∗","*",!0),defineSymbol(math$1,main$1,bin,"+","+"),defineSymbol(math$1,main$1,bin,"−","-",!0),defineSymbol(math$1,main$1,bin,"⋅","\\cdot",!0),defineSymbol(math$1,main$1,bin,"∘","\\circ",!0),defineSymbol(math$1,main$1,bin,"÷","\\div",!0),defineSymbol(math$1,main$1,bin,"±","\\pm",!0),defineSymbol(math$1,main$1,bin,"×","\\times",!0),defineSymbol(math$1,main$1,bin,"∩","\\cap",!0),defineSymbol(math$1,main$1,bin,"∪","\\cup",!0),defineSymbol(math$1,main$1,bin,"∖","\\setminus",!0),defineSymbol(math$1,main$1,bin,"∧","\\land"),defineSymbol(math$1,main$1,bin,"∨","\\lor"),defineSymbol(math$1,main$1,bin,"∧","\\wedge",!0),defineSymbol(math$1,main$1,bin,"∨","\\vee",!0),defineSymbol(math$1,main$1,textord,"√","\\surd"),defineSymbol(math$1,main$1,open,"⟨","\\langle",!0),defineSymbol(math$1,main$1,open,"∣","\\lvert"),defineSymbol(math$1,main$1,open,"∥","\\lVert"),defineSymbol(math$1,main$1,close,"?","?"),defineSymbol(math$1,main$1,close,"!","!"),defineSymbol(math$1,main$1,close,"⟩","\\rangle",!0),defineSymbol(math$1,main$1,close,"∣","\\rvert"),defineSymbol(math$1,main$1,close,"∥","\\rVert"),defineSymbol(math$1,main$1,rel,"=","="),defineSymbol(math$1,main$1,rel,":",":"),defineSymbol(math$1,main$1,rel,"≈","\\approx",!0),defineSymbol(math$1,main$1,rel,"≅","\\cong",!0),defineSymbol(math$1,main$1,rel,"≥","\\ge"),defineSymbol(math$1,main$1,rel,"≥","\\geq",!0),defineSymbol(math$1,main$1,rel,"←","\\gets"),defineSymbol(math$1,main$1,rel,">","\\gt",!0),defineSymbol(math$1,main$1,rel,"∈","\\in",!0),defineSymbol(math$1,main$1,rel,"","\\@not"),defineSymbol(math$1,main$1,rel,"⊂","\\subset",!0),defineSymbol(math$1,main$1,rel,"⊃","\\supset",!0),defineSymbol(math$1,main$1,rel,"⊆","\\subseteq",!0),defineSymbol(math$1,main$1,rel,"⊇","\\supseteq",!0),defineSymbol(math$1,ams,rel,"⊈","\\nsubseteq",!0),defineSymbol(math$1,ams,rel,"⊉","\\nsupseteq",!0),defineSymbol(math$1,main$1,rel,"⊨","\\models"),defineSymbol(math$1,main$1,rel,"←","\\leftarrow",!0),defineSymbol(math$1,main$1,rel,"≤","\\le"),defineSymbol(math$1,main$1,rel,"≤","\\leq",!0),defineSymbol(math$1,main$1,rel,"<","\\lt",!0),defineSymbol(math$1,main$1,rel,"→","\\rightarrow",!0),defineSymbol(math$1,main$1,rel,"→","\\to"),defineSymbol(math$1,ams,rel,"≱","\\ngeq",!0),defineSymbol(math$1,ams,rel,"≰","\\nleq",!0),defineSymbol(math$1,main$1,spacing," ","\\ "),defineSymbol(math$1,main$1,spacing," ","\\space"),defineSymbol(math$1,main$1,spacing," ","\\nobreakspace"),defineSymbol(text$3,main$1,spacing," ","\\ "),defineSymbol(text$3,main$1,spacing," "," "),defineSymbol(text$3,main$1,spacing," ","\\space"),defineSymbol(text$3,main$1,spacing," ","\\nobreakspace"),defineSymbol(math$1,main$1,spacing,null,"\\nobreak"),defineSymbol(math$1,main$1,spacing,null,"\\allowbreak"),defineSymbol(math$1,main$1,punct,",",","),defineSymbol(math$1,main$1,punct,";",";"),defineSymbol(math$1,ams,bin,"⊼","\\barwedge",!0),defineSymbol(math$1,ams,bin,"⊻","\\veebar",!0),defineSymbol(math$1,main$1,bin,"⊙","\\odot",!0),defineSymbol(math$1,main$1,bin,"⊕","\\oplus",!0),defineSymbol(math$1,main$1,bin,"⊗","\\otimes",!0),defineSymbol(math$1,main$1,textord,"∂","\\partial",!0),defineSymbol(math$1,main$1,bin,"⊘","\\oslash",!0),defineSymbol(math$1,ams,bin,"⊚","\\circledcirc",!0),defineSymbol(math$1,ams,bin,"⊡","\\boxdot",!0),defineSymbol(math$1,main$1,bin,"△","\\bigtriangleup"),defineSymbol(math$1,main$1,bin,"▽","\\bigtriangledown"),defineSymbol(math$1,main$1,bin,"†","\\dagger"),defineSymbol(math$1,main$1,bin,"⋄","\\diamond"),defineSymbol(math$1,main$1,bin,"⋆","\\star"),defineSymbol(math$1,main$1,bin,"◃","\\triangleleft"),defineSymbol(math$1,main$1,bin,"▹","\\triangleright"),defineSymbol(math$1,main$1,open,"{","\\{"),defineSymbol(text$3,main$1,textord,"{","\\{"),defineSymbol(text$3,main$1,textord,"{","\\textbraceleft"),defineSymbol(math$1,main$1,close,"}","\\}"),defineSymbol(text$3,main$1,textord,"}","\\}"),defineSymbol(text$3,main$1,textord,"}","\\textbraceright"),defineSymbol(math$1,main$1,open,"{","\\lbrace"),defineSymbol(math$1,main$1,close,"}","\\rbrace"),defineSymbol(math$1,main$1,open,"[","\\lbrack",!0),defineSymbol(text$3,main$1,textord,"[","\\lbrack",!0),defineSymbol(math$1,main$1,close,"]","\\rbrack",!0),defineSymbol(text$3,main$1,textord,"]","\\rbrack",!0),defineSymbol(math$1,main$1,open,"(","\\lparen",!0),defineSymbol(math$1,main$1,close,")","\\rparen",!0),defineSymbol(text$3,main$1,textord,"<","\\textless",!0),defineSymbol(text$3,main$1,textord,">","\\textgreater",!0),defineSymbol(math$1,main$1,open,"⌊","\\lfloor",!0),defineSymbol(math$1,main$1,close,"⌋","\\rfloor",!0),defineSymbol(math$1,main$1,open,"⌈","\\lceil",!0),defineSymbol(math$1,main$1,close,"⌉","\\rceil",!0),defineSymbol(math$1,main$1,textord,"\\","\\backslash"),defineSymbol(math$1,main$1,textord,"∣","|"),defineSymbol(math$1,main$1,textord,"∣","\\vert"),defineSymbol(text$3,main$1,textord,"|","\\textbar",!0),defineSymbol(math$1,main$1,textord,"∥","\\|"),defineSymbol(math$1,main$1,textord,"∥","\\Vert"),defineSymbol(text$3,main$1,textord,"∥","\\textbardbl"),defineSymbol(text$3,main$1,textord,"~","\\textasciitilde"),defineSymbol(text$3,main$1,textord,"\\","\\textbackslash"),defineSymbol(text$3,main$1,textord,"^","\\textasciicircum"),defineSymbol(math$1,main$1,rel,"↑","\\uparrow",!0),defineSymbol(math$1,main$1,rel,"⇑","\\Uparrow",!0),defineSymbol(math$1,main$1,rel,"↓","\\downarrow",!0),defineSymbol(math$1,main$1,rel,"⇓","\\Downarrow",!0),defineSymbol(math$1,main$1,rel,"↕","\\updownarrow",!0),defineSymbol(math$1,main$1,rel,"⇕","\\Updownarrow",!0),defineSymbol(math$1,main$1,op,"∐","\\coprod"),defineSymbol(math$1,main$1,op,"⋁","\\bigvee"),defineSymbol(math$1,main$1,op,"⋀","\\bigwedge"),defineSymbol(math$1,main$1,op,"⨄","\\biguplus"),defineSymbol(math$1,main$1,op,"⋂","\\bigcap"),defineSymbol(math$1,main$1,op,"⋃","\\bigcup"),defineSymbol(math$1,main$1,op,"∫","\\int"),defineSymbol(math$1,main$1,op,"∫","\\intop"),defineSymbol(math$1,main$1,op,"∬","\\iint"),defineSymbol(math$1,main$1,op,"∭","\\iiint"),defineSymbol(math$1,main$1,op,"∏","\\prod"),defineSymbol(math$1,main$1,op,"∑","\\sum"),defineSymbol(math$1,main$1,op,"⨂","\\bigotimes"),defineSymbol(math$1,main$1,op,"⨁","\\bigoplus"),defineSymbol(math$1,main$1,op,"⨀","\\bigodot"),defineSymbol(math$1,main$1,op,"∮","\\oint"),defineSymbol(math$1,main$1,op,"∯","\\oiint"),defineSymbol(math$1,main$1,op,"∰","\\oiiint"),defineSymbol(math$1,main$1,op,"⨆","\\bigsqcup"),defineSymbol(math$1,main$1,op,"∫","\\smallint"),defineSymbol(text$3,main$1,inner,"…","\\textellipsis"),defineSymbol(math$1,main$1,inner,"…","\\mathellipsis"),defineSymbol(text$3,main$1,inner,"…","\\ldots",!0),defineSymbol(math$1,main$1,inner,"…","\\ldots",!0),defineSymbol(math$1,main$1,inner,"⋯","\\@cdots",!0),defineSymbol(math$1,main$1,inner,"⋱","\\ddots",!0),defineSymbol(math$1,main$1,textord,"⋮","\\varvdots"),defineSymbol(text$3,main$1,textord,"⋮","\\varvdots"),defineSymbol(math$1,main$1,accent,"ˊ","\\acute"),defineSymbol(math$1,main$1,accent,"ˋ","\\grave"),defineSymbol(math$1,main$1,accent,"¨","\\ddot"),defineSymbol(math$1,main$1,accent,"~","\\tilde"),defineSymbol(math$1,main$1,accent,"ˉ","\\bar"),defineSymbol(math$1,main$1,accent,"˘","\\breve"),defineSymbol(math$1,main$1,accent,"ˇ","\\check"),defineSymbol(math$1,main$1,accent,"^","\\hat"),defineSymbol(math$1,main$1,accent,"⃗","\\vec"),defineSymbol(math$1,main$1,accent,"˙","\\dot"),defineSymbol(math$1,main$1,accent,"˚","\\mathring"),defineSymbol(math$1,main$1,mathord,"","\\@imath"),defineSymbol(math$1,main$1,mathord,"","\\@jmath"),defineSymbol(math$1,main$1,textord,"ı","ı"),defineSymbol(math$1,main$1,textord,"ȷ","ȷ"),defineSymbol(text$3,main$1,textord,"ı","\\i",!0),defineSymbol(text$3,main$1,textord,"ȷ","\\j",!0),defineSymbol(text$3,main$1,textord,"ß","\\ss",!0),defineSymbol(text$3,main$1,textord,"æ","\\ae",!0),defineSymbol(text$3,main$1,textord,"œ","\\oe",!0),defineSymbol(text$3,main$1,textord,"ø","\\o",!0),defineSymbol(text$3,main$1,textord,"Æ","\\AE",!0),defineSymbol(text$3,main$1,textord,"Œ","\\OE",!0),defineSymbol(text$3,main$1,textord,"Ø","\\O",!0),defineSymbol(text$3,main$1,accent,"ˊ","\\'"),defineSymbol(text$3,main$1,accent,"ˋ","\\`"),defineSymbol(text$3,main$1,accent,"ˆ","\\^"),defineSymbol(text$3,main$1,accent,"˜","\\~"),defineSymbol(text$3,main$1,accent,"ˉ","\\="),defineSymbol(text$3,main$1,accent,"˘","\\u"),defineSymbol(text$3,main$1,accent,"˙","\\."),defineSymbol(text$3,main$1,accent,"¸","\\c"),defineSymbol(text$3,main$1,accent,"˚","\\r"),defineSymbol(text$3,main$1,accent,"ˇ","\\v"),defineSymbol(text$3,main$1,accent,"¨",'\\"'),defineSymbol(text$3,main$1,accent,"˝","\\H"),defineSymbol(text$3,main$1,accent,"◯","\\textcircled");var ligatures={"--":!0,"---":!0,"``":!0,"''":!0};defineSymbol(text$3,main$1,textord,"–","--",!0),defineSymbol(text$3,main$1,textord,"–","\\textendash"),defineSymbol(text$3,main$1,textord,"—","---",!0),defineSymbol(text$3,main$1,textord,"—","\\textemdash"),defineSymbol(text$3,main$1,textord,"‘","`",!0),defineSymbol(text$3,main$1,textord,"‘","\\textquoteleft"),defineSymbol(text$3,main$1,textord,"’","'",!0),defineSymbol(text$3,main$1,textord,"’","\\textquoteright"),defineSymbol(text$3,main$1,textord,"“","``",!0),defineSymbol(text$3,main$1,textord,"“","\\textquotedblleft"),defineSymbol(text$3,main$1,textord,"”","''",!0),defineSymbol(text$3,main$1,textord,"”","\\textquotedblright"),defineSymbol(math$1,main$1,textord,"°","\\degree",!0),defineSymbol(text$3,main$1,textord,"°","\\degree"),defineSymbol(text$3,main$1,textord,"°","\\textdegree",!0),defineSymbol(math$1,main$1,textord,"£","\\pounds"),defineSymbol(math$1,main$1,textord,"£","\\mathsterling",!0),defineSymbol(text$3,main$1,textord,"£","\\pounds"),defineSymbol(text$3,main$1,textord,"£","\\textsterling",!0),defineSymbol(math$1,ams,textord,"✠","\\maltese"),defineSymbol(text$3,ams,textord,"✠","\\maltese");for(var mathTextSymbols='0123456789/@."',i$1=0;i$1<mathTextSymbols.length;i$1++){var ch=mathTextSymbols.charAt(i$1);defineSymbol(math$1,main$1,textord,ch,ch)}for(var textSymbols='0123456789!@*()-=+";:?/.,',_i=0;_i<textSymbols.length;_i++){var _ch=textSymbols.charAt(_i);defineSymbol(text$3,main$1,textord,_ch,_ch)}for(var letters="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",_i2=0;_i2<letters.length;_i2++){var _ch2=letters.charAt(_i2);defineSymbol(math$1,main$1,mathord,_ch2,_ch2),defineSymbol(text$3,main$1,textord,_ch2,_ch2)}defineSymbol(math$1,ams,textord,"C","ℂ"),defineSymbol(text$3,ams,textord,"C","ℂ"),defineSymbol(math$1,ams,textord,"H","ℍ"),defineSymbol(text$3,ams,textord,"H","ℍ"),defineSymbol(math$1,ams,textord,"N","ℕ"),defineSymbol(text$3,ams,textord,"N","ℕ"),defineSymbol(math$1,ams,textord,"P","ℙ"),defineSymbol(text$3,ams,textord,"P","ℙ"),defineSymbol(math$1,ams,textord,"Q","ℚ"),defineSymbol(text$3,ams,textord,"Q","ℚ"),defineSymbol(math$1,ams,textord,"R","ℝ"),defineSymbol(text$3,ams,textord,"R","ℝ"),defineSymbol(math$1,ams,textord,"Z","ℤ"),defineSymbol(text$3,ams,textord,"Z","ℤ"),defineSymbol(math$1,main$1,mathord,"h","ℎ"),defineSymbol(text$3,main$1,mathord,"h","ℎ");for(var wideChar="",_i3=0;_i3<letters.length;_i3++){var _ch3=letters.charAt(_i3);wideChar=String.fromCharCode(55349,56320+_i3),defineSymbol(math$1,main$1,mathord,_ch3,wideChar),defineSymbol(text$3,main$1,textord,_ch3,wideChar),wideChar=String.fromCharCode(55349,56372+_i3),defineSymbol(math$1,main$1,mathord,_ch3,wideChar),defineSymbol(text$3,main$1,textord,_ch3,wideChar),wideChar=String.fromCharCode(55349,56424+_i3),defineSymbol(math$1,main$1,mathord,_ch3,wideChar),defineSymbol(text$3,main$1,textord,_ch3,wideChar),wideChar=String.fromCharCode(55349,56580+_i3),defineSymbol(math$1,main$1,mathord,_ch3,wideChar),defineSymbol(text$3,main$1,textord,_ch3,wideChar),wideChar=String.fromCharCode(55349,56684+_i3),defineSymbol(math$1,main$1,mathord,_ch3,wideChar),defineSymbol(text$3,main$1,textord,_ch3,wideChar),wideChar=String.fromCharCode(55349,56736+_i3),defineSymbol(math$1,main$1,mathord,_ch3,wideChar),defineSymbol(text$3,main$1,textord,_ch3,wideChar),wideChar=String.fromCharCode(55349,56788+_i3),defineSymbol(math$1,main$1,mathord,_ch3,wideChar),defineSymbol(text$3,main$1,textord,_ch3,wideChar),wideChar=String.fromCharCode(55349,56840+_i3),defineSymbol(math$1,main$1,mathord,_ch3,wideChar),defineSymbol(text$3,main$1,textord,_ch3,wideChar),wideChar=String.fromCharCode(55349,56944+_i3),defineSymbol(math$1,main$1,mathord,_ch3,wideChar),defineSymbol(text$3,main$1,textord,_ch3,wideChar),_i3<26&&(wideChar=String.fromCharCode(55349,56632+_i3),defineSymbol(math$1,main$1,mathord,_ch3,wideChar),defineSymbol(text$3,main$1,textord,_ch3,wideChar),wideChar=String.fromCharCode(55349,56476+_i3),defineSymbol(math$1,main$1,mathord,_ch3,wideChar),defineSymbol(text$3,main$1,textord,_ch3,wideChar))}wideChar="𝕜",defineSymbol(math$1,main$1,mathord,"k",wideChar),defineSymbol(text$3,main$1,textord,"k",wideChar);for(var _i4=0;_i4<10;_i4++){var _ch4=_i4.toString();wideChar=String.fromCharCode(55349,57294+_i4),defineSymbol(math$1,main$1,mathord,_ch4,wideChar),defineSymbol(text$3,main$1,textord,_ch4,wideChar),wideChar=String.fromCharCode(55349,57314+_i4),defineSymbol(math$1,main$1,mathord,_ch4,wideChar),defineSymbol(text$3,main$1,textord,_ch4,wideChar),wideChar=String.fromCharCode(55349,57324+_i4),defineSymbol(math$1,main$1,mathord,_ch4,wideChar),defineSymbol(text$3,main$1,textord,_ch4,wideChar),wideChar=String.fromCharCode(55349,57334+_i4),defineSymbol(math$1,main$1,mathord,_ch4,wideChar),defineSymbol(text$3,main$1,textord,_ch4,wideChar)}for(var extraLatin="ÐÞþ",_i5=0;_i5<extraLatin.length;_i5++){var _ch5=extraLatin.charAt(_i5);defineSymbol(math$1,main$1,mathord,_ch5,_ch5),defineSymbol(text$3,main$1,textord,_ch5,_ch5)}var wideLatinLetterData=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],wideNumeralData=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],wideCharacterFont=function(e,t){var n=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,r="math"===t?0:1;if(119808<=n&&n<120484){var i=Math.floor((n-119808)/26);return[wideLatinLetterData[i][2],wideLatinLetterData[i][r]]}if(120782<=n&&n<=120831){var a=Math.floor((n-120782)/10);return[wideNumeralData[a][2],wideNumeralData[a][r]]}if(120485===n||120486===n)return[wideLatinLetterData[0][2],wideLatinLetterData[0][r]];if(120486<n&&n<120782)return["",""];throw new ParseError("Unsupported character: "+e)},lookupSymbol=function(e,t,n){return symbols[n][e]&&symbols[n][e].replace&&(e=symbols[n][e].replace),{value:e,metrics:getCharacterMetrics(e,t,n)}},makeSymbol=function(e,t,n,r,i){var a,o=lookupSymbol(e,t,n),s=o.metrics;if(e=o.value,s){var l=s.italic;("text"===n||r&&"mathit"===r.font)&&(l=0),a=new SymbolNode(e,s.height,s.depth,l,s.skew,s.width,i)}else typeof console<"u"&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+n+"'"),a=new SymbolNode(e,0,0,0,0,0,i);if(r){a.maxFontSize=r.sizeMultiplier,r.style.isTight()&&a.classes.push("mtight");var c=r.getColor();c&&(a.style.color=c)}return a},mathsym=function(e,t,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&lookupSymbol(e,"Main-Bold",t).metrics?makeSymbol(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===symbols[t][e].font?makeSymbol(e,"Main-Regular",t,n,r):makeSymbol(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},boldsymbol=function(e,t,n,r,i){return"textord"!==i&&lookupSymbol(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},makeOrd=function(e,t,n){var r=e.mode,i=e.text,a=["mord"],o="math"===r||"text"===r&&t.font,s=o?t.font:t.fontFamily,l="",c="";if(55349===i.charCodeAt(0)&&([l,c]=wideCharacterFont(i,r)),l.length>0)return makeSymbol(i,l,r,t,a.concat(c));if(s){var u,d;if("boldsymbol"===s){var m=boldsymbol(i,r,t,a,n);u=m.fontName,d=[m.fontClass]}else o?(u=fontMap[s].fontName,d=[s]):(u=retrieveTextFontName(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(lookupSymbol(i,u,r).metrics)return makeSymbol(i,u,r,t,a.concat(d));if(ligatures.hasOwnProperty(i)&&"Typewriter"===u.slice(0,10)){for(var h=[],p=0;p<i.length;p++)h.push(makeSymbol(i[p],u,r,t,a.concat(d)));return makeFragment(h)}}if("mathord"===n)return makeSymbol(i,"Math-Italic",r,t,a.concat(["mathnormal"]));if("textord"===n){var f=symbols[r][i]&&symbols[r][i].font;if("ams"===f){var g=retrieveTextFontName("amsrm",t.fontWeight,t.fontShape);return makeSymbol(i,g,r,t,a.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==f&&f){var _=retrieveTextFontName(f,t.fontWeight,t.fontShape);return makeSymbol(i,_,r,t,a.concat(_,t.fontWeight,t.fontShape))}var b=retrieveTextFontName("textrm",t.fontWeight,t.fontShape);return makeSymbol(i,b,r,t,a.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+n+" in makeOrd")},canCombine=(e,t)=>{if(createClass(e.classes)!==createClass(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var n=e.classes[0];if("mbin"===n||"mord"===n)return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},tryCombineChars=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof SymbolNode&&r instanceof SymbolNode&&canCombine(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},sizeElementFromChildren=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},makeSpan$2=function(e,t,n,r){var i=new Span(e,t,n,r);return sizeElementFromChildren(i),i},makeSvgSpan=(e,t,n,r)=>new Span(e,t,n,r),makeLineSpan=function(e,t,n){var r=makeSpan$2([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=makeEm(r.height),r.maxFontSize=1,r},makeAnchor=function(e,t,n,r){var i=new Anchor(e,t,n,r);return sizeElementFromChildren(i),i},makeFragment=function(e){var t=new DocumentFragment(e);return sizeElementFromChildren(t),t},wrapFragment=function(e,t){return e instanceof DocumentFragment?makeSpan$2([],[e],t):e},getVListChildrenAndDepth=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:"kern",size:s}),n.push(t[a])}return{children:n,depth:r}}var l;if("top"===e.positionType){for(var c=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];c-="kern"===d.type?d.size:d.elem.height+d.elem.depth}l=c}else if("bottom"===e.positionType)l=-e.positionData;else{var m=e.children[0];if("elem"!==m.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-m.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-m.elem.depth}}return{children:e.children,depth:l}},makeVList=function(e,t){for(var{children:n,depth:r}=getVListChildrenAndDepth(e),i=0,a=0;a<n.length;a++){var o=n[a];if("elem"===o.type){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var l=makeSpan$2(["pstrut"],[]);l.style.height=makeEm(i);for(var c=[],u=r,d=r,m=r,h=0;h<n.length;h++){var p=n[h];if("kern"===p.type)m+=p.size;else{var f=p.elem,g=p.wrapperClasses||[],_=p.wrapperStyle||{},b=makeSpan$2(g,[l,f],void 0,_);b.style.top=makeEm(-i-m-f.depth),p.marginLeft&&(b.style.marginLeft=p.marginLeft),p.marginRight&&(b.style.marginRight=p.marginRight),c.push(b),m+=f.height+f.depth}u=Math.min(u,m),d=Math.max(d,m)}var x,E=makeSpan$2(["vlist"],c);if(E.style.height=makeEm(d),u<0){var y=makeSpan$2([],[]),T=makeSpan$2(["vlist"],[y]);T.style.height=makeEm(-u);var v=makeSpan$2(["vlist-s"],[new SymbolNode("")]);x=[makeSpan$2(["vlist-r"],[E,v]),makeSpan$2(["vlist-r"],[T])]}else x=[makeSpan$2(["vlist-r"],[E])];var S=makeSpan$2(["vlist-t"],x);return 2===x.length&&S.classes.push("vlist-t2"),S.height=d,S.depth=-u,S},makeGlue=(e,t)=>{var n=makeSpan$2(["mspace"],[],t),r=calculateSize(e,t);return n.style.marginRight=makeEm(r),n},retrieveTextFontName=function(e,t,n){var r="";switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return r+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},fontMap={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},svgData={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},staticSvg=function(e,t){var[n,r,i]=svgData[e],a=new PathNode(n),o=new SvgNode([a],{width:makeEm(r),height:makeEm(i),style:"width:"+makeEm(r),viewBox:"0 0 "+1e3*r+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),s=makeSvgSpan(["overlay"],[o],t);return s.height=i,s.style.height=makeEm(i),s.style.width=makeEm(r),s},buildCommon={fontMap,makeSymbol,mathsym,makeSpan:makeSpan$2,makeSvgSpan,makeLineSpan,makeAnchor,makeFragment,wrapFragment,makeVList,makeOrd,makeGlue,staticSvg,svgData,tryCombineChars},thinspace={number:3,unit:"mu"},mediumspace={number:4,unit:"mu"},thickspace={number:5,unit:"mu"},spacings={mord:{mop:thinspace,mbin:mediumspace,mrel:thickspace,minner:thinspace},mop:{mord:thinspace,mop:thinspace,mrel:thickspace,minner:thinspace},mbin:{mord:mediumspace,mop:mediumspace,mopen:mediumspace,minner:mediumspace},mrel:{mord:thickspace,mop:thickspace,mopen:thickspace,minner:thickspace},mopen:{},mclose:{mop:thinspace,mbin:mediumspace,mrel:thickspace,minner:thinspace},mpunct:{mord:thinspace,mop:thinspace,mrel:thickspace,mopen:thinspace,mclose:thinspace,mpunct:thinspace,minner:thinspace},minner:{mord:thinspace,mop:thinspace,mbin:mediumspace,mrel:thickspace,mopen:thinspace,mpunct:thinspace,minner:thinspace}},tightSpacings={mord:{mop:thinspace},mop:{mord:thinspace,mop:thinspace},mbin:{},mrel:{},mopen:{},mclose:{mop:thinspace},mpunct:{},minner:{mop:thinspace}},_functions={},_htmlGroupBuilders={},_mathmlGroupBuilders={};function defineFunction(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l<n.length;++l)_functions[n[l]]=s;t&&(a&&(_htmlGroupBuilders[t]=a),o&&(_mathmlGroupBuilders[t]=o))}function defineFunctionBuilders(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;defineFunction({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var normalizeArgument=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},ordargument=function(e){return"ordgroup"===e.type?e.body:[e]},makeSpan$1=buildCommon.makeSpan,binLeftCanceller=["leftmost","mbin","mopen","mrel","mop","mpunct"],binRightCanceller=["rightmost","mrel","mclose","mpunct"],styleMap$1={display:Style$1.DISPLAY,text:Style$1.TEXT,script:Style$1.SCRIPT,scriptscript:Style$1.SCRIPTSCRIPT},DomEnum={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},buildExpression$1=function(e,t,n,r){void 0===r&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=buildGroup$1(e[a],t);if(o instanceof DocumentFragment){var s=o.children;i.push(...s)}else i.push(o)}if(buildCommon.tryCombineChars(i),!n)return i;var l=t;if(1===e.length){var c=e[0];"sizing"===c.type?l=t.havingSize(c.size):"styling"===c.type&&(l=t.havingStyle(styleMap$1[c.style]))}var u=makeSpan$1([r[0]||"leftmost"],[],t),d=makeSpan$1([r[1]||"rightmost"],[],t),m="root"===n;return traverseNonSpaceNodes(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];"mbin"===n&&binRightCanceller.includes(r)?t.classes[0]="mord":"mbin"===r&&binLeftCanceller.includes(n)&&(e.classes[0]="mord")},{node:u},d,m),traverseNonSpaceNodes(i,(e,t)=>{var n=getTypeOfDomTree(t),r=getTypeOfDomTree(e),i=n&&r?e.hasClass("mtight")?tightSpacings[n][r]:spacings[n][r]:null;if(i)return buildCommon.makeGlue(i,l)},{node:u},d,m),i},traverseNonSpaceNodes=function e(t,n,r,i,a){i&&t.push(i);for(var o=0;o<t.length;o++){var s=t[o],l=checkPartialGroup(s);if(l)e(l.children,n,r,null,a);else{var c=!s.hasClass("mspace");if(c){var u=n(s,r.node);u&&(r.insertAfter?r.insertAfter(u):(t.unshift(u),o++))}c?r.node=s:a&&s.hasClass("newline")&&(r.node=makeSpan$1(["leftmost"])),r.insertAfter=(e=>n=>{t.splice(e+1,0,n),o++})(o)}}i&&t.pop()},checkPartialGroup=function(e){return e instanceof DocumentFragment||e instanceof Anchor||e instanceof Span&&e.hasClass("enclosing")?e:null},getOutermostNode=function e(t,n){var r=checkPartialGroup(t);if(r){var i=r.children;if(i.length){if("right"===n)return e(i[i.length-1],"right");if("left"===n)return e(i[0],"left")}}return t},getTypeOfDomTree=function(e,t){return e?(t&&(e=getOutermostNode(e,t)),DomEnum[e.classes[0]]||null):null},makeNullDelimiter=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return makeSpan$1(t.concat(n))},buildGroup$1=function(e,t,n){if(!e)return makeSpan$1();if(_htmlGroupBuilders[e.type]){var r=_htmlGroupBuilders[e.type](e,t);if(n&&t.size!==n.size){r=makeSpan$1(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new ParseError("Got group of unknown type: '"+e.type+"'")};function buildHTMLUnbreakable(e,t){var n=makeSpan$1(["base"],e,t),r=makeSpan$1(["strut"]);return r.style.height=makeEm(n.height+n.depth),n.depth&&(r.style.verticalAlign=makeEm(-n.depth)),n.children.unshift(r),n}function buildHTML(e,t){var n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);var r,i,a=buildExpression$1(e,t,"root");2===a.length&&a[1].hasClass("tag")&&(r=a.pop());for(var o=[],s=[],l=0;l<a.length;l++)if(s.push(a[l]),a[l].hasClass("mbin")||a[l].hasClass("mrel")||a[l].hasClass("allowbreak")){for(var c=!1;l<a.length-1&&a[l+1].hasClass("mspace")&&!a[l+1].hasClass("newline");)l++,s.push(a[l]),a[l].hasClass("nobreak")&&(c=!0);c||(o.push(buildHTMLUnbreakable(s,t)),s=[])}else a[l].hasClass("newline")&&(s.pop(),s.length>0&&(o.push(buildHTMLUnbreakable(s,t)),s=[]),o.push(a[l]));s.length>0&&o.push(buildHTMLUnbreakable(s,t)),n?((i=buildHTMLUnbreakable(buildExpression$1(n,t,!0))).classes=["tag"],o.push(i)):r&&o.push(r);var u=makeSpan$1(["katex-html"],o);if(u.setAttribute("aria-hidden","true"),i){var d=i.children[0];d.style.height=makeEm(u.height+u.depth),u.depth&&(d.style.verticalAlign=makeEm(-u.depth))}return u}function newDocumentFragment(e){return new DocumentFragment(e)}class MathNode{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=createClass(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof TextNode&&this.children[n+1]instanceof TextNode){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof TextNode;)r+=this.children[++n].toText();e.appendChild(new TextNode(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=utils.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+utils.escape(createClass(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+"</"+this.type+">"}toText(){return this.children.map(e=>e.toText()).join("")}}class TextNode{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return utils.escape(this.toText())}toText(){return this.text}}class SpaceNode{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?" ":e>=-.05556&&e<=-.05555?" ":e>=-.1667&&e<=-.1666?" ":e>=-.2223&&e<=-.2222?" ":e>=-.2778&&e<=-.2777?" ":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",makeEm(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+makeEm(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var mathMLTree={MathNode,TextNode,SpaceNode,newDocumentFragment},makeText=function(e,t,n){return symbols[t][e]&&symbols[t][e].replace&&55349!==e.charCodeAt(0)&&!(ligatures.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.slice(4,6)||n.font&&"tt"===n.font.slice(4,6)))&&(e=symbols[t][e].replace),new mathMLTree.TextNode(e)},makeRow=function(e){return 1===e.length?e[0]:new mathMLTree.MathNode("mrow",e)},getVariant=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathsfit"===n)return"sans-serif-italic";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var i=e.text;return["\\imath","\\jmath"].includes(i)?null:(symbols[r][i]&&symbols[r][i].replace&&(i=symbols[r][i].replace),getCharacterMetrics(i,buildCommon.fontMap[n].fontName,r)?buildCommon.fontMap[n].variant:null)};function isNumberPunctuation(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof TextNode&&"."===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){var n=e.children[0];return n instanceof TextNode&&","===n.text}return!1}var buildExpression=function(e,t,n){if(1===e.length){var r=buildGroup(e[0],t);return n&&r instanceof MathNode&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var i,a=[],o=0;o<e.length;o++){var s=buildGroup(e[o],t);if(s instanceof MathNode&&i instanceof MathNode){if("mtext"===s.type&&"mtext"===i.type&&s.getAttribute("mathvariant")===i.getAttribute("mathvariant")){i.children.push(...s.children);continue}if("mn"===s.type&&"mn"===i.type){i.children.push(...s.children);continue}if(isNumberPunctuation(s)&&"mn"===i.type){i.children.push(...s.children);continue}if("mn"===s.type&&isNumberPunctuation(i))s.children=[...i.children,...s.children],a.pop();else if(("msup"===s.type||"msub"===s.type)&&s.children.length>=1&&("mn"===i.type||isNumberPunctuation(i))){var l=s.children[0];l instanceof MathNode&&"mn"===l.type&&(l.children=[...i.children,...l.children],a.pop())}else if("mi"===i.type&&1===i.children.length){var c=i.children[0];if(c instanceof TextNode&&"̸"===c.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var u=s.children[0];u instanceof TextNode&&u.text.length>0&&(u.text=u.text.slice(0,1)+"̸"+u.text.slice(1),a.pop())}}}a.push(s),i=s}return a},buildExpressionRow=function(e,t,n){return makeRow(buildExpression(e,t,n))},buildGroup=function(e,t){if(!e)return new mathMLTree.MathNode("mrow");if(_mathmlGroupBuilders[e.type])return _mathmlGroupBuilders[e.type](e,t);throw new ParseError("Got group of unknown type: '"+e.type+"'")};function buildMathML(e,t,n,r,i){var a,o=buildExpression(e,n);a=1===o.length&&o[0]instanceof MathNode&&["mrow","mtable"].includes(o[0].type)?o[0]:new mathMLTree.MathNode("mrow",o);var s=new mathMLTree.MathNode("annotation",[new mathMLTree.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new mathMLTree.MathNode("semantics",[a,s]),c=new mathMLTree.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var u=i?"katex":"katex-mathml";return buildCommon.makeSpan([u],[c])}var optionsFromSettings=function(e){return new Options({style:e.displayMode?Style$1.DISPLAY:Style$1.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},displayWrap=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=buildCommon.makeSpan(n,[e])}return e},buildTree=function(e,t,n){var r,i=optionsFromSettings(n);if("mathml"===n.output)return buildMathML(e,t,i,n.displayMode,!0);if("html"===n.output){var a=buildHTML(e,i);r=buildCommon.makeSpan(["katex"],[a])}else{var o=buildMathML(e,t,i,n.displayMode,!1),s=buildHTML(e,i);r=buildCommon.makeSpan(["katex"],[o,s])}return displayWrap(r,n)},buildHTMLTree=function(e,t,n){var r=buildHTML(e,optionsFromSettings(n)),i=buildCommon.makeSpan(["katex"],[r]);return displayWrap(i,n)},stretchyCodePoint={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},mathMLnode=function(e){var t=new mathMLTree.MathNode("mo",[new mathMLTree.TextNode(stretchyCodePoint[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},katexImagesData={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},groupLength=function(e){return"ordgroup"===e.type?e.body.length:1},svgSpan=function(e,t){var{span:n,minWidth:r,height:i}=function(){var n=4e5,r=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(r)){var i,a,o,s=groupLength(e.base);if(s>5)"widehat"===r||"widecheck"===r?(i=420,n=2364,o=.42,a=r+"4"):(i=312,n=2340,o=.34,a="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][l],i=[0,239,300,360,420][l],o=[0,.24,.3,.3,.36,.42][l],a=r+l):(n=[0,600,1033,2339,2340][l],i=[0,260,286,306,312][l],o=[0,.26,.286,.3,.306,.34][l],a="tilde"+l)}var c=new PathNode(a),u=new SvgNode([c],{width:"100%",height:makeEm(o),viewBox:"0 0 "+n+" "+i,preserveAspectRatio:"none"});return{span:buildCommon.makeSvgSpan([],[u],t),minWidth:0,height:o}}var d,m,h=[],p=katexImagesData[r],[f,g,_]=p,b=_/1e3,x=f.length;if(1===x)d=["hide-tail"],m=[p[3]];else if(2===x)d=["halfarrow-left","halfarrow-right"],m=["xMinYMin","xMaxYMin"];else{if(3!==x)throw new Error("Correct katexImagesData or update code here to support\n "+x+" children.");d=["brace-left","brace-center","brace-right"],m=["xMinYMin","xMidYMin","xMaxYMin"]}for(var E=0;E<x;E++){var y=new PathNode(f[E]),T=new SvgNode([y],{width:"400em",height:makeEm(b),viewBox:"0 0 "+n+" "+_,preserveAspectRatio:m[E]+" slice"}),v=buildCommon.makeSvgSpan([d[E]],[T],t);if(1===x)return{span:v,minWidth:g,height:b};v.style.height=makeEm(b),h.push(v)}return{span:buildCommon.makeSpan(["stretchy"],h,t),minWidth:g,height:b}}();return n.height=i,n.style.height=makeEm(i),r>0&&(n.style.minWidth=makeEm(r)),n},encloseSpan=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=buildCommon.makeSpan(["stretchy",t],[],i),"fbox"===t){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new LineNode({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new LineNode({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new SvgNode(l,{width:"100%",height:makeEm(o)});a=buildCommon.makeSvgSpan([],[c],i)}return a.height=o,a.style.height=makeEm(o),a},stretchy={encloseSpan,mathMLnode,svgSpan};function assertNodeType(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function assertSymbolNodeType(e){var t=checkSymbolNodeType(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function checkSymbolNodeType(e){return e&&("atom"===e.type||NON_ATOMS.hasOwnProperty(e.type))?e:null}var htmlBuilder$a=(e,t)=>{var n,r,i;e&&"supsub"===e.type?(n=(r=assertNodeType(e.base,"accent")).base,e.base=n,i=assertSpan(buildGroup$1(e,t)),e.base=r):n=(r=assertNodeType(e,"accent")).base;var a=buildGroup$1(n,t.havingCrampedStyle()),o=0;if(r.isShifty&&utils.isCharacterBox(n)){var s=utils.getBaseElem(n);o=assertSymbolDomNode(buildGroup$1(s,t.havingCrampedStyle())).skew}var l,c="\\c"===r.label,u=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight);if(r.isStretchy)l=stretchy.svgSpan(r,t),l=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:l,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+makeEm(2*o)+")",marginLeft:makeEm(2*o)}:void 0}]},t);else{var d,m;"\\vec"===r.label?(d=buildCommon.staticSvg("vec",t),m=buildCommon.svgData.vec[1]):((d=assertSymbolDomNode(d=buildCommon.makeOrd({mode:r.mode,text:r.label},t,"textord"))).italic=0,m=d.width,c&&(u+=d.depth)),l=buildCommon.makeSpan(["accent-body"],[d]);var h="\\textcircled"===r.label;h&&(l.classes.push("accent-full"),u=a.height);var p=o;h||(p-=m/2),l.style.left=makeEm(p),"\\textcircled"===r.label&&(l.style.top=".2em"),l=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-u},{type:"elem",elem:l}]},t)}var f=buildCommon.makeSpan(["mord","accent"],[l],t);return i?(i.children[0]=f,i.height=Math.max(f.height,i.height),i.classes[0]="mord",i):f},mathmlBuilder$9=(e,t)=>{var n=e.isStretchy?stretchy.mathMLnode(e.label):new mathMLTree.MathNode("mo",[makeText(e.label,e.mode)]),r=new mathMLTree.MathNode("mover",[buildGroup(e.base,t),n]);return r.setAttribute("accent","true"),r},NON_STRETCHY_ACCENT_REGEX=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));defineFunction({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=normalizeArgument(t[0]),r=!NON_STRETCHY_ACCENT_REGEX.test(e.funcName),i=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:htmlBuilder$a,mathmlBuilder:mathmlBuilder$9}),defineFunction({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return"math"===r&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:htmlBuilder$a,mathmlBuilder:mathmlBuilder$9}),defineFunction({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=buildGroup$1(e.base,t),r=stretchy.svgSpan(e,t),i="\\utilde"===e.label?.12:0,a=buildCommon.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return buildCommon.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=stretchy.mathMLnode(e.label),r=new mathMLTree.MathNode("munder",[buildGroup(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var paddedNode=e=>{var t=new mathMLTree.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};defineFunction({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n,r=t.style,i=t.havingStyle(r.sup()),a=buildCommon.wrapFragment(buildGroup$1(e.body,i,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";a.classes.push(o+"-arrow-pad"),e.below&&(i=t.havingStyle(r.sub()),(n=buildCommon.wrapFragment(buildGroup$1(e.below,i,t),t)).classes.push(o+"-arrow-pad"));var s,l=stretchy.svgSpan(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;if((a.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=a.depth),n){var d=-t.fontMetrics().axisHeight+n.height+.5*l.height+.111;s=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:l,shift:c},{type:"elem",elem:n,shift:d}]},t)}else s=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:l,shift:c}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),buildCommon.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var n,r=stretchy.mathMLnode(e.label);if(r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var i=paddedNode(buildGroup(e.body,t));if(e.below){var a=paddedNode(buildGroup(e.below,t));n=new mathMLTree.MathNode("munderover",[r,a,i])}else n=new mathMLTree.MathNode("mover",[r,i])}else if(e.below){var o=paddedNode(buildGroup(e.below,t));n=new mathMLTree.MathNode("munder",[r,o])}else n=paddedNode(),n=new mathMLTree.MathNode("mover",[r,n]);return n}});var makeSpan=buildCommon.makeSpan;function htmlBuilder$9(e,t){var n=buildExpression$1(e.body,t,!0);return makeSpan([e.mclass],n,t)}function mathmlBuilder$8(e,t){var n,r=buildExpression(e.body,t);return"minner"===e.mclass?n=new mathMLTree.MathNode("mpadded",r):"mord"===e.mclass?e.isCharacterBox?(n=r[0]).type="mi":n=new mathMLTree.MathNode("mi",r):(e.isCharacterBox?(n=r[0]).type="mo":n=new mathMLTree.MathNode("mo",r),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0em"):"minner"===e.mclass&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}defineFunction({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:ordargument(i),isCharacterBox:utils.isCharacterBox(i)}},htmlBuilder:htmlBuilder$9,mathmlBuilder:mathmlBuilder$8});var binrelClass=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};defineFunction({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:binrelClass(t[0]),body:ordargument(t[1]),isCharacterBox:utils.isCharacterBox(t[1])}}}),defineFunction({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var n,{parser:r,funcName:i}=e,a=t[1],o=t[0];n="\\stackrel"!==i?binrelClass(a):"mrel";var s={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:ordargument(a)},l={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===i?null:o,sub:"\\underset"===i?o:null};return{type:"mclass",mode:r.mode,mclass:n,body:[l],isCharacterBox:utils.isCharacterBox(l)}},htmlBuilder:htmlBuilder$9,mathmlBuilder:mathmlBuilder$8}),defineFunction({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:binrelClass(t[0]),body:ordargument(t[0])}},htmlBuilder(e,t){var n=buildExpression$1(e.body,t,!0),r=buildCommon.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=buildExpression(e.body,t),r=new mathMLTree.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var cdArrowFunctionName={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},newCell=()=>({type:"styling",body:[],mode:"math",style:"display"}),isStartOfArrow=e=>"textord"===e.type&&"@"===e.text,isLabelEnd=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function cdArrow(e,t,n){var r=cdArrowFunctionName[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var i={type:"atom",text:r,mode:"math",family:"rel"},a={type:"ordgroup",mode:"math",body:[n.callFunction("\\\\cdleft",[t[0]],[]),n.callFunction("\\Big",[i],[]),n.callFunction("\\\\cdright",[t[1]],[])]};return n.callFunction("\\\\cdparent",[a],[]);case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return n.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}function parseCD(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if("&"!==n&&"\\\\"!==n){if("\\end"===n){0===t[t.length-1].length&&t.pop();break}throw new ParseError("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=newCell(),l=0;l<o.length;l++)if(isStartOfArrow(o[l])){r.push(s);var c=assertSymbolNodeType(o[l+=1]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(c)>-1)){if(!("<>AV".indexOf(c)>-1))throw new ParseError('Expected one of "<>AV=|." after @',o[l]);for(var d=0;d<2;d++){for(var m=!0,h=l+1;h<o.length;h++){if(isLabelEnd(o[h],c)){m=!1,l=h;break}if(isStartOfArrow(o[h]))throw new ParseError("Missing a "+c+" character to complete a CD arrow.",o[h]);u[d].body.push(o[h])}if(m)throw new ParseError("Missing a "+c+" character to complete a CD arrow.",o[l])}}var p={type:"styling",body:[cdArrow(c,u,e)],mode:"math",style:"display"};r.push(p),s=newCell()}else s.body.push(o[l]);a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}defineFunction({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=buildCommon.wrapFragment(buildGroup$1(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=makeEm(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new mathMLTree.MathNode("mrow",[buildGroup(e.label,t)]);return(n=new mathMLTree.MathNode("mpadded",[n])).setAttribute("width","0"),"left"===e.side&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),(n=new mathMLTree.MathNode("mstyle",[n])).setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),defineFunction({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=buildCommon.wrapFragment(buildGroup$1(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder:(e,t)=>new mathMLTree.MathNode("mrow",[buildGroup(e.fragment,t)])}),defineFunction({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=assertNodeType(t[0],"ordgroup").body,i="",a=0;a<r.length;a++)i+=assertNodeType(r[a],"textord").text;var o,s=parseInt(i);if(isNaN(s))throw new ParseError("\\@char has non-numeric argument "+i);if(s<0||s>=1114111)throw new ParseError("\\@char with invalid code point "+i);return s<=65535?o=String.fromCharCode(s):(s-=65536,o=String.fromCharCode(55296+(s>>10),56320+(1023&s))),{type:"textord",mode:n.mode,text:o}}});var htmlBuilder$8=(e,t)=>{var n=buildExpression$1(e.body,t.withColor(e.color),!1);return buildCommon.makeFragment(n)},mathmlBuilder$7=(e,t)=>{var n=buildExpression(e.body,t.withColor(e.color)),r=new mathMLTree.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};defineFunction({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=assertNodeType(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:ordargument(i)}},htmlBuilder:htmlBuilder$8,mathmlBuilder:mathmlBuilder$7}),defineFunction({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=assertNodeType(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:htmlBuilder$8,mathmlBuilder:mathmlBuilder$7}),defineFunction({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i="["===r.gullet.future().text?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&assertNodeType(i,"size").value}},htmlBuilder(e,t){var n=buildCommon.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=makeEm(calculateSize(e.size,t)))),n},mathmlBuilder(e,t){var n=new mathMLTree.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",makeEm(calculateSize(e.size,t)))),n}});var globalMap={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},checkControlSequence=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new ParseError("Expected a control sequence",e);return t},getRHS=e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t},letCommand=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);null==i&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};defineFunction({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(globalMap[r.text])return("\\global"===n||"\\\\globallong"===n)&&(r.text=globalMap[r.text]),assertNodeType(t.parseFunction(),"internal");throw new ParseError("Invalid token after macro prefix",r)}}),defineFunction({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new ParseError("Expected a control sequence",r);for(var a,o=0,s=[[]];"{"!==t.gullet.future().text;)if("#"===(r=t.gullet.popToken()).text){if("{"===t.gullet.future().text){a=t.gullet.future(),s[o].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new ParseError('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==o+1)throw new ParseError('Argument number "'+r.text+'" out of order');o++,s.push([])}else{if("EOF"===r.text)throw new ParseError("Expected a macro definition");s[o].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return a&&l.unshift(a),("\\edef"===n||"\\xdef"===n)&&(l=t.gullet.expandTokens(l)).reverse(),t.gullet.macros.set(i,{tokens:l,numArgs:o,delimiters:s},n===globalMap[n]),{type:"internal",mode:t.mode}}}),defineFunction({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=checkControlSequence(t.gullet.popToken());t.gullet.consumeSpaces();var i=getRHS(t);return letCommand(t,r,i,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),defineFunction({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=checkControlSequence(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return letCommand(t,r,a,"\\\\globalfuture"===n),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var getMetrics=function(e,t,n){var r=getCharacterMetrics(symbols.math[e]&&symbols.math[e].replace||e,t,n);if(!r)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return r},styleWrap=function(e,t,n,r){var i=n.havingBaseStyle(t),a=buildCommon.makeSpan(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},centerSpan=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=makeEm(i),e.height-=i,e.depth+=i},makeSmallDelim=function(e,t,n,r,i,a){var o=buildCommon.makeSymbol(e,"Main-Regular",i,r),s=styleWrap(o,t,r,a);return n&¢erSpan(s,r,t),s},mathrmSize=function(e,t,n,r){return buildCommon.makeSymbol(e,"Size"+t+"-Regular",n,r)},makeLargeDelim=function(e,t,n,r,i,a){var o=mathrmSize(e,t,i,r),s=styleWrap(buildCommon.makeSpan(["delimsizing","size"+t],[o],r),Style$1.TEXT,r,a);return n&¢erSpan(s,r,Style$1.TEXT),s},makeGlyphSpan=function(e,t,n){var r;return r="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:buildCommon.makeSpan(["delimsizinginner",r],[buildCommon.makeSpan([],[buildCommon.makeSymbol(e,t,n)])])}},makeInner=function(e,t,n){var r=fontMetricsData["Size4-Regular"][e.charCodeAt(0)]?fontMetricsData["Size4-Regular"][e.charCodeAt(0)][4]:fontMetricsData["Size1-Regular"][e.charCodeAt(0)][4],i=new PathNode("inner",innerPath(e,Math.round(1e3*t))),a=new SvgNode([i],{width:makeEm(r),height:makeEm(t),style:"width:"+makeEm(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=buildCommon.makeSvgSpan([],[a],n);return o.height=t,o.style.height=makeEm(t),o.style.width=makeEm(r),{type:"elem",elem:o}},lapInEms=.008,lap={type:"kern",size:-1*lapInEms},verts=["|","\\lvert","\\rvert","\\vert"],doubleVerts=["\\|","\\lVert","\\rVert","\\Vert"],makeStackedDelim=function(e,t,n,r,i,a){var o,s,l,c,u="",d=0;o=l=c=e,s=null;var m="Size1-Regular";"\\uparrow"===e?l=c="⏐":"\\Uparrow"===e?l=c="‖":"\\downarrow"===e?o=l="⏐":"\\Downarrow"===e?o=l="‖":"\\updownarrow"===e?(o="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",l="‖",c="\\Downarrow"):verts.includes(e)?(l="∣",u="vert",d=333):doubleVerts.includes(e)?(l="∥",u="doublevert",d=556):"["===e||"\\lbrack"===e?(o="⎡",l="⎢",c="⎣",m="Size4-Regular",u="lbrack",d=667):"]"===e||"\\rbrack"===e?(o="⎤",l="⎥",c="⎦",m="Size4-Regular",u="rbrack",d=667):"\\lfloor"===e||"⌊"===e?(l=o="⎢",c="⎣",m="Size4-Regular",u="lfloor",d=667):"\\lceil"===e||"⌈"===e?(o="⎡",l=c="⎢",m="Size4-Regular",u="lceil",d=667):"\\rfloor"===e||"⌋"===e?(l=o="⎥",c="⎦",m="Size4-Regular",u="rfloor",d=667):"\\rceil"===e||"⌉"===e?(o="⎤",l=c="⎥",m="Size4-Regular",u="rceil",d=667):"("===e||"\\lparen"===e?(o="⎛",l="⎜",c="⎝",m="Size4-Regular",u="lparen",d=875):")"===e||"\\rparen"===e?(o="⎞",l="⎟",c="⎠",m="Size4-Regular",u="rparen",d=875):"\\{"===e||"\\lbrace"===e?(o="⎧",s="⎨",c="⎩",l="⎪",m="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="⎫",s="⎬",c="⎭",l="⎪",m="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(o="⎧",c="⎩",l="⎪",m="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(o="⎫",c="⎭",l="⎪",m="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(o="⎧",c="⎭",l="⎪",m="Size4-Regular"):("\\rmoustache"===e||"⎱"===e)&&(o="⎫",c="⎩",l="⎪",m="Size4-Regular");var h=getMetrics(o,m,i),p=h.height+h.depth,f=getMetrics(l,m,i),g=f.height+f.depth,_=getMetrics(c,m,i),b=_.height+_.depth,x=0,E=1;if(null!==s){var y=getMetrics(s,m,i);x=y.height+y.depth,E=2}var T=p+b+x,v=T+Math.max(0,Math.ceil((t-T)/(E*g)))*E*g,S=r.fontMetrics().axisHeight;n&&(S*=r.sizeMultiplier);var w=v/2-S,k=[];if(u.length>0){var A=v-p-b,C=Math.round(1e3*v),I=tallDelim(u,Math.round(1e3*A)),M=new PathNode(u,I),R=(d/1e3).toFixed(3)+"em",D=(C/1e3).toFixed(3)+"em",N=new SvgNode([M],{width:R,height:D,viewBox:"0 0 "+d+" "+C}),P=buildCommon.makeSvgSpan([],[N],r);P.height=C/1e3,P.style.width=R,P.style.height=D,k.push({type:"elem",elem:P})}else{if(k.push(makeGlyphSpan(c,m,i)),k.push(lap),null===s){var O=v-p-b+2*lapInEms;k.push(makeInner(l,O,r))}else{var L=(v-p-b-x)/2+2*lapInEms;k.push(makeInner(l,L,r)),k.push(lap),k.push(makeGlyphSpan(s,m,i)),k.push(lap),k.push(makeInner(l,L,r))}k.push(lap),k.push(makeGlyphSpan(o,m,i))}var $=r.havingBaseStyle(Style$1.TEXT),B=buildCommon.makeVList({positionType:"bottom",positionData:w,children:k},$);return styleWrap(buildCommon.makeSpan(["delimsizing","mult"],[B],$),Style$1.TEXT,r,a)},vbPad=80,emPad=.08,sqrtSvg=function(e,t,n,r,i){var a=sqrtPath(e,r,n),o=new PathNode(e,a),s=new SvgNode([o],{width:"400em",height:makeEm(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return buildCommon.makeSvgSpan(["hide-tail"],[s],i)},makeSqrtImage=function(e,t){var n,r,i=t.havingBaseSizing(),a=traverseSequence("\\surd",e*i.sizeMultiplier,stackLargeDelimiterSequence,i),o=i.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===a.type?(e<1?o=1:e<1.4&&(o=.7),c=(1+s)/o,(n=sqrtSvg("sqrtMain",l=(1+s+emPad)/o,u=1e3+1e3*s+vbPad,s,t)).style.minWidth="0.853em",r=.833/o):"large"===a.type?(u=(1e3+vbPad)*sizeToMaxHeight[a.size],c=(sizeToMaxHeight[a.size]+s)/o,l=(sizeToMaxHeight[a.size]+s+emPad)/o,(n=sqrtSvg("sqrtSize"+a.size,l,u,s,t)).style.minWidth="1.02em",r=1/o):(l=e+s+emPad,c=e+s,u=Math.floor(1e3*e+s)+vbPad,(n=sqrtSvg("sqrtTall",l,u,s,t)).style.minWidth="0.742em",r=1.056),n.height=c,n.style.height=makeEm(l),{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}},stackLargeDelimiters=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],stackAlwaysDelimiters=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],stackNeverDelimiters=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],sizeToMaxHeight=[0,1.2,1.8,2.4,3],makeSizedDelim=function(e,t,n,r,i){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle"),stackLargeDelimiters.includes(e)||stackNeverDelimiters.includes(e))return makeLargeDelim(e,t,!1,n,r,i);if(stackAlwaysDelimiters.includes(e))return makeStackedDelim(e,sizeToMaxHeight[t],!1,n,r,i);throw new ParseError("Illegal delimiter: '"+e+"'")},stackNeverDelimiterSequence=[{type:"small",style:Style$1.SCRIPTSCRIPT},{type:"small",style:Style$1.SCRIPT},{type:"small",style:Style$1.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],stackAlwaysDelimiterSequence=[{type:"small",style:Style$1.SCRIPTSCRIPT},{type:"small",style:Style$1.SCRIPT},{type:"small",style:Style$1.TEXT},{type:"stack"}],stackLargeDelimiterSequence=[{type:"small",style:Style$1.SCRIPTSCRIPT},{type:"small",style:Style$1.SCRIPT},{type:"small",style:Style$1.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],delimTypeToFont=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},traverseSequence=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length&&"stack"!==n[i].type;i++){var a=getMetrics(e,delimTypeToFont(n[i]),"math"),o=a.height+a.depth;if("small"===n[i].type&&(o*=r.havingBaseStyle(n[i].style).sizeMultiplier),o>t)return n[i]}return n[n.length-1]},makeCustomSizedDelim=function(e,t,n,r,i,a){var o;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle"),o=stackNeverDelimiters.includes(e)?stackNeverDelimiterSequence:stackLargeDelimiters.includes(e)?stackLargeDelimiterSequence:stackAlwaysDelimiterSequence;var s=traverseSequence(e,t,o,r);return"small"===s.type?makeSmallDelim(e,s.style,n,r,i,a):"large"===s.type?makeLargeDelim(e,s.size,n,r,i,a):makeStackedDelim(e,t,n,r,i,a)},makeLeftRightDelim=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o),c=Math.max(l/500*901,2*l-s);return makeCustomSizedDelim(e,c,!0,r,i,a)},delimiter={sqrtImage:makeSqrtImage,sizedDelim:makeSizedDelim,sizeToMaxHeight,customSizedDelim:makeCustomSizedDelim,leftRightDelim:makeLeftRightDelim},delimiterSizes={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},delimiters=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function checkDelimiter(e,t){var n=checkSymbolNodeType(e);if(n&&delimiters.includes(n.text))return n;throw new ParseError(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function assertParsed(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}defineFunction({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=checkDelimiter(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:delimiterSizes[e.funcName].size,mclass:delimiterSizes[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>"."===e.delim?buildCommon.makeSpan([e.mclass]):delimiter.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(makeText(e.delim,e.mode));var n=new mathMLTree.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=makeEm(delimiter.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}}),defineFunction({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new ParseError("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:checkDelimiter(t[0],e).text,color:n}}}),defineFunction({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=checkDelimiter(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=assertNodeType(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{assertParsed(e);for(var n=buildExpression$1(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,o=0;o<n.length;o++)n[o].isMiddle?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i));var s,l;if(r*=t.sizeMultiplier,i*=t.sizeMultiplier,s="."===e.left?makeNullDelimiter(t,["mopen"]):delimiter.leftRightDelim(e.left,r,i,t,e.mode,["mopen"]),n.unshift(s),a)for(var c=1;c<n.length;c++){var u=n[c].isMiddle;u&&(n[c]=delimiter.leftRightDelim(u.delim,r,i,u.options,e.mode,[]))}if("."===e.right)l=makeNullDelimiter(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;l=delimiter.leftRightDelim(e.right,r,i,d,e.mode,["mclose"])}return n.push(l),buildCommon.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{assertParsed(e);var n=buildExpression(e.body,t);if("."!==e.left){var r=new mathMLTree.MathNode("mo",[makeText(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==e.right){var i=new mathMLTree.MathNode("mo",[makeText(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return makeRow(n)}}),defineFunction({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=checkDelimiter(t[0],e);if(!e.parser.leftrightDepth)throw new ParseError("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if("."===e.delim)n=makeNullDelimiter(t,[]);else{n=delimiter.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n="\\vert"===e.delim||"|"===e.delim?makeText("|","text"):makeText(e.delim,e.mode),r=new mathMLTree.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var htmlBuilder$7=(e,t)=>{var n,r,i=buildCommon.wrapFragment(buildGroup$1(e.body,t),t),a=e.label.slice(1),o=t.sizeMultiplier,s=0,l=utils.isCharacterBox(e.body);if("sout"===a)(n=buildCommon.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/o,s=-.5*t.fontMetrics().xHeight;else if("phase"===a){var c=calculateSize({number:.6,unit:"pt"},t),u=calculateSize({number:.35,unit:"ex"},t);o/=t.havingBaseSizing().sizeMultiplier;var d=i.height+i.depth+c+u;i.style.paddingLeft=makeEm(d/2+c);var m=Math.floor(1e3*d*o),h=phasePath(m),p=new SvgNode([new PathNode("phase",h)],{width:"400em",height:makeEm(m/1e3),viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"});(n=buildCommon.makeSvgSpan(["hide-tail"],[p],t)).style.height=makeEm(d),s=i.depth+c+u}else{/cancel/.test(a)?l||i.classes.push("cancel-pad"):"angl"===a?i.classes.push("anglpad"):i.classes.push("boxpad");var f=0,g=0,_=0;/box/.test(a)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),g=f=t.fontMetrics().fboxsep+("colorbox"===a?0:_)):"angl"===a?(f=4*(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),g=Math.max(0,.25-i.depth)):g=f=l?.2:0,n=stretchy.encloseSpan(i,a,f,g,t),/fbox|boxed|fcolorbox/.test(a)?(n.style.borderStyle="solid",n.style.borderWidth=makeEm(_)):"angl"===a&&.049!==_&&(n.style.borderTopWidth=makeEm(_),n.style.borderRightWidth=makeEm(_)),s=i.depth+g,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}if(e.backgroundColor)r=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:i,shift:0}]},t);else{var b=/cancel|phase/.test(a)?["svg-align"]:[];r=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:b}]},t)}return/cancel/.test(a)&&(r.height=i.height,r.depth=i.depth),/cancel/.test(a)&&!l?buildCommon.makeSpan(["mord","cancel-lap"],[r],t):buildCommon.makeSpan(["mord"],[r],t)},mathmlBuilder$6=(e,t)=>{var n=0,r=new mathMLTree.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[buildGroup(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};defineFunction({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=assertNodeType(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:htmlBuilder$7,mathmlBuilder:mathmlBuilder$6}),defineFunction({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=assertNodeType(t[0],"color-token").color,o=assertNodeType(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:htmlBuilder$7,mathmlBuilder:mathmlBuilder$6}),defineFunction({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),defineFunction({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:htmlBuilder$7,mathmlBuilder:mathmlBuilder$6}),defineFunction({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var _environments={};function defineEnvironment(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<n.length;++l)_environments[n[l]]=s;a&&(_htmlGroupBuilders[t]=a),o&&(_mathmlGroupBuilders[t]=o)}var _macros={};function defineMacro(e,t){_macros[e]=t}function getHLines(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for("\\relax"===n&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}var validateAmsEnvironmentContext=e=>{if(!e.parser.settings.displayMode)throw new ParseError("{"+e.envName+"} can be used only in display mode.")};function getAutoTag(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function parseArray(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:d,leqno:m}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var h=e.gullet.expandMacroAsText("\\arraystretch");if(null==h)o=1;else if(!(o=parseFloat(h))||o<0)throw new ParseError("Invalid \\arraystretch: "+h)}e.gullet.beginGroup();var p=[],f=[p],g=[],_=[],b=null!=l?[]:void 0;function x(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function E(){b&&(e.gullet.macros.get("\\df@tag")?(b.push(e.subparse([new Token("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(x(),_.push(getHLines(e));;){var y=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),y={type:"ordgroup",mode:e.mode,body:y},n&&(y={type:"styling",mode:e.mode,style:n,body:[y]}),p.push(y);var T=e.fetch().text;if("&"===T){if(d&&p.length===d){if(c||s)throw new ParseError("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===T){E(),1===p.length&&"styling"===y.type&&0===y.body[0].body.length&&(f.length>1||!u)&&f.pop(),_.length<f.length+1&&_.push([]);break}if("\\\\"!==T)throw new ParseError("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var v=void 0;" "!==e.gullet.future().text&&(v=e.parseSizeGroup(!0)),g.push(v?v.value:null),E(),_.push(getHLines(e)),p=[],f.push(p),x()}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:o,body:f,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:b,leqno:m}}function dCellStyle(e){return"d"===e.slice(0,1)?"display":"text"}var htmlBuilder$6=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=new Array(i),l=[],c=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&"small"===e.colSeparationType&&(d=t.havingStyle(Style$1.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var m="CD"===e.colSeparationType?calculateSize({number:3,unit:"ex"},t):12*u,h=3*u,p=e.arraystretch*m,f=.7*p,g=.3*p,_=0;function b(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),l.push({pos:_,isDashed:e[t]})}for(b(a[0]),n=0;n<e.body.length;++n){var x=e.body[n],E=f,y=g;o<x.length&&(o=x.length);var T=new Array(x.length);for(r=0;r<x.length;++r){var v=buildGroup$1(x[r],t);y<v.depth&&(y=v.depth),E<v.height&&(E=v.height),T[r]=v}var S=e.rowGaps[n],w=0;S&&(w=calculateSize(S,t))>0&&(y<(w+=g)&&(y=w),w=0),e.addJot&&(y+=h),T.height=E,T.depth=y,_+=E,T.pos=_,_+=y+w,s[n]=T,b(a[n+1])}var k,A,C=_/2+t.fontMetrics().axisHeight,I=e.cols||[],M=[],R=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var D=s[n],N=D.pos-C,P=e.tags[n],O=void 0;(O=!0===P?buildCommon.makeSpan(["eqn-num"],[],t):!1===P?buildCommon.makeSpan([],[],t):buildCommon.makeSpan([],buildExpression$1(P,t,!0),t)).depth=D.depth,O.height=D.height,R.push({type:"elem",elem:O,shift:N})}for(r=0,A=0;r<o||A<I.length;++r,++A){for(var L=I[A]||{},$=!0;"separator"===L.type;){if($||((k=buildCommon.makeSpan(["arraycolsep"],[])).style.width=makeEm(t.fontMetrics().doubleRuleSep),M.push(k)),"|"!==L.separator&&":"!==L.separator)throw new ParseError("Invalid separator type: "+L.separator);var B="|"===L.separator?"solid":"dashed",j=buildCommon.makeSpan(["vertical-separator"],[],t);j.style.height=makeEm(_),j.style.borderRightWidth=makeEm(c),j.style.borderRightStyle=B,j.style.margin="0 "+makeEm(-c/2);var F=_-C;F&&(j.style.verticalAlign=makeEm(-F)),M.push(j),L=I[++A]||{},$=!1}if(!(r>=o)){var U=void 0;(r>0||e.hskipBeforeAndAfter)&&0!==(U=utils.deflt(L.pregap,d))&&((k=buildCommon.makeSpan(["arraycolsep"],[])).style.width=makeEm(U),M.push(k));var G=[];for(n=0;n<i;++n){var q=s[n],z=q[r];if(z){var H=q.pos-C;z.depth=q.depth,z.height=q.height,G.push({type:"elem",elem:z,shift:H})}}G=buildCommon.makeVList({positionType:"individualShift",children:G},t),G=buildCommon.makeSpan(["col-align-"+(L.align||"c")],[G]),M.push(G),(r<o-1||e.hskipBeforeAndAfter)&&0!==(U=utils.deflt(L.postgap,d))&&((k=buildCommon.makeSpan(["arraycolsep"],[])).style.width=makeEm(U),M.push(k))}}if(s=buildCommon.makeSpan(["mtable"],M),l.length>0){for(var V=buildCommon.makeLineSpan("hline",t,c),W=buildCommon.makeLineSpan("hdashline",t,c),K=[{type:"elem",elem:s,shift:0}];l.length>0;){var Y=l.pop(),X=Y.pos-C;Y.isDashed?K.push({type:"elem",elem:W,shift:X}):K.push({type:"elem",elem:V,shift:X})}s=buildCommon.makeVList({positionType:"individualShift",children:K},t)}if(0===R.length)return buildCommon.makeSpan(["mord"],[s],t);var Q=buildCommon.makeVList({positionType:"individualShift",children:R},t);return Q=buildCommon.makeSpan(["tag"],[Q],t),buildCommon.makeFragment([s,Q])},alignMap={c:"center ",l:"left ",r:"right "},mathmlBuilder$5=function(e,t){for(var n=[],r=new mathMLTree.MathNode("mtd",[],["mtr-glue"]),i=new mathMLTree.MathNode("mtd",[],["mml-eqn-num"]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],l=0;l<o.length;l++)s.push(new mathMLTree.MathNode("mtd",[buildGroup(o[l],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new mathMLTree.MathNode("mtr",s))}var c=new mathMLTree.MathNode("mtable",n),u=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);c.setAttribute("rowspacing",makeEm(u));var d="",m="";if(e.cols&&e.cols.length>0){var h=e.cols,p="",f=!1,g=0,_=h.length;"separator"===h[0].type&&(d+="top ",g=1),"separator"===h[h.length-1].type&&(d+="bottom ",_-=1);for(var b=g;b<_;b++)"align"===h[b].type?(m+=alignMap[h[b].align],f&&(p+="none "),f=!0):"separator"===h[b].type&&f&&(p+="|"===h[b].separator?"solid ":"dashed ",f=!1);c.setAttribute("columnalign",m.trim()),/[sd]/.test(p)&&c.setAttribute("columnlines",p.trim())}if("align"===e.colSeparationType){for(var x=e.cols||[],E="",y=1;y<x.length;y++)E+=y%2?"0em ":"1em ";c.setAttribute("columnspacing",E.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?c.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?c.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var T="",v=e.hLinesBeforeRow;d+=v[0].length>0?"left ":"",d+=v[v.length-1].length>0?"right ":"";for(var S=1;S<v.length-1;S++)T+=0===v[S].length?"none ":v[S][0]?"dashed ":"solid ";return/[sd]/.test(T)&&c.setAttribute("rowlines",T.trim()),""!==d&&(c=new mathMLTree.MathNode("menclose",[c])).setAttribute("notation",d.trim()),e.arraystretch&&e.arraystretch<1&&(c=new mathMLTree.MathNode("mstyle",[c])).setAttribute("scriptlevel","1"),c},alignedHandler=function(e,t){-1===e.envName.indexOf("ed")&&validateAmsEnvironmentContext(e);var n,r=[],i=e.envName.indexOf("at")>-1?"alignat":"align",a="split"===e.envName,o=parseArray(e.parser,{cols:r,addJot:!0,autoTag:a?void 0:getAutoTag(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",u=0;u<t[0].body.length;u++)c+=assertNodeType(t[0].body[u],"textord").text;n=Number(c),s=2*n}var d=!s;o.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var r=assertNodeType(e[t],"styling");assertNodeType(r.body[0],"ordgroup").body.unshift(l)}if(d)s<e.length&&(s=e.length);else{var i=e.length/2;if(n<i)throw new ParseError("Too many math in a row: expected "+n+", but got "+i,e[0])}});for(var m=0;m<s;++m){var h="r",p=0;m%2==1?h="l":m>0&&d&&(p=1),r[m]={type:"align",align:h,pregap:p,postgap:0}}return o.colSeparationType=d?"align":"alignat",o};defineEnvironment({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=(checkSymbolNodeType(t[0])?[t[0]]:assertNodeType(t[0],"ordgroup").body).map(function(e){var t=assertSymbolNodeType(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new ParseError("Unknown column alignment: "+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return parseArray(e.parser,r,dCellStyle(e.envName))},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5}),defineEnvironment({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if("*"===e.envName.charAt(e.envName.length-1)){var i=e.parser;if(i.consumeSpaces(),"["===i.fetch().text){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,-1==="lcr".indexOf(n))throw new ParseError("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=parseArray(e.parser,r,dCellStyle(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=new Array(o).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5}),defineEnvironment({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=parseArray(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5}),defineEnvironment({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=(checkSymbolNodeType(t[0])?[t[0]]:assertNodeType(t[0],"ordgroup").body).map(function(e){var t=assertSymbolNodeType(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new ParseError("Unknown column alignment: "+t,e)});if(n.length>1)throw new ParseError("{subarray} can contain only one column");var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((r=parseArray(e.parser,r,"script")).body.length>0&&r.body[0].length>1)throw new ParseError("{subarray} can contain only one column");return r},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5}),defineEnvironment({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=parseArray(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},dCellStyle(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5}),defineEnvironment({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:alignedHandler,htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5}),defineEnvironment({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&validateAmsEnvironmentContext(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:getAutoTag(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return parseArray(e.parser,t,"display")},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5}),defineEnvironment({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:alignedHandler,htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5}),defineEnvironment({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){validateAmsEnvironmentContext(e);var t={autoTag:getAutoTag(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return parseArray(e.parser,t,"display")},htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5}),defineEnvironment({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(validateAmsEnvironmentContext(e),parseCD(e.parser)),htmlBuilder:htmlBuilder$6,mathmlBuilder:mathmlBuilder$5}),defineMacro("\\nonumber","\\gdef\\@eqnsw{0}"),defineMacro("\\notag","\\nonumber"),defineFunction({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new ParseError(e.funcName+" valid only within array environment")}});var environments=_environments;defineFunction({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if("ordgroup"!==i.type)throw new ParseError("Invalid environment name",i);for(var a="",o=0;o<i.body.length;++o)a+=assertNodeType(i.body[o],"textord").text;if("\\begin"===r){if(!environments.hasOwnProperty(a))throw new ParseError("No such environment: "+a,i);var s=environments[a],{args:l,optArgs:c}=n.parseArguments("\\begin{"+a+"}",s),u={mode:n.mode,envName:a,parser:n},d=s.handler(u,l,c);n.expect("\\end",!1);var m=n.nextToken,h=assertNodeType(n.parseFunction(),"environment");if(h.name!==a)throw new ParseError("Mismatch: \\begin{"+a+"} matched by \\end{"+h.name+"}",m);return d}return{type:"environment",mode:n.mode,name:a,nameGroup:i}}});var htmlBuilder$5=(e,t)=>{var n=e.font,r=t.withFont(n);return buildGroup$1(e.body,r)},mathmlBuilder$4=(e,t)=>{var n=e.font,r=t.withFont(n);return buildGroup(e.body,r)},fontAliases={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};defineFunction({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=normalizeArgument(t[0]),a=r;return a in fontAliases&&(a=fontAliases[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:htmlBuilder$5,mathmlBuilder:mathmlBuilder$4}),defineFunction({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=utils.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:binrelClass(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}}),defineFunction({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:"font",mode:a,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:htmlBuilder$5,mathmlBuilder:mathmlBuilder$4});var adjustStyle=(e,t)=>{var n=t;return"display"===e?n=n.id>=Style$1.SCRIPT.id?n.text():Style$1.DISPLAY:"text"===e&&n.size===Style$1.DISPLAY.size?n=Style$1.TEXT:"script"===e?n=Style$1.SCRIPT:"scriptscript"===e&&(n=Style$1.SCRIPTSCRIPT),n},htmlBuilder$4=(e,t)=>{var n,r=adjustStyle(e.size,t.style),i=r.fracNum(),a=r.fracDen();n=t.havingStyle(i);var o=buildGroup$1(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<l?l:o.depth}n=t.havingStyle(a);var c,u,d,m,h,p,f,g,_,b,x=buildGroup$1(e.denom,n,t);if(e.hasBarLine?(e.barSize?(u=calculateSize(e.barSize,t),c=buildCommon.makeLineSpan("frac-line",t,u)):c=buildCommon.makeLineSpan("frac-line",t),u=c.height,d=c.height):(c=null,u=0,d=t.fontMetrics().defaultRuleThickness),r.size===Style$1.DISPLAY.size||"display"===e.size?(m=t.fontMetrics().num1,h=u>0?3*d:7*d,p=t.fontMetrics().denom1):(u>0?(m=t.fontMetrics().num2,h=d):(m=t.fontMetrics().num3,h=3*d),p=t.fontMetrics().denom2),c){var E=t.fontMetrics().axisHeight;m-o.depth-(E+.5*u)<h&&(m+=h-(m-o.depth-(E+.5*u))),E-.5*u-(x.height-p)<h&&(p+=h-(E-.5*u-(x.height-p)));var y=-(E-.5*u);f=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:x,shift:p},{type:"elem",elem:c,shift:y},{type:"elem",elem:o,shift:-m}]},t)}else{var T=m-o.depth-(x.height-p);T<h&&(m+=.5*(h-T),p+=.5*(h-T)),f=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:x,shift:p},{type:"elem",elem:o,shift:-m}]},t)}return n=t.havingStyle(r),f.height*=n.sizeMultiplier/t.sizeMultiplier,f.depth*=n.sizeMultiplier/t.sizeMultiplier,g=r.size===Style$1.DISPLAY.size?t.fontMetrics().delim1:r.size===Style$1.SCRIPTSCRIPT.size?t.havingStyle(Style$1.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,_=null==e.leftDelim?makeNullDelimiter(t,["mopen"]):delimiter.customSizedDelim(e.leftDelim,g,!0,t.havingStyle(r),e.mode,["mopen"]),b=e.continued?buildCommon.makeSpan([]):null==e.rightDelim?makeNullDelimiter(t,["mclose"]):delimiter.customSizedDelim(e.rightDelim,g,!0,t.havingStyle(r),e.mode,["mclose"]),buildCommon.makeSpan(["mord"].concat(n.sizingClasses(t)),[_,buildCommon.makeSpan(["mfrac"],[f]),b],t)},mathmlBuilder$3=(e,t)=>{var n=new mathMLTree.MathNode("mfrac",[buildGroup(e.numer,t),buildGroup(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var r=calculateSize(e.barSize,t);n.setAttribute("linethickness",makeEm(r))}}else n.setAttribute("linethickness","0px");var i=adjustStyle(e.size,t.style);if(i.size!==t.style.size){n=new mathMLTree.MathNode("mstyle",[n]);var a=i.size===Style$1.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var o=[];if(null!=e.leftDelim){var s=new mathMLTree.MathNode("mo",[new mathMLTree.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(n),null!=e.rightDelim){var l=new mathMLTree.MathNode("mo",[new mathMLTree.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return makeRow(o)}return n};defineFunction({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var n,{parser:r,funcName:i}=e,a=t[0],o=t[1],s=null,l=null,c="auto";switch(i){case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",l=")";break;case"\\\\bracefrac":n=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":n=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(i){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text"}return{type:"genfrac",mode:r.mode,continued:!1,numer:a,denom:o,hasBarLine:n,leftDelim:s,rightDelim:l,size:c,barSize:null}},htmlBuilder:htmlBuilder$4,mathmlBuilder:mathmlBuilder$3}),defineFunction({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),defineFunction({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:n,funcName:r,token:i}=e;switch(r){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:i}}});var stylArray=["display","text","script","scriptscript"],delimFromValue=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};defineFunction({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var n,{parser:r}=e,i=t[4],a=t[5],o=normalizeArgument(t[0]),s="atom"===o.type&&"open"===o.family?delimFromValue(o.text):null,l=normalizeArgument(t[1]),c="atom"===l.type&&"close"===l.family?delimFromValue(l.text):null,u=assertNodeType(t[2],"size"),d=null;n=!!u.isBlank||(d=u.value).number>0;var m="auto",h=t[3];if("ordgroup"===h.type){if(h.body.length>0){var p=assertNodeType(h.body[0],"textord");m=stylArray[Number(p.text)]}}else h=assertNodeType(h,"textord"),m=stylArray[Number(h.text)];return{type:"genfrac",mode:r.mode,numer:i,denom:a,continued:!1,hasBarLine:n,barSize:d,leftDelim:s,rightDelim:c,size:m}},htmlBuilder:htmlBuilder$4,mathmlBuilder:mathmlBuilder$3}),defineFunction({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:assertNodeType(t[0],"size").value,token:i}}}),defineFunction({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=assert(assertNodeType(t[1],"infix").size),o=t[2],s=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:htmlBuilder$4,mathmlBuilder:mathmlBuilder$3});var htmlBuilder$3=(e,t)=>{var n,r,i=t.style;"supsub"===e.type?(n=e.sup?buildGroup$1(e.sup,t.havingStyle(i.sup()),t):buildGroup$1(e.sub,t.havingStyle(i.sub()),t),r=assertNodeType(e.base,"horizBrace")):r=assertNodeType(e,"horizBrace");var a,o=buildGroup$1(r.base,t.havingBaseStyle(Style$1.DISPLAY)),s=stretchy.svgSpan(r,t);if(r.isOver?(a=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(a=buildCommon.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var l=buildCommon.makeSpan(["mord",r.isOver?"mover":"munder"],[a],t);a=r.isOver?buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},t):buildCommon.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return buildCommon.makeSpan(["mord",r.isOver?"mover":"munder"],[a],t)},mathmlBuilder$2=(e,t)=>{var n=stretchy.mathMLnode(e.label);return new mathMLTree.MathNode(e.isOver?"mover":"munder",[buildGroup(e.base,t),n])};defineFunction({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:htmlBuilder$3,mathmlBuilder:mathmlBuilder$2}),defineFunction({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=assertNodeType(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:ordargument(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=buildExpression$1(e.body,t,!1);return buildCommon.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=buildExpressionRow(e.body,t);return n instanceof MathNode||(n=new MathNode("mrow",[n])),n.setAttribute("href",e.href),n}}),defineFunction({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=assertNodeType(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<r.length;a++){var o=r[a];"~"===o&&(o="\\textasciitilde"),i.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:n.mode,font:"\\texttt",body:i};return{type:"href",mode:n.mode,href:r,body:ordargument(s)}}}),defineFunction({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:ordargument(t[0])}},htmlBuilder(e,t){var n=buildExpression$1(e.body,t,!1);return buildCommon.makeFragment(n)},mathmlBuilder:(e,t)=>new mathMLTree.MathNode("mrow",buildExpression(e.body,t))}),defineFunction({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=assertNodeType(t[0],"raw").string,o=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,l={};switch(r){case"\\htmlClass":l.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":for(var c=a.split(","),u=0;u<c.length;u++){var d=c[u].split("=");if(2!==d.length)throw new ParseError("Error parsing key-value for \\htmlData");l["data-"+d[0].trim()]=d[1].trim()}s={command:"\\htmlData",attributes:l};break;default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(s)?{type:"html",mode:n.mode,attributes:l,body:ordargument(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=buildExpression$1(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=buildCommon.makeSpan(r,n,t);for(var a in e.attributes)"class"!==a&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>buildExpressionRow(e.body,t)}),defineFunction({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:ordargument(t[0]),mathml:ordargument(t[1])}},htmlBuilder:(e,t)=>{var n=buildExpression$1(e.html,t,!1);return buildCommon.makeFragment(n)},mathmlBuilder:(e,t)=>buildExpressionRow(e.mathml,t)});var sizeData=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new ParseError("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!validUnit(n))throw new ParseError("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};defineFunction({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(n[0])for(var l=assertNodeType(n[0],"raw").string.split(","),c=0;c<l.length;c++){var u=l[c].split("=");if(2===u.length){var d=u[1].trim();switch(u[0].trim()){case"alt":s=d;break;case"width":i=sizeData(d);break;case"height":a=sizeData(d);break;case"totalheight":o=sizeData(d);break;default:throw new ParseError("Invalid key: '"+u[0]+"' in \\includegraphics.")}}}var m=assertNodeType(t[0],"url").url;return""===s&&(s=(s=(s=m).replace(/^.*[\\/]/,"")).substring(0,s.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:m})?{type:"includegraphics",mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:m}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=calculateSize(e.height,t),r=0;e.totalheight.number>0&&(r=calculateSize(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=calculateSize(e.width,t));var a={height:makeEm(n+r)};i>0&&(a.width=makeEm(i)),r>0&&(a.verticalAlign=makeEm(-r));var o=new Img(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new mathMLTree.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=calculateSize(e.height,t),i=0;if(e.totalheight.number>0&&(i=calculateSize(e.totalheight,t)-r,n.setAttribute("valign",makeEm(-i))),n.setAttribute("height",makeEm(r+i)),e.width.number>0){var a=calculateSize(e.width,t);n.setAttribute("width",makeEm(a))}return n.setAttribute("src",e.src),n}}),defineFunction({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=assertNodeType(t[0],"size");if(n.settings.strict){var a="m"===r[1],o="mu"===i.value.unit;a?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+i.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder:(e,t)=>buildCommon.makeGlue(e.dimension,t),mathmlBuilder(e,t){var n=calculateSize(e.dimension,t);return new mathMLTree.SpaceNode(n)}}),defineFunction({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;"clap"===e.alignment?(n=buildCommon.makeSpan([],[buildGroup$1(e.body,t)]),n=buildCommon.makeSpan(["inner"],[n],t)):n=buildCommon.makeSpan(["inner"],[buildGroup$1(e.body,t)]);var r=buildCommon.makeSpan(["fix"],[]),i=buildCommon.makeSpan([e.alignment],[n,r],t),a=buildCommon.makeSpan(["strut"]);return a.style.height=makeEm(i.height+i.depth),i.depth&&(a.style.verticalAlign=makeEm(-i.depth)),i.children.unshift(a),i=buildCommon.makeSpan(["thinbox"],[i],t),buildCommon.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new mathMLTree.MathNode("mpadded",[buildGroup(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),defineFunction({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a="\\("===n?"\\)":"$",o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:o}}}),defineFunction({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new ParseError("Mismatched "+e.funcName)}});var chooseMathStyle=(e,t)=>{switch(t.style.size){case Style$1.DISPLAY.size:return e.display;case Style$1.TEXT.size:return e.text;case Style$1.SCRIPT.size:return e.script;case Style$1.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};defineFunction({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:ordargument(t[0]),text:ordargument(t[1]),script:ordargument(t[2]),scriptscript:ordargument(t[3])}},htmlBuilder:(e,t)=>{var n=chooseMathStyle(e,t),r=buildExpression$1(n,t,!1);return buildCommon.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=chooseMathStyle(e,t);return buildExpressionRow(n,t)}});var assembleSupSub=(e,t,n,r,i,a,o)=>{e=buildCommon.makeSpan([],[e]);var s,l,c,u=n&&utils.isCharacterBox(n);if(t){var d=buildGroup$1(t,r.havingStyle(i.sup()),r);l={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var m=buildGroup$1(n,r.havingStyle(i.sub()),r);s={elem:m,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-m.height)}}if(l&&s){var h=r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;c=buildCommon.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:makeEm(-a)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:makeEm(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(s){var p=e.height-o;c=buildCommon.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:makeEm(-a)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},r)}else{if(!l)return e;var f=e.depth+o;c=buildCommon.makeVList({positionType:"bottom",positionData:f,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:makeEm(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}var g=[c];if(s&&0!==a&&!u){var _=buildCommon.makeSpan(["mspace"],[],r);_.style.marginRight=makeEm(a),g.unshift(_)}return buildCommon.makeSpan(["mop","op-limits"],g,r)},noSuccessor=["\\smallint"],htmlBuilder$2=(e,t)=>{var n,r,i,a=!1;"supsub"===e.type?(n=e.sup,r=e.sub,i=assertNodeType(e.base,"op"),a=!0):i=assertNodeType(e,"op");var o,s=t.style,l=!1;if(s.size===Style$1.DISPLAY.size&&i.symbol&&!noSuccessor.includes(i.name)&&(l=!0),i.symbol){var c=l?"Size2-Regular":"Size1-Regular",u="";if(("\\oiint"===i.name||"\\oiiint"===i.name)&&(u=i.name.slice(1),i.name="oiint"===u?"\\iint":"\\iiint"),o=buildCommon.makeSymbol(i.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),u.length>0){var d=o.italic,m=buildCommon.staticSvg(u+"Size"+(l?"2":"1"),t);o=buildCommon.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:m,shift:l?.08:0}]},t),i.name="\\"+u,o.classes.unshift("mop"),o.italic=d}}else if(i.body){var h=buildExpression$1(i.body,t,!0);1===h.length&&h[0]instanceof SymbolNode?(o=h[0]).classes[0]="mop":o=buildCommon.makeSpan(["mop"],h,t)}else{for(var p=[],f=1;f<i.name.length;f++)p.push(buildCommon.mathsym(i.name[f],i.mode,t));o=buildCommon.makeSpan(["mop"],p,t)}var g=0,_=0;return(o instanceof SymbolNode||"\\oiint"===i.name||"\\oiiint"===i.name)&&!i.suppressBaseShift&&(g=(o.height-o.depth)/2-t.fontMetrics().axisHeight,_=o.italic),a?assembleSupSub(o,n,r,t,s,_,g):(g&&(o.style.position="relative",o.style.top=makeEm(g)),o)},mathmlBuilder$1=(e,t)=>{var n;if(e.symbol)n=new MathNode("mo",[makeText(e.name,e.mode)]),noSuccessor.includes(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new MathNode("mo",buildExpression(e.body,t));else{n=new MathNode("mi",[new TextNode(e.name.slice(1))]);var r=new MathNode("mo",[makeText("","text")]);n=e.parentIsSupSub?new MathNode("mrow",[n,r]):newDocumentFragment([n,r])}return n},singleCharBigOps={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};defineFunction({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return 1===i.length&&(i=singleCharBigOps[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:htmlBuilder$2,mathmlBuilder:mathmlBuilder$1}),defineFunction({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ordargument(r)}},htmlBuilder:htmlBuilder$2,mathmlBuilder:mathmlBuilder$1});var singleCharIntegrals={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};defineFunction({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:htmlBuilder$2,mathmlBuilder:mathmlBuilder$1}),defineFunction({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:htmlBuilder$2,mathmlBuilder:mathmlBuilder$1}),defineFunction({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return 1===r.length&&(r=singleCharIntegrals[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:htmlBuilder$2,mathmlBuilder:mathmlBuilder$1});var htmlBuilder$1=(e,t)=>{var n,r,i,a,o=!1;if("supsub"===e.type?(n=e.sup,r=e.sub,i=assertNodeType(e.base,"operatorname"),o=!0):i=assertNodeType(e,"operatorname"),i.body.length>0){for(var s=i.body.map(e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),l=buildExpression$1(s,t.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof SymbolNode&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=buildCommon.makeSpan(["mop"],l,t)}else a=buildCommon.makeSpan(["mop"],[],t);return o?assembleSupSub(a,n,r,t,t.style,0,0):a},mathmlBuilder=(e,t)=>{for(var n=buildExpression(e.body,t.withFont("mathrm")),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof mathMLTree.SpaceNode))if(a instanceof mathMLTree.MathNode)switch(a.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var o=a.children[0];1===a.children.length&&o instanceof mathMLTree.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break;default:r=!1}else r=!1}if(r){var s=n.map(e=>e.toText()).join("");n=[new mathMLTree.TextNode(s)]}var l=new mathMLTree.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new mathMLTree.MathNode("mo",[makeText("","text")]);return e.parentIsSupSub?new mathMLTree.MathNode("mrow",[l,c]):mathMLTree.newDocumentFragment([l,c])};function sizingGroup(e,t,n){for(var r=buildExpression$1(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf("sizing");o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]==="reset-size"+t.size&&(r[a].classes[o+1]="reset-size"+n.size),r[a].height*=i,r[a].depth*=i}return buildCommon.makeFragment(r)}defineFunction({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:ordargument(i),alwaysHandleSupSub:"\\operatornamewithlimits"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:htmlBuilder$1,mathmlBuilder}),defineMacro("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),defineFunctionBuilders({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?buildCommon.makeFragment(buildExpression$1(e.body,t,!1)):buildCommon.makeSpan(["mord"],buildExpression$1(e.body,t,!0),t),mathmlBuilder:(e,t)=>buildExpressionRow(e.body,t,!0)}),defineFunction({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=buildGroup$1(e.body,t.havingCrampedStyle()),r=buildCommon.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return buildCommon.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new mathMLTree.MathNode("mo",[new mathMLTree.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new mathMLTree.MathNode("mover",[buildGroup(e.body,t),n]);return r.setAttribute("accent","true"),r}}),defineFunction({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:ordargument(r)}},htmlBuilder:(e,t)=>{var n=buildExpression$1(e.body,t.withPhantom(),!1);return buildCommon.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=buildExpression(e.body,t);return new mathMLTree.MathNode("mphantom",n)}}),defineFunction({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=buildCommon.makeSpan([],[buildGroup$1(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),buildCommon.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=buildExpression(ordargument(e.body),t),r=new mathMLTree.MathNode("mphantom",n),i=new mathMLTree.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}}),defineFunction({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=buildCommon.makeSpan(["inner"],[buildGroup$1(e.body,t.withPhantom())]),r=buildCommon.makeSpan(["fix"],[]);return buildCommon.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=buildExpression(ordargument(e.body),t),r=new mathMLTree.MathNode("mphantom",n),i=new mathMLTree.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}}),defineFunction({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=assertNodeType(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=buildGroup$1(e.body,t),r=calculateSize(e.dy,t);return buildCommon.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new mathMLTree.MathNode("mpadded",[buildGroup(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),defineFunction({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),defineFunction({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=assertNodeType(t[0],"size"),o=assertNodeType(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&assertNodeType(i,"size").value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=buildCommon.makeSpan(["mord","rule"],[],t),r=calculateSize(e.width,t),i=calculateSize(e.height,t),a=e.shift?calculateSize(e.shift,t):0;return n.style.borderRightWidth=makeEm(r),n.style.borderTopWidth=makeEm(i),n.style.bottom=makeEm(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=1.125*i*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=calculateSize(e.width,t),r=calculateSize(e.height,t),i=e.shift?calculateSize(e.shift,t):0,a=t.color&&t.getColor()||"black",o=new mathMLTree.MathNode("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",makeEm(n)),o.setAttribute("height",makeEm(r));var s=new mathMLTree.MathNode("mpadded",[o]);return i>=0?s.setAttribute("height",makeEm(i)):(s.setAttribute("height",makeEm(i)),s.setAttribute("depth",makeEm(-i))),s.setAttribute("voffset",makeEm(i)),s}});var sizeFuncs=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],htmlBuilder=(e,t)=>{var n=t.havingSize(e.size);return sizingGroup(e.body,n,t)};defineFunction({type:"sizing",names:sizeFuncs,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:sizeFuncs.indexOf(r)+1,body:a}},htmlBuilder,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=buildExpression(e.body,n),i=new mathMLTree.MathNode("mstyle",r);return i.setAttribute("mathsize",makeEm(n.sizeMultiplier)),i}}),defineFunction({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&assertNodeType(n[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l)if("t"===(s=o.body[l].text))i=!0;else{if("b"!==s){i=!1,a=!1;break}a=!0}else i=!0,a=!0;var c=t[0];return{type:"smash",mode:r.mode,body:c,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=buildCommon.makeSpan([],[buildGroup$1(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].depth=0;var a=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return buildCommon.makeSpan(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var n=new mathMLTree.MathNode("mpadded",[buildGroup(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),defineFunction({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=buildGroup$1(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=buildCommon.wrapFragment(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<Style$1.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,o=n.height+n.depth+a+r,{span:s,ruleWidth:l,advanceWidth:c}=delimiter.sqrtImage(o,t),u=s.height-l;u>n.height+n.depth+a&&(a=(a+u-n.height-n.depth)/2);var d=s.height-n.height-a-l;n.style.paddingLeft=makeEm(c);var m=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:s},{type:"kern",size:l}]},t);if(e.index){var h=t.havingStyle(Style$1.SCRIPTSCRIPT),p=buildGroup$1(e.index,h,t),f=.6*(m.height-m.depth),g=buildCommon.makeVList({positionType:"shift",positionData:-f,children:[{type:"elem",elem:p}]},t),_=buildCommon.makeSpan(["root"],[g]);return buildCommon.makeSpan(["mord","sqrt"],[_,m],t)}return buildCommon.makeSpan(["mord","sqrt"],[m],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new mathMLTree.MathNode("mroot",[buildGroup(n,t),buildGroup(r,t)]):new mathMLTree.MathNode("msqrt",[buildGroup(n,t)])}});var styleMap={display:Style$1.DISPLAY,text:Style$1.TEXT,script:Style$1.SCRIPT,scriptscript:Style$1.SCRIPTSCRIPT};defineFunction({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=styleMap[e.style],r=t.havingStyle(n).withFont("");return sizingGroup(e.body,r,t)},mathmlBuilder(e,t){var n=styleMap[e.style],r=t.havingStyle(n),i=buildExpression(e.body,r),a=new mathMLTree.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var htmlBuilderDelegate=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===Style$1.DISPLAY.size||n.alwaysHandleSupSub)?htmlBuilder$2:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===Style$1.DISPLAY.size||n.limits)?htmlBuilder$1:null:"accent"===n.type?utils.isCharacterBox(n.base)?htmlBuilder$a:null:"horizBrace"===n.type&&!e.sub===n.isOver?htmlBuilder$3:null:null};defineFunctionBuilders({type:"supsub",htmlBuilder(e,t){var n=htmlBuilderDelegate(e,t);if(n)return n(e,t);var r,i,a,{base:o,sup:s,sub:l}=e,c=buildGroup$1(o,t),u=t.fontMetrics(),d=0,m=0,h=o&&utils.isCharacterBox(o);if(s){var p=t.havingStyle(t.style.sup());r=buildGroup$1(s,p,t),h||(d=c.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(l){var f=t.havingStyle(t.style.sub());i=buildGroup$1(l,f,t),h||(m=c.depth+f.fontMetrics().subDrop*f.sizeMultiplier/t.sizeMultiplier)}a=t.style===Style$1.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var g,_=t.sizeMultiplier,b=makeEm(.5/u.ptPerEm/_),x=null;if(i){var E=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(c instanceof SymbolNode||E)&&(x=makeEm(-c.italic))}if(r&&i){d=Math.max(d,a,r.depth+.25*u.xHeight),m=Math.max(m,u.sub2);var y=4*u.defaultRuleThickness;if(d-r.depth-(i.height-m)<y){m=y-(d-r.depth)+i.height;var T=.8*u.xHeight-(d-r.depth);T>0&&(d+=T,m-=T)}var v=[{type:"elem",elem:i,shift:m,marginRight:b,marginLeft:x},{type:"elem",elem:r,shift:-d,marginRight:b}];g=buildCommon.makeVList({positionType:"individualShift",children:v},t)}else if(i){m=Math.max(m,u.sub1,i.height-.8*u.xHeight);var S=[{type:"elem",elem:i,marginLeft:x,marginRight:b}];g=buildCommon.makeVList({positionType:"shift",positionData:m,children:S},t)}else{if(!r)throw new Error("supsub must have either sup or sub.");d=Math.max(d,a,r.depth+.25*u.xHeight),g=buildCommon.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:r,marginRight:b}]},t)}var w=getTypeOfDomTree(c,"right")||"mord";return buildCommon.makeSpan([w],[c,buildCommon.makeSpan(["msupsub"],[g])],t)},mathmlBuilder(e,t){var n,r=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(r=!0,n=e.base.isOver),e.base&&("op"===e.base.type||"operatorname"===e.base.type)&&(e.base.parentIsSupSub=!0);var i,a=[buildGroup(e.base,t)];if(e.sub&&a.push(buildGroup(e.sub,t)),e.sup&&a.push(buildGroup(e.sup,t)),r)i=n?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;i=o&&"op"===o.type&&o.limits&&t.style===Style$1.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===Style$1.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;i=s&&"op"===s.type&&s.limits&&(t.style===Style$1.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===Style$1.DISPLAY)?"munder":"msub"}else{var l=e.base;i=l&&"op"===l.type&&l.limits&&(t.style===Style$1.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===Style$1.DISPLAY)?"mover":"msup"}return new mathMLTree.MathNode(i,a)}}),defineFunctionBuilders({type:"atom",htmlBuilder:(e,t)=>buildCommon.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var n=new mathMLTree.MathNode("mo",[makeText(e.text,e.mode)]);if("bin"===e.family){var r=getVariant(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):("open"===e.family||"close"===e.family)&&n.setAttribute("stretchy","false");return n}});var defaultVariant={mi:"italic",mn:"normal",mtext:"normal"};defineFunctionBuilders({type:"mathord",htmlBuilder:(e,t)=>buildCommon.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var n=new mathMLTree.MathNode("mi",[makeText(e.text,e.mode,t)]),r=getVariant(e,t)||"italic";return r!==defaultVariant[n.type]&&n.setAttribute("mathvariant",r),n}}),defineFunctionBuilders({type:"textord",htmlBuilder:(e,t)=>buildCommon.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var n,r=makeText(e.text,e.mode,t),i=getVariant(e,t)||"normal";return n="text"===e.mode?new mathMLTree.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new mathMLTree.MathNode("mn",[r]):"\\prime"===e.text?new mathMLTree.MathNode("mo",[r]):new mathMLTree.MathNode("mi",[r]),i!==defaultVariant[n.type]&&n.setAttribute("mathvariant",i),n}});var cssSpace={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},regularSpace={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};defineFunctionBuilders({type:"spacing",htmlBuilder(e,t){if(regularSpace.hasOwnProperty(e.text)){var n=regularSpace[e.text].className||"";if("text"===e.mode){var r=buildCommon.makeOrd(e,t,"textord");return r.classes.push(n),r}return buildCommon.makeSpan(["mspace",n],[buildCommon.mathsym(e.text,e.mode,t)],t)}if(cssSpace.hasOwnProperty(e.text))return buildCommon.makeSpan(["mspace",cssSpace[e.text]],[],t);throw new ParseError('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!regularSpace.hasOwnProperty(e.text)){if(cssSpace.hasOwnProperty(e.text))return new mathMLTree.MathNode("mspace");throw new ParseError('Unknown type of space "'+e.text+'"')}return new mathMLTree.MathNode("mtext",[new mathMLTree.TextNode(" ")])}});var pad=()=>{var e=new mathMLTree.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};defineFunctionBuilders({type:"tag",mathmlBuilder(e,t){var n=new mathMLTree.MathNode("mtable",[new mathMLTree.MathNode("mtr",[pad(),new mathMLTree.MathNode("mtd",[buildExpressionRow(e.body,t)]),pad(),new mathMLTree.MathNode("mtd",[buildExpressionRow(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var textFontFamilies={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},textFontWeights={"\\textbf":"textbf","\\textmd":"textmd"},textFontShapes={"\\textit":"textit","\\textup":"textup"},optionsWithFont=(e,t)=>{var n=e.font;return n?textFontFamilies[n]?t.withTextFontFamily(textFontFamilies[n]):textFontWeights[n]?t.withTextFontWeight(textFontWeights[n]):"\\emph"===n?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(textFontShapes[n]):t};defineFunction({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:ordargument(i),font:r}},htmlBuilder(e,t){var n=optionsWithFont(e,t),r=buildExpression$1(e.body,n,!0);return buildCommon.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=optionsWithFont(e,t);return buildExpressionRow(e.body,n)}}),defineFunction({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=buildGroup$1(e.body,t),r=buildCommon.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=buildCommon.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return buildCommon.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new mathMLTree.MathNode("mo",[new mathMLTree.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new mathMLTree.MathNode("munder",[buildGroup(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),defineFunction({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=buildGroup$1(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return buildCommon.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:(e,t)=>new mathMLTree.MathNode("mpadded",[buildGroup(e.body,t)],["vcenter"])}),defineFunction({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new ParseError("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=makeVerb(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];"~"===o&&(o="\\textasciitilde"),r.push(buildCommon.makeSymbol(o,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return buildCommon.makeSpan(["mord","text"].concat(i.sizingClasses(t)),buildCommon.tryCombineChars(r),i)},mathmlBuilder(e,t){var n=new mathMLTree.TextNode(makeVerb(e)),r=new mathMLTree.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var makeVerb=e=>e.body.replace(/ /g,e.star?"␣":" "),functions=_functions,spaceRegexString="[ \r\n\t]",controlWordRegexString="\\\\[a-zA-Z@]+",controlSymbolRegexString="\\\\[^\ud800-\udfff]",controlWordWhitespaceRegexString="("+controlWordRegexString+")"+spaceRegexString+"*",controlSpaceRegexString="\\\\(\n|[ \r\t]+\n?)[ \r\t]*",combiningDiacriticalMarkString="[̀-ͯ]",combiningDiacriticalMarksEndRegex=new RegExp(combiningDiacriticalMarkString+"+$"),tokenRegexString="("+spaceRegexString+"+)|"+controlSpaceRegexString+"|([!-\\[\\]-‧-豈-]"+combiningDiacriticalMarkString+"*|[\ud800-\udbff][\udc00-\udfff]"+combiningDiacriticalMarkString+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+controlWordWhitespaceRegexString+"|"+controlSymbolRegexString+")";class Lexer{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(tokenRegexString,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Token("EOF",new SourceLocation(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new ParseError("Unexpected character: '"+e[t]+"'",new Token(e[t],new SourceLocation(this,t,t+1)));var r=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[r]){var i=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===i?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new Token(r,new SourceLocation(this,t,this.tokenRegex.lastIndex))}}class Namespace{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new ParseError("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(void 0===n&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var macros=_macros;defineMacro("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),defineMacro("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),defineMacro("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),defineMacro("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),defineMacro("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),defineMacro("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),defineMacro("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var digitToNumber={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};defineMacro("\\char",function(e){var t,n=e.popToken(),r="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])r=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new ParseError("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(null==(r=digitToNumber[n.text])||r>=t)throw new ParseError("Invalid base-"+t+" digit "+n.text);for(var i;null!=(i=digitToNumber[e.future().text])&&i<t;)r*=t,r+=i,e.popToken()}return"\\@char{"+r+"}"});var newcommand=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(1!==i.length)throw new ParseError("\\newcommand's first argument must be a macro name");var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new ParseError("\\newcommand{"+a+"} attempting to redefine "+a+"; use \\renewcommand");if(!o&&!n)throw new ParseError("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var s=0;if(1===(i=e.consumeArg().tokens).length&&"["===i[0].text){for(var l="",c=e.expandNextToken();"]"!==c.text&&"EOF"!==c.text;)l+=c.text,c=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new ParseError("Invalid number of arguments: "+l);s=parseInt(l),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),""};defineMacro("\\newcommand",e=>newcommand(e,!1,!0,!1)),defineMacro("\\renewcommand",e=>newcommand(e,!0,!1,!1)),defineMacro("\\providecommand",e=>newcommand(e,!0,!0,!0)),defineMacro("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join("")),""}),defineMacro("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join("")),""}),defineMacro("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),functions[n],symbols.math[n],symbols.text[n]),""}),defineMacro("\\bgroup","{"),defineMacro("\\egroup","}"),defineMacro("~","\\nobreakspace"),defineMacro("\\lq","`"),defineMacro("\\rq","'"),defineMacro("\\aa","\\r a"),defineMacro("\\AA","\\r A"),defineMacro("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),defineMacro("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),defineMacro("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),defineMacro("ℬ","\\mathscr{B}"),defineMacro("ℰ","\\mathscr{E}"),defineMacro("ℱ","\\mathscr{F}"),defineMacro("ℋ","\\mathscr{H}"),defineMacro("ℐ","\\mathscr{I}"),defineMacro("ℒ","\\mathscr{L}"),defineMacro("ℳ","\\mathscr{M}"),defineMacro("ℛ","\\mathscr{R}"),defineMacro("ℭ","\\mathfrak{C}"),defineMacro("ℌ","\\mathfrak{H}"),defineMacro("ℨ","\\mathfrak{Z}"),defineMacro("\\Bbbk","\\Bbb{k}"),defineMacro("·","\\cdotp"),defineMacro("\\llap","\\mathllap{\\textrm{#1}}"),defineMacro("\\rlap","\\mathrlap{\\textrm{#1}}"),defineMacro("\\clap","\\mathclap{\\textrm{#1}}"),defineMacro("\\mathstrut","\\vphantom{(}"),defineMacro("\\underbar","\\underline{\\text{#1}}"),defineMacro("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),defineMacro("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),defineMacro("\\ne","\\neq"),defineMacro("≠","\\neq"),defineMacro("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),defineMacro("∉","\\notin"),defineMacro("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),defineMacro("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),defineMacro("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),defineMacro("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),defineMacro("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),defineMacro("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),defineMacro("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),defineMacro("⟂","\\perp"),defineMacro("‼","\\mathclose{!\\mkern-0.8mu!}"),defineMacro("∌","\\notni"),defineMacro("⌜","\\ulcorner"),defineMacro("⌝","\\urcorner"),defineMacro("⌞","\\llcorner"),defineMacro("⌟","\\lrcorner"),defineMacro("©","\\copyright"),defineMacro("®","\\textregistered"),defineMacro("️","\\textregistered"),defineMacro("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),defineMacro("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),defineMacro("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),defineMacro("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),defineMacro("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),defineMacro("⋮","\\vdots"),defineMacro("\\varGamma","\\mathit{\\Gamma}"),defineMacro("\\varDelta","\\mathit{\\Delta}"),defineMacro("\\varTheta","\\mathit{\\Theta}"),defineMacro("\\varLambda","\\mathit{\\Lambda}"),defineMacro("\\varXi","\\mathit{\\Xi}"),defineMacro("\\varPi","\\mathit{\\Pi}"),defineMacro("\\varSigma","\\mathit{\\Sigma}"),defineMacro("\\varUpsilon","\\mathit{\\Upsilon}"),defineMacro("\\varPhi","\\mathit{\\Phi}"),defineMacro("\\varPsi","\\mathit{\\Psi}"),defineMacro("\\varOmega","\\mathit{\\Omega}"),defineMacro("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),defineMacro("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),defineMacro("\\boxed","\\fbox{$\\displaystyle{#1}$}"),defineMacro("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),defineMacro("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),defineMacro("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),defineMacro("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),defineMacro("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var dotsByToken={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};defineMacro("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in dotsByToken?t=dotsByToken[n]:("\\not"===n.slice(0,4)||n in symbols.math&&["bin","rel"].includes(symbols.math[n].group))&&(t="\\dotsb"),t});var spaceAfterDots={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};defineMacro("\\dotso",function(e){return e.future().text in spaceAfterDots?"\\ldots\\,":"\\ldots"}),defineMacro("\\dotsc",function(e){var t=e.future().text;return t in spaceAfterDots&&","!==t?"\\ldots\\,":"\\ldots"}),defineMacro("\\cdots",function(e){return e.future().text in spaceAfterDots?"\\@cdots\\,":"\\@cdots"}),defineMacro("\\dotsb","\\cdots"),defineMacro("\\dotsm","\\cdots"),defineMacro("\\dotsi","\\!\\cdots"),defineMacro("\\dotsx","\\ldots\\,"),defineMacro("\\DOTSI","\\relax"),defineMacro("\\DOTSB","\\relax"),defineMacro("\\DOTSX","\\relax"),defineMacro("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),defineMacro("\\,","\\tmspace+{3mu}{.1667em}"),defineMacro("\\thinspace","\\,"),defineMacro("\\>","\\mskip{4mu}"),defineMacro("\\:","\\tmspace+{4mu}{.2222em}"),defineMacro("\\medspace","\\:"),defineMacro("\\;","\\tmspace+{5mu}{.2777em}"),defineMacro("\\thickspace","\\;"),defineMacro("\\!","\\tmspace-{3mu}{.1667em}"),defineMacro("\\negthinspace","\\!"),defineMacro("\\negmedspace","\\tmspace-{4mu}{.2222em}"),defineMacro("\\negthickspace","\\tmspace-{5mu}{.277em}"),defineMacro("\\enspace","\\kern.5em "),defineMacro("\\enskip","\\hskip.5em\\relax"),defineMacro("\\quad","\\hskip1em\\relax"),defineMacro("\\qquad","\\hskip2em\\relax"),defineMacro("\\tag","\\@ifstar\\tag@literal\\tag@paren"),defineMacro("\\tag@paren","\\tag@literal{({#1})}"),defineMacro("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new ParseError("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),defineMacro("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),defineMacro("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),defineMacro("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),defineMacro("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),defineMacro("\\newline","\\\\\\relax"),defineMacro("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var latexRaiseA=makeEm(fontMetricsData["Main-Regular"][84][1]-.7*fontMetricsData["Main-Regular"][65][1]);defineMacro("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+latexRaiseA+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),defineMacro("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+latexRaiseA+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),defineMacro("\\hspace","\\@ifstar\\@hspacer\\@hspace"),defineMacro("\\@hspace","\\hskip #1\\relax"),defineMacro("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),defineMacro("\\ordinarycolon",":"),defineMacro("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),defineMacro("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),defineMacro("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),defineMacro("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),defineMacro("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),defineMacro("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),defineMacro("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),defineMacro("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),defineMacro("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),defineMacro("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),defineMacro("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),defineMacro("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),defineMacro("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),defineMacro("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),defineMacro("∷","\\dblcolon"),defineMacro("∹","\\eqcolon"),defineMacro("≔","\\coloneqq"),defineMacro("≕","\\eqqcolon"),defineMacro("⩴","\\Coloneqq"),defineMacro("\\ratio","\\vcentcolon"),defineMacro("\\coloncolon","\\dblcolon"),defineMacro("\\colonequals","\\coloneqq"),defineMacro("\\coloncolonequals","\\Coloneqq"),defineMacro("\\equalscolon","\\eqqcolon"),defineMacro("\\equalscoloncolon","\\Eqqcolon"),defineMacro("\\colonminus","\\coloneq"),defineMacro("\\coloncolonminus","\\Coloneq"),defineMacro("\\minuscolon","\\eqcolon"),defineMacro("\\minuscoloncolon","\\Eqcolon"),defineMacro("\\coloncolonapprox","\\Colonapprox"),defineMacro("\\coloncolonsim","\\Colonsim"),defineMacro("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),defineMacro("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),defineMacro("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),defineMacro("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),defineMacro("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),defineMacro("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),defineMacro("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),defineMacro("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),defineMacro("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),defineMacro("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),defineMacro("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),defineMacro("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),defineMacro("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),defineMacro("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),defineMacro("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),defineMacro("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),defineMacro("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),defineMacro("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),defineMacro("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),defineMacro("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),defineMacro("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),defineMacro("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),defineMacro("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),defineMacro("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),defineMacro("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),defineMacro("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),defineMacro("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),defineMacro("\\imath","\\html@mathml{\\@imath}{ı}"),defineMacro("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),defineMacro("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),defineMacro("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),defineMacro("⟦","\\llbracket"),defineMacro("⟧","\\rrbracket"),defineMacro("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),defineMacro("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),defineMacro("⦃","\\lBrace"),defineMacro("⦄","\\rBrace"),defineMacro("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),defineMacro("⦵","\\minuso"),defineMacro("\\darr","\\downarrow"),defineMacro("\\dArr","\\Downarrow"),defineMacro("\\Darr","\\Downarrow"),defineMacro("\\lang","\\langle"),defineMacro("\\rang","\\rangle"),defineMacro("\\uarr","\\uparrow"),defineMacro("\\uArr","\\Uparrow"),defineMacro("\\Uarr","\\Uparrow"),defineMacro("\\N","\\mathbb{N}"),defineMacro("\\R","\\mathbb{R}"),defineMacro("\\Z","\\mathbb{Z}"),defineMacro("\\alef","\\aleph"),defineMacro("\\alefsym","\\aleph"),defineMacro("\\Alpha","\\mathrm{A}"),defineMacro("\\Beta","\\mathrm{B}"),defineMacro("\\bull","\\bullet"),defineMacro("\\Chi","\\mathrm{X}"),defineMacro("\\clubs","\\clubsuit"),defineMacro("\\cnums","\\mathbb{C}"),defineMacro("\\Complex","\\mathbb{C}"),defineMacro("\\Dagger","\\ddagger"),defineMacro("\\diamonds","\\diamondsuit"),defineMacro("\\empty","\\emptyset"),defineMacro("\\Epsilon","\\mathrm{E}"),defineMacro("\\Eta","\\mathrm{H}"),defineMacro("\\exist","\\exists"),defineMacro("\\harr","\\leftrightarrow"),defineMacro("\\hArr","\\Leftrightarrow"),defineMacro("\\Harr","\\Leftrightarrow"),defineMacro("\\hearts","\\heartsuit"),defineMacro("\\image","\\Im"),defineMacro("\\infin","\\infty"),defineMacro("\\Iota","\\mathrm{I}"),defineMacro("\\isin","\\in"),defineMacro("\\Kappa","\\mathrm{K}"),defineMacro("\\larr","\\leftarrow"),defineMacro("\\lArr","\\Leftarrow"),defineMacro("\\Larr","\\Leftarrow"),defineMacro("\\lrarr","\\leftrightarrow"),defineMacro("\\lrArr","\\Leftrightarrow"),defineMacro("\\Lrarr","\\Leftrightarrow"),defineMacro("\\Mu","\\mathrm{M}"),defineMacro("\\natnums","\\mathbb{N}"),defineMacro("\\Nu","\\mathrm{N}"),defineMacro("\\Omicron","\\mathrm{O}"),defineMacro("\\plusmn","\\pm"),defineMacro("\\rarr","\\rightarrow"),defineMacro("\\rArr","\\Rightarrow"),defineMacro("\\Rarr","\\Rightarrow"),defineMacro("\\real","\\Re"),defineMacro("\\reals","\\mathbb{R}"),defineMacro("\\Reals","\\mathbb{R}"),defineMacro("\\Rho","\\mathrm{P}"),defineMacro("\\sdot","\\cdot"),defineMacro("\\sect","\\S"),defineMacro("\\spades","\\spadesuit"),defineMacro("\\sub","\\subset"),defineMacro("\\sube","\\subseteq"),defineMacro("\\supe","\\supseteq"),defineMacro("\\Tau","\\mathrm{T}"),defineMacro("\\thetasym","\\vartheta"),defineMacro("\\weierp","\\wp"),defineMacro("\\Zeta","\\mathrm{Z}"),defineMacro("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),defineMacro("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),defineMacro("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),defineMacro("\\bra","\\mathinner{\\langle{#1}|}"),defineMacro("\\ket","\\mathinner{|{#1}\\rangle}"),defineMacro("\\braket","\\mathinner{\\langle{#1}\\rangle}"),defineMacro("\\Bra","\\left\\langle#1\\right|"),defineMacro("\\Ket","\\left|#1\\right\\rangle");var braketHelper=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=t=>n=>{e&&(n.macros.set("|",o),i.length&&n.macros.set("\\|",s));var a=t;return!t&&i.length&&"|"===n.future().text&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([...a,...c,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};defineMacro("\\bra@ket",braketHelper(!1)),defineMacro("\\bra@set",braketHelper(!0)),defineMacro("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),defineMacro("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),defineMacro("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),defineMacro("\\angln","{\\angl n}"),defineMacro("\\blue","\\textcolor{##6495ed}{#1}"),defineMacro("\\orange","\\textcolor{##ffa500}{#1}"),defineMacro("\\pink","\\textcolor{##ff00af}{#1}"),defineMacro("\\red","\\textcolor{##df0030}{#1}"),defineMacro("\\green","\\textcolor{##28ae7b}{#1}"),defineMacro("\\gray","\\textcolor{gray}{#1}"),defineMacro("\\purple","\\textcolor{##9d38bd}{#1}"),defineMacro("\\blueA","\\textcolor{##ccfaff}{#1}"),defineMacro("\\blueB","\\textcolor{##80f6ff}{#1}"),defineMacro("\\blueC","\\textcolor{##63d9ea}{#1}"),defineMacro("\\blueD","\\textcolor{##11accd}{#1}"),defineMacro("\\blueE","\\textcolor{##0c7f99}{#1}"),defineMacro("\\tealA","\\textcolor{##94fff5}{#1}"),defineMacro("\\tealB","\\textcolor{##26edd5}{#1}"),defineMacro("\\tealC","\\textcolor{##01d1c1}{#1}"),defineMacro("\\tealD","\\textcolor{##01a995}{#1}"),defineMacro("\\tealE","\\textcolor{##208170}{#1}"),defineMacro("\\greenA","\\textcolor{##b6ffb0}{#1}"),defineMacro("\\greenB","\\textcolor{##8af281}{#1}"),defineMacro("\\greenC","\\textcolor{##74cf70}{#1}"),defineMacro("\\greenD","\\textcolor{##1fab54}{#1}"),defineMacro("\\greenE","\\textcolor{##0d923f}{#1}"),defineMacro("\\goldA","\\textcolor{##ffd0a9}{#1}"),defineMacro("\\goldB","\\textcolor{##ffbb71}{#1}"),defineMacro("\\goldC","\\textcolor{##ff9c39}{#1}"),defineMacro("\\goldD","\\textcolor{##e07d10}{#1}"),defineMacro("\\goldE","\\textcolor{##a75a05}{#1}"),defineMacro("\\redA","\\textcolor{##fca9a9}{#1}"),defineMacro("\\redB","\\textcolor{##ff8482}{#1}"),defineMacro("\\redC","\\textcolor{##f9685d}{#1}"),defineMacro("\\redD","\\textcolor{##e84d39}{#1}"),defineMacro("\\redE","\\textcolor{##bc2612}{#1}"),defineMacro("\\maroonA","\\textcolor{##ffbde0}{#1}"),defineMacro("\\maroonB","\\textcolor{##ff92c6}{#1}"),defineMacro("\\maroonC","\\textcolor{##ed5fa6}{#1}"),defineMacro("\\maroonD","\\textcolor{##ca337c}{#1}"),defineMacro("\\maroonE","\\textcolor{##9e034e}{#1}"),defineMacro("\\purpleA","\\textcolor{##ddd7ff}{#1}"),defineMacro("\\purpleB","\\textcolor{##c6b9fc}{#1}"),defineMacro("\\purpleC","\\textcolor{##aa87ff}{#1}"),defineMacro("\\purpleD","\\textcolor{##7854ab}{#1}"),defineMacro("\\purpleE","\\textcolor{##543b78}{#1}"),defineMacro("\\mintA","\\textcolor{##f5f9e8}{#1}"),defineMacro("\\mintB","\\textcolor{##edf2df}{#1}"),defineMacro("\\mintC","\\textcolor{##e0e5cc}{#1}"),defineMacro("\\grayA","\\textcolor{##f6f7f7}{#1}"),defineMacro("\\grayB","\\textcolor{##f0f1f2}{#1}"),defineMacro("\\grayC","\\textcolor{##e3e5e6}{#1}"),defineMacro("\\grayD","\\textcolor{##d6d8da}{#1}"),defineMacro("\\grayE","\\textcolor{##babec2}{#1}"),defineMacro("\\grayF","\\textcolor{##888d93}{#1}"),defineMacro("\\grayG","\\textcolor{##626569}{#1}"),defineMacro("\\grayH","\\textcolor{##3b3e40}{#1}"),defineMacro("\\grayI","\\textcolor{##21242c}{#1}"),defineMacro("\\kaBlue","\\textcolor{##314453}{#1}"),defineMacro("\\kaGreen","\\textcolor{##71B307}{#1}");var implicitCommands={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class MacroExpander{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Namespace(macros,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Lexer(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:r,end:n}=this.consumeArg(["]"]))}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new Token("EOF",n.loc)),this.pushTokens(r),new Token("",SourceLocation.range(t,n))}consumeSpaces(){for(;" "===this.future().text;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r,i=this.future(),a=0,o=0;do{if(r=this.popToken(),t.push(r),"{"===r.text)++a;else if("}"===r.text){if(-1===--a)throw new ParseError("Extra }",r)}else if("EOF"===r.text)throw new ParseError("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",r);if(e&&n)if((0===a||1===a&&"{"===e[o])&&r.text===e[o]){if(++o===e.length){t.splice(-o,o);break}}else o=0}while(0!==a||n);return"{"===i.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:r}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new ParseError("The length of delimiters doesn't match the number of args!");for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new ParseError("Use of the macro doesn't match its definition",i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new ParseError("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(null==r||e&&r.unexpandable){if(e&&null==r&&"\\"===n[0]&&!this.isDefined(n))throw new ParseError("Undefined control sequence: "+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs)for(var o=(i=i.slice()).length-1;o>=0;--o){var s=i[o];if("#"===s.text){if(0===o)throw new ParseError("Incomplete placeholder at end of macro body",s);if("#"===(s=i[--o]).text)i.splice(o+1,1);else{if(!/^[1-9]$/.test(s.text))throw new ParseError("Not a valid argument number",s);i.splice(o,2,...a[+s.text-1])}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Token(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(!1===this.expandOnce(!0)){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var n=this.lexer.catcodes[e];if(null!=n&&13!==n)return}var r="function"==typeof t?t(this):t;if("string"==typeof r){var i=0;if(-1!==r.indexOf("#"))for(var a=r.replace(/##/g,"");-1!==a.indexOf("#"+(i+1));)++i;for(var o=new Lexer(r,this.settings),s=[],l=o.lex();"EOF"!==l.text;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||functions.hasOwnProperty(e)||symbols.math.hasOwnProperty(e)||symbols.text.hasOwnProperty(e)||implicitCommands.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:functions.hasOwnProperty(e)&&!functions[e].primitive}}var unicodeSubRegEx=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,uSubsAndSups=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9",ₐ:"a",ₑ:"e",ₕ:"h",ᵢ:"i",ⱼ:"j",ₖ:"k",ₗ:"l",ₘ:"m",ₙ:"n",ₒ:"o",ₚ:"p",ᵣ:"r",ₛ:"s",ₜ:"t",ᵤ:"u",ᵥ:"v",ₓ:"x",ᵦ:"β",ᵧ:"γ",ᵨ:"ρ",ᵩ:"ϕ",ᵪ:"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9",ᴬ:"A",ᴮ:"B",ᴰ:"D",ᴱ:"E",ᴳ:"G",ᴴ:"H",ᴵ:"I",ᴶ:"J",ᴷ:"K",ᴸ:"L",ᴹ:"M",ᴺ:"N",ᴼ:"O",ᴾ:"P",ᴿ:"R",ᵀ:"T",ᵁ:"U",ⱽ:"V",ᵂ:"W",ᵃ:"a",ᵇ:"b",ᶜ:"c",ᵈ:"d",ᵉ:"e",ᶠ:"f",ᵍ:"g",ʰ:"h",ⁱ:"i",ʲ:"j",ᵏ:"k",ˡ:"l",ᵐ:"m",ⁿ:"n",ᵒ:"o",ᵖ:"p",ʳ:"r",ˢ:"s",ᵗ:"t",ᵘ:"u",ᵛ:"v",ʷ:"w",ˣ:"x",ʸ:"y",ᶻ:"z",ᵝ:"β",ᵞ:"γ",ᵟ:"δ",ᵠ:"ϕ",ᵡ:"χ",ᶿ:"θ"}),unicodeAccents={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},unicodeSymbols={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let Parser$1=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new MacroExpander(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new ParseError("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Token("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var i=this.fetch();if(-1!==e.endOfExpression.indexOf(i.text)||n&&i.text===n||t&&functions[i.text]&&functions[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;"internal"!==a.type&&r.push(a)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t,n=-1,r=0;r<e.length;r++)if("infix"===e[r].type){if(-1!==n)throw new ParseError("only one infix operator per group",e[r].token);n=r,t=e[r].replaceWith}if(-1!==n&&t){var i,a,o=e.slice(0,n),s=e.slice(n+1);return i=1===o.length&&"ordgroup"===o[0].type?o[0]:{type:"ordgroup",mode:this.mode,body:o},a=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},["\\\\abovefrac"===t?this.callFunction(t,[i,e[n],a],[]):this.callFunction(t,[i,a],[])]}return e}handleSupSubscript(e){var t,n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();do{var i;t=this.parseGroup(e)}while("internal"===(null==(i=t)?void 0:i.type));if(!t)throw new ParseError("Expected group after '"+r+"'",n);return t}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var r={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t,n,r=this.parseGroup("atom",e);if("internal"===(null==r?void 0:r.type)||"text"===this.mode)return r;for(;;){this.consumeSpaces();var i=this.fetch();if("\\limits"===i.text||"\\nolimits"===i.text){if(r&&"op"===r.type){var a="\\limits"===i.text;r.limits=a,r.alwaysHandleSupSub=!0}else{if(!r||"operatorname"!==r.type)throw new ParseError("Limit controls must follow a math operator",i);r.alwaysHandleSupSub&&(r.limits="\\limits"===i.text)}this.consume()}else if("^"===i.text){if(t)throw new ParseError("Double superscript",i);t=this.handleSupSubscript("superscript")}else if("_"===i.text){if(n)throw new ParseError("Double subscript",i);n=this.handleSupSubscript("subscript")}else if("'"===i.text){if(t)throw new ParseError("Double superscript",i);var o={type:"textord",mode:this.mode,text:"\\prime"},s=[o];for(this.consume();"'"===this.fetch().text;)s.push(o),this.consume();"^"===this.fetch().text&&s.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:s}}else{if(!uSubsAndSups[i.text])break;var l=unicodeSubRegEx.test(i.text),c=[];for(c.push(new Token(uSubsAndSups[i.text])),this.consume();;){var u=this.fetch().text;if(!uSubsAndSups[u]||unicodeSubRegEx.test(u)!==l)break;c.unshift(new Token(uSubsAndSups[u])),this.consume()}var d=this.subparse(c);l?n={type:"ordgroup",mode:"math",body:d}:t={type:"ordgroup",mode:"math",body:d}}}return t||n?{type:"supsub",mode:this.mode,base:r,sup:t,sub:n}:r}parseFunction(e,t){var n=this.fetch(),r=n.text,i=functions[r];if(!i)return null;if(this.consume(),t&&"atom"!==t&&!i.allowedInArgument)throw new ParseError("Got function '"+r+"' with no arguments"+(t?" as "+t:""),n);if("text"===this.mode&&!i.allowedInText)throw new ParseError("Can't use function '"+r+"' in text mode",n);if("math"===this.mode&&!1===i.allowedInMath)throw new ParseError("Can't use function '"+r+"' in math mode",n);var{args:a,optArgs:o}=this.parseArguments(r,i);return this.callFunction(r,a,o,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=functions[e];if(o&&o.handler)return o.handler(a,t,n);throw new ParseError("No function handler for "+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var r=[],i=[],a=0;a<n;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;(t.primitive&&null==o||"sqrt"===t.type&&1===a&&null==i[0])&&(o="primitive");var l=this.parseGroupOfType("argument to '"+e+"'",o,s);if(s)i.push(l);else{if(null==l)throw new ParseError("Null argument, please report this as a bug");r.push(l)}}return{args:r,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,t);case"hbox":var r=this.parseArgumentGroup(n,"text");return null!=r?{type:"styling",mode:r.mode,body:[r],style:"text"}:null;case"raw":var i=this.parseStringGroup("raw",n);return null!=i?{type:"raw",mode:"text",string:i.text}:null;case"primitive":if(n)throw new ParseError("A primitive argument cannot be optional");var a=this.parseGroup(e);if(null==a)throw new ParseError("Expected group as "+e,this.fetch());return a;case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new ParseError("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(null==n)return null;for(var r,i="";"EOF"!==(r=this.fetch()).text;)i+=r.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(e,t){for(var n,r=this.fetch(),i=r,a="";"EOF"!==(n=this.fetch()).text&&e.test(a+n.text);)a+=(i=n).text,this.consume();if(""===a)throw new ParseError("Invalid "+t+": '"+r.text+"'",r);return r.range(i,a)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new ParseError("Invalid color: '"+t.text+"'",t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;!e&&0===t.text.length&&(t.text="0pt",n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new ParseError("Invalid size: '"+t.text+"'",t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!validUnit(i))throw new ParseError("Invalid unit: '"+i.unit+"'",t);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(null==n)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var a={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n,r=this.fetch(),i=r.text;if("{"===i||"\\begingroup"===i){this.consume();var a="{"===i?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),n={type:"ordgroup",mode:this.mode,loc:SourceLocation.range(r,s),body:o,semisimple:"\\begingroup"===i||void 0}}else if(null==(n=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===i[0]&&!implicitCommands.hasOwnProperty(i)){if(this.settings.throwOnError)throw new ParseError("Undefined control sequence: "+i,r);n=this.formatUnsupportedCmd(i),this.consume()}return n}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n],i=r.text;"-"===i&&"-"===e[n+1].text&&(n+1<t&&"-"===e[n+2].text?(e.splice(n,3,{type:"textord",mode:"text",loc:SourceLocation.range(r,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:SourceLocation.range(r,e[n+1]),text:"--"}),t-=1)),("'"===i||"`"===i)&&e[n+1].text===i&&(e.splice(n,2,{type:"textord",mode:"text",loc:SourceLocation.range(r,e[n+1]),text:i+i}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r="*"===n.charAt(0);if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new ParseError("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:r}}unicodeSymbols.hasOwnProperty(t[0])&&!symbols[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=unicodeSymbols[t[0]]+t.slice(1));var i,a=combiningDiacriticalMarksEndRegex.exec(t);if(a&&("i"===(t=t.substring(0,a.index))?t="ı":"j"===t&&(t="ȷ")),symbols[this.mode][t]){this.settings.strict&&"math"===this.mode&&extraLatin.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var o,s=symbols[this.mode][t].group,l=SourceLocation.range(e);if(ATOMS.hasOwnProperty(s)){var c=s;o={type:"atom",mode:this.mode,family:c,loc:l,text:t}}else o={type:s,mode:this.mode,loc:l,text:t};i=o}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(supportedCodepoint(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:SourceLocation.range(e),text:t}}if(this.consume(),a)for(var u=0;u<a[0].length;u++){var d=a[0][u];if(!unicodeAccents[d])throw new ParseError("Unknown accent ' "+d+"'",e);var m=unicodeAccents[d][this.mode]||unicodeAccents[d].text;if(!m)throw new ParseError("Accent "+d+" unsupported in "+this.mode+" mode",e);i={type:"accent",mode:this.mode,loc:SourceLocation.range(e),label:m,isStretchy:!1,isShifty:!0,base:i}}return i}};Parser$1.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var parseTree=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Parser$1(e,t);delete n.gullet.macros.current["\\df@tag"];var r=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new ParseError("\\tag works only in display equations");r=[{type:"tag",mode:"text",body:r,tag:n.subparse([new Token("\\df@tag")])}]}return r},render=function(e,t,n){t.textContent="";var r=renderToDomTree(e,n).toNode();t.appendChild(r)};typeof document<"u"&&"CSS1Compat"!==document.compatMode&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),render=function(){throw new ParseError("KaTeX doesn't work in quirks mode.")});var renderToString=function(e,t){return renderToDomTree(e,t).toMarkup()},generateParseTree=function(e,t){var n=new Settings(t);return parseTree(e,n)},renderError=function(e,t,n){if(n.throwOnError||!(e instanceof ParseError))throw e;var r=buildCommon.makeSpan(["katex-error"],[new SymbolNode(t)]);return r.setAttribute("title",e.toString()),r.setAttribute("style","color:"+n.errorColor),r},renderToDomTree=function(e,t){var n=new Settings(t);try{var r=parseTree(e,n);return buildTree(r,e,n)}catch(t){return renderError(t,e,n)}},renderToHTMLTree=function(e,t){var n=new Settings(t);try{var r=parseTree(e,n);return buildHTMLTree(r,e,n)}catch(t){return renderError(t,e,n)}},version="0.16.25",__domTree={Span,Anchor,SymbolNode,SvgNode,PathNode,LineNode},katex={version,render,renderToString,ParseError,SETTINGS_SCHEMA,__parse:generateParseTree,__renderToDomTree:renderToDomTree,__renderToHTMLTree:renderToHTMLTree,__setFontMetrics:setFontMetrics,__defineSymbol:defineSymbol,__defineFunction:defineFunction,__defineMacro:defineMacro,__domTree};const katex$1=Object.freeze(Object.defineProperty({__proto__:null,ParseError,SETTINGS_SCHEMA,__defineFunction:defineFunction,__defineMacro:defineMacro,__defineSymbol:defineSymbol,__domTree,__parse:generateParseTree,__renderToDomTree:renderToDomTree,__renderToHTMLTree:renderToHTMLTree,__setFontMetrics:setFontMetrics,default:katex,get render(){return render},renderToString,version},Symbol.toStringTag,{value:"Module"})),emptyOptions$3={},emptyClasses=[];function rehypeKatex(e){const t=e||emptyOptions$3;return function(e,n){visitParents(e,"element",function(e,r){const i=Array.isArray(e.properties.className)?e.properties.className:emptyClasses,a=i.includes("language-math"),o=i.includes("math-display"),s=i.includes("math-inline");let l=o;if(!a&&!o&&!s)return;let c=r[r.length-1],u=e;if("code"===e.tagName&&a&&c&&"element"===c.type&&"pre"===c.tagName&&(u=c,c=r[r.length-2],l=!0),!c)return;const d=toText(u,{whitespace:"pre"});let m;try{m=katex.renderToString(d,{...t,displayMode:l,throwOnError:!0})}catch(i){const a=i,o=a.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...r,e],cause:a,place:e.position,ruleId:o,source:"rehype-katex"});try{m=katex.renderToString(d,{...t,displayMode:l,strict:"ignore",throwOnError:!1})}catch{m=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(i)},children:[{type:"text",value:d}]}]}}"string"==typeof m&&(m=fromHtmlIsomorphic(m).children);const h=c.children.indexOf(u);return c.children.splice(h,1,...m),SKIP})}}function location(e){const t=String(e),n=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){const e=n[n.length-1],r=next(t,e),i=-1===r?t.length+1:r+1;if(e===i)break;n.push(i)}const r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(void 0===i){const e=next(t,n[r-1]);i=-1===e?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}function next(e,t){const n=e.indexOf("\r",t),r=e.indexOf("\n",t);return-1===r?n:-1===n||n+1===r?r:n<r?n:r}const own$4={}.hasOwnProperty,proto=Object.prototype;function fromParse5(e,t){const n=t||{};return one$2({file:n.file||void 0,location:!1,schema:"svg"===n.space?svg$2:html$6,verbose:n.verbose||!1},e)}function one$2(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},patch$1(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:all$3(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const t=String(e.file),r=location(t),i=r.toPoint(0),a=r.toPoint(t.length);n.position={start:i,end:a}}return n}case"#documentType":return n={type:"doctype"},patch$1(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},patch$1(e,r,n),n}default:return n=element$3(e,t),n}}function all$3(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=one$2(e,t[n]);r.push(i)}return r}function element$3(e,t){const n=e.schema;e.schema=t.namespaceURI===webNamespaces.svg?svg$2:html$6;let r=-1;const i={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;own$4.call(proto,n)||(i[n]=e.value)}const a=("svg"===e.schema.space?s$1:h$1)(t.tagName,i,all$3(e,t.childNodes));if(patch$1(e,t,a),"template"===a.tagName){const n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&position(r.startTag),o=r&&r.endTag&&position(r.endTag),s=one$2(e,n.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=n,a}function patch$1(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=createLocation(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function createLocation(e,t,n){const r=position(n);if("element"===t.type){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const r={};let i;if(n.attrs)for(i in n.attrs)own$4.call(n.attrs,i)&&(r[find$2(e.schema,i).property]=position(n.attrs[i]));n.startTag;const a=position(n.startTag),o=n.endTag?position(n.endTag):void 0,s={opening:a};o&&(s.closing=o),s.properties=r,t.data={position:s}}}return r}function position(e){const t=point({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=point({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function point(e){return e.line&&e.column?e:void 0}class Schema{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function merge(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Schema(n,r,t)}function normalize(e){return e.toLowerCase()}Schema.prototype.property={},Schema.prototype.normal={},Schema.prototype.space=null;class Info{constructor(e,t){this.property=e,this.attribute=t}}Info.prototype.space=null,Info.prototype.boolean=!1,Info.prototype.booleanish=!1,Info.prototype.overloadedBoolean=!1,Info.prototype.number=!1,Info.prototype.commaSeparated=!1,Info.prototype.spaceSeparated=!1,Info.prototype.commaOrSpaceSeparated=!1,Info.prototype.mustUseProperty=!1,Info.prototype.defined=!1;let powers=0;const boolean=increment(),booleanish=increment(),overloadedBoolean=increment(),number$1=increment(),spaceSeparated=increment(),commaSeparated=increment(),commaOrSpaceSeparated=increment();function increment(){return 2**++powers}const types=Object.freeze(Object.defineProperty({__proto__:null,boolean,booleanish,commaOrSpaceSeparated,commaSeparated,number:number$1,overloadedBoolean,spaceSeparated},Symbol.toStringTag,{value:"Module"})),checks=Object.keys(types);class DefinedInfo extends Info{constructor(e,t,n,r){let i=-1;if(super(e,t),mark(this,"space",r),"number"==typeof n)for(;++i<checks.length;){const e=checks[i];mark(this,checks[i],(n&types[e])===types[e])}}}function mark(e,t,n){n&&(e[t]=n)}DefinedInfo.prototype.defined=!0;const own$3={}.hasOwnProperty;function create(e){const t={},n={};let r;for(r in e.properties)if(own$3.call(e.properties,r)){const i=e.properties[r],a=new DefinedInfo(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[normalize(r)]=r,n[normalize(a.attribute)]=r}return new Schema(t,n,e.space)}const xlink=create({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),xml=create({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function caseSensitiveTransform(e,t){return t in e?e[t]:t}function caseInsensitiveTransform(e,t){return caseSensitiveTransform(e,t.toLowerCase())}const xmlns=create({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:caseInsensitiveTransform,properties:{xmlns:null,xmlnsXLink:null}}),aria=create({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:booleanish,ariaAutoComplete:null,ariaBusy:booleanish,ariaChecked:booleanish,ariaColCount:number$1,ariaColIndex:number$1,ariaColSpan:number$1,ariaControls:spaceSeparated,ariaCurrent:null,ariaDescribedBy:spaceSeparated,ariaDetails:null,ariaDisabled:booleanish,ariaDropEffect:spaceSeparated,ariaErrorMessage:null,ariaExpanded:booleanish,ariaFlowTo:spaceSeparated,ariaGrabbed:booleanish,ariaHasPopup:null,ariaHidden:booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:spaceSeparated,ariaLevel:number$1,ariaLive:null,ariaModal:booleanish,ariaMultiLine:booleanish,ariaMultiSelectable:booleanish,ariaOrientation:null,ariaOwns:spaceSeparated,ariaPlaceholder:null,ariaPosInSet:number$1,ariaPressed:booleanish,ariaReadOnly:booleanish,ariaRelevant:null,ariaRequired:booleanish,ariaRoleDescription:spaceSeparated,ariaRowCount:number$1,ariaRowIndex:number$1,ariaRowSpan:number$1,ariaSelected:booleanish,ariaSetSize:number$1,ariaSort:null,ariaValueMax:number$1,ariaValueMin:number$1,ariaValueNow:number$1,ariaValueText:null,role:null}}),html$3=create({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:caseInsensitiveTransform,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:commaSeparated,acceptCharset:spaceSeparated,accessKey:spaceSeparated,action:null,allow:null,allowFullScreen:boolean,allowPaymentRequest:boolean,allowUserMedia:boolean,alt:null,as:null,async:boolean,autoCapitalize:null,autoComplete:spaceSeparated,autoFocus:boolean,autoPlay:boolean,blocking:spaceSeparated,capture:null,charSet:null,checked:boolean,cite:null,className:spaceSeparated,cols:number$1,colSpan:null,content:null,contentEditable:booleanish,controls:boolean,controlsList:spaceSeparated,coords:number$1|commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:boolean,defer:boolean,dir:null,dirName:null,disabled:boolean,download:overloadedBoolean,draggable:booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:boolean,formTarget:null,headers:spaceSeparated,height:number$1,hidden:boolean,high:number$1,href:null,hrefLang:null,htmlFor:spaceSeparated,httpEquiv:spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:boolean,inputMode:null,integrity:null,is:null,isMap:boolean,itemId:null,itemProp:spaceSeparated,itemRef:spaceSeparated,itemScope:boolean,itemType:spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:boolean,low:number$1,manifest:null,max:null,maxLength:number$1,media:null,method:null,min:null,minLength:number$1,multiple:boolean,muted:boolean,name:null,nonce:null,noModule:boolean,noValidate:boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:boolean,optimum:number$1,pattern:null,ping:spaceSeparated,placeholder:null,playsInline:boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:boolean,referrerPolicy:null,rel:spaceSeparated,required:boolean,reversed:boolean,rows:number$1,rowSpan:number$1,sandbox:spaceSeparated,scope:null,scoped:boolean,seamless:boolean,selected:boolean,shadowRootClonable:boolean,shadowRootDelegatesFocus:boolean,shadowRootMode:null,shape:null,size:number$1,sizes:null,slot:null,span:number$1,spellCheck:booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:number$1,step:null,style:null,tabIndex:number$1,target:null,title:null,translate:null,type:null,typeMustMatch:boolean,useMap:null,value:booleanish,width:number$1,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:spaceSeparated,axis:null,background:null,bgColor:null,border:number$1,borderColor:null,bottomMargin:number$1,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:boolean,declare:boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:number$1,leftMargin:number$1,link:null,longDesc:null,lowSrc:null,marginHeight:number$1,marginWidth:number$1,noResize:boolean,noHref:boolean,noShade:boolean,noWrap:boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:number$1,rules:null,scheme:null,scrolling:booleanish,standby:null,summary:null,text:null,topMargin:number$1,valueType:null,version:null,vAlign:null,vLink:null,vSpace:number$1,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:boolean,disableRemotePlayback:boolean,prefix:null,property:null,results:number$1,security:null,unselectable:null}}),svg$1=create({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:caseSensitiveTransform,properties:{about:commaOrSpaceSeparated,accentHeight:number$1,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:number$1,amplitude:number$1,arabicForm:null,ascent:number$1,attributeName:null,attributeType:null,azimuth:number$1,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:number$1,by:null,calcMode:null,capHeight:number$1,className:spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:number$1,diffuseConstant:number$1,direction:null,display:null,dur:null,divisor:number$1,dominantBaseline:null,download:boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:number$1,enableBackground:null,end:null,event:null,exponent:number$1,externalResourcesRequired:null,fill:null,fillOpacity:number$1,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:commaSeparated,g2:commaSeparated,glyphName:commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:number$1,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:number$1,horizOriginX:number$1,horizOriginY:number$1,id:null,ideographic:number$1,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:number$1,k:number$1,k1:number$1,k2:number$1,k3:number$1,k4:number$1,kernelMatrix:commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:number$1,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:number$1,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:number$1,overlineThickness:number$1,paintOrder:null,panose1:null,path:null,pathLength:number$1,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:number$1,pointsAtY:number$1,pointsAtZ:number$1,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:commaOrSpaceSeparated,rev:commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:commaOrSpaceSeparated,requiredFeatures:commaOrSpaceSeparated,requiredFonts:commaOrSpaceSeparated,requiredFormats:commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:number$1,specularExponent:number$1,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:number$1,strikethroughThickness:number$1,string:null,stroke:null,strokeDashArray:commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:number$1,strokeOpacity:number$1,strokeWidth:null,style:null,surfaceScale:number$1,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:commaOrSpaceSeparated,tabIndex:number$1,tableValues:null,target:null,targetX:number$1,targetY:number$1,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:number$1,underlineThickness:number$1,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:number$1,values:null,vAlphabetic:number$1,vMathematical:number$1,vectorEffect:null,vHanging:number$1,vIdeographic:number$1,version:null,vertAdvY:number$1,vertOriginX:number$1,vertOriginY:number$1,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:number$1,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),valid=/^data[-\w.:]+$/i,dash=/-[a-z]/g,cap=/[A-Z]/g;function find(e,t){const n=normalize(t);let r=t,i=Info;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&valid.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(dash,camelcase);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!dash.test(e)){let n=e.replace(cap,kebab);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=DefinedInfo}return new i(r,t)}function kebab(e){return"-"+e.toLowerCase()}function camelcase(e){return e.charAt(1).toUpperCase()}const html$2=merge([xml,xlink,xmlns,aria,html$3],"html"),svg=merge([xml,xlink,xmlns,aria,svg$1],"svg"),emptyOptions$2={},own$2={}.hasOwnProperty,one$1=zwitch("type",{handlers:{root:root$2,element:element$2,text:text$2,comment:comment$2,doctype:doctype$2}});function toParse5(e,t){const n=(t||emptyOptions$2).space;return one$1(e,"svg"===n?svg:html$2)}function root$2(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=all$2(e.children,n,t),patch(e,n),n}function fragment(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=all$2(e.children,n,t),patch(e,n),n}function doctype$2(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return patch(e,t),t}function text$2(e){const t={nodeName:"#text",value:e.value,parentNode:null};return patch(e,t),t}function comment$2(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return patch(e,t),t}function element$2(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=svg);const i=[];let a;if(e.properties)for(a in e.properties)if("children"!==a&&own$2.call(e.properties,a)){const t=createProperty(r,a,e.properties[a]);t&&i.push(t)}const o=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:webNamespaces[o],childNodes:[],parentNode:null};return s.childNodes=all$2(e.children,s,r),patch(e,s),"template"===e.tagName&&e.content&&(s.content=fragment(e.content,r)),s}function createProperty(e,t,n){const r=find(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?stringify$2(n):stringify$1(n));const i={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=webNamespaces[r.space]}return i}function all$2(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=one$1(e[r],n);a.parentNode=t,i.push(a)}return i}function patch(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const htmlVoidElements=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],UNDEFINED_CODE_POINTS=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),REPLACEMENT_CHARACTER="�";var CODE_POINTS;!function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"}(CODE_POINTS||(CODE_POINTS={}));const SEQUENCES={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function isSurrogate(e){return e>=55296&&e<=57343}function isSurrogatePair(e){return e>=56320&&e<=57343}function getSurrogatePairCodePoint(e,t){return 1024*(e-55296)+9216+t}function isControlCodePoint(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function isUndefinedCodePoint(e){return e>=64976&&e<=65007||UNDEFINED_CODE_POINTS.has(e)}var ERR;!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(ERR||(ERR={}));const DEFAULT_BUFFER_WATERLINE=65536;class Preprocessor{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=DEFAULT_BUFFER_WATERLINE,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:i}=this,a=r+t,o=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(isSurrogatePair(t))return this.pos++,this._addGap(),getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,CODE_POINTS.EOF;return this._err(ERR.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,CODE_POINTS.EOF;const n=this.html.charCodeAt(t);return n===CODE_POINTS.CARRIAGE_RETURN?CODE_POINTS.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,CODE_POINTS.EOF;let e=this.html.charCodeAt(this.pos);return e===CODE_POINTS.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,CODE_POINTS.LINE_FEED):e===CODE_POINTS.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,isSurrogate(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===CODE_POINTS.LINE_FEED||e===CODE_POINTS.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){isControlCodePoint(e)?this._err(ERR.controlCharacterInInputStream):isUndefinedCodePoint(e)&&this._err(ERR.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var TokenType;function getTokenAttr(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(TokenType||(TokenType={}));const htmlDecodeTree=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),decodeMap=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function replaceCodePoint(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=decodeMap.get(e))&&void 0!==t?t:e}var CharCodes;!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(CharCodes||(CharCodes={}));const TO_LOWER_BIT=32;var BinTrieFlags,EntityDecoderState,DecodingMode,NS,ATTRS,DOCUMENT_MODE,TAG_NAMES,TAG_ID;function isNumber(e){return e>=CharCodes.ZERO&&e<=CharCodes.NINE}function isHexadecimalCharacter(e){return e>=CharCodes.UPPER_A&&e<=CharCodes.UPPER_F||e>=CharCodes.LOWER_A&&e<=CharCodes.LOWER_F}function isAsciiAlphaNumeric$1(e){return e>=CharCodes.UPPER_A&&e<=CharCodes.UPPER_Z||e>=CharCodes.LOWER_A&&e<=CharCodes.LOWER_Z||isNumber(e)}function isEntityInAttributeInvalidEnd(e){return e===CharCodes.EQUALS||isAsciiAlphaNumeric$1(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(BinTrieFlags||(BinTrieFlags={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(EntityDecoderState||(EntityDecoderState={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=EntityDecoderState.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=DecodingMode.Strict}startEntity(e){this.decodeMode=e,this.state=EntityDecoderState.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case EntityDecoderState.EntityStart:return e.charCodeAt(t)===CharCodes.NUM?(this.state=EntityDecoderState.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=EntityDecoderState.NamedEntity,this.stateNamedEntity(e,t));case EntityDecoderState.NumericStart:return this.stateNumericStart(e,t);case EntityDecoderState.NumericDecimal:return this.stateNumericDecimal(e,t);case EntityDecoderState.NumericHex:return this.stateNumericHex(e,t);case EntityDecoderState.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|TO_LOWER_BIT)===CharCodes.LOWER_X?(this.state=EntityDecoderState.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=EntityDecoderState.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!isNumber(r)&&!isHexadecimalCharacter(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!isNumber(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===CharCodes.SEMI)this.consumed+=1;else if(this.decodeMode===DecodingMode.Strict)return 0;return this.emitCodePoint(replaceCodePoint(this.result),this.consumed),this.errors&&(e!==CharCodes.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],i=(r&BinTrieFlags.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=determineBranch(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===DecodingMode.Attribute&&(0===i||isEntityInAttributeInvalidEnd(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&BinTrieFlags.VALUE_LENGTH)>>14,0!==i){if(a===CharCodes.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==DecodingMode.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~BinTrieFlags.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case EntityDecoderState.NamedEntity:return 0===this.result||this.decodeMode===DecodingMode.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case EntityDecoderState.NumericDecimal:return this.emitNumericEntity(0,2);case EntityDecoderState.NumericHex:return this.emitNumericEntity(0,3);case EntityDecoderState.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case EntityDecoderState.EntityStart:return 0}}}function determineBranch(e,t,n,r){const i=(t&BinTrieFlags.BRANCH_LENGTH)>>7,a=t&BinTrieFlags.JUMP_TABLE;if(0===i)return 0!==a&&r===a?n:-1;if(a){const t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){const t=o+s>>>1,n=e[t];if(n<r)o=t+1;else{if(!(n>r))return e[t+i];s=t-1}}return-1}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(NS||(NS={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(ATTRS||(ATTRS={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(DOCUMENT_MODE||(DOCUMENT_MODE={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(TAG_NAMES||(TAG_NAMES={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"}(TAG_ID||(TAG_ID={}));const TAG_NAME_TO_ID=new Map([[TAG_NAMES.A,TAG_ID.A],[TAG_NAMES.ADDRESS,TAG_ID.ADDRESS],[TAG_NAMES.ANNOTATION_XML,TAG_ID.ANNOTATION_XML],[TAG_NAMES.APPLET,TAG_ID.APPLET],[TAG_NAMES.AREA,TAG_ID.AREA],[TAG_NAMES.ARTICLE,TAG_ID.ARTICLE],[TAG_NAMES.ASIDE,TAG_ID.ASIDE],[TAG_NAMES.B,TAG_ID.B],[TAG_NAMES.BASE,TAG_ID.BASE],[TAG_NAMES.BASEFONT,TAG_ID.BASEFONT],[TAG_NAMES.BGSOUND,TAG_ID.BGSOUND],[TAG_NAMES.BIG,TAG_ID.BIG],[TAG_NAMES.BLOCKQUOTE,TAG_ID.BLOCKQUOTE],[TAG_NAMES.BODY,TAG_ID.BODY],[TAG_NAMES.BR,TAG_ID.BR],[TAG_NAMES.BUTTON,TAG_ID.BUTTON],[TAG_NAMES.CAPTION,TAG_ID.CAPTION],[TAG_NAMES.CENTER,TAG_ID.CENTER],[TAG_NAMES.CODE,TAG_ID.CODE],[TAG_NAMES.COL,TAG_ID.COL],[TAG_NAMES.COLGROUP,TAG_ID.COLGROUP],[TAG_NAMES.DD,TAG_ID.DD],[TAG_NAMES.DESC,TAG_ID.DESC],[TAG_NAMES.DETAILS,TAG_ID.DETAILS],[TAG_NAMES.DIALOG,TAG_ID.DIALOG],[TAG_NAMES.DIR,TAG_ID.DIR],[TAG_NAMES.DIV,TAG_ID.DIV],[TAG_NAMES.DL,TAG_ID.DL],[TAG_NAMES.DT,TAG_ID.DT],[TAG_NAMES.EM,TAG_ID.EM],[TAG_NAMES.EMBED,TAG_ID.EMBED],[TAG_NAMES.FIELDSET,TAG_ID.FIELDSET],[TAG_NAMES.FIGCAPTION,TAG_ID.FIGCAPTION],[TAG_NAMES.FIGURE,TAG_ID.FIGURE],[TAG_NAMES.FONT,TAG_ID.FONT],[TAG_NAMES.FOOTER,TAG_ID.FOOTER],[TAG_NAMES.FOREIGN_OBJECT,TAG_ID.FOREIGN_OBJECT],[TAG_NAMES.FORM,TAG_ID.FORM],[TAG_NAMES.FRAME,TAG_ID.FRAME],[TAG_NAMES.FRAMESET,TAG_ID.FRAMESET],[TAG_NAMES.H1,TAG_ID.H1],[TAG_NAMES.H2,TAG_ID.H2],[TAG_NAMES.H3,TAG_ID.H3],[TAG_NAMES.H4,TAG_ID.H4],[TAG_NAMES.H5,TAG_ID.H5],[TAG_NAMES.H6,TAG_ID.H6],[TAG_NAMES.HEAD,TAG_ID.HEAD],[TAG_NAMES.HEADER,TAG_ID.HEADER],[TAG_NAMES.HGROUP,TAG_ID.HGROUP],[TAG_NAMES.HR,TAG_ID.HR],[TAG_NAMES.HTML,TAG_ID.HTML],[TAG_NAMES.I,TAG_ID.I],[TAG_NAMES.IMG,TAG_ID.IMG],[TAG_NAMES.IMAGE,TAG_ID.IMAGE],[TAG_NAMES.INPUT,TAG_ID.INPUT],[TAG_NAMES.IFRAME,TAG_ID.IFRAME],[TAG_NAMES.KEYGEN,TAG_ID.KEYGEN],[TAG_NAMES.LABEL,TAG_ID.LABEL],[TAG_NAMES.LI,TAG_ID.LI],[TAG_NAMES.LINK,TAG_ID.LINK],[TAG_NAMES.LISTING,TAG_ID.LISTING],[TAG_NAMES.MAIN,TAG_ID.MAIN],[TAG_NAMES.MALIGNMARK,TAG_ID.MALIGNMARK],[TAG_NAMES.MARQUEE,TAG_ID.MARQUEE],[TAG_NAMES.MATH,TAG_ID.MATH],[TAG_NAMES.MENU,TAG_ID.MENU],[TAG_NAMES.META,TAG_ID.META],[TAG_NAMES.MGLYPH,TAG_ID.MGLYPH],[TAG_NAMES.MI,TAG_ID.MI],[TAG_NAMES.MO,TAG_ID.MO],[TAG_NAMES.MN,TAG_ID.MN],[TAG_NAMES.MS,TAG_ID.MS],[TAG_NAMES.MTEXT,TAG_ID.MTEXT],[TAG_NAMES.NAV,TAG_ID.NAV],[TAG_NAMES.NOBR,TAG_ID.NOBR],[TAG_NAMES.NOFRAMES,TAG_ID.NOFRAMES],[TAG_NAMES.NOEMBED,TAG_ID.NOEMBED],[TAG_NAMES.NOSCRIPT,TAG_ID.NOSCRIPT],[TAG_NAMES.OBJECT,TAG_ID.OBJECT],[TAG_NAMES.OL,TAG_ID.OL],[TAG_NAMES.OPTGROUP,TAG_ID.OPTGROUP],[TAG_NAMES.OPTION,TAG_ID.OPTION],[TAG_NAMES.P,TAG_ID.P],[TAG_NAMES.PARAM,TAG_ID.PARAM],[TAG_NAMES.PLAINTEXT,TAG_ID.PLAINTEXT],[TAG_NAMES.PRE,TAG_ID.PRE],[TAG_NAMES.RB,TAG_ID.RB],[TAG_NAMES.RP,TAG_ID.RP],[TAG_NAMES.RT,TAG_ID.RT],[TAG_NAMES.RTC,TAG_ID.RTC],[TAG_NAMES.RUBY,TAG_ID.RUBY],[TAG_NAMES.S,TAG_ID.S],[TAG_NAMES.SCRIPT,TAG_ID.SCRIPT],[TAG_NAMES.SEARCH,TAG_ID.SEARCH],[TAG_NAMES.SECTION,TAG_ID.SECTION],[TAG_NAMES.SELECT,TAG_ID.SELECT],[TAG_NAMES.SOURCE,TAG_ID.SOURCE],[TAG_NAMES.SMALL,TAG_ID.SMALL],[TAG_NAMES.SPAN,TAG_ID.SPAN],[TAG_NAMES.STRIKE,TAG_ID.STRIKE],[TAG_NAMES.STRONG,TAG_ID.STRONG],[TAG_NAMES.STYLE,TAG_ID.STYLE],[TAG_NAMES.SUB,TAG_ID.SUB],[TAG_NAMES.SUMMARY,TAG_ID.SUMMARY],[TAG_NAMES.SUP,TAG_ID.SUP],[TAG_NAMES.TABLE,TAG_ID.TABLE],[TAG_NAMES.TBODY,TAG_ID.TBODY],[TAG_NAMES.TEMPLATE,TAG_ID.TEMPLATE],[TAG_NAMES.TEXTAREA,TAG_ID.TEXTAREA],[TAG_NAMES.TFOOT,TAG_ID.TFOOT],[TAG_NAMES.TD,TAG_ID.TD],[TAG_NAMES.TH,TAG_ID.TH],[TAG_NAMES.THEAD,TAG_ID.THEAD],[TAG_NAMES.TITLE,TAG_ID.TITLE],[TAG_NAMES.TR,TAG_ID.TR],[TAG_NAMES.TRACK,TAG_ID.TRACK],[TAG_NAMES.TT,TAG_ID.TT],[TAG_NAMES.U,TAG_ID.U],[TAG_NAMES.UL,TAG_ID.UL],[TAG_NAMES.SVG,TAG_ID.SVG],[TAG_NAMES.VAR,TAG_ID.VAR],[TAG_NAMES.WBR,TAG_ID.WBR],[TAG_NAMES.XMP,TAG_ID.XMP]]);function getTagID(e){var t;return null!==(t=TAG_NAME_TO_ID.get(e))&&void 0!==t?t:TAG_ID.UNKNOWN}const $$3=TAG_ID,SPECIAL_ELEMENTS={[NS.HTML]:new Set([$$3.ADDRESS,$$3.APPLET,$$3.AREA,$$3.ARTICLE,$$3.ASIDE,$$3.BASE,$$3.BASEFONT,$$3.BGSOUND,$$3.BLOCKQUOTE,$$3.BODY,$$3.BR,$$3.BUTTON,$$3.CAPTION,$$3.CENTER,$$3.COL,$$3.COLGROUP,$$3.DD,$$3.DETAILS,$$3.DIR,$$3.DIV,$$3.DL,$$3.DT,$$3.EMBED,$$3.FIELDSET,$$3.FIGCAPTION,$$3.FIGURE,$$3.FOOTER,$$3.FORM,$$3.FRAME,$$3.FRAMESET,$$3.H1,$$3.H2,$$3.H3,$$3.H4,$$3.H5,$$3.H6,$$3.HEAD,$$3.HEADER,$$3.HGROUP,$$3.HR,$$3.HTML,$$3.IFRAME,$$3.IMG,$$3.INPUT,$$3.LI,$$3.LINK,$$3.LISTING,$$3.MAIN,$$3.MARQUEE,$$3.MENU,$$3.META,$$3.NAV,$$3.NOEMBED,$$3.NOFRAMES,$$3.NOSCRIPT,$$3.OBJECT,$$3.OL,$$3.P,$$3.PARAM,$$3.PLAINTEXT,$$3.PRE,$$3.SCRIPT,$$3.SECTION,$$3.SELECT,$$3.SOURCE,$$3.STYLE,$$3.SUMMARY,$$3.TABLE,$$3.TBODY,$$3.TD,$$3.TEMPLATE,$$3.TEXTAREA,$$3.TFOOT,$$3.TH,$$3.THEAD,$$3.TITLE,$$3.TR,$$3.TRACK,$$3.UL,$$3.WBR,$$3.XMP]),[NS.MATHML]:new Set([$$3.MI,$$3.MO,$$3.MN,$$3.MS,$$3.MTEXT,$$3.ANNOTATION_XML]),[NS.SVG]:new Set([$$3.TITLE,$$3.FOREIGN_OBJECT,$$3.DESC]),[NS.XLINK]:new Set,[NS.XML]:new Set,[NS.XMLNS]:new Set},NUMBERED_HEADERS=new Set([$$3.H1,$$3.H2,$$3.H3,$$3.H4,$$3.H5,$$3.H6]);var State;TAG_NAMES.STYLE,TAG_NAMES.SCRIPT,TAG_NAMES.XMP,TAG_NAMES.IFRAME,TAG_NAMES.NOEMBED,TAG_NAMES.NOFRAMES,TAG_NAMES.PLAINTEXT,function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"}(State||(State={}));const TokenizerMode={DATA:State.DATA,RCDATA:State.RCDATA,RAWTEXT:State.RAWTEXT,SCRIPT_DATA:State.SCRIPT_DATA,PLAINTEXT:State.PLAINTEXT,CDATA_SECTION:State.CDATA_SECTION};function isAsciiDigit(e){return e>=CODE_POINTS.DIGIT_0&&e<=CODE_POINTS.DIGIT_9}function isAsciiUpper(e){return e>=CODE_POINTS.LATIN_CAPITAL_A&&e<=CODE_POINTS.LATIN_CAPITAL_Z}function isAsciiLower(e){return e>=CODE_POINTS.LATIN_SMALL_A&&e<=CODE_POINTS.LATIN_SMALL_Z}function isAsciiLetter(e){return isAsciiLower(e)||isAsciiUpper(e)}function isAsciiAlphaNumeric(e){return isAsciiLetter(e)||isAsciiDigit(e)}function toAsciiLower(e){return e+32}function isWhitespace(e){return e===CODE_POINTS.SPACE||e===CODE_POINTS.LINE_FEED||e===CODE_POINTS.TABULATION||e===CODE_POINTS.FORM_FEED}function isScriptDataDoubleEscapeSequenceEnd(e){return isWhitespace(e)||e===CODE_POINTS.SOLIDUS||e===CODE_POINTS.GREATER_THAN_SIGN}function getErrorForNumericCharacterReference(e){return e===CODE_POINTS.NULL?ERR.nullCharacterReference:e>1114111?ERR.characterReferenceOutsideUnicodeRange:isSurrogate(e)?ERR.surrogateCharacterReference:isUndefinedCodePoint(e)?ERR.noncharacterCharacterReference:isControlCodePoint(e)||e===CODE_POINTS.CARRIAGE_RETURN?ERR.controlCharacterReference:null}class Tokenizer{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=State.DATA,this.returnState=State.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Preprocessor(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new EntityDecoder(htmlDecodeTree,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ERR.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(ERR.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=getErrorForNumericCharacterReference(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:TokenType.START_TAG,tagName:"",tagID:TAG_ID.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:TokenType.END_TAG,tagName:"",tagID:TAG_ID.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:TokenType.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:TokenType.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;null===getTokenAttr(n,this.currentAttr.name)?(n.attrs.push(this.currentAttr),n.location&&this.currentLocation&&((null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(ERR.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=getTagID(e.tagName),e.type===TokenType.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(ERR.endTagWithAttributes),e.selfClosing&&this._err(ERR.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case TokenType.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case TokenType.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case TokenType.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:TokenType.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=isWhitespace(e)?TokenType.WHITESPACE_CHARACTER:e===CODE_POINTS.NULL?TokenType.NULL_CHARACTER:TokenType.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(TokenType.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=State.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?DecodingMode.Attribute:DecodingMode.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===State.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===State.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===State.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case State.DATA:this._stateData(e);break;case State.RCDATA:this._stateRcdata(e);break;case State.RAWTEXT:this._stateRawtext(e);break;case State.SCRIPT_DATA:this._stateScriptData(e);break;case State.PLAINTEXT:this._statePlaintext(e);break;case State.TAG_OPEN:this._stateTagOpen(e);break;case State.END_TAG_OPEN:this._stateEndTagOpen(e);break;case State.TAG_NAME:this._stateTagName(e);break;case State.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case State.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case State.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case State.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case State.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case State.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case State.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case State.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case State.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case State.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case State.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case State.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case State.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case State.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case State.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case State.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case State.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case State.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case State.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case State.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case State.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case State.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case State.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case State.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case State.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case State.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case State.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case State.BOGUS_COMMENT:this._stateBogusComment(e);break;case State.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case State.COMMENT_START:this._stateCommentStart(e);break;case State.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case State.COMMENT:this._stateComment(e);break;case State.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case State.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case State.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case State.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case State.COMMENT_END:this._stateCommentEnd(e);break;case State.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case State.DOCTYPE:this._stateDoctype(e);break;case State.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case State.DOCTYPE_NAME:this._stateDoctypeName(e);break;case State.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case State.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case State.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case State.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case State.CDATA_SECTION:this._stateCdataSection(e);break;case State.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case State.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case State.CHARACTER_REFERENCE:this._stateCharacterReference();break;case State.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case CODE_POINTS.LESS_THAN_SIGN:this.state=State.TAG_OPEN;break;case CODE_POINTS.AMPERSAND:this._startCharacterReference();break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this._emitCodePoint(e);break;case CODE_POINTS.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case CODE_POINTS.AMPERSAND:this._startCharacterReference();break;case CODE_POINTS.LESS_THAN_SIGN:this.state=State.RCDATA_LESS_THAN_SIGN;break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break;case CODE_POINTS.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case CODE_POINTS.LESS_THAN_SIGN:this.state=State.RAWTEXT_LESS_THAN_SIGN;break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break;case CODE_POINTS.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case CODE_POINTS.LESS_THAN_SIGN:this.state=State.SCRIPT_DATA_LESS_THAN_SIGN;break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break;case CODE_POINTS.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break;case CODE_POINTS.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(isAsciiLetter(e))this._createStartTagToken(),this.state=State.TAG_NAME,this._stateTagName(e);else switch(e){case CODE_POINTS.EXCLAMATION_MARK:this.state=State.MARKUP_DECLARATION_OPEN;break;case CODE_POINTS.SOLIDUS:this.state=State.END_TAG_OPEN;break;case CODE_POINTS.QUESTION_MARK:this._err(ERR.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=State.BOGUS_COMMENT,this._stateBogusComment(e);break;case CODE_POINTS.EOF:this._err(ERR.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(ERR.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=State.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(isAsciiLetter(e))this._createEndTagToken(),this.state=State.TAG_NAME,this._stateTagName(e);else switch(e){case CODE_POINTS.GREATER_THAN_SIGN:this._err(ERR.missingEndTagName),this.state=State.DATA;break;case CODE_POINTS.EOF:this._err(ERR.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(ERR.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=State.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:this.state=State.BEFORE_ATTRIBUTE_NAME;break;case CODE_POINTS.SOLIDUS:this.state=State.SELF_CLOSING_START_TAG;break;case CODE_POINTS.GREATER_THAN_SIGN:this.state=State.DATA,this.emitCurrentTagToken();break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),t.tagName+=REPLACEMENT_CHARACTER;break;case CODE_POINTS.EOF:this._err(ERR.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(isAsciiUpper(e)?toAsciiLower(e):e)}}_stateRcdataLessThanSign(e){e===CODE_POINTS.SOLIDUS?this.state=State.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=State.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){isAsciiLetter(e)?(this.state=State.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=State.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=State.BEFORE_ATTRIBUTE_NAME,!1;case CODE_POINTS.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=State.SELF_CLOSING_START_TAG,!1;case CODE_POINTS.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=State.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=State.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===CODE_POINTS.SOLIDUS?this.state=State.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=State.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){isAsciiLetter(e)?(this.state=State.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=State.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=State.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case CODE_POINTS.SOLIDUS:this.state=State.SCRIPT_DATA_END_TAG_OPEN;break;case CODE_POINTS.EXCLAMATION_MARK:this.state=State.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=State.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){isAsciiLetter(e)?(this.state=State.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=State.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=State.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===CODE_POINTS.HYPHEN_MINUS?(this.state=State.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=State.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===CODE_POINTS.HYPHEN_MINUS?(this.state=State.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=State.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case CODE_POINTS.HYPHEN_MINUS:this.state=State.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case CODE_POINTS.LESS_THAN_SIGN:this.state=State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break;case CODE_POINTS.EOF:this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case CODE_POINTS.HYPHEN_MINUS:this.state=State.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case CODE_POINTS.LESS_THAN_SIGN:this.state=State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this.state=State.SCRIPT_DATA_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break;case CODE_POINTS.EOF:this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=State.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case CODE_POINTS.HYPHEN_MINUS:this._emitChars("-");break;case CODE_POINTS.LESS_THAN_SIGN:this.state=State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case CODE_POINTS.GREATER_THAN_SIGN:this.state=State.SCRIPT_DATA,this._emitChars(">");break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this.state=State.SCRIPT_DATA_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break;case CODE_POINTS.EOF:this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=State.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===CODE_POINTS.SOLIDUS?this.state=State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:isAsciiLetter(e)?(this._emitChars("<"),this.state=State.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=State.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){isAsciiLetter(e)?(this.state=State.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=State.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=State.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(SEQUENCES.SCRIPT,!1)&&isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(SEQUENCES.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<SEQUENCES.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=State.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case CODE_POINTS.HYPHEN_MINUS:this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case CODE_POINTS.LESS_THAN_SIGN:this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break;case CODE_POINTS.EOF:this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case CODE_POINTS.HYPHEN_MINUS:this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case CODE_POINTS.LESS_THAN_SIGN:this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break;case CODE_POINTS.EOF:this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case CODE_POINTS.HYPHEN_MINUS:this._emitChars("-");break;case CODE_POINTS.LESS_THAN_SIGN:this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case CODE_POINTS.GREATER_THAN_SIGN:this.state=State.SCRIPT_DATA,this._emitChars(">");break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break;case CODE_POINTS.EOF:this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===CODE_POINTS.SOLIDUS?(this.state=State.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(SEQUENCES.SCRIPT,!1)&&isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(SEQUENCES.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<SEQUENCES.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=State.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.SOLIDUS:case CODE_POINTS.GREATER_THAN_SIGN:case CODE_POINTS.EOF:this.state=State.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case CODE_POINTS.EQUALS_SIGN:this._err(ERR.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=State.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=State.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:case CODE_POINTS.SOLIDUS:case CODE_POINTS.GREATER_THAN_SIGN:case CODE_POINTS.EOF:this._leaveAttrName(),this.state=State.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case CODE_POINTS.EQUALS_SIGN:this._leaveAttrName(),this.state=State.BEFORE_ATTRIBUTE_VALUE;break;case CODE_POINTS.QUOTATION_MARK:case CODE_POINTS.APOSTROPHE:case CODE_POINTS.LESS_THAN_SIGN:this._err(ERR.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this.currentAttr.name+=REPLACEMENT_CHARACTER;break;default:this.currentAttr.name+=String.fromCodePoint(isAsciiUpper(e)?toAsciiLower(e):e)}}_stateAfterAttributeName(e){switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.SOLIDUS:this.state=State.SELF_CLOSING_START_TAG;break;case CODE_POINTS.EQUALS_SIGN:this.state=State.BEFORE_ATTRIBUTE_VALUE;break;case CODE_POINTS.GREATER_THAN_SIGN:this.state=State.DATA,this.emitCurrentTagToken();break;case CODE_POINTS.EOF:this._err(ERR.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=State.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.QUOTATION_MARK:this.state=State.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case CODE_POINTS.APOSTROPHE:this.state=State.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case CODE_POINTS.GREATER_THAN_SIGN:this._err(ERR.missingAttributeValue),this.state=State.DATA,this.emitCurrentTagToken();break;default:this.state=State.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case CODE_POINTS.QUOTATION_MARK:this.state=State.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case CODE_POINTS.AMPERSAND:this._startCharacterReference();break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this.currentAttr.value+=REPLACEMENT_CHARACTER;break;case CODE_POINTS.EOF:this._err(ERR.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case CODE_POINTS.APOSTROPHE:this.state=State.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case CODE_POINTS.AMPERSAND:this._startCharacterReference();break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this.currentAttr.value+=REPLACEMENT_CHARACTER;break;case CODE_POINTS.EOF:this._err(ERR.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:this._leaveAttrValue(),this.state=State.BEFORE_ATTRIBUTE_NAME;break;case CODE_POINTS.AMPERSAND:this._startCharacterReference();break;case CODE_POINTS.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=State.DATA,this.emitCurrentTagToken();break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this.currentAttr.value+=REPLACEMENT_CHARACTER;break;case CODE_POINTS.QUOTATION_MARK:case CODE_POINTS.APOSTROPHE:case CODE_POINTS.LESS_THAN_SIGN:case CODE_POINTS.EQUALS_SIGN:case CODE_POINTS.GRAVE_ACCENT:this._err(ERR.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case CODE_POINTS.EOF:this._err(ERR.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:this._leaveAttrValue(),this.state=State.BEFORE_ATTRIBUTE_NAME;break;case CODE_POINTS.SOLIDUS:this._leaveAttrValue(),this.state=State.SELF_CLOSING_START_TAG;break;case CODE_POINTS.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=State.DATA,this.emitCurrentTagToken();break;case CODE_POINTS.EOF:this._err(ERR.eofInTag),this._emitEOFToken();break;default:this._err(ERR.missingWhitespaceBetweenAttributes),this.state=State.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case CODE_POINTS.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=State.DATA,this.emitCurrentTagToken();break;case CODE_POINTS.EOF:this._err(ERR.eofInTag),this._emitEOFToken();break;default:this._err(ERR.unexpectedSolidusInTag),this.state=State.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case CODE_POINTS.GREATER_THAN_SIGN:this.state=State.DATA,this.emitCurrentComment(t);break;case CODE_POINTS.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),t.data+=REPLACEMENT_CHARACTER;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(SEQUENCES.DASH_DASH,!0)?(this._createCommentToken(SEQUENCES.DASH_DASH.length+1),this.state=State.COMMENT_START):this._consumeSequenceIfMatch(SEQUENCES.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(SEQUENCES.DOCTYPE.length+1),this.state=State.DOCTYPE):this._consumeSequenceIfMatch(SEQUENCES.CDATA_START,!0)?this.inForeignNode?this.state=State.CDATA_SECTION:(this._err(ERR.cdataInHtmlContent),this._createCommentToken(SEQUENCES.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=State.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ERR.incorrectlyOpenedComment),this._createCommentToken(2),this.state=State.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case CODE_POINTS.HYPHEN_MINUS:this.state=State.COMMENT_START_DASH;break;case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.abruptClosingOfEmptyComment),this.state=State.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=State.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case CODE_POINTS.HYPHEN_MINUS:this.state=State.COMMENT_END;break;case CODE_POINTS.GREATER_THAN_SIGN:this._err(ERR.abruptClosingOfEmptyComment),this.state=State.DATA,this.emitCurrentComment(t);break;case CODE_POINTS.EOF:this._err(ERR.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=State.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case CODE_POINTS.HYPHEN_MINUS:this.state=State.COMMENT_END_DASH;break;case CODE_POINTS.LESS_THAN_SIGN:t.data+="<",this.state=State.COMMENT_LESS_THAN_SIGN;break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),t.data+=REPLACEMENT_CHARACTER;break;case CODE_POINTS.EOF:this._err(ERR.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case CODE_POINTS.EXCLAMATION_MARK:t.data+="!",this.state=State.COMMENT_LESS_THAN_SIGN_BANG;break;case CODE_POINTS.LESS_THAN_SIGN:t.data+="<";break;default:this.state=State.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===CODE_POINTS.HYPHEN_MINUS?this.state=State.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=State.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===CODE_POINTS.HYPHEN_MINUS?this.state=State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=State.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==CODE_POINTS.GREATER_THAN_SIGN&&e!==CODE_POINTS.EOF&&this._err(ERR.nestedComment),this.state=State.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case CODE_POINTS.HYPHEN_MINUS:this.state=State.COMMENT_END;break;case CODE_POINTS.EOF:this._err(ERR.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=State.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case CODE_POINTS.GREATER_THAN_SIGN:this.state=State.DATA,this.emitCurrentComment(t);break;case CODE_POINTS.EXCLAMATION_MARK:this.state=State.COMMENT_END_BANG;break;case CODE_POINTS.HYPHEN_MINUS:t.data+="-";break;case CODE_POINTS.EOF:this._err(ERR.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=State.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case CODE_POINTS.HYPHEN_MINUS:t.data+="--!",this.state=State.COMMENT_END_DASH;break;case CODE_POINTS.GREATER_THAN_SIGN:this._err(ERR.incorrectlyClosedComment),this.state=State.DATA,this.emitCurrentComment(t);break;case CODE_POINTS.EOF:this._err(ERR.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=State.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:this.state=State.BEFORE_DOCTYPE_NAME;break;case CODE_POINTS.GREATER_THAN_SIGN:this.state=State.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(ERR.missingWhitespaceBeforeDoctypeName),this.state=State.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(isAsciiUpper(e))this._createDoctypeToken(String.fromCharCode(toAsciiLower(e))),this.state=State.DOCTYPE_NAME;else switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),this._createDoctypeToken(REPLACEMENT_CHARACTER),this.state=State.DOCTYPE_NAME;break;case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=State.DATA;break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=State.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:this.state=State.AFTER_DOCTYPE_NAME;break;case CODE_POINTS.GREATER_THAN_SIGN:this.state=State.DATA,this.emitCurrentDoctype(t);break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),t.name+=REPLACEMENT_CHARACTER;break;case CODE_POINTS.EOF:this._err(ERR.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(isAsciiUpper(e)?toAsciiLower(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.GREATER_THAN_SIGN:this.state=State.DATA,this.emitCurrentDoctype(t);break;case CODE_POINTS.EOF:this._err(ERR.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(SEQUENCES.PUBLIC,!1)?this.state=State.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(SEQUENCES.SYSTEM,!1)?this.state=State.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ERR.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:this.state=State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case CODE_POINTS.QUOTATION_MARK:this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case CODE_POINTS.APOSTROPHE:this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case CODE_POINTS.GREATER_THAN_SIGN:this._err(ERR.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=State.DATA,this.emitCurrentDoctype(t);break;case CODE_POINTS.EOF:this._err(ERR.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.QUOTATION_MARK:t.publicId="",this.state=State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case CODE_POINTS.APOSTROPHE:t.publicId="",this.state=State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case CODE_POINTS.GREATER_THAN_SIGN:this._err(ERR.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=State.DATA,this.emitCurrentDoctype(t);break;case CODE_POINTS.EOF:this._err(ERR.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case CODE_POINTS.QUOTATION_MARK:this.state=State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),t.publicId+=REPLACEMENT_CHARACTER;break;case CODE_POINTS.GREATER_THAN_SIGN:this._err(ERR.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=State.DATA;break;case CODE_POINTS.EOF:this._err(ERR.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case CODE_POINTS.APOSTROPHE:this.state=State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),t.publicId+=REPLACEMENT_CHARACTER;break;case CODE_POINTS.GREATER_THAN_SIGN:this._err(ERR.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=State.DATA;break;case CODE_POINTS.EOF:this._err(ERR.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:this.state=State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case CODE_POINTS.GREATER_THAN_SIGN:this.state=State.DATA,this.emitCurrentDoctype(t);break;case CODE_POINTS.QUOTATION_MARK:this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case CODE_POINTS.APOSTROPHE:this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case CODE_POINTS.EOF:this._err(ERR.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=State.DATA;break;case CODE_POINTS.QUOTATION_MARK:t.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case CODE_POINTS.APOSTROPHE:t.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case CODE_POINTS.EOF:this._err(ERR.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:this.state=State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case CODE_POINTS.QUOTATION_MARK:this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case CODE_POINTS.APOSTROPHE:this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case CODE_POINTS.GREATER_THAN_SIGN:this._err(ERR.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=State.DATA,this.emitCurrentDoctype(t);break;case CODE_POINTS.EOF:this._err(ERR.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.QUOTATION_MARK:t.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case CODE_POINTS.APOSTROPHE:t.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case CODE_POINTS.GREATER_THAN_SIGN:this._err(ERR.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=State.DATA,this.emitCurrentDoctype(t);break;case CODE_POINTS.EOF:this._err(ERR.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case CODE_POINTS.QUOTATION_MARK:this.state=State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),t.systemId+=REPLACEMENT_CHARACTER;break;case CODE_POINTS.GREATER_THAN_SIGN:this._err(ERR.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=State.DATA;break;case CODE_POINTS.EOF:this._err(ERR.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case CODE_POINTS.APOSTROPHE:this.state=State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter),t.systemId+=REPLACEMENT_CHARACTER;break;case CODE_POINTS.GREATER_THAN_SIGN:this._err(ERR.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=State.DATA;break;case CODE_POINTS.EOF:this._err(ERR.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=State.DATA;break;case CODE_POINTS.EOF:this._err(ERR.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ERR.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case CODE_POINTS.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=State.DATA;break;case CODE_POINTS.NULL:this._err(ERR.unexpectedNullCharacter);break;case CODE_POINTS.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case CODE_POINTS.RIGHT_SQUARE_BRACKET:this.state=State.CDATA_SECTION_BRACKET;break;case CODE_POINTS.EOF:this._err(ERR.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===CODE_POINTS.RIGHT_SQUARE_BRACKET?this.state=State.CDATA_SECTION_END:(this._emitChars("]"),this.state=State.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case CODE_POINTS.GREATER_THAN_SIGN:this.state=State.DATA;break;case CODE_POINTS.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=State.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(CODE_POINTS.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&isAsciiAlphaNumeric(this.preprocessor.peek(1))?State.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){isAsciiAlphaNumeric(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===CODE_POINTS.SEMICOLON&&this._err(ERR.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const IMPLICIT_END_TAG_REQUIRED=new Set([TAG_ID.DD,TAG_ID.DT,TAG_ID.LI,TAG_ID.OPTGROUP,TAG_ID.OPTION,TAG_ID.P,TAG_ID.RB,TAG_ID.RP,TAG_ID.RT,TAG_ID.RTC]),IMPLICIT_END_TAG_REQUIRED_THOROUGHLY=new Set([...IMPLICIT_END_TAG_REQUIRED,TAG_ID.CAPTION,TAG_ID.COLGROUP,TAG_ID.TBODY,TAG_ID.TD,TAG_ID.TFOOT,TAG_ID.TH,TAG_ID.THEAD,TAG_ID.TR]),SCOPING_ELEMENTS_HTML=new Set([TAG_ID.APPLET,TAG_ID.CAPTION,TAG_ID.HTML,TAG_ID.MARQUEE,TAG_ID.OBJECT,TAG_ID.TABLE,TAG_ID.TD,TAG_ID.TEMPLATE,TAG_ID.TH]),SCOPING_ELEMENTS_HTML_LIST=new Set([...SCOPING_ELEMENTS_HTML,TAG_ID.OL,TAG_ID.UL]),SCOPING_ELEMENTS_HTML_BUTTON=new Set([...SCOPING_ELEMENTS_HTML,TAG_ID.BUTTON]),SCOPING_ELEMENTS_MATHML=new Set([TAG_ID.ANNOTATION_XML,TAG_ID.MI,TAG_ID.MN,TAG_ID.MO,TAG_ID.MS,TAG_ID.MTEXT]),SCOPING_ELEMENTS_SVG=new Set([TAG_ID.DESC,TAG_ID.FOREIGN_OBJECT,TAG_ID.TITLE]),TABLE_ROW_CONTEXT=new Set([TAG_ID.TR,TAG_ID.TEMPLATE,TAG_ID.HTML]),TABLE_BODY_CONTEXT=new Set([TAG_ID.TBODY,TAG_ID.TFOOT,TAG_ID.THEAD,TAG_ID.TEMPLATE,TAG_ID.HTML]),TABLE_CONTEXT=new Set([TAG_ID.TABLE,TAG_ID.TEMPLATE,TAG_ID.HTML]),TABLE_CELLS=new Set([TAG_ID.TD,TAG_ID.TH]);class OpenElementStack{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=TAG_ID.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===TAG_ID.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===NS.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==NS.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(NUMBERED_HEADERS,NS.HTML)}popUntilTableCellPopped(){this.popUntilPopped(TABLE_CELLS,NS.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(TABLE_CONTEXT,NS.HTML)}clearBackToTableBodyContext(){this.clearBackTo(TABLE_BODY_CONTEXT,NS.HTML)}clearBackToTableRowContext(){this.clearBackTo(TABLE_ROW_CONTEXT,NS.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===TAG_ID.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===TAG_ID.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case NS.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case NS.SVG:if(SCOPING_ELEMENTS_SVG.has(r))return!1;break;case NS.MATHML:if(SCOPING_ELEMENTS_MATHML.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,SCOPING_ELEMENTS_HTML)}hasInListItemScope(e){return this.hasInDynamicScope(e,SCOPING_ELEMENTS_HTML_LIST)}hasInButtonScope(e){return this.hasInDynamicScope(e,SCOPING_ELEMENTS_HTML_BUTTON)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case NS.HTML:if(NUMBERED_HEADERS.has(t))return!0;if(SCOPING_ELEMENTS_HTML.has(t))return!1;break;case NS.SVG:if(SCOPING_ELEMENTS_SVG.has(t))return!1;break;case NS.MATHML:if(SCOPING_ELEMENTS_MATHML.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===NS.HTML)switch(this.tagIDs[t]){case e:return!0;case TAG_ID.TABLE:case TAG_ID.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===NS.HTML)switch(this.tagIDs[e]){case TAG_ID.TBODY:case TAG_ID.THEAD:case TAG_ID.TFOOT:return!0;case TAG_ID.TABLE:case TAG_ID.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===NS.HTML)switch(this.tagIDs[t]){case e:return!0;case TAG_ID.OPTION:case TAG_ID.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}}const NOAH_ARK_CAPACITY=3;var EntryType;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(EntryType||(EntryType={}));const MARKER={type:EntryType.Marker};class FormattingElementList{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){const t=this.entries[e];if(t.type===EntryType.Marker)break;const{element:o}=t;if(this.treeAdapter.getTagName(o)===i&&this.treeAdapter.getNamespaceURI(o)===a){const t=this.treeAdapter.getAttrList(o);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<NOAH_ARK_CAPACITY)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<NOAH_ARK_CAPACITY)return;const r=new Map(t.map(e=>[e.name,e.value]));let i=0;for(let e=0;e<n.length;e++){const t=n[e];t.attrs.every(e=>r.get(e.name)===e.value)&&(i+=1,i>=NOAH_ARK_CAPACITY&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(MARKER)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:EntryType.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:EntryType.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(MARKER);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find(t=>t.type===EntryType.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===EntryType.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===EntryType.Element&&t.element===e)}}const defaultTreeAdapter={createDocument:()=>({nodeName:"#document",mode:DOCUMENT_MODE.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const i=e.childNodes.find(e=>"#documentType"===e.nodeName);if(i)i.name=t,i.publicId=n,i.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};defaultTreeAdapter.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(defaultTreeAdapter.isTextNode(n))return void(n.value+=t)}defaultTreeAdapter.appendChild(e,defaultTreeAdapter.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&defaultTreeAdapter.isTextNode(r)?r.value+=t:defaultTreeAdapter.insertBefore(e,defaultTreeAdapter.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},VALID_DOCTYPE_NAME="html",VALID_SYSTEM_ID="about:legacy-compat",QUIRKS_MODE_SYSTEM_ID="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",QUIRKS_MODE_PUBLIC_ID_PREFIXES=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES=[...QUIRKS_MODE_PUBLIC_ID_PREFIXES,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],QUIRKS_MODE_PUBLIC_IDS=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),LIMITED_QUIRKS_PUBLIC_ID_PREFIXES=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES=[...LIMITED_QUIRKS_PUBLIC_ID_PREFIXES,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function hasPrefix(e,t){return t.some(t=>e.startsWith(t))}function isConforming(e){return e.name===VALID_DOCTYPE_NAME&&null===e.publicId&&(null===e.systemId||e.systemId===VALID_SYSTEM_ID)}function getDocumentMode(e){if(e.name!==VALID_DOCTYPE_NAME)return DOCUMENT_MODE.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===QUIRKS_MODE_SYSTEM_ID)return DOCUMENT_MODE.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),QUIRKS_MODE_PUBLIC_IDS.has(n))return DOCUMENT_MODE.QUIRKS;let e=null===t?QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES:QUIRKS_MODE_PUBLIC_ID_PREFIXES;if(hasPrefix(n,e))return DOCUMENT_MODE.QUIRKS;if(e=null===t?LIMITED_QUIRKS_PUBLIC_ID_PREFIXES:LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES,hasPrefix(n,e))return DOCUMENT_MODE.LIMITED_QUIRKS}return DOCUMENT_MODE.NO_QUIRKS}const MIME_TYPES={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},DEFINITION_URL_ATTR="definitionurl",ADJUSTED_DEFINITION_URL_ATTR="definitionURL",SVG_ATTRS_ADJUSTMENT_MAP=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),XML_ATTRS_ADJUSTMENT_MAP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:NS.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:NS.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:NS.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:NS.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:NS.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:NS.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:NS.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:NS.XML}],["xml:space",{prefix:"xml",name:"space",namespace:NS.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:NS.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:NS.XMLNS}]]),SVG_TAG_NAMES_ADJUSTMENT_MAP=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),EXITS_FOREIGN_CONTENT=new Set([TAG_ID.B,TAG_ID.BIG,TAG_ID.BLOCKQUOTE,TAG_ID.BODY,TAG_ID.BR,TAG_ID.CENTER,TAG_ID.CODE,TAG_ID.DD,TAG_ID.DIV,TAG_ID.DL,TAG_ID.DT,TAG_ID.EM,TAG_ID.EMBED,TAG_ID.H1,TAG_ID.H2,TAG_ID.H3,TAG_ID.H4,TAG_ID.H5,TAG_ID.H6,TAG_ID.HEAD,TAG_ID.HR,TAG_ID.I,TAG_ID.IMG,TAG_ID.LI,TAG_ID.LISTING,TAG_ID.MENU,TAG_ID.META,TAG_ID.NOBR,TAG_ID.OL,TAG_ID.P,TAG_ID.PRE,TAG_ID.RUBY,TAG_ID.S,TAG_ID.SMALL,TAG_ID.SPAN,TAG_ID.STRONG,TAG_ID.STRIKE,TAG_ID.SUB,TAG_ID.SUP,TAG_ID.TABLE,TAG_ID.TT,TAG_ID.U,TAG_ID.UL,TAG_ID.VAR]);function causesExit(e){const t=e.tagID;return t===TAG_ID.FONT&&e.attrs.some(({name:e})=>e===ATTRS.COLOR||e===ATTRS.SIZE||e===ATTRS.FACE)||EXITS_FOREIGN_CONTENT.has(t)}function adjustTokenMathMLAttrs(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===DEFINITION_URL_ATTR){e.attrs[t].name=ADJUSTED_DEFINITION_URL_ATTR;break}}function adjustTokenSVGAttrs(e){for(let t=0;t<e.attrs.length;t++){const n=SVG_ATTRS_ADJUSTMENT_MAP.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function adjustTokenXMLAttrs(e){for(let t=0;t<e.attrs.length;t++){const n=XML_ATTRS_ADJUSTMENT_MAP.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function adjustTokenSVGTagName(e){const t=SVG_TAG_NAMES_ADJUSTMENT_MAP.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=getTagID(e.tagName))}function isMathMLTextIntegrationPoint(e,t){return t===NS.MATHML&&(e===TAG_ID.MI||e===TAG_ID.MO||e===TAG_ID.MN||e===TAG_ID.MS||e===TAG_ID.MTEXT)}function isHtmlIntegrationPoint(e,t,n){if(t===NS.MATHML&&e===TAG_ID.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===ATTRS.ENCODING){const t=n[e].value.toLowerCase();return t===MIME_TYPES.TEXT_HTML||t===MIME_TYPES.APPLICATION_XML}return t===NS.SVG&&(e===TAG_ID.FOREIGN_OBJECT||e===TAG_ID.DESC||e===TAG_ID.TITLE)}function isIntegrationPoint(e,t,n,r){return(!r||r===NS.HTML)&&isHtmlIntegrationPoint(e,t,n)||(!r||r===NS.MATHML)&&isMathMLTextIntegrationPoint(e,t)}const HIDDEN_INPUT_TYPE="hidden",AA_OUTER_LOOP_ITER=8,AA_INNER_LOOP_ITER=3;var InsertionMode;!function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(InsertionMode||(InsertionMode={}));const BASE_LOC={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},TABLE_STRUCTURE_TAGS=new Set([TAG_ID.TABLE,TAG_ID.TBODY,TAG_ID.TFOOT,TAG_ID.THEAD,TAG_ID.TR]),defaultParserOptions={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:defaultTreeAdapter,onParseError:null};class Parser{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=InsertionMode.INITIAL,this.originalInsertionMode=InsertionMode.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...defaultParserOptions,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=t??this.treeAdapter.createDocument(),this.tokenizer=new Tokenizer(this.options,this),this.activeFormattingElements=new FormattingElementList(this.treeAdapter),this.fragmentContextID=n?getTagID(this.treeAdapter.getTagName(n)):TAG_ID.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new OpenElementStack(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...defaultParserOptions,...t};e??(e=n.treeAdapter.createElement(TAG_NAMES.TEMPLATE,NS.HTML,[]));const r=n.treeAdapter.createElement("documentmock",NS.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===TAG_ID.TEMPLATE&&i.tmplInsertionModeStack.unshift(InsertionMode.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const i=null!==(r=e.location)&&void 0!==r?r:BASE_LOC,a={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(e,t,n){var r,i;null===(i=(r=this.treeAdapter).onItemPush)||void 0===i||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===NS.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,NS.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=InsertionMode.TEXT}switchToPlaintextParsing(){this.insertionMode=InsertionMode.TEXT,this.originalInsertionMode=InsertionMode.IN_BODY,this.tokenizer.state=TokenizerMode.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===TAG_NAMES.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===NS.HTML)switch(this.fragmentContextID){case TAG_ID.TITLE:case TAG_ID.TEXTAREA:this.tokenizer.state=TokenizerMode.RCDATA;break;case TAG_ID.STYLE:case TAG_ID.XMP:case TAG_ID.IFRAME:case TAG_ID.NOEMBED:case TAG_ID.NOFRAMES:case TAG_ID.NOSCRIPT:this.tokenizer.state=TokenizerMode.RAWTEXT;break;case TAG_ID.SCRIPT:this.tokenizer.state=TokenizerMode.SCRIPT_DATA;break;case TAG_ID.PLAINTEXT:this.tokenizer.state=TokenizerMode.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t??this.document,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,NS.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,NS.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(TAG_NAMES.HTML,NS.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,TAG_ID.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,a=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===TokenType.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==TAG_ID.SVG||this.treeAdapter.getTagName(t)!==TAG_NAMES.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==NS.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===TAG_ID.MGLYPH||e.tagID===TAG_ID.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,NS.HTML))}_processToken(e){switch(e.type){case TokenType.CHARACTER:this.onCharacter(e);break;case TokenType.NULL_CHARACTER:this.onNullCharacter(e);break;case TokenType.COMMENT:this.onComment(e);break;case TokenType.DOCTYPE:this.onDoctype(e);break;case TokenType.START_TAG:this._processStartTag(e);break;case TokenType.END_TAG:this.onEndTag(e);break;case TokenType.EOF:this.onEof(e);break;case TokenType.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return isIntegrationPoint(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex(e=>e.type===EntryType.Marker||this.openElements.contains(e.element));for(let n=-1===t?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=InsertionMode.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.P),this.openElements.popUntilTagNamePopped(TAG_ID.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case TAG_ID.TR:return void(this.insertionMode=InsertionMode.IN_ROW);case TAG_ID.TBODY:case TAG_ID.THEAD:case TAG_ID.TFOOT:return void(this.insertionMode=InsertionMode.IN_TABLE_BODY);case TAG_ID.CAPTION:return void(this.insertionMode=InsertionMode.IN_CAPTION);case TAG_ID.COLGROUP:return void(this.insertionMode=InsertionMode.IN_COLUMN_GROUP);case TAG_ID.TABLE:return void(this.insertionMode=InsertionMode.IN_TABLE);case TAG_ID.BODY:return void(this.insertionMode=InsertionMode.IN_BODY);case TAG_ID.FRAMESET:return void(this.insertionMode=InsertionMode.IN_FRAMESET);case TAG_ID.SELECT:return void this._resetInsertionModeForSelect(e);case TAG_ID.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case TAG_ID.HTML:return void(this.insertionMode=this.headElement?InsertionMode.AFTER_HEAD:InsertionMode.BEFORE_HEAD);case TAG_ID.TD:case TAG_ID.TH:if(e>0)return void(this.insertionMode=InsertionMode.IN_CELL);break;case TAG_ID.HEAD:if(e>0)return void(this.insertionMode=InsertionMode.IN_HEAD)}this.insertionMode=InsertionMode.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===TAG_ID.TEMPLATE)break;if(e===TAG_ID.TABLE)return void(this.insertionMode=InsertionMode.IN_SELECT_IN_TABLE)}this.insertionMode=InsertionMode.IN_SELECT}_isElementCausesFosterParenting(e){return TABLE_STRUCTURE_TAGS.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case TAG_ID.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===NS.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case TAG_ID.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return SPECIAL_ELEMENTS[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)characterInForeignContent(this,e);else switch(this.insertionMode){case InsertionMode.INITIAL:tokenInInitialMode(this,e);break;case InsertionMode.BEFORE_HTML:tokenBeforeHtml(this,e);break;case InsertionMode.BEFORE_HEAD:tokenBeforeHead(this,e);break;case InsertionMode.IN_HEAD:tokenInHead(this,e);break;case InsertionMode.IN_HEAD_NO_SCRIPT:tokenInHeadNoScript(this,e);break;case InsertionMode.AFTER_HEAD:tokenAfterHead(this,e);break;case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:characterInBody(this,e);break;case InsertionMode.TEXT:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:characterInTable(this,e);break;case InsertionMode.IN_TABLE_TEXT:characterInTableText(this,e);break;case InsertionMode.IN_COLUMN_GROUP:tokenInColumnGroup(this,e);break;case InsertionMode.AFTER_BODY:tokenAfterBody(this,e);break;case InsertionMode.AFTER_AFTER_BODY:tokenAfterAfterBody(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)nullCharacterInForeignContent(this,e);else switch(this.insertionMode){case InsertionMode.INITIAL:tokenInInitialMode(this,e);break;case InsertionMode.BEFORE_HTML:tokenBeforeHtml(this,e);break;case InsertionMode.BEFORE_HEAD:tokenBeforeHead(this,e);break;case InsertionMode.IN_HEAD:tokenInHead(this,e);break;case InsertionMode.IN_HEAD_NO_SCRIPT:tokenInHeadNoScript(this,e);break;case InsertionMode.AFTER_HEAD:tokenAfterHead(this,e);break;case InsertionMode.TEXT:this._insertCharacters(e);break;case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:characterInTable(this,e);break;case InsertionMode.IN_COLUMN_GROUP:tokenInColumnGroup(this,e);break;case InsertionMode.AFTER_BODY:tokenAfterBody(this,e);break;case InsertionMode.AFTER_AFTER_BODY:tokenAfterAfterBody(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)appendComment(this,e);else switch(this.insertionMode){case InsertionMode.INITIAL:case InsertionMode.BEFORE_HTML:case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_TEMPLATE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:appendComment(this,e);break;case InsertionMode.IN_TABLE_TEXT:tokenInTableText(this,e);break;case InsertionMode.AFTER_BODY:appendCommentToRootHtmlElement(this,e);break;case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:appendCommentToDocument(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case InsertionMode.INITIAL:doctypeInInitialMode(this,e);break;case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:this._err(e,ERR.misplacedDoctype);break;case InsertionMode.IN_TABLE_TEXT:tokenInTableText(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,ERR.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?startTagInForeignContent(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case InsertionMode.INITIAL:tokenInInitialMode(this,e);break;case InsertionMode.BEFORE_HTML:startTagBeforeHtml(this,e);break;case InsertionMode.BEFORE_HEAD:startTagBeforeHead(this,e);break;case InsertionMode.IN_HEAD:startTagInHead(this,e);break;case InsertionMode.IN_HEAD_NO_SCRIPT:startTagInHeadNoScript(this,e);break;case InsertionMode.AFTER_HEAD:startTagAfterHead(this,e);break;case InsertionMode.IN_BODY:startTagInBody(this,e);break;case InsertionMode.IN_TABLE:startTagInTable(this,e);break;case InsertionMode.IN_TABLE_TEXT:tokenInTableText(this,e);break;case InsertionMode.IN_CAPTION:startTagInCaption(this,e);break;case InsertionMode.IN_COLUMN_GROUP:startTagInColumnGroup(this,e);break;case InsertionMode.IN_TABLE_BODY:startTagInTableBody(this,e);break;case InsertionMode.IN_ROW:startTagInRow(this,e);break;case InsertionMode.IN_CELL:startTagInCell(this,e);break;case InsertionMode.IN_SELECT:startTagInSelect(this,e);break;case InsertionMode.IN_SELECT_IN_TABLE:startTagInSelectInTable(this,e);break;case InsertionMode.IN_TEMPLATE:startTagInTemplate(this,e);break;case InsertionMode.AFTER_BODY:startTagAfterBody(this,e);break;case InsertionMode.IN_FRAMESET:startTagInFrameset(this,e);break;case InsertionMode.AFTER_FRAMESET:startTagAfterFrameset(this,e);break;case InsertionMode.AFTER_AFTER_BODY:startTagAfterAfterBody(this,e);break;case InsertionMode.AFTER_AFTER_FRAMESET:startTagAfterAfterFrameset(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?endTagInForeignContent(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case InsertionMode.INITIAL:tokenInInitialMode(this,e);break;case InsertionMode.BEFORE_HTML:endTagBeforeHtml(this,e);break;case InsertionMode.BEFORE_HEAD:endTagBeforeHead(this,e);break;case InsertionMode.IN_HEAD:endTagInHead(this,e);break;case InsertionMode.IN_HEAD_NO_SCRIPT:endTagInHeadNoScript(this,e);break;case InsertionMode.AFTER_HEAD:endTagAfterHead(this,e);break;case InsertionMode.IN_BODY:endTagInBody(this,e);break;case InsertionMode.TEXT:endTagInText(this,e);break;case InsertionMode.IN_TABLE:endTagInTable(this,e);break;case InsertionMode.IN_TABLE_TEXT:tokenInTableText(this,e);break;case InsertionMode.IN_CAPTION:endTagInCaption(this,e);break;case InsertionMode.IN_COLUMN_GROUP:endTagInColumnGroup(this,e);break;case InsertionMode.IN_TABLE_BODY:endTagInTableBody(this,e);break;case InsertionMode.IN_ROW:endTagInRow(this,e);break;case InsertionMode.IN_CELL:endTagInCell(this,e);break;case InsertionMode.IN_SELECT:endTagInSelect(this,e);break;case InsertionMode.IN_SELECT_IN_TABLE:endTagInSelectInTable(this,e);break;case InsertionMode.IN_TEMPLATE:endTagInTemplate(this,e);break;case InsertionMode.AFTER_BODY:endTagAfterBody(this,e);break;case InsertionMode.IN_FRAMESET:endTagInFrameset(this,e);break;case InsertionMode.AFTER_FRAMESET:endTagAfterFrameset(this,e);break;case InsertionMode.AFTER_AFTER_BODY:tokenAfterAfterBody(this,e)}}onEof(e){switch(this.insertionMode){case InsertionMode.INITIAL:tokenInInitialMode(this,e);break;case InsertionMode.BEFORE_HTML:tokenBeforeHtml(this,e);break;case InsertionMode.BEFORE_HEAD:tokenBeforeHead(this,e);break;case InsertionMode.IN_HEAD:tokenInHead(this,e);break;case InsertionMode.IN_HEAD_NO_SCRIPT:tokenInHeadNoScript(this,e);break;case InsertionMode.AFTER_HEAD:tokenAfterHead(this,e);break;case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:eofInBody(this,e);break;case InsertionMode.TEXT:eofInText(this,e);break;case InsertionMode.IN_TABLE_TEXT:tokenInTableText(this,e);break;case InsertionMode.IN_TEMPLATE:eofInTemplate(this,e);break;case InsertionMode.AFTER_BODY:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:stopParsing(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===CODE_POINTS.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.TEXT:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:this._insertCharacters(e);break;case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:case InsertionMode.AFTER_BODY:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:whitespaceCharacterInBody(this,e);break;case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:characterInTable(this,e);break;case InsertionMode.IN_TABLE_TEXT:whitespaceCharacterInTableText(this,e)}}}function aaObtainFormattingElementEntry(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):genericEndTagInBody(e,t),n}function aaObtainFurthestBlock(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function aaInnerLoop(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const n=e.activeFormattingElements.getElementEntry(o),s=n&&a>=AA_INNER_LOOP_ITER;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=aaRecreateElementFromEntry(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function aaRecreateElementFromEntry(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function aaInsertLastNodeInCommonAncestor(e,t,n){const r=getTagID(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);r===TAG_ID.TEMPLATE&&i===NS.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function aaReplaceFormattingElement(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function callAdoptionAgency(e,t){for(let n=0;n<AA_OUTER_LOOP_ITER;n++){const n=aaObtainFormattingElementEntry(e,t);if(!n)break;const r=aaObtainFurthestBlock(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const i=aaInnerLoop(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&aaInsertLastNodeInCommonAncestor(e,a,i),aaReplaceFormattingElement(e,r,n)}}function appendComment(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function appendCommentToRootHtmlElement(e,t){e._appendCommentNode(t,e.openElements.items[0])}function appendCommentToDocument(e,t){e._appendCommentNode(t,e.document)}function stopParsing(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function doctypeInInitialMode(e,t){e._setDocumentType(t);const n=t.forceQuirks?DOCUMENT_MODE.QUIRKS:getDocumentMode(t);isConforming(t)||e._err(t,ERR.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=InsertionMode.BEFORE_HTML}function tokenInInitialMode(e,t){e._err(t,ERR.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,DOCUMENT_MODE.QUIRKS),e.insertionMode=InsertionMode.BEFORE_HTML,e._processToken(t)}function startTagBeforeHtml(e,t){t.tagID===TAG_ID.HTML?(e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.BEFORE_HEAD):tokenBeforeHtml(e,t)}function endTagBeforeHtml(e,t){const n=t.tagID;(n===TAG_ID.HTML||n===TAG_ID.HEAD||n===TAG_ID.BODY||n===TAG_ID.BR)&&tokenBeforeHtml(e,t)}function tokenBeforeHtml(e,t){e._insertFakeRootElement(),e.insertionMode=InsertionMode.BEFORE_HEAD,e._processToken(t)}function startTagBeforeHead(e,t){switch(t.tagID){case TAG_ID.HTML:startTagInBody(e,t);break;case TAG_ID.HEAD:e._insertElement(t,NS.HTML),e.headElement=e.openElements.current,e.insertionMode=InsertionMode.IN_HEAD;break;default:tokenBeforeHead(e,t)}}function endTagBeforeHead(e,t){const n=t.tagID;n===TAG_ID.HEAD||n===TAG_ID.BODY||n===TAG_ID.HTML||n===TAG_ID.BR?tokenBeforeHead(e,t):e._err(t,ERR.endTagWithoutMatchingOpenElement)}function tokenBeforeHead(e,t){e._insertFakeElement(TAG_NAMES.HEAD,TAG_ID.HEAD),e.headElement=e.openElements.current,e.insertionMode=InsertionMode.IN_HEAD,e._processToken(t)}function startTagInHead(e,t){switch(t.tagID){case TAG_ID.HTML:startTagInBody(e,t);break;case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:e._appendElement(t,NS.HTML),t.ackSelfClosing=!0;break;case TAG_ID.TITLE:e._switchToTextParsing(t,TokenizerMode.RCDATA);break;case TAG_ID.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,TokenizerMode.RAWTEXT):(e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_HEAD_NO_SCRIPT);break;case TAG_ID.NOFRAMES:case TAG_ID.STYLE:e._switchToTextParsing(t,TokenizerMode.RAWTEXT);break;case TAG_ID.SCRIPT:e._switchToTextParsing(t,TokenizerMode.SCRIPT_DATA);break;case TAG_ID.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=InsertionMode.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(InsertionMode.IN_TEMPLATE);break;case TAG_ID.HEAD:e._err(t,ERR.misplacedStartTagForHeadElement);break;default:tokenInHead(e,t)}}function endTagInHead(e,t){switch(t.tagID){case TAG_ID.HEAD:e.openElements.pop(),e.insertionMode=InsertionMode.AFTER_HEAD;break;case TAG_ID.BODY:case TAG_ID.BR:case TAG_ID.HTML:tokenInHead(e,t);break;case TAG_ID.TEMPLATE:templateEndTagInHead(e,t);break;default:e._err(t,ERR.endTagWithoutMatchingOpenElement)}}function templateEndTagInHead(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==TAG_ID.TEMPLATE&&e._err(t,ERR.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ERR.endTagWithoutMatchingOpenElement)}function tokenInHead(e,t){e.openElements.pop(),e.insertionMode=InsertionMode.AFTER_HEAD,e._processToken(t)}function startTagInHeadNoScript(e,t){switch(t.tagID){case TAG_ID.HTML:startTagInBody(e,t);break;case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.HEAD:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.STYLE:startTagInHead(e,t);break;case TAG_ID.NOSCRIPT:e._err(t,ERR.nestedNoscriptInHead);break;default:tokenInHeadNoScript(e,t)}}function endTagInHeadNoScript(e,t){switch(t.tagID){case TAG_ID.NOSCRIPT:e.openElements.pop(),e.insertionMode=InsertionMode.IN_HEAD;break;case TAG_ID.BR:tokenInHeadNoScript(e,t);break;default:e._err(t,ERR.endTagWithoutMatchingOpenElement)}}function tokenInHeadNoScript(e,t){const n=t.type===TokenType.EOF?ERR.openElementsLeftAfterEof:ERR.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=InsertionMode.IN_HEAD,e._processToken(t)}function startTagAfterHead(e,t){switch(t.tagID){case TAG_ID.HTML:startTagInBody(e,t);break;case TAG_ID.BODY:e._insertElement(t,NS.HTML),e.framesetOk=!1,e.insertionMode=InsertionMode.IN_BODY;break;case TAG_ID.FRAMESET:e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_FRAMESET;break;case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:e._err(t,ERR.abandonedHeadElementChild),e.openElements.push(e.headElement,TAG_ID.HEAD),startTagInHead(e,t),e.openElements.remove(e.headElement);break;case TAG_ID.HEAD:e._err(t,ERR.misplacedStartTagForHeadElement);break;default:tokenAfterHead(e,t)}}function endTagAfterHead(e,t){switch(t.tagID){case TAG_ID.BODY:case TAG_ID.HTML:case TAG_ID.BR:tokenAfterHead(e,t);break;case TAG_ID.TEMPLATE:templateEndTagInHead(e,t);break;default:e._err(t,ERR.endTagWithoutMatchingOpenElement)}}function tokenAfterHead(e,t){e._insertFakeElement(TAG_NAMES.BODY,TAG_ID.BODY),e.insertionMode=InsertionMode.IN_BODY,modeInBody(e,t)}function modeInBody(e,t){switch(t.type){case TokenType.CHARACTER:characterInBody(e,t);break;case TokenType.WHITESPACE_CHARACTER:whitespaceCharacterInBody(e,t);break;case TokenType.COMMENT:appendComment(e,t);break;case TokenType.START_TAG:startTagInBody(e,t);break;case TokenType.END_TAG:endTagInBody(e,t);break;case TokenType.EOF:eofInBody(e,t)}}function whitespaceCharacterInBody(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function characterInBody(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function htmlStartTagInBody(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function bodyStartTagInBody(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function framesetStartTagInBody(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_FRAMESET)}function addressStartTagInBody(e,t){e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._insertElement(t,NS.HTML)}function numberedHeaderStartTagInBody(e,t){e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&NUMBERED_HEADERS.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,NS.HTML)}function preStartTagInBody(e,t){e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._insertElement(t,NS.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function formStartTagInBody(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._insertElement(t,NS.HTML),n||(e.formElement=e.openElements.current))}function listItemStartTagInBody(e,t){e.framesetOk=!1;const n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){const r=e.openElements.tagIDs[t];if(n===TAG_ID.LI&&r===TAG_ID.LI||(n===TAG_ID.DD||n===TAG_ID.DT)&&(r===TAG_ID.DD||r===TAG_ID.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==TAG_ID.ADDRESS&&r!==TAG_ID.DIV&&r!==TAG_ID.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._insertElement(t,NS.HTML)}function plaintextStartTagInBody(e,t){e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._insertElement(t,NS.HTML),e.tokenizer.state=TokenizerMode.PLAINTEXT}function buttonStartTagInBody(e,t){e.openElements.hasInScope(TAG_ID.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(TAG_ID.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,NS.HTML),e.framesetOk=!1}function aStartTagInBody(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(TAG_NAMES.A);n&&(callAdoptionAgency(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function bStartTagInBody(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function nobrStartTagInBody(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(TAG_ID.NOBR)&&(callAdoptionAgency(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function appletStartTagInBody(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,NS.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function tableStartTagInBody(e,t){e.treeAdapter.getDocumentMode(e.document)!==DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._insertElement(t,NS.HTML),e.framesetOk=!1,e.insertionMode=InsertionMode.IN_TABLE}function areaStartTagInBody(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,NS.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function isHiddenInput(e){const t=getTokenAttr(e,ATTRS.TYPE);return null!=t&&t.toLowerCase()===HIDDEN_INPUT_TYPE}function inputStartTagInBody(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,NS.HTML),isHiddenInput(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function paramStartTagInBody(e,t){e._appendElement(t,NS.HTML),t.ackSelfClosing=!0}function hrStartTagInBody(e,t){e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._appendElement(t,NS.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function imageStartTagInBody(e,t){t.tagName=TAG_NAMES.IMG,t.tagID=TAG_ID.IMG,areaStartTagInBody(e,t)}function textareaStartTagInBody(e,t){e._insertElement(t,NS.HTML),e.skipNextNewLine=!0,e.tokenizer.state=TokenizerMode.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=InsertionMode.TEXT}function xmpStartTagInBody(e,t){e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,TokenizerMode.RAWTEXT)}function iframeStartTagInBody(e,t){e.framesetOk=!1,e._switchToTextParsing(t,TokenizerMode.RAWTEXT)}function rawTextStartTagInBody(e,t){e._switchToTextParsing(t,TokenizerMode.RAWTEXT)}function selectStartTagInBody(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,NS.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===InsertionMode.IN_TABLE||e.insertionMode===InsertionMode.IN_CAPTION||e.insertionMode===InsertionMode.IN_TABLE_BODY||e.insertionMode===InsertionMode.IN_ROW||e.insertionMode===InsertionMode.IN_CELL?InsertionMode.IN_SELECT_IN_TABLE:InsertionMode.IN_SELECT}function optgroupStartTagInBody(e,t){e.openElements.currentTagId===TAG_ID.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,NS.HTML)}function rbStartTagInBody(e,t){e.openElements.hasInScope(TAG_ID.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,NS.HTML)}function rtStartTagInBody(e,t){e.openElements.hasInScope(TAG_ID.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.RTC),e._insertElement(t,NS.HTML)}function mathStartTagInBody(e,t){e._reconstructActiveFormattingElements(),adjustTokenMathMLAttrs(t),adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,NS.MATHML):e._insertElement(t,NS.MATHML),t.ackSelfClosing=!0}function svgStartTagInBody(e,t){e._reconstructActiveFormattingElements(),adjustTokenSVGAttrs(t),adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,NS.SVG):e._insertElement(t,NS.SVG),t.ackSelfClosing=!0}function genericStartTagInBody(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,NS.HTML)}function startTagInBody(e,t){switch(t.tagID){case TAG_ID.I:case TAG_ID.S:case TAG_ID.B:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:bStartTagInBody(e,t);break;case TAG_ID.A:aStartTagInBody(e,t);break;case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:numberedHeaderStartTagInBody(e,t);break;case TAG_ID.P:case TAG_ID.DL:case TAG_ID.OL:case TAG_ID.UL:case TAG_ID.DIV:case TAG_ID.DIR:case TAG_ID.NAV:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.DETAILS:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.SEARCH:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:addressStartTagInBody(e,t);break;case TAG_ID.LI:case TAG_ID.DD:case TAG_ID.DT:listItemStartTagInBody(e,t);break;case TAG_ID.BR:case TAG_ID.IMG:case TAG_ID.WBR:case TAG_ID.AREA:case TAG_ID.EMBED:case TAG_ID.KEYGEN:areaStartTagInBody(e,t);break;case TAG_ID.HR:hrStartTagInBody(e,t);break;case TAG_ID.RB:case TAG_ID.RTC:rbStartTagInBody(e,t);break;case TAG_ID.RT:case TAG_ID.RP:rtStartTagInBody(e,t);break;case TAG_ID.PRE:case TAG_ID.LISTING:preStartTagInBody(e,t);break;case TAG_ID.XMP:xmpStartTagInBody(e,t);break;case TAG_ID.SVG:svgStartTagInBody(e,t);break;case TAG_ID.HTML:htmlStartTagInBody(e,t);break;case TAG_ID.BASE:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.STYLE:case TAG_ID.TITLE:case TAG_ID.SCRIPT:case TAG_ID.BGSOUND:case TAG_ID.BASEFONT:case TAG_ID.TEMPLATE:startTagInHead(e,t);break;case TAG_ID.BODY:bodyStartTagInBody(e,t);break;case TAG_ID.FORM:formStartTagInBody(e,t);break;case TAG_ID.NOBR:nobrStartTagInBody(e,t);break;case TAG_ID.MATH:mathStartTagInBody(e,t);break;case TAG_ID.TABLE:tableStartTagInBody(e,t);break;case TAG_ID.INPUT:inputStartTagInBody(e,t);break;case TAG_ID.PARAM:case TAG_ID.TRACK:case TAG_ID.SOURCE:paramStartTagInBody(e,t);break;case TAG_ID.IMAGE:imageStartTagInBody(e,t);break;case TAG_ID.BUTTON:buttonStartTagInBody(e,t);break;case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:appletStartTagInBody(e,t);break;case TAG_ID.IFRAME:iframeStartTagInBody(e,t);break;case TAG_ID.SELECT:selectStartTagInBody(e,t);break;case TAG_ID.OPTION:case TAG_ID.OPTGROUP:optgroupStartTagInBody(e,t);break;case TAG_ID.NOEMBED:case TAG_ID.NOFRAMES:rawTextStartTagInBody(e,t);break;case TAG_ID.FRAMESET:framesetStartTagInBody(e,t);break;case TAG_ID.TEXTAREA:textareaStartTagInBody(e,t);break;case TAG_ID.NOSCRIPT:e.options.scriptingEnabled?rawTextStartTagInBody(e,t):genericStartTagInBody(e,t);break;case TAG_ID.PLAINTEXT:plaintextStartTagInBody(e,t);break;case TAG_ID.COL:case TAG_ID.TH:case TAG_ID.TD:case TAG_ID.TR:case TAG_ID.HEAD:case TAG_ID.FRAME:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:case TAG_ID.CAPTION:case TAG_ID.COLGROUP:break;default:genericStartTagInBody(e,t)}}function bodyEndTagInBody(e,t){if(e.openElements.hasInScope(TAG_ID.BODY)&&(e.insertionMode=InsertionMode.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function htmlEndTagInBody(e,t){e.openElements.hasInScope(TAG_ID.BODY)&&(e.insertionMode=InsertionMode.AFTER_BODY,endTagAfterBody(e,t))}function addressEndTagInBody(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function formEndTagInBody(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(TAG_ID.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(TAG_ID.FORM):n&&e.openElements.remove(n))}function pEndTagInBody(e){e.openElements.hasInButtonScope(TAG_ID.P)||e._insertFakeElement(TAG_NAMES.P,TAG_ID.P),e._closePElement()}function liEndTagInBody(e){e.openElements.hasInListItemScope(TAG_ID.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.LI),e.openElements.popUntilTagNamePopped(TAG_ID.LI))}function ddEndTagInBody(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function numberedHeaderEndTagInBody(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function appletEndTagInBody(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function brEndTagInBody(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(TAG_NAMES.BR,TAG_ID.BR),e.openElements.pop(),e.framesetOk=!1}function genericEndTagInBody(e,t){const n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){const i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(r===a&&(r!==TAG_ID.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function endTagInBody(e,t){switch(t.tagID){case TAG_ID.A:case TAG_ID.B:case TAG_ID.I:case TAG_ID.S:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.NOBR:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:callAdoptionAgency(e,t);break;case TAG_ID.P:pEndTagInBody(e);break;case TAG_ID.DL:case TAG_ID.UL:case TAG_ID.OL:case TAG_ID.DIR:case TAG_ID.DIV:case TAG_ID.NAV:case TAG_ID.PRE:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.BUTTON:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.DETAILS:case TAG_ID.SEARCH:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.LISTING:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:addressEndTagInBody(e,t);break;case TAG_ID.LI:liEndTagInBody(e);break;case TAG_ID.DD:case TAG_ID.DT:ddEndTagInBody(e,t);break;case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:numberedHeaderEndTagInBody(e);break;case TAG_ID.BR:brEndTagInBody(e);break;case TAG_ID.BODY:bodyEndTagInBody(e,t);break;case TAG_ID.HTML:htmlEndTagInBody(e,t);break;case TAG_ID.FORM:formEndTagInBody(e);break;case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:appletEndTagInBody(e,t);break;case TAG_ID.TEMPLATE:templateEndTagInHead(e,t);break;default:genericEndTagInBody(e,t)}}function eofInBody(e,t){e.tmplInsertionModeStack.length>0?eofInTemplate(e,t):stopParsing(e,t)}function endTagInText(e,t){var n;t.tagID===TAG_ID.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function eofInText(e,t){e._err(t,ERR.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function characterInTable(e,t){if(void 0!==e.openElements.currentTagId&&TABLE_STRUCTURE_TAGS.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=InsertionMode.IN_TABLE_TEXT,t.type){case TokenType.CHARACTER:characterInTableText(e,t);break;case TokenType.WHITESPACE_CHARACTER:whitespaceCharacterInTableText(e,t)}else tokenInTable(e,t)}function captionStartTagInTable(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_CAPTION}function colgroupStartTagInTable(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_COLUMN_GROUP}function colStartTagInTable(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(TAG_NAMES.COLGROUP,TAG_ID.COLGROUP),e.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(e,t)}function tbodyStartTagInTable(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_TABLE_BODY}function tdStartTagInTable(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(TAG_NAMES.TBODY,TAG_ID.TBODY),e.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(e,t)}function tableStartTagInTable(e,t){e.openElements.hasInTableScope(TAG_ID.TABLE)&&(e.openElements.popUntilTagNamePopped(TAG_ID.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function inputStartTagInTable(e,t){isHiddenInput(t)?e._appendElement(t,NS.HTML):tokenInTable(e,t),t.ackSelfClosing=!0}function formStartTagInTable(e,t){!e.formElement&&0===e.openElements.tmplCount&&(e._insertElement(t,NS.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function startTagInTable(e,t){switch(t.tagID){case TAG_ID.TD:case TAG_ID.TH:case TAG_ID.TR:tdStartTagInTable(e,t);break;case TAG_ID.STYLE:case TAG_ID.SCRIPT:case TAG_ID.TEMPLATE:startTagInHead(e,t);break;case TAG_ID.COL:colStartTagInTable(e,t);break;case TAG_ID.FORM:formStartTagInTable(e,t);break;case TAG_ID.TABLE:tableStartTagInTable(e,t);break;case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:tbodyStartTagInTable(e,t);break;case TAG_ID.INPUT:inputStartTagInTable(e,t);break;case TAG_ID.CAPTION:captionStartTagInTable(e,t);break;case TAG_ID.COLGROUP:colgroupStartTagInTable(e,t);break;default:tokenInTable(e,t)}}function endTagInTable(e,t){switch(t.tagID){case TAG_ID.TABLE:e.openElements.hasInTableScope(TAG_ID.TABLE)&&(e.openElements.popUntilTagNamePopped(TAG_ID.TABLE),e._resetInsertionMode());break;case TAG_ID.TEMPLATE:templateEndTagInHead(e,t);break;case TAG_ID.BODY:case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:case TAG_ID.TBODY:case TAG_ID.TD:case TAG_ID.TFOOT:case TAG_ID.TH:case TAG_ID.THEAD:case TAG_ID.TR:break;default:tokenInTable(e,t)}}function tokenInTable(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,modeInBody(e,t),e.fosterParentingEnabled=n}function whitespaceCharacterInTableText(e,t){e.pendingCharacterTokens.push(t)}function characterInTableText(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function tokenInTableText(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)tokenInTable(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const TABLE_VOID_ELEMENTS=new Set([TAG_ID.CAPTION,TAG_ID.COL,TAG_ID.COLGROUP,TAG_ID.TBODY,TAG_ID.TD,TAG_ID.TFOOT,TAG_ID.TH,TAG_ID.THEAD,TAG_ID.TR]);function startTagInCaption(e,t){const n=t.tagID;TABLE_VOID_ELEMENTS.has(n)?e.openElements.hasInTableScope(TAG_ID.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(TAG_ID.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=InsertionMode.IN_TABLE,startTagInTable(e,t)):startTagInBody(e,t)}function endTagInCaption(e,t){const n=t.tagID;switch(n){case TAG_ID.CAPTION:case TAG_ID.TABLE:e.openElements.hasInTableScope(TAG_ID.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(TAG_ID.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=InsertionMode.IN_TABLE,n===TAG_ID.TABLE&&endTagInTable(e,t));break;case TAG_ID.BODY:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:case TAG_ID.TBODY:case TAG_ID.TD:case TAG_ID.TFOOT:case TAG_ID.TH:case TAG_ID.THEAD:case TAG_ID.TR:break;default:endTagInBody(e,t)}}function startTagInColumnGroup(e,t){switch(t.tagID){case TAG_ID.HTML:startTagInBody(e,t);break;case TAG_ID.COL:e._appendElement(t,NS.HTML),t.ackSelfClosing=!0;break;case TAG_ID.TEMPLATE:startTagInHead(e,t);break;default:tokenInColumnGroup(e,t)}}function endTagInColumnGroup(e,t){switch(t.tagID){case TAG_ID.COLGROUP:e.openElements.currentTagId===TAG_ID.COLGROUP&&(e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE);break;case TAG_ID.TEMPLATE:templateEndTagInHead(e,t);break;case TAG_ID.COL:break;default:tokenInColumnGroup(e,t)}}function tokenInColumnGroup(e,t){e.openElements.currentTagId===TAG_ID.COLGROUP&&(e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE,e._processToken(t))}function startTagInTableBody(e,t){switch(t.tagID){case TAG_ID.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_ROW;break;case TAG_ID.TH:case TAG_ID.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(TAG_NAMES.TR,TAG_ID.TR),e.insertionMode=InsertionMode.IN_ROW,startTagInRow(e,t);break;case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE,startTagInTable(e,t));break;default:startTagInTable(e,t)}}function endTagInTableBody(e,t){const n=t.tagID;switch(t.tagID){case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE);break;case TAG_ID.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE,endTagInTable(e,t));break;case TAG_ID.BODY:case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:case TAG_ID.TD:case TAG_ID.TH:case TAG_ID.TR:break;default:endTagInTable(e,t)}}function startTagInRow(e,t){switch(t.tagID){case TAG_ID.TH:case TAG_ID.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_CELL,e.activeFormattingElements.insertMarker();break;case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:case TAG_ID.TR:e.openElements.hasInTableScope(TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(e,t));break;default:startTagInTable(e,t)}}function endTagInRow(e,t){switch(t.tagID){case TAG_ID.TR:e.openElements.hasInTableScope(TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE_BODY);break;case TAG_ID.TABLE:e.openElements.hasInTableScope(TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE_BODY,endTagInTableBody(e,t));break;case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(TAG_ID.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE_BODY,endTagInTableBody(e,t));break;case TAG_ID.BODY:case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:case TAG_ID.TD:case TAG_ID.TH:break;default:endTagInTable(e,t)}}function startTagInCell(e,t){const n=t.tagID;TABLE_VOID_ELEMENTS.has(n)?(e.openElements.hasInTableScope(TAG_ID.TD)||e.openElements.hasInTableScope(TAG_ID.TH))&&(e._closeTableCell(),startTagInRow(e,t)):startTagInBody(e,t)}function endTagInCell(e,t){const n=t.tagID;switch(n){case TAG_ID.TD:case TAG_ID.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=InsertionMode.IN_ROW);break;case TAG_ID.TABLE:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:case TAG_ID.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),endTagInRow(e,t));break;case TAG_ID.BODY:case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:break;default:endTagInBody(e,t)}}function startTagInSelect(e,t){switch(t.tagID){case TAG_ID.HTML:startTagInBody(e,t);break;case TAG_ID.OPTION:e.openElements.currentTagId===TAG_ID.OPTION&&e.openElements.pop(),e._insertElement(t,NS.HTML);break;case TAG_ID.OPTGROUP:e.openElements.currentTagId===TAG_ID.OPTION&&e.openElements.pop(),e.openElements.currentTagId===TAG_ID.OPTGROUP&&e.openElements.pop(),e._insertElement(t,NS.HTML);break;case TAG_ID.HR:e.openElements.currentTagId===TAG_ID.OPTION&&e.openElements.pop(),e.openElements.currentTagId===TAG_ID.OPTGROUP&&e.openElements.pop(),e._appendElement(t,NS.HTML),t.ackSelfClosing=!0;break;case TAG_ID.INPUT:case TAG_ID.KEYGEN:case TAG_ID.TEXTAREA:case TAG_ID.SELECT:e.openElements.hasInSelectScope(TAG_ID.SELECT)&&(e.openElements.popUntilTagNamePopped(TAG_ID.SELECT),e._resetInsertionMode(),t.tagID!==TAG_ID.SELECT&&e._processStartTag(t));break;case TAG_ID.SCRIPT:case TAG_ID.TEMPLATE:startTagInHead(e,t)}}function endTagInSelect(e,t){switch(t.tagID){case TAG_ID.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===TAG_ID.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===TAG_ID.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===TAG_ID.OPTGROUP&&e.openElements.pop();break;case TAG_ID.OPTION:e.openElements.currentTagId===TAG_ID.OPTION&&e.openElements.pop();break;case TAG_ID.SELECT:e.openElements.hasInSelectScope(TAG_ID.SELECT)&&(e.openElements.popUntilTagNamePopped(TAG_ID.SELECT),e._resetInsertionMode());break;case TAG_ID.TEMPLATE:templateEndTagInHead(e,t)}}function startTagInSelectInTable(e,t){const n=t.tagID;n===TAG_ID.CAPTION||n===TAG_ID.TABLE||n===TAG_ID.TBODY||n===TAG_ID.TFOOT||n===TAG_ID.THEAD||n===TAG_ID.TR||n===TAG_ID.TD||n===TAG_ID.TH?(e.openElements.popUntilTagNamePopped(TAG_ID.SELECT),e._resetInsertionMode(),e._processStartTag(t)):startTagInSelect(e,t)}function endTagInSelectInTable(e,t){const n=t.tagID;n===TAG_ID.CAPTION||n===TAG_ID.TABLE||n===TAG_ID.TBODY||n===TAG_ID.TFOOT||n===TAG_ID.THEAD||n===TAG_ID.TR||n===TAG_ID.TD||n===TAG_ID.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(TAG_ID.SELECT),e._resetInsertionMode(),e.onEndTag(t)):endTagInSelect(e,t)}function startTagInTemplate(e,t){switch(t.tagID){case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:startTagInHead(e,t);break;case TAG_ID.CAPTION:case TAG_ID.COLGROUP:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:e.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE,e.insertionMode=InsertionMode.IN_TABLE,startTagInTable(e,t);break;case TAG_ID.COL:e.tmplInsertionModeStack[0]=InsertionMode.IN_COLUMN_GROUP,e.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(e,t);break;case TAG_ID.TR:e.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE_BODY,e.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(e,t);break;case TAG_ID.TD:case TAG_ID.TH:e.tmplInsertionModeStack[0]=InsertionMode.IN_ROW,e.insertionMode=InsertionMode.IN_ROW,startTagInRow(e,t);break;default:e.tmplInsertionModeStack[0]=InsertionMode.IN_BODY,e.insertionMode=InsertionMode.IN_BODY,startTagInBody(e,t)}}function endTagInTemplate(e,t){t.tagID===TAG_ID.TEMPLATE&&templateEndTagInHead(e,t)}function eofInTemplate(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):stopParsing(e,t)}function startTagAfterBody(e,t){t.tagID===TAG_ID.HTML?startTagInBody(e,t):tokenAfterBody(e,t)}function endTagAfterBody(e,t){var n;if(t.tagID===TAG_ID.HTML){if(e.fragmentContext||(e.insertionMode=InsertionMode.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===TAG_ID.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n||!n.endTag)&&e._setEndLocation(r,t)}}else tokenAfterBody(e,t)}function tokenAfterBody(e,t){e.insertionMode=InsertionMode.IN_BODY,modeInBody(e,t)}function startTagInFrameset(e,t){switch(t.tagID){case TAG_ID.HTML:startTagInBody(e,t);break;case TAG_ID.FRAMESET:e._insertElement(t,NS.HTML);break;case TAG_ID.FRAME:e._appendElement(t,NS.HTML),t.ackSelfClosing=!0;break;case TAG_ID.NOFRAMES:startTagInHead(e,t)}}function endTagInFrameset(e,t){t.tagID===TAG_ID.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==TAG_ID.FRAMESET&&(e.insertionMode=InsertionMode.AFTER_FRAMESET))}function startTagAfterFrameset(e,t){switch(t.tagID){case TAG_ID.HTML:startTagInBody(e,t);break;case TAG_ID.NOFRAMES:startTagInHead(e,t)}}function endTagAfterFrameset(e,t){t.tagID===TAG_ID.HTML&&(e.insertionMode=InsertionMode.AFTER_AFTER_FRAMESET)}function startTagAfterAfterBody(e,t){t.tagID===TAG_ID.HTML?startTagInBody(e,t):tokenAfterAfterBody(e,t)}function tokenAfterAfterBody(e,t){e.insertionMode=InsertionMode.IN_BODY,modeInBody(e,t)}function startTagAfterAfterFrameset(e,t){switch(t.tagID){case TAG_ID.HTML:startTagInBody(e,t);break;case TAG_ID.NOFRAMES:startTagInHead(e,t)}}function nullCharacterInForeignContent(e,t){t.chars=REPLACEMENT_CHARACTER,e._insertCharacters(t)}function characterInForeignContent(e,t){e._insertCharacters(t),e.framesetOk=!1}function popUntilHtmlOrIntegrationPoint(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==NS.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function startTagInForeignContent(e,t){if(causesExit(t))popUntilHtmlOrIntegrationPoint(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===NS.MATHML?adjustTokenMathMLAttrs(t):r===NS.SVG&&(adjustTokenSVGTagName(t),adjustTokenSVGAttrs(t)),adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function endTagInForeignContent(e,t){if(t.tagID===TAG_ID.P||t.tagID===TAG_ID.BR)return popUntilHtmlOrIntegrationPoint(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===NS.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}TAG_NAMES.AREA,TAG_NAMES.BASE,TAG_NAMES.BASEFONT,TAG_NAMES.BGSOUND,TAG_NAMES.BR,TAG_NAMES.COL,TAG_NAMES.EMBED,TAG_NAMES.FRAME,TAG_NAMES.HR,TAG_NAMES.IMG,TAG_NAMES.INPUT,TAG_NAMES.KEYGEN,TAG_NAMES.LINK,TAG_NAMES.META,TAG_NAMES.PARAM,TAG_NAMES.SOURCE,TAG_NAMES.TRACK,TAG_NAMES.WBR;const gfmTagfilterExpression=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,knownMdxNames=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),parseOptions={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function raw$1(e,t){const n=documentMode(e),r=zwitch("type",{handlers:{root:root$1,element:element$1,text:text$1,comment:comment$1,doctype:doctype$1,raw:handleRaw},unknown:unknown$1}),i={parser:n?new Parser(parseOptions):Parser.getFragmentParser(void 0,parseOptions),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),resetTokenizer(i,pointStart());const a=fromParse5(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&visit(a,"comment",function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t)return n.children[t]=r.value.stitch,t}),"root"===a.type&&1===a.children.length&&a.children[0].type===e.type?a.children[0]:a}function all$1(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function root$1(e,t){all$1(e.children,t)}function element$1(e,t){startTag(e,t),all$1(e.children,t),endTag(e,t)}function text$1(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:TokenType.CHARACTER,chars:e.value,location:createParse5Location(e)};resetTokenizer(t,pointStart(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function doctype$1(e,t){const n={type:TokenType.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:createParse5Location(e)};resetTokenizer(t,pointStart(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function stitch(e,t){t.stitches=!0;const n=cloneWithoutChildren(e);if("children"in e&&"children"in n){const r=raw$1({type:"root",children:e.children},t.options);n.children=r.children}comment$1({type:"comment",value:{stitch:n}},t)}function comment$1(e,t){const n=e.value,r={type:TokenType.COMMENT,data:n,location:createParse5Location(e)};resetTokenizer(t,pointStart(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function handleRaw(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,setPoint(t,pointStart(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(gfmTagfilterExpression,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function unknown$1(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw knownMdxNames.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+e)}stitch(n,t)}function resetTokenizer(e,t){setPoint(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=TokenizerMode.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function setPoint(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function startTag(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===TokenizerMode.PLAINTEXT)return;resetTokenizer(t,pointStart(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:webNamespaces.html;i===webNamespaces.html&&"svg"===n&&(i=webNamespaces.svg);const a=toParse5({...e,children:[]},{space:i===webNamespaces.svg?"svg":"html"}),o={type:TokenType.START_TAG,tagName:n,tagID:getTagID(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:createParse5Location(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function endTag(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&htmlVoidElements.includes(n)||t.parser.tokenizer.state===TokenizerMode.PLAINTEXT)return;resetTokenizer(t,pointEnd(e));const r={type:TokenType.END_TAG,tagName:n,tagID:getTagID(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:createParse5Location(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===TokenizerMode.RCDATA||t.parser.tokenizer.state===TokenizerMode.RAWTEXT||t.parser.tokenizer.state===TokenizerMode.SCRIPT_DATA)&&(t.parser.tokenizer.state=TokenizerMode.DATA)}function documentMode(e){const t="root"===e.type?e.children[0]:e;return!(!t||"doctype"!==t.type&&("element"!==t.type||"html"!==t.tagName.toLowerCase()))}function createParse5Location(e){const t=pointStart(e)||{line:void 0,column:void 0,offset:void 0},n=pointEnd(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function cloneWithoutChildren(e){return structuredClone$1("children"in e?{...e,children:[]}:e)}function rehypeRaw(e){return function(t,n){return raw$1(t,{...e,file:n})}}function mathFromMarkdown(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){const t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;const r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){const e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e},mathFlowValue:e,mathText:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t,n.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}function mathToMarkdown(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),n.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,n,r){const i=e.value||"",a=n.createTracker(r),o="$".repeat(Math.max(longestStreak(i,"$")+1,2)),s=n.enter("mathFlow");let l=a.move(o);if(e.meta){const t=n.enter("mathFlowMeta");l+=a.move(n.safe(e.meta,{after:"\n",before:l,encode:["$"],...a.current()})),t()}return l+=a.move("\n"),i&&(l+=a.move(i+"\n")),l+=a.move(o),s(),l},inlineMath:n}};function n(e,n,r){let i=e.value||"",a=1;for(t||a++;new RegExp("(^|[^$])"+"\\$".repeat(a)+"([^$]|$)").test(i);)a++;const o="$".repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=" "+i+" ");let s=-1;for(;++s<r.unsafe.length;){const e=r.unsafe[s];if(!e.atBreak)continue;const t=r.compilePattern(e);let n;for(;n=t.exec(i);){let e=n.index;10===i.codePointAt(e)&&13===i.codePointAt(e-1)&&e--,i=i.slice(0,e)+" "+i.slice(n.index+1)}}return o+i+o}}const mathFlow={tokenize:tokenizeMathFenced,concrete:!0,name:"mathFlow"},nonLazyContinuation={tokenize:tokenizeNonLazyContinuation,partial:!0};function tokenizeMathFenced(e,t,n){const r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0;let o=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),s(t)};function s(t){return 36===t?(e.consume(t),o++,s):o<2?n(t):(e.exit("mathFlowFenceSequence"),factorySpace(e,l,"whitespace")(t))}function l(t){return null===t||markdownLineEnding(t)?u(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return null===t||markdownLineEnding(t)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),u(t)):36===t?n(t):(e.consume(t),c)}function u(n){return e.exit("mathFlowFence"),r.interrupt?t(n):e.attempt(nonLazyContinuation,d,f)(n)}function d(t){return e.attempt({tokenize:g,partial:!0},f,m)(t)}function m(t){return(a?factorySpace(e,h,"linePrefix",a+1):h)(t)}function h(t){return null===t?f(t):markdownLineEnding(t)?e.attempt(nonLazyContinuation,d,f)(t):(e.enter("mathFlowValue"),p(t))}function p(t){return null===t||markdownLineEnding(t)?(e.exit("mathFlowValue"),h(t)):(e.consume(t),p)}function f(n){return e.exit("mathFlow"),t(n)}function g(e,t,n){let i=0;return factorySpace(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),a(t)},"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function a(t){return 36===t?(i++,e.consume(t),a):i<o?n(t):(e.exit("mathFlowFenceSequence"),factorySpace(e,s,"whitespace")(t))}function s(r){return null===r||markdownLineEnding(r)?(e.exit("mathFlowFence"),t(r)):n(r)}}}function tokenizeNonLazyContinuation(e,t,n){const r=this;return function(n){return null===n?t(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function mathText(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),{tokenize:function(e,n,r){let i,a,o=0;return function(t){return e.enter("mathText"),e.enter("mathTextSequence"),s(t)};function s(n){return 36===n?(e.consume(n),o++,s):o<2&&!t?r(n):(e.exit("mathTextSequence"),l(n))}function l(t){return null===t?r(t):36===t?(a=e.enter("mathTextSequence"),i=0,u(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):markdownLineEnding(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("mathTextData"),c(t))}function c(t){return null===t||32===t||36===t||markdownLineEnding(t)?(e.exit("mathTextData"),l(t)):(e.consume(t),c)}function u(t){return 36===t?(e.consume(t),i++,u):i===o?(e.exit("mathTextSequence"),e.exit("mathText"),n(t)):(a.type="mathTextData",c(t))}},resolve:resolveMathText,previous,name:"mathText"}}function resolveMathText(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[i][1].type="mathTextPadding",i+=2,r-=2;break}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e}function previous(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}function math(e){return{flow:{36:mathFlow},text:{36:mathText(e)}}}const emptyOptions$1={};function remarkMath(e){const t=e||emptyOptions$1,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(math(t)),i.push(mathFromMarkdown()),a.push(mathToMarkdown(t))}function harden({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,blockedImageClass:i="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:a="text-gray-500"}){const o=t.length&&!t.every(e=>"*"===e),s=n.length&&!n.every(e=>"*"===e);if(!e&&(o||s))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return o=>{visit(o,createVisitor(e,t,n,r,i,a))}}function parseUrl(e,t){if("string"!=typeof e)return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}return null}}function isPathRelativeUrl(e){return"string"==typeof e&&e.startsWith("/")}const safeProtocols=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:"]);function transformUrl(e,t,n,r=!1,i=!1){if(!e)return null;if("string"==typeof e&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if("string"==typeof e&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;const a=parseUrl(e,n);if(!a||!safeProtocols.has(a.protocol))return null;if("mailto:"===a.protocol)return a.href;const o=isPathRelativeUrl(e);return a&&t.some(e=>{const t=parseUrl(e,n);return!(!t||t.origin!==a.origin)&&a.href.startsWith(t.href)})?o?a.pathname+a.search+a.hash:a.href:t.includes("*")?"https:"!==a.protocol&&"http:"!==a.protocol?null:o?a.pathname+a.search+a.hash:a.href:null}const SEEN=Symbol("node-seen"),createVisitor=(e,t,n,r,i,a)=>{const o=(s,l,c)=>{if("element"!==s.type||s[SEEN])return CONTINUE;if("a"===s.tagName){const n=transformUrl(s.properties.href,t,e,!1,!1);return null===n?(s[SEEN]=!0,visit(s,o),c&&"number"==typeof l&&(c.children[l]={type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(s.properties.href),class:a},children:[...s.children,{type:"text",value:" [blocked]"}]}),SKIP):(s.properties.href=n,s.properties.target="_blank",s.properties.rel="noopener noreferrer",CONTINUE)}if("img"===s.tagName){const t=transformUrl(s.properties.src,n,e,r,!0);return null===t?(s[SEEN]=!0,visit(s,o),c&&"number"==typeof l&&(c.children[l]={type:"element",tagName:"span",properties:{class:i},children:[{type:"text",value:"[Image blocked: "+String(s.properties.alt||"No description")+"]"}]}),SKIP):(s.properties.src=t,CONTINUE)}return CONTINUE};return o},toKebabCase=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),toCamelCase=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),toPascalCase=e=>{const t=toCamelCase(e);return t.charAt(0).toUpperCase()+t.slice(1)},mergeClasses=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),hasA11yProp=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var defaultAttributes={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Icon=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:o,...s},l)=>(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg",{ref:l,...defaultAttributes,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:mergeClasses("lucide",i),...!a&&!hasA11yProp(s)&&{"aria-hidden":"true"},...s},[...o.map(([e,t])=>(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(e,t)),...Array.isArray(a)?a:[a]])),createLucideIcon=(e,t)=>{const n=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(({className:n,...r},i)=>(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(Icon,{ref:i,iconNode:t,className:mergeClasses(`lucide-${toKebabCase(toPascalCase(e))}`,`lucide-${e}`,n),...r}));return n.displayName=toPascalCase(e),n},__iconNode$2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Check=createLucideIcon("check",__iconNode$2),__iconNode$1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Copy=createLucideIcon("copy",__iconNode$1),__iconNode=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Download=createLucideIcon("download",__iconNode);let ShikiError$2=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function clone(e){return doClone(e)}function doClone(e){return Array.isArray(e)?cloneArray(e):e instanceof RegExp?e:"object"==typeof e?cloneObj(e):e}function cloneArray(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=doClone(e[n]);return t}function cloneObj(e){let t={};for(let n in e)t[n]=doClone(e[n]);return t}function mergeObjects(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function basename(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===t?e:~t===e.length-1?basename(e.substring(0,e.length-1)):e.substr(1+~t)}var CAPTURING_REGEX_SOURCE=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,RegexSource=class{static hasCaptures(e){return null!==e&&(CAPTURING_REGEX_SOURCE.lastIndex=0,CAPTURING_REGEX_SOURCE.test(e))}static replaceCaptures(e,t,n){return e.replace(CAPTURING_REGEX_SOURCE,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function strcmp(e,t){return e<t?-1:e>t?1:0}function strArrCmp(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=strcmp(e[r],t[r]);if(0!==n)return n}return 0}return n-r}function isValidHexColor(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function escapeRegExpCharacters(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var CachedFn=class{constructor(e){rn(this,"cache",new Map),this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Theme=class{constructor(e,t,n){rn(this,"_cachedMatchRoot",new CachedFn(e=>this._root.match(e))),this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(parseTheme(e),t)}static createFromParsedTheme(e,t){return resolveParsedThemeRules(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>_scopePathMatchesParentScopes(e.parent,t.parentScopes));return n?new StyleAttributes(n.fontStyle,n.foreground,n.background):null}},ScopeStack=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(const r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function _scopePathMatchesParentScopes(e,t){if(0===t.length)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(">"===r){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!_matchesScope(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function _matchesScope(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}var StyleAttributes=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function parseTheme(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;e=e.replace(/^[,]+/,""),e=e.replace(/[,]+$/,""),i=e.split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let o=-1;if("string"==typeof a.settings.fontStyle){o=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let s=null;"string"==typeof a.settings.foreground&&isValidHexColor(a.settings.foreground)&&(s=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&isValidHexColor(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),c=a[a.length-1],u=null;a.length>1&&(u=a.slice(0,a.length-1),u.reverse()),n[r++]=new ParsedThemeRule(c,u,e,o,s,l)}}return n}var ParsedThemeRule=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},FontStyle=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(FontStyle||{});function resolveParsedThemeRules(e,t){e.sort((e,t)=>{let n=strcmp(e.scope,t.scope);return 0!==n||(n=strArrCmp(e.parentScopes,t.parentScopes),0!==n)?n:e.index-t.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let a=new ColorMap(t),o=new StyleAttributes(n,a.getId(r),a.getId(i)),s=new ThemeTrieElement(new ThemeTrieElementRule(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new Theme(a,o,s)}var ColorMap=class{constructor(e){if(rn(this,"_isFrozen"),rn(this,"_lastColorId"),rn(this,"_id2color"),rn(this,"_color2id"),this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},emptyParentScopes=Object.freeze([]),ThemeTrieElementRule=class e{constructor(e,t,n,r,i){rn(this,"scopeDepth"),rn(this,"parentScopes"),rn(this,"fontStyle"),rn(this,"foreground"),rn(this,"background"),this.scopeDepth=e,this.parentScopes=t||emptyParentScopes,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},ThemeTrieElement=class e{constructor(e,t=[],n={}){rn(this,"_rulesWithParentScopes"),this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){const i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(""===n)return void this._doInsertHere(t,r,i,a,o);let s,l,c,u=n.indexOf(".");-1===u?(s=n,l=""):(s=n.substring(0,u),l=n.substring(u+1)),this._children.hasOwnProperty(s)?c=this._children[s]:(c=new e(this._mainRule.clone(),ThemeTrieElementRule.cloneArr(this._rulesWithParentScopes)),this._children[s]=c),c.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(null!==t){for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(0===strArrCmp(o.parentScopes,t))return void o.acceptOverwrite(e,n,r,i)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new ThemeTrieElementRule(e,t,n,r,i))}else this._mainRule.acceptOverwrite(e,n,r,i)}},EncodedTokenMetadata=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){const n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return!!(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static set(t,n,r,i,a,o,s){let l=e.getLanguageId(t),c=e.getTokenType(t),u=e.containsBalancedBrackets(t)?1:0,d=e.getFontStyle(t),m=e.getForeground(t),h=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(c=r),null!==i&&(u=i?1:0),-1!==a&&(d=a),0!==o&&(m=o),0!==s&&(h=s),(l|c<<8|u<<10|d<<11|m<<15|h<<24)>>>0}};function toOptionalTokenType(e){return e}function fromOptionalTokenType(e){return e}function createMatchers(e,t){const n=[],r=newTokenizer(e);let i=r.next();for(;null!==i;){let e=0;if(2===i.length&&":"===i.charAt(1)){switch(i.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),","!==i)break;i=r.next()}return n;function a(){if("-"===i){i=r.next();const e=a();return t=>!!e&&!e(t)}if("("===i){i=r.next();const e=function(){const e=[];let t=o();for(;t&&(e.push(t),"|"===i||","===i);){do{i=r.next()}while("|"===i||","===i);t=o()}return t=>e.some(e=>e(t))}();return")"===i&&(i=r.next()),e}if(isIdentifier(i)){const e=[];do{e.push(i),i=r.next()}while(isIdentifier(i));return n=>t(e,n)}return null}function o(){const e=[];let t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}}function isIdentifier(e){return!!e&&!!e.match(/[\w\.:]+/)}function newTokenizer(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function disposeOnigString(e){"function"==typeof e.dispose&&e.dispose()}var TopLevelRuleReference=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},TopLevelRepositoryRuleReference=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},ExternalReferenceCollector=class{constructor(){rn(this,"_references",[]),rn(this,"_seenReferenceKeys",new Set),rn(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},ScopeDependencyProcessor=class{constructor(e,t){rn(this,"seenFullScopeRequests",new Set),rn(this,"seenPartialScopeRequests",new Set),rn(this,"Q"),this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new TopLevelRuleReference(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new ExternalReferenceCollector;for(const n of e)collectReferencesOfReference(n,this.initialScopeName,this.repo,t);for(const e of t.references)if(e instanceof TopLevelRuleReference){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function collectReferencesOfReference(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const a=n.lookup(t);e instanceof TopLevelRuleReference?collectExternalReferencesInTopLevelRule({baseGrammar:a,selfGrammar:i},r):collectExternalReferencesInTopLevelRepositoryRule(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);const o=n.injections(e.scopeName);if(o)for(const e of o)r.add(new TopLevelRuleReference(e))}function collectExternalReferencesInTopLevelRepositoryRule(e,t,n){t.repository&&t.repository[e]&&collectExternalReferencesInRules([t.repository[e]],t,n)}function collectExternalReferencesInTopLevelRule(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&collectExternalReferencesInRules(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&collectExternalReferencesInRules(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function collectExternalReferencesInRules(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const e=r.repository?mergeObjects({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&collectExternalReferencesInRules(r.patterns,{...t,repository:e},n);const i=r.include;if(!i)continue;const a=parseInclude(i);switch(a.kind){case 0:collectExternalReferencesInTopLevelRule({...t,selfGrammar:t.baseGrammar},n);break;case 1:collectExternalReferencesInTopLevelRule(t,n);break;case 2:collectExternalReferencesInTopLevelRepositoryRule(a.ruleName,{...t,repository:e},n);break;case 3:case 4:const r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===a.kind?collectExternalReferencesInTopLevelRepositoryRule(a.ruleName,i,n):collectExternalReferencesInTopLevelRule(i,n)}else 4===a.kind?n.add(new TopLevelRepositoryRuleReference(a.scopeName,a.ruleName)):n.add(new TopLevelRuleReference(a.scopeName))}}}var BaseReference=class{constructor(){rn(this,"kind",0)}},SelfReference=class{constructor(){rn(this,"kind",1)}},RelativeReference=class{constructor(e){rn(this,"kind",2),this.ruleName=e}},TopLevelReference=class{constructor(e){rn(this,"kind",3),this.scopeName=e}},TopLevelRepositoryReference=class{constructor(e,t){rn(this,"kind",4),this.scopeName=e,this.ruleName=t}};function parseInclude(e){if("$base"===e)return new BaseReference;if("$self"===e)return new SelfReference;const t=e.indexOf("#");if(-1===t)return new TopLevelReference(e);if(0===t)return new RelativeReference(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new TopLevelRepositoryReference(n,r)}}var HAS_BACK_REFERENCES=/\\(\d+)/,BACK_REFERENCING_END=/\\(\d+)/g,endRuleId=-1,whileRuleId=-2;function ruleIdFromNumber(e){return e}function ruleIdToNumber(e){return e}var Rule=class{constructor(e,t,n,r){rn(this,"$location"),rn(this,"id"),rn(this,"_nameIsCapturing"),rn(this,"_name"),rn(this,"_contentNameIsCapturing"),rn(this,"_contentName"),this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=RegexSource.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}},CaptureRule=class extends Rule{constructor(e,t,n,r,i){super(e,t,n,r),rn(this,"retokenizeCapturedWithRuleId"),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},MatchRule=class extends Rule{constructor(e,t,n,r,i){super(e,t,n,null),rn(this,"_match"),rn(this,"captures"),rn(this,"_cachedCompiledPatterns"),this._match=new RegExpSource(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new RegExpSourceList,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},IncludeOnlyRule=class extends Rule{constructor(e,t,n,r,i){super(e,t,n,r),rn(this,"hasMissingPatterns"),rn(this,"patterns"),rn(this,"_cachedCompiledPatterns"),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new RegExpSourceList,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},BeginEndRule=class extends Rule{constructor(e,t,n,r,i,a,o,s,l,c){super(e,t,n,r),rn(this,"_begin"),rn(this,"beginCaptures"),rn(this,"_end"),rn(this,"endHasBackReferences"),rn(this,"endCaptures"),rn(this,"applyEndPatternLast"),rn(this,"hasMissingPatterns"),rn(this,"patterns"),rn(this,"_cachedCompiledPatterns"),this._begin=new RegExpSource(i,this.id),this.beginCaptures=a,this._end=new RegExpSource(o||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new RegExpSourceList;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},BeginWhileRule=class extends Rule{constructor(e,t,n,r,i,a,o,s,l){super(e,t,n,r),rn(this,"_begin"),rn(this,"beginCaptures"),rn(this,"whileCaptures"),rn(this,"_while"),rn(this,"whileHasBackReferences"),rn(this,"hasMissingPatterns"),rn(this,"patterns"),rn(this,"_cachedCompiledPatterns"),rn(this,"_cachedCompiledWhilePatterns"),this._begin=new RegExpSource(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new RegExpSource(o,whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new RegExpSourceList;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new RegExpSourceList,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},RuleFactory=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new CaptureRule(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new MatchRule(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=mergeObjects({},r,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new IncludeOnlyRule(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new BeginWhileRule(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new BeginEndRule(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(const e in t){if("$vscodeTextmateLocation"===e)continue;const t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(const a in t){if("$vscodeTextmateLocation"===a)continue;const o=parseInt(a,10);let s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){const o=t[a];let s=-1;if(o.include){const t=parseInclude(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:const a=t.scopeName,l=4===t.kind?t.ruleName:null,c=n.getExternalGrammar(a,r);if(c)if(l){let t=c.repository[l];t&&(s=e.getCompiledRuleId(t,n,c.repository))}else s=e.getCompiledRuleId(c.repository.$self,n,c.repository)}}else s=e.getCompiledRuleId(o,n,r);if(-1!==s){const e=n.getRule(s);let t=!1;if((e instanceof IncludeOnlyRule||e instanceof BeginEndRule||e instanceof BeginWhileRule)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},RegExpSource=class e{constructor(e,t){if(rn(this,"source"),rn(this,"ruleId"),rn(this,"hasAnchor"),rn(this,"hasBackReferences"),rn(this,"_anchorCache"),e&&"string"==typeof e){const t=e.length;let n=0,r=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){const t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=HAS_BACK_REFERENCES.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw new Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return BACK_REFERENCING_END.lastIndex=0,this.source.replace(BACK_REFERENCING_END,(e,t)=>escapeRegExpCharacters(n[parseInt(t,10)]||""))}_buildAnchorCache(){if("string"!=typeof this.source)throw new Error("This method should only be called if the source is a string");let e,t,n,r,i=[],a=[],o=[],s=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,o[e]=n,s[e]=n,"\\"===n&&e+1<t&&(r=this.source.charAt(e+1),"A"===r?(i[e+1]="",a[e+1]="",o[e+1]="A",s[e+1]="A"):"G"===r?(i[e+1]="",a[e+1]="G",o[e+1]="",s[e+1]="G"):(i[e+1]=r,a[e+1]=r,o[e+1]=r,s[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:o.join(""),A1_G1:s.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache&&"string"==typeof this.source?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}},RegExpSourceList=class{constructor(){rn(this,"_items"),rn(this,"_hasAnchors"),rn(this,"_cached"),rn(this,"_anchorCache"),this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new CompiledRule(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(e=>e.resolveAnchors(t,n));return new CompiledRule(e,r,this._items.map(e=>e.ruleId))}},CompiledRule=class{constructor(e,t,n){rn(this,"scanner"),this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},BasicScopeAttributes=class{constructor(e,t){this.languageId=e,this.tokenType=t}},ar,BasicScopeAttributesProvider=(ar=class{constructor(e,t){rn(this,"_defaultAttributes"),rn(this,"_embeddedLanguagesMatcher"),rn(this,"_getBasicScopeAttributes",new CachedFn(e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new BasicScopeAttributes(t,n)})),this._defaultAttributes=new BasicScopeAttributes(e,8),this._embeddedLanguagesMatcher=new ScopeMatcher(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?ar._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(ar.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},rn(ar,"_NULL_SCOPE_METADATA",new BasicScopeAttributes(0,0)),rn(ar,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),ar),ScopeMatcher=class{constructor(e){if(rn(this,"values"),rn(this,"scopesRegExp"),0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>escapeRegExpCharacters(e));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}};typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var TokenizeStringResult=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function _tokenizeString(e,t,n,r,i,a,o,s){const l=t.content.length;let c=!1,u=-1;if(o){const o=_checkWhileConditions(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}const d=Date.now();for(;!c;){if(0!==s&&Date.now()-d>s)return new TokenizeStringResult(i,!0);m()}return new TokenizeStringResult(i,!1);function m(){const o=matchRuleOrInjections(e,t,n,r,i,u);if(!o)return a.produce(i,l),void(c=!0);const s=o.captureIndices,d=o.matchedRuleId,m=!!(s&&s.length>0)&&s[0].end>r;if(d===endRuleId){const o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),handleCaptures(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);const d=i;if(i=i.parent,u=d.getAnchorPos(),!m&&d.getEnterPos()===r)return i=d,a.produce(i,l),void(c=!0)}else{const o=e.getRule(d);a.produce(i,s[0].start);const h=i,p=o.getName(t.content,s),f=i.contentNameScopesList.pushAttributed(p,e);if(i=i.push(d,r,u,s[0].end===l,null,f,f),o instanceof BeginEndRule){const r=o;handleCaptures(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;const d=r.getContentName(t.content,s),p=f.pushAttributed(d,e);if(i=i.withContentNameScopesList(p),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!m&&h.hasSameRuleAs(i))return i=i.pop(),a.produce(i,l),void(c=!0)}else if(o instanceof BeginWhileRule){const r=o;handleCaptures(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;const d=r.getContentName(t.content,s),p=f.pushAttributed(d,e);if(i=i.withContentNameScopesList(p),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!m&&h.hasSameRuleAs(i))return i=i.pop(),a.produce(i,l),void(c=!0)}else if(handleCaptures(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!m)return i=i.safePop(),a.produce(i,l),void(c=!0)}s[0].end>r&&(r=s[0].end,n=!1)}}function _checkWhileConditions(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1;const s=[];for(let t=i;t;t=t.pop()){const n=t.getRule(e);n instanceof BeginWhileRule&&s.push({rule:n,stack:t})}for(let l=s.pop();l;l=s.pop()){const{ruleScanner:s,findOptions:c}=prepareRuleWhileSearch(l.rule,e,l.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,c);if(!u){i=l.stack.pop();break}if(u.ruleId!==whileRuleId){i=l.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(l.stack,u.captureIndices[0].start),handleCaptures(e,t,n,l.stack,a,l.rule.whileCaptures,u.captureIndices),a.produce(l.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function matchRuleOrInjections(e,t,n,r,i,a){const o=matchRule(e,t,n,r,i,a),s=e.getInjections();if(0===s.length)return o;const l=matchInjections(s,e,t,n,r,i,a);if(!l)return o;if(!o)return l;const c=o.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:o}function matchRule(e,t,n,r,i,a){const o=i.getRule(e),{ruleScanner:s,findOptions:l}=prepareRuleSearch(o,e,i.endRule,n,r===a),c=s.findNextMatchSync(t,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function matchInjections(e,t,n,r,i,a,o){let s,l=Number.MAX_VALUE,c=null,u=0;const d=a.contentNameScopesList.getScopeNames();for(let a=0,m=e.length;a<m;a++){const m=e[a];if(!m.matcher(d))continue;const h=t.getRule(m.ruleId),{ruleScanner:p,findOptions:f}=prepareRuleSearch(h,t,null,r,i===o),g=p.findNextMatchSync(n,i,f);if(!g)continue;const _=g.captureIndices[0].start;if(!(_>=l)&&(l=_,c=g.captureIndices,s=g.ruleId,u=m.priority,l===i))break}return c?{priorityMatch:-1===u,captureIndices:c,matchedRuleId:s}:null}function prepareRuleSearch(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function prepareRuleWhileSearch(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function handleCaptures(e,t,n,r,i,a,o){if(0===a.length)return;const s=t.content,l=Math.min(a.length,o.length),c=[],u=o[0].end;for(let t=0;t<l;t++){const l=a[t];if(null===l)continue;const d=o[t];if(0===d.length)continue;if(d.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,d.start):i.produce(r,d.start),l.retokenizeCapturedWithRuleId){const t=l.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(s,o),u=a.pushAttributed(c,e),m=r.push(l.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),h=e.createOnigString(s.substring(0,d.end));_tokenizeString(e,h,n&&0===d.start,d.start,m,i,!1,0),disposeOnigString(h);continue}const m=l.getName(s,o);if(null!==m){const t=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(m,e);c.push(new LocalStackElement(t,d.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var LocalStackElement=class{constructor(e,t){rn(this,"scopes"),rn(this,"endPos"),this.scopes=e,this.endPos=t}};function createGrammar(e,t,n,r,i,a,o,s){return new Grammar(e,t,n,r,i,a,o,s)}function collectInjections(e,t,n,r,i){const a=createMatchers(t,nameMatcher),o=RuleFactory.getCompiledRuleId(n,r,i.repository);for(const n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function nameMatcher(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(scopesAreMatching(t[r],e))return n=r+1,!0;return!1})}function scopesAreMatching(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}var Grammar=class{constructor(e,t,n,r,i,a,o,s){if(rn(this,"_rootId"),rn(this,"_lastRuleId"),rn(this,"_ruleId2desc"),rn(this,"_includedGrammars"),rn(this,"_grammarRepository"),rn(this,"_grammar"),rn(this,"_injections"),rn(this,"_basicScopeAttributesProvider"),rn(this,"_tokenTypeMatchers"),this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new BasicScopeAttributesProvider(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=initGrammar(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const e of Object.keys(i)){const t=createMatchers(e,nameMatcher);for(const n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const r=n.injections;if(r)for(let t in r)collectInjections(e,t,r[t],this,n);const i=this._grammarRepository.injections(t);i&&i.forEach(t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&collectInjections(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=initGrammar(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==StateStackImpl.NULL)i=!1,t.reset();else{i=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=EncodedTokenMetadata.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null);let o;o=a?AttributedScopeStack.createRootAndLookUpScopeName(a,r,this):AttributedScopeStack.createRoot("unknown",r),t=new StateStackImpl(null,this._rootId,-1,-1,!1,null,o,o)}e+="\n";const a=this.createOnigString(e),o=a.content.length,s=new LineTokens(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=_tokenizeString(this,a,i,0,t,s,!0,r);return disposeOnigString(a),{lineLength:o,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function initGrammar(e,t){return(e=clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var AttributedScopeStack=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=(null==t?void 0:t.scopePath)??null;for(const t of n)i=ScopeStack.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new ScopeStack(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const i=r.getMetadataForScope(t),a=new ScopeStack(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),EncodedTokenMetadata.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);const r=t.split(/ /g);let i=this;for(const t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){const i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var t;const n=[];let r=this;for(;r&&r!==e;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined((null==(t=r.parent)?void 0:t.scopePath)??null)}),r=r.parent;return r===e?n.reverse():void 0}},Yn,StateStackImpl=(Yn=class{constructor(e,t,n,r,i,a,o,s){rn(this,"_stackElementBrand"),rn(this,"_enterPos"),rn(this,"_anchorPos"),rn(this,"depth"),this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(e){return null!==e&&Yn._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&AttributedScopeStack.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){Yn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,i,a,o){return new Yn(this,e,t,n,r,i,a,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var n,r;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${null==(n=this.nameScopesList)?void 0:n.toString()}, ${null==(r=this.contentNameScopesList)?void 0:r.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new Yn(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,n;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(null==(t=this.nameScopesList)?void 0:t.getExtensionIfDefined((null==(e=this.parent)?void 0:e.nameScopesList)??null))??[],contentNameScopesList:(null==(n=this.contentNameScopesList)?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const n=AttributedScopeStack.fromExtension((null==e?void 0:e.nameScopesList)??null,t.nameScopesList);return new Yn(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,n,AttributedScopeStack.fromExtension(n,t.contentNameScopesList))}},rn(Yn,"NULL",new Yn(null,0,0,0,!1,null,null,null)),Yn),BalancedBracketSelectors=class{constructor(e,t){rn(this,"balancedBracketScopes"),rn(this,"unbalancedBracketScopes"),rn(this,"allowAny",!1),this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):createMatchers(e,nameMatcher).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>createMatchers(e,nameMatcher).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},LineTokens=class{constructor(e,t,n,r){rn(this,"_emitBinaryTokens"),rn(this,"_lineText"),rn(this,"_tokens"),rn(this,"_binaryTokens"),rn(this,"_lastTokenEndIndex"),rn(this,"_tokenTypeOverrides"),this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=(null==e?void 0:e.tokenAttributes)??0,i=!1;if(null!=(n=this.balancedBracketSelectors)&&n.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=(null==e?void 0:e.getScopeNames())??[];for(const e of this._tokenTypeOverrides)e.matcher(t)&&(r=EncodedTokenMetadata.set(r,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(t))}return i&&(r=EncodedTokenMetadata.set(r,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r||(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r)),void(this._lastTokenEndIndex=t)}const r=(null==e?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},SyncRegistry=class{constructor(e,t){rn(this,"_grammars",new Map),rn(this,"_rawGrammars",new Map),rn(this,"_injectionGrammars",new Map),rn(this,"_theme"),this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,createGrammar(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},Registry$1=class{constructor(e){rn(this,"_options"),rn(this,"_syncRegistry"),rn(this,"_ensureGrammarCache"),this._options=e,this._syncRegistry=new SyncRegistry(Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){const a=new ScopeDependencyProcessor(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},INITIAL=StateStackImpl.NULL;const defaultSubsetRegex=/["&'<>`]/g,surrogatePairsRegex=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,controlCharactersRegex=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,regexEscapeRegex=/[|\\{}()[\]^$+*?.]/g,subsetToRegexCache=new WeakMap;function core(e,t){return e=e.replace(t.subset?charactersToExpressionCached(t.subset):defaultSubsetRegex,n),t.subset||t.escapeOnly?e:e.replace(surrogatePairsRegex,function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}).replace(controlCharactersRegex,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function charactersToExpressionCached(e){let t=subsetToRegexCache.get(e);return t||(t=charactersToExpression(e),subsetToRegexCache.set(e,t)),t}function charactersToExpression(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(regexEscapeRegex,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const hexadecimalRegex=/[\dA-Fa-f]/;function toHexadecimal(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!hexadecimalRegex.test(String.fromCharCode(t))?r:r+";"}const decimalRegex=/\d/;function toDecimal(e,t,n){const r="&#"+String(e);return n&&t&&!decimalRegex.test(String.fromCharCode(t))?r:r+";"}const characterEntitiesLegacy=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],characterEntitiesHtml4={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},dangerous=["cent","copy","divide","gt","lt","not","para","times"],own$1={}.hasOwnProperty,characters={};let key;for(key in characterEntitiesHtml4)own$1.call(characterEntitiesHtml4,key)&&(characters[characterEntitiesHtml4[key]]=key);const notAlphanumericRegex=/[^\dA-Za-z]/;function toNamed(e,t,n,r){const i=String.fromCharCode(e);if(own$1.call(characters,i)){const e=characters[i],a="&"+e;return n&&characterEntitiesLegacy.includes(e)&&!dangerous.includes(e)&&(!r||t&&61!==t&¬AlphanumericRegex.test(String.fromCharCode(t)))?a:a+";"}return""}function formatSmart(e,t,n){let r,i=toHexadecimal(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=toNamed(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const r=toDecimal(e,t,n.omitOptionalSemicolons);r.length<i.length&&(i=r)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function stringifyEntities(e,t){return core(e,Object.assign({format:formatSmart},t))}const htmlCommentRegex=/^>|^->|<!--|-->|--!>|<!-$/g,bogusCommentEntitySubset=[">"],commentEntitySubset=["<",">"];function comment(e,t,n,r){return r.settings.bogusComments?"<?"+stringifyEntities(e.value,Object.assign({},r.settings.characterReferences,{subset:bogusCommentEntitySubset}))+">":"\x3c!--"+e.value.replace(htmlCommentRegex,function(e){return stringifyEntities(e,Object.assign({},r.settings.characterReferences,{subset:commentEntitySubset}))})+"--\x3e"}function doctype(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const siblingAfter=siblings(1),siblingBefore=siblings(-1),emptyChildren$1=[];function siblings(e){return function(t,n,r){const i=t?t.children:emptyChildren$1;let a=(n||0)+e,o=i[a];if(!r)for(;o&&whitespace(o);)a+=e,o=i[a];return o}}const own={}.hasOwnProperty;function omission(e){return function(t,n,r){return own.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const closing=omission({body:body$1,caption:headOrColgroupOrCaption,colgroup:headOrColgroupOrCaption,dd,dt:dt$1,head:headOrColgroupOrCaption,html:html$1,li,optgroup,option,p,rp:rubyElement,rt:rubyElement,tbody:tbody$1,td:cells,tfoot,th:cells,thead,tr});function headOrColgroupOrCaption(e,t,n){const r=siblingAfter(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&whitespace(r.value.charAt(0)))}function html$1(e,t,n){const r=siblingAfter(n,t);return!r||"comment"!==r.type}function body$1(e,t,n){const r=siblingAfter(n,t);return!r||"comment"!==r.type}function p(e,t,n){const r=siblingAfter(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))}function li(e,t,n){const r=siblingAfter(n,t);return!r||"element"===r.type&&"li"===r.tagName}function dt$1(e,t,n){const r=siblingAfter(n,t);return!(!r||"element"!==r.type||"dt"!==r.tagName&&"dd"!==r.tagName)}function dd(e,t,n){const r=siblingAfter(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)}function rubyElement(e,t,n){const r=siblingAfter(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function optgroup(e,t,n){const r=siblingAfter(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName}function option(e,t,n){const r=siblingAfter(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)}function thead(e,t,n){const r=siblingAfter(n,t);return!(!r||"element"!==r.type||"tbody"!==r.tagName&&"tfoot"!==r.tagName)}function tbody$1(e,t,n){const r=siblingAfter(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)}function tfoot(e,t,n){return!siblingAfter(n,t)}function tr(e,t,n){const r=siblingAfter(n,t);return!r||"element"===r.type&&"tr"===r.tagName}function cells(e,t,n){const r=siblingAfter(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}const opening=omission({body,colgroup,head,html,tbody});function html(e){const t=siblingAfter(e,-1);return!t||"comment"!==t.type}function head(e){const t=new Set;for(const n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}const n=e.children[0];return!n||"element"===n.type}function body(e){const t=siblingAfter(e,-1,!0);return!(t&&("comment"===t.type||"text"===t.type&&whitespace(t.value.charAt(0))||"element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName)))}function colgroup(e,t,n){const r=siblingBefore(n,t),i=siblingAfter(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&closing(r,n.children.indexOf(r),n)||!i||"element"!==i.type||"col"!==i.tagName)}function tbody(e,t,n){const r=siblingBefore(n,t),i=siblingAfter(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&closing(r,n.children.indexOf(r),n)||!i||"element"!==i.type||"tr"!==i.tagName)}const constants={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function element(e,t,n,r){const i=r.schema,a="svg"!==i.space&&r.settings.omitOptionalTags;let o="svg"===i.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;"html"===i.space&&"svg"===e.tagName&&(r.schema=svg$2);const c=serializeAttributes(r,e.properties),u=r.all("html"===i.space&&"template"===e.tagName?e.content:e);return r.schema=i,u&&(o=!1),(c||!a||!opening(e,t,n))&&(s.push("<",e.tagName,c?" "+c:""),o&&("svg"===i.space||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===l||l&&'"'!==l&&"'"!==l)&&s.push(" "),s.push("/")),s.push(">")),s.push(u),!o&&(!a||!closing(e,t,n))&&s.push("</"+e.tagName+">"),s.join("")}function serializeAttributes(e,t){const n=[];let r,i=-1;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const i=serializeAttribute(e,r,t[r]);i&&n.push(i)}for(;++i<n.length;){const t=e.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&'"'!==t&&"'"!==t&&(n[i]+=" ")}return n.join("")}function serializeAttribute(e,t,n){const r=find$2(e.schema,t),i=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,a=e.settings.allowDangerousCharacters?0:1;let o,s=e.quote;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?(r.boolean||r.overloadedBoolean)&&("string"!=typeof n||n===r.attribute||""===n)&&(n=!!n):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";const l=stringifyEntities(r.attribute,Object.assign({},e.settings.characterReferences,{subset:constants.name[i][a]}));return!0===n||(n=Array.isArray(n)?(r.commaSeparated?stringify$2:stringify$1)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(o=stringifyEntities(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:constants.unquoted[i][a]}))),o!==n&&(e.settings.quoteSmart&&ccount(n,s)>ccount(n,e.alternative)&&(s=e.alternative),o=s+stringifyEntities(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?constants.single:constants.double)[i][a],attribute:!0}))+s),l+(o&&"="+o))}const textEntitySubset=["<","&"];function text(e,t,n,r){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?stringifyEntities(e.value,Object.assign({},r.settings.characterReferences,{subset:textEntitySubset})):e.value}function raw(e,t,n,r){return r.settings.allowDangerousHtml?e.value:text(e,t,n,r)}function root(e,t,n,r){return r.all(e)}const handle=zwitch("type",{invalid,unknown,handlers:{comment,doctype,element,raw,root,text}});function invalid(e){throw new Error("Expected node, not `"+e+"`")}function unknown(e){throw new Error("Cannot compile unknown node `"+e.type+"`")}const emptyOptions={},emptyCharacterReferences={},emptyChildren=[];function toHtml(e,t){const n=t||emptyOptions,r=n.quote||'"',i='"'===r?"'":'"';if('"'!==r&&"'"!==r)throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one,all,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||htmlVoidElements,characterReferences:n.characterReferences||emptyCharacterReferences,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?svg$2:html$6,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function one(e,t,n){return handle(e,t,n,this)}function all(e){const t=[],n=e&&e.children||emptyChildren;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function resolveColorReplacements(e,t){const n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(const[e,i]of Object.entries((null==t?void 0:t.colorReplacements)||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function applyColorReplacements(e,t){return e&&((null==t?void 0:t[null==e?void 0:e.toLowerCase()])||e)}function toArray(e){return Array.isArray(e)?e:[e]}async function normalizeGetter(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function isPlainLang(e){return!e||["plaintext","txt","text","plain"].includes(e)}function isSpecialLang(e){return"ansi"===e||isPlainLang(e)}function isNoneTheme(e){return"none"===e}function isSpecialTheme(e){return isNoneTheme(e)}function addClassToHast(e,t){var n;if(!t)return e;e.properties||(e.properties={}),(n=e.properties).class||(n.class=[]),"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const r=Array.isArray(t)?t:t.split(/\s+/g);for(const t of r)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function splitLines(e,t=!1){var n;const r=e.split(/(\r?\n)/g);let i=0;const a=[];for(let e=0;e<r.length;e+=2){const o=t?r[e]+(r[e+1]||""):r[e];a.push([o,i]),i+=r[e].length,i+=(null==(n=r[e+1])?void 0:n.length)||0}return a}function createPositionConverter(e){const t=splitLines(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(const e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}}}const DEFAULT_COLOR_LIGHT_DARK="light-dark()",COLOR_KEYS=["color","background-color"];function splitToken(e,t){let n=0;const r=[];for(const i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function splitTokens(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{const t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?splitToken(e,t):e})):e}function flatTokenVariants(e,t,n,r,i="css-vars"){const a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>getTokenStyleObject(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),l={},c=(e,r)=>{const i="color"===r?"":"background-color"===r?"-bg":`-${r}`;return n+t[e]+("color"===r?"":i)};return o.forEach((e,n)=>{for(const a of s){const s=e[a]||"inherit";if(0===n&&r&&COLOR_KEYS.includes(a))if(r===DEFAULT_COLOR_LIGHT_DARK&&o.length>1){const e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new ShikiError$2('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const u=o[e][a]||"inherit",d=o[r][a]||"inherit";l[a]=`light-dark(${u}, ${d})`,"css-vars"===i&&(l[c(n,a)]=s)}else l[a]=s;else"css-vars"===i&&(l[c(n,a)]=s)}}),a.htmlStyle=l,a}function getTokenStyleObject(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&FontStyle.Italic&&(t["font-style"]="italic"),e.fontStyle&FontStyle.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&FontStyle.Underline&&n.push("underline"),e.fontStyle&FontStyle.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function stringifyTokenStyle(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}const _grammarStateMap=new WeakMap;function setLastGrammarStateToMap(e,t){_grammarStateMap.set(e,t)}function getLastGrammarStateFromMap(e){return _grammarStateMap.get(e)}class GrammarState{constructor(...e){if(rn(this,"_stacks",{}),rn(this,"lang"),2===e.length){const[t,n]=e;this.lang=n,this._stacks=t}else{const[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new GrammarState(Object.fromEntries(toArray(t).map(e=>[e,INITIAL])),e)}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return getScopes(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function getScopes(e){const t=[],n=new Set;return function e(r){var i;if(n.has(r))return;n.add(r);const a=null==(i=null==r?void 0:r.nameScopesList)?void 0:i.scopeName;a&&t.push(a),r.parent&&e(r.parent)}(e),t}function getGrammarStack(e,t){if(!(e instanceof GrammarState))throw new ShikiError$2("Invalid grammar state");return e.getInternalStack(t)}function transformerDecorations(){const e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new ShikiError$2(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}{const t=r.lines[e.line];if(void 0===t)throw new ShikiError$2(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new ShikiError$2(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}};const r=createPositionConverter(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));verifyIntersections(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){var n;if(null!=(n=this.options.decorations)&&n.length)return splitTokens(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){var n;if(null==(n=this.options.decorations)||!n.length)return;const r=t(this),i=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(i.length!==r.converter.lines.length)throw new ShikiError$2(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function a(e,t,n,r){const a=i[e];let o="",l=-1,c=-1;if(0===t&&(l=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=a.children.length),-1===l||-1===c)for(let e=0;e<a.children.length;e++)o+=stringify(a.children[e]),-1===l&&o.length===t&&(l=e+1),-1===c&&o.length===n&&(c=e+1);if(-1===l)throw new ShikiError$2(`Failed to find start index for decoration ${JSON.stringify(r.start)}`);if(-1===c)throw new ShikiError$2(`Failed to find end index for decoration ${JSON.stringify(r.end)}`);const u=a.children.slice(l,c);if(r.alwaysWrap||u.length!==a.children.length)if(r.alwaysWrap||1!==u.length||"element"!==u[0].type){const e={type:"element",tagName:"span",properties:{},children:u};s(e,r,"wrapper"),a.children.splice(l,u.length,e)}else s(u[0],r,"token");else s(a,r,"line")}function o(e,t){i[e]=s(i[e],t,"line")}function s(e,t,n){var r;const i=t.properties||{},a=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...i,class:e.properties.class},null!=(r=t.properties)&&r.class&&addClassToHast(e,t.properties.class),a(e,n)||e}const l=[],c=r.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(const e of c){const{start:t,end:n}=e;if(t.line===n.line)a(t.line,t.character,n.character,e);else if(t.line<n.line){a(t.line,t.character,Number.POSITIVE_INFINITY,e);for(let r=t.line+1;r<n.line;r++)l.unshift(()=>o(r,e));a(n.line,0,n.character,e)}}l.forEach(e=>e())}}}function verifyIntersections(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new ShikiError$2(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new ShikiError$2(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function stringify(e){return"text"===e.type?e.value:"element"===e.type?e.children.map(stringify).join(""):""}const builtInTransformers=[transformerDecorations()];function getTransformers(e){const t=sortTransformersByEnforcement(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...builtInTransformers]}function sortTransformersByEnforcement(e){const t=[],n=[],r=[];for(const i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function findSequence(e,t){const n=e.indexOf("",t);if(-1!==n&&"["===e[n+1]){const t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function parseColor(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map(e=>Number.parseInt(e));return 3!==t.length||t.some(e=>Number.isNaN(e))?void 0:{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function parseSequence(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)decorations[r]&&t.push({type:"setDecoration",value:decorations[r]});else if(r<=29){const e=decorations[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:namedColors[r-30]}});else if(38===r){const n=parseColor(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[r-40]}});else if(48===r){const n=parseColor(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:namedColors[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[r-100+8]}})}return t}function createAnsiSequenceParser(){let e=null,t=null,n=new Set;return{parse(r){const i=[];let a=0;do{const o=findSequence(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){const r=parseSequence(o.sequence);for(const i of r)"resetAll"===i.type?(e=null,t=null,n.clear()):"resetForegroundColor"===i.type?e=null:"resetBackgroundColor"===i.type?t=null:"resetDecoration"===i.type&&n.delete(i.value);for(const i of r)"setForegroundColor"===i.type?e=i.value:"setBackgroundColor"===i.type?t=i.value:"setDecoration"===i.type&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var defaultNamedColorsMap={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function createColorPalette(e=defaultNamedColorsMap){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}let r;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return function(e){return function(){if(r)return r;r=[];for(let e=0;e<namedColors.length;e++)r.push(t(namedColors[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}()[e]}(e.index)}}}}function tokenizeAnsiWithTheme(e,t,n){const r=resolveColorReplacements(e,n),i=splitLines(t),a=createColorPalette(Object.fromEntries(namedColors.map(t=>{var n;return[t,null==(n=e.colors)?void 0:n[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]]}))),o=createAnsiSequenceParser();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has("reverse")?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=applyColorReplacements(i,r),o=applyColorReplacements(o,r),n.decorations.has("dim")&&(i=dimColor(i));let s=FontStyle.None;return n.decorations.has("bold")&&(s|=FontStyle.Bold),n.decorations.has("italic")&&(s|=FontStyle.Italic),n.decorations.has("underline")&&(s|=FontStyle.Underline),n.decorations.has("strikethrough")&&(s|=FontStyle.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function dimColor(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(e=>`${e}${e}`).join("")}80`}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function codeToTokensBase(e,t,n={}){const{lang:r="text",theme:i=e.getLoadedThemes()[0]}=n;if(isPlainLang(r)||isNoneTheme(i))return splitLines(t).map(e=>[{content:e[0],offset:e[1]}]);const{theme:a,colorMap:o}=e.setTheme(i);if("ansi"===r)return tokenizeAnsiWithTheme(a,t,n);const s=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==s.name)throw new ShikiError$2(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(a.name))throw new ShikiError$2(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return tokenizeWithTheme(t,s,a,o,n)}function getLastGrammarState(...e){if(2===e.length)return getLastGrammarStateFromMap(e[1]);const[t,n,r={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=r;if(isPlainLang(i)||isNoneTheme(a))throw new ShikiError$2("Plain language does not have grammar state");if("ansi"===i)throw new ShikiError$2("ANSI language does not have grammar state");const{theme:o,colorMap:s}=t.setTheme(a),l=t.getLanguage(i);return new GrammarState(_tokenizeWithTheme(n,l,o,s,r).stateStack,l.name,o.name)}function tokenizeWithTheme(e,t,n,r,i){const a=_tokenizeWithTheme(e,t,n,r,i),o=new GrammarState(_tokenizeWithTheme(e,t,n,r,i).stateStack,t.name,n.name);return setLastGrammarStateToMap(a.tokens,o),a.tokens}function _tokenizeWithTheme(e,t,n,r,i){const a=resolveColorReplacements(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,l=splitLines(e);let c=i.grammarState?getGrammarStack(i.grammarState,n.name)??INITIAL:null!=i.grammarContextCode?_tokenizeWithTheme(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:INITIAL,u=[];const d=[];for(let e=0,m=l.length;e<m;e++){const[m,h]=l[e];if(""===m){u=[],d.push([]);continue}if(o>0&&m.length>=o){u=[],d.push([{content:m,offset:h,color:"",fontStyle:0}]);continue}let p,f,g;i.includeExplanation&&(p=t.tokenizeLine(m,c,s),f=p.tokens,g=0);const _=t.tokenizeLine2(m,c,s),b=_.tokens.length/2;for(let e=0;e<b;e++){const t=_.tokens[2*e],o=e+1<b?_.tokens[2*e+2]:m.length;if(t===o)continue;const s=_.tokens[2*e+1],l=applyColorReplacements(r[EncodedTokenMetadata.getForeground(s)],a),c=EncodedTokenMetadata.getFontStyle(s),d={content:m.substring(t,o),offset:h+t,color:l,fontStyle:c};if(i.includeExplanation){const e=[];if("scopeName"!==i.includeExplanation)for(const t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<o;){const t=f[g],n=m.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:"scopeName"===i.includeExplanation?explainThemeScopesNameOnly(t.scopes):explainThemeScopesFull(e,t.scopes)}),g+=1}}u.push(d)}d.push(u),u=[],c=_.ruleStack}return{tokens:d,stateStack:c}}function explainThemeScopesNameOnly(e){return e.map(e=>({scopeName:e}))}function explainThemeScopesFull(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const i=t[r];n[r]={scopeName:i,themeMatches:explainThemeScope(e,i,t.slice(0,r))}}return n}function matchesOne(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function matches(e,t,n){if(!matchesOne(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)matchesOne(e[r],n[i])&&(r-=1),i-=1;return-1===r}function explainThemeScope(e,t,n){const r=[];for(const{selectors:i,settings:a}of e)for(const e of i)if(matches(e,t,n)){r.push(a);break}return r}function codeToTokensWithThemes(e,t,n){const r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{const i=codeToTokensBase(e,t,{...n,theme:r.theme});return{tokens:i,state:getLastGrammarStateFromMap(i),theme:"string"==typeof r.theme?r.theme:r.theme.name}}),a=syncThemesTokenization(...i.map(e=>e.tokens)),o=a[0].map((e,t)=>e.map((e,i)=>{const o={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(o.explanation=e.explanation),a.forEach((e,n)=>{const{content:a,explanation:s,offset:l,...c}=e[t][i];o.variants[r[n].color]=c}),o})),s=i[0].state?new GrammarState(Object.fromEntries(i.map(e=>{var t;return[e.theme,null==(t=e.state)?void 0:t.getInternalStack(e.theme)]})),i[0].state.lang):void 0;return s&&setLastGrammarStateToMap(o,s),o}function syncThemesTokenization(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));const o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){const e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){const n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}function codeToTokens(e,t,n){let r,i,a,o,s,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:d="css-vars"}=n,m=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:t.color===c?1:0);if(0===m.length)throw new ShikiError$2("`themes` option must not be empty");const h=codeToTokensWithThemes(e,t,n);if(l=getLastGrammarStateFromMap(h),c&&DEFAULT_COLOR_LIGHT_DARK!==c&&!m.find(e=>e.color===c))throw new ShikiError$2(`\`themes\` option must contain the defaultColor key \`${c}\``);const p=m.map(t=>e.getTheme(t.theme)),f=m.map(e=>e.color);a=h.map(e=>e.map(e=>flatTokenVariants(e,f,u,c,d))),l&&setLastGrammarStateToMap(a,l);const g=m.map(e=>resolveColorReplacements(e.theme,n));i=mapThemeColors(m,p,g,u,c,"fg",d),r=mapThemeColors(m,p,g,u,c,"bg",d),o=`shiki-themes ${p.map(e=>e.name).join(" ")}`,s=c?void 0:[i,r].join(";")}else{if(!("theme"in n))throw new ShikiError$2("Invalid options, either `theme` or `themes` must be provided");{const s=resolveColorReplacements(n.theme,n);a=codeToTokensBase(e,t,n);const c=e.getTheme(n.theme);r=applyColorReplacements(c.bg,s),i=applyColorReplacements(c.fg,s),o=c.name,l=getLastGrammarStateFromMap(a)}}return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:l}}function mapThemeColors(e,t,n,r,i,a,o){return e.map((s,l)=>{const c=applyColorReplacements(t[l][a],n[l])||"inherit",u=`${r+s.color}${"bg"===a?"-bg":""}:${c}`;if(0===l&&i){if(i===DEFAULT_COLOR_LIGHT_DARK&&e.length>1){const r=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===i)throw new ShikiError$2('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${applyColorReplacements(t[r][a],n[r])||"inherit"}, ${applyColorReplacements(t[i][a],n[i])||"inherit"});${u}`}return c}return"css-vars"===o?u:null}).filter(e=>!!e).join(";")}function codeToHast(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>codeToHast(e,t,n),codeToTokens:(t,n)=>codeToTokens(e,t,n)}){var i,a;let o=t;for(const e of getTransformers(n))o=(null==(i=e.preprocess)?void 0:i.call(r,o,n))||o;let{tokens:s,fg:l,bg:c,themeName:u,rootStyle:d,grammarState:m}=codeToTokens(e,o,n);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:p=!1}=n;!0===h?s=mergeWhitespaceTokens(s):"never"===h&&(s=splitWhitespaceTokens(s)),p&&(s=mergeAdjacentStyledTokens(s));const f={...r,get source(){return o}};for(const e of getTransformers(n))s=(null==(a=e.tokens)?void 0:a.call(f,s))||s;return tokensToHast(s,{...n,fg:l,bg:c,themeName:u,rootStyle:d},f,m)}function tokensToHast(e,t,n,r=getLastGrammarStateFromMap(e)){var i,a,o;const s=getTransformers(t),l=[],c={type:"root",children:[]},{structure:u="classic",tabindex:d="0"}=t;let m={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...!1!==d&&null!=d?{tabindex:d.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([e])=>!e.startsWith("_")))},children:[]},h={type:"element",tagName:"code",properties:{},children:l};const p=[],f={...n,structure:u,addClassToHast,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return c},get pre(){return m},get code(){return h},get lines(){return p}};if(e.forEach((e,t)=>{var n,r;t&&("inline"===u?c.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===u&&l.push({type:"text",value:"\n"}));let i={type:"element",tagName:"span",properties:{class:"line"},children:[]},a=0;for(const r of e){let e={type:"element",tagName:"span",properties:{...r.htmlAttrs},children:[{type:"text",value:r.content}]};const o=stringifyTokenStyle(r.htmlStyle||getTokenStyleObject(r));o&&(e.properties.style=o);for(const o of s)e=(null==(n=null==o?void 0:o.span)?void 0:n.call(f,e,t+1,a,i,r))||e;"inline"===u?c.children.push(e):"classic"===u&&i.children.push(e),a+=r.content.length}if("classic"===u){for(const e of s)i=(null==(r=null==e?void 0:e.line)?void 0:r.call(f,i,t+1))||i;p.push(i),l.push(i)}}),"classic"===u){for(const e of s)h=(null==(i=null==e?void 0:e.code)?void 0:i.call(f,h))||h;m.children.push(h);for(const e of s)m=(null==(a=null==e?void 0:e.pre)?void 0:a.call(f,m))||m;c.children.push(m)}let g=c;for(const e of s)g=(null==(o=null==e?void 0:e.root)?void 0:o.call(f,g))||g;return r&&setLastGrammarStateToMap(g,r),g}function mergeWhitespaceTokens(e){return e.map(e=>{const t=[];let n="",r=0;return e.forEach((i,a)=>{const o=!(i.fontStyle&&(i.fontStyle&FontStyle.Underline||i.fontStyle&FontStyle.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(r||(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=0,n=""):t.push(i)}),t})}function splitWhitespaceTokens(e){return e.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;const t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;const[,n,r,i]=t;if(!n&&!i)return e;const a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function mergeAdjacentStyledTokens(e){return e.map(e=>{const t=[];for(const n of e){if(0===t.length){t.push({...n});continue}const e=t[t.length-1],r=stringifyTokenStyle(e.htmlStyle||getTokenStyleObject(e)),i=stringifyTokenStyle(n.htmlStyle||getTokenStyleObject(n)),a=e.fontStyle&&(e.fontStyle&FontStyle.Underline||e.fontStyle&FontStyle.Strikethrough),o=n.fontStyle&&(n.fontStyle&FontStyle.Underline||n.fontStyle&FontStyle.Strikethrough);a||o||r!==i?t.push({...n}):e.content+=n.content}return t})}const hastToHtml=toHtml;function codeToHtml(e,t,n){var r;const i={meta:{},options:n,codeToHast:(t,n)=>codeToHast(e,t,n),codeToTokens:(t,n)=>codeToTokens(e,t,n)};let a=hastToHtml(codeToHast(e,t,n,i));for(const e of getTransformers(n))a=(null==(r=e.postprocess)?void 0:r.call(i,a,n))||a;return a}const VSCODE_FALLBACK_EDITOR_FG={light:"#333333",dark:"#bbbbbb"},VSCODE_FALLBACK_EDITOR_BG={light:"#fffffe",dark:"#1e1e1e"},RESOLVED_KEY="__shiki_resolved";function normalizeTheme(e){var t,n,r,i,a;if(null!=e&&e[RESOLVED_KEY])return e;const o={...e};o.tokenColors&&!o.settings&&(o.settings=o.tokenColors,delete o.tokenColors),o.type||(o.type="dark"),o.colorReplacements={...o.colorReplacements},o.settings||(o.settings=[]);let{bg:s,fg:l}=o;if(!s||!l){const e=o.settings?o.settings.find(e=>!e.name&&!e.scope):void 0;null!=(t=null==e?void 0:e.settings)&&t.foreground&&(l=e.settings.foreground),null!=(n=null==e?void 0:e.settings)&&n.background&&(s=e.settings.background),!l&&null!=(r=null==o?void 0:o.colors)&&r["editor.foreground"]&&(l=o.colors["editor.foreground"]),!s&&null!=(i=null==o?void 0:o.colors)&&i["editor.background"]&&(s=o.colors["editor.background"]),l||(l="light"===o.type?VSCODE_FALLBACK_EDITOR_FG.light:VSCODE_FALLBACK_EDITOR_FG.dark),s||(s="light"===o.type?VSCODE_FALLBACK_EDITOR_BG.light:VSCODE_FALLBACK_EDITOR_BG.dark),o.fg=l,o.bg=s}o.settings[0]&&o.settings[0].settings&&!o.settings[0].scope||o.settings.unshift({settings:{foreground:o.fg,background:o.bg}});let c=0;const u=new Map;function d(e){var t;if(u.has(e))return u.get(e);c+=1;const n=`#${c.toString(16).padStart(8,"0").toLowerCase()}`;return null!=(t=o.colorReplacements)&&t[`#${n}`]?d(e):(u.set(e,n),n)}o.settings=o.settings.map(e=>{var t,n;const r=(null==(t=e.settings)?void 0:t.foreground)&&!e.settings.foreground.startsWith("#"),i=(null==(n=e.settings)?void 0:n.background)&&!e.settings.background.startsWith("#");if(!r&&!i)return e;const a={...e,settings:{...e.settings}};if(r){const t=d(e.settings.foreground);o.colorReplacements[t]=e.settings.foreground,a.settings.foreground=t}if(i){const t=d(e.settings.background);o.colorReplacements[t]=e.settings.background,a.settings.background=t}return a});for(const e of Object.keys(o.colors||{}))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&(null==(a=o.colors[e])||!a.startsWith("#"))){const t=d(o.colors[e]);o.colorReplacements[t]=o.colors[e],o.colors[e]=t}return Object.defineProperty(o,RESOLVED_KEY,{enumerable:!1,writable:!1,value:!0}),o}async function resolveLangs(e){return Array.from(new Set((await Promise.all(e.filter(e=>!isSpecialLang(e)).map(async e=>await normalizeGetter(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function resolveThemes(e){return(await Promise.all(e.map(async e=>isSpecialTheme(e)?null:normalizeTheme(await normalizeGetter(e))))).filter(e=>!!e)}let _emitDeprecation=3;function warnDeprecated(e,t=3){t>_emitDeprecation||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let ShikiError$1=class extends Error{constructor(e){super(e),this.name="ShikiError"}};class Registry extends Registry$1{constructor(e,t,n,r={}){super(e),rn(this,"_resolvedThemes",new Map),rn(this,"_resolvedGrammars",new Map),rn(this,"_langMap",new Map),rn(this,"_langGraph",new Map),rn(this,"_textmateThemeCache",new WeakMap),rn(this,"_loadedThemesCache",null),rn(this,"_loadedLanguagesCache",null),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=normalizeTheme(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Theme.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){const t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new ShikiError$1(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){var t,n,r,i;if(this.getGrammar(e.name))return;const a=new Set([...this._langMap.values()].filter(t=>{var n;return null==(n=t.embeddedLangsLazy)?void 0:n.includes(e.name)}));this._resolver.addLanguage(e);const o={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const s=this.loadGrammarWithConfiguration(e.scopeName,1,o);if(s.name=e.name,this._resolvedGrammars.set(e.name,s),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,a.size)for(const e of a)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,null==(n=null==(t=this._syncRegistry)?void 0:t._injectionGrammars)||n.delete(e.scopeName),null==(i=null==(r=this._syncRegistry)?void 0:r._grammars)||i.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const t of e)this.resolveEmbeddedLanguages(t);const t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){const e=t.filter(([e,t])=>{var r;return t&&(null==(r=t.embeddedLangs)?void 0:r.some(e=>n.map(([e])=>e).includes(e)))}).filter(e=>!n.includes(e));throw new ShikiError$1(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(const[e,n]of t)this._resolver.addLanguage(n);for(const[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}class Resolver{constructor(e,t){rn(this,"_langs",new Map),rn(this,"_scopeToLang",new Map),rn(this,"_injections",new Map),rn(this,"_onigLib"),this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let n=[];for(let e=1;e<=t.length;e++){const r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}}let instancesCount=0;function createShikiInternalSync(e){instancesCount+=1,!1!==e.warnings&&instancesCount>=10&&instancesCount%10==0&&console.warn(`[Shiki] ${instancesCount} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new ShikiError$1("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(normalizeTheme),i=new Resolver(e.engine,n),a=new Registry(i,r,n,e.langAlias);let o;function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();const t=a.getTheme(e);if(!t)throw new ShikiError$1(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(...e){u(),a.loadLanguages(e.flat(1))}function c(...e){u();for(const t of e.flat(1))a.loadTheme(t)}function u(){if(t)throw new ShikiError$1("Shiki instance has been disposed")}function d(){t||(t=!0,a.dispose(),instancesCount-=1)}return{setTheme:function(e){u();const t=s(e);return o!==e&&(a.setTheme(t),o=e),{theme:t,colorMap:a.getColorMap()}},getTheme:s,getLanguage:function(e){u();const t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new ShikiError$1(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u(),a.getLoadedThemes()},getLoadedLanguages:function(){return u(),a.getLoadedLanguages()},loadLanguage:async function(...e){return l(await resolveLangs(e))},loadLanguageSync:l,loadTheme:async function(...e){return u(),c(await resolveThemes(e))},loadThemeSync:c,dispose:d,[Symbol.dispose]:d}}async function createShikiInternal(e){e.engine||warnDeprecated("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([resolveThemes(e.themes||[]),resolveLangs(e.langs||[]),e.engine]);return createShikiInternalSync({...e,themes:t,langs:n,engine:r})}async function createHighlighterCore(e){const t=await createShikiInternal(e);return{getLastGrammarState:(...e)=>getLastGrammarState(t,...e),codeToTokensBase:(e,n)=>codeToTokensBase(t,e,n),codeToTokensWithThemes:(e,n)=>codeToTokensWithThemes(t,e,n),codeToTokens:(e,n)=>codeToTokens(t,e,n),codeToHast:(e,n)=>codeToHast(t,e,n),codeToHtml:(e,n)=>codeToHtml(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function createdBundledHighlighter(e){const t=e.langs,n=e.themes,r=e.engine;return async function(e){function i(n){var r;if("string"==typeof n){if(isSpecialLang(n))return[];n=(null==(r=e.langAlias)?void 0:r[n])||n;const i=t[n];if(!i)throw new ShikiError$2(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return i}return n}function a(e){if(isSpecialTheme(e))return"none";if("string"==typeof e){const t=n[e];if(!t)throw new ShikiError$2(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}const o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),l=await createHighlighterCore({engine:e.engine??r(),...e,themes:o,langs:s});return{...l,loadLanguage:(...e)=>l.loadLanguage(...e.map(i)),loadTheme:(...e)=>l.loadTheme(...e.map(a)),getBundledLanguages:()=>t,getBundledThemes:()=>n}}}const bundledLanguagesInfo=[{id:"abap",name:"ABAP",import:()=>__webpack_require__.e(8066).then(__webpack_require__.bind(__webpack_require__,38066))},{id:"actionscript-3",name:"ActionScript",import:()=>__webpack_require__.e(2838).then(__webpack_require__.bind(__webpack_require__,92838))},{id:"ada",name:"Ada",import:()=>__webpack_require__.e(3424).then(__webpack_require__.bind(__webpack_require__,33424))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(270)]).then(__webpack_require__.bind(__webpack_require__,60270)).then(e=>e.f)},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(4725),__webpack_require__.e(270),__webpack_require__.e(5466)]).then(__webpack_require__.bind(__webpack_require__,45466))},{id:"apache",name:"Apache Conf",import:()=>__webpack_require__.e(1685).then(__webpack_require__.bind(__webpack_require__,81685))},{id:"apex",name:"Apex",import:()=>__webpack_require__.e(4364).then(__webpack_require__.bind(__webpack_require__,4364))},{id:"apl",name:"APL",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(4175),__webpack_require__.e(7652)]).then(__webpack_require__.bind(__webpack_require__,47652))},{id:"applescript",name:"AppleScript",import:()=>__webpack_require__.e(5748).then(__webpack_require__.bind(__webpack_require__,35748))},{id:"ara",name:"Ara",import:()=>__webpack_require__.e(84).then(__webpack_require__.bind(__webpack_require__,30084))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>__webpack_require__.e(6822).then(__webpack_require__.bind(__webpack_require__,6822))},{id:"asm",name:"Assembly",import:()=>__webpack_require__.e(6772).then(__webpack_require__.bind(__webpack_require__,36772))},{id:"astro",name:"Astro",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(5473),__webpack_require__.e(779),__webpack_require__.e(8887)]).then(__webpack_require__.bind(__webpack_require__,28887))},{id:"awk",name:"AWK",import:()=>__webpack_require__.e(1635).then(__webpack_require__.bind(__webpack_require__,71635))},{id:"ballerina",name:"Ballerina",import:()=>__webpack_require__.e(2173).then(__webpack_require__.bind(__webpack_require__,72173))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>__webpack_require__.e(9513).then(__webpack_require__.bind(__webpack_require__,49513))},{id:"beancount",name:"Beancount",import:()=>__webpack_require__.e(4272).then(__webpack_require__.bind(__webpack_require__,54272))},{id:"berry",name:"Berry",aliases:["be"],import:()=>__webpack_require__.e(4682).then(__webpack_require__.bind(__webpack_require__,44682))},{id:"bibtex",name:"BibTeX",import:()=>__webpack_require__.e(6803).then(__webpack_require__.bind(__webpack_require__,26803))},{id:"bicep",name:"Bicep",import:()=>__webpack_require__.e(3254).then(__webpack_require__.bind(__webpack_require__,53254))},{id:"blade",name:"Blade",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(4175),__webpack_require__.e(45),__webpack_require__.e(5146)]).then(__webpack_require__.bind(__webpack_require__,75146))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>__webpack_require__.e(9055).then(__webpack_require__.bind(__webpack_require__,59055))},{id:"c",name:"C",import:()=>__webpack_require__.e(3214).then(__webpack_require__.bind(__webpack_require__,43214))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>__webpack_require__.e(1915).then(__webpack_require__.bind(__webpack_require__,21915))},{id:"cairo",name:"Cairo",import:()=>Promise.all([__webpack_require__.e(9402),__webpack_require__.e(8824)]).then(__webpack_require__.bind(__webpack_require__,8824))},{id:"clarity",name:"Clarity",import:()=>__webpack_require__.e(2654).then(__webpack_require__.bind(__webpack_require__,52654))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>__webpack_require__.e(5636).then(__webpack_require__.bind(__webpack_require__,65636))},{id:"cmake",name:"CMake",import:()=>__webpack_require__.e(3619).then(__webpack_require__.bind(__webpack_require__,83619))},{id:"cobol",name:"COBOL",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(4175),__webpack_require__.e(7967)]).then(__webpack_require__.bind(__webpack_require__,67967))},{id:"codeowners",name:"CODEOWNERS",import:()=>__webpack_require__.e(3514).then(__webpack_require__.bind(__webpack_require__,73514))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>__webpack_require__.e(3449).then(__webpack_require__.bind(__webpack_require__,3449))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(4447)]).then(__webpack_require__.bind(__webpack_require__,14447))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>__webpack_require__.e(4477).then(__webpack_require__.bind(__webpack_require__,74477))},{id:"coq",name:"Coq",import:()=>__webpack_require__.e(5431).then(__webpack_require__.bind(__webpack_require__,15431))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([__webpack_require__.e(45),__webpack_require__.e(3214),__webpack_require__.e(9412)]).then(__webpack_require__.bind(__webpack_require__,49412))},{id:"crystal",name:"Crystal",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(45),__webpack_require__.e(3214),__webpack_require__.e(3426),__webpack_require__.e(1104)]).then(__webpack_require__.bind(__webpack_require__,11104))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>__webpack_require__.e(3645).then(__webpack_require__.bind(__webpack_require__,93645))},{id:"css",name:"CSS",import:()=>__webpack_require__.e(3157).then(__webpack_require__.bind(__webpack_require__,23157))},{id:"csv",name:"CSV",import:()=>__webpack_require__.e(6906).then(__webpack_require__.bind(__webpack_require__,86906))},{id:"cue",name:"CUE",import:()=>__webpack_require__.e(6306).then(__webpack_require__.bind(__webpack_require__,86306))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>__webpack_require__.e(1797).then(__webpack_require__.bind(__webpack_require__,91797))},{id:"d",name:"D",import:()=>__webpack_require__.e(3028).then(__webpack_require__.bind(__webpack_require__,3028))},{id:"dart",name:"Dart",import:()=>__webpack_require__.e(485).then(__webpack_require__.bind(__webpack_require__,20485))},{id:"dax",name:"DAX",import:()=>__webpack_require__.e(108).then(__webpack_require__.bind(__webpack_require__,50108))},{id:"desktop",name:"Desktop",import:()=>__webpack_require__.e(8321).then(__webpack_require__.bind(__webpack_require__,48321))},{id:"diff",name:"Diff",import:()=>__webpack_require__.e(3267).then(__webpack_require__.bind(__webpack_require__,83267))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>__webpack_require__.e(627).then(__webpack_require__.bind(__webpack_require__,60627))},{id:"dotenv",name:"dotEnv",import:()=>__webpack_require__.e(2349).then(__webpack_require__.bind(__webpack_require__,2349))},{id:"dream-maker",name:"Dream Maker",import:()=>__webpack_require__.e(2576).then(__webpack_require__.bind(__webpack_require__,62576))},{id:"edge",name:"Edge",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(5473),__webpack_require__.e(492)]).then(__webpack_require__.bind(__webpack_require__,30492))},{id:"elixir",name:"Elixir",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(7161)]).then(__webpack_require__.bind(__webpack_require__,47161))},{id:"elm",name:"Elm",import:()=>Promise.all([__webpack_require__.e(3214),__webpack_require__.e(7359)]).then(__webpack_require__.bind(__webpack_require__,7359))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>__webpack_require__.e(4003).then(__webpack_require__.bind(__webpack_require__,54003))},{id:"erb",name:"ERB",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(5473),__webpack_require__.e(4175),__webpack_require__.e(45),__webpack_require__.e(3214),__webpack_require__.e(3426),__webpack_require__.e(779),__webpack_require__.e(9912),__webpack_require__.e(9412),__webpack_require__.e(4713),__webpack_require__.e(2843)]).then(__webpack_require__.bind(__webpack_require__,62843))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([__webpack_require__.e(1273),__webpack_require__.e(751)]).then(__webpack_require__.bind(__webpack_require__,50751))},{id:"fennel",name:"Fennel",import:()=>__webpack_require__.e(1524).then(__webpack_require__.bind(__webpack_require__,61524))},{id:"fish",name:"Fish",import:()=>__webpack_require__.e(4238).then(__webpack_require__.bind(__webpack_require__,14238))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>__webpack_require__.e(1307).then(__webpack_require__.bind(__webpack_require__,1307))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([__webpack_require__.e(934),__webpack_require__.e(9040)]).then(__webpack_require__.bind(__webpack_require__,49040))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>__webpack_require__.e(934).then(__webpack_require__.bind(__webpack_require__,70934))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([__webpack_require__.e(1273),__webpack_require__.e(5183)]).then(__webpack_require__.bind(__webpack_require__,35183))},{id:"gdresource",name:"GDResource",import:()=>__webpack_require__.e(248).then(__webpack_require__.bind(__webpack_require__,10248))},{id:"gdscript",name:"GDScript",import:()=>__webpack_require__.e(8249).then(__webpack_require__.bind(__webpack_require__,28249))},{id:"gdshader",name:"GDShader",import:()=>__webpack_require__.e(4584).then(__webpack_require__.bind(__webpack_require__,54584))},{id:"genie",name:"Genie",import:()=>__webpack_require__.e(3142).then(__webpack_require__.bind(__webpack_require__,43142))},{id:"gherkin",name:"Gherkin",import:()=>__webpack_require__.e(2768).then(__webpack_require__.bind(__webpack_require__,82768))},{id:"git-commit",name:"Git Commit Message",import:()=>__webpack_require__.e(9071).then(__webpack_require__.bind(__webpack_require__,19071))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([__webpack_require__.e(3426),__webpack_require__.e(8343)]).then(__webpack_require__.bind(__webpack_require__,58343))},{id:"gleam",name:"Gleam",import:()=>__webpack_require__.e(6982).then(__webpack_require__.bind(__webpack_require__,76982))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(5473),__webpack_require__.e(9734)]).then(__webpack_require__.bind(__webpack_require__,9734))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(5473),__webpack_require__.e(5695)]).then(__webpack_require__.bind(__webpack_require__,35695))},{id:"glsl",name:"GLSL",import:()=>Promise.all([__webpack_require__.e(3214),__webpack_require__.e(8829)]).then(__webpack_require__.bind(__webpack_require__,58829))},{id:"gnuplot",name:"Gnuplot",import:()=>__webpack_require__.e(640).then(__webpack_require__.bind(__webpack_require__,60640))},{id:"go",name:"Go",import:()=>__webpack_require__.e(4630).then(__webpack_require__.bind(__webpack_require__,4630))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(5473),__webpack_require__.e(779),__webpack_require__.e(9912),__webpack_require__.e(8146)]).then(__webpack_require__.bind(__webpack_require__,85765))},{id:"groovy",name:"Groovy",import:()=>__webpack_require__.e(8304).then(__webpack_require__.bind(__webpack_require__,48304))},{id:"hack",name:"Hack",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(45),__webpack_require__.e(7672)]).then(__webpack_require__.bind(__webpack_require__,67672))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6880)]).then(__webpack_require__.bind(__webpack_require__,46880))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(1618)]).then(__webpack_require__.bind(__webpack_require__,41618))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>__webpack_require__.e(711).then(__webpack_require__.bind(__webpack_require__,50711))},{id:"haxe",name:"Haxe",import:()=>__webpack_require__.e(415).then(__webpack_require__.bind(__webpack_require__,12796))},{id:"hcl",name:"HashiCorp HCL",import:()=>__webpack_require__.e(5885).then(__webpack_require__.bind(__webpack_require__,85885))},{id:"hjson",name:"Hjson",import:()=>__webpack_require__.e(9014).then(__webpack_require__.bind(__webpack_require__,59014))},{id:"hlsl",name:"HLSL",import:()=>__webpack_require__.e(5741).then(__webpack_require__.bind(__webpack_require__,75741))},{id:"html",name:"HTML",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676)]).then(__webpack_require__.bind(__webpack_require__,66676))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(9559)]).then(__webpack_require__.bind(__webpack_require__,49559))},{id:"http",name:"HTTP",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(5473),__webpack_require__.e(4175),__webpack_require__.e(3426),__webpack_require__.e(779),__webpack_require__.e(9912),__webpack_require__.e(8056)]).then(__webpack_require__.bind(__webpack_require__,58056))},{id:"hxml",name:"HXML",import:()=>__webpack_require__.e(9997).then(__webpack_require__.bind(__webpack_require__,29997))},{id:"hy",name:"Hy",import:()=>__webpack_require__.e(1745).then(__webpack_require__.bind(__webpack_require__,61745))},{id:"imba",name:"Imba",import:()=>__webpack_require__.e(8179).then(__webpack_require__.bind(__webpack_require__,8179))},{id:"ini",name:"INI",aliases:["properties"],import:()=>__webpack_require__.e(9193).then(__webpack_require__.bind(__webpack_require__,59193))},{id:"java",name:"Java",import:()=>__webpack_require__.e(4175).then(__webpack_require__.bind(__webpack_require__,64175))},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>__webpack_require__.e(7273).then(__webpack_require__.bind(__webpack_require__,67273))},{id:"jinja",name:"Jinja",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(2111)]).then(__webpack_require__.bind(__webpack_require__,52111))},{id:"jison",name:"Jison",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3659)]).then(__webpack_require__.bind(__webpack_require__,33659))},{id:"json",name:"JSON",import:()=>__webpack_require__.e(4371).then(__webpack_require__.bind(__webpack_require__,4371))},{id:"json5",name:"JSON5",import:()=>__webpack_require__.e(9640).then(__webpack_require__.bind(__webpack_require__,49640))},{id:"jsonc",name:"JSON with Comments",import:()=>__webpack_require__.e(299).then(__webpack_require__.bind(__webpack_require__,10299))},{id:"jsonl",name:"JSON Lines",import:()=>__webpack_require__.e(4503).then(__webpack_require__.bind(__webpack_require__,4503))},{id:"jsonnet",name:"Jsonnet",import:()=>__webpack_require__.e(880).then(__webpack_require__.bind(__webpack_require__,80880))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>__webpack_require__.e(6266).then(__webpack_require__.bind(__webpack_require__,26266))},{id:"jsx",name:"JSX",import:()=>__webpack_require__.e(9912).then(__webpack_require__.bind(__webpack_require__,29912))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(45),__webpack_require__.e(3214),__webpack_require__.e(9412),__webpack_require__.e(9402),__webpack_require__.e(5977),__webpack_require__.e(611)]).then(__webpack_require__.bind(__webpack_require__,10611))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>__webpack_require__.e(3319).then(__webpack_require__.bind(__webpack_require__,33319))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>__webpack_require__.e(2555).then(__webpack_require__.bind(__webpack_require__,82555))},{id:"latex",name:"LaTeX",import:()=>Promise.all([__webpack_require__.e(5977),__webpack_require__.e(2385)]).then(__webpack_require__.bind(__webpack_require__,32385))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>__webpack_require__.e(7005).then(__webpack_require__.bind(__webpack_require__,27005))},{id:"less",name:"Less",import:()=>__webpack_require__.e(8437).then(__webpack_require__.bind(__webpack_require__,98437))},{id:"liquid",name:"Liquid",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(2905)]).then(__webpack_require__.bind(__webpack_require__,52905))},{id:"llvm",name:"LLVM IR",import:()=>__webpack_require__.e(8748).then(__webpack_require__.bind(__webpack_require__,88748))},{id:"log",name:"Log file",import:()=>__webpack_require__.e(7232).then(__webpack_require__.bind(__webpack_require__,27232))},{id:"logo",name:"Logo",import:()=>__webpack_require__.e(72).then(__webpack_require__.bind(__webpack_require__,30072))},{id:"lua",name:"Lua",import:()=>Promise.all([__webpack_require__.e(3214),__webpack_require__.e(6079)]).then(__webpack_require__.bind(__webpack_require__,56079))},{id:"luau",name:"Luau",import:()=>__webpack_require__.e(7959).then(__webpack_require__.bind(__webpack_require__,67959))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>__webpack_require__.e(3722).then(__webpack_require__.bind(__webpack_require__,63722))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>__webpack_require__.e(1273).then(__webpack_require__.bind(__webpack_require__,1273))},{id:"marko",name:"Marko",import:()=>Promise.all([__webpack_require__.e(3157),__webpack_require__.e(5473),__webpack_require__.e(4725),__webpack_require__.e(8437),__webpack_require__.e(3407)]).then(__webpack_require__.bind(__webpack_require__,25788))},{id:"matlab",name:"MATLAB",import:()=>__webpack_require__.e(2897).then(__webpack_require__.bind(__webpack_require__,2897))},{id:"mdc",name:"MDC",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(1273),__webpack_require__.e(9514)]).then(__webpack_require__.bind(__webpack_require__,89514))},{id:"mdx",name:"MDX",import:()=>__webpack_require__.e(7131).then(__webpack_require__.bind(__webpack_require__,87131))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>__webpack_require__.e(6795).then(__webpack_require__.bind(__webpack_require__,56795))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>__webpack_require__.e(1534).then(__webpack_require__.bind(__webpack_require__,61534))},{id:"mojo",name:"Mojo",import:()=>__webpack_require__.e(8369).then(__webpack_require__.bind(__webpack_require__,48369))},{id:"move",name:"Move",import:()=>__webpack_require__.e(8522).then(__webpack_require__.bind(__webpack_require__,68522))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>__webpack_require__.e(1678).then(__webpack_require__.bind(__webpack_require__,31678))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>__webpack_require__.e(642).then(__webpack_require__.bind(__webpack_require__,80642))},{id:"nginx",name:"Nginx",import:()=>Promise.all([__webpack_require__.e(3214),__webpack_require__.e(2271)]).then(__webpack_require__.bind(__webpack_require__,22271))},{id:"nim",name:"Nim",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(4175),__webpack_require__.e(3214),__webpack_require__.e(1273),__webpack_require__.e(7954)]).then(__webpack_require__.bind(__webpack_require__,47954))},{id:"nix",name:"Nix",import:()=>__webpack_require__.e(6084).then(__webpack_require__.bind(__webpack_require__,6084))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>__webpack_require__.e(9205).then(__webpack_require__.bind(__webpack_require__,9205))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>__webpack_require__.e(4390).then(__webpack_require__.bind(__webpack_require__,64390))},{id:"objective-cpp",name:"Objective-C++",import:()=>__webpack_require__.e(9576).then(__webpack_require__.bind(__webpack_require__,49576))},{id:"ocaml",name:"OCaml",import:()=>__webpack_require__.e(410).then(__webpack_require__.bind(__webpack_require__,410))},{id:"pascal",name:"Pascal",import:()=>__webpack_require__.e(6336).then(__webpack_require__.bind(__webpack_require__,16336))},{id:"perl",name:"Perl",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(4175),__webpack_require__.e(45),__webpack_require__.e(1540)]).then(__webpack_require__.bind(__webpack_require__,11540))},{id:"php",name:"PHP",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(4175),__webpack_require__.e(45),__webpack_require__.e(1285),__webpack_require__.e(5672)]).then(__webpack_require__.bind(__webpack_require__,41285))},{id:"plsql",name:"PL/SQL",import:()=>__webpack_require__.e(4872).then(__webpack_require__.bind(__webpack_require__,24872))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>__webpack_require__.e(6094).then(__webpack_require__.bind(__webpack_require__,36094))},{id:"polar",name:"Polar",import:()=>__webpack_require__.e(7719).then(__webpack_require__.bind(__webpack_require__,67719))},{id:"postcss",name:"PostCSS",import:()=>__webpack_require__.e(1970).then(__webpack_require__.bind(__webpack_require__,71970))},{id:"powerquery",name:"PowerQuery",import:()=>__webpack_require__.e(8675).then(__webpack_require__.bind(__webpack_require__,58675))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>__webpack_require__.e(7812).then(__webpack_require__.bind(__webpack_require__,67812))},{id:"prisma",name:"Prisma",import:()=>__webpack_require__.e(8768).then(__webpack_require__.bind(__webpack_require__,48768))},{id:"prolog",name:"Prolog",import:()=>__webpack_require__.e(9621).then(__webpack_require__.bind(__webpack_require__,49621))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>__webpack_require__.e(4017).then(__webpack_require__.bind(__webpack_require__,14017))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(7705)]).then(__webpack_require__.bind(__webpack_require__,97705))},{id:"puppet",name:"Puppet",import:()=>__webpack_require__.e(8649).then(__webpack_require__.bind(__webpack_require__,48649))},{id:"purescript",name:"PureScript",import:()=>__webpack_require__.e(8524).then(__webpack_require__.bind(__webpack_require__,38524))},{id:"python",name:"Python",aliases:["py"],import:()=>__webpack_require__.e(9402).then(__webpack_require__.bind(__webpack_require__,89402))},{id:"qml",name:"QML",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3239)]).then(__webpack_require__.bind(__webpack_require__,33239))},{id:"qmldir",name:"QML Directory",import:()=>__webpack_require__.e(8122).then(__webpack_require__.bind(__webpack_require__,38122))},{id:"qss",name:"Qt Style Sheets",import:()=>__webpack_require__.e(1328).then(__webpack_require__.bind(__webpack_require__,51328))},{id:"r",name:"R",import:()=>__webpack_require__.e(5977).then(__webpack_require__.bind(__webpack_require__,75977))},{id:"racket",name:"Racket",import:()=>__webpack_require__.e(9115).then(__webpack_require__.bind(__webpack_require__,49115))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>__webpack_require__.e(3724).then(__webpack_require__.bind(__webpack_require__,3724))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(3645),__webpack_require__.e(5715)]).then(__webpack_require__.bind(__webpack_require__,5715))},{id:"reg",name:"Windows Registry Script",import:()=>__webpack_require__.e(2353).then(__webpack_require__.bind(__webpack_require__,12353))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>__webpack_require__.e(6678).then(__webpack_require__.bind(__webpack_require__,86678))},{id:"rel",name:"Rel",import:()=>__webpack_require__.e(6366).then(__webpack_require__.bind(__webpack_require__,66366))},{id:"riscv",name:"RISC-V",import:()=>__webpack_require__.e(6648).then(__webpack_require__.bind(__webpack_require__,26648))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(5473),__webpack_require__.e(4175),__webpack_require__.e(45),__webpack_require__.e(3214),__webpack_require__.e(3426),__webpack_require__.e(779),__webpack_require__.e(9912),__webpack_require__.e(9412),__webpack_require__.e(9402),__webpack_require__.e(4713),__webpack_require__.e(8860)]).then(__webpack_require__.bind(__webpack_require__,18860))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(5473),__webpack_require__.e(4175),__webpack_require__.e(45),__webpack_require__.e(3214),__webpack_require__.e(3426),__webpack_require__.e(779),__webpack_require__.e(9912),__webpack_require__.e(9412),__webpack_require__.e(4713)]).then(__webpack_require__.bind(__webpack_require__,14713))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>__webpack_require__.e(1897).then(__webpack_require__.bind(__webpack_require__,81897))},{id:"sas",name:"SAS",import:()=>Promise.all([__webpack_require__.e(45),__webpack_require__.e(8151)]).then(__webpack_require__.bind(__webpack_require__,8151))},{id:"sass",name:"Sass",import:()=>__webpack_require__.e(6221).then(__webpack_require__.bind(__webpack_require__,26221))},{id:"scala",name:"Scala",import:()=>__webpack_require__.e(2789).then(__webpack_require__.bind(__webpack_require__,12789))},{id:"scheme",name:"Scheme",import:()=>__webpack_require__.e(2198).then(__webpack_require__.bind(__webpack_require__,32198))},{id:"scss",name:"SCSS",import:()=>Promise.all([__webpack_require__.e(3157),__webpack_require__.e(4725)]).then(__webpack_require__.bind(__webpack_require__,4725))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>__webpack_require__.e(1521).then(__webpack_require__.bind(__webpack_require__,51521))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>__webpack_require__.e(5620).then(__webpack_require__.bind(__webpack_require__,83239))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>__webpack_require__.e(3426).then(__webpack_require__.bind(__webpack_require__,33426))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([__webpack_require__.e(3426),__webpack_require__.e(9125)]).then(__webpack_require__.bind(__webpack_require__,59125))},{id:"smalltalk",name:"Smalltalk",import:()=>__webpack_require__.e(8181).then(__webpack_require__.bind(__webpack_require__,48181))},{id:"solidity",name:"Solidity",import:()=>__webpack_require__.e(325).then(__webpack_require__.bind(__webpack_require__,90325))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(3045)]).then(__webpack_require__.bind(__webpack_require__,53045))},{id:"sparql",name:"SPARQL",import:()=>__webpack_require__.e(7771).then(__webpack_require__.bind(__webpack_require__,57771))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>__webpack_require__.e(6853).then(__webpack_require__.bind(__webpack_require__,6853))},{id:"sql",name:"SQL",import:()=>__webpack_require__.e(45).then(__webpack_require__.bind(__webpack_require__,30045))},{id:"ssh-config",name:"SSH Config",import:()=>__webpack_require__.e(2224).then(__webpack_require__.bind(__webpack_require__,12224))},{id:"stata",name:"Stata",import:()=>Promise.all([__webpack_require__.e(45),__webpack_require__.e(9289)]).then(__webpack_require__.bind(__webpack_require__,59289))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>__webpack_require__.e(2075).then(__webpack_require__.bind(__webpack_require__,82075))},{id:"svelte",name:"Svelte",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(5473),__webpack_require__.e(1203)]).then(__webpack_require__.bind(__webpack_require__,31203))},{id:"swift",name:"Swift",import:()=>__webpack_require__.e(5331).then(__webpack_require__.bind(__webpack_require__,15331))},{id:"system-verilog",name:"SystemVerilog",import:()=>__webpack_require__.e(359).then(__webpack_require__.bind(__webpack_require__,359))},{id:"systemd",name:"Systemd Units",import:()=>__webpack_require__.e(4365).then(__webpack_require__.bind(__webpack_require__,94365))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>__webpack_require__.e(5447).then(__webpack_require__.bind(__webpack_require__,45447))},{id:"tasl",name:"Tasl",import:()=>__webpack_require__.e(9255).then(__webpack_require__.bind(__webpack_require__,79255))},{id:"tcl",name:"Tcl",import:()=>__webpack_require__.e(355).then(__webpack_require__.bind(__webpack_require__,40355))},{id:"templ",name:"Templ",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(4630),__webpack_require__.e(5788)]).then(__webpack_require__.bind(__webpack_require__,5788))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>__webpack_require__.e(9986).then(__webpack_require__.bind(__webpack_require__,39986))},{id:"tex",name:"TeX",import:()=>Promise.all([__webpack_require__.e(5977),__webpack_require__.e(4246)]).then(__webpack_require__.bind(__webpack_require__,74246))},{id:"toml",name:"TOML",import:()=>__webpack_require__.e(1552).then(__webpack_require__.bind(__webpack_require__,51552))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(5473),__webpack_require__.e(4175),__webpack_require__.e(45),__webpack_require__.e(3214),__webpack_require__.e(5253)]).then(__webpack_require__.bind(__webpack_require__,45253))},{id:"tsv",name:"TSV",import:()=>__webpack_require__.e(3041).then(__webpack_require__.bind(__webpack_require__,63041))},{id:"tsx",name:"TSX",import:()=>__webpack_require__.e(779).then(__webpack_require__.bind(__webpack_require__,779))},{id:"turtle",name:"Turtle",import:()=>__webpack_require__.e(6176).then(__webpack_require__.bind(__webpack_require__,86176))},{id:"twig",name:"Twig",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(5473),__webpack_require__.e(4175),__webpack_require__.e(45),__webpack_require__.e(3214),__webpack_require__.e(3426),__webpack_require__.e(779),__webpack_require__.e(9912),__webpack_require__.e(9412),__webpack_require__.e(9402),__webpack_require__.e(4725),__webpack_require__.e(4713),__webpack_require__.e(1285),__webpack_require__.e(9754)]).then(__webpack_require__.bind(__webpack_require__,19754))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>__webpack_require__.e(5473).then(__webpack_require__.bind(__webpack_require__,95473))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>__webpack_require__.e(4913).then(__webpack_require__.bind(__webpack_require__,4913))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>__webpack_require__.e(5900).then(__webpack_require__.bind(__webpack_require__,55900))},{id:"v",name:"V",import:()=>__webpack_require__.e(8400).then(__webpack_require__.bind(__webpack_require__,28400))},{id:"vala",name:"Vala",import:()=>__webpack_require__.e(3930).then(__webpack_require__.bind(__webpack_require__,13930))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>__webpack_require__.e(8929).then(__webpack_require__.bind(__webpack_require__,28929))},{id:"verilog",name:"Verilog",import:()=>__webpack_require__.e(5908).then(__webpack_require__.bind(__webpack_require__,45908))},{id:"vhdl",name:"VHDL",import:()=>__webpack_require__.e(9113).then(__webpack_require__.bind(__webpack_require__,19113))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>__webpack_require__.e(7400).then(__webpack_require__.bind(__webpack_require__,57400))},{id:"vue",name:"Vue",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(5473),__webpack_require__.e(7441)]).then(__webpack_require__.bind(__webpack_require__,47441))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(5473),__webpack_require__.e(7441),__webpack_require__.e(4127)]).then(__webpack_require__.bind(__webpack_require__,14127))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([__webpack_require__.e(7273),__webpack_require__.e(3157),__webpack_require__.e(6676),__webpack_require__.e(5473),__webpack_require__.e(4725),__webpack_require__.e(8437),__webpack_require__.e(7441),__webpack_require__.e(2075),__webpack_require__.e(9926)]).then(__webpack_require__.bind(__webpack_require__,99926))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>__webpack_require__.e(1752).then(__webpack_require__.bind(__webpack_require__,71752))},{id:"wasm",name:"WebAssembly",import:()=>__webpack_require__.e(3436).then(__webpack_require__.bind(__webpack_require__,13436))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>__webpack_require__.e(6520).then(__webpack_require__.bind(__webpack_require__,56520))},{id:"wgsl",name:"WGSL",import:()=>__webpack_require__.e(9277).then(__webpack_require__.bind(__webpack_require__,79277))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>__webpack_require__.e(3027).then(__webpack_require__.bind(__webpack_require__,43027))},{id:"wit",name:"WebAssembly Interface Types",import:()=>__webpack_require__.e(200).then(__webpack_require__.bind(__webpack_require__,50200))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>__webpack_require__.e(9262).then(__webpack_require__.bind(__webpack_require__,89262))},{id:"xml",name:"XML",import:()=>Promise.all([__webpack_require__.e(4175),__webpack_require__.e(3291)]).then(__webpack_require__.bind(__webpack_require__,55672))},{id:"xsl",name:"XSL",import:()=>Promise.all([__webpack_require__.e(4175),__webpack_require__.e(2639)]).then(__webpack_require__.bind(__webpack_require__,62639))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>__webpack_require__.e(7181).then(__webpack_require__.bind(__webpack_require__,97181))},{id:"zenscript",name:"ZenScript",import:()=>__webpack_require__.e(1431).then(__webpack_require__.bind(__webpack_require__,81431))},{id:"zig",name:"Zig",import:()=>__webpack_require__.e(4050).then(__webpack_require__.bind(__webpack_require__,14050))}],bundledLanguagesBase=Object.fromEntries(bundledLanguagesInfo.map(e=>[e.id,e.import])),bundledLanguagesAlias=Object.fromEntries(bundledLanguagesInfo.flatMap(e=>{var t;return(null==(t=e.aliases)?void 0:t.map(t=>[t,e.import]))||[]})),bundledLanguages={...bundledLanguagesBase,...bundledLanguagesAlias},bundledThemesInfo=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>__webpack_require__.e(267).then(__webpack_require__.bind(__webpack_require__,20267))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>__webpack_require__.e(4358).then(__webpack_require__.bind(__webpack_require__,54358))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>__webpack_require__.e(5882).then(__webpack_require__.bind(__webpack_require__,55882))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>__webpack_require__.e(6299).then(__webpack_require__.bind(__webpack_require__,26299))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>__webpack_require__.e(1178).then(__webpack_require__.bind(__webpack_require__,71178))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>__webpack_require__.e(7023).then(__webpack_require__.bind(__webpack_require__,57023))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>__webpack_require__.e(9456).then(__webpack_require__.bind(__webpack_require__,19456))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>__webpack_require__.e(7166).then(__webpack_require__.bind(__webpack_require__,17166))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>__webpack_require__.e(9165).then(__webpack_require__.bind(__webpack_require__,49165))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>__webpack_require__.e(4928).then(__webpack_require__.bind(__webpack_require__,14928))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>__webpack_require__.e(8957).then(__webpack_require__.bind(__webpack_require__,88957))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>__webpack_require__.e(8480).then(__webpack_require__.bind(__webpack_require__,98480))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>__webpack_require__.e(7399).then(__webpack_require__.bind(__webpack_require__,37399))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>__webpack_require__.e(8177).then(__webpack_require__.bind(__webpack_require__,98177))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>__webpack_require__.e(6774).then(__webpack_require__.bind(__webpack_require__,26774))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>__webpack_require__.e(8404).then(__webpack_require__.bind(__webpack_require__,8404))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>__webpack_require__.e(1377).then(__webpack_require__.bind(__webpack_require__,51377))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>__webpack_require__.e(9607).then(__webpack_require__.bind(__webpack_require__,9607))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>__webpack_require__.e(5906).then(__webpack_require__.bind(__webpack_require__,65906))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>__webpack_require__.e(4317).then(__webpack_require__.bind(__webpack_require__,44317))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>__webpack_require__.e(8295).then(__webpack_require__.bind(__webpack_require__,78295))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>__webpack_require__.e(4613).then(__webpack_require__.bind(__webpack_require__,54613))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>__webpack_require__.e(5765).then(__webpack_require__.bind(__webpack_require__,55765))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>__webpack_require__.e(6293).then(__webpack_require__.bind(__webpack_require__,36293))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>__webpack_require__.e(8751).then(__webpack_require__.bind(__webpack_require__,98751))},{id:"houston",displayName:"Houston",type:"dark",import:()=>__webpack_require__.e(1555).then(__webpack_require__.bind(__webpack_require__,61555))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>__webpack_require__.e(207).then(__webpack_require__.bind(__webpack_require__,60207))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>__webpack_require__.e(9704).then(__webpack_require__.bind(__webpack_require__,29704))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>__webpack_require__.e(4425).then(__webpack_require__.bind(__webpack_require__,54425))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>__webpack_require__.e(4755).then(__webpack_require__.bind(__webpack_require__,64755))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>__webpack_require__.e(9184).then(__webpack_require__.bind(__webpack_require__,36803))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>__webpack_require__.e(9885).then(__webpack_require__.bind(__webpack_require__,79885))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>__webpack_require__.e(6322).then(__webpack_require__.bind(__webpack_require__,26322))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>__webpack_require__.e(4353).then(__webpack_require__.bind(__webpack_require__,54353))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>__webpack_require__.e(5590).then(__webpack_require__.bind(__webpack_require__,15590))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>__webpack_require__.e(3551).then(__webpack_require__.bind(__webpack_require__,43551))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>__webpack_require__.e(2152).then(__webpack_require__.bind(__webpack_require__,2152))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>__webpack_require__.e(376).then(__webpack_require__.bind(__webpack_require__,30376))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>__webpack_require__.e(3688).then(__webpack_require__.bind(__webpack_require__,63688))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>__webpack_require__.e(3311).then(__webpack_require__.bind(__webpack_require__,93311))},{id:"nord",displayName:"Nord",type:"dark",import:()=>__webpack_require__.e(4886).then(__webpack_require__.bind(__webpack_require__,44886))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>__webpack_require__.e(9494).then(__webpack_require__.bind(__webpack_require__,99494))},{id:"one-light",displayName:"One Light",type:"light",import:()=>__webpack_require__.e(9180).then(__webpack_require__.bind(__webpack_require__,9180))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>__webpack_require__.e(7336).then(__webpack_require__.bind(__webpack_require__,27336))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>__webpack_require__.e(1055).then(__webpack_require__.bind(__webpack_require__,71055))},{id:"red",displayName:"Red",type:"dark",import:()=>__webpack_require__.e(3092).then(__webpack_require__.bind(__webpack_require__,23092))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>__webpack_require__.e(6320).then(__webpack_require__.bind(__webpack_require__,36320))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>__webpack_require__.e(7981).then(__webpack_require__.bind(__webpack_require__,67981))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>__webpack_require__.e(1045).then(__webpack_require__.bind(__webpack_require__,83426))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>__webpack_require__.e(8856).then(__webpack_require__.bind(__webpack_require__,48856))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>__webpack_require__.e(6007).then(__webpack_require__.bind(__webpack_require__,96007))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>__webpack_require__.e(1171).then(__webpack_require__.bind(__webpack_require__,31171))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>__webpack_require__.e(9251).then(__webpack_require__.bind(__webpack_require__,69251))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>__webpack_require__.e(851).then(__webpack_require__.bind(__webpack_require__,20851))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>__webpack_require__.e(9939).then(__webpack_require__.bind(__webpack_require__,19939))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>__webpack_require__.e(1902).then(__webpack_require__.bind(__webpack_require__,71902))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>__webpack_require__.e(904).then(__webpack_require__.bind(__webpack_require__,50904))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>__webpack_require__.e(6573).then(__webpack_require__.bind(__webpack_require__,6573))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>__webpack_require__.e(2072).then(__webpack_require__.bind(__webpack_require__,62072))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>__webpack_require__.e(7280).then(__webpack_require__.bind(__webpack_require__,67280))}],bundledThemes=Object.fromEntries(bundledThemesInfo.map(e=>[e.id,e.import]));class ShikiError extends Error{constructor(e){super(e),this.name="ShikiError"}}function getHeapMax(){return 2147483648}function _emscripten_get_now(){return typeof performance<"u"?performance.now():Date.now()}const alignUp=(e,t)=>e+(t-e%t)%t;async function main(e){let t,n;const r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}const o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function s(e,t){return e?function(e,t,n=1024){const r=t+n;let i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&o)return o.decode(e.subarray(t,i));let a="";for(;t<i;){let n=e[t++];if(!(128&n)){a+=String.fromCharCode(n);continue}const r=63&e[t++];if(192==(224&n)){a+=String.fromCharCode((31&n)<<6|r);continue}const i=63&e[t++];if(n=224==(240&n)?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++],n<65536)a+=String.fromCharCode(n);else{const e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return a}(r.HEAPU8,e,t):""}const l={emscripten_get_now:_emscripten_get_now,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){const t=r.HEAPU8.length;e>>>=0;const n=getHeapMax();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),a(Math.min(n,alignUp(Math.max(e,i),65536))))return!0}return!1},fd_write:()=>0};return await async function(){const n=await e({env:l,wasi_snapshot_preview1:l});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=s}(),r}var __defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n);let onigBinding=null;function throwLastOnigError(e){throw new ShikiError(e.UTF8ToString(e.getLastOnigError()))}class UtfString{constructor(e){__publicField(this,"utf16Length"),__publicField(this,"utf8Length"),__publicField(this,"utf16Value"),__publicField(this,"utf8Value"),__publicField(this,"utf16OffsetToUtf8"),__publicField(this,"utf8OffsetToUtf16");const t=e.length,n=UtfString._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);const a=r?new Uint32Array(n+1):null;r&&(a[n]=t);const o=new Uint8Array(n);let s=0;for(let n=0;n<t;n++){const l=e.charCodeAt(n);let c=l,u=!1;if(l>=55296&&l<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=65536+(l-55296<<10)|t-56320,u=!0)}r&&(i[n]=s,u&&(i[n+1]=s),c<=127?a[s+0]=n:c<=2047?(a[s+0]=n,a[s+1]=n):c<=65535?(a[s+0]=n,a[s+1]=n,a[s+2]=n):(a[s+0]=n,a[s+1]=n,a[s+2]=n,a[s+3]=n)),c<=127?o[s++]=c:c<=2047?(o[s++]=192|(1984&c)>>>6,o[s++]=128|(63&c)>>>0):c<=65535?(o[s++]=224|(61440&c)>>>12,o[s++]=128|(4032&c)>>>6,o[s++]=128|(63&c)>>>0):(o[s++]=240|(1835008&c)>>>18,o[s++]=128|(258048&c)>>>12,o[s++]=128|(4032&c)>>>6,o[s++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){const i=e.charCodeAt(n);let a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=65536+(i-55296<<10)|t-56320,o=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,o&&n++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const _OnigString=class e{constructor(t){if(__publicField(this,"id",++e.LAST_ID),__publicField(this,"_onigBinding"),__publicField(this,"content"),__publicField(this,"utf16Length"),__publicField(this,"utf8Length"),__publicField(this,"utf16OffsetToUtf8"),__publicField(this,"utf8OffsetToUtf16"),__publicField(this,"ptr"),!onigBinding)throw new ShikiError("Must invoke loadWasm first.");this._onigBinding=onigBinding,this.content=t;const n=new UtfString(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=onigBinding.omalloc(1e4)),e._sharedPtrInUse=!0,onigBinding.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(onigBinding)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};__publicField(_OnigString,"LAST_ID",0),__publicField(_OnigString,"_sharedPtr",0),__publicField(_OnigString,"_sharedPtrInUse",!1);let OnigString=_OnigString,initPromise;class OnigScanner{constructor(e){if(__publicField(this,"_onigBinding"),__publicField(this,"_ptr"),!onigBinding)throw new ShikiError("Must invoke loadWasm first.");const t=[],n=[];for(let r=0,i=e.length;r<i;r++){const i=new UtfString(e[r]);t[r]=i.createString(onigBinding),n[r]=i.utf8Length}const r=onigBinding.omalloc(4*e.length);onigBinding.HEAPU32.set(t,r/4);const i=onigBinding.omalloc(4*e.length);onigBinding.HEAPU32.set(n,i/4);const a=onigBinding.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)onigBinding.ofree(t[n]);onigBinding.ofree(i),onigBinding.ofree(r),0===a&&throwLastOnigError(onigBinding),this._onigBinding=onigBinding,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new OnigString(e);const n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){const i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;const o=i.HEAPU32;let s=a/4;const l=o[s++],c=o[s++],u=[];for(let t=0;t<c;t++){const n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:u}}}function isInstantiatorOptionsObject(e){return"function"==typeof e.instantiator}function isInstantiatorModule(e){return"function"==typeof e.default}function isDataOptionsObject(e){return typeof e.data<"u"}function isResponse(e){return typeof Response<"u"&&e instanceof Response}function isArrayBuffer(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&(null==(t=Buffer.isBuffer)?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}function loadWasm(e){return initPromise||(initPromise=async function(){onigBinding=await main(async t=>{let n=e;return n=await n,"function"==typeof n&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),isInstantiatorOptionsObject(n)?n=await n.instantiator(t):isInstantiatorModule(n)?n=await n.default(t):(isDataOptionsObject(n)&&(n=n.data),isResponse(n)?n="function"==typeof WebAssembly.instantiateStreaming?await _makeResponseStreamingLoader(n)(t):await _makeResponseNonStreamingLoader(n)(t):isArrayBuffer(n)||n instanceof WebAssembly.Module?n=await _makeArrayBufferLoader(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await _makeArrayBufferLoader(n.default)(t))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}(),initPromise)}function _makeArrayBufferLoader(e){return t=>WebAssembly.instantiate(e,t)}function _makeResponseStreamingLoader(e){return t=>WebAssembly.instantiateStreaming(e,t)}function _makeResponseNonStreamingLoader(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function createOnigurumaEngine(e){return e&&await loadWasm(e),{createScanner:e=>new OnigScanner(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new OnigString(e)}}const createHighlighter=createdBundledHighlighter({langs:bundledLanguages,themes:bundledThemes,engine:()=>createOnigurumaEngine(__webpack_require__.e(9285).then(__webpack_require__.bind(__webpack_require__,9285)))});function r$2(e){if(1!==[...e].length)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function l$1(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const i=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),o$1=String.raw;function u(e,t){if(null==e)throw new Error(t??"Value expected");return e}const m$3=o$1`\[\^?`,b$2=`c.? | C(?:-.?)?|${o$1`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${o$1`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${o$1`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${o$1`o\{[^\}]*\}?`}|${o$1`\d{1,3}`}`,y$2=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,C$2=new RegExp(o$1`
|
|
3
|
-
\\ (?:
|
|
4
|
-
${b$2}
|
|
5
|
-
| [gk]<[^>]*>?
|
|
6
|
-
| [gk]'[^']*'?
|
|
7
|
-
| .
|
|
8
|
-
)
|
|
9
|
-
| \( (?:
|
|
10
|
-
\? (?:
|
|
11
|
-
[:=!>({]
|
|
12
|
-
| <[=!]
|
|
13
|
-
| <[^>]*>
|
|
14
|
-
| '[^']*'
|
|
15
|
-
| ~\|?
|
|
16
|
-
| #(?:[^)\\]|\\.?)*
|
|
17
|
-
| [^:)]*[:)]
|
|
18
|
-
)?
|
|
19
|
-
| \*[^\)]*\)?
|
|
20
|
-
)?
|
|
21
|
-
| (?:${y$2.source})+
|
|
22
|
-
| ${m$3}
|
|
23
|
-
| .
|
|
24
|
-
`.replace(/\s+/g,""),"gsu"),T$2=new RegExp(o$1`
|
|
25
|
-
\\ (?:
|
|
26
|
-
${b$2}
|
|
27
|
-
| .
|
|
28
|
-
)
|
|
29
|
-
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
30
|
-
| ${m$3}
|
|
31
|
-
| &&
|
|
32
|
-
| .
|
|
33
|
-
`.replace(/\s+/g,""),"gsu");function M$3(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if("string"!=typeof e)throw new Error("String expected as pattern");const r=Y(n.flags),i=[r.extended],a={captureGroup:n.rules.captureGroup,getCurrentModX:()=>i.at(-1),numOpenGroups:0,popModX(){i.pop()},pushModX(e){i.push(e)},replaceCurrentModX(e){i[i.length-1]=e},singleline:n.rules.singleline};let o,s=[];for(C$2.lastIndex=0;o=C$2.exec(e);){const t=F$3(a,e,o[0],C$2.lastIndex);t.tokens?s.push(...t.tokens):t.token&&s.push(t.token),void 0!==t.lastIndex&&(C$2.lastIndex=t.lastIndex)}const l=[];let c=0;s.filter(e=>"GroupOpen"===e.type).forEach(e=>{"capturing"===e.kind?e.number=++c:"("===e.raw&&l.push(e)}),c||l.forEach((e,t)=>{e.kind="capturing",e.number=t+1});const u=c||l.length;return{tokens:s.map(e=>"EscapedNumber"===e.type?ee$2(e,u):e).flat(),flags:r}}function F$3(e,t,n,r){const[i,a]=n;if("["===n||"[^"===n){const e=K$2(t,n,r);return{tokens:e.tokens,lastIndex:e.lastIndex}}if("\\"===i){if("AbBGyYzZ".includes(a))return{token:w$2(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:R$2(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:A$2(n)}}if("K"===a)return{token:I$2("keep",n)};if("N"===a||"R"===a)return{token:k$3("newline",n,{negate:"N"===a})};if("O"===a)return{token:k$3("any",n)};if("X"===a)return{token:k$3("text_segment",n)};const e=x$1(n,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if("("===i){if("*"===a)return{token:j$2(n)};if("(?{"===n)throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(")"!==t[r])throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:L$2(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,"("===n&&!e.captureGroup||"(?:"===n)return{token:f$1("group",n)};if("(?>"===n)return{token:f$1("atomic",n)};if("(?="===n||"(?!"===n||"(?<="===n||"(?<!"===n)return{token:f$1("<"===n[2]?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if("("===n&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:f$1("capturing",n,{..."("!==n&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if("(?~|"===n)throw new Error(`Unsupported absence function kind "${n}"`);return{token:f$1("absence_repeater",n)}}throw"(?("===n?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(")"===n){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:Q$3(n)}}if(e.getCurrentModX()){if("#"===n){const e=t.indexOf("\n",r);return{lastIndex:-1===e?t.length:e}}if(/^\s$/.test(n)){const e=/\s+/y;return e.lastIndex=r,{lastIndex:e.exec(t)?e.lastIndex:r}}}return"."===n?{token:k$3("dot",n)}:"^"===n||"$"===n?{token:w$2(e.singleline?{"^":o$1`\A`,$:o$1`\Z`}[n]:n,n)}:"|"===n?{token:P$3(n)}:y$2.test(n)?{tokens:te$2(n)}:{token:d$1(r$2(n),n)}}function K$2(e,t,n){const r=[E$2("^"===t[1],t)];let i,a=1;for(T$2.lastIndex=n;i=T$2.exec(e);){const e=i[0];if("["===e[0]&&":"!==e[1])a++,r.push(E$2("^"===e[1],e));else if("]"===e){if("CharacterClassOpen"===r.at(-1).type)r.push(d$1(93,e));else if(a--,r.push(z$3(e)),!a)break}else{const t=X$3(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:T$2.lastIndex||e.length}}function X$3(e){if("\\"===e[0])return x$1(e,{inCharClass:!0});if("["===e[0]){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!i.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return k$3("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return"-"===e?U$3(e):"&&"===e?H(e):d$1(r$2(e),e)}function x$1(e,{inCharClass:t}){const n=e[1];if("c"===n||"C"===n)return Z(e);if("dDhHsSwW".includes(n))return q$1(e);if(e.startsWith(o$1`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(3===e.length)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return V$3(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),n=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),r=new TextEncoder;return[...n].map(e=>{const t=[...r.encode(e)].map(e=>`\\x${e.toString(16)}`).join("");return d$1(r$2(e),t)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if("u"===n||"x"===n)return d$1(J$2(e),e);if($$2.has(n))return d$1($$2.get(n),e);if(/\d/.test(n))return W$3(t,e);if("\\"===e)throw new Error(o$1`Incomplete escape "\"`);if("M"===n)throw new Error(`Unsupported meta "${e}"`);if(2===[...e].length)return d$1(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function P$3(e){return{type:"Alternator",raw:e}}function w$2(e,t){return{type:"Assertion",kind:e,raw:t}}function A$2(e){return{type:"Backreference",raw:e}}function d$1(e,t){return{type:"Character",value:e,raw:t}}function z$3(e){return{type:"CharacterClassClose",raw:e}}function U$3(e){return{type:"CharacterClassHyphen",raw:e}}function H(e){return{type:"CharacterClassIntersector",raw:e}}function E$2(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function k$3(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function I$2(e,t,n={}){return"keep"===e?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:u(n.flags),raw:t}}function W$3(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function Q$3(e){return{type:"GroupClose",raw:e}}function f$1(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function D$2(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function _$2(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function R$2(e){return{type:"Subroutine",raw:e}}const B$2=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),$$2=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function Z(e){const t="c"===e[1]?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return d$1(r$2(t.toUpperCase())-64,e)}function L$2(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??(r="");const i=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),a=v$1(n),o=v$1(r),s={};if(a&&(s.enable=a),o&&(s.disable=o),e.endsWith(")"))return t.replaceCurrentModX(i),I$2("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,f$1("group",e,{...(a||o)&&{flags:s}});throw new Error(`Unexpected flag modifier "${e}"`)}function j$2(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:i}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(""===r)throw new Error(`Named callout tag with empty value not allowed "${e}"`);const a=i?i.split(",").filter(e=>""!==e).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[o,s,l]=a,c=B$2.has(n)?n.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(a.length>0)throw new Error(`Named callout arguments not allowed "${a}"`);break;case"error":if(a.length>1)throw new Error(`Named callout allows only one argument "${a}"`);if("string"==typeof o)throw new Error(`Named callout argument must be a number "${o}"`);break;case"max":if(!a.length||a.length>2)throw new Error(`Named callout must have one or two arguments "${a}"`);if("string"==typeof o&&!/^[A-Za-z_]\w*$/.test(o))throw new Error(`Named callout argument one must be a tag or number "${o}"`);if(2===a.length&&("number"==typeof s||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case"count":case"total_count":if(a.length>1)throw new Error(`Named callout allows only one argument "${a}"`);if(1===a.length&&("number"==typeof o||!/^[<>X]$/.test(o)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case"cmp":if(3!==a.length)throw new Error(`Named callout must have three arguments "${a}"`);if("string"==typeof o&&!/^[A-Za-z_]\w*$/.test(o))throw new Error(`Named callout argument one must be a tag or number "${o}"`);if("number"==typeof s||!/^(?:[<>!=]=|[<>])$/.test(s))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if("string"==typeof l&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${c}"`)}return D$2(c,r??null,(null==i?void 0:i.split(","))??null,e)}function O$2(e){let t,n,r=null;if("{"===e[0]){const{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,o=1e5;if(+i>o||a&&+a>o)throw new Error("Quantifier value unsupported in Oniguruma");if(t=+i,n=void 0===a?+i:""===a?1/0:+a,t>n&&(r="possessive",[t,n]=[n,t]),e.endsWith("?")){if("possessive"===r)throw new Error('Unsupported possessive interval quantifier chain with "?"');r="lazy"}else r||(r="greedy")}else t="+"===e[0]?1:0,n="?"===e[0]?1:1/0,r="+"===e[1]?"possessive":"?"===e[1]?"lazy":"greedy";return _$2(r,t,n,e)}function q$1(e){const t=e[1].toLowerCase();return k$3({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function V$3(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return k$3("property",e,{value:r,negate:"P"===t&&!n||"p"===t&&!!n})}function v$1(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function Y(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if("y"!==r)t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0;else{if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode="g"===e[n+2]?"grapheme":"word",n+=3}}return t}function J$2(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t="{"===e[2]?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function ee$2(e,t){const{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&("0"!==i&&1===i.length||"0"!==i[0]&&+i<=t))return[A$2(n)];const a=[],o=i.match(/^[0-7]+|\d/g);for(let e=0;e<o.length;e++){const t=o[e];let r;if(0===e&&"8"!==t&&"9"!==t){if(r=parseInt(t,8),r>127)throw new Error(o$1`Octal encoded byte above 177 unsupported "${n}"`)}else r=r$2(t);a.push(d$1(r,(0===e?"\\":"")+t))}return a}function te$2(e){const t=[],n=new RegExp(y$2,"gy");let r;for(;r=n.exec(e);){const e=r[0];if("{"===e[0]){const r=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(r){const{min:i,max:a}=r.groups;if(+i>+a&&e.endsWith("?")){n.lastIndex--,t.push(O$2(e.slice(0,-1)));continue}}}t.push(O$2(e))}return t}function o(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(1!==e.body.length)return!1;const n=e.body[0];return!t||Object.keys(t).every(e=>t[e]===n[e])}function s(e){return y$1.has(e.type)}const y$1=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function J$1(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=M$3(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(e,t)=>{const n=r.tokens[a.nextIndex];switch(a.parent=e,a.nextIndex++,n.type){case"Alternator":return b$1();case"Assertion":return W$2(n);case"Backreference":return X$2(n,a);case"Character":return m$2(n.value,{useLastValid:!!t.isCheckingRangeEnd});case"CharacterClassHyphen":return ee$1(n,a,t);case"CharacterClassOpen":return re$1(n,a,t);case"CharacterSet":return ne(n,a);case"Directive":return I$1(n.kind,{flags:n.flags});case"GroupOpen":return te$1(n,a,t);case"NamedCallout":return U$2(n.kind,n.tag,n.arguments);case"Quantifier":return oe$2(n,a);case"Subroutine":return ae$1(n,a);default:throw new Error(`Unexpected token type "${n.type}"`)}},a={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:i},o=B$1(T$1(r.flags));let s=o.body[0];for(;a.nextIndex<r.tokens.length;){const e=i(s,{});"Alternative"===e.type?(o.body.push(e),s=e):s.body.push(e)}const{capturingGroups:l,hasNumberedRef:c,namedGroupsByName:u,subroutines:d}=a;if(c&&u.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:e}of d)if("number"==typeof e){if(e>l.length)throw new Error("Subroutine uses a group number that's not defined");e&&(l[e-1].isSubroutined=!0)}else{if(!u.has(e))throw new Error(o$1`Subroutine uses a group name that's not defined "\g<${e}>"`);if(u.get(e).length>1)throw new Error(o$1`Subroutine uses a duplicate group name "\g<${e}>"`);u.get(e)[0].isSubroutined=!0}return o}function W$2({kind:e}){return F$2(u({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===o$1`\B`||e===o$1`\Y`})}function X$2({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(n,r=!1)=>{const i=t.capturingGroups.length;let a=!1;if(n>i){if(!t.skipBackrefValidation)throw new Error(`Not enough capturing groups defined to the left "${e}"`);a=!0}return t.hasNumberedRef=!0,k$2(r?i+1-n:n,{orphan:a})};if(n){const n=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(n)return i(+n.groups.num,!!n.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return k$2(r)}return i(+r)}function ee$1(e,t,n){const{tokens:r,walk:i}=t,a=t.parent,o=a.body.at(-1),s=r[t.nextIndex];if(!n.isCheckingRangeEnd&&o&&"CharacterClass"!==o.type&&"CharacterClassRange"!==o.type&&s&&"CharacterClassOpen"!==s.type&&"CharacterClassClose"!==s.type&&"CharacterClassIntersector"!==s.type){const e=i(a,{...n,isCheckingRangeEnd:!0});if("Character"===o.type&&"Character"===e.type)return a.body.pop(),L$1(o,e);throw new Error("Invalid character class range")}return m$2(r$2("-"))}function re$1({negate:e},t,n){const{tokens:r,walk:i}=t,a=r[t.nextIndex],o=[C$1()];let s=z$2(a);for(;"CharacterClassClose"!==s.type;){if("CharacterClassIntersector"===s.type)o.push(C$1()),t.nextIndex++;else{const e=o.at(-1);e.body.push(i(e,n))}s=z$2(r[t.nextIndex],a)}const l=C$1({negate:e});return 1===o.length?l.body=o[0].body:(l.kind="intersection",l.body=o.map(e=>1===e.body.length?e.body[0]:e)),t.nextIndex++,l}function ne({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:o,unicodePropertyMap:s}=r;if("property"===e){const r=w$1(n);if(!i.has(r)||null!=s&&s.has(r))return Q$2(n,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:o,unicodePropertyMap:s});e="posix",n=r}return"posix"===e?R$1(n,{negate:t}):E$1(e,{negate:t})}function te$1(e,t,n){const{tokens:r,capturingGroups:i,namedGroupsByName:a,skipLookbehindValidation:o,walk:s}=t,l=ie$1(e),c="AbsenceFunction"===l.type,u=$$1(l),d=u&&l.negate;if("CapturingGroup"===l.type&&(i.push(l),l.name&&l$1(a,l.name,[]).push(l)),c&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let m=D$1(r[t.nextIndex]);for(;"GroupClose"!==m.type;){if("Alternator"===m.type)l.body.push(b$1()),t.nextIndex++;else{const e=l.body.at(-1),t=s(e,{...n,isInAbsenceFunction:n.isInAbsenceFunction||c,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||d});if(e.body.push(t),(u||n.isInLookbehind)&&!o){const e="Lookbehind includes a pattern not allowed by Oniguruma";if(d||n.isInNegLookbehind){if(M$2(t)||"CapturingGroup"===t.type)throw new Error(e)}else if(M$2(t)||$$1(t)&&t.negate)throw new Error(e)}}m=D$1(r[t.nextIndex])}return t.nextIndex++,l}function oe$2({kind:e,min:t,max:n},r){const i=r.parent,a=i.body.at(-1);if(!a||!s(a))throw new Error("Quantifier requires a repeatable token");const o=_$1(e,t,n,a);return i.body.pop(),o}function ae$1({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let i=e.slice(3,-1);const a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){const e=+a.groups.num,r=n.length;if(t.hasNumberedRef=!0,i={"":e,"+":r+e,"-":r+1-e}[a.groups.sign],i<1)throw new Error("Invalid subroutine number")}else"0"===i&&(i=0);const o=O$1(i);return r.push(o),o}function G$2(e,t){return{type:"AbsenceFunction",kind:e,body:h(null==t?void 0:t.body)}}function b$1(e){return{type:"Alternative",body:V$2(null==e?void 0:e.body)}}function F$2(e,t){const n={type:"Assertion",kind:e};return("word_boundary"===e||"text_segment_boundary"===e)&&(n.negate=!(null==t||!t.negate)),n}function k$2(e,t){const n=!(null==t||!t.orphan);return{type:"Backreference",ref:e,...n&&{orphan:n}}}function P$2(e,t){const n={name:void 0,isSubroutined:!1,...t};if(void 0!==n.name&&!se$1(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:h(null==t?void 0:t.body)}}function m$2(e,t){const n={useLastValid:!1,...t};if(e>1114111){const t=e.toString(16);if(!n.useLastValid)throw e>1310719?new Error(`Invalid code point out of range "\\x{${t}}"`):new Error(`Invalid code point out of range in JS "\\x{${t}}"`);e=1114111}return{type:"Character",value:e}}function C$1(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:V$2(null==e?void 0:e.body)}}function L$1(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function E$1(e,t){const n=!(null==t||!t.negate),r={type:"CharacterSet",kind:e};return("digit"===e||"hex"===e||"newline"===e||"space"===e||"word"===e)&&(r.negate=n),("text_segment"===e||"newline"===e&&!n)&&(r.variableLength=!0),r}function I$1(e,t={}){if("keep"===e)return{type:"Directive",kind:e};if("flags"===e)return{type:"Directive",kind:e,flags:u(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function T$1(e){return{type:"Flags",...e}}function A$1(e){const t=null==e?void 0:e.atomic,n=null==e?void 0:e.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:h(null==e?void 0:e.body)}}function K$1(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:h(null==e?void 0:e.body)}}function U$2(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function R$1(e,t){const n=!(null==t||!t.negate);if(!i.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function _$1(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function B$1(e,t){return{type:"Regex",body:h(null==t?void 0:t.body),flags:e}}function O$1(e){return{type:"Subroutine",ref:e}}function Q$2(e,t){var n;const r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let i=null==(n=r.unicodePropertyMap)?void 0:n.get(w$1(e));if(!i)if(r.normalizeUnknownPropertyNames)i=de$2(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(o$1`Invalid Unicode property "\p{${e}}"`);return{type:"CharacterSet",kind:"property",value:i??e,negate:r.negate}}function ie$1({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case"absence_repeater":return G$2("repeater");case"atomic":return A$1({atomic:!0});case"capturing":return P$2(i,{name:n});case"group":return A$1({flags:e});case"lookahead":case"lookbehind":return K$1({behind:"lookbehind"===t,negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function h(e){if(void 0===e)e=[b$1()];else if(!Array.isArray(e)||!e.length||!e.every(e=>"Alternative"===e.type))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function V$2(e){if(void 0===e)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw new Error("Invalid body; expected array of nodes");return e}function M$2(e){return"LookaroundAssertion"===e.type&&"lookahead"===e.kind}function $$1(e){return"LookaroundAssertion"===e.type&&"lookbehind"===e.kind}function se$1(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function de$2(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function w$1(e){return e.replace(/[- _]+/g,"").toLowerCase()}function z$2(e,t){return u(e,("Character"===(null==t?void 0:t.type)&&93===t.value?"Empty":"Unclosed")+" character class")}function D$1(e){return u(e,"Unclosed group")}function S$1(e,t,n=null){function r(e,t){for(let n=0;n<e.length;n++){const r=i(e[n],t,n,e);n=Math.max(-1,n+r)}}function i(a,o=null,s=null,c=null){var d,m;let h=0,p=!1;const g={node:a,parent:o,key:s,container:c,root:e,remove(){f(c).splice(Math.max(0,l(s)+h),1),h--,p=!0},removeAllNextSiblings:()=>f(c).splice(l(s)+1),removeAllPrevSiblings(){const e=l(s)+h;return h-=e,f(c).splice(0,Math.max(0,e))},replaceWith(e,t={}){const n=!!t.traverse;c?c[Math.max(0,l(s)+h)]=e:u(o,"Can't replace root node")[s]=e,n&&i(e,o,s,c),p=!0},replaceWithMultiple(e,t={}){const n=!!t.traverse;if(f(c).splice(Math.max(0,l(s)+h),1,...e),h+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=i(e[n],o,l(s)+n+t,c)}p=!0},skip(){p=!0}},{type:_}=a,b=t["*"],x=t[_],E="function"==typeof b?b:null==b?void 0:b.enter,y="function"==typeof x?x:null==x?void 0:x.enter;if(null==E||E(g,n),null==y||y(g,n),!p)switch(_){case"AbsenceFunction":case"CapturingGroup":case"Group":case"Alternative":case"CharacterClass":case"LookaroundAssertion":r(a.body,a);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(a.min,a,"min"),i(a.max,a,"max");break;case"Quantifier":i(a.body,a,"body");break;case"Regex":r(a.body,a),i(a.flags,a,"flags");break;default:throw new Error(`Unexpected node type "${_}"`)}return null==(d=null==x?void 0:x.exit)||d.call(x,g,n),null==(m=null==b?void 0:b.exit)||m.call(b,g,n),h}return i(e),e}function f(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function l(e){if("number"!=typeof e)throw new Error("Numeric key expected");return e}const noncapturingDelim=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function incrementIfAtLeast$1(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function spliceStr(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const Context=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function replaceUnescaped(e,t,n,r){const i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),a=[!1];let o=0,s="";for(const t of e.matchAll(i)){const{0:e,groups:{$skip:i}}=t;i||r&&r===Context.DEFAULT!=!o?("["===e[0]?(o++,a.push("^"===e[1])):"]"===e&&o&&(o--,a.pop()),s+=e):s+=n instanceof Function?n(t,{context:o?Context.CHAR_CLASS:Context.DEFAULT,negated:a[a.length-1]}):n}return s}function forEachUnescaped(e,t,n,r){replaceUnescaped(e,t,n,r)}function execUnescaped(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const i=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=n;let a,o=0;for(;a=i.exec(e);){const{0:e,groups:{$skip:t}}=a;if(!(t||r&&r===Context.DEFAULT!=!o))return a;"["===e?o++:"]"===e&&o&&o--,i.lastIndex==a.index&&i.lastIndex++}return null}function hasUnescaped(e,t,n){return!!execUnescaped(e,t,0,n)}function getGroupContents(e,t){const n=/\\?./gsu;n.lastIndex=t;let r,i=e.length,a=0,o=1;for(;r=n.exec(e);){const[e]=r;if("["===e)a++;else if(a)"]"===e&&a--;else if("("===e)o++;else if(")"===e&&(o--,!o)){i=r.index;break}}return e.slice(t,i)}const atomicPluginToken=new RegExp(String.raw`(?<noncapturingStart>${noncapturingDelim})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function atomic(e,t){const n=(null==t?void 0:t.hiddenCaptures)??[];let r=(null==t?void 0:t.captureTransfers)??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const i=[0],a=[];let o,s=0,l=0,c=NaN;do{o=!1;let t,u=0,d=0,m=!1;for(atomicPluginToken.lastIndex=Number.isNaN(c)?0:c+7;t=atomicPluginToken.exec(e);){const{0:h,index:p,groups:{capturingStart:f,noncapturingStart:g}}=t;if("["===h)u++;else if(u)"]"===h&&u--;else if("(?>"!==h||m){if(m&&g)d++;else if(f)m?d++:(s++,i.push(s+l));else if(")"===h&&m){if(!d){l++;const t=s+l;if(e=`${e.slice(0,c)}(?:(?=(${e.slice(c+3,p)}))<$$${t}>)${e.slice(p+1)}`,o=!0,a.push(t),incrementIfAtLeast$1(n,t),r.size){const e=new Map;r.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),r=e}break}d--}}else c=p,m=!0}}while(o);return n.push(...a),{pattern:e=replaceUnescaped(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:n}})=>{if(t){const n=+t;if(n>i.length-1)throw new Error(`Backref "${e}" greater than number of captures`);return`\\${i[n]}`}return`\\${n}`},Context.DEFAULT),captureTransfers:r,hiddenCaptures:n}}const baseQuantifier=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,possessivePluginToken=new RegExp(String.raw`
|
|
34
|
-
\\(?: \d+
|
|
35
|
-
| c[A-Za-z]
|
|
36
|
-
| [gk]<[^>]+>
|
|
37
|
-
| [pPu]\{[^\}]+\}
|
|
38
|
-
| u[A-Fa-f\d]{4}
|
|
39
|
-
| x[A-Fa-f\d]{2}
|
|
40
|
-
)
|
|
41
|
-
| \((?: \? (?: [:=!>]
|
|
42
|
-
| <(?:[=!]|[^>]+>)
|
|
43
|
-
| [A-Za-z\-]+:
|
|
44
|
-
| \(DEFINE\)
|
|
45
|
-
))?
|
|
46
|
-
| (?<qBase>${baseQuantifier})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
47
|
-
| \\?.
|
|
48
|
-
`.replace(/\s+/g,""),"gsu");function possessive(e){if(!new RegExp(`${baseQuantifier}\\+`).test(e))return{pattern:e};const t=[];let n,r=null,i=null,a="",o=0;for(possessivePluginToken.lastIndex=0;n=possessivePluginToken.exec(e);){const{0:s,index:l,groups:{qBase:c,qMod:u,invalidQ:d}}=n;if("["===s)o||(i=l),o++;else if("]"===s)o?o--:i=null;else if(!o)if("+"===u&&a&&!a.startsWith("(")){if(d)throw new Error(`Invalid quantifier "${s}"`);let t=-1;if(/^\{\d+\}$/.test(c))e=spliceStr(e,l+c.length,u,"");else{if(")"===a||"]"===a){const t=")"===a?r:i;if(null===t)throw new Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,t)}(?>${e.slice(t,l)}${c})${e.slice(l+s.length)}`}else e=`${e.slice(0,l-a.length)}(?>${a}${c})${e.slice(l+s.length)}`;t+=4}possessivePluginToken.lastIndex+=t}else"("===s[0]?t.push(l):")"===s&&(r=t.length?t.pop():null);a=s}return{pattern:e}}const r$1=String.raw,gRToken=r$1`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,recursiveToken=r$1`\(\?R=(?<rDepth>[^\)]+)\)|${gRToken}`,namedCaptureDelim=r$1`\(\?<(?![=!])(?<captureName>[^>]+)>`,captureDelim=r$1`${namedCaptureDelim}|(?<unnamed>\()(?!\?)`,token=new RegExp(r$1`${namedCaptureDelim}|${recursiveToken}|\(\?|\\?.`,"gsu"),overlappingRecursionMsg="Cannot use multiple overlapping recursions";function recursion(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let i=(null==t?void 0:t.captureTransfers)??new Map;if(!new RegExp(recursiveToken,"su").test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};if("plugin"===r&&hasUnescaped(e,r$1`\(\?\(DEFINE\)`,Context.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const a=[],o=hasUnescaped(e,r$1`\\[1-9]`,Context.DEFAULT),s=new Map,l=[];let c,u=!1,d=0,m=0;for(token.lastIndex=0;c=token.exec(e);){const{0:t,groups:{captureName:h,rDepth:p,gRNameOrNum:f,gRDepth:g}}=c;if("["===t)d++;else if(d)"]"===t&&d--;else{if(p){if(assertMaxInBounds(p),u)throw new Error(overlappingRecursionMsg);if(o)throw new Error(("external"===r?"Backrefs":"Numbered backrefs")+" cannot be used with global recursion");const t=e.slice(0,c.index),s=e.slice(token.lastIndex);if(hasUnescaped(s,recursiveToken,Context.DEFAULT))throw new Error(overlappingRecursionMsg);const l=+p-1;e=makeRecursive(t,s,l,!1,n,a,m),i=mapCaptureTransfers(i,t,l,a.length,0,m);break}if(f){assertMaxInBounds(g);let d=!1;for(const e of l)if(e.name===f||e.num===+f){if(d=!0,e.hasRecursedWithin)throw new Error(overlappingRecursionMsg);break}if(!d)throw new Error(r$1`Recursive \g cannot be used outside the referenced group "${"external"===r?f:r$1`\g<${f}&R=${g}>`}"`);const h=s.get(f),p=getGroupContents(e,h);if(o&&hasUnescaped(p,r$1`${namedCaptureDelim}|\((?!\?)`,Context.DEFAULT))throw new Error(("external"===r?"Backrefs":"Numbered backrefs")+" cannot be used with recursion of capturing groups");const _=e.slice(h,c.index),b=p.slice(_.length+t.length),x=a.length,E=+g-1,y=makeRecursive(_,b,E,!0,n,a,m);i=mapCaptureTransfers(i,_,E,a.length-x,x,m);const T=e.slice(0,h),v=e.slice(h+p.length);e=`${T}${y}${v}`,token.lastIndex+=y.length-t.length-_.length-b.length,l.forEach(e=>e.hasRecursedWithin=!0),u=!0}else if(h)m++,s.set(String(m),token.lastIndex),s.set(h,token.lastIndex),l.push({num:m,name:h});else if("("===t[0]){const e="("===t;e&&(m++,s.set(String(m),token.lastIndex)),l.push(e?{num:m}:{})}else")"===t&&l.pop()}}return n.push(...a),{pattern:e,captureTransfers:i,hiddenCaptures:n}}function assertMaxInBounds(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if((e=+e)<2||e>100)throw new Error(t)}function makeRecursive(e,t,n,r,i,a,o){const s=new Set;r&&forEachUnescaped(e+t,namedCaptureDelim,({groups:{captureName:e}})=>{s.add(e)},Context.DEFAULT);const l=[n,r?s:null,i,a,o];return`${e}${repeatWithDepth(`(?:${e}`,"forward",...l)}(?:)${repeatWithDepth(`${t})`,"backward",...l)}${t}`}function repeatWithDepth(e,t,n,r,i,a,o){const s=e=>"forward"===t?e+2:n-e+2-1;let l="";for(let t=0;t<n;t++){const n=s(t);l+=replaceUnescaped(e,r$1`${captureDelim}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:s,backref:l}})=>{if(l&&r&&!r.has(l))return e;const c=`_$${n}`;if(s||t){const n=o+a.length+1;return a.push(n),incrementIfAtLeast(i,n),s?e:`(?<${t}${c}>`}return r$1`\k<${l}${c}>`},Context.DEFAULT)}return l}function incrementIfAtLeast(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function mapCaptureTransfers(e,t,n,r,i,a){if(e.size&&r){let o=0;forEachUnescaped(t,captureDelim,()=>o++,Context.DEFAULT);const s=a-o+i,l=new Map;return e.forEach((e,t)=>{const i=(r-o*n)/n,a=o*n,c=t>s+o?t+r:t,u=[];for(const t of e)if(t<=s)u.push(t);else if(t>s+o+i)u.push(t+r);else if(t<=s+o)for(let e=0;e<=n;e++)u.push(t+o*e);else for(let e=0;e<=n;e++)u.push(t+a+i*e);l.set(c,u)}),l}return e}var cp=String.fromCodePoint,r=String.raw,envFlags={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};function getNewCurrentFlags(e,{enable:t,disable:n}){return{dotAll:!(null!=n&&n.dotAll||!(null!=t&&t.dotAll||e.dotAll)),ignoreCase:!(null!=n&&n.ignoreCase||!(null!=t&&t.ignoreCase||e.ignoreCase))}}function getOrInsert(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function isMinTarget(e,t){return EsVersion[e]>=EsVersion[t]}function throwIfNullish(e,t){if(null==e)throw new Error(t??"Value expected");return e}envFlags.bugFlagVLiteralHyphenIsRange=!!envFlags.unicodeSets&&(()=>{try{new RegExp(r`[\d\-a]`,"v")}catch{return!0}return!1})(),envFlags.bugNestedClassIgnoresNegation=envFlags.unicodeSets&&new RegExp("[[^a]]","v").test("a");var EsVersion={ES2025:2025,ES2024:2024,ES2018:2018},Target={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function getOptions(e={}){if("[object Object]"!=={}.toString.call(e))throw new Error("Unexpected options");if(void 0!==e.target&&!Target[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return"auto"===t.target&&(t.target=envFlags.flagGroups?"ES2025":envFlags.unicodeSets?"ES2024":"ES2018"),t}var asciiSpaceChar="[\t-\r ]",CharsWithoutIgnoreCaseExpansion=new Set([cp(304),cp(305)]),defaultWordChar=r`[\p{L}\p{M}\p{N}\p{Pc}]`;function getIgnoreCaseMatchChars(e){if(CharsWithoutIgnoreCaseExpansion.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=LowerToTitleCaseMap.get(n),a=LowerToAlternativeLowerCaseMap.get(n),o=LowerToAlternativeUpperCaseMap.get(n);return 1===[...r].length&&t.add(r),o&&t.add(o),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var JsUnicodePropertyMap=new Map("C Other\nCc Control cntrl\nCf Format\nCn Unassigned\nCo Private_Use\nCs Surrogate\nL Letter\nLC Cased_Letter\nLl Lowercase_Letter\nLm Modifier_Letter\nLo Other_Letter\nLt Titlecase_Letter\nLu Uppercase_Letter\nM Mark Combining_Mark\nMc Spacing_Mark\nMe Enclosing_Mark\nMn Nonspacing_Mark\nN Number\nNd Decimal_Number digit\nNl Letter_Number\nNo Other_Number\nP Punctuation punct\nPc Connector_Punctuation\nPd Dash_Punctuation\nPe Close_Punctuation\nPf Final_Punctuation\nPi Initial_Punctuation\nPo Other_Punctuation\nPs Open_Punctuation\nS Symbol\nSc Currency_Symbol\nSk Modifier_Symbol\nSm Math_Symbol\nSo Other_Symbol\nZ Separator\nZl Line_Separator\nZp Paragraph_Separator\nZs Space_Separator\nASCII\nASCII_Hex_Digit AHex\nAlphabetic Alpha\nAny\nAssigned\nBidi_Control Bidi_C\nBidi_Mirrored Bidi_M\nCase_Ignorable CI\nCased\nChanges_When_Casefolded CWCF\nChanges_When_Casemapped CWCM\nChanges_When_Lowercased CWL\nChanges_When_NFKC_Casefolded CWKCF\nChanges_When_Titlecased CWT\nChanges_When_Uppercased CWU\nDash\nDefault_Ignorable_Code_Point DI\nDeprecated Dep\nDiacritic Dia\nEmoji\nEmoji_Component EComp\nEmoji_Modifier EMod\nEmoji_Modifier_Base EBase\nEmoji_Presentation EPres\nExtended_Pictographic ExtPict\nExtender Ext\nGrapheme_Base Gr_Base\nGrapheme_Extend Gr_Ext\nHex_Digit Hex\nIDS_Binary_Operator IDSB\nIDS_Trinary_Operator IDST\nID_Continue IDC\nID_Start IDS\nIdeographic Ideo\nJoin_Control Join_C\nLogical_Order_Exception LOE\nLowercase Lower\nMath\nNoncharacter_Code_Point NChar\nPattern_Syntax Pat_Syn\nPattern_White_Space Pat_WS\nQuotation_Mark QMark\nRadical\nRegional_Indicator RI\nSentence_Terminal STerm\nSoft_Dotted SD\nTerminal_Punctuation Term\nUnified_Ideograph UIdeo\nUppercase Upper\nVariation_Selector VS\nWhite_Space space\nXID_Continue XIDC\nXID_Start XIDS".split(/\s/).map(e=>[w$1(e),e])),LowerToAlternativeLowerCaseMap=new Map([["s",cp(383)],[cp(383),"s"]]),LowerToAlternativeUpperCaseMap=new Map([[cp(223),cp(7838)],[cp(107),cp(8490)],[cp(229),cp(8491)],[cp(969),cp(8486)]]),LowerToTitleCaseMap=new Map([titleEntry(453),titleEntry(456),titleEntry(459),titleEntry(498),...titleRange(8072,8079),...titleRange(8088,8095),...titleRange(8104,8111),titleEntry(8124),titleEntry(8140),titleEntry(8188)]),PosixClassMap=new Map([["alnum",r`[\p{Alpha}\p{Nd}]`],["alpha",r`\p{Alpha}`],["ascii",r`\p{ASCII}`],["blank",r`[\p{Zs}\t]`],["cntrl",r`\p{Cc}`],["digit",r`\p{Nd}`],["graph",r`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",r`\p{Lower}`],["print",r`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",r`[\p{P}\p{S}]`],["space",r`\p{space}`],["upper",r`\p{Upper}`],["word",r`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",r`\p{AHex}`]]);function range(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function titleEntry(e){const t=cp(e);return[t.toLowerCase(),t]}function titleRange(e,t){return range(e,t).map(e=>titleEntry(e))}var UnicodePropertiesWithSpecificCase=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function transform(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};addParentProperties(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:isMinTarget(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};S$1(e,FirstPassVisitor,r);const i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};return S$1(e,SecondPassVisitor,a),S$1(e,ThirdPassVisitor,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}var FirstPassVisitor={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:i}=e;if("repeater"!==i)throw new Error('Unsupported absence function "(?~|"');{const e=A$1();e.body[0].body.push(K$1({negate:!0,body:r}),Q$2("Any"));const i=A$1();i.body[0].body.push(_$1("greedy",0,1/0,e)),n(setParentDeep(i,t),{traverse:!0})}},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const i=e.body.filter(e=>"flags"===e.kind);for(let e=n+1;e<t.body.length;e++)getOrInsert(r,t.body[e],[]).push(...i)},exit({node:e},{flagDirectivesByAlt:t}){var n;if(null!=(n=t.get(e))&&n.length){const n=getCombinedFlagModsFromFlagNodes(t.get(e));if(n){const t=A$1({flags:n});t.body[0].body=e.body,e.body=[setParentDeep(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:i,root:a,remove:o,replaceWith:s},l){const{kind:c,negate:u}=e,{asciiWordBoundaries:d,avoidSubclass:m,supportedGNodes:h,wordIsAscii:p}=l;if("text_segment_boundary"===c)throw new Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if("line_end"===c)s(setParentDeep(K$1({body:[b$1({body:[F$2("string_end")]}),b$1({body:[m$2(10)]})]}),t));else if("line_start"===c)s(setParentDeep(parseFragment(r`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===c)if(h.has(e))a.flags.sticky=!0,o();else{const e=i[n-1];if(e&&isAlwaysNonZeroLength(e))s(setParentDeep(K$1({negate:!0}),t));else{if(m)throw new Error(r`Uses "\G" in a way that requires a subclass`);s(setParent(F$2("string_start"),t)),l.strategy="clip_search"}}else if("string_end"!==c&&"string_start"!==c)if("string_end_newline"===c)s(setParentDeep(parseFragment(r`(?=\n?\z)`),t));else{if("word_boundary"!==c)throw new Error(`Unexpected assertion kind "${c}"`);p||d||s(setParentDeep(parseFragment(u?`(?:(?<=${defaultWordChar})(?=${defaultWordChar})|(?<!${defaultWordChar})(?!${defaultWordChar}))`:`(?:(?<=${defaultWordChar})(?!${defaultWordChar})|(?<!${defaultWordChar})(?=${defaultWordChar}))`),t))}},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"==typeof n&&!isValidJsGroupName(n)&&(n=getAndStoreJsGroupName(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!isValidJsGroupName(r)&&(r=getAndStoreJsGroupName(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){"intersection"===t.kind&&n(setParentDeep(C$1({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:i,minTargetEs2024:a,digitIsAscii:o,spaceIsAscii:s,wordIsAscii:l}){const{kind:c,negate:u,value:d}=e;if(!o||"digit"!==c&&"digit"!==d)if(!s||"space"!==c&&"space"!==d)if(!l||"word"!==c&&"word"!==d){if("any"===c)n(setParent(Q$2("Any"),t));else if("digit"===c)n(setParent(Q$2("Nd",{negate:u}),t));else if("dot"!==c)if("text_segment"===c){if("strict"===i)throw new Error(r`Use of "\X" requires non-strict accuracy`);const e="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",o=r`\p{RI}{2}|${e}(?:\u200D${e})*`;n(setParentDeep(parseFragment(r`(?>\r\n|${a?r`\p{RGI_Emoji}`:o}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===c)n(setParent(Q$2("AHex",{negate:u}),t));else if("newline"===c)n(setParentDeep(parseFragment(u?"[^\n]":"(?>\r\n?|[\n\v\f
\u2028\u2029])"),t));else if("posix"===c)if(a||"graph"!==d&&"print"!==d)n(setParentDeep(setNegate(parseFragment(PosixClassMap.get(d)),u),t));else{if("strict"===i)throw new Error(`POSIX class "${d}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[d];u&&(e=`\0-${cp(e.codePointAt(0)-1)}${cp(e.codePointAt(2)+1)}-`),n(setParentDeep(parseFragment(`[${e}]`),t))}else if("property"===c)JsUnicodePropertyMap.has(w$1(d))||(e.key="sc");else if("space"===c)n(setParent(Q$2("space",{negate:u}),t));else{if("word"!==c)throw new Error(`Unexpected character set kind "${c}"`);n(setParentDeep(setNegate(parseFragment(defaultWordChar),u),t))}}else n(setParent(E$1("word",{negate:u}),t));else n(setParentDeep(setNegate(parseFragment(asciiSpaceChar),u),t));else n(setParent(E$1("digit",{negate:u}),t))},Directive({node:e,parent:t,root:n,remove:i,replaceWith:a,removeAllPrevSiblings:s,removeAllNextSiblings:l}){const{kind:c,flags:u}=e;if("flags"===c)if(u.enable||u.disable){const e=A$1({flags:u});e.body[0].body=l(),a(setParentDeep(e,t),{traverse:!0})}else i();else{if("keep"!==c)throw new Error(`Unexpected directive kind "${c}"`);{const e=n.body[0],i=1===n.body.length&&o(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:n;if(t.parent!==i||i.body.length>1)throw new Error(r`Uses "\K" in a way that's unsupported`);const l=K$1({behind:!0});l.body[0].body=s(),a(setParentDeep(l,t))}}},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if("word"===e.textSegmentMode)throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;null!=t&&t.extended&&delete t.extended,null!=n&&n.extended&&delete n.extended,null!=t&&t.dotAll&&null!=n&&n.dotAll&&delete t.dotAll,null!=t&&t.ignoreCase&&null!=n&&n.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;"lookbehind"===n&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if("fail"!==r)throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`);n(setParentDeep(K$1({negate:!0}),t))},Quantifier({node:e}){if("Quantifier"===e.body.type){const t=A$1();t.body[0].body.push(e.body),e.body=setParentDeep(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,i=!1;for(const t of e.body)if(1===t.body.length&&"search_start"===t.body[0].kind)t.body.pop();else{const e=getLeadingG(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:i}){if("strict"===t&&n&&i)throw new Error(r`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;"string"==typeof n&&!isValidJsGroupName(n)&&(n=getAndStoreJsGroupName(n,t),e.ref=n)}},SecondPassVisitor={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:l}){const c=i.get(e);if(c&&s.has(e.number)){const r=setParent(createRecursion(e.number),t);return l.set(r,s.get(e.number)),void n(r)}s.set(e.number,e),o.set(e.number,[]),e.name&&getOrInsert(o,e.name,[]);const u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){const n=u[t];if(c===n.node||c&&c===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:c}),e.name&&o.get(e.name).push({node:e,origin:c}),e.name){const t=getOrInsert(a,e.name,new Map);let n=!1;if(c)n=!0;else for(const e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=getNewCurrentFlags(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&("CapturingGroup"!==n.type||n.name!==a&&n.number!==a););return void r.reffedNodesByReferencer.set(e,n)}const o=r.subroutineRefMap.get(a),s=0===a,l=s?createRecursion(0):cloneCapturingGroup(o,r.groupOriginByCopy,null);let c=l;if(!s){const e=getCombinedFlagModsFromFlagNodes(getAllParents(o,e=>"Group"===e.type&&!!e.flags)),t=e?getNewCurrentFlags(r.globalFlags,e):r.globalFlags;areFlagsEqual(t,r.currentFlags)||(c=A$1({flags:getFlagModsFromFlags(t)}),c.body[0].body.push(l))}n(setParentDeep(c,t),{traverse:!s})}},ThirdPassVisitor={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan)return void(r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref));const i=r.reffedNodesByReferencer.get(e).filter(t=>canParticipateWithNode(t,e));i.length?i.length>1?n(setParentDeep(A$1({atomic:!0,body:i.reverse().map(e=>b$1({body:[k$2(e.number)]}))}),t)):e.ref=i[0].number:n(setParentDeep(K$1({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){const t=P$2();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){!e.isRecursive||0===e.ref||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function addParentProperties(e){S$1(e,{"*"({node:e,parent:t}){e.parent=t}})}function areFlagsEqual(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function canParticipateWithNode(e,t){let n=t;do{if("Regex"===n.type)return!1;if("Alternative"===n.type)continue;if(n===e)return!1;const t=getKids(n.parent);for(const r of t){if(r===n)break;if(r===e||isAncestorOf(r,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function cloneCapturingGroup(e,t,n,r){const i=Array.isArray(e)?[]:{};for(const[a,o]of Object.entries(e))"parent"===a?i.parent=Array.isArray(n)?r:n:o&&"object"==typeof o?i[a]=cloneCapturingGroup(o,t,i,n):("type"===a&&"CapturingGroup"===o&&t.set(i,t.get(e)??e),i[a]=o);return i}function createRecursion(e){const t=O$1(e);return t.isRecursive=!0,t}function getAllParents(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function getAndStoreJsGroupName(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,"_")}`;return t.set(e,n),n}function getCombinedFlagModsFromFlagNodes(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{var r,i;null!=(r=e.enable)&&r[t]&&(delete n.disable[t],n.enable[t]=!0),null!=(i=e.disable)&&i[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function getFlagModsFromFlags({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),e&&t||(n.disable={},!e&&(n.disable.dotAll=!0),t||(n.disable.ignoreCase=!0)),n}function getKids(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function getLeadingG(e){const t=e.find(e=>"search_start"===e.kind||isLoneGLookaround(e,{negate:!1})||!isAlwaysZeroLength(e));if(!t)return null;if("search_start"===t.kind)return t;if("LookaroundAssertion"===t.type)return t.body[0].body[0];if("CapturingGroup"===t.type||"Group"===t.type){const e=[];for(const n of t.body){const t=getLeadingG(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function isAncestorOf(e,t){const n=getKids(e)??[];for(const e of n)if(e===t||isAncestorOf(e,t))return!0;return!1}function isAlwaysZeroLength({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}function isAlwaysNonZeroLength(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||"Quantifier"===e.type&&e.min&&t.includes(e.body.type)}function isLoneGLookaround(e,t){const n={negate:null,...t};return"LookaroundAssertion"===e.type&&(null===n.negate||e.negate===n.negate)&&1===e.body.length&&o(e.body[0],{type:"Assertion",kind:"search_start"})}function isValidJsGroupName(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function parseFragment(e,t){const n=J$1(e,{...t,unicodePropertyMap:JsUnicodePropertyMap}).body;return n.length>1||n[0].body.length>1?A$1({body:n}):n[0].body[0]}function setNegate(e,t){return e.negate=t,e}function setParent(e,t){return e.parent=t,e}function setParentDeep(e,t){return addParentProperties(e),e.parent=t,e}function generate(e,t){const n=getOptions(t),r=isMinTarget(n.target,"ES2024"),i=isMinTarget(n.target,"ES2025"),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw new Error("Invalid recursionLimit; use 2-20");let o=null,s=null;if(!i){const t=[e.flags.ignoreCase];S$1(e,FlagModifierVisitor,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!(!e.flags.ignoreCase&&!o||s)};let c=e;const u={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!(i||!o||!s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=c,c=e,throwIfNullish(generator[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}const m={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:{...e.options}};return r||(delete m.options.force.v,m.options.disable.v=!0,m.options.unicodeSetsPlugin=null),m._captureTransfers=new Map,m._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&m._hiddenCaptures.push(t),e.transferTo&&getOrInsert(m._captureTransfers,e.transferTo,[]).push(t)}),m}var FlagModifierVisitor={"*":{enter({node:e},t){if(isAnyGroup(e)){const n=t.getCurrentModI();t.pushModI(e.flags?getNewCurrentFlags({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){isAnyGroup(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){charHasCase(cp(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),getCasesOutsideCharClassRange(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&UnicodePropertiesWithSpecificCase.has(e.value)&&t.setHasCasedChar()}},generator={Alternative:({body:e},t,n)=>e.map(n).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?r`\B`:r`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if("number"!=typeof e)throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=cp(e),r=getCharEscape(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&charHasCase(n)){const e=getIgnoreCaseMatchChars(n);return t.inCharClass?e.join(""):e.length>1?`[${e.join("")}]`:e[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:i,parent:a}=e;let{body:o}=e;if("intersection"===r&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");envFlags.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(isLiteralHyphen)&&(o=[m$2(45),...o.filter(e=>!isLiteralHyphen(e))]);const s=()=>`[${i?"^":""}${o.map(n).join("intersection"===r?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||envFlags.bugNestedClassIgnoresNegation)&&!i){const t=o.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){const r=A$1(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{const t=b$1({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;const r=s();return t.inCharClass=!1,r}const l=o[0];if("union"===r&&!i&&l&&((!t.useFlagV||!t.verbose)&&"union"===a.kind&&(!envFlags.bugFlagVLiteralHyphenIsRange||!t.useFlagV)||!t.verbose&&"intersection"===a.kind&&1===o.length&&"CharacterClassRange"!==l.type))return o.map(n).join("");if(!t.useFlagV&&"CharacterClass"===a.type)throw new Error("Use of nested character class requires min target ES2024");return s()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=getCharEscape(n,i),o=getCharEscape(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&getCodePointRangesFromChars(getCasesOutsideCharClassRange(e)).forEach(e=>{s.add(Array.isArray(e)?`${getCharEscape(e[0],i)}-${getCharEscape(e[1],i)}`:getCharEscape(e,i))}),`${a}-${o}${[...s].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:i},a){if("dot"===e)return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":r`[^\n]`;if("digit"===e)return t?r`\D`:r`\d`;if("property"===e){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&UnicodePropertiesWithSpecificCase.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?r`\P`:r`\p`}{${i?`${i}=`:""}${n}}`}if("word"===e)return t?r`\W`:r`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":""),Group({atomic:e,body:t,flags:n,parent:r},i,a){const o=i.currentFlags;n&&(i.currentFlags=getNewCurrentFlags(o,n));const s=t.map(a).join("|"),l=i.verbose||1!==t.length||"Quantifier"===r.type||e||i.useFlagMods&&n?`(?${getGroupPrefix(e,n,i.useFlagMods)}${s})`:s;return i.currentFlags=o,l},LookaroundAssertion:({body:e,kind:t,negate:n},r,i)=>`(?${"lookahead"===t?"":"<"}${n?"!":"="}${e.map(i).join("|")})`,Quantifier:(e,t,n)=>n(e.body)+getQuantifierStr(e),Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const i=n.recursionLimit;return 0===t?`(?R=${i})`:r`\g<${t}&R=${i}>`}},BaseEscapeChars=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),CharClassEscapeChars=new Set(["-","\\","]","^","["]),CharClassEscapeCharsFlagV=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),CharCodeEscapeMap=new Map([[9,r`\t`],[10,r`\n`],[11,r`\v`],[12,r`\f`],[13,r`\r`],[8232,r`\u2028`],[8233,r`\u2029`],[65279,r`\uFEFF`]]),casedRe=new RegExp("^\\p{Cased}$","u");function charHasCase(e){return casedRe.test(e)}function getCasesOutsideCharClassRange(e,t){const n=!(null==t||!t.firstOnly),r=e.min.value,i=e.max.value,a=[];if(r<65&&(65535===i||i>=131071)||65536===r&&i>=131071)return a;for(let e=r;e<=i;e++){const t=cp(e);if(!charHasCase(t))continue;const o=getIgnoreCaseMatchChars(t).filter(e=>{const t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function getCharEscape(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(CharCodeEscapeMap.has(e))return CharCodeEscapeMap.get(e);if(e<32||e>126&&e<160||e>262143||t&&isDigitCharCode(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const i=n?r?CharClassEscapeCharsFlagV:CharClassEscapeChars:BaseEscapeChars,a=cp(e);return(i.has(a)?"\\":"")+a}function getCodePointRangesFromChars(e){const t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[];let r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??(r=t[e]):null===r?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function getGroupPrefix(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:e,disable:n}=t;r=(null!=e&&e.ignoreCase?"i":"")+(null!=e&&e.dotAll?"s":"")+(n?"-":"")+(null!=n&&n.ignoreCase?"i":"")+(null!=n&&n.dotAll?"s":"")}return`${r}:`}function getQuantifierStr({kind:e,max:t,min:n}){let r;return r=n||1!==t?n||t!==1/0?1===n&&t===1/0?"+":n===t?`{${n}}`:`{${n},${t===1/0?"":t}}`:"*":"?",r+{greedy:"",lazy:"?",possessive:"+"}[e]}function isAnyGroup({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function isDigitCharCode(e){return e>47&&e<58}function isLiteralHyphen({type:e,value:t}){return"Character"===e&&45===t}var lr,sr,pr,ur,gr,Tr,$r,cr,EmulatedRegExp=(cr=class extends RegExp{constructor(e,t,n){var r=(...e)=>(super(...e),fr(this,Tr),fr(this,lr,new Map),fr(this,sr,null),fr(this,pr),fr(this,ur,null),fr(this,gr,null),rn(this,"rawOptions",{}),this);const i=!(null==n||!n.lazyCompile);if(e instanceof RegExp){if(n)throw new Error("Cannot provide options when copying a regexp");const i=e;r(i,t),Zn(this,pr,i.source),i instanceof cr&&(Zn(this,lr,Bn(i,lr)),Zn(this,ur,Bn(i,ur)),Zn(this,gr,Bn(i,gr)),this.rawOptions=i.rawOptions)}else{const a={hiddenCaptures:[],strategy:null,transfers:[],...n};r(i?"":e,t),Zn(this,pr,e),Zn(this,lr,createCaptureMap(a.hiddenCaptures,a.transfers)),Zn(this,gr,a.strategy),this.rawOptions=n??{}}i||Zn(this,sr,this)}get source(){return Bn(this,pr)||"(?:)"}exec(e){if(!Bn(this,sr)){const{lazyCompile:e,...t}=this.rawOptions;Zn(this,sr,new cr(Bn(this,pr),this.flags,t))}const t=this.global||this.sticky,n=this.lastIndex;if("clip_search"===Bn(this,gr)&&t&&n){this.lastIndex=0;const t=Dr(this,Tr,$r).call(this,e.slice(n));return t&&(adjustMatchDetailsForOffset(t,n,e,this.hasIndices),this.lastIndex+=n),t}return Dr(this,Tr,$r).call(this,e)}},lr=new WeakMap,sr=new WeakMap,pr=new WeakMap,ur=new WeakMap,gr=new WeakMap,Tr=new WeakSet,$r=function(e){Bn(this,sr).lastIndex=this.lastIndex;const t=qr(cr.prototype,this,"exec").call(Bn(this,sr),e);if(this.lastIndex=Bn(this,sr).lastIndex,!t||!Bn(this,lr).size)return t;const n=[...t];let r;t.length=1,this.hasIndices&&(r=[...t.indices],t.indices.length=1);const i=[0];for(let e=1;e<n.length;e++){const{hidden:a,transferTo:o}=Bn(this,lr).get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&void 0!==n[e]){const a=i[o];if(!a)throw new Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){Bn(this,ur)||Zn(this,ur,createNameMap(this.source));const i=Bn(this,ur).get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t},cr);function adjustMatchDetailsForOffset(e,t,n,r){if(e.index+=t,e.input=n,r){const n=e.indices;for(let e=0;e<n.length;e++){const r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}const r=n.groups;r&&Object.keys(r).forEach(e=>{const n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function createCaptureMap(e,t){const n=new Map;for(const t of e)n.set(t,{hidden:!0});for(const[e,r]of t)for(const t of r)getOrInsert(n,t,{}).transferTo=e;return n}function createNameMap(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r,i=0,a=0;for(;r=t.exec(e);){const{0:e,groups:{capture:t,name:o}}=r;"["===e?i++:i?"]"===e&&i--:t&&(a++,o&&n.set(a,o))}return n}function toRegExp(e,t){const n=toRegExpDetails(e,t);return n.options?new EmulatedRegExp(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function toRegExpDetails(e,t){const n=getOptions(t),r=transform(J$1(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:JsUnicodePropertyMap}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=generate(r,n),a=recursion(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),o=atomic(possessive(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}const MAX=4294967295;class JavaScriptScanner{constructor(e,t={}){rn(this,"regexps"),this.patterns=e,this.options=t;const{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;const t=null==r?void 0:r.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{const t=i(e);return null==r||r.set(e,t),t}catch(t){if(null==r||r.set(e,t),n)return null;throw t}})}findNextMatchSync(e,t,n){const r="string"==typeof e?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:MAX,end:MAX,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){const n=this.regexps[e];if(n)try{n.lastIndex=t;const o=n.exec(r);if(!o)continue;if(o.index===t)return a(e,o,0);i.push([e,o,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){const e=Math.min(...i.map(e=>e[1].index));for(const[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}}function defaultJavaScriptRegexConstructor(e,t){return toRegExp(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function createJavaScriptRegexEngine(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||(t.regexConstructor=e=>defaultJavaScriptRegexConstructor(e,{target:t.target})),{createScanner:e=>new JavaScriptScanner(e,t),createString:e=>({content:e})}}function L(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var T=L();function G$1(e){T=e}var I={exec:()=>null};function d(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(m$1.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var m$1={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},be$1=/^(?:[ \t]*(?:\n|$))+/,Re$1=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Te$1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,E=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Oe$1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,F$1=/(?:[*+-]|\d{1,9}[.)])/,ie=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,oe$1=d(ie).replace(/bull/g,F$1).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),we$1=d(ie).replace(/bull/g,F$1).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),j$1=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ye$1=/^[^\n]+/,Q$1=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Pe$1=d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Q$1).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Se$1=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,F$1).getRegex(),v="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",U$1=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$e$1=d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",U$1).replace("tag",v).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ae=d(j$1).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),_e$1=d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ae).getRegex(),K={blockquote:_e$1,code:Re$1,def:Pe$1,fences:Te$1,heading:Oe$1,hr:E,html:$e$1,lheading:oe$1,list:Se$1,newline:be$1,paragraph:ae,table:I,text:ye$1},re=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),Le$1={...K,lheading:we$1,table:re,paragraph:d(j$1).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",re).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex()},Me$1={...K,html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",U$1).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:I,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(j$1).replace("hr",E).replace("heading"," *#{1,6} *[^\n]").replace("lheading",oe$1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ze$1=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ae$1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,le$1=/^( {2,}|\\)\n(?!\s*$)/,Ie$1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,D=/[\p{P}\p{S}]/u,W$1=/[\s\p{P}\p{S}]/u,ue$1=/[^\s\p{P}\p{S}]/u,Ee$1=d(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,W$1).getRegex(),pe$1=/(?!~)[\p{P}\p{S}]/u,Ce$1=/(?!~)[\s\p{P}\p{S}]/u,Be$1=/(?:[^\s\p{P}\p{S}]|~)/u,qe=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,ce$1=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,ve$1=d(ce$1,"u").replace(/punct/g,D).getRegex(),De$1=d(ce$1,"u").replace(/punct/g,pe$1).getRegex(),he$1="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",He$1=d(he$1,"gu").replace(/notPunctSpace/g,ue$1).replace(/punctSpace/g,W$1).replace(/punct/g,D).getRegex(),Ze$1=d(he$1,"gu").replace(/notPunctSpace/g,Be$1).replace(/punctSpace/g,Ce$1).replace(/punct/g,pe$1).getRegex(),Ge=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ue$1).replace(/punctSpace/g,W$1).replace(/punct/g,D).getRegex(),Ne$1=d(/\\(punct)/,"gu").replace(/punct/g,D).getRegex(),Fe=d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),je$1=d(U$1).replace("(?:--\x3e|$)","--\x3e").getRegex(),Qe=d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",je$1).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),q=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ue=d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",q).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),de$1=d(/^!?\[(label)\]\[(ref)\]/).replace("label",q).replace("ref",Q$1).getRegex(),ke$1=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",Q$1).getRegex(),Ke=d("reflink|nolink(?!\\()","g").replace("reflink",de$1).replace("nolink",ke$1).getRegex(),se=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,X$1={_backpedal:I,anyPunctuation:Ne$1,autolink:Fe,blockSkip:qe,br:le$1,code:Ae$1,del:I,emStrongLDelim:ve$1,emStrongRDelimAst:He$1,emStrongRDelimUnd:Ge,escape:ze$1,link:Ue,nolink:ke$1,punctuation:Ee$1,reflink:de$1,reflinkSearch:Ke,tag:Qe,text:Ie$1,url:I},We={...X$1,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",q).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",q).getRegex()},N={...X$1,emStrongRDelimAst:Ze$1,emStrongLDelim:De$1,url:d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",se).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",se).getRegex()},Xe={...N,br:d(le$1).replace("{2,}","*").getRegex(),text:d(N.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},C={normal:K,gfm:Le$1,pedantic:Me$1},M$1={normal:X$1,gfm:N,breaks:Xe,pedantic:We},Je={"&":"&","<":"<",">":">",'"':""","'":"'"},ge$1=e=>Je[e];function w(e,t){if(t){if(m$1.escapeTest.test(e))return e.replace(m$1.escapeReplace,ge$1)}else if(m$1.escapeTestNoEncode.test(e))return e.replace(m$1.escapeReplaceNoEncode,ge$1);return e}function J(e){try{e=encodeURI(e).replace(m$1.percentDecode,"%")}catch{return null}return e}function V$1(e,t){var n;let r=e.replace(m$1.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(m$1.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!(null!=(n=r.at(-1))&&n.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(m$1.slashPipe,"|");return r}function z$1(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r&&e.charAt(r-i-1)===t;)i++;return e.slice(0,r-i)}function fe$1(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function me$1(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}function Ve(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join("\n")}var y=class{constructor(e){rn(this,"options"),rn(this,"rules"),rn(this,"lexer"),this.options=e||T}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:z$1(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Ve(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=z$1(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:z$1(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=z$1(t[0],"\n").split("\n"),n="",r="",i=[];for(;e.length>0;){let t,a=!1,o=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))o.push(e[t]),a=!0;else{if(a)break;o.push(e[t])}e=e.slice(t);let s=o.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${s}`:s,r=r?`${r}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if("code"===(null==u?void 0:u.type))break;if("blockquote"===(null==u?void 0:u.type)){let t=u,a=t.raw+"\n"+e.join("\n"),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}if("list"===(null==u?void 0:u.type)){let t=u,a=t.raw+"\n"+e.join("\n"),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r="",s="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,s=l.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let m,h=e.split("\n",1)[0];if(c=h,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),m=c):m=c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||o.test(c)||t.test(c)||n.test(c))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!c.trim())s+="\n"+m.slice(d);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||n.test(l))break;s+="\n"+c}!u&&!c.trim()&&(u=!0),r+=h+"\n",e=e.substring(h.length+1),l=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let m,h=null;this.options.gfm&&(h=this.rules.other.listIsTask.exec(s),h&&(m="[ ] "!==h[0],s=s.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:r,task:!!h,checked:m,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=n}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){var t;let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=V$1(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=null!=(t=n[3])&&t.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(let e of i)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<r.length;e++)o.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:o.align[e]});for(let e of a)o.rows.push(V$1(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=z$1(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=fe$1(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),me$1(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return me$1(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,i,a=[...r[0]].length-1,o=a,s=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+a);null!=(r=l.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(i=[...n].length,r[3]||r[4]){o+=i;continue}if((r[5]||r[6])&&a%3&&!((a+i)%3)){s+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+s);let t=[...r[0]][0].length,l=e.slice(0,a+r.index+t+i);if(Math.min(a,i)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=n[0],r="mailto:"+e;else{let i;do{i=n[0],n[0]=(null==(t=this.rules.inline._backpedal.exec(n[0]))?void 0:t[0])??""}while(i!==n[0]);e=n[0],r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},x=class e{constructor(e){rn(this,"tokens"),rn(this,"options"),rn(this,"state"),rn(this,"tokenizer"),rn(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||T,this.options.tokenizer=this.options.tokenizer||new y,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:m$1,block:C.normal,inline:M$1.normal};this.options.pedantic?(t.block=C.pedantic,t.inline=M$1.pedantic):this.options.gfm&&(t.block=C.gfm,this.options.breaks?t.inline=M$1.breaks:t.inline=M$1.gfm),this.tokenizer.rules=t}static get rules(){return{block:C,inline:M$1}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(m$1.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var r,i,a;for(this.options.pedantic&&(e=e.replace(m$1.tabCharGlobal," ").replace(m$1.spaceLine,""));e;){let o;if(null!=(i=null==(r=this.options.extensions)?void 0:r.block)&&i.some(n=>!!(o=n.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let n=t.at(-1);1===o.raw.length&&void 0!==n?n.raw+="\n":t.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let n=t.at(-1);"paragraph"===(null==n?void 0:n.type)||"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.text,this.inlineQueue.at(-1).src=n.text):t.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let n=t.at(-1);"paragraph"===(null==n?void 0:n.type)||"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},t.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(null!=(a=this.options.extensions)&&a.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(s=e.substring(0,n+1))}if(this.state.top&&(o=this.tokenizer.paragraph(s))){let r=t.at(-1);n&&"paragraph"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(o),n=s.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let n=t.at(-1);"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(o);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var n,r,i,a,o;let s=e,l=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(l=this.tokenizer.rules.inline.reflinkSearch.exec(s));)e.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(l=this.tokenizer.rules.inline.anyPunctuation.exec(s));)s=s.slice(0,l.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(l=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=(null==(r=null==(n=this.options.hooks)?void 0:n.emStrongMask)?void 0:r.call({lexer:this},s))??s;let c=!1,u="";for(;e;){let n;if(c||(u=""),c=!1,null!=(a=null==(i=this.options.extensions)?void 0:i.inline)&&a.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&"text"===(null==r?void 0:r.type)?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,s,u)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let r=e;if(null!=(o=this.options.extensions)&&o.startInline){let t,n=1/0,i=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},i),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(r=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(r)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(u=n.raw.slice(-1)),c=!0;let r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},P$1=class{constructor(e){rn(this,"options"),rn(this,"parser"),this.options=e||T}space(e){return""}code({text:e,lang:t,escaped:n}){var r;let i=null==(r=(t||"").match(m$1.notSpaceStart))?void 0:r[0],a=e.replace(m$1.endingNewline,"")+"\n";return i?'<pre><code class="language-'+w(i)+'">'+(n?a:w(a,!0))+"</code></pre>\n":"<pre><code>"+(n?a:w(a,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+i+">\n"}listitem(e){var t;let n="";if(e.task){let r=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===(null==(t=e.tokens[0])?void 0:t.type)?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=r+" "+w(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):n+=r+" "}return n+=this.parser.parse(e.tokens,!!e.loose),`<li>${n}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${w(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=J(e);if(null===i)return r;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+w(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=J(e);if(null===i)return w(n);let a=`<img src="${e=i}" alt="${n}"`;return t&&(a+=` title="${w(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:w(e.text)}},$=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},b=class e{constructor(e){rn(this,"options"),rn(this,"renderer"),rn(this,"textRenderer"),this.options=e||T,this.options.renderer=this.options.renderer||new P$1,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new $}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){var n,r;let i="";for(let a=0;a<e.length;a++){let o=e[a];if(null!=(r=null==(n=this.options.extensions)?void 0:n.renderers)&&r[o.type]){let e=o,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){i+=t||"";continue}}let s=o;switch(s.type){case"space":i+=this.renderer.space(s);continue;case"hr":i+=this.renderer.hr(s);continue;case"heading":i+=this.renderer.heading(s);continue;case"code":i+=this.renderer.code(s);continue;case"table":i+=this.renderer.table(s);continue;case"blockquote":i+=this.renderer.blockquote(s);continue;case"list":i+=this.renderer.list(s);continue;case"html":i+=this.renderer.html(s);continue;case"def":i+=this.renderer.def(s);continue;case"paragraph":i+=this.renderer.paragraph(s);continue;case"text":{let n=s,r=this.renderer.text(n);for(;a+1<e.length&&"text"===e[a+1].type;)n=e[++a],r+="\n"+this.renderer.text(n);i+=t?this.renderer.paragraph({type:"paragraph",raw:r,text:r,tokens:[{type:"text",raw:r,text:r,escaped:!0}]}):r;continue}default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}parseInline(e,t=this.renderer){var n,r;let i="";for(let a=0;a<e.length;a++){let o=e[a];if(null!=(r=null==(n=this.options.extensions)?void 0:n.renderers)&&r[o.type]){let e=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){i+=e||"";continue}}let s=o;switch(s.type){case"escape":case"text":i+=t.text(s);break;case"html":i+=t.html(s);break;case"link":i+=t.link(s);break;case"image":i+=t.image(s);break;case"strong":i+=t.strong(s);break;case"em":i+=t.em(s);break;case"codespan":i+=t.codespan(s);break;case"br":i+=t.br(s);break;case"del":i+=t.del(s);break;default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}},wr,S=(wr=class{constructor(e){rn(this,"options"),rn(this,"block"),this.options=e||T}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?x.lex:x.lexInline}provideParser(){return this.block?b.parse:b.parseInline}},rn(wr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),rn(wr,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),wr),B=class{constructor(...e){rn(this,"defaults",L()),rn(this,"options",this.setOptions),rn(this,"parse",this.parseMarkdown(!0)),rn(this,"parseInline",this.parseMarkdown(!1)),rn(this,"Parser",b),rn(this,"Renderer",P$1),rn(this,"TextRenderer",$),rn(this,"Lexer",x),rn(this,"Tokenizer",y),rn(this,"Hooks",S),this.use(...e)}walkTokens(e,t){var n,r;let i=[];for(let a of e)switch(i=i.concat(t.call(this,a)),a.type){case"table":{let e=a;for(let n of e.header)i=i.concat(this.walkTokens(n.tokens,t));for(let n of e.rows)for(let e of n)i=i.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=a;i=i.concat(this.walkTokens(e.items,t));break}default:{let e=a;null!=(r=null==(n=this.defaults.extensions)?void 0:n.childTokens)&&r[e.type]?this.defaults.extensions.childTokens[e.type].forEach(n=>{let r=e[n].flat(1/0);i=i.concat(this.walkTokens(r,t))}):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new P$1(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new y(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new S;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];S.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&S.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return!1===n&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return x.lex(e,t??this.defaults)}parser(e,t){return b.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?x.lex:x.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?b.parse:b.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?x.lex:x.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?b.parse:b.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+w(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},_=new B;function k$1(e,t){return _.parse(e,t)}k$1.options=k$1.setOptions=function(e){return _.setOptions(e),k$1.defaults=_.defaults,G$1(k$1.defaults),k$1},k$1.getDefaults=L,k$1.defaults=T,k$1.use=function(...e){return _.use(...e),k$1.defaults=_.defaults,G$1(k$1.defaults),k$1},k$1.walkTokens=function(e,t){return _.walkTokens(e,t)},k$1.parseInline=_.parseInline,k$1.Parser=b,k$1.parser=b.parse,k$1.Renderer=P$1,k$1.TextRenderer=$,k$1.Lexer=x,k$1.lexer=x.lex,k$1.Tokenizer=y,k$1.Hooks=S,k$1.parse=k$1,k$1.options,k$1.setOptions,k$1.use,k$1.walkTokens,k$1.parseInline,b.parse,x.lex;var m=(...e)=>twMerge(clsx(e)),P=(e,t,n)=>{let r="string"==typeof t?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),a=document.createElement("a");a.href=i,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)},Ze=/<pre(\s|>)/,W=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({code:""}),O=class{constructor(){this.lightHighlighter=null,this.darkHighlighter=null,this.lightTheme=null,this.darkTheme=null,this.loadedLanguages=new Set,this.initializationPromise=null}isLanguageSupported(e){return Object.hasOwn(bundledLanguages,e)}getFallbackLanguage(){return"text"}async ensureHighlightersInitialized(e,t){var n,r;let[i,a]=e,o=createJavaScriptRegexEngine({forgiving:!0}),s=!this.lightHighlighter||this.lightTheme!==i,l=!this.darkHighlighter||this.darkTheme!==a;(s||l)&&this.loadedLanguages.clear();let c=this.isLanguageSupported(t),u=!this.loadedLanguages.has(t)&&c;if(s?(this.lightHighlighter=await createHighlighter({themes:[i],langs:c?[t]:[],engine:o}),this.lightTheme=i,c&&this.loadedLanguages.add(t)):u&&await(null==(n=this.lightHighlighter)?void 0:n.loadLanguage(t)),l){let e=u?[...this.loadedLanguages].concat(c?[t]:[]):Array.from(this.loadedLanguages);this.darkHighlighter=await createHighlighter({themes:[a],langs:e.length>0?e:c?[t]:[],engine:o}),this.darkTheme=a}else u&&await(null==(r=this.darkHighlighter)?void 0:r.loadLanguage(t));u&&this.loadedLanguages.add(t)}async highlightCode(e,t,n,r){var i,a;this.initializationPromise&&await this.initializationPromise,this.initializationPromise=this.ensureHighlightersInitialized(n,t),await this.initializationPromise,this.initializationPromise=null;let[o,s]=n,l=this.isLanguageSupported(t)?t:this.getFallbackLanguage(),c=null==(i=this.lightHighlighter)?void 0:i.codeToHtml(e,{lang:l,theme:o}),u=null==(a=this.darkHighlighter)?void 0:a.codeToHtml(e,{lang:l,theme:s}),d=e=>r?e.replace(Ze,`<pre class="${r}"$1`):e;return[d(c),d(u)]}},et=new O,ee=({code:e,language:t,className:n,children:r,preClassName:i,...a})=>{let[o,s]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(""),[l,c]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(""),u=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!1),[d,h]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(X);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>(u.current=!0,et.highlightCode(e,t,[d,h],i).then(([e,t])=>{u.current&&(s(e),c(t))}),()=>{u.current=!1}),[e,t,d,h,i]),jsxRuntimeExports.jsx(W.Provider,{value:{code:e},children:jsxRuntimeExports.jsxs("div",{className:"my-4 w-full overflow-hidden rounded-xl border","data-code-block-container":!0,"data-language":t,children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs","data-code-block-header":!0,"data-language":t,children:[jsxRuntimeExports.jsx("span",{className:"ml-1 font-mono lowercase",children:t}),jsxRuntimeExports.jsx("div",{className:"flex items-center gap-2",children:r})]}),jsxRuntimeExports.jsx("div",{className:"w-full",children:jsxRuntimeExports.jsxs("div",{className:"min-w-full",children:[jsxRuntimeExports.jsx("div",{className:m("overflow-x-auto dark:hidden",n),dangerouslySetInnerHTML:{__html:o},"data-code-block":!0,"data-language":t,...a}),jsxRuntimeExports.jsx("div",{className:m("hidden overflow-x-auto dark:block",n),dangerouslySetInnerHTML:{__html:l},"data-code-block":!0,"data-language":t,...a})]})})]})})},Q={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},U=({onDownload:e,onError:t,language:n,children:r,className:i,code:a,...o})=>{let{code:s}=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(W),{isAnimating:l}=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(M),c=a??s,u=`file.${n&&n in Q?Q[n]:"txt"}`;return jsxRuntimeExports.jsx("button",{className:m("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:l,onClick:()=>{try{P(u,c,"text/plain"),null==e||e()}catch(e){null==t||t(e)}},title:"Download file",type:"button",...o,children:r??jsxRuntimeExports.jsx(Download,{size:14})})},z=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:a,...o})=>{let[s,l]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),c=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0),{code:u}=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(W),{isAnimating:d}=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(M),h=a??u;(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>()=>{window.clearTimeout(c.current)},[]);let p=s?Check:Copy;return jsxRuntimeExports.jsx("button",{className:m("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:d,onClick:async()=>{var r;if(typeof window>"u"||null==(r=null==navigator?void 0:navigator.clipboard)||!r.writeText)null==t||t(new Error("Clipboard API not available"));else try{s||(await navigator.clipboard.writeText(h),l(!0),null==e||e(),c.current=window.setTimeout(()=>l(!1),n))}catch(e){null==t||t(e)}},type:"button",...o,children:r??jsxRuntimeExports.jsx(p,{size:14})})},te=({node:e,className:t,src:n,alt:r,...i})=>n?jsxRuntimeExports.jsxs("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[jsxRuntimeExports.jsx("img",{alt:r,className:m("max-w-full rounded-lg",t),"data-streamdown":"image",src:n,...i}),jsxRuntimeExports.jsx("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),jsxRuntimeExports.jsx("button",{className:m("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:async()=>{var e;if(n)try{let t=await(await fetch(n)).blob(),i=new URL(n,window.location.origin).pathname.split("/").pop()||"",a=i.includes(".")&&(null==(e=i.split(".").pop())?void 0:e.length)<=4,o="";if(a)o=i;else{let e=t.type,n="png";e.includes("jpeg")||e.includes("jpg")?n="jpg":e.includes("png")?n="png":e.includes("svg")?n="svg":e.includes("gif")?n="gif":e.includes("webp")&&(n="webp"),o=`${(r||i||"image").replace(/\.[^/.]+$/,"")}.${n}`}P(o,t,t.type)}catch(e){console.error("Failed to download image:",e)}},title:"Download image",type:"button",children:jsxRuntimeExports.jsx(Download,{size:14})})]}):null,st=async e=>{let t={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...e},n=(await __webpack_require__.e(877).then(__webpack_require__.bind(__webpack_require__,50877)).then(e=>e.bC)).default;return n.initialize(t),n},oe=({chart:e,className:t,config:n})=>{let[r,i]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),[a,o]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!0),[s,l]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(""),[c,u]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("");if((0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{(async()=>{try{i(null),o(!0);let t=await st(n),r=e.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),a=`mermaid-${Math.abs(r)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:s}=await t.render(a,e);l(s),u(s)}catch(e){if(!c&&!s){let t=e instanceof Error?e.message:"Failed to render Mermaid chart";i(t)}}finally{o(!1)}})()},[e,n]),a&&!s&&!c)return jsxRuntimeExports.jsx("div",{className:m("my-4 flex justify-center p-4",t),children:jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[jsxRuntimeExports.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),jsxRuntimeExports.jsx("span",{className:"text-sm",children:"Loading diagram..."})]})});if(r&&!s&&!c)return jsxRuntimeExports.jsxs("div",{className:m("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[jsxRuntimeExports.jsxs("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",r]}),jsxRuntimeExports.jsxs("details",{className:"mt-2",children:[jsxRuntimeExports.jsx("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),jsxRuntimeExports.jsx("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let d=s||c;return jsxRuntimeExports.jsx("div",{"aria-label":"Mermaid chart",className:m("my-4 flex justify-center",t),dangerouslySetInnerHTML:{__html:d},role:"img"})};function le(e){var t,n;let r=[],i=[],a=e.querySelectorAll("thead th");for(let e of a)r.push((null==(t=e.textContent)?void 0:t.trim())||"");let o=e.querySelectorAll("tbody tr");for(let e of o){let t=[],r=e.querySelectorAll("td");for(let e of r)t.push((null==(n=e.textContent)?void 0:n.trim())||"");i.push(t)}return{headers:r,rows:i}}function de(e){let{headers:t,rows:n}=e,r=e=>e.includes(",")||e.includes('"')||e.includes("\n")?`"${e.replace(/"/g,'""')}"`:e,i=[];t.length>0&&i.push(t.map(r).join(","));for(let e of n)i.push(e.map(r).join(","));return i.join("\n")}function ce(e){let{headers:t,rows:n}=e;if(0===t.length)return"";let r=[],i=t.map(e=>e.replace(/\|/g,"\\|"));r.push(`| ${i.join(" | ")} |`),r.push(`| ${t.map(()=>"---").join(" | ")} |`);for(let e of n){let n=[...e];for(;n.length<t.length;)n.push("");let i=n.map(e=>e.replace(/\|/g,"\\|"));r.push(`| ${i.join(" | ")} |`)}return r.join("\n")}var me=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3,format:a="markdown"})=>{let[o,s]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),l=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0),{isAnimating:c}=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(M);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>()=>{window.clearTimeout(l.current)},[]);let u=o?Check:Copy;return jsxRuntimeExports.jsx("button",{className:m("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:c,onClick:async e=>{var t;if(typeof window>"u"||null==(t=null==navigator?void 0:navigator.clipboard)||!t.write)null==r||r(new Error("Clipboard API not available"));else try{if(!o){let t=e.currentTarget.closest('[data-streamdown="table-wrapper"]'),o=null==t?void 0:t.querySelector("table");if(!o)return void(null==r||r(new Error("Table not found")));let c=le(o),u=new ClipboardItem({"text/plain":"markdown"===a?ce(c):de(c),"text/html":new Blob([o.outerHTML],{type:"text/html"})});await navigator.clipboard.write([u]),s(!0),null==n||n(),l.current=window.setTimeout(()=>s(!1),i)}}catch(e){null==r||r(e)}},title:`Copy table as ${a}`,type:"button",children:e??jsxRuntimeExports.jsx(u,{size:14})})},pe=({children:e,className:t,onDownload:n,onError:r})=>{let[i,a]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),o=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),{isAnimating:s}=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(M),l=e=>{var t;try{let i=null==(t=o.current)?void 0:t.closest('[data-streamdown="table-wrapper"]'),s=null==i?void 0:i.querySelector("table");if(!s)return void(null==r||r(new Error("Table not found")));let l=le(s),c="csv"===e?de(l):ce(l);P("table."+("csv"===e?"csv":"md"),c,"csv"===e?"text/csv":"text/markdown"),a(!1),null==n||n(e)}catch(e){null==r||r(e)}};return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{let e=e=>{o.current&&!o.current.contains(e.target)&&a(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),jsxRuntimeExports.jsxs("div",{className:"relative",ref:o,children:[jsxRuntimeExports.jsx("button",{className:m("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:s,onClick:()=>a(!i),title:"Download table",type:"button",children:e??jsxRuntimeExports.jsx(Download,{size:14})}),i&&jsxRuntimeExports.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] rounded-md border border-border bg-background shadow-lg",children:[jsxRuntimeExports.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>l("csv"),type:"button",children:"CSV"}),jsxRuntimeExports.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>l("markdown"),type:"button",children:"Markdown"})]})]})},lt=/language-([^\s]+)/;function A(e,t){if(!(null!=e&&e.position||null!=t&&t.position))return!0;if(null==e||!e.position||null==t||!t.position)return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return(null==n?void 0:n.line)===(null==r?void 0:r.line)&&(null==n?void 0:n.column)===(null==r?void 0:r.column)&&(null==i?void 0:i.line)===(null==a?void 0:a.line)&&(null==i?void 0:i.column)===(null==a?void 0:a.column)}function k(e,t){return e.className===t.className&&A(e.node,t.node)}var F=(e,t)=>"boolean"==typeof e?e:!1!==e[t],V=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("ol",{className:m("ml-4 list-outside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...r,children:e}),(e,t)=>k(e,t));V.displayName="MarkdownOl";var ue=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("li",{className:m("py-1",t),"data-streamdown":"list-item",...r,children:e}),(e,t)=>e.className===t.className&&A(e.node,t.node));ue.displayName="MarkdownLi";var ge=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("ul",{className:m("ml-4 list-outside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...r,children:e}),(e,t)=>k(e,t));ge.displayName="MarkdownUl";var fe=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({className:e,node:t,...n})=>jsxRuntimeExports.jsx("hr",{className:m("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n}),(e,t)=>k(e,t));fe.displayName="MarkdownHr";var he=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("span",{className:m("font-semibold",t),"data-streamdown":"strong",...r,children:e}),(e,t)=>k(e,t));he.displayName="MarkdownStrong";var be=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,href:n,node:r,...i})=>{let a="streamdown:incomplete-link"===n;return jsxRuntimeExports.jsx("a",{className:m("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":a,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...i,children:e})},(e,t)=>k(e,t)&&e.href===t.href);be.displayName="MarkdownA";var ke=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("h1",{className:m("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e}),(e,t)=>k(e,t));ke.displayName="MarkdownH1";var ye=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("h2",{className:m("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e}),(e,t)=>k(e,t));ye.displayName="MarkdownH2";var we=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("h3",{className:m("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e}),(e,t)=>k(e,t));we.displayName="MarkdownH3";var ve=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("h4",{className:m("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e}),(e,t)=>k(e,t));ve.displayName="MarkdownH4";var Me=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("h5",{className:m("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e}),(e,t)=>k(e,t));Me.displayName="MarkdownH5";var Te=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("h6",{className:m("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e}),(e,t)=>k(e,t));Te.displayName="MarkdownH6";var Ce=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>{let i=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(j),a=F(i,"table");return jsxRuntimeExports.jsxs("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[a&&jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-end gap-1",children:[jsxRuntimeExports.jsx(me,{}),jsxRuntimeExports.jsx(pe,{})]}),jsxRuntimeExports.jsx("div",{className:"overflow-x-auto",children:jsxRuntimeExports.jsx("table",{className:m("w-full border-collapse border border-border",t),"data-streamdown":"table",...r,children:e})})]})},(e,t)=>k(e,t));Ce.displayName="MarkdownTable";var Pe=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("thead",{className:m("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e}),(e,t)=>k(e,t));Pe.displayName="MarkdownThead";var Ne=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("tbody",{className:m("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...r,children:e}),(e,t)=>k(e,t));Ne.displayName="MarkdownTbody";var Ie=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("tr",{className:m("border-border border-b",t),"data-streamdown":"table-row",...r,children:e}),(e,t)=>k(e,t));Ie.displayName="MarkdownTr";var Se=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("th",{className:m("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e}),(e,t)=>k(e,t));Se.displayName="MarkdownTh";var Le=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("td",{className:m("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e}),(e,t)=>k(e,t));Le.displayName="MarkdownTd";var Be=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("blockquote",{className:m("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e}),(e,t)=>k(e,t));Be.displayName="MarkdownBlockquote";var $e=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("sup",{className:m("text-sm",t),"data-streamdown":"superscript",...r,children:e}),(e,t)=>k(e,t));$e.displayName="MarkdownSup";var xe=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>jsxRuntimeExports.jsx("sub",{className:m("text-sm",t),"data-streamdown":"subscript",...r,children:e}),(e,t)=>k(e,t));xe.displayName="MarkdownSub";var He=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let n=e=>{var t,n;if(!(0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(e))return!1;let r=Array.isArray(e.props.children)?e.props.children:[e.props.children],i=!1,a=!1;for(let e of r)if(e)if("string"==typeof e)""!==e.trim()&&(i=!0);else if((0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(e))if(void 0!==(null==(t=e.props)?void 0:t["data-footnote-backref"]))a=!0;else{let t=Array.isArray(e.props.children)?e.props.children:[e.props.children];for(let e of t){if("string"==typeof e&&""!==e.trim()){i=!0;break}if((0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(e)&&void 0===(null==(n=e.props)?void 0:n["data-footnote-backref"])){i=!0;break}}}return a&&!i},i=Array.isArray(e)?e.map(e=>{if(!(0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(e))return e;if(e.type===V){let t=(Array.isArray(e.props.children)?e.props.children:[e.props.children]).filter(e=>!n(e));return 0===t.length?null:{...e,props:{...e.props,children:t}}}return e}):e;return(Array.isArray(i)?i.some(e=>null!==e):null!==i)?jsxRuntimeExports.jsx("section",{className:t,...r,children:i}):null}return jsxRuntimeExports.jsx("section",{className:t,...r,children:e})},(e,t)=>k(e,t));He.displayName="MarkdownSection";var dt=({node:e,className:t,children:n,...r})=>{var i,a,o;let s=(null==(i=null==e?void 0:e.position)?void 0:i.start.line)===(null==(a=null==e?void 0:e.position)?void 0:a.end.line),l=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(G),c=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(j);if(s)return jsxRuntimeExports.jsx("code",{className:m("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let u=null==t?void 0:t.match(lt),d=null!=(o=null==u?void 0:u.at(1))?o:"",h="";if((0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(n)&&n.props&&"object"==typeof n.props&&"children"in n.props&&"string"==typeof n.props.children?h=n.props.children:"string"==typeof n&&(h=n),"mermaid"===d){let e=F(c,"mermaid");return jsxRuntimeExports.jsxs("div",{className:m("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[e&&jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-end gap-2",children:[jsxRuntimeExports.jsx(U,{code:h,language:d}),jsxRuntimeExports.jsx(z,{code:h})]}),jsxRuntimeExports.jsx(oe,{chart:h,config:l})]})}let p=F(c,"code");return jsxRuntimeExports.jsx(ee,{className:m("overflow-x-auto border-t",t),code:h,"data-language":d,"data-streamdown":"code-block",language:d,preClassName:"overflow-x-auto font-mono text-xs p-4 bg-muted/40",children:p&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(U,{code:h,language:d}),jsxRuntimeExports.jsx(z,{})]})})},Ae=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(dt,(e,t)=>e.className===t.className&&A(e.node,t.node));Ae.displayName="MarkdownCode";var je=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(te,(e,t)=>e.className===t.className&&A(e.node,t.node));je.displayName="MarkdownImg";var Re=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,className:t,node:n,...r})=>{var i;let a=(Array.isArray(e)?e:[e]).filter(e=>null!=e&&""!==e);return 1===a.length&&(0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(a[0])&&"img"===(null==(i=a[0].props.node)?void 0:i.tagName)?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:e}):jsxRuntimeExports.jsx("p",{className:t,...r,children:e})},(e,t)=>k(e,t));Re.displayName="MarkdownParagraph";var De={ol:V,li:ue,ul:ge,hr:fe,strong:he,a:be,h1:ke,h2:ye,h3:we,h4:ve,h5:Me,h6:Te,table:Ce,thead:Pe,tbody:Ne,tr:Ie,th:Se,td:Le,blockquote:Be,code:Ae,img:je,pre:({children:e})=>e,sup:$e,sub:xe,p:Re,section:He},Ee=e=>{let t=/\[\^[^\]\s]{1,200}\](?!:)/.test(e),n=/\[\^[^\]\s]{1,200}\]:/.test(e);if(t||n)return[e];let r=x.lex(e,{gfm:!0}),i=[],a=[];for(let e=0;e<r.length;e++){let t=r[e],n=t.raw;if(a.length>0){if(i[i.length-1]+=n,"html"===t.type){let e=n.match(/<\/(\w+)>/);if(e){let t=e[1];a[a.length-1]===t&&a.pop()}}}else{if("html"===t.type&&t.block){let e=n.match(/<(\w+)[\s>]/);if(e){let t=e[1];n.includes(`</${t}>`)||a.push(t)}}if("$$"===n.trim()&&i.length>0){let e=i.at(-1);if(!e){i.push(n);continue}let t=e.trimStart().startsWith("$$"),r=(e.match(/\$\$/g)||[]).length;if(t&&r%2==1){i[i.length-1]=e+n;continue}}if(i.length>0&&n.trimEnd().endsWith("$$")){let e=i.at(-1);if(!e){i.push(n);continue}let t=e.trimStart().startsWith("$$"),r=(e.match(/\$\$/g)||[]).length,a=(n.match(/\$\$/g)||[]).length;if(t&&r%2==1&&!n.trimStart().startsWith("$$")&&1===a){i[i.length-1]=e+n;continue}}i.push(n)}}return i},mt=/(!?\[)([^\]]*?)$/,pt=/(\*\*)([^*]*?)$/,ut=/(__)([^_]*?)$/,gt=/(\*\*\*)([^*]*?)$/,ft=/(\*)([^*]*?)$/,ht=/(_)([^_]*?)$/,bt=/(`)([^`]*?)$/,kt=/(~~)([^~]*?)$/,R=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2==0&&e.includes("\n")},yt=e=>{let t=e.match(/(!?)\[([^\]]+)\]\(([^)]+)$/);if(t){let n="!"===t[1],r=t[2],i=t[3],a=e.lastIndexOf(`${n?"!":""}[${r}](${i}`),o=e.substring(0,a);return n?o:`${o}[${r}](streamdown:incomplete-link)`}let n=e.match(mt);if(n){if(n[1].startsWith("!")){let t=e.lastIndexOf(n[1]);return e.substring(0,t)}return`${e}](streamdown:incomplete-link)`}return e},wt=e=>{if(R(e))return e;let t=e.match(pt);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;let r=e.lastIndexOf(t[1]),i=e.substring(0,r).lastIndexOf("\n"),a=-1===i?0:i+1,o=e.substring(a,r);if(/^[\s]*[-*+][\s]+$/.test(o)&&n.includes("\n"))return e;if((e.match(/\*\*/g)||[]).length%2==1)return`${e}**`}return e},vt=e=>{let t=e.match(ut);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;let r=e.lastIndexOf(t[1]),i=e.substring(0,r).lastIndexOf("\n"),a=-1===i?0:i+1,o=e.substring(a,r);if(/^[\s]*[-*+][\s]+$/.test(o)&&n.includes("\n"))return e;if((e.match(/__/g)||[]).length%2==1)return`${e}__`}return e},Mt=e=>e.split("").reduce((t,n,r)=>{if("*"===n){let n=e[r-1],i=e[r+1];if("\\"===n)return t;let a=r;for(let t=r-1;t>=0;t--){if("\n"===e[t]){a=t+1;break}if(0===t){a=0;break}}if(""===e.substring(a,r).trim()&&(" "===i||"\t"===i))return t;if("*"!==n&&"*"!==i)return t+1}return t},0),Tt=e=>{if(R(e))return e;if(e.match(ft)){let t=-1;for(let n=0;n<e.length;n++)if("*"===e[n]&&"*"!==e[n-1]&&"*"!==e[n+1]){t=n;break}if(-1===t)return e;let n=e.substring(t+1);if(!n||/^[\s_~*`]*$/.test(n))return e;if(Mt(e)%2==1)return`${e}*`}return e},_e=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i++)"\\"!==e[i]||"$"!==e[i+1]?"$"===e[i]&&("$"===e[i+1]?(r=!r,i++,n=!1):r||(n=!n)):i++;return n||r},Ct=e=>e.split("").reduce((t,n,r)=>{if("_"===n){let n=e[r-1],i=e[r+1];if("\\"===n||_e(e,r)||n&&i&&/[\p{L}\p{N}_]/u.test(n)&&/[\p{L}\p{N}_]/u.test(i))return t;if("_"!==n&&"_"!==i)return t+1}return t},0),Pt=e=>{if(R(e))return e;if(e.match(ht)){let t=-1;for(let n=0;n<e.length;n++)if("_"===e[n]&&"_"!==e[n-1]&&"_"!==e[n+1]&&"\\"!==e[n-1]&&!_e(e,n)){let r=n>0?e[n-1]:"",i=n<e.length-1?e[n+1]:"";if(r&&i&&/[\p{L}\p{N}_]/u.test(r)&&/[\p{L}\p{N}_]/u.test(i))continue;t=n;break}if(-1===t)return e;let n=e.substring(t+1);if(!n||/^[\s_~*`]*$/.test(n))return e;if(Ct(e)%2==1){let t=e.match(/\n+$/);return t?`${e.slice(0,-t[0].length)}_${t[0]}`:`${e}_`}}return e},Nt=(e,t)=>{let n="```"===e.substring(t,t+3),r=t>0&&"```"===e.substring(t-1,t+2),i=t>1&&"```"===e.substring(t-2,t+1);return n||r||i},It=e=>{let t=0;for(let n=0;n<e.length;n++)"`"===e[n]&&!Nt(e,n)&&t++;return t},St=e=>{if(e.match(/^```[^`\n]*```?$/)&&!e.includes("\n"))return e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e;let t=(e.match(/```/g)||[]).length,n=t%2==1;if(t>0&&t%2==0&&e.includes("\n")||(e.endsWith("```\n")||e.endsWith("```"))&&t%2==0)return e;let r=e.match(bt);if(r&&!n){let t=r[2];if(!t||/^[\s_~*`]*$/.test(t))return e;if(It(e)%2==1)return`${e}\``}return e},Lt=e=>{let t=e.match(kt);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;if((e.match(/~~/g)||[]).length%2==1)return`${e}~~`}return e},Bt=e=>{if((e.match(/\$\$/g)||[]).length%2==0)return e;let t=e.indexOf("$$");return-1===t||-1===e.indexOf("\n",t)||e.endsWith("\n")?`${e}$$`:`${e}\n$$`},$t=e=>{let t=0,n=e.match(/\*+/g)||[];for(let e of n){let n=e.length;n>=3&&(t+=Math.floor(n/3))}return t},xt=e=>{if(R(e)||/^\*{4,}$/.test(e))return e;let t=e.match(gt);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;if($t(e)%2==1)return`${e}***`}return e},Oe=e=>{if(!e||"string"!=typeof e)return e;let t=e,n=yt(t);return n.endsWith("](streamdown:incomplete-link)")?n:(t=n,t=xt(t),t=wt(t),t=vt(t),t=Tt(t),t=Pt(t),t=St(t),t=Lt(t),t=Bt(t),t)},_t={harden:[harden,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],defaultOrigin:void 0,allowDataImages:!0}],raw:rehypeRaw,katex:[rehypeKatex,{errorColor:"var(--color-muted-foreground)"}]},Ot={gfm:[remarkGfm,{}],math:[remarkMath,{singleDollarTextMath:!1}]},X=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(["github-light","github-dark"]),G=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(void 0),j=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(!0),M=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({isAnimating:!1}),ze=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({content:e,shouldParseIncompleteMarkdown:t,...n})=>{let r=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>"string"==typeof e&&t?Oe(e.trim()):e,[e,t]);return jsxRuntimeExports.jsx(Markdown,{...n,children:r})},(e,t)=>e.content===t.content);ze.displayName="Block";var Wt=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({children:e,parseIncompleteMarkdown:t=!0,components:n,rehypePlugins:r=Object.values(_t),remarkPlugins:i=Object.values(Ot),className:a,shikiTheme:o=["github-light","github-dark"],mermaidConfig:s,controls:l=!0,isAnimating:c=!1,...u})=>{let d=(0,react__WEBPACK_IMPORTED_MODULE_0__.useId)(),h=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>Ee("string"==typeof e?e:""),[e]);return jsxRuntimeExports.jsx(X.Provider,{value:o,children:jsxRuntimeExports.jsx(G.Provider,{value:s,children:jsxRuntimeExports.jsx(j.Provider,{value:l,children:jsxRuntimeExports.jsx(M.Provider,{value:{isAnimating:c},children:jsxRuntimeExports.jsx("div",{className:m("space-y-4",a),children:h.map((e,a)=>jsxRuntimeExports.jsx(ze,{components:{...De,...n},content:e,rehypePlugins:r,remarkPlugins:i,shouldParseIncompleteMarkdown:t,...u},`${d}-block-${a}`))})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating);Wt.displayName="Streamdown";const Response$1=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({className:e,...t})=>jsxRuntimeExports.jsx(Wt,{className:cn("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...t}),(e,t)=>e.children===t.children);Response$1.displayName="Response";const LayoutGroupContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({});function useConstant(e){const t=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);return null===t.current&&(t.current=e()),t.current}const isBrowser=typeof window<"u",useIsomorphicLayoutEffect=isBrowser?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect,PresenceContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);function addUniqueItem(e,t){-1===e.indexOf(t)&&e.push(t)}function removeItem(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const clamp=(e,t,n)=>n>t?t:n<e?e:n;function formatErrorMessage(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let warning=()=>{},invariant=()=>{};const MotionGlobalConfig={},isNumericalString=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function isObject(e){return"object"==typeof e&&null!==e}const isZeroValueString=e=>/^0[^.\s]+$/u.test(e);function memo(e){let t;return()=>(void 0===t&&(t=e()),t)}const noop=e=>e,combineFunctions=(e,t)=>n=>t(e(n)),pipe=(...e)=>e.reduce(combineFunctions),progress=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r};class SubscriptionManager{constructor(){this.subscriptions=[]}add(e){return addUniqueItem(this.subscriptions,e),()=>removeItem(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const secondsToMilliseconds=e=>1e3*e,millisecondsToSeconds=e=>e/1e3;function velocityPerSecond(e,t){return t?e*(1e3/t):0}const warned=new Set;function warnOnce(e,t,n){e||warned.has(t)||(console.warn(formatErrorMessage(t,n)),warned.add(t))}const calcBezier=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,subdivisionPrecision=1e-7,subdivisionMaxIterations=12;function binarySubdivide(e,t,n,r,i){let a,o,s=0;do{o=t+(n-t)/2,a=calcBezier(o,r,i)-e,a>0?n=o:t=o}while(Math.abs(a)>subdivisionPrecision&&++s<subdivisionMaxIterations);return o}function cubicBezier(e,t,n,r){return e===t&&n===r?noop:i=>0===i||1===i?i:calcBezier((t=>binarySubdivide(t,0,1,e,n))(i),t,r)}const mirrorEasing=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,reverseEasing=e=>t=>1-e(1-t),backOut=cubicBezier(.33,1.53,.69,.99),backIn=reverseEasing(backOut),backInOut=mirrorEasing(backIn),anticipate=e=>(e*=2)<1?.5*backIn(e):.5*(2-Math.pow(2,-10*(e-1))),circIn=e=>1-Math.sin(Math.acos(e)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circIn),easeIn=cubicBezier(.42,0,1,1),easeOut=cubicBezier(0,0,.58,1),easeInOut=cubicBezier(.42,0,.58,1),isEasingArray=e=>Array.isArray(e)&&"number"!=typeof e[0],isBezierDefinition=e=>Array.isArray(e)&&"number"==typeof e[0],easingLookup={linear:noop,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate},isValidEasing=e=>"string"==typeof e,easingDefinitionToFunction=e=>{if(isBezierDefinition(e)){invariant(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return cubicBezier(t,n,r,i)}return isValidEasing(e)?(invariant(void 0!==easingLookup[e],`Invalid easing type '${e}'`,"invalid-easing-type"),easingLookup[e]):e},stepsOrder=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function createRenderStep(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(t){o.has(t)&&(c.schedule(t),e()),t(s)}const c={schedule:(e,t=!1,a=!1)=>{const s=a&&i?n:r;return t&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{s=e,i?a=!0:(i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,c.process(e)))}};return c}const maxElapsed=40;function createRenderBatcher(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=stepsOrder.reduce((e,t)=>(e[t]=createRenderStep(a),e),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:m,render:h,postRender:p}=o,f=()=>{const a=MotionGlobalConfig.useManualTiming?i.timestamp:performance.now();n=!1,MotionGlobalConfig.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,maxElapsed),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),l.process(i),c.process(i),u.process(i),d.process(i),m.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(f))};return{schedule:stepsOrder.reduce((t,a)=>{const s=o[a];return t[a]=(t,a=!1,o=!1)=>(n||(n=!0,r=!0,i.isProcessing||e(f)),s.schedule(t,a,o)),t},{}),cancel:e=>{for(let t=0;t<stepsOrder.length;t++)o[stepsOrder[t]].cancel(e)},state:i,steps:o}}const{schedule:frame,cancel:cancelFrame,state:frameData,steps:frameSteps}=createRenderBatcher(typeof requestAnimationFrame<"u"?requestAnimationFrame:noop,!0);let now;function clearTime(){now=void 0}const time={now:()=>(void 0===now&&time.set(frameData.isProcessing||MotionGlobalConfig.useManualTiming?frameData.timestamp:performance.now()),now),set:e=>{now=e,queueMicrotask(clearTime)}},checkStringStartsWith=e=>t=>"string"==typeof t&&t.startsWith(e),isCSSVariableName=checkStringStartsWith("--"),startsAsVariableToken=checkStringStartsWith("var(--"),isCSSVariableToken=e=>!!startsAsVariableToken(e)&&singleCssVariableRegex.test(e.split("/*")[0].trim()),singleCssVariableRegex=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,number={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},alpha={...number,transform:e=>clamp(0,1,e)},scale={...number,default:1},sanitize=e=>Math.round(1e5*e)/1e5,floatRegex=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function isNullish(e){return null==e}const singleColorRegex=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,isColorString=(e,t)=>n=>!!("string"==typeof n&&singleColorRegex.test(n)&&n.startsWith(e)||t&&!isNullish(n)&&Object.prototype.hasOwnProperty.call(n,t)),splitColor=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[i,a,o,s]=r.match(floatRegex);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},clampRgbUnit=e=>clamp(0,255,e),rgbUnit={...number,transform:e=>Math.round(clampRgbUnit(e))},rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+rgbUnit.transform(e)+", "+rgbUnit.transform(t)+", "+rgbUnit.transform(n)+", "+sanitize(alpha.transform(r))+")"};function parseHex(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},createUnitType=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),vh=createUnitType("vh"),vw=createUnitType("vw"),progressPercentage={...percent,parse:e=>percent.parse(e)/100,transform:e=>percent.transform(100*e)},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+percent.transform(sanitize(t))+", "+percent.transform(sanitize(n))+", "+sanitize(alpha.transform(r))+")"},color={test:e=>rgba.test(e)||hex.test(e)||hsla.test(e),parse:e=>rgba.test(e)?rgba.parse(e):hsla.test(e)?hsla.parse(e):hex.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?rgba.transform(e):hsla.transform(e),getAnimatableNone:e=>{const t=color.parse(e);return t.alpha=0,color.transform(t)}},colorRegex=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function test(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(floatRegex))?void 0:t.length)||0)+((null==(n=e.match(colorRegex))?void 0:n.length)||0)>0}const NUMBER_TOKEN="number",COLOR_TOKEN="color",VAR_TOKEN="var",VAR_FUNCTION_TOKEN="var(",SPLIT_TOKEN="${}",complexRegex=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function analyseComplexValue(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(complexRegex,e=>(color.test(e)?(r.color.push(a),i.push(COLOR_TOKEN),n.push(color.parse(e))):e.startsWith(VAR_FUNCTION_TOKEN)?(r.var.push(a),i.push(VAR_TOKEN),n.push(e)):(r.number.push(a),i.push(NUMBER_TOKEN),n.push(parseFloat(e))),++a,SPLIT_TOKEN)).split(SPLIT_TOKEN);return{values:n,split:o,indexes:r,types:i}}function parseComplexValue(e){return analyseComplexValue(e).values}function createTransformer(e){const{split:t,types:n}=analyseComplexValue(e),r=t.length;return e=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],void 0!==e[a]){const t=n[a];i+=t===NUMBER_TOKEN?sanitize(e[a]):t===COLOR_TOKEN?color.transform(e[a]):e[a]}return i}}const convertNumbersToZero=e=>"number"==typeof e?0:color.test(e)?color.getAnimatableNone(e):e;function getAnimatableNone$1(e){const t=parseComplexValue(e);return createTransformer(e)(t.map(convertNumbersToZero))}const complex={test,parse:parseComplexValue,createTransformer,getAnimatableNone:getAnimatableNone$1};function hueToRgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslaToRgba({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,a=0,o=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=hueToRgb(s,r,e+1/3),a=hueToRgb(s,r,e),o=hueToRgb(s,r,e-1/3)}else i=a=o=n;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:r}}function mixImmediate(e,t){return n=>n>0?t:e}const mixNumber$1=(e,t,n)=>e+(t-e)*n,mixLinearColor=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},colorTypes=[hex,rgba,hsla],getColorType=e=>colorTypes.find(t=>t.test(e));function asRGBA(e){const t=getColorType(e);if(warning(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===hsla&&(n=hslaToRgba(n)),n}const mixColor=(e,t)=>{const n=asRGBA(e),r=asRGBA(t);if(!n||!r)return mixImmediate(e,t);const i={...n};return e=>(i.red=mixLinearColor(n.red,r.red,e),i.green=mixLinearColor(n.green,r.green,e),i.blue=mixLinearColor(n.blue,r.blue,e),i.alpha=mixNumber$1(n.alpha,r.alpha,e),rgba.transform(i))},invisibleValues=new Set(["none","hidden"]);function mixVisibility(e,t){return invisibleValues.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function mixNumber(e,t){return n=>mixNumber$1(e,t,n)}function getMixer(e){return"number"==typeof e?mixNumber:"string"==typeof e?isCSSVariableToken(e)?mixImmediate:color.test(e)?mixColor:mixComplex:Array.isArray(e)?mixArray:"object"==typeof e?color.test(e)?mixColor:mixObject:mixImmediate}function mixArray(e,t){const n=[...e],r=n.length,i=e.map((e,n)=>getMixer(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function mixObject(e,t){const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=getMixer(e[i])(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}}function matchOrder(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const mixComplex=(e,t)=>{const n=complex.createTransformer(t),r=analyseComplexValue(e),i=analyseComplexValue(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?invisibleValues.has(e)&&!i.values.length||invisibleValues.has(t)&&!r.values.length?mixVisibility(e,t):pipe(mixArray(matchOrder(r,i),i.values),n):(warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),mixImmediate(e,t))};function mix(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?mixNumber$1(e,t,n):getMixer(e)(e,t)}const frameloopDriver=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>frame.update(t,e),stop:()=>cancelFrame(t),now:()=>frameData.isProcessing?frameData.timestamp:time.now()}},generateLinearEasing=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},maxGeneratorDuration=2e4;function calcGeneratorDuration(e){let t=0,n=e.next(t);for(;!n.done&&t<maxGeneratorDuration;)t+=50,n=e.next(t);return t>=maxGeneratorDuration?1/0:t}function createGeneratorEasing(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(calcGeneratorDuration(r),maxGeneratorDuration);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:millisecondsToSeconds(i)}}const velocitySampleDuration=5;function calcGeneratorVelocity(e,t,n){const r=Math.max(t-velocitySampleDuration,0);return velocityPerSecond(n-e(r),t-r)}const springDefaults={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},safeMin=.001;function findSpring({duration:e=springDefaults.duration,bounce:t=springDefaults.bounce,velocity:n=springDefaults.velocity,mass:r=springDefaults.mass}){let i,a;warning(e<=secondsToMilliseconds(springDefaults.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=clamp(springDefaults.minDamping,springDefaults.maxDamping,o),e=clamp(springDefaults.minDuration,springDefaults.maxDuration,millisecondsToSeconds(e)),o<1?(i=t=>{const r=t*o,i=r*e,a=r-n,s=calcAngularFreq(t,o),l=Math.exp(-i);return safeMin-a/s*l},a=t=>{const r=t*o*e,a=r*n+n,s=Math.pow(o,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=calcAngularFreq(Math.pow(t,2),o);return(-i(t)+safeMin>0?-1:1)*((a-s)*l)/c}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-safeMin,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=approximateRoot(i,a,5/e);if(e=secondsToMilliseconds(e),isNaN(s))return{stiffness:springDefaults.stiffness,damping:springDefaults.damping,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}const rootIterations=12;function approximateRoot(e,t,n){let r=n;for(let n=1;n<rootIterations;n++)r-=e(r)/t(r);return r}function calcAngularFreq(e,t){return e*Math.sqrt(1-t*t)}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType(e,t){return t.some(t=>void 0!==e[t])}function getSpringOptions(e){let t={velocity:springDefaults.velocity,stiffness:springDefaults.stiffness,damping:springDefaults.damping,mass:springDefaults.mass,isResolvedFromDuration:!1,...e};if(!isSpringType(e,physicsKeys)&&isSpringType(e,durationKeys))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),i=r*r,a=2*clamp(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:springDefaults.mass,stiffness:i,damping:a}}else{const n=findSpring(e);t={...t,...n,mass:springDefaults.mass},t.isResolvedFromDuration=!0}return t}function spring(e=springDefaults.visualDuration,t=springDefaults.bounce){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:c,mass:u,duration:d,velocity:m,isResolvedFromDuration:h}=getSpringOptions({...n,velocity:-millisecondsToSeconds(n.velocity||0)}),p=m||0,f=c/(2*Math.sqrt(l*u)),g=o-a,_=millisecondsToSeconds(Math.sqrt(l/u)),b=Math.abs(g)<5;let x;if(r||(r=b?springDefaults.restSpeed.granular:springDefaults.restSpeed.default),i||(i=b?springDefaults.restDelta.granular:springDefaults.restDelta.default),f<1){const e=calcAngularFreq(_,f);x=t=>{const n=Math.exp(-f*_*t);return o-n*((p+f*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===f)x=e=>o-Math.exp(-_*e)*(g+(p+_*g)*e);else{const e=_*Math.sqrt(f*f-1);x=t=>{const n=Math.exp(-f*_*t),r=Math.min(e*t,300);return o-n*((p+f*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const E={calculatedDuration:h&&d||null,next:e=>{const t=x(e);if(h)s.done=e>=d;else{let n=0===e?p:0;f<1&&(n=0===e?secondsToMilliseconds(p):calcGeneratorVelocity(x,e,t));const a=Math.abs(n)<=r,l=Math.abs(o-t)<=i;s.done=a&&l}return s.value=s.done?o:t,s},toString:()=>{const e=Math.min(calcGeneratorDuration(E),maxGeneratorDuration),t=generateLinearEasing(t=>E.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return E}function inertia({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],m={done:!1,value:d},h=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let p=n*t;const f=d+p,g=void 0===o?f:o(f);g!==f&&(p=g-d);const _=e=>-p*Math.exp(-e/r),b=e=>g+_(e),x=e=>{const t=_(e),n=b(e);m.done=Math.abs(t)<=c,m.value=m.done?g:n};let E,y;const T=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(m.value)&&(E=e,y=spring({keyframes:[m.value,h(m.value)],velocity:calcGeneratorVelocity(b,e,m.value),damping:i,stiffness:a,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:e=>{let t=!1;return!y&&void 0===E&&(t=!0,x(e),T(e)),void 0!==E&&e>=E?y.next(e-E):(!t&&x(e),m)}}}function createMixers(e,t,n){const r=[],i=n||MotionGlobalConfig.mix||mix,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||noop:t;a=pipe(e,a)}r.push(a)}return r}function interpolate(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(invariant(a===t.length,"Both input and output ranges must be the same length","range-length"),1===a)return()=>t[0];if(2===a&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=createMixers(t,r,i),l=s.length,c=n=>{if(o&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const i=progress(e[r],e[r+1],n);return s[r](i)};return n?t=>c(clamp(e[0],e[a-1],t)):c}function fillOffset(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=progress(0,t,r);e.push(mixNumber$1(n,1,i))}}function defaultOffset(e){const t=[0];return fillOffset(t,e.length-1),t}function convertOffsetToTimes(e,t){return e.map(e=>e*t)}function defaultEasing(e,t){return e.map(()=>t||easeInOut).splice(0,e.length-1)}function keyframes({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=isEasingArray(r)?r.map(easingDefinitionToFunction):easingDefinitionToFunction(r),a={done:!1,value:t[0]},o=interpolate(convertOffsetToTimes(n&&n.length===t.length?n:defaultOffset(t),e),t,{ease:Array.isArray(i)?i:defaultEasing(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}spring.applyToOptions=e=>{const t=createGeneratorEasing(e,100,spring);return e.ease=t.ease,e.duration=secondsToMilliseconds(t.duration),e.type="keyframes",e};const isNotNull$1=e=>null!==e;function getFinalKeyframe$1(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(isNotNull$1),o=i<0||t&&"loop"!==n&&t%2==1?0:a.length-1;return o&&void 0!==r?r:a[o]}const transitionTypeMap={decay:inertia,inertia,tween:keyframes,keyframes,spring};function replaceTransitionType(e){"string"==typeof e.type&&(e.type=transitionTypeMap[e.type])}class WithPromise{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const percentToProgress=e=>e/100;class JSAnimation extends WithPromise{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var e,t;const{motionValue:n}=this.options;n&&n.updatedAt!==time.now()&&this.tick(time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(t=(e=this.options).onStop)||t.call(e))},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;replaceTransitionType(e);const{type:t=keyframes,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e;let{keyframes:o}=e;const s=t||keyframes;s!==keyframes&&"number"!=typeof o[0]&&(this.mixKeyframes=pipe(percentToProgress,mix(o[0],o[1])),o=[0,100]);const l=s({...e,keyframes:o});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=calcGeneratorDuration(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:m,type:h,onUpdate:p,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,x=n;if(u){const e=Math.min(this.currentTime,r)/o;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,u+1),!!(t%2)&&("reverse"===d?(n=1-n,m&&(n-=m/o)):"mirror"===d&&(x=a)),b=clamp(0,1,n)*o}const E=_?{done:!1,value:c[0]}:x.next(b);i&&(E.value=i(E.value));let{done:y}=E;!_&&null!==s&&(y=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&y);return T&&h!==inertia&&(E.value=getFinalKeyframe$1(c,this.options,f,this.speed)),p&&p(E.value),T&&this.finish(),E}then(e,t){return this.finished.then(e,t)}get duration(){return millisecondsToSeconds(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+millisecondsToSeconds(e)}get time(){return millisecondsToSeconds(this.currentTime)}set time(e){var t;e=secondsToMilliseconds(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),null==(t=this.driver)||t.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(time.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=millisecondsToSeconds(this.currentTime))}play(){var e,t;if(this.isStopped)return;const{driver:n=frameloopDriver,startTime:r}=this.options;this.driver||(this.driver=n(e=>this.tick(e))),null==(t=(e=this.options).onPlay)||t.call(e);const i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=r??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(time.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,t;this.notifyFinished(),this.teardown(),this.state="finished",null==(t=(e=this.options).onComplete)||t.call(e)}cancel(){var e,t;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(t=(e=this.options).onCancel)||t.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var t;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(t=this.driver)||t.stop(),e.observe(this)}}function fillWildcards(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const radToDeg=e=>180*e/Math.PI,rotate=e=>{const t=radToDeg(Math.atan2(e[1],e[0]));return rebaseAngle(t)},matrix2dParsers={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate,rotateZ:rotate,skewX:e=>radToDeg(Math.atan(e[1])),skewY:e=>radToDeg(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},rebaseAngle=e=>((e%=360)<0&&(e+=360),e),rotateZ=rotate,scaleX=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),scaleY=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),matrix3dParsers={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX,scaleY,scale:e=>(scaleX(e)+scaleY(e))/2,rotateX:e=>rebaseAngle(radToDeg(Math.atan2(e[6],e[5]))),rotateY:e=>rebaseAngle(radToDeg(Math.atan2(-e[2],e[0]))),rotateZ,rotate:rotateZ,skewX:e=>radToDeg(Math.atan(e[4])),skewY:e=>radToDeg(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function defaultTransformValue(e){return e.includes("scale")?1:0}function parseValueFromTransform(e,t){if(!e||"none"===e)return defaultTransformValue(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=matrix3dParsers,i=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=matrix2dParsers,i=t}if(!i)return defaultTransformValue(t);const a=r[t],o=i[1].split(",").map(convertTransformToNumber);return"function"==typeof a?a(o):o[a]}const readTransformValue=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return parseValueFromTransform(n,t)};function convertTransformToNumber(e){return parseFloat(e.trim())}const transformPropOrder=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],transformProps=new Set(transformPropOrder),isNumOrPxType=e=>e===number||e===px,transformKeys=new Set(["x","y","z"]),nonTranslationalTransformKeys=transformPropOrder.filter(e=>!transformKeys.has(e));function removeNonTranslationalTransform(e){const t=[];return nonTranslationalTransformKeys.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const positionalValues={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>parseValueFromTransform(t,"x"),y:(e,{transform:t})=>parseValueFromTransform(t,"y")};positionalValues.translateX=positionalValues.x,positionalValues.translateY=positionalValues.y;const toResolve=new Set;let isScheduled=!1,anyNeedsMeasurement=!1,isForced=!1;function measureAllKeyframes(){if(anyNeedsMeasurement){const e=Array.from(toResolve).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=removeNonTranslationalTransform(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(([t,n])=>{var r;null==(r=e.getValue(t))||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}anyNeedsMeasurement=!1,isScheduled=!1,toResolve.forEach(e=>e.complete(isForced)),toResolve.clear()}function readAllKeyframes(){toResolve.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(anyNeedsMeasurement=!0)})}function flushKeyframeResolvers(){isForced=!0,readAllKeyframes(),measureAllKeyframes(),isForced=!1}class KeyframeResolver{constructor(e,t,n,r,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(toResolve.add(this),isScheduled||(isScheduled=!0,frame.read(readAllKeyframes),frame.resolveKeyframes(measureAllKeyframes))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){const i=null==r?void 0:r.get(),a=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){const r=n.readValue(t,a);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=a),r&&void 0===i&&r.set(e[0])}fillWildcards(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),toResolve.delete(this)}cancel(){"scheduled"===this.state&&(toResolve.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const isCSSVar=e=>e.startsWith("--");function setStyle(e,t,n){isCSSVar(t)?e.style.setProperty(t,n):e.style[t]=n}const supportsScrollTimeline=memo(()=>void 0!==window.ScrollTimeline),supportsFlags={};function memoSupports(e,t){const n=memo(e);return()=>supportsFlags[t]??n()}const supportsLinearEasing=memoSupports(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cubicBezierAsString=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,supportedWaapiEasing={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function mapEasingToNativeEasing(e,t){if(e)return"function"==typeof e?supportsLinearEasing()?generateLinearEasing(e,t):"ease-out":isBezierDefinition(e)?cubicBezierAsString(e):Array.isArray(e)?e.map(e=>mapEasingToNativeEasing(e,t)||supportedWaapiEasing.easeOut):supportedWaapiEasing[e]}function startWaapiAnimation(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=mapEasingToNativeEasing(s,i);Array.isArray(d)&&(u.easing=d);const m={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:"reverse"===o?"alternate":"normal"};return c&&(m.pseudoElement=c),e.animate(u,m)}function isGenerator(e){return"function"==typeof e&&"applyToOptions"in e}function applyGeneratorOptions({type:e,...t}){return isGenerator(e)&&supportsLinearEasing()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class NativeAnimation extends WithPromise{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,invariant("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=applyGeneratorOptions(e);this.animation=startWaapiAnimation(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const e=getFinalKeyframe$1(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):setStyle(t,n,e),this.animation.cancel()}null==s||s(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,t;null==(t=(e=this.animation).finish)||t.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"===e||"finished"===e||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,t;this.isPseudoElement||null==(t=(e=this.animation).commitStyles)||t.call(e)}get duration(){var e,t;const n=(null==(t=null==(e=this.animation.effect)?void 0:e.getComputedTiming)?void 0:t.call(e).duration)||0;return millisecondsToSeconds(Number(n))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+millisecondsToSeconds(e)}get time(){return millisecondsToSeconds(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=secondsToMilliseconds(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){var n;return this.allowFlatten&&(null==(n=this.animation.effect)||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&supportsScrollTimeline()?(this.animation.timeline=e,noop):t(this)}}const unsupportedEasingFunctions={anticipate,backInOut,circInOut};function isUnsupportedEase(e){return e in unsupportedEasingFunctions}function replaceStringEasing(e){"string"==typeof e.ease&&isUnsupportedEase(e.ease)&&(e.ease=unsupportedEasingFunctions[e.ease])}const sampleDelta=10;class NativeAnimationExtended extends NativeAnimation{constructor(e){replaceStringEasing(e),replaceTransitionType(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const o=new JSAnimation({...a,autoplay:!1}),s=secondsToMilliseconds(this.finishedTime??this.time);t.setWithVelocity(o.sample(s-sampleDelta).value,o.sample(s).value,sampleDelta),o.stop()}}const isAnimatable=(e,t)=>"zIndex"!==t&&!("number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!complex.test(e)&&"0"!==e||e.startsWith("url(")));function hasKeyframesChanged(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function canAnimate(e,t,n,r){const i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;const a=e[e.length-1],o=isAnimatable(i,t),s=isAnimatable(a,t);return warning(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,"value-not-animatable"),!(!o||!s)&&(hasKeyframesChanged(e)||("spring"===n||isGenerator(n))&&r)}function makeAnimationInstant(e){e.duration=0,e.type="keyframes"}const acceleratedValues=new Set(["opacity","clipPath","filter","transform"]),supportsWaapi=memo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function supportsBrowserAnimation(e){var t;const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:s}=e;if(!((null==(t=null==n?void 0:n.owner)?void 0:t.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return supportsWaapi()&&r&&acceleratedValues.has(r)&&("transform"!==r||!c)&&!l&&!i&&"mirror"!==a&&0!==o&&"inertia"!==s}const MAX_RESOLVE_DELAY=40;class AsyncMotionValueAnimation extends WithPromise{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a="loop",keyframes:o,name:s,motionValue:l,element:c,...u}){var d;super(),this.stop=()=>{var e,t;this._animation&&(this._animation.stop(),null==(e=this.stopTimeline)||e.call(this)),null==(t=this.keyframeResolver)||t.cancel()},this.createdAt=time.now();const m={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:l,element:c,...u},h=(null==c?void 0:c.KeyframeResolver)||KeyframeResolver;this.keyframeResolver=new h(o,(e,t,n)=>this.onKeyframesResolved(e,t,m,!n),s,l,c),null==(d=this.keyframeResolver)||d.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;const{name:i,type:a,velocity:o,delay:s,isHandoff:l,onUpdate:c}=n;this.resolvedAt=time.now(),canAnimate(e,i,a,o)||((MotionGlobalConfig.instantAnimations||!s)&&(null==c||c(getFinalKeyframe$1(e,n,t))),e[0]=e[e.length-1],makeAnimationInstant(n),n.repeat=0);const u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>MAX_RESOLVE_DELAY?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&supportsBrowserAnimation(u)?new NativeAnimationExtended({...u,element:u.motionValue.owner.current}):new JSAnimation(u);d.finished.then(()=>this.notifyFinished()).catch(noop),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||(null==(e=this.keyframeResolver)||e.resume(),flushKeyframeResolvers()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),null==(e=this.keyframeResolver)||e.cancel()}}const splitCSSVariableRegex=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function parseCSSVariable(e){const t=splitCSSVariableRegex.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const maxDepth=4;function getVariableValue(e,t,n=1){invariant(n<=maxDepth,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=parseCSSVariable(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const e=a.trim();return isNumericalString(e)?parseFloat(e):e}return isCSSVariableToken(i)?getVariableValue(i,t,n+1):i}function getValueTransition(e,t){return(null==e?void 0:e[t])??(null==e?void 0:e.default)??e}const positionalKeys=new Set(["width","height","top","left","right","bottom",...transformPropOrder]),auto={test:e=>"auto"===e,parse:e=>e},testValueType=e=>t=>t.test(e),dimensionValueTypes=[number,px,percent,degrees,vw,vh,auto],findDimensionValueType=e=>dimensionValueTypes.find(testValueType(e));function isNone(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||isZeroValueString(e)}const maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(floatRegex)||[];if(!r)return e;const i=n.replace(r,"");let a=maxDefaults.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const functionRegex=/\b([a-z-]*)\(.*?\)/gu,filter={...complex,getAnimatableNone:e=>{const t=e.match(functionRegex);return t?t.map(applyDefaultFilter).join(" "):e}},int={...number,transform:Math.round},transformValueTypes={rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale,scaleX:scale,scaleY:scale,scaleZ:scale,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px},numberValueTypes={borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,backgroundPositionX:px,backgroundPositionY:px,...transformValueTypes,zIndex:int,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int},defaultValueTypes={...numberValueTypes,color,backgroundColor:color,outlineColor:color,fill:color,stroke:color,borderColor:color,borderTopColor:color,borderRightColor:color,borderBottomColor:color,borderLeftColor:color,filter,WebkitFilter:filter},getDefaultValueType=e=>defaultValueTypes[e];function getAnimatableNone(e,t){let n=getDefaultValueType(e);return n!==filter&&(n=complex),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const invalidTemplates=new Set(["auto","none","0"]);function makeNoneKeyframesAnimatable(e,t,n){let r,i=0;for(;i<e.length&&!r;){const t=e[i];"string"==typeof t&&!invalidTemplates.has(t)&&analyseComplexValue(t).values.length&&(r=e[i]),i++}if(r&&n)for(const i of t)e[i]=getAnimatableNone(n,r)}class DOMKeyframesResolver extends KeyframeResolver{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),isCSSVariableToken(r))){const i=getVariableValue(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!positionalKeys.has(n)||2!==e.length)return;const[r,i]=e,a=findDimensionValueType(r),o=findDimensionValueType(i);if(a!==o)if(isNumOrPxType(a)&&isNumOrPxType(o))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else positionalValues[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||isNone(e[t]))&&n.push(t);n.length&&makeNoneKeyframesAnimatable(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=positionalValues[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,o=r[a];r[a]=positionalValues[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),null!=(e=this.removedTransforms)&&e.length&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}function resolveElements(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document;const r=(null==n?void 0:n[e])??t.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}const getValueAsType=(e,t)=>t&&"number"==typeof e?t.transform(e):e;function isHTMLElement(e){return isObject(e)&&"offsetHeight"in e}const MAX_VELOCITY_DELTA=30,isFloat=e=>!isNaN(parseFloat(e));class MotionValue{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{var t;const n=time.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(null==(t=this.events.change)||t.notify(this.current),this.dependents))for(const e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=time.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=isFloat(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new SubscriptionManager);const n=this.events[e].add(t);return"change"===e?()=>{n(),frame.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;null==(e=this.events.change)||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=time.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>MAX_VELOCITY_DELTA)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,MAX_VELOCITY_DELTA);return velocityPerSecond(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,t;null==(e=this.dependents)||e.clear(),null==(t=this.events.destroy)||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function motionValue(e,t){return new MotionValue(e,t)}const{schedule:microtask}=createRenderBatcher(queueMicrotask,!1),isDragging={x:!1,y:!1};function isDragActive(){return isDragging.x||isDragging.y}function setDragLock(e){return"x"===e||"y"===e?isDragging[e]?null:(isDragging[e]=!0,()=>{isDragging[e]=!1}):isDragging.x||isDragging.y?null:(isDragging.x=isDragging.y=!0,()=>{isDragging.x=isDragging.y=!1})}function setupGesture(e,t){const n=resolveElements(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function isValidHover(e){return!("touch"===e.pointerType||isDragActive())}function hover(e,t,n={}){const[r,i,a]=setupGesture(e,n),o=e=>{if(!isValidHover(e))return;const{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;const a=e=>{isValidHover(e)&&(r(e),n.removeEventListener("pointerleave",a))};n.addEventListener("pointerleave",a,i)};return r.forEach(e=>{e.addEventListener("pointerenter",o,i)}),a}const isNodeOrChild=(e,t)=>!!t&&(e===t||isNodeOrChild(e,t.parentElement)),isPrimaryPointer=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,focusableElements=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function isElementKeyboardAccessible(e){return focusableElements.has(e.tagName)||-1!==e.tabIndex}const isPressing=new WeakSet;function filterEvents(e){return t=>{"Enter"===t.key&&e(t)}}function firePointerEvent(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const enableKeyboardPress=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=filterEvents(()=>{if(isPressing.has(n))return;firePointerEvent(n,"down");const e=filterEvents(()=>{firePointerEvent(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>firePointerEvent(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function isValidPressEvent(e){return isPrimaryPointer(e)&&!isDragActive()}function press(e,t,n={}){const[r,i,a]=setupGesture(e,n),o=e=>{const r=e.currentTarget;if(!isValidPressEvent(e))return;isPressing.add(r);const a=t(r,e),o=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),isPressing.has(r)&&isPressing.delete(r),isValidPressEvent(e)&&"function"==typeof a&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||isNodeOrChild(r,e.target))},l=e=>{o(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",o,i),isHTMLElement(e)&&(e.addEventListener("focus",e=>enableKeyboardPress(e,i)),!isElementKeyboardAccessible(e)&&!e.hasAttribute("tabindex")&&(e.tabIndex=0))}),a}function isSVGElement(e){return isObject(e)&&"ownerSVGElement"in e}function isSVGSVGElement(e){return isSVGElement(e)&&"svg"===e.tagName}const isMotionValue=e=>!(!e||!e.getVelocity),valueTypes=[...dimensionValueTypes,color,complex],findValueType=e=>valueTypes.find(testValueType(e)),MotionConfigContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function usePresence(e=!0){const t=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(PresenceContext);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=(0,react__WEBPACK_IMPORTED_MODULE_0__.useId)();(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{if(e)return i(a)},[e]);const o=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const LazyContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({strict:!1}),featureProps={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},featureDefinitions={};for(const e in featureProps)featureDefinitions[e]={isEnabled:t=>featureProps[e].some(e=>!!t[e])};function loadFeatures(e){for(const t in e)featureDefinitions[t]={...featureDefinitions[t],...e[t]}}const validMotionProps=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function isValidMotionProp(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||validMotionProps.has(e)}let shouldForward=e=>!isValidMotionProp(e);function loadExternalIsValidProp(e){"function"==typeof e&&(shouldForward=t=>t.startsWith("on")?!isValidMotionProp(t):e(t))}try{loadExternalIsValidProp(__webpack_require__(40439).A)}catch{}function filterProps(e,t,n){const r={};for(const i in e)"values"===i&&"object"==typeof e.values||(shouldForward(i)||!0===n&&isValidMotionProp(i)||!t&&!isValidMotionProp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const MotionContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({});function isAnimationControls(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function isVariantLabel(e){return"string"==typeof e||Array.isArray(e)}const variantPriorityOrder=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],variantProps=["initial",...variantPriorityOrder];function isControllingVariants(e){return isAnimationControls(e.animate)||variantProps.some(t=>isVariantLabel(e[t]))}function isVariantNode(e){return!(!isControllingVariants(e)&&!e.variants)}function getCurrentTreeVariants(e,t){if(isControllingVariants(e)){const{initial:t,animate:n}=e;return{initial:!1===t||isVariantLabel(t)?t:void 0,animate:isVariantLabel(n)?n:void 0}}return!1!==e.inherit?t:{}}function useCreateMotionContext(e){const{initial:t,animate:n}=getCurrentTreeVariants(e,(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(MotionContext));return(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>({initial:t,animate:n}),[variantLabelsAsDependency(t),variantLabelsAsDependency(n)])}function variantLabelsAsDependency(e){return Array.isArray(e)?e.join(" "):e}const scaleCorrectors={};function addScaleCorrector(e){for(const t in e)scaleCorrectors[t]=e[t],isCSSVariableName(t)&&(scaleCorrectors[t].isCSSVariable=!0)}function isForcedMotionValue(e,{layout:t,layoutId:n}){return transformProps.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!scaleCorrectors[e]||"opacity"===e)}const translateAlias={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},numTransforms=transformPropOrder.length;function buildTransform(e,t,n){let r="",i=!0;for(let a=0;a<numTransforms;a++){const o=transformPropOrder[a],s=e[o];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(o.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=getValueAsType(s,numberValueTypes[o]);l||(i=!1,r+=`${translateAlias[o]||o}(${e}) `),n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function buildHTMLStyles(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const e in t){const n=t[e];if(transformProps.has(e))o=!0;else if(isCSSVariableName(e))i[e]=n;else{const t=getValueAsType(n,numberValueTypes[e]);e.startsWith("origin")?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=buildTransform(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}const createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(e,t,n){for(const r in t)!isMotionValue(t[r])&&!isForcedMotionValue(r,n)&&(e[r]=t[r])}function useInitialMotionValues({transformTemplate:e},t){return(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>{const n=createHtmlRenderState();return buildHTMLStyles(n,t,e),Object.assign({},n.vars,n.style)},[t])}function useStyle(e,t){const n={};return copyRawValuesOnly(n,e.style||{},e),Object.assign(n,useInitialMotionValues(e,t)),n}function useHTMLProps(e,t){const n={},r=useStyle(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const dashKeys={offset:"stroke-dashoffset",array:"stroke-dasharray"},camelKeys={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGPath(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?dashKeys:camelKeys;e[a.offset]=px.transform(-r);const o=px.transform(t),s=px.transform(n);e[a.array]=`${o} ${s}`}function buildSVGAttrs(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,c,u){if(buildHTMLStyles(e,s,c),l)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:d,style:m}=e;d.transform&&(m.transform=d.transform,delete d.transform),(m.transform||d.transformOrigin)&&(m.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),m.transform&&(m.transformBox=(null==u?void 0:u.transformBox)??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&buildSVGPath(d,i,a,o,!1)}const createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),isSVGTag=e=>"string"==typeof e&&"svg"===e.toLowerCase();function useSVGProps(e,t,n,r){const i=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>{const n=createSvgRenderState();return buildSVGAttrs(n,t,isSVGTag(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};copyRawValuesOnly(t,e.style,e),i.style={...t,...i.style}}return i}const lowercaseSVGElements=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function isSVGComponent(e){return"string"==typeof e&&!e.includes("-")&&!!(lowercaseSVGElements.indexOf(e)>-1||/[A-Z]/u.test(e))}function useRender(e,t,n,{latestValues:r},i,a=!1){const o=(isSVGComponent(e)?useSVGProps:useHTMLProps)(t,r,i,e),s=filterProps(t,"string"==typeof e,a),l=e!==react__WEBPACK_IMPORTED_MODULE_0__.Fragment?{...s,...o,ref:n}:{},{children:c}=t,u=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>isMotionValue(c)?c.get():c,[c]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(e,{...l,children:u})}function getValueState(e){const t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function resolveVariantFromProps(e,t,n,r){if("function"==typeof t){const[i,a]=getValueState(r);t=t(void 0!==n?n:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[i,a]=getValueState(r);t=t(void 0!==n?n:e.custom,i,a)}return t}function resolveMotionValue(e){return isMotionValue(e)?e.get():e}function makeState({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:makeLatestValues(n,r,i,e),renderState:t()}}function makeLatestValues(e,t,n,r){const i={},a=r(e,{});for(const e in a)i[e]=resolveMotionValue(a[e]);let{initial:o,animate:s}=e;const l=isControllingVariants(e),c=isVariantNode(e);t&&c&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===o;const d=u?s:o;if(d&&"boolean"!=typeof d&&!isAnimationControls(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=resolveVariantFromProps(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(i[e]=t)}for(const t in e)i[t]=e[t]}}}return i}const makeUseVisualState=e=>(t,n)=>{const r=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(MotionContext),i=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(PresenceContext),a=()=>makeState(e,t,r,i);return n?a():useConstant(a)};function scrapeMotionValuesFromProps$1(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(isMotionValue(i[o])||t.style&&isMotionValue(t.style[o])||isForcedMotionValue(o,e)||void 0!==(null==(r=null==n?void 0:n.getValue(o))?void 0:r.liveStyle))&&(a[o]=i[o]);return a}const useHTMLVisualState=makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps$1,createRenderState:createHtmlRenderState});function scrapeMotionValuesFromProps(e,t,n){const r=scrapeMotionValuesFromProps$1(e,t,n);for(const n in e)(isMotionValue(e[n])||isMotionValue(t[n]))&&(r[-1!==transformPropOrder.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}const useSVGVisualState=makeUseVisualState({scrapeMotionValuesFromProps,createRenderState:createSvgRenderState}),motionComponentSymbol=Symbol.for("motionComponentSymbol");function isRefObject(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function useMotionRef(e,t,n){return(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):isRefObject(n)&&(n.current=r))},[t])}const camelToDash=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),optimizedAppearDataId="framerAppearId",optimizedAppearDataAttribute="data-"+camelToDash(optimizedAppearDataId),SwitchLayoutGroupContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({});function useVisualElement(e,t,n,r,i){var a,o;const{visualElement:s}=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(MotionContext),l=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(LazyContext),c=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(PresenceContext),u=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(MotionConfigContext).reducedMotion,d=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:u}));const m=d.current,h=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(SwitchLayoutGroupContext);m&&!m.projection&&i&&("html"===m.type||"svg"===m.type)&&createProjectionNode$1(d.current,n,i,h);const p=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!1);(0,react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect)(()=>{m&&p.current&&m.update(n,c)});const f=n[optimizedAppearDataAttribute],g=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!!f&&!(null!=(a=window.MotionHandoffIsComplete)&&a.call(window,f))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,f)));return useIsomorphicLayoutEffect(()=>{m&&(p.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),g.current&&m.animationState&&m.animationState.animateChanges())}),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{m&&(!g.current&&m.animationState&&m.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,f)}),g.current=!1),m.enteringChildren=void 0)}),m}function createProjectionNode$1(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:getClosestProjectingNode(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&isRefObject(s),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function getClosestProjectingNode(e){if(e)return!1!==e.options.allowProjection?e.projection:getClosestProjectingNode(e.parent)}function createMotionComponent(e,{forwardMotionProps:t=!1}={},n,r){n&&loadFeatures(n);const i=isSVGComponent(e)?useSVGVisualState:useHTMLVisualState;function a(a,o){let s;const l={...(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(MotionConfigContext),...a,layoutId:useLayoutId(a)},{isStatic:c}=l,u=useCreateMotionContext(a),d=i(a,c);if(!c&&isBrowser){useStrictMode(l,n);const t=getProjectionFunctionality(l);s=t.MeasureLayout,u.visualElement=useVisualElement(e,d,l,r,t.ProjectionNode)}return jsxRuntimeExports.jsxs(MotionContext.Provider,{value:u,children:[s&&u.visualElement?jsxRuntimeExports.jsx(s,{visualElement:u.visualElement,...l}):null,useRender(e,a,useMotionRef(d,u.visualElement,o),d,c,t)]})}a.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;const o=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(a);return o[motionComponentSymbol]=e,o}function useLayoutId({layoutId:e}){const t=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(LayoutGroupContext).id;return t&&void 0!==e?t+"-"+e:e}function useStrictMode(e,t){(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(LazyContext).strict}function getProjectionFunctionality(e){const{drag:t,layout:n}=featureDefinitions;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:null!=t&&t.isEnabled(e)||null!=n&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function createMotionProxy(e,t){if(typeof Proxy>"u")return createMotionComponent;const n=new Map,r=(n,r)=>createMotionComponent(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>"create"===a?r:(n.has(a)||n.set(a,createMotionComponent(a,void 0,e,t)),n.get(a))})}function convertBoundingBoxToBox({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function convertBoxToBoundingBox({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function transformBoxPoints(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function isIdentityScale(e){return void 0===e||1===e}function hasScale({scale:e,scaleX:t,scaleY:n}){return!isIdentityScale(e)||!isIdentityScale(t)||!isIdentityScale(n)}function hasTransform(e){return hasScale(e)||has2DTranslate(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function has2DTranslate(e){return is2DTranslate(e.x)||is2DTranslate(e.y)}function is2DTranslate(e){return e&&"0%"!==e}function scalePoint(e,t,n){return n+t*(e-n)}function applyPointDelta(e,t,n,r,i){return void 0!==i&&(e=scalePoint(e,i,r)),scalePoint(e,n,r)+t}function applyAxisDelta(e,t=0,n=1,r,i){e.min=applyPointDelta(e.min,t,n,r,i),e.max=applyPointDelta(e.max,t,n,r,i)}function applyBoxDelta(e,{x:t,y:n}){applyAxisDelta(e.x,t.translate,t.scale,t.originPoint),applyAxisDelta(e.y,n.translate,n.scale,n.originPoint)}const TREE_SCALE_SNAP_MIN=.999999999999,TREE_SCALE_SNAP_MAX=1.0000000000001;function applyTreeDeltas(e,t,n,r=!1){const i=n.length;if(!i)return;let a,o;t.x=t.y=1;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;const{visualElement:i}=a.options;i&&i.props.style&&"contents"===i.props.style.display||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&transformBox(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,applyBoxDelta(e,o)),r&&hasTransform(a.latestValues)&&transformBox(e,a.latestValues))}t.x<TREE_SCALE_SNAP_MAX&&t.x>TREE_SCALE_SNAP_MIN&&(t.x=1),t.y<TREE_SCALE_SNAP_MAX&&t.y>TREE_SCALE_SNAP_MIN&&(t.y=1)}function translateAxis(e,t){e.min=e.min+t,e.max=e.max+t}function transformAxis(e,t,n,r,i=.5){applyAxisDelta(e,t,n,mixNumber$1(e.min,e.max,i),r)}function transformBox(e,t){transformAxis(e.x,t.x,t.scaleX,t.scale,t.originX),transformAxis(e.y,t.y,t.scaleY,t.scale,t.originY)}function measureViewportBox(e,t){return convertBoundingBoxToBox(transformBoxPoints(e.getBoundingClientRect(),t))}function measurePageBox(e,t,n){const r=measureViewportBox(e,n),{scroll:i}=t;return i&&(translateAxis(r.x,i.offset.x),translateAxis(r.y,i.offset.y)),r}const createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()}),prefersReducedMotion={current:null},hasReducedMotionListener={current:!1};function initPrefersReducedMotion(){if(hasReducedMotionListener.current=!0,isBrowser)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>prefersReducedMotion.current=e.matches;e.addEventListener("change",t),t()}else prefersReducedMotion.current=!1}const visualElementStore=new WeakMap;function updateMotionValuesFromProps(e,t,n){for(const r in t){const i=t[r],a=n[r];if(isMotionValue(i))e.addValue(r,i);else if(isMotionValue(a))e.addValue(r,motionValue(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{const t=e.getStaticValue(r);e.addValue(r,motionValue(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}const propEventHandlers=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class VisualElement{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=time.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,frame.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=isControllingVariants(t),this.isVariantNode=isVariantNode(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!(!e||!e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==s[e]&&isMotionValue(t)&&t.set(s[e])}}mount(e){var t;this.current=e,visualElementStore.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),hasReducedMotionListener.current||initPrefersReducedMotion(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||prefersReducedMotion.current),null==(t=this.parent)||t.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),cancelFrame(this.notifyUpdate),cancelFrame(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null==(e=this.parent)||e.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=transformProps.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&frame.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in featureDefinitions){const t=featureDefinitions[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<propEventHandlers.length;t++){const n=propEventHandlers[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=updateMotionValuesFromProps(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=motionValue(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(isNumericalString(n)||isZeroValueString(n))?n=parseFloat(n):!findValueType(n)&&complex.test(t)&&(n=getAnimatableNone(e,t)),this.setBaseTarget(e,isMotionValue(n)?n.get():n)),isMotionValue(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const i=resolveVariantFromProps(this.props,n,null==(t=this.presenceContext)?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||isMotionValue(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new SubscriptionManager),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){microtask.render(this.render)}}class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;isMotionValue(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function renderHTML(e,{style:t,vars:n},r,i){const a=e.style;let o;for(o in t)a[o]=t[o];for(o in null==i||i.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function getComputedStyle$1(e){return window.getComputedStyle(e)}class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=renderHTML}readValueFromInstance(e,t){var n;if(transformProps.has(t))return null!=(n=this.projection)&&n.isProjecting?defaultTransformValue(t):readTransformValue(e,t);{const n=getComputedStyle$1(e),r=(isCSSVariableName(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return measureViewportBox(e,t)}build(e,t,n){buildHTMLStyles(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return scrapeMotionValuesFromProps$1(e,t,n)}}const camelCaseAttributes=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function renderSVG(e,t,n,r){renderHTML(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(camelCaseAttributes.has(n)?n:camelToDash(n),t.attrs[n])}class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=createBox}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(transformProps.has(t)){const e=getDefaultValueType(t);return e&&e.default||0}return t=camelCaseAttributes.has(t)?t:camelToDash(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return scrapeMotionValuesFromProps(e,t,n)}build(e,t,n){buildSVGAttrs(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){renderSVG(e,t,n,r)}mount(e){this.isSVGTag=isSVGTag(e.tagName),super.mount(e)}}const createDomVisualElement=(e,t)=>isSVGComponent(e)?new SVGVisualElement(t):new HTMLVisualElement(t,{allowProjection:e!==react__WEBPACK_IMPORTED_MODULE_0__.Fragment});function resolveVariant(e,t,n){const r=e.getProps();return resolveVariantFromProps(r,t,void 0!==n?n:r.custom,e)}const isKeyframesTarget=e=>Array.isArray(e);function setMotionValue(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,motionValue(n))}function resolveFinalValueInKeyframes(e){return isKeyframesTarget(e)?e[e.length-1]||0:e}function setTarget(e,t){const n=resolveVariant(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const t in a)setMotionValue(e,t,resolveFinalValueInKeyframes(a[t]))}function isWillChangeMotionValue(e){return!(!isMotionValue(e)||!e.add)}function addValueToWillChange(e,t){const n=e.getValue("willChange");if(isWillChangeMotionValue(n))return n.add(t);if(!n&&MotionGlobalConfig.WillChange){const n=new MotionGlobalConfig.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function getOptimisedAppearId(e){return e.props[optimizedAppearDataAttribute]}const isNotNull=e=>null!==e;function getFinalKeyframe(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(isNotNull);return i[t&&"loop"!==n&&t%2==1?0:i.length-1]}const underDampedSpring={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),keyframesTransition={type:"keyframes",duration:.8},ease={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(e,{keyframes:t})=>t.length>2?keyframesTransition:transformProps.has(e)?e.startsWith("scale")?criticallyDampedSpring(t[1]):underDampedSpring:ease;function isTransitionDefined({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const animateMotionValue=(e,t,n,r={},i,a)=>o=>{const s=getValueTransition(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c-=secondsToMilliseconds(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};isTransitionDefined(s)||Object.assign(u,getDefaultTransition(e,u)),u.duration&&(u.duration=secondsToMilliseconds(u.duration)),u.repeatDelay&&(u.repeatDelay=secondsToMilliseconds(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(makeAnimationInstant(u),0===u.delay&&(d=!0)),(MotionGlobalConfig.instantAnimations||MotionGlobalConfig.skipAnimations)&&(d=!0,makeAnimationInstant(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&void 0!==t.get()){const e=getFinalKeyframe(u.keyframes,s);if(void 0!==e)return void frame.update(()=>{u.onUpdate(e),u.onComplete()})}return s.isSync?new JSAnimation(u):new AsyncMotionValueAnimation(u)};function shouldBlockAnimation({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function animateTarget(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const t in s){const r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(void 0===i||c&&shouldBlockAnimation(c,t))continue;const o={delay:n,...getValueTransition(a||{},t)},u=r.get();if(void 0!==u&&!r.isAnimating&&!Array.isArray(i)&&i===u&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){const n=getOptimisedAppearId(e);if(n){const e=window.MotionHandoffAnimation(n,t,frame);null!==e&&(o.startTime=e,d=!0)}}addValueToWillChange(e,t),r.start(animateMotionValue(t,r,i,e.shouldReduceMotion&&positionalKeys.has(t)?{type:!1}:o,e,d));const m=r.animation;m&&l.push(m)}return o&&Promise.all(l).then(()=>{frame.update(()=>{o&&setTarget(e,o)})}),l}function calcChildStagger(e,t,n,r=0,i=1){const a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return"function"==typeof n?n(a,o):1===i?a*r:s-a*r}function animateVariant(e,t,n={}){var r;const i=resolveVariant(e,t,"exit"===n.type?null==(r=e.presenceContext)?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(animateTarget(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return animateChildren(e,t,r,i,o,s,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[e,t]="beforeChildren"===l?[o,s]:[s,o];return e().then(()=>t())}return Promise.all([o(),s(n.delay)])}function animateChildren(e,t,n=0,r=0,i=0,a=1,o){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(animateVariant(l,t,{...o,delay:n+("function"==typeof r?0:r)+calcChildStagger(e.variantChildren,l,r,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function animateVisualElement(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map(t=>animateVariant(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=animateVariant(e,t,n);else{const i="function"==typeof t?resolveVariant(e,t,n.custom):t;r=Promise.all(animateTarget(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function shallowCompare(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const numVariantProps=variantProps.length;function getVariantContext(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&getVariantContext(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<numVariantProps;n++){const r=variantProps[n],i=e.props[r];(isVariantLabel(i)||!1===i)&&(t[r]=i)}return t}const reversePriorityOrder=[...variantPriorityOrder].reverse(),numAnimationTypes=variantPriorityOrder.length;function animateList(e){return t=>Promise.all(t.map(({animation:t,options:n})=>animateVisualElement(e,t,n)))}function createAnimationState(e){let t=animateList(e),n=createState(),r=!0;const i=t=>(n,r)=>{var i;const a=resolveVariant(e,r,"exit"===t?null==(i=e.presenceContext)?void 0:i.custom:void 0);if(a){const{transition:e,transitionEnd:t,...r}=a;n={...n,...r,...t}}return n};function a(a){const{props:o}=e,s=getVariantContext(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<numAnimationTypes;t++){const m=reversePriorityOrder[t],h=n[m],p=void 0!==o[m]?o[m]:s[m],f=isVariantLabel(p),g=m===a?h.isActive:null;!1===g&&(d=t);let _=p===s[m]&&p!==o[m]&&f;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),h.protectedKeys={...u},!h.isActive&&null===g||!p&&!h.prevProp||isAnimationControls(p)||"boolean"==typeof p)continue;const b=checkVariantsDidChange(h.prevProp,p);let x=b||m===a&&h.isActive&&!_&&f||t>d&&f,E=!1;const y=Array.isArray(p)?p:[p];let T=y.reduce(i(m),{});!1===g&&(T={});const{prevResolvedValues:v={}}=h,S={...v,...T},w=t=>{x=!0,c.has(t)&&(E=!0,c.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in S){const t=T[e],n=v[e];if(u.hasOwnProperty(e))continue;let r=!1;r=isKeyframesTarget(t)&&isKeyframesTarget(n)?!shallowCompare(t,n):t!==n,r?null!=t?w(e):c.add(e):void 0!==t&&c.has(e)?w(e):h.protectedKeys[e]=!0}h.prevProp=p,h.prevResolvedValues=T,h.isActive&&(u={...u,...T}),r&&e.blockInitialAnimation&&(x=!1);const k=_&&b;x&&(!k||E)&&l.push(...y.map(t=>{const n={type:m};if("string"==typeof t&&r&&!k&&e.manuallyAnimateOnMount&&e.parent){const{parent:r}=e,i=resolveVariant(r,t);if(r.enteringChildren&&i){const{delayChildren:t}=i.transition||{};n.delay=calcChildStagger(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){const t={};if("boolean"!=typeof o.initial){const n=resolveVariant(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{const r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let m=!!l.length;return r&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(l):Promise.resolve()}return{animateChanges:a,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();null==(i=e.variantChildren)||i.forEach(e=>{var n;return null==(n=e.animationState)?void 0:n.setActive(t,r)}),n[t].isActive=r;const o=a(t);for(const e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=createState()}}}function checkVariantsDidChange(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!shallowCompare(t,e)}function createTypeState(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}class Feature{constructor(e){this.isMounted=!1,this.node=e}update(){}}class AnimationFeature extends Feature{constructor(e){super(e),e.animationState||(e.animationState=createAnimationState(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();isAnimationControls(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}}let id$1=0;class ExitAnimationFeature extends Feature{constructor(){super(...arguments),this.id=id$1++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const animations={animation:{Feature:AnimationFeature},exit:{Feature:ExitAnimationFeature}};function addDomEvent(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function extractEventInfo(e){return{point:{x:e.pageX,y:e.pageY}}}const addPointerInfo=e=>t=>isPrimaryPointer(t)&&e(t,extractEventInfo(t));function addPointerEvent(e,t,n,r){return addDomEvent(e,t,addPointerInfo(n),r)}const SCALE_PRECISION=1e-4,SCALE_MIN=1-SCALE_PRECISION,SCALE_MAX=1+SCALE_PRECISION,TRANSLATE_PRECISION=.01,TRANSLATE_MIN=0-TRANSLATE_PRECISION,TRANSLATE_MAX=0+TRANSLATE_PRECISION;function calcLength(e){return e.max-e.min}function isNear(e,t,n){return Math.abs(e-t)<=n}function calcAxisDelta(e,t,n,r=.5){e.origin=r,e.originPoint=mixNumber$1(t.min,t.max,e.origin),e.scale=calcLength(n)/calcLength(t),e.translate=mixNumber$1(n.min,n.max,e.origin)-e.originPoint,(e.scale>=SCALE_MIN&&e.scale<=SCALE_MAX||isNaN(e.scale))&&(e.scale=1),(e.translate>=TRANSLATE_MIN&&e.translate<=TRANSLATE_MAX||isNaN(e.translate))&&(e.translate=0)}function calcBoxDelta(e,t,n,r){calcAxisDelta(e.x,t.x,n.x,r?r.originX:void 0),calcAxisDelta(e.y,t.y,n.y,r?r.originY:void 0)}function calcRelativeAxis(e,t,n){e.min=n.min+t.min,e.max=e.min+calcLength(t)}function calcRelativeBox(e,t,n){calcRelativeAxis(e.x,t.x,n.x),calcRelativeAxis(e.y,t.y,n.y)}function calcRelativeAxisPosition(e,t,n){e.min=t.min-n.min,e.max=e.min+calcLength(t)}function calcRelativePosition(e,t,n){calcRelativeAxisPosition(e.x,t.x,n.x),calcRelativeAxisPosition(e.y,t.y,n.y)}function eachAxis(e){return[e("x"),e("y")]}const getContextWindow=({current:e})=>e?e.ownerDocument.defaultView:null,distance=(e,t)=>Math.abs(e-t);function distance2D(e,t){const n=distance(e.x,t.x),r=distance(e.y,t.y);return Math.sqrt(n**2+r**2)}class PanSession{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=getPanInfo(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=distance2D(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;const{point:r}=e,{timestamp:i}=frameData;this.history.push({...r,timestamp:i});const{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=transformPoint(t,this.transformPagePoint),frame.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const a=getPanInfo("pointercancel"===e.type?this.lastMoveEventInfo:transformPoint(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!isPrimaryPointer(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;const o=transformPoint(extractEventInfo(e),this.transformPagePoint),{point:s}=o,{timestamp:l}=frameData;this.history=[{...s,timestamp:l}];const{onSessionStart:c}=t;c&&c(e,getPanInfo(o,this.history)),this.removeListeners=pipe(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),cancelFrame(this.updatePoint)}}function transformPoint(e,t){return t?{point:t(e.point)}:e}function subtractPoint(e,t){return{x:e.x-t.x,y:e.y-t.y}}function getPanInfo({point:e},t){return{point:e,delta:subtractPoint(e,lastDevicePoint(t)),offset:subtractPoint(e,startDevicePoint(t)),velocity:getVelocity(t,.1)}}function startDevicePoint(e){return e[0]}function lastDevicePoint(e){return e[e.length-1]}function getVelocity(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=lastDevicePoint(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>secondsToMilliseconds(t)));)n--;if(!r)return{x:0,y:0};const a=millisecondsToSeconds(i.timestamp-r.timestamp);if(0===a)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function applyConstraints(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?mixNumber$1(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?mixNumber$1(n,e,r.max):Math.min(e,n)),e}function calcRelativeAxisConstraints(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function calcRelativeConstraints(e,{top:t,left:n,bottom:r,right:i}){return{x:calcRelativeAxisConstraints(e.x,n,i),y:calcRelativeAxisConstraints(e.y,t,r)}}function calcViewportAxisConstraints(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function calcViewportConstraints(e,t){return{x:calcViewportAxisConstraints(e.x,t.x),y:calcViewportAxisConstraints(e.y,t.y)}}function calcOrigin(e,t){let n=.5;const r=calcLength(e),i=calcLength(t);return i>r?n=progress(t.min,t.max-r,e.min):r>i&&(n=progress(e.min,e.max-i,t.min)),clamp(0,1,n)}function rebaseAxisConstraints(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}const defaultElastic=.35;function resolveDragElastic(e=defaultElastic){return!1===e?e=0:!0===e&&(e=defaultElastic),{x:resolveAxisElastic(e,"left","right"),y:resolveAxisElastic(e,"top","bottom")}}function resolveAxisElastic(e,t,n){return{min:resolvePointElastic(e,t),max:resolvePointElastic(e,n)}}function resolvePointElastic(e,t){return"number"==typeof e?e:e[t]||0}const elementDragControls=new WeakMap;class VisualElementDragControls{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new PanSession(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(extractEventInfo(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=setDragLock(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(e=>{let t=this.getAxisMotionValue(e).get()||0;if(percent.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=calcLength(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&frame.postRender(()=>i(e,t)),addValueToWillChange(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:o}=t;if(r&&null===this.currentDirection)return this.currentDirection=getCurrentDirection(o),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),a&&a(e,t)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>eachAxis(e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,distanceThreshold:n,contextWindow:getContextWindow(this.visualElement)})}stop(e,t){const n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:o}=this.getProps();o&&frame.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!shouldDrag(e,r,this.currentDirection))return;const i=this.getAxisMotionValue(e);let a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=applyConstraints(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,i=this.constraints;t&&isRefObject(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&calcRelativeConstraints(r.layoutBox,t),this.elastic=resolveDragElastic(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=rebaseAxisConstraints(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!isRefObject(e))return!1;const n=e.current;invariant(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=measurePageBox(n,r.root,this.visualElement.getTransformPagePoint());let a=calcViewportConstraints(r.layout.layoutBox,i);if(t){const e=t(convertBoxToBoundingBox(a));this.hasMutatedConstraints=!!e,e&&(a=convertBoundingBoxToBox(e))}return a}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},l=eachAxis(o=>{if(!shouldDrag(o,t,this.currentDirection))return;let l=s&&s[o]||{};a&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[o]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(o,d)});return Promise.all(l).then(o)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return addValueToWillChange(this.visualElement,e),n.start(animateMotionValue(e,n,0,t,this.visualElement,!1))}stopAnimation(){eachAxis(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){eachAxis(e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()})}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){eachAxis(t=>{const{drag:n}=this.getProps();if(!shouldDrag(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-mixNumber$1(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!isRefObject(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};eachAxis(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=calcOrigin({min:n,max:n},this.constraints[e])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),eachAxis(t=>{if(!shouldDrag(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(mixNumber$1(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;elementDragControls.set(this.visualElement,this);const e=addPointerEvent(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();isRefObject(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),frame.read(t);const i=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(eachAxis(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=defaultElastic,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}}function shouldDrag(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}function getCurrentDirection(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class DragGesture extends Feature{constructor(e){super(e),this.removeGroupControls=noop,this.removeListeners=noop,this.controls=new VisualElementDragControls(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||noop}unmount(){this.removeGroupControls(),this.removeListeners()}}const asyncHandler=e=>(t,n)=>{e&&frame.postRender(()=>e(t,n))};class PanGesture extends Feature{constructor(){super(...arguments),this.removePointerDownListener=noop}onPointerDown(e){this.session=new PanSession(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:asyncHandler(e),onStart:asyncHandler(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&frame.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const globalProjectionState={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const correctBorderRadius={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!px.test(e))return e;e=parseFloat(e)}return`${pixelsToPercent(e,t.target.x)}% ${pixelsToPercent(e,t.target.y)}%`}},correctBoxShadow={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=complex.parse(e);if(i.length>5)return r;const a=complex.createTransformer(e),o="number"!=typeof i[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;const c=mixNumber$1(s,l,.5);return"number"==typeof i[2+o]&&(i[2+o]/=c),"number"==typeof i[3+o]&&(i[3+o]/=c),a(i)}};let hasTakenAnySnapshot=!1;class MeasureLayoutWithContext extends react__WEBPACK_IMPORTED_MODULE_0__.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;addScaleCorrector(defaultScaleCorrectors),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),hasTakenAnySnapshot&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a&&(a.isPresent=i,hasTakenAnySnapshot=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||frame.postRender(()=>{const e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),microtask.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;hasTakenAnySnapshot=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function MeasureLayout(e){const[t,n]=usePresence(),r=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(LayoutGroupContext);return jsxRuntimeExports.jsx(MeasureLayoutWithContext,{...e,layoutGroup:r,switchLayoutGroup:(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(SwitchLayoutGroupContext),isPresent:t,safeToRemove:n})}const defaultScaleCorrectors={borderRadius:{...correctBorderRadius,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:correctBorderRadius,borderTopRightRadius:correctBorderRadius,borderBottomLeftRadius:correctBorderRadius,borderBottomRightRadius:correctBorderRadius,boxShadow:correctBoxShadow};function animateSingleValue(e,t,n){const r=isMotionValue(e)?e:motionValue(e);return r.start(animateMotionValue("",r,t,n)),r.animation}const compareByDepth=(e,t)=>e.depth-t.depth;class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(e){addUniqueItem(this.children,e),this.isDirty=!0}remove(e){removeItem(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(e)}}function delay(e,t){const n=time.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(cancelFrame(r),e(a-t))};return frame.setup(r,!0),()=>cancelFrame(r)}const borders=["TopLeft","TopRight","BottomLeft","BottomRight"],numBorders=borders.length,asNumber=e=>"string"==typeof e?parseFloat(e):e,isPx=e=>"number"==typeof e||px.test(e);function mixValues(e,t,n,r,i,a){i?(e.opacity=mixNumber$1(0,n.opacity??1,easeCrossfadeIn(r)),e.opacityExit=mixNumber$1(t.opacity??1,0,easeCrossfadeOut(r))):a&&(e.opacity=mixNumber$1(t.opacity??1,n.opacity??1,r));for(let i=0;i<numBorders;i++){const a=`border${borders[i]}Radius`;let o=getRadius(t,a),s=getRadius(n,a);void 0===o&&void 0===s||(o||(o=0),s||(s=0),0===o||0===s||isPx(o)===isPx(s)?(e[a]=Math.max(mixNumber$1(asNumber(o),asNumber(s),r),0),(percent.test(s)||percent.test(o))&&(e[a]+="%")):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=mixNumber$1(t.rotate||0,n.rotate||0,r))}function getRadius(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const easeCrossfadeIn=compress(0,.5,circOut),easeCrossfadeOut=compress(.5,.95,noop);function compress(e,t,n){return r=>r<e?0:r>t?1:n(progress(e,t,r))}function copyAxisInto(e,t){e.min=t.min,e.max=t.max}function copyBoxInto(e,t){copyAxisInto(e.x,t.x),copyAxisInto(e.y,t.y)}function copyAxisDeltaInto(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function removePointDelta(e,t,n,r,i){return e=scalePoint(e-=t,1/n,r),void 0!==i&&(e=scalePoint(e,1/i,r)),e}function removeAxisDelta(e,t=0,n=1,r=.5,i,a=e,o=e){if(percent.test(t)&&(t=parseFloat(t),t=mixNumber$1(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let s=mixNumber$1(a.min,a.max,r);e===a&&(s-=t),e.min=removePointDelta(e.min,t,n,s,i),e.max=removePointDelta(e.max,t,n,s,i)}function removeAxisTransforms(e,t,[n,r,i],a,o){removeAxisDelta(e,t[n],t[r],t[i],t.scale,a,o)}const xKeys=["x","scaleX","originX"],yKeys=["y","scaleY","originY"];function removeBoxTransforms(e,t,n,r){removeAxisTransforms(e.x,t,xKeys,n?n.x:void 0,r?r.x:void 0),removeAxisTransforms(e.y,t,yKeys,n?n.y:void 0,r?r.y:void 0)}function isAxisDeltaZero(e){return 0===e.translate&&1===e.scale}function isDeltaZero(e){return isAxisDeltaZero(e.x)&&isAxisDeltaZero(e.y)}function axisEquals(e,t){return e.min===t.min&&e.max===t.max}function boxEquals(e,t){return axisEquals(e.x,t.x)&&axisEquals(e.y,t.y)}function axisEqualsRounded(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function boxEqualsRounded(e,t){return axisEqualsRounded(e.x,t.x)&&axisEqualsRounded(e.y,t.y)}function aspectRatio(e){return calcLength(e.x)/calcLength(e.y)}function axisDeltaEquals(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class NodeStack{constructor(){this.members=[]}add(e){addUniqueItem(this.members,e),e.scheduleRender()}remove(e){if(removeItem(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function buildProjectionTransform(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(null==n?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}const transformAxes=["","X","Y","Z"],animationTarget=1e3;let id=0;function resetDistortingTransform(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function cancelTreeOptimisedTransformAnimations(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=getOptimisedAppearId(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",frame,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(r)}function createProjectionNode({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=id++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new SubscriptionManager),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=isSVGElement(t)&&!isSVGSVGElement(t),this.instance=t;const{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0;const i=()=>this.root.updateBlockedByResize=!1;frame.read(()=>{r=window.innerWidth}),e(t,()=>{const e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=delay(i,250),globalProjectionState.hasAnimatedSinceResize&&(globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const a=this.options.transition||i.getDefaultTransition()||defaultLayoutTransition,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!boxEqualsRounded(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const t={...getValueTransition(a,"layout"),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),cancelFrame(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(resetSkewAndRotation),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(clearMeasurements);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(clearIsLayoutDirty);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate)):this.nodes.forEach(clearIsLayoutDirty),this.clearAllSnapshots();const e=time.now();frameData.delta=clamp(0,1e3/60,e-frameData.timestamp),frameData.timestamp=e,frameData.isProcessing=!0,frameSteps.update.process(frameData),frameSteps.preRender.process(frameData),frameSteps.render.process(frameData),frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!calcLength(this.snapshot.measuredBox.x)&&!calcLength(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=createBox(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!(!this.options.layoutScroll||!this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!isDeltaZero(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||hasTransform(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),roundBox(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return createBox();const n=t.measureViewportBox();if(!(null==(e=this.scroll)?void 0:e.wasRoot)&&!this.path.some(checkNodeWasScrollRoot)){const{scroll:e}=this.root;e&&(translateAxis(n.x,e.offset.x),translateAxis(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n=createBox();if(copyBoxInto(n,e),null!=(t=this.scroll)&&t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const r=this.path[t],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&©BoxInto(n,e),translateAxis(n.x,i.offset.x),translateAxis(n.y,i.offset.y))}return n}applyTransform(e,t=!1){const n=createBox();copyBoxInto(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&transformBox(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),hasTransform(r.latestValues)&&transformBox(n,r.latestValues)}return hasTransform(this.latestValues)&&transformBox(n,this.latestValues),n}removeTransform(e){const t=createBox();copyBoxInto(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance||!hasTransform(n.latestValues))continue;hasScale(n.latestValues)&&n.updateSnapshot();const r=createBox();copyBoxInto(r,n.measurePageBox()),removeBoxTransforms(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return hasTransform(this.latestValues)&&removeBoxTransforms(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=!!this.resumingFrom||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||null!=(t=this.parent)&&t.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:i,layoutId:a}=this.options;if(this.layout&&(i||a)){if(this.resolvedRelativeTargetAt=frameData.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if((this.relativeTarget||this.targetDelta)&&(this.target||(this.target=createBox(),this.targetWithTransforms=createBox()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),calcRelativeBox(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):copyBoxInto(this.target,this.layout.layoutBox),applyBoxDelta(this.target,this.targetDelta)):copyBoxInto(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.target,e.target),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!hasScale(this.parent.latestValues)&&!has2DTranslate(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!(!(this.relativeTarget||this.targetDelta||this.options.layoutRoot)||!this.layout)}calcProjection(){var e;const t=this.getLead(),n=!!this.resumingFrom||this!==t;let r=!0;if((this.isProjectionDirty||null!=(e=this.parent)&&e.isProjectionDirty)&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===frameData.timestamp&&(r=!1),r)return;const{layout:i,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!a)return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,s=this.treeScale.y;applyTreeDeltas(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=createBox());const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(copyAxisDeltaInto(this.prevProjectionDelta.x,this.projectionDelta.x),copyAxisDeltaInto(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),calcBoxDelta(this.projectionDelta,this.layoutCorrected,l,this.latestValues),(this.treeScale.x!==o||this.treeScale.y!==s||!axisDeltaEquals(this.projectionDelta.x,this.prevProjectionDelta.x)||!axisDeltaEquals(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null==(t=this.options.visualElement)||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=createDelta(),this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta()}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=createDelta();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const o=createBox(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=!(!s||c||!0!==this.options.crossfade||this.path.some(hasOpacityCrossfade));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;mixAxisDelta(a.x,e.x,n),mixAxisDelta(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(calcRelativePosition(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mixBox(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&boxEquals(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=createBox()),copyBoxInto(d,this.relativeTarget)),s&&(this.animationValues=i,mixValues(i,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){var t,n,r;this.notifyListeners("animationStart"),null==(t=this.currentAnimation)||t.stop(),null==(r=null==(n=this.resumingFrom)?void 0:n.currentAnimation)||r.stop(),this.pendingAnimation&&(cancelFrame(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=frame.update(()=>{globalProjectionState.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=motionValue(0)),this.currentAnimation=animateSingleValue(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(animationTarget),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||createBox();const t=calcLength(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=calcLength(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}copyBoxInto(t,n),transformBox(t,i),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new NodeStack),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&resetDistortingTransform("z",e,r,this.animationValues);for(let t=0;t<transformAxes.length;t++)resetDistortingTransform(`rotate${transformAxes[t]}`,e,r,this.animationValues),resetDistortingTransform(`skew${transformAxes[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(e.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=resolveMotionValue(null==t?void 0:t.pointerEvents)||"",void(e.transform=n?n(this.latestValues,""):"none");const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target)return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=resolveMotionValue(null==t?void 0:t.pointerEvents)||""),void(this.hasProjected&&!hasTransform(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1));e.visibility="";const i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=buildProjectionTransform(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;const{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${100*o.origin}% ${100*s.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const t in scaleCorrectors){if(void 0===i[t])continue;const{correct:n,applyTo:o,isCSSVariable:s}=scaleCorrectors[t],l="none"===a?i[t]:n(i[t],r);if(o){const t=o.length;for(let n=0;n<t;n++)e[o[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?resolveMotionValue(null==t?void 0:t.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(e){e.updateLayout()}function notifyLayoutUpdate(e){var t;const n=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;"size"===i?eachAxis(e=>{const r=a?n.measuredBox[e]:n.layoutBox[e],i=calcLength(r);r.min=t[e].min,r.max=r.min+i}):shouldAnimatePositionOnly(i,n.layoutBox,t)&&eachAxis(r=>{const i=a?n.measuredBox[r]:n.layoutBox[r],o=calcLength(t[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});const o=createDelta();calcBoxDelta(o,t,n.layoutBox);const s=createDelta();a?calcBoxDelta(s,e.applyTransform(r,!0),n.measuredBox):calcBoxDelta(s,t,n.layoutBox);const l=!isDeltaZero(o);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:i,layout:a}=r;if(i&&a){const o=createBox();calcRelativePosition(o,n.layoutBox,i.layoutBox);const s=createBox();calcRelativePosition(s,t,a.layoutBox),boxEqualsRounded(o,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function propagateDirtyNodes(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function cleanDirtyNodes(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function clearSnapshot(e){e.clearSnapshot()}function clearMeasurements(e){e.clearMeasurements()}function clearIsLayoutDirty(e){e.isLayoutDirty=!1}function resetTransformStyle(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function finishAnimation(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function resolveTargetDelta(e){e.resolveTargetDelta()}function calcProjection(e){e.calcProjection()}function resetSkewAndRotation(e){e.resetSkewAndRotation()}function removeLeadSnapshots(e){e.removeLeadSnapshot()}function mixAxisDelta(e,t,n){e.translate=mixNumber$1(t.translate,0,n),e.scale=mixNumber$1(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mixAxis(e,t,n,r){e.min=mixNumber$1(t.min,n.min,r),e.max=mixNumber$1(t.max,n.max,r)}function mixBox(e,t,n,r){mixAxis(e.x,t.x,n.x,r),mixAxis(e.y,t.y,n.y,r)}function hasOpacityCrossfade(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const defaultLayoutTransition={duration:.45,ease:[.4,0,.1,1]},userAgentContains=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),roundPoint=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:noop;function roundAxis(e){e.min=roundPoint(e.min),e.max=roundPoint(e.max)}function roundBox(e){roundAxis(e.x),roundAxis(e.y)}function shouldAnimatePositionOnly(e,t,n){return"position"===e||"preserve-aspect"===e&&!isNear(aspectRatio(t),aspectRatio(n),.2)}function checkNodeWasScrollRoot(e){var t;return e!==e.root&&(null==(t=e.scroll)?void 0:t.wasRoot)}const DocumentProjectionNode=createProjectionNode({attachResizeListener:(e,t)=>addDomEvent(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rootProjectionNode={current:void 0},HTMLProjectionNode=createProjectionNode({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rootProjectionNode.current){const e=new DocumentProjectionNode({});e.mount(window),e.setOptions({layoutScroll:!0}),rootProjectionNode.current=e}return rootProjectionNode.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),drag={pan:{Feature:PanGesture},drag:{Feature:DragGesture,ProjectionNode:HTMLProjectionNode,MeasureLayout}};function handleHoverEvent(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const i=r["onHover"+n];i&&frame.postRender(()=>i(t,extractEventInfo(t)))}class HoverGesture extends Feature{mount(){const{current:e}=this.node;e&&(this.unmount=hover(e,(e,t)=>(handleHoverEvent(this.node,t,"Start"),e=>handleHoverEvent(this.node,e,"End"))))}unmount(){}}class FocusGesture extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function handlePressEvent(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const i=r["onTap"+("End"===n?"":n)];i&&frame.postRender(()=>i(t,extractEventInfo(t)))}class PressGesture extends Feature{mount(){const{current:e}=this.node;e&&(this.unmount=press(e,(e,t)=>(handlePressEvent(this.node,t,"Start"),(e,{success:t})=>handlePressEvent(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const observerCallbacks=new WeakMap,observers=new WeakMap,fireObserverCallback=e=>{const t=observerCallbacks.get(e.target);t&&t(e)},fireAllObserverCallbacks=e=>{e.forEach(fireObserverCallback)};function initIntersectionObserver({root:e,...t}){const n=e||document;observers.has(n)||observers.set(n,{});const r=observers.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(fireAllObserverCallbacks,{root:e,...t})),r[i]}function observeIntersection(e,t,n){const r=initIntersectionObserver(t);return observerCallbacks.set(e,n),r.observe(e),()=>{observerCallbacks.delete(e),r.unobserve(e)}}const thresholdNames={some:0,all:1};class InViewFeature extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:thresholdNames[r]};return observeIntersection(this.node.current,a,e=>{const{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(hasViewportOptionChanged(e,t))&&this.startObserver()}unmount(){}}function hasViewportOptionChanged({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const gestureAnimations={inView:{Feature:InViewFeature},tap:{Feature:PressGesture},focus:{Feature:FocusGesture},hover:{Feature:HoverGesture}},layout={layout:{ProjectionNode:HTMLProjectionNode,MeasureLayout}},featureBundle={...animations,...gestureAnimations,...drag,...layout},motion=createMotionProxy(featureBundle,createDomVisualElement),ShimmerComponent=({children:e,as:t="p",className:n,duration:r=2,spread:i=2})=>{const a=motion.create(t),o=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>((null==e?void 0:e.length)??0)*i,[e,i]);return jsxRuntimeExports.jsx(a,{animate:{backgroundPosition:"0% center"},className:cn("relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent","[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",n),initial:{backgroundPosition:"100% center"},style:{"--spread":`${o}px`,backgroundImage:"var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))"},transition:{repeat:Number.POSITIVE_INFINITY,duration:r,ease:"linear"},children:e})},Shimmer=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(ShimmerComponent),ReasoningContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null),useReasoning=()=>{const e=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(ReasoningContext);if(!e)throw new Error("Reasoning components must be used within Reasoning");return e},AUTO_CLOSE_DELAY=1e3,MS_IN_S=1e3,Reasoning=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({className:e,isStreaming:t=!1,open:n,defaultOpen:r=!0,onOpenChange:i,duration:a,children:o,...s})=>{const[l,c]=useControllableState({prop:n,defaultProp:r,onChange:i}),[u,d]=useControllableState({prop:a,defaultProp:0}),[m,h]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[p,f]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),g=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(t);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{t?null===p&&f(Date.now()):null!==p&&(d(Math.ceil((Date.now()-p)/MS_IN_S)),f(null))},[t,p,d]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{t&&!l&&(c(!0),h(!1))},[t,l,c]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{const e=g.current&&!t;if(g.current=t,e&&l&&!m){const e=setTimeout(()=>{c(!1),h(!0)},AUTO_CLOSE_DELAY);return()=>clearTimeout(e)}},[t,l,c,m]),jsxRuntimeExports.jsx(ReasoningContext.Provider,{value:{isStreaming:t,isOpen:l,setIsOpen:c,duration:u},children:jsxRuntimeExports.jsx(Collapsible,{className:cn("not-prose my-1",e),onOpenChange:e=>{c(e)},open:l,...s,children:o})})}),getThinkingMessage=(e,t)=>e?jsxRuntimeExports.jsx(Shimmer,{as:"div",duration:1,children:"Thinking..."}):void 0===t||0===t?jsxRuntimeExports.jsx("div",{children:"Thought for a few seconds"}):jsxRuntimeExports.jsxs("div",{children:["Thought for ",t," seconds"]}),ReasoningTrigger=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({className:e,children:t,...n})=>{const{isStreaming:r,isOpen:i,duration:a}=useReasoning();return jsxRuntimeExports.jsx(CollapsibleTrigger,{className:cn("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...n,children:t??jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Brain,{className:"size-4"}),getThinkingMessage(r,a),jsxRuntimeExports.jsx(ChevronDown,{className:cn("size-4 transition-transform",i?"rotate-180":"rotate-0")})]})})}),ReasoningContent=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(({className:e,children:t,...n})=>jsxRuntimeExports.jsx(CollapsibleContent,{className:cn("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n,children:jsxRuntimeExports.jsx(Response$1,{className:"grid gap-2",children:t})}));Reasoning.displayName="Reasoning",ReasoningTrigger.displayName="ReasoningTrigger",ReasoningContent.displayName="ReasoningContent";const MarkdownToolRenderer=({toolCall:e,hasOutput:t,toolLabels:n,defaultCollapsed:r=!1})=>{var i,a;const[o,s]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}),[l,c]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(r),u=null==(i=e.args)?void 0:i.content,d=null==(a=e.args)?void 0:a.cell_index;return jsxRuntimeExports.jsxs("div",{className:"border border-border rounded-lg overflow-hidden my-1 bg-card text-card-foreground",children:[jsxRuntimeExports.jsx("div",{className:"px-3 py-2 border-b border-border",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx(NotebookPen,{className:"w-4 h-4"}),jsxRuntimeExports.jsx("span",{className:"text-sm font-medium",children:t?n.completed:n.loading}),void 0!==d&&jsxRuntimeExports.jsxs("span",{className:"text-xs text-muted-foreground",children:["Cell ",d]}),jsxRuntimeExports.jsx("div",{className:"flex-grow"}),jsxRuntimeExports.jsxs("button",{className:"p-1 hover:bg-muted rounded",onClick:()=>{return t=u,n=`${e.callId}-content`,navigator.clipboard.writeText(t),s(e=>({...e,[n]:!0})),void setTimeout(()=>s(e=>({...e,[n]:!1})),3e3);var t,n},title:"Copy",children:[o[`${e.callId}-content`]&&jsxRuntimeExports.jsx(CircleCheckBig,{className:"w-3 h-3"}),!o[`${e.callId}-content`]&&jsxRuntimeExports.jsx(Copy$1,{className:"w-3 h-3"})]}),t&&jsxRuntimeExports.jsx("button",{className:"p-1 hover:bg-muted rounded",onClick:()=>{c(!l)},title:l?"Expand":"Collapse",children:l?jsxRuntimeExports.jsx(ChevronDown,{className:"w-3 h-3"}):jsxRuntimeExports.jsx(ChevronUp,{className:"w-3 h-3"})})]})}),u&&!l&&jsxRuntimeExports.jsx("div",{className:"bg-card",children:jsxRuntimeExports.jsx("div",{className:"p-4 max-h-[200px] overflow-y-auto",children:jsxRuntimeExports.jsx("div",{className:"prose prose-sm max-w-none dark:prose-invert",children:jsxRuntimeExports.jsx(Markdown,{rehypePlugins:remarkPlugins,children:u})})})})]})},ReadFileRenderer=({toolCall:e,hasOutput:t,toolLabels:n})=>{var r,i;const a=(null==(r=e.args)?void 0:r.file_path)||(null==(i=e.args)?void 0:i.target_file)||"Unknown file",o=t?n.completed:n.loading;return jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm min-w-0",children:[jsxRuntimeExports.jsx("span",{className:"shrink-0",children:o}),jsxRuntimeExports.jsx("span",{className:"shrink-0",children:getIconForFilePath(a)}),jsxRuntimeExports.jsx("span",{className:"truncate min-w-0",children:a})]})},CodeContextBadge=({code:e,icon:t,tagLabel:n,language:r="python",onRemove:i,showRemoveButton:a})=>jsxRuntimeExports.jsx(TooltipProvider,{children:jsxRuntimeExports.jsxs(Tooltip,{children:[jsxRuntimeExports.jsx(TooltipTrigger,{children:jsxRuntimeExports.jsxs(Badge,{variant:"outline",className:"flex items-center gap-2",children:[t&&jsxRuntimeExports.jsx("span",{className:"w-4 h-4",children:t}),n,a&&i&&jsxRuntimeExports.jsx("span",{onClick:e=>{e.stopPropagation(),i()},className:"ml-1 cursor-pointer hover:text-muted-foreground transition-colors",children:jsxRuntimeExports.jsx(X$4,{className:"w-3.5 h-3.5 pointer-events-none"})})]})}),jsxRuntimeExports.jsx(TooltipContent,{children:jsxRuntimeExports.jsx(_uiw_react_codemirror__WEBPACK_IMPORTED_MODULE_2___default(),{value:e,readOnly:!0,height:"auto",extensions:[getLanguageExtension(r)],theme:"dark"})})]})}),JupyterIcon=notebookIcon.react,PythonIcon=pythonIcon.react,MarkdownIcon=markdownIcon.react;function getIconForFileExtension(e){const{filename:t}=e;switch(t.split(".").pop()){case"ipynb":return jsxRuntimeExports.jsx(JupyterIcon,{className:"w-4 h-4"});case"py":return jsxRuntimeExports.jsx(PythonIcon,{className:"w-4 h-4"});case"md":return jsxRuntimeExports.jsx(MarkdownIcon,{className:"w-4 h-4"});default:return null}}function getCodeBadgeLabel(e){const{code:t,cellIndex:n,fileInfo:r}=e;let i="";return r?i=r.filename:(i=t.slice(0,20),t.length>20&&(i+="...")),void 0!==n&&(i+=` (cell ${n})`),i}const getFileInfoFromArgs=e=>{if(null==e||!e.file_path||"string"!=typeof e.file_path)return;const t=e.file_path,n=t.split("/").filter(Boolean);return{path:t,filename:n.length?n[n.length-1]:t,directory:n.length>1?n.slice(0,-1).join("/"):""}},parseCellOutput=e=>{if("string"==typeof e)try{const t=JSON.parse(e);if(t&&"object"==typeof t){const e=t["text/html"],n=t["text/plain"]||t["text/markdown"],r=t.image_url;return{isJson:!0,htmlContent:"string"==typeof e?e:void 0,textContent:"string"==typeof n?n:void 0,imageUrl:"string"==typeof r?r:void 0}}}catch{}else if(e&&"object"==typeof e){const t=e["text/html"],n=e["text/plain"]||e["text/markdown"],r=e.image_url;return{isJson:!0,htmlContent:"string"==typeof t?t:void 0,textContent:"string"==typeof n?n:void 0,imageUrl:"string"==typeof r?r:void 0}}return{isJson:!1}},RunCellRenderer=({toolCall:e,output:t,hasOutput:n,toolLabels:r})=>{var i;const[a,o]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}),[s,l]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),c=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>getFileInfoFromArgs(e.args),[e.args]),u=c?getIconForFileExtension(c):null,d=(null==c?void 0:c.filename)||"notebook.ipynb",m="number"==typeof(null==(i=e.args)?void 0:i.cell_index)?`cell ${e.args.cell_index}`:void 0,h="string"==typeof t?t:JSON.stringify(t,null,2),p=parseCellOutput(t),f="string"==typeof p.textContent?p.textContent:h,g=parseMixedOutput(f),_=p.imageUrl??g.imageUrl,b=(_?g.textContent:f)||f;return jsxRuntimeExports.jsxs("div",{className:"my-1 overflow-hidden rounded-xl border border-border bg-card text-card-foreground shadow-sm",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-muted",children:[jsxRuntimeExports.jsxs("div",{className:"mr-2 flex items-center gap-1.5",children:[jsxRuntimeExports.jsx("button",{onClick:()=>l(!0),className:"h-2.5 w-2.5 rounded-full cursor-pointer bg-amber-400 transition-opacity hover:opacity-80 dark:bg-amber-500",title:"Collapse"}),jsxRuntimeExports.jsx("button",{onClick:()=>l(!1),className:"h-2.5 w-2.5 rounded-full cursor-pointer bg-emerald-400 transition-opacity hover:opacity-80 dark:bg-emerald-500",title:"Expand"})]}),!s&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[n&&jsxRuntimeExports.jsx(Terminal,{className:"h-4 w-4 text-emerald-600 dark:text-emerald-400 flex-shrink-0"}),!n&&jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin text-muted-foreground flex-shrink-0"}),jsxRuntimeExports.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:n?r.completed:r.loading})]}),jsxRuntimeExports.jsx("div",{className:"flex-1 min-w-0"}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-shrink-0",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-foreground min-w-0",children:[jsxRuntimeExports.jsx("span",{className:"flex-shrink-0",children:u}),jsxRuntimeExports.jsx("span",{className:"truncate",children:d})]}),m&&jsxRuntimeExports.jsx("span",{className:"px-2.5 py-1 text-xs text-muted-foreground whitespace-nowrap flex-shrink-0",children:m})]})]}),s&&jsxRuntimeExports.jsxs("div",{className:"flex flex-1 items-center gap-2 min-w-0",children:[n&&jsxRuntimeExports.jsx(Terminal,{className:"h-4 w-4 text-emerald-600 dark:text-emerald-400 flex-shrink-0"}),!n&&jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin text-muted-foreground flex-shrink-0"}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[jsxRuntimeExports.jsx("span",{className:"text-xs tracking-wide text-muted-foreground whitespace-nowrap flex-shrink-0",children:"run cell"}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-foreground min-w-0",children:[jsxRuntimeExports.jsx("span",{className:"flex-shrink-0",children:u}),jsxRuntimeExports.jsx("span",{className:"truncate",children:d})]}),m&&jsxRuntimeExports.jsx("span",{className:"px-2 py-0.5 text-xs text-muted-foreground whitespace-nowrap flex-shrink-0",children:m})]})]})]}),!s&&jsxRuntimeExports.jsx("div",{className:"max-h-[420px] overflow-y-auto border-t border-border bg-muted/40 dark:bg-muted/20",children:n&&jsxRuntimeExports.jsx("div",{className:"relative",children:jsxRuntimeExports.jsxs("div",{className:"space-y-3 bg-card p-3",children:[_&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:"Image"}),jsxRuntimeExports.jsxs("div",{className:"rounded border border-border bg-background p-2",children:[jsxRuntimeExports.jsx("img",{src:_,alt:"Cell output image",className:"h-auto max-w-full rounded border border-border",onError:e=>{console.error("Failed to load image:",_),e.currentTarget.style.display="none"}}),jsxRuntimeExports.jsx("div",{className:"mt-1 font-mono text-xs text-muted-foreground truncate",children:_})]})]}),!_&&jsxRuntimeExports.jsx("pre",{className:"whitespace-pre-wrap break-words rounded border border-border bg-muted/60 p-3 font-mono text-sm text-foreground overflow-x-auto dark:bg-muted/40",children:b})]})})})]})},OpenTabRenderer=({toolCall:e,output:t,hasOutput:n,toolLabels:r})=>{var i;const a=(null==(i=e.args)?void 0:i.file_path)||"Unknown file",o=n&&t.toLowerCase().startsWith("error"),s=n&&!o,l=n?r.completed:r.loading;return jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm min-w-0",children:[jsxRuntimeExports.jsx("span",{className:"shrink-0",children:l}),jsxRuntimeExports.jsx(ExternalLink,{className:"size-3 shrink-0"}),jsxRuntimeExports.jsx("span",{className:"shrink-0",children:getIconForFilePath(a)}),jsxRuntimeExports.jsx("span",{className:"truncate min-w-0 "+(o?"text-destructive":""),children:a}),!n&&jsxRuntimeExports.jsx(LoaderCircle,{className:"size-3 animate-spin shrink-0"}),s&&jsxRuntimeExports.jsx(CircleCheck,{className:"size-3 text-green-500 shrink-0"}),o&&jsxRuntimeExports.jsx(CircleX,{className:"size-3 text-destructive shrink-0"})]})},CreateNotebookRenderer=({toolCall:e,output:t,hasOutput:n,toolLabels:r})=>{var i;const a=(null==(i=e.args)?void 0:i.file_path)||"Unknown file",o=n&&t.toLowerCase().startsWith("error"),s=n&&!o,l=n?r.completed:r.loading;return jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-sm min-w-0",children:[jsxRuntimeExports.jsx("span",{className:"shrink-0",children:l}),jsxRuntimeExports.jsx(FilePlusCorner,{className:"size-3 shrink-0"}),jsxRuntimeExports.jsx("span",{className:"shrink-0",children:getIconForFilePath(a)}),jsxRuntimeExports.jsx("span",{className:"truncate min-w-0 "+(o?"text-destructive":""),children:a}),!n&&jsxRuntimeExports.jsx(LoaderCircle,{className:"size-3 animate-spin shrink-0"}),s&&jsxRuntimeExports.jsx(CircleCheck,{className:"size-3 text-green-500 shrink-0"}),o&&jsxRuntimeExports.jsx(CircleX,{className:"size-3 text-destructive shrink-0"})]})},getFileExtension$1=e=>{const t=e.match(/\.([^.]+)$/);return t?t[1]:"txt"},getFileName$1=e=>{if(!e)return"";const t=e.split(/[/\\]/);return t[t.length-1]||e},WriteFileRenderer=({toolCall:e,output:t,hasOutput:n,toolLabels:r,defaultCollapsed:i=!1})=>{var a,o;const[s,l]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}),[c,u]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(i),d=(null==(a=e.args)?void 0:a.file_path)||null,m=d?getFileName$1(d):null,h=d?getFileExtension$1(d):null,p=(null==(o=e.args)?void 0:o.content)||null;return jsxRuntimeExports.jsxs("div",{className:"border border-border rounded-lg overflow-hidden my-1 bg-card text-card-foreground",children:[jsxRuntimeExports.jsx("div",{className:"px-3 py-2 border-b border-border",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[n&&jsxRuntimeExports.jsx(FilePen,{className:"w-4 h-4 text-blue-600"}),!n&&jsxRuntimeExports.jsx(LoaderCircle,{className:"w-4 h-4 text-blue-600 animate-spin"}),d&&jsxRuntimeExports.jsxs("div",{className:"text-sm font-medium flex items-center gap-1",children:[getIconForFilePath(d),m]}),jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground",children:n?r.completed:r.loading}),jsxRuntimeExports.jsx("div",{className:"flex-grow"}),n&&jsxRuntimeExports.jsx("button",{className:"p-1 hover:bg-muted rounded",onClick:()=>{u(!c)},title:c?"Expand":"Collapse",children:c?jsxRuntimeExports.jsx(ChevronDown,{className:"w-3 h-3"}):jsxRuntimeExports.jsx(ChevronUp,{className:"w-3 h-3"})})]})}),p&&!c&&jsxRuntimeExports.jsxs("div",{className:"bg-muted/40",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-border",children:[jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:"CONTENT"}),jsxRuntimeExports.jsx("div",{className:"flex-grow"}),jsxRuntimeExports.jsx("button",{className:"p-1 text-muted-foreground hover:text-foreground hover:bg-muted rounded",onClick:()=>{return t=p,n=`${e.callId}-content`,navigator.clipboard.writeText(t),l(e=>({...e,[n]:!0})),void setTimeout(()=>l(e=>({...e,[n]:!1})),3e3);var t,n},title:"Copy content",children:s[`${e.callId}-content`]?jsxRuntimeExports.jsx(CircleCheckBig,{className:"w-3 h-3"}):jsxRuntimeExports.jsx(Copy$1,{className:"w-3 h-3"})})]}),jsxRuntimeExports.jsx("div",{className:"p-0",children:jsxRuntimeExports.jsx(_uiw_react_codemirror__WEBPACK_IMPORTED_MODULE_2___default(),{value:p,readOnly:!0,height:"auto",maxHeight:"400px",extensions:[getLanguageExtension(h),_codemirror_view__WEBPACK_IMPORTED_MODULE_6__.EditorView.theme({".cm-content":{fontSize:"13px"},".cm-scroller":{maxHeight:"400px",overflow:"auto"}})],theme:"dark"})})]})]})},ListDirRenderer=({toolCall:e,hasOutput:t,toolLabels:n,output:r})=>{var i;const a=r||[],o=(null==(i=e.args)?void 0:i.dir)||"Workspace",s=`${t?n.completed:n.loading} ${o}`;return jsxRuntimeExports.jsxs(Task,{defaultOpen:!1,isStreaming:!t,children:[jsxRuntimeExports.jsx(TaskTrigger,{title:s,children:jsxRuntimeExports.jsxs("div",{className:"flex w-full cursor-pointer items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",children:[jsxRuntimeExports.jsx(Folder,{className:"size-4"}),jsxRuntimeExports.jsx("div",{className:"text-sm",children:s})]})}),jsxRuntimeExports.jsx(TaskContent,{children:jsxRuntimeExports.jsx("div",{className:"max-h-96 overflow-auto",children:t&&a.map((e,t)=>jsxRuntimeExports.jsx(TaskItem,{children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:["file"===e.type?getIconForFilePath(e.name):jsxRuntimeExports.jsx(Folder,{className:"w-4 h-4"}),jsxRuntimeExports.jsx("span",{children:e.name})]})},`${e.name}-${t}`))})})]})},GrepRenderer=({toolCall:e,hasOutput:t,toolLabels:n,output:r})=>{var i,a;let o={};if("string"==typeof r)try{o=JSON.parse(r)}catch{o={summary:r}}else r&&(o=r);const s=o.matches||[],l=o.summary||`Found ${s.length} matches`,c=(null==(i=e.args)?void 0:i.pattern)||"pattern";null!=(a=e.args)&&a.path;const u=`${t?n.completed:n.loading} "${c}"`;return jsxRuntimeExports.jsxs(Task,{defaultOpen:!1,isStreaming:!t,children:[jsxRuntimeExports.jsx(TaskTrigger,{title:u,children:jsxRuntimeExports.jsxs("div",{className:"flex w-full cursor-pointer items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",children:[jsxRuntimeExports.jsx(Search,{className:"size-4"}),jsxRuntimeExports.jsx("span",{className:"text-sm",children:u}),t&&jsxRuntimeExports.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",l,")"]})]})}),jsxRuntimeExports.jsxs(TaskContent,{children:[t&&s.length>0&&jsxRuntimeExports.jsx("div",{className:"space-y-1",children:s.map((e,t)=>jsxRuntimeExports.jsx(TaskItem,{children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[getIconForFilePath(e.file),jsxRuntimeExports.jsx("span",{className:"font-medium",children:e.file}),jsxRuntimeExports.jsx("span",{className:"text-xs opacity-60",children:":"}),jsxRuntimeExports.jsxs(Tooltip,{children:[jsxRuntimeExports.jsx(TooltipTrigger,{asChild:!0,children:jsxRuntimeExports.jsx("span",{className:"text-xs underline decoration-dotted cursor-help hover:text-foreground transition-colors",children:e.line_number})}),jsxRuntimeExports.jsx(TooltipContent,{side:"bottom",className:"max-w-md overflow-x-auto",children:jsxRuntimeExports.jsx("code",{className:"whitespace-pre font-mono text-xs",children:e.content})})]})]})},`${e.file}-${e.line_number}-${t}`))}),t&&0===s.length&&jsxRuntimeExports.jsx(TaskItem,{children:jsxRuntimeExports.jsx("div",{className:"text-xs text-muted-foreground",children:"No matches found"})})]})]})},WebSearchRenderer=({toolCall:e,output:t,hasOutput:n,toolLabels:r})=>{var i;const[a,o]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),s=(null==(i=e.args)?void 0:i.query)||"";return jsxRuntimeExports.jsxs("div",{className:"border border-border rounded-xl overflow-hidden my-2 bg-card text-card-foreground",children:[jsxRuntimeExports.jsx("div",{className:"bg-gradient-to-b from-muted/60 to-muted border-b border-border",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 px-3 py-2",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1.5",children:[jsxRuntimeExports.jsx("button",{onClick:()=>{o(!0)},className:"w-2.5 h-2.5 rounded-full bg-yellow-500 cursor-pointer hover:opacity-80 transition-opacity",title:"Collapse"}),jsxRuntimeExports.jsx("button",{onClick:()=>{o(!1)},className:"w-2.5 h-2.5 rounded-full bg-green-500 cursor-pointer hover:opacity-80 transition-opacity",title:"Expand"})]}),jsxRuntimeExports.jsxs("div",{className:"flex-1 flex items-center gap-2 bg-background rounded-md px-3 py-1.5 ml-2 border border-border min-w-0",children:[jsxRuntimeExports.jsx(Globe,{className:"w-3.5 h-3.5 text-muted-foreground flex-shrink-0"}),jsxRuntimeExports.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntimeExports.jsx("span",{className:"text-xs text-foreground block truncate",children:s})}),jsxRuntimeExports.jsx(Search,{className:"w-3.5 h-3.5 text-muted-foreground flex-shrink-0"})]})]})}),!a&&jsxRuntimeExports.jsxs("div",{className:"bg-card min-h-[200px]",children:[!n&&jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center py-16 px-4",children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"w-8 h-8 text-blue-500 animate-spin mb-4"}),jsxRuntimeExports.jsx("p",{className:"text-sm text-muted-foreground",children:r.loading}),jsxRuntimeExports.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:['Searching for "',s,'"...']})]}),n&&jsxRuntimeExports.jsxs("div",{className:"p-4",children:[jsxRuntimeExports.jsx("div",{className:"mb-2 pb-2 border-b border-border",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[jsxRuntimeExports.jsx(Search,{className:"w-4 h-4"}),jsxRuntimeExports.jsx("span",{children:"Search result"})]})}),jsxRuntimeExports.jsx("div",{className:"prose prose-sm max-w-none dark:prose-invert prose-a:text-primary prose-a:no-underline hover:prose-a:underline prose-code:bg-muted/60 prose-code:px-1 prose-code:py-0.5 prose-code:rounded max-h-48 overflow-y-auto",children:jsxRuntimeExports.jsx(Markdown,{remarkPlugins,children:t})})]})]})]})},CodeMergePane=({originalCode:e,modifiedCode:t,readOnly:n=!0,className:r="",onMergedCodeChange:i,showActionButtons:a=!1,languageExtension:o,theme:s,highlightChanges:l=!0,gutter:c=!0})=>{const u=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),d=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),m=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(i);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{m.current=i},[i]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{if(console.log("CodeMergePane useEffect triggered - creating new view"),!u.current)return;d.current&&(console.log("Destroying previous view"),d.current.destroy(),d.current=null);const r=[codemirror__WEBPACK_IMPORTED_MODULE_9__.oQ,(0,_codemirror_merge__WEBPACK_IMPORTED_MODULE_8__.unifiedMergeView)({original:e,mergeControls:a,highlightChanges:l,gutter:c}),_codemirror_view__WEBPACK_IMPORTED_MODULE_6__.EditorView.editable.of(!n)];return o&&r.push(o),s&&r.push(s),r.push(_codemirror_view__WEBPACK_IMPORTED_MODULE_6__.EditorView.updateListener.of(e=>{var t;if(e.docChanged)null==(t=m.current)||t.call(m,e.state.doc.toString());else for(const t of e.transactions)for(const e of t.effects)if(e.is(_codemirror_merge__WEBPACK_IMPORTED_MODULE_8__.updateOriginalDoc))return void(0,react_dom__WEBPACK_IMPORTED_MODULE_1__.flushSync)(()=>{var t;null==(t=m.current)||t.call(m,e.value.doc.toString())})})),d.current=new _codemirror_view__WEBPACK_IMPORTED_MODULE_6__.EditorView({parent:u.current,doc:t,extensions:r}),()=>{d.current&&(d.current.destroy(),d.current=null)}},[e,t,n,a,o,s,l,c]),jsxRuntimeExports.jsx("div",{ref:u,className:`code-merge-container ${r}`,style:{width:"100%",height:"100%"}})},isSuccessOutput$1=e=>{const t=e.toLowerCase();return t.includes("success")||!t.includes("error")&&!t.includes("failed")&&!t.includes("failure")},getFileExtension=e=>{const t=e.match(/\.([^.]+)$/);return t?t[1]:"txt"},getFileName=e=>{const t=e.split(/[/\\]/);return t[t.length-1]||e},EditRenderer=({toolCall:e,output:t,hasOutput:n,toolLabels:r,defaultCollapsed:i=!1})=>{var a,o,s;const[l,c]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(i),u=(null==(a=e.args)?void 0:a.file_path)||"file",d=getFileName(u),m=getFileExtension(u),h=(null==(o=e.args)?void 0:o.old_string)||"",p=(null==(s=e.args)?void 0:s.new_string)||"",f=getLanguageExtension(m),g=n&&isSuccessOutput$1(t);return jsxRuntimeExports.jsxs("div",{className:"border border-border rounded-lg overflow-hidden my-1 bg-card text-card-foreground",children:[jsxRuntimeExports.jsx("div",{className:"px-3 py-2 border-b border-border",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[!n&&jsxRuntimeExports.jsx(LoaderCircle,{className:"w-4 h-4 text-blue-600 animate-spin"}),n&&g&&jsxRuntimeExports.jsx(CircleCheckBig,{className:"w-4 h-4 text-green-600"}),n&&!g&&jsxRuntimeExports.jsx(CircleX,{className:"w-4 h-4 text-red-500"}),jsxRuntimeExports.jsxs("div",{className:"text-sm font-medium flex items-center gap-1",children:[getIconForFilePath(u),d]}),jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground",children:n?r.completed:r.loading}),jsxRuntimeExports.jsx("div",{className:"flex-grow"}),n&&jsxRuntimeExports.jsx("button",{className:"p-1 hover:bg-muted rounded",onClick:()=>c(!l),title:l?"Expand":"Collapse",children:l?jsxRuntimeExports.jsx(ChevronDown,{className:"w-3 h-3"}):jsxRuntimeExports.jsx(ChevronUp,{className:"w-3 h-3"})})]})}),!l&&jsxRuntimeExports.jsxs("div",{className:"bg-muted/40",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-border",children:jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:"Changes made"})}),jsxRuntimeExports.jsx("div",{className:"p-3",children:jsxRuntimeExports.jsx("div",{className:"border rounded-md overflow-hidden",children:jsxRuntimeExports.jsx(CodeMergePane,{originalCode:h,modifiedCode:p,readOnly:!0,showActionButtons:!1,languageExtension:f,theme:_codemirror_theme_one_dark__WEBPACK_IMPORTED_MODULE_10__.bM,highlightChanges:!0,gutter:!0,className:"h-64"})})})]})]})},isSuccessOutput=e=>{const t=e.toLowerCase();return t.includes("success")||!t.includes("error")&&!t.includes("failed")&&!t.includes("failure")},cleanFilename=e=>e.replace(/^(?:---|\+\+\+)\s+/,"").replace(/^[ab]\//,"").trim(),parsePatchText=e=>{if(null==e||!e.trim())return[];const t=[],n=e.replace(/\r\n/g,"\n").split("\n");let r=null,i=1,a=1;const o=e=>{r={filename:e||"Patch",lines:[]},t.push(r),i=1,a=1},s=/^@@\s*-(\d+)(?:,\d+)?\s+\+(\d+)(?:,\d+)?\s*@@/;for(const e of n){if(/^\*\*\*\s*(Begin|End) Patch/.test(e))continue;const t=e.match(/^\*\*\*\s+(?:Update|Add|Delete) File:\s+(.+)/);if(t){o(t[1].trim()),e.includes("Delete File:")&&r&&r.lines.push({type:"meta",content:"File marked for deletion"});continue}if(e.startsWith("--- ")){o(cleanFilename(e));continue}if(e.startsWith("+++ ")){r?r.filename=cleanFilename(e):o(cleanFilename(e));continue}r||o("Patch");const n=e.match(s);n?(i=parseInt(n[1],10),a=parseInt(n[2],10),null==r||r.lines.push({type:"meta",content:e})):!e.startsWith("+")||e.startsWith("+++")?!e.startsWith("-")||e.startsWith("---")?e.startsWith(" ")?(r.lines.push({type:"context",content:e.slice(1),oldNumber:i||void 0,newNumber:a||void 0}),i+=1,a+=1):e.trim()&&r.lines.push({type:"meta",content:e}):(r.lines.push({type:"remove",content:e.slice(1),oldNumber:i||void 0}),i+=1):(r.lines.push({type:"add",content:e.slice(1),newNumber:a||void 0}),a+=1)}return t.filter(e=>e.lines.length>0)},ApplyPatchRenderer=({toolCall:e,output:t,hasOutput:n,toolLabels:r,defaultCollapsed:i=!1})=>{var a,o,s;const[l,c]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(i),[u,d]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),m=(null==(a=e.args)?void 0:a.patch_text)||(null==(o=e.args)?void 0:o.patch)||"",h=(null==(s=e.args)?void 0:s.cwd)||"",p=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>parsePatchText(m),[m]),f=n&&isSuccessOutput(t),g=e=>{switch(e){case"add":return"bg-green-50 text-green-900 border-l-2 border-l-green-400 dark:bg-green-950/40 dark:text-green-200 dark:border-l-green-500";case"remove":return"bg-rose-50 text-rose-900 border-l-2 border-l-rose-400 dark:bg-rose-950/40 dark:text-rose-200 dark:border-l-rose-500";case"meta":return"bg-blue-50 text-blue-800 dark:bg-blue-950/40 dark:text-blue-200";default:return"text-foreground"}},_=e=>"add"===e?"+":"remove"===e?"-":"context"===e?" ":"";return jsxRuntimeExports.jsxs("div",{className:"border border-border rounded-lg overflow-hidden my-1 bg-card text-card-foreground",children:[jsxRuntimeExports.jsx("div",{className:"px-3 py-2 border-b border-border",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[!n&&jsxRuntimeExports.jsx(LoaderCircle,{className:"w-4 h-4 text-blue-600 animate-spin"}),n&&f&&jsxRuntimeExports.jsx(CircleCheckBig,{className:"w-4 h-4 text-green-600"}),n&&!f&&jsxRuntimeExports.jsx(CircleX,{className:"w-4 h-4 text-red-500"}),jsxRuntimeExports.jsx("div",{className:"text-sm font-medium",children:"Apply Patch"}),h&&jsxRuntimeExports.jsxs("span",{className:"text-xs text-muted-foreground",children:["cwd: ",h]}),jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground",children:n?r.completed:r.loading}),jsxRuntimeExports.jsx("div",{className:"flex-grow"}),n&&jsxRuntimeExports.jsx("button",{className:"p-1 hover:bg-muted rounded",onClick:()=>c(!l),title:l?"Expand":"Collapse",children:l?jsxRuntimeExports.jsx(ChevronDown,{className:"w-3 h-3"}):jsxRuntimeExports.jsx(ChevronUp,{className:"w-3 h-3"})})]})}),!l&&jsxRuntimeExports.jsxs("div",{className:"bg-muted/40",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-border",children:[jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:"PATCH"}),jsxRuntimeExports.jsx("div",{className:"flex-grow"}),jsxRuntimeExports.jsx("button",{className:"p-1 text-muted-foreground hover:text-foreground hover:bg-muted rounded",onClick:()=>{navigator.clipboard.writeText(m),d(!0),setTimeout(()=>d(!1),2500)},title:"Copy patch",children:u?jsxRuntimeExports.jsx(CircleCheckBig,{className:"w-3 h-3"}):jsxRuntimeExports.jsx(Copy$1,{className:"w-3 h-3"})})]}),jsxRuntimeExports.jsxs("div",{className:"max-h-[360px] overflow-auto",children:[0===p.length&&jsxRuntimeExports.jsx("div",{className:"px-3 py-2 text-xs text-muted-foreground",children:"No patch content found."}),p.map(e=>jsxRuntimeExports.jsxs("div",{className:"border-b border-border last:border-b-0",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center gap-2 px-3 py-2 bg-card text-xs font-semibold text-foreground",children:jsxRuntimeExports.jsx("span",{className:"truncate",children:e.filename})}),jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-[20px_20px_1fr] gap-1 px-3 text-[12px] font-mono text-muted-foreground uppercase tracking-wide bg-card border-b border-border",children:[jsxRuntimeExports.jsx("div",{className:"text-right py-1",children:"Old"}),jsxRuntimeExports.jsx("div",{className:"text-right py-1",children:"New"}),jsxRuntimeExports.jsx("div",{className:"pl-2 py-1",children:"Code"})]}),jsxRuntimeExports.jsx("div",{className:"bg-card font-mono text-[13px]",children:e.lines.map((t,n)=>jsxRuntimeExports.jsxs("div",{className:cn("grid grid-cols-[20px_20px_1fr] gap-1 px-3 py-0.5 border-b border-border/60 last:border-b-0",g(t.type)),children:[jsxRuntimeExports.jsx("div",{className:"text-right text-muted-foreground",children:t.oldNumber??""}),jsxRuntimeExports.jsx("div",{className:"text-right text-muted-foreground",children:t.newNumber??""}),jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-1 whitespace-pre overflow-x-auto leading-tight",children:[jsxRuntimeExports.jsx("span",{className:"w-3 shrink-0 text-muted-foreground",children:_(t.type)}),jsxRuntimeExports.jsx("span",{className:"flex-1 min-w-0 whitespace-pre",children:t.content||" "})]})]},`${e.filename}-${n}`))})]},e.filename))]})]})]})},GlobRenderer=({toolCall:e,output:t,hasOutput:n,toolLabels:r})=>{var i,a;const o=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>{if(Array.isArray(t))return{files:t,error:null};if("string"==typeof t){try{const e=JSON.parse(t);if(Array.isArray(e))return{files:e,error:null}}catch{}return{files:[],error:t}}return{files:[],error:null}},[t]),s=`${(null==(i=e.args)?void 0:i.pattern)||"*"} in ${(null==(a=e.args)?void 0:a.path)||"."}`,l=`${n?r.completed:r.loading} ${s}`;return jsxRuntimeExports.jsxs(Task,{defaultOpen:!1,isStreaming:!n,children:[jsxRuntimeExports.jsx(TaskTrigger,{title:l,children:jsxRuntimeExports.jsxs("div",{className:"flex w-full cursor-pointer items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",children:[jsxRuntimeExports.jsx(FileSearch,{className:"size-4"}),jsxRuntimeExports.jsx("div",{className:"text-sm",children:l})]})}),jsxRuntimeExports.jsx(TaskContent,{children:jsxRuntimeExports.jsxs("div",{className:"max-h-96 overflow-auto",children:[o.error&&jsxRuntimeExports.jsx(TaskItem,{children:jsxRuntimeExports.jsx("div",{className:"text-sm text-red-500 whitespace-pre-wrap",children:o.error})}),!o.error&&n&&0===o.files.length&&jsxRuntimeExports.jsx(TaskItem,{children:jsxRuntimeExports.jsx("div",{className:"text-sm text-muted-foreground",children:"No matches found"})}),!o.error&&n&&o.files.map((e,t)=>jsxRuntimeExports.jsx(TaskItem,{children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[getIconForFilePath(e)||jsxRuntimeExports.jsx(Folder,{className:"w-4 h-4"}),jsxRuntimeExports.jsx("span",{className:"break-all",children:e})]})},`${e}-${t}`))]})})]})},InsertCellRenderer=({toolCall:e,output:t,hasOutput:n,toolLabels:r})=>{var i,a,o,s,l,c,u,d,m,h,p,f;const[g,_]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}),b=n&&((null==(o=null==(i=null==t?void 0:t.toLowerCase)?void 0:(a=i.call(t)).includes)?void 0:o.call(a,"error"))||(null==(c=null==(s=null==t?void 0:t.toLowerCase)?void 0:(l=s.call(t)).includes)?void 0:c.call(l,"failed")));return jsxRuntimeExports.jsx("div",{className:"my-1",children:jsxRuntimeExports.jsxs("div",{className:"relative bg-gradient-to-br from-zinc-900 to-zinc-800 rounded-xl overflow-hidden border border-border",children:[jsxRuntimeExports.jsx("div",{className:"px-4 py-1.5 bg-zinc-900/50 backdrop-blur-sm",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[!n&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-400 animate-pulse"}),jsxRuntimeExports.jsx("span",{className:"text-xs text-zinc-400",children:"Inserting"})]}),n&&!b&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-400"}),jsxRuntimeExports.jsx("span",{className:"text-xs text-zinc-400",children:"Inserted"})]}),n&&b&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"w-2 h-2 rounded-full bg-red-400"}),jsxRuntimeExports.jsx("span",{className:"text-xs text-red-400",children:"Failed"})]})]}),(null==(u=e.args)?void 0:u.file_path)&&jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-zinc-300 font-medium min-w-0",children:[jsxRuntimeExports.jsx("span",{className:"shrink-0",children:getIconForFilePath(null==(d=e.args)?void 0:d.file_path)}),jsxRuntimeExports.jsx("span",{className:"truncate min-w-0",children:null==(m=e.args)?void 0:m.file_path})]}),void 0!==(null==(h=e.args)?void 0:h.insert_position)&&jsxRuntimeExports.jsxs("div",{className:"text-xs text-zinc-500 shrink-0",children:["at index ",e.args.insert_position]}),jsxRuntimeExports.jsx("div",{className:"flex-grow shrink"}),jsxRuntimeExports.jsx("div",{className:"flex items-center gap-1 shrink-0",children:(null==(p=e.args)?void 0:p.code)&&jsxRuntimeExports.jsxs("button",{className:"p-1.5 text-zinc-400 hover:text-zinc-200 hover:bg-zinc-700/50 rounded transition-colors",onClick:()=>{return t=e.args.code,n=`${e.callId}-code`,navigator.clipboard.writeText(t),_(e=>({...e,[n]:!0})),void setTimeout(()=>_(e=>({...e,[n]:!1})),3e3);var t,n},title:"Copy code",children:[g[`${e.callId}-code`]&&jsxRuntimeExports.jsx(CircleCheckBig,{className:"w-3.5 h-3.5 text-blue-400"}),!g[`${e.callId}-code`]&&jsxRuntimeExports.jsx(Copy$1,{className:"w-3.5 h-3.5"})]})})]})}),(null==(f=e.args)?void 0:f.code)&&jsxRuntimeExports.jsx("div",{className:"border-t border-zinc-700/50",children:jsxRuntimeExports.jsx(_uiw_react_codemirror__WEBPACK_IMPORTED_MODULE_2___default(),{value:e.args.code,readOnly:!0,height:"auto",extensions:[getLanguageExtension("python"),_codemirror_view__WEBPACK_IMPORTED_MODULE_6__.EditorView.theme({".cm-content":{fontSize:"13px"},".cm-gutters":{fontSize:"13px"},"&":{backgroundColor:"transparent"}})],theme:"dark",basicSetup:{lineNumbers:!0,foldGutter:!1,highlightActiveLineGutter:!1}})}),n&&!b&&jsxRuntimeExports.jsx("div",{className:"px-4 py-2 bg-gradient-to-r from-blue-500/20 to-cyan-500/20",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx(Plus,{className:"w-3.5 h-3.5 text-blue-400"}),jsxRuntimeExports.jsx("span",{className:"text-xs text-blue-300 font-medium",children:"Cell inserted"})]})}),n&&b&&jsxRuntimeExports.jsx("div",{className:"px-4 py-2 bg-gradient-to-r from-red-500/20 to-orange-500/20",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx(CircleAlert,{className:"w-3.5 h-3.5 text-red-400"}),jsxRuntimeExports.jsx("span",{className:"text-xs text-red-300 font-medium",children:t})]})})]})})},OrderedContentRenderer=({contentItems:e=[],onCodeApply:t,onCodeApplyPreview:n,className:r,defaultCollapsed:i=!1,isStreaming:a=!1,streamingReasoningIndex:o,customRenderers:s})=>{const[l,c]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}),[u,d]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}),[m,h]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}),p=[...e].sort((e,t)=>{if(e.index!==t.index)return e.index-t.index;const n={reasoning:0,text:1,tool_call:2,tool_output:3};return n[e.type]-n[t.type]}),f=new Map;return p.forEach(e=>{"tool_output"===e.type&&e.toolOutput&&f.set(e.toolOutput.callId,e.toolOutput.output)}),jsxRuntimeExports.jsx("div",{className:cn("flex flex-col gap-2",r),children:p.map((e,t)=>{if("reasoning"===e.type&&e.content){const n=o===e.index&&a;return jsxRuntimeExports.jsxs(Reasoning,{defaultOpen:n,isStreaming:n,children:[jsxRuntimeExports.jsx(ReasoningTrigger,{}),jsxRuntimeExports.jsx(ReasoningContent,{children:e.content})]},`reasoning-${e.index}-${t}`)}if("text"===e.type&&e.content)return jsxRuntimeExports.jsx("div",{className:"markdown-body",children:jsxRuntimeExports.jsx(Markdown,{components:s,remarkPlugins,children:e.content})},`text-${e.index}-${t}`);if("tool_call"===e.type&&e.toolCall){const n=f.get(e.toolCall.callId)||null,{textContent:r,imageUrl:a}=parseMixedOutput(n),o=`tool-${e.toolCall.callId}`;m[o];const s=!!n,l=getToolLabels(e.toolCall.tool);return"interpret_image"===e.toolCall.tool?jsxRuntimeExports.jsx(InterpretImageRenderer,{toolCall:e.toolCall,output:n||"",hasOutput:s,toolLabels:l},`tool-${e.toolCall.callId}-${t}`):"web_search"===e.toolCall.tool?jsxRuntimeExports.jsx(WebSearchRenderer,{toolCall:e.toolCall,output:n||"",hasOutput:s,toolLabels:l},`tool-${e.toolCall.callId}-${t}`):"cell_execute"===e.toolCall.tool||"edit_cell"===e.toolCall.tool?jsxRuntimeExports.jsx(CellExecuteRenderer,{toolCall:e.toolCall,output:n||"",hasOutput:s,toolLabels:l,defaultCollapsed:i},`tool-${e.toolCall.callId}-${t}`):"insert_cell"===e.toolCall.tool?jsxRuntimeExports.jsx(InsertCellRenderer,{toolCall:e.toolCall,output:n||"",hasOutput:s,toolLabels:l},`tool-${e.toolCall.callId}-${t}`):"insert_markdown_cell"===e.toolCall.tool||"edit_markdown_cell"===e.toolCall.tool?jsxRuntimeExports.jsx(MarkdownToolRenderer,{toolCall:e.toolCall,output:n||"",hasOutput:s,toolLabels:l,defaultCollapsed:!0},`tool-${e.toolCall.callId}-${t}`):"read_file"===e.toolCall.tool?jsxRuntimeExports.jsx(ReadFileRenderer,{toolCall:e.toolCall,output:n||"",hasOutput:s,toolLabels:l},`tool-${e.toolCall.callId}-${t}`):"open_tab"===e.toolCall.tool?jsxRuntimeExports.jsx(OpenTabRenderer,{toolCall:e.toolCall,output:n||"",hasOutput:s,toolLabels:l},`tool-${e.toolCall.callId}-${t}`):"create_notebook"===e.toolCall.tool?jsxRuntimeExports.jsx(CreateNotebookRenderer,{toolCall:e.toolCall,output:n||"",hasOutput:s,toolLabels:l},`tool-${e.toolCall.callId}-${t}`):"list_dir"===e.toolCall.tool?jsxRuntimeExports.jsx(ListDirRenderer,{toolCall:e.toolCall,output:n,hasOutput:s,toolLabels:l},`tool-${e.toolCall.callId}-${t}`):"glob"===e.toolCall.tool?jsxRuntimeExports.jsx(GlobRenderer,{toolCall:e.toolCall,output:n,hasOutput:s,toolLabels:l},`tool-${e.toolCall.callId}-${t}`):"grep"===e.toolCall.tool?jsxRuntimeExports.jsx(GrepRenderer,{toolCall:e.toolCall,output:n,hasOutput:s,toolLabels:l},`tool-${e.toolCall.callId}-${t}`):"write_file"===e.toolCall.tool?jsxRuntimeExports.jsx(WriteFileRenderer,{toolCall:e.toolCall,output:n||"",hasOutput:s,toolLabels:l},`tool-${e.toolCall.callId}-${t}`):"edit"===e.toolCall.tool?jsxRuntimeExports.jsx(EditRenderer,{toolCall:e.toolCall,output:n||"",hasOutput:s,toolLabels:l},`tool-${e.toolCall.callId}-${t}`):"apply_patch"===e.toolCall.tool?jsxRuntimeExports.jsx(ApplyPatchRenderer,{toolCall:e.toolCall,output:n||"",hasOutput:s,toolLabels:l},`tool-${e.toolCall.callId}-${t}`):"run_cell"===e.toolCall.tool?jsxRuntimeExports.jsx(RunCellRenderer,{toolCall:e.toolCall,output:n||"",hasOutput:s,toolLabels:l},`tool-${e.toolCall.callId}-${t}`):("shell_execute"===e.toolCall.tool||e.toolCall.tool,jsxRuntimeExports.jsx(CommandLineRenderer,{toolCall:e.toolCall,output:n||"",hasOutput:s,toolLabels:l},`tool-${e.toolCall.callId}-${t}`))}return null})})},getErrorTitle=e=>{const t=e.toLowerCase();return t.includes("too large")||t.includes("file size")||t.includes("file_too_large")?"File Too Large":t.includes("authentication")||t.includes("auth")?"Authentication Error":t.includes("insufficient credits")||t.includes("credits")?"Insufficient Credits":t.includes("api key")?"API Key Issue":t.includes("connection")||t.includes("websocket")?"Connection Error":t.includes("timeout")?"Request Timeout":"Request Failed"},ErrorMessage=({errorMessage:e,requestId:t,onTryAgain:n,errorTitle:r,children:i})=>jsxRuntimeExports.jsxs("div",{className:"bg-card text-card-foreground border border-border rounded-md p-3 max-w-xl text-sm",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-2 mb-3",children:[jsxRuntimeExports.jsx("div",{className:"flex-shrink-0 mt-0.5",children:jsxRuntimeExports.jsx("svg",{className:"w-4 h-4 text-yellow-600",fill:"currentColor",viewBox:"0 0 20 20",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})})}),jsxRuntimeExports.jsx("div",{className:"flex-1",children:jsxRuntimeExports.jsx("h3",{className:"text-foreground font-medium leading-tight",children:r})})]}),jsxRuntimeExports.jsxs("div",{className:"mb-3",children:[jsxRuntimeExports.jsx("p",{className:"text-muted-foreground text-xs mb-1",children:"Error Details:"}),jsxRuntimeExports.jsx("div",{className:"bg-muted/40 border border-border rounded p-2",children:jsxRuntimeExports.jsx("code",{className:"text-foreground text-xs font-mono break-all",children:e})})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between gap-2",children:[jsxRuntimeExports.jsxs("div",{className:"flex gap-2 flex-shrink-0",children:[t&&jsxRuntimeExports.jsx("button",{onClick:()=>{t&&navigator.clipboard.writeText(t)},className:"px-2 py-1 text-xs font-medium text-muted-foreground hover:text-foreground border border-border rounded hover:border-border transition-colors",children:"Copy ID"}),i,n&&jsxRuntimeExports.jsx("button",{onClick:n,className:"px-3 py-1 text-xs font-medium text-white bg-neutral-700 hover:bg-neutral-900 rounded transition-colors",children:"Try again"})]}),jsxRuntimeExports.jsx("div",{children:t&&jsxRuntimeExports.jsxs("p",{className:"text-muted-foreground text-xs truncate flex-1",children:["ID: ",t]})})]})]}),MessageBubble=({message:e,onCodeApply:t,onCodeApplyPreview:n,onShellPermissionRequest:r,onRerunAllCellsPermissionRequest:i,streamingReasoningState:a})=>{var o,s;const l=(null==a?void 0:a.messageId)===e.id?a.reasoningIndex:void 0,[c,u]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),[d,m]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),h=e=>{r&&c&&r(c.requestId,c.command,c.dangerousPattern,e),u(null)},p=e=>{i&&d&&i(d.requestId,d.message,e),m(null)};(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{e.shellPermissionRequest&&u({requestId:e.shellPermissionRequest.requestId,command:e.shellPermissionRequest.command,dangerousPattern:e.shellPermissionRequest.dangerousPattern})},[e.shellPermissionRequest]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{e.rerunAllCellsPermissionRequest&&m({requestId:e.rerunAllCellsPermissionRequest.requestId,message:e.rerunAllCellsPermissionRequest.message})},[e.rerunAllCellsPermissionRequest]);const f="user"===e.role,g="system"===e.role,_=!(!e.shellPermissionRequest&&!e.rerunAllCellsPermissionRequest),b=cn("py-1.5 px-2 text-sm leading-[150%]",f?"rounded-lg bg-muted border border-border":g&&!_?"rounded-lg bg-yellow-50 text-yellow-700 border border-yellow-200 dark:bg-yellow-950/40 dark:text-yellow-200 dark:border-yellow-800/60":""),x={pre:({children:e})=>{const r=react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(e)[0];if(null!=r&&r.props){const{className:e,children:i}=r.props,a=/language-(\w+)(?:\[(.*?)\])?/.exec(e||""),o=a?a[1]:"",s=String(i).replace(/\n$/,"");return o&&"bash"!==o?jsxRuntimeExports.jsx(CodeView,{disableRun:!0,code:s,language:o,onCodeApply:t,onCodeApplyPreview:n}):jsxRuntimeExports.jsx("pre",{className:"bg-muted p-3 rounded-md overflow-x-auto",children:jsxRuntimeExports.jsx("code",{className:"font-mono text-sm text-primary whitespace-pre",children:s})})}return jsxRuntimeExports.jsx("pre",{children:e})},code:({children:e})=>jsxRuntimeExports.jsx(Badge,{variant:"outline",className:"bg-muted font-mono text-primary",children:e})};if(_&&g){if(c)return jsxRuntimeExports.jsx(ShellPermissionMessage,{command:c.command,dangerousPattern:c.dangerousPattern,onConfirm:()=>h(!0),onCancel:()=>h(!1)});if(d)return jsxRuntimeExports.jsx(RerunConfirmMessage,{cellCount:parseInt((null==(o=d.message.match(/\d+/))?void 0:o[0])||"0"),onConfirm:()=>p(!0),onCancel:()=>p(!1)})}return jsxRuntimeExports.jsxs("div",{className:"",children:[f&&e.context&&jsxRuntimeExports.jsx("div",{className:"flex flex-col gap-2 my-1",children:e.context.map((e,t)=>jsxRuntimeExports.jsxs("div",{children:["code"===e.type&&jsxRuntimeExports.jsx(CodeContextBadge,{icon:e.fileInfo?getIconForFileExtension(e.fileInfo):null,code:e.content,tagLabel:getCodeBadgeLabel({code:e.content,cellIndex:e.cellIndex,fileInfo:e.fileInfo})}),"output"===e.type&&jsxRuntimeExports.jsx(CodeContextBadge,{icon:jsxRuntimeExports.jsx(Ratio,{className:"w-4 h-4"}),code:e.content,tagLabel:getCodeBadgeLabel({code:e.content,cellIndex:e.cellIndex,fileInfo:e.fileInfo})})]},t))}),jsxRuntimeExports.jsx("div",{className:b,children:jsxRuntimeExports.jsx("div",{className:"",children:jsxRuntimeExports.jsxs("div",{children:[g&&jsxRuntimeExports.jsxs("div",{className:"flex items-center",children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 mr-2 animate-spin"}),jsxRuntimeExports.jsx("span",{children:e.content})]}),!f&&!g&&jsxRuntimeExports.jsx("div",{className:"markdown-body",children:e.contentItems&&e.contentItems.length>0?jsxRuntimeExports.jsx(OrderedContentRenderer,{contentItems:e.contentItems,onCodeApply:t,onCodeApplyPreview:n,isStreaming:e.isStreaming,customRenderers:x,streamingReasoningIndex:l}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[e.content&&jsxRuntimeExports.jsx(Markdown,{remarkPlugins,components:x,children:e.content}),e.toolResults&&e.toolResults.length>0&&jsxRuntimeExports.jsx(OrderedContentRenderer,{contentItems:e.toolResults.map(e=>({type:"tool_output",index:0,toolOutput:{callId:e.callId,output:e.output||""}})),onCodeApply:t,onCodeApplyPreview:n,isStreaming:e.isStreaming,customRenderers:x,streamingReasoningIndex:l})]})}),f&&jsxRuntimeExports.jsxs("div",{className:"text-foreground space-y-2",children:[e.content&&jsxRuntimeExports.jsx("div",{className:"whitespace-pre-wrap",children:e.content}),e.images&&e.images.length>0&&jsxRuntimeExports.jsx("div",{className:"mt-1 flex flex-wrap gap-2",children:e.images.map(e=>jsxRuntimeExports.jsx("div",{className:"h-16 w-16 overflow-hidden rounded border border-border bg-muted",children:jsxRuntimeExports.jsx("img",{src:e.previewUrl||`data:${e.mediaType};base64,${e.data}`,alt:e.name,className:"h-full w-full object-cover"})},e.id))})]}),e.isStreaming&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!e.content&&!(null!=(s=e.contentItems)&&s.length)&&jsxRuntimeExports.jsx("span",{className:"text-muted-foreground",children:"Planning next step..."}),jsxRuntimeExports.jsx("span",{className:"ml-1 inline-block w-2 h-4 bg-primary animate-pulse rounded-sm"})]})]})})})]})},MessageList=({messages:e,AIMode:t,messagesEndRef:n,onCodeApplyPreview:r,onCodeApply:i,onShellPermissionRequest:a,onRerunAllCellsPermissionRequest:o,onRetryLastMessage:s,streamingReasoningState:l})=>{const c=e.some(e=>e.shellPermissionRequest);if(0===e.length)return jsxRuntimeExports.jsx("div",{className:"h-full flex items-center justify-center text-center p-8",children:jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsx(Cpu,{className:"h-12 w-12 mx-auto text-muted-foreground"}),jsxRuntimeExports.jsx("h3",{className:"text-lg font-semibold",children:"How can I help you today?"}),jsxRuntimeExports.jsxs("p",{className:"text-muted-foreground text-sm",children:["ask"===t&&"Ask questions about your notebook or data.","ask"!==t&&"I can help modify your code. Tell me what you want to change."]})]})});const u=e.filter(e=>!(c&&"assistant"===e.role&&e.contentItems&&e.contentItems.some(e=>{var t;return"tool_call"===e.type&&"shell_execute"===(null==(t=e.toolCall)?void 0:t.tool)})));return jsxRuntimeExports.jsxs("div",{className:"space-y-1 pt-4 leading-[150%]",children:[u.map(e=>{const t=getErrorTitle(e.errorMessage||e.content);return e.isError&&"assistant"===e.role?jsxRuntimeExports.jsx(ErrorMessage,{errorMessage:e.errorMessage||e.content,requestId:e.errorRequestId,onTryAgain:()=>{s&&s()},errorTitle:t,children:"Insufficient Credits"===t&&jsxRuntimeExports.jsxs("button",{className:"px-3 py-1 text-xs font-medium text-white bg-blue-600 hover:bg-purple-600 rounded transition-colors flex gap-2 items-center",onClick:()=>window.open("https://www.runcell.dev/pricing","_blank"),children:[jsxRuntimeExports.jsx(Sparkles,{className:"w-3 h-3"})," Upgrade plan"]})},e.id):jsxRuntimeExports.jsx(MessageBubble,{message:e,onCodeApplyPreview:r,onCodeApply:i,onShellPermissionRequest:a,onRerunAllCellsPermissionRequest:o,streamingReasoningState:l},e.id)}),jsxRuntimeExports.jsx("div",{ref:n})]})},ShellPermissionMessage=({command:e,dangerousPattern:t,onConfirm:n,onCancel:r})=>jsxRuntimeExports.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-md p-3 max-w-xl text-sm text-foreground dark:bg-amber-950/40 dark:border-amber-800/60",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-2 mb-3",children:[jsxRuntimeExports.jsx("div",{className:"flex-shrink-0 mt-0.5",children:jsxRuntimeExports.jsx(TriangleAlert,{className:"w-4 h-4 text-amber-600 dark:text-amber-300"})}),jsxRuntimeExports.jsx("div",{className:"flex-1",children:jsxRuntimeExports.jsx("h3",{className:"text-foreground font-medium leading-tight",children:"Shell Command Permission Required"})})]}),jsxRuntimeExports.jsxs("div",{className:"mb-3",children:[jsxRuntimeExports.jsx("p",{className:"text-muted-foreground text-xs mb-2",children:"The agent is requesting permission to execute a potentially dangerous command."}),jsxRuntimeExports.jsxs("div",{className:"mb-2",children:[jsxRuntimeExports.jsx("p",{className:"text-muted-foreground text-xs mb-1",children:"Command to execute:"}),jsxRuntimeExports.jsx("div",{className:"bg-background border border-border rounded p-2",children:jsxRuntimeExports.jsx("code",{className:"text-foreground text-xs font-mono break-all",children:e})})]}),jsxRuntimeExports.jsx("div",{className:"bg-red-50 border border-red-200 rounded p-2 mt-2 dark:bg-red-950/40 dark:border-red-800/60",children:jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntimeExports.jsx(Shield,{className:"w-4 h-4 text-red-600 dark:text-red-300 flex-shrink-0 mt-0.5"}),jsxRuntimeExports.jsx("div",{className:"flex-1",children:jsxRuntimeExports.jsxs("p",{className:"text-xs text-red-700 dark:text-red-200",children:[jsxRuntimeExports.jsx("span",{className:"font-medium",children:"Security Warning:"})," ","This command contains potentially dangerous pattern:"," ",jsxRuntimeExports.jsx("code",{className:"font-mono bg-red-100 px-1 rounded dark:bg-red-900/60",children:t})]})})]})})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-end gap-2",children:[jsxRuntimeExports.jsx(Button,{size:"sm",variant:"outline",onClick:r,className:"text-xs",children:"Deny"}),jsxRuntimeExports.jsx(Button,{size:"sm",variant:"default",onClick:n,className:"text-xs bg-yellow-600 hover:bg-yellow-700 text-white",children:"Allow Execution"})]})]}),RerunConfirmMessage=({cellCount:e,onConfirm:t,onCancel:n})=>jsxRuntimeExports.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-md p-3 max-w-xl text-sm text-foreground dark:bg-blue-950/40 dark:border-blue-800/60",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-2 mb-3",children:[jsxRuntimeExports.jsx("div",{className:"flex-shrink-0 mt-0.5",children:jsxRuntimeExports.jsx("svg",{className:"w-4 h-4 text-blue-600",fill:"currentColor",viewBox:"0 0 20 20",children:jsxRuntimeExports.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})})}),jsxRuntimeExports.jsx("div",{className:"flex-1",children:jsxRuntimeExports.jsx("h3",{className:"text-foreground font-medium leading-tight",children:"Confirm Cell Execution"})})]}),jsxRuntimeExports.jsx("div",{className:"mb-3",children:jsxRuntimeExports.jsxs("p",{className:"text-muted-foreground text-xs",children:["The agent wants to rerun all ",e," cells in the notebook. This action may take some time and could affect the current state of your notebook."]})}),jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-end gap-2",children:[jsxRuntimeExports.jsx(Button,{size:"sm",variant:"outline",onClick:n,className:"text-xs",children:"Cancel"}),jsxRuntimeExports.jsx(Button,{size:"sm",variant:"default",onClick:t,className:"text-xs bg-blue-600 hover:bg-blue-700 text-white",children:"Run All Cells"})]})]}),CodeView=({code:e,language:t,onCodeApply:n,onCodeApplyPreview:r,disableRun:i})=>{const[a,o]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[s,l]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),[c,u]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),[d,m]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[h,p]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),f=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>getLanguageExtension(t),[t]);return jsxRuntimeExports.jsxs("div",{className:"bg-zinc-900 rounded-md p-2 my-2",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 p-1 border-b border-zinc-800",children:[jsxRuntimeExports.jsxs("button",{className:"p-1 text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded",onClick:async()=>{o(!0);try{const t=await(null==r?void 0:r(e,"auto"));t&&(u(t.originalCode),l(t.cellIndex))}finally{o(!1)}},title:"Apply",children:[a&&jsxRuntimeExports.jsx(LoaderCircle,{className:"w-3 h-3 animate-spin"}),!a&&jsxRuntimeExports.jsx(BetweenHorizontalEnd,{className:"w-3 h-3"})]}),!i&&jsxRuntimeExports.jsx("button",{className:"p-1 text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded",onClick:()=>{null!==s&&(null==n||n(e,"auto",s))},title:"Run",children:jsxRuntimeExports.jsx(Boxes,{className:"w-3 h-3"})}),jsxRuntimeExports.jsxs("button",{className:"p-1 text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded",onClick:()=>{navigator.clipboard.writeText(e),m(!0),setTimeout(()=>m(!1),3e3)},title:"Copy",children:[d&&jsxRuntimeExports.jsx(CircleCheckBig,{className:"w-3 h-3"}),!d&&jsxRuntimeExports.jsx(Copy$1,{className:"w-3 h-3"})]}),jsxRuntimeExports.jsx("div",{className:"flex-grow"}),jsxRuntimeExports.jsxs("button",{className:"p-1 text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded",onClick:()=>p(!h),title:h?"Expand":"Collapse",children:[h&&jsxRuntimeExports.jsx(ChevronDown,{className:"w-3 h-3"}),!h&&jsxRuntimeExports.jsx(ChevronUp,{className:"w-3 h-3"})]})]}),!h&&null===c&&jsxRuntimeExports.jsx(_uiw_react_codemirror__WEBPACK_IMPORTED_MODULE_2___default(),{value:e,readOnly:!0,height:"auto",extensions:[f],theme:"dark"}),!h&&null!==c&&jsxRuntimeExports.jsx(CodeMergePane,{originalCode:c,modifiedCode:e,readOnly:!0,showActionButtons:!1,languageExtension:f,theme:_codemirror_theme_one_dark__WEBPACK_IMPORTED_MODULE_10__.bM,className:"h-full"})]})};function Input({className:e,type:t,...n}){return jsxRuntimeExports.jsx("input",{type:t,"data-slot":"input",className:cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}function composeEventHandlers(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function usePrevious(e){const t=react__WEBPACK_IMPORTED_MODULE_0__.useRef({value:e,previous:e});return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var SWITCH_NAME="Switch",[createSwitchContext,createSwitchScope]=createContextScope(SWITCH_NAME),[SwitchProvider,useSwitchContext]=createSwitchContext(SWITCH_NAME),Switch$1=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:l="on",onCheckedChange:c,form:u,...d}=e,[m,h]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),p=useComposedRefs(t,e=>h(e)),f=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1),g=!m||u||!!m.closest("form"),[_,b]=useControllableState({prop:i,defaultProp:a??!1,onChange:c,caller:SWITCH_NAME});return jsxRuntimeExports.jsxs(SwitchProvider,{scope:n,checked:_,disabled:s,children:[jsxRuntimeExports.jsx(Primitive.button,{type:"button",role:"switch","aria-checked":_,"aria-required":o,"data-state":getState(_),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:p,onClick:composeEventHandlers(e.onClick,e=>{b(e=>!e),g&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})}),g&&jsxRuntimeExports.jsx(SwitchBubbleInput,{control:m,bubbles:!f.current,name:r,value:l,checked:_,required:o,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});Switch$1.displayName=SWITCH_NAME;var THUMB_NAME="SwitchThumb",SwitchThumb=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,i=useSwitchContext(THUMB_NAME,n);return jsxRuntimeExports.jsx(Primitive.span,{"data-state":getState(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});SwitchThumb.displayName=THUMB_NAME;var BUBBLE_INPUT_NAME="SwitchBubbleInput",SwitchBubbleInput=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},a)=>{const o=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),s=useComposedRefs(o,a),l=usePrevious(n),c=useSize(t);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{const e=o.current;if(!e)return;const t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked").set;if(l!==n&&i){const t=new Event("click",{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[l,n,r]),jsxRuntimeExports.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:s,style:{...i.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function getState(e){return e?"checked":"unchecked"}SwitchBubbleInput.displayName=BUBBLE_INPUT_NAME;var Root=Switch$1,Thumb=SwitchThumb;function Switch({className:e,...t}){return jsxRuntimeExports.jsx(Root,{"data-slot":"switch",className:cn("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:jsxRuntimeExports.jsx(Thumb,{"data-slot":"switch-thumb",className:cn("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}const ClaudeIcon=({className:e,style:t})=>jsxRuntimeExports.jsxs("svg",{className:e,height:"1em",style:{flex:"none",lineHeight:1,...t},viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("title",{children:"Claude"}),jsxRuntimeExports.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z",fill:"#D97757",fillRule:"nonzero"})]}),OpenAIIcon=({className:e,style:t})=>jsxRuntimeExports.jsxs("svg",{className:e,height:"1em",style:{flex:"none",lineHeight:1,...t},viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("title",{children:"OpenAI"}),jsxRuntimeExports.jsx("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z",fill:"currentColor"})]}),GeminiIcon=({className:e,style:t})=>jsxRuntimeExports.jsxs("svg",{className:e,height:"1em",style:{flex:"none",lineHeight:1,...t},viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("title",{children:"Gemini"}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsxs("linearGradient",{id:"lobe-icons-gemini-fill",x1:"0%",x2:"68.73%",y1:"100%",y2:"30.395%",children:[jsxRuntimeExports.jsx("stop",{offset:"0%",stopColor:"#1C7DFF"}),jsxRuntimeExports.jsx("stop",{offset:"52.021%",stopColor:"#1C69FF"}),jsxRuntimeExports.jsx("stop",{offset:"100%",stopColor:"#F0DCD6"})]})}),jsxRuntimeExports.jsx("path",{d:"M12 24A14.304 14.304 0 000 12 14.304 14.304 0 0012 0a14.305 14.305 0 0012 12 14.305 14.305 0 00-12 12",fill:"url(#lobe-icons-gemini-fill)",fillRule:"nonzero"})]}),DeepSeekIcon=({className:e,style:t})=>jsxRuntimeExports.jsxs("svg",{className:e,height:"1em",style:{flex:"none",lineHeight:1,...t},viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("title",{children:"DeepSeek"}),jsxRuntimeExports.jsx("path",{d:"M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z",fill:"#4D6BFE"})]}),KimiIcon=({className:e,style:t})=>jsxRuntimeExports.jsxs("svg",{fill:"currentColor",fillRule:"evenodd",width:"1em",height:"1em",style:{flex:"none",lineHeight:1,...t},viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:e,children:[jsxRuntimeExports.jsx("title",{children:"Kimi"}),jsxRuntimeExports.jsx("path",{d:"M19.738 5.776c.163-.209.306-.4.457-.585.07-.087.064-.153-.004-.244-.655-.861-.717-1.817-.34-2.787.283-.73.909-1.072 1.674-1.145.477-.045.945.004 1.379.236.57.305.902.77 1.01 1.412.086.512.07 1.012-.075 1.508-.257.878-.888 1.333-1.753 1.448-.718.096-1.446.108-2.17.157-.056.004-.113 0-.178 0z",fill:"#027AFF"}),jsxRuntimeExports.jsx("path",{d:"M17.962 1.844h-4.326l-3.425 7.81H5.369V1.878H1.5V22h3.87v-8.477h6.824a3.025 3.025 0 002.743-1.75V22h3.87v-8.477a3.87 3.87 0 00-3.588-3.86v-.01h-2.125a3.94 3.94 0 002.323-2.12l2.545-5.689z"})]}),QwenIcon=({className:e,style:t})=>jsxRuntimeExports.jsxs("svg",{style:{flex:"none",lineHeight:1,...t},width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:e,children:[jsxRuntimeExports.jsx("title",{children:"Qwen"}),jsxRuntimeExports.jsx("path",{d:"M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z",fill:"currentColor",fillRule:"nonzero"}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsxs("linearGradient",{x1:"0%",x2:"100%",y1:"0%",y2:"0%",children:[jsxRuntimeExports.jsx("stop",{offset:"0%",stopColor:"#6336E7",stopOpacity:".84"}),jsxRuntimeExports.jsx("stop",{offset:"100%",stopColor:"#6F69F7",stopOpacity:".84"})]})})]}),GrokIcon=({className:e,style:t})=>jsxRuntimeExports.jsxs("svg",{fill:"currentColor",fillRule:"evenodd",width:"1em",height:"1em",style:{flex:"none",lineHeight:1,...t},viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:e,children:[jsxRuntimeExports.jsx("title",{children:"Grok"}),jsxRuntimeExports.jsx("path",{d:"M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815"})]}),MinimaxIcon=({className:e,style:t})=>jsxRuntimeExports.jsxs("svg",{className:e,height:"1em",style:{flex:"none",lineHeight:1,...t},viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("title",{children:"Minimax"}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsxs("linearGradient",{id:"lobe-icons-minimax-fill",x1:"0%",x2:"100.182%",y1:"50.057%",y2:"50.057%",children:[jsxRuntimeExports.jsx("stop",{offset:"0%",stopColor:"#E2167E"}),jsxRuntimeExports.jsx("stop",{offset:"100%",stopColor:"#FE603C"})]})}),jsxRuntimeExports.jsx("path",{d:"M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z",fill:"url(#lobe-icons-minimax-fill)",fillRule:"nonzero"})]}),ZaiIcon=({className:e,style:t})=>jsxRuntimeExports.jsxs("svg",{className:e,height:"1em",style:{flex:"none",lineHeight:1,...t},viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("title",{children:"Z.ai"}),jsxRuntimeExports.jsx("path",{d:"M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z",fill:"currentColor",fillRule:"evenodd"})]}),CloudIcon=({className:e})=>jsxRuntimeExports.jsx("svg",{className:e,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.5 16a3.5 3.5 0 01-.369-6.98 4 4 0 117.753-1.977A4.5 4.5 0 1113.5 16h-8z"})});function getProviderIcon(e){const t=e.toLowerCase();return t.includes("claude")||t.includes("anthropic")?ClaudeIcon:t.includes("gpt")||t.includes("openai")?OpenAIIcon:t.includes("gemini")||t.includes("google")?GeminiIcon:t.includes("deepseek")?DeepSeekIcon:t.includes("qwen")?QwenIcon:t.includes("kimi")?KimiIcon:t.includes("grok")?GrokIcon:t.includes("minimax")?MinimaxIcon:t.includes("z-ai")?ZaiIcon:CloudIcon}const DEFAULT_STORAGE_KEY$1="runcell-models-list",ModelList=({fetchModels:e,saasUrl:t="",onModelChange:n,localStorageKey:r=DEFAULT_STORAGE_KEY$1})=>{const[i,a]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),[o,s]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),[l,c]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(""),[u,d]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!0),[m,h]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),p=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(()=>{try{const e=localStorage.getItem(r);if(e)return JSON.parse(e)}catch(e){console.error("Error loading models from localStorage:",e)}return null},[r]),f=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(e=>{try{localStorage.setItem(r,JSON.stringify(e)),window.dispatchEvent(new CustomEvent("models-updated"))}catch(e){console.error("Error saving models to localStorage:",e)}},[r]),g=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((e,t)=>{if(!t)return e;const n=new Map(t.map(e=>[e.value,e.enabled]));return e.map(e=>({...e,enabled:n.has(e.value)?n.get(e.value):e.enabled}))},[]),_=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(async()=>{d(!0),h(null);try{const t=await e(),n=p(),r=g(t.models,n);a(r),s(r),f(r)}catch(e){h(e instanceof Error?e.message:"An error occurred"),console.error("Error fetching models:",e);const t=p();t&&(a(t),s(t))}finally{d(!1)}},[e,p,f,g]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{_()},[_]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{const e=l.toLowerCase().trim();s(e?i.filter(t=>t.label.toLowerCase().includes(e)||t.value.toLowerCase().includes(e)):i)},[l,i]),jsxRuntimeExports.jsxs("div",{className:"w-full max-w-4xl bg-background border rounded-lg p-6 text-sm",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center justify-between mb-6",children:jsxRuntimeExports.jsx("h2",{className:"text-xl font-semibold text-foreground",children:"Models"})}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[jsxRuntimeExports.jsx("div",{className:"flex-1 relative",children:jsxRuntimeExports.jsx(Input,{type:"text",placeholder:"Add or search model",value:l,onChange:e=>c(e.target.value)})}),jsxRuntimeExports.jsx(TooltipProvider,{children:jsxRuntimeExports.jsxs(Tooltip,{children:[jsxRuntimeExports.jsx(TooltipTrigger,{asChild:!0,children:jsxRuntimeExports.jsx(Button,{variant:"ghost",size:"icon",onClick:_,disabled:u,children:jsxRuntimeExports.jsx(RefreshCw,{className:cn("w-4 h-4",u&&"animate-spin")})})}),jsxRuntimeExports.jsx(TooltipContent,{children:jsxRuntimeExports.jsx("p",{children:"Refresh models"})})]})})]}),m&&jsxRuntimeExports.jsxs("div",{className:"mb-4 p-3 bg-destructive/10 border border-destructive rounded-md text-destructive",children:["Error: ",m]}),u&&0===i.length&&jsxRuntimeExports.jsx("div",{className:"text-center py-6 text-muted-foreground",children:"Loading models..."}),!u&&0===o.length&&jsxRuntimeExports.jsx("div",{className:"text-center py-6 text-muted-foreground",children:l?"No models found matching your search":"No models available"}),jsxRuntimeExports.jsx("div",{className:"space-y-1",children:o.map(e=>{const r=getProviderIcon(e.value);return jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between px-4 py-3 rounded-lg bg-muted/50 hover:bg-muted transition-colors border",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[jsxRuntimeExports.jsx(r,{className:"w-4 h-4 flex-shrink-0"}),jsxRuntimeExports.jsx("span",{className:"font-normal text-foreground",children:e.label}),e.reasoning&&jsxRuntimeExports.jsx(Brain,{className:"w-4 h-4 flex-shrink-0 text-muted-foreground"})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[!e.available&&jsxRuntimeExports.jsx(Button,{variant:"outline",size:"sm",onClick:()=>window.open(`${t}/pricing`,"_blank"),className:"text-xs",children:"Upgrade"}),e.available&&jsxRuntimeExports.jsx(Switch,{checked:e.enabled,onCheckedChange:()=>(async(e,t)=>{const r=i.map(n=>n.value===e?{...n,enabled:!t}:n);a(r),f(r);const o=l.toLowerCase().trim();s(o?r.filter(e=>e.label.toLowerCase().includes(o)||e.value.toLowerCase().includes(o)):r),null==n||n(r)})(e.value,e.enabled)})]})]},e.value)})})]})},isFolder=e=>Array.isArray(e.items),FileTree=({items:e,className:t,defaultExpanded:n=!1,selectedPath:r,onSelect:i,pathSeparator:a="/"})=>{const o=(e,t)=>{const s=[...t,e.name],l=s.join(a),c=r===l;return isFolder(e)?jsxRuntimeExports.jsxs(Collapsible,{defaultOpen:n,children:[jsxRuntimeExports.jsx(CollapsibleTrigger,{asChild:!0,children:jsxRuntimeExports.jsxs(Button,{variant:"ghost",size:"sm",className:cn("group w-full justify-start gap-2 font-normal",c&&"bg-accent text-accent-foreground"),children:[jsxRuntimeExports.jsx(ChevronRight,{className:"text-muted-foreground transition-transform group-data-[state=open]:rotate-90"}),jsxRuntimeExports.jsx(Folder,{className:"size-4 text-muted-foreground"}),jsxRuntimeExports.jsx("span",{className:"truncate",children:e.name})]})}),jsxRuntimeExports.jsx(CollapsibleContent,{className:"ml-5 mt-1",children:jsxRuntimeExports.jsx("div",{className:"flex flex-col gap-1",children:e.items.map(e=>o(e,s))})})]},l):jsxRuntimeExports.jsxs(Button,{variant:"ghost",size:"sm",className:cn("w-full justify-start gap-2 font-normal",c&&"bg-accent text-accent-foreground"),onClick:()=>null==i?void 0:i(e,l),children:[getIconForFilePath(e.name),jsxRuntimeExports.jsx("span",{className:"truncate",children:e.name})]},l)};return jsxRuntimeExports.jsx("div",{className:cn("flex flex-col gap-1",t),children:e.map(e=>o(e,[]))})},avatarVariants=cva("relative flex size-10 shrink-0 overflow-hidden rounded-full",{variants:{size:{sm:"size-6",default:"size-10",lg:"size-12",xl:"size-16"}},defaultVariants:{size:"default"}});function Avatar({className:e,size:t,children:n,...r}){return jsxRuntimeExports.jsx("div",{className:cn(avatarVariants({size:t}),e),...r,children:n})}function AvatarImage({className:e,...t}){return jsxRuntimeExports.jsx("img",{className:cn("aspect-square size-full object-cover",e),...t})}function AvatarFallback({className:e,children:t,...n}){return jsxRuntimeExports.jsx("div",{className:cn("flex size-full items-center justify-center rounded-full bg-muted text-sm font-medium text-muted-foreground",e),...n,children:t})}const progressCircleVariants=cva("relative inline-flex items-center justify-center",{variants:{size:{sm:"size-8",default:"size-12",lg:"size-16",xl:"size-20"}},defaultVariants:{size:"default"}});function ProgressCircle({children:e,progress:t=0,strokeWidth:n=3,size:r,className:i,progressClassName:a,backgroundClassName:o,showPercentage:s=!1,dynamicColor:l=!1,...c}){const u=Math.min(100,Math.max(0,t)),d=20-n/2,m=2*Math.PI*d,h=m-u/100*m,p=l?u<25?"stroke-primary":u<50?"stroke-green-500 dark:stroke-green-400":u<75?"stroke-yellow-500 dark:stroke-yellow-400":"stroke-red-500 dark:stroke-red-400":void 0;return jsxRuntimeExports.jsxs("div",{className:cn(progressCircleVariants({size:r}),i),...c,children:[jsxRuntimeExports.jsxs("svg",{className:"absolute inset-0 size-full -rotate-90 transform",width:"100%",height:"100%",viewBox:"0 0 40 40",children:[jsxRuntimeExports.jsx("circle",{cx:"20",cy:"20",r:d,strokeWidth:n,fill:"none",className:cn("stroke-gray-200 dark:stroke-gray-700",o)}),jsxRuntimeExports.jsx("circle",{cx:"20",cy:"20",r:d,strokeWidth:n,fill:"none",strokeDasharray:m,strokeDashoffset:h,strokeLinecap:"round",className:cn("stroke-primary transition-all duration-300 ease-in-out",p,a)})]}),jsxRuntimeExports.jsx("div",{className:"relative z-10 flex items-center justify-center",children:s&&!e?jsxRuntimeExports.jsxs("span",{className:"text-xs font-medium text-foreground",children:[Math.round(u),"%"]}):e})]})}const MentionBadges=({text:e,references:t})=>{const n=/@(files:[.a-zA-Z0-9_-]+\([a-zA-Z0-9]+\))/g,r=new Set,i=[];let a;for(;null!==(a=n.exec(e));){const e=a[1];if(!r.has(e)){r.add(e);const n=t.find(t=>t.id===e);n&&i.push(n)}}return 0===i.length?null:jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap gap-1 mt-2 pt-2 border-t border-border",children:[jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground mr-2",children:"Referenced:"}),i.map((e,t)=>jsxRuntimeExports.jsxs(Badge,{variant:"outline",className:"text-xs bg-blue-50 text-blue-700 border-blue-200 dark:bg-blue-950/40 dark:text-blue-200 dark:border-blue-800/60",children:["@",e.name||e.filename||e.id]},`ref-${e.id}-${t}`))]})};function describeEnvironment(e){return e?e.isHomebrew?"Homebrew Python environment":e.isConda?"Conda environment":e.isVenv?"Virtual environment":"System Python environment":"Current Jupyter environment"}function translateUpgradeError(e,t){const n=e.toLowerCase();return n.includes("permission denied")||n.includes("errno 13")?null!=t&&t.isConda?{message:"Permission denied. Try activating your conda environment and running the upgrade there.",canRetry:!1,manualInstructions:`Activate your conda environment and run:\n${t.pythonExecutable} -m pip install --upgrade runcell`}:null!=t&&t.isVenv?{message:"Permission denied. Your virtual environment may need to be recreated with proper permissions.",canRetry:!1,manualInstructions:`Try recreating your virtual environment or run:\n${t.pythonExecutable} -m pip install --upgrade runcell`}:{message:"Permission denied. Try running Jupyter as administrator or use a user-writable environment.",canRetry:!1,manualInstructions:`Run as administrator:\n${(null==t?void 0:t.pythonExecutable)||"python"} -m pip install --upgrade runcell`}:n.includes("network")||n.includes("connection")||n.includes("timeout")||n.includes("pypi")?{message:"Network error while downloading the update. Check your internet connection.",canRetry:!0,manualInstructions:void 0}:n.includes("no space")||n.includes("disk full")||n.includes("errno 28")?{message:"Not enough disk space to install the update.",canRetry:!1,manualInstructions:"Free up disk space and try again, or install manually to a different location."}:n.includes("conflict")||n.includes("dependency")||n.includes("requires")?{message:"Package dependency conflict detected. This might require manual resolution.",canRetry:!1,manualInstructions:`Check for conflicting packages and try:\n${(null==t?void 0:t.pythonExecutable)||"python"} -m pip install --upgrade --force-reinstall runcell`}:{message:"Upgrade failed due to an unexpected error.",canRetry:!0,manualInstructions:`Try manual installation:\n${(null==t?void 0:t.pythonExecutable)||"python"} -m pip install --upgrade runcell`}}const UpgradeEnvironmentDetails=({env:e})=>{const t=describeEnvironment(e),n=jsxRuntimeExports.jsxs("div",{className:"text-[11px] leading-relaxed space-y-1 max-w-[280px]",children:[jsxRuntimeExports.jsxs("div",{className:"break-all",children:["Python: ",(null==e?void 0:e.pythonExecutable)||"unknown"]}),jsxRuntimeExports.jsxs("div",{className:"break-all",children:["Pip: ",(null==e?void 0:e.pipCommand)||"unknown"]}),(null==e?void 0:e.prefix)&&jsxRuntimeExports.jsxs("div",{className:"break-all",children:["Prefix: ",e.prefix]}),!1===(null==e?void 0:e.installWritable)&&jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-1 text-amber-300 mt-1",children:[jsxRuntimeExports.jsx(TriangleAlert,{className:"h-3 w-3 shrink-0 mt-0.5"}),jsxRuntimeExports.jsx("span",{children:"Install path might be read-only"})]})]});return jsxRuntimeExports.jsxs(Tooltip,{children:[jsxRuntimeExports.jsx(TooltipTrigger,{asChild:!0,children:jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground underline decoration-dotted underline-offset-2 cursor-help hover:text-foreground transition-colors",children:t})}),jsxRuntimeExports.jsx(TooltipContent,{side:"top",sideOffset:4,className:"!z-[9999999]",children:n})]})},UpgradeNotification=({currentVersion:e,latestVersion:t,packageName:n="runcell",environment:r,onUpgrade:i,onLearnMore:a,onClose:o,initialStatus:s="idle",initialMessage:l=null,initialCanRetry:c=!1,initialManualInstructions:u=null})=>{const[d,m]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(s),[h,p]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(l),[f,g]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(c),[_,b]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(u),x="running"===d,E="success"===d,y=E?"Restart JupyterLab to finish":x?"Upgrading...":"Upgrade";return jsxRuntimeExports.jsx("div",{className:"w-[360px] max-w-[90vw] bg-card text-card-foreground rounded-lg shadow-lg border border-border border-l-4 border-l-blue-500",children:jsxRuntimeExports.jsxs("div",{className:"p-3",children:[jsxRuntimeExports.jsxs("div",{className:"flex gap-2.5 mb-3",children:[jsxRuntimeExports.jsx(Info$2,{className:"h-5 w-5 text-blue-500 shrink-0 mt-0.5"}),jsxRuntimeExports.jsx("div",{className:"flex-1 min-w-0",children:jsxRuntimeExports.jsxs("div",{className:"flex items-start justify-between gap-2",children:[jsxRuntimeExports.jsxs("div",{className:"min-w-0",children:[jsxRuntimeExports.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"Runcell update available"}),jsxRuntimeExports.jsxs("p",{className:"text-[11px] text-muted-foreground",children:["Latest ",t," - Current ",e]})]}),jsxRuntimeExports.jsx(Button,{variant:"ghost",size:"icon",onClick:o,className:"h-6 w-6 -mt-1 -mr-1 rounded-full hover:bg-muted shrink-0",children:jsxRuntimeExports.jsx(X$4,{className:"h-3.5 w-3.5"})})]})})]}),jsxRuntimeExports.jsx("div",{className:"mb-3",children:jsxRuntimeExports.jsx(UpgradeEnvironmentDetails,{env:r})}),h&&jsxRuntimeExports.jsxs("div",{className:"mb-3",children:[jsxRuntimeExports.jsx("div",{className:"rounded-md border p-2 text-[11px] break-words "+("success"===d?"border-green-200 bg-green-50 text-green-800":"blocked"===d?"border-amber-200 bg-amber-50 text-amber-800":"manual_required"===d?"border-blue-200 bg-blue-50 text-blue-800":"border-red-200 bg-red-50 text-red-800"),children:h}),_&&("error"===d||"manual_required"===d)&&jsxRuntimeExports.jsxs("div",{className:"mt-2 rounded-md border border-border bg-muted/40 p-2",children:[jsxRuntimeExports.jsx("div",{className:"text-[10px] text-muted-foreground mb-1 font-medium",children:"Manual Installation:"}),jsxRuntimeExports.jsx("pre",{className:"text-[10px] text-foreground font-mono whitespace-pre-wrap break-all",children:_})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex flex-wrap gap-2",children:[("idle"===d||"error"===d&&f)&&jsxRuntimeExports.jsxs(Button,{onClick:async()=>{if(r&&!1===r.installWritable)return m("manual_required"),p("Cannot automatically upgrade: Installation directory is read-only."),g(!1),void b(`Please install manually using:\n${r.pythonExecutable} -m pip install --upgrade ${n}`);m("running"),p(null),g(!1),b(null);try{const e=await i();if(e.needsBrew){const e=`Detected Homebrew-managed Jupyter. Please run "brew upgrade ${n}".`;return m("blocked"),p(e),void g(!1)}if(!e.success){const t=translateUpgradeError(e.error||e.stderr||"Upgrade failed. Please check logs.",r);return m("error"),p(t.message),g(t.canRetry),void(t.manualInstructions&&b(t.manualInstructions))}m("success"),p("Upgrade finished. Restart JupyterLab to load the new version."),g(!1)}catch(e){const t=translateUpgradeError((null==e?void 0:e.message)||"Unknown error occurred",r);m("error"),p(t.message),g(t.canRetry),t.manualInstructions&&b(t.manualInstructions)}},size:"sm",disabled:x,className:"flex-1 h-8 text-xs",children:[x&&jsxRuntimeExports.jsx(LoaderCircle,{className:"h-3 w-3 mr-2 animate-spin"}),"error"===d&&f?"Try Again":y]}),E&&jsxRuntimeExports.jsxs(Button,{onClick:o,size:"sm",variant:"outline",className:"flex-1 h-8 text-xs",children:[jsxRuntimeExports.jsx(CircleCheck,{className:"h-3 w-3 mr-2"}),"Got it"]}),("manual_required"===d||"error"===d&&!f)&&jsxRuntimeExports.jsxs(Button,{onClick:()=>{a?a():window.open("https://www.runcell.dev","_blank")},size:"sm",className:"flex-1 h-8 text-xs",children:[jsxRuntimeExports.jsx(ExternalLink,{className:"h-3 w-3 mr-1.5"}),"Learn More"]}),"idle"!==d&&"running"!==d&&jsxRuntimeExports.jsx(Button,{onClick:()=>{m("idle"),p(null),g(!1),b(null)},size:"sm",variant:"ghost",className:"h-8 text-xs px-3",children:"Dismiss"})]})]})})},contextUsageBarVariants=cva("relative inline-flex items-center justify-center cursor-default",{variants:{size:{sm:"size-4",default:"size-[18px]",lg:"size-6",xl:"size-8"}},defaultVariants:{size:"default"}}),formatTokenCount=e=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toString();function getUsageColor(e,t={green:50,yellow:75,orange:90}){return e<t.green?"#22c55e":e<t.yellow?"#eab308":e<t.orange?"#f97316":"#ef4444"}function ContextUsageBar({totalTokens:e,inputTokens:t,outputTokens:n,contextWindow:r,size:i,className:a,strokeWidth:o=2.5,showTooltip:s=!0,thresholds:l}){const c=t,u=r>0?Math.min(100,c/r*100):0,d=getUsageColor(u,l),m=r-c;if(0===e)return null;const h="sm"===i?16:"lg"===i?24:"xl"===i?32:18,p=(h-o)/2,f=2*Math.PI*p,g=f-u/100*f,_=jsxRuntimeExports.jsx("div",{className:cn(contextUsageBarVariants({size:i}),a),children:jsxRuntimeExports.jsxs("svg",{width:h,height:h,className:"absolute",style:{transform:"rotate(-90deg)"},children:[jsxRuntimeExports.jsx("circle",{cx:h/2,cy:h/2,r:p,fill:"none",className:"stroke-gray-200 dark:stroke-gray-700",strokeWidth:o}),jsxRuntimeExports.jsx("circle",{cx:h/2,cy:h/2,r:p,fill:"none",stroke:d,strokeWidth:o,strokeLinecap:"round",strokeDasharray:f,strokeDashoffset:g,style:{transition:"stroke-dashoffset 0.3s ease"}})]})});return s?jsxRuntimeExports.jsxs(Tooltip,{children:[jsxRuntimeExports.jsx(TooltipTrigger,{asChild:!0,children:_}),jsxRuntimeExports.jsx(TooltipContent,{side:"top",className:"text-xs whitespace-pre-line",children:jsxRuntimeExports.jsxs("div",{className:"space-y-1",children:[jsxRuntimeExports.jsxs("div",{children:["Context: ",formatTokenCount(c)," /"," ",formatTokenCount(r)," (",u.toFixed(1),"%)"]}),jsxRuntimeExports.jsxs("div",{children:["Remaining: ",formatTokenCount(m)]}),jsxRuntimeExports.jsxs("div",{children:["Last output: ",formatTokenCount(n)]})]})})]}):_}function Kbd({className:e,...t}){return jsxRuntimeExports.jsx("kbd",{"data-slot":"kbd",className:cn("bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none","[&_svg:not([class*='size-'])]:size-3","[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",e),...t})}const SelectionToolbar=({actions:e,className:t,logo:n})=>e.length?jsxRuntimeExports.jsxs("div",{className:cn("flex items-center gap-1 rounded-md border border-border bg-background px-1 py-0.5 text-xs text-foreground shadow-lg",t),children:[n&&jsxRuntimeExports.jsx("div",{className:"pl-2 flex items-center",children:n}),e.map((e,t)=>jsxRuntimeExports.jsxs("button",{type:"button",className:"inline-flex items-center gap-1 rounded-md border border-transparent hover:border-border px-2 py-1 text-xs text-foreground transition-colors hover:bg-muted",onClick:e.onClick,title:e.title??e.label,"aria-label":e.label,children:[jsxRuntimeExports.jsx("span",{children:e.label}),e.kbd&&jsxRuntimeExports.jsx(Kbd,{children:e.kbd})]},e.id??`${e.label}-${t}`))]}):null,QuickFix=react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function({defaultValue:e,placeholder:t="Edit selected code",onSubmit:n,onClose:r,disabled:i,loading:a,allowEmptySubmit:o,submitLabel:s,submitIcon:l,submitAriaLabel:c,rows:u=2,autoFocus:d,className:m},h){const[p,f]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(e??""),g=i||a,_=g||!o&&!p.trim(),b=a?jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin"}):l??jsxRuntimeExports.jsx(Send,{className:"h-4 w-4"});return jsxRuntimeExports.jsxs("div",{className:cn("relative flex items-start gap-3 rounded-xl border border-border bg-popover px-4 py-3 pb-12 text-sm text-foreground shadow-lg",i&&"opacity-50",m),children:[jsxRuntimeExports.jsx("textarea",{ref:h,value:p,placeholder:t,onChange:e=>f(e.target.value),onKeyDown:e=>{"Escape"===e.key&&(null==r||r()),"Enter"===e.key&&!e.shiftKey&&!e.nativeEvent.isComposing&&n&&(e.preventDefault(),_||n(p))},disabled:g,rows:u,autoFocus:d,className:cn("w-full min-w-0 flex-1 bg-transparent","resize-none outline-none","text-sm leading-5 text-foreground","placeholder:text-muted-foreground","pr-10"),"aria-label":"Quick fix input"}),jsxRuntimeExports.jsx("button",{type:"button",className:cn("absolute right-2 top-2 inline-flex h-9 w-9 items-center justify-center rounded-md border border-transparent text-muted-foreground transition-colors hover:border-border hover:bg-muted hover:text-foreground",i&&"pointer-events-none"),"aria-label":"Close",onClick:()=>{f(""),null==r||r()},children:jsxRuntimeExports.jsx(X$4,{className:"h-4 w-4"})}),n&&jsxRuntimeExports.jsx("button",{type:"button",className:cn(s?"absolute right-3 bottom-3 inline-flex h-8 items-center gap-1.5 !rounded-full bg-primary px-3 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary/90":"absolute right-3 bottom-3 inline-flex h-8 w-8 items-center justify-center !rounded-full bg-primary text-primary-foreground transition-colors hover:bg-primary/90","disabled:pointer-events-none disabled:opacity-50"),"aria-label":c||s||"Send",onClick:()=>{_||n(p)},disabled:_,children:s?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:s}),b]}):b})]})});QuickFix.displayName="QuickFix";const DEFAULT_STORAGE_KEY="runcell-models-list",DEFAULT_MODEL_FALLBACK=[{value:"anthropic/claude-haiku-4-5",label:"claude-4.5-haiku",enabled:!0,available:!0,reasoning:!0},{value:"openai/gpt-5.1",label:"gpt-5.1",enabled:!0,available:!0,reasoning:!0},{value:"gemini/gemini-2.5-pro",label:"gemini-2.5-pro",enabled:!0,available:!0}],DEFAULT_SAFE_MODEL=DEFAULT_MODEL_FALLBACK[0].value;function useModels(e={}){const{fetchModels:t,localStorageKey:n=DEFAULT_STORAGE_KEY,filterEnabled:r=!0,filterAvailable:i=!0}=e,[a,o]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),[s,l]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[c,u]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),d=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(async()=>{if(!t)return null;try{return(await t()).models}catch(e){throw console.error("Error fetching models from API:",e),e}},[t]),m=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(e=>{try{localStorage.setItem(n,JSON.stringify(e)),window.dispatchEvent(new CustomEvent("models-updated"))}catch(e){console.error("Error saving models to localStorage:",e)}},[n]),h=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(e=>{let t=e;return r&&(t=t.filter(e=>e.enabled)),i&&(t=t.filter(e=>e.available)),t.map(e=>({value:e.value,label:e.label,Icon:getProviderIcon(e.value),reasoning:e.reasoning}))},[r,i]),p=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(()=>{m(DEFAULT_MODEL_FALLBACK);const e=h(DEFAULT_MODEL_FALLBACK);o(e)},[h,m]),f=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(async()=>{l(!0),u(null);try{const e=localStorage.getItem(n);if(e){const t=JSON.parse(e),n=h(t);return void o(n)}if(t){const e=await d();if(e&&e.length>0){m(e);const t=h(e);return void o(t)}}p()}catch(e){const t=e instanceof Error?e.message:"An error occurred";u(t),console.error("Error loading models:",e),p()}finally{l(!1)}},[d,h,m,n,t,p]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{f();const e=e=>{e.key===n&&f()};window.addEventListener("storage",e);const t=()=>{f()};return window.addEventListener("models-updated",t),()=>{window.removeEventListener("storage",e),window.removeEventListener("models-updated",t)}},[f,n]),{models:a,loading:s,error:c,refresh:f}}var WebSocketState=(e=>(e.DISCONNECTED="disconnected",e.CONNECTING="connecting",e.CONNECTED="connected",e.ERROR="error",e))(WebSocketState||{})}}]);
|